From: Juri Linkov <juri@linkov.net>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: emacs-devel@gnu.org
Subject: Re: search-default-mode char-fold-to-regexp and Greek Extended block characters
Date: Thu, 25 Jul 2019 21:40:12 +0300 [thread overview]
Message-ID: <87a7d2asu3.fsf@mail.linkov.net> (raw)
In-Reply-To: <87ef2f0xx3.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 25 Jul 2019 01:18:16 +0100")
>>> because it does (upcase "ΐ") => Ϊ́
>>>
>>> That character is GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA, and
>>> as far as I can tell there is no CAPITAL variant of that letter, so
>>> upcase canʼt return it, which means it returns GREEK CAPITAL LETTER
>>> IOTA plus the diacriticals, which is obviously not going to
>>> match.
>>
>> This is an interesting case like (upcase "ß") => "SS" that required
>> adding (?ß "ss") to pass the tests.
>
> It is probably this way because all caps are not usually (if ever)
> accented in Greek, so the only time upper-case letters take accents is
> at the start of capitalised words, where dialytika can never appear, as
> dialytika only make sense on the second of two consecutive vowels.
Maybe only for searching purposes we could find all cases
where upper- and lower-case letters differ significantly and
add them to char-fold-include by default.
>> So I guess we need to add (?ι "ΐ") for the tests to pass:
>
> [...]
>
>> But this is only for char-fold--test-with-customization. OTOH, for
>> char-fold--test-without-customization we need also to change the default
>> value in char-fold.el like:
>
> [...]
>
> Can you please explain why iota with dialytika and tonos needs to be
> special-cased in these places?
Here is the test case that demonstrates the need to add it
to char-fold-include:
0. emacs -Q
1. Paste this text to *scratch*: "ΐΐ"
2. Search for two IOTAs with char-fold, e.g.: C-s M-s ' ιι
The char-fold search doesn't match the characters with combining accents
with their base char GREEK SMALL LETTER IOTA.
However, after adding (?ι "ΐ") to char-fold-include it can match the
base character IOTA.
next prev parent reply other threads:[~2019-07-25 18:40 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-19 14:18 search-default-mode char-fold-to-regexp and Greek Extended block characters Robert Pluim
2019-07-19 14:37 ` Eli Zaretskii
2019-07-19 16:03 ` Robert Pluim
2019-07-19 18:13 ` Eli Zaretskii
2019-07-21 11:03 ` Robert Pluim
2019-07-22 18:39 ` Robert Pluim
2019-07-23 14:57 ` Eli Zaretskii
2019-07-23 17:43 ` Robert Pluim
2019-07-23 20:29 ` Juri Linkov
2019-07-24 7:56 ` Robert Pluim
2019-07-24 7:59 ` Robert Pluim
2019-07-24 9:04 ` Robert Pluim
2019-07-24 23:12 ` Juri Linkov
2019-07-25 0:18 ` Basil L. Contovounesios
2019-07-25 18:40 ` Juri Linkov [this message]
2019-07-25 20:44 ` search-default-mode char-fold-to-regexp and Greek Extended block characters, " Robert Pluim
2019-07-25 21:35 ` Juri Linkov
2019-07-26 11:09 ` Robert Pluim
2019-07-26 18:38 ` Juri Linkov
2019-07-29 8:32 ` Robert Pluim
2019-07-29 18:09 ` Juri Linkov
2019-07-30 8:09 ` Robert Pluim
2019-07-30 10:15 ` Eli Zaretskii
2019-07-25 2:36 ` Eli Zaretskii
2019-07-25 8:59 ` Robert Pluim
2019-07-25 12:53 ` Eli Zaretskii
2019-07-25 8:46 ` Robert Pluim
2019-07-25 18:46 ` Juri Linkov
2019-07-26 6:04 ` Eli Zaretskii
2019-07-26 18:40 ` Juri Linkov
2019-07-26 19:13 ` Eli Zaretskii
2019-07-19 18:53 ` Juri Linkov
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=87a7d2asu3.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=contovob@tcd.ie \
--cc=emacs-devel@gnu.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.