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
002807 unicode/part1/U+FAAF NormalizationTest.txt 絛␊絛 Line 14032: CJK COMPATIBILITY IDEOGRAPH-FAAF. Its distinct columns, one per line. 7 B
002808 unicode/part1/U+FAB0 NormalizationTest.txt 練␊練 Line 14033: CJK COMPATIBILITY IDEOGRAPH-FAB0. Its distinct columns, one per line. 7 B
002809 unicode/part1/U+FAB1 NormalizationTest.txt 缾␊缾 Line 14034: CJK COMPATIBILITY IDEOGRAPH-FAB1. Its distinct columns, one per line. 7 B
002810 unicode/part1/U+FAB2 NormalizationTest.txt 者␊者 Line 14035: CJK COMPATIBILITY IDEOGRAPH-FAB2. Its distinct columns, one per line. 7 B
002811 unicode/part1/U+FAB3 NormalizationTest.txt 荒␊荒 Line 14036: CJK COMPATIBILITY IDEOGRAPH-FAB3. Its distinct columns, one per line. 7 B
002812 unicode/part1/U+FAB4 NormalizationTest.txt 華␊華 Line 14037: CJK COMPATIBILITY IDEOGRAPH-FAB4. Its distinct columns, one per line. 7 B
002813 unicode/part1/U+FAB5 NormalizationTest.txt 蝹␊蝹 Line 14038: CJK COMPATIBILITY IDEOGRAPH-FAB5. Its distinct columns, one per line. 7 B
002814 unicode/part1/U+FAB6 NormalizationTest.txt 襁␊襁 Line 14039: CJK COMPATIBILITY IDEOGRAPH-FAB6. Its distinct columns, one per line. 7 B
002815 unicode/part1/U+FAB7 NormalizationTest.txt 覆␊覆 Line 14040: CJK COMPATIBILITY IDEOGRAPH-FAB7. Its distinct columns, one per line. 7 B
002816 unicode/part1/U+FAB8 NormalizationTest.txt 視␊視 Line 14041: CJK COMPATIBILITY IDEOGRAPH-FAB8. Its distinct columns, one per line. 7 B
002817 unicode/part1/U+FAB9 NormalizationTest.txt 調␊調 Line 14042: CJK COMPATIBILITY IDEOGRAPH-FAB9. Its distinct columns, one per line. 7 B
002818 unicode/part1/U+FABA NormalizationTest.txt 諸␊諸 Line 14043: CJK COMPATIBILITY IDEOGRAPH-FABA. Its distinct columns, one per line. 7 B
002819 unicode/part1/U+FABB NormalizationTest.txt 請␊請 Line 14044: CJK COMPATIBILITY IDEOGRAPH-FABB. Its distinct columns, one per line. 7 B
002820 unicode/part1/U+FABC NormalizationTest.txt 謁␊謁 Line 14045: CJK COMPATIBILITY IDEOGRAPH-FABC. Its distinct columns, one per line. 7 B
002821 unicode/part1/U+FABD NormalizationTest.txt 諾␊諾 Line 14046: CJK COMPATIBILITY IDEOGRAPH-FABD. Its distinct columns, one per line. 7 B
002822 unicode/part1/U+FABE NormalizationTest.txt 諭␊諭 Line 14047: CJK COMPATIBILITY IDEOGRAPH-FABE. Its distinct columns, one per line. 7 B
002823 unicode/part1/U+FABF NormalizationTest.txt 謹␊謹 Line 14048: CJK COMPATIBILITY IDEOGRAPH-FABF. Its distinct columns, one per line. 7 B
002824 unicode/part1/U+FAC0 NormalizationTest.txt 變␊變 Line 14049: CJK COMPATIBILITY IDEOGRAPH-FAC0. Its distinct columns, one per line. 7 B
002825 unicode/part1/U+FAC1 NormalizationTest.txt 贈␊贈 Line 14050: CJK COMPATIBILITY IDEOGRAPH-FAC1. Its distinct columns, one per line. 7 B
002826 unicode/part1/U+FAC2 NormalizationTest.txt 輸␊輸 Line 14051: CJK COMPATIBILITY IDEOGRAPH-FAC2. Its distinct columns, one per line. 7 B
002827 unicode/part1/U+FAC3 NormalizationTest.txt 遲␊遲 Line 14052: CJK COMPATIBILITY IDEOGRAPH-FAC3. Its distinct columns, one per line. 7 B
002828 unicode/part1/U+FAC4 NormalizationTest.txt 醙␊醙 Line 14053: CJK COMPATIBILITY IDEOGRAPH-FAC4. Its distinct columns, one per line. 7 B
002829 unicode/part1/U+FAC5 NormalizationTest.txt 鉶␊鉶 Line 14054: CJK COMPATIBILITY IDEOGRAPH-FAC5. Its distinct columns, one per line. 7 B
002830 unicode/part1/U+FAC6 NormalizationTest.txt 陼␊陼 Line 14055: CJK COMPATIBILITY IDEOGRAPH-FAC6. Its distinct columns, one per line. 7 B
002831 unicode/part1/U+FAC7 NormalizationTest.txt 難␊難 Line 14056: CJK COMPATIBILITY IDEOGRAPH-FAC7. Its distinct columns, one per line. 7 B
002832 unicode/part1/U+FAC8 NormalizationTest.txt 靖␊靖 Line 14057: CJK COMPATIBILITY IDEOGRAPH-FAC8. Its distinct columns, one per line. 7 B
002833 unicode/part1/U+FAC9 NormalizationTest.txt 韛␊韛 Line 14058: CJK COMPATIBILITY IDEOGRAPH-FAC9. Its distinct columns, one per line. 7 B
002834 unicode/part1/U+FACA NormalizationTest.txt 響␊響 Line 14059: CJK COMPATIBILITY IDEOGRAPH-FACA. Its distinct columns, one per line. 7 B
002835 unicode/part1/U+FACB NormalizationTest.txt 頋␊頋 Line 14060: CJK COMPATIBILITY IDEOGRAPH-FACB. Its distinct columns, one per line. 7 B
002836 unicode/part1/U+FACC NormalizationTest.txt 頻␊頻 Line 14061: CJK COMPATIBILITY IDEOGRAPH-FACC. Its distinct columns, one per line. 7 B
002837 unicode/part1/U+FACD NormalizationTest.txt 鬒␊鬒 Line 14062: CJK COMPATIBILITY IDEOGRAPH-FACD. Its distinct columns, one per line. 7 B
002838 unicode/part1/U+FACE NormalizationTest.txt 龜␊龜 Line 14063: CJK COMPATIBILITY IDEOGRAPH-FACE. Its distinct columns, one per line. 7 B
002839 unicode/part1/U+FACF NormalizationTest.txt 𢡊␊𢡊 Line 14064: CJK COMPATIBILITY IDEOGRAPH-FACF. Its distinct columns, one per line. 8 B
002840 unicode/part1/U+FAD0 NormalizationTest.txt 𢡄␊𢡄 Line 14065: CJK COMPATIBILITY IDEOGRAPH-FAD0. Its distinct columns, one per line. 8 B
002841 unicode/part1/U+FAD1 NormalizationTest.txt 𣏕␊𣏕 Line 14066: CJK COMPATIBILITY IDEOGRAPH-FAD1. Its distinct columns, one per line. 8 B
002842 unicode/part1/U+FAD2 NormalizationTest.txt 㮝␊㮝 Line 14067: CJK COMPATIBILITY IDEOGRAPH-FAD2. Its distinct columns, one per line. 7 B
002843 unicode/part1/U+FAD3 NormalizationTest.txt 䀘␊䀘 Line 14068: CJK COMPATIBILITY IDEOGRAPH-FAD3. Its distinct columns, one per line. 7 B
002844 unicode/part1/U+FAD4 NormalizationTest.txt 䀹␊䀹 Line 14069: CJK COMPATIBILITY IDEOGRAPH-FAD4. Its distinct columns, one per line. 7 B
002845 unicode/part1/U+FAD5 NormalizationTest.txt 𥉉␊𥉉 Line 14070: CJK COMPATIBILITY IDEOGRAPH-FAD5. Its distinct columns, one per line. 8 B
002846 unicode/part1/U+FAD6 NormalizationTest.txt 𥳐␊𥳐 Line 14071: CJK COMPATIBILITY IDEOGRAPH-FAD6. Its distinct columns, one per line. 8 B
002847 unicode/part1/U+FAD7 NormalizationTest.txt 𧻓␊𧻓 Line 14072: CJK COMPATIBILITY IDEOGRAPH-FAD7. Its distinct columns, one per line. 8 B
002848 unicode/part1/U+FAD8 NormalizationTest.txt 齃␊齃 Line 14073: CJK COMPATIBILITY IDEOGRAPH-FAD8. Its distinct columns, one per line. 7 B
002849 unicode/part1/U+FAD9 NormalizationTest.txt 龎␊龎 Line 14074: CJK COMPATIBILITY IDEOGRAPH-FAD9. Its distinct columns, one per line. 7 B
005412 unicode/part1/U+2F800 NormalizationTest.txt 丽␊丽 Line 16637: CJK COMPATIBILITY IDEOGRAPH-2F800. Its distinct columns, one per line. 8 B
005413 unicode/part1/U+2F801 NormalizationTest.txt 丸␊丸 Line 16638: CJK COMPATIBILITY IDEOGRAPH-2F801. Its distinct columns, one per line. 8 B
005414 unicode/part1/U+2F802 NormalizationTest.txt 乁␊乁 Line 16639: CJK COMPATIBILITY IDEOGRAPH-2F802. Its distinct columns, one per line. 8 B
005415 unicode/part1/U+2F803 NormalizationTest.txt 𠄢␊𠄢 Line 16640: CJK COMPATIBILITY IDEOGRAPH-2F803. Its distinct columns, one per line. 9 B
005416 unicode/part1/U+2F804 NormalizationTest.txt 你␊你 Line 16641: CJK COMPATIBILITY IDEOGRAPH-2F804. Its distinct columns, one per line. 8 B
005417 unicode/part1/U+2F805 NormalizationTest.txt 侮␊侮 Line 16642: CJK COMPATIBILITY IDEOGRAPH-2F805. Its distinct columns, one per line. 8 B
005418 unicode/part1/U+2F806 NormalizationTest.txt 侻␊侻 Line 16643: CJK COMPATIBILITY IDEOGRAPH-2F806. 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.