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

1,049 of 11,911 cases

Case Name Expected Note Size
005519 unicode/part1/U+2F86B NormalizationTest.txt 嬾␊嬾 Line 16744: CJK COMPATIBILITY IDEOGRAPH-2F86B. Its distinct columns, one per line. 8 B
005520 unicode/part1/U+2F86C NormalizationTest.txt 𡧈␊𡧈 Line 16745: CJK COMPATIBILITY IDEOGRAPH-2F86C. Its distinct columns, one per line. 9 B
005521 unicode/part1/U+2F86D NormalizationTest.txt 寃␊寃 Line 16746: CJK COMPATIBILITY IDEOGRAPH-2F86D. Its distinct columns, one per line. 8 B
005522 unicode/part1/U+2F86E NormalizationTest.txt 寘␊寘 Line 16747: CJK COMPATIBILITY IDEOGRAPH-2F86E. Its distinct columns, one per line. 8 B
005523 unicode/part1/U+2F86F NormalizationTest.txt 寧␊寧 Line 16748: CJK COMPATIBILITY IDEOGRAPH-2F86F. Its distinct columns, one per line. 8 B
005524 unicode/part1/U+2F870 NormalizationTest.txt 寳␊寳 Line 16749: CJK COMPATIBILITY IDEOGRAPH-2F870. Its distinct columns, one per line. 8 B
005525 unicode/part1/U+2F871 NormalizationTest.txt 𡬘␊𡬘 Line 16750: CJK COMPATIBILITY IDEOGRAPH-2F871. Its distinct columns, one per line. 9 B
005526 unicode/part1/U+2F872 NormalizationTest.txt 寿␊寿 Line 16751: CJK COMPATIBILITY IDEOGRAPH-2F872. Its distinct columns, one per line. 8 B
005527 unicode/part1/U+2F873 NormalizationTest.txt 将␊将 Line 16752: CJK COMPATIBILITY IDEOGRAPH-2F873. Its distinct columns, one per line. 8 B
005528 unicode/part1/U+2F874 NormalizationTest.txt 当␊当 Line 16753: CJK COMPATIBILITY IDEOGRAPH-2F874. Its distinct columns, one per line. 8 B
005529 unicode/part1/U+2F875 NormalizationTest.txt 尢␊尢 Line 16754: CJK COMPATIBILITY IDEOGRAPH-2F875. Its distinct columns, one per line. 8 B
005530 unicode/part1/U+2F876 NormalizationTest.txt 㞁␊㞁 Line 16755: CJK COMPATIBILITY IDEOGRAPH-2F876. Its distinct columns, one per line. 8 B
005531 unicode/part1/U+2F877 NormalizationTest.txt 屠␊屠 Line 16756: CJK COMPATIBILITY IDEOGRAPH-2F877. Its distinct columns, one per line. 8 B
005532 unicode/part1/U+2F878 NormalizationTest.txt 屮␊屮 Line 16757: CJK COMPATIBILITY IDEOGRAPH-2F878. Its distinct columns, one per line. 8 B
005533 unicode/part1/U+2F879 NormalizationTest.txt 峀␊峀 Line 16758: CJK COMPATIBILITY IDEOGRAPH-2F879. Its distinct columns, one per line. 8 B
005534 unicode/part1/U+2F87A NormalizationTest.txt 岍␊岍 Line 16759: CJK COMPATIBILITY IDEOGRAPH-2F87A. Its distinct columns, one per line. 8 B
005535 unicode/part1/U+2F87B NormalizationTest.txt 𡷤␊𡷤 Line 16760: CJK COMPATIBILITY IDEOGRAPH-2F87B. Its distinct columns, one per line. 9 B
005536 unicode/part1/U+2F87C NormalizationTest.txt 嵃␊嵃 Line 16761: CJK COMPATIBILITY IDEOGRAPH-2F87C. Its distinct columns, one per line. 8 B
005537 unicode/part1/U+2F87D NormalizationTest.txt 𡷦␊𡷦 Line 16762: CJK COMPATIBILITY IDEOGRAPH-2F87D. Its distinct columns, one per line. 9 B
005538 unicode/part1/U+2F87E NormalizationTest.txt 嵮␊嵮 Line 16763: CJK COMPATIBILITY IDEOGRAPH-2F87E. Its distinct columns, one per line. 8 B
005539 unicode/part1/U+2F87F NormalizationTest.txt 嵫␊嵫 Line 16764: CJK COMPATIBILITY IDEOGRAPH-2F87F. Its distinct columns, one per line. 8 B
005540 unicode/part1/U+2F880 NormalizationTest.txt 嵼␊嵼 Line 16765: CJK COMPATIBILITY IDEOGRAPH-2F880. Its distinct columns, one per line. 8 B
005541 unicode/part1/U+2F881 NormalizationTest.txt 巡␊巡 Line 16766: CJK COMPATIBILITY IDEOGRAPH-2F881. Its distinct columns, one per line. 8 B
005542 unicode/part1/U+2F882 NormalizationTest.txt 巢␊巢 Line 16767: CJK COMPATIBILITY IDEOGRAPH-2F882. Its distinct columns, one per line. 8 B
005543 unicode/part1/U+2F883 NormalizationTest.txt 㠯␊㠯 Line 16768: CJK COMPATIBILITY IDEOGRAPH-2F883. Its distinct columns, one per line. 8 B
005544 unicode/part1/U+2F884 NormalizationTest.txt 巽␊巽 Line 16769: CJK COMPATIBILITY IDEOGRAPH-2F884. Its distinct columns, one per line. 8 B
005545 unicode/part1/U+2F885 NormalizationTest.txt 帨␊帨 Line 16770: CJK COMPATIBILITY IDEOGRAPH-2F885. Its distinct columns, one per line. 8 B
005546 unicode/part1/U+2F886 NormalizationTest.txt 帽␊帽 Line 16771: CJK COMPATIBILITY IDEOGRAPH-2F886. Its distinct columns, one per line. 8 B
005547 unicode/part1/U+2F887 NormalizationTest.txt 幩␊幩 Line 16772: CJK COMPATIBILITY IDEOGRAPH-2F887. Its distinct columns, one per line. 8 B
005548 unicode/part1/U+2F888 NormalizationTest.txt 㡢␊㡢 Line 16773: CJK COMPATIBILITY IDEOGRAPH-2F888. Its distinct columns, one per line. 8 B
005549 unicode/part1/U+2F889 NormalizationTest.txt 𢆃␊𢆃 Line 16774: CJK COMPATIBILITY IDEOGRAPH-2F889. Its distinct columns, one per line. 9 B
005550 unicode/part1/U+2F88A NormalizationTest.txt 㡼␊㡼 Line 16775: CJK COMPATIBILITY IDEOGRAPH-2F88A. Its distinct columns, one per line. 8 B
005551 unicode/part1/U+2F88B NormalizationTest.txt 庰␊庰 Line 16776: CJK COMPATIBILITY IDEOGRAPH-2F88B. Its distinct columns, one per line. 8 B
005552 unicode/part1/U+2F88C NormalizationTest.txt 庳␊庳 Line 16777: CJK COMPATIBILITY IDEOGRAPH-2F88C. Its distinct columns, one per line. 8 B
005553 unicode/part1/U+2F88D NormalizationTest.txt 庶␊庶 Line 16778: CJK COMPATIBILITY IDEOGRAPH-2F88D. Its distinct columns, one per line. 8 B
005554 unicode/part1/U+2F88E NormalizationTest.txt 廊␊廊 Line 16779: CJK COMPATIBILITY IDEOGRAPH-2F88E. Its distinct columns, one per line. 8 B
005555 unicode/part1/U+2F88F NormalizationTest.txt 𪎒␊𪎒 Line 16780: CJK COMPATIBILITY IDEOGRAPH-2F88F. Its distinct columns, one per line. 9 B
005556 unicode/part1/U+2F890 NormalizationTest.txt 廾␊廾 Line 16781: CJK COMPATIBILITY IDEOGRAPH-2F890. Its distinct columns, one per line. 8 B
005557 unicode/part1/U+2F891 NormalizationTest.txt 𢌱␊𢌱 Line 16782: CJK COMPATIBILITY IDEOGRAPH-2F891. Its distinct columns, one per line. 9 B
005558 unicode/part1/U+2F892 NormalizationTest.txt 𢌱␊𢌱 Line 16783: CJK COMPATIBILITY IDEOGRAPH-2F892. Its distinct columns, one per line. 9 B
005559 unicode/part1/U+2F893 NormalizationTest.txt 舁␊舁 Line 16784: CJK COMPATIBILITY IDEOGRAPH-2F893. Its distinct columns, one per line. 8 B
005560 unicode/part1/U+2F894 NormalizationTest.txt 弢␊弢 Line 16785: CJK COMPATIBILITY IDEOGRAPH-2F894. Its distinct columns, one per line. 8 B
005561 unicode/part1/U+2F895 NormalizationTest.txt 弢␊弢 Line 16786: CJK COMPATIBILITY IDEOGRAPH-2F895. Its distinct columns, one per line. 8 B
005562 unicode/part1/U+2F896 NormalizationTest.txt 㣇␊㣇 Line 16787: CJK COMPATIBILITY IDEOGRAPH-2F896. Its distinct columns, one per line. 8 B
005563 unicode/part1/U+2F897 NormalizationTest.txt 𣊸␊𣊸 Line 16788: CJK COMPATIBILITY IDEOGRAPH-2F897. Its distinct columns, one per line. 9 B
005564 unicode/part1/U+2F898 NormalizationTest.txt 𦇚␊𦇚 Line 16789: CJK COMPATIBILITY IDEOGRAPH-2F898. Its distinct columns, one per line. 9 B
005565 unicode/part1/U+2F899 NormalizationTest.txt 形␊形 Line 16790: CJK COMPATIBILITY IDEOGRAPH-2F899. Its distinct columns, one per line. 8 B
005566 unicode/part1/U+2F89A NormalizationTest.txt 彫␊彫 Line 16791: CJK COMPATIBILITY IDEOGRAPH-2F89A. Its distinct columns, one per line. 8 B
005567 unicode/part1/U+2F89B NormalizationTest.txt 㣣␊㣣 Line 16792: CJK COMPATIBILITY IDEOGRAPH-2F89B. Its distinct columns, one per line. 8 B
005568 unicode/part1/U+2F89C NormalizationTest.txt 徚␊徚 Line 16793: CJK COMPATIBILITY IDEOGRAPH-2F89C. Its distinct columns, one per line. 8 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.