diff --git a/source/org/thdl/tib/scanner/LocalTibetanScanner.java b/source/org/thdl/tib/scanner/LocalTibetanScanner.java index 29f4fd0..42bce24 100644 --- a/source/org/thdl/tib/scanner/LocalTibetanScanner.java +++ b/source/org/thdl/tib/scanner/LocalTibetanScanner.java @@ -339,7 +339,7 @@ outAHere: */ fin = init+1; - while (true) + while (fin < linea.length()) { ch = linea.charAt(fin); if (endOfParagraphMarks.indexOf(ch)>=0) diff --git a/source/org/thdl/tib/scanner/OnLineScannerFilter.java b/source/org/thdl/tib/scanner/OnLineScannerFilter.java index a9e5f9b..458d037 100644 --- a/source/org/thdl/tib/scanner/OnLineScannerFilter.java +++ b/source/org/thdl/tib/scanner/OnLineScannerFilter.java @@ -58,15 +58,30 @@ public class OnLineScannerFilter extends HttpServlet { PrintWriter out = response.getWriter(); String parrafo = request.getParameter("parrafo"), checkboxName, script; DictionarySource ds=null; - boolean checkedDicts[], allUnchecked, wantsTibetan; + boolean checkedDicts[], allUnchecked, wantsTibetan, useTHDLBanner = (request.getParameter("thdlBanner")!=null); // int percent=100; - out.println(""); + if (useTHDLBanner) + { + out.println(" "); + } + else out.println(""); + out.println("
"); - out.println(""); - out.println(""); - out.println(""); - out.println("