moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / ktouch / extras / training-gen / perl / README
blob557a74686f8281b3548b58fc837e3fd329fb5e6f
1 ###################################################################
3 #  ktouch-gen.pl
5 #    written by: Steinar Theigmann <steinart@incatel.no>
6 #                Håvard Frøiland  <havard.froiland@chello.no>
8 #    This file describes how to generate your own training files
9 #    in 3. steps.
13 Step 1: Collect data
15 The script needs a data file with words, one word on each line. You
16 can create it in your editor, or you can get it generated (see
17 below). You will also find some data files in cvs.
19 Suggestion for creating your own data file using an excisting dictionary. See http://aspell.sourceforge.net for more info.
21 $ aspell dump master
23 This will print out a looong list with words in the default
24 language. If you have installed other languages that you want to use
25 you can write:
27 $ aspell dump master norwegian
29 This will print out all the norwegian words found in the norwegian
30 ditionary.
32 Since we don't want this word on the screen, but in a file we do this:
34 $ aspell dump master > ~/your-word-file
36 You will now have a file called your-word-file stored in your home directory.
39 Step 2: Creat a configuration file
41 The config file is shown below.
43 <---- the file starts here ---->
44 length-of-line 20
45 number-of-line 10
61 ABCDEFGHIJKLMNOPQRSTUVWXYZ
62 <---- the file ends here ---->
64 The length of a line is set to be 20 characters, and each level should
65 be 10 lines loong. The first level will only contain combinations of
66 "jf" and the next one will contain "jfkd" and so on.
68 Save it to a file called your-config-file, and we are ready to try the script.
71 Step 3: Generate your training file
73 To test the script you should do this:
75 $ perl ktouch-gen.pl your-config-file < your-word-file 
77 This will print out the newly generated training file to your screen,
78 if you are happy with it, you could save it to file by doing this.
80 $ perl ktouch-gen.pl your-config-file < your-word-file > your-training-file.ktouch