unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* decoding html char codes
@ 2013-12-30 23:47 E Sabof
  2014-01-01 14:58 ` Stefan Monnier
       [not found] ` <mailman.10780.1388588361.10748.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: E Sabof @ 2013-12-30 23:47 UTC (permalink / raw)
  To: help-gnu-emacs

On a farily regular basis, I need to convert strings like this:

&lt;b&gt;foo &amp; bar&lt;/b&gt;

to this:

<b>foo & bar</b>

I have an ad-hoc dictionary for doing such translations. However emacs
seems to be shipped with at least 2. One located in etc/nxml/ and another
in lisp/leim/quail/sgml-input.el. Does anyone know through which APIs can
these dictionaries be accessed?

Evgeni


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

* Re: decoding html char codes
  2013-12-30 23:47 decoding html char codes E Sabof
@ 2014-01-01 14:58 ` Stefan Monnier
       [not found] ` <mailman.10780.1388588361.10748.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2014-01-01 14:58 UTC (permalink / raw)
  To: help-gnu-emacs

> I have an ad-hoc dictionary for doing such translations. However emacs
> seems to be shipped with at least 2. One located in etc/nxml/ and another
> in lisp/leim/quail/sgml-input.el. Does anyone know through which APIs can

IIRC there's iso-sgml2iso (which uses yet another such dictionary).


        Stefan




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

* Re: decoding html char codes
       [not found] ` <mailman.10780.1388588361.10748.help-gnu-emacs@gnu.org>
@ 2014-01-05 22:08   ` esabof
  2014-01-07  0:11   ` Ted Zlatanov
  1 sibling, 0 replies; 6+ messages in thread
From: esabof @ 2014-01-05 22:08 UTC (permalink / raw)
  To: help-gnu-emacs

> IIRC there's iso-sgml2iso (which uses yet another such dictionary).

Thanks. It's not as complete, but still useful.

Evgeni


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

* Re: decoding html char codes
       [not found] ` <mailman.10780.1388588361.10748.help-gnu-emacs@gnu.org>
  2014-01-05 22:08   ` esabof
@ 2014-01-07  0:11   ` Ted Zlatanov
  2014-01-07  1:48     ` Stefan Monnier
       [not found]     ` <mailman.11248.1389059334.10748.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 6+ messages in thread
From: Ted Zlatanov @ 2014-01-07  0:11 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 01 Jan 2014 09:58:49 -0500 Stefan Monnier <monnier@iro.umontreal.ca> wrote: 

>> I have an ad-hoc dictionary for doing such translations. However emacs
>> seems to be shipped with at least 2. One located in etc/nxml/ and another
>> in lisp/leim/quail/sgml-input.el. Does anyone know through which APIs can

SM> IIRC there's iso-sgml2iso (which uses yet another such dictionary).

Is there a reason not to unify all of them?  The HTML character codes
are not a quick-moving lot.

Ted


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

* Re: decoding html char codes
  2014-01-07  0:11   ` Ted Zlatanov
@ 2014-01-07  1:48     ` Stefan Monnier
       [not found]     ` <mailman.11248.1389059334.10748.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2014-01-07  1:48 UTC (permalink / raw)
  To: help-gnu-emacs

SM> IIRC there's iso-sgml2iso (which uses yet another such dictionary).
> Is there a reason not to unify all of them?

Lack of manpower?


        Stefan




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

* Re: decoding html char codes
       [not found]     ` <mailman.11248.1389059334.10748.help-gnu-emacs@gnu.org>
@ 2014-01-08 16:00       ` Ted Zlatanov
  0 siblings, 0 replies; 6+ messages in thread
From: Ted Zlatanov @ 2014-01-08 16:00 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, 06 Jan 2014 20:48:23 -0500 Stefan Monnier <monnier@iro.umontreal.ca> wrote: 

SM> IIRC there's iso-sgml2iso (which uses yet another such dictionary).
>> Is there a reason not to unify all of them?

SM> Lack of manpower?

I'll put it on my TODO list for a rainy weekend.

Ted


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

end of thread, other threads:[~2014-01-08 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-30 23:47 decoding html char codes E Sabof
2014-01-01 14:58 ` Stefan Monnier
     [not found] ` <mailman.10780.1388588361.10748.help-gnu-emacs@gnu.org>
2014-01-05 22:08   ` esabof
2014-01-07  0:11   ` Ted Zlatanov
2014-01-07  1:48     ` Stefan Monnier
     [not found]     ` <mailman.11248.1389059334.10748.help-gnu-emacs@gnu.org>
2014-01-08 16:00       ` Ted Zlatanov

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 read-only IMAP folder(s) and NNTP newsgroup(s).