<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Daniel,<br>
<br>
While I do find that OSIS is lacking (it seems that support for
Dictionaries and Commentaries is yet to be<br>
defined and there seems to be liberal use of "x-..." attribute values
for common things), I don't know what<br>
presentational stuff that is present in ThML that is absent in OSIS. I
would like to understand those differences<br>
because BibleDesktop/JSword converts ThML to OSIS and then converts
OSIS to HTML. As far<br>
as I can see our transformation is relatively complete.<br>
<span style=""></span><br>
<font face="Times New Roman, Times, serif">I took a look at the ThML
DTD for style elements and attributes. Here is what I found:<br>
There is a style attribute whose content is not defined.&nbsp; The one and
only example uses HTML's CSS:<br>
&nbsp;&nbsp;&nbsp; &lt;foreign lang="el" style="Font-family: SIL
Galatia"&gt;logov&lt;/foreign&gt;<br>
There is support for font styles:<br>
&nbsp;&nbsp;&nbsp; &lt;!ENTITY % fontstyle "tt | i | b | big | small"&gt;<br>
And for datatype styles:<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;!ENTITY % phrase "em | strong | dfn | code | q | sub | sup |<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; samp | kbd | var | cite | abbr | acronym" &gt;<br>
And some more that might imply styling:<br>
&nbsp;&nbsp;&nbsp; &lt;!ENTITY % misc "ins | del | script | noscript | added | deleted
|<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; index | pb | scripContext | scripRef | scripCom |
scripture"&gt;<br>
<br>
I did not look at Voyager DTD, upon which ThML extends. That may have
explicit support for styling.<br>
But since ThML and Voyager are XML, I would be surprised if there were
greater support for styles.<br>
<br>
The style="" attribute really is of value only if the delivery system
is known. For example, if HTML is the target,<br>
then style can be CSS. If it is an application that does not have a CSS
engine, then it is of no value to use<br>
CSS style attributes. Because of this, the style attribute is of no use
to BibleDesktop. I doubt it is of use<br>
to BibleCS, MacSword, GnomeSword, ... and any of the other Sword
applications. (But this is just a guess)<br>
<br>
If we ignore the style="" attribute, and compare ThML with OSIS is
there really anything that ThML<br>
can style that OSIS cannot?<br>
<br>
Thanks,<br>
&nbsp;&nbsp;&nbsp; DM<br>
</font><br>
Daniel Glassey wrote:
<blockquote cite="mid30e46b3d05061521114d0602ff@mail.gmail.com"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Greg Hellings wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Howdy!

I have been working with some possible modules in ThML, but would like
to try and migrate their base formatting into OSIS so that I can create
the modules as other than General Book with a minimal amount of effort.
So far the process of migration has gone well with one exception: I am
unable to decipher how to represent presentational formatting in OSIS.
Formerly most of the formatting was created using style="..." tags in
the ThML and it worked marvelously.  Is there any similar method in
OSIS?  ...or how would one encode formatting information in OSIS?  Thanks!
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
On 10/06/05, Troy A. Griffitts <a class="moz-txt-link-rfc2396E" href="mailto:scribe@crosswire.org">&lt;scribe@crosswire.org&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Greg,
        OSIS' purpose is to mark the elements in a text as what they are, not
how they should be displayed.  The way elements are displayed is left
out for another 'presentation layer' to handle as it sees fit.

        Now, having said that, there is an evil workaround for elements that
you just can't figure out why they are ornimented in some way: &lt;hi&gt;

e.g. &lt;hi type="bold"&gt;bold text for some reason&lt;/hi&gt;

The defined type attributes on hi are currently:

&lt;xs:enumeration value="bold"/&gt;
&lt;xs:enumeration value="emphasis"/&gt;
&lt;xs:enumeration value="illuminated"/&gt;
&lt;xs:enumeration value="italic"/&gt;
&lt;xs:enumeration value="line-through"/&gt;
&lt;xs:enumeration value="normal"/&gt;
&lt;xs:enumeration value="small-caps"/&gt;
&lt;xs:enumeration value="sub"/&gt;
&lt;xs:enumeration value="super"/&gt;
&lt;xs:enumeration value="underline"/&gt;

I don't think the latest version of our engine pays much attention to
&lt;hi&gt; right now, but we should.  I think, currently, you'll mostly get
italic for any &lt;hi&gt; you define.

        Hope this helps,
                -Troy.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
In the end we've just gone with ThML because there is so much
presentational stuff that just can't be thrown away or easily put into
OSIS like that even for the commentaries. Not sure if we'll look at
getting it into OSIS later or not.

Thanks,
Daniel

_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page

  </pre>
</blockquote>
</body>
</html>