From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Adding cp858?
Date: Tue, 05 Sep 2006 17:08:40 +0200 [thread overview]
Message-ID: <v9hczmfj0n.fsf@marauder.physik.uni-ulm.de> (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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[ 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/
next reply other threads:[~2006-09-05 15:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-05 15:08 Reiner Steib [this message]
2006-09-06 1:01 ` Adding cp858? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9hczmfj0n.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.