Re: EBCDIC sorting as a use case for ICU rules

2023-08-30 Thread Daniel Verite
Peter Eisentraut wrote: > Committed with some editing. I moved the existing rules example from > the CREATE COLLATION page into the new section you created, so we have a > simple example followed by the complex example. OK, thanks for pushing this! Best regards, -- Daniel Vérité

Re: EBCDIC sorting as a use case for ICU rules

2023-08-24 Thread Jehan-Guillaume de Rorthais
Hi, Sorry to chime in so lately, I was waiting for some customer feedback. On Wed, 21 Jun 2023 15:28:38 +0200 "Daniel Verite" wrote: > At a conference this week I was asked if ICU could be able to > sort like EBCDIC [2]. > It turns out it has been already asked on > -general a few years

Re: EBCDIC sorting as a use case for ICU rules

2023-08-23 Thread Peter Eisentraut
On 17.07.23 10:10, Daniel Verite wrote: Peter Eisentraut wrote: You can use whitespace in the rules. For example, CREATE COLLATION ebcdic (provider='icu', locale='und', rules=$$ Nice, it's clearly better that the piece of code I had in the previous patch. It can also be made more

Re: EBCDIC sorting as a use case for ICU rules

2023-07-06 Thread Jeff Davis
On Thu, 2023-07-06 at 11:32 +0200, Peter Eisentraut wrote: > CREATE COLLATION ebcdic (provider='icu', locale='und', > rules=$$ > & ' ' < '.' < '<' < '(' < '+' < \| > < '&' < '!' < '$' < '*' < ')' < ';' > < '-' < '/' < ',' < '%' < '_' < '>' < '?' > < '`' < ':' < '#' < '@' < \' < '=' < '"' > < a < b

Re: EBCDIC sorting as a use case for ICU rules

2023-07-06 Thread Peter Eisentraut
On 30.06.23 13:08, Daniel Verite wrote: About making a doc patch from this, I've came up with the attached, which generates a CREATE COLLATION statement with rules from an arbitrary strings that just lists characters in whichever order is desired. I like adding more documentation and links

Re: EBCDIC sorting as a use case for ICU rules

2023-07-06 Thread Peter Eisentraut
On 21.06.23 15:28, Daniel Verite wrote: A collation like the following this seems to work (the rule simply enumerates US-ASCII letters in the EBCDIC alphabet order, with adequate quoting) CREATE COLLATION ebcdic (provider='icu', locale='und', rules=$$&'

Re: EBCDIC sorting as a use case for ICU rules

2023-06-21 Thread Jonathan S. Katz
On 6/21/23 12:14 PM, Jeff Davis wrote: On Wed, 2023-06-21 at 15:28 +0200, Daniel Verite wrote: At a conference this week I was asked if ICU could be able to sort like EBCDIC [2]. It turns out it has been already  asked on -general a few years ago [3] with no satisfactory answer at the time ,

Re: EBCDIC sorting as a use case for ICU rules

2023-06-21 Thread Jeff Davis
On Wed, 2023-06-21 at 15:28 +0200, Daniel Verite wrote: > At a conference this week I was asked if ICU could be able to > sort like EBCDIC [2]. It turns out it has been already  asked on > -general a few years ago [3] with no satisfactory answer at the time > , > and that it can be implemented

Re: EBCDIC sorting as a use case for ICU rules

2023-06-21 Thread Joe Conway
On 6/21/23 09:28, Daniel Verite wrote: In the "Order changes in PG16 since ICU introduction" discussion, one sub-thread [1] was about having a credible use case for tailoring collations with custom rules, a new feature in v16. At a conference this week I was asked if ICU could be able to sort

EBCDIC sorting as a use case for ICU rules

2023-06-21 Thread Daniel Verite
Hi, In the "Order changes in PG16 since ICU introduction" discussion, one sub-thread [1] was about having a credible use case for tailoring collations with custom rules, a new feature in v16. At a conference this week I was asked if ICU could be able to sort like EBCDIC [2]. It turns out it has