From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: OSX terminal, system-wide Chinese input methods Date: Wed, 3 Dec 2008 19:25:57 +0100 Message-ID: <96191262-25D3-4584-8D3D-2936D10EC48A@Web.DE> References: <46c93daa-0998-4b69-ab6f-c48448d637d5@s9g2000prm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1228328811 28469 80.91.229.12 (3 Dec 2008 18:26:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2008 18:26:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: poppyer , =?UTF-8?Q?=E9=94=81=E4=BD=8F=E5=AD=90_Abrahamsen?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 03 19:27:53 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L7wRt-0000uS-5y for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 19:27:46 +0100 Original-Received: from localhost ([127.0.0.1]:41563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7wQh-0008Hx-RU for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 13:26:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7wQQ-0008Hs-PN for help-gnu-emacs@gnu.org; Wed, 03 Dec 2008 13:26:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7wQO-0008Hg-Cz for help-gnu-emacs@gnu.org; Wed, 03 Dec 2008 13:26:13 -0500 Original-Received: from [199.232.76.173] (port=44220 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7wQO-0008Hc-8S for help-gnu-emacs@gnu.org; Wed, 03 Dec 2008 13:26:12 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:59844) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7wQN-0006dc-LB for help-gnu-emacs@gnu.org; Wed, 03 Dec 2008 13:26:12 -0500 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 5469FF514A69; Wed, 3 Dec 2008 19:26:06 +0100 (CET) Original-Received: from [91.35.226.235] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1L7wQC-0007IN-00; Wed, 03 Dec 2008 19:26:00 +0100 In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/tmT5Ywy5w+PG2QjsxqLDe1fBGF3I1WBk5DRsW iQCR8v4Ra0x3hE2ozMUilSy/otFPu0IdRyqYgJIMmi/eIQFyo/ l3NHWjIvGG4XuLlDbMmg== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60346 Archived-At: Am 03.12.2008 um 16:55 schrieb poppyer: > if you set your LC_CTYPE/LANG correctly > to a chinese one, say zh_CN.UTF8. > It will be automatically loaded *before* system init And it's not necessary to set these two environment variables system-=20 wide, which might effect also other applications. On the command line =20= it's possible to type cautiously: env LANG=3D... LC_CTYPE=3D... [&] (``[&]=B4=B4 stands for optional parameter, i.e., when you end your =20 command with ``&=B4=B4 the programme will be sent into the background = and =20 the shell will be open for new input, but it's no must, and you can =20 correct this later when needed) If this seems to be too complicated you can also use a shell script. =20 In Mac OS X, to launch an application bundle, you could either: #!/bin/bash export LANG=3D... LC_CTYPE=3D... open /Applications/.app or #!/bin/bash env LANG=3D... LC_CTYPE=3D... open /Applications/.app The latter, i.e., the last line, can also be used on the command line =20= and you could also use it in AppleScript to launch a Carbon or a =20 Cocoa Emacs from a menu. -- Greetings Pete One cannot live by television, video games, top ten CDs, and dumb =20 movies alone. =96 Amiri Baraka, 1999