unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Codepage trouble: Terminus font, UTF-8 and cyrillic-translit input
@ 2011-10-02 17:59 Mart Zirnask
  0 siblings, 0 replies; only message in thread
From: Mart Zirnask @ 2011-10-02 17:59 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-02 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-02 17:59 Codepage trouble: Terminus font, UTF-8 and cyrillic-translit input Mart Zirnask

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