From: "Drew Adams" <drew.adams@oracle.com>
To: "'Michal'" <rabbitko@tenbit.pl>, <help-gnu-emacs@gnu.org>
Subject: RE: national to ASCII character conversion
Date: Wed, 17 Jun 2009 13:56:17 -0700 [thread overview]
Message-ID: <5F2CF928625C48F5B7CCC48ADA8C08AD@us.oracle.com> (raw)
In-Reply-To: <m2zlc6mwf4.fsf@tenbit.pl>
> I have a string which contains national characters and I would like to
> convert them to ASCII equivalents. for example: ó -> o ł -> l ż -> z
>
> one of ways is just using: (replace-regexp-in-string "ó" "o" my_string)
> for each national character, but I believe that there is much better way.
I'm sure there is is a good way, but I don't know it. (I don't use such chars
much anymore.)
If someone doesn't offer a good way (which I doubt), then you can at least do
what I used to do:
http://www.emacswiki.org/emacs/unaccent.el.
If there is no good way currently (which I also doubt), then perhaps someone
will code something up.
When I used to do this a lot, I found it handy to have commands that do it for
one or more words (`unaccent-word') and for the region (`unaccent-region'). I
bind those to M-" and C-x ", respectively.
next prev parent reply other threads:[~2009-06-17 20:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 20:34 national to ASCII character conversion Michal
2009-06-17 20:56 ` Drew Adams [this message]
2009-06-17 21:26 ` Teemu Likonen
2009-06-17 22:09 ` Teemu Likonen
2009-06-17 21:57 ` Xah Lee
[not found] ` <mailman.819.1245272178.2239.help-gnu-emacs@gnu.org>
2009-06-17 23:02 ` Michal
2009-06-17 23:42 ` Drew Adams
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=5F2CF928625C48F5B7CCC48ADA8C08AD@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=rabbitko@tenbit.pl \
/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.