mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
A neutral taken back over a space keeps the space before it only when the nearest strong glyphs on both sides are right-to-left (or the line edge), so a parenthesis opening Latin text is placed by x as on a line without Hebrew. Combining marks drawn between the space and its letter no longer stop the move, and the space, the marks and the letter keep drawing order. The pass now runs after zero-width marks are merged, since that merge relies on x order. Adds tests for the pdf.js #11656 content stream and for two taken-back spaces on one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA