I agree with Greg that the begin title and the begin verse should be reversed. 
That, of course, will result in the orphaning of the verse number from the 
title, placing the verse number at the beginning of the line preceding the 
title.

I think that we should approach this as two issues: proper OSIS construction 
and proper SWORD engine behavior.

Regarding proper OSIS construction, it appears that the complaint is against 
usfm2osis.py? If I understand, USFM (like GBF before it) is a marker kind of 
markup, where a marker locates the position of a behavior (e.g. start 
declarative text) or a construction (e.g. output a verse number). There may be 
end markers, such as turn off declarative text, but it appears that some 
markers implicitly continued until a conflicting marker say \p is found. This 
is quite different than a container markup, which is XML. A transformative 
parser going from the one to the other to work properly has to keep state in 
order for such to work properly.

Earlier I asked how it is supposed to be styled in print. That will help us 
understand how the SWORD filters are supposed to behave.

Part of the problem is that titles when rendered by SWORD in HTML use the <h*> 
element (where * is an appropriate number). The heading element is a block 
element by default and as such starts below what precedes it and above what 
follows it. 

For Ps 11:1, the title is the first part of the verse text. So the title splits 
the text.

If the title were to be styled as centered italic at 1/4 the width of the 
screen, causing wrapping of long titles to multiple lines, where would you 
expect the verse number to be located? At the beginning of the line before the 
title, the beginning of the line containing the title or immediately preceding 
the text?

In Him,
        DM

> On Dec 29, 2014, at 6:06 AM, David Haslam <dfh...@googlemail.com> wrote:
> 
> Thanks DM, for your various comments.
> 
> For now, here's the OSIS snippet for the same part of Psalm 11.
> 
> <chapter osisID="Ps.11" sID="Ps.11"/>
> <title>Salm 11</title>
> <title canonical="true" type="psalm"><verse osisID="Ps.11.1"
> sID="Ps.11.1"/>D'ar mestr-kaner; salm David.</title>
> <p>
> En em dennet on da gavout an <divineName>AOTROU</divineName>. Penaos eta e
> lavarit da'm ene: Tec'h en ho menez evel ul labous?<verse eID="Ps.11.1"/>
> <verse osisID="Ps.11.2" sID="Ps.11.2"/>Rak setu, ar re zrouk a stegn ar
> wareg; kempennet o deus ar bir war ar gordenn, evit tennaƱ en deƱvalijenn
> war ar re o deus ar galon eeun.<verse eID="Ps.11.2"/>
> 
> 
> My earlier observation stands: ("not well formed")
> 
> i.e. The sID is within the title element, the eID is after it.
> cf. Psalms such as Ps.3 for which the title is the whole of verse one are
> different only in the detail.
> e.g. The verse one eID is immediately after </title> rather than postponed
> by the rest of the verse.
> 
> (btw. For Ps 11, from verse 2 onwards, all is as it should be.)
> 
> ====
> 
> My earlier references to the 'translator' should be understood as "the
> reviser ... together with his technical advisers".
> These advisers are competent users of Paratext, so they understand all the
> intricacies of USFM.
> 
> cf. The original translator lived in the nineteenth century, so he's no
> longer with us.
> 
> From the BretonNT conf file:
> ".... first translated during the 19th century by Guillaume Le Coat and
> published by the Brittany Trinitarian Bible Society in 1893 revised,
> transposed into modern Breton language by Luc Bernicot, and published by the
> Anjou Bible Society in 2004, revision improved 2011, called KOAD 21
> VERSION."
> 
> NB. That was for the NT only, so the about will have to be edited for the
> 2014 edition with the 8 OT books added.
> 
> Best regards,
> 
> David
> 
> 
> 
> --
> View this message in context: 
> http://sword-dev.350566.n4.nabble.com/Verses-that-are-partly-a-title-tp4654417p4654432.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
> 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

Reply via email to