From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: Same non-ASCII characters not 'equal'
Date: Sun, 13 Aug 2006 18:56:35 +0200 [thread overview]
Message-ID: <871wrk4lrw.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.5138.1155469477.9609.help-gnu-emacs@gnu.org
Sebastian Tennant <sebyte@smolny.plus.com> writes:
> Hello all,
>
> I'm trying to write a little vocab tester but I've stumbled upon some
> strange behaviour I can't figure out.
>
> For some reason the following code does not match strings containing
> special characters (i.e., non-ASCII characters input using an input
> method)?
>
> (with-temp-buffer
> (set-input-method 'turkish-postfix)
> (let ((dict (list '("glass" "bardak") '("house" "ev") '("girl" "kız")
> '("child" "çocuk") '("little" "küçük") '("good" "iyi")
> '("bad" "fena") '("horse" "at") '("this" "bu")))
> (input (read-from-minibuffer "? " nil nil nil nil nil t))
> match)
> (dolist (each dict (and match (message "Equal")))
> (when (member input each) (setq match t)))))
>
> Take 'child' and 'çocuk' for instance. Because the (turkish-postfix)
> input method is inherited in the minibuffer you have to type
> 'c h i 2 l d' to enter 'child' and a match is found, but when you
> enter 'çocuk' by typing 'c , o c u k', no match is found. Could this
> be a bug even?
It works for me.
--
__Pascal Bourguignon__ http://www.informatimago.com/
WARNING: This product warps space and time in its vicinity.
next parent reply other threads:[~2006-08-13 16:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5138.1155469477.9609.help-gnu-emacs@gnu.org>
2006-08-13 16:56 ` Pascal Bourguignon [this message]
2006-08-13 11:44 Same non-ASCII characters not 'equal' Sebastian Tennant
2006-08-15 1:20 ` James Cloos
2006-08-17 7:23 ` Sebastian Tennant
2006-08-17 16:49 ` James Cloos
2006-08-21 12:25 ` Sebastian Tennant
2006-08-21 13:15 ` James Cloos
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=871wrk4lrw.fsf@thalassa.informatimago.com \
--to=pjb@informatimago.com \
/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.