help-gnu-emacs
[Top][All Lists]
Advanced

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

Codepage trouble: Terminus font, UTF-8 and cyrillic-translit input


From: Mart Zirnask
Subject: Codepage trouble: Terminus font, UTF-8 and cyrillic-translit input
Date: Sun, 2 Oct 2011 20:59:03 +0300

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 via email to

[Prev in Thread] Current Thread [Next in Thread]