[jsword-svn] r1043 - trunk/jsword/src/main/java/org/crosswire/jsword/examples

dmsmith at crosswire.org dmsmith at crosswire.org
Thu Mar 9 05:50:02 MST 2006


Author: dmsmith
Date: 2006-03-09 05:49:57 -0700 (Thu, 09 Mar 2006)
New Revision: 1043

Modified:
   trunk/jsword/src/main/java/org/crosswire/jsword/examples/ModToOsis.java
Log:
KJV 2003 fixup example.

Modified: trunk/jsword/src/main/java/org/crosswire/jsword/examples/ModToOsis.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/examples/ModToOsis.java	2006-03-08 21:40:56 UTC (rev 1042)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/examples/ModToOsis.java	2006-03-09 12:49:57 UTC (rev 1043)
@@ -37,7 +37,7 @@
      */
     private static final String BIBLE_NAME = "KJV"; //$NON-NLS-1$
     private static final String BIBLE_RANGE = "Gen-Rev"; //$NON-NLS-1$
-    private static final boolean BY_CHAPTER = true;
+    private static final boolean BY_CHAPTER = false;
 
     /**
      * @param args
@@ -1093,11 +1093,20 @@
             }
         }
 
+        // For each G3588 <w> element that is empty
+        // Take its src attribute and grab its morph which should be
+        // of the form T-xxx.
+        // Find the <w> element with src+1, if it is N-xxx, then
+        // merge this to that element, removing the G3588 one.
         for (Map.Entry<Integer, String> entry: wMap.entrySet())
         {
             if (entry.getValue().contains("G3588")) //$NON-NLS-1$
             {
-                
+                String found = wMap.get(entry.getKey() + 1);
+                if (found != null)
+                {
+                    System.err.println("found following entry:\n\t" + entry.getValue() + "\n\t" + found);
+                }
             }
         }
 



More information about the jsword-svn mailing list