<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 9, 2009, at 6:22 PM, Ben Morgan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Tue, Mar 10, 2009 at 5:43 AM, DM Smith <span dir="ltr"><<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Thanks Chris. Based on that I've updated <a href="http://crosswire.org/wiki/OSIS_Bibles#Marking_poetic_material" target="_blank">http://crosswire.org/wiki/OSIS_Bibles#Marking_poetic_material</a>.<br> <br> 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.</blockquote> <div>It may not quite that simple... without css, I'm not sure how you can do indentations easily in html (blockquotes? &nbsp;s?). BPBible currently extends the wxHTML parser to add some new tags and then it is easy. I should be able to make BPBible use the level attribute very easily.</div></div></blockquote><div><br></div>OK. Since you have implemented it, I'll take your word that it is not straightforward.</div><div><br></div><div>For JSword, we use CSS for all styling of the generated html. That html is somewhat ugly in that it is very old HTML and does not recognize elements such as <span>, which we'd use to mark inline text for a style. Instead we use <font> for the same purpose in this fashion:</div><div><font class="line">text of line</font>.</div><div>So now it would become something like:</div><div><font class="line indent2">text of line at level="2"</font></div><div><br></div><div>The CSS would probably set margin-left or padding-left to so many ems.</div><div><br></div><div>If we didn't do that we could use mediawikis encoding of ':' which uses <dl><dd> to do the indentation as in:</div><div><br></div><div><div><dl><dd><dl><dd><dl><dd><dl><dd>As above, subject is "Poetry and indented lines", date is 11/04/08. Direct link <a href="<a href="http://www.crosswire.org/pipermail/sword-devel/2008-November/029486.html">http://www.crosswire.org/pipermail/sword-devel/2008-November/029486.html</a>" class="external free" title="<a href="http://www.crosswire.org/pipermail/sword-devel/2008-November/029486.html">http://www.crosswire.org/pipermail/sword-devel/2008-November/029486.html</a>" rel="nofollow"><a href="http://www.crosswire.org/pipermail/sword-devel/2008-November/029486.html">http://www.crosswire.org/pipermail/sword-devel/2008-November/029486.html</a></a> --<a href="/mediawiki/index.php?title=User:Mwtalbert&amp;action=edit&amp;redlink=1" class="new" title="User:Mwtalbert (page does not exist)">Mwtalbert</a> 00:02, 9 March 2009 (UTC)</div><div></dd></dl></div><div></dd></dl></div><div></dd></dl></div><div></dd></dl></div><div><br></div><div>The hard part of this is that it is more complex to implement in SWORD.</div><div><br></div><div>Failing that, &nbsp; can be used. This is the easiest of all and precisely what I was thinking when I said it could be done.</div><div><br></div><div>Something like (this is pseudo code):</div><div>if (!tag.isEndTag() && !tag.isEmpty()) {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>int level = tag.getAttribute("level");<br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>for (i= 1; i < level; i++) {<br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>output('&nbsp;&nbsp;&nbsp;&nbsp;')<br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>}</div><div><br></div><div>But SonWon's admonishing that might not be appropriate for portable devices should be listened to. I don't know of the osishtmlhref or osisrtf filters are used there.</div><div><br></div><div>In Him,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DM<br></div><div><br></div><div><br></div><blockquote type="cite"><div class="gmail_quote"><div><br> <br>Another thing that BPBible does is puts the verse number in the lg margin during poetry - more like a print Bible.</div></div></blockquote><div><br></div>This is a good thing to do.</div><div><br><blockquote type="cite"><div class="gmail_quote"><div><br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Beyond that the ESV and WEB should be updated to do proper indentation. Are there any others?<br></blockquote><div>Not that I've seen; but I haven't looked far. Anyway, it would be good to update these.<br> <br></div> God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>Multitudes, multitudes,<br> in the valley of decision!<br>For the day of the LORD is near<br> in the valley of decision.<br> <br>Giôên 3:14 (ESV)</div> _______________________________________________<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">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page</blockquote></div><br></body></html>