File: node33.html

package info (click to toggle)
gtkeyboard 1.1.7-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,284 kB
  • ctags: 1,234
  • sloc: ansic: 12,255; sh: 2,805; makefile: 328; perl: 32
file content (161 lines) | stat: -rw-r--r-- 5,595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Creating Cache Files</TITLE>
<META NAME="description" CONTENT="Creating Cache Files">
<META NAME="keywords" CONTENT="MANUAL">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="MANUAL.css">

<LINK REL="previous" HREF="node32.html">
<LINK REL="up" HREF="node29.html">
<LINK REL="next" HREF="node34.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html543"
  HREF="node34.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html539"
  HREF="node29.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html535"
  HREF="node32.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A> 
<A NAME="tex2html541"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="/usr/share/latex2html/icons/contents.png"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html544"
  HREF="node34.html">HTML Coding</A>
<B> Up:</B> <A NAME="tex2html540"
  HREF="node29.html">Word Completion</A>
<B> Previous:</B> <A NAME="tex2html536"
  HREF="node32.html">Word Completion Cache Files</A>
 &nbsp <B>  <A NAME="tex2html542"
  HREF="node1.html">Contents</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION00740000000000000000">
Creating Cache Files</A>
</H1>

<P>
Please note that you may find several different cache files which
may be of use located in the <I>cache/</I> subdirectory of the
GTKeyboard documentation directory.

<P>
Creating word completion cache files is quite easy - simply choose
the ``Convert Text File to Word Cache'' button located in the
main word completion window.  It will present you with a dialog asking
you to specify which file is to be converted, and what it should be
saved as.  The default is to save the newly created cache file as
<I>/.gtkeyboard-wordcache</I>, which will overwrite your previous
word cache.

<P>
Using the browse buttons to the right of the entry areas, you may
choose a filename to convert, and what to convert it to.  Note that
this process works only for text files.  It will also work on any file
you give it, but the results will most likely be an ugly, unusable
cache.  The cache file creation mechanism makes each block of letters
it sees into a word in the cache.  If you try to make a cache out of a
bit of HTML such as ``<P&gt;This is a bit of HTML''; the
result will be a cache that looks like this:
<BR><I>1 &lt;P&gt;This
<BR>
1 is
<BR>
1 a
<BR>
1 bit
<BR>
1 of
<BR>
1 HTML</I>
<BR>(Notice that GTKeyboard saw ``<P&gt;This'' as a word, which
you probably didn't intend)

<P>
You may also choose to click the toggle button below the entry
areas, labled ``Cache words in lower case'' which will cause
words in the cache to be all lower case.  This can be helpful, since
GTKeyboard would normall consider the words ``Hello'' and
``hello'' to be different words and would count their
occurance seperately.

<P>
When you are done picking options, click the ``OK'' button,
and the cache will be created.  A status message signalling completion
will be printed into the status window.  <I>Note: GTKeyboard does not
automatically load newly converted cache files.</I>

<P>
In addition to this method, there is a perl script distributed with
GTKeyboard called gtkeyboard-create-cache-file.  It is located in the
same directory that the GTKeyboard binary was installed in.  To use
this program, call it with two arguments.  The first argument should
be the file to read from, and the second argument the file to save the
new cache to.

<P>
By default, gtkeyboard-create-cache-file caches all words as lower
case, and strips all punctuation from the words.  Please note that
using this additional program requires Perl, which is freely available
from <I>http://www.perl.com/</I>.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html543"
  HREF="node34.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html539"
  HREF="node29.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html535"
  HREF="node32.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A> 
<A NAME="tex2html541"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="/usr/share/latex2html/icons/contents.png"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html544"
  HREF="node34.html">HTML Coding</A>
<B> Up:</B> <A NAME="tex2html540"
  HREF="node29.html">Word Completion</A>
<B> Previous:</B> <A NAME="tex2html536"
  HREF="node32.html">Word Completion Cache Files</A>
 &nbsp <B>  <A NAME="tex2html542"
  HREF="node1.html">Contents</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
David Allen
2001-04-26
</ADDRESS>
</BODY>
</HTML>