org.qedeq.kernel.se.visitor
Class LatexList2Text

java.lang.Object
  extended by org.qedeq.kernel.se.visitor.LatexList2Text

public class LatexList2Text
extends java.lang.Object

Transform latex list into text. We make here only a basic conversion to have a plain text description of such things as chapter titles. So we have to remove something like "\index".
TODO 20130126 m31: this transformation is mainly used to get a good location description when a plugin is running. So it must work with chapter, section and subsection titles. We just have to check what LaTeX stuff is used there.
Another problem: currently only the method transform(LatexList) is called.
It might be a good idea to idea to externalize the usage. So one could use a better transformer transformer (like Latex2UnicodeParser) if we have it in our class path...

Author:
Michael Meyling

Constructor Summary
LatexList2Text()
           
 
Method Summary
protected  java.lang.String getLatex(Latex latex)
           
 java.lang.String transform(LatexList list)
          Filters English entry out of LaTeX list.
 java.lang.String transform(LatexList list, java.lang.String language)
          Filters given language entry out of LaTeX list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatexList2Text

public LatexList2Text()
Method Detail

transform

public java.lang.String transform(LatexList list)
Filters English entry out of LaTeX list.

Parameters:
list - List of LaTeX entries.
Returns:
Selected entry transformed into text.

transform

public java.lang.String transform(LatexList list,
                                  java.lang.String language)
Filters given language entry out of LaTeX list. Fallback is the default language.

Parameters:
list - List of LaTeX entries.
language - Filter for this language.
Returns:
Selected entry transformed into text.

getLatex

protected java.lang.String getLatex(Latex latex)


Copyright © 2014. All Rights Reserved.