help-texinfo
[Top][All Lists]
Advanced

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

Re: @documentencoding, `makeinfo --enable-encoding' and texi2dvi


From: Reiner Steib
Subject: Re: @documentencoding, `makeinfo --enable-encoding' and texi2dvi
Date: Fri, 29 Aug 2003 15:56:59 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

On Thu, May 01 2003, Karl Berry wrote:

>     Does it make sense to include the following immediately before @bye:
>
>     @ifinfo
>     @example
>     Local Variables:
>     coding: iso-latin-1
>     End:
>     @end example
>     @end ifinfo
>
> See attached patch, or get the current Texinfo sources from savannah cvs
> (https://savannah.gnu.org/cvs/?group=texinfo), and then try makeinfo
> --enable-encoding (and @documentencoding in the source file).

The "Local Variables" section has been created successfully, but the
names of the coding systems are wrong.  Below[1] is a patch against
CVS HEAD (but only tested with texinfo-4.6 sources, because my
autoconf apparently isn't new enough to bootstrap CVS HEAD).
Suggested ChangeLog entry:

--8<---------------cut here---------------start------------->8---
2003-08-29  Reiner Steib  <address@hidden>

        * makeinfo/lang.c: Fix coding system names.
--8<---------------cut here---------------end--------------->8---

> It works for me with @documentencoding ISO-8859-1, 

Maybe Emacs ignores unknown codings in local variables, so it was
`accidentally correct' here. ;-)

> but it does not work with ISO-8859-2.  However, I'm not clear as to
> whether that's simply a function of the font I'm using in my xterm
> (which is ...-iso8859-1).  In general, I'm never sure of my testing
> with different encodings.

If you're using the X11 version (not emacs -nw) you can use:

$ LC_ALL=greek emacs -no-site-file -q -f info

(info)Top will display "7" (7 -- greek-iso-8bit (alias: iso-8859-7))
in the mode line.  When entering a iso-8859-1 node, it should change
to "1" and display e.g. ÄÖÜäöü (AOUaou with diaeresis) correctly.
Else you will see e.g. "Delta" instead of @"A and "phi" instead of @"o
(see the sample file[2] below).

Bye, Reiner.

[1]
--8<---------------cut here---------------start------------->8---
Index: lang.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/makeinfo/lang.c,v
retrieving revision 1.8
diff -u -c -u -r1.8 lang.c
cvs server: conflicting specifications of output style
cvs server: conflicting specifications of output style
--- lang.c      1 May 2003 00:05:27 -0000       1.8
+++ lang.c      29 Aug 2003 13:08:46 -0000
@@ -262,21 +262,21 @@
 encoding_type encoding_table[] = {
   { no_encoding, "(no encoding)", NULL },
   { US_ASCII,    "US-ASCII",    us_ascii_map },
-  { ISO_8859_1,  "ISO-8859-1",  (iso_map_type *) iso8859_1_map },
-  { ISO_8859_2,  "ISO-8859-2",  (iso_map_type *) iso8859_2_map },
-  { ISO_8859_3,  "ISO-8859-3",  NULL },
-  { ISO_8859_4,  "ISO-8859-4",  NULL },
-  { ISO_8859_5,  "ISO-8859-5",  NULL },
-  { ISO_8859_6,  "ISO-8859-6",  NULL },
-  { ISO_8859_7,  "ISO-8859-7",  NULL },
-  { ISO_8859_8,  "ISO-8859-8",  NULL },
-  { ISO_8859_9,  "ISO-8859-9",  NULL },
-  { ISO_8859_10, "ISO-8859-10", NULL },
-  { ISO_8859_11, "ISO-8859-11", NULL },
-  { ISO_8859_12, "ISO-8859-12", NULL },
-  { ISO_8859_13, "ISO-8859-13", NULL },
-  { ISO_8859_14, "ISO-8859-14", NULL },
-  { ISO_8859_15, "ISO-8859-15", NULL },
+  { ISO_8859_1,  "iso-8859-1",  (iso_map_type *) iso8859_1_map },
+  { ISO_8859_2,  "iso-8859-2",  (iso_map_type *) iso8859_2_map },
+  { ISO_8859_3,  "iso-8859-3",  NULL },
+  { ISO_8859_4,  "iso-8859-4",  NULL },
+  { ISO_8859_5,  "iso-8859-5",  NULL },
+  { ISO_8859_6,  "iso-8859-6",  NULL },
+  { ISO_8859_7,  "iso-8859-7",  NULL },
+  { ISO_8859_8,  "iso-8859-8",  NULL },
+  { ISO_8859_9,  "iso-8859-9",  NULL },
+  { ISO_8859_10, "iso-8859-10", NULL },
+  { ISO_8859_11, "iso-8859-11", NULL },
+  { ISO_8859_12, "iso-8859-12", NULL },
+  { ISO_8859_13, "iso-8859-13", NULL },
+  { ISO_8859_14, "iso-8859-14", NULL },
+  { ISO_8859_15, "iso-8859-15", NULL },
   { last_encoding_code, NULL, NULL }
 };
 
--8<---------------cut here---------------end--------------->8---

[2] A sample file:
--8<---------------cut here---------------start------------->8---
\input texinfo   @c -*-texinfo-*-
@documentencoding ISO-8859-1
@node Top, , (dir), (dir)
A diaeresis: -@"A-, direct: -Ä-;
o diaeresis: -@"o-, direct: -ö-;
ssharp: address@hidden, direct: -ß-;
@bye
@c Local Variables:
@c coding: iso-8859-1
@c End:
--8<---------------cut here---------------end--------------->8---
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/





reply via email to

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