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
008234 unicode/part4/line 19469 NormalizationTest.txt Ồ␊Ồ␊Ồ Line 19469: LATIN CAPITAL LETTER O WITH CIRCUMFLEX, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008235 unicode/part4/line 19470 NormalizationTest.txt Ồ␊Ồ␊Ồ Line 19470: LATIN CAPITAL LETTER O WITH CIRCUMFLEX, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008236 unicode/part4/line 19471 NormalizationTest.txt ồ␊ồ␊ồ Line 19471: LATIN SMALL LETTER O WITH CIRCUMFLEX, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008237 unicode/part4/line 19472 NormalizationTest.txt ồ␊ồ␊ồ Line 19472: LATIN SMALL LETTER O WITH CIRCUMFLEX, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008238 unicode/part4/line 19473 NormalizationTest.txt Ổ␊Ổ␊Ổ Line 19473: LATIN CAPITAL LETTER O WITH CIRCUMFLEX, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008239 unicode/part4/line 19474 NormalizationTest.txt ổ␊ổ␊ổ Line 19474: LATIN SMALL LETTER O WITH CIRCUMFLEX, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008240 unicode/part4/line 19475 NormalizationTest.txt Ỗ␊Ỗ␊Ỗ Line 19475: LATIN CAPITAL LETTER O WITH CIRCUMFLEX, COMBINING TILDE. Its distinct columns, one per line. 14 B
008241 unicode/part4/line 19476 NormalizationTest.txt ỗ␊ỗ␊ỗ Line 19476: LATIN SMALL LETTER O WITH CIRCUMFLEX, COMBINING TILDE. Its distinct columns, one per line. 14 B
008242 unicode/part4/line 19477 NormalizationTest.txt Ộ␊Ộ␊Ộ Line 19477: LATIN CAPITAL LETTER O WITH CIRCUMFLEX, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008243 unicode/part4/line 19478 NormalizationTest.txt Ộ␊Ộ␊Ộ Line 19478: LATIN CAPITAL LETTER O WITH DOT BELOW, COMBINING CIRCUMFLEX ACCENT. Its distinct columns, one per line. 15 B
008244 unicode/part4/line 19479 NormalizationTest.txt ộ␊ộ␊ộ Line 19479: LATIN SMALL LETTER O WITH CIRCUMFLEX, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008245 unicode/part4/line 19480 NormalizationTest.txt ộ␊ộ␊ộ Line 19480: LATIN SMALL LETTER O WITH DOT BELOW, COMBINING CIRCUMFLEX ACCENT. Its distinct columns, one per line. 15 B
008246 unicode/part4/line 19481 NormalizationTest.txt Ớ␊Ớ␊Ớ Line 19481: LATIN CAPITAL LETTER O WITH ACUTE, COMBINING HORN. Its distinct columns, one per line. 14 B
008247 unicode/part4/line 19482 NormalizationTest.txt Ớ␊Ớ␊Ớ Line 19482: LATIN CAPITAL LETTER O WITH HORN, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008248 unicode/part4/line 19483 NormalizationTest.txt Ớ␊Ớ␊Ớ Line 19483: LATIN CAPITAL LETTER O WITH HORN, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008249 unicode/part4/line 19484 NormalizationTest.txt ớ␊ớ␊ớ Line 19484: LATIN SMALL LETTER O WITH ACUTE, COMBINING HORN. Its distinct columns, one per line. 14 B
008250 unicode/part4/line 19485 NormalizationTest.txt ớ␊ớ␊ớ Line 19485: LATIN SMALL LETTER O WITH HORN, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008251 unicode/part4/line 19486 NormalizationTest.txt ớ␊ớ␊ớ Line 19486: LATIN SMALL LETTER O WITH HORN, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008252 unicode/part4/line 19487 NormalizationTest.txt Ờ␊Ờ␊Ờ Line 19487: LATIN CAPITAL LETTER O WITH GRAVE, COMBINING HORN. Its distinct columns, one per line. 14 B
008253 unicode/part4/line 19488 NormalizationTest.txt Ờ␊Ờ␊Ờ Line 19488: LATIN CAPITAL LETTER O WITH HORN, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008254 unicode/part4/line 19489 NormalizationTest.txt Ờ␊Ờ␊Ờ Line 19489: LATIN CAPITAL LETTER O WITH HORN, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008255 unicode/part4/line 19490 NormalizationTest.txt ờ␊ờ␊ờ Line 19490: LATIN SMALL LETTER O WITH GRAVE, COMBINING HORN. Its distinct columns, one per line. 14 B
008256 unicode/part4/line 19491 NormalizationTest.txt ờ␊ờ␊ờ Line 19491: LATIN SMALL LETTER O WITH HORN, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008257 unicode/part4/line 19492 NormalizationTest.txt ờ␊ờ␊ờ Line 19492: LATIN SMALL LETTER O WITH HORN, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008258 unicode/part4/line 19493 NormalizationTest.txt Ở␊Ở␊Ở Line 19493: LATIN CAPITAL LETTER O WITH HORN, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008259 unicode/part4/line 19494 NormalizationTest.txt Ở␊Ở␊Ở Line 19494: LATIN CAPITAL LETTER O WITH HOOK ABOVE, COMBINING HORN. Its distinct columns, one per line. 15 B
008260 unicode/part4/line 19495 NormalizationTest.txt ở␊ở␊ở Line 19495: LATIN SMALL LETTER O WITH HORN, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008261 unicode/part4/line 19496 NormalizationTest.txt ở␊ở␊ở Line 19496: LATIN SMALL LETTER O WITH HOOK ABOVE, COMBINING HORN. Its distinct columns, one per line. 15 B
008262 unicode/part4/line 19497 NormalizationTest.txt Ỡ␊Ỡ␊Ỡ Line 19497: LATIN CAPITAL LETTER O WITH TILDE, COMBINING HORN. Its distinct columns, one per line. 14 B
008263 unicode/part4/line 19498 NormalizationTest.txt Ỡ␊Ỡ␊Ỡ Line 19498: LATIN CAPITAL LETTER O WITH HORN, COMBINING TILDE. Its distinct columns, one per line. 14 B
008264 unicode/part4/line 19499 NormalizationTest.txt ỡ␊ỡ␊ỡ Line 19499: LATIN SMALL LETTER O WITH TILDE, COMBINING HORN. Its distinct columns, one per line. 14 B
008265 unicode/part4/line 19500 NormalizationTest.txt ỡ␊ỡ␊ỡ Line 19500: LATIN SMALL LETTER O WITH HORN, COMBINING TILDE. Its distinct columns, one per line. 14 B
008266 unicode/part4/line 19501 NormalizationTest.txt Ợ␊Ợ␊Ợ Line 19501: LATIN CAPITAL LETTER O WITH HORN, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008267 unicode/part4/line 19502 NormalizationTest.txt Ợ␊Ợ␊Ợ Line 19502: LATIN CAPITAL LETTER O WITH DOT BELOW, COMBINING HORN. Its distinct columns, one per line. 15 B
008268 unicode/part4/line 19503 NormalizationTest.txt ợ␊ợ␊ợ Line 19503: LATIN SMALL LETTER O WITH HORN, COMBINING DOT BELOW. Its distinct columns, one per line. 14 B
008269 unicode/part4/line 19504 NormalizationTest.txt ợ␊ợ␊ợ Line 19504: LATIN SMALL LETTER O WITH DOT BELOW, COMBINING HORN. Its distinct columns, one per line. 15 B
008270 unicode/part4/line 19505 NormalizationTest.txt Ứ␊Ứ␊Ứ Line 19505: LATIN CAPITAL LETTER U WITH ACUTE, COMBINING HORN. Its distinct columns, one per line. 14 B
008271 unicode/part4/line 19506 NormalizationTest.txt Ứ␊Ứ␊Ứ Line 19506: LATIN CAPITAL LETTER U WITH HORN, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008272 unicode/part4/line 19507 NormalizationTest.txt Ứ␊Ứ␊Ứ Line 19507: LATIN CAPITAL LETTER U WITH HORN, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008273 unicode/part4/line 19508 NormalizationTest.txt ứ␊ứ␊ứ Line 19508: LATIN SMALL LETTER U WITH ACUTE, COMBINING HORN. Its distinct columns, one per line. 14 B
008274 unicode/part4/line 19509 NormalizationTest.txt ứ␊ứ␊ứ Line 19509: LATIN SMALL LETTER U WITH HORN, COMBINING ACUTE ACCENT. Its distinct columns, one per line. 14 B
008275 unicode/part4/line 19510 NormalizationTest.txt ứ␊ứ␊ứ Line 19510: LATIN SMALL LETTER U WITH HORN, COMBINING ACUTE TONE MARK. Its distinct columns, one per line. 14 B
008276 unicode/part4/line 19511 NormalizationTest.txt Ừ␊Ừ␊Ừ Line 19511: LATIN CAPITAL LETTER U WITH GRAVE, COMBINING HORN. Its distinct columns, one per line. 14 B
008277 unicode/part4/line 19512 NormalizationTest.txt Ừ␊Ừ␊Ừ Line 19512: LATIN CAPITAL LETTER U WITH HORN, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008278 unicode/part4/line 19513 NormalizationTest.txt Ừ␊Ừ␊Ừ Line 19513: LATIN CAPITAL LETTER U WITH HORN, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008279 unicode/part4/line 19514 NormalizationTest.txt ừ␊ừ␊ừ Line 19514: LATIN SMALL LETTER U WITH GRAVE, COMBINING HORN. Its distinct columns, one per line. 14 B
008280 unicode/part4/line 19515 NormalizationTest.txt ừ␊ừ␊ừ Line 19515: LATIN SMALL LETTER U WITH HORN, COMBINING GRAVE ACCENT. Its distinct columns, one per line. 14 B
008281 unicode/part4/line 19516 NormalizationTest.txt ừ␊ừ␊ừ Line 19516: LATIN SMALL LETTER U WITH HORN, COMBINING GRAVE TONE MARK. Its distinct columns, one per line. 14 B
008282 unicode/part4/line 19517 NormalizationTest.txt Ử␊Ử␊Ử Line 19517: LATIN CAPITAL LETTER U WITH HORN, COMBINING HOOK ABOVE. Its distinct columns, one per line. 14 B
008283 unicode/part4/line 19518 NormalizationTest.txt Ử␊Ử␊Ử Line 19518: LATIN CAPITAL LETTER U WITH HOOK ABOVE, COMBINING HORN. Its distinct columns, one per line. 15 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.