OSDN Git Service
(root)
/
luatex-ja
/
luatexja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95df0b7
)
Fix \inhibitglue, \zw, \zh, \ltj[un]setmathletter.
author
Hironori Kitagawa
<h_kitagawa2001@yahoo.co.jp>
Tue, 24 Apr 2012 13:24:51 +0000
(22:24 +0900)
committer
Hironori Kitagawa
<h_kitagawa2001@yahoo.co.jp>
Tue, 24 Apr 2012 13:24:51 +0000
(22:24 +0900)
src/luatexja-core.sty
patch
|
blob
|
history
diff --git
a/src/luatexja-core.sty
b/src/luatexja-core.sty
index
3b57139
..
92ec56d
100644
(file)
--- a/
src/luatexja-core.sty
+++ b/
src/luatexja-core.sty
@@
-195,8
+195,8
@@
\def\ltj@@jfont{\directlua{luatexja.jfont.jfontdefY()}}
%%%%%%%% \zw, \zh
\def\ltj@@jfont{\directlua{luatexja.jfont.jfontdefY()}}
%%%%%%%% \zw, \zh
-\def\zw{\directlua{luatexja.jfont.load_zw()}\ltj@zw}
-\def\zh{\directlua{luatexja.jfont.load_zh()}\ltj@zh}
+\
protected\
def\zw{\directlua{luatexja.jfont.load_zw()}\ltj@zw}
+\
protected\
def\zh{\directlua{luatexja.jfont.load_zh()}\ltj@zh}
%%%%%%%% \inhibitglue
%%%%%%%% \inhibitglue
@@
-207,9
+207,9
@@
\protected\def\inhibitglue{\relax%
\ifvmode
\ltj@reset@globaldefs
\protected\def\inhibitglue{\relax%
\ifvmode
\ltj@reset@globaldefs
- \
xdef\@@tempa{\the\everypar}
%
-
\xdef\@@tempb{\everypar={\@@tempa}\@@tempa
\noexpand\ltj@@ihb}%
- \everypar\expandafter{\
@@tempb
}%
+ \
edef\ltj@@tmp{
%
+
\everypar={\the\everypar}\the\everypar
\noexpand\ltj@@ihb}%
+ \everypar\expandafter{\
ltj@@tmp
}%
\ltj@restore@globaldefs
\else\ifhmode\ltj@@ihb\fi\fi}
\def\ltj@@ihb{\directlua{luatexja.jfmglue.create_inhibitglue_node()}}
\ltj@restore@globaldefs
\else\ifhmode\ltj@@ihb\fi\fi}
\def\ltj@@ihb{\directlua{luatexja.jfmglue.create_inhibitglue_node()}}
@@
-389,7
+389,7
@@
\ltj@@decl@array@param{kcatcode}
\ltj@@decl@array@param{jacharrange}
\ltj@@decl@array@param{chartorange}
\ltj@@decl@array@param{kcatcode}
\ltj@@decl@array@param{jacharrange}
\ltj@@decl@array@param{chartorange}
-\def\ltjgetparameter#1{%
+\
protected\
def\ltjgetparameter#1{%
\ifcsname ltj@@array@param/#1\endcsname
\expandafter\ltx@firstoftwo
\else
\ifcsname ltj@@array@param/#1\endcsname
\expandafter\ltx@firstoftwo
\else
@@
-429,8
+429,8
@@
\def\ltj@@alchar{{\directlua{tex.globaldefs = 0}\ltj@allalchar\ltj@@origchar\ltj@tempcnta}}
%%%%%%%% \ltjsetmathletter<number>, \ltjunsetmathletter<number>
\def\ltj@@alchar{{\directlua{tex.globaldefs = 0}\ltj@allalchar\ltj@@origchar\ltj@tempcnta}}
%%%%%%%% \ltjsetmathletter<number>, \ltjunsetmathletter<number>
-\def\ltjsetmathletter#1{\directlua{luatexja.math.is_math_letters[#1]=true}}
-\def\ltjunsetmathletter#1{\directlua{luatexja.math.is_math_letters[#1]=false}}
+\
protected\
def\ltjsetmathletter#1{\directlua{luatexja.math.is_math_letters[#1]=true}}
+\
protected\
def\ltjunsetmathletter#1{\directlua{luatexja.math.is_math_letters[#1]=false}}
%%------------------ Load module for the format
%%------------------ Load module for the format