[REBOL] Re: Czech Sort (was Re: I miss ..., bug in to-local-file ...)
From: gjones05:mail:orion at: 9-Jun-2001 19:38
Hi, PeKr,
> From Scott Jones
...
> > I tried to put the letters in order based on
> > the references I found and PeKr's instructions.
> > This list follows the questions. Please look
> > over the list to check for completeness and
> > accuracy of order (hopefully I got the byte
> > codes correct).
From: "Petr Krenzelok"
> I am sorry I have not found free time to respond
> earlier!
No problem (as we say ;-).
> "Ch" is not single character! It is still TWO
> characters - the sort sequence is, however,
> different from english one:
>
> a b c d e f g h "ch" i j k l m n .....
>
> so above is a little bit Czech special case ....
Yes, this is what I understood from your earlier post. I just wanted to make
sure it was not a blended character like some languages.
> a b c c^ d d^ ..... don't know how to express myself in english, but imagine
> "^" being upon "c", and rotated in 180 degrees :-)
>
> .. maybe a little composed image could help?
> http://www.rebol.cz/~can/rebol-view/czech-alphabet.png
Nice picture. It helps to confirm what I thought you meant.
> I will check once I get at my work to look to some of our
> dbase char sorting.
Excellent idea!
> However - I just asked about sorting. I not necessarily
> needed you spend all of your free time solving my
> problems :-) Anyway - thanks a lot for taking care!
Oh, I know you were just asking in order to point out a "short-coming". As I
have explained before, I look for little projects that will help me to improve
my skills. Lately, I've been working on schemes, dialects, parsing and custom
sorts, so this probem, like the http thing, has been perfect!
I roughed out the main mechanics of the sort this morning, and it works better
than expected. I have already sorted lists of hundreds of words taken from your
work's website (don't worry, it was the Czech version :-), and it works great.
All I really have left to do is to map out the punctuation, and to create a
generic way to manage different languages, with their special characters. It
will then be easy for a person to map their own language for a custom version of
the 'sort.
I originally thought I would be using the /compare refinement, but a much more
natural solution has evolved (or so it appears to me). Maybe by Monday, if you
get a chance to see how dbase manages sorts, I can put the finishing touches on
it.
By the way, I believe I see a way to use the /custom refinement on the http to
get a more seamless file retrieval through read or open. It will be able to use
all the great functionality that RT put into http, only allow a bit more
control. That and cookie management will make a great addition to the http
functionality.
Have a nice Sunday (Nedele ?).
--Scott Jones