[Libreoffice-bugs] [Bug 121182] New: Western acronyms not correctly formatted in RTL context
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 5 20:02:24 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=121182
Bug ID: 121182
Summary: Western acronyms not correctly formatted in RTL
context
Product: LibreOffice
Version: 6.0.6.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: page74010-sf at yahoo.fr
Description:
An LTR acronym like C++ or C# (i.e. a combination of Latin letters with symbols
at some end) is inserted in an RTL language paragraph (Persian, Arabic,
Hebrew). To make sure the acronym is considered as a whole, it is marked with a
character style with "language" set to "None" or "English".
Despite this mark up, the symbol keeps its "context-sensitive" directionality
property. Since the document language is Persian, the ending symbol (+ or #)
being adjacent to Persian text (spaces do not matter) reverts to RTL
directionality and the acronym is laid out as ++C or #C.
It looks like CTL styles which contain two parts, Western Font and CTL Font,
select the part to be applied from some criterion intrinsic to the character,
not from some user-defined attribute. There no way to force the "language" for
a sequence of characters. This is important for punctuation and symbols which
seem to be auto-adaptative, directionality-wise.
This may be the intended behaviour (in which case it is not a bug) but I found
no indication about it. In common cases, this is the correct behaviour because
symbols like + / may occur in text and should be laid out as a monotonous
sequence (no direction change).
However, in technical papers, there is a need to quote weird mixed
(latin+symbols) sequence and to force directionality on it.
This report originates in an AskLO question at
https://ask.libreoffice.org/en/question/171132/ltr-words-inside-an-rtl-sentence/
The only ugly workaround I found is to enclose the problematic sequence with
Latin letters like aC++a (in fact C++a works also here because C is already a
Latin letter) and to format the a's as hidden.
Steps to Reproduce:
1. Type some RTL text (e.g.Arabic)
2. Insert somewhere " C++ "
3. Optionally, force language to None (ineffective since no spellchecker is
involved)
Actual Results:
Acronym C++ in the middle of an RTL sentence is formatted as ++C
Expected Results:
Acronym C++ in the middle of an RTL text should be displayed as C++ provided
there is way to inform LO Writer that this is an LTR sequence as a whole
Reproducible: Always
User Profile Reset: No
Additional Info:
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181105/c6211b60/attachment.html>
More information about the Libreoffice-bugs
mailing list