mvnForum Homepage

Print at Dec 19, 2014 5:21:28 AM View all posts in this thread on one page
Posted by Yapper at Nov 22, 2008 12:24:49 AM
sad   Why doesn't my comment work ?
Hello everybody !

I'm a new user of Gnomesword... I have Ubuntu 8.10...
I'm French, what why it am very bad in English ! sad (You can perhaps speak French)

I want to do my own comments... But I don't want to use Gnomesword (the text-editor) to do that... I would like to use either XML (OSIS) or IMP. I decided to use OSIS format.

I've tried to do my comment but it doesn't work...

I am going to explain what I've done :

(Install Gnomesword libsword6...)

1 Create mycomment.cong in ".sword/mods.d/"

[Mymodule]
DataPath=./modules/comments/rawfiles/mycomment/
ModDrv=RawFiles
Description=My Comment
About=Mes commentaire personnels
LCSH=Bible--Commentaries.
SwordVersionDate=2008-11-22


2 Create mycomment.xml

<?xml version="1.0" encoding="UTF-8" ?>
<osis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="osisCore.1.1.xsd">
<osisText osisIDWork="My commment" osisRefWork="defaultReferenceScheme">
<header>
<work osisWork="My comment">
<title>Mes commentaires</title>
<identifier type="OSIS">MC</identifier>
<language>fr</language>
</work>
</header>

<div type="section" annotateType="commentary" annotateRef="Gen.1.1">
<p>Comment of the beginning</p>
</div>

</osisText>
</osis>


3 Terminal :
osis2mod .sword/modules/comments/rawfiles/mycomment/ <where is the .xml>

There are 4 files in .sword/modules/comments/rawfiles/mycomment :
nt - nt.vss - ot - ot.vss

Problem : My comment called "mycomment" appears in Gnomesword but it's empty... there are not comment for Genesis 1 verse 1...
I think the problem is in file mycomment.xml
In addiction I think it should work even if it's not complete...

My question : Maybe I have forgotten something... If you see mistakes in a file "mycomment" (.cong and .xml), can you correct the mistakes...

