So it turns out I had problem in test_com.conf file: `ModDrv` should be `RawCom` (and not `RawCom4` as it is in e.g. augustin.conf or chrysostom.conf).
On Wed, 8 Jan 2025 at 15:57, ZdPo Ster <zdpos...@gmail.com> wrote: > I tried to create one but it does not work. > > Here are my steps: > > 1. As far as I understand https://wiki.crosswire.org/OSIS_Commentaries > OSIS Commentary module is like a Bible module with slightly different > markups for verses. So I created test bible module (see attachment > sword_text_test.zip) and it worked fine: > > osis2mod test_text/modules/texts/rawtext/test_text bible_example.osis.xml > > sudo installmgr -li test_text/ TestOSIS > > diatheke -b TestOSIS -k Gn 1:1 > Genesis 1:1: In the beginning God created the Heauen and the Earth. > (TestOSIS) > > 2. Based on wiki I tried to make adaption for Commentary module (see > sword_com_test.zip) but it does not work (no output and no error): > > osis2mod test_com/modules/comments/rawcom/test_com commentary.osis.xml > > sudo installmgr -li test_com/ Test_Com > > diatheke -b Test_Com -k Gn 1:1 > Genesis 1:1: > (Test_Com) > > I tried other commentary and it works: > > diatheke -b Augustin -k Gn 1:1 > Genesis 1:1: <div annotateRef="Gen.1.1-Job.42.17 Prov.1.1-Mal.4.6" > annotateType="commentary" sID="gen1" type="section"/> This module only > contains content from New Testament material and the Psalms. <div > annotateRef="Gen.1.1-Job.42.17 Prov.1.1-Mal.4.6" annotateType="commentary" > eID="gen1" type="section"/> > (Augustin) > > I tried the Windows (Xiphos) version of tools and OpenSUSE version, but it > did not help. > > I tried osis2mod with debug option but I see any problem there: > > osis2mod test_com/modules/comments/rawcom/test_com commentary.osis.xml > -d 512 > You are running osis2mod: $Rev: 3431 $ > DEBUG(ARGS): > path: test_com/modules/comments/rawcom/test_com > osisDoc: commentary.osis.xml > create: 0 > compressType: > blockType: 4 > compressLevel: 0 > cipherKey: > normalize: 1 > DEBUG(FOUND): End of header found > DEBUG(FOUND): Found first div and pitching prior material: <xml > encoding="UTF-8" version="1.0"> <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.bibletechnologies.net/osisCore.2.1.1.xsd"> <osisText > osisIDWork="EXAMPLE" osisRefWork="Commentary" xml:lang="en"> <header> <work > osisWork="EXAMPLE"> <title>King James Version of 1611</title> <identifier > type="OSIS">EXAMPLE.TutorEncoding</identifier> > <refSystem>Bible.EXAMPLE</refSystem> </work> <work osisWork="Commentary"> > <refSystem>Bible.EXAMPLE</refSystem> </work> </header> > DEBUG(FOUND): New book is Gen > DEBUG(FOUND): Current chapter is Gen.1 (Gen.1) > DEBUG(FOUND): Entering verse > DEBUG(FOUND): New current verse is Gen.1.1 > DEBUG(FOUND): osisID/annotateRef is adjusted to: Gen.1.1 > DEBUG(FOUND): Entering verse > DEBUG(FOUND): New current verse is Gen.1.2 > DEBUG(FOUND): osisID/annotateRef is adjusted to: Gen.1.2 > DEBUG(FOUND): Entering verse > DEBUG(FOUND): New current verse is Gen.1.3 > DEBUG(FOUND): osisID/annotateRef is adjusted to: Gen.1.3 > SUCCESS: osis2mod: has finished its work and will now rest > > Any suggestions on what I am doing wrong? > > On Sun, 5 Jan 2025 at 16:28, ZdPo Ster <zdpos...@gmail.com> wrote: > >> Hello, >> >> Is there an available OSIS commentary module (source)? >> I would like to have some full example for generating module with >> osis2mod. >> >> Zdenko >> >
_______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page