From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66117 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Parsing HTML entities Date: Thu, 17 Feb 2011 11:42:10 +0100 Message-ID: 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 1297939377 18140 80.91.229.12 (17 Feb 2011 10:42:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 10:42:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 17 11:42:51 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 1Pq1Jy-00062p-Tu for gctc-ntg-context-518@m.gmane.org; Thu, 17 Feb 2011 11:42:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CFFC8CAA0C; Thu, 17 Feb 2011 11:42:49 +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 rdg5mgLPyzF2; Thu, 17 Feb 2011 11:42:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D64ECA9FC; Thu, 17 Feb 2011 11:42:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9CF5CA9FC for ; Thu, 17 Feb 2011 11:42:33 +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 YRYZCxX4665K for ; Thu, 17 Feb 2011 11:42:11 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id BE334CA977 for ; Thu, 17 Feb 2011 11:42:11 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1HAgAsv013276 for ; Thu, 17 Feb 2011 11:42:11 +0100 Original-Received: by qwa26 with SMTP id 26so2274898qwa.14 for ; Thu, 17 Feb 2011 02:42:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=4f/87MlC+kqdMjqc0rAj6ps1IbnFLTWXqc5LZu0EC6g=; b=Cs20yX4bbAWFy+mcz/C6VL0qbIrD5yQgBUeWwIfbNCJDvkN3Igin0EKwQ54+OwNBNM SnJCe21oGvCg3ymPdRi6+ePG6uAPkeovyt2DUN4vAAXFkI7Ad6UZ29UdvS2V3h7UQxii qiKr89xYuHNgR4TbOelgvl62TUjnBRjR8O35g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=iTxTvPEd66TIVk2U+K/4IeuQAOvl+Gb8V/04bdg5KX45eEr4uc83ST+HarHEZ6t5B7 nKV84nK4fxOuIFgB29WDBAoHkQKpm0pCJhhCvBbsG6FkuUhbVHlV+lBm4jks+wCFbZxK HiRY4dye0OHChu1VBUITojPZOPCUNf3yPDTj8= Original-Received: by 10.229.28.133 with SMTP id m5mr2117642qcc.36.1297939330144; Thu, 17 Feb 2011 02:42:10 -0800 (PST) Original-Received: by 10.229.46.129 with HTTP; Thu, 17 Feb 2011 02:42:10 -0800 (PST) In-Reply-To: <20110217103746.GA1831@khaled-laptop> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05E8WGamI - a7103ed83423 - 20110217 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:66117 Archived-At: On Thu, Feb 17, 2011 at 11:37 AM, 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. predefined entities in XML are trivial to (eventually) implement The list of HTML character entity references is longer http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________