* how to make the width of a CJK character as two english letter?
@ 2007-12-19 8:24 Forrest
2007-12-20 3:56 ` Ivan Kanis
2007-12-20 4:45 ` William Xu
0 siblings, 2 replies; 3+ messages in thread
From: Forrest @ 2007-12-19 8:24 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 275 bytes --]
hi, i use Emacs23 as the editor in development, sometimes i use Chinese to
comment my code, i wander how i can set the width of a Chinese character as
two english letter?
i just want my code to be beautifully aligned. Thanks a lot!
Forrest Yu
--
Stupid is as stupid does.
[-- Attachment #1.2: Type: text/html, Size: 306 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to make the width of a CJK character as two english letter?
2007-12-19 8:24 how to make the width of a CJK character as two english letter? Forrest
@ 2007-12-20 3:56 ` Ivan Kanis
2007-12-20 4:45 ` William Xu
1 sibling, 0 replies; 3+ messages in thread
From: Ivan Kanis @ 2007-12-20 3:56 UTC (permalink / raw)
To: help-gnu-emacs
Forrest <forrest.yu@gmail.com> writes:
> hi, i use Emacs23 as the editor in development, sometimes i use Chinese to
> comment my code, i wander how i can set the width of a Chinese character as
> two english letter?
Use Markus Kuhn's fine font <http://www.cl.cam.ac.uk/~mgk25/>
I build my own bdf font so that it works on all OS.
Here's how I build the font:
https://kanis.fr/svn/trunk/font/
and that's my emacs font setup:
https://kanis.fr/svn/trunk/lisp/emacs.d/ivan-font.el
Hope it help,
--
Ivan
http://kanis.fr
"We have a firm commitment to NATO, we are a *part* of NATO. We have
a firm commitment to Europe. We are a *part* of Europe."
-- Vice President Dan Quayle
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to make the width of a CJK character as two english letter?
2007-12-19 8:24 how to make the width of a CJK character as two english letter? Forrest
2007-12-20 3:56 ` Ivan Kanis
@ 2007-12-20 4:45 ` William Xu
1 sibling, 0 replies; 3+ messages in thread
From: William Xu @ 2007-12-20 4:45 UTC (permalink / raw)
To: help-gnu-emacs
Forrest <forrest.yu@gmail.com> writes:
> hi, i use Emacs23 as the editor in development, sometimes i use Chinese
> to comment my code, i wander how i can set the width of a Chinese
> character as two english letter?
I think this should be the standard behaviour.
> i just want my code to be beautifully
> aligned.
The not "beautifully aligned" behaviour is probably because you have a
mix of chinese characters and alphabets, numbers, punctuations or other
single byte ascii characters.
--
William
http://williamxu.net9.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-20 4:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 8:24 how to make the width of a CJK character as two english letter? Forrest
2007-12-20 3:56 ` Ivan Kanis
2007-12-20 4:45 ` William Xu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.