[sword-devel] Rendering added words for languages that don't use italics?

DM Smith dmsmith at crosswire.org
Tue Apr 19 08:01:20 MST 2011

Another problematic markup for other languages is 
The SWORD engine tries to apply small caps to the content by simulation. 
The first letter is converted to uppercase if it isn't already. Then the 
remainder of the word is converted to upper case and wrapped in code 
that reduces the font size.

The two problems:
It presumes a byte oriented character set. I.e. Windows latin-1 
(cp1252). It does not work if it contains UTF-8.
Second, it presumes that upper case applies to the language. (Which 
isn't true of Arabic, Farsi, ...)

In Him,

On 04/19/2011 04:02 AM, David Haslam wrote:
> Not all languages have fonts that include italics as a text style.
> Italics are generally unavailable except for the scripts that use Latin,
> Greek and Cyrillic alphabets.
> [probably a gross over-simplification, but you get the gist of what I'm
> saying]
> So what should front-end applications use for presentational rendering in
> such modules when the Bible translation features added words?
> i.e. In USFM as marked using \add_...\add*
> Has there been any previous discussion on this topic?
> David
> --
> View this message in context: http://sword-dev.350566.n4.nabble.com/Rendering-added-words-for-languages-that-don-t-use-italics-tp3459750p3459750.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

More information about the sword-devel mailing list