[sword-devel] Adding local modules to Bishop (Android 13.0)

2023-07-04 Thread Luke Sharkey
    



Hi,



I have not been able to add local modules to Bishop. I use the dialogue to add 
the modules, which results with no modules added, but no error message.



I am using zip files saved from the Crosswire website. I am not sure how to 
debug this, but I can do so if told.



(This follows a note on the Bishop google play / git pages)


Thanks,



Luke___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Sword -r2741

2012-10-23 Thread luke
I'm back after a week.  My wife gave birth.
I would like to thank David Haslam for his recent discussions on the 
sword-utilities in Windows.  This is exactly the problem that I have with 
building our projects module which we really want to make available online.

In regards to the section headings.  AndBible, Eloquent, PocketSword, BPBible, 
BibleDesktop, Alkitab all work fine with the headings as created in -r2679.  
This means that it is only Xiphos that cannot display the headings.  I assumed 
this would mean that Xiphos has the bug, but I was told in my bug request that 
the problem is in sword.  Here I am told that the problem is in my osis.

The good news is that my supervisor has agreed that we will just forge ahead 
and submit our module to sword and to disregard the errors in Xiphos (just not 
encourage the use of it).  However, I would like to make one last attempt to 
see if there is something I can do on my part to get it fixed.

In Issue 18, Troy Griffitts told me to upload a snippet of my osis so that it 
could be examined.  I hope someone can help me identify something I might have 
wrong.

Here is the snippet of osis as Troy requested, see any problems?

?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.bibletechnologies.net/osisCore.2.1.1.xsd;
osisText osisRefWork=Bible xml:lang=sml osisIDWork=KitaSML
header
work osisWork=KitaSML/
/header
div type=book osisID=Gen
title type=mainPANAGNA'AN/title
div type=sectiontitle subType=x-preversePahati pasal Jūd itu/title
pIn Jūd Panagna'an itu palbahagi'an Kitab Tawrat, ‘Genesis’ ōnna ma bahasa 
Ingglis...takdil ni manusiya'./p
pItiya'...maina'an./p
pAheka ... angandol ma iya./p
/div
chapter sID=Gen.1 osisID=Gen.1/
div type=majorSection
titleJŪD PANAGNA'AN/title
/div
div type=majorSection
titlePalbahagi'an Kitab Tawrat/title
div type=section
title subType=x-preverseTagna'an Dunya itu/title
p
verse sID=Gen.1.1 osisID=Gen.1.1/
Ma tagna'anna to'ongan, Tuhan ya bay amapanjari dunya maka langit.
verse eID=Gen.1.1/
verse sID=Gen.1.2 osisID=Gen.1.2/
Na, ma...isab RūnoteRū Tuhan: ‘Nyawa Tuhan’ bang ma kasehe'an./note Tuhan 
... inān.
verse eID=Gen.1.2/
/p
...
verse sID=Gen.1.31 osisID=Gen.1.31/
Manjari ... ka'nnomna na.
verse eID=Gen.1.31/
/p
chapter eID=Gen.1/
chapter sID=Gen.2 osisID=Gen.2/
p
verse sID=Gen.2.1 osisID=Gen.2.1/
Buwattē' bay pamapanjari dunya maka langit maka kamemon ai-aina.
verse eID=Gen.2.1/
/p
p
verse sID=Gen.2.2 osisID=Gen.2.2/
Ta'abut llaw kapitu'na, aubus na Tuhan ma kamemon hinangna ati pahali na iya.
verse eID=Gen.2.2/
verse sID=Gen.2.3 osisID=Gen.2.3/
Binarakatan...ai-ai.
verse eID=Gen.2.3/
/p
/div
div type=section
title subType=x-preverseSi Mbo' Adam maka si Sitti Hawa/title
p
verse sID=Gen.2.4 osisID=Gen.2.4/
Na, buwattē' ya pamapanjari langit maka dunya.
/p
p
Tagna' bay kapamapanjari divineNamePANGHŪ'/divineName 
TuhannotedivineNamePANGHŪ'/divineName Tuhan: atawa ‘Tuhan Yawe.’ Yawe itu 
dī ōn Tuhan, sagō' mbal agon kasandalan kawasana angkan mbal tak'bbat e' bangsa 
Yahudi. divineNamePANGHŪ'/divineName ya pamaganti' sigām bang amassa 
Kitab./note ma langit maka dunya,
verse eID=Gen.2.4/

From: sword-devel-requ...@crosswire.org [sword-devel-requ...@crosswire.org]
Sent: Sunday, October 14, 2012 3:00 AM
To: sword-devel@crosswire.org
Subject: sword-devel Digest, Vol 103, Issue 18

Send sword-devel mailing list submissions to
sword-devel@crosswire.org

To subscribe or unsubscribe via the World Wide Web, visit
http://www.crosswire.org/mailman/listinfo/sword-devel
or, via email, send a message with subject or body 'help' to
sword-devel-requ...@crosswire.org

You can reach the person managing the list at
sword-devel-ow...@crosswire.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of sword-devel digest...


Today's Topics:

   1. Re: Sword -r2741 (Troy A. Griffitts)


--

Message: 1
Date: Sat, 13 Oct 2012 16:47:10 +0200
From: Troy A. Griffitts scr...@crosswire.org
To: SWORD Developers' Collaboration Forum sword-devel@crosswire.org
Subject: Re: [sword-devel] Sword -r2741
Message-ID: 6fb6f40d-d7be-482b-a549-e1ae7fb6d...@email.android.com
Content-Type: text/plain; charset=utf-8

Luke, it would be very helpful if you could post a brief snippet of OSIS that 
represents the problem you are having. One of us will gladly confirm that it 
works in the lastest importer and engine.

luke l...@motimail.com wrote:

In recent correspondence with Karl Kleinpaste of the Xiphos project
about display issues with our project's module.  He recommended that I
try sword's latest -r2741 because it has recent changes regarding osis
headings.  I do not have access to this version of sword.

Would

[sword-devel] Sword -r2741

2012-10-11 Thread luke
In recent correspondence with Karl Kleinpaste of the Xiphos project about 
display issues with our project's module.  He recommended that I try sword's 
latest -r2741 because it has recent changes regarding osis headings.  I do not 
have access to this version of sword.

Would someone be willing to run our project's osis file through the latest 
version of sword (apparently -r2741), create a module from it and then send me 
the results?
- My OSIS was builting using the sword script from USFM files.
- My OSIS validates
- I have already ran the fix for titles on my osis.

Please contact me if you are willing,
Thanks
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] OSIS is ready (97% sure)

2012-09-23 Thread luke
My language project is very close to being ready to electronically publish our 
scripture through sword.  I have created an osis file which validates and has 
no untransformed USFM markers.  I have ran the fixtitle script over the osis 
file.  I have a .conf file and a locale file ready.

I have created modules using two versions of osis2mod (using Windows versions 
available here: http://www.crosswire.org/ftpmirror/pub/sword/utils/win32/) and 
checked them in the various frontends.
These are the two versions I used: sword-utilities-1.6.2-r2673.zip and 
sword-utilities-1.6.1-r2578.zip.

These are the problems I have ran into:
If I use the most current version (1.6.2-r2673)
My headings do not show up at all in Xiphos.  This is true whether I use the 
fixtitle script on the osis or not.  Also in Xiphos and in Pocketsword there is 
a double line break between paragraphs.

If I use the previous version (1.6.1-r2578)
My headings now display fine in Xiphos.  However, in Xiphos, Pocketsword, and 
AndBible the first verse number of new paragraphs is displayed on a line of its 
own.  The text of the verse then follows on the next line.

These visual hiccups don't look good in the eyes of our project manager who 
will give the final go signal on publishing.  (Bible translators tend to be 
perfectionists, which I am thankful for).  Is there something that I can do on 
my end with my current osis file in order to fix these issues?  Should I submit 
the OSIS files now and see if the crosswire team's created module might fix 
these problems (there is a high chance that the linux version of osis2mod is 
working better than the windows)?  It is also possible that these are all bugs 
that I need to register with the various frontends.

Please advise.
Thanks 
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] More questions regarding osis/module making woes

2012-07-16 Thread Luke Ruth S.
I've seen it mentioned on the wiki that jsword does not read the 
x-preverse correctly so that it places a number before the heading. Is 
there anyway to make that show up correctly in jsword? Why does ESV get 
it correctly? My guess is that ESV might be imported from thtml and not 
osis? Also I registered a bug with xiphos over a year ago that the 
headings at beginning of chapters don't show. I missed the e-mail where 
the developer asked for a copy of my osis and module and so the bug is 
now closed. The developer said he couldn't reproduce the problem. Has 
anyone else experienced this problem with xiphos? I find it strange that 
enabling or disabling header within xiphos doesn't actually have any 
affect on my headers. They appear to be hard-coded into the text. My 
boss is looking for perfection on this publishing and I am no where 
close to being able to deliver. Any help you can provide would be 
greatly appreciated. I will include a small portion of my osis from the 
beginning of a chapter. The osis was originally exported from Bibledit 
and now I'm making manual edits to tweak things in order for it to work. 
It does validate, but Peter showed me that there were still some funky 
things in it. Anyway, here goes:


