https://bugs.documentfoundation.org/show_bug.cgi?id=72640
--- Comment #32 from Jonathan Clark <[email protected]> --- The current behavior dates back to the following commit: commit aa97d20d4946bfbfcd4b528dc0deb3b3759b3d70 Author: Frank Meies <[email protected]> Date: Mon Nov 18 11:17:03 2002 +0000 #104743# Numbering portions in RTL environment (In reply to Justin L from comment #26) > 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. > > 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. The spec isn't clear, but I think it probably intended the opposite of this. >From ODF 1.3 20.223.2: > end: interpreted as fo:text-align=”right” > left: list label starts at the alignment position. > right: list label ends at the alignment position. > start: interpreted as fo:text-align=”left”. It's not explicitly stated, but 'starting at' and 'ending at' can only really make sense when you take the writing direction of the label into consideration. It has the exact same meaning, but makes more intuitive sense, if we reword the spec as follows: > end: list label ends at the alignment position. > left: interpreted as fo:text-align=”start”. > right: interpreted as fo:text-align=”end” > start: list label starts at the alignment position. The next question is: what is the writing direction of a label supposed to be? The ODF spec doesn't say. ODF 1.3 Appendix E.1 comes closest by specifying how paragraph writing direction affects label alignment position, but it doesn't explicitly say whether it affects label writing direction. Our current implementation uses the paragraph writing direction as the base writing direction for labels, which I think is quite reasonable. If we assume that's the way the spec is meant to be interpreted, then our implementation of fo:text-align is and has always been incorrect. -- You are receiving this mail because: You are the assignee for the bug.
