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

All 11,911 cases

Case Name Expected Note Size
008150 unicode/part4/line 19385 NormalizationTest.txt Ḹ␊Ḹ␊Ḹ Line 19385: LATIN CAPITAL LETTER L WITH DOT BELOW, COMBINING MACRON. Its distinct columns, one per line. 15 B
008151 unicode/part4/line 19386 NormalizationTest.txt ḹ␊ḹ␊ḹ Line 19386: LATIN SMALL LETTER L WITH DOT BELOW, COMBINING MACRON. Its distinct columns, one per line. 15 B
008152 unicode/part4/line 19387 NormalizationTest.txt Ṍ␊Ṍ␊Ṍ Line 19387: LATIN CAPITAL LETTER O WITH TILDE, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008153 unicode/part4/line 19388 NormalizationTest.txt Ṍ␊Ṍ␊Ṍ Line 19388: LATIN CAPITAL LETTER O WITH TILDE, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008154 unicode/part4/line 19389 NormalizationTest.txt ṍ␊ṍ␊ṍ Line 19389: LATIN SMALL LETTER O WITH TILDE, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008155 unicode/part4/line 19390 NormalizationTest.txt ṍ␊ṍ␊ṍ Line 19390: LATIN SMALL LETTER O WITH TILDE, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008156 unicode/part4/line 19391 NormalizationTest.txt Ṏ␊Ṏ␊Ṏ Line 19391: LATIN CAPITAL LETTER O WITH TILDE, COMBINING DIAERESIS. Its distinct columns, one per line. 14 B
008157 unicode/part4/line 19392 NormalizationTest.txt ṏ␊ṏ␊ṏ Line 19392: LATIN SMALL LETTER O WITH TILDE, COMBINING DIAERESIS. Its distinct columns, one per line. 14 B
008158 unicode/part4/line 19393 NormalizationTest.txt Ṑ␊Ṑ␊Ṑ Line 19393: LATIN CAPITAL LETTER O WITH MACRON, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008159 unicode/part4/line 19394 NormalizationTest.txt Ṑ␊Ṑ␊Ṑ Line 19394: LATIN CAPITAL LETTER O WITH MACRON, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008160 unicode/part4/line 19395 NormalizationTest.txt ṑ␊ṑ␊ṑ Line 19395: LATIN SMALL LETTER O WITH MACRON, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008161 unicode/part4/line 19396 NormalizationTest.txt ṑ␊ṑ␊ṑ Line 19396: LATIN SMALL LETTER O WITH MACRON, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008162 unicode/part4/line 19397 NormalizationTest.txt Ṓ␊Ṓ␊Ṓ Line 19397: LATIN CAPITAL LETTER O WITH MACRON, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008163 unicode/part4/line 19398 NormalizationTest.txt Ṓ␊Ṓ␊Ṓ Line 19398: LATIN CAPITAL LETTER O WITH MACRON, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008164 unicode/part4/line 19399 NormalizationTest.txt ṓ␊ṓ␊ṓ Line 19399: LATIN SMALL LETTER O WITH MACRON, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008165 unicode/part4/line 19400 NormalizationTest.txt ṓ␊ṓ␊ṓ Line 19400: LATIN SMALL LETTER O WITH MACRON, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008166 unicode/part4/line 19401 NormalizationTest.txt Ṝ␊Ṝ␊Ṝ Line 19401: LATIN CAPITAL LETTER R WITH DOT BELOW, COMBINING MACRON. Its distinct columns, one per line. 15 B
008167 unicode/part4/line 19402 NormalizationTest.txt ṝ␊ṝ␊ṝ Line 19402: LATIN SMALL LETTER R WITH DOT BELOW, COMBINING MACRON. Its distinct columns, one per line. 15 B
008168 unicode/part4/line 19403 NormalizationTest.txt Ṥ␊Ṥ␊Ṥ Line 19403: LATIN CAPITAL LETTER S WITH ACUTE, COMBINING DOT ABOVE. Its distinct columns, one per line. 14 B
008169 unicode/part4/line 19404 NormalizationTest.txt ṥ␊ṥ␊ṥ Line 19404: LATIN SMALL LETTER S WITH ACUTE, COMBINING DOT ABOVE. Its distinct columns, one per line. 14 B
008170 unicode/part4/line 19405 NormalizationTest.txt Ṧ␊Ṧ␊Ṧ Line 19405: LATIN CAPITAL LETTER S WITH CARON, COMBINING DOT ABOVE. Its distinct columns, one per line. 14 B
008171 unicode/part4/line 19406 NormalizationTest.txt ṧ␊ṧ␊ṧ Line 19406: LATIN SMALL LETTER S WITH CARON, COMBINING DOT ABOVE. Its distinct columns, one per line. 14 B
008172 unicode/part4/line 19407 NormalizationTest.txt Ṩ␊Ṩ␊Ṩ Line 19407: LATIN CAPITAL LETTER S WITH DOT ABOVE, COMBINING DOT BELOW. Its distinct columns, one per line. 15 B
008173 unicode/part4/line 19408 NormalizationTest.txt Ṩ␊Ṩ␊Ṩ Line 19408: LATIN CAPITAL LETTER S WITH DOT BELOW, COMBINING DOT ABOVE. Its distinct columns, one per line. 15 B
008174 unicode/part4/line 19409 NormalizationTest.txt ṩ␊ṩ␊ṩ Line 19409: LATIN SMALL LETTER S WITH DOT ABOVE, COMBINING DOT BELOW. Its distinct columns, one per line. 15 B
008175 unicode/part4/line 19410 NormalizationTest.txt ṩ␊ṩ␊ṩ Line 19410: LATIN SMALL LETTER S WITH DOT BELOW, COMBINING DOT ABOVE. Its distinct columns, one per line. 15 B
008176 unicode/part4/line 19411 NormalizationTest.txt Ṹ␊Ṹ␊Ṹ Line 19411: LATIN CAPITAL LETTER U WITH TILDE, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008177 unicode/part4/line 19412 NormalizationTest.txt Ṹ␊Ṹ␊Ṹ Line 19412: LATIN CAPITAL LETTER U WITH TILDE, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008178 unicode/part4/line 19413 NormalizationTest.txt ṹ␊ṹ␊ṹ Line 19413: LATIN SMALL LETTER U WITH TILDE, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008179 unicode/part4/line 19414 NormalizationTest.txt ṹ␊ṹ␊ṹ Line 19414: LATIN SMALL LETTER U WITH TILDE, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008180 unicode/part4/line 19415 NormalizationTest.txt Ṻ␊Ṻ␊Ṻ Line 19415: LATIN CAPITAL LETTER U WITH MACRON, COMBINING DIAERESIS. Its distinct columns, one per line. 14 B
008181 unicode/part4/line 19416 NormalizationTest.txt ṻ␊ṻ␊ṻ Line 19416: LATIN SMALL LETTER U WITH MACRON, COMBINING DIAERESIS. Its distinct columns, one per line. 14 B
008182 unicode/part4/line 19417 NormalizationTest.txt Ấ␊Ấ␊Ấ Line 19417: LATIN CAPITAL LETTER A WITH CIRCUMFLEX, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008183 unicode/part4/line 19418 NormalizationTest.txt Ấ␊Ấ␊Ấ Line 19418: LATIN CAPITAL LETTER A WITH CIRCUMFLEX, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
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

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.