Documentation/Source/eric5.QScintilla.SpellChecker.html

changeset 945
8cd4d08fa9f6
parent 440
69ace3e2dcf6
child 1228
7afaf2fca55b
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
147 <td>Public method to stop an incremental check.</td> 147 <td>Public method to stop an incremental check.</td>
148 </tr> 148 </tr>
149 </table> 149 </table>
150 <a NAME="SpellChecker.__init__" ID="SpellChecker.__init__"></a> 150 <a NAME="SpellChecker.__init__" ID="SpellChecker.__init__"></a>
151 <h4>SpellChecker (Constructor)</h4> 151 <h4>SpellChecker (Constructor)</h4>
152 <b>SpellChecker</b>(<i>editor, indicator, defaultLanguage = None, checkRegion = None</i>) 152 <b>SpellChecker</b>(<i>editor, indicator, defaultLanguage=None, checkRegion=None</i>)
153 <p> 153 <p>
154 Constructor 154 Constructor
155 </p><dl> 155 </p><dl>
156 <dt><i>editor</i></dt> 156 <dt><i>editor</i></dt>
157 <dd> 157 <dd>
219 <dd> 219 <dd>
220 self 220 self
221 </dd> 221 </dd>
222 </dl><a NAME="SpellChecker._getDict" ID="SpellChecker._getDict"></a> 222 </dl><a NAME="SpellChecker._getDict" ID="SpellChecker._getDict"></a>
223 <h4>SpellChecker._getDict</h4> 223 <h4>SpellChecker._getDict</h4>
224 <b>_getDict</b>(<i>lang, pwl = "", pel = ""</i>) 224 <b>_getDict</b>(<i>lang, pwl="", pel=""</i>)
225 <p> 225 <p>
226 Protected classmethod to get a new dictionary. 226 Protected classmethod to get a new dictionary.
227 </p><dl> 227 </p><dl>
228 <dt><i>lang</i></dt> 228 <dt><i>lang</i></dt>
229 <dd> 229 <dd>
241 <dd> 241 <dd>
242 reference to the dictionary (enchant.Dict) 242 reference to the dictionary (enchant.Dict)
243 </dd> 243 </dd>
244 </dl><a NAME="SpellChecker.add" ID="SpellChecker.add"></a> 244 </dl><a NAME="SpellChecker.add" ID="SpellChecker.add"></a>
245 <h4>SpellChecker.add</h4> 245 <h4>SpellChecker.add</h4>
246 <b>add</b>(<i>word = None</i>) 246 <b>add</b>(<i>word=None</i>)
247 <p> 247 <p>
248 Public method to add a word to the personal word list. 248 Public method to add a word to the personal word list.
249 </p><dl> 249 </p><dl>
250 <dt><i>word</i></dt> 250 <dt><i>word</i></dt>
251 <dd> 251 <dd>
284 <b>checkSelection</b>(<i></i>) 284 <b>checkSelection</b>(<i></i>)
285 <p> 285 <p>
286 Private method to check the current selection. 286 Private method to check the current selection.
287 </p><a NAME="SpellChecker.checkWord" ID="SpellChecker.checkWord"></a> 287 </p><a NAME="SpellChecker.checkWord" ID="SpellChecker.checkWord"></a>
288 <h4>SpellChecker.checkWord</h4> 288 <h4>SpellChecker.checkWord</h4>
289 <b>checkWord</b>(<i>pos, atEnd = False</i>) 289 <b>checkWord</b>(<i>pos, atEnd=False</i>)
290 <p> 290 <p>
291 Public method to check the word at position pos. 291 Public method to check the word at position pos.
292 </p><dl> 292 </p><dl>
293 <dt><i>pos</i></dt> 293 <dt><i>pos</i></dt>
294 <dd> 294 <dd>
367 <dd> 367 <dd>
368 list of suggestions (list of strings) 368 list of suggestions (list of strings)
369 </dd> 369 </dd>
370 </dl><a NAME="SpellChecker.ignoreAlways" ID="SpellChecker.ignoreAlways"></a> 370 </dl><a NAME="SpellChecker.ignoreAlways" ID="SpellChecker.ignoreAlways"></a>
371 <h4>SpellChecker.ignoreAlways</h4> 371 <h4>SpellChecker.ignoreAlways</h4>
372 <b>ignoreAlways</b>(<i>word = None</i>) 372 <b>ignoreAlways</b>(<i>word=None</i>)
373 <p> 373 <p>
374 Public method to tell the checker, to always ignore the given word 374 Public method to tell the checker, to always ignore the given word
375 or the current word. 375 or the current word.
376 </p><dl> 376 </p><dl>
377 <dt><i>word</i></dt> 377 <dt><i>word</i></dt>
418 </dd> 418 </dd>
419 </dl><a NAME="SpellChecker.replace" ID="SpellChecker.replace"></a> 419 </dl><a NAME="SpellChecker.replace" ID="SpellChecker.replace"></a>
420 <h4>SpellChecker.replace</h4> 420 <h4>SpellChecker.replace</h4>
421 <b>replace</b>(<i>replacement</i>) 421 <b>replace</b>(<i>replacement</i>)
422 <p> 422 <p>
423 Public method to tell the checker to replace the current word with 423 Public method to tell the checker to replace the current word with
424 the replacement string. 424 the replacement string.
425 </p><dl> 425 </p><dl>
426 <dt><i>replacement</i></dt> 426 <dt><i>replacement</i></dt>
427 <dd> 427 <dd>
428 replacement string (string) 428 replacement string (string)
449 the language to be used as the default (string). 449 the language to be used as the default (string).
450 The string should be in language locale format (e.g. en_US, de). 450 The string should be in language locale format (e.g. en_US, de).
451 </dd> 451 </dd>
452 </dl><a NAME="SpellChecker.setLanguage" ID="SpellChecker.setLanguage"></a> 452 </dl><a NAME="SpellChecker.setLanguage" ID="SpellChecker.setLanguage"></a>
453 <h4>SpellChecker.setLanguage</h4> 453 <h4>SpellChecker.setLanguage</h4>
454 <b>setLanguage</b>(<i>language, pwl = "", pel = ""</i>) 454 <b>setLanguage</b>(<i>language, pwl="", pel=""</i>)
455 <p> 455 <p>
456 Public method to set the current language. 456 Public method to set the current language.
457 </p><dl> 457 </p><dl>
458 <dt><i>language</i></dt> 458 <dt><i>language</i></dt>
459 <dd> 459 <dd>

eric ide

mercurial