• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Incremental Character Generator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: DAVE Logon scripts
  • Next by Date: Limiting Decimal Places in a Floating Variable?
  • Previous by thread: Re: Incremental Character Generator
  • Next by thread: Re: Incremental Character Generator
  • Index(es):
    • Date
    • Thread