Files
craft-libs/crates/rtf/src
vangel76andClaude Sonnet 5.5 537d61a60f rtf: read \ql and \qr after \rtlpar as start and end
The model's paragraph alignment is logical (start/end) in right-to-left
paragraphs, but the reader mapped \ql/\qr straight to left/right. For a
\rtlpar paragraph that mirrored the alignment compared to Word.

Word reads a side word that follows \rtlpar as start/end, and one that comes
before it as plain left/right (checked black-box by saving RTF variants to
DOCX). So \rtlpar\qr is start (no explicit alignment), \rtlpar\ql is end, and
\qr\rtlpar is end. The writer already puts the alignment before \rtlpar, so
its output keeps its meaning and is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 01:05:40 +01:00
..