37 |
|
|
38 |
public class SpanReader extends org.xml.sax.helpers.DefaultHandler { |
public class SpanReader extends org.xml.sax.helpers.DefaultHandler { |
39 |
public static boolean dbg = false; |
public static boolean dbg = false; |
40 |
private static void pa(String s) { System.out.println(s); } |
private static void pa(String s) { System.out.println("SpanReader:: "+s); } |
41 |
|
|
42 |
public Alph alph; |
public Alph alph; |
43 |
|
|
70 |
String t = attributes.getValue("t"); |
String t = attributes.getValue("t"); |
71 |
spans.add(new org.nongnu.alph.impl.URN5TextSpan(b, o, t)); |
spans.add(new org.nongnu.alph.impl.URN5TextSpan(b, o, t)); |
72 |
} else if(qName.equals("fts")) { |
} else if(qName.equals("fts")) { |
73 |
String t = attributes.getValue("t"); |
String t = attributes.getValue("t"); |
74 |
spans.add(new org.nongnu.alph.impl.FakeTextSpan(t)); |
spans.add(new org.nongnu.alph.impl.FakeTextSpan(t)); |
75 |
} else if(qName.equals("ps")) { |
} else if(qName.equals("ps")) { |
76 |
String b = attributes.getValue("b"); |
String b = attributes.getValue("b"); |
77 |
int s = Integer.parseInt(attributes.getValue("s")); |
int s = Integer.parseInt(attributes.getValue("s")); |