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
000277 unicode/part1/U+01FA NormalizationTest.txt Ǻ␊Ǻ Line 327: LATIN CAPITAL LETTER A WITH RING ABOVE AND ACUTE. Its distinct columns, one per line. 8 B
000278 unicode/part1/U+01FB NormalizationTest.txt ǻ␊ǻ Line 328: LATIN SMALL LETTER A WITH RING ABOVE AND ACUTE. Its distinct columns, one per line. 8 B
000279 unicode/part1/U+01FC NormalizationTest.txt Ǽ␊Ǽ Line 329: LATIN CAPITAL LETTER AE WITH ACUTE. Its distinct columns, one per line. 7 B
000280 unicode/part1/U+01FD NormalizationTest.txt ǽ␊ǽ Line 330: LATIN SMALL LETTER AE WITH ACUTE. Its distinct columns, one per line. 7 B
000281 unicode/part1/U+01FE NormalizationTest.txt Ǿ␊Ǿ Line 331: LATIN CAPITAL LETTER O WITH STROKE AND ACUTE. Its distinct columns, one per line. 7 B
000282 unicode/part1/U+01FF NormalizationTest.txt ǿ␊ǿ Line 332: LATIN SMALL LETTER O WITH STROKE AND ACUTE. Its distinct columns, one per line. 7 B
000283 unicode/part1/U+0200 NormalizationTest.txt Ȁ␊Ȁ Line 333: LATIN CAPITAL LETTER A WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000284 unicode/part1/U+0201 NormalizationTest.txt ȁ␊ȁ Line 334: LATIN SMALL LETTER A WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000285 unicode/part1/U+0202 NormalizationTest.txt Ȃ␊Ȃ Line 335: LATIN CAPITAL LETTER A WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000286 unicode/part1/U+0203 NormalizationTest.txt ȃ␊ȃ Line 336: LATIN SMALL LETTER A WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000287 unicode/part1/U+0204 NormalizationTest.txt Ȅ␊Ȅ Line 337: LATIN CAPITAL LETTER E WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000288 unicode/part1/U+0205 NormalizationTest.txt ȅ␊ȅ Line 338: LATIN SMALL LETTER E WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000289 unicode/part1/U+0206 NormalizationTest.txt Ȇ␊Ȇ Line 339: LATIN CAPITAL LETTER E WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000290 unicode/part1/U+0207 NormalizationTest.txt ȇ␊ȇ Line 340: LATIN SMALL LETTER E WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000291 unicode/part1/U+0208 NormalizationTest.txt Ȉ␊Ȉ Line 341: LATIN CAPITAL LETTER I WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000292 unicode/part1/U+0209 NormalizationTest.txt ȉ␊ȉ Line 342: LATIN SMALL LETTER I WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000293 unicode/part1/U+020A NormalizationTest.txt Ȋ␊Ȋ Line 343: LATIN CAPITAL LETTER I WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000294 unicode/part1/U+020B NormalizationTest.txt ȋ␊ȋ Line 344: LATIN SMALL LETTER I WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000295 unicode/part1/U+020C NormalizationTest.txt Ȍ␊Ȍ Line 345: LATIN CAPITAL LETTER O WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000296 unicode/part1/U+020D NormalizationTest.txt ȍ␊ȍ Line 346: LATIN SMALL LETTER O WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000297 unicode/part1/U+020E NormalizationTest.txt Ȏ␊Ȏ Line 347: LATIN CAPITAL LETTER O WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000298 unicode/part1/U+020F NormalizationTest.txt ȏ␊ȏ Line 348: LATIN SMALL LETTER O WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000299 unicode/part1/U+0210 NormalizationTest.txt Ȑ␊Ȑ Line 349: LATIN CAPITAL LETTER R WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000300 unicode/part1/U+0211 NormalizationTest.txt ȑ␊ȑ Line 350: LATIN SMALL LETTER R WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000301 unicode/part1/U+0212 NormalizationTest.txt Ȓ␊Ȓ Line 351: LATIN CAPITAL LETTER R WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000302 unicode/part1/U+0213 NormalizationTest.txt ȓ␊ȓ Line 352: LATIN SMALL LETTER R WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000303 unicode/part1/U+0214 NormalizationTest.txt Ȕ␊Ȕ Line 353: LATIN CAPITAL LETTER U WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000304 unicode/part1/U+0215 NormalizationTest.txt ȕ␊ȕ Line 354: LATIN SMALL LETTER U WITH DOUBLE GRAVE. Its distinct columns, one per line. 6 B
000305 unicode/part1/U+0216 NormalizationTest.txt Ȗ␊Ȗ Line 355: LATIN CAPITAL LETTER U WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000306 unicode/part1/U+0217 NormalizationTest.txt ȗ␊ȗ Line 356: LATIN SMALL LETTER U WITH INVERTED BREVE. Its distinct columns, one per line. 6 B
000307 unicode/part1/U+0218 NormalizationTest.txt Ș␊Ș Line 357: LATIN CAPITAL LETTER S WITH COMMA BELOW. Its distinct columns, one per line. 6 B
000308 unicode/part1/U+0219 NormalizationTest.txt ș␊ș Line 358: LATIN SMALL LETTER S WITH COMMA BELOW. Its distinct columns, one per line. 6 B
000309 unicode/part1/U+021A NormalizationTest.txt Ț␊Ț Line 359: LATIN CAPITAL LETTER T WITH COMMA BELOW. Its distinct columns, one per line. 6 B
000310 unicode/part1/U+021B NormalizationTest.txt ț␊ț Line 360: LATIN SMALL LETTER T WITH COMMA BELOW. Its distinct columns, one per line. 6 B
000311 unicode/part1/U+021E NormalizationTest.txt Ȟ␊Ȟ Line 361: LATIN CAPITAL LETTER H WITH CARON. Its distinct columns, one per line. 6 B
000312 unicode/part1/U+021F NormalizationTest.txt ȟ␊ȟ Line 362: LATIN SMALL LETTER H WITH CARON. Its distinct columns, one per line. 6 B
000313 unicode/part1/U+0226 NormalizationTest.txt Ȧ␊Ȧ Line 363: LATIN CAPITAL LETTER A WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000314 unicode/part1/U+0227 NormalizationTest.txt ȧ␊ȧ Line 364: LATIN SMALL LETTER A WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000315 unicode/part1/U+0228 NormalizationTest.txt Ȩ␊Ȩ Line 365: LATIN CAPITAL LETTER E WITH CEDILLA. Its distinct columns, one per line. 6 B
000316 unicode/part1/U+0229 NormalizationTest.txt ȩ␊ȩ Line 366: LATIN SMALL LETTER E WITH CEDILLA. Its distinct columns, one per line. 6 B
000317 unicode/part1/U+022A NormalizationTest.txt Ȫ␊Ȫ Line 367: LATIN CAPITAL LETTER O WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000318 unicode/part1/U+022B NormalizationTest.txt ȫ␊ȫ Line 368: LATIN SMALL LETTER O WITH DIAERESIS AND MACRON. Its distinct columns, one per line. 8 B
000319 unicode/part1/U+022C NormalizationTest.txt Ȭ␊Ȭ Line 369: LATIN CAPITAL LETTER O WITH TILDE AND MACRON. Its distinct columns, one per line. 8 B
000320 unicode/part1/U+022D NormalizationTest.txt ȭ␊ȭ Line 370: LATIN SMALL LETTER O WITH TILDE AND MACRON. Its distinct columns, one per line. 8 B
000321 unicode/part1/U+022E NormalizationTest.txt Ȯ␊Ȯ Line 371: LATIN CAPITAL LETTER O WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000322 unicode/part1/U+022F NormalizationTest.txt ȯ␊ȯ Line 372: LATIN SMALL LETTER O WITH DOT ABOVE. Its distinct columns, one per line. 6 B
000323 unicode/part1/U+0230 NormalizationTest.txt Ȱ␊Ȱ Line 373: LATIN CAPITAL LETTER O WITH DOT ABOVE AND MACRON. Its distinct columns, one per line. 8 B
000324 unicode/part1/U+0231 NormalizationTest.txt ȱ␊ȱ Line 374: LATIN SMALL LETTER O WITH DOT ABOVE AND MACRON. Its distinct columns, one per line. 8 B
000325 unicode/part1/U+0232 NormalizationTest.txt Ȳ␊Ȳ Line 375: LATIN CAPITAL LETTER Y WITH MACRON. Its distinct columns, one per line. 6 B
000326 unicode/part1/U+0233 NormalizationTest.txt ȳ␊ȳ Line 376: LATIN SMALL LETTER Y WITH MACRON. 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.