OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (OFFICE-4030) Bottom to top, left to right writing direction


     [ https://issues.oasis-open.org/browse/OFFICE-4030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francis Cave updated OFFICE-4030:
---------------------------------
    Resolution: 
h2. 1.3 Normative References

...
 [CSS4WritingModes] Elika J. Etemad, Koji Ishii, CSS Writing Modes Level 4, [https://www.w3.org/TR/css-writing-modes-4], W3C, 2019
 ...
 [UNICODE] The Unicode Consortium. The Unicode Standard, [https://www.unicode.org/versions/latest].
 ...
h2. 20.404 style:writing-mode
h3. 20.404.1 General

The {{style:writing-mode}} attribute controls the direction in which characters are ordered within a line (inline direction), the direction in which lines are stacked (block direction) and the glyph orientation of individual characters. Furthermore it controls the order and display direction of columns in layout objects like section, table or page and in text boxes (called here layout direction).
{quote}*Note:* In context of these sections, the term âcharacterâ is to be interpreted to mean a text character as perceived by the user, or a glyph as defined in Unicode.
{quote}
The orientation of images and shapes is not affected by the writing mode.

The defined values for the style:writing-mode attribute are {{lr-tb}}, {{lr}}, {{rl-tb}}, {{rl}}, {{tb-rl}}, {{tb}}, tb-lr, {{sideways-rl}}, {{sideways-lr}} and page.
 * {{lr-tb}}: see Â7.27.7 of [XSL].

Inline direction is left-to-right, block direction is top-to-bottom, all characters are rendered upright.

Columns are stacked left-to-right, origin of a table is top-left.

{quote}*Note:* This value is common for latin scripts, such as used for English or Spanish texts, for example.{quote}

 * {{lr}}: short name for value {{lr-tb}}.

 * {{rl-tb}}: see Â7.27.7 of [XSL].

Inline direction is right-to-left, block direction is top-to-bottom, all characters are rendered upright.

Columns are stacked right-to-left, origin of a table is top-right.

{quote}*Note:* This value is common for complex scripts, such as used for Arabic or Hebrew texts, for example.{quote}

 * {{rl}}: short name for value {{rl-tb}}.

 * {{tb-rl}}: see Â7.27.7 of [XSL].

Inline direction is top-to-bottom, block direction is right-to-left. Characters of asian scripts are rendered upright, characters of other scripts are rotated 90deg clockwise.

Columns are stacked top-to-bottom, origin of a table is top-right.

{quote}*Note:* This value is used for vertical Korean or Japanese texts, for example.{quote}

 * {{tb}}: short name for value {{tb-rl}}.

 * {{tb-lr}}: see Appendix A.1. of [XSL].

Inline direction is top-to-bottom, block direction is left-to-right. Characters of asian scripts are rendered upright, characters of other scripts are rotated 90deg clockwise.

Columns are stacked top-to-bottom, origin of a table is top-left.

{quote}*Note:* This value is used for the traditional Mongolian script, for example.{quote}

 * {{sideways-rl}}: see Â3.2 of [CSS$WritingModes].

Inline direction is top-to-bottom, block direction is right-to-left. A*ll* characters are rotated 90deg clockwise.

Columns are stacked top-to-bottom, origin of a table is top-right.

{quote}*Note:* This writing mode is not intended for specific languages, but can be used for table headers in Arabic or Hebrew texts or for 90deg clockwise rotation of tables, for example.{quote}

 * {{sideways-lr}}: see Â3.2 of [CSS$WritingModes].

Inline direction is bottom-to-top, block direction is left-to-right, a*ll* characters are rotated 90deg counter-clockwise.

Columns are stacked bottom-to-top, origin of a table is bottom-left.

{quote}*Note:* This writing mode is not intended for specific languages, but can be used for table headers in western languages or for 90deg counter-clockwise rotation of tables, for example.{quote}

 * {{page}}: This value specifies that the writing-mode is inherited from the closest layout object in which the element is contained or from the anchor object of the element. Details are specified in the following sections.

{quote}*Note:* The style:writing-mode attribute can also be used in chart styles. However, it does not belong to the {{<style:chart-properties>}} element, but to the {{<style:graphic-properties>}} element or to the {{<style:paragraph-properties>}} element and therefore âchart-propertiesâ does not have its own section here.{quote}

h3. 20.404.2 <style:graphic-properties>

The {{style:writing-mode}} attribute of a {{<style:graphic-properties>}} element specifies the layout direction of columns within text boxes that have the graphic style assigned.

If the attribute value is {{page}} the layout direction of columns within text boxes that are anchored to a page is inherited from the layout direction of the page on which the text box is displayed. For text boxes that have a different anchor type, the layout direction is inherited from the paragraph direction of the paragraph or object that contains the text box.

If a graphic style is evaluated for the {{style:writing-mode}} property of a paragraph as specified in section 16.2, not only the {{<style:paragraph-properties>}} element but also the {{<style:graphic-properties>}} element is evaluated. If the {{style:writing-mode}} attribute is present in both elements, it shall have the same value.

...
h3. 20.404.3 <style:page-layout-properties>

The {{style:writing-mode}} attribute of a {{<style:page-layout-properties>}} element specifies the layout direction of page columns for pages that are formatted using the page style. It further determines the binding edge and progress direction of books, see {{style:page-usage}} [19.509] and it determines the writing mode in the inheritance chain of objects, which have a style:writing-mode attribute with value {{page}} applied.

The location of the header area at top of a page and the footer area at bottom of a page is not affected by the writing mode of the page.

The value {{page}} shall not be use for a {{style:writing-mode}} attribute of a {{<style:page-layout-properties>}} element..

...
h3. 20.404.4 <style:paragraph-properties>

The {{style:writing-mode}} attribute of a {{<style:paragraph-properties>}} element specifies the inline direction, block direction and character orientation for all paragraphs that have the paragraph style assigned.

The {{style:writing-mode}} attribute specifies for the paragraph the base direction required by the BiDi Algoritm, see BD5 of [UAX9].

{quote}*Note:* The inline direction determines the location of âstartâ and âendâ of a paragraph. For paragraphs that are contained in lists, it thus specifies where the list numbers and bullets are displayed, for writing mode {{rl-tb}} on the right side, for example.{quote}

If a {{<style:paragraph-property>}} element is child element of a graphic style that is assigned to a text box, then it specifies the layout direction of columns within the text box as well. In case the {{style writing-mode}} attribute is present in the {{<style:paragraph-properties>}} child element and in the {{<style:graphic-properties>}} child element of the same graphic style, their values shall be identical.

The value {{page}} specifies that the actual value is inherited from the layout direction of the closest layout object in which the paragraph is contained, and which has a layout direction other than {{page}}. For a paragraph element, which is direct child element of a shape, the closest layout object is the shape itself.

{quote}*Note:* If a paragraph style does not contain a {{style:writing-mode}} attribute, then the hierarchical style model as specified in section 16.2 is used to determine a value for the writing mode of the element that has the paragraph style applied. That is different from an attribute with value {{page}}.{quote}

...
h3. 20.404.5 <style:section-properties>

The {{style:writing-mode}} attribute of a {{<style:section-properties>}} element specifies the layout direction of section columns for text sections that have the section style assigned.

...
h3. 20.404.6 <style:table-cell-properties>

The {{style:writing-mode}} attribute of a {{<style:table-cell-properties>}} element specifies a layout directing for any descendant element of the cell that has a style assigned with writing mode page and for which the table cell is the closest containing layout object on which the layout direction is specified.

{quote}*Note:* OpenDocument further has the table cell style attribute {{style:direction}} [20.263] to specify that characters are vertically stacked but not rotated, and it further has the table cell style attribute {{style:glyph-orientation-vertical}} [20.297] to specify, that no characters in a vertical writing mode are rotated.{quote}

...
h3. 20.404.7 <style:table-properties>

The {{style:writing-mode}} attribute of a {{<style:table-properties>}} element specifies the layout direction of table columns for tables that have the table style assigned.

If the attribute value is {{page}} the layout direction is inherited from the layout direction of the closest layout object in which the table is contained, and which has a layout direction other than {{page}}.

> Bottom to top, left to right writing direction
> ----------------------------------------------
>
>                 Key: OFFICE-4030
>                 URL: https://issues.oasis-open.org/browse/OFFICE-4030
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: New Feature
>          Components: Paragraph
>            Reporter: Andras Timar
>            Assignee: Patrick Durusau
>            Priority: Minor
>             Fix For: ODF 1.4
>
>         Attachments: Comparison standards and implementations.odt, Proposal_writing-mode_Version_TC2.odt, Proposal_writing-mode_Version_TC3.odt, Proposal_writing-mode_Version_TC4.odt, Proposal_writing-mode_Version_TC5.odt, Proposal_writing-mode_Version_TC6.odt, overview.ods
>
>
> h1. Summary
> Proposal owner: Miklos Vajna
> Proposal short name: Bottom to top, left to right writing direction
> h1. Rationale
> *Use cases:*
> Users sometimes want to have a text direction which is similar to latin text
>  (left to right, then top to bottom), but rotated 90 degrees counter-clockwise.
> Also, this improves consistency, as doing the same in the clockwise direction
>  is already possible (the top to bottom, right to left direction is used for
>  e.g. Japanese text).
> *Alternatives considered:*
> It is possible to rotate characters at a span level, but that only gives
>  similar result as long as the content fits a single line.
> h1. Requested changes to the ODF Standard
> Text changes/additions (compared to ODF 1.2):
> 20.394.2 <style:graphic-properties> (existing section)
> Append to the end of style:writing-mode attribute value list: bt-lr.
> 20.394.3 <style:page-layout-properties> (existing section)
> Append to the end of style:writing-mode attribute value list: bt-lr.
> 20.394.4 <style:paragraph-properties> (existing section)
> Append to the end of style:writing-mode attribute value list: bt-lr.
> 20.394.5 <style:section-properties> (existing section)
> Append to the end of style:writing-mode attribute value list: bt-lr.
> 20.394.6 <style:table-cell-properties> (existing section)
> Append to the end of style:writing-mode attribute value list: bt-lr.
> 20.394.7 <style:table-properties> (existing section)
> Append to the end of style:writing-mode attribute value list: bt-lr.
> Schema changes/additions:
> {{<rng:define name="common-writing-mode-attlist">}}
>  {{Â <rng:optional>}}
>  {{Â Â <rng:attribute name="style:writing-mode">}}
>  {{Â Â Â <rng:choice>}}
>  {{Â Â Â ÂÂ<rng:value>lr-tb</rng:value>}}
>  {{Â Â Â ÂÂ<rng:value>rl-tb</rng:value>}}
>  {{Â Â Â ÂÂ<rng:value>tb-rl</rng:value>}}
>  {{Â Â Â ÂÂ<rng:value>tb-lr</rng:value>}}
>  {{Â Â Â ÂÂ<rng:value>lr</rng:value>}}
>  {{Â Â Â ÂÂ<rng:value>rl</rng:value>}}
>  {{Â Â Â ÂÂ<rng:value>tb</rng:value>}}
>  {{Â Â Â ÂÂ<rng:value>page</rng:value>}}
>  {{Â Â Â ÂÂ<rng:value>bt-lr</rng:value>}}
>  {{Â Â Â </rng:choice>}}
>  {{Â Â </rng:attribute>}}
>  {{Â </rng:optional>}}
>  {{</rng:define>}}
> In other words, allow bt-lr as a new value of the style:writing-mode
>  attribute.
> h1. Impacts
> *Conformance:*
> This proposal will not add any mandatory features or behaviors.
> *Backwards compatibility:*
> This change will not impact existing ODF processors, the usage of the new
>  attribute value is optional.
> *Accessibility impact:*
> This change will not impact accessibility.
> *Interoperability:*
> OOXML's wordprocessingML has a <w:textDirection w:val="btLr"/> markup to
>  describe the same, this proposal allows roundtripping that feature in ODF.
>  LibreOffice 6.3 implements this layout feature in its ODF extension namespace.



--
This message was sent by Atlassian Jira
(v8.3.3#803004)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]