From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Is there a way to "asciify" a string? Date: Sun, 27 May 2018 20:04:11 +0700 Message-ID: References: <87zi0llisj.fsf@mbork.pl> <20180527073645.GB17354@tuxteam.de> <87y3g5l1h0.fsf@mbork.pl> 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 1527426169 32423 195.159.176.226 (27 May 2018 13:02:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 May 2018 13:02:49 +0000 (UTC) Cc: help-gnu-emacs To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 27 15:02:45 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 1fMvJt-0008Jy-BX for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2018 15:02:45 +0200 Original-Received: from localhost ([::1]:52060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMvM0-0006Br-ID for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2018 09:04:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMvLX-0006Bj-MM for help-gnu-emacs@gnu.org; Sun, 27 May 2018 09:04:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMvLX-00071B-0h for help-gnu-emacs@gnu.org; Sun, 27 May 2018 09:04:27 -0400 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:46753) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMvLW-00070v-Sb for help-gnu-emacs@gnu.org; Sun, 27 May 2018 09:04:26 -0400 Original-Received: by mail-oi0-x22f.google.com with SMTP id h79-v6so1789025oig.13 for ; Sun, 27 May 2018 06:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pEABqqtwy9df4HkbJASArFDAAzDmSRLOFzapQwk1Fcg=; b=byNO/282N12bUmyUvG7eDW/5jROdFu+ezTZrfcfpYlmnRtBncoJqdSvCfehvZCZMUv hJiml4rbU7ARQV3lCJq+SQq7HjvckWRDUSMcXhbyVvSlw2b2podi55L19hyk8uzw5YMZ TpQsldb0W4XSXnEbUkaL5mKWETBkmQarZyIlFn99Y6esT6UdPy3V8kGVQyVBKzzGtdiM LGYPCp+NyiKBAitcOu5v2V9pH6Pkmt6GEtDYYBFqF9oukWhdQUaO8lgCp5R+QOBAn7CA kXVomNp7x4Am7WFgGZA3t8estGtfRY5CNXe+NaAz9lOMXMhneFuoaianB+rJiCO4x0co rCsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pEABqqtwy9df4HkbJASArFDAAzDmSRLOFzapQwk1Fcg=; b=Z87kkquKOa+8TvzegZRj5NAhkP+h7Lb1Y+8D+ScdU64UVHBEahoNh0NCVuwRLGRVUP Du+joOMWnEVFbXGUTr4YFkvTkSjKgdtW1h/I0WxZuvUMM+n+xswOedteXQfcoCN4ikYC +arkjHEbfXarcSwfeQyBjBHkkygblW0RqhAi9kIPX/PEci5PrlGdHnWEuvsxL6dJlUZO cDbly8VwSiegY9fS2QEhTYR47mEPdHKYUnyMOk3VetwEEkYjDd52NJXNZMlBFMRDWAuo nG0feuOsZOxHPw94lrZjKdRRhvREftaiOgVAE2g13tzwq519EdOYmC9qqZwvSES0p4TD SUoA== X-Gm-Message-State: ALKqPwegCs0CN/zzA4j4t4trHLaX/YJCTGqQ3vPd019ID2NvZ7iNpvkS 6aNeFLum/suNTKCyJ0EDwjlZzLw3rBz218U0mnM= X-Google-Smtp-Source: ADUXVKJWEoMpbHQ99qACP8LvqZWwqlm9sSdKk0HrHO7UGns2SWSVUPU1iKf+cmU6qcTFjPYvhcV6n5ZO0A8AxAWboiM= X-Received: by 2002:aca:281a:: with SMTP id 26-v6mr5052392oix.37.1527426266133; Sun, 27 May 2018 06:04:26 -0700 (PDT) In-Reply-To: <87y3g5l1h0.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22f 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:116869 Archived-At: On Sun, May 27, 2018 at 7:38 PM Marcin Borkowski wrote: > I have a person's name (possibly with > some national characters), and I want to derive a filename from it. It > doesn't have to be correct in 100% cases. It doesn't even have to be > unambiguous (there will be a number for that in the filename, too). Technically you could use the name of a person as is, as long as it is representable in Unicode and contains neither the null character nor the slash character. But I assume you want a filename that is portable between file systems, or a filename that can be represented in an URI path segment without %-encoding, or any combination of the above. In that case, the Python unidecode library is probably the closest that you can find. But make very sure that the people involved never see their own name=E2=80=99s transliteration.