From: Mart Zirnask <martzirnask@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Codepage trouble: Terminus font, UTF-8 and cyrillic-translit input
Date: Sun, 2 Oct 2011 20:59:03 +0300 [thread overview]
Message-ID: <CAHUAchy+NqZNd4SKjWZYs7ZtZzuxjN_ARxJJbnuG=viA4z=NVQ@mail.gmail.com> (raw)
Hi,
I love the cyrillic-translit input method. However, after I set
Terminus as my default font, the Russian characters appear in Arial
(or smth; in any case it's not Terminus). How do I fix this? Setting
the default font to UTF-8
("-outline-Terminus-normal-normal-normal-mono-16-*-*-*-c-*-iso10646-1")
doesn't help.
In order to switch between cyrillic-translit input and the "normal
mode", I use the following snippet:
--------- <code> ----------
(defun toggle-cyrillic-input-method ()
"toggle between Russian and no input method"
(interactive)
(if (string= current-input-method "cyrillic-translit")
(set-input-method nil))
(set-input-method "cyrillic-translit")))
(global-set-key [f9] 'toggle-cyrillic-input-method)
--------- </code> ----------
Now -- is there a way to make the snippet not only switch over to
cyrillic-translit but *also switch the codepage* when I press F9?
In other words, it should also toggle the font between
"-outline-Terminus-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1"
(Latin) and "-outline-Terminus-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-5"
(Russian). How could I accomplish this?
It's the only workaround I (as a non-programmer) could think of. Any
other ideas are welcome, too. Thanks!
Best,
Mart
reply other threads:[~2011-10-02 17:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAHUAchy+NqZNd4SKjWZYs7ZtZzuxjN_ARxJJbnuG=viA4z=NVQ@mail.gmail.com' \
--to=martzirnask@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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).