[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: fo:text-align="end"
The tag above, from §15.5.5 and indirectly from XSL §7.16.9 is said to do the following; end: "Specifies that the content is to be aligned on the end-edge in the inline-progression-direction." Now see the attached test doc. (odt and xml are the same). There is some RTL text, Easy to spot. And I set the text-align to 'end' which to me indicates that the alignment is left for that RTL text. So, at least one of the two RTL texts should be left aligned. I'm even thinking both of them. None of the ODF implementations I tried actually do this, except KWord2 but I'm unsure what the correct bahavior is now. Can someone explain the reasoning and expected behavior here? Thanks! -- Thomas Zander
<?xml version="1.0" encoding="UTF-8"?> <office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:koffice="http://www.koffice.org/2005/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink"> <office:font-face-decls> <style:font-face style:name="Sans Serif" svg:font-family="Sans Serif"/> </office:font-face-decls> <office:automatic-styles> <style:style style:name="P1" style:parent-style-name="Standard" style:family="paragraph"> <style:paragraph-properties style:writing-mode="lr-tb"/> <style:text-properties fo:font-size="7pt" fo:hyphenate="true"/> </style:style> <style:style style:name="P2" style:parent-style-name="Standard" style:family="paragraph"> <style:paragraph-properties fo:text-align="center" style:writing-mode="lr-tb"/> <style:text-properties fo:font-size="7pt" fo:hyphenate="true"/> </style:style> <style:style style:name="P3" style:parent-style-name="Standard" style:family="paragraph"> <style:paragraph-properties fo:text-align="right" style:writing-mode="lr-tb"/> <style:text-properties fo:font-size="7pt" fo:hyphenate="true"/> </style:style> <style:style style:name="P4" style:parent-style-name="Standard" style:family="paragraph"> <style:paragraph-properties fo:text-align="justify" style:writing-mode="lr-tb"/> <style:text-properties fo:font-size="7pt" fo:hyphenate="true"/> </style:style> <style:style style:name="P5" style:parent-style-name="Standard" style:family="paragraph"> <style:paragraph-properties fo:text-align="end" style:writing-mode="lr-tb"/> <style:text-properties fo:font-size="7pt"/> </style:style> <style:style style:name="P6" style:parent-style-name="Standard" style:family="paragraph"> <style:paragraph-properties fo:text-align="end" style:writing-mode="rl-tb"/> <style:text-properties fo:font-size="7pt"/> </style:style> <style:style style:name="T1" style:family="text"> <style:text-properties fo:color="#000000" fo:text-shadow="none"/> </style:style> </office:automatic-styles> <office:body> <office:text> <text:p text:style-name="P1">This is left alignment. This is left alignment. This is left alignment. </text:p> <text:p text:style-name="P2">This is centered alignment. This is centered alignment. This is centered alignment. </text:p> <text:p text:style-name="P3">This is right alignment. This is right alignment. This is right alignment.</text:p> <text:p text:style-name="P4">This is justified alignment. This is justified alignment. This is justified alignment. <text:span text:style-name="T1">This is justified alignment. This is justified alignment. This is justified alignment.</text:span></text:p> <text:p text:style-name="P1"></text:p> <text:p text:style-name="P1">The next two paragraphs use 'end' alignment, with lr-tb writing mode.</text:p> <text:p text:style-name="P5">ﺵﻻﺆﻴﺜﺒﻟ</text:p> <text:p text:style-name="P5">parag</text:p> <text:p text:style-name="P1">The next two paragraphs use 'end' alignment, with rl-tb writing mode.</text:p> <text:p text:style-name="P6">ﺵﻻﺆﻴﺜﺒﻟ</text:p> <text:p text:style-name="P6">parag</text:p> </office:text> </office:body> </office:document-content>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]