|Posted by Osk at Dec 1, 2003 12:38:17 PM|
Re: Tags for italics/color font in modules?
I am preparing SWORD module with daily devotionals in polish. We use imp2ld and it's OK, but - is it possible to have a part of the text displayed in italics and/or in other color? What tags should I use?
Now I have sth like that:
In the beginning God created the heaven and the earth (Gen 1:1). \par \par
And here goes commentary.
I'd like to have Bible verse in red and it's description (Gen 1:1) in italics.
And thanks a lot for answer concerning Strong tags!
All markup should be based on semantics. All rendering should be controlled by style-sheets. (Style sheets in Sword generally means hard-coded markup filters that are part of the library.)
You should stick with a supported markup format, such as OSIS, even if you are using the imp format for import. The "\par" tags will only be understood by frontends that use RTF for rendering (which is only the Windows front-end, currently).
The way I would mark this up is:
<div type="annotant" osisRef="Gen.1.1"><p>In the beginning God created the heaven and the earth (<reference osisRef="Gen.1.1">Gen 1:1</reference>).</p></div>
<div type="commentary" osisRef="Gen.1.1"><p>And here goes commentary.</p></div>
In order for the first <div> to be rendered red, the markup filters in Sword would have to look for <div>s with type="annotant" and apply a red color style to them. Italicizing the second <div> would happen through a similar method.
I know this doesn't really answer your question, but it explain what you should do (since what you want to do isn't really allowed by the markup standards).
Current timezone is GMT
Sep 28, 2016 5:00:50 AM