473,795 Members | 2,512 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Proposed CSS 3 additions

Comments re these three related, proposed CSS 3 additions?

1. Add 'text-transform:time' , which would transform text in the format
hours:minutes:s econds (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:numbe r', which would transform a number per the
local format for displaying a number, e.g. <span
style="text-transform:numbe r;">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.


Jul 20 '05
29 2587
"Els" <el*********@ti scali.nl> wrote in message
news:Xn******** *********@130.1 33.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.
Jul 20 '05 #11
Els
C A Upsdell wrote:
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.


My guess is that those are the same ones who won't use the
CSS3 style 'text-transform:date; '.
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.


That would be the first time such a thing is done by a browser
I think.
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.


For you and me maybe, but I doubt "everybody" knows what it
means when they hover over a number and then see a tooltip
'nnn,nnn.nn'...

Of course we can discuss this forever, let me just conclude my
arguments with "Personally , I would never use it".

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #12
On Fri, 23 Jul 2004 16:51:33 GMT, "C A Upsdell"
<cupsdell0311XX X@-@-@XXXrogers.com> wrote:
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.


These seem sensible additions to me. I wonder, though, what would happen
if these additions are applied to inputs? That is, for e.g. a date input
(<input type=text>), if it has a default value (specified with the value
attribute), the text-transform could be applied - but what happens if
the user changes the date and submits the form? In which format would
the date be transmitted? Ideally, it would be transformed "back", but
this requires browser support beyond CSS I presume. If, on the other
hand, the date is sent back in the user's preferred format, the server
has no way of knowing (AFAICS) what format that is (other than, perhaps,
using JavaScript).

If the additions are not sensibly usable on inputs, that would seriously
limit their usability, I presume, as "display-only" dates/times could
have a different format (the user's preferred format) from the expected
format in inputs.

Gertjan.

--
Gertjan Klein <gk****@xs4all. nl>
Jul 20 '05 #13
Els
C A Upsdell wrote:
"Els" <el*********@ti scali.nl> wrote in message
news:Xn******** *********@130.1 33.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?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #14
Els wrote:
C A Upsdell wrote:
"Els" <el*********@ti scali.nl> wrote in message
news:Xn******** *********@130.1 33.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.
Since when was this 'metric'? I've never understood either 1,000 or 1.000
to be 'metric'.
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?


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.
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.)
Presumably, context helps?
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?


If the number starts as 1234567890.1234 567890 then styled:

US/UK etc:
1,234,567,890.1 234567890

holland, etc:
1.234.567.890,1 234567890

My preferred way, quite common IME:
1 234 567 890.1234567890

--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #15
Els
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.
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.1234 567890 then styled:

US/UK etc:
1,234,567,890.1 234567890

holland, etc:
1.234.567.890,1 234567890

My preferred way, quite common IME:
1 234 567 890.1234567890


That works for numbers like 1234567890.1234 567890.
But not for 123.456. I mean, the styling works, but unstyled
noone would know what it meant.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #16
Els wrote:
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.


Yeah, I just jumped on the most recent post :)
My preferred way, quite common IME:
1 234 567 890.1234567890


That works for numbers like 1234567890.1234 567890.
But not for 123.456. I mean, the styling works, but unstyled
noone would know what it meant.


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 :)

1,234,567,890· 1234567890

1 234 567 890·1234567890

123.456
123·456
123,456
123 456

Choices, choices!

I'm not sure it's that much of a problem, since usually the correct order
of magnitude can be found by context.

--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #17
Els
Matt wrote:
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 :)


I would never have thought of it, but now that you mention it,
I've seen the middle dot on supermarket receipts sometimes. :-)

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #18
In message
<tW************ **********@news 01.bloor.is.net .cable.rogers.c om>, C A
Upsdell <cupsdell0311XX X@-.?.invalid> writes
I had thought of HTML changes, but since the proposed new feature would
control presentation, I thought it better as CSS.


But it doesn't control the presentation - it seems to be a hint to the
user agent that _it_ should control the presentation.

If for some reason you _really_ wanted it to display in 24 hour format
regardless of user settings, then maybe some 'CSS' would be useful:
<time style="time-format: twenty-four-hour;">23:14</time>
would suggest a particular presentation for that time. But I wouldn't
think the CSS part of that would actually be a very common requirement.
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.


Clearly part of the mark-up would have to be an indication of the format
of the date. This would be useful for automatically processing HTML
documents in various ways.

