From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Is there a way to "asciify" a string? Date: Mon, 28 May 2018 12:28:05 +0200 Message-ID: <87r2lwkrbe.fsf@mbork.pl> 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 X-Trace: blaine.gmane.org 1527503276 20341 195.159.176.226 (28 May 2018 10:27:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 May 2018 10:27:56 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: help-gnu-emacs@gnu.org To: Philipp Stephani Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 28 12:27:52 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 1fNFNY-0005AA-0q for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2018 12:27:52 +0200 Original-Received: from localhost ([::1]:55148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNFPd-0007YR-FI for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2018 06:30:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNFP3-0007X4-Bg for help-gnu-emacs@gnu.org; Mon, 28 May 2018 06:29:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNFOy-000348-F1 for help-gnu-emacs@gnu.org; Mon, 28 May 2018 06:29:25 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:49106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNFOy-00031e-8P for help-gnu-emacs@gnu.org; Mon, 28 May 2018 06:29:20 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id DDF51E6C5C; Mon, 28 May 2018 12:29:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IJYYf4EcR1MS; Mon, 28 May 2018 12:29:11 +0200 (CEST) Original-Received: from localhost (188.47.59.48.ipv4.supernova.orange.pl [188.47.59.48]) by mail.mojserwer.eu (Postfix) with ESMTPSA id EECC7E6831; Mon, 28 May 2018 12:29:10 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 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:116879 Archived-At: On 2018-05-28, at 10:15, Philipp Stephani wrote: > Marcin Borkowski schrieb am So., 27. Mai 2018 um 14:38 Uhr: > >> I understand that. >> >> Still, I need something *simple*. 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). > > Then why not use only the number, if that's enough the make the filename > unique? > Either the filename is an internal implementation detail, then it doesn't > have to be human-readable. > Or you could ignore portability concerns and use the username as is. That's an interesting idea. However, I disagree. My idea is to have a number (because that helps to keep some order, and there may be - and sometimes are - more than one item relating to the same person), but a name is _very_ helpful for menomic reasons. Best, -- Marcin Borkowski http://mbork.pl