From: Ivan Zakharyaschev <imz@linux.ru.net> To: sisyphus@altlinux.ru Subject: Re: [sisyphus] GNU/Emacs , баги или фичи ? Date: Tue, 12 Feb 2002 23:30:34 +0300 (MSK) Message-ID: <Pine.LNX.4.43L.0202122313460.26274-100000@arrakis.zephyrous> (raw) In-Reply-To: <20020123143833.GK19957@sam-solutions.net> On Wed, 23 Jan 2002, Alexander Bokovoy wrote: > И еще для Emacs -- неполноценная, но зато работающая поддержка > CP1251: Спасибо, определения языковых окружений наподобие этого я добавил в Emacs: основанные на кодировках cp* для трех языков. Еще благодаря маленькому хаку в них можно переключаться, не делая предварительно (codepage-setup ...). > (codepage-setup 1251) > (define-coding-system-alias 'windows-1251 'cp1251) > (set-language-info-alist > "Cyrillic-CP1251" `((charset cyrillic-iso8859-5) > (coding-system cp1251) > (coding-priority cp1251) > (input-method . "cyrillic-jcuken") > (features cyril-util) > (unibyte-display . cp1251) > (sample-text . "Russian (^[,L@caaZXY^[(B) > ^[,L7T`PRabRcYbU^[(B!") > (documentation . "Support for Cyrillic CP1251.")) > '("Cyrillic")) > (set-language-environment "Cyrillic-CP1251") > (set-terminal-coding-system 'cp1251) > (set-keyboard-coding-system 'cp1251) Это все понятно и записано в нужные конфиги. Но возникает теоретический вопрос: так ли необходимо указывать keyboard-coding-system, не может ли Emacs напрямую получать от XFree информацию о вводимых символах не в виде одного байта (про кодировку которых надо знать), а как четкое определение символа в большом наборе типа Unicode: cyrillic ya (ведь с таким представлением работает X)? > Если еще правильно описать cyrillic-cp1251 для > set-language-info-alist, > как это уже сделано для cyrillic-iso88595-5, то появится возможность > работать с 1251 напрямую, исключая использование ISO 8859-5. Тогда > заработает украинская "г с чубом". В одной ветке CVS GNU Emacs что-то делается для определения cp1251 по-другому. Best regards, Ivan Z.
next prev parent reply other threads:[~2002-02-12 20:30 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-01-22 22:13 Dimitri Schlecht 2002-01-23 12:52 ` Ivan Zakharyaschev 2002-01-23 14:38 ` Alexander Bokovoy 2002-02-12 20:30 ` Ivan Zakharyaschev [this message] 2002-02-13 3:35 ` Mikhail Yakshin 2002-02-13 9:44 ` Alexander Bokovoy 2002-01-23 20:26 ` Dimitri Schlecht
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=Pine.LNX.4.43L.0202122313460.26274-100000@arrakis.zephyrous \ --to=imz@linux.ru.net \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git