Richard Grevers wrote: > On Wed, Sep 17, 2008 at 4:17 AM, Tony Lush <[EMAIL PROTECTED]> > wrote: >> I would like to find a way to automagically increase the font size >> for Chinese characters when interspersed with Western European >> characters. An examples are at: - - > You would be best to use attribute selectors for the lang attribute - > except your markup seems to be lacking them.Their use (for the > secondary language on the page) would be a good idea.
The use of lang attributes is generally recommended for accessibility and other noble purposes, but it is rare in practice. Adding it can be rather tedious and doesn't quite mean that you can "automagically" do things. > Attribute selectors don't work in IE 6/7 of course. They do work in IE 7 in standards mode. Yet, the support is not good enough, really, for www authoring. So in practice you would want to use markup like <span lang="zh" class="zh">...</span> and just class selectors. You _might_ be able to generate such markup at least semi-automatically, using a preprocessor that reads your HTML find and recognizes Chinese characters (using a suitable subroutine library that gives you access to Unicode properties of characters, such as the Script property). But that's external to CSS of course. -- Yucca, http://www.cs.tut.fi/~jkorpela/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] 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/