On Nov 9, 2009, at 5:48 AM, <johndu...@cgcf.net> wrote:
I've got some poetry groups that start in the middle of verses.
However,
when a module is displayed, the first line of the poetry group is
shown as a
continuation of the paragraph text while the second line and
following of
the poetry group start with a new line. This occurs in Xiphos,
BibleDesktop
and BibleCS. Below is an example
OSIS
<verse sID="Hab.2.18" osisID="Hab.2.18"/>
Cén tairbhe é íomhá ghreanta
<lg>
<l level="1">le go ndealbhódh a déantóír í chor ar bith?</l>
<l level="1">nó dealbh teilgthe, oracal bréagach,</l>
<l level="1">le go gcuirfeadh a déantóir a mhuinín inti</l>
<l level="1">agus gan ach dealbha balbha á ndéanamh aige?</l>
<verse eID="Hab.2.18"/>
</lg>
This looks like it should (though stylistically, I'd swap the <verse
eID="Hab.2.18"/> and </lg>).
BibleDesktop
18Cén tairbhe é íomhá ghreanta le go ndealbhódh a déantóír í chor
ar bith?
nó dealbh teilgthe, oracal bréagach,
le go gcuirfeadh a déantóir a mhuinín inti
agus gan ach dealbha balbha á ndéanamh aige?
It should work the way you want. JSword and SWORD should be changed to
accommodate.
In BibleDesktop, it should already do that. I'm confused as to why it
would not.
We use xslt to transform the OSIS into HTML. We change the <lg> into a
<div>. In HTML, a div is a block element and should start on a new line.
Can you turn on "View Source" in your BD properties. It will require a
manual edit of desktop.properties. Change the line:
Advanced.ViewSource=false
to
Advanced.ViewSource=true
Note, if it is not there, add it.
The next time you start BD, you'll see "View Source" on the View menu.
It will have 3 tabs, one for the raw text as coming from the module,
one for OSIS and one for the generated HTML.
You'll quickly find that it is easiest to look at a single verse.
If you'd go to this verse and do a ViewSource, what do you get for
these three views? (send it to me directly) I'm curious as to whether
osis2mod created something that BD's xslt does not handle. I have an
idea as to what might be happening.
Is there any way to get the first line of the poetry group to start
on a new
line in the module?
As a hack, insert a <lb/> before each <lg>. This should only be a
short term hack.
Someone could change the osis2htmlhref.cpp filter to output a <div>
when encountering an <lg>. The last line in a line group probably
shouldn't output a <br/>. That would produce extra spacing. A similar
change should be done in the other osis filters.
John Duffy
_______________________________________________
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