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
Clear

9 of 11,911 cases

Case Name Expected Note Size
000350 unicode/part1/U+0344 NormalizationTest.txt ̈́␊̈́ Line 400: COMBINING GREEK DIALYTIKA TONOS. Its distinct columns, one per line. 7 B
000510 unicode/part1/U+0F73 NormalizationTest.txt ཱི␊ཱི Line 560: TIBETAN VOWEL SIGN II. Its distinct columns, one per line. 10 B
000511 unicode/part1/U+0F75 NormalizationTest.txt ཱུ␊ཱུ Line 561: TIBETAN VOWEL SIGN UU. Its distinct columns, one per line. 10 B
000516 unicode/part1/U+0F81 NormalizationTest.txt ཱྀ␊ཱྀ Line 566: TIBETAN VOWEL SIGN REVERSED II. Its distinct columns, one per line. 10 B
009056 regression/non-starter decomposition/combining greek dialytika tonos Focused regression ̈́ U+0344 decomposes into two marks and never recomposes. 2 B
009057 regression/non-starter decomposition/dialytika tonos after iota Focused regression ΐ The two marks from U+0344 compose with the iota one after the other. 4 B
009058 regression/non-starter decomposition/dialytika tonos after a mark below Focused regression ΐ̣ U+0323 (class 220) sorts before both marks and blocks neither, so the iota still takes them both. 6 B
009059 regression/non-starter decomposition/tibetan vowel signs Focused regression ཱཱཱིྀུ All six pieces are marks (classes 129, 130 and 132), so they sort together. 9 B
009060 regression/non-starter decomposition/tibetan ii after a letter Focused regression ཀཱིི 9 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.