The headings do not work with the Apostolic Bible Polyglot module either. I tried different ways of marking them but concluded it was a problem with osis2mod since the latest branch of it worked at the time.<br><br><div class="gmail_quote">
On Thu, Mar 25, 2010 at 3:33 PM, Peter von Kaehne <span dir="ltr"><<a href="mailto:refdoc@gmx.net">refdoc@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also for a German module I made. Missing headlines, missing parts of<br>
verses. But the OSIS looks ok<br>
<div><div></div><div class="h5"><br>
<a href="mailto:Peterjohnduffy@cgcf.net">Peterjohnduffy@cgcf.net</a> wrote:<br>
> This looks similar to the heading problem reported here:<br>
> <a href="http://sourceforge.net/tracker/?func=detail&aid=2954856&group_id=954&atid=10" target="_blank">http://sourceforge.net/tracker/?func=detail&aid=2954856&group_id=954&atid=10</a><br>
> 0954<br>
> where the problem was noted by Martin Gruner as html not allowing a title<br>
> element to be within the body.<br>
><br>
> John Duffy<br>
><br>
><br>
>> -----Original Message-----<br>
>> From: Karl Kleinpaste [mailto:<a href="mailto:karl@kleinpaste.org">karl@kleinpaste.org</a>]<br>
>> Sent: 25 March 2010 11:51<br>
>> To: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
>> Subject: [sword-devel] another OSIS weirdness: headers in LEB<br>
>><br>
>> So the new LEB from Logos came out, and there's a new module in the<br>
>> CrossWire repo. I picked it up, and I turned on footnotes<br>
>> and headings.<br>
>><br>
>> Before I turned on headings, display looked pretty normal, though I<br>
>> could question excess line breaks in Matt 1:23. Turning on<br>
>> headings, I<br>
>> get this psychotically overwrought whitespace nightmare, and<br>
>> I've got no<br>
>> actual headings.<br>
>><br>
>> Screenshots are too big to send to the list, so look here:<br>
>> <a href="http://karl.kleinpaste.org/.../LEB-Mat1-noHeadings.png" target="_blank">http://karl.kleinpaste.org/.../LEB-Mat1-noHeadings.png</a><br>
>> <a href="http://karl.kleinpaste.org/.../LEB-Mat1-Headings.png" target="_blank">http://karl.kleinpaste.org/.../LEB-Mat1-Headings.png</a><br>
>><br>
>> The lack of real headings concerned me pretty seriously, considering<br>
>> that I had looked at the OSIS source and could see them there, so I<br>
>> started up gdb and breakpointed Xiphos to see what it was doing with<br>
>> headers. This heading analysis works in every other OSIS module.<br>
>><br>
>> sprintf(heading, "%d", x);<br>
>> while ((preverse = be->get_entry_attribute("Heading",<br>
>> "Preverse",<br>
>><br>
>> heading)) != NULL) {<br>
>> preverse2 = mod.RenderText(preverse);<br>
>> text = g_strdup_printf("<br><b>%s</b><br><br>",<br>
>> (((ops->strongs ||<br>
>> ops->lemmas) ||<br>
>> ops->morphs)<br>
>> ? block_render(preverse2)<br>
>> : preverse2));<br>
>> CleanupContent(text, ops, mod.Name());<br>
>><br>
>> cVerse.AppendHeader(text);<br>
>> g_free((gchar *)text);<br>
>> g_free((gchar *)preverse);<br>
>> ++x;<br>
>> sprintf(heading, "%d", x);<br>
>> }<br>
>><br>
>> "be" is our backend object, accessing the engine. We get the heading,<br>
>> we render it according to the module's needs, and then we wrap it in a<br>
>> bit of extra HTML markup before we append it to the total.<br>
>><br>
>> Here's a copy/paste of using gdb to watch this happen, for Matt 2:1,<br>
>> which has a heading, "Wise Men Visit Jesus."<br>
>><br>
>> | (gdb) s<br>
>> | CacheHeader (cVerse=..., mod=..., ops=0x51c3fa0,<br>
>> be=0xbb4860) at ../src/main/display.cc:773<br>
>> | 773 int x = 0;<br>
>> | (gdb) n<br>
>> | 778 cVerse.SetHeader("");<br>
>> | (gdb)<br>
>> | 780 sprintf(heading, "%d", x);<br>
>> | (gdb) p cVerse<br>
>> | $4 = (ModuleCache::CacheVerse &) @0x2137048: {_text =<br>
>> | 0x51e0ec0 "Now <i>after</i><a<br>
>> href=\"passagestudy.jsp?action=showNote&type=n&value=1&module=<br>
>> LEB&passage=Matthew+2%3A1\"><small><sup>*n</sup></small></a><br>
>> Jesus was born in Bethlehem of Judea in the days of Herod<br>
>> th"..., _header = 0x50bcc10 "", _flags = 11269}<br>
>> | (gdb) n<br>
>> | 781 while ((preverse =<br>
>> be->get_entry_attribute("Heading", "Preverse",<br>
>> | (gdb)<br>
>> | 783 preverse2 = mod.RenderText(preverse);<br>
>> | (gdb) p preverse<br>
>> | $5 = (const gchar *)<br>
>> | 0x51dfff0 "<div sID=\"gen43\" type=\"section\"/><br>
>> <title>Wise Men Visit Jesus</title> <div sID=\"gen44\"<br>
>> type=\"paragraph\"/>"<br>
>> | (gdb) n<br>
>> | 788 : preverse2));<br>
>> | (gdb) p preverse2<br>
>> | $6 = (const gchar *) 0x3b9c9c0 " <b></b><br /> <!P><br />"<br>
>> | (gdb) n<br>
>> | 789 CleanupContent(text, ops, mod.Name());<br>
>> | (gdb) p text<br>
>> | $7 = (gchar *) 0x51bfa80 "<br><b> <b></b><br /> <!P><br<br>
>> /></b><br><br>"<br>
>> | (gdb) n<br>
>> | 791 cVerse.AppendHeader(text);<br>
>><br>
>> Please note, at $5 we had a normal OSIS heading, but just one line of<br>
>> code execution later, at $6 what has come back from RenderText()<br>
>> is...total nonsense. A space, an empty bold sequence (where "Wise Men<br>
>> Visit Jesus" should have appeared), a line break, a paragraph<br>
>> break, and<br>
>> a line break? No wonder it looks psychotic.<br>
>><br>
>> I don't know what to say about it. I can't very well go looking for<br>
>> what's happening inside Xiphos, because this works fine for<br>
>> KJV and beta<br>
>> NASB and every other OSIS module. But on LEB, RenderText() is simply<br>
>> freaked out for some reason. Encoding problem? osis2mod problem?<br>
>><br>
>> I'm using Sword at -r2507.<br>
>><br>
>> _______________________________________________<br>
>> sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
>> <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
>> Instructions to unsubscribe/change your settings at above page<br>
><br>
><br>
> _______________________________________________<br>
> sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
> <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
> Instructions to unsubscribe/change your settings at above page<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</div></div></blockquote></div><br>