From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Adding cp858? Date: Wed, 06 Sep 2006 10:01:30 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1157504590 3817 80.91.229.2 (6 Sep 2006 01:03:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2006 01:03:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 06 03:03:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GKlom-0007zs-S5 for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 03:03:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKlom-0006e4-4b for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 21:03:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKloZ-0006dp-1E for emacs-devel@gnu.org; Tue, 05 Sep 2006 21:02:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKloX-0006dO-M4 for emacs-devel@gnu.org; Tue, 05 Sep 2006 21:02:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKloX-0006dL-HP for emacs-devel@gnu.org; Tue, 05 Sep 2006 21:02:49 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GKloZ-00071y-Bg for emacs-devel@gnu.org; Tue, 05 Sep 2006 21:02:51 -0400 Original-Received: from smtp4.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k8612dYe028998; Wed, 6 Sep 2006 10:02:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id k8612buI001114; Wed, 6 Sep 2006 10:02:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1GKlnG-0006Qf-00; Wed, 06 Sep 2006 10:01:30 +0900 Original-To: Reiner Steib In-reply-to: (message from Reiner Steib on Tue, 05 Sep 2006 17:08:40 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59406 Archived-At: In article , Reiner Steib writes: > I just opened the LaTeX file [1] > in Emacs. To my surprise, the non-ASCII characters were not displayed > correctly. The file is encoded in cp858; cp858 is missing in > `latex-inputenc-coding-alist': > ,---- > | ;; ("cp858" . undecided) ; IBM code page 850 but with a euro symbol > `---- > According to the LaTeX *.def files, the only difference between cp850 > and cp858 is the `=E2=82=AC' (EURO SIGN, U+20AC) replacing `=C4=B1' (LATI= N SMALL > LETTER DOTLESS I, U+0131). [2] > May I add the following change? (The "(cp-make-coding-system cp858 > ...)" part is a copy of the corresponding cp850 entry with dotless i > replaced by the EUR sign. > I don't know if a similar change to codepage.el should be done as > well. > 2006-09-05 Reiner Steib > * international/latexenc.el (latex-inputenc-coding-alist): Add cp858. > * international/code-pages.el: Add cp858. As the changes are straight forward, I agree with installing those changes. For codepage.el, if cp858 can also be used on DOS, I think the similar change should be installed. --- Kenichi Handa handa@m17n.org > --8<---------------cut here---------------start------------->8--- > --- international/latexenc.el 9 Aug 2006 01:11:44 -0000 1.16 > +++ international/latexenc.el 5 Sep 2006 14:54:04 -0000 > @@ -63,7 +63,7 @@ > ("cp437" . cp437) ; IBM code page 437: 225 is \beta > ("cp850" . cp850) ; IBM code page 850 > ("cp852" . cp852) ; IBM code page 852 > - ;; ("cp858" . undecided) ; IBM code page 850 but with a euro symbol > + ("cp858" . cp858) ; IBM code page 850 but with a euro symbol > ("cp865" . cp865) ; IBM code page 865 > ;; The DECMultinational charaterset used by the OpenVMS system > ;; ("decmulti" . undecided) > --- international/code-pages.el 19 May 2006 04:24:00 -0000 1.35 > +++ international/code-pages.el 5 Sep 2006 14:54:04 -0000 > @@ -1273,6 +1273,138 @@ > ?\=E2=96=A0 > ?\=C2=A0]) =20 > +;;;###autoload(autoload-coding-system 'cp858 '(require 'code-pages)) > +(cp-make-coding-system > + cp858 > + [?\=C3=87 > + ?\=C3=BC > + ?\=C3=A9 > + ?\=C3=A2 > + ?\=C3=A4 > + ?\=C3=A0 > + ?\=C3=A5 > + ?\=C3=A7 > + ?\=C3=AA > + ?\=C3=AB > + ?\=C3=A8 > + ?\=C3=AF > + ?\=C3=AE > + ?\=C3=AC > + ?\=C3=84 > + ?\=C3=85 > + ?\=C3=89 > + ?\=C3=A6 > + ?\=C3=86 > + ?\=C3=B4 > + ?\=C3=B6 > + ?\=C3=B2 > + ?\=C3=BB > + ?\=C3=B9 > + ?\=C3=BF > + ?\=C3=96 > + ?\=C3=9C > + ?\=C3=B8 > + ?\=C2=A3 > + ?\=C3=98 > + ?\=C3=97 > + ?\=C6=92 > + ?\=C3=A1 > + ?\=C3=AD > + ?\=C3=B3 > + ?\=C3=BA > + ?\=C3=B1 > + ?\=C3=91 > + ?\=C2=AA > + ?\=C2=BA > + ?\=C2=BF > + ?\=C2=AE > + ?\=C2=AC > + ?\=C2=BD > + ?\=C2=BC > + ?\=C2=A1 > + ?\=C2=AB > + ?\=C2=BB > + ?\=E2=96=91 > + ?\=E2=96=92 > + ?\=E2=96=93 > + ?\=E2=94=82 > + ?\=E2=94=A4 > + ?\=C3=81 > + ?\=C3=82 > + ?\=C3=80 > + ?\=C2=A9 > + ?\=E2=95=A3 > + ?\=E2=95=91 > + ?\=E2=95=97 > + ?\=E2=95=9D > + ?\=C2=A2 > + ?\=C2=A5 > + ?\=E2=94=90 > + ?\=E2=94=94 > + ?\=E2=94=B4 > + ?\=E2=94=AC > + ?\=E2=94=9C > + ?\=E2=94=80 > + ?\=E2=94=BC > + ?\=C3=A3 > + ?\=C3=83 > + ?\=E2=95=9A > + ?\=E2=95=94 > + ?\=E2=95=A9 > + ?\=E2=95=A6 > + ?\=E2=95=A0 > + ?\=E2=95=90 > + ?\=E2=95=AC > + ?\=C2=A4 > + ?\=C3=B0 > + ?\=C3=90 > + ?\=C3=8A > + ?\=C3=8B > + ?\=C3=88 > + ?\=E2=82=AC > + ?\=C3=8D > + ?\=C3=8E > + ?\=C3=8F > + ?\=E2=94=98 > + ?\=E2=94=8C > + ?\=E2=96=88 > + ?\=E2=96=84 > + ?\=C2=A6 > + ?\=C3=8C > + ?\=E2=96=80 > + ?\=C3=93 > + ?\=C3=9F > + ?\=C3=94 > + ?\=C3=92 > + ?\=C3=B5 > + ?\=C3=95 > + ?\=C2=B5 > + ?\=C3=BE > + ?\=C3=9E > + ?\=C3=9A > + ?\=C3=9B > + ?\=C3=99 > + ?\=C3=BD > + ?\=C3=9D > + ?\=C2=AF > + ?\=C2=B4 > + ?\=C2=AD > + ?\=C2=B1 > + ?\=E2=80=97 > + ?\=C2=BE > + ?\=C2=B6 > + ?\=C2=A7 > + ?\=C3=B7 > + ?\=C2=B8 > + ?\=C2=B0 > + ?\=C2=A8 > + ?\=C2=B7 > + ?\=C2=B9 > + ?\=C2=B3 > + ?\=C2=B2 > + ?\=E2=96=A0 > + ?\=C2=A0]) > + > ;;;###autoload(autoload-coding-system 'cp860 '(require 'code-pages)) > (cp-make-coding-system > cp860 > --8<---------------cut here---------------end--------------->8--- > Bye, Reiner. > [1] > ,----[ http://home.vr-web.de/was/x/bad.tex ] > | \documentclass[a4paper,twoside]{article} > | \usepackage[cp858]{inputenc} % OS/2 (sic!) > | [...] > `---- > [2] From TeXlive 2005: > ,----[ diff -U0 texmf-dist/tex/latex/base/{cp850,cp858}.def ] > | --- texmf-dist/tex/latex/base/cp850.def 2004-03-02 00:28:48.000000000 += 0100 > | +++ texmf-dist/tex/latex/base/cp858.def 2004-03-02 00:28:48.000000000 += 0100 > | @@ -2 +2 @@ > | -%% This is file `cp850.def', > | +%% This is file `cp858.def', > | @@ -7 +7 @@ > | -%% inputenc.dtx (with options: `cp850') > | +%% inputenc.dtx (with options: `cp858') > | @@ -54 +54 @@ > | - \ProvidesFile{cp850.def} > | + \ProvidesFile{cp858.def} > | @@ -56,3 +55,0 @@ > | -%% > | -%% If you need a euro symbol, try cp858 instead. > | -%% > | @@ -137 +134 @@ > | -\DeclareInputText{213}{\i} > | +\DeclareInputText{213}{\texteuro} > | @@ -180 +177 @@ > | -%% End of file `cp850.def'. > | +%% End of file `cp858.def'. > `---- > --=20 > ,,, > (o o) > ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel