Codebase list texinfo / 02cd597
Add LuaTeX support patch It updates Lua 5.3+ based LuaTeX support. YOKOTA Hiroshi authored 4 years ago Norbert Preining committed 4 years ago
3 changed file(s) with 112 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 From: YOKOTA Hiroshi <qykth-git@users.noreply.github.com>
1 Subject: [PATCH] Update LuaTeX support
2
3 * Remove unexpected floating point number to support Lua 5.3+ based LuaTeX
4 * Update LuaTeX hack
5
6 ---
7 doc/texinfo.tex | 8 ++++----
8 doc/txi-ja.tex | 28 ----------------------------
9 2 files changed, 4 insertions(+), 32 deletions(-)
10
11 Index: b/doc/texinfo.tex
12 ===================================================================
13 --- a/doc/texinfo.tex
14 +++ b/doc/texinfo.tex
15 @@ -3,7 +3,7 @@
16 % Load plain if necessary, i.e., if running under initex.
17 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
18 %
19 -\def\texinfoversion{2019-09-08.12}
20 +\def\texinfoversion{2019-09-20.22}
21 %
22 % Copyright 1985, 1986, 1988, 1990-2019 Free Software Foundation, Inc.
23 %
24 @@ -1052,7 +1052,7 @@ where each line of input produces a line
25 tex.sprint(
26 string.format(string.char(0x5c) .. string.char(0x25) .. '03o' ..
27 string.char(0x5c) .. string.char(0x25) .. '03o',
28 - (c / 256), (c % 256)))
29 + math.floor(c / 256), math.floor(c % 256)))
30 else
31 c = c - 0x10000
32 local c_hi = c / 1024 + 0xd800
33 @@ -1062,8 +1062,8 @@ where each line of input produces a line
34 string.char(0x5c) .. string.char(0x25) .. '03o' ..
35 string.char(0x5c) .. string.char(0x25) .. '03o' ..
36 string.char(0x5c) .. string.char(0x25) .. '03o',
37 - (c_hi / 256), (c_hi % 256),
38 - (c_lo / 256), (c_lo % 256)))
39 + math.floor(c_hi / 256), math.floor(c_hi % 256),
40 + math.floor(c_lo / 256), math.floor(c_lo % 256)))
41 end
42 end
43 end
44 Index: b/doc/txi-ja.tex
45 ===================================================================
46 --- a/doc/txi-ja.tex
47 +++ b/doc/txi-ja.tex
48 @@ -191,21 +191,6 @@
49 #1%
50 \parseargline\empty% Insert the \empty token, see \finishparsearg below.
51 }
52 - % Re-define texinfo.tex's \comment
53 - \def\comment{\begingroup \catcode`\^^M=\active%
54 - \ifx\ltjlineendcomment\thisisundefined
55 - % Ignore U+FFFFF for LuaTeX-ja <= 20160208.0
56 - \catcode"FFFFF=9%
57 - \else
58 - % Ignore the character \ltjlineendcomment for LuaTeX-ja > 20160208.0
59 - \catcode\ltjlineendcomment=9%
60 - \fi
61 - \catcode`\@=\other \catcode`\{=\other \catcode`\}=\other\commentxxx}%
62 - % Re-let \comment related macros
63 - \let\setfilename=\comment
64 - \let\dircategory=\comment
65 - \let\definfoenclose=\comment
66 - \let\footnotestyle=\comment
67 % Re-define texinfo.tex's \c
68 \def\c{\begingroup \catcode`\^^M=\active%
69 \ifx\ltjlineendcomment\thisisundefined
70 @@ -218,7 +203,12 @@
71 \catcode`\@=\other \catcode`\{=\other \catcode`\}=\other%
72 \cxxx}
73 % Re-let \c related macro
74 - \let\texinfoc=\c
75 + \let\comment=\c
76 + % Re-let \comment related macros
77 + \let\setfilename=\comment
78 + \let\dircategory=\comment
79 + \let\definfoenclose=\comment
80 + \let\footnotestyle=\comment
81 \fi % LuaTeX
82
83 %
77 doc/short-sample-ja.texi | 2 ++
88 3 files changed, 4 insertions(+)
99
10 --- texinfo.orig/doc/Makefile.am
11 +++ texinfo/doc/Makefile.am
10 Index: b/doc/Makefile.am
11 ===================================================================
12 --- a/doc/Makefile.am
13 +++ b/doc/Makefile.am
1214 @@ -64,6 +64,7 @@ install-tex:
1315 test -n "$(TEXMF)" || (echo "TEXMF must be set." >&2; exit 1)
1416 $(mkinstalldirs) $(DESTDIR)$(texmf_texinfo) $(DESTDIR)$(texmf_dvips)
1719 $(INSTALL_DATA) $(srcdir)/epsf.tex $(DESTDIR)$(texmf_dvips)/epsf.tex
1820 for f in $(TXI_XLATE); do \
1921 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(texmf_texinfo)/$$f; done
20 --- texinfo.orig/doc/Makefile.in
21 +++ texinfo/doc/Makefile.in
22 Index: b/doc/Makefile.in
23 ===================================================================
24 --- a/doc/Makefile.in
25 +++ b/doc/Makefile.in
2226 @@ -1855,6 +1855,7 @@ install-tex:
2327 test -n "$(TEXMF)" || (echo "TEXMF must be set." >&2; exit 1)
2428 $(mkinstalldirs) $(DESTDIR)$(texmf_texinfo) $(DESTDIR)$(texmf_dvips)
2731 $(INSTALL_DATA) $(srcdir)/epsf.tex $(DESTDIR)$(texmf_dvips)/epsf.tex
2832 for f in $(TXI_XLATE); do \
2933 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(texmf_texinfo)/$$f; done
30 --- texinfo.orig/doc/short-sample-ja.texi
31 +++ texinfo/doc/short-sample-ja.texi
34 Index: b/doc/short-sample-ja.texi
35 ===================================================================
36 --- a/doc/short-sample-ja.texi
37 +++ b/doc/short-sample-ja.texi
3238 @@ -3,6 +3,8 @@
3339 @documentencoding UTF-8
3440 @documentlanguage ja
3844 @settitle サンプル マニュアル 1.0 日本語版
3945
4046 @copying
47 @@ -21,14 +23,12 @@ Copyright @copyright{} 2016 Free Softwar
48 @c 最初に目次を出力します。
49 @contents
50
51 -@ifnottex
52 @node Top
53 @top GNU サンプル
54
55 このマニュアルは GNU サンプル
56 (version @value{VERSION}, @value{UPDATED})
57 用です。
58 -@end ifnottex
59
60 @menu
61 * 第一章:: 第一章は
44 #Update-locale-handling-for-Perl-5.28
55 upstream_patch_texi2any_pl
66 install-texinfo-ja
7 Update-LuaTeX-support