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

ODF1.2 draw:luminance (part 1, 20.135): The value description is contrary to the data type.

    Details

    • Proposal:
      Hide

      Change the data type of draw:luminance to signedZeroToHundredPercent (18.3.30).

      --- OpenDocument-v1.2-os-schema.rng	2017-10-15 18:56:03.233890400 +0200
      +++ OpenDocument-v1.2-os-schema_luminance.rng	2017-10-15 18:57:11.172008900 +0200
      @@ -16427,11 +16427,11 @@
       					<ref name="boolean"/>
       				</attribute>
       			</optional>
       			<optional>
       				<attribute name="draw:luminance">
      -					<ref name="zeroToHundredPercent"/>
      +					<ref name="signedZeroToHundredPercent"/>
       				</attribute>
       			</optional>
       			<optional>
       				<attribute name="draw:contrast">
       					<ref name="percent"/>
      
      
      Show
      Change the data type of draw:luminance to signedZeroToHundredPercent (18.3.30). --- OpenDocument-v1.2-os-schema.rng 2017-10-15 18:56:03.233890400 +0200 +++ OpenDocument-v1.2-os-schema_luminance.rng 2017-10-15 18:57:11.172008900 +0200 @@ -16427,11 +16427,11 @@ <ref name="boolean"/> </attribute> </optional> <optional> <attribute name="draw:luminance"> - <ref name="zeroToHundredPercent"/> + <ref name="signedZeroToHundredPercent"/> </attribute> </optional> <optional> <attribute name="draw:contrast"> <ref name="percent"/>

      Description

      From https://lists.oasis-open.org/archives/office-comment/201303/msg00000.html
      In the description in section 20.135, part 1 ODF1.2, it says "specifies a signed percentage value" but its data type is "zeroToHundredPercent".

      Apache OpenOffice and LibreOffice write actually negative values, Calligra does not know this attribute, and MS Office 2013 does not write it and reading gives odd results even for positive values.

      The similar attributes draw:green(20.129), draw:red (20.149) and draw:blue (20.94) use the data type signedZeroToHundredPercent (18.3.30). The attribute draw:contrast (20.105) uses the data type percent (18.3.2).

      The attribute draw:luminance does not give an absolute value but an offset in implementations Apache OpenOffice and LibreOffice.

        Attachments

          Activity

          Hide
          rcweir Robert Weir (Inactive) added a comment -

          Reviewed on TC call on 2013-04-15.

          Regina will post a test document and Chris will investigate how MSO is interpreting it.

          Show
          rcweir Robert Weir (Inactive) added a comment - Reviewed on TC call on 2013-04-15. Regina will post a test document and Chris will investigate how MSO is interpreting it.
          Hide
          regina.henschel Regina Henschel added a comment -
          Show
          regina.henschel Regina Henschel added a comment - I have attached a test document to https://lists.oasis-open.org/archives/office/201610/msg00004.html
          Hide
          patrick Patrick Durusau added a comment -

          As per 17 Oct. 2016

          Show
          patrick Patrick Durusau added a comment - As per 17 Oct. 2016
          Hide
          patrick Patrick Durusau added a comment -

          Applied in: OpenDocument-schema-v1.3-wd02.rng

          Show
          patrick Patrick Durusau added a comment - Applied in: OpenDocument-schema-v1.3-wd02.rng

            People

            • Assignee:
              Unassigned
              Reporter:
              regina.henschel Regina Henschel
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: