<div dir="ltr">Hi DM,<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 18, 2014 at 12:01 PM, DM Smith <span dir="ltr">&lt;<a href="mailto:dmsmith@crosswire.org" target="_blank">dmsmith@crosswire.org</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Mar 17, 2014, at 1:07 PM, Chris Burrell &lt;<a href="mailto:chris@burrell.me.uk" target="_blank">chris@burrell.me.uk</a>&gt; wrote:<br>



<br>
&gt; Hello<br>
&gt;<br>
&gt; I&#39;m looking at converting a module that has tables across verse boundaries... Is this supported?<br>
<br>
</div>It should be. At least by osis2mod. I don&#39;t know if SWORD renderers have code for tables. I&#39;ll leave that for someone else to answer. JSword probably will choke on tables. I&#39;ll go into that in a bit.<br>


</blockquote><div><br></div><div>Last time we discussed OSIS tables they weren&#39;t supported by the SWORD renderers.<br>I don&#39;t think anything has changed.<br><br>Jon <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><br>
&gt; I&#39;m using the sword utilities to convert the module, however, I&#39;m seeing that the &#39;table&#39; element is getting dropped?<br>
<br>
</div>I&#39;m presuming that you are using osis2mod. osis2mod should not drop anything. To verify what osis2mod creates I recommend creating a raw module (that is, use no compression flags) and use the -d 2 flag. This will put milestones for the start and end of the verses into the module. Then you can use a text editor (stay away from NotePad as the line endings may not be windows friendly) to look at the file and search for the constructs.<br>



<div><br>
&gt;  (both using mod2imp to check,<br>
<br>
</div>Using mod2imp is also useful because it marks each index entry with the verse slot name. But it may not be necessary, if the raw file gives what you wish.<br>
<div><br>
&gt; as well as using JSword).<br>
<br>
</div>JSword has some problems going to OSIS. It assumes that each verse is well-formed xml. If it is not, it strips all xml, leaving text (with notes inline).<br>
<br>
This is a fairly safe assumption, but tables will probably will make that fail.<br>
<br>
This assumption is something that all SWORD/JSword frontends make at some points. Two examples:<br>
Search results list that show verse content as well as references.<br>
Stacked or side-by-side parallel display.<br>
<div><br>
&gt;<br>
&gt; If this is supported, does someone have some example mark-up that I could use as a starting point?<br>
<br>
</div>I&#39;m trying to understand where in a Bible a table would be useful. I can see it in an introduction. But spanning verses? No way. There is no tabular data in the Bible. (Please correct me if I&#39;m wrong!)<br>
<br>
I have seen people use tables to control rendering. If this is what is being done, some one needs guidance.<br>
<br>
In a commentary, which is indexed by verse numbers, anything could happen.<br>
<br>
Regarding sample markup, it is analogous to simple HTML tables, but other than &lt;table&gt; the element names are different.<br>
The &lt;table&gt; element can be wholly contained within:<br>
&lt;div&gt;<br>
&lt;chapter&gt;<br>
&lt;speech&gt;<br>
&lt;note&gt;<br>
&lt;cell&gt;<br>
&lt;p&gt;<br>
Nothing else can be a parent to &lt;table&gt;.<br>
<br>
A table has a few attributes, cols and rows to give dimensions; canonical to indicate whether it contains canonical material; and the standard OSIS attributes.<br>
It can contain a &lt;head&gt; and also &lt;row&gt; elements. Both are optional, but it doesn&#39;t make sense to have a table without rows.<br>
<br>
I&#39;m not clear what is the purpose of head. It can contain many of the same content as a verse.<br>
<br>
The &lt;row&gt; element can only contain &lt;cell&gt; elements and it has a role attribute that can have a value of label or data. It also has a canonical attribute and the standard OSIS attributes.<br>
<br>
The &lt;cell&gt; element can contain pretty much anything that a &lt;div&gt; or a &lt;chapter&gt; can contain except &lt;div&gt; and &lt;chapter&gt;. It also has the same role attribute, but defaults to data. It also has an align attribute with a value from left, right, center, justify, start and end. And of course it has canonical and standard OSIS attributes.<br>



<br>
Since a table cannot be milestoned, the element it is contained within also cannot be milestoned. The manual states that for any given element you can chose to use the milestoned version or the container version but not both in the same document.<br>



<br>
I guess a verse can be split across multiple cells and even rows by using the milestoned version of a verse.<br>
<br>
If a &lt;table&gt; only has a single column, a &lt;list&gt; may be a better container.<br>
<br>
Hope this helps.<br>
<br>
Together in His Service,<br>
        DM<br>
<br>
<br>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br></blockquote></div><br></div></div>