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 | |
%
|