unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* html-mode and latin-1 characters
@ 2005-01-30  7:40 Eduardo Tompson Pereira
  2005-01-31  1:32 ` Eduardo Tompson Pereira
       [not found] ` <mailman.66.1107136480.2841.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Eduardo Tompson Pereira @ 2005-01-30  7:40 UTC (permalink / raw)


I need Emacs to convert latin chars like ê to numbers like &#234; not 
&ecirc;

Something similar to iso-iso2sgml and iso-sgml2iso.

Thanks,
Eduardo

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

* Re: html-mode and latin-1 characters
  2005-01-30  7:40 html-mode and latin-1 characters Eduardo Tompson Pereira
@ 2005-01-31  1:32 ` Eduardo Tompson Pereira
       [not found] ` <mailman.66.1107136480.2841.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Eduardo Tompson Pereira @ 2005-01-31  1:32 UTC (permalink / raw)


Eduardo Tompson Pereira wrote:
> I need Emacs to convert latin chars like ê to numbers like &#234; not 
> &ecirc;
> 
> Something similar to iso-iso2sgml and iso-sgml2iso.

No one?

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

* Re: html-mode and latin-1 characters
       [not found] ` <mailman.66.1107136480.2841.help-gnu-emacs@gnu.org>
@ 2005-02-02 19:32   ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2005-02-02 19:32 UTC (permalink / raw)


Eduardo Tompson Pereira wrote:
 > Eduardo Tompson Pereira wrote:
 >> I need Emacs to convert latin chars like ? to numbers like &#234; not
 >> &ecirc;
 >>
 >> Something similar to iso-iso2sgml and iso-sgml2iso.
 >
 > No one?

Sorry the world wide community of volunteers did not respond within 18
hours of your request.

Why don't you take the iso-iso2sgml and iso-sgml2iso source code and
modify it to use numeric character references instead of named character
entity references?  Or try this:

(setq iso-iso2sgml-trans-tab
       (mapcar (lambda (char-entity)
                 (list (car char-entity)
                       (format "&#%d;"
                               (encode-char (string-to-char (car 
char-entity))
                                            'ucs))))
               iso-iso2sgml-trans-tab))

(setq iso-sgml2iso-trans-tab's
       (mapcar (lambda (entity-char)
                 (list (format "&#%d;"
                               (encode-char (string-to-char (cadr 
entity-char))
                                            'ucs))
                       (cadr entity-char)))
               iso-sgml2iso-trans-tab))

-- 
Kevin Rodgers

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

end of thread, other threads:[~2005-02-02 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-30  7:40 html-mode and latin-1 characters Eduardo Tompson Pereira
2005-01-31  1:32 ` Eduardo Tompson Pereira
     [not found] ` <mailman.66.1107136480.2841.help-gnu-emacs@gnu.org>
2005-02-02 19:32   ` Kevin Rodgers

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).