ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Parsing HTML entities
@ 2011-02-17  0:06 Khaled Hosny
  2011-02-17  7:25 ` luigi scarso
  2011-02-17  8:00 ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Khaled Hosny @ 2011-02-17  0:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Parsing HTML entities
  2011-02-17  0:06 Parsing HTML entities Khaled Hosny
@ 2011-02-17  7:25 ` luigi scarso
  2011-02-17  8:00 ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: luigi scarso @ 2011-02-17  7:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Feb 17, 2011 at 1:06 AM, Khaled Hosny <khaledhosny@eglug.org> 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.
If not, build a lpeg parse should be feasible.
-- 
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Parsing HTML entities
  2011-02-17  0:06 Parsing HTML entities Khaled Hosny
  2011-02-17  7:25 ` luigi scarso
@ 2011-02-17  8:00 ` Hans Hagen
  2011-02-17 10:37   ` Khaled Hosny
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2011-02-17  8:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Parsing HTML entities
  2011-02-17  8:00 ` Hans Hagen
@ 2011-02-17 10:37   ` Khaled Hosny
  2011-02-17 10:42     ` luigi scarso
  2011-02-17 10:48     ` Taco Hoekwater
  0 siblings, 2 replies; 7+ messages in thread
From: Khaled Hosny @ 2011-02-17 10:37 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

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{&amp;} gets translated to & (ascii one)
and so.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Parsing HTML entities
  2011-02-17 10:37   ` Khaled Hosny
@ 2011-02-17 10:42     ` luigi scarso
  2011-02-17 10:48     ` Taco Hoekwater
  1 sibling, 0 replies; 7+ messages in thread
From: luigi scarso @ 2011-02-17 10:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Feb 17, 2011 at 11:37 AM, Khaled Hosny <khaledhosny@eglug.org> 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{&amp;} 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Parsing HTML entities
  2011-02-17 10:37   ` Khaled Hosny
  2011-02-17 10:42     ` luigi scarso
@ 2011-02-17 10:48     ` Taco Hoekwater
  2011-02-18 15:33       ` Khaled Hosny
  1 sibling, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2011-02-17 10:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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{&amp;} 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Parsing HTML entities
  2011-02-17 10:48     ` Taco Hoekwater
@ 2011-02-18 15:33       ` Khaled Hosny
  0 siblings, 0 replies; 7+ messages in thread
From: Khaled Hosny @ 2011-02-18 15:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Feb 17, 2011 at 11:48:38AM +0100, Taco Hoekwater wrote:
> 
> 
> 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{&amp;} gets translated to & (ascii one)
> > and so.
> 
> There is \xmlsetentity{tex}{\TEX{}}. Is that what you want?

Not exactly, but never mind, I decided it is a minor feature not worthy
the trouble.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-18 15:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-17  0:06 Parsing HTML entities Khaled Hosny
2011-02-17  7:25 ` luigi scarso
2011-02-17  8:00 ` Hans Hagen
2011-02-17 10:37   ` Khaled Hosny
2011-02-17 10:42     ` luigi scarso
2011-02-17 10:48     ` Taco Hoekwater
2011-02-18 15:33       ` Khaled Hosny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).