Issue 113276 - Math: Greek symbols and new OpenSymbol font
Summary: Math: Greek symbols and new OpenSymbol font
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: DEV300m83
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
Depends on:
Reported: 2010-07-20 10:50 UTC by thomas.lange
Modified: 2013-08-07 14:55 UTC (History)
3 users (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---

sample image for OOo 3.2 behaviour (6.82 KB, image/png)
2010-07-20 10:55 UTC, thomas.lange
no flags Details
sample image for OOo 3.3 behaviour (6.66 KB, image/png)
2010-07-20 10:56 UTC, thomas.lange
no flags Details
Document with sample macro to test new property (7.35 KB, application/octet-stream)
2010-07-28 08:42 UTC, thomas.lange
no flags Details
sample doc and nice macro to modify Math formulas within a Writer document (23.73 KB, application/octet-stream)
2010-07-28 12:19 UTC, thomas.lange
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description thomas.lange 2010-07-20 10:50:16 UTC

Previously (up to, and including OOo 3.2) a formula like:
    %MU %PI "  " nitalic {%MU %PI} "  " italic {%MU %PI} newline
    %eta %kappa "  " nitalic {%eta %kappa} "  " italic {%eta %kappa}
would have been rendered as in 'mathOSF_OOo3.2.png'.

Please notice that you can't get a straight %PI it is slanted or even
more slanted. :-( This however did not apply to %MU since the first
comes from the StarSymbol/OpenSymbol font and the latter actually from
TimesNewRoman since the old OpenSymbol font did only feature those
non-Latin-looking Greek characters. That of course was a bug of the old

This problem (and others) are now fixed in the new OpenSymbol font that
will come with OOo 3.3.

Currently(!) with a developers build like DEV300_m84 the above formula
will be rendered as in 'mathOSF_OOo3.3.png'. You can easily see that
'italic' and 'nitalic' commands now have the proper effect on the
Also the non-altered charatcer (see first column) are defined as slanted
by default right now since that is visually the best equivalent to the
old look.

Now in every formula at least one of the sample cases
    'nitalic PI' or
    'italic PI'
will look different compared to OOo 3.2 if rendered anew in OOo 3.3!
(And it can't be fixed on import.) Also changing the default for Greek
symbols to straight will not solve this since then only one of the other
cases will turn out different.


Having asked the users on the UX discussion list they majority wants that the
Greek symbols (like %KAPPA, %kappa, ...) should not be slanted by default and
that for each of them there should be a additional symbols, prefixed with 'i'
(like %iKAPPA, %ikappa, ...) that are the slanted versions of the former ones. 

Implementation wise the new italic versions (%iKAPPA, %ikappa, ...) should go
into a symbol set named iGreek. That should be done purely programmatically be
prefixing each symbol in the 'Greek' symbol set with 'i', setting it to 'italic'
and put them into the set 'iGreek'. 
The advantage of this solution is that no additional translation is required and
thus consistency is guaranteed. 
The 'iGreek' symbol set should be calculated once per office start only when
Math is used the first time.
Comment 1 thomas.lange 2010-07-20 10:51:11 UTC
Comment 2 thomas.lange 2010-07-20 10:53:09 UTC
Comment 3 thomas.lange 2010-07-20 10:55:45 UTC
Created attachment 70707 [details]
sample image for OOo 3.2 behaviour
Comment 4 thomas.lange 2010-07-20 10:56:26 UTC
Created attachment 70708 [details]
sample image for OOo 3.3 behaviour
Comment 5 thomas.lange 2010-07-20 11:27:52 UTC
See also issue 113277.
Comment 6 mdxonefour 2010-07-20 15:06:58 UTC
Sounds like a 3.3 stopper candidate to me.
Comment 7 thomas.lange 2010-07-23 16:13:43 UTC
Files changed:

M officecfg/registry/data/org/openoffice/Office/Math.xcu
M starmath/inc/symbol.hxx
M starmath/source/dialog.cxx
M starmath/source/document.cxx
M starmath/source/edit.cxx
M starmath/source/mathmlexport.cxx
M starmath/source/mathmlimport.cxx
M starmath/source/symbol.cxx
M starmath/source/types.cxx
M starmath/source/view.cxx
Comment 8 thomas.lange 2010-07-23 16:39:22 UTC
TL->MRU: I also fixed the small issue that inserting a symbol with the symbol
dialog did no longer auto-update the formula display. That regression was
probably unknowingly introduced with the patch provided in issue 106487.
Comment 9 thomas.lange 2010-07-28 08:40:52 UTC
Further changes:

M officecfg/registry/schema/org/openoffice/Office/Math.xcs
M starmath/inc/format.hxx
M starmath/inc/node.hxx
M starmath/source/cfgitem.cxx
M starmath/source/document.cxx
M starmath/source/format.cxx
M starmath/source/node.cxx
M starmath/source/parse.cxx
M starmath/source/unomodel.cxx

Also added a new property GreekCharStyle to easy manipulate the default behavior
of the symbols in the 'Greek' symbol set. (Not that of Greek characters in
general!) See attached document.
Comment 10 thomas.lange 2010-07-28 08:42:23 UTC
Created attachment 70854 [details]
Document with sample macro to test new property
Comment 11 thomas.lange 2010-07-28 08:42:56 UTC
Setting task to OOO 3.3.
Comment 12 thomas.lange 2010-07-28 12:19:06 UTC
Created attachment 70859 [details]
sample doc and nice macro to modify Math formulas within a Writer document
Comment 13 thomas.lange 2010-07-29 12:55:40 UTC
About the problem with the symbol catalog and auto-updating the formula when a
symbol was inserted (see above), the same problem applied to the right-click
context menu in the edit window and the 'Elemnts' toolbox window when text got
inserted. Those problems are now fixed as well.

Comment 14 thomas.lange 2010-07-30 08:23:08 UTC
Comment 15 michael.ruess 2010-08-05 10:01:33 UTC
Verified in CWS tl83.
Comment 16 michael.ruess 2010-08-27 12:42:52 UTC
Checked in OOO330m5.