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
005769 unicode/part1/U+2F965 NormalizationTest.txt 𥲀␊𥲀 Line 16994: CJK COMPATIBILITY IDEOGRAPH-2F965. Its distinct columns, one per line. 9 B
005770 unicode/part1/U+2F966 NormalizationTest.txt 糒␊糒 Line 16995: CJK COMPATIBILITY IDEOGRAPH-2F966. Its distinct columns, one per line. 8 B
005771 unicode/part1/U+2F967 NormalizationTest.txt 䊠␊䊠 Line 16996: CJK COMPATIBILITY IDEOGRAPH-2F967. Its distinct columns, one per line. 8 B
005772 unicode/part1/U+2F968 NormalizationTest.txt 糨␊糨 Line 16997: CJK COMPATIBILITY IDEOGRAPH-2F968. Its distinct columns, one per line. 8 B
005773 unicode/part1/U+2F969 NormalizationTest.txt 糣␊糣 Line 16998: CJK COMPATIBILITY IDEOGRAPH-2F969. Its distinct columns, one per line. 8 B
005774 unicode/part1/U+2F96A NormalizationTest.txt 紀␊紀 Line 16999: CJK COMPATIBILITY IDEOGRAPH-2F96A. Its distinct columns, one per line. 8 B
005775 unicode/part1/U+2F96B NormalizationTest.txt 𥾆␊𥾆 Line 17000: CJK COMPATIBILITY IDEOGRAPH-2F96B. Its distinct columns, one per line. 9 B
005776 unicode/part1/U+2F96C NormalizationTest.txt 絣␊絣 Line 17001: CJK COMPATIBILITY IDEOGRAPH-2F96C. Its distinct columns, one per line. 8 B
005777 unicode/part1/U+2F96D NormalizationTest.txt 䌁␊䌁 Line 17002: CJK COMPATIBILITY IDEOGRAPH-2F96D. Its distinct columns, one per line. 8 B
005778 unicode/part1/U+2F96E NormalizationTest.txt 緇␊緇 Line 17003: CJK COMPATIBILITY IDEOGRAPH-2F96E. Its distinct columns, one per line. 8 B
005779 unicode/part1/U+2F96F NormalizationTest.txt 縂␊縂 Line 17004: CJK COMPATIBILITY IDEOGRAPH-2F96F. Its distinct columns, one per line. 8 B
005780 unicode/part1/U+2F970 NormalizationTest.txt 繅␊繅 Line 17005: CJK COMPATIBILITY IDEOGRAPH-2F970. Its distinct columns, one per line. 8 B
005781 unicode/part1/U+2F971 NormalizationTest.txt 䌴␊䌴 Line 17006: CJK COMPATIBILITY IDEOGRAPH-2F971. Its distinct columns, one per line. 8 B
005782 unicode/part1/U+2F972 NormalizationTest.txt 𦈨␊𦈨 Line 17007: CJK COMPATIBILITY IDEOGRAPH-2F972. Its distinct columns, one per line. 9 B
005783 unicode/part1/U+2F973 NormalizationTest.txt 𦉇␊𦉇 Line 17008: CJK COMPATIBILITY IDEOGRAPH-2F973. Its distinct columns, one per line. 9 B
005784 unicode/part1/U+2F974 NormalizationTest.txt 䍙␊䍙 Line 17009: CJK COMPATIBILITY IDEOGRAPH-2F974. Its distinct columns, one per line. 8 B
005785 unicode/part1/U+2F975 NormalizationTest.txt 𦋙␊𦋙 Line 17010: CJK COMPATIBILITY IDEOGRAPH-2F975. Its distinct columns, one per line. 9 B
005786 unicode/part1/U+2F976 NormalizationTest.txt 罺␊罺 Line 17011: CJK COMPATIBILITY IDEOGRAPH-2F976. Its distinct columns, one per line. 8 B
005787 unicode/part1/U+2F977 NormalizationTest.txt 𦌾␊𦌾 Line 17012: CJK COMPATIBILITY IDEOGRAPH-2F977. Its distinct columns, one per line. 9 B
005788 unicode/part1/U+2F978 NormalizationTest.txt 羕␊羕 Line 17013: CJK COMPATIBILITY IDEOGRAPH-2F978. Its distinct columns, one per line. 8 B
005789 unicode/part1/U+2F979 NormalizationTest.txt 翺␊翺 Line 17014: CJK COMPATIBILITY IDEOGRAPH-2F979. Its distinct columns, one per line. 8 B
005790 unicode/part1/U+2F97A NormalizationTest.txt 者␊者 Line 17015: CJK COMPATIBILITY IDEOGRAPH-2F97A. Its distinct columns, one per line. 8 B
005791 unicode/part1/U+2F97B NormalizationTest.txt 𦓚␊𦓚 Line 17016: CJK COMPATIBILITY IDEOGRAPH-2F97B. Its distinct columns, one per line. 9 B
005792 unicode/part1/U+2F97C NormalizationTest.txt 𦔣␊𦔣 Line 17017: CJK COMPATIBILITY IDEOGRAPH-2F97C. Its distinct columns, one per line. 9 B
005793 unicode/part1/U+2F97D NormalizationTest.txt 聠␊聠 Line 17018: CJK COMPATIBILITY IDEOGRAPH-2F97D. Its distinct columns, one per line. 8 B
005794 unicode/part1/U+2F97E NormalizationTest.txt 𦖨␊𦖨 Line 17019: CJK COMPATIBILITY IDEOGRAPH-2F97E. Its distinct columns, one per line. 9 B
005795 unicode/part1/U+2F97F NormalizationTest.txt 聰␊聰 Line 17020: CJK COMPATIBILITY IDEOGRAPH-2F97F. Its distinct columns, one per line. 8 B
005796 unicode/part1/U+2F980 NormalizationTest.txt 𣍟␊𣍟 Line 17021: CJK COMPATIBILITY IDEOGRAPH-2F980. Its distinct columns, one per line. 9 B
005797 unicode/part1/U+2F981 NormalizationTest.txt 䏕␊䏕 Line 17022: CJK COMPATIBILITY IDEOGRAPH-2F981. Its distinct columns, one per line. 8 B
005798 unicode/part1/U+2F982 NormalizationTest.txt 育␊育 Line 17023: CJK COMPATIBILITY IDEOGRAPH-2F982. Its distinct columns, one per line. 8 B
005799 unicode/part1/U+2F983 NormalizationTest.txt 脃␊脃 Line 17024: CJK COMPATIBILITY IDEOGRAPH-2F983. Its distinct columns, one per line. 8 B
005800 unicode/part1/U+2F984 NormalizationTest.txt 䐋␊䐋 Line 17025: CJK COMPATIBILITY IDEOGRAPH-2F984. Its distinct columns, one per line. 8 B
005801 unicode/part1/U+2F985 NormalizationTest.txt 脾␊脾 Line 17026: CJK COMPATIBILITY IDEOGRAPH-2F985. Its distinct columns, one per line. 8 B
005802 unicode/part1/U+2F986 NormalizationTest.txt 媵␊媵 Line 17027: CJK COMPATIBILITY IDEOGRAPH-2F986. Its distinct columns, one per line. 8 B
005803 unicode/part1/U+2F987 NormalizationTest.txt 𦞧␊𦞧 Line 17028: CJK COMPATIBILITY IDEOGRAPH-2F987. Its distinct columns, one per line. 9 B
005804 unicode/part1/U+2F988 NormalizationTest.txt 𦞵␊𦞵 Line 17029: CJK COMPATIBILITY IDEOGRAPH-2F988. Its distinct columns, one per line. 9 B
005805 unicode/part1/U+2F989 NormalizationTest.txt 𣎓␊𣎓 Line 17030: CJK COMPATIBILITY IDEOGRAPH-2F989. Its distinct columns, one per line. 9 B
005806 unicode/part1/U+2F98A NormalizationTest.txt 𣎜␊𣎜 Line 17031: CJK COMPATIBILITY IDEOGRAPH-2F98A. Its distinct columns, one per line. 9 B
005807 unicode/part1/U+2F98B NormalizationTest.txt 舁␊舁 Line 17032: CJK COMPATIBILITY IDEOGRAPH-2F98B. Its distinct columns, one per line. 8 B
005808 unicode/part1/U+2F98C NormalizationTest.txt 舄␊舄 Line 17033: CJK COMPATIBILITY IDEOGRAPH-2F98C. Its distinct columns, one per line. 8 B
005809 unicode/part1/U+2F98D NormalizationTest.txt 辞␊辞 Line 17034: CJK COMPATIBILITY IDEOGRAPH-2F98D. Its distinct columns, one per line. 8 B
005810 unicode/part1/U+2F98E NormalizationTest.txt 䑫␊䑫 Line 17035: CJK COMPATIBILITY IDEOGRAPH-2F98E. Its distinct columns, one per line. 8 B
005811 unicode/part1/U+2F98F NormalizationTest.txt 芑␊芑 Line 17036: CJK COMPATIBILITY IDEOGRAPH-2F98F. Its distinct columns, one per line. 8 B
005812 unicode/part1/U+2F990 NormalizationTest.txt 芋␊芋 Line 17037: CJK COMPATIBILITY IDEOGRAPH-2F990. Its distinct columns, one per line. 8 B
005813 unicode/part1/U+2F991 NormalizationTest.txt 芝␊芝 Line 17038: CJK COMPATIBILITY IDEOGRAPH-2F991. Its distinct columns, one per line. 8 B
005814 unicode/part1/U+2F992 NormalizationTest.txt 劳␊劳 Line 17039: CJK COMPATIBILITY IDEOGRAPH-2F992. Its distinct columns, one per line. 8 B
005815 unicode/part1/U+2F993 NormalizationTest.txt 花␊花 Line 17040: CJK COMPATIBILITY IDEOGRAPH-2F993. Its distinct columns, one per line. 8 B
005816 unicode/part1/U+2F994 NormalizationTest.txt 芳␊芳 Line 17041: CJK COMPATIBILITY IDEOGRAPH-2F994. Its distinct columns, one per line. 8 B
005817 unicode/part1/U+2F995 NormalizationTest.txt 芽␊芽 Line 17042: CJK COMPATIBILITY IDEOGRAPH-2F995. Its distinct columns, one per line. 8 B
005818 unicode/part1/U+2F996 NormalizationTest.txt 苦␊苦 Line 17043: CJK COMPATIBILITY IDEOGRAPH-2F996. 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.