GNU bug report logs - #47767
28.0.50; japanese-hankaku unnatural or misconversion results

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Wed, 14 Apr 2021 09:03:02 UTC

Severity: normal

Tags: fixed, patch

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Cc: 47767 <at> debbugs.gnu.org
Subject: Re: bug#47767: 28.0.50; japanese-hankaku unnatural or misconversion
 results
Date: Wed, 05 May 2021 17:10:31 +0200
Kazuhiro Ito <kzhr <at> d1.dion.ne.jp> writes:

> 1. japanese-hankaku[-region] with ASCII-ONLY option converts Japanese
> panctuation characters and prolonged sound mark to ascii.
>
> (japanese-hankaku "ケーキ、ドーナツ。" t)
> -> "ケ-キ,ド-ナツ."
>
> the result is very unnatural because "ー", "、" and "。" are normally
> used among Japanese characters which are not converted to hankaku in
> this case.  I hope they are kept as is (the result should be
> "ケーキ、ドーナツ。").
>
> 2. japanese-hankaku[-region] without ASCII-ONLY option and
> japanese-zenkaku[-region] fails to convert Latin punctuations.
>
> (japanese-zenkaku "A, B, C.")
> -> "A、 B、 C。"
>
> (japanese-hankaku "A,B,C.")
> -> "A、B、C。"
>
> They should be "A, B, C." and "A,B,C." respectively.
>
> Below patch fixes problems.

Thanks; applied to Emacs 28.

I don't know Japanese, but since nobody else has piped up about this
patch in three weeks, I'm applying it.  If other Japanese-speaking
people disagree with this patch, we can revert it.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 17 days ago.

Previous Next


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