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 |
|---|---|---|---|---|
| 006800 | unicode/part2/line 18028 NormalizationTest.txt |
à֮᩷̕b␊à֮᩷̕b␊à֮᩷̕b
|
34 B | |
| 006801 | unicode/part2/line 18029 NormalizationTest.txt |
a֮᩷̀̕b␊a֮᩷̀̕b
|
23 B | |
| 006802 | unicode/part2/line 18030 NormalizationTest.txt |
à֮᩸̕b␊à֮᩸̕b␊à֮᩸̕b
|
34 B | |
| 006803 | unicode/part2/line 18031 NormalizationTest.txt |
a֮᩸̀̕b␊a֮᩸̀̕b
|
23 B | |
| 006804 | unicode/part2/line 18032 NormalizationTest.txt |
à֮᩹̕b␊à֮᩹̕b␊à֮᩹̕b
|
34 B | |
| 006805 | unicode/part2/line 18033 NormalizationTest.txt |
a֮᩹̀̕b␊a֮᩹̀̕b
|
23 B | |
| 006806 | unicode/part2/line 18034 NormalizationTest.txt |
à֮᩺̕b␊à֮᩺̕b␊à֮᩺̕b
|
34 B | |
| 006807 | unicode/part2/line 18035 NormalizationTest.txt |
a֮᩺̀̕b␊a֮᩺̀̕b
|
23 B | |
| 006808 | unicode/part2/line 18036 NormalizationTest.txt |
à֮᩻̕b␊à֮᩻̕b␊à֮᩻̕b
|
34 B | |
| 006809 | unicode/part2/line 18037 NormalizationTest.txt |
a֮᩻̀̕b␊a֮᩻̀̕b
|
23 B | |
| 006810 | unicode/part2/line 18038 NormalizationTest.txt |
à֮᩼̕b␊à֮᩼̕b␊à֮᩼̕b
|
34 B | |
| 006811 | unicode/part2/line 18039 NormalizationTest.txt |
a֮᩼̀̕b␊a֮᩼̀̕b
|
23 B | |
| 006812 | unicode/part2/line 18040 NormalizationTest.txt |
a᷺̖᩿֚b␊a᷺̖᩿֚b
|
25 B | |
| 006813 | unicode/part2/line 18041 NormalizationTest.txt |
a᷺᩿̖֚b␊a᷺᩿̖֚b
|
25 B | |
| 006814 | unicode/part2/line 18042 NormalizationTest.txt |
à֮᪰̕b␊à֮᪰̕b␊à֮᪰̕b
|
34 B | |
| 006815 | unicode/part2/line 18043 NormalizationTest.txt |
a֮᪰̀̕b␊a֮᪰̀̕b
|
23 B | |
| 006816 | unicode/part2/line 18044 NormalizationTest.txt |
à֮᪱̕b␊à֮᪱̕b␊à֮᪱̕b
|
34 B | |
| 006817 | unicode/part2/line 18045 NormalizationTest.txt |
a֮᪱̀̕b␊a֮᪱̀̕b
|
23 B | |
| 006818 | unicode/part2/line 18046 NormalizationTest.txt |
à֮᪲̕b␊à֮᪲̕b␊à֮᪲̕b
|
34 B | |
| 006819 | unicode/part2/line 18047 NormalizationTest.txt |
a֮᪲̀̕b␊a֮᪲̀̕b
|
23 B | |
| 006820 | unicode/part2/line 18048 NormalizationTest.txt |
à֮᪳̕b␊à֮᪳̕b␊à֮᪳̕b
|
34 B | |
| 006821 | unicode/part2/line 18049 NormalizationTest.txt |
a֮᪳̀̕b␊a֮᪳̀̕b
|
23 B | |
| 006822 | unicode/part2/line 18050 NormalizationTest.txt |
à֮᪴̕b␊à֮᪴̕b␊à֮᪴̕b
|
34 B | |
| 006823 | unicode/part2/line 18051 NormalizationTest.txt |
a֮᪴̀̕b␊a֮᪴̀̕b
|
23 B | |
| 006824 | unicode/part2/line 18052 NormalizationTest.txt |
a᷺̖᪵֚b␊a᷺̖᪵֚b
|
25 B | |
| 006825 | unicode/part2/line 18053 NormalizationTest.txt |
a᷺᪵̖֚b␊a᷺᪵̖֚b
|
25 B | |
| 006826 | unicode/part2/line 18054 NormalizationTest.txt |
a᷺̖᪶֚b␊a᷺̖᪶֚b
|
25 B | |
| 006827 | unicode/part2/line 18055 NormalizationTest.txt |
a᷺᪶̖֚b␊a᷺᪶̖֚b
|
25 B | |
| 006828 | unicode/part2/line 18056 NormalizationTest.txt |
a᷺̖᪷֚b␊a᷺̖᪷֚b
|
25 B | |
| 006829 | unicode/part2/line 18057 NormalizationTest.txt |
a᷺᪷̖֚b␊a᷺᪷̖֚b
|
25 B | |
| 006830 | unicode/part2/line 18058 NormalizationTest.txt |
a᷺̖᪸֚b␊a᷺̖᪸֚b
|
25 B | |
| 006831 | unicode/part2/line 18059 NormalizationTest.txt |
a᷺᪸̖֚b␊a᷺᪸̖֚b
|
25 B | |
| 006832 | unicode/part2/line 18060 NormalizationTest.txt |
a᷺̖᪹֚b␊a᷺̖᪹֚b
|
25 B | |
| 006833 | unicode/part2/line 18061 NormalizationTest.txt |
a᷺᪹̖֚b␊a᷺᪹̖֚b
|
25 B | |
| 006834 | unicode/part2/line 18062 NormalizationTest.txt |
a᷺̖᪺֚b␊a᷺̖᪺֚b
|
25 B | |
| 006835 | unicode/part2/line 18063 NormalizationTest.txt |
a᷺᪺̖֚b␊a᷺᪺̖֚b
|
25 B | |
| 006836 | unicode/part2/line 18064 NormalizationTest.txt |
à֮᪻̕b␊à֮᪻̕b␊à֮᪻̕b
|
34 B | |
| 006837 | unicode/part2/line 18065 NormalizationTest.txt |
a֮᪻̀̕b␊a֮᪻̀̕b
|
23 B | |
| 006838 | unicode/part2/line 18066 NormalizationTest.txt |
à֮᪼̕b␊à֮᪼̕b␊à֮᪼̕b
|
34 B | |
| 006839 | unicode/part2/line 18067 NormalizationTest.txt |
a֮᪼̀̕b␊a֮᪼̀̕b
|
23 B | |
| 006840 | unicode/part2/line 18068 NormalizationTest.txt |
a᷺̖᪽֚b␊a᷺̖᪽֚b
|
25 B | |
| 006841 | unicode/part2/line 18069 NormalizationTest.txt |
a᷺᪽̖֚b␊a᷺᪽̖֚b
|
25 B | |
| 006842 | unicode/part2/line 18070 NormalizationTest.txt |
a᷺̖ᪿ֚b␊a᷺̖ᪿ֚b
|
25 B | |
| 006843 | unicode/part2/line 18071 NormalizationTest.txt |
a᷺ᪿ̖֚b␊a᷺ᪿ̖֚b
|
25 B | |
| 006844 | unicode/part2/line 18072 NormalizationTest.txt |
a᷺̖ᫀ֚b␊a᷺̖ᫀ֚b
|
25 B | |
| 006845 | unicode/part2/line 18073 NormalizationTest.txt |
a᷺ᫀ̖֚b␊a᷺ᫀ̖֚b
|
25 B | |
| 006846 | unicode/part2/line 18074 NormalizationTest.txt |
à֮᫁̕b␊à֮᫁̕b␊à֮᫁̕b
|
34 B | |
| 006847 | unicode/part2/line 18075 NormalizationTest.txt |
a֮᫁̀̕b␊a֮᫁̀̕b
|
23 B | |
| 006848 | unicode/part2/line 18076 NormalizationTest.txt |
à֮᫂̕b␊à֮᫂̕b␊à֮᫂̕b
|
34 B | |
| 006849 | unicode/part2/line 18077 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