Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: third_party/hunspell/README

Issue 2544793003: [spellcheck] Updated Hunspell to 1.5.4 (Closed)
Patch Set: Updated patch with encoding change Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/hunspell/BUILD.gn ('k') | third_party/hunspell/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 About Hunspell 1 About Hunspell
2 -------------- 2 --------------
3 3
4 Hunspell is a spell checker and morphological analyzer library and program 4 Hunspell is a spell checker and morphological analyzer library and program
5 designed for languages with rich morphology and complex word compounding or 5 designed for languages with rich morphology and complex word compounding or
6 character encoding. Hunspell interfaces: Ispell-like terminal interface 6 character encoding. Hunspell interfaces: Ispell-like terminal interface
7 using Curses library, Ispell pipe interface, OpenOffice.org UNO module. 7 using Curses library, Ispell pipe interface, OpenOffice.org UNO module.
8 8
9 Hunspell's code base comes from the OpenOffice.org MySpell 9 Hunspell's code base comes from the OpenOffice.org MySpell
10 (http://lingucomponent.openoffice.org/MySpell-3.zip). See README.MYSPELL, 10 (http://lingucomponent.openoffice.org/MySpell-3.zip). See README.MYSPELL,
(...skipping 12 matching lines...) Expand all
23 - Support complex compoundings (for example, Hungarian and German) 23 - Support complex compoundings (for example, Hungarian and German)
24 24
25 - Support language specific features (for example, special casing of 25 - Support language specific features (for example, special casing of
26 Azeri and Turkish dotted i, or German sharp s) 26 Azeri and Turkish dotted i, or German sharp s)
27 27
28 - Handle conditional affixes, circumfixes, fogemorphemes, 28 - Handle conditional affixes, circumfixes, fogemorphemes,
29 forbidden words, pseudoroots and homonyms. 29 forbidden words, pseudoroots and homonyms.
30 30
31 - Free software (LGPL, GPL, MPL tri-license) 31 - Free software (LGPL, GPL, MPL tri-license)
32 32
33 Compiling on Unix/Linux 33 Compiling on Unix/Linux and others
34 ----------------------- 34 ----------------------------------
35 35
36 autoreconf -vfi
36 ./configure 37 ./configure
37 make 38 make
38 make install 39 make install» #if neccesary prefix with sudo
40 ldconfig» #not needed on windows, on linux sudo may be needed
39 41
40 For dictionary development, use the --with-warnings option of configure. 42 For dictionary development, use the --with-warnings option of configure.
41 43
42 For interactive user interface of Hunspell executable, use the --with-ui option. 44 For interactive user interface of Hunspell executable, use the --with-ui option.
43 45
44 The developer packages you need to compile Hunspell's interface: 46 The developer packages you need to compile Hunspell's interface:
45 47
46 glibc-devel 48 autoconf automake autopoint libtool g++
47 49
48 optional developer packages: 50 optional developer packages:
49 51
50 ncurses (need for --with-ui) 52 ncurses (need for --with-ui), eg. libncursesw5 for UTF-8
51 readline (for fancy input line editing, 53 readline (for fancy input line editing,
52 configure parameter: --with-readline) 54 configure parameter: --with-readline)
53 locale and gettext (but you can also use the 55 locale and gettext (but you can also use the
54 --with-included-gettext configure parameter) 56 --with-included-gettext configure parameter)
55 57
56 Hunspell distribution uses new Autoconf (2.59) and Automake (1.9).
57
58 Compiling on Windows 58 Compiling on Windows
59 -------------------- 59 --------------------
60 60
61 1. Compiling with Windows SDK 61 1. Compiling with Visual Studio
62 62
63 Download the free Windows SDK of Microsoft, open a command prompt 63 Download the free Visual Studio Community Edition of Microsoft, open the
64 window and cd into hunspell/src/win_api. Use the following command 64 file hunspell/src/win_api/Hunspell.sln. Select the appropirate build (Debug,
65 to compile hunspell: 65 Release, Win32, x64) and press Build.
66 66
67 vcbuild 67 2. Compiling with Mingw64 and MSYS2
68 68
69 2. Compiling in Cygwin environment 69 Download Msys2, update everything and install the following packages:
70
71 pacman -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-libtool
72
73 Open Mingw-w64 Win64 prompt and compile the same way as on Linux, see above.
74
75 3. Compiling in Cygwin environment
70 76
71 Download and install Cygwin environment for Windows with the following 77 Download and install Cygwin environment for Windows with the following
72 extra packages: 78 extra packages:
73 79
74 make 80 make
81 automake
82 autoconf
75 gcc-g++ development package 83 gcc-g++ development package
76 mingw development package (for cygwin.dll free native Windows compilation)
77 ncurses, readline (for user interface) 84 ncurses, readline (for user interface)
78 iconv (character conversion) 85 iconv (character conversion)
79 86
80 2.1. Cygwin1.dll dependent compiling 87 3.1. Cygwin1.dll dependent compiling
81 88
82 Open a Cygwin shell, cd into the hunspell root directory: 89 Same as on Linux.
83
84 ./configure
85 make
86 make install
87
88 For dictionary development, use the --with-warnings option of configure.
89
90 For interactive user interface of Hunspell executable, use the --with-ui option.
91
92 readline configure parameter: --with-readline (for fancy input line editing)
93
94 1.2. Cygwin1.dll free compiling
95
96 Open a Cygwin shell, cd into the hunspell/src/win_api and
97
98 make -f Makefile.cygwin
99 90
100 Testing 91 Testing
101 ------- 92 -------
102 93
103 Testing Hunspell (see tests in tests/ subdirectory): 94 Testing Hunspell (see tests in tests/ subdirectory):
104 95
105 make check 96 make check
106 97
107 or with Valgrind debugger: 98 or with Valgrind debugger:
108 99
109 make check 100 make check
110 VALGRIND=[Valgrind_tool] make check 101 VALGRIND=[Valgrind_tool] make check
111 102
112 For example: 103 For example:
113 104
114 make check 105 make check
115 VALGRIND=memcheck make check 106 VALGRIND=memcheck make check
116 107
117 Documentation 108 Documentation
118 ------------- 109 -------------
119 110
120 features and dictionary format: 111 features and dictionary format:
121 man 4 hunspell 112 man 5 hunspell
122 113
123 man hunspell 114 man hunspell
124 hunspell -h 115 hunspell -h
125 http://hunspell.sourceforge.net 116 http://hunspell.github.io/
126 117
127 Usage 118 Usage
128 ----- 119 -----
129 120
130 The src/tools dictionary contains ten executables after compiling 121 The src/tools dictionary contains ten executables after compiling
131 (or some of them are in the src/win_api): 122 (or some of them are in the src/win_api):
132 123
133 affixcompress: dictionary generation from large (millions of words) vocabularies 124 affixcompress: dictionary generation from large (millions of words) vocabularies
134 analyze: example of spell checking, stemming and morphological analysis 125 analyze: example of spell checking, stemming and morphological analysis
135 chmorph: example of automatic morphological generation and conversion 126 chmorph: example of automatic morphological generation and conversion
(...skipping 26 matching lines...) Expand all
162 Including in your program: 153 Including in your program:
163 #include <hunspell.hxx> 154 #include <hunspell.hxx>
164 155
165 Linking with Hunspell static library: 156 Linking with Hunspell static library:
166 g++ -lhunspell example.cxx 157 g++ -lhunspell example.cxx
167 158
168 Dictionaries 159 Dictionaries
169 ------------ 160 ------------
170 161
171 Myspell & Hunspell dictionaries: 162 Myspell & Hunspell dictionaries:
163 http://extensions.libreoffice.org
164 http://cgit.freedesktop.org/libreoffice/dictionaries
165 http://extensions.openoffice.org
172 http://wiki.services.openoffice.org/wiki/Dictionaries 166 http://wiki.services.openoffice.org/wiki/Dictionaries
173 167
174 Aspell dictionaries (need some conversion): 168 Aspell dictionaries (need some conversion):
175 ftp://ftp.gnu.org/gnu/aspell/dict 169 ftp://ftp.gnu.org/gnu/aspell/dict
176 Conversion steps: see relevant feature request at http://hunspell.sf.net. 170 Conversion steps: see relevant feature request at http://hunspell.github.io/ .
177 171
178 László Németh 172 László Németh
179 nemeth at OOo 173 nemeth at numbertext org
OLDNEW
« no previous file with comments | « third_party/hunspell/BUILD.gn ('k') | third_party/hunspell/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698