Apache OpenOffice (AOO) Bugzilla – Issue 113276
Math: Greek symbols and new OpenSymbol font
Last modified: 2013-08-07 14:55:42 UTC
========================== Problem: 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 font. 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 characters. 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 '%PI' '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.
.
Created attachment 70707 [details] sample image for OOo 3.2 behaviour
Created attachment 70708 [details] sample image for OOo 3.3 behaviour
See also issue 113277.
Sounds like a 3.3 stopper candidate to me.
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
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.
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.
Created attachment 70854 [details] Document with sample macro to test new property
Setting task to OOO 3.3.
Created attachment 70859 [details] sample doc and nice macro to modify Math formulas within a Writer document
TL->MRU: 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.
Verified in CWS tl83.
Checked in OOO330m5.