Diff for /Amaya/amaya/MathMLbuilder.c between versions 1.221 and 1.222

version 1.221, 2007/03/26 09:30:48 version 1.222, 2007/03/28 14:32:50
Line 4531  void SetFontfamily (Document doc, Elemen Line 4531  void SetFontfamily (Document doc, Elemen
   char           css_command[buflen+20];    char           css_command[buflen+20];
     
   sprintf (css_command, "font-family: %s", value);    sprintf (css_command, "font-family: %s", value);
   ParseHTMLSpecificStyle (el, css_command, doc, 0, FALSE);    ParseHTMLSpecificStyle (el, css_command, doc, 2000, FALSE);
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
Line 4551  void MathMLlinethickness (Document doc, Line 4551  void MathMLlinethickness (Document doc,
   else if (strcmp (value, "thick") == 0)    else if (strcmp (value, "thick") == 0)
     strcpy (value, "2pt");      strcpy (value, "2pt");
   sprintf (css_command, "stroke-width: %s", value);    sprintf (css_command, "stroke-width: %s", value);
   ParseHTMLSpecificStyle (el, css_command, doc, 0, FALSE);    ParseHTMLSpecificStyle (el, css_command, doc, 2000, FALSE);
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
Line 4601  void MathMLAttrToStyleProperty (Document Line 4601  void MathMLAttrToStyleProperty (Document
         }          }
       break;        break;
     }      }
   ParseHTMLSpecificStyle (el, css_command, doc, 0, FALSE);    ParseHTMLSpecificStyle (el, css_command, doc, 2000, FALSE);
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
Line 4922  void MathMLAttributeComplete (Attribute Line 4922  void MathMLAttributeComplete (Attribute
               depAttrType.AttrSSchema = attrType.AttrSSchema ;                depAttrType.AttrSSchema = attrType.AttrSSchema ;
               depAttrType.AttrTypeNum = MathML_ATTR_mathcolor;                depAttrType.AttrTypeNum = MathML_ATTR_mathcolor;
               if (!TtaGetAttribute (el, depAttrType))                if (!TtaGetAttribute (el, depAttrType))
                 HTMLSetForegroundColor (doc, el, 0, value);                  HTMLSetForegroundColor (doc, el, 2000, value);
               break;                break;
             case MathML_ATTR_mathcolor:              case MathML_ATTR_mathcolor:
               HTMLSetForegroundColor (doc, el, 0, value);                HTMLSetForegroundColor (doc, el, 2000, value);
               break;                break;
             case MathML_ATTR_background_:              case MathML_ATTR_background_:
               /* deprecated attribute */                /* deprecated attribute */
Line 4934  void MathMLAttributeComplete (Attribute Line 4934  void MathMLAttributeComplete (Attribute
               depAttrType.AttrSSchema = attrType.AttrSSchema;                depAttrType.AttrSSchema = attrType.AttrSSchema;
               depAttrType.AttrTypeNum = MathML_ATTR_mathbackground;                depAttrType.AttrTypeNum = MathML_ATTR_mathbackground;
               if (!TtaGetAttribute (el, depAttrType))                if (!TtaGetAttribute (el, depAttrType))
                 HTMLSetBackgroundColor (doc, el, 0, value);                  HTMLSetBackgroundColor (doc, el, 2000, value);
               break;                break;
             case MathML_ATTR_mathbackground:              case MathML_ATTR_mathbackground:
               HTMLSetBackgroundColor (doc, el, 0, value);                HTMLSetBackgroundColor (doc, el, 2000, value);
               break;                break;
             case MathML_ATTR_fontfamily:              case MathML_ATTR_fontfamily:
               SetFontfamily (doc, el, value);                SetFontfamily (doc, el, value);

Removed from v.1.221  
changed lines
  Added in v.1.222


Webmaster