Re: Typing tutor help script needed, please

2005-10-28 Thread RedGrittyBrick
> Throw wrote: >> I must be able to extract words which contain only >> certain letters (they need not contain all of those letters, >> but they may not contain any other letters). SPE - Stani's Python Editor wrote: > #---Input data > > #List of words; every word or sentence on one line > #

Re: Typing tutor help script needed, please

2005-10-28 Thread Anno Siegel
Throw <[EMAIL PROTECTED]> wrote in comp.lang.perl.misc: > > G'day everyone! > > I would like to design typing tutor exercises for Afrikaans (and other > languages possibly). This is for a GPL project. For this, I need a > script that can extract words from a long list of words, based on which >

Re: Typing tutor help script needed, please

2005-10-28 Thread Mike Meyer
"Throw" <[EMAIL PROTECTED]> writes: > G'day everyone! > > I would like to design typing tutor exercises for Afrikaans (and other > languages possibly). This is for a GPL project. For this, I need a > script that can extract words from a long list of words, based on which > letters those words co

Re: Typing tutor help script needed, please

2005-10-28 Thread SPE - Stani's Python Editor
#---Input data #List of words; every word or sentence on one line #If from file: WORDS = open(fileName).readlines() WORDS = """\ Afrikaans Anna Bread red word bored python""".split('\n') #---Main program import re PATTERN = ['[^(%s)]+','[%s]+'] FILENAME= ['not_%s.txt','%s.txt']

Typing tutor help script needed, please

2005-10-28 Thread Throw
G'day everyone! I would like to design typing tutor exercises for Afrikaans (and other languages possibly). This is for a GPL project. For this, I need a script that can extract words from a long list of words, based on which letters those words contain, and write then write output to a file. D