Hi all,

I'm going to work on https://issues.apache.org/ooo/show_bug.cgi?id=118191.

ODF1.2 uses MathML and that allows font colors to be defined by html-color-names. The corresponding rgb-values are defined in HTML.

The problems are:

Math writes its "red" as "red" in mml and renders it as rgb 80 00 00. But "red" in HTML is defined as FF 00 00. The dark variant is named "maroon".

Math writes its "blue" as "blue" in mml and renders it as rgb 00 00 80. But "blue" in HTML is defined as rgb 00 00 FF. The dark variant is named "navy".

Math writes its "cyan" as "aqua" in mml and renders it as rgb 00 80 80. But "aqua" in HTML is defined as rgb 00 FF FF. The dark variant is named "teal". A color name "cyan" does not exist as html-color-name.

Math writes its "magenta" as "fuchsia" in mml and renders it as rbg 80 00 80. But "fuchsia" in HTML is defined as rgb FF 00 FF. The dark variant is named "purple". A color name "magenta" does not exist as html-color-name.

So in each case the rendering is different from the value in the file. If you get a foreign document or a pur MathML formula for import, which have no annotation containing the Starmath expression, then it is rendered wrongly.

I see two options in general
(a) change rendering to the rgb-values of the html-color-names contained in the file.
(b) change file export to write html-color-names which meet the rendering.

In addition, as more colors in Math is a very old wish, I want to add the missing html-color-name colors in this fix, so that it is possible to use 16 colors instead of only 8 colors now. That would not solve https://issues.apache.org/ooo/show_bug.cgi?id=5156 totally but would help. For #rgb and ##rrggbb colors I would have to learn more about the code to solve it.

Suggestions, ideas, concerns?

Kind regards
Regina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to