File: aspell_conv

package info (click to toggle)
hunspell 1.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,952 kB
  • sloc: cpp: 16,817; sh: 1,138; makefile: 712; perl: 522; ansic: 67; sed: 16
file content (42 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (5)
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
diff -urNad hunspell-1.1.5~/man/hunspell.4 hunspell-1.1.5/man/hunspell.4
--- hunspell-1.1.5~/man/hunspell.5	2007-03-14 14:37:31.000000000 +0100
+++ hunspell-1.1.5/man/hunspell.5	2007-04-11 14:36:27.000000000 +0200
@@ -1356,6 +1356,38 @@
 echo "TRY qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM" >>xx.aff
 .fi
 
+.SH "Conversion of aspell dictionaries"
+Aspell dictionaries can be easily converted into hunspell. Conversion steps:
+
+\fBdictionary (xx.cwl -> xx.wl):\fR
+
+.nf
+preunzip xx.cwl
+wc -l < xx.wl > xx.dic
+cat xx.wl >> xx.dic
+.fi
+
+\fBaffix file\fR
+
+If the affix file exists, copy it:
+.nf
+cp xx_affix.dat xx.aff
+.fi
+If not, create it with the suitable character encoding (see xx.dat)
+.nf
+echo "SET ISO8859-x" > xx.aff
+.fi
+or
+.nf
+echo "SET UTF-8" > xx.aff
+.fi
+
+It's useful to add a TRY option with the characters of the dictionary with
+frequency order to set edit distance suggestions:
+.nf
+echo "TRY qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM" >>xx.aff
+.fi
+
 .SH "SEE ALSO"
 .B hunspell (1),
 .B ispell (1),