[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
declaration.
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
'coding:'.
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/
- texinfo should support Emacs coding specifier,
Per Bothner <=
Change the recommended first line? (was: texinfo should support Emacs coding specifier), Mathieu Lirzin, 2015/12/26