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 |
|---|---|---|---|---|
| 007650 | unicode/part2/line 18878 NormalizationTest.txt |
a̴𖫴𖿰b␊a̴𖫴𖿰b
|
25 B | |
| 007651 | unicode/part2/line 18879 NormalizationTest.txt |
a𖫴̴𖿰b␊a𖫴̴𖿰b
|
25 B | |
| 007652 | unicode/part2/line 18880 NormalizationTest.txt |
à֮𖬰̕b␊à֮𖬰̕b␊à֮𖬰̕b
|
37 B | |
| 007653 | unicode/part2/line 18881 NormalizationTest.txt |
a֮𖬰̀̕b␊a֮𖬰̀̕b
|
25 B | |
| 007654 | unicode/part2/line 18882 NormalizationTest.txt |
à֮𖬱̕b␊à֮𖬱̕b␊à֮𖬱̕b
|
37 B | |
| 007655 | unicode/part2/line 18883 NormalizationTest.txt |
a֮𖬱̀̕b␊a֮𖬱̀̕b
|
25 B | |
| 007656 | unicode/part2/line 18884 NormalizationTest.txt |
à֮𖬲̕b␊à֮𖬲̕b␊à֮𖬲̕b
|
37 B | |
| 007657 | unicode/part2/line 18885 NormalizationTest.txt |
a֮𖬲̀̕b␊a֮𖬲̀̕b
|
25 B | |
| 007658 | unicode/part2/line 18886 NormalizationTest.txt |
à֮𖬳̕b␊à֮𖬳̕b␊à֮𖬳̕b
|
37 B | |
| 007659 | unicode/part2/line 18887 NormalizationTest.txt |
a֮𖬳̀̕b␊a֮𖬳̀̕b
|
25 B | |
| 007660 | unicode/part2/line 18888 NormalizationTest.txt |
à֮𖬴̕b␊à֮𖬴̕b␊à֮𖬴̕b
|
37 B | |
| 007661 | unicode/part2/line 18889 NormalizationTest.txt |
a֮𖬴̀̕b␊a֮𖬴̀̕b
|
25 B | |
| 007662 | unicode/part2/line 18890 NormalizationTest.txt |
à֮𖬵̕b␊à֮𖬵̕b␊à֮𖬵̕b
|
37 B | |
| 007663 | unicode/part2/line 18891 NormalizationTest.txt |
a֮𖬵̀̕b␊a֮𖬵̀̕b
|
25 B | |
| 007664 | unicode/part2/line 18892 NormalizationTest.txt |
à֮𖬶̕b␊à֮𖬶̕b␊à֮𖬶̕b
|
37 B | |
| 007665 | unicode/part2/line 18893 NormalizationTest.txt |
a֮𖬶̀̕b␊a֮𖬶̀̕b
|
25 B | |
| 007666 | unicode/part2/line 18894 NormalizationTest.txt |
a̴𖿰𖿰़b␊a̴𖿰𖿰़b
|
31 B | |
| 007667 | unicode/part2/line 18895 NormalizationTest.txt |
a̴𖿰𖿰़b␊a̴𖿰𖿰़b
|
31 B | |
| 007668 | unicode/part2/line 18896 NormalizationTest.txt |
a̴𖿰𖿱़b␊a̴𖿰𖿱़b
|
31 B | |
| 007669 | unicode/part2/line 18897 NormalizationTest.txt |
a̴𖿱𖿰़b␊a̴𖿱𖿰़b
|
31 B | |
| 007670 | unicode/part2/line 18898 NormalizationTest.txt |
a̴𛲞𖿰b␊a̴𛲞𖿰b
|
25 B | |
| 007671 | unicode/part2/line 18899 NormalizationTest.txt |
a𛲞̴𖿰b␊a𛲞̴𖿰b
|
25 B | |
| 007672 | unicode/part2/line 18900 NormalizationTest.txt |
a᷎̛𝅥᷺b␊a᷎̛𝅥᷺b
|
29 B | |
| 007673 | unicode/part2/line 18901 NormalizationTest.txt |
a᷎𝅥̛᷺b␊a᷎𝅥̛᷺b
|
29 B | |
| 007674 | unicode/part2/line 18902 NormalizationTest.txt |
a᷎̛𝅦᷺b␊a᷎̛𝅦᷺b
|
29 B | |
| 007675 | unicode/part2/line 18903 NormalizationTest.txt |
a᷎𝅦̛᷺b␊a᷎𝅦̛᷺b
|
29 B | |
| 007676 | unicode/part2/line 18904 NormalizationTest.txt |
a̴𝅧𖿰b␊a̴𝅧𖿰b
|
25 B | |
| 007677 | unicode/part2/line 18905 NormalizationTest.txt |
a𝅧̴𖿰b␊a𝅧̴𖿰b
|
25 B | |
| 007678 | unicode/part2/line 18906 NormalizationTest.txt |
a̴𝅨𖿰b␊a̴𝅨𖿰b
|
25 B | |
| 007679 | unicode/part2/line 18907 NormalizationTest.txt |
a𝅨̴𖿰b␊a𝅨̴𖿰b
|
25 B | |
| 007680 | unicode/part2/line 18908 NormalizationTest.txt |
a̴𝅩𖿰b␊a̴𝅩𖿰b
|
25 B | |
| 007681 | unicode/part2/line 18909 NormalizationTest.txt |
a𝅩̴𖿰b␊a𝅩̴𖿰b
|
25 B | |
| 007682 | unicode/part2/line 18910 NormalizationTest.txt |
a〮𝅭𝅭֮b␊a〮𝅭𝅭֮b
|
31 B | |
| 007683 | unicode/part2/line 18911 NormalizationTest.txt |
a〮𝅭𝅭֮b␊a〮𝅭𝅭֮b
|
31 B | |
| 007684 | unicode/part2/line 18912 NormalizationTest.txt |
a᷎̛𝅮᷺b␊a᷎̛𝅮᷺b
|
29 B | |
| 007685 | unicode/part2/line 18913 NormalizationTest.txt |
a᷎𝅮̛᷺b␊a᷎𝅮̛᷺b
|
29 B | |
| 007686 | unicode/part2/line 18914 NormalizationTest.txt |
a᷎̛𝅯᷺b␊a᷎̛𝅯᷺b
|
29 B | |
| 007687 | unicode/part2/line 18915 NormalizationTest.txt |
a᷎𝅯̛᷺b␊a᷎𝅯̛᷺b
|
29 B | |
| 007688 | unicode/part2/line 18916 NormalizationTest.txt |
a᷎̛𝅰᷺b␊a᷎̛𝅰᷺b
|
29 B | |
| 007689 | unicode/part2/line 18917 NormalizationTest.txt |
a᷎𝅰̛᷺b␊a᷎𝅰̛᷺b
|
29 B | |
| 007690 | unicode/part2/line 18918 NormalizationTest.txt |
a᷎̛𝅱᷺b␊a᷎̛𝅱᷺b
|
29 B | |
| 007691 | unicode/part2/line 18919 NormalizationTest.txt |
a᷎𝅱̛᷺b␊a᷎𝅱̛᷺b
|
29 B | |
| 007692 | unicode/part2/line 18920 NormalizationTest.txt |
a᷎̛𝅲᷺b␊a᷎̛𝅲᷺b
|
29 B | |
| 007693 | unicode/part2/line 18921 NormalizationTest.txt |
a᷎𝅲̛᷺b␊a᷎𝅲̛᷺b
|
29 B | |
| 007694 | unicode/part2/line 18922 NormalizationTest.txt |
a᷺̖𝅻֚b␊a᷺̖𝅻֚b
|
27 B | |
| 007695 | unicode/part2/line 18923 NormalizationTest.txt |
a᷺𝅻̖֚b␊a᷺𝅻̖֚b
|
27 B | |
| 007696 | unicode/part2/line 18924 NormalizationTest.txt |
a᷺̖𝅼֚b␊a᷺̖𝅼֚b
|
27 B | |
| 007697 | unicode/part2/line 18925 NormalizationTest.txt |
a᷺𝅼̖֚b␊a᷺𝅼̖֚b
|
27 B | |
| 007698 | unicode/part2/line 18926 NormalizationTest.txt |
a᷺̖𝅽֚b␊a᷺̖𝅽֚b
|
27 B | |
| 007699 | unicode/part2/line 18927 NormalizationTest.txt |
a᷺𝅽̖֚b␊a᷺𝅽̖֚b
|
27 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