Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
module:slyedit [2019/05/24 20:42] – [SlyEdit configuration file] nightfox | module:slyedit [2019/05/24 23:29] – Added information about the spell checker & dictionaries nightfox |
---|
| 1.18 | 1.31 | | | 1.18 | 1.31 | |
| |
| \\ |
| ===== Spell checker and dictionaries ===== |
| Since version 1.64, SlyEdit has a spell check feature. Spell check can be started by the user with the Ctrl-R hotkey, or by the Edit > Spell Checker option in the DCT-style ESC menu (only available when in DCT mode). For spell check, SlyEdit will check each word to see if it exists in the configured dictionary/dictionaries, and if not, it will prompt the user for a corrected version of the word. The sysop can configure one or multiple dictionaries in SlyEdit.cfg with the dictionaryFilenames option. Dictionary files need to be in the format dictionary_<languageName>.txt, where <languageName> is the name of the language. Also, ideally, the language names should follow standard language tags, as in "en-us" for English (US), etc. See these web pages for more information: |
| https://en.wikipedia.org/wiki/Language_localisation |
| http://www.lingoes.net/en/translator/langcode.htm |
| Also, the dictionary filenames will be parsed and the language name will be used in the menu of dictionaries in the user options - The user is able to enable/disable the configured dictionaries for their own use for the spell checker. |
| |
| For the dictionaryFilenames option in SlyEdit.cfg, you can specify a comma-separated list of dictionary filenames. The dictionary filenames are in the format dictionary_<languageName>.txt, where <language> is the language name. In this list, the filenames can be in that format, or just <languageName>.txt, or just <languageName>. You can leave the setting blank to use all dictionary files that exist on the system. |
| |
| SlyEdit will search for the dictionary files in the following directories, in this order: |
| - sbbs/mods |
| - sbbs/ctrl |
| - SlyEdit's own directory |
| |
| Dictionary files must be sorted in order for word matching to work properly (SlyEdit uses a binary search for quick word matching, which requires the words to be sorted). |
| |
===== See Also ===== | ===== See Also ===== |