[css-counter-styles] implementation of complex cjk counter styles

On Wednesday, January 15, 2014, Tab Atkins Jr. wrote:

> On Sun, Nov 3, 2013 at 7:35 PM, Xidorn Quan <quanxunzhen@gmail.com> wrote:
> > Hi,
> >
> > I just submitted an implementation of longhand East Asian counter styles
> for
> > Firefox. You can find it at
> > https://bugzilla.mozilla.org/show_bug.cgi?id=934072 .
> >
> > As described in comment 8 in the page mentioned above, this impl
> generates a
> > slightly different result with the current draft: for 11,111, it
> generates
> > "一万千百十一" in japanese-informal and "萬 千百十一" in korean-hanja-informal; and
> it
> > generates "一千万" for 10,000,000 in japanese-informal. These modifications
> are
> > based on the discussion in this mailing list and replies from some of my
> > native friends, and I also referred to the result of Google Translate.
>
> Okay, I think we fixed the algorithm to accommodate this.  We've
> changed the line "if any of the digit markers are preceded by the
> digit 1, and that digit is not the first digit of the group," to say
> "is not the first digit of the number" instead.
>
> Is this a correct fix?
>

Sorry, it is wrong. Just revert this change please. The previous version is
at least acceptable, but this version is incorrect. As someone mentioned in
another thread, for 10,000,000, either "一千万" or "千万" is acceptable, but for
1,000,000, they use "百万" only instead of "一百万".

Xidorn Quan

Received on Tuesday, 14 January 2014 21:09:29 UTC