On 04/19/2011 04:24 AM, Peter von Kaehne wrote:
On 19/04/11 09:02, David Haslam wrote:
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*
And in OSIS the markup is in a similar way semantic, not presentational.

It only becomes presentational in our output filters where it is
replaced in the osis2htmlhref filter to a<i>  for italics IIRC. Not all
frontends of course use the engine supplied filters.
I'm wondering whether it'd be possible to add language filters.

Basic idea:
If the front-end requests an OSIS2XXX render and there is a corresponding OSIS2XXX-lang renderer based on the modules language, it will be automatically added in front of OSIS2XXX.

It would grab the elements that produced italics in the OSIS2XXX renderer and transform them appropriately (e.g. <hi>, <transChange>). It could deal with other elements as well.

From what I remember of the osis2xxx renderers they pass what they don't expect.

Alternatively to pre-processing, the language filter could be a post-process, merely changing <i>...</i> to something else. Granted, the semantic content of what produced the <i> isn't present, but it's not present for the reader in any other language either.

I am wondering what more modern rendering engines do with this markup
with appropriate fonts in scripts like Arabic, Hindic or Chinese. Maybe
this is something already taken care of there?

Alternatively, the more semantic HTML markup of<em>  might be useful?

However I turn it though I do think this is/should/could be a rendering
issue at the very last moment - i.e. at screen output time, probably
steered by module or locale supplied CSS sheets. The alternative, if
there is a serious issue - and I would only see this if the translators
complain - then it might be something addressed by an additional output
filter, but this would be hard work as it would require some work in the
engine and potentially some more in the frontends.

Has there been any previous discussion on this topic?
I do not think so.

Peter

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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to