[Libreoffice-bugs] [Bug 138129] Add color picker to starmath

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Nov 18 16:02:23 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138129

V Stuart Foote <vstuart.foote at utsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://www.w3.org/TR/MathM
                   |                            |L/chapter2.html#type.html-c
                   |                            |olor

--- Comment #3 from V Stuart Foote <vstuart.foote at utsa.edu> ---
@Dante, *

Sorry, but issue is that using "named colors" for StarMath/MathML formula
parsing is only *valid* for a limited set of colors [1].  Loading a bunch of
non-normative named colors disrupts interoperability and makes it harder to
integrate SM OLE with other LibreOffice modules.

And in general having a lot of named colors preloaded is poor UX as they are
not exposed via GUI--the core of this issue.

I'd suggest instead that using our SVX color picker with our supported color
theme(s), as found in core/extras/source/palettes, to apply #RGB or #RRGGBB
colors to the formula bar seems preferable.

Otherwise for filter import of MathML we should not be expanding named colors
beyond the MathML norms.  Just the set of HTML4 colors, #RGB/#RRGGBB with color
fallback for any unrecognized named colors arriving from ill-formed MathML.


=-ref-=
[1] This is the W3C spec for MathML, para 2.1.5.3 color, listing only the HTML4
colors ("aqua", "black", "blue", "fuchsia", "gray", "green", "lime", "maroon",
"navy", "olive", "purple", "red", "silver", "teal", "white", and "yellow") as
valid for use in MathML:
https://www.w3.org/TR/MathML/chapter2.html#type.html-color

These were the commits changing color handling in the sm module.

https://gerrit.libreoffice.org/c/core/+/105526

https://gerrit.libreoffice.org/c/core/+/105892

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201118/588727e4/attachment.htm>


More information about the Libreoffice-bugs mailing list