GNU bug report logs - #30412
25.3; char-fold-search match for German eszett (ß)

Previous Next

Package: emacs;

Reported by: Scott Otterson <scotto <at> sharpleaf.org>

Date: Sat, 10 Feb 2018 17:22:01 UTC

Severity: normal

Tags: wontfix

Found in version 25.3

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

Bug is archived. No further changes may be made.

Full log


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

From: Robert Pluim <rpluim <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 30412 <at> debbugs.gnu.org, Scott Otterson <scotto <at> sharpleaf.org>
Subject: Re: bug#30412: 25.3; char-fold-search match for German eszett
 (ß)
Date: Thu, 26 Nov 2020 15:39:22 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Scott Otterson <scotto <at> sharpleaf.org> writes:
>
>> But there is no way to ß
>
> As the Stackexchange user explains:
>
> ---
> The reason why it's absent is because char-fold-table is automatically generated
> from the Unicode list of decomposable characters and Unicode believes that ß
> does not "decompose" into s + s in the same way that á does decompose into a +
> accute accent:
>
> http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
>
> (search for: LATIN SMALL LETTER SHARP S).
> ---
>
> So I don't think we want to diverge from Unicode here?  So I'm closing
> this bug report.  If others think this is something we should do, feel
> free to reopen the bug report.

From char-fold.el:

(eval-and-compile
  (put 'char-fold-table 'char-table-extra-slots 1)
  (defconst char-fold--default-include
    '((?\" """ "“" "”" "”" "„" "⹂" "〞" "‟" "‟" "❞" "❝" "❠" "“" "„" "〝" "〟" "🙷" "🙶" "🙸" "«" "»")
      (?' "❟" "❛" "❜" "‘" "’" "‚" "‛" "‚" "󠀢" "❮" "❯" "‹" "›")
      (?` "❛" "‘" "‛" "󠀢" "❮" "‹")
      (?ß "ss") ;; de
      (?ι "ΐ")  ;; el for (?ΐ "ΐ") decomposition
      (?υ "ΰ")  ;; el for (?ΰ "ΰ") decomposition
      ))

so this should now work. Itʼs also customizable via
'char-fold-include' and 'char-fold-exclude'.

Robert





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

Previous Next


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