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 |
|---|---|---|---|---|
| 007200 | unicode/part2/line 18428 NormalizationTest.txt |
à֮⳱̕b␊à֮⳱̕b␊à֮⳱̕b
|
34 B | |
| 007201 | unicode/part2/line 18429 NormalizationTest.txt |
a֮⳱̀̕b␊a֮⳱̀̕b
|
23 B | |
| 007202 | unicode/part2/line 18430 NormalizationTest.txt |
a゙्⵿ְb␊a゙्⵿ְb
|
27 B | |
| 007203 | unicode/part2/line 18431 NormalizationTest.txt |
a゙⵿्ְb␊a゙⵿्ְb
|
27 B | |
| 007204 | unicode/part2/line 18432 NormalizationTest.txt |
à֮ⷠ̕b␊à֮ⷠ̕b␊à֮ⷠ̕b
|
34 B | |
| 007205 | unicode/part2/line 18433 NormalizationTest.txt |
a֮ⷠ̀̕b␊a֮ⷠ̀̕b
|
23 B | |
| 007206 | unicode/part2/line 18434 NormalizationTest.txt |
à֮ⷡ̕b␊à֮ⷡ̕b␊à֮ⷡ̕b
|
34 B | |
| 007207 | unicode/part2/line 18435 NormalizationTest.txt |
a֮ⷡ̀̕b␊a֮ⷡ̀̕b
|
23 B | |
| 007208 | unicode/part2/line 18436 NormalizationTest.txt |
à֮ⷢ̕b␊à֮ⷢ̕b␊à֮ⷢ̕b
|
34 B | |
| 007209 | unicode/part2/line 18437 NormalizationTest.txt |
a֮ⷢ̀̕b␊a֮ⷢ̀̕b
|
23 B | |
| 007210 | unicode/part2/line 18438 NormalizationTest.txt |
à֮ⷣ̕b␊à֮ⷣ̕b␊à֮ⷣ̕b
|
34 B | |
| 007211 | unicode/part2/line 18439 NormalizationTest.txt |
a֮ⷣ̀̕b␊a֮ⷣ̀̕b
|
23 B | |
| 007212 | unicode/part2/line 18440 NormalizationTest.txt |
à֮ⷤ̕b␊à֮ⷤ̕b␊à֮ⷤ̕b
|
34 B | |
| 007213 | unicode/part2/line 18441 NormalizationTest.txt |
a֮ⷤ̀̕b␊a֮ⷤ̀̕b
|
23 B | |
| 007214 | unicode/part2/line 18442 NormalizationTest.txt |
à֮ⷥ̕b␊à֮ⷥ̕b␊à֮ⷥ̕b
|
34 B | |
| 007215 | unicode/part2/line 18443 NormalizationTest.txt |
a֮ⷥ̀̕b␊a֮ⷥ̀̕b
|
23 B | |
| 007216 | unicode/part2/line 18444 NormalizationTest.txt |
à֮ⷦ̕b␊à֮ⷦ̕b␊à֮ⷦ̕b
|
34 B | |
| 007217 | unicode/part2/line 18445 NormalizationTest.txt |
a֮ⷦ̀̕b␊a֮ⷦ̀̕b
|
23 B | |
| 007218 | unicode/part2/line 18446 NormalizationTest.txt |
à֮ⷧ̕b␊à֮ⷧ̕b␊à֮ⷧ̕b
|
34 B | |
| 007219 | unicode/part2/line 18447 NormalizationTest.txt |
a֮ⷧ̀̕b␊a֮ⷧ̀̕b
|
23 B | |
| 007220 | unicode/part2/line 18448 NormalizationTest.txt |
à֮ⷨ̕b␊à֮ⷨ̕b␊à֮ⷨ̕b
|
34 B | |
| 007221 | unicode/part2/line 18449 NormalizationTest.txt |
a֮ⷨ̀̕b␊a֮ⷨ̀̕b
|
23 B | |
| 007222 | unicode/part2/line 18450 NormalizationTest.txt |
à֮ⷩ̕b␊à֮ⷩ̕b␊à֮ⷩ̕b
|
34 B | |
| 007223 | unicode/part2/line 18451 NormalizationTest.txt |
a֮ⷩ̀̕b␊a֮ⷩ̀̕b
|
23 B | |
| 007224 | unicode/part2/line 18452 NormalizationTest.txt |
à֮ⷪ̕b␊à֮ⷪ̕b␊à֮ⷪ̕b
|
34 B | |
| 007225 | unicode/part2/line 18453 NormalizationTest.txt |
a֮ⷪ̀̕b␊a֮ⷪ̀̕b
|
23 B | |
| 007226 | unicode/part2/line 18454 NormalizationTest.txt |
à֮ⷫ̕b␊à֮ⷫ̕b␊à֮ⷫ̕b
|
34 B | |
| 007227 | unicode/part2/line 18455 NormalizationTest.txt |
a֮ⷫ̀̕b␊a֮ⷫ̀̕b
|
23 B | |
| 007228 | unicode/part2/line 18456 NormalizationTest.txt |
à֮ⷬ̕b␊à֮ⷬ̕b␊à֮ⷬ̕b
|
34 B | |
| 007229 | unicode/part2/line 18457 NormalizationTest.txt |
a֮ⷬ̀̕b␊a֮ⷬ̀̕b
|
23 B | |
| 007230 | unicode/part2/line 18458 NormalizationTest.txt |
à֮ⷭ̕b␊à֮ⷭ̕b␊à֮ⷭ̕b
|
34 B | |
| 007231 | unicode/part2/line 18459 NormalizationTest.txt |
a֮ⷭ̀̕b␊a֮ⷭ̀̕b
|
23 B | |
| 007232 | unicode/part2/line 18460 NormalizationTest.txt |
à֮ⷮ̕b␊à֮ⷮ̕b␊à֮ⷮ̕b
|
34 B | |
| 007233 | unicode/part2/line 18461 NormalizationTest.txt |
a֮ⷮ̀̕b␊a֮ⷮ̀̕b
|
23 B | |
| 007234 | unicode/part2/line 18462 NormalizationTest.txt |
à֮ⷯ̕b␊à֮ⷯ̕b␊à֮ⷯ̕b
|
34 B | |
| 007235 | unicode/part2/line 18463 NormalizationTest.txt |
a֮ⷯ̀̕b␊a֮ⷯ̀̕b
|
23 B | |
| 007236 | unicode/part2/line 18464 NormalizationTest.txt |
à֮ⷰ̕b␊à֮ⷰ̕b␊à֮ⷰ̕b
|
34 B | |
| 007237 | unicode/part2/line 18465 NormalizationTest.txt |
a֮ⷰ̀̕b␊a֮ⷰ̀̕b
|
23 B | |
| 007238 | unicode/part2/line 18466 NormalizationTest.txt |
à֮ⷱ̕b␊à֮ⷱ̕b␊à֮ⷱ̕b
|
34 B | |
| 007239 | unicode/part2/line 18467 NormalizationTest.txt |
a֮ⷱ̀̕b␊a֮ⷱ̀̕b
|
23 B | |
| 007240 | unicode/part2/line 18468 NormalizationTest.txt |
à֮ⷲ̕b␊à֮ⷲ̕b␊à֮ⷲ̕b
|
34 B | |
| 007241 | unicode/part2/line 18469 NormalizationTest.txt |
a֮ⷲ̀̕b␊a֮ⷲ̀̕b
|
23 B | |
| 007242 | unicode/part2/line 18470 NormalizationTest.txt |
à֮ⷳ̕b␊à֮ⷳ̕b␊à֮ⷳ̕b
|
34 B | |
| 007243 | unicode/part2/line 18471 NormalizationTest.txt |
a֮ⷳ̀̕b␊a֮ⷳ̀̕b
|
23 B | |
| 007244 | unicode/part2/line 18472 NormalizationTest.txt |
à֮ⷴ̕b␊à֮ⷴ̕b␊à֮ⷴ̕b
|
34 B | |
| 007245 | unicode/part2/line 18473 NormalizationTest.txt |
a֮ⷴ̀̕b␊a֮ⷴ̀̕b
|
23 B | |
| 007246 | unicode/part2/line 18474 NormalizationTest.txt |
à֮ⷵ̕b␊à֮ⷵ̕b␊à֮ⷵ̕b
|
34 B | |
| 007247 | unicode/part2/line 18475 NormalizationTest.txt |
a֮ⷵ̀̕b␊a֮ⷵ̀̕b
|
23 B | |
| 007248 | unicode/part2/line 18476 NormalizationTest.txt |
à֮ⷶ̕b␊à֮ⷶ̕b␊à֮ⷶ̕b
|
34 B | |
| 007249 | unicode/part2/line 18477 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