[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * doc/texinfo.tex (\code, \dashnobreak): Use a \p
From: |
Gavin D. Smith |
Subject: |
branch master updated: * doc/texinfo.tex (\code, \dashnobreak): Use a \penalty to disable hyphenation for LuaTeX. |
Date: |
Mon, 19 Dec 2022 17:34:32 -0500 |
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 e535fc0e5e * doc/texinfo.tex (\code, \dashnobreak): Use a \penalty to
disable hyphenation for LuaTeX.
e535fc0e5e is described below
commit e535fc0e5eea10eb932bce7ea5f30de90fa82ab1
Author: Werner Lemberg <wl@gnu.org>
AuthorDate: Mon Dec 19 22:34:10 2022 +0000
* doc/texinfo.tex (\code, \dashnobreak): Use a \penalty to disable
hyphenation for LuaTeX.
---
ChangeLog | 5 +++++
doc/texinfo.tex | 10 ++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 62629c55c6..a59d31ed76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-11-19 Werner Lemberg <wl@gnu.org>
+
+ * doc/texinfo.tex (\code, \dashnobreak): Use a \penalty to disable
+ hyphenation for LuaTeX.
+
2022-12-19 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/DocBook.pm (_convert): use <sidebar> for
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index dcedf2d724..3e0f1c53b0 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-12-17.18}
+\def\texinfoversion{2022-12-19.22}
%
% Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc.
%
@@ -2901,6 +2901,12 @@ end
\null % reset spacefactor to 1000
}
+% This is for LuaTeX: It is not sufficient to disable hyphenation at
+% explicit dashes by setting `\hyphenchar` to -1.
+\def\dashnobreak{%
+ \normaldash
+ \penalty 10000 }
+
% We must turn on hyphenation at `-' and `_' in @code.
% Otherwise, it is too hard to avoid overfull hboxes
% in the Emacs manual, the Library manual, etc.
@@ -2921,7 +2927,7 @@ end
\let-\codedash
\let_\codeunder
\else
- \let-\normaldash
+ \let-\dashnobreak
\let_\realunder
\fi
% Given -foo (with a single dash), we do not want to allow a break
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * doc/texinfo.tex (\code, \dashnobreak): Use a \penalty to disable hyphenation for LuaTeX.,
Gavin D. Smith <=