[Top][All Lists]

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

texinfo should support Emacs coding specifier

From: Per Bothner
Subject: texinfo should support Emacs coding specifier
Date: Fri, 25 Dec 2015 15:22:48 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

There is an Emacs standard for specifying the character encoding of a file,
by putting 'coding: ENCODING' in the mode specifier.
The texinfo specification should follow this standard; it is extra
weird to not do so when the texinfo specification does require a mode 

I.e. following file-start should be allowed - and recommended:

\input texinfo.tex      @c -*-texinfo; coding: utf8 -*-

The existing @documentencoding works, but that does not preclude using 
For one thing: The texinfo manual has a buglet: The @section title is
'Set Input Encoding' when it should be 'Set Input and Output Encoding'.

I suggest semi-deprecating @documentencoding in the sense that a 'coding:'
declaration is preferred and has the same effect.

If a file has both a 'coding:' specifier and @documentencoding, then the
'coding:" specifier applies to the input encoding, and @documentencoding
applies to the *output* encoding only.
        --Per Bothner
address@hidden   http://per.bothner.com/

reply via email to

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