Compliance cases

These are the 11,911 inputs a submission must normalize. Each output must match the expected text byte for byte. You can run the suite without reading it, or open any case to see its input and expected output.

NFC as UAX #15 defines it, pinned to Unicode 17.0.0: canonical decomposition, canonical ordering of combining marks, then canonical composition, with Hangul by arithmetic. The decomposition, combining class and composition tables are what make the Wasm big, so size is ranked on the gzipped download. The compliance suite has every line of NormalizationTest.txt, every other assigned code point, every quick-check Maybe and No character in context, targeted cases on exclusions, blocking, Hangul, long runs of marks and 16-byte boundaries, and seeded random text. A UAX #15 reference, ICU and Python agree on every answer.

Run the full compliance suite locally. Replace your-component.wasm with your compiled component. Download the suite

curl -fLo normalize_nfc.comply.wasm https://calculated.world/comply/normalize_nfc.wasm
npx qipok your-component.wasm --suite normalize_nfc.comply.wasm

All 11,911 cases

Case Name Expected Note Size
000250 unicode/part1/U+01DA NormalizationTest.txt ǚ␊ǚ Line 300: LATIN SMALL LETTER U WITH DIAERESIS AND CARON. Its distinct columns, one per line. 8 B
000251 unicode/part1/U+01DB NormalizationTest.txt Ǜ␊Ǜ Line 301: LATIN CAPITAL LETTER U WITH DIAERESIS AND GRAVE. Its distinct columns, one per line. 8 B
000252 unicode/part1/U+01DC NormalizationTest.txt ǜ␊ǜ Line 302: LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE. Its distinct columns, one per line. 8 B
000253 unicode/part1/U+01DE NormalizationTest.txt Ǟ␊Ǟ Line 303: LATIN CAPITAL LETTER A WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000254 unicode/part1/U+01DF NormalizationTest.txt ǟ␊ǟ Line 304: LATIN SMALL LETTER A WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000255 unicode/part1/U+01E0 NormalizationTest.txt Ǡ␊Ǡ Line 305: LATIN CAPITAL LETTER A WITH DOT ABOVE AND MACRON. Its distinct columns, one per line. 8 B
000256 unicode/part1/U+01E1 NormalizationTest.txt ǡ␊ǡ Line 306: LATIN SMALL LETTER A WITH DOT ABOVE AND MACRON. Its distinct columns, one per line. 8 B
000257 unicode/part1/U+01E2 NormalizationTest.txt Ǣ␊Ǣ Line 307: LATIN CAPITAL LETTER AE WITH MACRON. Its distinct columns, one per line. 7 B
000258 unicode/part1/U+01E3 NormalizationTest.txt ǣ␊ǣ Line 308: LATIN SMALL LETTER AE WITH MACRON. Its distinct columns, one per line. 7 B
000259 unicode/part1/U+01E6 NormalizationTest.txt Ǧ␊Ǧ Line 309: LATIN CAPITAL LETTER G WITH CARON. Its distinct columns, one per line. 6 B
000260 unicode/part1/U+01E7 NormalizationTest.txt ǧ␊ǧ Line 310: LATIN SMALL LETTER G WITH CARON. Its distinct columns, one per line. 6 B
000261 unicode/part1/U+01E8 NormalizationTest.txt Ǩ␊Ǩ Line 311: LATIN CAPITAL LETTER K WITH CARON. Its distinct columns, one per line. 6 B
000262 unicode/part1/U+01E9 NormalizationTest.txt ǩ␊ǩ Line 312: LATIN SMALL LETTER K WITH CARON. Its distinct columns, one per line. 6 B
000263 unicode/part1/U+01EA NormalizationTest.txt Ǫ␊Ǫ Line 313: LATIN CAPITAL LETTER O WITH OGONEK. Its distinct columns, one per line. 6 B
000264 unicode/part1/U+01EB NormalizationTest.txt ǫ␊ǫ Line 314: LATIN SMALL LETTER O WITH OGONEK. Its distinct columns, one per line. 6 B
000265 unicode/part1/U+01EC NormalizationTest.txt Ǭ␊Ǭ Line 315: LATIN CAPITAL LETTER O WITH OGONEK AND MACRON. Its distinct columns, one per line. 8 B
000266 unicode/part1/U+01ED NormalizationTest.txt ǭ␊ǭ Line 316: LATIN SMALL LETTER O WITH OGONEK AND MACRON. Its distinct columns, one per line. 8 B
000267 unicode/part1/U+01EE NormalizationTest.txt Ǯ␊Ǯ Line 317: LATIN CAPITAL LETTER EZH WITH CARON. Its distinct columns, one per line. 7 B
000268 unicode/part1/U+01EF NormalizationTest.txt ǯ␊ǯ Line 318: LATIN SMALL LETTER EZH WITH CARON. Its distinct columns, one per line. 7 B
000269 unicode/part1/U+01F0 NormalizationTest.txt ǰ␊ǰ Line 319: LATIN SMALL LETTER J WITH CARON. Its distinct columns, one per line. 6 B
000270 unicode/part1/U+01F1 NormalizationTest.txt DZ␊DZ Line 320: LATIN CAPITAL LETTER DZ. Its distinct columns, one per line. 5 B
000271 unicode/part1/U+01F2 NormalizationTest.txt Dz␊Dz Line 321: LATIN CAPITAL LETTER D WITH SMALL LETTER Z. Its distinct columns, one per line. 5 B
000272 unicode/part1/U+01F3 NormalizationTest.txt dz␊dz Line 322: LATIN SMALL LETTER DZ. Its distinct columns, one per line. 5 B
000273 unicode/part1/U+01F4 NormalizationTest.txt Ǵ␊Ǵ Line 323: LATIN CAPITAL LETTER G WITH ACUTE. Its distinct columns, one per line. 6 B
000274 unicode/part1/U+01F5 NormalizationTest.txt ǵ␊ǵ Line 324: LATIN SMALL LETTER G WITH ACUTE. Its distinct columns, one per line. 6 B
000275 unicode/part1/U+01F8 NormalizationTest.txt Ǹ␊Ǹ Line 325: LATIN CAPITAL LETTER N WITH GRAVE. Its distinct columns, one per line. 6 B
000276 unicode/part1/U+01F9 NormalizationTest.txt ǹ␊ǹ Line 326: LATIN SMALL LETTER N WITH GRAVE. Its distinct columns, one per line. 6 B
000277 unicode/part1/U+01FA NormalizationTest.txt Ǻ␊Ǻ Line 327: LATIN CAPITAL LETTER A WITH RING ABOVE AND ACUTE. Its distinct columns, one per line. 8 B
000278 unicode/part1/U+01FB NormalizationTest.txt ǻ␊ǻ Line 328: LATIN SMALL LETTER A WITH RING ABOVE AND ACUTE. Its distinct columns, one per line. 8 B
000279 unicode/part1/U+01FC NormalizationTest.txt Ǽ␊Ǽ Line 329: LATIN CAPITAL LETTER AE WITH ACUTE. Its distinct columns, one per line. 7 B
000280 unicode/part1/U+01FD NormalizationTest.txt ǽ␊ǽ Line 330: LATIN SMALL LETTER AE WITH ACUTE. Its distinct columns, one per line. 7 B
000281 unicode/part1/U+01FE NormalizationTest.txt Ǿ␊Ǿ Line 331: LATIN CAPITAL LETTER O WITH STROKE AND ACUTE. Its distinct columns, one per line. 7 B
000282 unicode/part1/U+01FF NormalizationTest.txt ǿ␊ǿ Line 332: LATIN SMALL LETTER O WITH STROKE AND ACUTE. Its distinct columns, one per line. 7 B
000283 unicode/part1/U+0200 NormalizationTest.txt Ȁ␊Ȁ Line 333: LATIN CAPITAL LETTER A WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000284 unicode/part1/U+0201 NormalizationTest.txt ȁ␊ȁ Line 334: LATIN SMALL LETTER A WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000285 unicode/part1/U+0202 NormalizationTest.txt Ȃ␊Ȃ Line 335: LATIN CAPITAL LETTER A WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000286 unicode/part1/U+0203 NormalizationTest.txt ȃ␊ȃ Line 336: LATIN SMALL LETTER A WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000287 unicode/part1/U+0204 NormalizationTest.txt Ȅ␊Ȅ Line 337: LATIN CAPITAL LETTER E WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000288 unicode/part1/U+0205 NormalizationTest.txt ȅ␊ȅ Line 338: LATIN SMALL LETTER E WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000289 unicode/part1/U+0206 NormalizationTest.txt Ȇ␊Ȇ Line 339: LATIN CAPITAL LETTER E WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000290 unicode/part1/U+0207 NormalizationTest.txt ȇ␊ȇ Line 340: LATIN SMALL LETTER E WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000291 unicode/part1/U+0208 NormalizationTest.txt Ȉ␊Ȉ Line 341: LATIN CAPITAL LETTER I WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000292 unicode/part1/U+0209 NormalizationTest.txt ȉ␊ȉ Line 342: LATIN SMALL LETTER I WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000293 unicode/part1/U+020A NormalizationTest.txt Ȋ␊Ȋ Line 343: LATIN CAPITAL LETTER I WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000294 unicode/part1/U+020B NormalizationTest.txt ȋ␊ȋ Line 344: LATIN SMALL LETTER I WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000295 unicode/part1/U+020C NormalizationTest.txt Ȍ␊Ȍ Line 345: LATIN CAPITAL LETTER O WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000296 unicode/part1/U+020D NormalizationTest.txt ȍ␊ȍ Line 346: LATIN SMALL LETTER O WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000297 unicode/part1/U+020E NormalizationTest.txt Ȏ␊Ȏ Line 347: LATIN CAPITAL LETTER O WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000298 unicode/part1/U+020F NormalizationTest.txt ȏ␊ȏ Line 348: LATIN SMALL LETTER O WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000299 unicode/part1/U+0210 NormalizationTest.txt Ȑ␊Ȑ Line 349: LATIN CAPITAL LETTER R WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B

Where these rules come from

NFC is defined by UAX #15, Unicode Normalization Forms, and chapter 3.11 of the Unicode Standard, here pinned to Unicode 17.0.0. Every answer is agreed by a direct reading of UAX #15 over the pinned data files, ICU 78.3 and Python’s unicodedata.normalize; the suite’s own tests add Node.js’s String.prototype.normalize. Combining marks merge into the character before them, so each case also lists its code points.