From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "S. Champailler" Newsgroups: gmane.emacs.help Subject: Re: Is there a way to "asciify" a string? Date: Thu, 31 May 2018 17:08:47 +0200 (CEST) Message-ID: <1408913120.160961.1527779327833@webmail.appsuite.proximus.be> References: <87zi0llisj.fsf@mbork.pl> <20180527073645.GB17354@tuxteam.de> <87y3g5l1h0.fsf@mbork.pl> Reply-To: "S. Champailler" NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527779238 9826 195.159.176.226 (31 May 2018 15:07:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 May 2018 15:07:18 +0000 (UTC) To: help-gnu-emacs@gnu.org, Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 31 17:07:14 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 1fOPAY-0002R3-2J for geh-help-gnu-emacs@m.gmane.org; Thu, 31 May 2018 17:07:14 +0200 Original-Received: from localhost ([::1]:44650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOPCf-0002p8-5z for geh-help-gnu-emacs@m.gmane.org; Thu, 31 May 2018 11:09:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOPCC-0002p2-HO for help-gnu-emacs@gnu.org; Thu, 31 May 2018 11:08:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOPC6-00053a-RF for help-gnu-emacs@gnu.org; Thu, 31 May 2018 11:08:56 -0400 Original-Received: from mailsec102.isp.belgacom.be ([195.238.20.98]:13282) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fOPC6-00051T-HL for help-gnu-emacs@gnu.org; Thu, 31 May 2018 11:08:50 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3A/AGfpBYVeDt7TKGEnY84DUr/LSx+4OfEezUN459i?= =?us-ascii?q?sYplN5qZrsuzbnLW6fgltlLVR4KTs6sC17KL9fi4EUU7or+5+EgYd5JNUxJXwe?= =?us-ascii?q?43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRp?= =?us-ascii?q?OOv1BpTSj8Oq3Oyu5pHfeQpFiCa9bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+?= =?us-ascii?q?RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPC?= =?us-ascii?q?TQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjm58axlVAHnhz?= =?us-ascii?q?sGNz4h8WHYlMpwjL5AoBm8oxBz2pPYbJ2JOPZ7eK7Ses8US2pfU8pITiBMH5mz?= =?us-ascii?q?YJYMAeoEJeZYqJP9p0cUohu4GQajGv7kxjtWinPq2KE31fkqHwPb0ww6B98Avn?= =?us-ascii?q?TarM/rOqkRU++1wrTGwjrfYP1Zwzny64/Gfws9ofGVRr18bdDcxVUtGg7Dk16e?= =?us-ascii?q?qZblPzSQ1ukVvWSV8vBsXv+xhm4nsQ5xpyCvyd0tionNgoIa1ErE+Stky4syPt?= =?us-ascii?q?23VE57bsShEJtIrS6aNo92Qsc8TGFyoyY60qcJuZugcSgRy5QmxxjfZOKbc4SS?= =?us-ascii?q?+R3sSv+cLDFlj3xmYL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CAAwAcDxBb/1gLMApcHAEBAQQBAQoBA?= =?us-ascii?q?YUTOoN3lmGBD5U0hHcCgiU4FAECAQEBAQEBAgGBE4I1JIJQAQQBI1sLBQYaAiY?= =?us-ascii?q?CAkAXBgESEYUKp1eCHIRKg3qBaIEKiUpmgwE1hHODAIJUAowsjD0HAgKbcpJtg?= =?us-ascii?q?XNtghp8kFBtj2EBAQ?= X-IPAS-Result: =?us-ascii?q?A2CAAwAcDxBb/1gLMApcHAEBAQQBAQoBAYUTOoN3lmGBD5U?= =?us-ascii?q?0hHcCgiU4FAECAQEBAQEBAgGBE4I1JIJQAQQBI1sLBQYaAiYCAkAXBgESEYUKp?= =?us-ascii?q?1eCHIRKg3qBaIEKiUpmgwE1hHODAIJUAowsjD0HAgKbcpJtgXNtghp8kFBtj2E?= =?us-ascii?q?BAQ?= Original-Received: from mailoxbe008-nc1.bc (HELO null) ([10.48.11.88]) by privrelay.isp.belgacom.be with ESMTP; 31 May 2018 17:08:47 +0200 In-Reply-To: X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev22 X-Originating-Client: open-xchange-appsuite X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.238.20.98 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:116923 Archived-At: I second that, removing accents and other "nationalities" is much trickier = than one might expect (you can look at Java example, the Java unicode suppo= rt is quite complete), especially for lanugages far away from english such = as russian. By "tricky" I mean there are *hundreds* of edge cases. Neverthe= less, there are ways do sort of do what you want by playing with thigsn suc= h as "non spacing combining characters", "normalized strings", etc. If you = have the opportunity, just try to do it, the great lesson you'lll get of th= at is that human languages are super complexe (and thus super interesting). Today, everyone should use Unicode, it's much simpler. Many file systems su= pport unicode. stF > Le 31 mai 2018 =C3=A0 16:23, Stefan Monnier a = =C3=A9crit : >=20 >=20 > > Still, I need something *simple*. I have a person's name (possibly wit= h > > some national characters), and I want to derive a filename from it. >=20 > I really strongly recommend you try to solve this problem by doing > nothing: keep the name in its full glory. Nowadays users *should* > expect this to work. >=20 >=20 > Stefan >=20 >