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 |
|---|---|---|---|---|
| 003600 | unicode/part1/U+FE95 NormalizationTest.txt |
ﺕ␊ت
|
6 B | |
| 003601 | unicode/part1/U+FE96 NormalizationTest.txt |
ﺖ␊ت
|
6 B | |
| 003602 | unicode/part1/U+FE97 NormalizationTest.txt |
ﺗ␊ت
|
6 B | |
| 003603 | unicode/part1/U+FE98 NormalizationTest.txt |
ﺘ␊ت
|
6 B | |
| 003604 | unicode/part1/U+FE99 NormalizationTest.txt |
ﺙ␊ث
|
6 B | |
| 003605 | unicode/part1/U+FE9A NormalizationTest.txt |
ﺚ␊ث
|
6 B | |
| 003606 | unicode/part1/U+FE9B NormalizationTest.txt |
ﺛ␊ث
|
6 B | |
| 003607 | unicode/part1/U+FE9C NormalizationTest.txt |
ﺜ␊ث
|
6 B | |
| 003608 | unicode/part1/U+FE9D NormalizationTest.txt |
ﺝ␊ج
|
6 B | |
| 003609 | unicode/part1/U+FE9E NormalizationTest.txt |
ﺞ␊ج
|
6 B | |
| 003610 | unicode/part1/U+FE9F NormalizationTest.txt |
ﺟ␊ج
|
6 B | |
| 003611 | unicode/part1/U+FEA0 NormalizationTest.txt |
ﺠ␊ج
|
6 B | |
| 003612 | unicode/part1/U+FEA1 NormalizationTest.txt |
ﺡ␊ح
|
6 B | |
| 003613 | unicode/part1/U+FEA2 NormalizationTest.txt |
ﺢ␊ح
|
6 B | |
| 003614 | unicode/part1/U+FEA3 NormalizationTest.txt |
ﺣ␊ح
|
6 B | |
| 003615 | unicode/part1/U+FEA4 NormalizationTest.txt |
ﺤ␊ح
|
6 B | |
| 003616 | unicode/part1/U+FEA5 NormalizationTest.txt |
ﺥ␊خ
|
6 B | |
| 003617 | unicode/part1/U+FEA6 NormalizationTest.txt |
ﺦ␊خ
|
6 B | |
| 003618 | unicode/part1/U+FEA7 NormalizationTest.txt |
ﺧ␊خ
|
6 B | |
| 003619 | unicode/part1/U+FEA8 NormalizationTest.txt |
ﺨ␊خ
|
6 B | |
| 003620 | unicode/part1/U+FEA9 NormalizationTest.txt |
ﺩ␊د
|
6 B | |
| 003621 | unicode/part1/U+FEAA NormalizationTest.txt |
ﺪ␊د
|
6 B | |
| 003622 | unicode/part1/U+FEAB NormalizationTest.txt |
ﺫ␊ذ
|
6 B | |
| 003623 | unicode/part1/U+FEAC NormalizationTest.txt |
ﺬ␊ذ
|
6 B | |
| 003624 | unicode/part1/U+FEAD NormalizationTest.txt |
ﺭ␊ر
|
6 B | |
| 003625 | unicode/part1/U+FEAE NormalizationTest.txt |
ﺮ␊ر
|
6 B | |
| 003626 | unicode/part1/U+FEAF NormalizationTest.txt |
ﺯ␊ز
|
6 B | |
| 003627 | unicode/part1/U+FEB0 NormalizationTest.txt |
ﺰ␊ز
|
6 B | |
| 003628 | unicode/part1/U+FEB1 NormalizationTest.txt |
ﺱ␊س
|
6 B | |
| 003629 | unicode/part1/U+FEB2 NormalizationTest.txt |
ﺲ␊س
|
6 B | |
| 003630 | unicode/part1/U+FEB3 NormalizationTest.txt |
ﺳ␊س
|
6 B | |
| 003631 | unicode/part1/U+FEB4 NormalizationTest.txt |
ﺴ␊س
|
6 B | |
| 003632 | unicode/part1/U+FEB5 NormalizationTest.txt |
ﺵ␊ش
|
6 B | |
| 003633 | unicode/part1/U+FEB6 NormalizationTest.txt |
ﺶ␊ش
|
6 B | |
| 003634 | unicode/part1/U+FEB7 NormalizationTest.txt |
ﺷ␊ش
|
6 B | |
| 003635 | unicode/part1/U+FEB8 NormalizationTest.txt |
ﺸ␊ش
|
6 B | |
| 003636 | unicode/part1/U+FEB9 NormalizationTest.txt |
ﺹ␊ص
|
6 B | |
| 003637 | unicode/part1/U+FEBA NormalizationTest.txt |
ﺺ␊ص
|
6 B | |
| 003638 | unicode/part1/U+FEBB NormalizationTest.txt |
ﺻ␊ص
|
6 B | |
| 003639 | unicode/part1/U+FEBC NormalizationTest.txt |
ﺼ␊ص
|
6 B | |
| 003640 | unicode/part1/U+FEBD NormalizationTest.txt |
ﺽ␊ض
|
6 B | |
| 003641 | unicode/part1/U+FEBE NormalizationTest.txt |
ﺾ␊ض
|
6 B | |
| 003642 | unicode/part1/U+FEBF NormalizationTest.txt |
ﺿ␊ض
|
6 B | |
| 003643 | unicode/part1/U+FEC0 NormalizationTest.txt |
ﻀ␊ض
|
6 B | |
| 003644 | unicode/part1/U+FEC1 NormalizationTest.txt |
ﻁ␊ط
|
6 B | |
| 003645 | unicode/part1/U+FEC2 NormalizationTest.txt |
ﻂ␊ط
|
6 B | |
| 003646 | unicode/part1/U+FEC3 NormalizationTest.txt |
ﻃ␊ط
|
6 B | |
| 003647 | unicode/part1/U+FEC4 NormalizationTest.txt |
ﻄ␊ط
|
6 B | |
| 003648 | unicode/part1/U+FEC5 NormalizationTest.txt |
ﻅ␊ظ
|
6 B | |
| 003649 | unicode/part1/U+FEC6 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