[sword-devel] How to make commentary module

Michael H cmahte at gmail.com
Sun Jan 9 11:25:12 EST 2022


This isn't really a "what's wrong", but more of a way to eliminate noise,
so you can find whats wrong:

I'd try building a raw commentary first. Anything that will be listed on a
repository will be remade by the repo maintainer anyway. It will make the
compile faster, so each attempt takes less time... and it may show that's
what's broken already. But once you get a rawcom that works, you can work
on making the compressed build command == compressed module config
separately from dealing with osis to module issues.

DataPath=./modules/comments/rawcom/test
Encoding=UTF-8
ModDrv=rawCom
BlockType=CHAPTER
SourceType=OSIS



On Sun, Jan 9, 2022 at 9:52 AM Marjan Šavli <marjan.savli at gmail.com> wrote:

>
> Hi!
>
> Trying to make commentary module.
> XML validates.
> Osis2mod makes module.
> In Xiphos or Andbible or Bishop there is "TEST" module.
> But none commentary for Gen1, ..., Gen 6. as it is in test.xml.
>
> Prepared also skeleton for whole Bible (Download link
> <https://wetransfer.com/downloads/d1d032a09dfeb12203a6def92a09f7e620220109154839/e6cfdbaaa7840773056ebf7c59e4307220220109154904/dfbb95>
> - 7 days). But problem is the same.
>
> Can you give me a hint what I am doing wrong?
>
> Best regards,
>
> Marjan
>
>
> ====test.xml==========
> <?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
> M:/SloKJVA/xml_test/osisCore.2.1.1.xsd">
>
>   <osisText osisIDWork="TEST" osisRefWork="Commentary" xml:lang="en"
> canonical="true">
>             <header>
>                 <work osisWork="TEST">
>                     <title>TEST</title>
>                     <type type="OSIS">Commentary</type>
>                     <identifier type="OSIS">TEST_ID</identifier>
>                     <rights type="x-copyright">Licenca: CC BY-NC-ND
> 4.0</rights>
>                     <scope></scope>
>                     <refSystem>Commentary</refSystem>
>                 </work>
>             </header>
>
>     <div type="bookGroup">
>       <div type="book" osisID="Gen">
>         <chapter osisID="Gen.01">
>                <div type="section" annotateType="commentary"
> annotateRef="Gen.1.1"><p>Blah blah...</p>
>          </div><div type="section" annotateType="commentary"
> annotateRef="Gen.1.2"><p>Blah blah...</p>
>          </div><div type="section" annotateType="commentary"
> annotateRef="Gen.1.3"><p>Blah blah...</p>
>          </div><div type="section" annotateType="commentary"
> annotateRef="Gen.1.4"><p>Blah blah...</p>
>          </div><div type="section" annotateType="commentary"
> annotateRef="Gen.1.5"><p>Blah blah...</p>
>          </div><div type="section" annotateType="commentary"
> annotateRef="Gen.1.6"><p>Blah blah...</p>
>          </div>
>         </chapter>
>       </div>
>     </div>
>   </osisText>
> </osis>
> =============
>
>
> =====test.conf====
> [TEST]
>
> Description=Test
> DataPath=./modules/comments/zcom/test
> Encoding=UTF-8
> ModDrv=zCom
> BlockType=CHAPTER
> SourceType=OSIS
> CompressType=ZIP
>
> GlobalOptionFilter=UTF8GreekAccents
> GlobalOptionFilter=OSISHeadings
> GlobalOptionFilter=OSISScripref
>
> TextSource=https://test.net
> DistributionLicense=Public Domain
>
> Category=Commentaries
> OSISVersion=2.1.1
> MinimumVersion=1.5.9
> About=test
> Lang=en
> LCSH=Bible--Commentaries.
> SwordVersionDate=2022-01-08
> InstallSize=2000
> Version=1.0
> History_1.0=Just Initial Release for testing
> ================
>
>
> ======Making module======
> C:\temp\sword\osis2mod.exe C:\temp\sword\sword\modules\comments\zcom\test
> C:\temp\sword\test_sword.xml -v KJVA -z
> You are running osis2mod: $Rev: 3431 $
> SUCCESS: C:\temp\sword\osis2mod.exe: has finished its work and will now
> rest
> =============
>
>
> =============
> Directory of c:\Temp\sword\sword\modules\comments\zcom\test
> 09. 01. 2022  16:22                 0 nt.bzs
> 09. 01. 2022  16:22            82.460 nt.bzv
> 09. 01. 2022  16:22                 0 nt.bzz
> 09. 01. 2022  16:22                24 ot.bzs
> 09. 01. 2022  16:22           300.280 ot.bzv
> 09. 01. 2022  16:22             2.398 ot.bzz
> =============
> Directory of c:\Temp\sword\sword\mods.d
> 09. 01. 2022  15:03               537 test.conf
> ===============
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20220109/1114fcfa/attachment.html>


More information about the sword-devel mailing list