Diff for /Amaya/amaya/MathMLbuilder.c between versions 1.49 and 1.50

version 1.49, 2000/02/25 17:05:42 version 1.50, 2000/02/28 09:11:58
Line 648  Element el; Line 648  Element el;
       elType.ElTypeNum == MathML_EL_MSPACE ||        elType.ElTypeNum == MathML_EL_MSPACE ||
       elType.ElTypeNum == MathML_EL_MROW ||        elType.ElTypeNum == MathML_EL_MROW ||
       elType.ElTypeNum == MathML_EL_MFRAC ||        elType.ElTypeNum == MathML_EL_MFRAC ||
         elType.ElTypeNum == MathML_EL_BeveledMFRAC ||
       elType.ElTypeNum == MathML_EL_MSQRT ||        elType.ElTypeNum == MathML_EL_MSQRT ||
       elType.ElTypeNum == MathML_EL_MROOT ||        elType.ElTypeNum == MathML_EL_MROOT ||
       elType.ElTypeNum == MathML_EL_MSTYLE ||        elType.ElTypeNum == MathML_EL_MSTYLE ||
Line 2124  Document doc; Line 2125  Document doc;
             }              }
           break;            break;
        case MathML_EL_MFRAC:         case MathML_EL_MFRAC:
          case MathML_EL_BeveledMFRAC:
           /* end of a fraction. Create a Numerator and a Denominator */            /* end of a fraction. Create a Numerator and a Denominator */
           CheckMathSubExpressions (el, MathML_EL_Numerator,            CheckMathSubExpressions (el, MathML_EL_Numerator,
                                    MathML_EL_Denominator, 0, doc);                                     MathML_EL_Denominator, 0, doc);
           break;            break;
        case MathML_EL_MSQRT:         case MathML_EL_MSQRT:
           /* end od a Square Root. Create a SqrtBase that contains all            /* end of a Square Root */
              children of the MSQRT element */            /* Create placeholders within the element */
             CreatePlaceholders (TtaGetFirstChild (el), doc);
             /* Create a SqrtBase that contains all children of the MSQRT */
           CreateWrapper (el, MathML_EL_SqrtBase, doc);            CreateWrapper (el, MathML_EL_SqrtBase, doc);
           break;            break;
        case MathML_EL_MROOT:         case MathML_EL_MROOT:
Line 2138  Document doc; Line 2142  Document doc;
           CheckMathSubExpressions (el, MathML_EL_RootBase, MathML_EL_Index,            CheckMathSubExpressions (el, MathML_EL_RootBase, MathML_EL_Index,
                                    0, doc);                                     0, doc);
           break;            break;
          case MathML_EL_MENCLOSE:
             /* Create placeholders within the element */
             CreatePlaceholders (TtaGetFirstChild (el), doc);
             break;
        case MathML_EL_MSTYLE:         case MathML_EL_MSTYLE:
        case MathML_EL_MERROR:         case MathML_EL_MERROR:
        case MathML_EL_MPADDED:         case MathML_EL_MPADDED:
Line 2296  Document doc; Line 2304  Document doc;
 {  {
    AttributeType     attrType;     AttributeType     attrType;
    int               attrKind;     int               attrKind;
      ElementType       elType;
 #define buflen 50  #define buflen 50
    STRING            value;     STRING            value;
    int               length;     int               val, length;
     
    TtaGiveAttributeType (attr, &attrType, &attrKind);     TtaGiveAttributeType (attr, &attrType, &attrKind);
    if (attrType.AttrTypeNum == MathML_ATTR_color ||     if (attrType.AttrTypeNum == MathML_ATTR_beveled)
        {
          val = TtaGetAttributeValue (attr);
          if (val == MathML_ATTR_beveled_VAL_true)
            /* beveled = true.  Transform MFRAC into BeveledMFRAC */
            {
            elType = TtaGetElementType (el);
            if (elType.ElTypeNum == MathML_EL_MFRAC)
               ChangeTypeOfElement (el, doc, MathML_EL_BeveledMFRAC);
            }
        }
      else if (attrType.AttrTypeNum == MathML_ATTR_color ||
        attrType.AttrTypeNum == MathML_ATTR_background_ ||         attrType.AttrTypeNum == MathML_ATTR_background_ ||
        attrType.AttrTypeNum == MathML_ATTR_fontsize ||         attrType.AttrTypeNum == MathML_ATTR_fontsize ||
        attrType.AttrTypeNum == MathML_ATTR_fontfamily)         attrType.AttrTypeNum == MathML_ATTR_fontfamily)

Removed from v.1.49  
changed lines
  Added in v.1.50


Webmaster