From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Is there a way to "asciify" a string? Date: Sun, 27 May 2018 07:55:36 -0700 Message-ID: <87k1rpi1w7.fsf@ericabrahamsen.net> References: <87zi0llisj.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1527433022 25087 195.159.176.226 (27 May 2018 14:57:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 May 2018 14:57:02 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 27 16:56:58 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMx6Q-0006Q1-Ld for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2018 16:56:58 +0200 Original-Received: from localhost ([::1]:52331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMx8X-0000Wv-Ec for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2018 10:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMx83-0000Wa-SP for help-gnu-emacs@gnu.org; Sun, 27 May 2018 10:58:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMx80-0005NS-PC for help-gnu-emacs@gnu.org; Sun, 27 May 2018 10:58:39 -0400 Original-Received: from [195.159.176.226] (port=36978 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMx80-0005LO-IO for help-gnu-emacs@gnu.org; Sun, 27 May 2018 10:58:36 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fMx5o-0005jN-Pt for help-gnu-emacs@gnu.org; Sun, 27 May 2018 16:56:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:fWkTZ1Q8VQjgS3KcFxXaJ+ualAo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116870 Archived-At: Marcin Borkowski writes: > Hi all, > > I want to convert e.g. "żółć" to "zolc", or "Poincaré" to "Poincare" > etc. IOW, I want to replace all these funny Unicode accented characters > with their ASCII equivalents. > > Is there anything for that in Emacs? Check out char-fold.el. I think its main purpose is to go the other way: to take an ascii string and return a regexp matching all it's likely unicode lookalikes, but you might be able to use `char-fold-table' to go the other way. Eric