[sword-svn] r427 - trunk/webapp

scribe at crosswire.org scribe at crosswire.org
Tue Jun 14 13:27:13 MST 2016


Author: scribe
Date: 2016-06-14 13:27:13 -0700 (Tue, 14 Jun 2016)
New Revision: 427

Modified:
   trunk/webapp/fetchdata.jsp
Log:
added a few formatting conditions for tei base texts for INTF


Modified: trunk/webapp/fetchdata.jsp
===================================================================
--- trunk/webapp/fetchdata.jsp	2016-06-14 20:25:16 UTC (rev 426)
+++ trunk/webapp/fetchdata.jsp	2016-06-14 20:27:13 UTC (rev 427)
@@ -37,6 +37,9 @@
 		mgr.setGlobalOption("Strong's Numbers", "Off");
 		mgr.setGlobalOption("Morphological Tags", "Off");
 	}
+	if ("tei".equals(format) && "LXXCATSS".equals(modName)) {
+		mgr.setGlobalOption("Greek Accents", "Off");
+	}
 
 	String mods[] = new String[0];
 	if (modName != null) {
@@ -279,11 +282,20 @@
 <%
 								}
 								// --------------------------------------------
-									if ("WLC".equals(modName) || "LXX".equals(modName)) {
+									if ("WLC".equals(modName) || "LXX".equals(modName) || "Vulgate".equals(modName)) {
 %>
 <%= book.getStripText() %>
 <%
 									}
+									else if ("LXXCATSS".equals(modName) || "Aleppo".equals(modName)) {
+										String raw = book.getStripText();
+										raw = mgr.filterText("OSISPlain", raw);
+//										raw = mgr.filterText("UTF8GreekAccents", raw);
+										while (raw.indexOf("\n") > -1) raw = raw.replaceAll("\n", " ");
+										while (raw.indexOf("\r") > -1) raw = raw.replaceAll("\r", " ");
+										while (raw.indexOf("  ") > -1) raw = raw.replaceAll("  ", " ");
+										out.print(raw);
+									}
 									else {
 %>
 <%= book.getRawEntry() %>




More information about the sword-cvs mailing list