mvnForum Homepage

Print at Jul 22, 2014 8:09:03 AM
Posts: 15   Pages: 2   [ 1 2 | Next Page ]
View all posts in this thread on one page
Posted by Ingo at Dec 1, 2003 2:00:15 AM
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:

$$$01.12
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!
----------------------------------------
Ps 1:1-2

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:

$$$01.12
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:

$$$01.12
<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).

--Chris

Posted by Ingo at Dec 1, 2003 4:21:23 PM
cool   Re: Tags for italics/color font in modules?
Thanks a lot.

I've never expected that Sword will be such a learning-stimulating experience:)
I will start with "thinking in C+".

Brgds.
----------------------------------------
Ps 1:1-2

Posted by hermeneutes at Feb 13, 2004 6:38:32 AM
Re: Tags for italics/color font in modules?
I've tried making a devotional using the OSIS markup shown above. I did the tagging then converted the txt file to UTF-8 file and used imp2ld utility to convert it to a module.

Unfortunately I can't get the devotional to display correctly. The entry for 0.1.01 is displayed correctly but the list of entries to the right of the devodional is not correct. Sometimes it contains dates, sometimes pieces of text.

I even tried Ingo's \par \par markup which you discouraged - to the same (unsuccessful) effect.

Ingo's devotional (which he sent me) is displayed correctly, and the Daily devotional I've downloaded from the server is also displayed correctly.

Must the devotional have entries for all days of the year to display correctly?

I only have entries for the first three months of the year.

Will appreciate your help.


Piotr

Posted by hermeneutes at Feb 14, 2004 12:31:43 AM
Re: Tags for italics/color font in modules?
Replying to myself again :)

I managed to make it display correctly when I set the ModDrv in the conf file to RawLD4. Still don't know why Ingo's devotional module displayed correctly with ModDrv set to RawLD (with out 4 at the end).

Piotr

Posted by cyberwolf at Feb 15, 2004 4:52:58 AM
Re: Tags for italics/color font in modules?

I managed to make it display correctly when I set the ModDrv in the conf file to RawLD4. Still don't know why Ingo's devotional module displayed correctly with ModDrv set to RawLD (with out 4 at the end).

Piotr


usage:
imp2ld <filename> [modname] [ 4 (default) | 2 | z - module driver]

When using imp2ld you can choose between 3 formats for building the module, i.e. RawLD (2), RawLD4 (4), zLD (z). The irritating thing about this tool is that its default is set to 4 and addld has its default set to 2, and RawLD corresponds to 2. This is something I also had problems with until I read the usage;-).

Posted by Osk at Feb 16, 2004 10:52:34 AM
Re: Tags for italics/color font in modules?
addld uses RawLD (2) as its default because neither of the other two formats existed at the time addld was written (and zLD wouldn't work very well anyway). addld is now deprecated. There's really no good reason to use it. Just use imp2ld, or if you need more flexibility than it allows, write a util from scratch.

In practice, I would just avoid RawLD anyway. RawLD4 is less error-prone. zLD (assuming it works well and is implemented widely) should be even better.

Posted by hermeneutes at Feb 18, 2004 2:52:42 PM
Re: Tags for italics/color font in modules?
So RawLD4 appears to be the default for imp2ld when I don't choose any parameters.

Everything is difficult until it becomes easy :)

Piotr

Posted by Ingo at Jun 29, 2004 9:11:40 AM
Re: Tags for italics/color font in modules?
I have just got permission from the copyright holder to use Polish version of Good Seed 2004 calendar (Bible verses + commentary for every day) as the Sword module (daily devotional). This calendar is quite popular in polish christian homes and well known for at least several years. It is prepared by evangelical christians and stricly focused on the Bible and Jesus Christ (examples in polish: http://www.dobrenasienie.own.pl/DN.htm).

I 've received very nice pdf file and (after conversion to txt) I will try to make a module using imp (I don't use linux and tools to import from OSIS format).

Does anybody know:
How to mark the text to get "new verse" & line breaks (now I only have plain text with no line breaks) - using imp tools under windoze?

Is it possible to get different text size and/or italics?

If somebody would like to prepare the module using OSIS import tools, I am ready to mark text with osis tags.

In Christ,

Ingo
----------------------------------------
Ps 1:1-2

Posted by hermeneutes at Jun 29, 2004 2:51:17 PM
Re: Tags for italics/color font in modules?

Does anybody know:
How to mark the text to get "new verse" & line breaks (now I only have plain text with no line breaks) - using imp tools under windoze?


Use the markup given above:
$$$01.12

This is the date heading without OSIS tags.
<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>


The verse goes into the div type annotant and the commentary goes into div type commentary. It works for me.

If somebody would like to prepare the module using OSIS import tools, I am ready to mark text with osis tags.


Importing is actually the easiest part, while tagging is the benedictine task. Would you like to try NoteTab Light (free, for Windows, www.notetab.com ) with my clips for doing the devotional?

Regards,

Piotr

Posts: 15   Pages: 2   [ 1 2 | Next Page ]