[sword-devel] XHTML Rendering of OSIS Reference Doc - Whitespace

Troy A. Griffitts scribe at crosswire.org
Tue May 21 09:55:15 MST 2013


Thanks for the feedback Peter. I'm not sure I understand what you mean. 
Could you give me a line in the OSISReference document which you feel is 
not rendered well.

I just checked in an update which has preliminary support for tables, 
sub, and super. Here's the latest output:

<h1 class="bookHeader">Old Testament</h1>

<h1 class="bookHeader">THE FIRST BOOK OF MOSES CALLED GENESIS</h1>

<h1 class="bookHeader">Introduction and Outline</h1>

<br />
This is the <b>Book of Genesis</b>, the <i>first</i> book in the Bible. 
It may be outlined as follows: <br />
<br />
<ul>
<li><span class="sup">1</span>Creation of Heaven and Earth, 1:1-2:4a</li>
<li><span class="sup">2</span>Creation of Man and Woman, 2:4b-25</li>
<li><span class="sub">3</span>Fall, 3:1-24</li>
<li>...</li>
</ul>
<br />
<br />
Tables work like this: <table><tbody>
<tr> <td><b>Column 1 Label</b></td> <td><b>Column 2 Label</b></td> </tr>
<tr> <td>Column 1, Row 1</td> <td>Column 2, Row 1</td> </tr>
<tr> <td>Column 1, Row 2</td> <td>Column 2, Row 2</td> </tr>
</tbody></table>
<br />

<h2 class="chapterHeader">From Creation to Abraham (1:1–11:9)</h2>


<h3>Creation of the Heavens and the Earth</h3>

<br />

[ Genesis 1:1 ] In the beginning God created the heaven and the earth. 
<br />

<br />

[ Genesis 1:2 ] Text of verse 2.




On 05/20/2013 07:31 AM, Peter von Kaehne wrote:
> On Sun, 2013-05-19 at 22:29 -0700, Troy A. Griffitts wrote:
>> OK, so here's my latest cut at the whitespace issue.  From the
>> osisReference document here:
>>
>> http://crosswire.org/svn/sword/trunk/tests/testsuite/osisReference.xml
>>
>> ... we now get this output from the osisxhtml filter set when rendering
>> module top until Gen.1.2 (not the greatest output, but I believe a great
>> step forward, any comments?):
> Ok, I like what you have done. Question:
>
> chapter group titles (Psalm 1-40, Sermon on the mount etc) and
> subsection titles are not catered for, or did I miss this?
>
> Peter
>
>
>
> _______________________________________________
> 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