version 1.198, 2004/10/14 11:08:05
|
version 1.199, 2004/12/23 14:22:03
|
Line 966 void SetSingleIntHorizStretchAttr (Eleme
|
Line 966 void SetSingleIntHorizStretchAttr (Eleme
|
len = 2; |
len = 2; |
TtaGiveBufferContent (textEl, text, len, &lang); |
TtaGiveBufferContent (textEl, text, len, &lang); |
script = TtaGetScript (lang); |
script = TtaGetScript (lang); |
if ( |
if (text[0] == '-' || text[0] == '_' || text[0] == 0xAF || |
(text[0] == '-' || text[0] == '_' || |
text[0] == 0x0332 || text[0] == 0x2212) |
text[0] == 175)) |
|
/* a horizontal line in the middle of the box */ |
/* a horizontal line in the middle of the box */ |
c = 'h'; |
c = 'h'; |
else |
else if (text[0] == 0x2190) |
if (text[0] == 0x2190) |
c = 'L'; /* arrow left */ |
c = 'L'; /* arrow left */ |
else if (text[0] == 0x2192) |
else if (text[0] == 0x2192) |
c = 'R'; /* arrow right */ |
c = 'R'; /* arrow right */ |
else if (text[0] == 0xFE37) |
else if (text[0] == 45) /* - (minus) */ |
c = 'o'; /* Over brace */ |
/* a horizontal line in the middle of the box */ |
else if (text[0] == 0xFE38) |
c = 'h'; |
c = 'u'; /* Under brace */ |
else if (text[0] == 0x2212) /* - (minus) */ |
|
/* a horizontal line in the middle of the box */ |
|
c = 'h'; |
|
else if (text[0] == 0x0332) /* UnderBar */ |
|
/* a horizontal line */ |
|
c = 'h'; |
|
else if (text[0] == 65079) |
|
c = 'o'; /* Over brace */ |
|
else if (text[0] == 65080) |
|
c = 'u'; /* Under brace */ |
|
if (c != EOS) |
if (c != EOS) |
doit = TRUE; |
doit = TRUE; |
} |
} |
Line 999 void SetSingleIntHorizStretchAttr (Eleme
|
Line 988 void SetSingleIntHorizStretchAttr (Eleme
|
/* attach a IntHorizStretch attribute to the element |
/* attach a IntHorizStretch attribute to the element |
(UnderOverBase, Underscript, or Overscript) */ |
(UnderOverBase, Underscript, or Overscript) */ |
attr = TtaNewAttribute (attrType); |
attr = TtaNewAttribute (attrType); |
TtaAttachAttribute (el, attr, doc); |
|
TtaSetAttributeValue (attr, MathML_ATTR_IntHorizStretch_VAL_yes_, el, doc); |
TtaSetAttributeValue (attr, MathML_ATTR_IntHorizStretch_VAL_yes_, el, doc); |
|
TtaAttachAttribute (el, attr, doc); |
attr = TtaNewAttribute (attrType); |
attr = TtaNewAttribute (attrType); |
TtaAttachAttribute (child, attr, doc); |
|
TtaSetAttributeValue (attr, MathML_ATTR_IntHorizStretch_VAL_yes_, child, doc); |
TtaSetAttributeValue (attr, MathML_ATTR_IntHorizStretch_VAL_yes_, child, doc); |
|
TtaAttachAttribute (child, attr, doc); |
} |
} |
if (c != EOS) |
if (c != EOS) |
{ |
{ |
Line 1015 void SetSingleIntHorizStretchAttr (Eleme
|
Line 1004 void SetSingleIntHorizStretchAttr (Eleme
|
if (*selEl == textEl) |
if (*selEl == textEl) |
*selEl = symbolEl; |
*selEl = symbolEl; |
TtaDeleteTree (textEl, doc); |
TtaDeleteTree (textEl, doc); |
if (c != EOS) |
TtaSetGraphicsShape (symbolEl, c, doc); |
TtaSetGraphicsShape (symbolEl, c, doc); |
|
} |
} |
} |
} |
} |
} |