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 |
|---|---|---|---|---|
| 001750 | unicode/part1/U+30D1 NormalizationTest.txt |
パ␊パ
|
10 B | |
| 001751 | unicode/part1/U+30D3 NormalizationTest.txt |
ビ␊ビ
|
10 B | |
| 001752 | unicode/part1/U+30D4 NormalizationTest.txt |
ピ␊ピ
|
10 B | |
| 001753 | unicode/part1/U+30D6 NormalizationTest.txt |
ブ␊ブ
|
10 B | |
| 001754 | unicode/part1/U+30D7 NormalizationTest.txt |
プ␊プ
|
10 B | |
| 001755 | unicode/part1/U+30D9 NormalizationTest.txt |
ベ␊ベ
|
10 B | |
| 001756 | unicode/part1/U+30DA NormalizationTest.txt |
ペ␊ペ
|
10 B | |
| 001757 | unicode/part1/U+30DC NormalizationTest.txt |
ボ␊ボ
|
10 B | |
| 001758 | unicode/part1/U+30DD NormalizationTest.txt |
ポ␊ポ
|
10 B | |
| 001759 | unicode/part1/U+30F4 NormalizationTest.txt |
ヴ␊ヴ
|
10 B | |
| 001760 | unicode/part1/U+30F7 NormalizationTest.txt |
ヷ␊ヷ
|
10 B | |
| 001761 | unicode/part1/U+30F8 NormalizationTest.txt |
ヸ␊ヸ
|
10 B | |
| 001762 | unicode/part1/U+30F9 NormalizationTest.txt |
ヹ␊ヹ
|
10 B | |
| 001763 | unicode/part1/U+30FA NormalizationTest.txt |
ヺ␊ヺ
|
10 B | |
| 001764 | unicode/part1/U+30FE NormalizationTest.txt |
ヾ␊ヾ
|
10 B | |
| 001765 | unicode/part1/U+30FF NormalizationTest.txt |
ヿ␊コト
|
10 B | |
| 001766 | unicode/part1/U+3131 NormalizationTest.txt |
ㄱ␊ᄀ
|
7 B | |
| 001767 | unicode/part1/U+3132 NormalizationTest.txt |
ㄲ␊ᄁ
|
7 B | |
| 001768 | unicode/part1/U+3133 NormalizationTest.txt |
ㄳ␊ᆪ
|
7 B | |
| 001769 | unicode/part1/U+3134 NormalizationTest.txt |
ㄴ␊ᄂ
|
7 B | |
| 001770 | unicode/part1/U+3135 NormalizationTest.txt |
ㄵ␊ᆬ
|
7 B | |
| 001771 | unicode/part1/U+3136 NormalizationTest.txt |
ㄶ␊ᆭ
|
7 B | |
| 001772 | unicode/part1/U+3137 NormalizationTest.txt |
ㄷ␊ᄃ
|
7 B | |
| 001773 | unicode/part1/U+3138 NormalizationTest.txt |
ㄸ␊ᄄ
|
7 B | |
| 001774 | unicode/part1/U+3139 NormalizationTest.txt |
ㄹ␊ᄅ
|
7 B | |
| 001775 | unicode/part1/U+313A NormalizationTest.txt |
ㄺ␊ᆰ
|
7 B | |
| 001776 | unicode/part1/U+313B NormalizationTest.txt |
ㄻ␊ᆱ
|
7 B | |
| 001777 | unicode/part1/U+313C NormalizationTest.txt |
ㄼ␊ᆲ
|
7 B | |
| 001778 | unicode/part1/U+313D NormalizationTest.txt |
ㄽ␊ᆳ
|
7 B | |
| 001779 | unicode/part1/U+313E NormalizationTest.txt |
ㄾ␊ᆴ
|
7 B | |
| 001780 | unicode/part1/U+313F NormalizationTest.txt |
ㄿ␊ᆵ
|
7 B | |
| 001781 | unicode/part1/U+3140 NormalizationTest.txt |
ㅀ␊ᄚ
|
7 B | |
| 001782 | unicode/part1/U+3141 NormalizationTest.txt |
ㅁ␊ᄆ
|
7 B | |
| 001783 | unicode/part1/U+3142 NormalizationTest.txt |
ㅂ␊ᄇ
|
7 B | |
| 001784 | unicode/part1/U+3143 NormalizationTest.txt |
ㅃ␊ᄈ
|
7 B | |
| 001785 | unicode/part1/U+3144 NormalizationTest.txt |
ㅄ␊ᄡ
|
7 B | |
| 001786 | unicode/part1/U+3145 NormalizationTest.txt |
ㅅ␊ᄉ
|
7 B | |
| 001787 | unicode/part1/U+3146 NormalizationTest.txt |
ㅆ␊ᄊ
|
7 B | |
| 001788 | unicode/part1/U+3147 NormalizationTest.txt |
ㅇ␊ᄋ
|
7 B | |
| 001789 | unicode/part1/U+3148 NormalizationTest.txt |
ㅈ␊ᄌ
|
7 B | |
| 001790 | unicode/part1/U+3149 NormalizationTest.txt |
ㅉ␊ᄍ
|
7 B | |
| 001791 | unicode/part1/U+314A NormalizationTest.txt |
ㅊ␊ᄎ
|
7 B | |
| 001792 | unicode/part1/U+314B NormalizationTest.txt |
ㅋ␊ᄏ
|
7 B | |
| 001793 | unicode/part1/U+314C NormalizationTest.txt |
ㅌ␊ᄐ
|
7 B | |
| 001794 | unicode/part1/U+314D NormalizationTest.txt |
ㅍ␊ᄑ
|
7 B | |
| 001795 | unicode/part1/U+314E NormalizationTest.txt |
ㅎ␊ᄒ
|
7 B | |
| 001796 | unicode/part1/U+314F NormalizationTest.txt |
ㅏ␊ᅡ
|
7 B | |
| 001797 | unicode/part1/U+3150 NormalizationTest.txt |
ㅐ␊ᅢ
|
7 B | |
| 001798 | unicode/part1/U+3151 NormalizationTest.txt |
ㅑ␊ᅣ
|
7 B | |
| 001799 | unicode/part1/U+3152 NormalizationTest.txt |
ㅒ␊ᅤ
|
7 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