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

Greg Hellings greg.hellings at gmail.com
Thu May 9 05:53:34 MST 2013


On Thu, May 9, 2013 at 6:01 AM, Troy A. Griffitts <scribe at crosswire.org>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>
>

+1 to Peter's suggestion to add classes to these headers, or to generate
<h1> <h2> <h3> etc based on the semantics of the OSIS source titles and not
to just generate <h3> for all types. Through CSS an <h1> can be rendered
down to 6pt font, non-bold with italics while an <h5> is scaled up
arbitrarily big.


>
> <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 />
>

I think these breaks and the ones following the <ul> are the wrong way to
go. Since <ul> is, by default, a block element that already begins and ends
on its own lines, the proper way to render desired vertical spacing is to
add a class with margin-top and margin-bottom specified.


> <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.
>

--Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20130509/8620cf0b/attachment-0001.html>


More information about the sword-devel mailing list