* Re: How to input chinese characters with `scim'?
2008-04-26 21:07 ` Rodolfo Medina
@ 2008-04-26 21:02 ` Eli Zaretskii
[not found] ` <mailman.10849.1209243765.18990.help-gnu-emacs@gnu.org>
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2008-04-26 21:02 UTC (permalink / raw)
To: help-gnu-emacs
> From: Rodolfo Medina <rodolfo.medina@gmail.com>
> Date: Sat, 26 Apr 2008 22:07:32 +0100
>
> With `chinese-py' input method I can input simplified Chinese characters;
> instead with `chinese-py-b5' there are only white squares. What am I missing?
> In my .emacs I put the following stuff:
>
> (create-fontset-from-fontset-spec "-isas-fangsong
> ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0" t)
I thought that chinese-py-b5 produced Big5 characters, whereas the
above font specification uses GB2312 characters. Doesn't that explain
why you don't see the characters? Or am I mistaken?
If you go to one of the empty boxes and type "C-u C-x =", what does
Emacs tell you about the character it cannot display?
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <mailman.10849.1209243765.18990.help-gnu-emacs@gnu.org>]
* How to input traditional chinese characters? (was: How to input chinese characters with `scim'?)
[not found] ` <mailman.10849.1209243765.18990.help-gnu-emacs@gnu.org>
@ 2008-04-26 23:04 ` Rodolfo Medina
2008-04-27 3:10 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Rodolfo Medina @ 2008-04-26 23:04 UTC (permalink / raw)
To: help-gnu-emacs
Rodolfo Medina <rodolfo.medina@gmail.com> wrote:
>> With `chinese-py' input method I can input simplified Chinese characters;
>> instead with `chinese-py-b5' there are only white squares. What am I
>> missing?
Eli Zaretskii <eliz@gnu.org> writes:
> If you go to one of the empty boxes and type "C-u C-x =", what does
> Emacs tell you about the character it cannot display?
This is Emacs response:
character: 中 (152420, #o451544, #x25364, U+4E2D)
charset: chinese-big5-1
(Frequently used part (A141-C67F) of Big5 (Chinese traditional).)
code point: #x26 #x64
syntax: w which means: word
category: C:Chinese (Han) characters of 2-byte character sets c:Chinese
|:While filling, we can break a line at this character.
to input: type "zhong1" or "zhong4" with chinese-py-b5
buffer code: #x98 #xA6 #xE4
file code: #xE4 #xB8 #xAD (encoded by coding system mule-utf-8)
display: no font available
There are text properties here:
fontified t
. What do you suggest? Certainly something important must be missing.
Thanks indeed!
Rodolfo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to input chinese characters with `scim'?
2008-04-26 21:07 ` Rodolfo Medina
2008-04-26 21:02 ` Eli Zaretskii
[not found] ` <mailman.10849.1209243765.18990.help-gnu-emacs@gnu.org>
@ 2008-05-02 15:41 ` Xah
2008-05-03 15:26 ` Rodolfo Medina
2008-05-12 12:12 ` [solved] Re: How to input chinese characters? Rodolfo Medina
3 siblings, 1 reply; 10+ messages in thread
From: Xah @ 2008-05-02 15:41 UTC (permalink / raw)
To: help-gnu-emacs
« on some chinese input and character display problems »
i type chinese occationally.
my encoding is set to utf-8, and i am able to use both chinese-py and
chinese-py-b5 as input systems, and see all characters correctly. (am
on mac os x)
btw, gb-2312 is rather obsolete, not sure if you are choosing it for a
reason. I don't think gb2313 include both simplified and traditional
chars.
you might try gb18030, which supercedes gb2312 and is just a superset,
and in fact is a variant of unicode, and includes both simplified and
trad chars. Wikipedia has details.
Xah
xah@xahlee.org
∑ http://xahlee.org/
☄
On Apr 26, 2:07 pm, Rodolfo Medina <rodolfo.med...@gmail.com> wrote:
> Rodolfo Medina <rodolfo.med...@gmail.com> writes:
> >> Is out there any Scim user? I want to input chinese characters with Emacs
> >> and
> >> Scim, but when I do `C-space' the scim bar does not appear at all. I have
> >> Debian Etch.
> Eli Zaretskii <e...@gnu.org> writes:
> > Any reason why the Chinese input methods that come with Emacs are not
> > good enough for your needs? Type "C-u C-\ chinese TAB TAB" (yes, TAB
> > twice), and you will be presented with a long list of input methods to
> > select from. Their advantage is that they will work on any system,
> > even if scim is not installed, and I bet the choice of methods is
> > larger than what you have with scim.
> Enno Schwass <ennoausber...@mac.com> writes:
>
> > I used scim for japanese input on ubuntu last year, but I returned to
> > the native emacs input method. It fits my needs perfect. Did you tried it?
>
> Thanks for your suggestion.
>
> With `chinese-py' input method I can input simplified Chinese characters;
> instead with `chinese-py-b5' there are only white squares. What am I missing?
> In my .emacs I put the following stuff:
>
> (create-fontset-from-fontset-spec "-isas-fangsong
> ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0" t)
>
> (set-language-environment "Chinese-GB")
> (set-selection-coding-system 'cn-gb-2312)
> (set-clipboard-coding-system 'cn-gb-2312)
> (set-keyboard-coding-system 'cn-gb-2312)
> (setq locale-coding-system 'cn-gb-2312)
> (set-terminal-coding-system 'chinese-iso-8bit)
> (setq default-input-method 'chinese-py-punct)
>
> . Thanks for further help!
> Rodolfo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to input chinese characters with `scim'?
2008-05-02 15:41 ` How to input chinese characters with `scim'? Xah
@ 2008-05-03 15:26 ` Rodolfo Medina
2008-05-04 4:44 ` Xah
0 siblings, 1 reply; 10+ messages in thread
From: Rodolfo Medina @ 2008-05-03 15:26 UTC (permalink / raw)
To: help-gnu-emacs
Xah <xahlee@gmail.com> writes:
> « on some chinese input and character display problems »
>
> i type chinese occationally.
>
> my encoding is set to utf-8, and i am able to use both chinese-py and
> chinese-py-b5 as input systems, and see all characters correctly. (am
> on mac os x)
Thanks.
Please, could you report your settings from your .emacs? Maybe with them I
will also be able to use both chinese-py and chinese-py-b5 as input systems,
and see all characters correctly, although I am on Gnu Linux Debian Etch.
Thanks indeed
Rodolfo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to input chinese characters with `scim'?
2008-05-03 15:26 ` Rodolfo Medina
@ 2008-05-04 4:44 ` Xah
0 siblings, 0 replies; 10+ messages in thread
From: Xah @ 2008-05-04 4:44 UTC (permalink / raw)
To: help-gnu-emacs
On May 3, 8:26 am, Rodolfo Medina <rodolfo.med...@gmail.com> wrote:
> Please, could you report your settings from your .emacs? Maybe with them I
> will also be able to use both chinese-py and chinese-py-b5 as input systems,
> and see all characters correctly, although I am on Gnu Linux Debian Etch.
I'm on a mac so my settings won't be much helpful to you... since the
font stuff is quite system dependent.
but here they are if you are curious:
'(current-language-environment "UTF-8")
(if (eq window-system 'mac) (require 'carbon-font))
(if (featurep 'carbon-emacs-package) (fixed-width-set-default-fontset
"-*-*-medium-r-normal--14-*-*-*-*-*-fontset-hirakaku_w6"))
In your problem, i think you just need to try to set your lang env to
gb18030, and make sure you have a unicode font set that has both
simplified and traditional chars. Then, try input system chinese-py
and chinese-py-b5. The former will let you type simplified, while the
latter traditional.
Then you can see if everything works.
Xah
xah@xahlee.org
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 10+ messages in thread
* [solved] Re: How to input chinese characters?
2008-04-26 21:07 ` Rodolfo Medina
` (2 preceding siblings ...)
2008-05-02 15:41 ` How to input chinese characters with `scim'? Xah
@ 2008-05-12 12:12 ` Rodolfo Medina
3 siblings, 0 replies; 10+ messages in thread
From: Rodolfo Medina @ 2008-05-12 12:12 UTC (permalink / raw)
To: help-gnu-emacs
Rodolfo Medina <rodolfo.medina@gmail.com> writes:
>>> Is out there any Scim user? I want to input chinese characters with Emacs
>>> and
>>> Scim, but when I do `C-space' the scim bar does not appear at all. I have
>>> Debian Etch.
Eli Zaretskii <eliz@gnu.org> writes:
>> Any reason why the Chinese input methods that come with Emacs are not
>> good enough for your needs? Type "C-u C-\ chinese TAB TAB" (yes, TAB
>> twice), and you will be presented with a long list of input methods to
>> select from. Their advantage is that they will work on any system,
>> even if scim is not installed, and I bet the choice of methods is
>> larger than what you have with scim.
Enno Schwass <ennoausberlin@mac.com> writes:
>> I used scim for japanese input on ubuntu last year, but I returned to
>> the native emacs input method. It fits my needs perfect. Did you tried it?
Rodolfo Medina <rodolfo.medina@gmail.com> writes:
> Thanks for your suggestion.
>
> With `chinese-py' input method I can input simplified Chinese characters;
> instead with `chinese-py-b5' there are only white squares. What am I missing?
See report at:
http://forums.debian.net/viewtopic.php?p=109915#109915
^ permalink raw reply [flat|nested] 10+ messages in thread