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

version 1.48, 2000/02/22 16:01:24 version 1.49, 2000/02/25 17:05:42
Line 544  Document doc; Line 544  Document doc;
           }            }
      }       }
    XMLTextToDocument ();     XMLTextToDocument ();
    elType.ElTypeNum = MathML_EL_TEXT_UNIT;     elType.ElTypeNum = MathML_EL_TEXT_UNIT; 
    elType.ElSSchema = GetMathMLSSchema (doc);     elType.ElSSchema = GetMathMLSSchema (doc);
    elText = TtaNewElement (doc, elType);     elText = TtaNewElement (doc, elType);
    SetElemLineNumber (elText);     SetElemLineNumber (elText);
Line 924  void SetSingleIntHorizStretchAttr (el, d Line 924  void SetSingleIntHorizStretchAttr (el, d
   int               len;    int               len;
   Language          lang;    Language          lang;
   CHAR_T                alphabet;    CHAR_T                alphabet;
   unsigned char text[2], c;    UCHAR_T       text[2];
     unsigned char c;
   
   if (el == NULL)    if (el == NULL)
      return;       return;
Line 1036  void SetIntVertStretchAttr (el, doc, bas Line 1037  void SetIntVertStretchAttr (el, doc, bas
   int               len;    int               len;
   Language          lang;    Language          lang;
   CHAR_T                alphabet;    CHAR_T                alphabet;
   unsigned char text[2], c;    UCHAR_T       text[2];
     unsigned char c;
   
   if (el == NULL)    if (el == NULL)
      return;       return;
Line 1754  Document  doc; Line 1756  Document  doc;
    int           len, val;     int           len, val;
    Language          lang;     Language          lang;
    CHAR_T                alphabet;     CHAR_T                alphabet;
    unsigned char text[2], c;     UCHAR_T       text[2];
      unsigned char c;
   
    elType = TtaGetElementType (el);     elType = TtaGetElementType (el);
    if (elType.ElTypeNum == MathML_EL_MO)     if (elType.ElTypeNum == MathML_EL_MO)
Line 1774  Document  doc; Line 1777  Document  doc;
               if (len == 1)                if (len == 1)
                 if (alphabet == 'L')                  if (alphabet == 'L')
                    /* a single character */                     /* a single character */
                    if (text[0] == '(' || text[0] == ')' ||                     if (text[0] == TEXT('(') || text[0] == TEXT(')') ||
                        text[0] == '[' || text[0] == ']' ||                         text[0] == TEXT('[') || text[0] == TEXT(']') ||
                        text[0] == '{' || text[0] == '}' ||                         text[0] == TEXT('{') || text[0] == TEXT('}') ||
                        text[0] == '|' )                         text[0] == TEXT('|'))
                       {                        {
                       /* remove the content of the MO element */                        /* remove the content of the MO element */
                       TtaDeleteTree (content, doc);                        TtaDeleteTree (content, doc);
Line 1801  Document  doc; Line 1804  Document  doc;
                          TtaSetAttributeValue (attr, MathML_ATTR_IntVertStretch_VAL_yes_, el, doc);                           TtaSetAttributeValue (attr, MathML_ATTR_IntVertStretch_VAL_yes_, el, doc);
                          }                           }
                       /* create a new content for the MF element */                        /* create a new content for the MF element */
                       if (text[0] == '|')                        if (text[0] == TEXT('|'))
                          {                           {
                          elType.ElTypeNum = MathML_EL_GRAPHICS_UNIT;                           elType.ElTypeNum = MathML_EL_GRAPHICS_UNIT;
                          c = 'v';                           c = 'v';
Line 1809  Document  doc; Line 1812  Document  doc;
                       else                        else
                          {                           {
                          elType.ElTypeNum = MathML_EL_SYMBOL_UNIT;                           elType.ElTypeNum = MathML_EL_SYMBOL_UNIT;
                          c = text[0];                           c = (char) text[0];
                          }                           }
                       content = TtaNewElement (doc, elType);                        content = TtaNewElement (doc, elType);
                       TtaInsertFirstChild (&content, el, doc);                        TtaInsertFirstChild (&content, el, doc);
Line 1927  Document doc; Line 1930  Document doc;
    AttributeType attrType;     AttributeType attrType;
    Attribute     attr;     Attribute     attr;
    int           length;     int           length;
    char          text[32], c;     CHAR_T        text[32];
      char          c;
   
    child = TtaGetFirstChild (el);     child = TtaGetFirstChild (el);
    if (child != NULL)     if (child != NULL)
Line 2015  Document doc; Line 2019  Document doc;
         {          {
         length = 7;          length = 7;
         TtaGiveTextAttributeValue (attr, text, &length);          TtaGiveTextAttributeValue (attr, text, &length);
         c = text[0];          c = (char)text[0];
         }          }
       elType.ElTypeNum = MathML_EL_OpeningFence;        elType.ElTypeNum = MathML_EL_OpeningFence;
       fence = TtaNewElement (doc, elType);        fence = TtaNewElement (doc, elType);
Line 2033  Document doc; Line 2037  Document doc;
         {          {
         length = 7;          length = 7;
         TtaGiveTextAttributeValue (attr, text, &length);          TtaGiveTextAttributeValue (attr, text, &length);
         c = text[0];          c = (char) text[0];
         }          }
       elType.ElTypeNum = MathML_EL_ClosingFence;        elType.ElTypeNum = MathML_EL_ClosingFence;
       fence = TtaNewElement (doc, elType);        fence = TtaNewElement (doc, elType);
Line 2343  STRING elementName; Line 2347  STRING elementName;
 #endif  #endif
 {  {
    /* no other DTD allowed within MathML elements */     /* no other DTD allowed within MathML elements */
    ustrcpy (DTDname, _EMPTYSTR_);     ustrcpy (DTDname, TEXT(""));
 }  }
   
 /* end of module */  /* end of module */

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


Webmaster