Yunon tilidagi imlo tekshiruvini yoqish

Emacs-da yunon tilida imlo tekshiruvini asl nusxani tekshirish tilini qanday qilib yoqishim mumkin va yunon va ingliz tillari orasida imlo tekshiruvini qanday o'zgartirish mumkin? (Mening tizim Ubuntu 14.04 64bit).

1
Siz qaysi spellchecking dasturidan foydalanayotganingizga (aspell yoki hunspell?) Bog'liqligiga ishonaman.
qo'shib qo'ydi muallif Yann Trevin, manba
ispell-program-name qiymatiga qarang ( (talab qilish uchun kerak bo'lishi mumkin, bu o'zgarmaydigan autoloaded bo'lishi kerak). Bundan tashqari, bu savol hunspell bilan bog'liq bo'lsa-da, amaliyoti biroz o'xshash bo'lishi kerak: unix.stackexchange.com/questions/86554/…
qo'shib qo'ydi muallif Yann Trevin, manba
Men aspell deb o'ylayman. Qanday qilib bilib olsam bo'ladi?
qo'shib qo'ydi muallif rekle, manba
Ispell xususiy lug'atini qanday o'zgartirish mumkin : stackoverflow.com/a/27551890/2112489
qo'shib qo'ydi muallif lawlist, manba

1 javoblar

Hunspell imlo tekshirish dasturidan foydalanish

First of all, you should install hunspell and after that add Greek Dictionary

sudo apt hunspellni o'rnatish

Hunspell lug'atlarining yo'llariga yunoncha lug'atlarni yuklab oling va qo'shing

cp el_GR.dic el_GR.aff /usr/share/hunspell

Hunspell-ni terminalda sinab ko'raylik: hunspell -d-el_GR va keyin yunoncha so'zni noto'g'ri yozing.

Secondly, it be required ispell and flycheck emacs' packages as also a bit configuration in init.el

Mahalliy lug'atlarni ispellashtirish uchun yunon va ingliz tillarini qo'shing

(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

Lug'atlarni almashtirish funksiyasini belgilang

(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)

Emacs-da matnli faylni F8-ilovasida oching va flyspell kichik rejimini yoqing

M-x flyspell-mode

Umid qilamanki bu yordam beradi.

1
qo'shib qo'ydi