[sword-devel] markup within ThML <div></div> not interpreted: bug or design flaw?

DM Smith dmsmith555 at yahoo.com
Wed Aug 2 18:05:13 MST 2006


Karl,
	The problem is also in the OSIS filters. Both for the web and for  
BibleCS. I notice that <divineName>Lord</divineName> is not being  
rendered properly, like it is elsewhere. I think this is a bug.
	I'd be glad to fix it if someone can narrow down where the problem  
might be. I'm still learning my way around the C++ code.
DM

On Aug 2, 2006, at 2:14 PM, Karl Kleinpaste wrote:

> 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
> modules:
>
> <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.)
>
> Similarly...
>
> <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>
>
> ...displays as...
>
> 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?
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page




More information about the sword-devel mailing list