diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-18 22:35:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-18 22:35:48 +0000 |
commit | d40cbce1401307dacf242faddc54bc3eb8651595 (patch) | |
tree | 35f82af7bfd3f3afc76fa87f0d255071422af922 /Master/texmf-dist/tex/luatex/luatexja/ltj-math.lua | |
parent | 8cd524f9b8baa45ef34f1683ca7b2aa151af9098 (diff) |
luatexja (18mar13)
git-svn-id: svn://tug.org/texlive/trunk@29424 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/ltj-math.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luatexja/ltj-math.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/ltj-math.lua b/Master/texmf-dist/tex/luatex/luatexja/ltj-math.lua index 793d6586aa0..14281045797 100644 --- a/Master/texmf-dist/tex/luatex/luatexja/ltj-math.lua +++ b/Master/texmf-dist/tex/luatex/luatexja/ltj-math.lua @@ -89,6 +89,10 @@ local function conv_jchar_to_hbox(head, sty) return head end +local MJT = luatexja.stack_table_index.MJT +local MJS = luatexja.stack_table_index.MJS +local MJSS = luatexja.stack_table_index.MJSS + conv_jchar_to_hbox_A = function (p, sty) if not p then return nil @@ -99,11 +103,7 @@ function (p, sty) elseif p.id == id_mchar then local fam = has_attr(p, attr_jfam) or -1 if (not is_math_letters[p.char]) and ltjc.is_ucs_in_japanese_char(p) and fam>=0 then - local mode = 'mjss' - if sty == 0 then mode = 'mjtext' - elseif sty == 1 then mode = 'mjscr' - end - local f = ltjs.get_penalty_table(mode, fam, -1, tex_getcount('ltj@@stack')) + local f = ltjs.get_penalty_table(MJT + 0x100 * sty + fam, -1, tex_getcount('ltj@@stack')) if f ~= -1 then local q = node_new(id_sub_box) local r = node_new(id_glyph); r.next = nil |