|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 15
|
|
| Author |
|
|
Stranger Joined: Apr 23, 2009 Post Count: 4 Status: Offline |
What is the internal structure of a module? Is it documented anywhere? I need to know. I want to go from one format (xml) directly to a sword module. I'd prefer to not go through OSIS, TEI, or other format. Thanks for enlightenment. Bob ---------------------------------------- [Edit 1 times, last edit by rmcape at Aug 16, 2010 10:11:10 AM] |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
Hi Bob. I believe there are different internal formats for bibles, dictionaries and generic books. So far I don't think this format is documented in other form than the sources. You could use the SWORD API to create a module from your XML files. Basically our tools osis2mod, tei2mod and the like do the same, they are just an application which uses the SWORD API. If you do that you are free to use different source formats. However we recommend to use one of our supported formats. Manfred |
||
|
|
Stranger Joined: Apr 23, 2009 Post Count: 4 Status: Offline |
Hi Manfred, Thanks! Bob |
||
|
|
Newbie Joined: Aug 20, 2010 Post Count: 8 Status: Offline |
The first part of the internal structure is found in the Config file in the mods.d directory. The structure of this file is documented in http://www.crosswire.org/wiki/DevTools:confFiles. Some details from that documentation There are currently 11 different possible formats for the contents of a module. RawText, zText, RawCom, RawCom4, zCom, HREFCom, RawFiles, RawLD, RawLD4, zLD, RawGenBook 3 are used the most. These are the compressed formats. zText, zCom, and zLD. These are compressed using ZIP or LZSS. Zip is the ZLib library created by Jean-loup Gailly and Mark Adler is used to compress and decompress most content. LZSS is all but obsolete. |
||
|
|
Regular Joined: Aug 30, 2010 Post Count: 12 Status: Offline |
Without getting too techie here, what are the differences between the various types of compression and in what situations would one matter over another (what difference does it make with one over another). Not sure how to word that without it sounding either stupid or demanding -- apologies in advance. |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
Well, the difference is the algorithm used to compress the data. I think though that only ZIP is used. All modules I have seen that were compressed used ZIP. zlib however is able to also compress in different formats. That doesn't mean though that we use it. Manfred |
||
|
|
Regular Joined: Aug 30, 2010 Post Count: 12 Status: Offline |
Sorry, in my haste last evening had asked info on the wrong thing. What differences are the module formats -- how do they differ and all that please? |
||
|
|
Regular Joined: Aug 30, 2010 Post Count: 12 Status: Offline |
Degree is in Bible and experience in hardware, so willing to tackle this if can get tutorial or whatever please. |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
All modules formats are basically stored to disk using a custom binary encoding. Dictionary, Bibles/Commentaries and Genbooks all differ. I can't go into details because I don't know them myself. If you want to know it exactly you'll have to read the sources or ask in the mailing list. Manfred |
||
|
|
Regular Joined: Aug 30, 2010 Post Count: 12 Status: Offline |
Sorry for the newbish question here, but how to get/post on that list please? |
||
|
|
|
|
|
Current timezone is GMT May 18, 2013 6:55:17 AM |