https://issues.apache.org/ooo/show_bug.cgi?id=118191

Regina Henschel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
                 CC|                            |[email protected]
          Developer|---                         |easy
         Difficulty|                            |
     Ever confirmed|0                           |1

--- Comment #7 from Regina Henschel <[email protected]> ---
The current code maps StarMath 5.0 to MathML 1.0. The original StarMath 5.0 is
only reconstructed using an annotation element. StarMath 5.0 is not part of
ODF1.2, but ODF1.2 references to MathML1.0. MathML 1.0 itself references HTML
4.0, which defines the rgb-values of html-color-name.
http://www.w3.org/TR/1998/REC-MathML-19980407/chap3_3.html#sec3.3.4
http://www.w3.org/TR/REC-html40/types.html#h-6.5

ODF1.2 .odf documents can be written without any StarMath 5.0 information. The
author of such documents expects, that the formula style is interpreted as
defined in MathML 1.0.

Support of the old StarDivision formats are dropped in Apache OpenOffice 4.0.

Taking all that together I support to render the color names using the
rgb-values defined in HTML. That would result in this mapping:

StarMath 5.0 --> MathML --> HTML
red --> red --> #FF0000
green --> green --> #008000
magenta --> fuchsia --> #FF00FF
cyan --> aqua --> #00FFFF
yellow --> yellow --> #FFFF00
blue --> blue --> #0000FF
white --> white --> #FFFFFF
black --> black --> #000000

Current implementation sets the colors in /starmath/source/node.cxx from
defines in /tools/inc/tools/color.hxx, but do not take the "LIGHT" versions as
it should be. The correct mapping can be found in spnVmlColors[] in
oox/source/drawingml/color.cxx. But considering the general enhancement request
to allow all colors in bug 5156, I suggest to use the "LIGHT" versions for now,
to get the correct colors for Math. That would be
red -->  COL_LIGHTRED
magenta --> COL_LIGHTMAGENTA
cyan --> COL_LIGHTCYAN
blue --> COL_LIGHTBLUE

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to