summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex/optex/base/prefixed.opm')
-rw-r--r--Master/texmf-dist/tex/luatex/optex/base/prefixed.opm10
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm b/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm
index f3ed071be03..8eb851cc2ab 100644
--- a/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm
+++ b/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm
@@ -74,7 +74,7 @@
Now, we define the macros
\`\_namespace` `{<pkg label>}`, \`\_resetnamespace` `{<pkg label>}`, \`\_endnamespace`,
\`\_nspublic` and \`\_nsprivate`
- for package writers, see section~\ref[pkg-namespace].
+ for package writers, see section~\ref[pkg-namespace].{\hbadness=2200\par}
\_cod -----------------------------
\_def \_pkglabel{}
@@ -88,14 +88,14 @@
\_ea \_gdef \_csname namesp:#1\_endcsname {}%
\_gdef \_pkglabel{_#1}%
\_directlua{
- callback.register_x("process_input_buffer",
+ callback.add_to_callback("process_input_buffer",
function (str)
return string.gsub(str, "\_nbb[.]([a-zA-Z])", "\_nbb _#1_\_pcent 1")
- end )
+ end, "_namespace")
}%
}
\_def\_endnamespace {%
- \_ifmathsb \_mathsbon \_else \_mathsboff \_fi
+ \_directlua{ callback.remove_from_callback("process_input_buffer", "_namespace") }%
\_gdef \_pkglabel{}%
}
@@ -168,7 +168,7 @@ example `\my_control_sequence`, but with the following exceptions:
\begitems
* Control sequences which begin with `_` are reserved for \TeX/ primitives,
- \OpTeX/ internal macros and macro package writers.
+ \OpTeX/ internal macros and packages internal macros.
* Control sequences (terminated by non-letter) in the form
`\<word>_` or `\<word>_<one-letter>`, where
<word> is a sequence of letters, are inaccessible, because they