package geom.webeq.constants;

import geom.webeq.fonts.*;
import geom.webeq.latexparser.*;
import geom.webeq.HTMLparser.*;

import java.util.Hashtable;

public class Parser implements AttributeConstants, ParseConstants {
  public static final Hashtable AttributeTypes = new Hashtable();
  public static final Hashtable Keywords = new Hashtable();

  static {

    AttributeTypes.put("mode", new Integer(MODE));
    AttributeTypes.put("fontsize", new Integer(FONTSIZE));
    AttributeTypes.put("fontweight", new Integer(FONTWEIGHT));
    AttributeTypes.put("fontslant", new Integer(FONTSLANT));
    AttributeTypes.put("fontfamily", new Integer(FONTFAMILY));
    AttributeTypes.put("fontcolor", new Integer(FONTCOLOR));
    AttributeTypes.put("bkground", new Integer(BKGROUND));
    AttributeTypes.put("maccent_stretchy", new Integer(MACCENT_STRETCHY));
    AttributeTypes.put("mo_lspace", new Integer(MO_LSPACE));
    AttributeTypes.put("mo_rspace", new Integer(MO_RSPACE));
    AttributeTypes.put("mo_stretchy", new Integer(MO_STRETCHY));
    AttributeTypes.put("mo_align", new Integer(MO_ALIGN));
    AttributeTypes.put("mo_largeop", new Integer(MO_LARGEOP));
    AttributeTypes.put("mo_movescripts", new Integer(MO_MOVESCRIPTS));
    AttributeTypes.put("mfrac_linewidth", new Integer(MFRAC_LINEWIDTH));
    AttributeTypes.put("moverunder_position", new Integer(MOVERUNDER_POSITION));
    AttributeTypes.put("marray_layout", new Integer(MARRAY_LAYOUT));
    AttributeTypes.put("marray_align", new Integer(MARRAY_ALIGN));
    AttributeTypes.put("marray_padding", new Integer(MARRAY_PADDING));
    AttributeTypes.put("marray_equalrows", new Integer(MARRAY_EQUALROWS));
    AttributeTypes.put("marray_equalcols", new Integer(MARRAY_EQUALCOLS));
    AttributeTypes.put("mr_align", new Integer(MR_ALIGN));
    AttributeTypes.put("mr_linebelow", new Integer(MR_LINEBELOW));
    AttributeTypes.put("md_rowspan", new Integer(MD_ROWSPAN));
    AttributeTypes.put("md_colspan", new Integer(MD_COLSPAN));
    AttributeTypes.put("md_rowalign", new Integer(MD_ROWALIGN));
    AttributeTypes.put("md_colalign", new Integer(MD_COLALIGN));
    AttributeTypes.put("maction_type", new Integer(MACTION_TYPE));
    AttributeTypes.put("maction_value", new Integer(MACTION_VALUE));


    Keywords.put("math", new Integer(MROW));       
    Keywords.put("mattribute", new Integer(MATTRIBUTE));
    Keywords.put("maccent", new Integer(MACCENT));
    Keywords.put("mi", new Integer(MI));
    Keywords.put("mn", new Integer(MN));
    Keywords.put("mo", new Integer(MO));
    Keywords.put("mfrac", new Integer(MFRAC));
    Keywords.put("moverunder", new Integer(MOVERUNDER));
    Keywords.put("mprescripts", new Integer(MPRESCRIPTS));
    Keywords.put("mroot", new Integer(MROOT));
    Keywords.put("mscripts", new Integer(MSCRIPTS));
    Keywords.put("marray", new Integer(MARRAY));
    Keywords.put("mr", new Integer(MR));
    Keywords.put("md", new Integer(MD));
    Keywords.put("mrow", new Integer(MROW));
    Keywords.put("mbox", new Integer(MBOX));
    Keywords.put("maction", new Integer(MACTION));
  }
}


