Repository navigation
Commit 4d42657
fix: make the fold idempotent for letters that casefold across scripts
The review of d862daa found _fold not idempotent where a combining
mark follows the micro sign U+00B5 or U+2183: the mark was read as
spelling before casefolding turned the letter Greek or Latin, so a
second fold dropped it. A wider sweep found a full stop or apostrophe
before a mark doing the same, the mark landing on the letter once the
stop was removed. _fold now casefolds and removes the stops and
apostrophes before it reads the marks. The code-point test now also
folds each code point after a hyphen and with a mark behind a Latin
letter, a hyphen and a Devanagari letter (about 3.5 s serial); the old
_fold and a fold dropping a hyphen after a mark each fail it. The
283,367-pair oracle is byte-identical, so no table or key moved.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 4922f13 commit 4d42657
3 files changed
Lines changed: 26 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
1400 | | - | |
| 1400 | + | |
| 1401 | + | |
1401 | 1402 | | |
1402 | 1403 | | |
1403 | 1404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
602 | | - | |
| 601 | + | |
| 602 | + | |
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
608 | 614 | | |
609 | 615 | | |
610 | 616 | | |
611 | 617 | | |
612 | | - | |
| 618 | + | |
613 | 619 | | |
614 | 620 | | |
615 | 621 | | |
| |||
619 | 625 | | |
620 | 626 | | |
621 | 627 | | |
622 | | - | |
623 | | - | |
| 628 | + | |
624 | 629 | | |
625 | 630 | | |
626 | 631 | | |
| |||
684 | 689 | | |
685 | 690 | | |
686 | 691 | | |
687 | | - | |
| 692 | + | |
| 693 | + | |
688 | 694 | | |
689 | 695 | | |
690 | 696 | | |
| |||
785 | 791 | | |
786 | 792 | | |
787 | 793 | | |
788 | | - | |
789 | | - | |
| 794 | + | |
| 795 | + | |
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
263 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
268 | 272 | | |
269 | | - | |
| 273 | + | |
| 274 | + | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
| |||
0 commit comments