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 |
|---|---|---|---|---|
| 006700 | unicode/part2/line 17928 NormalizationTest.txt |
aุ่้ຸb␊aุ่้ຸb
|
29 B | |
| 006701 | unicode/part2/line 17929 NormalizationTest.txt |
aุ้่ຸb␊aุ้่ຸb
|
29 B | |
| 006702 | unicode/part2/line 17930 NormalizationTest.txt |
aุ่๊ຸb␊aุ่๊ຸb
|
29 B | |
| 006703 | unicode/part2/line 17931 NormalizationTest.txt |
aุ๊่ຸb␊aุ๊่ຸb
|
29 B | |
| 006704 | unicode/part2/line 17932 NormalizationTest.txt |
aุ่๋ຸb␊aุ่๋ຸb
|
29 B | |
| 006705 | unicode/part2/line 17933 NormalizationTest.txt |
aุ๋่ຸb␊aุ๋่ຸb
|
29 B | |
| 006706 | unicode/part2/line 17934 NormalizationTest.txt |
a่ຸຸ່b␊a่ຸຸ່b
|
29 B | |
| 006707 | unicode/part2/line 17935 NormalizationTest.txt |
a่ຸຸ່b␊a่ຸຸ່b
|
29 B | |
| 006708 | unicode/part2/line 17936 NormalizationTest.txt |
a่ຸູ່b␊a่ຸູ່b
|
29 B | |
| 006709 | unicode/part2/line 17937 NormalizationTest.txt |
a่ູຸ່b␊a่ູຸ່b
|
29 B | |
| 006710 | unicode/part2/line 17938 NormalizationTest.txt |
a゙्຺ְb␊a゙्຺ְb
|
27 B | |
| 006711 | unicode/part2/line 17939 NormalizationTest.txt |
a゙຺्ְb␊a゙຺्ְb
|
27 B | |
| 006712 | unicode/part2/line 17940 NormalizationTest.txt |
aຸ່່ཱb␊aຸ່່ཱb
|
29 B | |
| 006713 | unicode/part2/line 17941 NormalizationTest.txt |
aຸ່່ཱb␊aຸ່່ཱb
|
29 B | |
| 006714 | unicode/part2/line 17942 NormalizationTest.txt |
aຸ່້ཱb␊aຸ່້ཱb
|
29 B | |
| 006715 | unicode/part2/line 17943 NormalizationTest.txt |
aຸ້່ཱb␊aຸ້່ཱb
|
29 B | |
| 006716 | unicode/part2/line 17944 NormalizationTest.txt |
aຸ່໊ཱb␊aຸ່໊ཱb
|
29 B | |
| 006717 | unicode/part2/line 17945 NormalizationTest.txt |
aຸ໊່ཱb␊aຸ໊່ཱb
|
29 B | |
| 006718 | unicode/part2/line 17946 NormalizationTest.txt |
aຸ່໋ཱb␊aຸ່໋ཱb
|
29 B | |
| 006719 | unicode/part2/line 17947 NormalizationTest.txt |
aຸ໋່ཱb␊aຸ໋່ཱb
|
29 B | |
| 006720 | unicode/part2/line 17948 NormalizationTest.txt |
a᷺̖༘֚b␊a᷺̖༘֚b
|
25 B | |
| 006721 | unicode/part2/line 17949 NormalizationTest.txt |
a᷺༘̖֚b␊a᷺༘̖֚b
|
25 B | |
| 006722 | unicode/part2/line 17950 NormalizationTest.txt |
a᷺̖༙֚b␊a᷺̖༙֚b
|
25 B | |
| 006723 | unicode/part2/line 17951 NormalizationTest.txt |
a᷺༙̖֚b␊a᷺༙̖֚b
|
25 B | |
| 006724 | unicode/part2/line 17952 NormalizationTest.txt |
a᷺̖༵֚b␊a᷺̖༵֚b
|
25 B | |
| 006725 | unicode/part2/line 17953 NormalizationTest.txt |
a᷺༵̖֚b␊a᷺༵̖֚b
|
25 B | |
| 006726 | unicode/part2/line 17954 NormalizationTest.txt |
a᷺̖༷֚b␊a᷺̖༷֚b
|
25 B | |
| 006727 | unicode/part2/line 17955 NormalizationTest.txt |
a᷺༷̖֚b␊a᷺༷̖֚b
|
25 B | |
| 006728 | unicode/part2/line 17956 NormalizationTest.txt |
a᷎̛༹᷺b␊a᷎̛༹᷺b
|
27 B | |
| 006729 | unicode/part2/line 17957 NormalizationTest.txt |
a᷎༹̛᷺b␊a᷎༹̛᷺b
|
27 B | |
| 006730 | unicode/part2/line 17958 NormalizationTest.txt |
a່ཱཱིb␊a່ཱཱིb
|
29 B | |
| 006731 | unicode/part2/line 17959 NormalizationTest.txt |
a່ཱཱིb␊a່ཱཱིb
|
29 B | |
| 006732 | unicode/part2/line 17960 NormalizationTest.txt |
aཱིིུb␊aཱིིུb
|
29 B | |
| 006733 | unicode/part2/line 17961 NormalizationTest.txt |
aཱིིུb␊aཱིིུb
|
29 B | |
| 006734 | unicode/part2/line 17962 NormalizationTest.txt |
aིུུ̡b␊aིུུ̡b
|
27 B | |
| 006735 | unicode/part2/line 17963 NormalizationTest.txt |
aིུུ̡b␊aིུུ̡b
|
27 B | |
| 006736 | unicode/part2/line 17964 NormalizationTest.txt |
aཱིེུb␊aཱིེུb
|
29 B | |
| 006737 | unicode/part2/line 17965 NormalizationTest.txt |
aཱེིུb␊aཱེིུb
|
29 B | |
| 006738 | unicode/part2/line 17966 NormalizationTest.txt |
aཱིཻུb␊aཱིཻུb
|
29 B | |
| 006739 | unicode/part2/line 17967 NormalizationTest.txt |
aཱཻིུb␊aཱཻིུb
|
29 B | |
| 006740 | unicode/part2/line 17968 NormalizationTest.txt |
aཱིོུb␊aཱིོུb
|
29 B | |
| 006741 | unicode/part2/line 17969 NormalizationTest.txt |
aཱོིུb␊aཱོིུb
|
29 B | |
| 006742 | unicode/part2/line 17970 NormalizationTest.txt |
aཱིཽུb␊aཱིཽུb
|
29 B | |
| 006743 | unicode/part2/line 17971 NormalizationTest.txt |
aཱཽིུb␊aཱཽིུb
|
29 B | |
| 006744 | unicode/part2/line 17972 NormalizationTest.txt |
aཱིྀུb␊aཱིྀུb
|
29 B | |
| 006745 | unicode/part2/line 17973 NormalizationTest.txt |
aཱྀིུb␊aཱྀིུb
|
29 B | |
| 006746 | unicode/part2/line 17974 NormalizationTest.txt |
à֮ྂ̕b␊à֮ྂ̕b␊à֮ྂ̕b
|
34 B | |
| 006747 | unicode/part2/line 17975 NormalizationTest.txt |
a֮ྂ̀̕b␊a֮ྂ̀̕b
|
23 B | |
| 006748 | unicode/part2/line 17976 NormalizationTest.txt |
à֮ྃ̕b␊à֮ྃ̕b␊à֮ྃ̕b
|
34 B | |
| 006749 | unicode/part2/line 17977 NormalizationTest.txt |
a֮ྃ̀̕b␊a֮ྃ̀̕b
|
23 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.
- NormalizationTest.txt — Unicode’s conformance test, the source of the 8,868 unicode cases; each case is one line, its distinct columns on separate lines
- The Unicode Character Database — combining classes, decompositions and composition exclusions, the source of the 157 ucd cases