<div class="gmail_quote">On Tue, Mar 10, 2009 at 12:03 PM, DM Smith <span dir="ltr"><<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</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;">
<div style="word-wrap: break-word;"><div><div class="im"><div>On Mar 9, 2009, at 6:22 PM, Ben Morgan wrote:</div>On Tue, Mar 10, 2009 at 5:43 AM, DM Smith <span dir="ltr"><<a href="mailto:dmsmith@crosswire.org" target="_blank">dmsmith@crosswire.org</a>></span> wrote:<br>
<blockquote type="cite"><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></div>OK. Since you have implemented it, I'll take your word that it is not straightforward.</div><div></div></div></blockquote><div>At least not in wxHTML, anyway.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="word-wrap: break-word;"><div></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></div></div></blockquote><div>wxHTML doesn't support CSS (nor do some other frontend's html components)<br> <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="word-wrap: break-word;"><div></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" target="_blank">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" target="_blank">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" target="_blank">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></div></div></div></blockquote><div>I think this is probably better (but ugly). Theoretically, though, I think the line could end in a different verse (and I'm pretty sure it does somewhere in the 2001 ESV, though not the 2007), which could mess this up a little. <br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="word-wrap: break-word;"><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></div></div></div></blockquote><div>That would be simplest, but doesn't do indentation if lines wrap. <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;"><div style="word-wrap: break-word;"><div><div></div><div>Something like (this is pseudo code):</div>
<div>if (!tag.isEndTag() && !tag.isEmpty()) {</div><div><span style="white-space: pre;">        </span>int level = tag.getAttribute("level");<br></div><div><span style="white-space: pre;">        </span>for (i= 1; i < level; i++) {<br>
</div><div><span style="white-space: pre;">                </span>output('&nbsp;&nbsp;&nbsp;&nbsp;')<br></div><div><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></div></div></div></blockquote><div>I think this is important to display, though the size of indent might be negotiable. <br><br clear="all">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)<br><br></div></div>