W3C home > Mailing lists > Public > public-webfonts-wg@w3.org > December 2010

FW: i18n-ISSUE-2 (r12a): Why not using xml:lang? [WOFF]

From: Levantovsky, Vladimir <Vladimir.Levantovsky@MonotypeImaging.com>
Date: Fri, 10 Dec 2010 09:20:36 -0500
To: WOFF Working Group FONT <public-webfonts-wg@w3.org>
Message-ID: <7534F85A589E654EB1E44E5CFDC19E3D053BEB7F84@wob-email-01.agfamonotype.org>
Forwarding to WG list the email with follow-up comments on the Last Call WD.


-----Original Message-----
From: www-font-request@w3.org [mailto:www-font-request@w3.org] On Behalf Of Richard Ishida
Sent: Friday, December 10, 2010 9:10 AM
To: www-font@w3.org
Cc: public-i18n-core@w3.org
Subject: RE: i18n-ISSUE-2 (r12a): Why not using xml:lang? [WOFF]

Having given this some more thought, I suspect that the lang attribute in the WOFF spec may not actually be equivalent to the xml:lang attribute.  The xml:lang attribute really says "this is the language of the text in this element".  The woff lang attribute may be saying that by default in many cases, but is actually saying "this is the element to use for a given user". These things could be very different if, say, you had to use slightly different licensing text for Hungarian users but you didn't have a means to translate your license text into Hungarian. [1]

In that case, I think it would be better to rename this attribute.  Perhaps locale would be a better name.  (The values would remain the same.)

NB: We then have an additional discussion about whether xml:lang ought to be supported by the schema (even though it is an attribute defined by the XML spec, it still needs to be defined in the schema when used).  xml:lang would be used by things like spell-checkers, voice browsers, etc that need to understand the language of the text they are processing. 

RI


[1] For more on this kind of distinction, see http://www.w3.org/International/questions/qa-when-xmllang xml:lang in XML document schemas.

============
Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)

http://www.w3.org/International/

http://rishida.net/





Received on Friday, 10 December 2010 14:21:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 10 December 2010 14:21:09 GMT