summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/scrp-ini.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/scrp-ini.mkiv')
-rw-r--r--Master/texmf-dist/tex/context/base/scrp-ini.mkiv21
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/context/base/scrp-ini.mkiv b/Master/texmf-dist/tex/context/base/scrp-ini.mkiv
index 0e50452ff3b..8182368d787 100644
--- a/Master/texmf-dist/tex/context/base/scrp-ini.mkiv
+++ b/Master/texmf-dist/tex/context/base/scrp-ini.mkiv
@@ -5,7 +5,7 @@
%D subtitle=Initialization,
%D author=Hans Hagen,
%D date=\currentdate,
-%D copyright=PRAGMA / Hans Hagen]
+%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
@@ -26,7 +26,9 @@
\unprotect
-\installcommandhandler\??ls{script}\??ls
+\installcorenamespace{script}
+
+\installcommandhandler \??script {script} \??script
% presets are global and are currently defined in lua
@@ -34,12 +36,12 @@
\setuevalue\currentscript{\setscript[\currentscript]}%
\to \everydefinescript
-\unexpanded\def\dosetscript
+\unexpanded\def\scripts_basics_set
{\ctxlua{scripts.set("\currentscript","\scriptparameter\c!method","\scriptparameter\c!preset")}}
\unexpanded\def\setscript[#1]%
{\edef\currentscript{#1}%
- \dosetscript}
+ \scripts_basics_set}
\unexpanded\def\resetscript
{\ctxlua{scripts.reset()}}
@@ -47,18 +49,19 @@
\unexpanded\def\startscript[#1]%
{\begingroup
\edef\currentscript{#1}%
- \dosetscript}
+ \scripts_basics_set}
\unexpanded\def\stopscript
{\endgroup}
% \setscript[hangul] \hangul \startscript[hangul]
-\definescript[hangul] [\c!method=hangul]
-\definescript[hanzi] [\c!method=hanzi]
+\definescript[hangul] [\c!method=hangul]
+\definescript[hanzi] [\c!method=hanzi]
+\definescript[nihongo] [\c!method=nihongo]
-\definescript[ethiopic] [\c!method=ethiopic]
+\definescript[ethiopic][\c!method=ethiopic]
-\definescript[latin] [\c!method=] % resets the attribute (also currentscript)
+\definescript[latin] [\c!method=] % resets the attribute (also currentscript)
\protect \endinput