[jsword-devel] JSword and Map/Image modules
infernalproteus at gmail.com
Tue Jan 27 00:46:33 MST 2009
A small correction to my last post.
epiphany-maps.zip does not have any standin/placeholder images. Once the
"list fix" is made to BD, it renders just fine.
netmaps.zip on the other hand had a bunch of placeholder images (I said
the opposite in my last email). However, BD will not render these images
(before and after replacing the placeholder with the correct image).
BPBible has no problem displaying this content.
Will investigate further.
DM Smith wrote:
> On Jan 26, 2009, at 1:43 PM, Brian Fernandes wrote:
>> I was trying to get map modules working in BibleDesktop (1.6 and
>> nightly from 14th Dec), but could not.
>> I downloaded epiphany-maps.zip, netmaps.zip and farbibatlas.zip from
>> ftp://ftp.kleinpaste.org/pub/sword/zip (Peter pointed me to this
>> location, crosswire.org has no maps/images). Only the last of these
>> worked in BibleDesktop and it turned out to be a genbook module, not a
>> map module. The first two were map modules, selecting them in in the
>> sidebar does nothing, the "table of contents" area remains blank.
>> I looked into this a bit further and realized that BibleDesktop was
>> attempting to display Map modules as trees, but the RawLDBackend model
>> would return "0" for getChildCount() and nothing would be displayed in
>> the contents area. getCardinality() though would return the right
>> number of items in module.
>> If you change MultiBookPane to treat Maps as a list instead of a Tree,
>> (by adding category.equals(BookCategory.MAPS) to the "else if" on line
>> 451, then BibleDesktop does display the contents and individual maps
>> when list items are clicked.
>> This would be okay if Map modules are not hierarchical and simply
>> lists. The two I had were lists (as seen in BPBible). Is this the norm
>> for Map modules? I assume Image modules would be the same? (is this
>> documented anywhere?)
>> P.S. I had to manually download images for the epiphany-maps.zip file
>> as instructed by placeholder images. After the above fix, I could view
>> both the text and the corresponding map without issue in BibleDesktop.
>> For netmaps, the contents would show up but clicking them only shows
>> me text, no images. This module works just fine in BPBible; I have not
>> looked into this problem yet.
> I'm going out on a limb here and guessing. Karl's modules are ThML and
> the href/src (or whatever it is called) is not something that JSword
> anticipated. Currently, JSword handles the images according to the one
> image module that is at CrossWire (perhaps under alpha) and also the BAO
> module (that we had to remove).
> It shouldn't matter whether the module is one kind or another. The xsl
> that we use is relatively brain-dead. It does not expect a valid OSIS
> document, it merely renders the OSIS that it is handled one element at a
> time. So, if it cannot display an image, the problem could be that the
> path is not what was expected.
> I don't understand the epiphany-maps.zip problem.
> I won't have time to look at this for a while. Anyone else who can fix
> it would be greatly appreciated.
> If you could file a bug on Jira, this won't get lost.
> In Him,
> jsword-devel mailing list
> jsword-devel at crosswire.org
More information about the jsword-devel