[sword-devel] IMAGES in SWORD

Joachim Ansorg sword-devel@crosswire.org
Tue, 5 Mar 2002 19:29:30 +0100


Troy,
	thank you for your answer!

> If we change the filter to strip the basename from the url on lex/dict
> and genbooks, then for these modules, the module authors will have to
> add an extra directory to the url.  As it stands now, the extra
> directory is already added for them for these 3 cases.  Does this make
> sense?  Still hoping to hear what you think.  As said before, I think we
> agree in principle, now just have to work out the details.

I don't understand all of your comments, but let's see :)
Let's use the Strongs dict as example:
	[StrongsHebrew]
	DataPath=./modules/lexdict/rawld/strongs/hebrew
	
	[StrongsGreek]
	DataPath=./modules/lexdict/rawld/strongs/greek

They have both the same base directory. The content of this dir is:
	strongs/STRONGS.DOC
	strongs/greek.dat
	strongs/greek.idx
	strongs/hebrew.dat
	strongs/hebrew.idx
	strongs/strongs.conf
So there are no subdirectories, which are already created (as you wrote 
above).
If StrongsHebrew wants to add an image, <img src="/img_hebrew_1.png"> should 
ould refer to rawld/strongs/img_hebrew_1.png, right? If the module author 
likes subdirectories, he should create a subdir of strongs/ like hebrew_img/ 
and then use <img src="/hebrew_img/image1.png">.

This is the way which would (IMHO) not confuse module authors, because / 
refers everytime to the same, i.e. the top of the datadirectory.

Is this all reasonable? I hope :)

Joachim