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
002707 unicode/part1/U+FA49 NormalizationTest.txt 爫␊爫 Line 13932: CJK COMPATIBILITY IDEOGRAPH-FA49. Its distinct columns, one per line. 7 B
002708 unicode/part1/U+FA4A NormalizationTest.txt 琢␊琢 Line 13933: CJK COMPATIBILITY IDEOGRAPH-FA4A. Its distinct columns, one per line. 7 B
002709 unicode/part1/U+FA4B NormalizationTest.txt 碑␊碑 Line 13934: CJK COMPATIBILITY IDEOGRAPH-FA4B. Its distinct columns, one per line. 7 B
002710 unicode/part1/U+FA4C NormalizationTest.txt 社␊社 Line 13935: CJK COMPATIBILITY IDEOGRAPH-FA4C. Its distinct columns, one per line. 7 B
002711 unicode/part1/U+FA4D NormalizationTest.txt 祉␊祉 Line 13936: CJK COMPATIBILITY IDEOGRAPH-FA4D. Its distinct columns, one per line. 7 B
002712 unicode/part1/U+FA4E NormalizationTest.txt 祈␊祈 Line 13937: CJK COMPATIBILITY IDEOGRAPH-FA4E. Its distinct columns, one per line. 7 B
002713 unicode/part1/U+FA4F NormalizationTest.txt 祐␊祐 Line 13938: CJK COMPATIBILITY IDEOGRAPH-FA4F. Its distinct columns, one per line. 7 B
002714 unicode/part1/U+FA50 NormalizationTest.txt 祖␊祖 Line 13939: CJK COMPATIBILITY IDEOGRAPH-FA50. Its distinct columns, one per line. 7 B
002715 unicode/part1/U+FA51 NormalizationTest.txt 祝␊祝 Line 13940: CJK COMPATIBILITY IDEOGRAPH-FA51. Its distinct columns, one per line. 7 B
002716 unicode/part1/U+FA52 NormalizationTest.txt 禍␊禍 Line 13941: CJK COMPATIBILITY IDEOGRAPH-FA52. Its distinct columns, one per line. 7 B
002717 unicode/part1/U+FA53 NormalizationTest.txt 禎␊禎 Line 13942: CJK COMPATIBILITY IDEOGRAPH-FA53. Its distinct columns, one per line. 7 B
002718 unicode/part1/U+FA54 NormalizationTest.txt 穀␊穀 Line 13943: CJK COMPATIBILITY IDEOGRAPH-FA54. Its distinct columns, one per line. 7 B
002719 unicode/part1/U+FA55 NormalizationTest.txt 突␊突 Line 13944: CJK COMPATIBILITY IDEOGRAPH-FA55. Its distinct columns, one per line. 7 B
002720 unicode/part1/U+FA56 NormalizationTest.txt 節␊節 Line 13945: CJK COMPATIBILITY IDEOGRAPH-FA56. Its distinct columns, one per line. 7 B
002721 unicode/part1/U+FA57 NormalizationTest.txt 練␊練 Line 13946: CJK COMPATIBILITY IDEOGRAPH-FA57. Its distinct columns, one per line. 7 B
002722 unicode/part1/U+FA58 NormalizationTest.txt 縉␊縉 Line 13947: CJK COMPATIBILITY IDEOGRAPH-FA58. Its distinct columns, one per line. 7 B
002723 unicode/part1/U+FA59 NormalizationTest.txt 繁␊繁 Line 13948: CJK COMPATIBILITY IDEOGRAPH-FA59. Its distinct columns, one per line. 7 B
002724 unicode/part1/U+FA5A NormalizationTest.txt 署␊署 Line 13949: CJK COMPATIBILITY IDEOGRAPH-FA5A. Its distinct columns, one per line. 7 B
002725 unicode/part1/U+FA5B NormalizationTest.txt 者␊者 Line 13950: CJK COMPATIBILITY IDEOGRAPH-FA5B. Its distinct columns, one per line. 7 B
002726 unicode/part1/U+FA5C NormalizationTest.txt 臭␊臭 Line 13951: CJK COMPATIBILITY IDEOGRAPH-FA5C. Its distinct columns, one per line. 7 B
002727 unicode/part1/U+FA5D NormalizationTest.txt 艹␊艹 Line 13952: CJK COMPATIBILITY IDEOGRAPH-FA5D. Its distinct columns, one per line. 7 B
002728 unicode/part1/U+FA5E NormalizationTest.txt 艹␊艹 Line 13953: CJK COMPATIBILITY IDEOGRAPH-FA5E. Its distinct columns, one per line. 7 B
002729 unicode/part1/U+FA5F NormalizationTest.txt 著␊著 Line 13954: CJK COMPATIBILITY IDEOGRAPH-FA5F. Its distinct columns, one per line. 7 B
002730 unicode/part1/U+FA60 NormalizationTest.txt 褐␊褐 Line 13955: CJK COMPATIBILITY IDEOGRAPH-FA60. Its distinct columns, one per line. 7 B
002731 unicode/part1/U+FA61 NormalizationTest.txt 視␊視 Line 13956: CJK COMPATIBILITY IDEOGRAPH-FA61. Its distinct columns, one per line. 7 B
002732 unicode/part1/U+FA62 NormalizationTest.txt 謁␊謁 Line 13957: CJK COMPATIBILITY IDEOGRAPH-FA62. Its distinct columns, one per line. 7 B
002733 unicode/part1/U+FA63 NormalizationTest.txt 謹␊謹 Line 13958: CJK COMPATIBILITY IDEOGRAPH-FA63. Its distinct columns, one per line. 7 B
002734 unicode/part1/U+FA64 NormalizationTest.txt 賓␊賓 Line 13959: CJK COMPATIBILITY IDEOGRAPH-FA64. Its distinct columns, one per line. 7 B
002735 unicode/part1/U+FA65 NormalizationTest.txt 贈␊贈 Line 13960: CJK COMPATIBILITY IDEOGRAPH-FA65. Its distinct columns, one per line. 7 B
002736 unicode/part1/U+FA66 NormalizationTest.txt 辶␊辶 Line 13961: CJK COMPATIBILITY IDEOGRAPH-FA66. Its distinct columns, one per line. 7 B
002737 unicode/part1/U+FA67 NormalizationTest.txt 逸␊逸 Line 13962: CJK COMPATIBILITY IDEOGRAPH-FA67. Its distinct columns, one per line. 7 B
002738 unicode/part1/U+FA68 NormalizationTest.txt 難␊難 Line 13963: CJK COMPATIBILITY IDEOGRAPH-FA68. Its distinct columns, one per line. 7 B
002739 unicode/part1/U+FA69 NormalizationTest.txt 響␊響 Line 13964: CJK COMPATIBILITY IDEOGRAPH-FA69. Its distinct columns, one per line. 7 B
002740 unicode/part1/U+FA6A NormalizationTest.txt 頻␊頻 Line 13965: CJK COMPATIBILITY IDEOGRAPH-FA6A. Its distinct columns, one per line. 7 B
002741 unicode/part1/U+FA6B NormalizationTest.txt 恵␊恵 Line 13966: CJK COMPATIBILITY IDEOGRAPH-FA6B. Its distinct columns, one per line. 7 B
002742 unicode/part1/U+FA6C NormalizationTest.txt 𤋮␊𤋮 Line 13967: CJK COMPATIBILITY IDEOGRAPH-FA6C. Its distinct columns, one per line. 8 B
002743 unicode/part1/U+FA6D NormalizationTest.txt 舘␊舘 Line 13968: CJK COMPATIBILITY IDEOGRAPH-FA6D. Its distinct columns, one per line. 7 B
002744 unicode/part1/U+FA70 NormalizationTest.txt 並␊並 Line 13969: CJK COMPATIBILITY IDEOGRAPH-FA70. Its distinct columns, one per line. 7 B
002745 unicode/part1/U+FA71 NormalizationTest.txt 况␊况 Line 13970: CJK COMPATIBILITY IDEOGRAPH-FA71. Its distinct columns, one per line. 7 B
002746 unicode/part1/U+FA72 NormalizationTest.txt 全␊全 Line 13971: CJK COMPATIBILITY IDEOGRAPH-FA72. Its distinct columns, one per line. 7 B
002747 unicode/part1/U+FA73 NormalizationTest.txt 侀␊侀 Line 13972: CJK COMPATIBILITY IDEOGRAPH-FA73. Its distinct columns, one per line. 7 B
002748 unicode/part1/U+FA74 NormalizationTest.txt 充␊充 Line 13973: CJK COMPATIBILITY IDEOGRAPH-FA74. Its distinct columns, one per line. 7 B
002749 unicode/part1/U+FA75 NormalizationTest.txt 冀␊冀 Line 13974: CJK COMPATIBILITY IDEOGRAPH-FA75. Its distinct columns, one per line. 7 B
002750 unicode/part1/U+FA76 NormalizationTest.txt 勇␊勇 Line 13975: CJK COMPATIBILITY IDEOGRAPH-FA76. Its distinct columns, one per line. 7 B
002751 unicode/part1/U+FA77 NormalizationTest.txt 勺␊勺 Line 13976: CJK COMPATIBILITY IDEOGRAPH-FA77. Its distinct columns, one per line. 7 B
002752 unicode/part1/U+FA78 NormalizationTest.txt 喝␊喝 Line 13977: CJK COMPATIBILITY IDEOGRAPH-FA78. Its distinct columns, one per line. 7 B
002753 unicode/part1/U+FA79 NormalizationTest.txt 啕␊啕 Line 13978: CJK COMPATIBILITY IDEOGRAPH-FA79. Its distinct columns, one per line. 7 B
002754 unicode/part1/U+FA7A NormalizationTest.txt 喙␊喙 Line 13979: CJK COMPATIBILITY IDEOGRAPH-FA7A. Its distinct columns, one per line. 7 B
002755 unicode/part1/U+FA7B NormalizationTest.txt 嗢␊嗢 Line 13980: CJK COMPATIBILITY IDEOGRAPH-FA7B. Its distinct columns, one per line. 7 B
002756 unicode/part1/U+FA7C NormalizationTest.txt 塚␊塚 Line 13981: CJK COMPATIBILITY IDEOGRAPH-FA7C. 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.