User Tools

Site Tools


spell_checker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
spell_checker [2016/07/14 03:29] g00r00spell_checker [2020/01/04 17:58] – fixes to typos avon
Line 17: Line 17:
 ==== HunSpell Prerequisite ==== ==== HunSpell Prerequisite ====
  
-Mystic uses the Hunspell engine to assist in the capabilities described above.  Hunspell is the same engine used by many very well known products such as the OS X operating system, Open Office, FireFox, and Chrome to name a few.  Because of its wide usage, there are many existing dictionaries available for many different languages and dialects of languages.+Mystic uses the Hunspell engine to assist in the capabilities described above.  Hunspell is the same engine used by many very well known products such as macOS, Open Office, FireFox, and Chrome to name a few.  Because of its wide usage, there are many existing dictionaries available for many different languages and dialects of languages.
  
 If English is your native language, then you will easily find dictionaries for US, Canadian, UK, and Australian dialects of English.  The same holds true for many languages. If English is your native language, then you will easily find dictionaries for US, Canadian, UK, and Australian dialects of English.  The same holds true for many languages.
Line 23: Line 23:
 ==== Installing HunSpell ==== ==== Installing HunSpell ====
  
-In order for spell checking to enable, Hunspell must be installed and at least one dictionary must exist in Mystic's data directory.+In order for spell checking to enable, Hunspell must be installed and at least one dictionary must exist in Mystic's data directory.  This section covers the installation of the HunSpell library.
  
 Windows: Windows:
Line 34: Line 34:
  for the 64-bit version, Mystic will be looking for the libhunspell64.dll.  for the 64-bit version, Mystic will be looking for the libhunspell64.dll.
        
- Copy the apropriate .dll into the root Mystic directory or somewhere else+ Copy the appropriate .dll into the root Mystic directory or somewhere else
  in your Windows system that is configured in a way that will allow Mystic to  in your Windows system that is configured in a way that will allow Mystic to
  find it on startup.  find it on startup.
Line 40: Line 40:
 Linux: Linux:
  
- In Linux, Mystic looks for the existance of "libhunspell.so" somewhere in a+ In Linux, Mystic looks for the existence of "libhunspell.so" somewhere in a
  common library path.  For Ubuntu, this could already be installed by default  common library path.  For Ubuntu, this could already be installed by default
  and Mystic may work out of the box without any installation other than  and Mystic may work out of the box without any installation other than
Line 70: Line 70:
 Mac OSX: Mac OSX:
  
- OS X uses libhunspell itself, so every version of OS X comes with hunspell+ macOS uses libhunspell itself, so every version of macOS comes with hunspell
  already installed.  However, this is an older version of Hunspell (1.2.0)  already installed.  However, this is an older version of Hunspell (1.2.0)
  while the current versions are in the 1.4.X iterations.  while the current versions are in the 1.4.X iterations.
Line 90: Line 90:
        
  Regardless of if you've just installed Hunspell or you want to use the default  Regardless of if you've just installed Hunspell or you want to use the default
- OS X version, you'll need to locate where the Hunspell library is installed:+ macOS version, you'll need to locate where the Hunspell library is installed:
        
  sudo find /usr -name libhunspell*.dylib  sudo find /usr -name libhunspell*.dylib
Line 112: Line 112:
 After HunSpell is installed, other steps must be followed on the Mystic side to enable spell checking: After HunSpell is installed, other steps must be followed on the Mystic side to enable spell checking:
  
-Mystic's spell checker requires that dictionary files "dictionary.aff" and "dictionary.dic" exist in the DATA irectory.  These can be any valid ISPELL or HUNSPELL dictionary file of your chosen language.+Mystic's spell checker requires that dictionary files "dictionary.aff" and "dictionary.dic" exist in the DATA directory.  These can be any valid ISPELL or HUNSPELL dictionary file of your chosen language.
  
 These files determine the "primary" language and the language rules that will be applied to the spell checker. These files determine the "primary" language and the language rules that will be applied to the spell checker.
