unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Adding cp858?
@ 2006-09-05 15:08 Reiner Steib
  2006-09-06  1:01 ` Kenichi Handa
  0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2006-09-05 15:08 UTC (permalink / raw)


Hi,

I just opened the LaTeX file <http://home.vr-web.de/was/x/bad.tex>[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  <Reiner.Steib@gmx.de>

	* 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
+ [?\Ç
+  ?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p860 '(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/

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

end of thread, other threads:[~2006-09-09 12:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-05 15:08 Adding cp858? Reiner Steib
2006-09-06  1:01 ` Kenichi Handa
2006-09-06  9:00   ` Reiner Steib
2006-09-06 18:17     ` Eli Zaretskii
2006-09-07 12:54       ` Reiner Steib
2006-09-09 12:19         ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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