• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: Commit

ソースコードの管理場所


Commit MetaInfo

Revisioncb2e4926af02164cc30f85cf1e57ea9d8ea9ff87 (tree)
Time2018-08-24 12:35:22
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

patches: simplified

Change Summary

Incremental Difference

--- a/src/patches/lltjp-fontspec.sty
+++ b/src/patches/lltjp-fontspec.sty
@@ -1,9 +1,8 @@
11 %
2-% lltjp-fontspec.sty
2+% lltjp-fontspec.sty 2018-08-24
33 %
44
55 \NeedsTeXFormat{LaTeX2e}
6-%\ProvidesPackage{lltjp-fontspec}[2017/08/24 Patch to fontspec for LuaTeX-ja]
76
87 \RequirePackage{fontspec,luatexja}
98 \ExplSyntaxOn
--- a/src/patches/lltjp-listings.sty
+++ b/src/patches/lltjp-listings.sty
@@ -1,9 +1,8 @@
11 %
2-% lltjp-listings.sty
2+% lltjp-listings.sty 2017-05-05
33 %
44
55 \NeedsTeXFormat{LaTeX2e}
6-\ProvidesPackage{lltjp-listings}[2017/05/05 Patch to listings for LuaTeX-ja]
76 \RequirePackage{listings,luatexbase-cctb}
87
98 %%%%%%%%%%%%%%%% Japanese support
--- a/src/patches/lltjp-siunitx.sty
+++ b/src/patches/lltjp-siunitx.sty
@@ -1,5 +1,5 @@
11 %
2-% lltjp-siunitx.sty
2+% lltjp-siunitx.sty 2018-08-24
33 %
44
55 \NeedsTeXFormat{LaTeX2e}
--- a/src/patches/lltjp-stfloats.sty
+++ b/src/patches/lltjp-stfloats.sty
@@ -1,9 +1,8 @@
11 %
2-% lltjp-stfloats.sty
2+% lltjp-stfloats.sty 2017-05-05
33 %
44
55 \NeedsTeXFormat{LaTeX2e}
6-\ProvidesPackage{lltjp-stfloats}[2017/05/05 Patch to stfloats for LuaTeX-ja]
76
87 \RequirePackage{stfloats,luatexja}
98 \RequirePackage{etoolbox}
--- a/src/patches/lltjp-unicode-math.sty
+++ b/src/patches/lltjp-unicode-math.sty
@@ -1,69 +1,41 @@
11 %
2-% lltjp-unicode-math.sty
2+% lltjp-unicode-math.sty 2018-08-24
33 %
44
55 \NeedsTeXFormat{LaTeX2e}
6-\ProvidesPackage{lltjp-unicode-math-immediate}[2018/08/23 Patch to unicode-math for LuaTeX-ja]
76
87 \RequirePackage{unicode-math,luatexja,etoolbox}
98
109 \ExplSyntaxOn
1110
12-\group_begin:
13- \bool_new:N \__lltjp_um_patch_mathgroup_bool
14- \bool_set_true:N \__lltjp_um_patch_mathgroup_bool
15- \cs_gset:Nn \__um_set_delcode:nnn
16- {
17- \Udelcode#2 = \csname sym#1\endcsname #3 \scan_stop:
18- \ltjsetmathletter{ #3 }
19- }
20- \cs_gset:Nn \__um_radical:nn
21- {
22- \Uradical \csname sym#1\endcsname #2 \scan_stop:
23- \ltjsetmathletter{ #2 }
24- }
25- \cs_gset:Nn \__um_delimiter:Nnn
26- {
27- \Udelimiter \mathchar@type#1 \csname sym#2\endcsname #3 \scan_stop:
28- \ltjsetmathletter{ #3 }
29- }
30- \cs_gset:Nn \__um_accent:nnn
31- {
32- \Umathaccent #1~ \mathchar@type\mathaccent \use:c { sym #2 } #3 \scan_stop:
33- \ltjsetmathletter{ #3 }
34- }
35- \cs_gset:Nn \__um_define_math_chars: {
36- \group_begin:
37- \cs_set:Npn \__um_sym:nnn ##1##2##3
38- {
39- \tl_if_in:nnT
40- { \mathord \mathalpha \mathbin \mathrel \mathpunct \mathop \mathfence }
41- {##3}
42- {
43- \exp_last_unbraced:NNx \cs_gset_eq:NN ##2 { \char_generate:nn {##1} {12} }
44- \ltjsetmathletter{ ##1 }
45- }
46- }
47- \__um_input_math_symbol_table:
48- \group_end:
49- }
50-
51-\bool_if:NT \__lltjp_um_patch_mathgroup_bool {
52- \cs_gset:Npn \use@mathgroup #1 #2
53- {
54- %\typeout{UM <#1><#2>}
55- \mode_if_math:T % <- not sure if this is really necessary since we've just checked for mmode and raised an error if not!
11+\cs_set:Nn \__um_define_math_chars: {
12+ \group_begin:
13+ \cs_set:Npn \__um_sym:nnn ##1##2##3
5614 {
57- \math@bgroup
58- \cs_if_eq:cNF {M@\f@encoding} #1 {#1}
59- \__um_switchto_literal:
60- \ltj@tempcnta=#2 \expandafter\ltj@@mathJapaneseFonts\string#1\relax%
61- \ifin@ \jfam #2 \relax \else \mathgroup #2 \relax \fi
62- \math@egroup
15+ \ltjsetmathletter{ ##1 }
16+ \tl_if_in:nnT
17+ { \mathord \mathalpha \mathbin \mathrel \mathpunct \mathop \mathfence }
18+ {##3}
19+ {
20+ \exp_last_unbraced:NNx \cs_gset_eq:NN ##2 { \char_generate:nn {##1} {12} }
21+ }
6322 }
23+ \__um_input_math_symbol_table:
24+ \group_end:
25+}
26+\cs_set:Npn \use@mathgroup #1 #2
27+{
28+ %\typeout{UM <#1><#2>}
29+ \mode_if_math:T % <- not sure
30+ {
31+ \math@bgroup
32+ \cs_if_eq:cNF {M@\f@encoding} #1 {#1}
33+ \__um_switchto_literal:
34+ \ltj@tempcnta=#2 \expandafter\ltj@@mathJapaneseFonts\string#1\relax%
35+ \ifin@ \jfam #2 \relax \else \mathgroup #2 \relax \fi
36+ \math@egroup
6437 }
6538 }
66-\group_end:
6739
6840 \ifcsname jsc@mag@xrealtrue \endcsname \else
6941 \expandafter\expandafter\expandafter \ExplSyntaxOff \expandafter \endinput
Show on old repository browser