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
002457 unicode/part1/U+F943 NormalizationTest.txt 弄␊弄 Line 13682: CJK COMPATIBILITY IDEOGRAPH-F943. Its distinct columns, one per line. 7 B
002458 unicode/part1/U+F944 NormalizationTest.txt 籠␊籠 Line 13683: CJK COMPATIBILITY IDEOGRAPH-F944. Its distinct columns, one per line. 7 B
002459 unicode/part1/U+F945 NormalizationTest.txt 聾␊聾 Line 13684: CJK COMPATIBILITY IDEOGRAPH-F945. Its distinct columns, one per line. 7 B
002460 unicode/part1/U+F946 NormalizationTest.txt 牢␊牢 Line 13685: CJK COMPATIBILITY IDEOGRAPH-F946. Its distinct columns, one per line. 7 B
002461 unicode/part1/U+F947 NormalizationTest.txt 磊␊磊 Line 13686: CJK COMPATIBILITY IDEOGRAPH-F947. Its distinct columns, one per line. 7 B
002462 unicode/part1/U+F948 NormalizationTest.txt 賂␊賂 Line 13687: CJK COMPATIBILITY IDEOGRAPH-F948. Its distinct columns, one per line. 7 B
002463 unicode/part1/U+F949 NormalizationTest.txt 雷␊雷 Line 13688: CJK COMPATIBILITY IDEOGRAPH-F949. Its distinct columns, one per line. 7 B
002464 unicode/part1/U+F94A NormalizationTest.txt 壘␊壘 Line 13689: CJK COMPATIBILITY IDEOGRAPH-F94A. Its distinct columns, one per line. 7 B
002465 unicode/part1/U+F94B NormalizationTest.txt 屢␊屢 Line 13690: CJK COMPATIBILITY IDEOGRAPH-F94B. Its distinct columns, one per line. 7 B
002466 unicode/part1/U+F94C NormalizationTest.txt 樓␊樓 Line 13691: CJK COMPATIBILITY IDEOGRAPH-F94C. Its distinct columns, one per line. 7 B
002467 unicode/part1/U+F94D NormalizationTest.txt 淚␊淚 Line 13692: CJK COMPATIBILITY IDEOGRAPH-F94D. Its distinct columns, one per line. 7 B
002468 unicode/part1/U+F94E NormalizationTest.txt 漏␊漏 Line 13693: CJK COMPATIBILITY IDEOGRAPH-F94E. Its distinct columns, one per line. 7 B
002469 unicode/part1/U+F94F NormalizationTest.txt 累␊累 Line 13694: CJK COMPATIBILITY IDEOGRAPH-F94F. Its distinct columns, one per line. 7 B
002470 unicode/part1/U+F950 NormalizationTest.txt 縷␊縷 Line 13695: CJK COMPATIBILITY IDEOGRAPH-F950. Its distinct columns, one per line. 7 B
002471 unicode/part1/U+F951 NormalizationTest.txt 陋␊陋 Line 13696: CJK COMPATIBILITY IDEOGRAPH-F951. Its distinct columns, one per line. 7 B
002472 unicode/part1/U+F952 NormalizationTest.txt 勒␊勒 Line 13697: CJK COMPATIBILITY IDEOGRAPH-F952. Its distinct columns, one per line. 7 B
002473 unicode/part1/U+F953 NormalizationTest.txt 肋␊肋 Line 13698: CJK COMPATIBILITY IDEOGRAPH-F953. Its distinct columns, one per line. 7 B
002474 unicode/part1/U+F954 NormalizationTest.txt 凜␊凜 Line 13699: CJK COMPATIBILITY IDEOGRAPH-F954. Its distinct columns, one per line. 7 B
002475 unicode/part1/U+F955 NormalizationTest.txt 凌␊凌 Line 13700: CJK COMPATIBILITY IDEOGRAPH-F955. Its distinct columns, one per line. 7 B
002476 unicode/part1/U+F956 NormalizationTest.txt 稜␊稜 Line 13701: CJK COMPATIBILITY IDEOGRAPH-F956. Its distinct columns, one per line. 7 B
002477 unicode/part1/U+F957 NormalizationTest.txt 綾␊綾 Line 13702: CJK COMPATIBILITY IDEOGRAPH-F957. Its distinct columns, one per line. 7 B
002478 unicode/part1/U+F958 NormalizationTest.txt 菱␊菱 Line 13703: CJK COMPATIBILITY IDEOGRAPH-F958. Its distinct columns, one per line. 7 B
002479 unicode/part1/U+F959 NormalizationTest.txt 陵␊陵 Line 13704: CJK COMPATIBILITY IDEOGRAPH-F959. Its distinct columns, one per line. 7 B
002480 unicode/part1/U+F95A NormalizationTest.txt 讀␊讀 Line 13705: CJK COMPATIBILITY IDEOGRAPH-F95A. Its distinct columns, one per line. 7 B
002481 unicode/part1/U+F95B NormalizationTest.txt 拏␊拏 Line 13706: CJK COMPATIBILITY IDEOGRAPH-F95B. Its distinct columns, one per line. 7 B
002482 unicode/part1/U+F95C NormalizationTest.txt 樂␊樂 Line 13707: CJK COMPATIBILITY IDEOGRAPH-F95C. Its distinct columns, one per line. 7 B
002483 unicode/part1/U+F95D NormalizationTest.txt 諾␊諾 Line 13708: CJK COMPATIBILITY IDEOGRAPH-F95D. Its distinct columns, one per line. 7 B
002484 unicode/part1/U+F95E NormalizationTest.txt 丹␊丹 Line 13709: CJK COMPATIBILITY IDEOGRAPH-F95E. Its distinct columns, one per line. 7 B
002485 unicode/part1/U+F95F NormalizationTest.txt 寧␊寧 Line 13710: CJK COMPATIBILITY IDEOGRAPH-F95F. Its distinct columns, one per line. 7 B
002486 unicode/part1/U+F960 NormalizationTest.txt 怒␊怒 Line 13711: CJK COMPATIBILITY IDEOGRAPH-F960. Its distinct columns, one per line. 7 B
002487 unicode/part1/U+F961 NormalizationTest.txt 率␊率 Line 13712: CJK COMPATIBILITY IDEOGRAPH-F961. Its distinct columns, one per line. 7 B
002488 unicode/part1/U+F962 NormalizationTest.txt 異␊異 Line 13713: CJK COMPATIBILITY IDEOGRAPH-F962. Its distinct columns, one per line. 7 B
002489 unicode/part1/U+F963 NormalizationTest.txt 北␊北 Line 13714: CJK COMPATIBILITY IDEOGRAPH-F963. Its distinct columns, one per line. 7 B
002490 unicode/part1/U+F964 NormalizationTest.txt 磻␊磻 Line 13715: CJK COMPATIBILITY IDEOGRAPH-F964. Its distinct columns, one per line. 7 B
002491 unicode/part1/U+F965 NormalizationTest.txt 便␊便 Line 13716: CJK COMPATIBILITY IDEOGRAPH-F965. Its distinct columns, one per line. 7 B
002492 unicode/part1/U+F966 NormalizationTest.txt 復␊復 Line 13717: CJK COMPATIBILITY IDEOGRAPH-F966. Its distinct columns, one per line. 7 B
002493 unicode/part1/U+F967 NormalizationTest.txt 不␊不 Line 13718: CJK COMPATIBILITY IDEOGRAPH-F967. Its distinct columns, one per line. 7 B
002494 unicode/part1/U+F968 NormalizationTest.txt 泌␊泌 Line 13719: CJK COMPATIBILITY IDEOGRAPH-F968. Its distinct columns, one per line. 7 B
002495 unicode/part1/U+F969 NormalizationTest.txt 數␊數 Line 13720: CJK COMPATIBILITY IDEOGRAPH-F969. Its distinct columns, one per line. 7 B
002496 unicode/part1/U+F96A NormalizationTest.txt 索␊索 Line 13721: CJK COMPATIBILITY IDEOGRAPH-F96A. Its distinct columns, one per line. 7 B
002497 unicode/part1/U+F96B NormalizationTest.txt 參␊參 Line 13722: CJK COMPATIBILITY IDEOGRAPH-F96B. Its distinct columns, one per line. 7 B
002498 unicode/part1/U+F96C NormalizationTest.txt 塞␊塞 Line 13723: CJK COMPATIBILITY IDEOGRAPH-F96C. Its distinct columns, one per line. 7 B
002499 unicode/part1/U+F96D NormalizationTest.txt 省␊省 Line 13724: CJK COMPATIBILITY IDEOGRAPH-F96D. Its distinct columns, one per line. 7 B
002500 unicode/part1/U+F96E NormalizationTest.txt 葉␊葉 Line 13725: CJK COMPATIBILITY IDEOGRAPH-F96E. Its distinct columns, one per line. 7 B
002501 unicode/part1/U+F96F NormalizationTest.txt 說␊說 Line 13726: CJK COMPATIBILITY IDEOGRAPH-F96F. Its distinct columns, one per line. 7 B
002502 unicode/part1/U+F970 NormalizationTest.txt 殺␊殺 Line 13727: CJK COMPATIBILITY IDEOGRAPH-F970. Its distinct columns, one per line. 7 B
002503 unicode/part1/U+F971 NormalizationTest.txt 辰␊辰 Line 13728: CJK COMPATIBILITY IDEOGRAPH-F971. Its distinct columns, one per line. 7 B
002504 unicode/part1/U+F972 NormalizationTest.txt 沈␊沈 Line 13729: CJK COMPATIBILITY IDEOGRAPH-F972. Its distinct columns, one per line. 7 B
002505 unicode/part1/U+F973 NormalizationTest.txt 拾␊拾 Line 13730: CJK COMPATIBILITY IDEOGRAPH-F973. Its distinct columns, one per line. 7 B
002506 unicode/part1/U+F974 NormalizationTest.txt 若␊若 Line 13731: CJK COMPATIBILITY IDEOGRAPH-F974. Its distinct columns, one per line. 7 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.