From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Adding cp858? Date: Tue, 05 Sep 2006 17:08:40 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1157469231 14906 80.91.229.2 (5 Sep 2006 15:13:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2006 15:13:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 05 17:13:50 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 1GKcc3-0001Is-Lu for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 17:13:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKcc2-00088u-SM for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 11:13:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKcar-0007SP-Sx for emacs-devel@gnu.org; Tue, 05 Sep 2006 11:12:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKcar-0007Ru-52 for emacs-devel@gnu.org; Tue, 05 Sep 2006 11:12:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKcaq-0007Rl-UQ for emacs-devel@gnu.org; Tue, 05 Sep 2006 11:12:04 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GKclc-0004Qw-9O for emacs-devel@gnu.org; Tue, 05 Sep 2006 11:23:12 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GKcaA-0000hj-00 for emacs-devel@gnu.org; Tue, 05 Sep 2006 17:11:22 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Sep 2006 17:11:21 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Sep 2006 17:11:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 222 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:z5nmtl8fzCwDfWDoVJgFUEJGat8= 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:59376 Archived-At: Hi, 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 `€' (EURO SIGN, U+20AC) replacing `ı' (LATIN 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. --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 @@ ?\■ ?\ ]) +;;;###autoload(autoload-coding-system 'cp858 '(require 'code-pages)) +(cp-make-coding-system + cp858 + [?\Ç + ?\ü + ?\é + ?\â + ?\ä + ?\à + ?\å + ?\ç + ?\ê + ?\ë + ?\è + ?\ï + ?\î + ?\ì + ?\Ä + ?\Å + ?\É + ?\æ + ?\Æ + ?\ô + ?\ö + ?\ò + ?\û + ?\ù + ?\ÿ + ?\Ö + ?\Ü + ?\ø + ?\£ + ?\Ø + ?\× + ?\ƒ + ?\á + ?\í + ?\ó + ?\ú + ?\ñ + ?\Ñ + ?\ª + ?\º + ?\¿ + ?\® + ?\¬ + ?\½ + ?\¼ + ?\¡ + ?\« + ?\» + ?\░ + ?\▒ + ?\▓ + ?\│ + ?\┤ + ?\Á + ?\Â + ?\À + ?\© + ?\╣ + ?\║ + ?\╗ + ?\╝ + ?\¢ + ?\¥ + ?\┐ + ?\└ + ?\┴ + ?\┬ + ?\├ + ?\─ + ?\┼ + ?\ã + ?\Ã + ?\╚ + ?\╔ + ?\╩ + ?\╦ + ?\╠ + ?\═ + ?\╬ + ?\¤ + ?\ð + ?\Ð + ?\Ê + ?\Ë + ?\È + ?\€ + ?\Í + ?\Î + ?\Ï + ?\┘ + ?\┌ + ?\█ + ?\▄ + ?\¦ + ?\Ì + ?\▀ + ?\Ó + ?\ß + ?\Ô + ?\Ò + ?\õ + ?\Õ + ?\µ + ?\þ + ?\Þ + ?\Ú + ?\Û + ?\Ù + ?\ý + ?\Ý + ?\¯ + ?\´ + ?\­ + ?\± + ?\‗ + ?\¾ + ?\¶ + ?\§ + ?\÷ + ?\¸ + ?\° + ?\¨ + ?\· + ?\¹ + ?\³ + ?\² + ?\■ + ?\ ]) + ;;;###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'. `---- -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/