[osis-users] Question about Commentary Osis
Pola Edward
5001 at hotmail.com
Sat Jan 5 11:27:11 MST 2013
Hi,
Thanks for the reply,
Actually I'm totally lost, After 2 days of reading and many trials, I can't get it right
this is my main structure
<div annotateRef="Matt.1.1" annotateType="commentary" type="section">
<title canonical="true">This is a title, and supposed to be bold and underlined</title>
<p>
<lb />
<hi type="bold">blah</hi> blah blah <lb/> //Comment : I want to put an empty line but any number of <lb /> elements render only as one
<hi type="underline">blah</hi> blah blah <lb />
</p>
</div>
All what i Need is to make titles (Bold and underlined) and want to separate paragraphs with empty lines
I don't have any problem to use anything other than OSIS if it's better and easier
This is an example of the source texts
http://www.arabchurch.com/commentaries/tadros/Matthew/1
as you can see it contains a lot of texts that's why i want to have a little control on rendering style to be more readable .
Please if you can send me sample xml and I'll follow it and try it on And bible and some other applications
Thanks
Pola
From: dmsmith at crosswire.org
Date: Sat, 5 Jan 2013 11:04:00 -0500
To: osis-users at crosswire.org
Subject: Re: [osis-users] Question about Commentary Osis
Pola,The tags you tried are not OSIS and will not validate against the OSIS schema.
I'll try to explain why it may seem like a good idea to use HTML (or even xhtml) in OSIS: Because it works in some applications that consume OSIS.
For example:
Many of the SWORD frontends use an HTML renderer to render content, passing to it what comes out of the render filters. Many times the render filters pass the xml tags that they are not expecting. Other times they strip them out.
The HTML renderers vary in their ability to render all of HTML. Earlier versions of Xiphos had a fairly limited renderer. They are moving to a better renderer and it may already be available. JSword is stuck with an early version of HTML.
If the frontend does not convert the OSIS to HTML but to some other form (e.g. RTF) then it is most likely the non-OSIS tags will not be handled in an acceptable way.
That it works in one application and not another should be an indication that what you have done is some how not quite right.
Regarding the specific problems you are having with the output not showing up correctly in an application, that is an application problem, not an OSIS problem. This list is concerned with what is proper OSIS not with applications that render OSIS. If you have a specific problem with an application then that application's forum or mailing list is a better place to ask the question.
Regarding titles in a commentary. By default the canonical attribute of a title is "false". This default is fine for Bibles, but not for commentaries. You'll need to set it to "true". SWORD applications treat titles with a toggle when canonical="false" but not with canonical="true". It may be that the application needs to have the toggle set to show titles (it may be called headings).
The canonical attribute is also false for div, which is probably not true for a commentary. In the context of a commentary, canonical distinguishes between what is part of the commentary and what is not (example, an editorial comment/footnote).
The OSIS equivalent of <br /> is <lb />.
The OSIS equivalent of <b> and <strong> is <hi type="bold">.
There is no OSIS equivalent of <font>. That is a rendering directive. OSIS is all about structure. Rendering is left to applications.
There is no OSIS equivalent to <hr />. The closest is <hi type="underline">. But still this seems to want to control rendering, which is not in the realm of OSIS, but applications.
Your use of <head> is not right. It is only allowed as a child of <table>, <list> and <castGroup>. In those contexts, it is an equivalent of a title.
Regarding references, it'd be best to have one issue per email. You didn't give enough information for us to try to help figure out what is not working.
In Him, DM
On Jan 4, 2013, at 1:32 PM, Pola Edward <5001 at hotmail.com> wrote:Thanks again Chris for your help .
Today I spent my day trying different tags in OSIS ,
I'll use Head for titles since Title doesn't display anything, I write it in <div annotateRef="Matt.1.1" annotateType="commentary" type="section">
But <head><font size="+1"><b>Head Tile Here</b></font></head> Worked
Also I'll use <hr /> After Titles to make the output more readable
and will separate Paragraphs with Double <br />
I couldn't get the references to work by anyway, and tried it in different forms .
I'll Modify the program to render this extra output, Please reply me with your opinions
> Date: Mon, 31 Dec 2012 00:08:06 -0800
> From: chrislit at crosswire.org
> To: osis-users at crosswire.org
> Subject: Re: [osis-users] Question about Commentary Osis
>
> On 12/30/2012 8:43 PM, pola ashraf wrote:
> > Hi everyone,
> > I don't know the suitable list to submit this question to, so i posted
> > it to Sword-Devel and Osis-Users
> >
> > Now, We've made a very simple commentary editor, so non-technical data
> > entry can use it easily to generate valid XML
> > http://s9.postimage.org/r6vtq6hjj/Commentary_Editor.png
> >
> > We'll use it to make Arabic Commentaries, But i have some questions
> > about OSIS XML
> >
> > *The Main Output*
> > the program above make this output based on the chosen options
> >
> > <div type="section" annotateType="commentary" annotateRef="Gen.1.1"><p>
> > Blah Blah Blah
> > Blah Blah
> > </p></div>
> >
> > Now,
> > How to Add Titles to the commentary text, So Verse 1 Commentary could
> > start with title explaining the topic of the Verse/Verse Range ?
>
> <title>....</title>
>
> Some of the established title types can be seen here:
> http://www.crosswire.org/osis/schemas/osisCore.2.1.1.xsd.html#h-1757748498
>
> For a title identifying the verse under discussion you could use:
> <title type="scope"><reference osisRef="...">...</reference></title>
>
> > What are the suitable tags for references (to verses, or general
> > references) ?
>
> <reference osisRef="...">...</reference>
>
> > What are the suitable tags for Book intro ?
>
> <div type="introduction">...</div>
>
> Just place this within your book <div> but before any of the commentary
> section <div>s.
>
> > This is an example for the Commentary Source text
> > http://st-takla.org/pub_Bible-Interpretations/Holy-Bible-Tafsir-02-New-Testament/Father-Tadros-Yacoub-Malaty/01-Engeel-Matta/Tafseer-Engil-Mata__01-Chapter-01.html
> > http://popekirillos2.bizhat.com/bible/tafseer/matew1.htm
> >
> > As you can see in the links above the commentary contains a lot of
> > titles and references
> >
> > Happy New Year and Merry Christmas
> > GOD Bless you all and Bless your service
> >
> > Pola
>
> I'm not sure whether this is really what you wanted, so let us know if
> your need further guidance.
>
> --Chris
>
>
> _______________________________________________
> osis-users mailing list
> osis-users at crosswire.org
> http://www.crosswire.org/mailman/listinfo/osis-users
_______________________________________________
osis-users mailing list
osis-users at crosswire.org
http://www.crosswire.org/mailman/listinfo/osis-users
_______________________________________________
osis-users mailing list
osis-users at crosswire.org
http://www.crosswire.org/mailman/listinfo/osis-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/osis-users/attachments/20130105/e8b7fa8b/attachment-0001.html>
More information about the osis-users
mailing list