![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
The number one is a bit dangerous - if it isn't clear from the context whether "." or "," is the decimal separator, then the consequences of a style sheet not getting applied could cause an industrial accident! But this problem exists today: what is, for example, '100,001'? To many it means one hundred thousand and one; to many others who use metric notations it means one hundred + one thousandths. yes, but it would be consistent within one site or language. Are there English speaking countries where 100,001 means one hundred thousand and one? |
|
Disabling the stylesheet could be bad indeed. |
#12
| |||
| |||
|
|
Then, looking at it: I still think USA, and see your date is of an internationally readable format: July 17, 2004. No matter where in the world I am, I'll understand that format. And that is why I choose to use an internationally unambiguous format. But many others do not. |
|
But, to know what site I'm on, I'll click on the trolley ;-) Yep, USA. Or at least, aimed at the USA. Otherwise you wouldn't have a seperate flag for "Canadian shoppers" :-) USA because I know that a lot more users are American than Canadian. Another point is that, since the use of text-transform would tell the browser what type of content the text is (i.e., number, date, or time), the browser could (perhaps optionally) pass this information on to the user when the cursor hovers over the content. E.g., hovering the cursor over '7/3/04' might display the tooltip 'month/day/year'. Now, there is something useful. Would have to be in the validator too, just like the alt attribute is now. And not accepting empty values... I would not have to be in a validator: since the browser can understand the semantics, it needs no further information to tell it what tooltip is appropriate. |
|
Still remains the formatting of numbers though... 1000,000 != 1000.000. You want a tooltip saying "one million"? No, but it could be something like 'nnn,nnn.nn', which clearly says it uses a ',' as a thousands separator, and '.' as a decimal separator. |
#13
| |||
| |||
|
|
Comments re these three related, proposed CSS 3 additions? [...] The objective, of course, is to be able to have times, dates, and numbers in content rendered in formats with which the user is most familiar, e.g. into the formats which in Windows are specified by Control Panel, Regional Settings. |
#14
| |||
| |||
|
|
"Els" <els.aNOSPAM (AT) tiscali (DOT) nl> wrote in message news:Xns952FDF1E27459Els (AT) 130 (DOT) 133.1.4... The number one is a bit dangerous - if it isn't clear from the context whether "." or "," is the decimal separator, then the consequences of a style sheet not getting applied could cause an industrial accident! But this problem exists today: what is, for example, '100,001'? To many it means one hundred thousand and one; to many others who use metric notations it means one hundred + one thousandths. yes, but it would be consistent within one site or language. Are there English speaking countries where 100,001 means one hundred thousand and one? Yes, in the USA, |
|
and among the majority of Canadians who don't use the metric notation. (It can be so confusing sometimes to be a Canadian, since things like 100,001 could either be 100001 or 100 1/1000.) Disabling the stylesheet could be bad indeed. Well, if the stylesheet is disabled, then (a) the tooltip should not be displayed, and (b) the information will be in the canonical format, e.g. '<span style="text-transform:date;">2004/07/03</span> would display 2004/07/03, which is pretty unambiguous. |
#15
| ||||
| ||||
|
|
C A Upsdell wrote: "Els" <els.aNOSPAM (AT) tiscali (DOT) nl> wrote in message news:Xns952FDF1E27459Els (AT) 130 (DOT) 133.1.4... The number one is a bit dangerous - if it isn't clear from the context whether "." or "," is the decimal separator, then the consequences of a style sheet not getting applied could cause an industrial accident! But this problem exists today: what is, for example, '100,001'? To many it means one hundred thousand and one; to many others who use metric notations it means one hundred + one thousandths. |
|
yes, but it would be consistent within one site or language. Are there English speaking countries where 100,001 means one hundred thousand and one? Yes, in the USA, Aargh.. I meant "doesn't mean" instead of "means" in my question. It's here in Holland where it should be written as 100.001, to me, in English, (UK and US) it's 100,001. Didn't know part of Canada would use 100.001 too. So, if it is then styled to the local format on a Canadian PC... Would that be metric or not? |
|
and among the majority of Canadians who don't use the metric notation. (It can be so confusing sometimes to be a Canadian, since things like 100,001 could either be 100001 or 100 1/1000.) |
|
Disabling the stylesheet could be bad indeed. Well, if the stylesheet is disabled, then (a) the tooltip should not be displayed, and (b) the information will be in the canonical format, e.g. '<span style="text-transform:date;">2004/07/03</span> would display 2004/07/03, which is pretty unambiguous. For the date, yes, but the number? |
#16
| |||
| |||
|
|
Els wrote: C A Upsdell wrote: But this problem exists today: what is, for example, '100,001'? To many it means one hundred thousand and one; to many others who use metric notations it means one hundred + one thousandths. Since when was this 'metric'? I've never understood either 1,000 or 1.000 to be 'metric'. |
|
I write: 100 001.23 to mean one hundres thousand and one plus 23 thousandths. With a non-breaking space, of course. I /think/ this is completely unambiguous. Well, if the stylesheet is disabled, then (a) the tooltip should not be displayed, and (b) the information will be in the canonical format, e.g. '<span style="text-transform:date;">2004/07/03</span> would display 2004/07/03, which is pretty unambiguous. For the date, yes, but the number? If the number starts as 1234567890.1234567890 then styled: US/UK etc: 1,234,567,890.1234567890 holland, etc: 1.234.567.890,1234567890 My preferred way, quite common IME: 1 234 567 890.1234567890 |
#17
| |||
| |||
|
|
Comments re these three related, proposed CSS 3 additions? 1. Add 'text-transform:time', which would transform text in the format hours:minutes:seconds (24 hour clock) to the local format for displaying the time, e.g. <span style="text-transform:time;">23:15</span> might be rendered as 11:15PM or 23:15. 2. Add 'text-transform:date', which would transform text in the format year-month-day to text in the local format for displaying the date, e.g. span style="text-transform:date;">2004-07-23</span> might be rendered 07/23/04, 23/07/04, 07/23/2004, 23/07/2004, or whatever. 3. Add 'text-transform:number', which would transform a number per the local format for displaying a number, e.g. <span style="text-transform:number;">123,456,789.01</span> might be rendered as 123,456,789.01, 123 456 789,01, 123.456.789,01, or whatever. The objective, of course, is to be able to have times, dates, and numbers in content rendered in formats with which the user is most familiar, e.g. into the formats which in Windows are specified by Control Panel, Regional Settings. |
#18
| |||
| |||
|
|
Matt wrote: Els wrote: C A Upsdell wrote: But this problem exists today: what is, for example, '100,001'? To many it means one hundred thousand and one; to many others who use metric notations it means one hundred + one thousandths. Since when was this 'metric'? I've never understood either 1,000 or 1.000 to be 'metric'. Sorry, just copied the word from the other post. |

|
My preferred way, quite common IME: 1 234 567 890.1234567890 That works for numbers like 1234567890.1234567890. But not for 123.456. I mean, the styling works, but unstyled noone would know what it meant. |

#19
| |||
| |||
|
|
I forgot the true UK way. Before computers forced using . as the decimal seperator, we used · -- a middle dot. We still do use it, when something is handwritten, but I doubt there's many people who've configured AltGr + . to be · like I have ![]() |
#20
| |||
| |||
|
|
I had thought of HTML changes, but since the proposed new feature would control presentation, I thought it better as CSS. |
|
Ditto for date. But this leaves the content open to confusion. E.g. is 7/03/04 month/day/year, or day/month/year, or year/month/day, or what? One can choose to use unambiguous formats -- e.g. 2004/07/03 is pretty clearly year/month/day -- but this will annoy a lot of people who are convinced that their way is the right way. |
![]() |
| Thread Tools | |
| Display Modes | |
| |