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
1,936 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 006954 | unicode/part2/line 18182 NormalizationTest.txt |
a𖿰़᯦゙b␊a𖿰़᯦゙b
|
31 B | |
| 006955 | unicode/part2/line 18183 NormalizationTest.txt |
a𖿰᯦़゙b␊a𖿰᯦़゙b
|
31 B | |
| 006956 | unicode/part2/line 18184 NormalizationTest.txt |
a゙्᯲ְb␊a゙्᯲ְb
|
27 B | |
| 006957 | unicode/part2/line 18185 NormalizationTest.txt |
a゙᯲्ְb␊a゙᯲्ְb
|
27 B | |
| 006958 | unicode/part2/line 18186 NormalizationTest.txt |
a゙्᯳ְb␊a゙्᯳ְb
|
27 B | |
| 006959 | unicode/part2/line 18187 NormalizationTest.txt |
a゙᯳्ְb␊a゙᯳्ְb
|
27 B | |
| 006960 | unicode/part2/line 18188 NormalizationTest.txt |
a𖿰़᰷゙b␊a𖿰़᰷゙b
|
31 B | |
| 006961 | unicode/part2/line 18189 NormalizationTest.txt |
a𖿰᰷़゙b␊a𖿰᰷़゙b
|
31 B | |
| 006962 | unicode/part2/line 18190 NormalizationTest.txt |
à֮᳐̕b␊à֮᳐̕b␊à֮᳐̕b
|
34 B | |
| 006963 | unicode/part2/line 18191 NormalizationTest.txt |
a֮᳐̀̕b␊a֮᳐̀̕b
|
23 B | |
| 006964 | unicode/part2/line 18192 NormalizationTest.txt |
à֮᳑̕b␊à֮᳑̕b␊à֮᳑̕b
|
34 B | |
| 006965 | unicode/part2/line 18193 NormalizationTest.txt |
a֮᳑̀̕b␊a֮᳑̀̕b
|
23 B | |
| 006966 | unicode/part2/line 18194 NormalizationTest.txt |
à֮᳒̕b␊à֮᳒̕b␊à֮᳒̕b
|
34 B | |
| 006967 | unicode/part2/line 18195 NormalizationTest.txt |
a֮᳒̀̕b␊a֮᳒̀̕b
|
23 B | |
| 006968 | unicode/part2/line 18196 NormalizationTest.txt |
a̴᳔𖿰b␊a̴᳔𖿰b
|
23 B | |
| 006969 | unicode/part2/line 18197 NormalizationTest.txt |
a᳔̴𖿰b␊a᳔̴𖿰b
|
23 B | |
| 006970 | unicode/part2/line 18198 NormalizationTest.txt |
a᷺̖᳕֚b␊a᷺̖᳕֚b
|
25 B | |
| 006971 | unicode/part2/line 18199 NormalizationTest.txt |
a᷺᳕̖֚b␊a᷺᳕̖֚b
|
25 B | |
| 006972 | unicode/part2/line 18200 NormalizationTest.txt |
a᷺̖᳖֚b␊a᷺̖᳖֚b
|
25 B | |
| 006973 | unicode/part2/line 18201 NormalizationTest.txt |
a᷺᳖̖֚b␊a᷺᳖̖֚b
|
25 B | |
| 006974 | unicode/part2/line 18202 NormalizationTest.txt |
a᷺̖᳗֚b␊a᷺̖᳗֚b
|
25 B | |
| 006975 | unicode/part2/line 18203 NormalizationTest.txt |
a᷺᳗̖֚b␊a᷺᳗̖֚b
|
25 B | |
| 006976 | unicode/part2/line 18204 NormalizationTest.txt |
a᷺̖᳘֚b␊a᷺̖᳘֚b
|
25 B | |
| 006977 | unicode/part2/line 18205 NormalizationTest.txt |
a᷺᳘̖֚b␊a᷺᳘̖֚b
|
25 B | |
| 006978 | unicode/part2/line 18206 NormalizationTest.txt |
a᷺̖᳙֚b␊a᷺̖᳙֚b
|
25 B | |
| 006979 | unicode/part2/line 18207 NormalizationTest.txt |
a᷺᳙̖֚b␊a᷺᳙̖֚b
|
25 B | |
| 006980 | unicode/part2/line 18208 NormalizationTest.txt |
à֮᳚̕b␊à֮᳚̕b␊à֮᳚̕b
|
34 B | |
| 006981 | unicode/part2/line 18209 NormalizationTest.txt |
a֮᳚̀̕b␊a֮᳚̀̕b
|
23 B | |
| 006982 | unicode/part2/line 18210 NormalizationTest.txt |
à֮᳛̕b␊à֮᳛̕b␊à֮᳛̕b
|
34 B | |
| 006983 | unicode/part2/line 18211 NormalizationTest.txt |
a֮᳛̀̕b␊a֮᳛̀̕b
|
23 B | |
| 006984 | unicode/part2/line 18212 NormalizationTest.txt |
a᷺̖᳜֚b␊a᷺̖᳜֚b
|
25 B | |
| 006985 | unicode/part2/line 18213 NormalizationTest.txt |
a᷺᳜̖֚b␊a᷺᳜̖֚b
|
25 B | |
| 006986 | unicode/part2/line 18214 NormalizationTest.txt |
a᷺̖᳝֚b␊a᷺̖᳝֚b
|
25 B | |
| 006987 | unicode/part2/line 18215 NormalizationTest.txt |
a᷺᳝̖֚b␊a᷺᳝̖֚b
|
25 B | |
| 006988 | unicode/part2/line 18216 NormalizationTest.txt |
a᷺̖᳞֚b␊a᷺̖᳞֚b
|
25 B | |
| 006989 | unicode/part2/line 18217 NormalizationTest.txt |
a᷺᳞̖֚b␊a᷺᳞̖֚b
|
25 B | |
| 006990 | unicode/part2/line 18218 NormalizationTest.txt |
a᷺̖᳟֚b␊a᷺̖᳟֚b
|
25 B | |
| 006991 | unicode/part2/line 18219 NormalizationTest.txt |
a᷺᳟̖֚b␊a᷺᳟̖֚b
|
25 B | |
| 006992 | unicode/part2/line 18220 NormalizationTest.txt |
à֮᳠̕b␊à֮᳠̕b␊à֮᳠̕b
|
34 B | |
| 006993 | unicode/part2/line 18221 NormalizationTest.txt |
a֮᳠̀̕b␊a֮᳠̀̕b
|
23 B | |
| 006994 | unicode/part2/line 18222 NormalizationTest.txt |
a̴᳢𖿰b␊a̴᳢𖿰b
|
23 B | |
| 006995 | unicode/part2/line 18223 NormalizationTest.txt |
a᳢̴𖿰b␊a᳢̴𖿰b
|
23 B | |
| 006996 | unicode/part2/line 18224 NormalizationTest.txt |
a̴᳣𖿰b␊a̴᳣𖿰b
|
23 B | |
| 006997 | unicode/part2/line 18225 NormalizationTest.txt |
a᳣̴𖿰b␊a᳣̴𖿰b
|
23 B | |
| 006998 | unicode/part2/line 18226 NormalizationTest.txt |
a̴᳤𖿰b␊a̴᳤𖿰b
|
23 B | |
| 006999 | unicode/part2/line 18227 NormalizationTest.txt |
a᳤̴𖿰b␊a᳤̴𖿰b
|
23 B | |
| 007000 | unicode/part2/line 18228 NormalizationTest.txt |
a̴᳥𖿰b␊a̴᳥𖿰b
|
23 B | |
| 007001 | unicode/part2/line 18229 NormalizationTest.txt |
a᳥̴𖿰b␊a᳥̴𖿰b
|
23 B | |
| 007002 | unicode/part2/line 18230 NormalizationTest.txt |
a̴᳦𖿰b␊a̴᳦𖿰b
|
23 B | |
| 007003 | unicode/part2/line 18231 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