+ -
当前位置:首页 → 问答吧 → DEBIAN/TESTING LOCALES ZH-UTF8 EMACS 不能显示中文,

DEBIAN/TESTING LOCALES ZH-UTF8 EMACS 不能显示中文,

时间:2006-02-27

来源:互联网

DEBIAN/TESTING LOCALES ZH-UTF8 EMACS 不能显示中文,
查了一些资料发现都是 针对 LOCALES GBK 的.
如何处理?
谢谢!!!!

作者: leeshasr   发布时间: 2006-02-27

You can install emacs-snapshot-unicode in sid

作者: zhangxudong   发布时间: 2006-02-27

代码:
apt-get install emacs-snapshot

作者: pluskid   发布时间: 2006-02-27

谢谢指点!!!

不过我没有用SID. 正在考虑.
我想 在 TESTING 的 LOCALES 设置上 调整一下.
因为 EMACS 主要用来 写 代码. 全部英文都行.
谁在这方面有经验?

附 LOCALES
lee@debian:~$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

作者: leeshasr   发布时间: 2006-02-28

我也是testing,utf-8环境,显示没问题。
就是不能用外加输入法输入中文,gnome的问题。
用emacs自带的输入法。

locale设定
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES=POSIX
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

安装的包
emacs-goodies-el install
emacs-wiki install
emacs21 install
emacs21-bin-common install
emacs21-common install
emacsen-common install

.emacs中的设定
代码:
(custom-set-variables
 ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
 ;; Your init file should contain only one such instance.
 '(case-fold-search t)
 '(completion-ignored-extensions (quote ("~" ".aux" ".a" ".bbl" ".blg" ".dvi" ".elc" ".hc" ".hi" ".mlc" ".o" ".toc")))
 '(current-language-environment "Chinese-GB")
 '(default-input-method "chinese-py")
 '(emacs-wiki-coding-map (quote ((utf-8 "utf-8") (chinese-iso-8bit "euc-cn"))))
 '(emacs-wiki-footer-date-format "%Y-%02m-%02d %02H:%02M:%02S")
 '(emacs-wiki-maintainer "mailto:[email protected]")
 '(emacs-wiki-mode-hook (quote (emacs-wiki-use-font-lock emacs-wiki-highlight-buffer footnote-mode)))
 '(emacs-wiki-publishing-transforms nil)
 '(font-lock-maximum-size 512000)
 '(font-lock-mode-hook nil)
 '(frame-title-format (quote ("emacs - " (buffer-file-name "%f" ("%b")))) t)
 '(global-font-lock-mode t nil (font-lock))
 '(load-home-init-file t t)
 '(resize-minibuffer-mode t t)
 '(save-place nil nil (saveplace))
 '(show-paren-mode t nil (paren))
 '(time-stamp-format "%:y-%02m-%02d %02H:%02M:%02S %U")
 '(tooltip-gud-tips-p t)
 '(tooltip-use-echo-area t)
 '(uniquify-buffer-name-style nil))
(custom-set-faces
 ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
 ;; Your init file should contain only one such instance.
 '(tooltip ((((class color)) (:background "lightyellow")))))


(custom-set-variables
 ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
 ;; Your init file should contain only one such instance.
 '(case-fold-search t)
 '(completion-ignored-extensions (quote ("~" ".aux" ".a" ".bbl" ".blg" ".dvi" ".elc" ".hc" ".hi" ".mlc" ".o" ".toc")))
 '(current-language-environment "Chinese-GB")
 '(default-input-method "chinese-py")
 '(emacs-wiki-coding-map (quote ((utf-8 "utf-8") (chinese-iso-8bit "euc-cn"))))
 '(emacs-wiki-footer-date-format "%Y-%02m-%02d %02H:%02M:%02S")
 '(emacs-wiki-maintainer "mailto:[email protected]")
 '(emacs-wiki-mode-hook (quote (emacs-wiki-use-font-lock emacs-wiki-highlight-buffer footnote-mode)))
 '(emacs-wiki-publishing-transforms nil)
 '(font-lock-maximum-size 512000)
 '(font-lock-mode-hook nil)
 '(frame-title-format (quote ("emacs - " (buffer-file-name "%f" ("%b")))) t)
 '(global-font-lock-mode t nil (font-lock))
 '(load-home-init-file t t)
 '(resize-minibuffer-mode t t)
 '(save-place nil nil (saveplace))
 '(show-paren-mode t nil (paren))
 '(time-stamp-format "%:y-%02m-%02d %02H:%02M:%02S %U")
 '(tooltip-gud-tips-p t)
 '(tooltip-use-echo-area t)
 '(uniquify-buffer-name-style nil))
(custom-set-faces
 ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
 ;; Your init file should contain only one such instance.
 '(tooltip ((((class color)) (:background "lightyellow")))))

作者: hjj   发布时间: 2006-02-28

谢谢建议!!!

我对照安装了 上述 包. 并且 在 ~/ 目录下 建了.emacs 文件.完全复制你的文件.
但是 仍然不能显示中文. 我分析是字体的的问题了. 我安装了MS 的 SIMSUN 用的也是 这玩艺.

继续探讨!!!

谢谢!!!1

作者: leeshasr   发布时间: 2006-02-28

你留个邮箱,我把我的整个配置文件发给你吧。
因为我还有其他的设定,时间久了,也不知道哪个是关于字体的了。

作者: hjj   发布时间: 2006-03-01

非常感谢!!!

[email protected]

作者: leeshasr   发布时间: 2006-03-01

老兄,给我也来一份,给这个苦恼很久,查考您试试!
[email protected]
thank you!

作者: liatler   发布时间: 2006-07-24

热门下载

更多