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

93 of 11,911 cases

Case Name Expected Note Size
002888 unicode/part1/U+FB39 NormalizationTest.txt יּ␊יּ Line 14113: HEBREW LETTER YOD WITH DAGESH. Its distinct columns, one per line. 8 B
002889 unicode/part1/U+FB3A NormalizationTest.txt ךּ␊ךּ Line 14114: HEBREW LETTER FINAL KAF WITH DAGESH. Its distinct columns, one per line. 8 B
002890 unicode/part1/U+FB3B NormalizationTest.txt כּ␊כּ Line 14115: HEBREW LETTER KAF WITH DAGESH. Its distinct columns, one per line. 8 B
002891 unicode/part1/U+FB3C NormalizationTest.txt לּ␊לּ Line 14116: HEBREW LETTER LAMED WITH DAGESH. Its distinct columns, one per line. 8 B
002892 unicode/part1/U+FB3E NormalizationTest.txt מּ␊מּ Line 14117: HEBREW LETTER MEM WITH DAGESH. Its distinct columns, one per line. 8 B
002893 unicode/part1/U+FB40 NormalizationTest.txt נּ␊נּ Line 14118: HEBREW LETTER NUN WITH DAGESH. Its distinct columns, one per line. 8 B
002894 unicode/part1/U+FB41 NormalizationTest.txt סּ␊סּ Line 14119: HEBREW LETTER SAMEKH WITH DAGESH. Its distinct columns, one per line. 8 B
002895 unicode/part1/U+FB43 NormalizationTest.txt ףּ␊ףּ Line 14120: HEBREW LETTER FINAL PE WITH DAGESH. Its distinct columns, one per line. 8 B
002896 unicode/part1/U+FB44 NormalizationTest.txt פּ␊פּ Line 14121: HEBREW LETTER PE WITH DAGESH. Its distinct columns, one per line. 8 B
002897 unicode/part1/U+FB46 NormalizationTest.txt צּ␊צּ Line 14122: HEBREW LETTER TSADI WITH DAGESH. Its distinct columns, one per line. 8 B
002898 unicode/part1/U+FB47 NormalizationTest.txt קּ␊קּ Line 14123: HEBREW LETTER QOF WITH DAGESH. Its distinct columns, one per line. 8 B
002899 unicode/part1/U+FB48 NormalizationTest.txt רּ␊רּ Line 14124: HEBREW LETTER RESH WITH DAGESH. Its distinct columns, one per line. 8 B
002900 unicode/part1/U+FB49 NormalizationTest.txt שּ␊שּ Line 14125: HEBREW LETTER SHIN WITH DAGESH. Its distinct columns, one per line. 8 B
002901 unicode/part1/U+FB4A NormalizationTest.txt תּ␊תּ Line 14126: HEBREW LETTER TAV WITH DAGESH. Its distinct columns, one per line. 8 B
002902 unicode/part1/U+FB4B NormalizationTest.txt וֹ␊וֹ Line 14127: HEBREW LETTER VAV WITH HOLAM. Its distinct columns, one per line. 8 B
002903 unicode/part1/U+FB4C NormalizationTest.txt בֿ␊בֿ Line 14128: HEBREW LETTER BET WITH RAFE. Its distinct columns, one per line. 8 B
002904 unicode/part1/U+FB4D NormalizationTest.txt כֿ␊כֿ Line 14129: HEBREW LETTER KAF WITH RAFE. Its distinct columns, one per line. 8 B
002905 unicode/part1/U+FB4E NormalizationTest.txt פֿ␊פֿ Line 14130: HEBREW LETTER PE WITH RAFE. Its distinct columns, one per line. 8 B
004054 unicode/part1/U+1D15E NormalizationTest.txt 𝅗𝅥␊𝅗𝅥 Line 15279: MUSICAL SYMBOL HALF NOTE. Its distinct columns, one per line. 13 B
004055 unicode/part1/U+1D15F NormalizationTest.txt 𝅘𝅥␊𝅘𝅥 Line 15280: MUSICAL SYMBOL QUARTER NOTE. Its distinct columns, one per line. 13 B
004056 unicode/part1/U+1D160 NormalizationTest.txt 𝅘𝅥𝅮␊𝅘𝅥𝅮 Line 15281: MUSICAL SYMBOL EIGHTH NOTE. Its distinct columns, one per line. 17 B
004057 unicode/part1/U+1D161 NormalizationTest.txt 𝅘𝅥𝅯␊𝅘𝅥𝅯 Line 15282: MUSICAL SYMBOL SIXTEENTH NOTE. Its distinct columns, one per line. 17 B
004058 unicode/part1/U+1D162 NormalizationTest.txt 𝅘𝅥𝅰␊𝅘𝅥𝅰 Line 15283: MUSICAL SYMBOL THIRTY-SECOND NOTE. Its distinct columns, one per line. 17 B
004059 unicode/part1/U+1D163 NormalizationTest.txt 𝅘𝅥𝅱␊𝅘𝅥𝅱 Line 15284: MUSICAL SYMBOL SIXTY-FOURTH NOTE. Its distinct columns, one per line. 17 B
004060 unicode/part1/U+1D164 NormalizationTest.txt 𝅘𝅥𝅲␊𝅘𝅥𝅲 Line 15285: MUSICAL SYMBOL ONE HUNDRED TWENTY-EIGHTH NOTE. Its distinct columns, one per line. 17 B
004061 unicode/part1/U+1D1BB NormalizationTest.txt 𝆹𝅥␊𝆹𝅥 Line 15286: MUSICAL SYMBOL MINIMA. Its distinct columns, one per line. 13 B
004062 unicode/part1/U+1D1BC NormalizationTest.txt 𝆺𝅥␊𝆺𝅥 Line 15287: MUSICAL SYMBOL MINIMA BLACK. Its distinct columns, one per line. 13 B
004063 unicode/part1/U+1D1BD NormalizationTest.txt 𝆹𝅥𝅮␊𝆹𝅥𝅮 Line 15288: MUSICAL SYMBOL SEMIMINIMA WHITE. Its distinct columns, one per line. 17 B
004064 unicode/part1/U+1D1BE NormalizationTest.txt 𝆺𝅥𝅮␊𝆺𝅥𝅮 Line 15289: MUSICAL SYMBOL SEMIMINIMA BLACK. Its distinct columns, one per line. 17 B
004065 unicode/part1/U+1D1BF NormalizationTest.txt 𝆹𝅥𝅯␊𝆹𝅥𝅯 Line 15290: MUSICAL SYMBOL FUSA WHITE. Its distinct columns, one per line. 17 B
004066 unicode/part1/U+1D1C0 NormalizationTest.txt 𝆺𝅥𝅯␊𝆺𝅥𝅯 Line 15291: MUSICAL SYMBOL FUSA BLACK. Its distinct columns, one per line. 17 B
009046 regression/exclusion/devanagari qa Focused regression क़ U+0958 is excluded from composition: it decomposes and stays decomposed, growing from 3 bytes to 6. 3 B
009047 regression/exclusion/devanagari ka nukta Focused regression क़ The decomposition of an excluded composite doesn't recompose. 6 B
009048 regression/exclusion/every devanagari exclusion Focused regression क़ख़ग़ज़ड़ढ़फ़य़ 24 B
009049 regression/exclusion/hebrew presentation forms Focused regression יִשׁשּׁפֿ U+FB2C decomposes in two steps into three characters. 12 B
009050 regression/exclusion/forking Focused regression ⫝̸ U+2ADC is the one exclusion among the mathematical operators. 3 B
009051 regression/exclusion/musical symbols Focused regression 𝅗𝅥𝅘𝅥𝅮𝆹𝅥𝆺𝅥𝅯 U+1D160 goes from 4 bytes to 12, the largest growth there is. 16 B
009052 regression/exclusion/tibetan Focused regression གྷཀྵྲྀླྀ 12 B
009053 regression/exclusion/bengali and oriya Focused regression ড়ঢ়য়ଡ଼ଢ଼ 15 B
009054 regression/exclusion/gurmukhi Focused regression ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ 18 B
009055 regression/exclusion/not excluded: devanagari nnna Focused regression ऩ ऱ ऴ Only U+0958..U+095F are excluded. U+0929, U+0931 and U+0934 compose as usual. 20 B
009116 regression/length/grows three times Focused regression 𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮𝅘𝅥𝅮… U+1D160 2,048 times: 8,192 bytes in, 24,576 out. No input grows by a larger factor. 8.0 KiB
009117 regression/length/grows twice Focused regression क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़क़… 2.9 KiB

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.