[sword-devel] Poetry and indented lines

DM Smith dmsmith at crosswire.org
Mon Mar 9 11:43:16 MST 2009

Chris Little wrote:
> DM Smith wrote:
>> With regard to OSIS, if there are short-comings, we should try to 
>> influence the standard. This is a proper venue for how we at 
>> CrossWire would like to work with OSIS.
>> Regarding the <l> element and indents here is what the manual has to 
>> say:
>> *l: The l element is used to mark separate lines in a lg (line group) 
>> element. This will be most commonly used in the encoding of poetry.*
>> *
>> *
>> *The level attribute takes a positive integer value that indicates 
>> which line in a line group is being encoded. This can be used in 
>> processing to insure proper indentation of lines.*
>> *
>> *
>> If I understand this right, the level attribute should be used to 
>> indicate the depth of indentation. Perhaps level="1" and level not 
>> being specified should mean the same thing. And ESV should be 
>> re-coded to have it properly set.
>> (I'd like Chris' input!)
> This is precisely my understanding as well, and I try to encode using 
> this semantic for the level attribute on <l>. The usfm2osis.pl 
> converter, for example, should interpret the level indicators in SFM 
> and copy those to the level attribute. So, in theory, there should be 
> a number of Bibles already encoded like this (just don't ask me to 
> remember which they are).

Thanks Chris. Based on that I've updated 

I checked the SWORD and JSword renderers and they don't do indentation 
based upon level. I think it would be simple to add. I'll do it for 
JSword, but I don't have the time to do it for SWORD. It looks like a 
couple of lines to osishtmlhref.cpp and osisrtf.cpp.

Beyond that the ESV and WEB should be updated to do proper indentation. 
Are there any others?

In Him,

More information about the sword-devel mailing list