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

956 of 11,911 cases

Case Name Expected Note Size
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
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
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
000245 unicode/part1/U+01D5 NormalizationTest.txt Ǖ␊Ǖ Line 295: LATIN CAPITAL LETTER U WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000246 unicode/part1/U+01D6 NormalizationTest.txt ǖ␊ǖ Line 296: LATIN SMALL LETTER U WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000247 unicode/part1/U+01D7 NormalizationTest.txt Ǘ␊Ǘ Line 297: LATIN CAPITAL LETTER U WITH DIAERESIS AND ACUTE. Its distinct columns, one per line. 8 B
000248 unicode/part1/U+01D8 NormalizationTest.txt ǘ␊ǘ Line 298: LATIN SMALL LETTER U WITH DIAERESIS AND ACUTE. Its distinct columns, one per line. 8 B
000249 unicode/part1/U+01D9 NormalizationTest.txt Ǚ␊Ǚ Line 299: LATIN CAPITAL LETTER U WITH DIAERESIS AND CARON. Its distinct columns, one per line. 8 B
000250 unicode/part1/U+01DA NormalizationTest.txt ǚ␊ǚ Line 300: LATIN SMALL LETTER U WITH DIAERESIS AND CARON. Its distinct columns, one per line. 8 B
000251 unicode/part1/U+01DB NormalizationTest.txt Ǜ␊Ǜ Line 301: LATIN CAPITAL LETTER U WITH DIAERESIS AND GRAVE. Its distinct columns, one per line. 8 B
000252 unicode/part1/U+01DC NormalizationTest.txt ǜ␊ǜ Line 302: LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE. Its distinct columns, one per line. 8 B
000253 unicode/part1/U+01DE NormalizationTest.txt Ǟ␊Ǟ Line 303: LATIN CAPITAL LETTER A WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000254 unicode/part1/U+01DF NormalizationTest.txt ǟ␊ǟ Line 304: LATIN SMALL LETTER A WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000255 unicode/part1/U+01E0 NormalizationTest.txt Ǡ␊Ǡ Line 305: LATIN CAPITAL LETTER A WITH DOT ABOVE AND MACRON. Its distinct columns, one per line. 8 B
000256 unicode/part1/U+01E1 NormalizationTest.txt ǡ␊ǡ Line 306: LATIN SMALL LETTER A WITH DOT ABOVE AND MACRON. Its distinct columns, one per line. 8 B
000257 unicode/part1/U+01E2 NormalizationTest.txt Ǣ␊Ǣ Line 307: LATIN CAPITAL LETTER AE WITH MACRON. Its distinct columns, one per line. 7 B
000258 unicode/part1/U+01E3 NormalizationTest.txt ǣ␊ǣ Line 308: LATIN SMALL LETTER AE WITH MACRON. Its distinct columns, one per line. 7 B
000259 unicode/part1/U+01E6 NormalizationTest.txt Ǧ␊Ǧ Line 309: LATIN CAPITAL LETTER G WITH CARON. Its distinct columns, one per line. 6 B
000260 unicode/part1/U+01E7 NormalizationTest.txt ǧ␊ǧ Line 310: LATIN SMALL LETTER G WITH CARON. Its distinct columns, one per line. 6 B
000261 unicode/part1/U+01E8 NormalizationTest.txt Ǩ␊Ǩ Line 311: LATIN CAPITAL LETTER K WITH CARON. Its distinct columns, one per line. 6 B
000262 unicode/part1/U+01E9 NormalizationTest.txt ǩ␊ǩ Line 312: LATIN SMALL LETTER K WITH CARON. Its distinct columns, one per line. 6 B
000263 unicode/part1/U+01EA NormalizationTest.txt Ǫ␊Ǫ Line 313: LATIN CAPITAL LETTER O WITH OGONEK. Its distinct columns, one per line. 6 B
000264 unicode/part1/U+01EB NormalizationTest.txt ǫ␊ǫ Line 314: LATIN SMALL LETTER O WITH OGONEK. Its distinct columns, one per line. 6 B
000265 unicode/part1/U+01EC NormalizationTest.txt Ǭ␊Ǭ Line 315: LATIN CAPITAL LETTER O WITH OGONEK AND MACRON. Its distinct columns, one per line. 8 B
000266 unicode/part1/U+01ED NormalizationTest.txt ǭ␊ǭ Line 316: LATIN SMALL LETTER O WITH OGONEK AND MACRON. Its distinct columns, one per line. 8 B
000267 unicode/part1/U+01EE NormalizationTest.txt Ǯ␊Ǯ Line 317: LATIN CAPITAL LETTER EZH WITH CARON. Its distinct columns, one per line. 7 B
000268 unicode/part1/U+01EF NormalizationTest.txt ǯ␊ǯ Line 318: LATIN SMALL LETTER EZH WITH CARON. Its distinct columns, one per line. 7 B
000269 unicode/part1/U+01F0 NormalizationTest.txt ǰ␊ǰ Line 319: LATIN SMALL LETTER J WITH CARON. Its distinct columns, one per line. 6 B
000273 unicode/part1/U+01F4 NormalizationTest.txt Ǵ␊Ǵ Line 323: LATIN CAPITAL LETTER G WITH ACUTE. Its distinct columns, one per line. 6 B
000274 unicode/part1/U+01F5 NormalizationTest.txt ǵ␊ǵ Line 324: LATIN SMALL LETTER G WITH ACUTE. Its distinct columns, one per line. 6 B
000275 unicode/part1/U+01F8 NormalizationTest.txt Ǹ␊Ǹ Line 325: LATIN CAPITAL LETTER N WITH GRAVE. Its distinct columns, one per line. 6 B
000276 unicode/part1/U+01F9 NormalizationTest.txt ǹ␊ǹ Line 326: LATIN SMALL LETTER N WITH GRAVE. 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.