https://bugs.freedesktop.org/show_bug.cgi?id=59704
isaric <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- Ever confirmed|0 |1 --- Comment #6 from isaric <[email protected]> --- I's comments on website https://bugzilla.mozilla.org/show_bug.cgi?id=842121 of Jonathan Kew : "AFAICT, I don't think this is a Firefox bug. The "problem" is that the paragraph in question is being laid out with left-to-right directionality, even though it happens to contain Persian text. Hence, the paragraph indent appears at the left-hand end of the first line; and the last (partial) line is aligned to the left. This is correct layout for a left-to-right paragraph, and is not changed by the fact that some of the words - even as many as 100% of them! - in the paragraph happen to be in a right-to-left script. Note that there's nothing in the HTML suggesting that this paragraph should in fact be laid out in right-to-left mode. The <body> element is explicitly tagged with dir="ltr"; this is inherited by all the paragraphs within it, as they do not override it. The layout would be "fixed" if that Persian paragraph were tagged with dir="rtl" in the source, or if it included direction:rtl in its CSS styling. But apparently the LibreOffice export failed to do either of those things, even though the paragraph was presumably presented in RTL layout within LO. Another possibility would be to tag the paragraphs with dir="auto", which would make them infer directionality from the text content. This would have provided the desired result here, though it's possible that it might fail in more complex cases where the paragraph contains a -mixture- of LTR and RTL text. It looks as though IE must be doing something like dir="auto" here, even though the document is explicitly marked (on the <body> element) as dir="ltr". While this is giving the desired result in this particular case, I don't think it is spec-conformant; the real problem is the deficiency in LO's export. (cc-ing smontagu for confirmation of my understanding here, as he knows more about these properties.)" -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
