Commit 696ac4c
Fold accents to ASCII in the heading slug
A French deck anchored "Données" as "donnes" and "nœuds" as "nuds": the slug
kept only [a-z0-9_- ], so every accent was deleted rather than folded. NFD now
splits each letter from its accents and the marks are dropped, with the two
ligatures that have no canonical decomposition spelled out.
index.html and check_tutorial.py fold identically, diffed over accents, ligatures
and the punctuation that must still vanish. NFD, not NFKD: NFKD would rewrite
degree signs and ellipses and move anchors that already ship. Verified no
existing anchor moves — the 45 headings of the two English tutorials slug
byte-identically before and after.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 8d91737 commit 696ac4c
2 files changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
899 | | - | |
900 | | - | |
901 | | - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
158 | 163 | | |
159 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
| |||
0 commit comments