[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * doc/texinfo.tex (\frenchspacing): Save french s
From: |
Gavin D. Smith |
Subject: |
branch master updated: * doc/texinfo.tex (\frenchspacing): Save french spacing setting in \frenchspacingsetting. (\headline, \footline): Restore French spacing setting. (\output, \onepageout): Shorten some comments, including some about old code. |
Date: |
Sat, 17 Sep 2022 07:15:25 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 7fa88e8c5d * doc/texinfo.tex (\frenchspacing): Save french spacing
setting in \frenchspacingsetting. (\headline, \footline): Restore French
spacing setting. (\output, \onepageout): Shorten some comments, including some
about old code.
7fa88e8c5d is described below
commit 7fa88e8c5d69b2f376f7b8c374b5025b8c786a5f
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Sep 17 12:11:02 2022 +0100
* doc/texinfo.tex (\frenchspacing): Save french spacing setting
in \frenchspacingsetting.
(\headline, \footline): Restore French spacing setting.
(\output, \onepageout): Shorten some comments, including some
about old code.
Sentence spacing setting not always obeyed in header reported by
Werner.
---
ChangeLog | 11 ++++++++++
doc/texinfo.tex | 64 ++++++++++++++++++++++++---------------------------------
2 files changed, 38 insertions(+), 37 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 29965c240d..709a597f7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2022-09-17 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * doc/texinfo.tex (\frenchspacing): Save french spacing setting
+ in \frenchspacingsetting.
+ (\headline, \footline): Restore French spacing setting.
+ (\output, \onepageout): Shorten some comments, including some
+ about old code.
+
+ Sentence spacing setting not always obeyed in header reported by
+ Werner.
+
2022-09-16 Patrice Dumas <pertusus@free.fr>
Keep definfoenclose defined commands line numbers
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index c0bc8adb74..2ffb35dc10 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -3,7 +3,7 @@
% Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
%
-\def\texinfoversion{2022-09-15.17}
+\def\texinfoversion{2022-09-17.11}
%
% Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc.
%
@@ -314,16 +314,8 @@
\newbox\footlinebox
% When outputting the double column layout for indices, an output routine
-% is run several times, which hides the original value of \topmark. This
-% can lead to a page heading being output and duplicating the chapter heading
-% of the index. Hence, save the contents of \topmark at the beginning of
-% the output routine. The saved contents are valid until we actually
-% \shipout a page.
-%
-% (We used to run a short output routine to actually set \topmark and
-% \firstmark to the right values, but if this was called with an empty page
-% containing whatsits for writing index entries, the whatsits would be thrown
-% away and the index auxiliary file would remain empty.)
+% is run several times, hiding the original value of \topmark. Hence, save
+% \topmark at the beginning.
%
\newtoks\savedtopmark
\newif\iftopmarksaved
@@ -348,15 +340,9 @@
%
\checkchapterpage
%
- % Retrieve the information for the headings from the marks in the page,
- % and call Plain TeX's \makeheadline and \makefootline, which use the
- % values in \headline and \footline.
- %
- % Common context changes for both heading and footing.
- % Do this outside of the \shipout so @code etc. will be expanded in
- % the headline as they should be, not taken literally (outputting ''code).
+ % Make the heading and footing. \makeheadline and \makefootline
+ % use the contents of \headline and \footline.
\def\commonheadfootline{\let\hsize=\txipagewidth \texinfochars}
- %
\ifodd\pageno \getoddheadingmarks \else \getevenheadingmarks \fi
\global\setbox\headlinebox = \vbox{\commonheadfootline \makeheadline}%
\ifodd\pageno \getoddfootingmarks \else \getevenfootingmarks \fi
@@ -614,21 +600,6 @@
% @? is an end-of-sentence query.
\def\?{?\spacefactor=\endofsentencespacefactor\space}
-% @frenchspacing on|off says whether to put extra space after punctuation.
-%
-\def\onword{on}
-\def\offword{off}
-%
-\parseargdef\frenchspacing{%
- \def\temp{#1}%
- \ifx\temp\onword \plainfrenchspacing
- \else\ifx\temp\offword \plainnonfrenchspacing
- \else
- \errhelp = \EMsimple
- \errmessage{Unknown @frenchspacing option `\temp', must be on|off}%
- \fi\fi
-}
-
% @w prevents a word break. Without the \leavevmode, @w at the
% beginning of a paragraph, when TeX is still in vertical mode, would
% produce a whole line of output instead of starting the paragraph.
@@ -2864,6 +2835,24 @@ end
\catcode`@=\other
\def\endofsentencespacefactor{3000}% default
+% @frenchspacing on|off says whether to put extra space after punctuation.
+%
+\def\onword{on}
+\def\offword{off}
+%
+\let\frenchspacingsetting\plainnonfrenchspacing % used in output routine
+\parseargdef\frenchspacing{%
+ \def\temp{#1}%
+ \ifx\temp\onword \let\frenchspacingsetting\plainfrenchspacing
+ \else\ifx\temp\offword \let\frenchspacingsetting\plainnonfrenchspacing
+ \else
+ \errhelp = \EMsimple
+ \errmessage{Unknown @frenchspacing option `\temp', must be on|off}%
+ \fi\fi
+ \frenchspacingsetting
+}
+
+
% @t, explicit typewriter.
\def\t#1{%
{\tt \defcharsdefault \plainfrenchspacing #1}%
@@ -3840,15 +3829,16 @@ $$%
\newtoks\oddfootline % footline on odd pages
% Now make \makeheadline and \makefootline in Plain TeX use those variables
-\headline={{\textfonts\rm
+\headline={{\textfonts\rm\frenchspacingsetting
\ifchapterpage
\ifodd\pageno\the\oddchapheadline\else\the\evenchapheadline\fi
\else
\ifodd\pageno\the\oddheadline\else\the\evenheadline\fi
\fi}}
-\footline={{\textfonts\rm \ifodd\pageno \the\oddfootline
- \else \the\evenfootline \fi}\HEADINGShook}
+\footline={{\textfonts\rm\frenchspacingsetting
+ \ifodd\pageno \the\oddfootline \else \the\evenfootline \fi}%
+ \HEADINGShook}
\let\HEADINGShook=\relax
% Commands to set those variables.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * doc/texinfo.tex (\frenchspacing): Save french spacing setting in \frenchspacingsetting. (\headline, \footline): Restore French spacing setting. (\output, \onepageout): Shorten some comments, including some about old code.,
Gavin D. Smith <=