(I don't know the xml format but it know the (x)HTML format)

Configuration :
- Ubuntu Hardy
- Gnomesword 2.2.3
- libsword6 is installed and osis2mod and imp2vs work...

I have followed the web pages :
OSIS Commentaries
Tutorial

Posted by Osk at Nov 22, 2008 12:52:00 AM
Re: Why doesn't my comment work ?
The problem is likely in your .conf file:
[Mymodule]
DataPath=./modules/comments/rawfiles/mycomment/
ModDrv=RawFiles
Description=My Comment
About=Mes commentaire personnels
LCSH=Bible--Commentaries.
SwordVersionDate=2008-11-22

See http://www.crosswire.org/wiki/index.php/DevTools:confFiles for a complete list of .conf file values.

If you are using osis2mod to compile the module, you will need to change the ModDrv. If you are not compressing the module, you can change ModDrv to RawCom. If you are compressing it, you can change it to zCom, but will also need to add CompressType and BlockType values (according to the arguments you supply to osis2mod).

In addition, you should add SourceType=OSIS so that GnomeSword knows how to render the text correctly.

So, you likely want something like:
[Mymodule]
DataPath=./modules/comments/rawfiles/mycomment/
ModDrv=RawCom
Description=My Comment
About=Mes commentaire personnels
LCSH=Bible--Commentaries.
SwordVersionDate=2008-11-22
SourceType=OSIS

Let us know if this works.

Posted by Yapper at Nov 22, 2008 5:48:04 AM
Re: Why doesn't my comment work ?
It doesn't work.. sad
I've changed the file called "mycomment.conf" (add a line).
It's still the same problem, I can see the comment, it's empty... there are nothing in the right column without "[*Mycomment*][Genèse 1:1]".
We should see the comment which is "Comment of the beginning"...

How can I change the ModDrv ? What is it ?
What should I put in the terminal ?
Can I compile my file without compressing ???

Thank you for your help...

EDIT :
I've change the ModDrv, I've tried : "RawFiles" and "zCom"... It's still the same problem...

Posted by mdbergmann at Nov 23, 2008 8:59:14 PM
Re: Why doesn't my comment work ?

I've change the ModDrv, I've tried : "RawFiles" and "zCom"... It's still the same problem...

As Osk said, you need to use "RawCom" and not compress your module.
If you compress you need to use zCom driver and some more attributes like CompressType and BlockType.


Manfred

Posted by Yapper at Nov 24, 2008 8:04:29 AM
Re: Why doesn't my comment work ?
Thank you for your message.

I can't test it now... I've not enough time.
I will try to follow what you said... (change .cong + compilation...)

Posted by Yapper at Nov 26, 2008 4:19:03 AM
Re: Why doesn't my comment work ?
Thank you for your answer... I've tested many possibilities today...

First : Without Compressing

I've used "RawCom" for the ModDrv

Content of the file : mycomment.conf


[Mycomment]
DataPath=./modules/comments/rawcom/mycomment/
ModDrv=RawCom
SourceType=OSIS
Lang=en
Description=My own Comment
About=Mes commentaires personnels...
SwordVersionDate=2008-11-26


In the terminal :
osis2mod ~/.sword/modules/comments/rawcom/mycomment ~/mycomment.xml


Second : With Compressing

I've changed the file .conf and use "zCom" for the ModDrv because "zCom" is for compressed commentaries...
Wiki - Conf Files

File mycomment.conf


[Mycomment]
DataPath=./modules/comments/zcom/mycomment/
ModDrv=zCom
BlockType=BOOK
SourceType=OSIS
CompressType=ZIP
Lang=en
Description=My own Comment
About=Mes commentaires personnels...
SwordVersionDate=2008-11-26


(My mycomment.xml is still the same)

In the terminal :
osis2mod ~/.sword/modules/comments/zcom/mycomment ~/mycomment.xml 0 2 4


2 to compress in ZIP format
4 to use books for the blockType

But the problem persist... Maybe the syntax of the file XML is false or the compilation doesn't work.
In addiction I think I use the traditionnal syntax for the terminal also the compilation should work...
I've tested mycomment.conf with a "true" comment (bring in Internet but compresed) and it works. It think the problem isn't in the file .conf... I can see informations about mycomment if I click... I might work.
If you see a mistake in the XML file... Tell to me

Posted by Yapper at Nov 26, 2008 4:32:16 AM
Re: Why doesn't my comment work ?
If It doesn't work, I will test with a IMP format... Is it more complicated ??? It seems easy... Who uses this format because it is proprietary ?

What format do you advise me?
I prefer a simple format and a format which works well
I've seen this page

Posted by ua4ever at Nov 26, 2008 12:11:26 PM
Re: Why doesn't my comment work ?
Dear Yapper,

Just a suggestion. You could start with an osis file that is known to work. Look at the KJV here (well, it's too complicated for your needs but just ignore the osis tags that you do not yet need):

http://www.crosswire.org/~dmsmith/kjv2006/sword/kjvxml.zip

Download KJV's Sword module and look at its conf file. Then try to build your own file on the basis of KJV's osis file and conf file.

I am also a novice with Sword sowftware. I have recently made my own osis files and was able to use osis2mod to make working Sword modules.

Example of the conf file that I used (you may need to change Lang value to fr if you have French text, and you have a commentary, while I had a Bible text):

[ExampleNT]
DataPath=./modules/texts/rawtext/ExampleNT/
ModDrv=RawText
SourceType=OSIS
BlockType=BOOK
Encoding=UTF-8
SwordVersionDate=2008-10-10
Lang=en
OSISVersion=2.0
GlobalOptionFilter=OSISFootnotes
GlobalOptionFilter=OSISRedLetterWords
GlobalOptionFilter=OSISHeadings
OSISqToTick=true
Version=1.0
Description=Example
About=Example
LCSH=Bible.
DistributionLicense=Public Domain

Posted by Yapper at Nov 28, 2008 8:02:46 AM
sad   Re: Why doesn't my comment work ?
Thank you for your help, ua4ever
I think your idea (have true file) is well but I want to do commentary and not a book or a Bible.
I've searched but I haven't found a commentary in XML format in Internet.

I've done a IMP commentary ant it works perfectely... but it's a proprietary format sad I prefer using a free format but It doesn't work.

If somebody has a commentary in XML (OSIS), can I download it, or can he put a extract ? It should help me to know the syntax..


I think the vpl (verse-per-line) format is easy and free, but can I make a commentary in this format ?