From akira at tagoh.org Mon Oct 12 22:37:58 2015 From: akira at tagoh.org (Akira TAGOH) Date: Tue, 13 Oct 2015 12:37:58 +0900 Subject: Where is list-unicodeset moving to? Message-ID: Hi, There are a dead link at http://cldr.unicode.org/unicode-utilities/list-unicodeset. Where is http://unicode.org/cldr/utility/list-unicodeset.jsp moving to? it returns 404 at this moment. -- Akira TAGOH From rick at unicode.org Mon Oct 12 23:39:35 2015 From: rick at unicode.org (Rick McGowan) Date: Mon, 12 Oct 2015 21:39:35 -0700 Subject: Where is list-unicodeset moving to? In-Reply-To: References: Message-ID: <561C8B07.2050309@unicode.org> Thank you for reporting this. The JSP has not moved. There is apparently a bug that caused that sub-system to go down. I have rebooted, and it should now work. Regards, Rick On 10/12/2015 8:37 PM, Akira TAGOH wrote: > Hi, > > There are a dead link at > http://cldr.unicode.org/unicode-utilities/list-unicodeset. > Where is http://unicode.org/cldr/utility/list-unicodeset.jsp moving > to? it returns 404 at this moment. > From akira at tagoh.org Wed Oct 14 00:48:59 2015 From: akira at tagoh.org (Akira TAGOH) Date: Wed, 14 Oct 2015 14:48:59 +0900 Subject: Where is list-unicodeset moving to? In-Reply-To: References: Message-ID: It works now. thank you. On Tue, Oct 13, 2015 at 12:37 PM, Akira TAGOH wrote: > Hi, > > There are a dead link at > http://cldr.unicode.org/unicode-utilities/list-unicodeset. > Where is http://unicode.org/cldr/utility/list-unicodeset.jsp moving > to? it returns 404 at this moment. > > -- > Akira TAGOH -- Akira TAGOH From ed.trager at gmail.com Fri Oct 16 11:20:29 2015 From: ed.trager at gmail.com (Ed Trager) Date: Fri, 16 Oct 2015 12:20:29 -0400 Subject: Implementing CLDR plural rules Message-ID: Hi, List, The Unicode Technical Report #35 describes operands that are used for defining the rules used for determining plural forms in different languages (http://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules). These operands are defined in table 5.1.1 of that report. These operands ( n, i, v, w, f, and t ) describe not only the numeric value but also the *_formatted appearance_* of the numeric value when, for example, fractional decimal digits are present. For example, "v" describes the "number of visible fraction digits in n, with trailing zeros". My question is: Does any production system exist (e.g., some newer version of ICU perhaps?) or has anyone on GitHub or elsewhere implemented a system which follows these rules to this level of detail? In my cursory glance on Github, I see that there are some projects which purport to automatically convert the CLDR XML source to code, but I think at least some of these only deal with the operand "n" and aspire only to the standard GNU "gettext" internationalization library's quality of plural definitions. Also, in my cursory glance on GitHub, I did not see any C++ class libraries which implement the CLDR style of plural definitions. I am in fact thinking of writing my own C++ class implementation, so that's why I am asking. From what I can tell, the STL C++ facet stuff also does not implement CLDR-style plural rules; is this assumption correct? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at macchiato.com Fri Oct 16 11:45:26 2015 From: mark at macchiato.com (=?UTF-8?B?TWFyayBEYXZpcyDimJXvuI8=?=) Date: Fri, 16 Oct 2015 18:45:26 +0200 Subject: Implementing CLDR plural rules In-Reply-To: References: Message-ID: On Fri, Oct 16, 2015 at 6:20 PM, Ed Trager wrote: > My question is: Does any production system exist (e.g., some newer version > of ICU perhaps?) or has anyone on GitHub or elsewhere implemented a system > which follows these rules to this level of detail? > ?It has been in the last couple of releases of ICU.? Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From cameron at lumoslabs.com Fri Oct 16 12:23:44 2015 From: cameron at lumoslabs.com (Cameron Dutro) Date: Fri, 16 Oct 2015 12:23:44 -0500 Subject: Implementing CLDR plural rules In-Reply-To: References: Message-ID: Hey Ed, I recently wrote a parser in Ruby for the plurals syntax (called cldr-plurals ) and released it open-source. The project contains two emitters - one for Ruby and one for Javascript. In fact, the project is designed to accommodate emitters for any language, C++ included. I would welcome a pull request if you'd care to contribute. If nothing else, the project can serve as an example implementation should you decide to write your own version. ICU can of course serve you in a similar capacity. The code emitted by the cldr-plurals emitters requires a runtime capable of producing the n, i, v, w, f, and t variables you mentioned, to the level of detail specified by TR35. The Ruby and Javascript runtimes are released as separate projects and can also be used as a reference when developing your own C++ version. Here's the Ruby runtime, and here's the Javascript one. -Cameron On Fri, Oct 16, 2015 at 11:20 AM, Ed Trager wrote: > Hi, List, > > The Unicode Technical Report #35 describes operands that are used for > defining the rules used for determining plural forms in different languages > (http://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules). > > These operands are defined in table 5.1.1 of that report. These operands ( > n, i, v, w, f, and t ) describe not only the numeric value but also the > *_formatted appearance_* of the numeric value when, for example, fractional > decimal digits are present. For example, "v" describes the "number of > visible fraction digits in n, with trailing zeros". > > My question is: Does any production system exist (e.g., some newer version > of ICU perhaps?) or has anyone on GitHub or elsewhere implemented a system > which follows these rules to this level of detail? > > In my cursory glance on Github, I see that there are some projects which > purport to automatically convert the CLDR XML source to code, but I think > at least some of these only deal with the operand "n" and aspire only to > the standard GNU "gettext" internationalization library's quality of plural > definitions. Also, in my cursory glance on GitHub, I did not see any C++ > class libraries which implement the CLDR style of plural definitions. > > I am in fact thinking of writing my own C++ class implementation, so > that's why I am asking. From what I can tell, the STL C++ facet stuff also > does not implement CLDR-style plural rules; is this assumption correct? > > > > > > > _______________________________________________ > CLDR-Users mailing list > CLDR-Users at unicode.org > http://unicode.org/mailman/listinfo/cldr-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed.trager at gmail.com Fri Oct 16 14:03:59 2015 From: ed.trager at gmail.com (Ed Trager) Date: Fri, 16 Oct 2015 15:03:59 -0400 Subject: Implementing CLDR plural rules In-Reply-To: References: Message-ID: Excellent, Cameron, I will definitely take a look! And thanks, Mark Davis, I will also take a look at what ICU looks like. On Fri, Oct 16, 2015 at 1:23 PM, Cameron Dutro wrote: > Hey Ed, > > I recently wrote a parser in Ruby for the plurals syntax (called > cldr-plurals ) and released it > open-source. The project contains two emitters - one for Ruby and one for > Javascript. In fact, the project is designed to accommodate emitters for > any language, C++ included. I would welcome a pull request if you'd care to > contribute. If nothing else, the project can serve as an example > implementation should you decide to write your own version. ICU can of > course serve you in a similar capacity. > > The code emitted by the cldr-plurals emitters requires a runtime capable > of producing the n, i, v, w, f, and t variables you mentioned, to the level > of detail specified by TR35. The Ruby and Javascript runtimes are released > as separate projects and can also be used as a reference when developing > your own C++ version. Here's > > the Ruby runtime, and here's > > the Javascript one. > > -Cameron > > On Fri, Oct 16, 2015 at 11:20 AM, Ed Trager wrote: > >> Hi, List, >> >> The Unicode Technical Report #35 describes operands that are used for >> defining the rules used for determining plural forms in different languages >> (http://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules >> ). >> >> These operands are defined in table 5.1.1 of that report. These operands >> ( n, i, v, w, f, and t ) describe not only the numeric value but also the >> *_formatted appearance_* of the numeric value when, for example, fractional >> decimal digits are present. For example, "v" describes the "number of >> visible fraction digits in n, with trailing zeros". >> >> My question is: Does any production system exist (e.g., some newer >> version of ICU perhaps?) or has anyone on GitHub or elsewhere implemented a >> system which follows these rules to this level of detail? >> >> In my cursory glance on Github, I see that there are some projects which >> purport to automatically convert the CLDR XML source to code, but I think >> at least some of these only deal with the operand "n" and aspire only to >> the standard GNU "gettext" internationalization library's quality of plural >> definitions. Also, in my cursory glance on GitHub, I did not see any C++ >> class libraries which implement the CLDR style of plural definitions. >> >> I am in fact thinking of writing my own C++ class implementation, so >> that's why I am asking. From what I can tell, the STL C++ facet stuff also >> does not implement CLDR-style plural rules; is this assumption correct? >> >> >> >> >> >> >> _______________________________________________ >> CLDR-Users mailing list >> CLDR-Users at unicode.org >> http://unicode.org/mailman/listinfo/cldr-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: