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

21 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
009137 regression/text/French decomposed Focused regression Voix ambiguë d'un cœur qui, au zéphyr, préfère l… The same phrase in NFD, as macOS file names and some keyboards produce it. 99 B
009140 regression/text/German decomposed Focused regression Zwölf Boxkämpfer jagen Viktor quer über den groß… The same phrase in NFD, as macOS file names and some keyboards produce it. 71 B
009143 regression/text/Vietnamese decomposed Focused regression Tiếng Việt là ngôn ngữ của người Việt và là ngôn… The same phrase in NFD, as macOS file names and some keyboards produce it. 127 B
009146 regression/text/Polish decomposed Focused regression Pchnąć w tę łódź jeża lub ośm skrzyń fig. The same phrase in NFD, as macOS file names and some keyboards produce it. 58 B
009149 regression/text/Czech decomposed Focused regression Příliš žluťoučký kůň úpěl ďábelské ódy. The same phrase in NFD, as macOS file names and some keyboards produce it. 69 B
009152 regression/text/Greek decomposed Focused regression Ξεσκεπάζω την ψυχοφθόρα βδελυγμία. The same phrase in NFD, as macOS file names and some keyboards produce it. 70 B
009155 regression/text/polytonic Greek decomposed Focused regression Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν… The same phrase in NFD, as macOS file names and some keyboards produce it. 165 B
009158 regression/text/Russian decomposed Focused regression Съешь же ещё этих мягких французских булок, да в… The same phrase in NFD, as macOS file names and some keyboards produce it. 127 B
009160 regression/text/Korean decomposed Focused regression 다람쥐 헌 쳇바퀴에 타고파. 한글은 한국어를 적는 문자이다. The same phrase in NFD, as macOS file names and some keyboards produce it. 189 B
009163 regression/text/Japanese decomposed Focused regression いろはにほへと ちりぬるを。ガギグゲゴ、パピプペポ、ヴァイオリン。 The same phrase in NFD, as macOS file names and some keyboards produce it. 130 B
009168 regression/text/Bengali decomposed Focused regression আমি কাঁচ খেতে পারি, তাতে আমার কোনো ক্ষতি হয় না। বড়ো, আষাঢ়, য় The same phrase in NFD, as macOS file names and some keyboards produce it. 171 B
009170 regression/text/Tamil decomposed Focused regression நான் கண்ணாடி சாப்பிடுவேன், அதனால் எனக்கு ஒரு கேடும் வராது. கொ கோ கௌ The same phrase in NFD, as macOS file names and some keyboards produce it. 186 B
009176 regression/text/emoji decomposed Focused regression 👩🏽⟨U+200D⟩💻 writes ❤️ for 👨⟨U+200D⟩👩⟨U+200D⟩👧⟨U+200D⟩👦 and 🏳️⟨U+200D⟩🌈, é and 🇳🇿. The same phrase in NFD, as macOS file names and some keyboards produce it. 97 B
009914 regression/large/vietnamese decomposed Focused regression Tiếng Việt là ngôn ngữ của người Việt và là ngôn… 16.0 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.