|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 5 |
|
| Author |
|
|
Stranger USA Joined: Apr 11, 2009 Post Count: 1 Status: Offline |
Hello All, I installed PBible and like it so I thought that I would create our quarterly daily devotional into an installable book. I have spent 3 days now reading over documentation and building examples to try importing. I would like someone to review what I have so far and tell me what I have done wrong. I can import, but nothing shows up. I have tested in The Sword Project and PBible with the same results. I believe the the CONF file is correct but the XML file needs some work. Any help or suggestions in this would be greatly appreciated. Once I understand what I'm doing I will start a Tutorial that might help others to create their own. Since there appears to be very little documentation regarding Daily Devotionals. *PROCESS* 1-Created folder structure listed below. 2-Used XML2GBS.exe to create 3 files idx,dat, bdt (no idea what the 3rd file .bdt is for ). 3-Moved files to idx & dat to the folder listed below. 3-Moved the CONF file the folder listed below. 4-Zipped up the mods.d and & modules folders. 5-Installed the book. 6-Uninstall the book. *FOLDER STRUCTURE* \mods.d\test1.conf \modules\lexdict\rawld\devotionals\test1\text1.dat \modules\lexdict\rawld\devotionals\test1\text1.idx *CONF FILE* [test1] DataPath=./modules/lexdict/rawld/devotionals/test1/test1 ModDrv=RawLD SourceType=OSIS Lang=en Feature=DailyDevotion Category=Daily Devotional Description=Quarterly About=This is the Adult Quarterly for 2QT 2009 DistributionLicense=Public Domain LCSH=Devotional calendars. TextSource=http://www.google.com/ SwordVersionDate=2009-04-11 *XML FILE* <?xml version="1.0" encoding="UTF-8"?> <osis xmlns="http://www.bibletechnologies.net/2003/OSIS/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bibletechnologies.net/2003/OSIS/namespace http://www.bibltechnolgologies.net/OSIS/osisCore.2.1.xsd"> <osisText osisIDWork="KJV" osisRefWork="defaultReferenceScheme" xml:lang="en"> <header> <work osisWork="KJV"> <title>Adult Daily Devotional</title> <identifier type="OSIS">Bible.en</identifier> <refSystem>Bible</refSystem> </work> <work osisWork="KJV"> <type type="OSIS">Bible</type> <refSystem>Bible</refSystem> </work> </header> <date>04.11</date> <p><div osisID="04.11">This is a test for April 11th</div></p> <date>04.12</date> <p><div osisID="04.12">This is a test for April 12th</div></p> <date>04.13</date> <p><div osisID="04.13">This is a test for April 13th</div></p> <date>04.14</date> <p><div osisID="04.14">This is a test for April 13th</div></p> <date>04.15</date> <p><div osisID="04.15">This is a test for April 15th</div></p> <date>04.16</date> <p><div osisID="04.16">This is a test for April 16th</div></p> <date>04.17</date> <p><div osisID="04.17">This is a test for April 17th</div></p> <date>04.18</date> <p><div osisID="04.18">This is a test for April 18th</div></p> </osisText> </osis> |
||
|
|
Developer Joined: Sep 17, 2003 Post Count: 209 Status: Offline |
It looks like you're creating a GenBook module rather than an LD-type module. That's permissible, it will just never show up like other daily devotionals do. To make it work, you need to change RawLD to RawGenBook in your .conf. You also need to copy ALL of the files created by xml2gbs--you can't arbitrarily decide to leave out some of the module files. The only supported way for you to import OSIS text into a RawLD/zLD module, however, is to create an IMP file from it where the date is the key value. You need to take your markup: <date>04.11</date> <p><div osisID="04.11">This is a test for April 11th</div></p> <date>04.12</date> <p><div osisID="04.12">This is a test for April 12th</div></p> <date>04.13</date> <p><div osisID="04.13">This is a test for April 13th</div></p> <date>04.14</date> <p><div osisID="04.14">This is a test for April 13th</div></p> <date>04.15</date> <p><div osisID="04.15">This is a test for April 15th</div></p> <date>04.16</date> <p><div osisID="04.16">This is a test for April 16th</div></p> <date>04.17</date> <p><div osisID="04.17">This is a test for April 17th</div></p> <date>04.18</date> <p><div osisID="04.18">This is a test for April 18th</div></p> and change it to IMP format: $$$04.11 <p><div osisID="04.11">This is a test for April 11th</div></p> $$$04.12 <p><div osisID="04.12">This is a test for April 12th</div></p> $$$04.13 <p><div osisID="04.13">This is a test for April 13th</div></p> $$$04.14 <p><div osisID="04.14">This is a test for April 13th</div></p> $$$04.15 <p><div osisID="04.15">This is a test for April 15th</div></p> $$$04.16 <p><div osisID="04.16">This is a test for April 16th</div></p> $$$04.17 <p><div osisID="04.17">This is a test for April 17th</div></p> $$$04.18 <p><div osisID="04.18">This is a test for April 18th</div></p> Using OSIS internally won't cause any problems and is a good idea. Then use imp2ld to import. The documentation specifically addressing daily devotionals is at http://www.crosswire.org/wiki/DevTools:Modules. Just search for "devotional" on that page and it should point you to the pertinent information. |
||
|
|
Stranger India Joined: Sep 21, 2011 Post Count: 1 Status: Offline |
Thanks! I could make a Bible Reading Plan (Bible in a Year) using your tips! regards spurgeon |
||
|
|
Stranger Australia Joined: Aug 7, 2012 Post Count: 2 Status: Offline |
I'm trying to create a reading plan for sword and am having a great deal of trouble finding a simple example of how the source files are to be formatted. Does anyone have a link to an example of a OSIS formatted devotional, or a working snippet? From what I've been able to glean, I have this: devtest.imp $$$01.01 <p><div osisID="01.01">This is a test Jan 1: <reference osisRef="Genesis.1.1">Genesis 1:1</reference> </div></p> $$$01.02 <p><div osisID="01.02">January 2</div></p> $$$08.08 <p><div osisID="08.09">August 8</div></p> devtest.conf [DEVTEST] DataPath=./modules/lexdict/rawld/devotionals/devtest/devtest ModDrv=RawLD SourceType=OSIS Lang=en Description=Test Feature=DailyDevotion Categoy=Daily Devotional About= Johns test devotion commands imp2ld devtest.imp cp devtest.conf ~/.sword/mods.d/ cp devtest.* ~/.sword/modules/lexdict/rawld/devotionals/devtest/ But this just doesn't work. The devotion in Xiphos comes up with no text. When I go to view it in a new window (as a lexicon??) it gives 10 entries all the same, with some of the xml as the key, and 01.02 January 2 08.08 August 8 as the text for all of them. Clearly I have the wrong format, but could someone please point me to an example of what is the correct format??? Thanks |
||
|
|
Stranger Australia Joined: Aug 7, 2012 Post Count: 2 Status: Offline |
I've had some success with this. One key was to use the commandline: imp2ld devtest.imp devtest 2 At that stage it was still missing January 1, but I could fix that by adding an additional entry at the top with $$$00.00 This is just a hack to get it to behave. Anyone know what is the "right" way to do that? I notice now that Xiphos doesn't seem to need the <p> or <div> tags. Are these recommended or just superflous in the example above? What is the recommended way of doing links in this case? If I do <reference osisRef="Genesis.1">Genesis 1</reference> Then when I click on it it just gives a verse list of each verse in the chapter in the verse list window. I would have preferred clicking to just go straight to that passage in the Bible window. Is there a way of doing that? Alternatively, as there are a number of passages for that day, is it possible to tie together two references such as these: <reference osisRef="Genesis.1.1">Genesis 1</reference> <reference osisRef="Psalm.1.1">Psalm 1-2</reference> into one unit, so that when you click on them they both appear in the verse list? Otherwise all my links will just end up as single entry verse-lists, having to click the link and then click in the verse list. Thanks |
||
|
|
|
|
Current timezone is GMT May 18, 2013 1:42:55 PM |