Re: If X sorts before Y, then XZ sorts before YZ ... example of where that's not true?

2013-01-07 Thread Christopher Fynn
On 07/01/2013, Costello, Roger L. coste...@mitre.org wrote:
 Hi Folks,

 In the book, Unicode Demystified (p. xxii) it says:

 An English-speaking  programmer might assume,
 for example, that given the three characters X, Y,
 and Z, that if X sorts before Y, then XZ sorts before
 YZ. This works for English, but fails for many
 languages.

 Would you give an example of where character 1 sorts before character 2 but
 character 1, character 3 does not sort before character 2, character 3?

 /Roger

Look at the collation for Dzongkha or Tibetan:

http://developer.mimer.com/charts/dzongkha.htm

http://developer.mimer.com/charts/tibetan.htm



If X sorts before Y, then XZ sorts before YZ ... example of where that's not true?

2013-01-06 Thread Costello, Roger L.
Hi Folks,

In the book, Unicode Demystified (p. xxii) it says:

An English-speaking  programmer might assume,
for example, that given the three characters X, Y,
and Z, that if X sorts before Y, then XZ sorts before
YZ. This works for English, but fails for many
languages.

Would you give an example of where character 1 sorts before character 2 but 
character 1, character 3 does not sort before character 2, character 3?

/Roger




Re: If X sorts before Y, then XZ sorts before YZ ... example of where that's not true?

2013-01-06 Thread Mark Davis ☕
There are many cases of such digraphs.

Example from Slovak:

c  d  h
but
cd  h  ch

Cf http://www.unicode.org/reports/tr10/, searching for Slovak.


Mark https://plus.google.com/114199149796022210033
*
*
*— Il meglio è l’inimico del bene —*
**


On Sun, Jan 6, 2013 at 1:56 PM, Costello, Roger L. coste...@mitre.orgwrote:

 Hi Folks,

 In the book, Unicode Demystified (p. xxii) it says:

 An English-speaking  programmer might assume,
 for example, that given the three characters X, Y,
 and Z, that if X sorts before Y, then XZ sorts before
 YZ. This works for English, but fails for many
 languages.

 Would you give an example of where character 1 sorts before character 2
 but character 1, character 3 does not sort before character 2, character 3?

 /Roger





Re: If X sorts before Y, then XZ sorts before YZ ... example of where that's not true?

2013-01-06 Thread Charlie Ruland

Roger,
one way to get an answer to your question is to do the following: open 
page 440 of Richard Gillam’s book from which you are citing and read the 
chapter /Contracting character sequences./

HTH,
Charlie

* Costello, Roger L. coste...@mitre.org [2013-01-06 22:56]:

Hi Folks,

In the book, Unicode Demystified (p. xxii) it says:

 An English-speaking  programmer might assume,
 for example, that given the three characters X, Y,
 and Z, that if X sorts before Y, then XZ sorts before
 YZ. This works for English, but fails for many
 languages.

Would you give an example of where character 1 sorts before character 2 but 
character 1, character 3 does not sort before character 2, character 3?

/Roger