[sword-devel] Marking pre-verse titles?

2011-10-20 Thread David Haslam
The wiki page describes how to mark pre-verse titles. 
See http://crosswire.org/wiki/OSIS_Bibles#Marking_pre-verse_titles

Trouble is that in the example provided, one of the attributes does not
validate against the OSIS 2.1.1 schema.

The example given is 

Validating this within an otherwise valid OSIS XML file reports as follows:


This prompts the obvious question, should the attribute value be  rather
than  ?

And if not, why not?

btw. Is there anything else in this wiki page that might need further
attention?

David

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Marking-pre-verse-titles-tp3921887p3921887.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


Re: [sword-devel] Marking pre-verse titles?

2011-10-20 Thread DM Smith

David,
Can you provide more information? See below:

In Him,
DM
On 10/20/2011 09:27 AM, David Haslam wrote:

The wiki page describes how to mark pre-verse titles.
See http://crosswire.org/wiki/OSIS_Bibles#Marking_pre-verse_titles

Trouble is that in the example provided, one of the attributes does not
validate against the OSIS 2.1.1 schema.


Which attribute is problematic? At a glance it looks good to me.



The example given is


What belongs here?



Validating this within an otherwise valid OSIS XML file reports as follows:


What belongs here?



This prompts the obvious question, should the attribute value be  rather
than  ?

What fills in the blank?



And if not, why not?

btw. Is there anything else in this wiki page that might need further
attention?

David

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Marking-pre-verse-titles-tp3921887p3921887.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


Re: [sword-devel] Marking pre-verse titles?

2011-10-20 Thread David Haslam
Evidently some folk could not read the original message, part of which read:

Trouble is that in the example provided, one of the attributes does not
validate against the OSIS 2.1.1 schema.

The example given is

 
 A Psalm
of David, when he fled from Absalom his son.
 
 

Validating this within an otherwise valid OSIS XML file reports as follows:

  Value 'section' does not match any member types (of the union).


This prompts the obvious question, should the attribute value be

"x-section"

 rather than

"section"

 ?



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Marking-pre-verse-titles-tp3921887p3922108.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


Re: [sword-devel] Marking pre-verse titles?

2011-10-20 Thread DM Smith

On 10/20/2011 10:40 AM, David Haslam wrote:

Evidently some folk could not read the original message, part of which read:

Trouble is that in the example provided, one of the attributes does not
validate against the OSIS 2.1.1 schema.

The example given is

  
  A Psalm
of David, when he fled from Absalom his son.
  
  

Validating this within an otherwise valid OSIS XML file reports as follows:

   Value 'section' does not match any member types (of the union).


This prompts the obvious question, should the attribute value be

"x-section"

  rather than

"section"

  ?


It could be x-section, but it'd be better to be absent or one of the 
allowable choices.


The title's type value is ignored by the SWORD engine. It is used by 
osis2mod when the title is before the first verse in a chapter. Here are 
those rules, taken from osis2mod:
// 2) Between the opening of a chapter and the first 
verse, the material is split between the introduction of the chapter

//and the first verse of the chapter.
//A  with a type of section will be taken as 
surrounding verses.
//A  of type other than main, chapter or 
sub, will be taken as a title for the verse.
//Once one of these conditions is met, the division 
between chapter introduction and pre-verse is set.

Everywhere else in osis2mod, it is ignored.

Currently, the SWORD engine uses subType="x-preverse" to know that the 
verse number should follow the heading.


There is code in there that is supposed to recognize everything between 
two markers as being pre-verse material, but it does not work. When that 
works, the subType="x-preverse" should not be needed. (It shouldn't be 
needed now as osis2mod knows when a title is pre-verse and can mark it 
as such.)


Hope this helps.

In Him,
 DM





--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Marking-pre-verse-titles-tp3921887p3922108.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


Re: [sword-devel] Marking pre-verse titles?

2011-10-20 Thread Ben Morgan
On Fri, Oct 21, 2011 at 1:40 AM, David Haslam  wrote:

> Evidently some folk could not read the original message, part of which
> read:
>

This seems to happen because fixed width text doesn't get through Nabble
into the email list (it's been observable with your emails for a while). Is
there a reason you don't use it as an email list rather than using Nabble?

God Bless,
Ben
-
 For I have no pleasure in the death of anyone,
declares the Lord God; so turn, and live.”
Ezekiel 18:32 (ESV)
___
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] Marking pre-verse titles?

2011-10-21 Thread David Haslam
The main reason for me using Nabble is convenience. Plus it's especially
useful for searching purposes.

Like most active people, I have more than enough emails to deal with as it
is.
i.e. Using either my main ISP with Thunderbird or using my gmail address
online.

Although I was aware that on rare occasions a whole message fails to reach
the list,
this is the first time I've been made aware that text wrapped between
 and  gets removed.

I'll try to remember this in future.  Thanks for heads up.

David

PS. In the above text, to defeat the markup, I replaced the less than sign
by the equivalent HTML entity.

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Marking-pre-verse-titles-tp3921887p3925454.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


Re: [sword-devel] Marking pre-verse titles?

2011-10-21 Thread David Haslam
Thanks DM.

For convenience, I've just pasted your notes into
http://crosswire.org/wiki/OSIS_pre-verse_titles

The new page is linked from
http://crosswire.org/wiki/OSIS_Bibles#Marking_pre-verse_titles

If the osis2mod bug gets solved, we can easily edit these pages.

David

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Marking-pre-verse-titles-tp3921887p3925539.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