summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-rul.mkiv
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-09-05 11:09:19 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-09-05 11:09:19 +0200
commit3f59c56887a9a6c4bda68ab8d99e67d2afc902f9 (patch)
treea9198041a82c94d3764733271e203edb8beb79a3 /tex/context/base/mkiv/node-rul.mkiv
parentc209ed36b6aaaa992df8976789c8ba8112f8e5c5 (diff)
downloadcontext-3f59c56887a9a6c4bda68ab8d99e67d2afc902f9.tar.gz
2016-09-05 10:33:00
Diffstat (limited to 'tex/context/base/mkiv/node-rul.mkiv')
-rw-r--r--tex/context/base/mkiv/node-rul.mkiv20
1 files changed, 17 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/node-rul.mkiv b/tex/context/base/mkiv/node-rul.mkiv
index 91b013937..275d8e9f2 100644
--- a/tex/context/base/mkiv/node-rul.mkiv
+++ b/tex/context/base/mkiv/node-rul.mkiv
@@ -131,7 +131,9 @@
{\def\currentbar{#1}\node_rules_define}
\unexpanded\def\node_rules_direct#1%
- {\groupedcommand{\node_rules_set{#1}}\relax}
+ {\groupedcommand
+ {\node_rules_set{#1}\barparameter\c!left}%
+ {\relax\barparameter\c!right}}
\unexpanded\def\node_rules_set#1% maybe reverse the 1000 (also maybe use more attributes instead of settings)
{\edef\currentbar{#1}%
@@ -151,15 +153,19 @@
{\attribute\ruledattribute\attributeunsetvalue}
\unexpanded\def\nobar
- {\groupedcommand\resetbar\relax}
+ {\groupedcommand
+ {\resetbar\barparameter\c!left}%
+ {\relax\barparameter\c!right}}
\unexpanded\def\startbar[#1]%
{\begingroup
\node_rules_set{#1}%
- \ignorespaces}
+ \ignorespaces
+ \barparameter\c!left}
\unexpanded\def\stopbar
{\removeunwantedspaces
+ \barparameter\c!right
\endgroup}
\unexpanded\def\setbar[#1]%
@@ -219,6 +225,14 @@
\definebar[\v!overstrikes] [\v!overstrike] [\c!continue=\v!no]
\definebar[\v!understrikes][\v!understrike][\c!continue=\v!no]
+\definebar
+ [\v!hiddenbar]
+ [\v!underbar]
+ [\c!continue=\v!yes,
+ \c!empty=\v!yes,
+ \c!left=\zwj,
+ \c!right=\zwj]
+
% \setupbar[\v!overstrike][continue=all]
% we want these always so ...