Commit e5b2f5c
review: the digit fold must not swallow the pass-through
foldNativeDigits returns a NON-digit unchanged, so ADLAM[ch] ?? foldNativeDigits(ch) was never
undefined — which killed the pass-through branch below it and, worse, set lastBase (the gemination
target) from characters that are not Adlam letters. A stray ’ or an Arabic-Indic digit before U+1E946
doubled itself instead of the last real letter. It also folded every other script's digits inside an
Adlam token. Guarded on the Adlam digit range, which is what the DIGITS lookup it replaced covered.
Verified against main on 1292 generated words that now include stray and foreign characters precisely
so this path is exercised — the earlier 998-word run used only well-formed Adlam and missed it.
Also split balochi's stacked header: the first paragraph still described the flat romanVowels key from
#751 rather than the six-table roman object that landed, so it now sits on roman.vowelLetters where it
is true.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Lc3WnUgogC7okV7n53vjr1 parent da63df9 commit e5b2f5c
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
48 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
0 commit comments