diff options
author | Regina Henschel <regina@apache.org> | 2012-08-08 16:16:35 +0000 |
---|---|---|
committer | Regina Henschel <regina@apache.org> | 2012-08-08 16:16:35 +0000 |
commit | 1816e39ae9a7dac9566ad9f6b53e2be545ea7902 (patch) | |
tree | 0f8cc1e4769e987a1ca382380c569ef799a59075 /starmath | |
parent | 9debb74f53de502c7aa3d9539236b1740007442e (diff) |
#i90553# fix simple accents in MathML import
Patch by: Joshua Cogliati;
Review by: Regina Henschel
Notes
Notes:
prefer: b90ac7d682fd65f75eff4225d871130c0ae9f185
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/node.cxx | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 005c7587e36f..86832dd18a8c 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2812,23 +2812,51 @@ void SmAttributNode::CreateTextFromNode(String &rText) nLast = aStr.GetChar(0); switch (nLast) { - case 0xAF: + case 0xAF: // MACRON APPEND(rText,"overline "); break; - case 0x2d9: + case 0x2d9: // DOT ABOVE APPEND(rText,"dot "); break; - case 0x2dc: + case 0x2dc: // SMALL TILDE APPEND(rText,"widetilde "); break; - case 0xA8: + case 0xA8: // DIAERESIS APPEND(rText,"ddot "); break; case 0xE082: break; case 0xE09B: + case 0x20DB: // COMBINING THREE DOTS ABOVE APPEND(rText,"dddot "); break; + case 0x301: // COMBINING ACUTE ACCENT + APPEND(rText,"acute "); + break; + case 0x300: // COMBINING GRAVE ACCENT + APPEND(rText,"grave "); + break; + case 0x30C: // COMBINING CARON + APPEND(rText,"check "); + break; + case 0x306: // COMBINING BREVE + APPEND(rText,"breve "); + break; + case 0x30A: // COMBINING RING ABOVE + APPEND(rText,"circle "); + break; + case 0x20D7: // COMBINING RIGHT ARROW ABOVE + APPEND(rText,"vec "); + break; + case 0x303: // COMBINING TILDE + APPEND(rText,"tilde "); + break; + case 0x302: // COMBINING CIRCUMFLEX ACCENT + APPEND(rText,"hat "); + break; + case 0x304: // COMBINING MACRON + APPEND(rText,"bar "); + break; default: rText.Append(nLast); break; |