Emacs 代码页问题:Terminus 字体、utf-8 和西里尔文转译输入
我喜欢 Emacs 的 cyrillic-translit
输入法。然而,当我将美妙的 Terminus 设置为我的默认字体后,俄语字符出现在 Arial 或其他字体中(无论如何,它不是终点站)。
我该如何解决这个问题?将默认字体设置为 UTF-8(Emacs 等效 "-outline-Terminus-normal-normal-normal-mono-16-*-*-*-c-*-iso10646-1"
)不会没有帮助。我想这可能意味着 Terminus 缺乏像样的 UTF-8 支持?
无论如何,我使用以下代码片段在西里尔文翻译输入法和“正常”模式之间切换:
(defun toggle-cyrillic-input-method ()
"toggle between French 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)
现在 - 有没有办法使代码片段不仅切换到西里尔文翻译还可以在按 F9 时切换代码页吗?
换句话说,如何让它在 "-outline-Terminus-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1"
(拉丁语)和 "-outline-Terminus-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-5"
(俄语)?
这是我(作为非程序员)能想到的唯一解决方法。也欢迎任何其他想法。谢谢!
I love the cyrillic-translit
input method for Emacs. However, after I set the wonderful Terminus as my default font, the Russian characters appear in Arial or something (in any case it's not Terminus).
How do I fix this? Setting the default font to UTF-8 (Emacs equivalent "-outline-Terminus-normal-normal-normal-mono-16-*-*-*-c-*-iso10646-1"
) doesn't help. I guess this possibly means that Terminus lacks decent UTF-8 support?
Anyhow, I'm using the following snippet for switching between cyrillic-translit input method and the "normal" mode:
(defun toggle-cyrillic-input-method ()
"toggle between French 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, how do I make it 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)?
It's the only workaround I (as a non-programmer) could think of. Any other ideas are welcome, too. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论