[jsword-devel] JSWord book name problem

Yiguang Hu yighu at yahoo.com
Wed Aug 22 17:42:18 MST 2012

I run into a strange problem recently with jsword. I have the following few lines of code. I just want to printout the bookname and it's short name. I tried both BibleNmes and BibleInfo class. Both return same name. But the names are not like English name. For example, I get 1 Konings while expecting 1 kings, get Openbaring while expecting revelation. Any idea? I have been using jsword 1.6 several years without any problem like this.

Here are the code (I also attached the test groovy scripts and output). I am using jsword 1.6. The bibledesktop displays all books correctly. Please let me know what might happened and the way to overcome it.

 int nbook = BibleInfo.booksInBible();

      BibleNames bn = new BibleNames(Locale.US)

        println "shortname\tshortname\nname\tlongname"
      try {
        for (int i = 1; i <= nbook; i++)


          def gb = new Expando()
          gb.key = BibleInfo.getBookName(i).getShortName()
          gb.shortname = bn.getShortName(i)
          gb.cname = bn.getName(i)
          gb.longname = BibleInfo.getBookName(i).getLongName()
        println gb.key+ "\t"+gb.shortname+"\t"+gb.cname+"\t"+gb.longname

       // println " local "+loc +" bibe size:"+bibles.size()

      } catch (Exception e) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20120822/d4c4087d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.groovy
Type: application/octet-stream
Size: 1583 bytes
Desc: not available
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20120822/d4c4087d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.out
Type: application/octet-stream
Size: 2458 bytes
Desc: not available
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20120822/d4c4087d/attachment-0001.obj>

More information about the jsword-devel mailing list