GNU bug report logs -
#68339
29.1; Emacs doesn't support Microsoft PinYin Input Method well
Previous Next
To reply to this bug, email your comments to 68339 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68339
; Package
emacs
.
(Tue, 09 Jan 2024 08:32:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gao Feng <pinacle2000 <at> msn.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 09 Jan 2024 08:32:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
To whom it may concerns,
Many of us are using Microsoft PinYin Input Method to input Chinese in Windows System. However, its font size in emacs is too small to be seen
while VIM doesn't have this issue.
With the help of emacser from Emacs China, it seems that the cause is that the im font size is fixed in emacs while VIM has code to deal with it (https://github.com/vim/vim/blob/124371c5a149a8c0c75c04b6c90ac11e71a0aa97/src/gui_w32.c#L5862-L5875).
You could check the attached screenshots, where the size of "ce'shi" is the issue. Please help check and fix it, thx!
All the best,
Feng
[Message part 2 (text/html, inline)]
[MSPY in Emacs.png (image/png, attachment)]
[MSPY in VIM.png (image/png, attachment)]
[MSPY in Emacs with different font sizes.png (image/png, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68339
; Package
emacs
.
(Tue, 09 Jan 2024 14:14:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 68339 <at> debbugs.gnu.org (full text, mbox):
> From: Gao Feng <pinacle2000 <at> msn.com>
> Date: Mon, 8 Jan 2024 23:54:18 +0000
>
> Many of us are using Microsoft PinYin Input Method to input Chinese in Windows System. However,
> its font size in emacs is too small to be seen while VIM doesn't have this issue.
>
> With the help of emacser from Emacs China, it seems that the cause is that the im font size is fixed in
> emacs while VIM has code to deal with it
> (https://github.com/vim/vim/blob/124371c5a149a8c0c75c04b6c90ac11e71a0aa97/src/gui_w32.c#L5862-L5875).
Maybe that Emacs user from China could also suggest a patch for Emacs
to fix this issue?
Po Lu, any comments or suggestions?
The Vim code uses ImmSetCompositionFont function to set the font. I
don't have a good idea how to choose a font for that function, but
perhaps we could use ImmGetCompositionFont to retrieve the font used
by default, and then change its height and call ImmSetCompositionFont?
I'm just stabbing in the dark, and I don't have a way of testing these
ideas anyway.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68339
; Package
emacs
.
(Wed, 10 Jan 2024 01:49:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 68339 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Maybe that Emacs user from China could also suggest a patch for Emacs
> to fix this issue?
>
> Po Lu, any comments or suggestions?
>
> The Vim code uses ImmSetCompositionFont function to set the font. I
> don't have a good idea how to choose a font for that function, but
> perhaps we could use ImmGetCompositionFont to retrieve the font used
> by default, and then change its height and call ImmSetCompositionFont?
>
> I'm just stabbing in the dark, and I don't have a way of testing these
> ideas anyway.
Is it impossible to search for any suitable font that approaches the
frame's font in size, as Emacs does on X in xic_create_xfontset?
There is one difference between composition text on X and on Windows:
the X input method, rather than Emacs, draws composition text onto the
window Emacs provides, and can choose not to respect Emacs's choice of
font. But this is not relevant here, I think.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68339
; Package
emacs
.
(Wed, 10 Jan 2024 13:48:04 GMT)
Full text and
rfc822 format available.
Message #14 received at 68339 <at> debbugs.gnu.org (full text, mbox):
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Gao Feng <pinacle2000 <at> msn.com>, 68339 <at> debbugs.gnu.org
> Date: Wed, 10 Jan 2024 09:48:26 +0800
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Maybe that Emacs user from China could also suggest a patch for Emacs
> > to fix this issue?
> >
> > Po Lu, any comments or suggestions?
> >
> > The Vim code uses ImmSetCompositionFont function to set the font. I
> > don't have a good idea how to choose a font for that function, but
> > perhaps we could use ImmGetCompositionFont to retrieve the font used
> > by default, and then change its height and call ImmSetCompositionFont?
> >
> > I'm just stabbing in the dark, and I don't have a way of testing these
> > ideas anyway.
>
> Is it impossible to search for any suitable font that approaches the
> frame's font in size, as Emacs does on X in xic_create_xfontset?
The w32 frame doesn't have that information, and I don't know how to
create it.
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Jan 2024 20:49:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 217 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.