[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: html-mode and latin-1 characters
From: |
Kevin Rodgers |
Subject: |
Re: html-mode and latin-1 characters |
Date: |
Wed, 02 Feb 2005 12:32:16 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Eduardo Tompson Pereira wrote:
> Eduardo Tompson Pereira wrote:
>> I need Emacs to convert latin chars like ? to numbers like ê not
>> ê
>>
>> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: html-mode and latin-1 characters,
Kevin Rodgers <=