[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto-coding-function for LaTeX

From: Reiner Steib
Subject: Re: auto-coding-function for LaTeX
Date: Fri, 12 Nov 2004 21:51:09 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

On Fri, Nov 12 2004, Arne Jørgensen wrote:

> None of the coding systems you added are present in my Emacs. So why
> add them? To make it easier for a user to customized when/if they are
> added? Or are they present in your Emacs?

All mentioned cp* codings are available, but not by default, see `M-x
codepage-setup RET TAB TAB'.  I don't know if there is some mechanism
in Emacs call `codepage-setup' automatically.

I'm not sure about the cp437 vs. cp437de issue (β = \beta vs. ß = \ss
= S SHARP).  Maybe this is good enough, see [1].  It seems that both,
`code-pages.el' and `codepage.el', use S SHARP.

> The re-search-forward searches until position 1000.  Should that
> number be customizable? The functions in `auto-coding-alist' get an
> argument of 249 for number of positions to search, but I think that
> is not enough for LaTeX files.

Yes, a limit of 249 surely is not enough for typical LaTeX files.
Maybe the search could stop either at a certain number or when
"\begin{document}" was found.  It should also be checked that the
"inputenc cookie" isn't a LaTeX comment.

If your code cannot be integrated in Emacs, I would propose to add it
to AUCTeX.

Bye, Reiner.

[1] See e.g. this article by Markus Kuhn in a German newsgroup:

,----[ Translation of the most relevant part: ]
| Microsoft Code Page 437 officially contains LATIN SMALL LETTER SHARP
| S on position 0xE1 (though the designers of IBM CGA card ROM's
| apparently thought more of a beta at that time (~1979)).  Many
| conversation programs ([...]) map both s sharp (U+00DF) and beta
| (U+03B2) to 0xE1 in CP437.  Hopefully GNU iconv starting from glibc
| 2.2 will get this right.

,----[ Original article: ]
| From: address@hidden (Markus Kuhn)
| Subject: Re: recode latin1:cp437 und 'ß'
| Newsgroups: de.comp.os.unix.apps, de.comp.standards
| Date: 2000/04/22
| Message-ID: <address@hidden>
| >> Georg Schwarz <address@hidden> wrote:
| >> 
| >> > Wenn ich Text auf einem Epson Stylus 800+ direkt drucke, schiebt der
| >> > Druckertreiber ihn zunächst durch recode latin1:cp437 (GNU recode
| >> > 3.4.1). Allerdings wird ein 'ß' nicht korrekt ausgegeben. Ich denke daß
| >> > code page 437 gar kein ß enthält.
| Microsoft Code Page 437 enthält offiziell LATIN SMALL LETTER SHARP S auf
| position 0xE1 (auch wenn die Designer des IBM CGA-Karten ROM's
| offensichtlich damals (~1979) eher wohl an ein beta gedacht haben).
| Sehr gute Konvertierprogramme (und dazu darf man GNU recode 3.5 wegen
| der vielen Fehler in den zudem nur injektiven Tabellen leider
| noch nicht zaehlen!) mappen sowohl das scharfe s (U+00DF) als auch as
| kleine beta (U+03B2) auf 0xE1 in CP437. GNU iconv wird das hoffentlich
| ab glibc 2.2 entlich richtig hinkriegen.
| [...]
| Quellen:
|   ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP437.TXT
|   ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP850.TXT
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]