From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mart Zirnask Newsgroups: gmane.emacs.help Subject: Codepage trouble: Terminus font, UTF-8 and cyrillic-translit input Date: Sun, 2 Oct 2011 20:59:03 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1317578360 23901 80.91.229.12 (2 Oct 2011 17:59:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2011 17:59:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 02 19:59:16 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RAQJj-0002eL-O9 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Oct 2011 19:59:11 +0200 Original-Received: from localhost ([::1]:33605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAQJj-00065h-2H for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Oct 2011 13:59:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAQJe-00065a-Hn for help-gnu-emacs@gnu.org; Sun, 02 Oct 2011 13:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAQJd-00022r-Fd for help-gnu-emacs@gnu.org; Sun, 02 Oct 2011 13:59:06 -0400 Original-Received: from mail-pz0-f47.google.com ([209.85.210.47]:62976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAQJd-00022b-B0 for help-gnu-emacs@gnu.org; Sun, 02 Oct 2011 13:59:05 -0400 Original-Received: by pzk4 with SMTP id 4so10232068pzk.6 for ; Sun, 02 Oct 2011 10:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=82O7HkIAuX1byPCACko9tV8ADZpw4EnafYbp8DnyKxE=; b=RhvSVpi5qgO3WQEC31JJKvmXV+ktK0up9g8cY+h39z+ZopA3aNqMXtJytr+8m9asyj kv2THr1mqvbXc81tRiP7329SgR5lXQFB7QwzMKAizJ7Vj5O83WFAkfhQjk9/udXkT0A0 EwT50Xj30QqLPt1YCe3DQltLRtiHr/EztFHVQ= Original-Received: by 10.68.31.199 with SMTP id c7mr36787261pbi.73.1317578343837; Sun, 02 Oct 2011 10:59:03 -0700 (PDT) Original-Received: by 10.68.57.5 with HTTP; Sun, 2 Oct 2011 10:59:03 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.47 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82400 Archived-At: 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: --------- ---------- (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) --------- ---------- 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