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
Clear

3,833 of 11,911 cases

Case Name Expected Note Size
000045 unicode/part1/U+00A0 NormalizationTest.txt ⟨U+00A0⟩␊ Line 93: NO-BREAK SPACE. Its distinct columns, one per line. 4 B
000046 unicode/part1/U+00A8 NormalizationTest.txt ¨␊ ̈ Line 94: DIAERESIS. Its distinct columns, one per line. 6 B
000047 unicode/part1/U+00AA NormalizationTest.txt ª␊a Line 95: FEMININE ORDINAL INDICATOR. Its distinct columns, one per line. 4 B
000048 unicode/part1/U+00AF NormalizationTest.txt ¯␊ ̄ Line 96: MACRON. Its distinct columns, one per line. 6 B
000049 unicode/part1/U+00B2 NormalizationTest.txt ²␊2 Line 97: SUPERSCRIPT TWO. Its distinct columns, one per line. 4 B
000050 unicode/part1/U+00B3 NormalizationTest.txt ³␊3 Line 98: SUPERSCRIPT THREE. Its distinct columns, one per line. 4 B
000051 unicode/part1/U+00B4 NormalizationTest.txt ´␊ ́ Line 99: ACUTE ACCENT. Its distinct columns, one per line. 6 B
000052 unicode/part1/U+00B5 NormalizationTest.txt µ␊μ Line 100: MICRO SIGN. Its distinct columns, one per line. 5 B
000053 unicode/part1/U+00B8 NormalizationTest.txt ¸␊ ̧ Line 101: CEDILLA. Its distinct columns, one per line. 6 B
000054 unicode/part1/U+00B9 NormalizationTest.txt ¹␊1 Line 102: SUPERSCRIPT ONE. Its distinct columns, one per line. 4 B
000055 unicode/part1/U+00BA NormalizationTest.txt º␊o Line 103: MASCULINE ORDINAL INDICATOR. Its distinct columns, one per line. 4 B
000056 unicode/part1/U+00BC NormalizationTest.txt ¼␊1⁄4 Line 104: VULGAR FRACTION ONE QUARTER. Its distinct columns, one per line. 8 B
000057 unicode/part1/U+00BD NormalizationTest.txt ½␊1⁄2 Line 105: VULGAR FRACTION ONE HALF. Its distinct columns, one per line. 8 B
000058 unicode/part1/U+00BE NormalizationTest.txt ¾␊3⁄4 Line 106: VULGAR FRACTION THREE QUARTERS. Its distinct columns, one per line. 8 B
000155 unicode/part1/U+0132 NormalizationTest.txt IJ␊IJ Line 205: LATIN CAPITAL LIGATURE IJ. Its distinct columns, one per line. 5 B
000156 unicode/part1/U+0133 NormalizationTest.txt ij␊ij Line 206: LATIN SMALL LIGATURE IJ. Its distinct columns, one per line. 5 B
000167 unicode/part1/U+013F NormalizationTest.txt Ŀ␊L· Line 217: LATIN CAPITAL LETTER L WITH MIDDLE DOT. Its distinct columns, one per line. 6 B
000168 unicode/part1/U+0140 NormalizationTest.txt ŀ␊l· Line 218: LATIN SMALL LETTER L WITH MIDDLE DOT. Its distinct columns, one per line. 6 B
000175 unicode/part1/U+0149 NormalizationTest.txt ʼn␊ʼn Line 225: LATIN SMALL LETTER N PRECEDED BY APOSTROPHE. Its distinct columns, one per line. 6 B
000223 unicode/part1/U+017F NormalizationTest.txt ſ␊s Line 273: LATIN SMALL LETTER LONG S. Its distinct columns, one per line. 4 B
000228 unicode/part1/U+01C4 NormalizationTest.txt DŽ␊DŽ␊DŽ Line 278: LATIN CAPITAL LETTER DZ WITH CARON. Its distinct columns, one per line. 11 B
000229 unicode/part1/U+01C5 NormalizationTest.txt Dž␊Dž␊Dž Line 279: LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON. Its distinct columns, one per line. 11 B
000230 unicode/part1/U+01C6 NormalizationTest.txt dž␊dž␊dž Line 280: LATIN SMALL LETTER DZ WITH CARON. Its distinct columns, one per line. 11 B
000231 unicode/part1/U+01C7 NormalizationTest.txt LJ␊LJ Line 281: LATIN CAPITAL LETTER LJ. Its distinct columns, one per line. 5 B
000232 unicode/part1/U+01C8 NormalizationTest.txt Lj␊Lj Line 282: LATIN CAPITAL LETTER L WITH SMALL LETTER J. Its distinct columns, one per line. 5 B
000233 unicode/part1/U+01C9 NormalizationTest.txt lj␊lj Line 283: LATIN SMALL LETTER LJ. Its distinct columns, one per line. 5 B
000234 unicode/part1/U+01CA NormalizationTest.txt NJ␊NJ Line 284: LATIN CAPITAL LETTER NJ. Its distinct columns, one per line. 5 B
000235 unicode/part1/U+01CB NormalizationTest.txt Nj␊Nj Line 285: LATIN CAPITAL LETTER N WITH SMALL LETTER J. Its distinct columns, one per line. 5 B
000236 unicode/part1/U+01CC NormalizationTest.txt nj␊nj Line 286: LATIN SMALL LETTER NJ. Its distinct columns, one per line. 5 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
000327 unicode/part1/U+02B0 NormalizationTest.txt ʰ␊h Line 377: MODIFIER LETTER SMALL H. Its distinct columns, one per line. 4 B
000328 unicode/part1/U+02B1 NormalizationTest.txt ʱ␊ɦ Line 378: MODIFIER LETTER SMALL H WITH HOOK. Its distinct columns, one per line. 5 B
000329 unicode/part1/U+02B2 NormalizationTest.txt ʲ␊j Line 379: MODIFIER LETTER SMALL J. Its distinct columns, one per line. 4 B
000330 unicode/part1/U+02B3 NormalizationTest.txt ʳ␊r Line 380: MODIFIER LETTER SMALL R. Its distinct columns, one per line. 4 B
000331 unicode/part1/U+02B4 NormalizationTest.txt ʴ␊ɹ Line 381: MODIFIER LETTER SMALL TURNED R. Its distinct columns, one per line. 5 B
000332 unicode/part1/U+02B5 NormalizationTest.txt ʵ␊ɻ Line 382: MODIFIER LETTER SMALL TURNED R WITH HOOK. Its distinct columns, one per line. 5 B
000333 unicode/part1/U+02B6 NormalizationTest.txt ʶ␊ʁ Line 383: MODIFIER LETTER SMALL CAPITAL INVERTED R. Its distinct columns, one per line. 5 B
000334 unicode/part1/U+02B7 NormalizationTest.txt ʷ␊w Line 384: MODIFIER LETTER SMALL W. Its distinct columns, one per line. 4 B
000335 unicode/part1/U+02B8 NormalizationTest.txt ʸ␊y Line 385: MODIFIER LETTER SMALL Y. Its distinct columns, one per line. 4 B
000336 unicode/part1/U+02D8 NormalizationTest.txt ˘␊ ̆ Line 386: BREVE. Its distinct columns, one per line. 6 B
000337 unicode/part1/U+02D9 NormalizationTest.txt ˙␊ ̇ Line 387: DOT ABOVE. Its distinct columns, one per line. 6 B
000338 unicode/part1/U+02DA NormalizationTest.txt ˚␊ ̊ Line 388: RING ABOVE. Its distinct columns, one per line. 6 B
000339 unicode/part1/U+02DB NormalizationTest.txt ˛␊ ̨ Line 389: OGONEK. Its distinct columns, one per line. 6 B
000340 unicode/part1/U+02DC NormalizationTest.txt ˜␊ ̃ Line 390: SMALL TILDE. Its distinct columns, one per line. 6 B
000341 unicode/part1/U+02DD NormalizationTest.txt ˝␊ ̋ Line 391: DOUBLE ACUTE ACCENT. Its distinct columns, one per line. 6 B
000342 unicode/part1/U+02E0 NormalizationTest.txt ˠ␊ɣ Line 392: MODIFIER LETTER SMALL GAMMA. Its distinct columns, one per line. 5 B
000343 unicode/part1/U+02E1 NormalizationTest.txt ˡ␊l Line 393: MODIFIER LETTER SMALL L. Its distinct columns, one per line. 4 B
000344 unicode/part1/U+02E2 NormalizationTest.txt ˢ␊s Line 394: MODIFIER LETTER SMALL S. Its distinct columns, one per line. 4 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.