Details

    • Proposal:
      Hide

      Text changes

      19.xyz draw:extrusion-metal-type

      The draw:extrusion-metal-type attribute specifies how rendering of an extruded custom shape is modified in case its draw:extrusion-metal attribute has the value true. The value of attribute draw:extrusion-metal-type is a namespaced token.
      The defined values for the draw:extrusion-metal-type attribute are:

      • draw:MetalODF: The rendering is modified as specified in attribute draw:extrusion-metal (19.158)
      • any implementation-defined namespacedToken (18.3.19): The rendering is modified as defined by the implementer. Such namespaced token shall not use a prefix, which is bound to a namespace listed in section 1.5 Namespaces.

      The attribute draw:extrusion-metal-type is only evaluated, if the attribute draw:extrusion-metal at the same shape has the value true.

      The default value for the attribute draw:extrusion-metal-type is draw:MetalODF.

      Schema changes

      --- OpenDocument-v1.3-schema_orig.rng 2021-04-27 18:00:00.000000000 +0200
      +++OpenDocument-v1.3-schema_extended.rng 2022-02-13 00:11:07.583566200 +0100
      @@ -4805,10 +4805,15 @@
               <rng:attribute name="draw:extrusion-metal">
                  <rng:ref name="boolean"/>
               </rng:attribute>
            </rng:optional>
            <rng:optional>
      +       <rng:attribute name="draw:extrusion-metal-type">
      +          <rng:ref name="namespacedToken"/>
      +        </rng:attribute>
      +      </rng:optional>
      +      <rng:optional>
               <rng:attribute name="dr3d:shade-mode">
                 <rng:choice>
                   <rng:value>flat</rng:value>
                   <rng:value>phong</rng:value>
                   <rng:value>gouraud</rng:value>
      

       

      Show
      Text changes 19.xyz draw:extrusion-metal-type The draw:extrusion-metal-type attribute specifies how rendering of an extruded custom shape is modified in case its draw:extrusion-metal attribute has the value true . The value of attribute draw:extrusion-metal-type is a namespaced token. The defined values for the draw:extrusion-metal-type attribute are: draw:MetalODF : The rendering is modified as specified in attribute draw:extrusion-metal (19.158) any implementation-defined namespacedToken (18.3.19): The rendering is modified as defined by the implementer. Such namespaced token shall not use a prefix, which is bound to a namespace listed in section 1.5 Namespaces. The attribute draw:extrusion-metal-type is only evaluated, if the attribute draw:extrusion-metal  at the same shape has the value true . The default value for the attribute draw:extrusion-metal-type is draw:MetalODF . Schema changes --- OpenDocument-v1.3-schema_orig.rng 2021-04-27 18:00:00.000000000 +0200 +++OpenDocument-v1.3-schema_extended.rng 2022-02-13 00:11:07.583566200 +0100 @@ -4805,10 +4805,15 @@         <rng:attribute name="draw:extrusion-metal">             <rng:ref name="boolean"/>          </rng:attribute>       </rng:optional>       <rng:optional> +       <rng:attribute name="draw:extrusion-metal-type"> +          <rng:ref name="namespacedToken"/> +        </rng:attribute> +      </rng:optional> +      <rng:optional>          <rng:attribute name="dr3d:shade-mode">            <rng:choice>              <rng:value>flat</rng:value>              <rng:value>phong</rng:value>              <rng:value>gouraud</rng:value>  
    • Resolution:
      Hide

      As proposed.

      Show
      As proposed.

      Description

      The definition of the draw:extrusion-foo attributes follow closely the description of extruded shapes in Rich Text Format, VML and MS Office binary formats. But how the rendering of a shape with draw:extrusion-metal="true" is modified differs between MS Office and the way specified in ODF.

      ODF specifies for the draw:extrusion-metal attribute (19.158)
      •true: the specular color for the shading of an extruded shape is gray (red green and blue values of 200) instead of white and 15% is added to the specularity

      MS Office renders it so that the specular color uses not gray but the shape fill or extrusion color respectively. The way MS Office renders it corresponds to the description in VML, "If set to True, this attribute causes the specularly reflected light to be the material color instead of the light source color, making the object seem more metallic." and to the description of the Preset Material Type 'legacy:metal' in OOXML, which reads, "Specular Color: shape fill color".

      For better interoperability it is necessary to be able to save the information in an ODF file, that the "MS Office"-kind of rendering has to be used.

      The proposal introduces a new attribute draw:extrusion-metal-type. It has a namespacedToken as value to allow a flexible extending, as discussed in call at 2022-02-07.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: