summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-11-24 18:02:51 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-11-24 18:44:01 +0100
commit4ae08e816b9bf8e27290f54ccd051346b854bfaf (patch)
tree9a227417b45784dd18c730321f11c9907139806c /starmath
parent48d2a5b86e464dfb75196e440448f0319d676956 (diff)
prefer widevec, widetilde and widehat for mathml docx import
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/ooxmlimport.cxx19
1 files changed, 6 insertions, 13 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index b12b80637822..ac7d520d32d6 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -127,13 +127,16 @@ OUString SmOoxmlImport::handleAcc()
acc = STR( "circle" );
break;
case MS_VEC:
- acc = STR( "vec" );
+ // prefer wide variants for these 3, .docx can't seem to differentiate
+ // between e.g. 'vec' and 'widevec', if whatever the accent is above is short, this
+ // shouldn't matter, but short above a longer expression doesn't look right
+ acc = STR( "widevec" );
break;
case MS_TILDE:
- acc = STR( "tilde" );
+ acc = STR( "widetilde" );
break;
case MS_HAT:
- acc = STR( "hat" );
+ acc = STR( "widehat" );
break;
case MS_DOT:
acc = STR( "dot" );
@@ -144,16 +147,6 @@ OUString SmOoxmlImport::handleAcc()
case MS_DDDOT:
acc = STR( "dddot" );
break;
-// these characters do not exist it seems
-// case MS_WIDETILDE:
-// acc = STR( "widetilde" );
-// break;
-// case TWIDEHAT:
-// acc = STR( "widehat" );
-// break;
-// case TWIDEVEC:
-// acc = STR( "widevec" );
-// break;
default:
acc = STR( "acute" );
break;