From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Converting a string to valid XHTML id? Date: Thu, 2 Dec 2010 00:31:00 +0100 Message-ID: References: <40291.130.55.118.19.1291217640.squirrel@webmail.lanl.gov> <20101201155858.GB12842@seid-online.de> <54241.130.55.118.19.1291242750.squirrel@webmail.lanl.gov> <40669.130.55.118.19.1291245408.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1291246317 32345 80.91.229.12 (1 Dec 2010 23:31:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 23:31:57 +0000 (UTC) Cc: rm@tuxteam.de, Ralf Mattes , emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 02 00:31:51 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNw9M-0001uC-Im for ged-emacs-devel@m.gmane.org; Thu, 02 Dec 2010 00:31:48 +0100 Original-Received: from localhost ([127.0.0.1]:57121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNw9M-0008I4-23 for ged-emacs-devel@m.gmane.org; Wed, 01 Dec 2010 18:31:48 -0500 Original-Received: from [140.186.70.92] (port=50596 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNw9F-0008CU-3Q for emacs-devel@gnu.org; Wed, 01 Dec 2010 18:31:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNw9D-0006Ns-Ry for emacs-devel@gnu.org; Wed, 01 Dec 2010 18:31:40 -0500 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:38413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNw9D-0006Nm-82 for emacs-devel@gnu.org; Wed, 01 Dec 2010 18:31:39 -0500 Original-Received: by ewy27 with SMTP id 27so17649383ewy.0 for ; Wed, 01 Dec 2010 15:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=Z9QVGMHSJHPU1YeK4nGGReM6zGN/XpMPLDB53sSB0Ms=; b=jAZKCb0XG2urWY6NtSQ5V6uuy9UKWW27TWWYAuMk9oiDifnA3wDI2+8JdrUdUMoMcM HCH5UBAksTOicWxOPYr74W65koe2WGiIE4Zksmj2yzj5SlqdKMqheJD2nWgusGl6PxKr qfkmOxoj40zVSy/PQHke29RcDqLWamdatf/dc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=t5GTtSVPzM899K+ggrnOENrO+fsUNkqKvPmq8Jav9qLP9QT42Rtw5uOSprCflc82vK UiwhL+oGXQ8Xio7m10orKBymgFQ6f1ujNauUZdxlK+i+EqqQgKurTup/4Zbf2DMORMTP FXeww3YYMJQ1xr9SoSGaIK+abB2rfFW2JDbxw= Original-Received: by 10.213.34.208 with SMTP id m16mr56786ebd.97.1291246298320; Wed, 01 Dec 2010 15:31:38 -0800 (PST) Original-Received: by 10.213.29.8 with HTTP; Wed, 1 Dec 2010 15:31:00 -0800 (PST) In-Reply-To: <40669.130.55.118.19.1291245408.squirrel@webmail.lanl.gov> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133288 Archived-At: On Thu, Dec 2, 2010 at 12:16 AM, Davis Herring wrote: >>> Or is there something more fundamental that I'm missing? >> >> Yes, % is not allowed. And the names should be unique. > > That's why I used _ instead of %. Sorry, I missed that > And my function is injective. Do you mean that it always maps the same original input string to the same unique output string? Then it could be used. However I thought it would be easier reading the result with my simpler mapping.