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-4124) 'clear' attribute for line breaks


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

Regina Henschel updated OFFICE-4124:
------------------------------------
    Proposal: 
h2. Â

This change will not impact existing ODF processors, the usage of the new
 attribute value is optional.
h2. Accessibility impact

This change will not impact accessibility.
h2. Interoperability

OOXML's wordprocessingML has a {{<w:br w:clear="..."/>}} markup to describe
 the same, this proposal allows roundtripping that feature in ODF. LibreOffice
 7.4 implements this layout feature in its ODF extension namespace.

HTML, combined with CSS also allows to describe the same, this proposal allows
 roundtripping that feature in ODF.

  was:
h1.  Rationale

h2. Use cases:

The {{clear}} attribute for a line break defines where a next line should appear
after line break in case anchored objects intersect with the current line.

Users sometimes want to make sure that the next line continues at the next
full line, below an anchored object, without starting a new paragraph.

h2. Alternatives considered

It is possible to have a similar (but not exactly the same) layout by
expressing the same content with two paragraphs, and enabling "anchor only"
wrapping for the anchored object. The problem is that this works with two
paragraphs, so it's different layout when it comes to various paragraph
properties (spacing, etc).

h1. Requested changes to the ODF Standard

h2. Text changes/additions (compared to ODF 1.3):

6.1.5 <text:line-break> (existing section)

Append to the end of allowed attributes: text:clear.

20.436 text:clear (new section)

Specifies where the next line should appear after a line break. Possible values:

- {{none}}: default, continue right after the current line
- {{all}}: continue at the next full line, i.e. below all of the anchored objects
 intersecting with the current line
- {{left}}: continue at the next line which is unblocked on the left hand side
- {{right}}: continue at the next line which is unblocked on the right hand side
The default value for attribute {{text:clear}} is {{none}}.

h2. Schema changes/additions


{code:xml}
 <rng:define name="paragraph-content" combine="choice">
    <rng:element name="text:line-break">
      <rng:optional>
        <!-- default value: none -->
        <rng:attribute name="text:clear">
          <rng:choice>
            <rng:value>none</rng:value>
            <rng:value>left</rng:value>
            <rng:value>right</rng:value>
            <rng:value>all</rng:value>
          </rng:choice>
        </rng:attribute>
      </rng:optional>
    </rng:element>
  </rng:define>
{code}


In other words, allow {{text:clear}} as a new attribute of the existing
{{<text:line-break>}} element.

h1. Impacts

h2. Conformance

This proposal will not add any mandatory features or behaviors.

h2. Backwards compatibility

This change will not impact existing ODF processors, the usage of the new
attribute value is optional.

h2. Accessibility impact

This change will not impact accessibility.

h2. Interoperability

OOXML's wordprocessingML has a {{<w:br w:clear="..."/>}} markup to describe
the same, this proposal allows roundtripping that feature in ODF. LibreOffice
7.4 implements this layout feature in its ODF extension namespace.

HTML, combined with CSS also allows to describe the same, this proposal allows
roundtripping that feature in ODF.


> 'clear' attribute for line breaks
> ---------------------------------
>
>                 Key: OFFICE-4124
>                 URL: https://issues.oasis-open.org/browse/OFFICE-4124
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: Improvement
>            Reporter: Regina Henschel
>            Priority: Major
>




--
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]