% Synthetic glyph-edit demonstrations; no historical readings are asserted.
% Copyright 2026 OpenGlyph contributors. MIT.
\documentclass[UTF8,fontset=fandol]{ctexart}
\usepackage[a4paper,margin=25mm]{geometry}
\usepackage{openglyph}
\usepackage[unicode]{hyperref}
\OpenGlyphLoad{ebag}
\OpenGlyphLoad{examples/myglyphs}
\title{OpenGlyph：古文字的代码输入与字体排印}
\author{OpenGlyph contributors\\维护者：Zejia FAN}
\date{v0.2.1 CTAN 提交候选版 · 2026 年 10 月 28 日}
\begin{document}
\maketitle
\section{已有字形直接进入正文}
已有隶定字可以用 ASCII 编号写进论文：\ebag{s030-067}、\ebag{s131-009}、\ebag{s162-428}。
这些都是字体中的矢量字形，不是图片。来源编号不是标准 Unicode 身份，也不代表已经核定了文献释读。
\begin{verbatim}
\usepackage{openglyph}
\OpenGlyphLoad{ebag}
\end{verbatim}
正文写 \verb|\ebag{s030-067}| 即可。普通论文编译不联网，不需要 Python、Node 或模型。

\section{不存在的形，用部件程序造出来}
以下四个新形分别编辑同一个底字，仅用于演示；不虚构出处与读音。
\begin{center}
\renewcommand{\arraystretch}{2.8}
\begin{tabular}{lcc}
操作 & 编辑前 & 编辑后\\\hline
换部件 & {\Huge\ebag{s030-067}} & {\Huge\gwglyph{my:n1}}\\
添饰笔 & {\Huge\ebag{s030-067}} & {\Huge\gwglyph{my:n2}}\\
删一笔 & {\Huge\ebag{s030-067}} & {\Huge\gwglyph{my:n3}}\\
调比例 & {\Huge\ebag{s030-067}} & {\Huge\gwglyph{my:n4}}\\
\end{tabular}
\end{center}
生成字库后，导言区写 \verb|\OpenGlyphLoad{examples/myglyphs}|，
正文用 \verb|\gwglyph{my:n2}|，即可排出\gwglyph{my:n2}。
脚注也可使用\footnote{底字\ebag{s030-067}，演示新形\gwglyph{my:n2}。}。

\section{研究者仍要核对}
编译通过只表示程序、映射与字体可用，不表示字形与原文一致。尤其要核对连接、孔洞、饰笔和缺笔。
PDF 内嵌字体；共享可编辑源稿时必须随附对应字库。PUA 是字体内部地址，不能当作国际通用的字身份。
本包不负责整篇竖排、OCR 或自动释读。字体与程序来源见英文手册及许可文件。
\end{document}
