Diff for /Amaya/amaya/MathMLbuilder.c between versions 1.152 and 1.153

version 1.152, 2002/03/29 15:35:09 version 1.153, 2002/04/03 12:49:14
Line 585  void SetSingleIntHorizStretchAttr (Eleme Line 585  void SetSingleIntHorizStretchAttr (Eleme
                        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] == 45)    /* - (minus) */                       else if (text[0] == 45)        /* - (minus) */
                          /* a horizontal line in the middle of the box */
                          c = 'h'; 
                        else if (text[0] == 0x2212)    /* - (minus) */
                        /* a horizontal line in the middle of the box */                         /* a horizontal line in the middle of the box */
                        c = 'h';                          c = 'h'; 
                      else if (text[0] == 0x0332)    /* UnderBar */                       else if (text[0] == 0x0332)    /* UnderBar */
Line 1453  void SetIntAddSpaceAttr (Element el, Doc Line 1456  void SetIntAddSpaceAttr (Element el, Doc
               /* ISO-Latin 1 character */                /* ISO-Latin 1 character */
               {                {
 #endif  #endif
                 if (text[0] == '-')                  if (text[0] == '-'
   #ifdef _I18N_
                       || text[0] == 0x2212   /* minus */
   #endif
                       )
                   /* prefix or infix operator? */                    /* prefix or infix operator? */
                   {                    {
                     previous = el;                      previous = el;
Line 2509  void MathMLSpacingAttr (Document doc, El Line 2516  void MathMLSpacingAttr (Document doc, El
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
      MathMLSetDisplayAttr
      The MathML attribute display is associated  with element el.
      Generate the corresponding Thot presentation rule for
      the element.
     ----------------------------------------------------------------------*/
   void MathMLSetDisplayAttr (Element el, Attribute attr, Document doc,
                              ThotBool delete)
   {
     int val;
   
     val = TtaGetAttributeValue (attr);
     if (val == MathML_ATTR_display_VAL_block)
       ParseHTMLSpecificStyle (el, "display: block", doc, 0, delete);
     else if (val == MathML_ATTR_display_VAL_inline_)
       ParseHTMLSpecificStyle (el, "display: inline", doc, 0, delete);
   }
   
   /*----------------------------------------------------------------------
    MathMLAttributeComplete     MathMLAttributeComplete
    The XML parser has completed parsing attribute attr (as well as its value)     The XML parser has completed parsing attribute attr (as well as its value)
    that is associated with element el in document doc.     that is associated with element el in document doc.
Line 2518  void MathMLAttributeComplete (Attribute Line 2543  void MathMLAttributeComplete (Attribute
    AttributeType     attrType, depAttrType;     AttributeType     attrType, depAttrType;
    int               attrKind;     int               attrKind;
    ElementType       elType;     ElementType       elType;
 #define buflen 50  
    char             *value;     char             *value;
    int               val, length;     int               val, length;
    Attribute         intAttr;     Attribute         intAttr;
     
    /* first get the type of that attribute */     /* first get the type of that attribute */
    TtaGiveAttributeType (attr, &attrType, &attrKind);     TtaGiveAttributeType (attr, &attrType, &attrKind);
   
    if (attrType.AttrTypeNum == MathML_ATTR_bevelled)     if (attrType.AttrTypeNum == MathML_ATTR_bevelled)
      /* it's a bevelled attribute */       /* it's a bevelled attribute */
      {       {
Line 2580  void MathMLAttributeComplete (Attribute Line 2605  void MathMLAttributeComplete (Attribute
    else if (attrType.AttrTypeNum == MathML_ATTR_columnalign)     else if (attrType.AttrTypeNum == MathML_ATTR_columnalign)
    */     */
   
      else if (attrType.AttrTypeNum == MathML_ATTR_display)
        /* it's a display attribute */
        MathMLSetDisplayAttr (el, attr, doc, FALSE);
   
    else if (attrType.AttrTypeNum == MathML_ATTR_Language)     else if (attrType.AttrTypeNum == MathML_ATTR_Language)
      {       {
        if (el == TtaGetRootElement (doc))         if (el == TtaGetRootElement (doc))

Removed from v.1.152  
changed lines
  Added in v.1.153


Webmaster