[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ispell в utf-8 буферах emacs



On Mon, Oct 16, 2006 at 06:05:01PM +0900, Yury Yuryev wrote:
> Привет всем.
> 
> Помогите, пожалуйста, настроить проверку русского ispell-ом в utf-8 буферах emacs-а.
> Система testing, срез примерно недельной давности.
> Emacs из пакета emacs21.
> 
> При попытке проверить русский говорит 
> Spell-checking done и ничего не выводится, не зависимо от того есть там ошибки или нет.
> 
> Английский текст проверяется (если сменить словарь на американский).
> 
> Все параметры emacs-а - по умолчанию, .emacs не было в домашней дирректории.
> 
> В документации пакета dictionaries-common нашел вот что:
> 
> Spell-checking utf-8 buffers
> ----------------------------
> Spell-checking utf-8 buffers should be internally handled by most {x}emacs
> if buffer-file-coding-system is set to the encoding instead to 'undecided'
> or equivalent without the need of having a specific utf-8 dictionary entry.
> Notably xemacs21-nomule does not support that. ispell.el will recode that
> UTF-8 to the encoding declared by the dictionary when sending strings and
> the other way back when receiving them. That should be transparent to the
> user, unless the original UTF-8 has characters that cannot be recoded to
> the single byte encoding, leading to misalignment errors (like in #205516).
> 
> However this is not available out-of-the-box for all encodings. If this is
> not working for you, please try installing package 'mule-ucs'. The drawback
> is that your emacs startup will become (much) slower. remember, this will
> not work for xemacs21-nomule.
> 
> Пробовал set-buffer-file-coding-system- ничего не изменилось.
> 
> После чего установил mule-ucs
> сделал .emacs 
> (un-define-debian)
> (set-language-environment "UTF-8")
> (prefer-coding-system 'utf-8-unix)
> 
> Проверки русского все равно нет.
> 
> Я проверил, из консоли ispell русский пороверяет если файл в koi8-r кодировке, 
> хотя и показывает какие-то кружочки вместо букв (вроде это так и должно быть) в utf-8 
> локале. Результат проверки я iconv-ом посмотрел.
> 
> На всякий случай информация о локале:
> yury@xieesdebian:~$ locale
> LANG=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
> 


Поробовал запустить emacs с ru_RU.koi8r локалью и все сразу на ура заработало.
Т.е. в ней emacs utf8 буфера проверяет с koi8r словарем.
Может кто знает почему все же в utf-8 локале у меня это не работает?

-- 
Sincerely yours,
Yury.



Reply to: