W3C home > Mailing lists > Public > www-html@w3.org > September 2003

Re: Problem with LANG keyword

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Wed, 24 Sep 2003 09:32:04 -0400
To: www-html@w3.org
Message-ID: <1064410324.beb5b0e0cmoschini@myrealbox.com>

Reuven Nisser wrote:
====
If it was possible to write:
<HTML LANG="HE,AR,EN">
then when you get to Hebrew characters you know exactly
that we are speaking about Hebrew and not Yiddish,
Ladino or Aramic.
====

But,
Christoph P├Ąper wrote:
====
The solution to explicitely mark up smaller parts from
different languages than the main one of the document,
is surely better and computer friendly:

 <body lang="en"><p>
 The following are two letters in Hebrew,
 <samp lang="he">&05D0; &05D1;</samp>
 while these are three Arabic letters,
 <samp lang="ar">&0644; &0647; &062C;</samp>.
 </p></body>
====

That is your solution. <html lang="lang1,lang2,lang3"> violates the purpose of the lang attribute, which is to say what one language is inside that tag. If you change languages, you simply add another tag - as Christoph has done with the samp tag above.

It is clear to both computer and human, and adds little extra to the markup. Why is this solution a problem for you?


-Chris "SoopahMan" Moschini
http://hiveminds.info/
http://soopahman.com/
Received on Wednesday, 24 September 2003 09:32:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:58 GMT