From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66118 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Parsing HTML entities Date: Thu, 17 Feb 2011 11:48:38 +0100 Message-ID: <4D5CFD06.9060900@elvenkind.com> References: <20110217000658.GB27326@khaled-laptop> <4D5CD5AD.4070800@wxs.nl> <20110217103746.GA1831@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297939762 20143 80.91.229.12 (17 Feb 2011 10:49:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 10:49:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 17 11:49:18 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pq1QD-0001w9-Fj for gctc-ntg-context-518@m.gmane.org; Thu, 17 Feb 2011 11:49:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42139CAA21; Thu, 17 Feb 2011 11:49:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y13ZhIFd-x2V; Thu, 17 Feb 2011 11:49:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55539CA9F7; Thu, 17 Feb 2011 11:48:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 45C60CA9F7 for ; Thu, 17 Feb 2011 11:48:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 80RFkENFIyBX for ; Thu, 17 Feb 2011 11:48:40 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 42370CA977 for ; Thu, 17 Feb 2011 11:48:40 +0100 (CET) Original-Received: from pilot.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1HAmdtc013516 for ; Thu, 17 Feb 2011 11:48:39 +0100 Original-Received: from localhost (pilot.elvenkind.com [127.0.0.1]) by pilot.elvenkind.com (Postfix) with ESMTP id 6F65BA68 for ; Thu, 17 Feb 2011 11:48:39 +0100 (CET) X-Virus-Scanned: amavisd-new at localhost.localdomain Original-Received: from pilot.elvenkind.com ([127.0.0.1]) by localhost (pilot.elvenkind.com [127.0.0.1]) (amavisd-new, port 10025) with LMTP id ACOYX7WhL3ly for ; Thu, 17 Feb 2011 11:48:38 +0100 (CET) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by pilot.elvenkind.com (Postfix) with ESMTP id E466BA67 for ; Thu, 17 Feb 2011 11:48:38 +0100 (CET) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.14) Gecko/20101022 Mandriva/3.0.9-0.1mdv2010.1 (2010.1) Thunderbird/3.0.9 In-Reply-To: <20110217103746.GA1831@khaled-laptop> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=82.95.203.226; country=NL; region=11; city=Ameide; latitude=51.9500; longitude=4.9667; http://maps.google.com/maps?q=51.9500,4.9667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rE8WMD4S - 1e7382e05cd9 - 20110217 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66118 Archived-At: On 02/17/11 11:37, Khaled Hosny wrote: > On Thu, Feb 17, 2011 at 09:00:45AM +0100, Hans Hagen wrote: >> On 17-2-2011 1:06, Khaled Hosny wrote: >>> Is there built-in support to parse HTML entities, I've some vague memory >>> about it but I don't seem to find much useful results. >> >> you mean that &whatever; in the tex input gets translated automatically? > > More or less, e.g. \xmlentity{&} gets translated to & (ascii one) > and so. There is \xmlsetentity{tex}{\TEX{}}. Is that what you want? Best wishes, Taco ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________