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
000145 unicode/part1/U+0125 NormalizationTest.txt ĥ␊ĥ Line 195: LATIN SMALL LETTER H WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000146 unicode/part1/U+0128 NormalizationTest.txt Ĩ␊Ĩ Line 196: LATIN CAPITAL LETTER I WITH TILDE. Its distinct columns, one per line. 6 B
000147 unicode/part1/U+0129 NormalizationTest.txt ĩ␊ĩ Line 197: LATIN SMALL LETTER I WITH TILDE. Its distinct columns, one per line. 6 B
000148 unicode/part1/U+012A NormalizationTest.txt Ī␊Ī Line 198: LATIN CAPITAL LETTER I WITH MACRON. Its distinct columns, one per line. 6 B
000149 unicode/part1/U+012B NormalizationTest.txt ī␊ī Line 199: LATIN SMALL LETTER I WITH MACRON. Its distinct columns, one per line. 6 B
000150 unicode/part1/U+012C NormalizationTest.txt Ĭ␊Ĭ Line 200: LATIN CAPITAL LETTER I WITH BREVE. Its distinct columns, one per line. 6 B
000151 unicode/part1/U+012D NormalizationTest.txt ĭ␊ĭ Line 201: LATIN SMALL LETTER I WITH BREVE. Its distinct columns, one per line. 6 B
000152 unicode/part1/U+012E NormalizationTest.txt Į␊Į Line 202: LATIN CAPITAL LETTER I WITH OGONEK. Its distinct columns, one per line. 6 B
000153 unicode/part1/U+012F NormalizationTest.txt į␊į Line 203: LATIN SMALL LETTER I WITH OGONEK. Its distinct columns, one per line. 6 B
000154 unicode/part1/U+0130 NormalizationTest.txt İ␊İ Line 204: LATIN CAPITAL LETTER I WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000155 unicode/part1/U+0132 NormalizationTest.txt IJ␊IJ Line 205: LATIN CAPITAL LIGATURE IJ. Its distinct columns, one per line. 5 B
000156 unicode/part1/U+0133 NormalizationTest.txt ij␊ij Line 206: LATIN SMALL LIGATURE IJ. Its distinct columns, one per line. 5 B
000157 unicode/part1/U+0134 NormalizationTest.txt Ĵ␊Ĵ Line 207: LATIN CAPITAL LETTER J WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000158 unicode/part1/U+0135 NormalizationTest.txt ĵ␊ĵ Line 208: LATIN SMALL LETTER J WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000159 unicode/part1/U+0136 NormalizationTest.txt Ķ␊Ķ Line 209: LATIN CAPITAL LETTER K WITH CEDILLA. Its distinct columns, one per line. 6 B
000160 unicode/part1/U+0137 NormalizationTest.txt ķ␊ķ Line 210: LATIN SMALL LETTER K WITH CEDILLA. Its distinct columns, one per line. 6 B
000161 unicode/part1/U+0139 NormalizationTest.txt Ĺ␊Ĺ Line 211: LATIN CAPITAL LETTER L WITH ACUTE. Its distinct columns, one per line. 6 B
000162 unicode/part1/U+013A NormalizationTest.txt ĺ␊ĺ Line 212: LATIN SMALL LETTER L WITH ACUTE. Its distinct columns, one per line. 6 B
000163 unicode/part1/U+013B NormalizationTest.txt Ļ␊Ļ Line 213: LATIN CAPITAL LETTER L WITH CEDILLA. Its distinct columns, one per line. 6 B
000164 unicode/part1/U+013C NormalizationTest.txt ļ␊ļ Line 214: LATIN SMALL LETTER L WITH CEDILLA. Its distinct columns, one per line. 6 B
000165 unicode/part1/U+013D NormalizationTest.txt Ľ␊Ľ Line 215: LATIN CAPITAL LETTER L WITH CARON. Its distinct columns, one per line. 6 B
000166 unicode/part1/U+013E NormalizationTest.txt ľ␊ľ Line 216: LATIN SMALL LETTER L WITH CARON. Its distinct columns, one per line. 6 B
000167 unicode/part1/U+013F NormalizationTest.txt Ŀ␊L· Line 217: LATIN CAPITAL LETTER L WITH MIDDLE DOT. Its distinct columns, one per line. 6 B
000168 unicode/part1/U+0140 NormalizationTest.txt ŀ␊l· Line 218: LATIN SMALL LETTER L WITH MIDDLE DOT. Its distinct columns, one per line. 6 B
000169 unicode/part1/U+0143 NormalizationTest.txt Ń␊Ń Line 219: LATIN CAPITAL LETTER N WITH ACUTE. Its distinct columns, one per line. 6 B
000170 unicode/part1/U+0144 NormalizationTest.txt ń␊ń Line 220: LATIN SMALL LETTER N WITH ACUTE. Its distinct columns, one per line. 6 B
000171 unicode/part1/U+0145 NormalizationTest.txt Ņ␊Ņ Line 221: LATIN CAPITAL LETTER N WITH CEDILLA. Its distinct columns, one per line. 6 B
000172 unicode/part1/U+0146 NormalizationTest.txt ņ␊ņ Line 222: LATIN SMALL LETTER N WITH CEDILLA. Its distinct columns, one per line. 6 B
000173 unicode/part1/U+0147 NormalizationTest.txt Ň␊Ň Line 223: LATIN CAPITAL LETTER N WITH CARON. Its distinct columns, one per line. 6 B
000174 unicode/part1/U+0148 NormalizationTest.txt ň␊ň Line 224: LATIN SMALL LETTER N WITH CARON. Its distinct columns, one per line. 6 B
000175 unicode/part1/U+0149 NormalizationTest.txt ʼn␊ʼn Line 225: LATIN SMALL LETTER N PRECEDED BY APOSTROPHE. Its distinct columns, one per line. 6 B
000176 unicode/part1/U+014C NormalizationTest.txt Ō␊Ō Line 226: LATIN CAPITAL LETTER O WITH MACRON. Its distinct columns, one per line. 6 B
000177 unicode/part1/U+014D NormalizationTest.txt ō␊ō Line 227: LATIN SMALL LETTER O WITH MACRON. Its distinct columns, one per line. 6 B
000178 unicode/part1/U+014E NormalizationTest.txt Ŏ␊Ŏ Line 228: LATIN CAPITAL LETTER O WITH BREVE. Its distinct columns, one per line. 6 B
000179 unicode/part1/U+014F NormalizationTest.txt ŏ␊ŏ Line 229: LATIN SMALL LETTER O WITH BREVE. Its distinct columns, one per line. 6 B
000180 unicode/part1/U+0150 NormalizationTest.txt Ő␊Ő Line 230: LATIN CAPITAL LETTER O WITH DOUBLE ACUTE. Its distinct columns, one per line. 6 B
000181 unicode/part1/U+0151 NormalizationTest.txt ő␊ő Line 231: LATIN SMALL LETTER O WITH DOUBLE ACUTE. Its distinct columns, one per line. 6 B
000182 unicode/part1/U+0154 NormalizationTest.txt Ŕ␊Ŕ Line 232: LATIN CAPITAL LETTER R WITH ACUTE. Its distinct columns, one per line. 6 B
000183 unicode/part1/U+0155 NormalizationTest.txt ŕ␊ŕ Line 233: LATIN SMALL LETTER R WITH ACUTE. Its distinct columns, one per line. 6 B
000184 unicode/part1/U+0156 NormalizationTest.txt Ŗ␊Ŗ Line 234: LATIN CAPITAL LETTER R WITH CEDILLA. Its distinct columns, one per line. 6 B
000185 unicode/part1/U+0157 NormalizationTest.txt ŗ␊ŗ Line 235: LATIN SMALL LETTER R WITH CEDILLA. Its distinct columns, one per line. 6 B
000186 unicode/part1/U+0158 NormalizationTest.txt Ř␊Ř Line 236: LATIN CAPITAL LETTER R WITH CARON. Its distinct columns, one per line. 6 B
000187 unicode/part1/U+0159 NormalizationTest.txt ř␊ř Line 237: LATIN SMALL LETTER R WITH CARON. Its distinct columns, one per line. 6 B
000188 unicode/part1/U+015A NormalizationTest.txt Ś␊Ś Line 238: LATIN CAPITAL LETTER S WITH ACUTE. Its distinct columns, one per line. 6 B
000189 unicode/part1/U+015B NormalizationTest.txt ś␊ś Line 239: LATIN SMALL LETTER S WITH ACUTE. Its distinct columns, one per line. 6 B
000190 unicode/part1/U+015C NormalizationTest.txt Ŝ␊Ŝ Line 240: LATIN CAPITAL LETTER S WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000191 unicode/part1/U+015D NormalizationTest.txt ŝ␊ŝ Line 241: LATIN SMALL LETTER S WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000192 unicode/part1/U+015E NormalizationTest.txt Ş␊Ş Line 242: LATIN CAPITAL LETTER S WITH CEDILLA. Its distinct columns, one per line. 6 B
000193 unicode/part1/U+015F NormalizationTest.txt ş␊ş Line 243: LATIN SMALL LETTER S WITH CEDILLA. Its distinct columns, one per line. 6 B
000194 unicode/part1/U+0160 NormalizationTest.txt Š␊Š Line 244: LATIN CAPITAL LETTER S WITH CARON. 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.