Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-3854

[graphic-properties] Proposal: different relative size relations

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: ODF 1.2
    • Fix Version/s: ODF-Next
    • Labels:
      None
    • Environment:

      This is an enhancement, described in terms of changes to OpenDocument-v1.2

    • Proposal:
      Hide

      1. RATIONALE
      1.1 Use cases:
      Currently users can set a relative size (height or width), where 100%
      always means the page text area. Sometimes it's wanted to alter this, so that
      100% means e.g. the entire page. If style:rel-width-rel / style:rel-height-rel
      elements present, then 100% no longer means the default relation
      (layout environment), but the value that is set by the attribute – in a
      similar way how style:horizontal-rel / style:vertical-rel already works.
      1.2 Alternatives considered:
      Right now a possible workaround is to not use relative sizes: with
      non-relative sizes it's already possible to set the width or the height to a
      portion of the size of the entire page, manually.

      2. REQUESTED CHANGES TO THE ODF STANDARD
      2.1 Text changes/additions:

      In section 17.21 <style:graphic-properties> append to the end of "has the following attributes":

      style:rel-width-rel, style:rel-height-rel

      In section 19.509 <style:rel-height> append after "The interpretation of percentage values depends on":

      In case style:rel-height-rel 20.x is present, then the interpretation of
      the percentage value may not depend on the anchor, see the possible values of
      style:rel-height-rel 20.x for details.

      In section 19.510.2 <style:rel-width> append after "The interpretation of percentage values depends on":

      In case style:rel-width-rel 20.y is present, then the interpretation of
      the percentage value may not depend on the anchor, see the possible values of
      style:rel-height-rel 20.y for details.

      In section 20.331 <style:rel-height> append after "The interpretation of percentage values depends on":

      In case style:rel-height-rel 20.x is present, then the interpretation of
      relative values may not depend on the anchor, see the possible values of
      style:rel-height-rel 20.x for details.

      In section 20.332.1 <style:rel-width> append after "The interpretation of the percent value depends on":

      In case style:rel-width-rel 20.y is present, then the interpretation
      of the percent value may not depend on the anchor, see the possible value of
      style:rel-width-rel 20.y for details.

      20.x: style:rel-height-rel (new section)

      The <style:rel-height-rel> attribute specifies the area that counts as 100%,
      when counting relative height.

      The defined values for the style:rel-height-rel attribute are:

      • page: 100% means the entire page
      • layout-environment: 100% means the innermost enclosing area of the
        anchor (See <style:flow-with-text> 20.259.)

      The style:rel-height-rel attribute is usable with the following element:
      <style:graphic-properties> 17.21.

      The values of style:rel-height-rel are page or layout-environment.

      20.y: style:rel-width-rel (new section)

      The <style:rel-width-rel> attribute specifies the area that counts as 100%,
      when counting relative width.

      The defined values for the style:rel-width-rel attribute are:

      • page: 100% means the entire page
      • layout-environment: 100% means the innermost enclosing area of the
        anchor (See <style:flow-with-text> 20.259.)

      The style:rel-width-rel attribute is usable with the following element:
      <style:graphic-properties> 17.21.

      The values of style:rel-width-rel are page or layout-environment.

      2.2 Schema changes/additions:
      See attached patch.

      3. IMPACTS
      3.1 Conformance:
      This proposal will not add any mandatory features or behaviors.

      3.2 Backwards compatibility:
      This element was not used in previous versions and is optional. Existing ODF
      processors may ignore it, still displaying the relative size (if
      present) as if layout-environment was specified, as before.

      3.3 Accessibility impact:
      None.

      Show
      1. RATIONALE 1.1 Use cases: Currently users can set a relative size (height or width), where 100% always means the page text area. Sometimes it's wanted to alter this, so that 100% means e.g. the entire page. If style:rel-width-rel / style:rel-height-rel elements present, then 100% no longer means the default relation (layout environment), but the value that is set by the attribute – in a similar way how style:horizontal-rel / style:vertical-rel already works. 1.2 Alternatives considered: Right now a possible workaround is to not use relative sizes: with non-relative sizes it's already possible to set the width or the height to a portion of the size of the entire page, manually. 2. REQUESTED CHANGES TO THE ODF STANDARD 2.1 Text changes/additions: In section 17.21 <style:graphic-properties> append to the end of "has the following attributes": style:rel-width-rel, style:rel-height-rel In section 19.509 <style:rel-height> append after "The interpretation of percentage values depends on": In case style:rel-height-rel 20.x is present, then the interpretation of the percentage value may not depend on the anchor, see the possible values of style:rel-height-rel 20.x for details. In section 19.510.2 <style:rel-width> append after "The interpretation of percentage values depends on": In case style:rel-width-rel 20.y is present, then the interpretation of the percentage value may not depend on the anchor, see the possible values of style:rel-height-rel 20.y for details. In section 20.331 <style:rel-height> append after "The interpretation of percentage values depends on": In case style:rel-height-rel 20.x is present, then the interpretation of relative values may not depend on the anchor, see the possible values of style:rel-height-rel 20.x for details. In section 20.332.1 <style:rel-width> append after "The interpretation of the percent value depends on": In case style:rel-width-rel 20.y is present, then the interpretation of the percent value may not depend on the anchor, see the possible value of style:rel-width-rel 20.y for details. 20.x: style:rel-height-rel (new section) The <style:rel-height-rel> attribute specifies the area that counts as 100%, when counting relative height. The defined values for the style:rel-height-rel attribute are: page: 100% means the entire page layout-environment: 100% means the innermost enclosing area of the anchor (See <style:flow-with-text> 20.259.) The style:rel-height-rel attribute is usable with the following element: <style:graphic-properties> 17.21. The values of style:rel-height-rel are page or layout-environment. 20.y: style:rel-width-rel (new section) The <style:rel-width-rel> attribute specifies the area that counts as 100%, when counting relative width. The defined values for the style:rel-width-rel attribute are: page: 100% means the entire page layout-environment: 100% means the innermost enclosing area of the anchor (See <style:flow-with-text> 20.259.) The style:rel-width-rel attribute is usable with the following element: <style:graphic-properties> 17.21. The values of style:rel-width-rel are page or layout-environment. 2.2 Schema changes/additions: See attached patch. 3. IMPACTS 3.1 Conformance: This proposal will not add any mandatory features or behaviors. 3.2 Backwards compatibility: This element was not used in previous versions and is optional. Existing ODF processors may ignore it, still displaying the relative size (if present) as if layout-environment was specified, as before. 3.3 Accessibility impact: None.

      Description

      Improve interoperability with other text processors, by enabling round-trip of additional graphic style properties.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tbehrens Thorsten Behrens (Inactive)
            • Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: