diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-09-11 15:37:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-09-11 15:37:00 +0200 |
commit | 078e25ebc5db0c7097ba08d9a226c676efe2dad6 (patch) | |
tree | c7ef32352278bb3a5cfa4fc68bf169a006067bcb /tex/context/base/typo-itc.lua | |
parent | 3413278eb3639da93bfa6d31d0abb8f9b41b3150 (diff) | |
download | context-078e25ebc5db0c7097ba08d9a226c676efe2dad6.tar.gz |
beta 2013.09.11 15:37
Diffstat (limited to 'tex/context/base/typo-itc.lua')
-rw-r--r-- | tex/context/base/typo-itc.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tex/context/base/typo-itc.lua b/tex/context/base/typo-itc.lua index 9ef0aaed3..452b623c8 100644 --- a/tex/context/base/typo-itc.lua +++ b/tex/context/base/typo-itc.lua @@ -82,7 +82,7 @@ end -- todo: clear attribute -local function process(namespace,attribute,head) +function italics.handler(head) local done = false local italic = 0 local lastfont = nil @@ -121,7 +121,7 @@ local function process(namespace,attribute,head) lastfont = font end if data then - local attr = forcedvariant or current[attribute] + local attr = forcedvariant or current[a_italics] if attr and attr > 0 then local cd = data[char] if not cd then @@ -210,12 +210,6 @@ function italics.reset() texsetattribute(a_italics,unsetvalue) end -italics.handler = nodes.installattributehandler { - name = "italics", - namespace = italics, - processor = process, -} - local variables = interfaces.variables local settings_to_hash = utilities.parsers.settings_to_hash |