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
000195 unicode/part1/U+0161 NormalizationTest.txt š␊š Line 245: LATIN SMALL LETTER S WITH CARON. Its distinct columns, one per line. 6 B
000196 unicode/part1/U+0162 NormalizationTest.txt Ţ␊Ţ Line 246: LATIN CAPITAL LETTER T WITH CEDILLA. Its distinct columns, one per line. 6 B
000197 unicode/part1/U+0163 NormalizationTest.txt ţ␊ţ Line 247: LATIN SMALL LETTER T WITH CEDILLA. Its distinct columns, one per line. 6 B
000198 unicode/part1/U+0164 NormalizationTest.txt Ť␊Ť Line 248: LATIN CAPITAL LETTER T WITH CARON. Its distinct columns, one per line. 6 B
000199 unicode/part1/U+0165 NormalizationTest.txt ť␊ť Line 249: LATIN SMALL LETTER T WITH CARON. Its distinct columns, one per line. 6 B
000200 unicode/part1/U+0168 NormalizationTest.txt Ũ␊Ũ Line 250: LATIN CAPITAL LETTER U WITH TILDE. Its distinct columns, one per line. 6 B
000201 unicode/part1/U+0169 NormalizationTest.txt ũ␊ũ Line 251: LATIN SMALL LETTER U WITH TILDE. Its distinct columns, one per line. 6 B
000202 unicode/part1/U+016A NormalizationTest.txt Ū␊Ū Line 252: LATIN CAPITAL LETTER U WITH MACRON. Its distinct columns, one per line. 6 B
000203 unicode/part1/U+016B NormalizationTest.txt ū␊ū Line 253: LATIN SMALL LETTER U WITH MACRON. Its distinct columns, one per line. 6 B
000204 unicode/part1/U+016C NormalizationTest.txt Ŭ␊Ŭ Line 254: LATIN CAPITAL LETTER U WITH BREVE. Its distinct columns, one per line. 6 B
000205 unicode/part1/U+016D NormalizationTest.txt ŭ␊ŭ Line 255: LATIN SMALL LETTER U WITH BREVE. Its distinct columns, one per line. 6 B
000206 unicode/part1/U+016E NormalizationTest.txt Ů␊Ů Line 256: LATIN CAPITAL LETTER U WITH RING ABOVE. Its distinct columns, one per line. 6 B
000207 unicode/part1/U+016F NormalizationTest.txt ů␊ů Line 257: LATIN SMALL LETTER U WITH RING ABOVE. Its distinct columns, one per line. 6 B
000208 unicode/part1/U+0170 NormalizationTest.txt Ű␊Ű Line 258: LATIN CAPITAL LETTER U WITH DOUBLE ACUTE. Its distinct columns, one per line. 6 B
000209 unicode/part1/U+0171 NormalizationTest.txt ű␊ű Line 259: LATIN SMALL LETTER U WITH DOUBLE ACUTE. Its distinct columns, one per line. 6 B
000210 unicode/part1/U+0172 NormalizationTest.txt Ų␊Ų Line 260: LATIN CAPITAL LETTER U WITH OGONEK. Its distinct columns, one per line. 6 B
000211 unicode/part1/U+0173 NormalizationTest.txt ų␊ų Line 261: LATIN SMALL LETTER U WITH OGONEK. Its distinct columns, one per line. 6 B
000212 unicode/part1/U+0174 NormalizationTest.txt Ŵ␊Ŵ Line 262: LATIN CAPITAL LETTER W WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000213 unicode/part1/U+0175 NormalizationTest.txt ŵ␊ŵ Line 263: LATIN SMALL LETTER W WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000214 unicode/part1/U+0176 NormalizationTest.txt Ŷ␊Ŷ Line 264: LATIN CAPITAL LETTER Y WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000215 unicode/part1/U+0177 NormalizationTest.txt ŷ␊ŷ Line 265: LATIN SMALL LETTER Y WITH CIRCUMFLEX. Its distinct columns, one per line. 6 B
000216 unicode/part1/U+0178 NormalizationTest.txt Ÿ␊Ÿ Line 266: LATIN CAPITAL LETTER Y WITH DIAERESIS. Its distinct columns, one per line. 6 B
000217 unicode/part1/U+0179 NormalizationTest.txt Ź␊Ź Line 267: LATIN CAPITAL LETTER Z WITH ACUTE. Its distinct columns, one per line. 6 B
000218 unicode/part1/U+017A NormalizationTest.txt ź␊ź Line 268: LATIN SMALL LETTER Z WITH ACUTE. Its distinct columns, one per line. 6 B
000219 unicode/part1/U+017B NormalizationTest.txt Ż␊Ż Line 269: LATIN CAPITAL LETTER Z WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000220 unicode/part1/U+017C NormalizationTest.txt ż␊ż Line 270: LATIN SMALL LETTER Z WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000221 unicode/part1/U+017D NormalizationTest.txt Ž␊Ž Line 271: LATIN CAPITAL LETTER Z WITH CARON. Its distinct columns, one per line. 6 B
000222 unicode/part1/U+017E NormalizationTest.txt ž␊ž Line 272: LATIN SMALL LETTER Z WITH CARON. Its distinct columns, one per line. 6 B
000223 unicode/part1/U+017F NormalizationTest.txt ſ␊s Line 273: LATIN SMALL LETTER LONG S. Its distinct columns, one per line. 4 B
000224 unicode/part1/U+01A0 NormalizationTest.txt Ơ␊Ơ Line 274: LATIN CAPITAL LETTER O WITH HORN. Its distinct columns, one per line. 6 B
000225 unicode/part1/U+01A1 NormalizationTest.txt ơ␊ơ Line 275: LATIN SMALL LETTER O WITH HORN. Its distinct columns, one per line. 6 B
000226 unicode/part1/U+01AF NormalizationTest.txt Ư␊Ư Line 276: LATIN CAPITAL LETTER U WITH HORN. Its distinct columns, one per line. 6 B
000227 unicode/part1/U+01B0 NormalizationTest.txt ư␊ư Line 277: LATIN SMALL LETTER U WITH HORN. Its distinct columns, one per line. 6 B
000228 unicode/part1/U+01C4 NormalizationTest.txt DŽ␊DŽ␊DŽ Line 278: LATIN CAPITAL LETTER DZ WITH CARON. Its distinct columns, one per line. 11 B
000229 unicode/part1/U+01C5 NormalizationTest.txt Dž␊Dž␊Dž Line 279: LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON. Its distinct columns, one per line. 11 B
000230 unicode/part1/U+01C6 NormalizationTest.txt dž␊dž␊dž Line 280: LATIN SMALL LETTER DZ WITH CARON. Its distinct columns, one per line. 11 B
000231 unicode/part1/U+01C7 NormalizationTest.txt LJ␊LJ Line 281: LATIN CAPITAL LETTER LJ. Its distinct columns, one per line. 5 B
000232 unicode/part1/U+01C8 NormalizationTest.txt Lj␊Lj Line 282: LATIN CAPITAL LETTER L WITH SMALL LETTER J. Its distinct columns, one per line. 5 B
000233 unicode/part1/U+01C9 NormalizationTest.txt lj␊lj Line 283: LATIN SMALL LETTER LJ. Its distinct columns, one per line. 5 B
000234 unicode/part1/U+01CA NormalizationTest.txt NJ␊NJ Line 284: LATIN CAPITAL LETTER NJ. Its distinct columns, one per line. 5 B
000235 unicode/part1/U+01CB NormalizationTest.txt Nj␊Nj Line 285: LATIN CAPITAL LETTER N WITH SMALL LETTER J. Its distinct columns, one per line. 5 B
000236 unicode/part1/U+01CC NormalizationTest.txt nj␊nj Line 286: LATIN SMALL LETTER NJ. Its distinct columns, one per line. 5 B
000237 unicode/part1/U+01CD NormalizationTest.txt Ǎ␊Ǎ Line 287: LATIN CAPITAL LETTER A WITH CARON. Its distinct columns, one per line. 6 B
000238 unicode/part1/U+01CE NormalizationTest.txt ǎ␊ǎ Line 288: LATIN SMALL LETTER A WITH CARON. Its distinct columns, one per line. 6 B
000239 unicode/part1/U+01CF NormalizationTest.txt Ǐ␊Ǐ Line 289: LATIN CAPITAL LETTER I WITH CARON. Its distinct columns, one per line. 6 B
000240 unicode/part1/U+01D0 NormalizationTest.txt ǐ␊ǐ Line 290: LATIN SMALL LETTER I WITH CARON. Its distinct columns, one per line. 6 B
000241 unicode/part1/U+01D1 NormalizationTest.txt Ǒ␊Ǒ Line 291: LATIN CAPITAL LETTER O WITH CARON. Its distinct columns, one per line. 6 B
000242 unicode/part1/U+01D2 NormalizationTest.txt ǒ␊ǒ Line 292: LATIN SMALL LETTER O WITH CARON. Its distinct columns, one per line. 6 B
000243 unicode/part1/U+01D3 NormalizationTest.txt Ǔ␊Ǔ Line 293: LATIN CAPITAL LETTER U WITH CARON. Its distinct columns, one per line. 6 B
000244 unicode/part1/U+01D4 NormalizationTest.txt ǔ␊ǔ Line 294: LATIN SMALL LETTER U 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.