Logically we'd either need an attribute which specified the format used,
or we'd need sub elements, i.e.
either <date format="mm/dd/yyyy">07/03/2004</date>
or <date><d>03</d>/<m>07</m>/<y>2004</y></date>

I'm completely convinced that this doesn't belong in CSS! The mark-up
should say "what the content is" - viz "a time", "a date". The styling
should (if needed) say "how to present the content", e.g. "24 hour
format", "user's choice of long date format", "this specific weird date
format I want but didn't feel like typing out each time I write a date
in my document".

--
George
Jul 20 '05 #19
"Gertjan Klein" <gk****@xs4all. nl> wrote in message
news:h7******** *************** *********@4ax.c om...
On Fri, 23 Jul 2004 16:51:33 GMT, "C A Upsdell"
<cupsdell0311XX X@-@-@XXXrogers.com> wrote:
Comments re these three related, proposed CSS 3 additions?

[...]
The objective, of course, is to be able to have times, dates, and numbers incontent rendered in formats with which the user is most familiar, e.g. intothe formats which in Windows are specified by Control Panel, Regional
Settings.


These seem sensible additions to me. I wonder, though, what would happen
if these additions are applied to inputs? That is, for e.g. a date input
(<input type=text>), if it has a default value (specified with the value
attribute), the text-transform could be applied - but what happens if
the user changes the date and submits the form? In which format would
the date be transmitted? Ideally, it would be transformed "back", but
this requires browser support beyond CSS I presume. If, on the other
hand, the date is sent back in the user's preferred format, the server
has no way of knowing (AFAICS) what format that is (other than, perhaps,
using JavaScript).


The date should be input in three separate fields, I think. Allows for
drop-down boxes for selecting values, for example.
Jul 20 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1875
by: Raymond Hettinger | last post by:
Comments are invited on the following proposed PEP. Raymond Hettinger ------------------------------------------------------- PEP: 329
0
2304
by: Josiah Carlson | last post by:
Good day everyone, I have produced a patch against the latest CVS to add support for two new formatting characters in the struct module. It is currently an RFE, which I include a link to at the end of this post. Please read the email before you respond to it. Generally, the struct module is for packing and unpacking of binary data. It includes support to pack and unpack the c types: byte, char, short, long, long long, char, *, and...
2
1994
by: Richard Cornford | last post by:
Anyone who has taken a look at the online FAQ today may have noticed that I have updated it. The majority of the changes are the updating of broken links and the implementation of that extensive suggestions for re-wording provided by Michael Winter. Other changes are listed below. Fore those interested, a zipped snapshot of the entire FAQ and notes, as it now is, is available at:- <URL:...
6
3184
by: Cro | last post by:
Dear Access Developers, The 'Allow Additions' property of my form is causing unexpected results. I am developing a form that has its 'Default View' property set to 'Continuous Forms' and am displaying records that match an SQL statement entered in the 'Record Source' property of the form. The form behaves correctly and displays the records as expected. The
10
2108
by: Michel Rouzic | last post by:
I need to determine how long does an addition take and how long does a multiplication takes. So far I've been trying to use the clock() function in my programs in order to find out how long it took the CPU to compute it, the only problem is that I get fairly inconsistent results, inconsistent enough not to know between two codes which code runs faster without running each about ten times and making the average of the reported CPU times. ...
335
11893
by: extrudedaluminiu | last post by:
Hi, Is there any group in the manner of the C++ Boost group that works on the evolution of the C language? Or is there any group that performs an equivalent function? Thanks, -vs
3
2111
by: James J. Besemer | last post by:
I would like to champion a proposed enhancement to Python. I describe the basic idea below, in order to gage community interest. Right now, it's only an idea, and I'm sure there's room for improvement. And of course it's possible there's some serious "gotcha" I've overlooked. Thus I welcome any and all comments. If there's some agreement that this proposal is worth further consideration then I'll re-submit a formal document in...
3
10003
by: paquer | last post by:
I want users to be able to set the Allow Additions property to 'True' via a command button when required. (The command also adds data to the subform) If they skip the command, they skip the data transfer. Hence I want to set the Allow Additions property via a command button. I set up the command button with the following code, but I keep getting an error: Method or Data Member not found (Debug highlights the allow additions section. ...
8
4016
by: BASSPU03 | last post by:
I'm using Access 2003 on a Windows XP O/S. I've made two copies of Form1 so that there're are 3 forms: 1) Form1 2) Form2 3) Form3 Essentially, they all write to the same Table1.
0
10438
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.