diff --git a/source/org/thdl/tib/scanner/Manipulate.java b/source/org/thdl/tib/scanner/Manipulate.java index 32a274a..1771212 100644 --- a/source/org/thdl/tib/scanner/Manipulate.java +++ b/source/org/thdl/tib/scanner/Manipulate.java @@ -28,7 +28,7 @@ import org.thdl.util.*; public class Manipulate { - public static String[] parseFields (String s, char delimiter) + /* public static String[] parseFields (String s, char delimiter) { int pos; String field; @@ -43,7 +43,7 @@ public class Manipulate ll.addLast(s.trim()); return ll.toStringArray(); - } + }*/ public static String replace(String linea, String origSub, String newSub) { @@ -124,6 +124,27 @@ public class Manipulate return nuevaPalabra; } + /** If more than half of the first letters among the first are 10 characters + are uppercase assume its acip */ + public static boolean guessIfAcip(String line) + { + char ch; + int letters=0, upperCase=0, i, n; + n = line.length(); + if (n>10) n = 10; + for (i=0; i2) + { + if ((s.charAt(0)=='\"') && (s.charAt(length-1)=='\"')) + return s.substring(1,length-1); + } + return s; + } /** Syntax: java Manipulate [word-file] < source-dic-entries > dest-dic-entries