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
000395 unicode/part1/U+040D NormalizationTest.txt Ѝ␊Ѝ Line 445: CYRILLIC CAPITAL LETTER I WITH GRAVE. Its distinct columns, one per line. 7 B
000396 unicode/part1/U+040E NormalizationTest.txt Ў␊Ў Line 446: CYRILLIC CAPITAL LETTER SHORT U. Its distinct columns, one per line. 7 B
000397 unicode/part1/U+0419 NormalizationTest.txt Й␊Й Line 447: CYRILLIC CAPITAL LETTER SHORT I. Its distinct columns, one per line. 7 B
000398 unicode/part1/U+0439 NormalizationTest.txt й␊й Line 448: CYRILLIC SMALL LETTER SHORT I. Its distinct columns, one per line. 7 B
000399 unicode/part1/U+0450 NormalizationTest.txt ѐ␊ѐ Line 449: CYRILLIC SMALL LETTER IE WITH GRAVE. Its distinct columns, one per line. 7 B
000400 unicode/part1/U+0451 NormalizationTest.txt ё␊ё Line 450: CYRILLIC SMALL LETTER IO. Its distinct columns, one per line. 7 B
000401 unicode/part1/U+0453 NormalizationTest.txt ѓ␊ѓ Line 451: CYRILLIC SMALL LETTER GJE. Its distinct columns, one per line. 7 B
000402 unicode/part1/U+0457 NormalizationTest.txt ї␊ї Line 452: CYRILLIC SMALL LETTER YI. Its distinct columns, one per line. 7 B
000403 unicode/part1/U+045C NormalizationTest.txt ќ␊ќ Line 453: CYRILLIC SMALL LETTER KJE. Its distinct columns, one per line. 7 B
000404 unicode/part1/U+045D NormalizationTest.txt ѝ␊ѝ Line 454: CYRILLIC SMALL LETTER I WITH GRAVE. Its distinct columns, one per line. 7 B
000405 unicode/part1/U+045E NormalizationTest.txt ў␊ў Line 455: CYRILLIC SMALL LETTER SHORT U. Its distinct columns, one per line. 7 B
000406 unicode/part1/U+0476 NormalizationTest.txt Ѷ␊Ѷ Line 456: CYRILLIC CAPITAL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT. Its distinct columns, one per line. 7 B
000407 unicode/part1/U+0477 NormalizationTest.txt ѷ␊ѷ Line 457: CYRILLIC SMALL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT. Its distinct columns, one per line. 7 B
000408 unicode/part1/U+04C1 NormalizationTest.txt Ӂ␊Ӂ Line 458: CYRILLIC CAPITAL LETTER ZHE WITH BREVE. Its distinct columns, one per line. 7 B
000409 unicode/part1/U+04C2 NormalizationTest.txt ӂ␊ӂ Line 459: CYRILLIC SMALL LETTER ZHE WITH BREVE. Its distinct columns, one per line. 7 B
000410 unicode/part1/U+04D0 NormalizationTest.txt Ӑ␊Ӑ Line 460: CYRILLIC CAPITAL LETTER A WITH BREVE. Its distinct columns, one per line. 7 B
000411 unicode/part1/U+04D1 NormalizationTest.txt ӑ␊ӑ Line 461: CYRILLIC SMALL LETTER A WITH BREVE. Its distinct columns, one per line. 7 B
000412 unicode/part1/U+04D2 NormalizationTest.txt Ӓ␊Ӓ Line 462: CYRILLIC CAPITAL LETTER A WITH DIAERESIS. Its distinct columns, one per line. 7 B
000413 unicode/part1/U+04D3 NormalizationTest.txt ӓ␊ӓ Line 463: CYRILLIC SMALL LETTER A WITH DIAERESIS. Its distinct columns, one per line. 7 B
000414 unicode/part1/U+04D6 NormalizationTest.txt Ӗ␊Ӗ Line 464: CYRILLIC CAPITAL LETTER IE WITH BREVE. Its distinct columns, one per line. 7 B
000415 unicode/part1/U+04D7 NormalizationTest.txt ӗ␊ӗ Line 465: CYRILLIC SMALL LETTER IE WITH BREVE. Its distinct columns, one per line. 7 B
000416 unicode/part1/U+04DA NormalizationTest.txt Ӛ␊Ӛ Line 466: CYRILLIC CAPITAL LETTER SCHWA WITH DIAERESIS. Its distinct columns, one per line. 7 B
000417 unicode/part1/U+04DB NormalizationTest.txt ӛ␊ӛ Line 467: CYRILLIC SMALL LETTER SCHWA WITH DIAERESIS. Its distinct columns, one per line. 7 B
000418 unicode/part1/U+04DC NormalizationTest.txt Ӝ␊Ӝ Line 468: CYRILLIC CAPITAL LETTER ZHE WITH DIAERESIS. Its distinct columns, one per line. 7 B
000419 unicode/part1/U+04DD NormalizationTest.txt ӝ␊ӝ Line 469: CYRILLIC SMALL LETTER ZHE WITH DIAERESIS. Its distinct columns, one per line. 7 B
000420 unicode/part1/U+04DE NormalizationTest.txt Ӟ␊Ӟ Line 470: CYRILLIC CAPITAL LETTER ZE WITH DIAERESIS. Its distinct columns, one per line. 7 B
000421 unicode/part1/U+04DF NormalizationTest.txt ӟ␊ӟ Line 471: CYRILLIC SMALL LETTER ZE WITH DIAERESIS. Its distinct columns, one per line. 7 B
000422 unicode/part1/U+04E2 NormalizationTest.txt Ӣ␊Ӣ Line 472: CYRILLIC CAPITAL LETTER I WITH MACRON. Its distinct columns, one per line. 7 B
000423 unicode/part1/U+04E3 NormalizationTest.txt ӣ␊ӣ Line 473: CYRILLIC SMALL LETTER I WITH MACRON. Its distinct columns, one per line. 7 B
000424 unicode/part1/U+04E4 NormalizationTest.txt Ӥ␊Ӥ Line 474: CYRILLIC CAPITAL LETTER I WITH DIAERESIS. Its distinct columns, one per line. 7 B
000425 unicode/part1/U+04E5 NormalizationTest.txt ӥ␊ӥ Line 475: CYRILLIC SMALL LETTER I WITH DIAERESIS. Its distinct columns, one per line. 7 B
000426 unicode/part1/U+04E6 NormalizationTest.txt Ӧ␊Ӧ Line 476: CYRILLIC CAPITAL LETTER O WITH DIAERESIS. Its distinct columns, one per line. 7 B
000427 unicode/part1/U+04E7 NormalizationTest.txt ӧ␊ӧ Line 477: CYRILLIC SMALL LETTER O WITH DIAERESIS. Its distinct columns, one per line. 7 B
000428 unicode/part1/U+04EA NormalizationTest.txt Ӫ␊Ӫ Line 478: CYRILLIC CAPITAL LETTER BARRED O WITH DIAERESIS. Its distinct columns, one per line. 7 B
000429 unicode/part1/U+04EB NormalizationTest.txt ӫ␊ӫ Line 479: CYRILLIC SMALL LETTER BARRED O WITH DIAERESIS. Its distinct columns, one per line. 7 B
000430 unicode/part1/U+04EC NormalizationTest.txt Ӭ␊Ӭ Line 480: CYRILLIC CAPITAL LETTER E WITH DIAERESIS. Its distinct columns, one per line. 7 B
000431 unicode/part1/U+04ED NormalizationTest.txt ӭ␊ӭ Line 481: CYRILLIC SMALL LETTER E WITH DIAERESIS. Its distinct columns, one per line. 7 B
000432 unicode/part1/U+04EE NormalizationTest.txt Ӯ␊Ӯ Line 482: CYRILLIC CAPITAL LETTER U WITH MACRON. Its distinct columns, one per line. 7 B
000433 unicode/part1/U+04EF NormalizationTest.txt ӯ␊ӯ Line 483: CYRILLIC SMALL LETTER U WITH MACRON. Its distinct columns, one per line. 7 B
000434 unicode/part1/U+04F0 NormalizationTest.txt Ӱ␊Ӱ Line 484: CYRILLIC CAPITAL LETTER U WITH DIAERESIS. Its distinct columns, one per line. 7 B
000435 unicode/part1/U+04F1 NormalizationTest.txt ӱ␊ӱ Line 485: CYRILLIC SMALL LETTER U WITH DIAERESIS. Its distinct columns, one per line. 7 B
000436 unicode/part1/U+04F2 NormalizationTest.txt Ӳ␊Ӳ Line 486: CYRILLIC CAPITAL LETTER U WITH DOUBLE ACUTE. Its distinct columns, one per line. 7 B
000437 unicode/part1/U+04F3 NormalizationTest.txt ӳ␊ӳ Line 487: CYRILLIC SMALL LETTER U WITH DOUBLE ACUTE. Its distinct columns, one per line. 7 B
000438 unicode/part1/U+04F4 NormalizationTest.txt Ӵ␊Ӵ Line 488: CYRILLIC CAPITAL LETTER CHE WITH DIAERESIS. Its distinct columns, one per line. 7 B
000439 unicode/part1/U+04F5 NormalizationTest.txt ӵ␊ӵ Line 489: CYRILLIC SMALL LETTER CHE WITH DIAERESIS. Its distinct columns, one per line. 7 B
000440 unicode/part1/U+04F8 NormalizationTest.txt Ӹ␊Ӹ Line 490: CYRILLIC CAPITAL LETTER YERU WITH DIAERESIS. Its distinct columns, one per line. 7 B
000441 unicode/part1/U+04F9 NormalizationTest.txt ӹ␊ӹ Line 491: CYRILLIC SMALL LETTER YERU WITH DIAERESIS. Its distinct columns, one per line. 7 B
000442 unicode/part1/U+0587 NormalizationTest.txt և␊եւ Line 492: ARMENIAN SMALL LIGATURE ECH YIWN. Its distinct columns, one per line. 7 B
000443 unicode/part1/U+0622 NormalizationTest.txt آ␊آ Line 493: ARABIC LETTER ALEF WITH MADDA ABOVE. Its distinct columns, one per line. 7 B
000444 unicode/part1/U+0623 NormalizationTest.txt أ␊أ Line 494: ARABIC LETTER ALEF WITH HAMZA ABOVE. Its distinct columns, one per line. 7 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.