Kaydet (Commit) 1816e39a authored tarafından Regina Henschel's avatar Regina Henschel

#i90553# fix simple accents in MathML import

Patch by: Joshua Cogliati;
Review by: Regina Henschel
üst 9debb74f
...@@ -2812,23 +2812,51 @@ void SmAttributNode::CreateTextFromNode(String &rText) ...@@ -2812,23 +2812,51 @@ void SmAttributNode::CreateTextFromNode(String &rText)
nLast = aStr.GetChar(0); nLast = aStr.GetChar(0);
switch (nLast) switch (nLast)
{ {
case 0xAF: case 0xAF: // MACRON
APPEND(rText,"overline "); APPEND(rText,"overline ");
break; break;
case 0x2d9: case 0x2d9: // DOT ABOVE
APPEND(rText,"dot "); APPEND(rText,"dot ");
break; break;
case 0x2dc: case 0x2dc: // SMALL TILDE
APPEND(rText,"widetilde "); APPEND(rText,"widetilde ");
break; break;
case 0xA8: case 0xA8: // DIAERESIS
APPEND(rText,"ddot "); APPEND(rText,"ddot ");
break; break;
case 0xE082: case 0xE082:
break; break;
case 0xE09B: case 0xE09B:
case 0x20DB: // COMBINING THREE DOTS ABOVE
APPEND(rText,"dddot "); APPEND(rText,"dddot ");
break; 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: default:
rText.Append(nLast); rText.Append(nLast);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment