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 |
|---|---|---|---|---|
| 006850 | unicode/part2/line 18078 NormalizationTest.txt |
a᷺̖᫃֚b␊a᷺̖᫃֚b
|
25 B | |
| 006851 | unicode/part2/line 18079 NormalizationTest.txt |
a᷺᫃̖֚b␊a᷺᫃̖֚b
|
25 B | |
| 006852 | unicode/part2/line 18080 NormalizationTest.txt |
a᷺̖᫄֚b␊a᷺̖᫄֚b
|
25 B | |
| 006853 | unicode/part2/line 18081 NormalizationTest.txt |
a᷺᫄̖֚b␊a᷺᫄̖֚b
|
25 B | |
| 006854 | unicode/part2/line 18082 NormalizationTest.txt |
à֮᫅̕b␊à֮᫅̕b␊à֮᫅̕b
|
34 B | |
| 006855 | unicode/part2/line 18083 NormalizationTest.txt |
a֮᫅̀̕b␊a֮᫅̀̕b
|
23 B | |
| 006856 | unicode/part2/line 18084 NormalizationTest.txt |
à֮᫆̕b␊à֮᫆̕b␊à֮᫆̕b
|
34 B | |
| 006857 | unicode/part2/line 18085 NormalizationTest.txt |
a֮᫆̀̕b␊a֮᫆̀̕b
|
23 B | |
| 006858 | unicode/part2/line 18086 NormalizationTest.txt |
à֮᫇̕b␊à֮᫇̕b␊à֮᫇̕b
|
34 B | |
| 006859 | unicode/part2/line 18087 NormalizationTest.txt |
a֮᫇̀̕b␊a֮᫇̀̕b
|
23 B | |
| 006860 | unicode/part2/line 18088 NormalizationTest.txt |
à֮᫈̕b␊à֮᫈̕b␊à֮᫈̕b
|
34 B | |
| 006861 | unicode/part2/line 18089 NormalizationTest.txt |
a֮᫈̀̕b␊a֮᫈̀̕b
|
23 B | |
| 006862 | unicode/part2/line 18090 NormalizationTest.txt |
à֮᫉̕b␊à֮᫉̕b␊à֮᫉̕b
|
34 B | |
| 006863 | unicode/part2/line 18091 NormalizationTest.txt |
a֮᫉̀̕b␊a֮᫉̀̕b
|
23 B | |
| 006864 | unicode/part2/line 18092 NormalizationTest.txt |
a᷺̖᫊֚b␊a᷺̖᫊֚b
|
25 B | |
| 006865 | unicode/part2/line 18093 NormalizationTest.txt |
a᷺᫊̖֚b␊a᷺᫊̖֚b
|
25 B | |
| 006866 | unicode/part2/line 18094 NormalizationTest.txt |
à֮᫋̕b␊à֮᫋̕b␊à֮᫋̕b
|
34 B | |
| 006867 | unicode/part2/line 18095 NormalizationTest.txt |
a֮᫋̀̕b␊a֮᫋̀̕b
|
23 B | |
| 006868 | unicode/part2/line 18096 NormalizationTest.txt |
à֮ᫌ̕b␊à֮ᫌ̕b␊à֮ᫌ̕b
|
34 B | |
| 006869 | unicode/part2/line 18097 NormalizationTest.txt |
a֮ᫌ̀̕b␊a֮ᫌ̀̕b
|
23 B | |
| 006870 | unicode/part2/line 18098 NormalizationTest.txt |
à֮ᫍ̕b␊à֮ᫍ̕b␊à֮ᫍ̕b
|
34 B | |
| 006871 | unicode/part2/line 18099 NormalizationTest.txt |
a֮ᫍ̀̕b␊a֮ᫍ̀̕b
|
23 B | |
| 006872 | unicode/part2/line 18100 NormalizationTest.txt |
à֮ᫎ̕b␊à֮ᫎ̕b␊à֮ᫎ̕b
|
34 B | |
| 006873 | unicode/part2/line 18101 NormalizationTest.txt |
a֮ᫎ̀̕b␊a֮ᫎ̀̕b
|
23 B | |
| 006874 | unicode/part2/line 18102 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006875 | unicode/part2/line 18103 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006876 | unicode/part2/line 18104 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006877 | unicode/part2/line 18105 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006878 | unicode/part2/line 18106 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006879 | unicode/part2/line 18107 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006880 | unicode/part2/line 18108 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006881 | unicode/part2/line 18109 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006882 | unicode/part2/line 18110 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006883 | unicode/part2/line 18111 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006884 | unicode/part2/line 18112 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006885 | unicode/part2/line 18113 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006886 | unicode/part2/line 18114 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006887 | unicode/part2/line 18115 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006888 | unicode/part2/line 18116 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006889 | unicode/part2/line 18117 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006890 | unicode/part2/line 18118 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006891 | unicode/part2/line 18119 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006892 | unicode/part2/line 18120 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006893 | unicode/part2/line 18121 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006894 | unicode/part2/line 18122 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006895 | unicode/part2/line 18123 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006896 | unicode/part2/line 18124 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006897 | unicode/part2/line 18125 NormalizationTest.txt |
à֮̕b␊à֮̕b
|
23 B | |
| 006898 | unicode/part2/line 18126 NormalizationTest.txt |
à֮̕b␊à֮̕b␊à֮̕b
|
34 B | |
| 006899 | unicode/part2/line 18127 NormalizationTest.txt |
à֮̕b␊à֮̕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