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
132 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 008972 | ucd/maybe/U+3099 Unicode Character Database |
゙␊a゙␊゙゙␊ゔ␊ゔ゙␊ゔ̴␊う͏゙␊うa゙␊ゔ́␊が␊が゙␊が̴␊か͏゙␊かa゙␊が́␊ぎ␊ぎ゙␊ぎ̴␊き͏゙␊きa゙␊ぎ́␊ぐ␊ぐ゙…
|
2.5 KiB | |
| 008973 | ucd/maybe/U+309A Unicode Character Database |
゚␊a゚␊゚゚␊ぱ␊ぱ゚␊ぱ̴␊は͏゚␊はa゚␊ぱ́␊ぴ␊ぴ゚␊ぴ̴␊ひ͏゚␊ひa゚␊ぴ́␊ぷ␊ぷ゚␊ぷ̴␊ふ͏゚␊ふa゚␊ぷ́␊ぺ␊ぺ゚…
|
535 B | |
| 008974 | ucd/maybe/U+110BA Unicode Character Database |
𑂺␊a𑂺␊𑂺𑂺␊𑂚␊𑂚𑂺␊𑂚̴␊𑂙͏𑂺␊𑂙a𑂺␊𑂚́␊𑂜␊𑂜𑂺␊𑂜̴␊𑂛͏𑂺␊𑂛a𑂺␊𑂜́␊𑂫␊𑂫𑂺␊𑂫̴␊𑂥͏𑂺␊𑂥a𑂺␊𑂫́
|
214 B | |
| 008975 | ucd/maybe/U+11127 Unicode Character Database |
𑄧␊a𑄧␊𑄧𑄧␊𑄮␊𑄮𑄧␊𑄱̴𑄧␊𑄱͏𑄧␊𑄱a𑄧␊𑄱́𑄧␊𑄯␊𑄯𑄧␊𑄲̴𑄧␊𑄲͏𑄧␊𑄲a𑄧␊𑄲́𑄧
|
149 B | |
| 008976 | ucd/maybe/U+1133E Unicode Character Database |
𑌾␊a𑌾␊𑌾𑌾␊𑍋␊𑍋𑌾␊𑍇̴𑌾␊𑍇͏𑌾␊𑍇a𑌾␊𑍇́𑌾
|
84 B | |
| 008977 | ucd/maybe/U+11357 Unicode Character Database |
𑍗␊a𑍗␊𑍗𑍗␊𑍌␊𑍌𑍗␊𑍇̴𑍗␊𑍇͏𑍗␊𑍇a𑍗␊𑍇́𑍗
|
84 B | |
| 008978 | ucd/maybe/U+113B8 Unicode Character Database |
␊a␊␊␊␊̴␊͏␊a␊́
|
84 B | |
| 008979 | ucd/maybe/U+113BB Unicode Character Database |
␊a␊␊␊␊̴␊͏␊a␊́
|
84 B | |
| 008980 | ucd/maybe/U+113C2 Unicode Character Database |
␊a␊␊␊␊̴␊͏␊a␊́␊␊̴␊͏␊a␊́
|
140 B | |
| 008981 | ucd/maybe/U+113C5 Unicode Character Database |
␊a␊
|
19 B | |
| 008982 | ucd/maybe/U+113C7 Unicode Character Database |
␊a␊
|
19 B | |
| 008983 | ucd/maybe/U+113C8 Unicode Character Database |
␊a␊
|
19 B | |
| 008984 | ucd/maybe/U+113C9 Unicode Character Database |
␊a␊␊␊␊̴␊͏␊a␊́␊␊␊̴␊͏␊a␊́␊␊␊̴␊͏␊a␊́
|
214 B | |
| 008985 | ucd/maybe/U+114B0 Unicode Character Database |
𑒰␊a𑒰␊𑒰𑒰␊𑒼␊𑒼𑒰␊𑒹̴𑒰␊𑒹͏𑒰␊𑒹a𑒰␊𑒹́𑒰
|
84 B | |
| 008986 | ucd/maybe/U+114BA Unicode Character Database |
𑒺␊a𑒺␊𑒺𑒺␊𑒻␊𑒻𑒺␊𑒹̴𑒺␊𑒹͏𑒺␊𑒹a𑒺␊𑒹́𑒺
|
84 B | |
| 008987 | ucd/maybe/U+114BD Unicode Character Database |
𑒽␊a𑒽␊𑒽𑒽␊𑒾␊𑒾𑒽␊𑒹̴𑒽␊𑒹͏𑒽␊𑒹a𑒽␊𑒹́𑒽
|
84 B | |
| 008988 | ucd/maybe/U+115AF Unicode Character Database |
𑖯␊a𑖯␊𑖯𑖯␊𑖺␊𑖺𑖯␊𑖸̴𑖯␊𑖸͏𑖯␊𑖸a𑖯␊𑖸́𑖯␊𑖻␊𑖻𑖯␊𑖹̴𑖯␊𑖹͏𑖯␊𑖹a𑖯␊𑖹́𑖯
|
149 B | |
| 008989 | ucd/maybe/U+11930 Unicode Character Database |
𑤰␊a𑤰␊𑤰𑤰␊𑤸␊𑤸𑤰␊𑤵̴𑤰␊𑤵͏𑤰␊𑤵a𑤰␊𑤵́𑤰
|
84 B | |
| 008990 | ucd/maybe/U+1611E Unicode Character Database |
␊a␊␊␊̴␊͏␊a␊́
|
75 B | |
| 008991 | ucd/maybe/U+1611F Unicode Character Database |
␊a␊␊␊␊̴␊͏␊a␊́␊␊␊̴␊͏␊a␊␊́␊␊␊̴␊͏␊a␊␊́…
|
305 B | |
| 008992 | ucd/maybe/U+16120 Unicode Character Database |
␊a␊␊␊␊̴␊͏␊a␊́␊␊␊̴␊͏␊a␊␊́
|
162 B | |
| 008993 | ucd/maybe/U+16121 Unicode Character Database |
␊a␊
|
19 B | |
| 008994 | ucd/maybe/U+16122 Unicode Character Database |
␊a␊
|
19 B | |
| 008995 | ucd/maybe/U+16123 Unicode Character Database |
␊a␊
|
19 B | |
| 008996 | ucd/maybe/U+16124 Unicode Character Database |
␊a␊
|
19 B | |
| 008997 | ucd/maybe/U+16125 Unicode Character Database |
␊a␊
|
19 B | |
| 008998 | ucd/maybe/U+16126 Unicode Character Database |
␊a␊
|
19 B | |
| 008999 | ucd/maybe/U+16127 Unicode Character Database |
␊a␊
|
19 B | |
| 009000 | ucd/maybe/U+16128 Unicode Character Database |
␊a␊
|
19 B | |
| 009001 | ucd/maybe/U+16129 Unicode Character Database |
␊a␊␊␊␊̴␊͏␊a␊́
|
84 B | |
| 009002 | ucd/maybe/U+16D67 Unicode Character Database |
␊a␊␊␊␊̴␊͏␊a␊́␊␊̴␊͏␊a␊́␊␊␊̴␊͏…
|
205 B | |
| 009003 | ucd/maybe/U+16D68 Unicode Character Database |
␊a␊
|
19 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