public final class Translator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUTOMATIC_IDS_REGEX
A pattern matching most IDs automatically generated by MS-Word.
|
Constructor and Description |
---|
Translator() |
public static final String AUTOMATIC_IDS_REGEX
Examples: _TocN, _RefN, BMN, OLE_LINKN, _ENREF_N, _GoBack.
public void setConsole(Console console)
public Console getConsole()
public void parseParameters(String[] params) throws IllegalArgumentException
IllegalArgumentException
public void setAddColumnNumberPI(boolean columnNumberPI)
public boolean getAddColumnNumberPI()
public void setXHTMLVersion(XHTMLVersion xhtmlVersion)
public XHTMLVersion getXHTMLVersion()
public void setCharset(String charset)
public String getCharset()
public void setForceLang(String forceLang)
public String getForceLang()
public void setDefaultLang(String defaultLang)
public String getDefaultLang()
public void setConvertedImageExtensions(String[] extensions)
public String[] getConvertedImageExtensions()
public void setResourceDirectoryPath(String path)
public String getResourceDirectoryPath()
public void setResourcePrefix(String prefix)
public String getResourcePrefix()
public void setLowerCaseResourceNames(boolean lowerCase)
public boolean getLowerCaseResourceNames()
public void setCreateMathMLObject(Boolean create)
public Boolean getCreateMathMLObject()
public void setMarkCustomStyles(boolean mark)
public boolean getMarkCustomStyles()
public void setSimplify(boolean simplify)
public boolean getSimplify()
public void setKeepAllRanges(boolean keep)
public boolean getKeepAllRanges()
public void setAutomaticIds(String regex) throws PatternSyntaxException
PatternSyntaxException
public void setAutomaticIdsPattern(Pattern pattern)
public Pattern getAutomaticIdsPattern()
public Document translate(File docxFile, File outFile, ResourceDirectory resourceDir) throws IOException
IOException
public Element translateToImg(Element drawingOrPict) throws IOException
IOException