summaryrefslogtreecommitdiff
path: root/macros/optex/base/plain-macros.opm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/optex/base/plain-macros.opm')
-rw-r--r--macros/optex/base/plain-macros.opm27
1 files changed, 21 insertions, 6 deletions
diff --git a/macros/optex/base/plain-macros.opm b/macros/optex/base/plain-macros.opm
index b878d96ce8..2f4d2da65c 100644
--- a/macros/optex/base/plain-macros.opm
+++ b/macros/optex/base/plain-macros.opm
@@ -1,6 +1,6 @@
%% This is part of the OpTeX project, see http://petr.olsak.net/optex
-\_codedecl \magstep {Macros from plain TeX <2021-04-09>} % preloaded in format
+\_codedecl \magstep {Macros from plain TeX <2021-09-24>} % preloaded in format
\_doc -----------------------------
The \`\dospecials` works like in plain TeX but does nothing with `_`.
@@ -48,11 +48,11 @@
Plain \TeX/ classical \`\obeylines` and \`\obeyspaces`.
\_cod -----------------------------
-% In \obeylines, we say `\let^^M=\par' instead of `\def^^M{\par}'
-% since this allows, for example, `\let\par=\cr \obeylines \halign{...'
+% In \obeylines, we say `\let^^M=\_par' instead of `\def^^M{\_par}'
+% since this allows, for example, `\let\_par=\cr \obeylines \halign{...'
{\_catcode`\^^M=13 % these lines must end with %
\_gdef\_obeylines{\_catcode`\^^M=13\_let^^M\_par}%
- \_global\_let^^M=\par} % this is in case ^^M appears in a \write
+ \_global\_let^^M=\_par} % this is in case ^^M appears in a \write
\_def\_obeyspaces{\_catcode`\ =13 }
{\_obeyspaces\_global\_let =\_space}
\_public \obeylines \obeyspaces ;
@@ -210,8 +210,7 @@
\_def\_{\_hbox{_}}
\_def\dag{\_errmessage{\_usedirectly †}}
\_def\ddag{\_errmessage{\_usedirectly ‡}}
-%\_def\copyright{\_errmessage{\_usedirectly ©}}
-\_def\copyright{©} % << example, what to do
+\_def\copyright{\_errmessage{\_usedirectly ©}}
%\_def\Orb{\_mathhexbox20D} % obsolete (part of Copyright)
%\_def\P{\_mathhexbox27B} % obsolete
@@ -220,6 +219,21 @@
\_public \mathhexbox ;
\_doc -----------------------------
+ The \`\_unichars` macro is run in \^`\initunifonts`,
+ Unicodes are used instead old plain \TeX/ settings.
+ \_cod -----------------------------
+
+\def\_unichars{% characters with different codes in Unicode:
+ \_chardef\ss=`ß
+ \_chardef\oe=`œ
+ \_chardef\OE=`Œ
+ \_chardef\S=`§
+ \_chardef\dag`†
+ \_chardef\ddag`‡
+ \_chardef\copyright`©
+}
+
+ \_doc -----------------------------
Accents.
The macros \`\ooalign`, \`\d`, \`\b`, \`\c`, \`\dots`,
are defined for backward compatibility.
@@ -344,5 +358,6 @@
\_endcode % -------------------------------------
+2021-09-24 ... \_unichars introduced
2021-04-09 ... \_public\showhyphens, bug fixed
2020-02-14 ... released