edu.northwestern.at.wordhoard.tools.fixers
Class ChaAst
java.lang.Object
edu.northwestern.at.wordhoard.tools.fixers.Fixer
edu.northwestern.at.wordhoard.tools.fixers.ChaAst
public class ChaAst
- extends Fixer
Fixes problems in A Treatise on the Astrolab.
We apply the following fixes to all the "div" elements which
have titles starting with "(":
- We set custom full titles. E.g., "Part II (14)".
- We add the attribute rend="italic" to all lines with line number 0.
- In many of the parts, the lines with line number 0 are out of
order. We fix the bad orderings in these cases.
This fixer must be run AFTER the NukeDiv and ChaTitle fixers.
Method Summary |
void |
fix(java.lang.String corpusTag,
java.lang.String workTag,
org.w3c.dom.Document document)
Fixes an XML DOM tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChaAst
public ChaAst()
fix
public void fix(java.lang.String corpusTag,
java.lang.String workTag,
org.w3c.dom.Document document)
throws java.lang.Exception
- Fixes an XML DOM tree.
- Specified by:
fix
in class Fixer
- Parameters:
corpusTag
- Corpus tag.workTag
- Work tag.document
- XML DOM tree.
- Throws:
java.lang.Exception