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 |
|---|---|---|---|---|
| 007354 | unicode/part2/line 18582 NormalizationTest.txt |
à֮꣱̕b␊à֮꣱̕b␊à֮꣱̕b
|
34 B | |
| 007355 | unicode/part2/line 18583 NormalizationTest.txt |
a֮꣱̀̕b␊a֮꣱̀̕b
|
23 B | |
| 007356 | unicode/part2/line 18584 NormalizationTest.txt |
a᷺̖꤫֚b␊a᷺̖꤫֚b
|
25 B | |
| 007357 | unicode/part2/line 18585 NormalizationTest.txt |
a᷺꤫̖֚b␊a᷺꤫̖֚b
|
25 B | |
| 007358 | unicode/part2/line 18586 NormalizationTest.txt |
a᷺̖꤬֚b␊a᷺̖꤬֚b
|
25 B | |
| 007359 | unicode/part2/line 18587 NormalizationTest.txt |
a᷺꤬̖֚b␊a᷺꤬̖֚b
|
25 B | |
| 007360 | unicode/part2/line 18588 NormalizationTest.txt |
a᷺̖꤭֚b␊a᷺̖꤭֚b
|
25 B | |
| 007361 | unicode/part2/line 18589 NormalizationTest.txt |
a᷺꤭̖֚b␊a᷺꤭̖֚b
|
25 B | |
| 007362 | unicode/part2/line 18590 NormalizationTest.txt |
a゙्꥓ְb␊a゙्꥓ְb
|
27 B | |
| 007363 | unicode/part2/line 18591 NormalizationTest.txt |
a゙꥓्ְb␊a゙꥓्ְb
|
27 B | |
| 007364 | unicode/part2/line 18592 NormalizationTest.txt |
a𖿰़꦳゙b␊a𖿰़꦳゙b
|
31 B | |
| 007365 | unicode/part2/line 18593 NormalizationTest.txt |
a𖿰꦳़゙b␊a𖿰꦳़゙b
|
31 B | |
| 007366 | unicode/part2/line 18594 NormalizationTest.txt |
a゙्꧀ְb␊a゙्꧀ְb
|
27 B | |
| 007367 | unicode/part2/line 18595 NormalizationTest.txt |
a゙꧀्ְb␊a゙꧀्ְb
|
27 B | |
| 007368 | unicode/part2/line 18596 NormalizationTest.txt |
à֮ꪰ̕b␊à֮ꪰ̕b␊à֮ꪰ̕b
|
34 B | |
| 007369 | unicode/part2/line 18597 NormalizationTest.txt |
a֮ꪰ̀̕b␊a֮ꪰ̀̕b
|
23 B | |
| 007370 | unicode/part2/line 18598 NormalizationTest.txt |
à֮ꪲ̕b␊à֮ꪲ̕b␊à֮ꪲ̕b
|
34 B | |
| 007371 | unicode/part2/line 18599 NormalizationTest.txt |
a֮ꪲ̀̕b␊a֮ꪲ̀̕b
|
23 B | |
| 007372 | unicode/part2/line 18600 NormalizationTest.txt |
à֮ꪳ̕b␊à֮ꪳ̕b␊à֮ꪳ̕b
|
34 B | |
| 007373 | unicode/part2/line 18601 NormalizationTest.txt |
a֮ꪳ̀̕b␊a֮ꪳ̀̕b
|
23 B | |
| 007374 | unicode/part2/line 18602 NormalizationTest.txt |
a᷺̖ꪴ֚b␊a᷺̖ꪴ֚b
|
25 B | |
| 007375 | unicode/part2/line 18603 NormalizationTest.txt |
a᷺ꪴ̖֚b␊a᷺ꪴ̖֚b
|
25 B | |
| 007376 | unicode/part2/line 18604 NormalizationTest.txt |
à֮ꪷ̕b␊à֮ꪷ̕b␊à֮ꪷ̕b
|
34 B | |
| 007377 | unicode/part2/line 18605 NormalizationTest.txt |
a֮ꪷ̀̕b␊a֮ꪷ̀̕b
|
23 B | |
| 007378 | unicode/part2/line 18606 NormalizationTest.txt |
à֮ꪸ̕b␊à֮ꪸ̕b␊à֮ꪸ̕b
|
34 B | |
| 007379 | unicode/part2/line 18607 NormalizationTest.txt |
a֮ꪸ̀̕b␊a֮ꪸ̀̕b
|
23 B | |
| 007380 | unicode/part2/line 18608 NormalizationTest.txt |
à֮ꪾ̕b␊à֮ꪾ̕b␊à֮ꪾ̕b
|
34 B | |
| 007381 | unicode/part2/line 18609 NormalizationTest.txt |
a֮ꪾ̀̕b␊a֮ꪾ̀̕b
|
23 B | |
| 007382 | unicode/part2/line 18610 NormalizationTest.txt |
à֮꪿̕b␊à֮꪿̕b␊à֮꪿̕b
|
34 B | |
| 007383 | unicode/part2/line 18611 NormalizationTest.txt |
a֮꪿̀̕b␊a֮꪿̀̕b
|
23 B | |
| 007384 | unicode/part2/line 18612 NormalizationTest.txt |
à֮꫁̕b␊à֮꫁̕b␊à֮꫁̕b
|
34 B | |
| 007385 | unicode/part2/line 18613 NormalizationTest.txt |
a֮꫁̀̕b␊a֮꫁̀̕b
|
23 B | |
| 007386 | unicode/part2/line 18614 NormalizationTest.txt |
a゙्꫶ְb␊a゙्꫶ְb
|
27 B | |
| 007387 | unicode/part2/line 18615 NormalizationTest.txt |
a゙꫶्ְb␊a゙꫶्ְb
|
27 B | |
| 007388 | unicode/part2/line 18616 NormalizationTest.txt |
a゙्꯭ְb␊a゙्꯭ְb
|
27 B | |
| 007389 | unicode/part2/line 18617 NormalizationTest.txt |
a゙꯭्ְb␊a゙꯭्ְb
|
27 B | |
| 007390 | unicode/part2/line 18618 NormalizationTest.txt |
aׂﬞﬞًb␊aׂﬞﬞًb
|
25 B | |
| 007391 | unicode/part2/line 18619 NormalizationTest.txt |
aׂﬞﬞًb␊aׂﬞﬞًb
|
25 B | |
| 007392 | unicode/part2/line 18620 NormalizationTest.txt |
à֮︠̕b␊à֮︠̕b␊à֮︠̕b
|
34 B | |
| 007393 | unicode/part2/line 18621 NormalizationTest.txt |
a֮︠̀̕b␊a֮︠̀̕b
|
23 B | |
| 007394 | unicode/part2/line 18622 NormalizationTest.txt |
à֮︡̕b␊à֮︡̕b␊à֮︡̕b
|
34 B | |
| 007395 | unicode/part2/line 18623 NormalizationTest.txt |
a֮︡̀̕b␊a֮︡̀̕b
|
23 B | |
| 007396 | unicode/part2/line 18624 NormalizationTest.txt |
à֮︢̕b␊à֮︢̕b␊à֮︢̕b
|
34 B | |
| 007397 | unicode/part2/line 18625 NormalizationTest.txt |
a֮︢̀̕b␊a֮︢̀̕b
|
23 B | |
| 007398 | unicode/part2/line 18626 NormalizationTest.txt |
à֮︣̕b␊à֮︣̕b␊à֮︣̕b
|
34 B | |
| 007399 | unicode/part2/line 18627 NormalizationTest.txt |
a֮︣̀̕b␊a֮︣̀̕b
|
23 B | |
| 007400 | unicode/part2/line 18628 NormalizationTest.txt |
à֮︤̕b␊à֮︤̕b␊à֮︤̕b
|
34 B | |
| 007401 | unicode/part2/line 18629 NormalizationTest.txt |
a֮︤̀̕b␊a֮︤̀̕b
|
23 B | |
| 007402 | unicode/part2/line 18630 NormalizationTest.txt |
à֮︥̕b␊à֮︥̕b␊à֮︥̕b
|
34 B | |
| 007403 | unicode/part2/line 18631 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