https://bugs.documentfoundation.org/show_bug.cgi?id=141663

Eyal Rozenberg <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #11 from Eyal Rozenberg <[email protected]> ---
(In reply to Eric Bright from comment #0)
> Description:
> When writing a sentence that is left-to-right (LTR) inside a right-to-left
> (RTL) paragraph, any punctuation mark at the end of the LTR sentence jumps
> to the beginning of that LTR sentence, instead of staying at the end of the
> LTR sentence.

This is intended behavior. If the paragraph is RTL, it is assumed that a
punctuation mark is part of the paragraph's flow, with the LTR text so far
having come to an end. A punctuation mark is direction-neutral, and there is no
way to know for certain whether you wanted it to be in the LTR run or not. Once
you write additional characters, LO can infer the direction with more
certainty. But if you _don't_ write any more characters, then your punctuation
mark (typically a period) should indeed be assumed to be RTL again - since it's
reasonable for you to want to finish your RTL sentence with a punctuation mark.

You can "force" the direction of the punctuation mark, by inserting a Unicode
control character, such as an RLM:

https://en.wikipedia.org/wiki/Right-to-left_mark

at the link, you'll notice how it is used for doing just this.


Everything I've said applies similarly to RTL text within LTR paragraphs (with
RLM marks).

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to