diff options
Diffstat (limited to 'tex/context/base/mkiv/typo-chr.lua')
-rw-r--r-- | tex/context/base/mkiv/typo-chr.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/typo-chr.lua b/tex/context/base/mkiv/typo-chr.lua index 966df6098..7a0f1fd75 100644 --- a/tex/context/base/mkiv/typo-chr.lua +++ b/tex/context/base/mkiv/typo-chr.lua @@ -188,6 +188,14 @@ local function pickup(head,tail,str) end end +local function found(str) + local list = texgetnest() + if list then + local tail = list.tail + return tail and tail[a_marked] == marked[str] + end +end + local actions = { remove = function(specification) local list = texgetnest() @@ -254,6 +262,12 @@ interfaces.implement { arguments = "string", } +interfaces.implement { + name = "doifelsemarkedcontent", + actions = function(str) ctx_doifelse(found(str)) end, + arguments = "string", +} + -- We just put these here. interfaces.implement { |