public class THMLFilter extends Object implements SourceFilter
I used the THML ref page: http ://www.ccel.org/ThML/ThML1.04.htm to work out what the tags meant. LATER(joe): check nesting on these THML elements
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private Exception |
error |
private String |
errorMessage |
private String |
finalInput |
private static org.slf4j.Logger |
log
The log stream
|
Constructor and Description |
---|
THMLFilter() |
Modifier and Type | Method and Description |
---|---|
private org.jdom2.Element |
cleanParse(Book book,
Key key,
String plain) |
private org.jdom2.Element |
cleanTags(Book book,
Key key,
String plain) |
private org.jdom2.Element |
cleanText(Book book,
Key key,
String plain) |
THMLFilter |
clone()
This needs to be declared here so that it is visible as a method on a
derived Filter.
|
private org.jdom2.Element |
parse(Book book,
Key key,
String plain,
String failMessage) |
List<org.jdom2.Content> |
toOSIS(Book book,
Key key,
String plain)
Converter from plain (encoded) text to OSIS data
|
private String errorMessage
private Exception error
private String finalInput
private static final org.slf4j.Logger log
public List<org.jdom2.Content> toOSIS(Book book, Key key, String plain)
SourceFilter
toOSIS
in interface SourceFilter
book
- the bookkey
- The key for the textplain
- The encoded textpublic THMLFilter clone()
SourceFilter
clone
in interface SourceFilter
clone
in class Object