diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-04-03 20:15:06 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-04-03 20:15:06 +0200 |
commit | f1cde6067499874bf126dfc6f5bedb598f117073 (patch) | |
tree | da8b4e8f480df5e4caa8149253ee6711b918784c /tex/context/base/typo-brk.lua | |
parent | d48764d88ac59aa9b0130f1049892296a3eb4684 (diff) | |
download | context-f1cde6067499874bf126dfc6f5bedb598f117073.tar.gz |
2015-04-03 20:04:00
Diffstat (limited to 'tex/context/base/typo-brk.lua')
-rw-r--r-- | tex/context/base/typo-brk.lua | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/tex/context/base/typo-brk.lua b/tex/context/base/typo-brk.lua index 2a9c94c86..a9d775856 100644 --- a/tex/context/base/typo-brk.lua +++ b/tex/context/base/typo-brk.lua @@ -53,6 +53,8 @@ local tasks = nodes.tasks local v_reset = interfaces.variables.reset +local implement = interfaces.implement + local new_penalty = nodepool.penalty local new_glue = nodepool.glue local new_disc = nodepool.disc @@ -319,6 +321,32 @@ end -- interface -commands.definebreakpoints = breakpoints.define -commands.definebreakpoint = breakpoints.setreplacement -commands.setbreakpoints = breakpoints.set +implement { + name = "definebreakpoints", + actions = breakpoints.define, + arguments = "string" +} + +implement { + name = "definebreakpoint", + actions = breakpoints.setreplacement, + arguments = { + "string", + "string", + "string", + { + { "type", "integer" }, + { "nleft" }, + { "nright" }, + { "right" }, + { "left" }, + { "middle" }, + } + } +} + +implement { + name = "setbreakpoints", + actions = breakpoints.set, + arguments = "string" +} |