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 |
|---|---|---|---|---|
| 007104 | unicode/part2/line 18332 NormalizationTest.txt |
à֮ᷬ̕b␊à֮ᷬ̕b␊à֮ᷬ̕b
|
34 B | |
| 007105 | unicode/part2/line 18333 NormalizationTest.txt |
a֮ᷬ̀̕b␊a֮ᷬ̀̕b
|
23 B | |
| 007106 | unicode/part2/line 18334 NormalizationTest.txt |
à֮ᷭ̕b␊à֮ᷭ̕b␊à֮ᷭ̕b
|
34 B | |
| 007107 | unicode/part2/line 18335 NormalizationTest.txt |
a֮ᷭ̀̕b␊a֮ᷭ̀̕b
|
23 B | |
| 007108 | unicode/part2/line 18336 NormalizationTest.txt |
à֮ᷮ̕b␊à֮ᷮ̕b␊à֮ᷮ̕b
|
34 B | |
| 007109 | unicode/part2/line 18337 NormalizationTest.txt |
a֮ᷮ̀̕b␊a֮ᷮ̀̕b
|
23 B | |
| 007110 | unicode/part2/line 18338 NormalizationTest.txt |
à֮ᷯ̕b␊à֮ᷯ̕b␊à֮ᷯ̕b
|
34 B | |
| 007111 | unicode/part2/line 18339 NormalizationTest.txt |
a֮ᷯ̀̕b␊a֮ᷯ̀̕b
|
23 B | |
| 007112 | unicode/part2/line 18340 NormalizationTest.txt |
à֮ᷰ̕b␊à֮ᷰ̕b␊à֮ᷰ̕b
|
34 B | |
| 007113 | unicode/part2/line 18341 NormalizationTest.txt |
a֮ᷰ̀̕b␊a֮ᷰ̀̕b
|
23 B | |
| 007114 | unicode/part2/line 18342 NormalizationTest.txt |
à֮ᷱ̕b␊à֮ᷱ̕b␊à֮ᷱ̕b
|
34 B | |
| 007115 | unicode/part2/line 18343 NormalizationTest.txt |
a֮ᷱ̀̕b␊a֮ᷱ̀̕b
|
23 B | |
| 007116 | unicode/part2/line 18344 NormalizationTest.txt |
à֮ᷲ̕b␊à֮ᷲ̕b␊à֮ᷲ̕b
|
34 B | |
| 007117 | unicode/part2/line 18345 NormalizationTest.txt |
a֮ᷲ̀̕b␊a֮ᷲ̀̕b
|
23 B | |
| 007118 | unicode/part2/line 18346 NormalizationTest.txt |
à֮ᷳ̕b␊à֮ᷳ̕b␊à֮ᷳ̕b
|
34 B | |
| 007119 | unicode/part2/line 18347 NormalizationTest.txt |
a֮ᷳ̀̕b␊a֮ᷳ̀̕b
|
23 B | |
| 007120 | unicode/part2/line 18348 NormalizationTest.txt |
à֮ᷴ̕b␊à֮ᷴ̕b␊à֮ᷴ̕b
|
34 B | |
| 007121 | unicode/part2/line 18349 NormalizationTest.txt |
a֮ᷴ̀̕b␊a֮ᷴ̀̕b
|
23 B | |
| 007122 | unicode/part2/line 18350 NormalizationTest.txt |
à֮᷵̕b␊à֮᷵̕b␊à֮᷵̕b
|
34 B | |
| 007123 | unicode/part2/line 18351 NormalizationTest.txt |
a֮᷵̀̕b␊a֮᷵̀̕b
|
23 B | |
| 007124 | unicode/part2/line 18352 NormalizationTest.txt |
à̕᷶͜b␊à̕᷶͜b␊à̕᷶͜b
|
34 B | |
| 007125 | unicode/part2/line 18353 NormalizationTest.txt |
à᷶̕͜b␊à᷶̕͜b␊à᷶̕͜b
|
34 B | |
| 007126 | unicode/part2/line 18354 NormalizationTest.txt |
à𝅭֮᷷b␊à𝅭֮᷷b␊à𝅭֮᷷b
|
40 B | |
| 007127 | unicode/part2/line 18355 NormalizationTest.txt |
à𝅭᷷֮b␊à𝅭᷷֮b␊à𝅭᷷֮b
|
40 B | |
| 007128 | unicode/part2/line 18356 NormalizationTest.txt |
à𝅭֮᷸b␊à𝅭֮᷸b␊à𝅭֮᷸b
|
40 B | |
| 007129 | unicode/part2/line 18357 NormalizationTest.txt |
à𝅭᷸֮b␊à𝅭᷸֮b␊à𝅭᷸֮b
|
40 B | |
| 007130 | unicode/part2/line 18358 NormalizationTest.txt |
a᷺̖᷹֚b␊a᷺̖᷹֚b
|
25 B | |
| 007131 | unicode/part2/line 18359 NormalizationTest.txt |
a᷺᷹̖֚b␊a᷺᷹̖֚b
|
25 B | |
| 007132 | unicode/part2/line 18360 NormalizationTest.txt |
a̛᷺᷺̖b␊a̛᷺᷺̖b
|
25 B | |
| 007133 | unicode/part2/line 18361 NormalizationTest.txt |
a̛᷺᷺̖b␊a̛᷺᷺̖b
|
25 B | |
| 007134 | unicode/part2/line 18362 NormalizationTest.txt |
à֮᷻̕b␊à֮᷻̕b␊à֮᷻̕b
|
34 B | |
| 007135 | unicode/part2/line 18363 NormalizationTest.txt |
a֮᷻̀̕b␊a֮᷻̀̕b
|
23 B | |
| 007136 | unicode/part2/line 18364 NormalizationTest.txt |
a̕͜᷼͝b␊a̕͜᷼͝b
|
23 B | |
| 007137 | unicode/part2/line 18365 NormalizationTest.txt |
a̕᷼͜͝b␊a̕᷼͜͝b
|
23 B | |
| 007138 | unicode/part2/line 18366 NormalizationTest.txt |
a᷺̖᷽֚b␊a᷺̖᷽֚b
|
25 B | |
| 007139 | unicode/part2/line 18367 NormalizationTest.txt |
a᷺᷽̖֚b␊a᷺᷽̖֚b
|
25 B | |
| 007140 | unicode/part2/line 18368 NormalizationTest.txt |
à֮᷾̕b␊à֮᷾̕b␊à֮᷾̕b
|
34 B | |
| 007141 | unicode/part2/line 18369 NormalizationTest.txt |
a֮᷾̀̕b␊a֮᷾̀̕b
|
23 B | |
| 007142 | unicode/part2/line 18370 NormalizationTest.txt |
a᷺̖᷿֚b␊a᷺̖᷿֚b
|
25 B | |
| 007143 | unicode/part2/line 18371 NormalizationTest.txt |
a᷺᷿̖֚b␊a᷺᷿̖֚b
|
25 B | |
| 007144 | unicode/part2/line 18372 NormalizationTest.txt |
à֮⃐̕b␊à֮⃐̕b␊à֮⃐̕b
|
34 B | |
| 007145 | unicode/part2/line 18373 NormalizationTest.txt |
a֮⃐̀̕b␊a֮⃐̀̕b
|
23 B | |
| 007146 | unicode/part2/line 18374 NormalizationTest.txt |
à֮⃑̕b␊à֮⃑̕b␊à֮⃑̕b
|
34 B | |
| 007147 | unicode/part2/line 18375 NormalizationTest.txt |
a֮⃑̀̕b␊a֮⃑̀̕b
|
23 B | |
| 007148 | unicode/part2/line 18376 NormalizationTest.txt |
a̴⃒𖿰b␊a̴⃒𖿰b
|
23 B | |
| 007149 | unicode/part2/line 18377 NormalizationTest.txt |
a⃒̴𖿰b␊a⃒̴𖿰b
|
23 B | |
| 007150 | unicode/part2/line 18378 NormalizationTest.txt |
a̴⃓𖿰b␊a̴⃓𖿰b
|
23 B | |
| 007151 | unicode/part2/line 18379 NormalizationTest.txt |
a⃓̴𖿰b␊a⃓̴𖿰b
|
23 B | |
| 007152 | unicode/part2/line 18380 NormalizationTest.txt |
à֮⃔̕b␊à֮⃔̕b␊à֮⃔̕b
|
34 B | |
| 007153 | unicode/part2/line 18381 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