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

956 of 11,911 cases

Case Name Expected Note Size
004012 unicode/part1/U+16126 NormalizationTest.txt 𖄦␊𖄦 Line 15237: GURUNG KHEMA VOWEL SIGN O. Its distinct columns, one per line. 17 B
004013 unicode/part1/U+16127 NormalizationTest.txt 𖄧␊𖄧 Line 15238: GURUNG KHEMA VOWEL SIGN OO. Its distinct columns, one per line. 17 B
004014 unicode/part1/U+16128 NormalizationTest.txt 𖄨␊𖄨 Line 15239: GURUNG KHEMA VOWEL SIGN AU. Its distinct columns, one per line. 17 B
004015 unicode/part1/U+16D68 NormalizationTest.txt 𖵨␊𖵨 Line 15240: KIRAT RAI VOWEL SIGN AI. Its distinct columns, one per line. 13 B
004016 unicode/part1/U+16D69 NormalizationTest.txt 𖵩␊𖵩 Line 15241: KIRAT RAI VOWEL SIGN O. Its distinct columns, one per line. 13 B
004017 unicode/part1/U+16D6A NormalizationTest.txt 𖵪␊𖵪 Line 15242: KIRAT RAI VOWEL SIGN AU. Its distinct columns, one per line. 17 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.