Sandy wrote:

> I am working on a French/English site and each side has words in the
> other language. I want to make sure that screen readers switch
> languages for those isolated phrases.

That's a noble goal, but it's a matter of HTML markup (using the lang or 
xml:lang attribute or both). There's no way in CSS (as currently defined) to 
specify the language of text; you can only utilize the language as declared 
in HTML or XML.

> Is this the correct syntax for the language declaration
> <span lang="fr">je ne sais quoi</span>

Yes,

> Does the language declaration has to be in a span?

No, it can be in any element. But that's external to CSS.

> Is it possible to
> do it like this <span class="french">je ne sais quoi</span> and have a
> style on an external style sheet link
>
> .french {
> lang : fr;
> font-style: italic;
> }

No, there is no lang property in CSS. Declaration of language is regarded as 
content (metadata), not a stylistic suggestion.

You can _use_ the language declaration made in HTML or XML in your CSS code. 
But that's a different issue.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to