summaryrefslogtreecommitdiff
path: root/tex/context/base/enco-def.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/enco-def.tex')
-rw-r--r--tex/context/base/enco-def.tex16
1 files changed, 16 insertions, 0 deletions
diff --git a/tex/context/base/enco-def.tex b/tex/context/base/enco-def.tex
index c111b6c44..9511f0f58 100644
--- a/tex/context/base/enco-def.tex
+++ b/tex/context/base/enco-def.tex
@@ -895,4 +895,20 @@
\stopencoding
+%D Goodie (makes more sense):
+
+\def\normalcontrolspace
+ {\getglyph{ComputerModernMono}{\char32}}
+
+\def\fakedcontrolspace % can be virtual in luatex
+ {\dontleavehmode\hbox
+ {\scratchdimen.1ex%
+ \kern\scratchdimen
+ \vrule \!!width\scratchdimen \!!height5.5\scratchdimen \!!depth3\scratchdimen
+ \vrule \!!width\dimexpr.5em-4\scratchdimen\relax \!!height-2\scratchdimen \!!depth3\scratchdimen
+ \vrule \!!width\scratchdimen \!!height5.5\scratchdimen \!!depth3\scratchdimen
+ \kern\scratchdimen}}
+
+\def\fakecontrolspace{\let\normalcontrolspace\fakedcontrolspace}
+
\endinput