[jsword-svn] r2081 - trunk/jsword/src/main/java/org/crosswire/jsword/book/filter/gbf

dmsmith at crosswire.org dmsmith at crosswire.org
Tue Mar 1 06:59:20 MST 2011


Author: dmsmith
Date: 2011-03-01 06:59:20 -0700 (Tue, 01 Mar 2011)
New Revision: 2081

Modified:
   trunk/jsword/src/main/java/org/crosswire/jsword/book/filter/gbf/GBFTags.java
Log:
JS-166 Fix two GBF Strong's Number bugs

Modified: trunk/jsword/src/main/java/org/crosswire/jsword/book/filter/gbf/GBFTags.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/book/filter/gbf/GBFTags.java	2011-02-19 16:12:52 UTC (rev 2080)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/book/filter/gbf/GBFTags.java	2011-03-01 13:59:20 UTC (rev 2081)
@@ -459,11 +459,13 @@
                 String existingLemma = word.getAttributeValue(OSISUtil.ATTRIBUTE_W_LEMMA);
                 StringBuilder newLemma = new StringBuilder();
 
+                // Strong's numbers are separated by spaces w/in the attribute
                 if (existingLemma != null && existingLemma.length() > 0) {
-                    newLemma.append(existingLemma).append('|');
+                    newLemma.append(existingLemma).append(' ');
                 }
 
-                newLemma.append(OSISUtil.LEMMA_STRONGS).append(name.substring(2));
+                // Grab the G or H and the number that follows
+                newLemma.append(OSISUtil.LEMMA_STRONGS).append(name.substring(1));
                 word.setAttribute(OSISUtil.ATTRIBUTE_W_LEMMA, newLemma.toString());
             }
         }




More information about the jsword-svn mailing list