summaryrefslogtreecommitdiff
path: root/tex/context/base/type-ini.mkvi
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/type-ini.mkvi')
-rw-r--r--tex/context/base/type-ini.mkvi14
1 files changed, 11 insertions, 3 deletions
diff --git a/tex/context/base/type-ini.mkvi b/tex/context/base/type-ini.mkvi
index 8ca42854f..8345a97f9 100644
--- a/tex/context/base/type-ini.mkvi
+++ b/tex/context/base/type-ini.mkvi
@@ -27,6 +27,8 @@
\unprotect
+\definesystemvariable {ts} % TypeScript / for the moment we keep this one
+
\newcount \c_font_typescripts_n_of_preloaded
\newconditional\c_font_typescripts_quit
\newtoks \c_font_typescripts_document
@@ -134,15 +136,21 @@
% The next will change .. we can load a file inside a typescript but as the state is
% 1 then, it doesn't get stored without doing that explicitly
-% \unexpanded\def\loadtypescriptfile[#1]%
-% {\ctxcommand{loadtypescriptfile("#1")}}
-
\unexpanded\def\loadtypescriptfile[#1]%
{\pushmacro\typescriptstate
\let\typescriptstate\plustwo % assumes 2 at the outer level
\ctxcommand{loadtypescriptfile("#1")}%
\popmacro\typescriptstate}
+\unexpanded\def\loadfoundtypescriptfile#1%
+ {\startreadingfile
+ \pushendofline
+ \unprotect
+ \input{#1}%
+ \protect
+ \popendofline
+ \stopreadingfile}
+
\unexpanded\def\quittypescriptscanning
{\settrue\c_font_typescripts_quit} % public