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

5,928 of 11,911 cases

Case Name Expected Note Size
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
000300 unicode/part1/U+0211 NormalizationTest.txt ȑ␊ȑ Line 350: LATIN SMALL LETTER R WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000301 unicode/part1/U+0212 NormalizationTest.txt Ȓ␊Ȓ Line 351: LATIN CAPITAL LETTER R WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000302 unicode/part1/U+0213 NormalizationTest.txt ȓ␊ȓ Line 352: LATIN SMALL LETTER R WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000303 unicode/part1/U+0214 NormalizationTest.txt Ȕ␊Ȕ Line 353: LATIN CAPITAL LETTER U WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000304 unicode/part1/U+0215 NormalizationTest.txt ȕ␊ȕ Line 354: LATIN SMALL LETTER U WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000305 unicode/part1/U+0216 NormalizationTest.txt Ȗ␊Ȗ Line 355: LATIN CAPITAL LETTER U WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000306 unicode/part1/U+0217 NormalizationTest.txt ȗ␊ȗ Line 356: LATIN SMALL LETTER U WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000307 unicode/part1/U+0218 NormalizationTest.txt Ș␊Ș Line 357: LATIN CAPITAL LETTER S WITH COMMA BELOW. Its distinct columns, one per line. 6 B
000308 unicode/part1/U+0219 NormalizationTest.txt ș␊ș Line 358: LATIN SMALL LETTER S WITH COMMA BELOW. Its distinct columns, one per line. 6 B
000309 unicode/part1/U+021A NormalizationTest.txt Ț␊Ț Line 359: LATIN CAPITAL LETTER T WITH COMMA BELOW. Its distinct columns, one per line. 6 B
000310 unicode/part1/U+021B NormalizationTest.txt ț␊ț Line 360: LATIN SMALL LETTER T WITH COMMA BELOW. Its distinct columns, one per line. 6 B
000311 unicode/part1/U+021E NormalizationTest.txt Ȟ␊Ȟ Line 361: LATIN CAPITAL LETTER H WITH CARON. Its distinct columns, one per line. 6 B
000312 unicode/part1/U+021F NormalizationTest.txt ȟ␊ȟ Line 362: LATIN SMALL LETTER H WITH CARON. Its distinct columns, one per line. 6 B
000313 unicode/part1/U+0226 NormalizationTest.txt Ȧ␊Ȧ Line 363: LATIN CAPITAL LETTER A WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000314 unicode/part1/U+0227 NormalizationTest.txt ȧ␊ȧ Line 364: LATIN SMALL LETTER A WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000315 unicode/part1/U+0228 NormalizationTest.txt Ȩ␊Ȩ Line 365: LATIN CAPITAL LETTER E WITH CEDILLA. Its distinct columns, one per line. 6 B
000316 unicode/part1/U+0229 NormalizationTest.txt ȩ␊ȩ Line 366: LATIN SMALL LETTER E WITH CEDILLA. Its distinct columns, one per line. 6 B
000317 unicode/part1/U+022A NormalizationTest.txt Ȫ␊Ȫ Line 367: LATIN CAPITAL LETTER O WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000318 unicode/part1/U+022B NormalizationTest.txt ȫ␊ȫ Line 368: LATIN SMALL LETTER O WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000319 unicode/part1/U+022C NormalizationTest.txt Ȭ␊Ȭ Line 369: LATIN CAPITAL LETTER O WITH TILDE AND MACRON. Its distinct columns, one per line. 8 B
000320 unicode/part1/U+022D NormalizationTest.txt ȭ␊ȭ Line 370: LATIN SMALL LETTER O WITH TILDE AND MACRON. Its distinct columns, one per line. 8 B
000321 unicode/part1/U+022E NormalizationTest.txt Ȯ␊Ȯ Line 371: LATIN CAPITAL LETTER O WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000322 unicode/part1/U+022F NormalizationTest.txt ȯ␊ȯ Line 372: LATIN SMALL LETTER O WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000323 unicode/part1/U+0230 NormalizationTest.txt Ȱ␊Ȱ Line 373: LATIN CAPITAL LETTER O WITH DOT ABOVE AND MACRON. Its distinct columns, one per line. 8 B
000324 unicode/part1/U+0231 NormalizationTest.txt ȱ␊ȱ Line 374: LATIN SMALL LETTER O WITH DOT ABOVE AND MACRON. Its distinct columns, one per line. 8 B
000325 unicode/part1/U+0232 NormalizationTest.txt Ȳ␊Ȳ Line 375: LATIN CAPITAL LETTER Y WITH MACRON. Its distinct columns, one per line. 6 B
000326 unicode/part1/U+0233 NormalizationTest.txt ȳ␊ȳ Line 376: LATIN SMALL LETTER Y WITH MACRON. Its distinct columns, one per line. 6 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.