[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: microtype
From: |
Gavin D. Smith |
Subject: |
branch master updated: microtype |
Date: |
Sun, 25 Sep 2022 05:50:20 -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 806b396107 microtype
806b396107 is described below
commit 806b3961074fe01a3b99b463474c2dd1d1c95d61
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Sep 25 10:50:11 2022 +0100
microtype
* doc/texinfo.tex (@microtype) [pdfTeX, LuaTeX]: For "@microtype on",
use microtypographical features. Set it on by default.
---
ChangeLog | 8 ++++++
doc/texinfo.tex | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 89 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 63782253ae..957e56c6f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-09-25 Karl Berry <karl@freefriends.org>, and
+ Gavin Smith <gavinsmith0123@gmail.com>
+
+ microtype
+
+ * doc/texinfo.tex (@microtype) [pdfTeX, LuaTeX]: For "@microtype on",
+ use microtypographical features. Set it on by default.
+
2022-09-25 Sam James <sam@gentoo.org> (tiny change)
* install-info/install-info.c
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index ea944ac522..10d70f4c19 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -1,9 +1,10 @@
+
% texinfo.tex -- TeX macros to handle Texinfo files.
%
% Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
%
-\def\texinfoversion{2022-09-24.20}
+\def\texinfoversion{2022-09-25.09}
%
% Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc.
%
@@ -11403,6 +11404,85 @@ directory should work if nowhere else does.}
\hfuzz = 1pt
+\message{microtype,}
+
+% protrusion, from Thanh's protcode.tex.
+\def\mtsetprotcode#1{%
+ \rpcode#1`\!=200 \rpcode#1`\,=700 \rpcode#1`\-=700 \rpcode#1`\.=700
+ \rpcode#1`\;=500 \rpcode#1`\:=500 \rpcode#1`\?=200 \lpcode#1`\`=700
+ \rpcode#1`\'=700
+ \lpcode#1 92=500 % ``
+ \rpcode#1 34=500 % ''
+ \rpcode#1 123=300 % --
+ \rpcode#1 124=200 % ---
+ \rpcode#1`\)=50 \rpcode#1`\A=50 \rpcode#1`\F=50 \rpcode#1`\K=50
+ \rpcode#1`\L=50 \rpcode#1`\T=50 \rpcode#1`\V=50 \rpcode#1`\W=50
+ \rpcode#1`\X=50 \rpcode#1`\Y=50 \rpcode#1`\k=50 \rpcode#1`\r=50
+ \rpcode#1`\t=50 \rpcode#1`\v=50 \rpcode#1`\w=50 \rpcode#1`\x=50
+ \rpcode#1`\y=50 \lpcode#1`\(=50 \lpcode#1`\A=50 \lpcode#1`\J=50
+ \lpcode#1`\T=50 \lpcode#1`\V=50 \lpcode#1`\W=50 \lpcode#1`\X=50
+ \lpcode#1`\Y=50 \lpcode#1`\v=50 \lpcode#1`\w=50 \lpcode#1`\x=50
+ \lpcode#1`\y=0
+}
+
+\ifx\luatexversion\thisisundefined
+\ifpdf % pdfTeX
+ \mtsetprotcode\textrm
+ \def\mtfontexpand#1{\pdffontexpand#1 20 20 1 autoexpand\relax}
+\else % TeX
+ \def\mtfontexpand#1{}
+\fi
+\else % LuaTeX
+ \mtsetprotcode\textrm
+ \def\mtfontexpand#1{\expandglyphsinfont#1 20 20 1\relax}
+\fi
+
+
+\newif\ifmicrotype
+
+\def\microtypeON{%
+ \microtypetrue
+ %
+ \ifx\luatexversion\thisisundefined
+ \ifpdf % pdfTeX
+ \pdfadjustspacing=2
+ \fi
+ \else % LuaTeX
+ \adjustspacing=2
+ \fi
+ \mtfontexpand\textrm
+ \mtfontexpand\textsl
+ \mtfontexpand\textbf
+ %
+}
+
+\def\microtypeOFF{%
+ \microtypefalse
+ %
+ \ifx\luatexversion\thisisundefined
+ \ifpdf % pdfTeX
+ \pdfadjustspacing=0
+ \fi
+ \else % LuaTeX
+ \adjustspacing=0
+ \fi
+}
+
+\microtypeON
+
+\parseargdef\microtype{%
+ \def\txiarg{#1}%
+ \ifx\txiarg\onword
+ \microtypeON
+ \else\ifx\txiarg\offword
+ \microtypeOFF
+ \else
+ \errhelp = \EMsimple
+ \errmessage{Unknown @microtype option `\txiarg', must be on|off}%
+ \fi\fi
+}
+
+
\message{and turning on texinfo input format.}
\def^^L{\par} % remove \outer, so ^L can appear in an @comment
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: microtype,
Gavin D. Smith <=