From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: html-mode and latin-1 characters Date: Wed, 02 Feb 2005 12:32:16 -0700 Message-ID: <36co62F50plafU1@individual.net> References: <41FC8F7B.8040900@ig.com.br> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107373019 22034 80.91.229.2 (2 Feb 2005 19:36:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2005 19:36:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 02 20:36:59 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CwQIv-0000Ms-HZ for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 20:36:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwQW6-0005sg-HY for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 14:50:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: individual.net zWDm8Z2VqQlCV6UYK3xdDQRXzr6VcsI1JBMhvQarWDNywpxRE= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:128364 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:23876 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23876 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