[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [office-comment] marking directionality of text inside a paragraph
Amir, Thanks for the comment! Question: When you say:
A possible challenge in implementing this feature is that the software must show the user who edits the document that a particular piece of inline text has different directionality. The directionality of a paragraph is usually obvious, but the different directionality of inline text is less obvious (especially when it's set correctly!). However, this is probably a consideration for the implementers and not for the standard authors.
Why wouldn't directionality of inline text be obvious to the author?[Aside to TC: style:writing-mode appears at 20.394 and is defined by 7.27.7 of XSL with the additional value of page.
The <text:span> element appears at 6.1.7 and has a text:style-name attribute 19.874.33. The text:style-name attribute
is required to be of the family text.If you look at 19.498.2 you will find under style: "With the style:family attribute, the style:name attribute uniquely identifies a
style."I don't know if we want to do this for 1.3 but simply requiring unique internal stylenames (display can be whatever a user wants) seems simpler than what we have now.
] Hope you are having a great day! Patrick On 10/17/2011 09:11 AM, Amir E. Aharoni wrote:
Hello, I am sending this proposal here according to the recommendation of Thorsten Behrens. I read the section about bidirectional text in the OpenDocument standard  and it says: "The writing mode attribute can be applied individually to paragraph styles, page styles, section styles, table styles, table cell styles, graphic styles and chart styles." If i understand it correctly, this means that it cannot be applied to text inside a paragraph and for that Unicode control characters, such as RLM, RLE and PDF must be used. In terms of HTML4, this means that it in OpenDocument it is possible to do something like<div dir="rtl">Arabic paragraph</div>, but it is not possible to do something like<span dir="rtl">Arabic sentence in an English paragraph.</span>. This feature is needed very frequently for quoting foreign names, sentences from foreign literature or mathematical formulas. For example, the English name of the company "Yahoo!" will appear incorrectly in a paragraph of Arabic or Hebrew text, because the exclamation mark will go to the other side ("!Yahoo"). Currently there are two solutions for that: 1. Writing the exclamation mark at the other end. This makes it appear correctly, but it breaks the logical order of the characters. 2. Using the characters LRE and PDF, as the standard suggests. It is possible, but it is too complicated for almost all end-users: these characters are not present on the common keyboard layouts and besides, the concept of invisible control characters is very hard for most people to comprehend. Adding this feature will make the life of many Open/LibreOffice users who write in Arabic, Urdu, Persian, Hebrew and other such languages easier and it will improve the interoperability with HTML in general. I should also mention that i am working in the Wikimedia Foundation on improving the support of Wikipedia and related sites for bidirectional text; the next generation of the Wikipedia article editing interface may include support for this feature (based on HTML), so having this feature in ODF will particularly improve the interoperability with Wikipedia and related projects, by making it easier to export documents from OpenOffice to Wikipedia, for example. A possible challenge in implementing this feature is that the software must show the user who edits the document that a particular piece of inline text has different directionality. The directionality of a paragraph is usually obvious, but the different directionality of inline text is less obvious (especially when it's set correctly!). However, this is probably a consideration for the implementers and not for the standard authors. Thank you very much for consideration. Please let me know if you have any questions.  a very large HTML file: http://docs.oasis-open.org/office/v1.2/cos01/OpenDocument-v1.2-cos01-part1.html#__RefHeading__1420402_253892949 -- Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי http://aharoni.wordpress.com “We're living in pieces, I want to live in peace.” – T. Moore
-- Patrick Durusau firstname.lastname@example.org Chair, V1 - US TAG to JTC 1/SC 34 Convener, JTC 1/SC 34/WG 3 (Topic Maps) Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) Another Word For It (blog): http://tm.durusau.net Homepage: http://www.durusau.net Twitter: patrickDurusau