verse sID=Matt.15.39 osisID=Matt.15.39/
Jari pinapole' saga a'a inān e' si Isa. Pariyata' iya ni bayanan bo' 
yampa pauntas ni lahat Magadan. verse eID=Matt.15.39/

chapter eID=Matt.15/
chapter sID=Matt.16 osisID=Matt.16 n=16/
/p
/div
div type=section
titleSaga Parisi Mikipa'nda' Paltanda'an/title
p(Markus 8:11-13, Lukas 12:54-56) /p
p
verse sID=Matt.16.1 osisID=Matt.16.1/
Manjari aniya' saga Parisi maka saga Saddusi bay pina'an ni si Isa. 
Bilahi sigām anulayan iya bo' supaya iya tajallat ma bissalana. Angkanna 
sigām mikipa'nda' paltanda'an, palsaksi'an in iya b'nnal taga-kapatut 
min Tuhan. verse eID=Matt.16.1/

verse sID=Matt.16.2 osisID=Matt.16.2/


___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] xreffix.pl and possible future questions

2012-06-27 Thread luke
☑ Cleaned usfm in Bibledit
☑ Exported to Osis from Bibledit
☑ Fixed Osis errors
☑ Manually had to go through and fix bridged verses, because though the 
usfm rendering I had was correct, usfm2osis doesn't appear to format it 
correctly in OSIS and I don't have the capabilities to fix that.
☑ Osis Validates
☑ Ran fixtitles.pl
 error missing libraries
☑ Asked Crosswire Mailing list and found needed library
☑ Ran fixtitles.pl
☑ Ran xreffix.pl
 error missing Sword.pm in @INC

So now I'm back on the mailing list asking how can I get Sword.pm installed in 
my ubuntu system.  I looked through ubuntu and crosswire repositories and found 
nothing.  I searched google for what Sword.pm might be and found nothing.
I'm now trying to guess what future issues I might have that aren't documented. 
I am unclear on what it is that I might need to edit in the xreffix.pl in order 
to adapt it for my file (as mentioned in previous e-mails).  
-In usfm the majority of our cross references are found using the parallel 
reference marker /r.
-Also, since our locale is for a minority language and has just newly been 
created, where will I need to have that file in order to make it work with the 
script?  Right now I'm guessing that it should be put in the same file as 
xreffix.pl, but I can imagine it needing to be with the other system locales.

I'm hoping that I am very close. I'm fearing that once I've done all of this, 
it still won't appear correctly in various sword front-ends and I will have to 
start over.  What a journey it has been.
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] XML Validation Used

2012-06-21 Thread luke
Here is the answer to Peter's question,
I'm using xmllint with osisCore.2.1.1.xsd as my schema.  Also about the 
language I am creating for, it is not yet in the sword project, but I have a 
local locale here on my computer that I have created.  The below output is what 
comes out when I have left a footnote in only one of the section titles.  I 
noticed that our Bible has 6 section titles with footnotes and that only the 3 
that were at the beginning of chapters were getting flagged as invalid.  I was 
able to fix two by moving the footnote to the same word used in the first verse 
of the chapter.  So far I don't have any great solutions for what to do with 
this footnote from Genesis 40.

As for the multiple verses combined into one, I have removed that from my usfm 
file and just skipped the verses that follow in the series, but it would be 
much better if they could be included in the sword module.

$ xmllint --noout --schema http://www.bibletechnologies.net/osisCore.2.1.1.xsd 
Kit@bS@m...@.osis.xml
Kit@bS@m...@.osis.xml:4125: element note: Schemas validity error : Element 
'{http://www.bibletechnologies.net/2003/OSIS/namespace}note', attribute 
'osisID': [facet 'pattern'] The value '!footnote' is not accepted by the 
pattern 
'(((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?:)?((\p{L}|\p{N}|_|(\\[^\s]))+)((\.(\p{L}|\p{N}|_|(\\[^\s]))+)*)?(!((\p{L}|\p{N}|_|(\\[^\s]))+)((\.(\p{L}|\p{N}|_|(\\[^\s]))+)*)?)?'.
Kit@bS@m...@.osis.xml:4125: element note: Schemas validity error : Element 
'{http://www.bibletechnologies.net/2003/OSIS/namespace}note', attribute 
'osisID': '!footnote' is not a valid value of the atomic type 
'{http://www.bibletechnologies.net/2003/OSIS/namespace}osisIDRegex'.
KitabS@m...@.osis.xml:4125: element note: Schemas validity error : Element 
'{http://www.bibletechnologies.net/2003/OSIS/namespace}note', attribute 
'osisID': '!footnote' is not a valid value of the list type 
'{http://www.bibletechnologies.net/2003/OSIS/namespace}osisIDType'.
Kit@bS@m...@.osis.xml fails to validate

@ used above in order to avoid Google.

Last of all, I am not able to use the perl file to fix titles.  This is the 
command I'm trying to use and the error that comes up:

perl title_cleanup.pl Kit@bS@m...@.osis.xml
Can't locate XML/LibXML.pm in @INC (@INC contains: /etc/perl 
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl .) at title_cleanup.pl line 41.
BEGIN failed--compilation aborted at title_cleanup.pl line 41.

What package might I be missing?  I installed the perl library for working with 
xml data, but the error persists.

Thanks,
Luke




From: sword-devel-requ...@crosswire.org [sword-devel-requ...@crosswire.org]
Sent: Friday, June 22, 2012 3:00 AM
To: sword-devel@crosswire.org
Subject: sword-devel Digest, Vol 99, Issue 19

Send sword-devel mailing list submissions to
sword-devel@crosswire.org

To subscribe or unsubscribe via the World Wide Web, visit
http://www.crosswire.org/mailman/listinfo/sword-devel
or, via email, send a message with subject or body 'help' to
sword-devel-requ...@crosswire.org

You can reach the person managing the list at
sword-devel-ow...@crosswire.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of sword-devel digest...


Today's Topics:

   1. Re: Please advise, final steps towards our teams electronic
  publication (currently on OSIS validation) (luke)
   2. Question about verses combined in USFM and in OSIS (luke)
   3. Re: Question about verses combined in USFM and in OSIS
  (Peter von Kaehne)
   4. Re: Please advise, final steps towards our teams electronic
  publication (currently on OSIS validation) (Peter von Kaehne)


--

Message: 1
Date: Wed, 20 Jun 2012 23:30:21 +
From: luke l...@motimail.com
To: sword-devel@crosswire.org sword-devel@crosswire.org
Subject: Re: [sword-devel] Please advise, final steps towards our
teams electronic publication (currently on OSIS validation)
Message-ID:
c994d94bc1ac494fbc2e8901b4c77e90b82dd...@nathan.motimail.com
Content-Type: text/plain; charset=us-ascii

Thank you all for your input on my questions.  I'm currently on the step of 
fixing my USFM files so that I can create a valid OSIS file.
My osis was pretty close to valid, except for:
1) we had the wrong markers for our book introductions,
2) Bibledit did not put out a valid osis header,
3) footnotes in section titles. (I don't know how to fix this)

We have 3 section titles that have dialect specific words that are used and 
need to be explained.  The translators just put a footnote with the section 
title, but apparently OSIS doesn't like this.  Is there anything I can do to 
fix this so as to not remove the footnote from its location?

Thanks, Luke

Re: [sword-devel] Please advise, final steps towards our teams electronic publication (currently on OSIS validation)

2012-06-20 Thread luke
Thank you all for your input on my questions.  I'm currently on the step of 
fixing my USFM files so that I can create a valid OSIS file.
My osis was pretty close to valid, except for:
1) we had the wrong markers for our book introductions, 
2) Bibledit did not put out a valid osis header,
3) footnotes in section titles. (I don't know how to fix this)

We have 3 section titles that have dialect specific words that are used and 
need to be explained.  The translators just put a footnote with the section 
title, but apparently OSIS doesn't like this.  Is there anything I can do to 
fix this so as to not remove the footnote from its location?

Thanks, Luke
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Question about verses combined in USFM and in OSIS

2012-06-20 Thread luke
I also want to ask again about multiple verses that have been combined into one 
verse i.e. Genesis 1:6-7.  Bibledit complains about the usfm formatting of \v 
6-7.  However, in the USFM User Reference PDF disributed by paratext this is a 
common format for usfm encoding and is used multiple times in their examples.  
Then when I look at the osis 2.1 user manual for March 2006, pg 15 it clearly 
represents a way to do this as well:

verse sID=Esth.1.1-Esth.1.2 osisID=Esth.1.1 Esth.1.2 n=1-2/
King Xerxes of Persia lived in his capital city of Susa and ruled one
hundred twenty-seven provinces from India to Ethiopia.
verse eID=Esth.1.1-Esth.1.2/

Sadly, the end result is that if I try to validate osis that includes this 
formatting, it is considered invalid.  The solution I have been using to make 
this work in GoBible and to avoid the error warnings in Bibledit is to create 
an empty verse 7 for GoBible file or in my sword project module to leave the 
text without a vs 7.  This allows me to validate, but it makes our published 
text and our electronic text different and could give the appearance to people 
using the electronic version that we have deleted parts of God's Word.  Any 
known solution that is better than this?

Thanks,
Luke

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Please advise, final steps towards our teams electronic publication

2012-06-15 Thread luke
After 1 1/2 years of waiting we have finally gotten past all textual issues for 
publishing our translated Bible into the Sword Format.  Now I need to get past 
all technical issues so that we can put it out.

History: I have used probably 4 different ways to produce Bible modules for 
Sword.
1) Bibledit (my favorite, because it seems quite easy)
Issues: If I am not mistaken it hard codes Bible references and Title names 
into the verses.
2) Paratext-Pathway export to Sword
3) Export from Paratext to OSIS. Then use xmltogbs to create module.
4) Robert H.'s script to convert to OSIS and then sword (I may have lost a 
couple of verses using this method, but I can't say that with certainty.)

