Debian Codegraph @

spellcheck/README

raw
1 Spell Check Plugin
2 ==================
3
4 .. contents::
5
6
7 About
8 -----
9 This plugin checks the content of the current document in Geany with the spell
10 check library Enchant. You can also select a certain text passage, then the
11 plugin will only check the selected text. All lines with misspelled words
12 are highlighted with a red squiggly underline and the wrong words are printed
13 in the messages window at the bottom of Geany together with available
14 suggestions. For the plugin to work at all, you need to have the Enchant
15 library installed together with at least one backend (Aspell, Myspell,
16 Hunspell, ...).
17 The plugin's configure dialog lists all available languages/dictionaries
18 which can be used for the spell check.
19
20
21 Features
22 --------
23
24 * Check spelling while typing
25 * Highlight spelling mistakes
26 * Editor-menu integration
27
28
29 Usage
30 -----
31 Install the plugin (https://plugins.geany.org/install.html) then
32 load it in Geany's plugin manager. A new menu item in the Tools menu
33 will appear. Alternatively, you can assign a keyboard shortcut in
34 Geany's preferences dialog to perform a spell check.
35
36
37 Configuring custom dictionaries
38 -------------------------------
39 Especially on Windows, you might need to install the dictionaries (the files
40 containing the information for spell checking) manually.
41 First, you need to download the dictionary files for the
42 languages you want, e.g. from
43 https://cgit.freedesktop.org/libreoffice/dictionaries/tree/ or
44 https://addons.mozilla.org/en-US/firefox/language-tools/.
45 The downloaded archives should contain one or more .dic and .aff files.
46
47 Instructions:
48
49 1. Download the archive you want to use
50 2. The downloaded archive with extensions like .xpi or .oxt is actually a ZIP
51 archive, so extract it as usual (e.g. with 7-Zip or another ZIP
52 unpacker). Extract the contents into a folder of your choice,
53 e.g. `C:\\dictionaries`
54 3. If the extracted dictionary files contain hyphens ("-"), replace them
55 with underscores
56 4. Then open to the Spell Check plugin preferences dialog in Geany and
57 choose the folder you just created. You may need to restart Geany
58 and then the installed dictionaries should be available
59
60 Note: if you are using Enchant 2.0 or later (the library used by the SpellCheck
61 plugin), you need to move the dictionaries into a subfolder called "hunspell"
62 in the directory you created above. The directory to be configured in the
63 plugin's configuration dialog still is the directory above that folder.
64 To check which Enchant version you are using, check "Help->Debug Messages" in
65 Geany and find the appropriate log message telling about the Enchant version.
66
67 Example::
68
69 C:\
70 ├── dictionaries
71 │ └── hunspell
72 │ ├── ca_ES.aff
73 │ ├── ca_ES.dic
74 │ ├── cs.dic
75 │ ├── cs.dic
76 │ ├── de_DE_frami.aff
77 │ ├── de_DE_frami.dic
78 │ ├── en_GB.aff
79 │ └── en_GB.dic
80 └── ...
81
82 Then in the plugin configuration dialog set the dictionary for
83 dictionary files to: `C:\\dictionaries`.
84
85
86 Maintaining personal dictionaries
87 ---------------------------------
88 When you manually add words to your personal dictionary
89 (using the "Add <word> to Dictionary" menu item), those words are stored
90 in a personal dictionary per language.
91 If you want to add, modify or remove words from these dictionaries,
92 you need to open the dictionaries with an editor like Geany and edit them.
93 As far as we know, there is no graphical tool to edit those files. However,
94 they are plain text files with one word per line.
95
96 These files are usually located in:
97 `/home/<username>/.config/enchant/<LANG>.dic`.
98 The exact storage location might differ between operating systems.
99
100 Additional informationcan be found on https://github.com/AbiWord/enchant,
101 section "Sharing personal word lists between spell-checkers".
102
103
104 Known issues
105 ------------
106 * Spell checking with some languages like Hindi might be incorrect, i.e. some
107 words are incorrectly marked as correctly spelled or marked incorrectly
108 as misspelled.
109 * Crashes of Geany when loading the Spell Check plugin after it was unloaded.
110 This can happen when you are using a dictionary from the Zemberek provider
111 of Enchant (mostly Turkish dictionaries).
112 It can also happen when you tried to use a non-existing
113 dictionary and the Zemberek provider is installed on your system.
114 To avoid these crashes you have the following options:
115
116 * Do not load the plugin after it was unloaded, restart Geany first
117 * Do not use any of the dictionaries provided by the Zemberek provider
118 * Update your Enchant version at least to 1.4.3 (once it is released)
119 * Uninstall the Zemberek provider
120
121 Background:
122 These crashes are all related to the Zemberek provider in Enchant.
123 In version 1.4.2 and prior of Enchant, this provider/backend always
124 claimed to support any given invalid dictionary name and so it was
125 active and caused these crashes on load after unload of the plugin.
126 This provider is DBus-based and uses the GObject type
127 registration system which is not really capable of being unloaded and
128 loaded again.
129
130
131 Requirements
132 ------------
133
134 * GTK >= 2.8.0
135 * Geany >= 0.21
136
137
138 Ideas, questions, patches and bug reports
139 -----------------------------------------
140 Send it to me at enrico(dot)troeger(at)uvena(dot)de
141 or report them at https://github.com/geany/geany-plugins/issues.