This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Re: Using Language code in HTMLHelp
- From: Jens Stavnstrup <js at ddre dot dk>
- To: Jirka Kosek <jirka at kosek dot cz>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 27 May 2003 16:34:56 +0200 (CEST)
- Subject: Re: [docbook-apps] Re: Using Language code in HTMLHelp
Jirka,
On Mon, 26 May 2003, Jirka Kosek wrote:
> Jens Stavnstrup wrote:
>
> > I am sorry to say this, but I am not sure this was such a good idea.
> > Now you have introduced a system specific (HTMLHelp) value, in the
> > otherwise system neutral gentext files (I prefered your windows
> > specific language.xml file located in the htmlhelp directory).
>
> Role of gentext is to supply language dependant information to XSL and
> DSSSL stylesheets. HTML Help language code is one type of a such
> information. HTML Help is now integral part of XSL stylesheets (it
> wasn't at it's beginnings) so there is no reason to use different
> mechanism similar to gentext.
Maybe not. But gentext is uses by the HTML, XSL-FO, JavaHelpm and HTMLHelp
stylesheets. The HTMLHelp part of gentext is only used by HTMLHelp.
>
> > In TDG, norm describes the lang attribute as a language code (perhaps
> > extended with the countrycode). It was that interpretation I was
> > interested in:
> >
> > So you would be able to say "en_UK", and not just "en", which now will
> > by default be US.
>
> Sure. Stylesheets can handle this. If there is need, there could be
> en_uk.xml and en_us.xml files different for US and British English. But
> I don't think that there are differences in localization texts for these
> two variants of English. I'm also not aware of any differneces in HTML
> Help processing for different variants of English.
>
Neither am I, and it is difficult (read impossible) to get at proper
explanation.
> If you still want to override some settings for country based
> sublanguage, you can put this into your customization file:
>
> <i18n xmlns="http://docbook.sourceforge.net/xmlns/l10n/1.0">
> <l10n language="en_uk">
> <context name="htmlhelp">
> <template name="langcode" text="0x0809 English (UNITED KINGDOM)"/>
> </context>
> </l10n>
> </i18n>
>
> I think that new mechanism is better because it allows you to override
> langcode without need to modify base stylesheets.
>
That could also be accomplished with your original solution (with the
country codes as a subtee).
Regards,
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org