edu.northwestern.at.wordhoard.tools.filters
Class Filter04

java.lang.Object
  extended by edu.northwestern.at.wordhoard.tools.filters.Filter04

public class Filter04
extends java.lang.Object

Trims white space.

Trims leading and trailing white space.

Usage:

Filter04 in out

in = Path to TEI XML input file for a work.

out = Path to TEI XML output file for a work.

Leading and trailing white space is trimmed in all text elements which are not inside "l" elements or children of "p" elements.

For tagged lines ("l" elements), leading white space is timmed from initial punctuation, and trailing white space is trimmed from final punctuaton, and any resulting empty "punc" elements are eliminated.

For paragraphs ("p" elements), leading white space is trimmed from the first text child, and trailing white space is trimmed from the last text child.


Method Summary
static void main(java.lang.String[] args)
          The main program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
The main program.

Parameters:
args - Command line arguments.