Line 122: Line 122:
  
 http://cgit.freedesktop.org/libreoffice/dictionaries/tree http://cgit.freedesktop.org/libreoffice/dictionaries/tree
 +
 http://hunspell.github.io http://hunspell.github.io
 +
 http://google.com http://google.com
   
 Remember, you only need a .dic and a .aff for the language and dialect you want to use, and only the .dic file for any secondary languages you may wish to use. Remember, you only need a .dic and a .aff for the language and dialect you want to use, and only the .dic file for any secondary languages you may wish to use.
  
-Once you have the .dic and .aff file of the primary language you want, then copy them into the DATA directory as "directory.aff" and "dictionary.dic" and you'll be ready to go.+Once you have the .dic and .aff file of the primary language you want, then copy them into the DATA directory as "dictionary.aff" and "dictionary.dic" and you'll be ready to go.
  
 There are some additional optional things to know about as well.  You probably want to copy the wordlist.txt included in the package into your DATA directory: There are some additional optional things to know about as well.  You probably want to copy the wordlist.txt included in the package into your DATA directory:
Line 135: Line 137:
 This file can exist in the DATA directory and it can contain words that will be added into the dictionary regardless of what dictionaries are being used. This file can exist in the DATA directory and it can contain words that will be added into the dictionary regardless of what dictionaries are being used.
  
-This file is helpful to prevent common BBS related acrynyms and the sort of words that would not normally be found in an official dictionary, and the package includes a WORDLIST.TXT already for you with some common terms.  This will continued to be built upon as new words are noticed.+This file is helpful to prevent common BBS related acronyms and the sort of words that would not normally be found in an official dictionary, and the package includes a WORDLIST.TXT already for you with some common terms.  This will continued to be built upon as new words are noticed.
  
 Blank lines are skipped and any line that begins with a semi-colon (;) will also be ignored, so that comments can be made in the file if desired. Blank lines are skipped and any line that begins with a semi-colon (;) will also be ignored, so that comments can be made in the file if desired.
Line 141: Line 143:
 === DICTLIST.TXT === === DICTLIST.TXT ===
  
-This optional file contains a list of secondary .dic files that will be loaded after the primary language.  This allows works from a different language to be included into the primary dictionaty and language rules.  For example, you may have a primary French dictionary, with an English secondary word list.+This optional file contains a list of secondary .dic files that will be loaded after the primary language.  This allows works from a different language to be included into the primary dictionary and language rules.  For example, you may have a primary French dictionary, with an English secondary word list.
  
 In this file, blank lines are ignored as well as any line which begins with a semi-colon (;).  If just a filename (ie french.dic) is referenced, Mystic will look in the DATA directory for the file, but a full directory name can be included here as well.  The "@ROOT@" code will be replaced with the root Mystic BBS if it is found, ie: "c:\mystic\", etc.  For example: In this file, blank lines are ignored as well as any line which begins with a semi-colon (;).  If just a filename (ie french.dic) is referenced, Mystic will look in the DATA directory for the file, but a full directory name can be included here as well.  The "@ROOT@" code will be replaced with the root Mystic BBS if it is found, ie: "c:\mystic\", etc.  For example:
Line 159: Line 161:
 === Suggestion Delay === === Suggestion Delay ===
  
-By default this is set to true, which causes Mystic to wait until the user does not type for around a half of a second before it will try to auto suggest words.  However, if you are on a faster system, you may prefer to remote the delay which causes Mystic to perform instant suggestions.+By default this is set to true, which causes Mystic to wait until the user does not type for around a half of a second before it will try to auto suggest words.  However, if you are on a faster system, you may prefer to remove the delay which will cause Mystic to perform instant suggestions.  Instant suggestions will require a much faster CPU.
  
 ==== TROUBLESHOOTING ==== ==== TROUBLESHOOTING ====
spell_checker.txt · Last modified: 2020/09/28 22:18 by g00r00

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki