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
All 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 006750 | unicode/part2/line 17978 NormalizationTest.txt |
a゙्྄ְb␊a゙्྄ְb
|
27 B | |
| 006751 | unicode/part2/line 17979 NormalizationTest.txt |
a゙྄्ְb␊a゙྄्ְb
|
27 B | |
| 006752 | unicode/part2/line 17980 NormalizationTest.txt |
à֮྆̕b␊à֮྆̕b␊à֮྆̕b
|
34 B | |
| 006753 | unicode/part2/line 17981 NormalizationTest.txt |
a֮྆̀̕b␊a֮྆̀̕b
|
23 B | |
| 006754 | unicode/part2/line 17982 NormalizationTest.txt |
à֮྇̕b␊à֮྇̕b␊à֮྇̕b
|
34 B | |
| 006755 | unicode/part2/line 17983 NormalizationTest.txt |
a֮྇̀̕b␊a֮྇̀̕b
|
23 B | |
| 006756 | unicode/part2/line 17984 NormalizationTest.txt |
a᷺̖࿆֚b␊a᷺̖࿆֚b
|
25 B | |
| 006757 | unicode/part2/line 17985 NormalizationTest.txt |
a᷺࿆̖֚b␊a᷺࿆̖֚b
|
25 B | |
| 006758 | unicode/part2/line 17986 NormalizationTest.txt |
a𖿰़့゙b␊a𖿰़့゙b
|
31 B | |
| 006759 | unicode/part2/line 17987 NormalizationTest.txt |
a𖿰့़゙b␊a𖿰့़゙b
|
31 B | |
| 006760 | unicode/part2/line 17988 NormalizationTest.txt |
a゙्္ְb␊a゙्္ְb
|
27 B | |
| 006761 | unicode/part2/line 17989 NormalizationTest.txt |
a゙္्ְb␊a゙္्ְb
|
27 B | |
| 006762 | unicode/part2/line 17990 NormalizationTest.txt |
a゙्်ְb␊a゙्်ְb
|
27 B | |
| 006763 | unicode/part2/line 17991 NormalizationTest.txt |
a゙်्ְb␊a゙်्ְb
|
27 B | |
| 006764 | unicode/part2/line 17992 NormalizationTest.txt |
a᷺̖ႍ֚b␊a᷺̖ႍ֚b
|
25 B | |
| 006765 | unicode/part2/line 17993 NormalizationTest.txt |
a᷺ႍ̖֚b␊a᷺ႍ̖֚b
|
25 B | |
| 006766 | unicode/part2/line 17994 NormalizationTest.txt |
à֮፝̕b␊à֮፝̕b␊à֮፝̕b
|
34 B | |
| 006767 | unicode/part2/line 17995 NormalizationTest.txt |
a֮፝̀̕b␊a֮፝̀̕b
|
23 B | |
| 006768 | unicode/part2/line 17996 NormalizationTest.txt |
à֮፞̕b␊à֮፞̕b␊à֮፞̕b
|
34 B | |
| 006769 | unicode/part2/line 17997 NormalizationTest.txt |
a֮፞̀̕b␊a֮፞̀̕b
|
23 B | |
| 006770 | unicode/part2/line 17998 NormalizationTest.txt |
à֮፟̕b␊à֮፟̕b␊à֮፟̕b
|
34 B | |
| 006771 | unicode/part2/line 17999 NormalizationTest.txt |
a֮፟̀̕b␊a֮፟̀̕b
|
23 B | |
| 006772 | unicode/part2/line 18000 NormalizationTest.txt |
a゙्᜔ְb␊a゙्᜔ְb
|
27 B | |
| 006773 | unicode/part2/line 18001 NormalizationTest.txt |
a゙᜔्ְb␊a゙᜔्ְb
|
27 B | |
| 006774 | unicode/part2/line 18002 NormalizationTest.txt |
a゙्᜕ְb␊a゙्᜕ְb
|
27 B | |
| 006775 | unicode/part2/line 18003 NormalizationTest.txt |
a゙᜕्ְb␊a゙᜕्ְb
|
27 B | |
| 006776 | unicode/part2/line 18004 NormalizationTest.txt |
a゙्᜴ְb␊a゙्᜴ְb
|
27 B | |
| 006777 | unicode/part2/line 18005 NormalizationTest.txt |
a゙᜴्ְb␊a゙᜴्ְb
|
27 B | |
| 006778 | unicode/part2/line 18006 NormalizationTest.txt |
a゙्្ְb␊a゙्្ְb
|
27 B | |
| 006779 | unicode/part2/line 18007 NormalizationTest.txt |
a゙្्ְb␊a゙្्ְb
|
27 B | |
| 006780 | unicode/part2/line 18008 NormalizationTest.txt |
à֮៝̕b␊à֮៝̕b␊à֮៝̕b
|
34 B | |
| 006781 | unicode/part2/line 18009 NormalizationTest.txt |
a֮៝̀̕b␊a֮៝̀̕b
|
23 B | |
| 006782 | unicode/part2/line 18010 NormalizationTest.txt |
à𝅭֮ᢩb␊à𝅭֮ᢩb␊à𝅭֮ᢩb
|
40 B | |
| 006783 | unicode/part2/line 18011 NormalizationTest.txt |
à𝅭ᢩ֮b␊à𝅭ᢩ֮b␊à𝅭ᢩ֮b
|
40 B | |
| 006784 | unicode/part2/line 18012 NormalizationTest.txt |
a̖֚᤹〮b␊a̖֚᤹〮b
|
25 B | |
| 006785 | unicode/part2/line 18013 NormalizationTest.txt |
a̖᤹֚〮b␊a̖᤹֚〮b
|
25 B | |
| 006786 | unicode/part2/line 18014 NormalizationTest.txt |
à֮᤺̕b␊à֮᤺̕b␊à֮᤺̕b
|
34 B | |
| 006787 | unicode/part2/line 18015 NormalizationTest.txt |
a֮᤺̀̕b␊a֮᤺̀̕b
|
23 B | |
| 006788 | unicode/part2/line 18016 NormalizationTest.txt |
a᷺̖᤻֚b␊a᷺̖᤻֚b
|
25 B | |
| 006789 | unicode/part2/line 18017 NormalizationTest.txt |
a᷺᤻̖֚b␊a᷺᤻̖֚b
|
25 B | |
| 006790 | unicode/part2/line 18018 NormalizationTest.txt |
à֮ᨗ̕b␊à֮ᨗ̕b␊à֮ᨗ̕b
|
34 B | |
| 006791 | unicode/part2/line 18019 NormalizationTest.txt |
a֮ᨗ̀̕b␊a֮ᨗ̀̕b
|
23 B | |
| 006792 | unicode/part2/line 18020 NormalizationTest.txt |
a᷺̖ᨘ֚b␊a᷺̖ᨘ֚b
|
25 B | |
| 006793 | unicode/part2/line 18021 NormalizationTest.txt |
a᷺ᨘ̖֚b␊a᷺ᨘ̖֚b
|
25 B | |
| 006794 | unicode/part2/line 18022 NormalizationTest.txt |
a゙्᩠ְb␊a゙्᩠ְb
|
27 B | |
| 006795 | unicode/part2/line 18023 NormalizationTest.txt |
a゙᩠्ְb␊a゙᩠्ְb
|
27 B | |
| 006796 | unicode/part2/line 18024 NormalizationTest.txt |
à֮᩵̕b␊à֮᩵̕b␊à֮᩵̕b
|
34 B | |
| 006797 | unicode/part2/line 18025 NormalizationTest.txt |
a֮᩵̀̕b␊a֮᩵̀̕b
|
23 B | |
| 006798 | unicode/part2/line 18026 NormalizationTest.txt |
à֮᩶̕b␊à֮᩶̕b␊à֮᩶̕b
|
34 B | |
| 006799 | unicode/part2/line 18027 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