Re: Incremental Character Generator
Re: Incremental Character Generator
- Subject: Re: Incremental Character Generator
- From: Nigel Garvey <email@hidden>
- Date: Wed, 22 Nov 2000 12:16:38 +0000
Bill Briggs wrote on Tue, 21 Nov 2000 23:22:50 -0300:
>
At 10:35 PM -0300 21/11/00, Bill Briggs wrote:
>
>At 9:26 PM -0500 21/11/00, Phi Sanders wrote:
>
>>32 Letters??
>
>
>
>He was writing from Germany. He's got extras in the form of v, |, etc.
>
>
Ouch. That didn't come through the way it left here. Those were
>
vowels with umlauts on them (umlauts are the two little dots,(
>
(Opt-Shift-u on your keyboard)). You have those in German, hence the
>
6 extra letters. The sample script sent in so far seem to have
>
ignored them. They add a bit of extra effort to the algorithm because
>
they don't fall in a sequence as do the letters without diacritical
>
marks.
I only know of 30 characters in the German alphabet, assuming lower case
only. This version of Michelle's script handles any alphabet, copes with
out-of-sequence characters, and reduces calculation and concatenation
overheads:
set alphabet to "adbcdefghijklmnovpqrs_tu|vwxyz"
repeat with chr1 in alphabet
set t to chr1
repeat with chr2 in alphabet
set te to t & chr2
repeat with chr3 in alphabet
set tes to te & chr3
repeat with chr4 in alphabet
set test to tes & chr4
--do something with test
end repeat
end repeat
end repeat
end repeat
NG