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

5,928 of 11,911 cases

Case Name Expected Note Size
000045 unicode/part1/U+00A0 NormalizationTest.txt ⟨U+00A0⟩␊ Line 93: NO-BREAK SPACE. Its distinct columns, one per line. 4 B
000046 unicode/part1/U+00A8 NormalizationTest.txt ¨␊ ̈ Line 94: DIAERESIS. Its distinct columns, one per line. 6 B
000047 unicode/part1/U+00AA NormalizationTest.txt ª␊a Line 95: FEMININE ORDINAL INDICATOR. Its distinct columns, one per line. 4 B
000048 unicode/part1/U+00AF NormalizationTest.txt ¯␊ ̄ Line 96: MACRON. Its distinct columns, one per line. 6 B
000049 unicode/part1/U+00B2 NormalizationTest.txt ²␊2 Line 97: SUPERSCRIPT TWO. Its distinct columns, one per line. 4 B
000050 unicode/part1/U+00B3 NormalizationTest.txt ³␊3 Line 98: SUPERSCRIPT THREE. Its distinct columns, one per line. 4 B
000051 unicode/part1/U+00B4 NormalizationTest.txt ´␊ ́ Line 99: ACUTE ACCENT. Its distinct columns, one per line. 6 B
000052 unicode/part1/U+00B5 NormalizationTest.txt µ␊μ Line 100: MICRO SIGN. Its distinct columns, one per line. 5 B
000053 unicode/part1/U+00B8 NormalizationTest.txt ¸␊ ̧ Line 101: CEDILLA. Its distinct columns, one per line. 6 B
000054 unicode/part1/U+00B9 NormalizationTest.txt ¹␊1 Line 102: SUPERSCRIPT ONE. Its distinct columns, one per line. 4 B
000055 unicode/part1/U+00BA NormalizationTest.txt º␊o Line 103: MASCULINE ORDINAL INDICATOR. Its distinct columns, one per line. 4 B
000056 unicode/part1/U+00BC NormalizationTest.txt ¼␊1⁄4 Line 104: VULGAR FRACTION ONE QUARTER. Its distinct columns, one per line. 8 B
000057 unicode/part1/U+00BD NormalizationTest.txt ½␊1⁄2 Line 105: VULGAR FRACTION ONE HALF. Its distinct columns, one per line. 8 B
000058 unicode/part1/U+00BE NormalizationTest.txt ¾␊3⁄4 Line 106: VULGAR FRACTION THREE QUARTERS. Its distinct columns, one per line. 8 B
000059 unicode/part1/U+00C0 NormalizationTest.txt À␊À Line 107: LATIN CAPITAL LETTER A WITH GRAVE. Its distinct columns, one per line. 6 B
000060 unicode/part1/U+00C1 NormalizationTest.txt Á␊Á Line 108: LATIN CAPITAL LETTER A WITH ACUTE. Its distinct columns, one per line. 6 B
000061 unicode/part1/U+00C2 NormalizationTest.txt Â␊Â Line 109: LATIN CAPITAL LETTER A WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000062 unicode/part1/U+00C3 NormalizationTest.txt Ã␊Ã Line 110: LATIN CAPITAL LETTER A WITH TILDE. Its distinct columns, one per line. 6 B
000063 unicode/part1/U+00C4 NormalizationTest.txt Ä␊Ä Line 111: LATIN CAPITAL LETTER A WITH DIAERESIS. Its distinct columns, one per line. 6 B
000064 unicode/part1/U+00C5 NormalizationTest.txt Å␊Å Line 112: LATIN CAPITAL LETTER A WITH RING ABOVE. Its distinct columns, one per line. 6 B
000065 unicode/part1/U+00C7 NormalizationTest.txt Ç␊Ç Line 113: LATIN CAPITAL LETTER C WITH CEDILLA. Its distinct columns, one per line. 6 B
000066 unicode/part1/U+00C9 NormalizationTest.txt É␊É Line 115: LATIN CAPITAL LETTER E WITH ACUTE. Its distinct columns, one per line. 6 B
000067 unicode/part1/U+00CA NormalizationTest.txt Ê␊Ê Line 116: LATIN CAPITAL LETTER E WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000068 unicode/part1/U+00CB NormalizationTest.txt Ë␊Ë Line 117: LATIN CAPITAL LETTER E WITH DIAERESIS. Its distinct columns, one per line. 6 B
000069 unicode/part1/U+00CC NormalizationTest.txt Ì␊Ì Line 118: LATIN CAPITAL LETTER I WITH GRAVE. Its distinct columns, one per line. 6 B
000070 unicode/part1/U+00CD NormalizationTest.txt Í␊Í Line 119: LATIN CAPITAL LETTER I WITH ACUTE. Its distinct columns, one per line. 6 B
000071 unicode/part1/U+00CE NormalizationTest.txt Î␊Î Line 120: LATIN CAPITAL LETTER I WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000072 unicode/part1/U+00CF NormalizationTest.txt Ï␊Ï Line 121: LATIN CAPITAL LETTER I WITH DIAERESIS. Its distinct columns, one per line. 6 B
000073 unicode/part1/U+00D1 NormalizationTest.txt Ñ␊Ñ Line 122: LATIN CAPITAL LETTER N WITH TILDE. Its distinct columns, one per line. 6 B
000074 unicode/part1/U+00D2 NormalizationTest.txt Ò␊Ò Line 123: LATIN CAPITAL LETTER O WITH GRAVE. Its distinct columns, one per line. 6 B
000075 unicode/part1/U+00D3 NormalizationTest.txt Ó␊Ó Line 124: LATIN CAPITAL LETTER O WITH ACUTE. Its distinct columns, one per line. 6 B
000076 unicode/part1/U+00D4 NormalizationTest.txt Ô␊Ô Line 125: LATIN CAPITAL LETTER O WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000077 unicode/part1/U+00D5 NormalizationTest.txt Õ␊Õ Line 126: LATIN CAPITAL LETTER O WITH TILDE. Its distinct columns, one per line. 6 B
000078 unicode/part1/U+00D6 NormalizationTest.txt Ö␊Ö Line 127: LATIN CAPITAL LETTER O WITH DIAERESIS. Its distinct columns, one per line. 6 B
000079 unicode/part1/U+00D9 NormalizationTest.txt Ù␊Ù Line 128: LATIN CAPITAL LETTER U WITH GRAVE. Its distinct columns, one per line. 6 B
000080 unicode/part1/U+00DA NormalizationTest.txt Ú␊Ú Line 129: LATIN CAPITAL LETTER U WITH ACUTE. Its distinct columns, one per line. 6 B
000081 unicode/part1/U+00DB NormalizationTest.txt Û␊Û Line 130: LATIN CAPITAL LETTER U WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000082 unicode/part1/U+00DC NormalizationTest.txt Ü␊Ü Line 131: LATIN CAPITAL LETTER U WITH DIAERESIS. Its distinct columns, one per line. 6 B
000083 unicode/part1/U+00DD NormalizationTest.txt Ý␊Ý Line 132: LATIN CAPITAL LETTER Y WITH ACUTE. Its distinct columns, one per line. 6 B
000084 unicode/part1/U+00E0 NormalizationTest.txt à␊à Line 133: LATIN SMALL LETTER A WITH GRAVE. Its distinct columns, one per line. 6 B
000085 unicode/part1/U+00E1 NormalizationTest.txt á␊á Line 134: LATIN SMALL LETTER A WITH ACUTE. Its distinct columns, one per line. 6 B
000086 unicode/part1/U+00E2 NormalizationTest.txt â␊â Line 135: LATIN SMALL LETTER A WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000087 unicode/part1/U+00E3 NormalizationTest.txt ã␊ã Line 136: LATIN SMALL LETTER A WITH TILDE. Its distinct columns, one per line. 6 B
000088 unicode/part1/U+00E4 NormalizationTest.txt ä␊ä Line 137: LATIN SMALL LETTER A WITH DIAERESIS. Its distinct columns, one per line. 6 B
000089 unicode/part1/U+00E5 NormalizationTest.txt å␊å Line 138: LATIN SMALL LETTER A WITH RING ABOVE. Its distinct columns, one per line. 6 B
000090 unicode/part1/U+00E7 NormalizationTest.txt ç␊ç Line 139: LATIN SMALL LETTER C WITH CEDILLA. Its distinct columns, one per line. 6 B
000091 unicode/part1/U+00E8 NormalizationTest.txt è␊è Line 140: LATIN SMALL LETTER E WITH GRAVE. Its distinct columns, one per line. 6 B
000092 unicode/part1/U+00E9 NormalizationTest.txt é␊é Line 141: LATIN SMALL LETTER E WITH ACUTE. Its distinct columns, one per line. 6 B
000093 unicode/part1/U+00EA NormalizationTest.txt ê␊ê Line 142: LATIN SMALL LETTER E WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000094 unicode/part1/U+00EB NormalizationTest.txt ë␊ë Line 143: LATIN SMALL LETTER E WITH DIAERESIS. Its distinct columns, one per line. 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.