mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-25 02:57:01 -06:00
Currency and percent signs in right-to-left runs looked ahead through the whole ET run for every sign, and each neutral span searched both ways for the nearest strong direction. Both are now precomputed or carried along, so a long run of signs or many short neutral spans cost linear work. The old code stays in the tests as a reference and 4000 random paragraphs match it. Co-authored-by: Cursor <cursoragent@cursor.com>