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
1,936 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 006004 | unicode/part2/line 17232 NormalizationTest.txt |
a᷺̖̙֚b␊a᷺̖̙֚b
|
23 B | |
| 006005 | unicode/part2/line 17233 NormalizationTest.txt |
a᷺̙̖֚b␊a᷺̙̖֚b
|
23 B | |
| 006006 | unicode/part2/line 17234 NormalizationTest.txt |
à̕̚͜b␊à̕̚͜b␊à̕̚͜b
|
31 B | |
| 006007 | unicode/part2/line 17235 NormalizationTest.txt |
à̚̕͜b␊à̚̕͜b␊à̚̕͜b
|
31 B | |
| 006008 | unicode/part2/line 17236 NormalizationTest.txt |
a᷎̛̛᷺b␊a᷎̛̛᷺b
|
25 B | |
| 006009 | unicode/part2/line 17237 NormalizationTest.txt |
a᷎̛̛᷺b␊a᷎̛̛᷺b
|
25 B | |
| 006010 | unicode/part2/line 17238 NormalizationTest.txt |
a᷺̖̜֚b␊a᷺̖̜֚b
|
23 B | |
| 006011 | unicode/part2/line 17239 NormalizationTest.txt |
a᷺̜̖֚b␊a᷺̜̖֚b
|
23 B | |
| 006012 | unicode/part2/line 17240 NormalizationTest.txt |
a᷺̖̝֚b␊a᷺̖̝֚b
|
23 B | |
| 006013 | unicode/part2/line 17241 NormalizationTest.txt |
a᷺̝̖֚b␊a᷺̝̖֚b
|
23 B | |
| 006014 | unicode/part2/line 17242 NormalizationTest.txt |
a᷺̖̞֚b␊a᷺̖̞֚b
|
23 B | |
| 006015 | unicode/part2/line 17243 NormalizationTest.txt |
a᷺̞̖֚b␊a᷺̞̖֚b
|
23 B | |
| 006016 | unicode/part2/line 17244 NormalizationTest.txt |
a᷺̖̟֚b␊a᷺̖̟֚b
|
23 B | |
| 006017 | unicode/part2/line 17245 NormalizationTest.txt |
a᷺̟̖֚b␊a᷺̟̖֚b
|
23 B | |
| 006018 | unicode/part2/line 17246 NormalizationTest.txt |
a᷺̖̠֚b␊a᷺̖̠֚b
|
23 B | |
| 006019 | unicode/part2/line 17247 NormalizationTest.txt |
a᷺̠̖֚b␊a᷺̠̖֚b
|
23 B | |
| 006020 | unicode/part2/line 17248 NormalizationTest.txt |
aུ̡̡᷎b␊aུ̡̡᷎b
|
25 B | |
| 006021 | unicode/part2/line 17249 NormalizationTest.txt |
aུ̡̡᷎b␊aུ̡̡᷎b
|
25 B | |
| 006022 | unicode/part2/line 17250 NormalizationTest.txt |
aུ̡̢᷎b␊aུ̡̢᷎b
|
25 B | |
| 006023 | unicode/part2/line 17251 NormalizationTest.txt |
aུ̢̡᷎b␊aུ̢̡᷎b
|
25 B | |
| 006024 | unicode/part2/line 17252 NormalizationTest.txt |
a᷺̖̣֚b␊a᷺̖̣֚b
|
23 B | |
| 006025 | unicode/part2/line 17253 NormalizationTest.txt |
ạ᷺̖֚b␊ạ᷺̖֚b␊ạ᷺̖֚b
|
35 B | |
| 006026 | unicode/part2/line 17254 NormalizationTest.txt |
a᷺̖̤֚b␊a᷺̖̤֚b
|
23 B | |
| 006027 | unicode/part2/line 17255 NormalizationTest.txt |
a᷺̤̖֚b␊a᷺̤̖֚b
|
23 B | |
| 006028 | unicode/part2/line 17256 NormalizationTest.txt |
a᷺̖̥֚b␊a᷺̖̥֚b
|
23 B | |
| 006029 | unicode/part2/line 17257 NormalizationTest.txt |
ḁ᷺̖֚b␊ḁ᷺̖֚b␊ḁ᷺̖֚b
|
35 B | |
| 006030 | unicode/part2/line 17258 NormalizationTest.txt |
a᷺̖̦֚b␊a᷺̖̦֚b
|
23 B | |
| 006031 | unicode/part2/line 17259 NormalizationTest.txt |
a᷺̦̖֚b␊a᷺̦̖֚b
|
23 B | |
| 006032 | unicode/part2/line 17260 NormalizationTest.txt |
aུ̡̧᷎b␊aུ̡̧᷎b
|
25 B | |
| 006033 | unicode/part2/line 17261 NormalizationTest.txt |
aུ̧̡᷎b␊aུ̧̡᷎b
|
25 B | |
| 006034 | unicode/part2/line 17262 NormalizationTest.txt |
aུ̡̨᷎b␊aུ̡̨᷎b
|
25 B | |
| 006035 | unicode/part2/line 17263 NormalizationTest.txt |
ąུ̡᷎b␊ąུ̡᷎b␊ąུ̡᷎b
|
37 B | |
| 006036 | unicode/part2/line 17264 NormalizationTest.txt |
a᷺̖̩֚b␊a᷺̖̩֚b
|
23 B | |
| 006037 | unicode/part2/line 17265 NormalizationTest.txt |
a᷺̩̖֚b␊a᷺̩̖֚b
|
23 B | |
| 006038 | unicode/part2/line 17266 NormalizationTest.txt |
a᷺̖̪֚b␊a᷺̖̪֚b
|
23 B | |
| 006039 | unicode/part2/line 17267 NormalizationTest.txt |
a᷺̪̖֚b␊a᷺̪̖֚b
|
23 B | |
| 006040 | unicode/part2/line 17268 NormalizationTest.txt |
a᷺̖̫֚b␊a᷺̖̫֚b
|
23 B | |
| 006041 | unicode/part2/line 17269 NormalizationTest.txt |
a᷺̫̖֚b␊a᷺̫̖֚b
|
23 B | |
| 006042 | unicode/part2/line 17270 NormalizationTest.txt |
a᷺̖̬֚b␊a᷺̖̬֚b
|
23 B | |
| 006043 | unicode/part2/line 17271 NormalizationTest.txt |
a᷺̬̖֚b␊a᷺̬̖֚b
|
23 B | |
| 006044 | unicode/part2/line 17272 NormalizationTest.txt |
a᷺̖̭֚b␊a᷺̖̭֚b
|
23 B | |
| 006045 | unicode/part2/line 17273 NormalizationTest.txt |
a᷺̭̖֚b␊a᷺̭̖֚b
|
23 B | |
| 006046 | unicode/part2/line 17274 NormalizationTest.txt |
a᷺̖̮֚b␊a᷺̖̮֚b
|
23 B | |
| 006047 | unicode/part2/line 17275 NormalizationTest.txt |
a᷺̮̖֚b␊a᷺̮̖֚b
|
23 B | |
| 006048 | unicode/part2/line 17276 NormalizationTest.txt |
a᷺̖̯֚b␊a᷺̖̯֚b
|
23 B | |
| 006049 | unicode/part2/line 17277 NormalizationTest.txt |
a᷺̯̖֚b␊a᷺̯̖֚b
|
23 B | |
| 006050 | unicode/part2/line 17278 NormalizationTest.txt |
a᷺̖̰֚b␊a᷺̖̰֚b
|
23 B | |
| 006051 | unicode/part2/line 17279 NormalizationTest.txt |
a᷺̰̖֚b␊a᷺̰̖֚b
|
23 B | |
| 006052 | unicode/part2/line 17280 NormalizationTest.txt |
a᷺̖̱֚b␊a᷺̖̱֚b
|
23 B | |
| 006053 | unicode/part2/line 17281 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