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

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

Emacs Foreign Language editing and printing.


From: Peter Andrew Hanson
Subject: Emacs Foreign Language editing and printing.
Date: Sat, 24 Feb 2001 11:23:18 -0500 (EST)

Hi,

I posted the following recently to address@hidden but I wasn't
sure if the people updating the documentation would also get a chance to
see it.  I don't know how helpful this would be to someone using a foreign
language daily but when one uses the language once a month or even once a
week I find it very helpful. 

I was wondering if something like the following information, on foreign
Language editing and printing, is available in any of the FAQs for Emacs
20.+, and/or will it still work for Emacs 21?

It would be very useful to have samples for all the languages available
with Emacs 20 and 21 thereby making it much easier for the novice wanting
to do foreign language.

I haven't seen anything like it in any of the Emacs books, which never
seem to show any useful shortcuts on foreign language editing and
printing.

The following relates to IU and uses some titles meaningful to me but they
can be changed very easily:

Please consider the following for submission to knowledge base. 

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

How do I create foreign language print, webpages, and email at IU? 

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


To do foreign language editing in emacs on the Davinci or Ships SGI
Clusters.

First insert the following in your .cshrc or .tcshrc file:

xset fp+ /usr/local/share/emacs/fonts
xset fp rehash
xset fp+ /usr/local/share/emacs/fonts/bdf
xset fp rehash

Second insert the following in your .emacs file (sample is for ChineseGB):

;;--------------------------------------------------------- ;;
  (autoload 'c2gbstrt "c2gbstrt"
    "Start Chinese Mandarin GB character environment.\n" t) 
;; 
;;
   (defun c2gbstrt ()
     (interactive)
     (progn
       (setq message-log-max 4)
       (setq ps-multibyte-buffer 'bdf-font)
 (setq bdf-directory-list '("/usr/local/share/emacs/fonts/bdf"))
       (setup-chinese-gb-environment)
       (set-language-environment 'Chinese-GB)
         (set-terminal-coding-system 'euc-china-unix)
;; The following line is commented out . . .
;; (set-buffer-process-coding-system 'euc-china-unix 'euc-china-unix)
         (set-buffer-file-coding-system 'euc-china-unix)
         (set-terminal-coding-system 'euc-china-unix)
         (set-keyboard-coding-system 'euc-china-unix)
         (set-input-method 'chinese-tonepy)
       (mule-diag))) 
;; 
;; 
;; end of c2gbstrt 
;;
;;---------------------------------------------------------


;; or (for ChineseBIG5):

;;--------------------------------------------------------- ;;
  (autoload 'c2b5strt "c2b5strt"
    "Start Chinese Mandarin Big5 character environment.\n" t) 
;; 
;;
   (defun c2b5strt ()
     (interactive)
     (progn
       (setq message-log-max 4)
       (setq ps-multibyte-buffer 'bdf-font)
 (setq bdf-directory-list '("/usr/local/share/emacs/fonts/bdf"))  
         (set-language-environment 'Chinese-BIG5)
         (set-terminal-coding-system 'chinese-big5-unix)
         (set-buffer-file-coding-system 'chinese-big5-unix)
         (set-keyboard-coding-system 'chinese-big5-unix)
         (set-input-method 'chinese-tonepy)
       (mule-diag))) 
;; 
;; 
;; end of c2b5strt 
;;
;;---------------------------------------------------------


Then start emacs with the following command:

emacs -fn fontset-standard --multibyte &

After emacs starts with the above command hit "escape key" then "X key" 
and enter c2gbstrt this would start emacs chineseGB or enter c2b5strt this
would start emacs chineseBIG5 and allow postscript printing of the Chinese
output.


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^










reply via email to

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