<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:vstuart.foote@utsa.edu" title="V Stuart Foote <vstuart.foote@utsa.edu>"> <span class="fn">V Stuart Foote</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add color picker to starmath"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138129">bug 138129</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">URL</td>
           <td>
                
           </td>
           <td>https://www.w3.org/TR/MathML/chapter2.html#type.html-color
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add color picker to starmath"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138129#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add color picker to starmath"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138129">bug 138129</a>
              from <span class="vcard"><a class="email" href="mailto:vstuart.foote@utsa.edu" title="V Stuart Foote <vstuart.foote@utsa.edu>"> <span class="fn">V Stuart Foote</span></a>
</span></b>
        <pre>@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:
<a href="https://www.w3.org/TR/MathML/chapter2.html#type.html-color">https://www.w3.org/TR/MathML/chapter2.html#type.html-color</a>

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

<a href="https://gerrit.libreoffice.org/c/core/+/105526">https://gerrit.libreoffice.org/c/core/+/105526</a>

<a href="https://gerrit.libreoffice.org/c/core/+/105892">https://gerrit.libreoffice.org/c/core/+/105892</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>