Advance native LaTeX execution and preview

This commit is contained in:
gloamxun committed 2026-11-18 22:17:21 +08:00
1 parent 91f9d76b16
commit 2741546ca8
414 files changed
+99872 -933

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
% Native sfcode is consumed by real character and inter-word glue construction.
\catcode123=1 \catcode125=2 \catcode35=6
\font\body=cmr10 \body
\hsize=240pt \parindent=0pt \baselineskip=12pt
\parfillskip=0pt plus1fil \parskip=6pt
\hbadness=10000 \vbadness=10000
\sfcode`\.=3000 \sfcode`\!=3000 \sfcode`\?=3000
\sfcode`\)=0 \sfcode`\]=0
Sentence spacing follows native character codes. Next sentence uses extra
space. An abbreviation A. keeps ordinary spacing. An end.) Next sentence
retains the previous factor through its closing parenthesis.\par
{\sfcode`\.=1000
Local codes use ordinary spacing. Next sentence stays in this local group.
The measured paragraph keeps these spaces after the group closes.\par}
Restored codes produce sentence spacing. Next sentence uses the restored
table without changing the preceding paragraph.\par
\xspaceskip=9pt plus1pt minus1pt
Explicit sentence glue is consumed here. Next sentence uses xspaceskip.
An abbreviation A. still uses the normal font space.\par
\message{Native sfcode construction completed.}
\end