cjk-list
[Top][All Lists]
Advanced

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

Re: [cjk] Fwd: HELP with emacs 25.1 and cjk-enc.el


From: Bo-Yin Yang
Subject: Re: [cjk] Fwd: HELP with emacs 25.1 and cjk-enc.el
Date: Sun, 18 Dec 2016 08:52:36 +0800

Dear Hin-Tak,

I should also report confirmation that compiling everything in unicode works.
I.e. if I convert everything into unicode and use a macro like this

address@hidden ~]$ more /usr/local/bin/ucjklatex
#!/bin/sh
export LC_CTYPE=zh_TW.utf8
f=`echo $1 | sed -e 's|\(.*\)\.[^/]*$|\1|'`
echo "converting $1 to $f.cjk"
emacs -batch -l cjk-enc -f batch-force-cjk-write-file $f.tex 2> /dev/null
latex $f.cjk

then my example file compiles just fine.

the real fun part is that if I change the \CJKencfamily{Bg5}{kai}
into \CJKencfamily{Bg5}{song} the formatting changes correctly,

so the zh_TW.utf8 does tell emacs that this is zh_TW.

Bo-Yin

On Sun, Dec 18, 2016 at 8:19 AM, Bo-Yin Yang <address@hidden> wrote:
Dear Hin-Tak,

I think I mostly set LC_CTYPE and LC_CTYPE, when outside of emacs, I set Options -> Multilinguial Environment -> Set Language -> Chinese -> Big5
before I compile in emacs ... 

The following is my "cjklatex" batch file with macOS with an ancient port (emacs 24.4.1)

#!/bin/sh
export LANG=zh_TW.Big5
export LC_ALL=zh_TW.Big5
export LC_CTYPE=zh_TW.Big5

reply via email to

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