![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
It seems overlooked in Aural CSS specs. Use behavior twinpair (IE 5.5+, FF1.0+, Moz Suite 1.0+, Camino 1.0+, NN8+) snip nice code |
#12
| |||||||
| |||||||
|
|
Main reason for <td class="fi"> in markup: |
|
Dreamweaver MX allows very easy setting of table column class, but lang attribute just isn't there by default (would need to write a script, too much bother). |
|
Anyway. VK's code suggestion looks like a pretty good almost-CSS way to achieve this. |
|
but these don't contain any way to specify the language. They are not supposed to. Language is an inherent property of text, not a casual suggestion on rendering. Sort of good point there... |
|
But IMHO the lang attribute can also be "casual suggestion on rendering", mainly for TTS. |
|
For example, present the speech according to British or US English without changing the content, or present in some dialect, again without changing content. |
|
Like one would change the layout presentation of a page, one could also change the speech presentation. Pity this isn't directly part of CSS, just indirectly and "almost" through aural. |
#13
| |||||||
| |||||||
|
|
Jukka K. Korpela wrote: This postulates that you have <td class="fi"> in your markup. Why not use <td lang="fi"> instead? Well, you might have a reason to use _both_ a lang attribute _and_ a class attribute, since td.fi is well supported, td[lang="fi"] is very poorly supported at present. |
|
Main reason for <td class="fi"> in markup: Dreamweaver MX allows very easy setting of table column class, but lang attribute just isn't there by default (would need to write a script, too much bother). |
|
Anyway. VK's code suggestion looks like a pretty good almost-CSS way to achieve this. |
|
They are not supposed to. Language is an inherent property of text, not a casual suggestion on rendering. Sort of good point there... |
|
But IMHO the lang attribute can also be "casual suggestion on rendering", |
|
mainly for TTS. For example, present the speech according to British or US English without changing the content, or present in some dialect, again without changing content. |
|
Like one would change the layout presentation of a page, one could also change the speech presentation. |
#14
| |||
| |||
|
|
In the time available to me, I've been unable to distinguish VK from a common troll. |
#15
| |||||
| |||||
|
|
Jan Wagner <no_spam (AT) thanks (DOT) net> scripsit: Main reason for <td class="fi"> in markup: I guess you mean a reason for _not_ having such markup, since your question seems to revolve around avoiding the use of markup for indicating language. |
|
Dreamweaver MX allows very easy setting of table column class, but lang attribute just isn't there by default (would need to write a script, too much bother). Huh? A table column may have a lang attribute when declared using <col lang="...">. |
|
You can write lang attributes for cell elements (<th>, <td>) if needed. If your authoring tool does not let you do that conveniently, do it in a simple though inconvenient way, or get a better authoring tool. |
|
Anyway. VK's code suggestion looks like a pretty good almost-CSS way to achieve this. The kludge tries to modify the document tree via client-side scripting. Why don't you just use adequate markup in the first place? This is comparable to using <foo> markup and then some kludge to change <foo> to bar> in the browser. |
|
It would be simply incorrect to label a document or part of document as, say, British English when it isn't. |
#16
| |||
| |||
|
|
Jukka K. Korpela wrote: Huh? A table column may have a lang attribute when declared using col lang="...">. Thanks for the info, wasn't aware of the HTML col+colgroup tags. |
|
This is definitely the simplest way to add language indication to these existing pages. :-) |
|
Nah, I meant label it to be read out (presented) in e.g. British English or other even if it the actual content might not be. But likely that would be better done with some attribute other than 'lang'. |
#17
| |||
| |||
|
|
Huh? A table column may have a lang attribute when declared using <col lang="...">. Whether programs support this is a different issue. |
#18
| |||
| |||
|
|
The only attribute really recognized universally in col is width. |
#19
| |||
| |||
|
|
On Fri, 19 May 2006, Jan Wagner wrote: Jukka K. Korpela wrote: Huh? A table column may have a lang attribute when declared using col lang="...">. Thanks for the info, wasn't aware of the HTML col+colgroup tags. I'm a bit uneasy that Jukka proposed that without further comment. |
|
This is definitely the simplest way to add language indication to these existing pages. :-) Oh, agreed, and the meaning (of the HTML) is clear, no argument with that. Just that if one intends to use the language attribute to apply some presentational effects via CSS, I think there are going to be quite severe limits on what can be achieved with it. |
#20
| ||||||
| ||||||
|
|
Alan J. Flavell <flavell (AT) physics (DOT) gla.ac.uk> scripsit: I'm a bit uneasy that Jukka proposed that without further comment. I had a comment: "Whether programs support this is a different issue." |
| http://www.w3.org/TR/CSS21/tables.html#q4 I'd regard that as irrelevant when considering the meaning and effect of lang attributes in HTML. |
|
They are not supposed to have, and they don't have, any direct effect on styling, any more than a class attribute has. |
|
If we discussed the meaning of selectors like lang(...), it would be a different (and tough) question. |
|
The HTML 4.01 specification describes, in an odd place and under a strange heading, the lang attribute as being "inherited" from columns to cells: http://www.w3.org/TR/REC-html40/stru...tml#h-11.3.2.1 |
|
The lang attribute, unlike some presentational attributes like align and width, has no CSS counterpart - it is not implicitly mapped to anything in CSS. _Using_ the attribute in _selectors_ is a different matter, and here we have the restrictive principle that the pseudo-element [lang |= "..."] refers only to those elements that have the lang attribute set in markup, with no inheritance considerations. Using :lang(...) would be a different matter, but I'm afraid it has even less support. |
![]() |
| Thread Tools | |
| Display Modes | |
| |