From: Volkan YAZICI <yazicivo@ttnet.net.tr>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org, rms@gnu.org, Kenichi Handa <handa@m17n.org>
Subject: Re: [yazicivo@ttnet.net.tr: Locale Dependent Downcasing in smtpmail]
Date: Tue, 03 Apr 2007 02:20:48 +0300 [thread overview]
Message-ID: <87odm6xt0v.fsf@ttnet.net.tr> (raw)
In-Reply-To: <87ejn2jsnu.fsf@stupidchicken.com> (Chong Yidong's message of "Mon\, 02 Apr 2007 18\:52\:21 -0400")
Chong Yidong <cyd@stupidchicken.com> writes:
> Kenichi Handa <handa@m17n.org> writes:
>> Does the attached change fix the problem?
>>
>> ! (let ((name (mapcar (lambda (s)
>> ! (setq s (downcase s))
>> ! ;; If `I' is downcased to dotless-i,
>> ! ;; convert it to `i'.
>> ! (if (/= (downcase ?I) ?i)
>> ! (subst-char-in-string
>> ! (downcase ?I) ?i s t))
>> ! (intern s))
>
> I wonder if there's a better way to do this.
Indeed, here's my reply to Kenichi Handa (in case it didn't reach to
you):
Such a fix is quite unfeasible. What do you think to do for other
problematic characters as well? Introduce a new if-else clause for
every one?
I am not faimilar with introducing a new macro policy of emacs team
but it'd probably be useful (handy?) to have something similar to
this macro:
(with-locale-ctype 'ascii
;; Any call to DOWNCASE/UPCASE within this (dynamic?) scope will
;; use the case conversion table specified in the first argument
;; of the WITH-CASE-TABLE macro.
...)
> Maybe we can define an ascii case table that doesn't get overwritten
> by the locale; then code like the above can bind to this case table
> temporarily (or we can define a downcase-ascii function that does
> such a thing).
I really wonder if is there really no possible way to switch between
case conversion tables of different locales properly. At least, can't
we totally switch to ASCII locale temporarily?
> But maybe, for Emacs 22, the above hack is all we need. Is it true
> that in practice, all we have to worry about is "i"?
Yes. But I can only answer for Turkish characters. Somebody needs to
look through whole locales. ;-) (BTW, did I mention that I suspect
similar cases in other places as well, like gnus?)
Regards.
next prev parent reply other threads:[~2007-04-02 23:20 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-31 20:43 [yazicivo@ttnet.net.tr: Locale Dependent Downcasing in smtpmail] Richard Stallman
2007-04-01 17:39 ` Chong Yidong
2007-04-02 6:51 ` Kenichi Handa
2007-04-02 22:52 ` Chong Yidong
2007-04-02 23:20 ` Volkan YAZICI [this message]
2007-04-03 1:24 ` Kenichi Handa
2007-04-03 21:40 ` Richard Stallman
2007-04-02 17:31 ` Volkan YAZICI
2007-04-03 8:06 ` Kenichi Handa
2007-04-03 8:28 ` Werner LEMBERG
2007-04-03 9:24 ` Eli Zaretskii
2007-04-03 9:33 ` Simon Josefsson
2007-04-03 13:44 ` Volkan YAZICI
2007-04-03 15:29 ` Eli Zaretskii
2007-04-03 15:50 ` David Kastrup
2007-04-03 16:03 ` Andreas Schwab
[not found] ` <87k5wt5tnx.fsf@ttnet.net.tr>
2007-04-03 16:21 ` David Kastrup
[not found] ` <87slbhquuw.fsf@ttnet.net.tr>
2007-04-03 18:44 ` David Kastrup
2007-04-03 16:30 ` Chong Yidong
2007-04-03 17:57 ` with-case-table / ascii-case-table (was: [yazicivo@ttnet.net.tr: Locale Dependent Downcasing in smtpmail]) Reiner Steib
2007-04-04 15:40 ` with-case-table / ascii-case-table Chong Yidong
2007-04-04 14:02 ` [yazicivo@ttnet.net.tr: Locale Dependent Downcasing in smtpmail] Richard Stallman
2007-04-04 14:27 ` Andreas Schwab
2007-04-05 23:11 ` Richard Stallman
2007-04-06 6:15 ` Kenichi Handa
2007-04-06 6:49 ` Werner LEMBERG
2007-04-06 7:15 ` Kenichi Handa
2007-04-06 7:30 ` Werner LEMBERG
2007-04-06 8:56 ` Eli Zaretskii
2007-04-06 9:24 ` Werner LEMBERG
2007-04-06 13:54 ` Eli Zaretskii
2007-04-07 8:01 ` Werner LEMBERG
2007-04-06 19:47 ` Richard Stallman
2007-04-07 7:30 ` martin rudalics
2007-04-07 17:31 ` Richard Stallman
2007-04-04 18:01 ` Eli Zaretskii
2007-04-05 23:11 ` Richard Stallman
2007-04-06 8:31 ` Eli Zaretskii
2007-04-06 19:47 ` Richard Stallman
2007-04-07 9:18 ` Eli Zaretskii
2007-04-07 15:03 ` Chong Yidong
2007-04-07 17:36 ` Eli Zaretskii
2007-04-07 17:31 ` Richard Stallman
2007-04-07 17:47 ` Eli Zaretskii
2007-04-03 21:16 ` Davis Herring
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=87odm6xt0v.fsf@ttnet.net.tr \
--to=yazicivo@ttnet.net.tr \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=handa@m17n.org \
--cc=rms@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.