-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
6-inline-directives.tex
37 lines (29 loc) · 2.77 KB
/
6-inline-directives.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\definesection{Inline Directives}
A \g{directive} is an \g{inline directive} if its identification is not bound to \gpl{line}. Unlike \gpl{line directive} therefore it can potentially be identified at any point in a string and span any length. \\
Any \g{textual component} specified by an \g{inline directive} can only contain \gpl{textual component} specified by \gpl{inline directive}. An \g{inline directive} may further restrict which \gpl{directive} may appear within itself. An \g{inline directive} cannot cross the boundaries of another \g{directive} of a different kind. If such a case were to occur, the current \g{inline directive} is forcibly ended without regard for any possible trailing \g{match}. A special exception is made in the case of \gpl{spanning line directive}: since a \g{spanning line directive} is the combination of multiple matches of the same kind on consecutive lines into a singular \g{textual component}, an \g{inline directive} must be allowed to span over multiple matches.
\definesubsubsection{Surrounding Inline Directives}
An \g{inline directive} is a \g{surrounding inline directive} if its \g{identifier} contains syntactical features around a \g{content binding}. \\
When a \g{surrounding inline directive} is \glink{processing}{processed}, processing begins anew over the \g{content binding} until the the part of the \g{identifier} after the \g{content binding} is \glink{full match}{fully matched}, at which point the \g{resulting textual component} is ended and control is handed back to the \g{standard processing loop}.
\definesubsubsection{Entity Inline Directives}
An \g{inline directive} is an \g{entity inline directive} if its \g{identifier} does not contain any \syntax{binding}s and instead the \g{text} of the \g{resulting textual component} is entirely dependant on the \g{entity inline directive} specification. \\
When a \g{entity inline directive} is \glink{processing}{processed}, the \g{resulting textual component} is ended once the \g{identifier} has been \glink{full match}{fully matched}. Then control is handed back to the \g{standard processing loop}.
\definesubsubsection{Compound Inline Directives}
An \g{inline directive} is a \g{compound inline directive} if its \g{identifier} consists of multiple \syntax{binding}s the contents of which are in some form outputted to the \g{resulting textual component}. \\
\input{6.1-bold.tex}
\input{6.2-italic.tex}
\input{6.3-underline.tex}
\input{6.4-strikethrough.tex}
\input{6.5-code.tex}
\input{6.6-dashes.tex}
\input{6.7-subtext.tex}
\input{6.8-supertext.tex}
\input{6.9-url.tex}
\input{6.10-compound.tex}
\input{6.11-footnote-reference.tex}
\input{6.12-newline.tex}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "markless"
%%% TeX-engine: luatex
%%% TeX-command-extra-options: "-shell-escape"
%%% End: