[ESS] Can ESS support Chinese?

ronggui ronggui.huang at gmail.com
Tue May 9 03:02:47 CEST 2006


I use Emacs 21.3 under windows.It supports Chinese well.

;;file of c:\.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)
 '(current-language-environment "Chinese-GB")
 '(default-input-method "chinese-py-punct"))
(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.
 )
;;
(set-language-environment 'Chinese-GB)
(set-keyboard-coding-system 'euc-cn)
(set-clipboard-coding-system 'euc-cn)
(set-terminal-coding-system 'euc-cn)
(set-buffer-file-coding-system 'euc-cn)
(set-selection-coding-system 'euc-cn)
(modify-coding-system-alist 'process "*" 'euc-cn)
(setq default-process-coding-system
            '(euc-cn . euc-cn))
(setq-default pathname-coding-system 'euc-cn)

;;fonts.
(set-default-font "-outline-新宋体-normal-r-normal-normal-14-*-96-96-c-*-gb2312")

;;ESS
(load "E:/Programs/emacs-21.3/ess-5.3.0/lisp/ess-site")
;;end of the file

The ess version is 5.3.0.


2006/5/9, A.J. Rossini <blindglobe at gmail.com>:
> Are you using a version of Emacs that supports Chinese?  And if so, which
> one?  (XEmacs + Mule?  Emacs?).  That would be the minimal requirement.  And
> which version of ESS?   There was some work in the last year fixing a few
> issues that cropped up with non-english language character encodings.
>
>
> On 5/8/06, ronggui <ronggui.huang at gmail.com> wrote:
> >
> Hi,I am new to this list.And I want to know if ESS can support Chinese.
> When I use ESS+R to draw plot with Chinese character as plot title,the
> Chinese character become unreadable things.My R command is:
> plot(1:10,main="some Chinese character")
>
>
> > if(!exists("baseenv", mode="function")) baseenv <- function() NULL
> options(STERM='iESS', editor='gnuclient.exe')
> > version
>                _
> platform       i386-pc-mingw32
> arch           i386
> os             mingw32
> system         i386, mingw32
> status
> major          2
> minor          3.0
> year           2006
> month          04
> day            24
> svn rev        37909
> language       R
> version.string Version 2.3.0 (2006-04-24)
>
> > Sys.getlocale()
> [1] "LC_COLLATE=Chinese_People's Republic of
> China.936;LC_CTYPE=Chinese_People's Republic of
> China.936;LC_MONETARY=Chinese_People's Republic of
> China.936;LC_NUMERIC=C;LC_TIME=Chinese_People's Republic of
> China.936"
>
> --
> 黄荣贵
> Deparment of Sociology
> Fudan University
>
>
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
>  https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
>
>
>
> --
> best,
> -tony
>
> blindglobe at gmail.com
> Muttenz, Switzerland.
> "Commit early,commit often, and commit in a repository from which we can
> easily
> roll-back your mistakes" (AJR, 4Jan05).
>


--
黄荣贵
Deparment of Sociology
Fudan University




More information about the ESS-help mailing list