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 |
|---|---|---|---|---|
| 008800 | unicode/part4/line 20042 NormalizationTest.txt |
๐ตชโ๐ตชโ๐ตช
|
26 B | |
| 008801 | unicode/part4/line 20043 NormalizationTest.txt |
๐ตชโ๐ตชโ๐ตช
|
26 B | |
| 008802 | unicode/part4/line 20044 NormalizationTest.txt |
๐
๐
ฅ๐
ฎโ๐
๐
ฅ๐
ฎ
|
21 B | |
| 008803 | unicode/part4/line 20045 NormalizationTest.txt |
๐
๐
ฅ๐
ฏโ๐
๐
ฅ๐
ฏ
|
21 B | |
| 008804 | unicode/part4/line 20046 NormalizationTest.txt |
๐
๐
ฅ๐
ฐโ๐
๐
ฅ๐
ฐ
|
21 B | |
| 008805 | unicode/part4/line 20047 NormalizationTest.txt |
๐
๐
ฅ๐
ฑโ๐
๐
ฅ๐
ฑ
|
21 B | |
| 008806 | unicode/part4/line 20048 NormalizationTest.txt |
๐
๐
ฅ๐
ฒโ๐
๐
ฅ๐
ฒ
|
21 B | |
| 008807 | unicode/part4/line 20049 NormalizationTest.txt |
๐น๐
ฅ๐
ฎโ๐น๐
ฅ๐
ฎ
|
21 B | |
| 008808 | unicode/part4/line 20050 NormalizationTest.txt |
๐บ๐
ฅ๐
ฎโ๐บ๐
ฅ๐
ฎ
|
21 B | |
| 008809 | unicode/part4/line 20051 NormalizationTest.txt |
๐น๐
ฅ๐
ฏโ๐น๐
ฅ๐
ฏ
|
21 B | |
| 008810 | unicode/part4/line 20052 NormalizationTest.txt |
๐บ๐
ฅ๐
ฏโ๐บ๐
ฅ๐
ฏ
|
21 B | |
| 008811 | unicode/part5/line 20056 NormalizationTest.txt |
๐๐ธโ๐๐ธโ๐๐ธ
|
30 B | |
| 008812 | unicode/part5/line 20057 NormalizationTest.txt |
๐
๐ธโ๐
๐ธโ๐
๐ธ
|
30 B | |
| 008813 | unicode/part5/line 20058 NormalizationTest.txt |
๐๐โ๐๐โ๐๐
|
30 B | |
| 008814 | unicode/part5/line 20059 NormalizationTest.txt |
๐๐
โ๐๐
โ๐๐
|
38 B | |
| 008815 | unicode/part5/line 20060 NormalizationTest.txt |
๐๐โ๐๐โ๐๐
|
38 B | |
| 008816 | unicode/part5/line 20061 NormalizationTest.txt |
๐๐โ๐๐โ๐๐
|
38 B | |
| 008817 | unicode/part5/line 20062 NormalizationTest.txt |
๐
๐โ๐
๐โ๐
๐
|
30 B | |
| 008818 | unicode/part5/line 20063 NormalizationTest.txt |
๐
๐
โ๐
๐
โ๐
๐
|
38 B | |
| 008819 | unicode/part5/line 20064 NormalizationTest.txt |
๐
๐โ๐
๐โ๐
๐
|
38 B | |
| 008820 | unicode/part5/line 20065 NormalizationTest.txt |
๐
๐โ๐
๐โ๐
๐
|
38 B | |
| 008821 | unicode/part5/line 20066 NormalizationTest.txt |
๐๐โ๐๐โ๐๐
|
30 B | |
| 008822 | unicode/part5/line 20067 NormalizationTest.txt |
๐
๐โ๐
๐โ๐
๐
|
30 B | |
| 008823 | unicode/part5/line 20068 NormalizationTest.txt |
๐ก๐ฃโ๐ก๐ฃโ๐ก๐ฃ
|
38 B | |
| 008824 | unicode/part5/line 20069 NormalizationTest.txt |
๐ก๐คโ๐ก๐คโ๐ก๐ค
|
38 B | |
| 008825 | unicode/part5/line 20070 NormalizationTest.txt |
๐ก๐ฅโ๐ก๐ฅโ๐ก๐ฅ
|
38 B | |
| 008826 | unicode/part5/line 20071 NormalizationTest.txt |
๐ก๐โ๐ก๐โ๐ก๐
|
30 B | |
| 008827 | unicode/part5/line 20072 NormalizationTest.txt |
๐ก๐กโ๐ก๐กโ๐ก๐ก
|
38 B | |
| 008828 | unicode/part5/line 20073 NormalizationTest.txt |
๐ก๐ขโ๐ก๐ขโ๐ก๐ข
|
38 B | |
| 008829 | unicode/part5/line 20074 NormalizationTest.txt |
๐ก๐ฃโ๐ก๐ฃโ๐ก๐ฃ
|
34 B | |
| 008830 | unicode/part5/line 20075 NormalizationTest.txt |
๐ก๐ฃโ๐ก๐ฃโ๐ก๐ฃ
|
38 B | |
| 008831 | unicode/part5/line 20076 NormalizationTest.txt |
๐ก๐ฅโ๐ก๐ฅโ๐ก๐ฅ
|
34 B | |
| 008832 | unicode/part5/line 20077 NormalizationTest.txt |
๐ก๐ฅโ๐ก๐ฅโ๐ก๐ฅ
|
38 B | |
| 008833 | unicode/part5/line 20078 NormalizationTest.txt |
๐ก๐ฆโ๐ก๐ฆโ๐ก๐ฆ
|
42 B | |
| 008834 | unicode/part5/line 20079 NormalizationTest.txt |
๐ก๐ฆโ๐ก๐ฆโ๐ก๐ฆ
|
46 B | |
| 008835 | unicode/part5/line 20080 NormalizationTest.txt |
๐ก๐งโ๐ก๐งโ๐ก๐ง
|
42 B | |
| 008836 | unicode/part5/line 20081 NormalizationTest.txt |
๐ก๐งโ๐ก๐งโ๐ก๐ง
|
46 B | |
| 008837 | unicode/part5/line 20082 NormalizationTest.txt |
๐ก๐จโ๐ก๐จโ๐ก๐จ
|
42 B | |
| 008838 | unicode/part5/line 20083 NormalizationTest.txt |
๐ก๐จโ๐ก๐จโ๐ก๐จ
|
46 B | |
| 008839 | unicode/part5/line 20084 NormalizationTest.txt |
๐ก๐คโ๐ก๐คโ๐ก๐ค
|
34 B | |
| 008840 | unicode/part5/line 20085 NormalizationTest.txt |
๐ก๐คโ๐ก๐คโ๐ก๐ค
|
38 B | |
| 008841 | unicode/part5/line 20086 NormalizationTest.txt |
๐ก๐ฉโ๐ก๐ฉโ๐ก๐ฉ
|
30 B | |
| 008842 | unicode/part5/line 20087 NormalizationTest.txt |
๐ตจ๐ตงโ๐ตจ๐ตงโ๐ตจ๐ตง
|
30 B | |
| 008843 | unicode/part5/line 20088 NormalizationTest.txt |
๐ตจ๐ตจโ๐ตจ๐ตจโ๐ตจ๐ตจ
|
38 B | |
| 008844 | unicode/part5/line 20089 NormalizationTest.txt |
๐ตช๐ตงโ๐ตช๐ตงโ๐ตช๐ตง
|
38 B | |
| 008845 | unicode/part5/line 20090 NormalizationTest.txt |
๐ตช๐ตงโ๐ตช๐ตงโ๐ตช๐ตง
|
34 B | |
| 008846 | unicode/part5/line 20091 NormalizationTest.txt |
๐ตช๐ตงโ๐ตช๐ตงโ๐ตช๐ตง
|
38 B | |
| 008847 | unicode/part5/line 20092 NormalizationTest.txt |
๐ตช๐ตจโ๐ตช๐ตจโ๐ตช๐ตจ
|
42 B | |
| 008848 | unicode/part5/line 20093 NormalizationTest.txt |
๐ตช๐ตจโ๐ตช๐ตจโ๐ตช๐ตจ
|
46 B | |
| 008849 | unicode/part1/hangul U+AC00..U+AE4B NormalizationTest.txt |
๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐ
โ๊ฐ
โ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโ๊ฐโโฆ
|
8.0 KiB |
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