From: Anton Zinoviev <anton@lml.bas.bg>
Subject: "Outer world" encoding for non-Latin1 language environments
Date: Wed, 27 Feb 2002 13:29:51 +0200 [thread overview]
Message-ID: <20020227132949.C18112@fmi.uni-sofia.bg> (raw)
Hi!
Even when users choose some non-Latin1 language environment Emacs
doesn't suppose that it's new default encoding is actually the
encoding of the X-clipboard, the console font, etc. This can be
easily changed in this way:
(set-language-info-alist
"Ukrainian" `((documentation . "\
Support for Ukrainian with KOI8-U coding system. If you prefer
UTF-8, please put in ~/.emacs the following line:
(prefer-coding-system 'utf-8)")
(charset ascii cyrillic-iso8859-5 mule-unicode-0100-24ff)
(sample-text . "here some Ukrainian tekst")
(setup-function . setup-koi8u-coding-system)
(exit-function . reset-coding-system)
(coding-system . (koi8-u utf-8))
(coding-priority . (koi8-u utf-8))
(nonascii-translation
. ,(get 'cyrillic-koi8u-nonascii-translation-table
'translation-table))
(input-method . "cyrillic-ukrainian")
(unibyte-display . cyrillic-koi8u)
(features cyril-util))
'("Cyrillic"))
Note the (setup-function . setup-koi8u-coding-system) and
(exit-function . reset-coding-system). They can be defined by
(features cyril-util) in this way:
(defun setup-koi8u-coding-system ()
(let ()
(set-keyboard-coding-system 'koi8-u)
(set-clipboard-coding-system 'koi8-u)
(set-terminal-coding-system 'koi8-u)))
(defun reset-coding-system ()
(let ()
(set-keyboard-coding-system 'latin-1)
(set-clipboard-coding-system nil)
(set-terminal-coding-system nil)))
Maybe someone will propose a better solution?
Regards, Anton Zinoviev
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2002-02-27 11:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-27 11:29 Anton Zinoviev [this message]
2002-02-27 11:10 ` "Outer world" encoding for non-Latin1 language environments Eli Zaretskii
2002-03-01 18:00 ` Anton Zinoviev
2002-03-01 18:23 ` Stefan Monnier
2002-03-01 19:57 ` Eli Zaretskii
2002-03-05 10:57 ` Anton Zinoviev
2002-03-05 17:28 ` Eli Zaretskii
2002-03-06 18:27 ` Anton Zinoviev
2002-03-06 19:22 ` Eli Zaretskii
2002-03-06 20:16 ` Anton Zinoviev
2002-03-07 6:02 ` Eli Zaretskii
2002-03-13 20:13 ` Anton Zinoviev
2002-03-15 7:09 ` Eli Zaretskii
2002-03-22 12:25 ` Eli Zaretskii
2002-03-01 1:28 ` Stefan Monnier
2002-03-01 7:36 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2002-02-27 11:46 Kenichi Handa
2002-02-27 12:11 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020227132949.C18112@fmi.uni-sofia.bg \
--to=anton@lml.bas.bg \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).