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?):
<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><i>1</i>Creation of Heaven and Earth, 1:1-2:4a</li>
<li><i>2</i>Creation of Man and Woman, 2:4b-25</li>
<li><i>3</i>Fall, 3:1-24</li>
<li>...</li>
</ul>
<br />
<br />
Tables work like this: <b>Column 1 Label</b> <b>Column 2 Label</b>
Column 1, Row 1 Column 2, Row 1 Column 1, Row 2 Column 2, Row 2 <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/09/2013 04:01 AM, Troy A. Griffitts wrote:
On 05/08/2013 12:31 PM, Troy A. Griffitts wrote:
OK, so from this:
<div sID="gen1" type="bookGroup"/> <h3>Old Testament</h3> <div
osisID="Gen" sID="gen2" type="book"/> <h3>THE FIRST BOOK OF MOSES
CALLED GENESIS</h3> <div sID="gen3" type="section"/> <h3>Introduction
and Outline</h3> <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><i>1</i>Creation of Heaven and Earth, 1:1-2:4a</li>
<li><i>2</i>Creation of Man and Woman, 2:4b-25</li> <li><i>3</i>Fall,
3:1-24</li> <li>...</li> </ul> <br /><br /> Tables work like this:
<b>Column 1 Label</b> <b>Column 2 Label</b> Column 1, Row 1 Column 2,
Row 1 Column 1, Row 2 Column 2, Row 2 <br /><div eID="gen3"
type="section"/>
<div sID="gen7" type="majorSection"/> <h3>From Creation to Abraham
(1:1–11:9)</h3>
[ Genesis 1:1 ] In the beginning God created the heaven and the
earth. <br />
[ Genesis 1:2 ] Text of verse 2.
As a first run, I'm going to shoot for this below. Will this make
everyone happy regarding whitespace? Please ignore the poor table
output-- that another issue.
<h3>Old Testament</h3>
<h3>THE FIRST BOOK OF MOSES CALLED GENESIS</h3>
<h3>Introduction and Outline</h3>
<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><i>1</i>Creation of Heaven and Earth, 1:1-2:4a</li>
<li><i>2</i>Creation of Man and Woman, 2:4b-25</li>
<li><i>3</i>Fall, 3:1-24</li>
<li>...</li>
</ul>
<br />
<br />
Tables work like this: <b>Column 1 Label</b> <b>Column 2 Label</b>
Column 1, Row 1 Column 2, Row 1 Column 1, Row 2 Column 2, Row 2 <br />
<h3>From Creation to Abraham (1:1–11:9)</h3>
[ Genesis 1:1 ] In the beginning God created the heaven and the earth.
<br />
[ Genesis 1:2 ] Text of verse 2.
________________________________
Really, thanks for all the feedback on the removal of the divs and
otherwise. I am sorry to force this thread to concentrate on an
immediate solution for release. I'm happy to talk future solutions
and value your input for those. I just need your help on this
solution right now.
Nic, regarding round-trip, the OSISXHTML Render filter wouldn't be
used for the round-trip. We would use the OSISOSIS filter for that
(it goes from "SWORD annotated OSIS" (like the x-preverse stuff and
any other augmentation we might make in the markup to help with our
on-demand internal processing) -> OSIS proper. So, we can strip the
divs out in the OSISXHTML Render filter and not worry about breaking
the round-trip.
Thanks for the input!
Troy
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page