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

727 of 11,911 cases

Case Name Expected Note Size
008184 unicode/part4/line 19419 NormalizationTest.txt ấ␊ấ␊ấ Line 19419: LATIN SMALL LETTER A WITH CIRCUMFLEX, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008185 unicode/part4/line 19420 NormalizationTest.txt ấ␊ấ␊ấ Line 19420: LATIN SMALL LETTER A WITH CIRCUMFLEX, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008186 unicode/part4/line 19421 NormalizationTest.txt Ầ␊Ầ␊Ầ Line 19421: LATIN CAPITAL LETTER A WITH CIRCUMFLEX, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008187 unicode/part4/line 19422 NormalizationTest.txt Ầ␊Ầ␊Ầ Line 19422: LATIN CAPITAL LETTER A WITH CIRCUMFLEX, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008188 unicode/part4/line 19423 NormalizationTest.txt ầ␊ầ␊ầ Line 19423: LATIN SMALL LETTER A WITH CIRCUMFLEX, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008189 unicode/part4/line 19424 NormalizationTest.txt ầ␊ầ␊ầ Line 19424: LATIN SMALL LETTER A WITH CIRCUMFLEX, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008190 unicode/part4/line 19425 NormalizationTest.txt Ẩ␊Ẩ␊Ẩ Line 19425: LATIN CAPITAL LETTER A WITH CIRCUMFLEX, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008191 unicode/part4/line 19426 NormalizationTest.txt ẩ␊ẩ␊ẩ Line 19426: LATIN SMALL LETTER A WITH CIRCUMFLEX, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008192 unicode/part4/line 19427 NormalizationTest.txt Ẫ␊Ẫ␊Ẫ Line 19427: LATIN CAPITAL LETTER A WITH CIRCUMFLEX, COMBINING TILDE. Its distinct columns, one per line. 14 B
008193 unicode/part4/line 19428 NormalizationTest.txt ẫ␊ẫ␊ẫ Line 19428: LATIN SMALL LETTER A WITH CIRCUMFLEX, COMBINING TILDE. Its distinct columns, one per line. 14 B
008194 unicode/part4/line 19429 NormalizationTest.txt Ậ␊Ậ␊Ậ Line 19429: LATIN CAPITAL LETTER A WITH CIRCUMFLEX, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008195 unicode/part4/line 19430 NormalizationTest.txt Ậ␊Ậ␊Ậ Line 19430: LATIN CAPITAL LETTER A WITH DOT BELOW, COMBINING CIRCUMFLEX ACCENT. Its distinct columns, one per line. 15 B
008196 unicode/part4/line 19431 NormalizationTest.txt ậ␊ậ␊ậ Line 19431: LATIN SMALL LETTER A WITH CIRCUMFLEX, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008197 unicode/part4/line 19432 NormalizationTest.txt ậ␊ậ␊ậ Line 19432: LATIN SMALL LETTER A WITH DOT BELOW, COMBINING CIRCUMFLEX ACCENT. Its distinct columns, one per line. 15 B
008198 unicode/part4/line 19433 NormalizationTest.txt Ắ␊Ắ␊Ắ Line 19433: LATIN CAPITAL LETTER A WITH BREVE, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008199 unicode/part4/line 19434 NormalizationTest.txt Ắ␊Ắ␊Ắ Line 19434: LATIN CAPITAL LETTER A WITH BREVE, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008200 unicode/part4/line 19435 NormalizationTest.txt ắ␊ắ␊ắ Line 19435: LATIN SMALL LETTER A WITH BREVE, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008201 unicode/part4/line 19436 NormalizationTest.txt ắ␊ắ␊ắ Line 19436: LATIN SMALL LETTER A WITH BREVE, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008202 unicode/part4/line 19437 NormalizationTest.txt Ằ␊Ằ␊Ằ Line 19437: LATIN CAPITAL LETTER A WITH BREVE, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008203 unicode/part4/line 19438 NormalizationTest.txt Ằ␊Ằ␊Ằ Line 19438: LATIN CAPITAL LETTER A WITH BREVE, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008204 unicode/part4/line 19439 NormalizationTest.txt ằ␊ằ␊ằ Line 19439: LATIN SMALL LETTER A WITH BREVE, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008205 unicode/part4/line 19440 NormalizationTest.txt ằ␊ằ␊ằ Line 19440: LATIN SMALL LETTER A WITH BREVE, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008206 unicode/part4/line 19441 NormalizationTest.txt Ẳ␊Ẳ␊Ẳ Line 19441: LATIN CAPITAL LETTER A WITH BREVE, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008207 unicode/part4/line 19442 NormalizationTest.txt ẳ␊ẳ␊ẳ Line 19442: LATIN SMALL LETTER A WITH BREVE, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008208 unicode/part4/line 19443 NormalizationTest.txt Ẵ␊Ẵ␊Ẵ Line 19443: LATIN CAPITAL LETTER A WITH BREVE, COMBINING TILDE. Its distinct columns, one per line. 14 B
008209 unicode/part4/line 19444 NormalizationTest.txt ẵ␊ẵ␊ẵ Line 19444: LATIN SMALL LETTER A WITH BREVE, COMBINING TILDE. Its distinct columns, one per line. 14 B
008210 unicode/part4/line 19445 NormalizationTest.txt Ặ␊Ặ␊Ặ Line 19445: LATIN CAPITAL LETTER A WITH BREVE, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008211 unicode/part4/line 19446 NormalizationTest.txt Ặ␊Ặ␊Ặ Line 19446: LATIN CAPITAL LETTER A WITH DOT BELOW, COMBINING BREVE. Its distinct columns, one per line. 15 B
008212 unicode/part4/line 19447 NormalizationTest.txt ặ␊ặ␊ặ Line 19447: LATIN SMALL LETTER A WITH BREVE, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008213 unicode/part4/line 19448 NormalizationTest.txt ặ␊ặ␊ặ Line 19448: LATIN SMALL LETTER A WITH DOT BELOW, COMBINING BREVE. Its distinct columns, one per line. 15 B
008214 unicode/part4/line 19449 NormalizationTest.txt Ế␊Ế␊Ế Line 19449: LATIN CAPITAL LETTER E WITH CIRCUMFLEX, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008215 unicode/part4/line 19450 NormalizationTest.txt Ế␊Ế␊Ế Line 19450: LATIN CAPITAL LETTER E WITH CIRCUMFLEX, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008216 unicode/part4/line 19451 NormalizationTest.txt ế␊ế␊ế Line 19451: LATIN SMALL LETTER E WITH CIRCUMFLEX, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008217 unicode/part4/line 19452 NormalizationTest.txt ế␊ế␊ế Line 19452: LATIN SMALL LETTER E WITH CIRCUMFLEX, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008218 unicode/part4/line 19453 NormalizationTest.txt Ề␊Ề␊Ề Line 19453: LATIN CAPITAL LETTER E WITH CIRCUMFLEX, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008219 unicode/part4/line 19454 NormalizationTest.txt Ề␊Ề␊Ề Line 19454: LATIN CAPITAL LETTER E WITH CIRCUMFLEX, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008220 unicode/part4/line 19455 NormalizationTest.txt ề␊ề␊ề Line 19455: LATIN SMALL LETTER E WITH CIRCUMFLEX, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008221 unicode/part4/line 19456 NormalizationTest.txt ề␊ề␊ề Line 19456: LATIN SMALL LETTER E WITH CIRCUMFLEX, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008222 unicode/part4/line 19457 NormalizationTest.txt Ể␊Ể␊Ể Line 19457: LATIN CAPITAL LETTER E WITH CIRCUMFLEX, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008223 unicode/part4/line 19458 NormalizationTest.txt ể␊ể␊ể Line 19458: LATIN SMALL LETTER E WITH CIRCUMFLEX, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008224 unicode/part4/line 19459 NormalizationTest.txt Ễ␊Ễ␊Ễ Line 19459: LATIN CAPITAL LETTER E WITH CIRCUMFLEX, COMBINING TILDE. Its distinct columns, one per line. 14 B
008225 unicode/part4/line 19460 NormalizationTest.txt ễ␊ễ␊ễ Line 19460: LATIN SMALL LETTER E WITH CIRCUMFLEX, COMBINING TILDE. Its distinct columns, one per line. 14 B
008226 unicode/part4/line 19461 NormalizationTest.txt Ệ␊Ệ␊Ệ Line 19461: LATIN CAPITAL LETTER E WITH CIRCUMFLEX, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008227 unicode/part4/line 19462 NormalizationTest.txt Ệ␊Ệ␊Ệ Line 19462: LATIN CAPITAL LETTER E WITH DOT BELOW, COMBINING CIRCUMFLEX ACCENT. Its distinct columns, one per line. 15 B
008228 unicode/part4/line 19463 NormalizationTest.txt ệ␊ệ␊ệ Line 19463: LATIN SMALL LETTER E WITH CIRCUMFLEX, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008229 unicode/part4/line 19464 NormalizationTest.txt ệ␊ệ␊ệ Line 19464: LATIN SMALL LETTER E WITH DOT BELOW, COMBINING CIRCUMFLEX ACCENT. Its distinct columns, one per line. 15 B
008230 unicode/part4/line 19465 NormalizationTest.txt Ố␊Ố␊Ố Line 19465: LATIN CAPITAL LETTER O WITH CIRCUMFLEX, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008231 unicode/part4/line 19466 NormalizationTest.txt Ố␊Ố␊Ố Line 19466: LATIN CAPITAL LETTER O WITH CIRCUMFLEX, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008232 unicode/part4/line 19467 NormalizationTest.txt ố␊ố␊ố Line 19467: LATIN SMALL LETTER O WITH CIRCUMFLEX, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008233 unicode/part4/line 19468 NormalizationTest.txt ố␊ố␊ố Line 19468: LATIN SMALL LETTER O WITH CIRCUMFLEX, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 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.