W3C home > Mailing lists > Public > www-style@w3.org > July 2013

Re: [css3list] minus character

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 29 Jul 2013 13:12:13 -0700
Message-ID: <CAAWBYDBZseqhk19bEbf9yzxHULC8bZvXsF0OKrJZ+MkBBjuq9A@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: www-style list <www-style@w3.org>
On Fri, Jul 26, 2013 at 9:36 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> I'm wondering why negative values in counters use the hyphen-minus character
> (\2d) [1], instead of the minus character (\2212).[2]
>
> 1) http://www.w3.org/TR/css-counter-styles-3/#counter-style-negative
>
> 2) http://www.fileformat.info/info/unicode/char/2212/index.htm

Because that's the character browsers currently use.

> Also, on a separate note, is there no simple way to get thousands separators
> (such as commas or periods or thin spaces) in decimal counter styles?[3] I
> imagine that would be common and desirable for those making long numbered
> lists. It seems like there should be an 'override' descriptor [4] available
> for that, if it is not the default, for setting the separator character and
> the grouping quantity (not always 3 digits).
>
> 3) http://en.wikipedia.org/wiki/Thousands_separator#Digit_grouping
> 4) http://www.w3.org/TR/css-counter-styles-3/#override

So far, no, there's no way to easily insert a separator character.
You can fake it to some extent, but this is part of why the CJK styles
are only defined out to 9999 in the @counter-style form.

~TJ
Received on Monday, 29 July 2013 20:13:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:32 UTC