GNU bug report logs - #71822
Feature request: fullwidth to halfwidth

Previous Next

Package: emacs;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Fri, 28 Jun 2024 12:58:02 UTC

Severity: wishlist

Tags: wontfix

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #54 received at 71822 <at> debbugs.gnu.org (full text, mbox):

From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 71822 <at> debbugs.gnu.org, Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#71822: Feature request: fullwidth to halfwidth
Date: Mon, 03 Mar 2025 18:53:09 +0900
> I eventually decided to write new commands, because the above
> japanese-* commands are too specific to the Japanese users: for
> example, they convert kana characters as well.
> 
> So there are now new commands fullwidth-region, fullwidth-word,
> halfwidth-region, and halfwidth-word, which will be in Emacs 31 when
> it is released.

New functions don't seem to handle SPACE (U+0020, ' ') and IDEOGRAPHIC
SPACE (U+3000, ' ').  U+3000 is used as fullwidth space in CJK
languages.

(with-temp-buffer
  (insert "Hello, World!")
  (halfwidth-region (point-min) (point-max))
  (buffer-string))

-> "Hello, World!"

-- 
Kazuhiro Ito




This bug report was last modified 70 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.