Issue 5156

Summary: colors in formulas
Product: Math Reporter: pjoyez <philippe.joyez>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: ace_dent, issues, marieline.desideri, mathieu137, ooo, peschtra, rainerbielefeld_ooo_qa, rb.henschel, stp, thomas.lange
Version: OOo 1.0.0Keywords: oooqa, rfe_eval_ok
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 105217    
Attachments:
Description Flags
Screenshot demonstrating importance of separating equation language from markup language. none

Description pjoyez 2002-05-22 14:50:39 UTC
Colors in formulas are very useful when you are giving a scientific 
presentation : You can highlight the structure of your equations, help the 
audience tracking variables, etc.
Unfortunately the colors available in the editor are very few (red, green, 
blue, cyan, magenta, yellow) and among these red, green and blue are much too 
dark to highlight anything.
The best way to improve on this would be to implement a full color palette such 
as in draw (which would also improve the UI). But a minimal improvement could 
consist in adding a bunch of bright colors (bright red, bright blue, bright 
green, orange...) to those already available. Any idea on how to to this?
Comment 1 Rainer Bielefeld 2003-05-16 07:52:20 UTC
I think that would be a good Idea.
Comment 2 stefan.baltzer 2003-06-04 14:22:02 UTC
Reassigned to Bettina.
Comment 3 pjoyez 2003-06-04 21:25:40 UTC
This issue is related to issues #3504 and #14171
Comment 4 alex.thurgood 2003-06-17 20:02:11 UTC
*** This issue has been confirmed by popular vote. ***
Comment 5 bettina.haberer 2004-07-08 13:02:52 UTC
Summary: The complete color palette should be available also for the formula editor.
Comment 6 lohmaier 2005-01-23 19:07:41 UTC
*** Issue 41158 has been marked as a duplicate of this issue. ***
Comment 7 lohmaier 2005-01-23 19:08:18 UTC
*** Issue 14171 has been marked as a duplicate of this issue. ***
Comment 8 peschtra 2005-01-23 19:38:08 UTC
Just wondering if someone can look at this as we approach 2.0. It has a lot of
votes!
Comment 9 ooo 2006-08-19 12:06:45 UTC
Just wondering if someone already had a look at this as we approach 2.0.4.
It has a lot of votes!
Comment 10 benji2 2006-09-21 17:35:19 UTC
This issue seems almost trivial to fix, yet it's 4 year since nothing moved. Is
there some major problem in the OO code which prevents it or something ?
Comment 11 thomas.lange 2006-09-25 11:27:06 UTC
.
Comment 12 Mathias_Bauer 2006-12-11 11:05:38 UTC
Sorry, but the issue is *not* trivial to fix.

Math does not know selections or portions so there is nothing where you can
assign a color to. Colors in Math are keywords in the formula expression. This
makes it hard to have an arbitrary set of colors or even a color palette as e.g.
in Chart as then the parser must be able to handle arbitrary color names. We
could use RGB values in the formula instead - but would that be what users want?

Next problem is the file format. Old OOo version will not be able to read
formulas with new colors and create a parser error that spoils the formula
completely.

So it is doable, but it's not trivial.
Comment 13 benji2 2006-12-11 11:46:12 UTC
Well, even adding a few other new color keywords (bright red, bright blue,
bright green, orange, as said in the 2002 post above) would be greatly
appreciated. Is it really hard to do ? Seems like it's only a matter of adding a
few new DEFINES... 

Having the possibility to enter an hex-tuple like #FFCC00 would be even better.
Adding a nice GUI is not an urgent matter, since so far it's impossible _at all_
to have descent color in equations for presentations. Even the dirtiest hack
would be greatly appreciated.

As back-compatibility file issue, of course you would need an up-to-date version
of OpenOffice.org (which is the only reader i know of) to work on it. That's why
it's better to do it NOW than later, when OOO is even more widespread. Today,
everybody is more or less up-to-date, and people have to export in .pdf for
non-working purpose anyway.
Comment 14 Mathias_Bauer 2006-12-11 12:20:41 UTC
I take the compatibility issue more serious. I wouldn't care if the unknown
color was ignored in old versions but unfortunately the complete formula is
destroyed because an error symbol is shown that changes the size of the formula
in an unforeseen way.

I don't say that this is a reason not to change it but OTOH it makes it
definitely a non-trivial change. 
Comment 15 ooo 2006-12-11 15:35:00 UTC
If a new keyword "rgbcolor" with values 000000 ... FFFFFF would be introduced,

in former versions of OOo2 (OOo1 need not be considered as it cannot read OOo2)
it would just show as text and not spoil the formula completely with wild
question marks.

For users of OOo2 up to 2.0.4 we could just provide a little macro to replace
the new "rgbcolor xxxxxx" by the nearest "color cname" and all people will be happy.
Comment 16 ace_dent 2008-02-23 13:40:09 UTC
*** Issue 3504 has been marked as a duplicate of this issue. ***
Comment 17 ace_dent 2008-02-23 13:51:48 UTC
*** Issue 86376 has been marked as a duplicate of this issue. ***
Comment 18 ace_dent 2008-02-23 13:59:39 UTC
*** Issue 17422 has been marked as a duplicate of this issue. ***
Comment 19 ace_dent 2008-02-23 14:07:22 UTC
Due to number of duplicates and votes, I respectfully ask that a Target be set.

