* fonts for Chinese charset
@ 2009-06-14 4:10 Eric Abrahamsen
0 siblings, 0 replies; 3+ messages in thread
From: Eric Abrahamsen @ 2009-06-14 4:10 UTC (permalink / raw
To: help-gnu-emacs
So rather than attempting to hijack the other utf char display thread,
I'll ask my question in a new one...
My issue, it turns out, is that without defining any font stuff
whatsoever, emacs interprets most of my Chinese characters as Japanese
(presumably the Chinese character which exist as kanji in Japanese).
My language environment and preferred coding system is utf-8, but
running C-u C-x = on a Chinese character shows it as charset japanese-
jisx0208, encoded by mule-utf-8. I recently set the default font to
Inconsolata, which resulted in more (about half) of the characters
being interpreted as a Chinese charset (chinese-gb2312), and also a
very different font being used for the "Japanese" and "Chinese"
characters. I thought this was where my problems started, in fact they
were existing problems highlighted by the use of obviously different
fonts.
Running C-h C RET and looking at the coding system priority list, it
starts off with mule-utf-8, and then there are a few japanese coding
systems further down (but no chinese). I thought if I used prefer-
coding-system to set the first priority to mule-utf-8 and the second
to gb2312 that might help, but it seems to have made no difference.
Presumably this is because charsets and coding systems are not the
same thing.
Is there anything I can do to help emacs recognize all Chinese
characters as Chinese? My end goal is just to get emacs to use the
same (Chinese) font for all Chinese characters. I'm using Carbon emacs
(based on 22.3.1) on a Mac...
Thanks!
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fonts for Chinese charset
[not found] <mailman.598.1244952657.2239.help-gnu-emacs@gnu.org>
@ 2009-06-14 7:08 ` Eric
2009-06-15 4:52 ` Eric
0 siblings, 1 reply; 3+ messages in thread
From: Eric @ 2009-06-14 7:08 UTC (permalink / raw
To: help-gnu-emacs
Nevermind! I compiled emacs 23 and all works well. All characters
report their character set as unicode (or unicode bmp for Chinese
chars) and while it's using a hideous Chinese font I'll bet I can
figure that one out on my own.
E
On Jun 14, 12:10 pm, Eric Abrahamsen <gir...@gmail.com> wrote:
> So rather than attempting to hijack the other utf char display thread,
> I'll ask my question in a new one...
>
> My issue, it turns out, is that without defining any font stuff
> whatsoever, emacs interprets most of my Chinese characters as Japanese
> (presumably the Chinese character which exist as kanji in Japanese).
> My language environment and preferred coding system is utf-8, but
> running C-u C-x = on a Chinese character shows it as charset japanese-
> jisx0208, encoded by mule-utf-8. I recently set the default font to
> Inconsolata, which resulted in more (about half) of the characters
> being interpreted as a Chinese charset (chinese-gb2312), and also a
> very different font being used for the "Japanese" and "Chinese"
> characters. I thought this was where my problems started, in fact they
> were existing problems highlighted by the use of obviously different
> fonts.
>
> Running C-h C RET and looking at the coding system priority list, it
> starts off with mule-utf-8, and then there are a few japanese coding
> systems further down (but no chinese). I thought if I used prefer-
> coding-system to set the first priority to mule-utf-8 and the second
> to gb2312 that might help, but it seems to have made no difference.
> Presumably this is because charsets and coding systems are not the
> same thing.
>
> Is there anything I can do to help emacs recognize all Chinese
> characters as Chinese? My end goal is just to get emacs to use the
> same (Chinese) font for all Chinese characters. I'm using Carbon emacs
> (based on 22.3.1) on a Mac...
>
> Thanks!
> Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fonts for Chinese charset
2009-06-14 7:08 ` fonts for Chinese charset Eric
@ 2009-06-15 4:52 ` Eric
0 siblings, 0 replies; 3+ messages in thread
From: Eric @ 2009-06-15 4:52 UTC (permalink / raw
To: help-gnu-emacs
On Jun 14, 3:08 pm, Eric <gir...@gmail.com> wrote:
> Nevermind! I compiled emacs 23 and all works well. All characters
> report their character set as unicode (or unicode bmp for Chinese
> chars) and while it's using a hideous Chinese font I'll bet I can
> figure that one out on my own.
And I did, eventually:
(set-fontset-font
(frame-parameter nil 'font) 'chinese-gb2312 '("STKaiti" . "unicode-
bmp"))
>
> E
>
> On Jun 14, 12:10 pm, Eric Abrahamsen <gir...@gmail.com> wrote:
>
>
>
> > So rather than attempting to hijack the other utf char display thread,
> > I'll ask my question in a new one...
>
> > My issue, it turns out, is that without defining any font stuff
> > whatsoever, emacs interprets most of my Chinese characters as Japanese
> > (presumably the Chinese character which exist as kanji in Japanese).
> > My language environment and preferred coding system is utf-8, but
> > running C-u C-x = on a Chinese character shows it as charset japanese-
> > jisx0208, encoded by mule-utf-8. I recently set the default font to
> > Inconsolata, which resulted in more (about half) of the characters
> > being interpreted as a Chinese charset (chinese-gb2312), and also a
> > very different font being used for the "Japanese" and "Chinese"
> > characters. I thought this was where my problems started, in fact they
> > were existing problems highlighted by the use of obviously different
> > fonts.
>
> > Running C-h C RET and looking at the coding system priority list, it
> > starts off with mule-utf-8, and then there are a few japanese coding
> > systems further down (but no chinese). I thought if I used prefer-
> > coding-system to set the first priority to mule-utf-8 and the second
> > to gb2312 that might help, but it seems to have made no difference.
> > Presumably this is because charsets and coding systems are not the
> > same thing.
>
> > Is there anything I can do to help emacs recognize all Chinese
> > characters as Chinese? My end goal is just to get emacs to use the
> > same (Chinese) font for all Chinese characters. I'm using Carbon emacs
> > (based on 22.3.1) on a Mac...
>
> > Thanks!
> > Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-15 4:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.598.1244952657.2239.help-gnu-emacs@gnu.org>
2009-06-14 7:08 ` fonts for Chinese charset Eric
2009-06-15 4:52 ` Eric
2009-06-14 4:10 Eric Abrahamsen
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.