Examples of AsciiMathXml


Examples of fi.celia.asciimath.xml.AsciiMathXml

  InterruptedException,
  IOException,
  NullPointerException,
  Exception
  {
    AsciiMathXml asciimathxml = new AsciiMathXml();
    Properties prop = new Properties();
    File fileProp = new File(jasciiMathPropertyFileName);
    FileReader freader = new FileReader(fileProp);
    prop.load(freader);
    String strSleepCounter = prop.getProperty("sleepconter");
    if (strSleepCounter != null && strSleepCounter.trim().length() > 0)
    {
      try {
        int iSleepCounter = Integer.valueOf(strSleepCounter);
        asciimathxml.setSleepConter(iSleepCounter);
      } catch(Exception inte){
       
      }
    }
    freader.close();
    int result = -1;
    try {
      result = asciimathxml.modifyDtbookIntoAsciiMathXml(templatefilename,
          dtbookFileName, dtbookCharacterSet, jasciiMathPropertyFileName,
          asciiMathWWWBrowserApplication, targetDtbookFileName,
          targetCharacterSet, bPrintXmlStatements,
          bCheckStrikeErrors, p_bCorrectStrikeErrors);
    } catch(Exception e) {
      m_sbError = new StringBuffer(e.getMessage());
      throw e;
    }
      //asciimathxml.
      String printdata = asciimathxml.getPrintData();
      m_sbPrintData = new StringBuffer((printdata == null ? "" : printdata));
      String data = asciimathxml.getOutputData();
      m_sb = new StringBuffer((data == null ? "" : data));
      String error = asciimathxml.getErrorData();
      m_sbError = new StringBuffer((error == null ? "" : error));
      if (asciimathxml.getJAsciiMath() != null)
        m_hm_asciimath_values = asciimathxml.getJAsciiMath().getAsciimatHashMapValues();
      // ???
      return result;
      /*
    } catch(Exception e) {
      m_sbError = new StringBuffer(e.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.