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
3,833 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 001681 | unicode/part1/U+2FC4 NormalizationTest.txt |
⿄␊鹵
|
7 B | |
| 001682 | unicode/part1/U+2FC5 NormalizationTest.txt |
⿅␊鹿
|
7 B | |
| 001683 | unicode/part1/U+2FC6 NormalizationTest.txt |
⿆␊麥
|
7 B | |
| 001684 | unicode/part1/U+2FC7 NormalizationTest.txt |
⿇␊麻
|
7 B | |
| 001685 | unicode/part1/U+2FC8 NormalizationTest.txt |
⿈␊黃
|
7 B | |
| 001686 | unicode/part1/U+2FC9 NormalizationTest.txt |
⿉␊黍
|
7 B | |
| 001687 | unicode/part1/U+2FCA NormalizationTest.txt |
⿊␊黑
|
7 B | |
| 001688 | unicode/part1/U+2FCB NormalizationTest.txt |
⿋␊黹
|
7 B | |
| 001689 | unicode/part1/U+2FCC NormalizationTest.txt |
⿌␊黽
|
7 B | |
| 001690 | unicode/part1/U+2FCD NormalizationTest.txt |
⿍␊鼎
|
7 B | |
| 001691 | unicode/part1/U+2FCE NormalizationTest.txt |
⿎␊鼓
|
7 B | |
| 001692 | unicode/part1/U+2FCF NormalizationTest.txt |
⿏␊鼠
|
7 B | |
| 001693 | unicode/part1/U+2FD0 NormalizationTest.txt |
⿐␊鼻
|
7 B | |
| 001694 | unicode/part1/U+2FD1 NormalizationTest.txt |
⿑␊齊
|
7 B | |
| 001695 | unicode/part1/U+2FD2 NormalizationTest.txt |
⿒␊齒
|
7 B | |
| 001696 | unicode/part1/U+2FD3 NormalizationTest.txt |
⿓␊龍
|
7 B | |
| 001697 | unicode/part1/U+2FD4 NormalizationTest.txt |
⿔␊龜
|
7 B | |
| 001698 | unicode/part1/U+2FD5 NormalizationTest.txt |
⿕␊龠
|
7 B | |
| 001699 | unicode/part1/U+3000 NormalizationTest.txt |
␊
|
5 B | |
| 001700 | unicode/part1/U+3036 NormalizationTest.txt |
〶␊〒
|
7 B | |
| 001701 | unicode/part1/U+3038 NormalizationTest.txt |
〸␊十
|
7 B | |
| 001702 | unicode/part1/U+3039 NormalizationTest.txt |
〹␊卄
|
7 B | |
| 001703 | unicode/part1/U+303A NormalizationTest.txt |
〺␊卅
|
7 B | |
| 001730 | unicode/part1/U+309B NormalizationTest.txt |
゛␊ ゙
|
8 B | |
| 001731 | unicode/part1/U+309C NormalizationTest.txt |
゜␊ ゚
|
8 B | |
| 001733 | unicode/part1/U+309F 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 |
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