-----Original Message-----
From: Kay Schenk [mailto:kay.sch...@gmail.com] 
Sent: Tuesday, October 28, 2014 17:02
To: dev@openoffice.apache.org
Subject: Re: color names in Math



On 10/28/2014 03:25 PM, Regina Henschel wrote:
> Hi Kay,
> 
> Kay Schenk schrieb:
>> On Mon, Oct 27, 2014 at 8:27 AM, Regina Henschel
>> <rb.hensc...@t-online.de>
>> wrote:
>>
>>> Hi Kay,
>>>
>>> Kay Schenk schrieb:
>>>
>>>>
>>>> Hi Regina --
>>>>
>>>> I saw that you had already made some changes yesterday  re i118191
>>>>
>>>>    https://issues.apache.org/ooo/show_bug.cgi?id=118191
>>>>
>>>> I have not investigated color renderings in AOO at all in terms of
>>>> values,
>>>> but my first thought is we should be consistent across modules on
>>>> how this
>>>> is done. RGB vs HTML?
>>>>
>>>
>>> I have compared Calc to StarMath to HTML in the attachments. There is
>>> currently no consistence between Calc and Math.
>>>
>>> Kind regards
>>> Regina
>>>
>>
>> Thanks for your research. I started thinking maybe making these
>> consistent
>> across all modules (really I have not looked into this yet), would be a
>> good "easy" fix for a new volunteer. What do you think?
> 
> For module Math it is too late to make it an "easy" fix, because the fix
> is finished, beside the question, what color to use. When I started I
> had no idea how easy or hard it would be.

Right, I saw your changes but didn't evaluate the extent.

> 
> For Calc I have looked around, but could not find the place yet. So if
> someone can provide a pointer, then it might work. But I'm not sure
> because localization is involved.
> 
> Back to the question, which color to use:
> Foreign (not OpenOffice or LibreOffice) .odf documents will use the
> html-color-names and those names are standardized. So for that names I
> think, there is no choice, we have to render them as they are defined in
> the standard. Do you agree?

Of course, we have to use what is defined in the standard.

> 
> So the color name "red" will be #ff0000 in Math as it is already in
> Calc, and the color name "blue" will be #0000ff in Math as it is already
> in Calc. That gives a more consistent use and solves issue i118191. But
> old documents will be rendered different.
> 
> The color name green in Math has the same rendering as green in html, so
> that can stay. For Calc it can be solved, when the color name "lime" is
> allowed too and mapped to the light green and "green" to the dark green.
> Color names are not stored in the Calc files and therefore old documents
> are not affected.
> 
> The question is, what to do with names "cyan" and "magenta"? These names
> do not belong to the standard. So we can decide, which color OpenOffice
> renders and which color it writes to the file. If Math will use them the
> same way as Calc, then "cyan" has to be rendered same as "aqua" and
> "magenta" same as "fuchsia". OpenOffice writes currently "aqua" and
> "fuchsia" to the MathML part of the file already. That would make the
> names consistent between Math and Calc and between rendering via
> StarMath and rendering via pure MathML. But old documents would be
> rendered different. Shall I change the rendering of "cyan" and "magenta"
> to the light colors too?

Personally, I would make them consistent from this day forward, so I
would say "yes" make MathML the same as Calc.

I just found this reference area for color codes/names--

http://www.rapidtables.com/web/color/cyan-color.htm
cyan = aqua in rgb

http://www.rapidtables.com/web/color/purple-color.htm
same for magenta = fuchsia

Others may have a different opinion though.

<orcnote>
   I've lost track, here, of what is recorded in the ODF file as a color
   choice (in MathML and in other places where there are color choices)
   and what is presented to the user as the name for the color (also on
   any drop-down from a sample of the color in a color-picker).

   Another place to figure out what is going on is the colors that were
   implemented beyond the 16 standard RGB names in HTML/XHTML. In that
   case, cyan is the same as cyan1 (and aqua) and magenta is the same as 
   fuschia - that is, they are the brightest forms of the
   colors.  Another way of looking at it: cyan/aqua is the complement of 
   red, magenta/fuschia is the complement of green.
</orcnote>
   

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

-- 
-------------------------------------------------------------------------
MzK

"One must still have chaos in oneself to be able to give birth
 to a dancing star."
                                 -- Friedrich Nietzsche

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


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

Reply via email to