Problems: Why when I do the Bibledit export do footnotes show up easily in 
xiphos, but not at all in eloquent.  (ESV does not have this problem)?
Pocketsword: shows a header at the beginning and end of a text (again ESV does 
not have this problem)?
How do I avoid hard coded bible verse references?

My overall question is what ways have you found to be the most effective module 
creating methods? What would you recommend?  I have read the various 
instructions for doing this over and over again and I have created this file so 
many times and in so many different ways that currently I am feeling quite 
disoriented with the process.  Thanks in advance for any advice that could be 
provided.

Luke Schroeder


From: sword-devel-requ...@crosswire.org [sword-devel-requ...@crosswire.org]
Sent: Thursday, June 14, 2012 3:00 AM
To: sword-devel@crosswire.org
Subject: sword-devel Digest, Vol 99, Issue 13

Send sword-devel mailing list submissions to
sword-devel@crosswire.org

To subscribe or unsubscribe via the World Wide Web, visit
http://www.crosswire.org/mailman/listinfo/sword-devel
or, via email, send a message with subject or body 'help' to
sword-devel-requ...@crosswire.org

You can reach the person managing the list at
sword-devel-ow...@crosswire.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of sword-devel digest...


Today's Topics:

   1. Re: Reading kjvfull.xml (David Haslam)


--

Message: 1
Date: Tue, 12 Jun 2012 12:30:08 -0700 (PDT)
From: David Haslam dfh...@googlemail.com
To: sword-devel@crosswire.org
Subject: Re: [sword-devel] Reading kjvfull.xml
Message-ID: 1339529408720-4650434.p...@n4.nabble.com
Content-Type: text/plain; charset=us-ascii

Hi Dan,

Yep!  First encounter with the SWORD concept can be a steep learning curve.
It was for me, when I joined up with CrossWire four years ago.
Even some of the terminology can be baffling to a novice.

It's worthwhile to persevere and learn something new each day.
The developers' wiki is a very good resource, and it has lots of pages.

You may also find it useful to join in one of the IRC chats, details of
which are given in
http://crosswire.org/wiki/Help:Contents
http://crosswire.org/wiki/Help:Contents
There are usually folk around who can answer simple questions quickly.

Blessings!

Regards,

David

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Reading-kjvfull-xml-tp4650425p4650434.html
Sent from the SWORD Dev mailing list archive at Nabble.com.



--

___
sword-devel mailing list
sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel


End of sword-devel Digest, Vol 99, Issue 13
***

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Help/Volunteer needed to make minor changes to AlKitab Program

2011-10-13 Thread luke
I know that this is a lot to ask, but ask and you shall receive, so I'll try.  
I am a week and a half away from a biannual conference of great importance to 
the work that we do.  I am trying to get a language (with over a million 
speakers) website ready to be published before the conference so that we can 
share the scriptures with the participants in both GoBible and sword format.  I 
would like to be able to provide AlKitab as a download from the website with 
the language module already installed.  I understand that AlKitab can be used 
portable and I would like to have the portable app .exe be the one that is 
downloaded from the site.  I would also like to strike the words Bible Study 
from the title bar of the program.  And if it wouldn't be digging too much it 
would be nice to make the two or so places that AlKitab says Biblical Works, 
say Scriptural Works (this is not priority).  Bible is not an acceptable word 
in our cultural context but AlKitab is. I am not too knowledgeable about 
recompiling .exe files and that is why I'm hoping someone would help.  If you 
can do this, please contact me and I will e-mail the sword module.  Thanks,
Luke

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] BPBible's handling of alternative versification

2011-05-26 Thread Luke Schroeder

Hey Jon,
I like BPBible a lot!  The portability of it is really nice.  The 
entire Bible is correct in BPBible until 3 John.  3 John is correct as 
well, but the last verse is left off.  The last verse is then displayed 
at the beginning of Jude before the book introduction.  The first 
heading becomes verse one and all of the verses are off by one verse.  
After Revelation 12 the verses are all off by two.  Hope that helps.


Blessings,
Luke

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Sword 1.6.x and various frontends

2011-05-24 Thread Luke Schroeder
I'm slowly but surely working on getting our translation's electronic 
bible published.
I can only install the file into Xiphos when I have it unzipped.  It 
installs into BPBible Porteable fine from the Zip file.

I cannot install it at all into Alkitab or Bibledesktop.
XULrunner recognizes the file I installed from Xiphos.  Alkitab and 
Bibledesktop do not.
After several hours of trying to figure this out, I decided I would go 
here for help.  Are several of the frontends for SWORD not capable of 
using Sword 1.6.x?  I came to this hypothesis because my translation 
requires NRSV versification and I used the most current sword to make it.


These are the steps I took:
- I exported from Paratext to OSIS.
- I used the most current OSIS2Mod.
- I configured it to use NRSV's versification and rawtext
- I manually created .config file
- I manually setup a zip file to work with this.

Please give me any tips I might be missing here.  I need to send the 
file on to my boss.


Blessings,
Luke



___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Sword 1.6.x and various frontends

2011-05-24 Thread Luke Schroeder
It is very informative to know that it is only 2 verses.  That would 
give good reason to switch to KJV versification for Sword modules.  Also 
thanks for the info especially on java based front-ends.  XulSword and 
Xiphos are installing it and gets the versification correct, expect for 
the header gets lost for Revelations 12.  I don't know why that 
happened.  BPBible installs it, keeps the right headings, but messes up 
the versification.  Finally, it still is a bit frustrating that even 
using KJV versification the java based front-ends don't recognize the 
Bible mod I made using the latest osis2mod where the osis was derived 
from Paratext export.


Overall a big thanks to all of you for the numerous replies given.

Luke

On 5/25/2011 2:48 AM, Chris Little wrote:

Since the NRSV varies from the KJV by exactly 2 verses, I would recommend just 
switching to KJV in osis2mod.
--Chris

On May 24, 2011, at 9:11, Luke Schroederl...@motimail.com  wrote:


I'm slowly but surely working on getting our translation's electronic bible 
published.
I can only install the file into Xiphos when I have it unzipped.  It installs 
into BPBible Porteable fine from the Zip file.
I cannot install it at all into Alkitab or Bibledesktop.
XULrunner recognizes the file I installed from Xiphos.  Alkitab and 
Bibledesktop do not.
After several hours of trying to figure this out, I decided I would go here for 
help.  Are several of the frontends for SWORD not capable of using Sword 1.6.x? 
 I came to this hypothesis because my translation requires NRSV versification 
and I used the most current sword to make it.

These are the steps I took:
- I exported from Paratext to OSIS.
- I used the most current OSIS2Mod.
- I configured it to use NRSV's versification and rawtext
- I manually created .config file
- I manually setup a zip file to work with this.

Please give me any tips I might be missing here.  I need to send the file on to 
my boss.

Blessings,
Luke



___
sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] MDF/SFM Dictionary Import into Sword Format

2011-04-17 Thread Luke Schroeder
Does anyone with a basic knowledge of programming see any merit in the 
following idea?  Make a script that takes basic components of a 
dictionary and formats it alphabetically into the sword imp format.  The 
imp format being as follows:


$$$word in another language
Definition or gloss of word immediately below.

