[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Same non-ASCII characters not 'equal'
From: |
Pascal Bourguignon |
Subject: |
Re: Same non-ASCII characters not 'equal' |
Date: |
Sun, 13 Aug 2006 18:56:35 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
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.
- Re: Same non-ASCII characters not 'equal',
Pascal Bourguignon <=