Welcome Guest  | Guest Setting  |  Register  |   Login

 Quick Go » Select a forum General --------------------------------       General Discussion       Feature Requests The SWORD Project for PCs --------------------------------       Bible Desktop (cross-platform JSword frontend)       The SWORD Project for Windows       Xiphos       BibleTime       Eloquent (was MacSword) The SWORD Project for Handhelds --------------------------------       SwordReader for PocketPC       QPSword for Zaurus/Qtopia       PocketSword for iOS Developers and Server Admins --------------------------------       Web Interfaces Modules --------------------------------       Module Requests       Module Making

Author
 This topic has been viewed 3097 times and has 4 replies
salavine1
Stranger

USA
Joined: Apr 11, 2009
Post Count: 1
Status: Offline
 OSIS Compliant Daily Devotional Help

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
LCSH=Devotional calendars.
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">
<work osisWork="KJV">
<identifier type="OSIS">Bible.en</identifier>
<refSystem>Bible</refSystem>
</work>
<work osisWork="KJV">
<type type="OSIS">Bible</type>
<refSystem>Bible</refSystem>
</work>
<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>
 [Apr 11, 2009 2:32:08 PM] [Link]
Osk
Developer

Joined: Sep 17, 2003
Post Count: 211
Status: Offline
 Re: OSIS Compliant Daily Devotional Help

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.
 [Apr 11, 2009 9:27:26 PM] [Link]
Spurgeon
Stranger

India
Joined: Sep 21, 2011
Post Count: 1
Status: Offline
 Re: OSIS Compliant Daily Devotional Help

Thanks!

I could make a Bible Reading Plan (Bible in a Year) using your tips!

regards
spurgeon
 [Sep 21, 2011 3:08:16 AM] [Link]
john0
Stranger

Australia
Joined: Aug 7, 2012
Post Count: 2
Status: Offline
 Re: OSIS Compliant Daily Devotional Help

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  [Aug 7, 2012 4:38:06 PM] [Link] john0 Stranger Australia Joined: Aug 7, 2012 Post Count: 2 Status: Offline  Re: OSIS Compliant Daily Devotional Help 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
 [Aug 7, 2012 5:46:52 PM] [Link]

 Current timezone is GMT Aug 27, 2014 4:07:50 PM