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
171 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 | |
| 009023 | ucd/orders/U+01D5..U+1F8C Unicode Character Database |
Ǖ␊Ṻ␊ǖ␊ṻ␊Ǘ␊Ú̈␊ǘ␊ú̈␊Ǚ␊Ǔ̈␊ǚ␊ǔ̈␊Ǜ␊Ù̈␊ǜ␊ù̈␊Ǟ␊Ā̈␊ǟ␊ā̈␊Ǡ␊Ā̇␊ǡ␊ā̇␊…
|
2.9 KiB | |
| 009024 | ucd/orders/U+1F8D..U+1D1C0 Unicode Character Database |
ᾍ␊ᾍ␊Ά̔ͅ␊Ά̔ͅ␊ᾍ␊Ά̔ͅ␊ᾎ␊ᾎ␊ᾼ͂̓␊ᾼ͂̓␊ᾎ␊ᾼ͂̓␊ᾏ␊ᾏ␊ᾼ͂̔␊ᾼ͂̔␊ᾏ␊ᾼ͂̔␊ᾐ␊ᾐ␊ᾑ␊ᾑ␊ᾒ␊ᾒ␊…
|
2.0 KiB | |
| 009061 | regression/composition/one mark Focused regression |
é
|
3 B | |
| 009062 | regression/composition/two marks, two steps Focused regression |
ấ
|
5 B | |
| 009063 | regression/composition/three steps Focused regression |
ᾤ
|
8 B | |
| 009064 | regression/composition/composite plus mark Focused regression |
ấ
|
4 B | |
| 009065 | regression/composition/composite decomposed to recompose Focused regression |
ậ
|
5 B | |
| 009066 | regression/composition/composite with a lower mark after Focused regression |
ậ
|
4 B | |
| 009067 | regression/composition/marks out of order Focused regression |
ạ́
|
5 B | |
| 009068 | regression/composition/skips a mark it can't use Focused regression |
ậ
|
5 B | |
| 009069 | regression/composition/leftover in the middle Focused regression |
ą̣́
|
7 B | |
| 009070 | regression/composition/blocked by the same class Focused regression |
a̅̀
|
5 B | |
| 009071 | regression/composition/not blocked by a lower class Focused regression |
à̛
|
5 B | |
| 009072 | regression/composition/composite blocked the same way Focused regression |
ạ̀̅́
|
8 B | |
| 009073 | regression/composition/blocked by a starter Focused regression |
a͏̀
|
5 B | |
| 009074 | regression/composition/blocked by zero width joiner Focused regression |
e⟨U+200D⟩́ e⟨U+200C⟩́
|
13 B | |
| 009075 | regression/composition/blocked by a variation selector Focused regression |
e️́
|
6 B | |
| 009076 | regression/composition/two starters Focused regression |
ো
|
6 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