|
Posted by Luigi Donatello Asero on 10/01/03 11:27
"Alan J. Flavell" <flavell@physics.gla.ac.uk> skrev i meddelandet
news:Pine.WNT.4.63.0509241056570.1488@ZORIN...
>
> On Sat, 24 Sep 2005, rf wrote:
>
> > The doctype has nothing at all to do with language.
>
> Right: the DOCTYPE specifies only the language of the DTD itself, and
> for W3C DTDs that is always "en" (English).
>
> > Language support is handled by the charset.
>
> Not officially, though. What "language" would you associate with
> iso-8859-1, anyway? Or with utf-8, for that matter?
>
> /Some/ browsers do make certain deductions about the language from
> /some/ charsets if they don't get a better source of information about
> the language. I have some observations on Mozilla discussed here:
> http://ppewww.ph.gla.ac.uk/~flavell/charset/browsers-fonts.html#Mozilla
> - although that doesn't include CJK, which may be where the language
> support is more important than anywhere else, but that happens to be
> outside my field of expertise, I'm afraid.
>
> WAI guidelines call for there always to be a definition of the primary
> language of a document on the <html> element, i.e <html lang="xx">. If
> the document contains snippets on some other language, then they
> should also be marked up with appropriate lang= attribute. (For
> example, IBM HPR uses these to decide how to pronounce the item, if
> the language is one of those which it supports.)
>
> Mozilla, at least, will primarily use the lang= attribute, where
> available, to influence choice of font to render each element, as I'm
> sure do some other browsers. (Unless the author has specified the
> font explicitly).
>
> hope this helps
It probably does.
--
Luigi Donatello Asero
(sono italiano ma vivo in Svezia)
(я итальянец но я живу в Швеции )
(我是 意大利人 , 但是 我 住 在 瑞典)
(minä olen Italian kansalainen, mutta minä asun Ruotsissa)
https://www.scaiecat-spa-gigi.com/
Navigation:
[Reply to this message]
|