[sword-devel] test image module

Chris Little sword-devel@crosswire.org
Wed, 23 Apr 2003 10:36:31 -0700 (MST)


There is a demo module with images(a RawLD4 module named imagesampler) in 
the betaraw directory, which front-end developers can use for testing 
purposes.  Current CVS of Sword is needed.  I would guess that GnomeSword 
will work out of the box and that BibleTime may need a small addition to 
its ThML filter if it wasn't already added.

Support in BibleCS is harder than I had believed, but I'm not ruling it 
out completely yet.

For those interested in adding images to modules, the syntax is simply 
<img src="/(filename).(jpg|jpeg|png|svg)"/> in ThML -- I included my 
source .imp file in the module's directory.  SVG won't be supported in 
BibleCS, however.  In OSIS it will be fairly similar: <figure 
src="/(filename).(jpg|jpeg|png|svg)"/>.  Please note that you can indicate 
subdirectories (e.g. <img src="/images/aaron.jpg"/>) and that the initial 
'/' is mandatory (at least for the moment--I'm not clear why we couldn't 
assume a relative path for any address that omits a protocol).

--Chris