OASIS Open Document Format for Office Applications (OpenDocument) TC

 View Only
  • 1.  Draft for enhanced colors

    Posted 03-28-2023 20:46
    Hi all, as mentioned in the last call, there is ongoing work in LibreOffice for implementing theme colors and multi-color gradients. I try to assist the implementation in regard to ODF. The attached file contains one aspect of this work, defining an enhanced color model. Please have a look and give me feedback. Kind regards, Regina Attachment: ODF TC enhanced color.odt Description: application/vnd.oasis.opendocument.text


  • 2.  RE: [office] Draft for enhanced colors

    Posted 03-29-2023 14:51
    Hi Regina I am unclear as to which new elements and new attributes are in the 'style' namespace and which are in the 'draw' namespace. For example, on page 3 I get the impression that you were maybe undecided as to whether the attribute is style:color-value or draw:color-value. But I may be misinterpreting something. Kind regards, Francis -----Original Message----- From: office@lists.oasis-open.org <office@lists.oasis-open.org> On Behalf Of Regina Henschel Sent: Tuesday, March 28, 2023 9:46 PM To: ODF member <office@lists.oasis-open.org> Subject: [office] Draft for enhanced colors Hi all, as mentioned in the last call, there is ongoing work in LibreOffice for implementing theme colors and multi-color gradients. I try to assist the implementation in regard to ODF. The attached file contains one aspect of this work, defining an enhanced color model. Please have a look and give me feedback. Kind regards, Regina


  • 3.  Re: [office] Draft for enhanced colors

    Posted 03-29-2023 16:38
    Hi Francis, Francis Cave schrieb am 29.03.2023 um 16:51: Hi Regina I am unclear as to which new elements and new attributes are in the 'style' namespace and which are in the 'draw' namespace. My intension was to have them all in namespace "style". That means <style:color-transform> element with style:transform-type and style:transform-value attributes, and <style:enhanced-color> element with style:color-type and style:color-value attributes. For example, on page 3 I get the impression that you were maybe undecided as to whether the attribute is style:color-value or draw:color-value. But I may be misinterpreting something. That are simple editing leftovers I didn't notice. But if you think all or some of those would better use "draw" namespace, that is OK for me. With my other new elements it is the same problem. There will come <gradient-stop>, <char-complex-color>, <fill-complex-color> and <stroke-complex-color> elements which use the <style:color-transform> and <style:enhanced-color> elements as child elements. It would be good to get some guidance in respect to namespaces. Kind regards, Regina


  • 4.  RE: [office] Draft for enhanced colors

    Posted 03-29-2023 17:27
    Hi Regina Sorry, this is not my area of expertise, so I may well be asking naÃve questions! I'm trying to see how this fits into the existing schema. All the elements in your proposal appear to be new. I appreciate that this is an early draft, but I see that you expect the enhanced colour model to be available in four contexts: - <draw:gradient-stop> - <style:fill-enhanced-color> - <style:stroke-enhanced-color> - <style:char-enhanced-color>. Should <draw:gradient-stop> be <draw:gradient-step>? I ask, because there is an existing attribute draw:gradient-step-count, which might be related, and I don't understand that meaning of "stop" in this context. What do you imagine would be the parent elements of the above four elements? If fills, strokes and chars can have enhanced colors, are there other contexts in which enhanced colours could be used, such as extrusion, or the color of a material in the dr3d namespace? I appreciate that an important purpose here is to increase interoperability with OOXML, but should we stop there or be looking for a more comprehensive enhancement? Kind regards, Francis -----Original Message----- From: office@lists.oasis-open.org <office@lists.oasis-open.org> On Behalf Of Regina Henschel Sent: Wednesday, March 29, 2023 5:38 PM To: office@lists.oasis-open.org Subject: Re: [office] Draft for enhanced colors Hi Francis, Francis Cave schrieb am 29.03.2023 um 16:51: > Hi Regina > > I am unclear as to which new elements and new attributes are in the 'style' namespace and which are in the 'draw' namespace. My intension was to have them all in namespace "style". That means <style:color-transform> element with style:transform-type and style:transform-value attributes, and <style:enhanced-color> element with style:color-type and style:color-value attributes. For example, on page 3 I get the impression that you were maybe undecided as to whether the attribute is style:color-value or draw:color-value. But I may be misinterpreting something. That are simple editing leftovers I didn't notice. But if you think all or some of those would better use "draw" namespace, that is OK for me. With my other new elements it is the same problem. There will come <gradient-stop>, <char-complex-color>, <fill-complex-color> and <stroke-complex-color> elements which use the <style:color-transform> and <style:enhanced-color> elements as child elements. It would be good to get some guidance in respect to namespaces. Kind regards, Regina --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php


  • 5.  Re: [office] Draft for enhanced colors

    Posted 03-29-2023 19:52
    Hi Francis, Francis Cave schrieb am 29.03.2023 um 19:26: Hi Regina Sorry, this is not my area of expertise, so I may well be asking naÃve questions! This is an early draft and only a part of the total work. So please ask whenever something is not clear. I'm trying to see how this fits into the existing schema. All the elements in your proposal appear to be new. Yes. I appreciate that this is an early draft, I have attached the complete work now. That is an early draft too, but might give you a picture of the intended changes. but I see that you expect the enhanced colour model to be available in four contexts: - <draw:gradient-stop> - <style:fill-enhanced-color> - <style:stroke-enhanced-color> - <style:char-enhanced-color>. Yes. Should <draw:gradient-stop> be <draw:gradient-step>? The <draw:gradient-stop> is the same for <draw:gradient> as the <svg:stop> for <svg:linearGradient> and <svg:radialGradient>. It allows gradients based on more than two colors. It is the same as <gs> in <gsLst> in OOXML. You can have one gradient with transitions from red over yellow over green to blue, for example. Because of the risk of confusion with draw:gradient-step-count, I have advised the developer not to use <draw:gradient-step>. "stop" is used because that is used in OOXML and SVG terminology. I ask, because there is an existing attribute draw:gradient-step-count, which might be related, and I don't understand that meaning of "stop" in this context. The attribute draw:gradient-step-count tells, whether the gradient is smooth or stepped. Stepped gradients do neither exist in SVG nor in OOXML. What do you imagine would be the parent elements of the above four elements? <draw:gradient-stop> is part of a gradient definition in <draw:gradient> element. <draw:fill-complex-color> and <draw:line-complex-color> (as I have named it in my current version) will become child elements of <style:graphic-properties> <draw:char-complex-color> will become child element of <style:text-properties> Using such complex color model is currently not planned for further objects. But my intension it to define these complex colors in such a way that they can easily be used for other objects, e.g. page background, which would be <style:page-layout-properties>. If fills, strokes and chars can have enhanced colors, are there other contexts in which enhanced colours could be used, such as extrusion, or the color of a material in the dr3d namespace? As <extrusionClr> in OOXML can be <schemeClr> with e.g. <lumMod> child element, it is likely, that such color model will be used for extrusion too. The current simple color is a draw:secondary-fill-color attribute in <style:graphic-properties>. So it would likely become <draw:secondary-fill-complex-color> element in <style:graphic-properties>. The color of material of 3D-objects is part of <style:graphic-properties>, so already covered. Use for the lights of a 3D-scene (those would be in dr3d namespace) is unlikely. I appreciate that an important purpose here is to increase interoperability with OOXML, but should we stop there or be looking for a more comprehensive enhancement? I have tried to build it so, that extending is easily possible if developers/users of an ODF application need further color spaces, color notations or color transformations. LO is not working on such, however CSS-like extensions might be useful for online office-applications, for example. But I do not want to be proactive without a real demand. If Microsoft wants to add other then the suggested RGBHex, RGBZeroToOne and Scheme types for their export to ODF [hallo Alfred ;)], that can easily be integrated. The color transformations are implementation-defined anyway in my proposal. OOXML does not describe the algorithm clear enough so that implementers ask in Microsoft forums. [e.g. https://social.msdn.microsoft.com/Forums/sqlserver/en-US/eb151eb0-e539-4f12-a453-1ff46dc28578/satmod-satoff-documentation?forum=os_binaryfile ] Kind regards, Regina Kind regards, Francis -----Original Message----- From: office@lists.oasis-open.org <office@lists.oasis-open.org> On Behalf Of Regina Henschel Sent: Wednesday, March 29, 2023 5:38 PM To: office@lists.oasis-open.org Subject: Re: [office] Draft for enhanced colors Hi Francis, Francis Cave schrieb am 29.03.2023 um 16:51: Hi Regina I am unclear as to which new elements and new attributes are in the 'style' namespace and which are in the 'draw' namespace. My intension was to have them all in namespace "style". That means <style:color-transform> element with style:transform-type and style:transform-value attributes, and <style:enhanced-color> element with style:color-type and style:color-value attributes. For example, on page 3 I get the impression that you were maybe undecided as to whether the attribute is style:color-value or draw:color-value. But I may be misinterpreting something. That are simple editing leftovers I didn't notice. But if you think all or some of those would better use "draw" namespace, that is OK for me. With my other new elements it is the same problem. There will come <gradient-stop>, <char-complex-color>, <fill-complex-color> and <stroke-complex-color> elements which use the <style:color-transform> and <style:enhanced-color> elements as child elements. It would be good to get some guidance in respect to namespaces. Kind regards, Regina --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php Attachment: ODF draft multi-color gradient plus theme v1.odt Description: application/vnd.oasis.opendocument.text


  • 6.  Re: [office] Draft for enhanced colors

    Posted 03-29-2023 20:05
    Hi, I am missing the point of these enhanced colours , or how these enhanced colours are in fact enhanced. All colours are representable as #rrggbb. How they are presented by a consumer or were presented by a producer of an ODF file is completely in the control of that producer or consumer. So it seems to me that these enhanced colours do not provide any new features that applications using ODF could not already provide. On the other hand, adding the possibility of storing colours in these other encoding ways in ODF requires all consumers to know how to translate them into #rrggbb. So while it may be simpler for an application that wants to use these enhanced colours to store them directly, this is traded off against all other consumers having to be able to understand these enhanced colours. So please elaborate what would be gained by this for the ODF community. Thank you Andreas On 2023-03-28 2:45 p.m., Regina Henschel wrote: Hi all, as mentioned in the last call, there is ongoing work in LibreOffice for implementing theme colors and multi-color gradients. I try to assist the implementation in regard to ODF. The attached file contains one aspect of this work, defining an enhanced color model. Please have a look and give me feedback. Kind regards, Regina --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php -- Andreas J. Guelzow, PhD FTICA (he/him/his) Registrar & Associate Vice-President, Enrolment and Planning Professor, Mathematical & Computing Sciences Direct: +1 780 479 9290 Toll-Free: +1 866 479 5200 concordia.ab.ca


  • 7.  Re: [office] Draft for enhanced colors

    Posted 03-30-2023 16:37
    Hi Andreas, Andreas J Guelzow schrieb am 29.03.2023 um 22:04: Hi, I am missing the point of these "enhanced colours", or how these "enhanced colours" are in fact enhanced. All colours are representable as #rrggbb. How they are presented by a consumer or were presented by a producer of an ODF file is completely in the control of that producer or consumer. So it seems to me that these "enhanced colours" do not provide any new features that applications using ODF could not already provide. On the other hand, adding the possibility of storing colours in these other encoding ways in ODF requires all consumers to know how to translate them into #rrggbb. So while it may be simpler for an application that wants to use these "enhanced colours" to store them directly, this is traded off against all other consumers having to be able to understand these enhanced colours. So please elaborate what would be gained by this for the ODF community. I have thought again about RGBZeroToOne. You are right. To be usable for the "scrgbClr" color type of OOXML we would have to specify the conversion to sRGB, an unnecessary effort for no benefit for the ODF community. I'll remove the related parts. A "scheme" is a collection of colors that harmonize with each other and give the document a certain look. Such a scheme is stored in the document and individual colors are then selected by reference. This has the following advantages, for example: * Because the colors combined in the scheme are stored completely in the document, these colors are also available on other computers even if individual colors have not yet been actively used. This makes it easier to work together on a document. * Document templates with scheme colors can be passed on easily, because the colors combined in the scheme are stored completely in the document template. * Since the scheme is stored in the document, the colors are available again after saving and loading. This makes it easier to edit documents that take longer to process. * Objects designed with scheme colors automatically adapt to a new environment when copied and pasted. This makes it easier to reuse already existing objects in new environment. * Without changing structure and content, different looks can be produced quickly by changing the scheme. Apart from better interoperability with OOXML these are values in itself. LibreOffice is going to implement schemes. Color transformations make it easy to create related color changes starting from a base color. The information which base color was used is now kept when saving and loading. This is advantageous when editing is not done in one go. The possibilities already available through the "draw:start-intensity" and "draw:end-intensity" attributes are very limited because only a reduction of the intensity is possible and it is only available for gradients. So extending color definitions with color transformations and providing the ability to store these information is useful. You could store the resulting sRGB-color, but that would lose the base color. Color transformations give a better interoperability with OOXML. LibreOffice is going to implement color transformations for luminance. And in regard to multi-color gradients, which are contained in my second draft: Multi-color gradients are a frequently expressed user wish. Such gradients are known from SVG (also in ODF). However, the gradient types of SVG differ from the gradients types defined with <draw:gradient> elements. In order to fulfill the user wishes, it should also be possible to define gradients with multiple colors for gradients defined with <draw:gradient> elements. Kind regards, Regina