all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
To: 71822@debbugs.gnu.org
Cc: Eli Zaretskii <eliz@gnu.org>, Dan Jacobson <jidanni@jidanni.org>
Subject: bug#71822: Feature request: fullwidth to halfwidth
Date: Sun, 30 Jun 2024 18:43:55 +0900	[thread overview]
Message-ID: <85sewusr38.wl--xmue@d1.dion.ne.jp> (raw)
In-Reply-To: <87r0cezvn2.3.fsf@jidanni.org>

> EZ> use cases for these commands
> 
> All offline (I. e. all by hand), I start out with English,
> 
> 1. Her ID number is 0987654321BA.
> 
> I rewrite the first part in Chinese,
> 
> 2. 她證號為 0987654321BA 。
> 
> But to get it into its final state,
> 
> 3. 她證號為098...
> 
> I need to retype each and every number and letter "all over again" (but
> in fullwidth), because there is no M-<something> command to change it
> for me. As you see I have given up halfway.

FYI, We have japanese-hankaku[-region] and japanese-zenkaku[-region]
functions, which convert hankaku (halfwidth) and zenkaku (fullwidth)
characters to one another.  It is useful to normalize mixed text
mainly input by someone not me, though these functions don't support
all characters because they are for traditional Japanese character
set.


> japanese-hankaku is an autoloaded native-comp-function in
> ‘japan-util.el’.
>
> (japanese-hankaku OBJ &optional ASCII-ONLY)
>
> Convert argument to ‘hankaku’ and return that.
> The argument may be a character or string.  The result has the same type.
> The argument object is not altered--the value is a copy.
> Optional argument ASCII-ONLY non-nil means to return only ASCII character.

-- 
Kazuhiro Ito

  parent reply	other threads:[~2024-06-30  9:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-28  9:06 bug#71822: Feature request: fullwidth to halfwidth Dan Jacobson
2024-06-28 13:45 ` Eli Zaretskii
2024-06-30  4:04   ` Dan Jacobson
2024-06-30  5:24     ` Eli Zaretskii
2024-06-30  8:23       ` Dan Jacobson
2024-06-30  8:30         ` Eli Zaretskii
2024-06-30 13:45           ` Dan Jacobson
2024-06-30  9:43         ` Kazuhiro Ito [this message]
2024-06-30 13:55           ` Dan Jacobson
2024-07-01  2:13             ` Stefan Kangas
2024-07-01  9:58               ` Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85sewusr38.wl--xmue@d1.dion.ne.jp \
    --to=kzhr@d1.dion.ne.jp \
    --cc=71822@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.