[Libreoffice-bugs] [Bug 72640] RTL: numbering alignment issue with doc and docx files

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Apr 23 10:58:05 UTC 2021


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

--- Comment #26 from Justin L <jluth at mail.com> ---
There is a choice of "left" and "start".  But based on the results and a
comment in the documentation, it sounds like "left" should always be
interpreted as "start" (and LO doesn't have a "start" native property).

> The possible values (see below) for this attribute are always specified
> with left specifying justification relative to the leading edge of the
> paragraph, and therefore change semantic between right-to-left
> and left-to-right documents.

Hmm. We do treat them both the same on import...
case NS_ooxml::LN_CT_Lvl_lvlJc:
            case NS_ooxml::LN_Value_ST_Jc_left:
            case NS_ooxml::LN_Value_ST_Jc_start:
                nValue = text::HoriOrientation::LEFT;
                break;

So then this probably needs to be handled in layout (per paragraph). (I wonder
what the LO specification says about this? I found 20.223.2
<style:list-level-properties> but it doesn't mention RTL.
> The defined values for the fo:text-align attribute are:
> • center: center of the list label is positioned at the alignment position.
> • end: interpreted as fo:text-align=”right”
> • justify: label is justified.
> • left: list label starts at the alignment position.
> • right: list label ends at the alignment position.
> • start: interpreted as fo:text-align=”left”.

ODF seems to be fairly clear that it ignores RTL for styles, because the
paragraph style explicitly states "The values of start and end are interpreted
according to the writing direction of the text", while in this case start/end
are ignored and treated as left/right.

So that suggests this would need a compatibility flag and special layout
handling.

-- 
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/20210423/aea8a096/attachment.htm>


More information about the Libreoffice-bugs mailing list