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
000700 unicode/part1/U+1E45 NormalizationTest.txt ṅ␊ṅ Line 753: LATIN SMALL LETTER N WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000701 unicode/part1/U+1E46 NormalizationTest.txt Ṇ␊Ṇ Line 754: LATIN CAPITAL LETTER N WITH DOT BELOW. Its distinct columns, one per line. 7 B
000702 unicode/part1/U+1E47 NormalizationTest.txt ṇ␊ṇ Line 755: LATIN SMALL LETTER N WITH DOT BELOW. Its distinct columns, one per line. 7 B
000703 unicode/part1/U+1E48 NormalizationTest.txt Ṉ␊Ṉ Line 756: LATIN CAPITAL LETTER N WITH LINE BELOW. Its distinct columns, one per line. 7 B
000704 unicode/part1/U+1E49 NormalizationTest.txt ṉ␊ṉ Line 757: LATIN SMALL LETTER N WITH LINE BELOW. Its distinct columns, one per line. 7 B
000705 unicode/part1/U+1E4A NormalizationTest.txt Ṋ␊Ṋ Line 758: LATIN CAPITAL LETTER N WITH CIRCUMFLEX BELOW. Its distinct columns, one per line. 7 B
000706 unicode/part1/U+1E4B NormalizationTest.txt ṋ␊ṋ Line 759: LATIN SMALL LETTER N WITH CIRCUMFLEX BELOW. Its distinct columns, one per line. 7 B
000707 unicode/part1/U+1E4C NormalizationTest.txt Ṍ␊Ṍ Line 760: LATIN CAPITAL LETTER O WITH TILDE AND ACUTE. Its distinct columns, one per line. 9 B
000708 unicode/part1/U+1E4D NormalizationTest.txt ṍ␊ṍ Line 761: LATIN SMALL LETTER O WITH TILDE AND ACUTE. Its distinct columns, one per line. 9 B
000709 unicode/part1/U+1E4E NormalizationTest.txt Ṏ␊Ṏ Line 762: LATIN CAPITAL LETTER O WITH TILDE AND DIAERESIS. Its distinct columns, one per line. 9 B
000710 unicode/part1/U+1E4F NormalizationTest.txt ṏ␊ṏ Line 763: LATIN SMALL LETTER O WITH TILDE AND DIAERESIS. Its distinct columns, one per line. 9 B
000711 unicode/part1/U+1E50 NormalizationTest.txt Ṑ␊Ṑ Line 764: LATIN CAPITAL LETTER O WITH MACRON AND GRAVE. Its distinct columns, one per line. 9 B
000712 unicode/part1/U+1E51 NormalizationTest.txt ṑ␊ṑ Line 765: LATIN SMALL LETTER O WITH MACRON AND GRAVE. Its distinct columns, one per line. 9 B
000713 unicode/part1/U+1E52 NormalizationTest.txt Ṓ␊Ṓ Line 766: LATIN CAPITAL LETTER O WITH MACRON AND ACUTE. Its distinct columns, one per line. 9 B
000714 unicode/part1/U+1E53 NormalizationTest.txt ṓ␊ṓ Line 767: LATIN SMALL LETTER O WITH MACRON AND ACUTE. Its distinct columns, one per line. 9 B
000715 unicode/part1/U+1E54 NormalizationTest.txt Ṕ␊Ṕ Line 768: LATIN CAPITAL LETTER P WITH ACUTE. Its distinct columns, one per line. 7 B
000716 unicode/part1/U+1E55 NormalizationTest.txt ṕ␊ṕ Line 769: LATIN SMALL LETTER P WITH ACUTE. Its distinct columns, one per line. 7 B
000717 unicode/part1/U+1E56 NormalizationTest.txt Ṗ␊Ṗ Line 770: LATIN CAPITAL LETTER P WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000718 unicode/part1/U+1E57 NormalizationTest.txt ṗ␊ṗ Line 771: LATIN SMALL LETTER P WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000719 unicode/part1/U+1E58 NormalizationTest.txt Ṙ␊Ṙ Line 772: LATIN CAPITAL LETTER R WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000720 unicode/part1/U+1E59 NormalizationTest.txt ṙ␊ṙ Line 773: LATIN SMALL LETTER R WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000721 unicode/part1/U+1E5A NormalizationTest.txt Ṛ␊Ṛ Line 774: LATIN CAPITAL LETTER R WITH DOT BELOW. Its distinct columns, one per line. 7 B
000722 unicode/part1/U+1E5B NormalizationTest.txt ṛ␊ṛ Line 775: LATIN SMALL LETTER R WITH DOT BELOW. Its distinct columns, one per line. 7 B
000723 unicode/part1/U+1E5C NormalizationTest.txt Ṝ␊Ṝ Line 776: LATIN CAPITAL LETTER R WITH DOT BELOW AND MACRON. Its distinct columns, one per line. 9 B
000724 unicode/part1/U+1E5D NormalizationTest.txt ṝ␊ṝ Line 777: LATIN SMALL LETTER R WITH DOT BELOW AND MACRON. Its distinct columns, one per line. 9 B
000725 unicode/part1/U+1E5E NormalizationTest.txt Ṟ␊Ṟ Line 778: LATIN CAPITAL LETTER R WITH LINE BELOW. Its distinct columns, one per line. 7 B
000726 unicode/part1/U+1E5F NormalizationTest.txt ṟ␊ṟ Line 779: LATIN SMALL LETTER R WITH LINE BELOW. Its distinct columns, one per line. 7 B
000727 unicode/part1/U+1E60 NormalizationTest.txt Ṡ␊Ṡ Line 780: LATIN CAPITAL LETTER S WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000728 unicode/part1/U+1E61 NormalizationTest.txt ṡ␊ṡ Line 781: LATIN SMALL LETTER S WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000729 unicode/part1/U+1E62 NormalizationTest.txt Ṣ␊Ṣ Line 782: LATIN CAPITAL LETTER S WITH DOT BELOW. Its distinct columns, one per line. 7 B
000730 unicode/part1/U+1E63 NormalizationTest.txt ṣ␊ṣ Line 783: LATIN SMALL LETTER S WITH DOT BELOW. Its distinct columns, one per line. 7 B
000731 unicode/part1/U+1E64 NormalizationTest.txt Ṥ␊Ṥ Line 784: LATIN CAPITAL LETTER S WITH ACUTE AND DOT ABOVE. Its distinct columns, one per line. 9 B
000732 unicode/part1/U+1E65 NormalizationTest.txt ṥ␊ṥ Line 785: LATIN SMALL LETTER S WITH ACUTE AND DOT ABOVE. Its distinct columns, one per line. 9 B
000733 unicode/part1/U+1E66 NormalizationTest.txt Ṧ␊Ṧ Line 786: LATIN CAPITAL LETTER S WITH CARON AND DOT ABOVE. Its distinct columns, one per line. 9 B
000734 unicode/part1/U+1E67 NormalizationTest.txt ṧ␊ṧ Line 787: LATIN SMALL LETTER S WITH CARON AND DOT ABOVE. Its distinct columns, one per line. 9 B
000735 unicode/part1/U+1E68 NormalizationTest.txt Ṩ␊Ṩ Line 788: LATIN CAPITAL LETTER S WITH DOT BELOW AND DOT ABOVE. Its distinct columns, one per line. 9 B
000736 unicode/part1/U+1E69 NormalizationTest.txt ṩ␊ṩ Line 789: LATIN SMALL LETTER S WITH DOT BELOW AND DOT ABOVE. Its distinct columns, one per line. 9 B
000737 unicode/part1/U+1E6A NormalizationTest.txt Ṫ␊Ṫ Line 790: LATIN CAPITAL LETTER T WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000738 unicode/part1/U+1E6B NormalizationTest.txt ṫ␊ṫ Line 791: LATIN SMALL LETTER T WITH DOT ABOVE. Its distinct columns, one per line. 7 B
000739 unicode/part1/U+1E6C NormalizationTest.txt Ṭ␊Ṭ Line 792: LATIN CAPITAL LETTER T WITH DOT BELOW. Its distinct columns, one per line. 7 B
000740 unicode/part1/U+1E6D NormalizationTest.txt ṭ␊ṭ Line 793: LATIN SMALL LETTER T WITH DOT BELOW. Its distinct columns, one per line. 7 B
000741 unicode/part1/U+1E6E NormalizationTest.txt Ṯ␊Ṯ Line 794: LATIN CAPITAL LETTER T WITH LINE BELOW. Its distinct columns, one per line. 7 B
000742 unicode/part1/U+1E6F NormalizationTest.txt ṯ␊ṯ Line 795: LATIN SMALL LETTER T WITH LINE BELOW. Its distinct columns, one per line. 7 B
000743 unicode/part1/U+1E70 NormalizationTest.txt Ṱ␊Ṱ Line 796: LATIN CAPITAL LETTER T WITH CIRCUMFLEX BELOW. Its distinct columns, one per line. 7 B
000744 unicode/part1/U+1E71 NormalizationTest.txt ṱ␊ṱ Line 797: LATIN SMALL LETTER T WITH CIRCUMFLEX BELOW. Its distinct columns, one per line. 7 B
000745 unicode/part1/U+1E72 NormalizationTest.txt Ṳ␊Ṳ Line 798: LATIN CAPITAL LETTER U WITH DIAERESIS BELOW. Its distinct columns, one per line. 7 B
000746 unicode/part1/U+1E73 NormalizationTest.txt ṳ␊ṳ Line 799: LATIN SMALL LETTER U WITH DIAERESIS BELOW. Its distinct columns, one per line. 7 B
000747 unicode/part1/U+1E74 NormalizationTest.txt Ṵ␊Ṵ Line 800: LATIN CAPITAL LETTER U WITH TILDE BELOW. Its distinct columns, one per line. 7 B
000748 unicode/part1/U+1E75 NormalizationTest.txt ṵ␊ṵ Line 801: LATIN SMALL LETTER U WITH TILDE BELOW. Its distinct columns, one per line. 7 B
000749 unicode/part1/U+1E76 NormalizationTest.txt Ṷ␊Ṷ Line 802: LATIN CAPITAL LETTER U WITH CIRCUMFLEX BELOW. 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.