1 ###################################################################
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
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.
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
27 $ aspell dump master norwegian
29 This will print out all the norwegian words found in the norwegian
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 ---->
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