02eb2a956f1d827fedc2278d8ba5b073ba9df1e3
[platform/upstream/aspell.git] / manual / aspell.html / Replacement-Tables.html
1 <html lang="en">
2 <head>
3 <title>Replacement Tables - GNU Aspell 0.60.6.1</title>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <meta name="description" content="Aspell 0.60.6.1 spell checker user's manual.">
6 <meta name="generator" content="makeinfo 4.8">
7 <link title="Top" rel="start" href="index.html#Top">
8 <link rel="up" href="Adding-Support-For-Other-Languages.html#Adding-Support-For-Other-Languages" title="Adding Support For Other Languages">
9 <link rel="prev" href="The-Simple-Soundslike.html#The-Simple-Soundslike" title="The Simple Soundslike">
10 <link rel="next" href="Affix-Compression.html#Affix-Compression" title="Affix Compression">
11 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12 <!--
13 This is the user's manual for Aspell
14
15 GNU Aspell is a spell checker designed to eventually replace Ispell.
16 It can either be used as a library or as an independent spell checker.
17
18 Copyright (C) 2000--2011 Kevin Atkinson.
19
20      Permission is granted to copy, distribute and/or modify this
21      document under the terms of the GNU Free Documentation License,
22      Version 1.1 or any later version published by the Free Software
23      Foundation; with no Invariant Sections, no Front-Cover Texts and
24      no Back-Cover Texts.  A copy of the license is included in the
25      section entitled "GNU Free Documentation License".
26    -->
27 <meta http-equiv="Content-Style-Type" content="text/css">
28 <style type="text/css"><!--
29   pre.display { font-family:inherit }
30   pre.format  { font-family:inherit }
31   pre.smalldisplay { font-family:inherit; font-size:smaller }
32   pre.smallformat  { font-family:inherit; font-size:smaller }
33   pre.smallexample { font-size:smaller }
34   pre.smalllisp    { font-size:smaller }
35   span.sc    { font-variant:small-caps }
36   span.roman { font-family:serif; font-weight:normal; } 
37   span.sansserif { font-family:sans-serif; font-weight:normal; } 
38 --></style>
39 </head>
40 <body>
41 <div class="node">
42 <p>
43 <a name="Replacement-Tables"></a>
44 Next:&nbsp;<a rel="next" accesskey="n" href="Affix-Compression.html#Affix-Compression">Affix Compression</a>,
45 Previous:&nbsp;<a rel="previous" accesskey="p" href="The-Simple-Soundslike.html#The-Simple-Soundslike">The Simple Soundslike</a>,
46 Up:&nbsp;<a rel="up" accesskey="u" href="Adding-Support-For-Other-Languages.html#Adding-Support-For-Other-Languages">Adding Support For Other Languages</a>
47 <hr>
48 </div>
49
50 <h3 class="section">7.5 Replacement Tables</h3>
51
52 <p>When phonetic code is not used a replacement table can be used instead. 
53 To enable the use of a replacement table add the line <code>repl-table
54 </code><var>lang</var>, in which case the replacement table is excepted to be in
55 the file <samp><var>lang</var><span class="file">_repl.dat</span></samp>.  A complete file name can also be
56 specified in place of <var>lang</var>.  For compatibility with MySpell the
57 replacement table can also be part of the affix file, in which case
58 <samp><span class="option">repl-table</span></samp> will be <samp><var>lang</var><span class="file">_affix.dat"</span></samp>.
59
60    <p>Replacement table syntax:
61
62 <pre class="example">     REP [number_of_replacement_definitions]
63      REP [what] [replacement]
64      REP [what] [replacement]
65 </pre>
66    <p>For example a possible English replacement table definition
67 to handle misspelled consonants:
68
69 <pre class="example">     REP 8
70      REP f ph
71      REP ph f
72      REP f gh
73      REP gh f
74      REP j dg
75      REP dg j
76      REP k ch
77      REP ch k
78 </pre>
79    </body></html>
80