The dictionary format being the standard used by Bible translators, 
called MDF (Manual for Dictionary Formatting?) and adapted in the SIL's 
program Fieldworks.  My idea of a script would be to allow the user to 
input the backslash codes into the script for the word, sense number, 
part of speech, definition, example sentence, example sentence 
translated.  In our dictionary these codes would be: \lc, \sn, \ps, \ge, 
\xv, \xe but in others dictionaries they would want the ability to adapt 
the backslash codes a little since often Fieldworks gives backslash 
codes that include the language name.  The script would then output a 
file in imp format.  The file would look like this:

$$$Word
[Part of speech] [Definition] (1st sense of word)

[Example Sentence]
[Example Sentence translation]

[Part of speech] [Definition] (2nd sense of word

[Example Sentence]
[Example Sentence translation]
etc.

It seems to me like this is very basic programming.  It also seems to me 
that if someone really go into the project they could do a lot more than 
what I just described.  Finally I find this beneficial, because most of 
the Bible translation teams for minority languages are working on 
dictionaries at the same time.  For people like the group I work with, 
the dictionary is valued more than the Bible.  It is easy to get the 
Bibles into Sword format.  If this script were made it would be easy to 
get dictionaries into sword format (at least in their most basic form).  
Having the two distributed together allows interaction between both 
works.  It helps younger people in the language understand the deeper 
words of their language.


Any programmers out their interested?

Sincerely yours,
Luke S.





___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Help with versification

2011-03-28 Thread Luke Schroeder
My wife and I are team members of a minority Bible translation that we 
have received permission to proceed with the final stages of preparing a 
SWORD module for and a GoBible module.  I don't completely understand 
how versification works.  In the Sword module things work pretty well.  
Our translation of Matthew 1 has verse numberings that go like this: 1, 
2-6, 7-11, 12-16, 17, 18, 19, 20, 21, 22, 23, 24, 25.  In Sword it is 
currently displayed like this: 1, 2, 7, 12, 17, 18, etc.  It would be 
preferable if I could get it to display like the first set, but that 
isn't so big of a problem.


However in GoBible I have a major problem because it displays like this: 
1,2 (represents 2-6), 3 (represents 7-11), 4 (represents 12-16), 5 (17), 
6 (18), and so on.


Did I make myself clear?  Is there anything I can do to keep the GoBible 
looking pretty but not have people look for a certain verse reference 
and find out that it is several verses off because of how we have 
combined some verses due to translation practice?


Any help would be appreciated,
Thanks

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] What is the command to retrieve text by args like Genesis 1:1

2009-05-07 Thread Luke Plant
On Monday 27 April 2009 14:56:24 Wei-Wei Guo wrote:
 Dear all,

 I want to write a Sword extension for Sphinx. The extension can
 help on Bible study by this way:

 If I type :bible:`Genesis 1:1` in text, after compiling, the
 following line will be inserted

 In the beginning God created the heavens and the earth.

 So I need to know, is it possible to call a command generating the
 previous line with argument of Genesis 1:1 or something similar?
 And if the command can select Bible texts module, such as ChiNCVs
 or ASV, it would be better.

 If there is no such convenient command, could you point me to some
 materials with which I can write a simple script. Except an API
 primer, I don't find any other document like man page or help file
 of Sword.

I'm presuming you want to write in Python.  You need to build the 
Sword Python SWIG bindings (from the sword source tarball), and I have 
some Python code here which should provide a basis for what you need.

http://hg.lukeplant.me.uk/python/luke/file/b146cdf1a8c9/lukeplant_me_uk/bibleverses/sword.py

The function get_bible_text() is what you need to look at, the rest 
may or may not be relevant.

The code seems somewhat cumbersome, there may be an easier way.  Also, 
the process of converting to plain text is somewhat hacky, and I only 
implemented what I needed (I mainly use the ESV module).

The code is original and is in the public domain.

Regards,

Luke

-- 
LORENZ'S LAW OF MECHANICAL REPAIR:
After your hands become coated with grease, your nose will begin to 
itch.

Luke Plant || http://lukeplant.me.uk/


___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] [off topic] Thank you!

2008-11-03 Thread Luke Plant
Hi all,

I've been working full time in a church for the past 2 months, and 
while I've used BibleTime/SWORD quite a bit before (and even wrote my 
own frontend, KioSword, a while back), I've been using BibleTime more 
than ever now, and I wanted to say a massive thank you to the SWORD 
and BibleTime devs for all their work.  Having now studied Greek and 
Hebrew at Bible college, I am particularly loving side-by-side 
ESV/WHNU/LXX/BHS with StrongsRealGreek etc. and the search 
facilities.

Thanks so much to you all, and to the module packagers as well, may 
God bless you!

Luke

-- 
If something is hard, it's not worth doing. (Homer Simpson)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Luther commentary - strange behaviour

2008-05-05 Thread Luke Plant
With the following code (written in Python for ease of testing, but 
I'm seeing the same thing in C++):
--
import Sword
mgr = Sword.SWMgr()
module = mgr.getModule(Luther)
vk = Sword.VerseKey.castTo(module.getKey())
vk.AutoNormalize(0)
vk.setText(Ephesians 1:1)

print repr(module.Error())
print repr(module.RenderText())
---
I expect to see:
'\x01'
''

Instead I see:

'\x00'
'pVERSE 26.  bLet us ...snipped '   [Entry for Galatians 5:26, 
which isn't even the last entry in the module]

Any ideas what could be causing this?  It doesn't happen with some 
other modules I've tested.

Thanks,

Luke


-- 
The probability of someone watching you is proportional to the 
stupidity of your action.

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Slightly Off-topic: Bible verse memorisation project

2008-03-28 Thread Luke Plant
On Thursday 27 March 2008 22:31:11 Greg Hellings wrote:

   I'm planning on adding a system for the user to simply tick off
  verses that have been learnt, using AJAX to store it on the
  server -- that should also help in giving a sense of progress.

 Of course you'd have to store lots of data for the user, etc
 including registration information, etc.  You might do better to
 store it in a cookie on the client side, and restore from the local
 data.  

I had though of that, but:
 1) you've only 4k, and you might use it all up
 2) if people lose the cookies (easy to do, as people don't make any
effort to keep them), then all the records are gone.  I'm 
intending to use a simple database, probably sqlite, server side.
 
 As for AJAX frameworks, I've had good luck with using the 
 GWT (Google Web Toolkit) for doing heavy-lifting on the client
 side.  Google even claims there is a client-side portion of the
 library that handles XML parsing, etc.  You can do some impressive
 things with it, and it's designed to integrate with a Java/Servlet
 back end

Then I'd have to write it in Java.  Why would I want to do that? :-)  
Seriously, I'm using something a lot more lightweight and easier to 
set up -- static HTML (as opposed to server generated), MochiKit for 
Javascript, JSON for transport, Python CGI with web.py on the 
backend.

Regards,

Luke

-- 
Life is complex. It has both real and imaginary components. 

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Slightly Off-topic: Bible verse memorisation project

2008-03-27 Thread Luke Plant
Hi all,

In the course of getting serious about learning Bible verses and 
passages, I decided I needed a method of choosing Bible verses and 
putting together schemes, and that other people could benefit from 
this.  I couldn't find much that was freely available and met all my 
needs, so I've written a project to help me do this, and published 
the (unfinished) results here:

  http://lukeplant.me.uk/bibleverses/index.html

Basic outline:
 - Use a set of YAML documents to define:
- verses with categories and comments
- topics
- schemes
 - Pull all these together using Python scripts
 - Use Sword, via Python bindings, to grab the actual Bible verse
   where it hasn't been included in the YAML
 - Output web pages

I've come up with a huge number of topics that I'd like to cover, and 
I'm not done, and I've realised I could use some help in filling it 
out with actual Bible verses.  The main help I'm looking for is 
verses to be added to the YAML documents -- there are huge gaps and 
many obvious and important passages missed out -- but any other 
improvements would be welcome too.

The code is all available from that site (for the moment, via 
Mercurial and Mercurial web interface only, with links for the main 
YAML documents).  It's a bit rough around the edges, but there is a 
README etc which should be enough to get going.

I haven't put a licence file anywhere in it yet, but I intend to 
release under BSD or possibly public domain to make this as widely 
useful as possible.

Best regards,

Luke

P.S. This is my personal project, and I'm providing sources so anyone 
can fork it, so in the case of theological differences (choice about 
Bible versions, importance of verses, comments etc), I'm going to 
have to use the age old conflict resolution technique called I'm the 
boss :-)

-- 
I washed a sock. Then I put it in the dryer. When I took it out, it 
was gone.  (Steven Wright)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Slightly Off-topic: Bible verse memorisation project

2008-03-27 Thread Luke Plant
On Thursday 27 March 2008 17:10:35 jonathon wrote:
 On Thu, Mar 27, 2008 at 10:36 AM, Luke Plant  wrote:
   I'm not done, and I've realised I could use some help in filling
  it out with actual Bible verses.  The main help I'm looking for
  is  verses to be added to the YAML

 I'd suggest creating small sets of verses that users can install.

 People feel much more confident that they can memorize verses, if
 they can see that they've memorized all of the verses used in The
 Four Spiritual Laws, or The Roman Road.   Then they will tackle
 large sets, such as Navigators Topical Memory System.

