X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fpatches%2Flltjp-unicode-math.sty;h=d33e44f3787c832e0772492a7cdc510ac7e75e6a;hb=349262f15b7609ebb3166077bf73562a30eb7327;hp=104052a822f38158cb03369fd8f70076e7ebc880;hpb=934e719aea361ab4b8294196d90fe43f2900b64a;p=luatex-ja%2Fluatexja.git diff --git a/src/patches/lltjp-unicode-math.sty b/src/patches/lltjp-unicode-math.sty index 104052a..d33e44f 100644 --- a/src/patches/lltjp-unicode-math.sty +++ b/src/patches/lltjp-unicode-math.sty @@ -3,36 +3,20 @@ % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{lltjp-unicode-math}[2011/11/22 Patch to unicode-math for LuaLaTeX-ja] +\ProvidesPackage{lltjp-unicode-math}[2013/05/14 Patch to unicode-math for LuaTeX-ja] \RequirePackage{unicode-math,luatexja} \ExplSyntaxOn -%%%%%% 以下の3命令の再定義はもはや不要と思われる(北川) -% \cs_set:Npn \um_set_mathcode:nnnn #1#2#3#4 { -% \Umathcode \int_eval:n {#1} = -% \mathchar@type#2 \csname sym#3\endcsname \int_eval:n {#4} \scan_stop: -% \ltjsetmathletter{\int_eval:n {#4}} -% } -% \cs_set:Npn \um_set_mathcode:nnn #1#2#3 { -% \Umathcode \int_eval:n {#1} = -% \mathchar@type#2 \csname sym#3\endcsname \int_eval:n {#1} \scan_stop: -% \ltjsetmathletter{\int_eval:n {#1}} -% } -% \cs_set:Npn \um_set_mathchar:NNnn #1#2#3#4 { -% \Umathchardef #1 = -% \mathchar@type#2 \csname sym#3\endcsname \int_eval:n {#4} \scan_stop: -% \ltjsetmathletter{\int_eval:n {#4}} -% } -%%%%%% \group_begin: \cs_gset:Npn \um_cs_set_eq_active_char:Nw #1 = "#2 \q_nil {%" \group_begin: - %\typeout {um: \string#1, \int_from_hexadecimal:n {#2}} <- for debug - \char_set_lccode:nn { `! } { "#2 } + %\typeout {um: \string#1, \int_from_hexadecimal:n {#2}, #2}% <- for debug + \char_set_lccode:nn { `! } { "#2 }%" \tex_lowercase:D { - \tl_set:Nn \l_tmpa_tl {\ifmmode!\else{\directlua{tex.globaldefs = 0}\ltj@allalchar!}\fi} + \tl_set:Nn \l_tmpa_tl { \relax + \ifmmode!\else{\directlua{tex.globaldefs = 0}\ltj@allalchar!}\fi} \cs_gset_eq:NN #1 \l_tmpa_tl } \ltjsetmathletter{ \int_from_hexadecimal:n {#2} } @@ -41,4 +25,5 @@ \group_end: \ExplSyntaxOff + \endinput