W3C home > Mailing lists > Public > public-i18n-geo@w3.org > June 2004

Re: Meeting preread: Language declarations

From: Najib Tounsi <ntounsi@emi.ac.ma>
Date: Wed, 09 Jun 2004 12:35:26 +0000
Message-ID: <40C7040E.5000108@emi.ac.ma>
To: Richard Ishida <ishida@w3.org>
Cc: GEO <public-i18n-geo@w3.org>

Hi Richard and all,

At first glance  remarks...

Richard Ishida wrote:

>Folks,
>
>I have put together a first draft of a new FAQ that we should discuss in our meeting tomorrow.
>
>http://www.w3.org/International/questions/qa-http-and-lang.html
>
>The questions is "Should I use HTTP Content-Language or a meta element to declare the language of my XHTML document?"  
>
>Following on and arising from those thoughts I have worked on a new set of techniques for the language WD.  See below.  Please send your comments, and if we have time, lets also discuss this tomorrow. These ideas break some new ground, and will also need to be reviewed by Core and others.
>
>
>
>CURRENT VERSION OF OUTLINE
>
>Specifying the overall language of a document
>•	Always declare the language of the page as a whole in the html tag.
>•	For HTML use the lang attribute only, for XHTML 1.0 served as text/html use the lang and xml:lang attributes, and for XHTML served as XML use the xml:lang attribute only.
>•	Do not use the meta tag to declare the language of a document.
>•	Do not declare the language of a document in the body tag.
>
>Identifying in-document language changes
>•	Use the lang and/or xml:lang attributes around text to indicate any changes in language.
>•	For HTML use the lang attribute only, for XHTML 1.0 served as text/html use the lang and xml:lang attributes, and for XHTML served as XML use the xml:lang attribute only.
>
>
>
>NEW VERSION OF OUTLINE
>
>Declaring the language of content
>•	Unless there are more than one primary languages, 
>
I see a contradiction in this expression. For me, "primary" means first 
of all or first choice. So there couldn't be more than one.  I suggest 
to define the term "primary language", e.g.   the choice of one (main) 
language among  what might be called (candidate languages).  Assuming 
that the uniqueness of THE language of a page has a meaning.

>always declare the primary language of the page in the html tag.
>•	If there are more than one primary languages, try to keep content in each primary language in a separate block, and always declare the language in the tags that define those blocks.
>•	For HTML use the lang attribute only, for XHTML 1.0 served as text/html use the lang and xml:lang attributes, and for XHTML served as XML use the xml:lang attribute only.
>•	Do not use a meta tag or HTTP header to declare the language of content.
>•	Do not declare the language of the page in the body tag.
>  
>
It is not true. But this might seem to contradict the 2 points above 
"declare the language in the tags that define those blocks".

>•	Use the lang and/or xml:lang attributes around text to indicate any changes in language.
>
>Identifying the language of the audience
>•	Consider using a meta tag or HTTP Content-Language header to indicate the language of the intended audience for a page.
>•	If there are more than one primary languages, use a meta tag or HTTP Content-Language header to list the languages of the intended audience.
>  
>
What is (will be) the status of meta tags? Are they used like a comment?

"see" you on IRC.

Regards, Najib

>
>Other stuff to express in the detail:
>What's the difference between audience and content declaration, and why use different approaches.
>Acknowledge that there's no good solution for the <title> element or other stuff in <head> for documents with multiple primary languages. 
>
>
>RI
>
>
>============
>Richard Ishida
>W3C
>
>contact info:
>http://www.w3.org/People/Ishida/ 
>
>W3C Internationalization:
>http://www.w3.org/International/ 
> 
>
>
>
>  
>


-- 
Najib TOUNSI (mailto:tounsi@w3.org)
Bureau W3C au Maroc (http://www.w3c.org.ma/)
Ecole Mohammadia d'Ingenieurs, BP 765 Agdal-RABAT Maroc (Morocco)
Phone : +212 (0) 37 68 71 74  Fax : +212 (0) 37 77 88 53
Mobile: +212 (0) 61 22 00 30
Received on Wednesday, 9 June 2004 08:32:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:12:38 GMT