Spellingcontroleprogramma van Hunspell gebruiken
First of all, you should install hunspell and after that add Greek Dictionary
sudo apt install hunspell
Download en voeg Grieks woordenboek toe aan het woordenboek van Hunspell-woordenboeken
cp el_GR.dic el_GR.aff /usr/share/hunspell
Laten we Hunspell testen op de terminal:
hunspell -d el_GR
en typ dan een Grieks woord verkeerd in.
Secondly, it be required ispell and flycheck emacs' packages as also a bit configuration in init.el
Grieks en Engels toevoegen aan ispell local dictionary
(require 'ispell)
(add-to-list 'ispell-local-dictionary-alist '("greek-hunspell"
"[[:alpha:]]"
"[^[:alpha:]]"
"[']"
t
("-d" "el_GR"); Dictionary file name
nil
iso-8859-1))
(add-to-list 'ispell-local-dictionary-alist '("english-hunspell"
"[[:alpha:]]"
"[^[:alpha:]]"
"[']"
t
("-d" "en_US")
nil
iso-8859-1))
(setq ispell-program-name "hunspell" ; Use hunspell to correct mistakes
ispell-dictionary "english-hunspell") ; Default dictionary to use
Definieer een functie voor het schakelen tussen woordenboeken
(defun fd-switch-dictionary()
"Switch greek and english dictionaries."
(interactive)
(let* ((dict ispell-current-dictionary)
(new (if (string= dict "greek-hunspell") "english-hunspell"
"greek-hunspell")))
(ispell-change-dictionary new)
(message "Switched dictionary from %s to %s" dict new)))
(global-set-key (kbd "") 'fd-switch-dictionary)
Open een tekstbestand in emacs gebruik F8 om van woordenboek te veranderen en activeer vervolgens de flyspell minor-modus
M-x flyspell-modus
Ik hoop dat het helpt.