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
5,928 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 000545 | unicode/part1/U+1D36 NormalizationTest.txt |
ᴶ␊J
|
5 B | |
| 000546 | unicode/part1/U+1D37 NormalizationTest.txt |
ᴷ␊K
|
5 B | |
| 000547 | unicode/part1/U+1D38 NormalizationTest.txt |
ᴸ␊L
|
5 B | |
| 000548 | unicode/part1/U+1D39 NormalizationTest.txt |
ᴹ␊M
|
5 B | |
| 000549 | unicode/part1/U+1D3A NormalizationTest.txt |
ᴺ␊N
|
5 B | |
| 000550 | unicode/part1/U+1D3C NormalizationTest.txt |
ᴼ␊O
|
5 B | |
| 000551 | unicode/part1/U+1D3D NormalizationTest.txt |
ᴽ␊Ȣ
|
6 B | |
| 000552 | unicode/part1/U+1D3E NormalizationTest.txt |
ᴾ␊P
|
5 B | |
| 000553 | unicode/part1/U+1D3F NormalizationTest.txt |
ᴿ␊R
|
5 B | |
| 000554 | unicode/part1/U+1D40 NormalizationTest.txt |
ᵀ␊T
|
5 B | |
| 000555 | unicode/part1/U+1D41 NormalizationTest.txt |
ᵁ␊U
|
5 B | |
| 000556 | unicode/part1/U+1D42 NormalizationTest.txt |
ᵂ␊W
|
5 B | |
| 000557 | unicode/part1/U+1D43 NormalizationTest.txt |
ᵃ␊a
|
5 B | |
| 000558 | unicode/part1/U+1D44 NormalizationTest.txt |
ᵄ␊ɐ
|
6 B | |
| 000559 | unicode/part1/U+1D45 NormalizationTest.txt |
ᵅ␊ɑ
|
6 B | |
| 000560 | unicode/part1/U+1D46 NormalizationTest.txt |
ᵆ␊ᴂ
|
7 B | |
| 000561 | unicode/part1/U+1D47 NormalizationTest.txt |
ᵇ␊b
|
5 B | |
| 000562 | unicode/part1/U+1D48 NormalizationTest.txt |
ᵈ␊d
|
5 B | |
| 000563 | unicode/part1/U+1D49 NormalizationTest.txt |
ᵉ␊e
|
5 B | |
| 000564 | unicode/part1/U+1D4A NormalizationTest.txt |
ᵊ␊ə
|
6 B | |
| 000565 | unicode/part1/U+1D4B NormalizationTest.txt |
ᵋ␊ɛ
|
6 B | |
| 000566 | unicode/part1/U+1D4C NormalizationTest.txt |
ᵌ␊ɜ
|
6 B | |
| 000567 | unicode/part1/U+1D4D NormalizationTest.txt |
ᵍ␊g
|
5 B | |
| 000568 | unicode/part1/U+1D4F NormalizationTest.txt |
ᵏ␊k
|
5 B | |
| 000569 | unicode/part1/U+1D50 NormalizationTest.txt |
ᵐ␊m
|
5 B | |
| 000570 | unicode/part1/U+1D51 NormalizationTest.txt |
ᵑ␊ŋ
|
6 B | |
| 000571 | unicode/part1/U+1D52 NormalizationTest.txt |
ᵒ␊o
|
5 B | |
| 000572 | unicode/part1/U+1D53 NormalizationTest.txt |
ᵓ␊ɔ
|
6 B | |
| 000573 | unicode/part1/U+1D54 NormalizationTest.txt |
ᵔ␊ᴖ
|
7 B | |
| 000574 | unicode/part1/U+1D55 NormalizationTest.txt |
ᵕ␊ᴗ
|
7 B | |
| 000575 | unicode/part1/U+1D56 NormalizationTest.txt |
ᵖ␊p
|
5 B | |
| 000576 | unicode/part1/U+1D57 NormalizationTest.txt |
ᵗ␊t
|
5 B | |
| 000577 | unicode/part1/U+1D58 NormalizationTest.txt |
ᵘ␊u
|
5 B | |
| 000578 | unicode/part1/U+1D59 NormalizationTest.txt |
ᵙ␊ᴝ
|
7 B | |
| 000579 | unicode/part1/U+1D5A NormalizationTest.txt |
ᵚ␊ɯ
|
6 B | |
| 000580 | unicode/part1/U+1D5B NormalizationTest.txt |
ᵛ␊v
|
5 B | |
| 000581 | unicode/part1/U+1D5C NormalizationTest.txt |
ᵜ␊ᴥ
|
7 B | |
| 000582 | unicode/part1/U+1D5D NormalizationTest.txt |
ᵝ␊β
|
6 B | |
| 000583 | unicode/part1/U+1D5E NormalizationTest.txt |
ᵞ␊γ
|
6 B | |
| 000584 | unicode/part1/U+1D5F NormalizationTest.txt |
ᵟ␊δ
|
6 B | |
| 000585 | unicode/part1/U+1D60 NormalizationTest.txt |
ᵠ␊φ
|
6 B | |
| 000586 | unicode/part1/U+1D61 NormalizationTest.txt |
ᵡ␊χ
|
6 B | |
| 000587 | unicode/part1/U+1D62 NormalizationTest.txt |
ᵢ␊i
|
5 B | |
| 000588 | unicode/part1/U+1D63 NormalizationTest.txt |
ᵣ␊r
|
5 B | |
| 000589 | unicode/part1/U+1D64 NormalizationTest.txt |
ᵤ␊u
|
5 B | |
| 000590 | unicode/part1/U+1D65 NormalizationTest.txt |
ᵥ␊v
|
5 B | |
| 000591 | unicode/part1/U+1D66 NormalizationTest.txt |
ᵦ␊β
|
6 B | |
| 000592 | unicode/part1/U+1D67 NormalizationTest.txt |
ᵧ␊γ
|
6 B | |
| 000593 | unicode/part1/U+1D68 NormalizationTest.txt |
ᵨ␊ρ
|
6 B | |
| 000594 | unicode/part1/U+1D69 NormalizationTest.txt |
ᵩ␊φ
|
6 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