[sword-devel] markup within ThML <div></div> not interpreted: bug or design flaw?
karl at charcoal.com
Wed Aug 2 11:14:37 MST 2006
Having built latest sword svn last evening, with gnomesword 2.1.7
re-built against it, it appears that ThML modules' use of <div></div>
fails to provide the interpretation of any other markup in between.
I generate a number of modules for my personal use. I construct ThML
in import format, then imp2vs to build the module. Examples from such
<div class="sechead">A Night Prayer<br />For the choir director: with stringed instruments. <scripRef>Ps 6; Is 38:20; Hab 3:19;</scripRef> A Davidic psalm.</div>
This displays as:
A Night PrayerFor the choir director: with stringed instruments. Ps 6; Is 38:20; Hab 3:19; A Davidic psalm.
Note that <br /> is not interpreted, and the contents of <scripRef>
are included literally, without interpretation. (In gnomesword,
simple <scripRef> citations, without passage="...", would display as
"*x", as a clickable xref to the preview area.)
<div class="sechead">Psalm 6<note>1</note><br />For the music director, to be accompanied by stringed instruments, according to the <i>sheminith</i>style;<note>2</note> a psalm of David.<br /></div>
Psalm 61For the music director, to be accompanied by stringed instruments, according to the sheminith style;2 a psalm of David.
You can't see it here in plain text, but "sheminith" should be
italicized and is not; and of course the note content ("1", "2") is
simply displayed, rather than being shown as "*n" (in gnomesword, "*n"
provides a tooltip-style hover display of note content in the preview.
Until I re-built gnomesword against sword svn last evening, these
displayed in the manner one would expect: With line breaks, italics,
footnotes, and xrefs as indicated.
I was discussing this with DM Smith in freenode #sword, who mentioned
that his current Bible Desktop java handles this sort of case fine.
I will look over the code this evening, but can anyone offer an
opinion as to whether this is a design choice (very ill-advised, in my
opinion) or a bug?
More information about the sword-devel