Difference between revisions of "OSIS pre-verse titles"

From CrossWire Bible Society
Jump to: navigation, search
(New page)
 
(See also: #Marking_sections_and_titles|OSIS Bibles)
 
(7 intermediate revisions by 2 users not shown)
Line 8: Line 8:
  
 
Here are those rules, taken from osis2mod:
 
Here are those rules, taken from osis2mod:
# 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.
+
<ol start="2">
# A &lt;div> with a type of section will be taken as surrounding verses.
+
<li> 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 &lt;title> of type other than main, chapter or sub, will be taken as a title for the verse.
+
* A &lt;div> with a type of section will be taken as surrounding verses.
# Once one of these conditions is met, the division between chapter introduction and pre-verse is set.
+
* A &lt;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.
 +
</li>
 +
</ol>
  
 
Everywhere else in osis2mod, it is ignored.
 
Everywhere else in osis2mod, it is ignored.
Line 17: Line 20:
 
Currently, the SWORD engine uses subType="x-preverse" to know that the verse number should follow the heading.
 
Currently, the SWORD engine uses subType="x-preverse" to know that the verse number should follow the heading.
  
=== Bug ===
+
=== 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]]

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