info.bliki.wiki.addon.filter
Class LaTeXConverter
java.lang.Object
info.bliki.wiki.addon.filter.LaTeXConverter
- All Implemented Interfaces:
- info.bliki.wiki.filter.ITextConverter
public class LaTeXConverter
- extends java.lang.Object
- implements info.bliki.wiki.filter.ITextConverter
A converter which renders the internal node representation as LaTeX text
Method Summary |
void |
imageNodeToText(info.bliki.htmlcleaner.TagNode imageTagNode,
info.bliki.wiki.model.ImageFormat imageFormat,
java.lang.Appendable resultBuffer,
info.bliki.wiki.model.IWikiModel model)
|
void |
nodesToText(java.util.List<? extends java.lang.Object> nodes,
java.lang.Appendable resultBuffer,
info.bliki.wiki.model.IWikiModel model)
|
protected void |
nodeToLaTeX(info.bliki.htmlcleaner.TagNode node,
java.lang.Appendable resultBuffer,
info.bliki.wiki.model.IWikiModel model)
|
boolean |
noLinks()
|
void |
renderBodyString(info.bliki.wiki.tags.HTMLTag node,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel model)
|
void |
renderLaTeX(info.bliki.wiki.tags.HTMLTag node,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel model)
|
void |
renderLaTeX(info.bliki.wiki.filter.WPCell cell,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel wikiModel)
|
void |
renderLaTeX(info.bliki.wiki.filter.WPRow row,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel wikiModel,
int maxCols)
|
void |
renderLaTeX(info.bliki.wiki.filter.WPTable table,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel model)
|
static java.lang.String |
texEscapeString(java.lang.String s)
Escapes characters or whole strings that otherwise have a special meaning
in tex. |
static java.lang.String |
verbToText(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEMP_BRACES
public static final java.lang.String TEMP_BRACES
- See Also:
- Constant Field Values
LaTeXConverter
public LaTeXConverter()
nodesToText
public void nodesToText(java.util.List<? extends java.lang.Object> nodes,
java.lang.Appendable resultBuffer,
info.bliki.wiki.model.IWikiModel model)
throws java.io.IOException
- Specified by:
nodesToText
in interface info.bliki.wiki.filter.ITextConverter
- Throws:
java.io.IOException
nodeToLaTeX
protected void nodeToLaTeX(info.bliki.htmlcleaner.TagNode node,
java.lang.Appendable resultBuffer,
info.bliki.wiki.model.IWikiModel model)
throws java.io.IOException
- Throws:
java.io.IOException
imageNodeToText
public void imageNodeToText(info.bliki.htmlcleaner.TagNode imageTagNode,
info.bliki.wiki.model.ImageFormat imageFormat,
java.lang.Appendable resultBuffer,
info.bliki.wiki.model.IWikiModel model)
throws java.io.IOException
- Specified by:
imageNodeToText
in interface info.bliki.wiki.filter.ITextConverter
- Throws:
java.io.IOException
verbToText
public static java.lang.String verbToText(java.lang.String s)
- Returns:
- The String 's' with all special characters escaped and linebreaks
converted to "\\"
texEscapeString
public static java.lang.String texEscapeString(java.lang.String s)
- Escapes characters or whole strings that otherwise have a special meaning
in tex.
renderLaTeX
public void renderLaTeX(info.bliki.wiki.tags.HTMLTag node,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel model)
throws java.io.IOException
- Throws:
java.io.IOException
renderBodyString
public void renderBodyString(info.bliki.wiki.tags.HTMLTag node,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel model)
throws java.io.IOException
- Throws:
java.io.IOException
renderLaTeX
public void renderLaTeX(info.bliki.wiki.filter.WPTable table,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel model)
throws java.io.IOException
- Throws:
java.io.IOException
renderLaTeX
public void renderLaTeX(info.bliki.wiki.filter.WPRow row,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel wikiModel,
int maxCols)
throws java.io.IOException
- Throws:
java.io.IOException
renderLaTeX
public void renderLaTeX(info.bliki.wiki.filter.WPCell cell,
info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable _out,
info.bliki.wiki.model.IWikiModel wikiModel)
throws java.io.IOException
- Throws:
java.io.IOException
noLinks
public boolean noLinks()
- Specified by:
noLinks
in interface info.bliki.wiki.filter.ITextConverter
Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.