public class SuperFixer
extends java.lang.Object
Usage:
java edu.northwestern.at.morphadorner.tools.tcp.SuperFixer outputdirectory input1.xml input2.xml ...
where outputdirectory is the output directory containing the resultant XML files with <zzzzlj>text</zzzzlj> added to surround tokens containing "^" superscript markers, and input*.xml are the input tokenized XML files.
Tokens which end in ^d where "d" is a single digit are converted to the token followed by a d. This provides for inserting the missing targets of these apparent note references at a later editing stage.
Modifier and Type | Field and Description |
---|---|
protected static java.util.regex.Matcher |
matcher |
protected static java.util.regex.Pattern |
pattern
Main ^ character replacer.
|
protected static PatternReplacer |
replacer1
Superscript number replacers.
|
protected static PatternReplacer |
replacer2 |
protected static org.jdom2.Namespace |
teiNamespace
TEI name spaces.
|
protected static org.jdom2.Namespace |
teiNamespace2 |
Constructor and Description |
---|
SuperFixer() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Main program.
|
static void |
superFixer(java.lang.String[] args) |
protected static org.jdom2.Namespace teiNamespace
protected static org.jdom2.Namespace teiNamespace2
protected static PatternReplacer replacer1
protected static PatternReplacer replacer2
protected static java.util.regex.Pattern pattern
protected static java.util.regex.Matcher matcher