diff --git a/source/org/thdl/tib/scanner/BinaryFileGenerator.java b/source/org/thdl/tib/scanner/BinaryFileGenerator.java index 777d97e..df4a74d 100644 --- a/source/org/thdl/tib/scanner/BinaryFileGenerator.java +++ b/source/org/thdl/tib/scanner/BinaryFileGenerator.java @@ -101,19 +101,15 @@ public class BinaryFileGenerator extends LinkedList { final short newDefiniendum=1, halfDefiniendum=2, definition=3; short status=newDefiniendum; - int marker, len, marker2, n=0, total=0, currentPage=0, currentLine=0; + int marker, len, marker2, n=0, total=0, currentPage=0, currentLine=1; char ch; BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(archivo))); - String entrada="", s1, s2, previous="", currentLetter="", temp=""; + String entrada="", s1="", s2="", currentLetter="", temp=""; boolean markerNotFound; - - currentLine=1; // used for acip dict if (delimiter==' ') { - s1=""; - s2=""; outAHere: while (true) { @@ -143,7 +139,7 @@ public class BinaryFileGenerator extends LinkedList } // get current letter - if ((entrada.charAt(0)=='(' || entrada.charAt(0)=='{' || entrada.charAt(0)=='?') && previous.trim().equals("")) + if (entrada.charAt(0)=='(' || entrada.charAt(0)=='{' || entrada.charAt(0)=='?') { currentLetter = entrada.substring(1, entrada.length()-2); /*out.println(currentPage + ": " + currentLetter); @@ -215,7 +211,7 @@ public class BinaryFileGenerator extends LinkedList status because it will be updated below. */ if (status==definition) { - add(s1, s2, defNum); + add(s1, s2, defNum); s1=""; s2=""; } @@ -231,11 +227,18 @@ public class BinaryFileGenerator extends LinkedList markerNotFound=false; marker2=marker+1; break; - case '(': + case '(': case '<': markerNotFound=false; marker2=marker; break; - case 'g': case ' ': // verify "g " and " " + case 'g': // verify "g " + if (marker+1 tsh, tz -> ts, v -> w, - TH -> Th, SH -> Sh, : -> H, dh -> d+h, gh -> g+h, bh -> b+h, dzh -> dz+h, - kSH -> k+Sh, aa -> a, a'a -> A, ai->i, aee ->ai, au->u, aoo->au, ae->e, + TH -> Th, kSH, kaSH -> k+Sh, SH -> Sh, : -> H, dh -> d+h, gh -> g+h, bh -> b+h, dzh -> dz+h, + aa -> a, a'a -> A, ai->i, aee ->ai, au->u, aoo->au, ae->e, ao->o, ee->ai, oo->au, 'I->-I I->-i, a'i->I, a'u->U, a'e->E, a'o->O, a'i->I, a'u->U, a'e->E, a'o->O, ,->/, # -> @##, * -> @#, \ -> ?, ` -> !, /-/ -> (-), ga-y -> g.y, g-y -> g.y */ @@ -119,13 +119,14 @@ public class Manipulate nuevaLinea = replace(nuevaLinea, "tq", "tsh"); nuevaLinea = replace(nuevaLinea, "v", "w"); nuevaLinea = replace(nuevaLinea, "TH", "Th"); + nuevaLinea = replace(nuevaLinea, "kSH", "k+Sh"); + nuevaLinea = replace(nuevaLinea, "kaSH", "k+Sh"); nuevaLinea = replace(nuevaLinea, "SH", "Sh"); nuevaLinea = replace(nuevaLinea, ":", "H"); nuevaLinea = replace(nuevaLinea, "dh", "d+h"); nuevaLinea = replace(nuevaLinea, "gh", "g+h"); nuevaLinea = replace(nuevaLinea, "bh", "b+h"); nuevaLinea = replace(nuevaLinea, "dzh", "dz+h"); - nuevaLinea = replace(nuevaLinea, "kSH", "k+Sh"); nuevaLinea = replace(nuevaLinea, "aa", "a"); nuevaLinea = replace(nuevaLinea, "ai", "i"); nuevaLinea = replace(nuevaLinea, "aee", "ai");