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

7 of 11,911 cases

Case Name Expected Note Size
009004 ucd/no/U+0340..U+F974 Unicode Character Database ̀́␊̣̀␊̀ͅ␊़̀␊゙̀␊́́␊̣́␊́ͅ␊़́␊゙́␊̓́␊̣̓␊̓ͅ␊़̓␊゙̓␊̈́́␊̣̈́␊̈́ͅ␊़̈́␊゙̈́␊ʹ́␊ʹ̣␊ʹͅ␊ʹ़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.8 KiB
009005 ucd/no/U+F975..U+FA3B Unicode Character Database 掠́␊掠̣␊掠ͅ␊掠़␊掠゙␊略́␊略̣␊略ͅ␊略़␊略゙␊亮́␊亮̣␊亮ͅ␊亮़␊亮゙␊兩́␊兩̣␊兩ͅ␊兩़␊兩゙␊凉́␊凉̣␊凉ͅ␊凉़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.8 KiB
009006 ucd/no/U+FA3C..U+FB4B Unicode Character Database 屮́␊屮̣␊屮ͅ␊屮़␊屮゙␊悔́␊悔̣␊悔ͅ␊悔़␊悔゙␊慨́␊慨̣␊慨ͅ␊慨़␊慨゙␊憎́␊憎̣␊憎ͅ␊憎़␊憎゙␊懲́␊懲̣␊懲ͅ␊懲़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.8 KiB
009007 ucd/no/U+FB4C..U+2F891 Unicode Character Database בֿ́␊בֿ̣␊בֿͅ␊ב़ֿ␊ב゙ֿ␊כֿ́␊כֿ̣␊כֿͅ␊כ़ֿ␊כ゙ֿ␊פֿ́␊פֿ̣␊פֿͅ␊פ़ֿ␊פ゙ֿ␊𝅗𝅥́␊𝅗𝅥̣␊𝅗𝅥ͅ␊𝅗़𝅥␊𝅗゙𝅥␊𝅘𝅥́␊𝅘𝅥̣␊𝅘𝅥ͅ␊𝅘़𝅥␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.8 KiB
009008 ucd/no/U+2F892..U+2F933 Unicode Character Database 𢌱́␊𢌱̣␊𢌱ͅ␊𢌱़␊𢌱゙␊舁́␊舁̣␊舁ͅ␊舁़␊舁゙␊弢́␊弢̣␊弢ͅ␊弢़␊弢゙␊弢́␊弢̣␊弢ͅ␊弢़␊弢゙␊㣇́␊㣇̣␊㣇ͅ␊㣇़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.9 KiB
009009 ucd/no/U+2F934..U+2F9D5 Unicode Character Database 甤́␊甤̣␊甤ͅ␊甤़␊甤゙␊𤰶́␊𤰶̣␊𤰶ͅ␊𤰶़␊𤰶゙␊甾́␊甾̣␊甾ͅ␊甾़␊甾゙␊𤲒́␊𤲒̣␊𤲒ͅ␊𤲒़␊𤲒゙␊異́␊異̣␊異ͅ␊異़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.9 KiB
009010 ucd/no/U+2F9D6..U+2FA1D Unicode Character Database 贛́␊贛̣␊贛ͅ␊贛़␊贛゙␊起́␊起̣␊起ͅ␊起़␊起゙␊𧼯́␊𧼯̣␊𧼯ͅ␊𧼯़␊𧼯゙␊𠠄́␊𠠄̣␊𠠄ͅ␊𠠄़␊𠠄゙␊跋́␊跋̣␊跋ͅ␊跋़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 2.6 KiB

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.