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

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

Re: OSX terminal, system-wide Chinese input methods


From: Peter Dyballa
Subject: Re: OSX terminal, system-wide Chinese input methods
Date: Wed, 3 Dec 2008 19:25:57 +0100


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- wide, which might effect also other applications. On the command line it's possible to type cautiously:

        env LANG=... LC_CTYPE=... <some command> [&]

(``[&]´´ stands for optional parameter, i.e., when you end your command with ``&´´ the programme will be sent into the background and the shell will be open for new input, but it's no must, and you can correct this later when needed)

If this seems to be too complicated you can also use a shell script. In Mac OS X, to launch an application bundle, you could either:

        #!/bin/bash
        export LANG=... LC_CTYPE=...
        open /Applications/<name of application>.app

or

        #!/bin/bash
        env LANG=... LC_CTYPE=... open /Applications/<name of application>.app

The latter, i.e., the last line, can also be used on the command line and you could also use it in AppleScript to launch a Carbon or a Cocoa Emacs from a menu.

--
Greetings

  Pete

One cannot live by television, video games, top ten CDs, and dumb movies alone.
                                – Amiri Baraka, 1999







reply via email to

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