|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 12
|
|
| Author |
|
|
Stranger Sweden Joined: Jul 26, 2010 Post Count: 2 Status: Offline |
Hi! I'm creating a dictionary module and I found the following file: smith.zip. The zip-file contains the Smith's Bible Dictionary in OSIS format, so I thought that was the correct format to create my dictionary in. So the actual OSIS xml-file is already created, but now I'm having trouble to make a module out of the xml-file. I've downloaded the sword utilities compiled for Win32. And I've used the osis2mod utitility before to create a bible module, but now it's a dictionary so the osis2mod won't work. By reading the wiki it seemed like the xml2gbs utility was the right one to use, so I tried it out and it created three files with the following extensions: bdt, dat & idx. But the module doesn't seem to work, I've tried to use both the rawLD and rawGenBook as the value for ModDrv in the conf-file. I have seen that the Smith module (the actuall one) contains only two files: dat & idx. So what utility do you use to create only the dat & idx files? Or do I need to convert my 4000 lines of xml to another format? Please let me know if you know what I'm doing wrong. Thanks in advance! |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
Hi. I have little knowhow in creating dictionaries but our preferred format for those is TEI. Here is our wiki page regarding TEI dictionaries: http://www.crosswire.org/wiki/TEI_Dictionaries Since the Smith dictionary source is OSIS it seems that OSIS is supported as well. Manfred ---------------------------------------- [Edit 1 times, last edit by mdbergmann at Jul 26, 2010 3:53:23 AM] |
||
|
|
Stranger Sweden Joined: Jul 26, 2010 Post Count: 2 Status: Offline |
Hi. Hi, and thank you for your quick answer!I have little knowhow in creating dictionaries but our preferred format for those is TEI. Here is our wiki page regarding TEI dictionaries: http://www.crosswire.org/wiki/TEI_Dictionaries Since the Smith dictionary source is OSIS it seems that OSIS is supported as well. Manfred I hoped that I wouldn't have to convert to another format, but maybe it's not that hard with a few regular expressions. Does TEI support paragraphs? But I still don't understand why the Smith dictionary source is OSIS and which tool was used to convert the source into a module. It would save me a lot of time though, if I don't have to convert my OSIS source. If someone know which tool I should use please respond. |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
Chris will probably respond himself. He is normally reading here as well. Manfred ---------------------------------------- [Edit 1 times, last edit by mdbergmann at Jul 26, 2010 6:36:48 AM] |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
In case no will respond you should have a look or write to our mailing lists. http://www.crosswire.org/mailman/listinfo The "sword-devel" list is probably the one where you reach the most people. Unfortunately many are not looking into the forum or too infrequently. Regards, Manfred |
||
|
|
Developer Joined: Sep 17, 2003 Post Count: 209 Status: Offline |
The smith.zip OSIS doc is ancient, so I'll remove it. That file was created as an early demo of OSIS markup being used for dictionaries, and was never intended as a model for others. The version of OSIS it uses is very old and hasn't been supported by anyone for many, many years. |
||
|
|
Regular Joined: Jun 17, 2010 Post Count: 45 Status: Offline |
Good afternoon, Is there an example of a small dictionary I can use to create my own dictionary (probably with less that 50 entries) please - my dictionary will only contain words with a description? I have tried: $$$Word This word means ... I used "imp2ld", my source is in UTF-8, I have tried ThML and GBF in the config file, but when checking the dictionary in Xiphos (Windows), everything is just garbage. Please help me. Thank you, Johan |
||
|
|
Regular Joined: Jul 14, 2006 Post Count: 64 Status: Offline |
I used "imp2ld", my source is in UTF-8, I have tried ThML and GBF in the config file, but when checking the dictionary in Xiphos (Windows), everything is just garbage I suppose I would like to know the nature of the garbage: Bad content or mis-formatting or...? If the correct words are present but are not properly formatted, then you probably have problems with the configuration file. You need to ensure that things like SourceType are properly set in order for the filters to generate the correct content for the applications to use. Also, if you are not compressing but your .conf includes CompressType (a common mistake for new module creators who are starting from another .conf and editing it to make it their own), then the resulting display will be garbage at very best. And since your content is UTF-8, did you include the Encoding descriptor? Take a look at any other dictionary modules in your Sword/mods.d directory for pointers. Compare a few to see how they differ. Perhaps post some of the content of your .conf here for us to look at. In general, it is correct that the format $$$Word1 content to describe Word1 $$$Word2 content to describe Word2 is all that's needed for an import format file to be used by imp2ld. ---------------------------------------- Project Admin, Xiphos |
||
|
|
Regular Joined: Jun 17, 2010 Post Count: 45 Status: Offline |
Thank You for the quick response. I am fairly certain the config file is correct, but will double check. What does " |
||
|
|
Regular Joined: Jun 17, 2010 Post Count: 45 Status: Offline |
What does "encoding descriptor" mean please? Johan |
||
|
|
|
|
|
Current timezone is GMT Jun 18, 2013 4:29:07 PM |