Difference between revisions of "OSIS pre-verse titles"

From CrossWire Bible Society
Jump to: navigation, search
m (Notes)
(See also: #Marking_sections_and_titles|OSIS Bibles)
 
(3 intermediate revisions by the same user not shown)
Line 22: Line 22:
 
=== Bug in osishtmlhref.cpp ===
 
=== Bug in osishtmlhref.cpp ===
  
There is code in there that is supposed to recognize everything between two markers as being pre-verse material, but it does not work.
+
There is code in there that is supposed to recognize everything between two verse 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.
 
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.
 +
 +
=== See also ===
 +
* [[OSIS Bibles#Marking_sections_and_titles|OSIS Bibles]]
  
 
[[Category:OSIS|OSIS Bibles]]
 
[[Category:OSIS|OSIS Bibles]]

Latest revision as of 15:56, 7 January 2012

Pre-verse titles

These further notes are pasted from a recent thread in the SWORD devel mailing list.

Notes

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:

  1. 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 <div> with a type of section will be taken as surrounding verses.
    • A <title> 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.

Bug in osishtmlhref.cpp

There is code in there that is supposed to recognize everything between two verse 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.

See also