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 |
|---|---|---|---|---|
| 006154 | unicode/part2/line 17382 NormalizationTest.txt |
à֮ͥ̕b␊à֮ͥ̕b␊à֮ͥ̕b
|
31 B | |
| 006155 | unicode/part2/line 17383 NormalizationTest.txt |
a֮ͥ̀̕b␊a֮ͥ̀̕b
|
21 B | |
| 006156 | unicode/part2/line 17384 NormalizationTest.txt |
à֮ͦ̕b␊à֮ͦ̕b␊à֮ͦ̕b
|
31 B | |
| 006157 | unicode/part2/line 17385 NormalizationTest.txt |
a֮ͦ̀̕b␊a֮ͦ̀̕b
|
21 B | |
| 006158 | unicode/part2/line 17386 NormalizationTest.txt |
à֮ͧ̕b␊à֮ͧ̕b␊à֮ͧ̕b
|
31 B | |
| 006159 | unicode/part2/line 17387 NormalizationTest.txt |
a֮ͧ̀̕b␊a֮ͧ̀̕b
|
21 B | |
| 006160 | unicode/part2/line 17388 NormalizationTest.txt |
à֮ͨ̕b␊à֮ͨ̕b␊à֮ͨ̕b
|
31 B | |
| 006161 | unicode/part2/line 17389 NormalizationTest.txt |
a֮ͨ̀̕b␊a֮ͨ̀̕b
|
21 B | |
| 006162 | unicode/part2/line 17390 NormalizationTest.txt |
à֮ͩ̕b␊à֮ͩ̕b␊à֮ͩ̕b
|
31 B | |
| 006163 | unicode/part2/line 17391 NormalizationTest.txt |
a֮ͩ̀̕b␊a֮ͩ̀̕b
|
21 B | |
| 006164 | unicode/part2/line 17392 NormalizationTest.txt |
à֮ͪ̕b␊à֮ͪ̕b␊à֮ͪ̕b
|
31 B | |
| 006165 | unicode/part2/line 17393 NormalizationTest.txt |
a֮ͪ̀̕b␊a֮ͪ̀̕b
|
21 B | |
| 006166 | unicode/part2/line 17394 NormalizationTest.txt |
à֮ͫ̕b␊à֮ͫ̕b␊à֮ͫ̕b
|
31 B | |
| 006167 | unicode/part2/line 17395 NormalizationTest.txt |
a֮ͫ̀̕b␊a֮ͫ̀̕b
|
21 B | |
| 006168 | unicode/part2/line 17396 NormalizationTest.txt |
à֮ͬ̕b␊à֮ͬ̕b␊à֮ͬ̕b
|
31 B | |
| 006169 | unicode/part2/line 17397 NormalizationTest.txt |
a֮ͬ̀̕b␊a֮ͬ̀̕b
|
21 B | |
| 006170 | unicode/part2/line 17398 NormalizationTest.txt |
à֮ͭ̕b␊à֮ͭ̕b␊à֮ͭ̕b
|
31 B | |
| 006171 | unicode/part2/line 17399 NormalizationTest.txt |
a֮ͭ̀̕b␊a֮ͭ̀̕b
|
21 B | |
| 006172 | unicode/part2/line 17400 NormalizationTest.txt |
à֮ͮ̕b␊à֮ͮ̕b␊à֮ͮ̕b
|
31 B | |
| 006173 | unicode/part2/line 17401 NormalizationTest.txt |
a֮ͮ̀̕b␊a֮ͮ̀̕b
|
21 B | |
| 006174 | unicode/part2/line 17402 NormalizationTest.txt |
à֮ͯ̕b␊à֮ͯ̕b␊à֮ͯ̕b
|
31 B | |
| 006175 | unicode/part2/line 17403 NormalizationTest.txt |
a֮ͯ̀̕b␊a֮ͯ̀̕b
|
21 B | |
| 006176 | unicode/part2/line 17404 NormalizationTest.txt |
à֮҃̕b␊à֮҃̕b␊à֮҃̕b
|
31 B | |
| 006177 | unicode/part2/line 17405 NormalizationTest.txt |
a֮҃̀̕b␊a֮҃̀̕b
|
21 B | |
| 006178 | unicode/part2/line 17406 NormalizationTest.txt |
à֮҄̕b␊à֮҄̕b␊à֮҄̕b
|
31 B | |
| 006179 | unicode/part2/line 17407 NormalizationTest.txt |
a֮҄̀̕b␊a֮҄̀̕b
|
21 B | |
| 006180 | unicode/part2/line 17408 NormalizationTest.txt |
à֮҅̕b␊à֮҅̕b␊à֮҅̕b
|
31 B | |
| 006181 | unicode/part2/line 17409 NormalizationTest.txt |
a֮҅̀̕b␊a֮҅̀̕b
|
21 B | |
| 006182 | unicode/part2/line 17410 NormalizationTest.txt |
à֮҆̕b␊à֮҆̕b␊à֮҆̕b
|
31 B | |
| 006183 | unicode/part2/line 17411 NormalizationTest.txt |
a֮҆̀̕b␊a֮҆̀̕b
|
21 B | |
| 006184 | unicode/part2/line 17412 NormalizationTest.txt |
à֮҇̕b␊à֮҇̕b␊à֮҇̕b
|
31 B | |
| 006185 | unicode/part2/line 17413 NormalizationTest.txt |
a֮҇̀̕b␊a֮҇̀̕b
|
21 B | |
| 006186 | unicode/part2/line 17414 NormalizationTest.txt |
a᷺̖֑֚b␊a᷺̖֑֚b
|
23 B | |
| 006187 | unicode/part2/line 17415 NormalizationTest.txt |
a᷺֑̖֚b␊a᷺֑̖֚b
|
23 B | |
| 006188 | unicode/part2/line 17416 NormalizationTest.txt |
à֮֒̕b␊à֮֒̕b␊à֮֒̕b
|
31 B | |
| 006189 | unicode/part2/line 17417 NormalizationTest.txt |
a֮֒̀̕b␊a֮֒̀̕b
|
21 B | |
| 006190 | unicode/part2/line 17418 NormalizationTest.txt |
à֮֓̕b␊à֮֓̕b␊à֮֓̕b
|
31 B | |
| 006191 | unicode/part2/line 17419 NormalizationTest.txt |
a֮֓̀̕b␊a֮֓̀̕b
|
21 B | |
| 006192 | unicode/part2/line 17420 NormalizationTest.txt |
à֮֔̕b␊à֮֔̕b␊à֮֔̕b
|
31 B | |
| 006193 | unicode/part2/line 17421 NormalizationTest.txt |
a֮֔̀̕b␊a֮֔̀̕b
|
21 B | |
| 006194 | unicode/part2/line 17422 NormalizationTest.txt |
à֮֕̕b␊à֮֕̕b␊à֮֕̕b
|
31 B | |
| 006195 | unicode/part2/line 17423 NormalizationTest.txt |
a֮֕̀̕b␊a֮֕̀̕b
|
21 B | |
| 006196 | unicode/part2/line 17424 NormalizationTest.txt |
a᷺̖֖֚b␊a᷺̖֖֚b
|
23 B | |
| 006197 | unicode/part2/line 17425 NormalizationTest.txt |
a᷺֖̖֚b␊a᷺֖̖֚b
|
23 B | |
| 006198 | unicode/part2/line 17426 NormalizationTest.txt |
à֮֗̕b␊à֮֗̕b␊à֮֗̕b
|
31 B | |
| 006199 | unicode/part2/line 17427 NormalizationTest.txt |
a֮֗̀̕b␊a֮֗̀̕b
|
21 B | |
| 006200 | unicode/part2/line 17428 NormalizationTest.txt |
à֮֘̕b␊à֮֘̕b␊à֮֘̕b
|
31 B | |
| 006201 | unicode/part2/line 17429 NormalizationTest.txt |
a֮֘̀̕b␊a֮֘̀̕b
|
21 B | |
| 006202 | unicode/part2/line 17430 NormalizationTest.txt |
à֮֙̕b␊à֮֙̕b␊à֮֙̕b
|
31 B | |
| 006203 | unicode/part2/line 17431 NormalizationTest.txt |
a֮֙̀̕b␊a֮֙̀̕b
|
21 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