[sword-svn] r370 - trunk/src/org/crosswire/swordweb

scribe at crosswire.org scribe at crosswire.org
Sun Jun 20 23:21:12 MST 2010


Author: scribe
Date: 2010-06-20 23:21:12 -0700 (Sun, 20 Jun 2010)
New Revision: 370

Modified:
   trunk/src/org/crosswire/swordweb/PerseusUtils.java
Log:
updated to latest entry point and removed conversion of beta which is no longer beta


Modified: trunk/src/org/crosswire/swordweb/PerseusUtils.java
===================================================================
--- trunk/src/org/crosswire/swordweb/PerseusUtils.java	2010-01-26 17:07:00 UTC (rev 369)
+++ trunk/src/org/crosswire/swordweb/PerseusUtils.java	2010-06-21 06:21:12 UTC (rev 370)
@@ -33,9 +33,9 @@
             part = bc.convertString(part).toLowerCase();
             // Perseus wants final sigma to be "s"
             if (part.endsWith("j")) part = part.substring(0, part.length()-1) + "s";
-	    start = end + 2;
+            start = end + 2;
             try {
-                url = new URL("http://www.perseus.tufts.edu/hopper/xmlchunk.jsp?doc=Perseus%3Atext%3A1999.04.0058%3Aentry%3D"+URLEncoder.encode(part));
+                url = new URL("http://www.perseus.tufts.edu/hopper/xmlchunk?doc=Perseus%3Atext%3A1999.04.0058%3Aentry%3D"+URLEncoder.encode(part));
                 InputSource inputSource = new InputSource(url.openStream());
                 DTMNodeList nodes = (DTMNodeList)xpath.evaluate(expression, inputSource, XPathConstants.NODESET);
                 if (nodes.getLength() > 0) {
@@ -129,7 +129,7 @@
             String txt = node.getNodeValue();
             Node l = node.getParentNode().getAttributes().getNamedItem("lang");
             if ((l != null) && ("greek".equals(l.getNodeValue()))) {
-              txt = (new BetacodeToUnicode().convertString(txt));
+  //            txt = (new BetacodeToUnicode().convertString(txt));	// THIS FAILS.  BUMMER.  NOT NEEDED ANYMORE?
             }
             out.append(normalize(txt));
             break;




More information about the sword-cvs mailing list