[sword-devel] OSMHB module

Chris Burrell chris at burrell.me.uk
Mon Jul 15 12:41:32 MST 2013


Below a couple of files that do the conversion:

https://github.com/tyndale/step/blob/master/step-tools/src/main/java/com/tyndalehouse/step/tools/osis/OHBParser.java
https://github.com/tyndale/step/blob/master/step-tools/src/main/resources/com/tyndalehouse/step/tools/osis/ohb_parser.xsl

I think the only dependency on the Java front is Apache Commons File Utils.

The process is quite simple:

   - Takes 2 arguments: a source directory + a output file
   - Reads in the first file
   - Appends anything other than "header" from all other files
   - Runs the XSLT

I decided to strip out the prefixes/lemmas that were not numbers. Feel free
to use the code, change it, etc. I'm pretty sure it's right, but please let
me know if you spot some issues with it.

Thanks for the help on this.
Chris



On 15 July 2013 19:08, <davidtroidl at aol.com> wrote:

> The files are there to stay.  A module is just an added benefit to SWORD
> users.  Daniel Owens produced the module in the first place, and he would
> be up on what it would take to redo it.  Now that alternate v11n has been
> adopted, I would assume it could be prepared by just adjusting the lemma
> attributes.  If I remember correctly, SWORD requires strong: as a prefix to
> Strong lemmas, and the augment lemmas (a, b, etc.) could either be left as
> is, or given an aug: prefix, to distinguish them.  Though we do also have
> prefixes in the lemma, like b/7225.  I'm not sure what would be done with
> these.  To just get a module going, you could drop that part of the lemma
> for now.  The name of the module should be OSHB.
>
> David
>  -----Original Message-----
> From: Chris Burrell <chris at burrell.me.uk>
> To: SWORD Developers' Collaboration Forum <sword-devel at crosswire.org>
> Sent: Sun, Jul 14, 2013 4:04 am
> Subject: Re: [sword-devel] OSMHB module
>
>  Thanks David. A few of extra questions:
>
> - It looks from the files under the wlc folder that they are there to
> stay. Or do they get ripped out upon module creation? Is there a reason why
> they are not using "seg"?
> - How does one go about making the new OHB module?
>
>
>  Chris
>
>
>
> On 14 July 2013 01:55, David Troidl <DavidTroidl at aol.com> wrote:
>
>>  The slashes are morphological divisions.  They come from the Westminster
>> Hebrew Institute, through Chris Kimball, at
>> http://www.tanach.us/Tanach.xml#Home
>>
>> The OSMHB is an older module.  Work has continued on the OSHB, our
>> updated version, at
>> https://github.com/openscriptures/morphhb
>> No one has gotten around to updating the module, though.
>>
>> David
>>
>>
>> On 7/13/2013 12:10 PM, Chris Burrell wrote:
>>
>>  Hi
>>
>> I'm looking at the Hebrew text, and I'm seeing some forward slashes. Can
>> someone help me understand if this is a module issue or the slash means
>> something.
>>
>>  Below is 2 Chronicles 25:14. The second last 'w' has a forward slash in
>> it.
>>
>>  <div><title type="x-gen">2 Chronicles 25:14</title><verse
>> osisID="2Chr.25.14"><w lemma="strong:H1961">וַיְהִ֗י</w> <w
>> lemma="strong:H0310">אַחֲרֵ֨י</w> <w lemma="strong:H0935">ב֤וֹא</w> <w
>> lemma="strong:H0558">אֲמַצְיָ֙הוּ֙</w> <w
>> lemma="strong:H5221">מֵֽהַכּ֣וֹת</w> <w lemma="strong:H0853">אֶת</w><seg
>> type="x-maqqef">־</seg><w lemma="strong:H0130">אֲדוֹמִ֔ים</w> <w
>> lemma="strong:H0935">וַיָּבֵ֗א</w> <w lemma="strong:H0853">אֶת</w><seg
>> type="x-maqqef">־</seg><w lemma="strong:H0430">אֱלֹהֵי֙</w> <w
>> lemma="strong:H1121">בְּנֵ֣י</w> <w lemma="strong:H8165">שֵׂעִ֔יר</w> <w
>> lemma="strong:H5975">וַיַּֽעֲמִידֵ֥ם</w> <w>ל֖וֹ</w> <w
>> lemma="strong:H0430">לֵאלֹהִ֑ים</w> <w
>> lemma="strong:H6440">וְלִפְנֵיהֶ֥ם</w> <w
>> lemma="strong:H7812">יִֽשְׁתַּחֲוֶ֖ה</w> *<w>וְלָ/הֶ֥ם</w>* <w
>> lemma="strong:H6999">יְקַטֵּֽר</w><seg
>> type="x-sof-pasuq">׃</seg></verse></div>
>>
>>
>>  This also occurs in other places ( for example, 1Chr.11.24; 12.19;).
>> Interestingly, the times I'm seeing a /, are also the times when no strong
>> numbers have been coded against it.
>>
>>  Chris
>>
>>
>>
>>  _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.orghttp://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>>
>>
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>>
>
>   _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.orghttp://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20130715/7a3782e6/attachment.html>


More information about the sword-devel mailing list