From 97ee300903cdc0a0052d09ed7c3f7779a303d625 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 10 Jan 2016 00:20:03 -0800 Subject: Fix doc quoting problems with Texinfo 5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this change, in the info file output, Texinfo 5 quotes code in text with undirected single quotes 'like this' and generates code examples that with many PDF readers cannot be cut out of PDFs and pasted into code. * manual/libc.texinfo: Configure the libc manual like the GNU Emacs manual, by using @documentencoding and setting txicodequoteundirected and txicodequotebacktick. This way, Texinfo 5 quotes code in text with directed single quotes ‘like this’ and produces examples that can be cut out of PDFs. This change causes Texinfo 5 to generate info files that contain UTF-8 characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−', '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays. --- manual/libc.texinfo | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'manual/libc.texinfo') diff --git a/manual/libc.texinfo b/manual/libc.texinfo index 573c30f..c4138db 100644 --- a/manual/libc.texinfo +++ b/manual/libc.texinfo @@ -2,6 +2,13 @@ @comment %**start of header (This is for running Texinfo on a region.) @setfilename libc.info @settitle The GNU C Library +@documentencoding UTF-8 +@c '@codequotebacktick on' and '@codequoteundirected on' require +@c Texinfo 5.0 or later, so use the older equivalent @set variables +@c supported in Texinfo 4.11 and later. +@set txicodequoteundirected +@set txicodequotebacktick + @c setchapternewpage odd @include macros.texi -- cgit v1.1