Thanks for the suggestions, I have added the verses from The Four 
Spiritual Laws and Two ways to live.  Thanks David also for the 
Navigators link.

I'm planning on adding a system for the user to simply tick off verses 
that have been learnt, using AJAX to store it on the server -- that 
should also help in giving a sense of progress.

Regards,

Luke

-- 
I washed a sock. Then I put it in the dryer. When I took it out, it 
was gone.  (Steven Wright)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Python bindings and dynamic cast

2008-03-20 Thread Luke Plant
On Wednesday 19 March 2008 23:47:02 Ben Morgan wrote:
 Hi,

 Step 2 can be done using
 VerseKey.castTo(swkey)

Thanks!  I had guessed that .castTo might help me, but I couldn't work 
out how to use it.

Cheers,

Luke

-- 
I never hated a man enough to give him his diamonds back. (Zsa Zsa 
Gabor)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Python bindings and dynamic cast

2008-03-19 Thread Luke Plant
Hi,

I've been trying to use Sword with Python bindings to simply get a 
list of verses with a reference like Genesis 1:1-10.  All the 
example code I can find, including code I have written in the past, 
uses a dynamic cast:

1) VerseKey::ParseVerseList() is used, which returns a ListKey*
2) A dynamic cast is done to return a VerseKey*
3) Then VerseKey::UpperBound() and VerseKey::LowerBound() are used in 
iterating over the verses.

The problem is, I can't work out how to do step 2) or equivalent in 
Python.  I'm using the standard Python bindings, built from 
sword-1.5.9/bindings/swig/
Help would be much appreciated.

Thanks,

Luke

-- 
Ineptitude: If you can't learn to do something well, learn to enjoy 
doing it poorly. (despair.com)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries and empty footnotes

2008-02-05 Thread Luke Plant
On Friday 11 January 2008 00:46:49 Luke Plant wrote:
 On Thursday 10 January 2008 22:23:48 Barry Drake wrote:
  Hi Troy ..
 
  Troy A. Griffitts wrote:
   Try adding this to the .conf file:
   GlobalOptionFilter=OSISFootnotes
 
  Arrrgh .  thanks Troy for your patience!  One of us ought to
  have spotted that one.  I've put SwordReader back to using
  stripText because our method doesn't make anything of the footnote
  tags - just shows them in the raw.  Otherwise, it's just fine. 
  Thanks  and thankyou Luke for a really useful module.

 I'm sorry, I actually thought of this and put that line in my .conf,
 but forgot to tell anyone.  The reason I forgot to mention this is
 that it still doesn't work for me.  In fact, the module does not show
 that it has any options available in BibleTime (as if it simply did
 not recognise GlobalOptionFilter=OSISFootnotes).  I'm using latest
 BibleTime (1.6.5, from CVS).  How do you get the footnotes to show? I
 see (1) in superscript, but only in KJV can I succeed in actually
 seeing the note (I have to select the small bit of text that contains
 the (1)).  I have the same problem with ESV -- I see the (1), but
 can't get the note to show.

For the sake of the archives:  I discovered this was related to the 
BibleTime theme.  Changing away from the 'High Contrast' theme fixed 
it.

Luke


-- 
Noise proves nothing.  Often a hen who has merely laid an egg cackles 
as if she laid an asteroid.
-- Mark Twain

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] thml and scriprefs

2008-01-31 Thread Luke Plant
On Thursday 31 January 2008 04:18:04 [EMAIL PROTECTED] wrote:

 I know it's not supposed to work (and it doesn't, the book headers
 don't work) but it does save a lot of work :).

What exactly do you mean, the book headers don't work?  If you provide 
an example, I may be able to fix it, and that way we save a lot *more* 
work for the future.  If at all possible, it would be *much* better to 
fix the XSLT than do any hand editing.

Regards,

Luke

-- 
Our software is idiot proof.  If you bought it, that's proof you're an 
idiot (Dogbert)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries and empty footnotes

2008-01-16 Thread Luke Plant
On Tuesday 15 January 2008 00:22:26 Chris Little wrote:
 Okay, the module is up in beta. (It may take a while to show up.)

You also changed the MinimumVersion to 1.5.10 (I discovered this after 
not seeing it show up for a day, and then FTPing in manually).  Was 
there a reason for this?  It works fine in BibleTime 1.6.5, which uses 
Sword 1.5.9.  Perhaps it should say 1.5.9, (instead of what it said 
before, 1.5.2).

Luke

-- 
The only skills I have the patience to learn are those that have no 
real application in life. (Calvin and Hobbes)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries and empty footnotes

2008-01-14 Thread Luke Plant
On Thursday 10 January 2008 21:04:30 Eeli Kaikkonen wrote:
 On Thu, 10 Jan 2008, Troy A. Griffitts wrote:
  Try adding this to the .conf file:
 
 
  GlobalOptionFilter=OSISFootnotes

 ...and it works perfectly. Thank you very much for saving me from
 hours of futile work debugging nonexistent bug in BibleTime.


Chris (Little -- I believe you are the right person),

I think the module is working well enough for more public consumption.  
Could you put it on the Sword servers?  I currently have a very dodgy 
internet connection, so I won't be able to upload a new version.  If 
you download my last version:

http://lukeplant.me.uk/misc/sword/CalvinsCommentaries.zip

you will just have to change the .conf to include the line Troy 
suggested.

Thanks,

Luke

-- 
The one day you'd sell your soul for something, souls are a glut.

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries and empty footnotes

2008-01-11 Thread Luke Plant
On Friday 11 January 2008 10:23:10 Eeli Kaikkonen wrote:
 On Fri, 11 Jan 2008, Luke Plant wrote:
  I'm sorry, I actually thought of this and put that line in my
  .conf, but forgot to tell anyone.  The reason I forgot to mention
  this is that it still doesn't work for me.  In fact, the module
  does not show that it has any options available in BibleTime (as if
  it simply did not recognise GlobalOptionFilter=OSISFootnotes).  I'm
  using latest BibleTime (1.6.5, from CVS).  How do you get the
  footnotes to show? I see (1) in superscript, but only in KJV can I
  succeed in actually seeing the note (I have to select the small bit
  of text that contains the (1)).  I have the same problem with ESV
  -- I see the (1), but can't get the note to show.


 Strange, I've got it here on top of Kubuntu Linux, KDE 3.5.8 and it
 works fine, both 1.6.4(orig. Kubuntu), 1.6.5 and 1.7svn/KDE4. What's
 your platform?

The same - KDE 3.5.8, Kubuntu (Gutsy, which I presume you must be 
using), with most BibleTime 1.6.5, updated to CVS HEAD.  I had problems 
with 1.6.4, as at least one other person had, e.g.:
https://sourceforge.net/tracker/index.php?func=detailaid=1778330group_id=954atid=100954

What do you actually do to see the note - select text, just hover?

Thanks,

Luke

-- 
The first ten million years were the worst. And the second ten 
million, they were the worst too. The third ten million, I didn't enjoy 
at all. After that I went into a bit of a decline. (Marvin the 
paranoid android)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries and empty footnotes

2008-01-10 Thread Luke Plant
On Wednesday 09 January 2008 20:30:15 DM Smith wrote:

  I notice something like this in KJV: note type=studyAdam: or,
  the man/note
 
  In the new Calvin, there seems to be something like: note n=40
  p Namely, into heaven and earth./p   /note

 This is perfectly valid OSIS.

 Just a wild guess that the p.../p is causing the note to be
 rendered as empty.

 IMHO, having the entire note surrounded by p is unnecessary and
 probably will introduce unwanted whitespace.

The problem with stripping it is that sometimes notes in Calvin's 
commentaries can be several paragraphs long, I believe.  Stripping out 
any markup inside a note should be a last resort, IMO.  If the frontend 
wants to do that, there is nothing stopping them, but requiring it of 
the module source doesn't seem to make sense.

  In KJV, we don't seem to have a number, just a 'type'.

 The KJV preserved the type attribute from the previous edition. There
 were no n attributes, so none were created.

The 'raw' output
  shows the 'type' as 'type=n'

 Actually, this is a magic value created by the Sword engine. It is
 set to 'x' if it the type is a cross-reference and 'n' otherwise.

   - it's obviously using the 'n' that goes
  with the note number.

 BTW, in OSIS (and I think that it got it from TEI), the n attribute
 is used for the number to be shown. It could be something other
 than digits. Sword does not look at the value, but manufactures it's
 own. JSword uses it if present, creating it's own when not.

In the Calvin module, the values of 'n' are straight from the ThML 
sources, and ThML also borrows its definition of note from TEI.  My 
thml2osis.xslt code does no translation of the note tag -- it just 
uses all the existing attributes.  Once there is concensus about how 
this should work I'll update the module.  In BibleTime, which is the 
only frontend I have installed at the moment (apart from my own 
Kio-Sword, which doesn't handle notes at all), notes are rather 
tricky -- it is next to impossible to get the contents to show up at 
all, you have to mess around selecting the text (can anyone tell me 
what I'm doing wrong?).

It would be great to have docs for this kind of thing.  My biggest 
frustration with the Sword project is finding documentation -- I can't 
even find generated API docs for Sword, the only ones I have I 
generated myself (I think) using doxygen several years ago.  Searching 
through source code to find answers to these questions is very far from 
ideal (and impossible if you don't read C++/Java/whatever), as is 
trying to search mailing list archives which are usually out of date.

Best regards, and thanks for help debugging the module,

Luke

-- 
The first ten million years were the worst. And the second ten 
million, they were the worst too. The third ten million, I didn't enjoy 
at all. After that I went into a bit of a decline. (Marvin the 
paranoid android)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries - new module

2008-01-09 Thread Luke Plant
On Wednesday 09 January 2008 13:50:48 Eeli Kaikkonen wrote:

 BibleTime gives only empty footnotes.

Yeah, I noticed this, and I thought it was a BibleTime problem.  The 
only other OSIS module I have, ESV, does the same thing as far as I can 
see -- I don't know how to see the contents of the footnotes.

Luke

-- 
The first ten million years were the worst. And the second ten 
million, they were the worst too. The third ten million, I didn't enjoy 
at all. After that I went into a bit of a decline. (Marvin the 
paranoid android)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries - new module

2008-01-08 Thread Luke Plant
Hi all,

I did some more work on this, and I reckon I'm ready for public testing.  
Changes include:

- list of books in the .conf, as suggested by someone on the list
- fixed the book of Psalms, Zechariah and Malachi, which had slightly
  different ThML, causing them to import incorrectly.
- a couple of fixes to the source of John 1, which I've also sent
  upstream (CCEL) as ThML patches.

All of the links below remains as they were, they have been updated with 
new files.  For the impatient, it should just be a matter of getting 
the .osis.bz2 and the .conf, bunzipping it and running osis2mod:

osis2mod ...something/modules/comments/zcom/calvinscommentaries 
calvinscommentaries.versified.osis 0 2 3

Obviously, there may still be errors, but there is no way I can check 
all of it, and everything I've come across so far now seems to be in 
order, and I've been enjoying using it myself :-)

Regards,

Luke


 Hi all,

 I've created a module that combines all of Calvin's commentaries.  It
 is an OSIS module, which I've generated from CCEL's ThML sources,
 using XSLT and various python scripts etc.  osis2mod doesn't yet
 support OSIS commentaries very well (it requires them to be marked up
 like Bibles), so, after some messing around, I've added a stage into
 the scripts to 'versify' the OSIS -- hopefully that will be removed
 at some point.

 All my scripts etc. are in the swordtools Subversion repository.  For
 the end result, see:

http://lukeplant.me.uk/misc/sword/calvinscommentaries.versified.osis.bz2 
http://lukeplant.me.uk/misc/sword/calvinscommentaries.conf 

 It's working quite nicely on my machine :-)

 To generate the module from sources, you will need to look in the
 swordtools repository:

  http://crosswire.org/svn/modules/calvinscommentaries

 Have a look at the README. (BTW, current build scripts don't clean up
 after themselves very well, to make debugging easier, so you will end
 up with 300 Mb of stuff in a folder 'build').

 You will also need the CCEL sources -- for your convenience, you can
 download them here:

 http://lukeplant.me.uk/misc/sword/calcom_sources.tar.bz2

 I haven't checked this thoroughly by any means, and I've run out of
 time to do any more work on it for a while, but it should provide a
 pretty solid basis.  The module strips out everything that isn't
 commentary, including Calvin's latin translation of the text and all
 the forewords and indexes -- I think that is better, for now at
 least.

 One thing I have noticed, and I think it is a bug with osis2mod --
 where a line starts with whitespace, all the leading whitespace is
 removed, which means that if the line before didn't end with
 whitespace, two words now get joined together.  For an example,
 search for eloquent by nature, but when in
 calvinscommentaries.versified.osis, and see the corresponding words
 in Gen 3:1, where you will find whenSatan.  This occurs quite a
 lot, it would be good to get it fixed before releasing the module to
 the public.

 Regards,

 Luke



-- 
The first ten million years were the worst. And the second ten 
million, they were the worst too. The third ten million, I didn't enjoy 
at all. After that I went into a bit of a decline. (Marvin the 
paranoid android)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries - new module

2008-01-08 Thread Luke Plant
On Tuesday 08 January 2008 23:15:33 DArio Matos wrote:
 Luke,

 Are the files you posted the link in your first mail updated? I'd
 like to test them myself.

All the links are updated.  All the source files and scripts for 
conversion are available as described in my previous emails (the first 
one in this thread I think).

 Also, could you make them windows-frontend installer friendly,
 instead of just having them raw?

The one thing I hadn't actually done was to post the compiled module 
anywhere - I was posting this for Chris Little to do that and put it on 
the Sword servers.  But I've now uploaded my zip file: 

http://lukeplant.me.uk/misc/sword/CalvinsCommentaries.zip

Well, it should be there by the time you read this -- it is 28 Mb, 
compared to the 9 Mb for the bzip2 file, and it is still uploading.  In 
case it doesn't upload properly, the md5sum for the zip is:
 ef91291a6c2653762c7a3fed8a972633

Regards,

Luke

-- 
The first ten million years were the worst. And the second ten 
million, they were the worst too. The third ten million, I didn't enjoy 
at all. After that I went into a bit of a decline. (Marvin the 
paranoid android)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries - new module

2008-01-08 Thread Luke Plant
On Wednesday 09 January 2008 01:58:36 Karl Kleinpaste wrote:
 Luke Plant [EMAIL PROTECTED] writes:
  Well, it should be there by the time you read this -- it is 28 Mb,
  compared to the 9 Mb for the bzip2 file, and it is still uploading.

 The reason the .zip is so large is that you did not remove the
 uncompressed content.  Once you had compressed it to the 6-file set
 [on]t.cz[svz], you should have removed the original ot, ot.vss, nt,
 and nt.vss.  The uncompressed content represents about three quarters
 of the post-unzip total (43M -vs- 17M).

Good catch!  I couldn't work out for a second how I had managed that, 
until I realised that 'zip' will happily just add files to an existing 
archive -- that zip file was created over multiple runs of my scripts.

I'm uploading a correct, 15 Mb version now:

9e9c9a165f6691a8bbb2b7876e777289  CalvinsCommentaries.zip

Luke

-- 
The first ten million years were the worst. And the second ten 
million, they were the worst too. The third ten million, I didn't enjoy 
at all. After that I went into a bit of a decline. (Marvin the 
paranoid android)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries - new module

2007-12-05 Thread Luke Plant
On Wednesday 05 December 2007 08:44:49 Sebastien Koechlin wrote:

 Are you using the 1.5.10 version? I had a similar problem few months
 ago, and it have been corrected in this version (read thread ending
 with
 http://www.crosswire.org/pipermail/sword-devel/2007-May/025394.html
 ).

It looks like I'm using 1.5.9, I had forgotten I wasn't using the most 
up to date version, thanks.  I'm not likely to update this soon, as I'd 
have to update all my Sword software, so I'll just publish a version 
that can be processed using osis2mod from 1.5.9.

Luke

-- 
My middle name is 'Organised'!  My first name is 'Poorly'.

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries - new module

2007-12-04 Thread Luke Plant
On Friday 30 November 2007 14:18:11 Luke Plant wrote:
 On Friday 30 November 2007 04:38:13 Chris Little wrote:
  Stripping extraneous whitespace before/after a line is correct
  behavior. It should re-insert a newline after each line, also.
  There might be some bugs in the render filters. I'll take a look at
  the filters when I get some time, but in general we do want to
  strip unnecessary characters.

 I've checked by running osis2mod without compression and examining
 its output, and this utility is definitely at fault. 

I've done some more checking, trying to add whitespace at the *end* of 
the line, and it still doesn't work -- you simply can't break a 
sentence up over multiple lines without words getting merged.  If I 
replace all newlines in the XML with spaces, then it is fine.

Luke

-- 
My middle name is 'Organised'!  My first name is 'Poorly'.

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries - new module

2007-11-30 Thread Luke Plant
On Friday 30 November 2007 17:19:16 Barry Drake wrote:
 Hi there 

 Luke Plant wrote:
  The module strips out everything that isn't commentary,
  including Calvin's latin translation of the text and all the
  forewords and indexes -- I think that is better, for now at least.

 Sorry to be pedantic - and personally I'm not in the least worried
 whether the Latin is in or out, but I thought I ought to mention that
 the Latin version is from Jerome's Vulgate, which was around a very
 long time before Calvin was a twinkle in his dad's eye.

The translator's preface for Calvin's commentary on Genesis says that 
the Latin is Calvin's own translation, which was probably based on work 
by Leo Juda.  Certainly a quick comparison to the Vulgate shows that it 
differs quite significantly, at least in the two passages that I picked 
at random (Genesis 1 and Jeremiah 1).  What made you say it was from 
the Vulgate?

Luke

-- 
Mediocrity: It takes a lot less time, and most people don't realise 
until it's too late. (despair.com)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's Commentaries - new module

2007-11-30 Thread Luke Plant
On Friday 30 November 2007 04:38:13 Chris Little wrote:

 Stripping extraneous whitespace before/after a line is correct
 behavior. It should re-insert a newline after each line, also. There
 might be some bugs in the render filters. I'll take a look at the
 filters when I get some time, but in general we do want to strip
 unnecessary characters.

I've checked by running osis2mod without compression and examining its 
output, and this utility is definitely at fault.  Fragment of input 
XML, with line break after 'when' and leading whitespace on the next 
line:


p...the serpent was not eloquent by nature, but when
 Satan, by divine permission...

Result in output of osis2mod:

...the serpent was not eloquent by nature, but whenSatan, by divine 
permission...

No line break is inserted.

Apart from this and some other small issues I'm addressing at the 
moment, the module is ready for public testing.

Regards,

Luke


-- 
Mediocrity: It takes a lot less time, and most people don't realise 
until it's too late. (despair.com)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Calvin's Commentaries - new module

2007-11-29 Thread Luke Plant
Hi all,

I've created a module that combines all of Calvin's commentaries.  It is 
an OSIS module, which I've generated from CCEL's ThML sources, using 
XSLT and various python scripts etc.  osis2mod doesn't yet support OSIS 
commentaries very well (it requires them to be marked up like Bibles), 
so, after some messing around, I've added a stage into the scripts 
to 'versify' the OSIS -- hopefully that will be removed at some point.

All my scripts etc. are in the swordtools Subversion repository.  For 
the end result, see:

http://lukeplant.me.uk/misc/sword/calvinscommentaries.versified.osis.bz2
http://lukeplant.me.uk/misc/sword/calvinscommentaries.conf

It's working quite nicely on my machine :-)

To generate the module from sources, you will need to look in the 
swordtools repository:

 http://crosswire.org/svn/modules/calvinscommentaries

Have a look at the README. (BTW, current build scripts don't clean up 
after themselves very well, to make debugging easier, so you will end 
up with 300 Mb of stuff in a folder 'build').

You will also need the CCEL sources -- for your convenience, you can 
download them here:

http://lukeplant.me.uk/misc/sword/calcom_sources.tar.bz2

I haven't checked this thoroughly by any means, and I've run out of time 
to do any more work on it for a while, but it should provide a pretty 
solid basis.  The module strips out everything that isn't commentary, 
including Calvin's latin translation of the text and all the forewords 
and indexes -- I think that is better, for now at least.

One thing I have noticed, and I think it is a bug with osis2mod -- where
a line starts with whitespace, all the leading whitespace is removed, 
which means that if the line before didn't end with whitespace, two 
words now get joined together.  For an example, search for eloquent by 
nature, but when in calvinscommentaries.versified.osis, and see the 
corresponding words in Gen 3:1, where you will find whenSatan.  This 
occurs quite a lot, it would be good to get it fixed before releasing 
the module to the public.

Regards,

Luke

-- 
Mediocrity: It takes a lot less time, and most people don't realise 
until it's too late. (despair.com)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's commentaries, and ThML to OSIS conversion

2007-07-13 Thread Luke Plant
On Wednesday 11 July 2007 17:55:08 DM Smith wrote:

 Yes right now osis2mod expects commentaries to be encoded as a Bible.
 This is not the way it should be. I guess I'm the owner of osis2mod
 since I touched it last :) Anyway, I should have some free time in
 the middle of August to take a look at upgrading it to handle
 properly encoded commentaries. Please remind me around then.

That's great, I will remind you later.

For anyone else who is interested, the complete commentary in OSIS 
format (bzipped) is now here:

http://lukeplant.me.uk/misc/sword/calvinscommentaries.osis.bz2

(it may require a bit more work, but it is at least valid OSIS in about 
the right structure you would expect for a commentary, and almost 
lossless from the ThML apart from header information I think).

Once I get access to the subversion repository, I'll upload my 
conversion scripts there.

Regards,

Luke

-- 
The first ten million years were the worst. And the second ten 
million, they were the worst too. The third ten million, I didn't enjoy 
at all. After that I went into a bit of a decline. (Marvin the 
paranoid android)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Calvin's commentaries, and ThML to OSIS conversion

2007-07-11 Thread Luke Plant
Hi all,

I've been trying to create a Sword module containing all of Calvin's 
commentaries, using the ThML sources from CCEL.  I've made good 
progress, and some of my work should be reusable for other projects.  
I've read that Sword is trying to move away from ThML to OSIS, so the 
module will be an OSIS module.  I've been careful to remove any manual 
editing, so that everything can be generated automatically from the 
ThML (in case of any updates to the the sources).

The main steps are:
 
1) Make some corrections to the ThML (use of scripCom tag in 
particular) - DONE (implemented using Python script)

2) Combine all the ThML files into a single ThML source - DONE (Python)

3) Convert to OSIS.  I've done this using XSLT, and I'm intending to 
release my thml2osis.xslt as a separate project.  It is about 90% done 
(at least in terms of translating Calvin's Commentaries), and has tests 
and so on.  It should be a useful and portable utility for converting 
other CCEL sources.  (The test suite is currently executed using unix 
tools, which would be a problem for Windows developers.)

4) Import as a Sword module.  The problem here is that osis2mod is 
basically for importing Bibles only -- it expects you to use div 
type=book, div type=chapter (or chapter) and verse.  These 
are not really natural or semantic ways to mark up a commentary. A more 
obvious and natural way to do it is like this:

div type=section annotateType=commentary 
annotateRef=Bible:Gen.1.1pBlah blah.../p/div

I do actually have a Python script which converts this markup to the 
that expected by osis2mod, but it uses DOM, and memory usage for the 45 
Mb input OSIS file is prohibitive.   Anyway, I think creating a version 
of osis2mod for commentaries is the better way to handle this (I did 
find an old message in sword-devel saying that an importer would be 
written if OSIS commentaries were provided).

I would write the osis2mod modifications myself, but I've looked at 
osis2mod and the main function that needs modifying, handleToken(), is 
a bit of a beast -- about 400 lines, about 20 local variables etc.  I'm 
not confident enough with Sword to be able to refactor it properly, and 
I don't want to do large amounts of copy and paste.

So, is someone willing to help out with this final step?

Also, is there a place where I should release this stuff?  I think Sword 
needs a 'sword contrib' project, or at least a section on the wiki that 
details how to get these different things.  I get the impression that 
the main Sword developers have various scripts to help them, and a 
central repository for these kinds of tools would be very helpful.  A 
Bazaar repository would probably be ideal -- I could put up a 
publically readable one for my stuff.

Regards,

Luke

-- 
Sometimes I wonder if men and women really suit each other. Perhaps 
they should live next door and just visit now and then. (Katherine 
Hepburn)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Calvin's commentaries, and ThML to OSIS conversion

2007-07-11 Thread Luke Plant
On Wednesday 11 July 2007 17:06:44 Barry Drake wrote:

 I was surprised to read this as I have a Sword module of Calvin's
 commentary.  I can't remember how I aquired it but assume that it was
 from the Crosswire download site.

Hmm, I'd certainly be interested in that -- it doesn't seem to be here:

http://www.crosswire.org/sword/modules/ModDisp.jsp?modType=Commentaries

or available from the BibleTime download manager.

Luke

-- 
Sometimes I wonder if men and women really suit each other. Perhaps 
they should live next door and just visit now and then. (Katherine 
Hepburn)

Luke Plant || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Internal links in ThML modules

2007-03-17 Thread Luke Plant

On Fri, 16 Mar 2007 10:52:43 -0400, Karl Kleinpaste
[EMAIL PROTECTED] said:
 Luke Plant [EMAIL PROTECTED] writes:
  In summary, can anyone point me to example ThML sources for commentaries 
  and general books, in the form immediately before conversion to Sword 
  modules?  e.g. MHC and Calvin's Institutes would be good.
 
 Perhaps what you can use is mod2imp SomeModule  SomeModule.imp.