Regards,
Andrew
Comment 20 thomas.lange 2008-02-25 08:48:35 UTC
TL->ace_dent: If you check at the top of the page you will see that the target
is already set. It currently is 'OOo later'...
Comment 21 erasmus_europe 2008-05-26 21:40:58 UTC
I really was amazed that the person who actually designed the language of math
formulas could believe that there will only be a few pre-specified colors and
that's it. I consider this plain short-sightedness. If this were the 90s, I
would understand. But we're in 2008, almost every possible scripting language
allows you to specify your own colors (usually by raw RGB). Now things are hard
to fix, and the poor team is faced with the nightmare backwards compatibility -
quite understandably. This highlights again how deep the consequences of bad
design really are.

Sorry if I hurt someone's feelings. This is of course my humble personal
opinion. Don't take me wrong, I think the developers are doing a great job by
providing this neat piece of free software. It is just frustrating to see such
little insignificant details like this make all this programming effort useless
for so many users. If a user cannot highlight his formulas with the proper
colors, he most likely will move away and form a bad opinion of the software. :(

Best,
Stefan.
Comment 22 tab 2008-06-17 21:58:38 UTC
'Unfortunately, the colors available in the editor are very few'...
Sorry, I cannot even access these. How to set the colors in Math formulae? (Help
was not very helpful. And I have a hard time seeing black formulae on a
dark-blue background.)
Comment 23 tab 2008-06-17 21:59:28 UTC
'Unfortunately, the colors available in the editor are very few'...
Sorry, I cannot even access these. How to set the colors in Math formulae? (Help
was not very helpful. And I have a hard time seeing black formulae on a
dark-blue background.)
Comment 24 Rainer Bielefeld 2008-06-18 06:56:50 UTC
I checked with "2.4.0  Multilingual version German UI WIN XP:
[680m12(Build9286)]"  and found:
'HELP index -> OOo Math Features -> Reference-List -> Attributes -> Related
topics 'Attributes'' You find: 
"Use the color command to change the color of your formula. Type color, then
type the color name (the available colors are white, black, cyan, magenta, red,
blue, green and yellow), then the formula, character or character sequence..."

The color names are not translated in the OOo localizations.

I filed a new Issue 90828 for adding "Color" to context menu "Attributes".
Comment 25 Dotan Cohen 2008-08-25 12:08:16 UTC
@tab & rainerbielefeld:
This is a bug tracker, not a support forum. Please take "how do I" questions to
the forums, thanks.


Regarding markup, the equation editor syntax should be used for changing the
equation, not the markup. Just like in the regular window of Writer one can
highlight text and select an appropriate colour, so should the equation editor
have this ability. See attached screenshot for a demonstration of the importance
of separating markup language from the equation language.
Comment 26 Dotan Cohen 2008-08-25 12:09:18 UTC
Created attachment 55989 [details]
Screenshot demonstrating importance of separating equation language from markup language.
Comment 27 Dotan Cohen 2008-08-25 12:42:58 UTC
I am sorry, I was confused about what this bug is now asking for. I see now that
this bug is asking for _more_ colours for the equation editor, not a GUI for
assigning those colours. I have filed this bug suggesting a GUI and
markup/content separation:
http://www.openoffice.org/issues/show_bug.cgi?id=93098
Comment 28 michael.ruess 2008-08-25 12:50:02 UTC
.
Comment 29 abchirk 2009-01-19 05:33:09 UTC
yeah a complete color palette would be great... I needed it more then one time.
To add colors per mouse would be better too :)
Comment 30 GUKI 2015-01-31 03:57:01 UTC
I agree with these comments.

For example, I need a real red for correction of mathematic tests.

A color palette will be very good  (excuse my english...)

Guki
Comment 31 GUKI 2015-01-31 03:58:07 UTC
I agree with these comments.

For example, I need a real red for correction of mathematic tests.

A color palette will be very good  (excuse my english...)

Guki
Comment 32 Regina Henschel 2015-01-31 11:27:35 UTC
I have added basic named colors of HTML, for details see bug 118191. You can now use: white, silver, gray, black, red, maroon, yellow, olive, lime, green, aqua, teal, blue, navy, fuchsia, purple, cyan, magenta.
Adding arbitrary colors would require larger source code changes.

@GUKI: You can test the new colors already with a daily build from http://ci.apache.org/projects/openoffice/install/
Comment 33 Mat 2017-10-28 10:03:53 UTC
Bonjour,
Oui ce serait vraiment très bien. J'écris un livre éducatif avec de nombreuses formules incluses au texte et avoir aussi une palette de couleurs serait vraiment parfait !
Merci beaucoup.

Hello,
Yes it would be very good. I write a book for students with a lot of formulas inside the text. It would be really perfect to have a full color palette!
Thank you very much.