From a1be1b3fa2bc6910e7eb3f55da4627f80675b67e Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Sun, 17 Nov 2019 19:01:59 +0100
Subject: added new option 'sep' in \DeclareApparatus; new variable CMP in
 Makefile

---
 ekdosis.dtx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 640b91d..7275754 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -454,7 +454,7 @@ idno={}, msName={}, origDate={}][3]{%
 %    \begin{macrocode}
 \newif\ifekd@mapps
 \newkeycommand+[\|]{\declare@apparatus}[enum direction={LR,RL}, rule={},
-  delim={}, bhook={},
+  delim={}, sep={}, bhook={},
   ehook={\csname ekd@end@apparatus\endcsname}][1]{%
   |\luadirect|{%
     ekdosis.newapparatus(
@@ -462,6 +462,7 @@ idno={}, msName={}, origDate={}][3]{%
     |\luastringN|{\commandkey{direction}},
     |\luastringN|{\commandkey{rule}},
     |\luastringN|{\commandkey{delim}},
+    |\luastringN|{\commandkey{sep}},
     |\luastringN|{\commandkey{bhook}},
     |\luastringN|{\commandkey{ehook}})}
 }
@@ -1853,6 +1854,7 @@ function ekdosis.newapparatus(teitype,
 			      appdir,
 			      apprule,
 			      appdelim,
+			      appsep,
 			      appbhook,
 			      appehook)
    if isintable(apparatuses, teitype)
@@ -1865,6 +1867,7 @@ function ekdosis.newapparatus(teitype,
 				 direction = appdir,
 				 rule = apprule,
 				 delim = appdelim,
+				 sep = appsep,
 				 bhook = appbhook,
 				 ehook = appehook})
    end
@@ -1974,6 +1977,11 @@ function ekdosis.appout()
 		     table.insert(output, "\\csname ekd@default@rule\\endcsname\\NLS\\noindent ")
 		  end
 	       end
+	       if apparatuses[n].sep ~= ""
+	       then
+		  table.insert(output, "\\edef\\ekdsep{" .. apparatuses[n].sep .. "}")
+	       else
+	       end
 	       if apparatuses[n].bhook ~= ""
 	       then
 		  table.insert(output, apparatuses[n].bhook)
-- 
cgit v1.2.3

