X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fpatches%2Flltjp-unicode-math.sty;h=beb3261cf624296532b49b671b08b89f55278d19;hb=23c26360244f7f15daca59158fcb2bd51d71ab7a;hp=ff8ad2dd8df30ca69bafcd4940f9975936dc6040;hpb=5b9f51e9f262df7fe3adea0956afb59ba9d2dede;p=luatex-ja%2Fluatexja.git diff --git a/src/patches/lltjp-unicode-math.sty b/src/patches/lltjp-unicode-math.sty index ff8ad2d..beb3261 100644 --- a/src/patches/lltjp-unicode-math.sty +++ b/src/patches/lltjp-unicode-math.sty @@ -24,11 +24,14 @@ \directlua{luatexja.math.is_math_letters[\int_eval:n {#4}]=true} } \group_begin: - \char_set_catcode_other:N \^ - \gdef\q{hoge}\gdef\r{piyo} \cs_gset:Npn \um_cs_set_eq_active_char:Nw #1 = "#2 \q_nil {%" - \tl_set:Nn \l_tmpa_tl {\ifmmode\char"#2\else\ltjalchar"#2\relax\fi} - \cs_gset_eq:NN #1 \l_tmpa_tl + \group_begin: + \char_set_lccode:nn { `! } { "#2 } + \tex_lowercase:D { + \tl_set:Nn \l_tmpa_tl {\ifmmode!\else{\directlua{tex.globaldefs = 0}\ltj@allalchar!}\fi} + \cs_gset_eq:NN #1 \l_tmpa_tl + } + \group_end: } \group_end: