Details

    • Proposal:
      Hide

      change to part 3 "documents":

      20.201 fo:line-height

      replace:

      • normal: disables the effects of style:line-height-at-least and style:line-spacing.

      with:

      • normal: equivalent to 100%

      20.314 style:line-height-at-least

      remove sentence:
      The effect of this attribute is disabled when fo:line-height has the value of normal.

      20.315 style:line-spacing

      remove sentence:
      The effect of this attribute is disabled when fo:line-height has the value of normal.

      To each of the above attributes append this sentence:

      The attributes fo:line-height, style:line-height-at-least, style:line-spacing specify the same formatting property, i.e., any one of these attributes on a style overrides any of these attributes on its parent style.

      schema change:

      --- Documents/odf/tc/OpenDocument-schema-v1.3-wd06-with-fixes.rng	2018-06-25 13:31:52.506732295 +0200
      +++ Documents/odf/tc/3847.rng	2019-01-15 14:11:56.453028831 +0100
      @@ -12274,35 +12274,33 @@
         <rng:define name="style-paragraph-properties-attlist">
           <rng:interleave>
             <rng:optional>
               <rng:attribute name="style:contextual-spacing">
                 <rng:ref name="boolean"/>
               </rng:attribute>
             </rng:optional>
             <!-- https://issues.oasis-open.org/browse/OFFICE-3767 -->
             <rng:optional>
      -        <rng:attribute name="fo:line-height">
      -          <rng:choice>
      -            <rng:value>normal</rng:value>
      +        <rng:choice>
      +          <rng:attribute name="fo:line-height">
      +            <rng:choice>
      +              <rng:value>normal</rng:value>
      +              <rng:ref name="nonNegativeLength"/>
      +              <rng:ref name="percent"/>
      +            </rng:choice>
      +          </rng:attribute>
      +          <rng:attribute name="style:line-height-at-least">
                   <rng:ref name="nonNegativeLength"/>
      -            <rng:ref name="percent"/>
      -          </rng:choice>
      -        </rng:attribute>
      -      </rng:optional>
      -      <rng:optional>
      -        <rng:attribute name="style:line-height-at-least">
      -          <rng:ref name="nonNegativeLength"/>
      -        </rng:attribute>
      -      </rng:optional>
      -      <rng:optional>
      -        <rng:attribute name="style:line-spacing">
      -          <rng:ref name="length"/>
      -        </rng:attribute>
      +          </rng:attribute>
      +          <rng:attribute name="style:line-spacing">
      +            <rng:ref name="length"/>
      +          </rng:attribute>
      +        </rng:choice>
             </rng:optional>
             <rng:optional>
               <rng:attribute name="style:font-independent-line-spacing">
                 <rng:ref name="boolean"/>
               </rng:attribute>
             </rng:optional>
             <rng:ref name="common-text-align"/>
             <rng:optional>
               <rng:attribute name="fo:text-align-last">
      
      Show
      change to part 3 "documents": 20.201 fo:line-height replace: normal: disables the effects of style:line-height-at-least and style:line-spacing. with: normal: equivalent to 100% 20.314 style:line-height-at-least remove sentence: The effect of this attribute is disabled when fo:line-height has the value of normal. 20.315 style:line-spacing remove sentence: The effect of this attribute is disabled when fo:line-height has the value of normal. To each of the above attributes append this sentence: The attributes fo:line-height, style:line-height-at-least, style:line-spacing specify the same formatting property, i.e., any one of these attributes on a style overrides any of these attributes on its parent style. schema change: --- Documents/odf/tc/OpenDocument-schema-v1.3-wd06-with-fixes.rng 2018-06-25 13:31:52.506732295 +0200 +++ Documents/odf/tc/3847.rng 2019-01-15 14:11:56.453028831 +0100 @@ -12274,35 +12274,33 @@ <rng:define name="style-paragraph-properties-attlist"> <rng:interleave> <rng:optional> <rng:attribute name="style:contextual-spacing"> <rng:ref name="boolean"/> </rng:attribute> </rng:optional> <!-- https://issues.oasis-open.org/browse/OFFICE-3767 --> <rng:optional> - <rng:attribute name="fo:line-height"> - <rng:choice> - <rng:value>normal</rng:value> + <rng:choice> + <rng:attribute name="fo:line-height"> + <rng:choice> + <rng:value>normal</rng:value> + <rng:ref name="nonNegativeLength"/> + <rng:ref name="percent"/> + </rng:choice> + </rng:attribute> + <rng:attribute name="style:line-height-at-least"> <rng:ref name="nonNegativeLength"/> - <rng:ref name="percent"/> - </rng:choice> - </rng:attribute> - </rng:optional> - <rng:optional> - <rng:attribute name="style:line-height-at-least"> - <rng:ref name="nonNegativeLength"/> - </rng:attribute> - </rng:optional> - <rng:optional> - <rng:attribute name="style:line-spacing"> - <rng:ref name="length"/> - </rng:attribute> + </rng:attribute> + <rng:attribute name="style:line-spacing"> + <rng:ref name="length"/> + </rng:attribute> + </rng:choice> </rng:optional> <rng:optional> <rng:attribute name="style:font-independent-line-spacing"> <rng:ref name="boolean"/> </rng:attribute> </rng:optional> <rng:ref name="common-text-align"/> <rng:optional> <rng:attribute name="fo:text-align-last">

      Description

      Currently we have four independt ODF attributes defining our line-height in ODF.

      http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-fo_line-height
      http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-style_line-height-at-least
      http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-style_line-spacing
      http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-style_font-independent-line-spacing

      I would like to have feed-back from other implementors on the following:

      The first @fo:line-height is dereived from the W3C formatting object specification,
      http://www.w3.org/TR/xsl/#line-height here we should make clear the "normal" for office documents is equal 100%, not as in browser between 110 and 130%

      The second @style:line-height-at-least is an extension of the W3C attribute to have a better OOXML interoperability.

      The third @style:line-spacing is equal to 'leading' (not from leader, but from the metal 'lead', as during ancient print there was added a line of lead between the letters), it is specifiying the space between lines.

      The last one @style:font-independent-line-spacing is only used by implementations for presentations, to have a similar layout during the change of the font.

      AFAIK all ODF implementations are using these values exclusivly.
      I suggest to either make them exclusively in the RelaxNG, or to specify a precedence (or collision) handling. What happens if two attributes exist at the same time?

        Attachments

        1. draft20210201-RH.odt
          38 kB
        2. FontSizeCompare.odt
          37 kB
        3. FontSizeCompare.pdf
          90 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              svante.schubert Svante Schubert
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: