[sword-devel] verse position problems - osis2mod version

DM Smith dmsmith at crosswire.org
Tue Feb 25 22:20:14 MST 2014


Shane,

r2519 introduced a regression to the handling of content between verses. It was restored in r2671.

That is to say, you have a version (over 2 years old) that produces the problem. You need a more recent version (r2671 or later). Since you are on ubuntu, it is easy enough to build osis2mod from source.

If you need help with that let us know.

If you haven't been to our "man" page on the wiki, here is the link: http://www.crosswire.org/wiki/Osis2mod

It gives the history of changes to the program.

In Him,
	DM Smith

On Feb 25, 2014, at 10:37 PM, Shane Cooke <shanecooke at mac.com> wrote:

> Version number is 2562, installed from a sword 1.7.0 zip, on Ubuntu 12.04
> 
> On Feb 25, 2014, at 9:07 PM, sword-devel-request at crosswire.org wrote:
> 
>> Send sword-devel mailing list submissions to
>> 	sword-devel at 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-request at crosswire.org
>> 
>> You can reach the person managing the list at
>> 	sword-devel-owner at 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: verse position problems (DM Smith)
>>  2. Re: Best Windows compiler to use to make Python bindings to
>>     Sword? (Jonathan Morgan)
>> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Tue, 25 Feb 2014 15:23:12 -0500
>> From: DM Smith <dmsmith at crosswire.org>
>> To: SWORD Developers' Collaboration Forum <sword-devel at crosswire.org>
>> Subject: Re: [sword-devel] verse position problems
>> Message-ID: <F1612FFD-18F3-475C-9871-953DA8FF7988 at crosswire.org>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> When you run osis2mod it displays the version number. What is it? You might be using a version that does not handle paragraph markup between verses.
>> 
>> Otherwise:
>> I think this may be solved in Bible Desktop, where we use arabic numbers so they flow with everything else. Can you give that a try. You will need to pick Persian as the interface language to get it to do that. (I know arabic and farsi are different languages, but we can see the results then.)
>> 
>> If then it shows properly, it is not a module problem.
>> 
>> In Him,
>> 	DM
>> 
>> 
>> On Feb 25, 2014, at 2:41 PM, Shane Cooke <shanecooke at mac.com> wrote:
>> 
>>> Thanks for getting back to me DM,
>>> 
>>> I see this problem on Eloquent, and PocketSword. Bibles in similar languages do not exhibit the same problem. I have access to some OSIS forms of a few of those and as far as I can tell my code is the same as theirs.
>>> 
>>> I do use <p>? here is a sample:
>>> 
>>> <chapter n="4" osisID="Matt.4"/>
>>> <title>?????? ???????? ?????? ????????? ????? ?????</title>
>>> <p>
>>> <verse sID="Matt.4.1" osisID="Matt.4.1"/>????? ????? ????? ???? ????? ????????? ????????? ????? ????? ????? ???? ?????.<verse eID="Matt.4.1"/>
>>> <verse sID="Matt.4.2" osisID="Matt.4.2"/>??? ????? ????? ???? ????? ???? ????? ?????? ??? ????? ??????.<verse eID="Matt.4.2"/></p>
>>> <p>
>>> <verse sID="Matt.4.3" osisID="Matt.4.3"/>????? ???????? ??????? ???? ?????? ?????:</p>
>>> 
>>> In this case it displays like (with some pretend right justification):
>>>                                        Matthew 4:
>>> .more arabic text 2 .arabic text 1
>>>                                                            3
>>> 	            .new arabic paragraph
>>> 
>>> Thank you,
>>> Shane
>>> 
>>> 
>>> On Feb 25, 2014, at 2:30 PM, sword-devel-request at crosswire.org wrote:
>>> 
>>>> Where are you seeing this problem of verse placement numbers? Some of the frontends have problem displaying verse numbers in the right place with RtoL text.
>>>> 
>>>> Otherwise, I think it is a problem with your text.
>>>> 
>>>> The verse number will be placed where the <verse> element starts. If you put a elements such as <p>, <div>, <lg>, <l> right after the <verse ...> start, then the verse number will be followed by a newline.
>>>> 
>>>> Generally, elements that contain text and imply newlines should be placed between verses. On occasion it can split a verse. Likewise for such element ends: Typically between verses. Sometimes within.
>>>> 
>>>> If you have these at the end of a verse right before </verse>, it will cause other problems that are not as obvious. 
>>>> 
>>>> Hope this helps a bit.
>>>> 
>>>> In Him,
>>>> 	DM
>>> 
>>> _______________________________________________
>>> sword-devel mailing list: sword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>> Instructions to unsubscribe/change your settings at above page
>> 
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140225/25fc61e6/attachment-0001.html>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: smime.p7s
>> Type: application/pkcs7-signature
>> Size: 4145 bytes
>> Desc: not available
>> URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140225/25fc61e6/attachment-0001.p7s>
>> 
>> ------------------------------
>> 
>> Message: 2
>> Date: Wed, 26 Feb 2014 13:01:17 +1100
>> From: Jonathan Morgan <jonmmorgan at gmail.com>
>> To: "SWORD Developers' Collaboration Forum"
>> 	<sword-devel at crosswire.org>
>> Subject: Re: [sword-devel] Best Windows compiler to use to make Python
>> 	bindings to Sword?
>> Message-ID:
>> 	<CAOOKcO7SxQmoNggGXptnbMHnaLra3tpb5=F5XyfaCokgdY65gA at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>> 
>> Hi Timothy,
>> 
>> On Wed, Feb 26, 2014 at 6:24 AM, rj_qgsous_sword <
>> rj_qgsous_sword at objectmail.com> wrote:
>> 
>>> Thank you for your helpful answers. I had been attempting to use CMake to
>>> build a Visual Studio 2008 project and make the SWIG bindings. Now I
>>> understand why that didn't work.
>>> 
>>> Also, I now have some more questions:
>>> 
>>>  1. @Jon You mentioned that you used the Visual Studio project for C#
>>>  in the bindings/swig/vstudio directory. Does this mean that I need to use
>>>  Visual Studio C# instead of Visual Studio C++? I'm somewhat confused about
>>>  this, since I thought that SWIG and Python would need Visual Studio C++
>>>  rather than C#.
>>> 
>>> This is going from memory, but I think I would have modified it to work
>> with Python rather than C#, and I think as a result it would only have
>> needed VC++, not VC#.
>> 
>>> 
>>>  1. I am thinking that I might be switching soon from Python 2 to
>>>  Python 3. So I was also wondering if it is possible to build the SWIG
>>>  bindings for Python 3? If I understand correctly, SWIG claims to have
>>>  Python 3 support. If I were to switch to Python 3, I suppose I would then
>>>  want to use Visual Studio 2010, since that is what Python 3 is built with.
>>> 
>>> I don't know if anyone has used SWORD with Python 3.  I certainly haven't.
>> But yes, I would always recommend using the same compiler as was used to
>> build the Python runtime.
>> 
>> Jon
>> 
>>> Thank you.
>>> 
>>> -- Timothy
>>> 
>>> _______________________________________________
>>> sword-devel mailing list: sword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>> Instructions to unsubscribe/change your settings at above page
>>> 
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140226/93424eef/attachment.html>
>> 
>> ------------------------------
>> 
>> _______________________________________________
>> sword-devel mailing list
>> sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> 
>> 
>> End of sword-devel Digest, Vol 119, Issue 54
>> ********************************************
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140226/7b6a87fd/attachment-0001.p7s>


More information about the sword-devel mailing list