summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-dir.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-09-09 11:46:00 +0200
committerHans Hagen <pragma@wxs.nl>2013-09-09 11:46:00 +0200
commit8c89de4ca033dd31da308b9a3aadca6abd58ccfa (patch)
tree221958556b3efec668c7354f7bb27955f1cae9dc /tex/context/base/typo-dir.mkiv
parentc6ebdfe2b6d339bb36c7a2559c98be3499c49ba9 (diff)
downloadcontext-8c89de4ca033dd31da308b9a3aadca6abd58ccfa.tar.gz
beta 2013.09.09 11:46
Diffstat (limited to 'tex/context/base/typo-dir.mkiv')
-rw-r--r--tex/context/base/typo-dir.mkiv25
1 files changed, 7 insertions, 18 deletions
diff --git a/tex/context/base/typo-dir.mkiv b/tex/context/base/typo-dir.mkiv
index 4dee24c53..2229ed37c 100644
--- a/tex/context/base/typo-dir.mkiv
+++ b/tex/context/base/typo-dir.mkiv
@@ -16,13 +16,14 @@
\unprotect
\registerctxluafile{typo-dir}{1.001}
+\registerctxluafile{typo-dha}{1.001}
+\registerctxluafile{typo-dua}{1.001}
+\registerctxluafile{typo-dub}{1.001}
\definesystemattribute[directions][public]
\installcorenamespace{directions}
\installcorenamespace{directionsbidimode}
-\installcorenamespace{directionsbidimethod}
-\installcorenamespace{directionsbidifences}
% plural as we can have a combination but maybe better singular
@@ -40,22 +41,10 @@
\newconstant\directionsbidimode % this one might become pivate
-% local modes = {
-% method = 1024, -- not used
-% global = 2048,
-% fences = 4096,
-% }
-
-% a = 0
-% a = a + modes.fences
-% a = a + modes.global
-% a = a + 2 -- method 2
-
-% print(a)
-
-% print(number.hasbit(a,modes.fences))
-% print(number.hasbit(a,modes.global))
-% print(a % modes.method)
+% \setupdirections[bidi=global,method=default]
+% \setupdirections[bidi=global,method=one]
+% \setupdirections[bidi=global,method=two]
+% \setupdirections[bidi=global,method=two,fences=no]
\def\typo_dir_get_mode
{\def\currentbidimode{\ctxcommand{getbidimode {