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 |
|---|---|---|---|---|
| 005954 | unicode/part2/line 17182 NormalizationTest.txt |
à֮̀̕b␊à֮̀̕b␊à֮̀̕b
|
31 B | |
| 005955 | unicode/part2/line 17183 NormalizationTest.txt |
à֮̀̕b␊à֮̀̕b␊à֮̀̕b
|
31 B | |
| 005956 | unicode/part2/line 17184 NormalizationTest.txt |
à֮́̕b␊à֮́̕b␊à֮́̕b
|
31 B | |
| 005957 | unicode/part2/line 17185 NormalizationTest.txt |
á֮̀̕b␊á֮̀̕b␊á֮̀̕b
|
31 B | |
| 005958 | unicode/part2/line 17186 NormalizationTest.txt |
à֮̂̕b␊à֮̂̕b␊à֮̂̕b
|
31 B | |
| 005959 | unicode/part2/line 17187 NormalizationTest.txt |
ầ֮̕b␊ầ֮̕b␊ầ֮̕b
|
30 B | |
| 005960 | unicode/part2/line 17188 NormalizationTest.txt |
à֮̃̕b␊à֮̃̕b␊à֮̃̕b
|
31 B | |
| 005961 | unicode/part2/line 17189 NormalizationTest.txt |
ã֮̀̕b␊ã֮̀̕b␊ã֮̀̕b
|
31 B | |
| 005962 | unicode/part2/line 17190 NormalizationTest.txt |
à֮̄̕b␊à֮̄̕b␊à֮̄̕b
|
31 B | |
| 005963 | unicode/part2/line 17191 NormalizationTest.txt |
ā֮̀̕b␊ā֮̀̕b␊ā֮̀̕b
|
31 B | |
| 005964 | unicode/part2/line 17192 NormalizationTest.txt |
à֮̅̕b␊à֮̅̕b␊à֮̅̕b
|
31 B | |
| 005965 | unicode/part2/line 17193 NormalizationTest.txt |
a֮̅̀̕b␊a֮̅̀̕b
|
21 B | |
| 005966 | unicode/part2/line 17194 NormalizationTest.txt |
à֮̆̕b␊à֮̆̕b␊à֮̆̕b
|
31 B | |
| 005967 | unicode/part2/line 17195 NormalizationTest.txt |
ằ֮̕b␊ằ֮̕b␊ằ֮̕b
|
30 B | |
| 005968 | unicode/part2/line 17196 NormalizationTest.txt |
à֮̇̕b␊à֮̇̕b␊à֮̇̕b
|
31 B | |
| 005969 | unicode/part2/line 17197 NormalizationTest.txt |
ȧ֮̀̕b␊ȧ֮̀̕b␊ȧ֮̀̕b
|
31 B | |
| 005970 | unicode/part2/line 17198 NormalizationTest.txt |
à֮̈̕b␊à֮̈̕b␊à֮̈̕b
|
31 B | |
| 005971 | unicode/part2/line 17199 NormalizationTest.txt |
ä֮̀̕b␊ä֮̀̕b␊ä֮̀̕b
|
31 B | |
| 005972 | unicode/part2/line 17200 NormalizationTest.txt |
à֮̉̕b␊à֮̉̕b␊à֮̉̕b
|
31 B | |
| 005973 | unicode/part2/line 17201 NormalizationTest.txt |
ả֮̀̕b␊ả֮̀̕b␊ả֮̀̕b
|
32 B | |
| 005974 | unicode/part2/line 17202 NormalizationTest.txt |
à֮̊̕b␊à֮̊̕b␊à֮̊̕b
|
31 B | |
| 005975 | unicode/part2/line 17203 NormalizationTest.txt |
å֮̀̕b␊å֮̀̕b␊å֮̀̕b
|
31 B | |
| 005976 | unicode/part2/line 17204 NormalizationTest.txt |
à֮̋̕b␊à֮̋̕b␊à֮̋̕b
|
31 B | |
| 005977 | unicode/part2/line 17205 NormalizationTest.txt |
a֮̋̀̕b␊a֮̋̀̕b
|
21 B | |
| 005978 | unicode/part2/line 17206 NormalizationTest.txt |
à֮̌̕b␊à֮̌̕b␊à֮̌̕b
|
31 B | |
| 005979 | unicode/part2/line 17207 NormalizationTest.txt |
ǎ֮̀̕b␊ǎ֮̀̕b␊ǎ֮̀̕b
|
31 B | |
| 005980 | unicode/part2/line 17208 NormalizationTest.txt |
à֮̍̕b␊à֮̍̕b␊à֮̍̕b
|
31 B | |
| 005981 | unicode/part2/line 17209 NormalizationTest.txt |
a֮̍̀̕b␊a֮̍̀̕b
|
21 B | |
| 005982 | unicode/part2/line 17210 NormalizationTest.txt |
à֮̎̕b␊à֮̎̕b␊à֮̎̕b
|
31 B | |
| 005983 | unicode/part2/line 17211 NormalizationTest.txt |
a֮̎̀̕b␊a֮̎̀̕b
|
21 B | |
| 005984 | unicode/part2/line 17212 NormalizationTest.txt |
à֮̏̕b␊à֮̏̕b␊à֮̏̕b
|
31 B | |
| 005985 | unicode/part2/line 17213 NormalizationTest.txt |
ȁ֮̀̕b␊ȁ֮̀̕b␊ȁ֮̀̕b
|
31 B | |
| 005986 | unicode/part2/line 17214 NormalizationTest.txt |
à֮̐̕b␊à֮̐̕b␊à֮̐̕b
|
31 B | |
| 005987 | unicode/part2/line 17215 NormalizationTest.txt |
a֮̐̀̕b␊a֮̐̀̕b
|
21 B | |
| 005988 | unicode/part2/line 17216 NormalizationTest.txt |
à֮̑̕b␊à֮̑̕b␊à֮̑̕b
|
31 B | |
| 005989 | unicode/part2/line 17217 NormalizationTest.txt |
ȃ֮̀̕b␊ȃ֮̀̕b␊ȃ֮̀̕b
|
31 B | |
| 005990 | unicode/part2/line 17218 NormalizationTest.txt |
à֮̒̕b␊à֮̒̕b␊à֮̒̕b
|
31 B | |
| 005991 | unicode/part2/line 17219 NormalizationTest.txt |
a֮̒̀̕b␊a֮̒̀̕b
|
21 B | |
| 005992 | unicode/part2/line 17220 NormalizationTest.txt |
à֮̓̕b␊à֮̓̕b␊à֮̓̕b
|
31 B | |
| 005993 | unicode/part2/line 17221 NormalizationTest.txt |
a֮̓̀̕b␊a֮̓̀̕b
|
21 B | |
| 005994 | unicode/part2/line 17222 NormalizationTest.txt |
à֮̔̕b␊à֮̔̕b␊à֮̔̕b
|
31 B | |
| 005995 | unicode/part2/line 17223 NormalizationTest.txt |
a֮̔̀̕b␊a֮̔̀̕b
|
21 B | |
| 005996 | unicode/part2/line 17224 NormalizationTest.txt |
à̕̕͜b␊à̕̕͜b␊à̕̕͜b
|
31 B | |
| 005997 | unicode/part2/line 17225 NormalizationTest.txt |
à̕̕͜b␊à̕̕͜b␊à̕̕͜b
|
31 B | |
| 005998 | unicode/part2/line 17226 NormalizationTest.txt |
a᷺̖̖֚b␊a᷺̖̖֚b
|
23 B | |
| 005999 | unicode/part2/line 17227 NormalizationTest.txt |
a᷺̖̖֚b␊a᷺̖̖֚b
|
23 B | |
| 006000 | unicode/part2/line 17228 NormalizationTest.txt |
a᷺̖̗֚b␊a᷺̖̗֚b
|
23 B | |
| 006001 | unicode/part2/line 17229 NormalizationTest.txt |
a᷺̗̖֚b␊a᷺̗̖֚b
|
23 B | |
| 006002 | unicode/part2/line 17230 NormalizationTest.txt |
a᷺̖̘֚b␊a᷺̖̘֚b
|
23 B | |
| 006003 | unicode/part2/line 17231 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