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
All 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 007250 | unicode/part2/line 18478 NormalizationTest.txt |
à֮ⷷ̕b␊à֮ⷷ̕b␊à֮ⷷ̕b
|
34 B | |
| 007251 | unicode/part2/line 18479 NormalizationTest.txt |
a֮ⷷ̀̕b␊a֮ⷷ̀̕b
|
23 B | |
| 007252 | unicode/part2/line 18480 NormalizationTest.txt |
à֮ⷸ̕b␊à֮ⷸ̕b␊à֮ⷸ̕b
|
34 B | |
| 007253 | unicode/part2/line 18481 NormalizationTest.txt |
a֮ⷸ̀̕b␊a֮ⷸ̀̕b
|
23 B | |
| 007254 | unicode/part2/line 18482 NormalizationTest.txt |
à֮ⷹ̕b␊à֮ⷹ̕b␊à֮ⷹ̕b
|
34 B | |
| 007255 | unicode/part2/line 18483 NormalizationTest.txt |
a֮ⷹ̀̕b␊a֮ⷹ̀̕b
|
23 B | |
| 007256 | unicode/part2/line 18484 NormalizationTest.txt |
à֮ⷺ̕b␊à֮ⷺ̕b␊à֮ⷺ̕b
|
34 B | |
| 007257 | unicode/part2/line 18485 NormalizationTest.txt |
a֮ⷺ̀̕b␊a֮ⷺ̀̕b
|
23 B | |
| 007258 | unicode/part2/line 18486 NormalizationTest.txt |
à֮ⷻ̕b␊à֮ⷻ̕b␊à֮ⷻ̕b
|
34 B | |
| 007259 | unicode/part2/line 18487 NormalizationTest.txt |
a֮ⷻ̀̕b␊a֮ⷻ̀̕b
|
23 B | |
| 007260 | unicode/part2/line 18488 NormalizationTest.txt |
à֮ⷼ̕b␊à֮ⷼ̕b␊à֮ⷼ̕b
|
34 B | |
| 007261 | unicode/part2/line 18489 NormalizationTest.txt |
a֮ⷼ̀̕b␊a֮ⷼ̀̕b
|
23 B | |
| 007262 | unicode/part2/line 18490 NormalizationTest.txt |
à֮ⷽ̕b␊à֮ⷽ̕b␊à֮ⷽ̕b
|
34 B | |
| 007263 | unicode/part2/line 18491 NormalizationTest.txt |
a֮ⷽ̀̕b␊a֮ⷽ̀̕b
|
23 B | |
| 007264 | unicode/part2/line 18492 NormalizationTest.txt |
à֮ⷾ̕b␊à֮ⷾ̕b␊à֮ⷾ̕b
|
34 B | |
| 007265 | unicode/part2/line 18493 NormalizationTest.txt |
a֮ⷾ̀̕b␊a֮ⷾ̀̕b
|
23 B | |
| 007266 | unicode/part2/line 18494 NormalizationTest.txt |
à֮ⷿ̕b␊à֮ⷿ̕b␊à֮ⷿ̕b
|
34 B | |
| 007267 | unicode/part2/line 18495 NormalizationTest.txt |
a֮ⷿ̀̕b␊a֮ⷿ̀̕b
|
23 B | |
| 007268 | unicode/part2/line 18496 NormalizationTest.txt |
a̛᷺〪̖b␊a̛᷺〪̖b
|
25 B | |
| 007269 | unicode/part2/line 18497 NormalizationTest.txt |
a̛〪᷺̖b␊a̛〪᷺̖b
|
25 B | |
| 007270 | unicode/part2/line 18498 NormalizationTest.txt |
à𝅭֮〫b␊à𝅭֮〫b␊à𝅭֮〫b
|
40 B | |
| 007271 | unicode/part2/line 18499 NormalizationTest.txt |
à𝅭〫֮b␊à𝅭〫֮b␊à𝅭〫֮b
|
40 B | |
| 007272 | unicode/part2/line 18500 NormalizationTest.txt |
à̕〬͜b␊à̕〬͜b␊à̕〬͜b
|
34 B | |
| 007273 | unicode/part2/line 18501 NormalizationTest.txt |
à〬̕͜b␊à〬̕͜b␊à〬̕͜b
|
34 B | |
| 007274 | unicode/part2/line 18502 NormalizationTest.txt |
a̖֚〭〮b␊a̖֚〭〮b
|
25 B | |
| 007275 | unicode/part2/line 18503 NormalizationTest.txt |
a̖〭֚〮b␊a̖〭֚〮b
|
25 B | |
| 007276 | unicode/part2/line 18504 NormalizationTest.txt |
a֚〮〮𝅭b␊a֚〮〮𝅭b
|
29 B | |
| 007277 | unicode/part2/line 18505 NormalizationTest.txt |
a֚〮〮𝅭b␊a֚〮〮𝅭b
|
29 B | |
| 007278 | unicode/part2/line 18506 NormalizationTest.txt |
a֚〮〯𝅭b␊a֚〮〯𝅭b
|
29 B | |
| 007279 | unicode/part2/line 18507 NormalizationTest.txt |
a֚〯〮𝅭b␊a֚〯〮𝅭b
|
29 B | |
| 007280 | unicode/part2/line 18508 NormalizationTest.txt |
a़゙゙्b␊a़゙゙्b
|
29 B | |
| 007281 | unicode/part2/line 18509 NormalizationTest.txt |
a़゙゙्b␊a़゙゙्b
|
29 B | |
| 007282 | unicode/part2/line 18510 NormalizationTest.txt |
a़゙゚्b␊a़゙゚्b
|
29 B | |
| 007283 | unicode/part2/line 18511 NormalizationTest.txt |
a़゚゙्b␊a़゚゙्b
|
29 B | |
| 007284 | unicode/part2/line 18512 NormalizationTest.txt |
à֮꙯̕b␊à֮꙯̕b␊à֮꙯̕b
|
34 B | |
| 007285 | unicode/part2/line 18513 NormalizationTest.txt |
a֮꙯̀̕b␊a֮꙯̀̕b
|
23 B | |
| 007286 | unicode/part2/line 18514 NormalizationTest.txt |
à֮ꙴ̕b␊à֮ꙴ̕b␊à֮ꙴ̕b
|
34 B | |
| 007287 | unicode/part2/line 18515 NormalizationTest.txt |
a֮ꙴ̀̕b␊a֮ꙴ̀̕b
|
23 B | |
| 007288 | unicode/part2/line 18516 NormalizationTest.txt |
à֮ꙵ̕b␊à֮ꙵ̕b␊à֮ꙵ̕b
|
34 B | |
| 007289 | unicode/part2/line 18517 NormalizationTest.txt |
a֮ꙵ̀̕b␊a֮ꙵ̀̕b
|
23 B | |
| 007290 | unicode/part2/line 18518 NormalizationTest.txt |
à֮ꙶ̕b␊à֮ꙶ̕b␊à֮ꙶ̕b
|
34 B | |
| 007291 | unicode/part2/line 18519 NormalizationTest.txt |
a֮ꙶ̀̕b␊a֮ꙶ̀̕b
|
23 B | |
| 007292 | unicode/part2/line 18520 NormalizationTest.txt |
à֮ꙷ̕b␊à֮ꙷ̕b␊à֮ꙷ̕b
|
34 B | |
| 007293 | unicode/part2/line 18521 NormalizationTest.txt |
a֮ꙷ̀̕b␊a֮ꙷ̀̕b
|
23 B | |
| 007294 | unicode/part2/line 18522 NormalizationTest.txt |
à֮ꙸ̕b␊à֮ꙸ̕b␊à֮ꙸ̕b
|
34 B | |
| 007295 | unicode/part2/line 18523 NormalizationTest.txt |
a֮ꙸ̀̕b␊a֮ꙸ̀̕b
|
23 B | |
| 007296 | unicode/part2/line 18524 NormalizationTest.txt |
à֮ꙹ̕b␊à֮ꙹ̕b␊à֮ꙹ̕b
|
34 B | |
| 007297 | unicode/part2/line 18525 NormalizationTest.txt |
a֮ꙹ̀̕b␊a֮ꙹ̀̕b
|
23 B | |
| 007298 | unicode/part2/line 18526 NormalizationTest.txt |
à֮ꙺ̕b␊à֮ꙺ̕b␊à֮ꙺ̕b
|
34 B | |
| 007299 | unicode/part2/line 18527 NormalizationTest.txt |
a֮ꙺ̀̕b␊a֮ꙺ̀̕b
|
23 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