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
3,833 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 003533 | unicode/part1/U+FE4A NormalizationTest.txt |
﹊␊ ̅
|
7 B | |
| 003534 | unicode/part1/U+FE4B NormalizationTest.txt |
﹋␊ ̅
|
7 B | |
| 003535 | unicode/part1/U+FE4C NormalizationTest.txt |
﹌␊ ̅
|
7 B | |
| 003536 | unicode/part1/U+FE4D NormalizationTest.txt |
﹍␊_
|
5 B | |
| 003537 | unicode/part1/U+FE4E NormalizationTest.txt |
﹎␊_
|
5 B | |
| 003538 | unicode/part1/U+FE4F NormalizationTest.txt |
﹏␊_
|
5 B | |
| 003539 | unicode/part1/U+FE50 NormalizationTest.txt |
﹐␊,
|
5 B | |
| 003540 | unicode/part1/U+FE51 NormalizationTest.txt |
﹑␊、
|
7 B | |
| 003541 | unicode/part1/U+FE52 NormalizationTest.txt |
﹒␊.
|
5 B | |
| 003542 | unicode/part1/U+FE54 NormalizationTest.txt |
﹔␊;
|
5 B | |
| 003543 | unicode/part1/U+FE55 NormalizationTest.txt |
﹕␊:
|
5 B | |
| 003544 | unicode/part1/U+FE56 NormalizationTest.txt |
﹖␊?
|
5 B | |
| 003545 | unicode/part1/U+FE57 NormalizationTest.txt |
﹗␊!
|
5 B | |
| 003546 | unicode/part1/U+FE58 NormalizationTest.txt |
﹘␊—
|
7 B | |
| 003547 | unicode/part1/U+FE59 NormalizationTest.txt |
﹙␊(
|
5 B | |
| 003548 | unicode/part1/U+FE5A NormalizationTest.txt |
﹚␊)
|
5 B | |
| 003549 | unicode/part1/U+FE5B NormalizationTest.txt |
﹛␊{
|
5 B | |
| 003550 | unicode/part1/U+FE5C NormalizationTest.txt |
﹜␊}
|
5 B | |
| 003551 | unicode/part1/U+FE5D NormalizationTest.txt |
﹝␊〔
|
7 B | |
| 003552 | unicode/part1/U+FE5E NormalizationTest.txt |
﹞␊〕
|
7 B | |
| 003553 | unicode/part1/U+FE5F NormalizationTest.txt |
﹟␊#
|
5 B | |
| 003554 | unicode/part1/U+FE60 NormalizationTest.txt |
﹠␊&
|
5 B | |
| 003555 | unicode/part1/U+FE61 NormalizationTest.txt |
﹡␊*
|
5 B | |
| 003556 | unicode/part1/U+FE62 NormalizationTest.txt |
﹢␊+
|
5 B | |
| 003557 | unicode/part1/U+FE63 NormalizationTest.txt |
﹣␊-
|
5 B | |
| 003558 | unicode/part1/U+FE64 NormalizationTest.txt |
﹤␊<
|
5 B | |
| 003559 | unicode/part1/U+FE65 NormalizationTest.txt |
﹥␊>
|
5 B | |
| 003560 | unicode/part1/U+FE66 NormalizationTest.txt |
﹦␊=
|
5 B | |
| 003561 | unicode/part1/U+FE68 NormalizationTest.txt |
﹨␊\
|
5 B | |
| 003562 | unicode/part1/U+FE69 NormalizationTest.txt |
﹩␊$
|
5 B | |
| 003563 | unicode/part1/U+FE6A NormalizationTest.txt |
﹪␊%
|
5 B | |
| 003564 | unicode/part1/U+FE6B NormalizationTest.txt |
﹫␊@
|
5 B | |
| 003565 | unicode/part1/U+FE70 NormalizationTest.txt |
ﹰ␊ ً
|
7 B | |
| 003566 | unicode/part1/U+FE71 NormalizationTest.txt |
ﹱ␊ـً
|
8 B | |
| 003567 | unicode/part1/U+FE72 NormalizationTest.txt |
ﹲ␊ ٌ
|
7 B | |
| 003568 | unicode/part1/U+FE74 NormalizationTest.txt |
ﹴ␊ ٍ
|
7 B | |
| 003569 | unicode/part1/U+FE76 NormalizationTest.txt |
ﹶ␊ َ
|
7 B | |
| 003570 | unicode/part1/U+FE77 NormalizationTest.txt |
ﹷ␊ـَ
|
8 B | |
| 003571 | unicode/part1/U+FE78 NormalizationTest.txt |
ﹸ␊ ُ
|
7 B | |
| 003572 | unicode/part1/U+FE79 NormalizationTest.txt |
ﹹ␊ـُ
|
8 B | |
| 003573 | unicode/part1/U+FE7A NormalizationTest.txt |
ﹺ␊ ِ
|
7 B | |
| 003574 | unicode/part1/U+FE7B NormalizationTest.txt |
ﹻ␊ـِ
|
8 B | |
| 003575 | unicode/part1/U+FE7C NormalizationTest.txt |
ﹼ␊ ّ
|
7 B | |
| 003576 | unicode/part1/U+FE7D NormalizationTest.txt |
ﹽ␊ـّ
|
8 B | |
| 003577 | unicode/part1/U+FE7E NormalizationTest.txt |
ﹾ␊ ْ
|
7 B | |
| 003578 | unicode/part1/U+FE7F NormalizationTest.txt |
ﹿ␊ـْ
|
8 B | |
| 003579 | unicode/part1/U+FE80 NormalizationTest.txt |
ﺀ␊ء
|
6 B | |
| 003580 | unicode/part1/U+FE81 NormalizationTest.txt |
ﺁ␊آ␊آ
|
11 B | |
| 003581 | unicode/part1/U+FE82 NormalizationTest.txt |
ﺂ␊آ␊آ
|
11 B | |
| 003582 | unicode/part1/U+FE83 NormalizationTest.txt |
ﺃ␊أ␊أ
|
11 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.
- NormalizationTest.txt — Unicode’s conformance test, the source of the 8,868 unicode cases; each case is one line, its distinct columns on separate lines
- The Unicode Character Database — combining classes, decompositions and composition exclusions, the source of the 157 ucd cases