Thanks, but it doesn't restore the whole thing.  I'm really looking for
the bits which are *not* restored by doing this - especially anchors,
ids, names and so on.  My problem is I have ThML sources for general
books and commentaries, and want to convert them to Sword modules.  The
thing that is especially difficult is how the ids and names etc in
anchors get converted into references that Sword uses -- the internal
a links in the modules I'm importing do not work once I've imported
them into Sword.  I'm using BibleTime to test, and know that the
internal links in 'Institutes' do work, but I can't get the sources to
see how this has been achieved.  I have a similar problem with getting
commentaries to work -- the ThML sources have correct scripCom tags,
but the imported module appears empty when imported as a commentary.

Does no-one have copies of the exact sources used to generate the
'Institutes' or 'Luther' modules, or an exact description of the process
used to turn them into Sword modules?  That would be the quickest way to
solve my problem.

 I simply talk about what I've produced here, and I keep my own module
 repository populated with them.  

OK, thanks. On this page:

http://crosswire.org/sword/develop/swordmodule/

it says you should e-mail [EMAIL PROTECTED], which has not
worked for me.

Luke
-- 
Luke Plant - L.Plant.98 at cantab.net


___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Internal links in ThML modules

2007-03-16 Thread Luke Plant
Bump!

In summary, can anyone point me to example ThML sources for commentaries 
and general books, in the form immediately before conversion to Sword 
modules?  e.g. MHC and Calvin's Institutes would be good.

I was hoping initially that you could do the reverse of xml2mod, but 
this doesn't seem to be case, especially when the modules are 
compressed.

Also, does anyone know whom I'm supposed to contact about adding new 
modules to Sword?  I e-mailed the address given on the website, but got 
no reply (starting to feel I'm invisible...)

Thanks,

Luke

-- 
I think you ought to know I'm feeling very depressed. (Marvin the 
paranoid android)

Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] New Website, Changes and HowTo

2001-10-19 Thread Luke Stahlman

Dave-

PHP has been on web servers longer than JSP has.  Are you talking about your
personal knowledge of PHP in relation to other scripting languages?

-Luke

- Original Message -
From: David Overcash [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 3:25 PM
Subject: RE: [sword-devel] New Website, Changes and HowTo


 I can't recall why we decided on .JSPs...
 I personally prefer PHP / HTML but PHP is fairly new so it is taking a
while
 to catch on...

 You would have to ask Troy or Chris, or Jonathan

 -Dave


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Timothy R. Butler
 Sent: Friday, October 19, 2001 4:18 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [sword-devel] New Website, Changes and HowTo


 Hi,
  1:  If anyone is familiar with the APACHE web server, I am installing it
 on
  my computer to test out the .jsp pages...  Are there any particular
  plug-ins I need to add in order to view .jsp files locally w/ APACHE
  installed?

   I was just curious, is there a reason you are using jsp's? I've had very
 good success with HTML w/ SSI's and Perl for accomplishing most things,
and
 APACHE works out of the box with SSI's...

   Sorry to poke my head in, but I just had to ask. :-)

   In Christ,
   Tim

 --
 -
 Timothy R. Butler  Universal Networks
 [EMAIL PROTECTED]   ICQ #12495932 AIM: Uninettm
 Free/Open Source Web Tools:http://www.uninetsolutions.com
 Christian Portal and Search Tool:http://www.faithtree.com
 == Christian Web Services Since 1996 ==





Re: [sword-devel] Problem building last CVS snapshot of Sword with GCC 3.0

2001-06-22 Thread Luke Mauldin

Hello, I was able to take care of alot of the sword error messages while 
compiling by manually adding utilstr.o to libsword.a  The line I used to do 
this was...
ar crs /home/luke/bibletime/sword/lib/libsword.a 
/home/luke/bibletime/sword/src/utilfuns/utilstr.o 
However I am still getting some errors while compiling:
make[1]: Entering directory `/home/luke/bibletime/sword/tests'
gcc -I../include/ -D_GNU_SOURCE -D_GNU_SOURCE -pipe -Wall -Wno-format 
-pedantic
-pedantic  -fomit-frame-pointer -ggdb -O2 -DUSBINARY -march=athlon 
-mcpu=athlon
-o keytest keytest.cpp   -L../lib/  -lsword -lstdc++ -lz
../lib//libsword.a(versekey.o): In function `VerseKey::ParseVerseList(char 
const*, char const*, bool)':
/home/luke/bibletime/sword/src/keys/../../include/swobject.h:29: undefined 
reference to `stricmp(char const*, char const*)'
/home/luke/bibletime/sword/src/keys/../../include/swobject.h:29: undefined 
reference to `stricmp(char const*, char const*)'
../lib//libsword.a(swmgr.o): In function `SWMgr::CreateMod(std::string, 
std::string, multimapwithdefaultstd::string, std::string, 
std::lessstd::string )':
/usr/include/g++-v3/bits/basic_string.h:714: undefined reference to 
`stricmp(char const*, char const*)'
/usr/include/g++-v3/bits/basic_string.h:714: undefined reference to 
`stricmp(char const*, char const*)'
/usr/include/g++-v3/bits/basic_string.h:714: undefined reference to 
`stricmp(char const*, char const*)'
../lib//libsword.a(swmgr.o):/usr/include/g++-v3/bits/basic_string.h:714: more 
undefined references to `stricmp(char const*, char const*)' follow
collect2: ld returned 1 exit status
make[1]: *** [keytest] Error 1
make[1]: Leaving directory `/home/luke/bibletime/sword/tests'
make: *** [tests/targets] Error 2
The part that is failing is the linker, which means that the compiler knows 
where to find the function defination for stricmp() but the linker does not 
know where to find the actual code(normally in a .cpp file).  I think this 
can be resolved by adding whatever object file the function stricmp is in to 
libsword.a  however I do not know where stricmp is defined.  Also, users who 
compile sword should not have to do these things manually, all of these 
things should be taken care of in a Makefile.

Luke


On Thursday 21 June 2001 11:46 pm, you wrote:
 Luke,
   Thanks for testing on 3.0.  stdstr is one of ours.  Should be in
 sword/include somewhere (utilstr.h I think).  Hope this helps.  Let me
 know if this included doesn't seem to be getting included correctly.

   -Troy.

 Luke Mauldin wrote:
  Hello I recently installed GCC 3.0 and the latest release of binutils and
  I attempted to build sword.  I got ALOT of errors.  They are posted
  below.  One specific one, the inability to find stdstr(), I looked for
  stdstr in every string related file on my system, both included in the
  GCC 3.0 and glibc 2.2.3 and still could not find any function by that
  name.  If anyone could enlighten me or help me with these errors, I would
  be very thankful.
 
  gcc -I../include/ -D_GNU_SOURCE -D_GNU_SOURCE -pipe -Wall -Wno-format
  -pedantic -pedantic  -fomit-frame-pointer -ggdb -O2 -DUSBINARY
  -march=athlon -mcpu=athlon -o keytest keytest.cpp   -L../lib/  -lsword
  -lstdc++ -lz ../lib//libsword.a(swkey.o): In function `SWKey::SWKey(char
  const*)': /home/luke/bibletime/sword/src/keys/swkey.cpp:26: undefined
  reference to `stdstr(char**, char const*)'
  ../lib//libsword.a(swkey.o): In function `SWKey::SWKey(char const*)':
  /home/luke/bibletime/sword/src/keys/swkey.cpp:26: undefined reference to
  `stdstr(char**, char const*)'
  ../lib//libsword.a(swkey.o): In function `SWKey::SWKey(SWKey const)':
  /home/luke/bibletime/sword/src/keys/swkey.cpp:36: undefined reference to
  `stdstr(char**, char const*)'
  ../lib//libsword.a(swkey.o): In function `SWKey::SWKey(SWKey const)':
  /home/luke/bibletime/sword/src/keys/swkey.cpp:36: undefined reference to
  `stdstr(char**, char const*)'
  ../lib//libsword.a(swkey.o): In function `SWKey::operator=(char const*)':
  /home/luke/bibletime/sword/src/keys/swkey.cpp:116: undefined reference to
  `stdstr(char**, char const*)'
  ../lib//libsword.a(swkey.o):/home/luke/bibletime/sword/src/keys/swkey.cpp
 :131: more undefined references to `stdstr(char**, char const*)' follow
  ../lib//libsword.a(versekey.o): In function
  `VerseKey::getBookAbbrev(char*)':
  /home/luke/bibletime/sword/src/keys/versekey.cpp:291: undefined reference
  to `strstrip(char*)'
  ../lib//libsword.a(versekey.o): In function
  `VerseKey::ParseVerseList(char const*, char const*, bool)':
  /home/luke/bibletime/sword/src/keys/../../include/swobject.h:29:
  undefined reference to `stricmp(char const*, char const*)'
  /home/luke/bibletime/sword/src/keys/../../include/swobject.h:29:
  undefined reference to `stricmp(char const*, char const*)'
  ../lib//libsword.a(localemgr.o): In function
  `LocaleMgr::setDefaultLocaleName(char const*)':
  /home/luke/bibletime/sword/src/mgr/localemgr.cpp:180: undefined