<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%#!make ptex-manual.pdf
\documentclass[a4paper,11pt,nomag,dvipdfmx]{jsarticle}
\usepackage[textwidth=42zw,lines=40,truedimen,centering]{geometry}

%%%%%%%%%%%%%%%%
% additional packages
\usepackage{amsmath}
\usepackage{array}\usepackage[all]{xy}
\SelectTips{cm}{}
%\usepackage[dvipdfmx]{graphicx}
\usepackage[T1]{fontenc}
\usepackage{booktabs,enumitem,multicol}
\usepackage[defaultsups]{newpxtext}
\usepackage[zerostyle=c,straightquotes]{newtxtt}
\usepackage{newpxmath}
\usepackage[hyperfootnotes=false]{hyperref}
\usepackage{pxjahyper}
\usepackage{makeidx}\makeindex
% common
\usepackage{ptex-manual}

%%%%%%%%%%%%%%%%
\makeatletter
\setlist{leftmargin=2zw}
\setlist[description]{labelwidth=2zw,labelindent=1zw,topsep=\medskipamount}

\def\tsp{_{\mbox{\fontsize\sf@size\z@\ttfamily \char32}}}
\def\tpar{_{\mbox{\fontsize\sf@size\z@\ttfamily \string\par}}}
\def\tign{_{\mbox{\fontsize\sf@size\z@\selectfont --}}}

\def\tableautorefname{čĄ¨}
\def\figureautorefname{ĺł}
\def\HyRef@autoref#1#2{%
  \begingroup
    \Hy@safe@activestrue
    \expandafter\HyRef@autosetref\csname r@#2\endcsname{#2}{#1}%
  \endgroup\textcompwordmark %ćŹ§ćă´ăźăšă
}
\makeatother

\usepackage{shortvrb}
\MakeShortVerb*{|}
%%%%%%%%%%%%%%%%

\def\_{\leavevmode\vrule width .45em height -.2ex depth .3ex\relax}

\def\Pver{p\the\ptexversion.\the\ptexminorversion\ptexrevision}
\def\UPver{\Pver-u\the\uptexversion\uptexrevision}

\frenchspacing
\begin{document}
\title{\emph{\pTeX ăăăĽă˘ăŤ}}
\author{ćĽćŹčŞ\TeX éçşăłăăĽăăăŁ\null
\thanks{\url{https://texjp.org},\ e-mail: \texttt{issue(at)texjp.org}}}
\date{\pTeX: version \Pver \\ \upTeX: vesrion \UPver \\[1ex] \today}
\maketitle

ćŹăă­ăĽăĄăłăăŻďźćĽćŹčŞ\TeX éçşăłăăĽăăăŁçăŽ
\pTeX~\PverďźäťĽä¸ďźăăłăăĽăăăŁç\pTeX ăďźăăăł
\upTeX~\UPver ăŤă¤ăăŚăžă¨ăăăăŽă§ăăďź

\pTeX ăŻăă¨ăă¨ă˘ăšă­ăźć&nbsp;Şĺźäźç¤žăŤăăŁăŚéçşăăă\footnote{ćć°çăŻ
p3.1.11 (2009/08/17)ďź\url{https://asciidwango.github.io/ptex/}}ăŽă§ďź
ăă°ăă°ăă˘ăšă­ăź\pTeX ăăžăăŻăASCII \pTeX ăă¨ĺźă°ăăďź
ăłăăĽăăăŁç\pTeX ăŻďźćĽćŹčŞ\TeX éçşăłăăĽăăăŁăă˘ăšă­ăź\pTeX ă
ĺ˝éçăŞăăŁăšăăŞăăĽăźăˇă§ăłďźăă¤ăŚăŽte\TeX ăçžĺ¨ăŽ\TeX~Liveďźă¸
ĺ°ĺĽăăăŤăăăŁăŚĺšžă¤ăăŽćščŻăĺ&nbsp;ăăăăŽă§ăăďźăŞăŞă¸ăăŤă¨ăŻ
ĺä˝ăç°ăŞăçšăăăăŽă§ćł¨ćăăăăďź

\upTeX ăŻç°ä¸­ç˘çžć°ăŤăă\pTeX ăŽćĄĺźľçă§ăăďź
\epTeX ăăăł\eupTeX ăŻĺĺˇĺźĺ¸ć°ăŤăăăăăă\pTeX ă¨\upTeX ăŤ
\eTeX ăăăźă¸ăăăćĄĺźľçă§ăăďź
ăăăăŻăăăăăłăăĽăăăŁç\pTeX ăăăźăšăŤéçşăăăŚăăďź
çˇç§°ăăŚă\pTeX çłťĺăă¨ĺźă°ăăďź

ćŹăă­ăĽăĄăłă(\jobname.pdf)ă§ăŻďź\pTeX çłťĺăŤăăăĺąéćŠč˝ă¨
\upTeX ăŤăăćĄĺźľăčŞŹćăăďź% ĺććĺ­ăăźăŻăłăŽćąăăç°ăŞă
\epTeX/\eupTeX ăŤăăćĄĺźľăŤă¤ăăŚăŻeptexdoc.pdfăĺç§ăăăăďź

\begin{itemize}
  \item ăłăăĽăăăŁç\pTeX ăŽéçşĺďź\\
    \url{https://github.com/texjporg/tex-jp-build/}
  \item ćŹăă­ăĽăĄăłăăŽéçşĺďź\\
    \url{https://github.com/texjporg/ptex-manual/}
\end{itemize}

\newpage
\tableofcontents

\newpage

%%%%%
\section*{čĄ¨č¨ăŤă¤ăăŚ}
\pTeX çłťĺăŤă¤ăăŚăŻďźäťĽä¸ăŽăăăŤăžă¨ăăčĄ¨č¨ăăă°ăă°ç¨ăăăăďź
\begin{itemize}
  \item \pTeX, \upTeX â (u)\pTeX
  \item \pTeX, \epTeX â (\eTeXpre)\pTeX
  \item \upTeX, \eupTeX â (\eTeXpre)\upTeX
  \item \epTeX, \eupTeX â \eTeXpre(u)\pTeX
  \item \pTeX, \upTeX, \epTeX, \eupTeX â (\eTeXpre)(u)\pTeX
\end{itemize}

ćŹăă­ăĽăĄăłăă§ăŻďźçšăŤć­ăăŞăéăĺăŤ\pTeX ă¨čĄ¨č¨ăăă°
(\eTeXpre)(u)\pTeX ăŽ4ç¨ŽéĄĺ¨ăŚăćăăă¨ă¨ăăďź
ăžă\upTeX ă¨čĄ¨č¨ăăă°(\eTeXpre)\upTeX ăŽ2ç¨ŽéĄăćăăă¨ă¨ăăďź

ăă&nbsp;ăďźçŻăżă¤ăăŤă§\emph{ă\pTeX ăŽĺ&nbsp;´ĺăă\upTeX ăŽĺ&nbsp;´ĺă}ăŽ
ăăăŤĺĺ˛ăăçŽćăŤă¤ăăŚăŻďź
ăăăă(\eTeXpre)\pTeX ă¨(\eTeXpre)\upTeX ăćăăă¨ă¨ăăďź
ăžăďźďźăăä¸ăŽăăăŤďźĺćăăĺ˝˘ă§č¨ăĺ&nbsp;´ĺăŻ
ăăăăĺçŹăŽă¨ăłă¸ăłăćăďź

\section*{\TeX~LiveăŤăăăéĺ¸}
\def\MODEext{{\tiny ćĄĺźľă˘ăźă}}
çžĺ¨ďź\TeX~Liveă§éĺ¸ăăăŚăăä¸ťčŚăŞă¨ăłă¸ăłă¨
\pTeX çłťĺăŽé˘äżć§ăŻäťĽä¸ăŽĺłă§čĄ¨ăăăďź
çŹçŤăăăă­ă°ăŠă&nbsp;ďźăă¤ăăŞďźă¨ăăŚéĺ¸ăăăŚăăăăŽă
\fbox{ć&nbsp;}ă§ĺ˛ăă§ăăďź\par\vskip-35pt
\[
\xymatrix@ur{
 \text{\fbox{\TeX}}   \ar[r]\ar[d] &amp; \text{\eTeX}   \ar[r]\ar[d]\ar[rd]
   &amp; \text{\fbox{\pdfTeX}} \ar[rd] &amp; \\
 \text{\pTeX}  \ar[r]\ar[d] &amp; \text{\epTeX} \ar[d]
   &amp; \text{\fbox{\hologo{XeTeX}}}       &amp; \text{\fbox{Lua\TeX}} \\
 \text{\upTeX} \ar[r]       &amp; \text{\fbox{\eupTeX}} &amp; &amp; %\\ &amp;&amp;&amp;
}
\]

\TeX~Live 2022ăžă§ăŻ
\pTeX, \upTeX, \epTeX, \eupTeX ăŽ4ç¨ŽéĄăŽă¨ăłă¸ăłă
çŹçŤăăăă­ă°ăŠă&nbsp;ă¨ăăŚéĺ¸ăăăŚăăăďź
\TeX~Live 2023ă§ăŻç´&nbsp;ăŽ\pTeX ă¨\upTeX ăŽéĺ¸ăĺć­˘ăăďź
ăăăă\epTeX ă¨\eupTeX ăŽäşćă˘ăźăăŤç˝Žăćăăăăďź
ăăăŤ\TeX~Live 2024ă§ăŻăŞăŞă¸ăăŤăŽ\epTeX ăŽéĺ¸ăĺć­˘ăăďź
4ç¨ŽéĄăŽă¨ăłă¸ăłăŻĺ¨ăŚ\eupTeX ă¨ăăĺä¸ăŽăă­ă°ăŠă&nbsp;ăŤăă
ă¨ăăĽăŹăźăă¸ă¨ć´çăăăďźčĄ¨ăŤăžă¨ăăă¨ćŹĄăŽăăăŤăŞăďź

\begin{description}\small
 \item[äşćă˘ăźă]
  \eTeX ăŽćĄĺźľă˘ăźă(extended mode)ă§ăŞăçśćďź
  ăăŞăăĄ\code{-etex}ăšă¤ăăçĄĺšçśćďź\\
  äžăă°ďź2022ĺš´ăžă§ăŻăłăăłă\code{ptex}ă§
  \code{This is pTeX, Version ...}ăčľˇĺăăŚăăăďź2023ĺš´ăŻ
  \code{This is e-pTeX, Version ...}ăčľˇĺăăďź
  ăăă&nbsp;ăčŚăă¨ăłăăłă\code{eptex}ă¨äźźăŚăăăďź\code{eptex}ă§ăŻ
  ç´ĺžăŤ\code{entering extended mode}ă¨ćĄĺźľă˘ăźăăŤĺĽăăŽă¨ç°ăŞăďź
  \code{ptex}ă§ăŻćĄĺźľă˘ăźăăŤĺĽăăŞăăŽă§ďź\eTeX çšćăŽ
  ćŠč˝ăăăłăăŞăăăŁăăŻçĄĺšĺăăăçśćă¨ăŞăďź
 \item[ĺé¨ăŹăŹăˇăź]
  (\eTeXpre)\upTeX ăćĺ­ăłăźăăŤé˘ăăĺé¨ĺŚçă
  Unicodeă§ăŻăŞă(\eTeXpre)\pTeX ĺć§ăŽ
  ăŹăŹăˇăźă¨ăłăłăźăăŁăłă°ďźEUC-JPăShift-JISďźă§čĄăăă¨ăćăďź
  ĺé¨ăłăźăăŽĺˇŽç°ă&nbsp;ăă§ăăďźăăŽäťăŽ(\eTeXpre)\upTeX çšćăŽ
  ćŠč˝ăăăłăăŞăăăŁăăŻĺŠç¨ĺŻč˝ăŞçśćă§ăăďź
  ćŹćä¸­\code{-kanji-internal}ăŽčŞŹćăĺç§ďź\\
  äžăă°ďź2023ĺš´ăŽăłăăłă\code{eptex}ă
  \code{This is e-pTeX, Version ... (utf8.euc)}ă§ăăŁăăŞăă°ďź
  2024ĺš´ăŤăŻ
  \code{This is e-upTeX, Version ... (utf8.euc)}ăŤĺ¤ăăŁăŚăăďź
  ä¸ćš\code{euptex}ăŻ
  \code{This is e-upTeX, Version ... (utf8.uptex)}ă§ăăăă
  ĺé¨ăłăźăăç°ăŞăďź
\end{description}
\begin{table}[ht]
  \centering
  \begin{tabular}{cccc}\hline
    \code{ăłăăłăĺ} &amp; \TeX~Live 2022ăžă§ &amp; \TeX~Live 2023 &amp; \TeX~Live 2024äťĽé \\ \hline
    \code{ptex} &amp; \pTeX &amp; \epTeX ăŽäşćă˘ăźă &amp; \eupTeX ăŽĺé¨ăŹăŹăˇăźăŽäşćă˘ăźă \\
    \code{uptex} &amp; \upTeX &amp; \eupTeX ăŽäşćă˘ăźă &amp; âĺ¤ć´ăŞă \\
    \code{eptex} &amp; \epTeX\MODEext &amp; âĺ¤ć´ăŞă &amp; \eupTeX ăŽĺé¨ăŹăŹăˇăź \\
    \code{euptex} &amp; \eupTeX\MODEext &amp; âĺ¤ć´ăŞă &amp; âĺ¤ć´ăŞă \\ \hline
  \end{tabular}
\end{table}

\section*{\pTeX çłťĺăŤăăă\LaTeX}
(\eTeXpre)\pTeX ă§ĺăăăăŤčŞżć´ăăă\LaTeX ă\pLaTeXďź
(\eTeXpre)\upTeX ă§ĺăăăăŤčŞżć´ăăă\LaTeX ă\upLaTeX ă¨ĺźăśďź

\pLaTeX ăŻăă¨ăă¨ă˘ăšă­ăźć&nbsp;Şĺźäźç¤žăŤăăŁăŚ\pTeX ă¨ä¸ä˝ă§
éçşăăăŚăă\footnote{ćć°çăŻ2006/11/10ďźăăă
ăă˘ăšă­ăźç\pLaTeXăă¨ĺźăśăă¨ăŤăăďź}ďź
2010ĺš´ăŤăłăăĽăăăŁç\pTeX ă\TeX~LiveăŤĺé˛ăăăŚäťĽéďź
ăăă§çŹčŞăŽćščŻăäťć§ĺ¤ć´ăĺ&nbsp;ăăăăăăăŤăŞăďź
ăžăăăźăšă§ăă\LaTeX ăć´ć°ăé˛ăă§ăăďź
çšăŤ2020ĺš´äťĽéăŻďź\LaTeX ăŻç´&nbsp;ăŽ\TeX ă§ăŻĺä˝ăăďź
ćĄĺźľă˘ăźăăŽ\eTeX~``$+\alpha$''ăĺä˝ćĄäťśă¨ăŞăŁăŚăăďź
ăăăăŁăŚç´&nbsp;ăŽ(u)\pTeX ă§ăŻĺä˝ăăŞăďź
ăăăăćľăăŤĺăăăŚă˘ăšă­ăźç\pLaTeX ăăforkăăăŽă
ăăłăăĽăăăŁç\pLaTeXăă§ăăďź
\upLaTeX ăŻăă¨ăă¨ă˘ăšă­ăźç\pLaTeX ăĺăŤ\upTeX ă¨ä¸ä˝ă§
éçşăăăŚăăăďźçžĺ¨ăŻăłăăĽăăăŁç\pLaTeX ăăăźăšăŤăăŚăăďź

\begin{itemize}
  \item ăłăăĽăăăŁç\pLaTeX ăŽéçşĺďź\\
    \url{https://github.com/texjporg/platex/}
  \item ăłăăĽăăăŁç\upLaTeX ăŽéçşĺďź\\
    \url{https://github.com/texjporg/uplatex/}
\end{itemize}

\TeX~Liveă§ăŽă¨ăłă¸ăłĺŠç¨çśćłăŻäťĽä¸ăŽéăă§ăăďź
ăăă§ďź2023-06-01äťĽéăŻ\code{platex}ă§\epTeX ă§ăŻăŞă
\eupTeX ăŽĺé¨ăŹăŹăˇăźăčľˇĺăăăă¨ăŤćł¨ć
ďź\code{eptex}ăăä¸čśłćŠăĺ¤ć´ăăăďźďź
\begin{table}[ht]
  \centering
  \begin{tabular}{ccc}\hline
    \code{ăłăăłăĺ} &amp; \TeX~Live 2012ăă2023ĺćăžă§ &amp; \TeX~Live 2023ăŽ2023-06-01äťĽé \\ \hline
    \code{platex} &amp; \epTeX\MODEext &amp; \eupTeX\MODEext ăŽĺé¨ăŹăŹăˇăź \\
    \code{uplatex} &amp; \eupTeX\MODEext &amp; âĺ¤ć´ăŞă \\ \hline
  \end{tabular}
\end{table}

\clearpage


%%%%%
\part{\pTeX ăŽćĽćŹčŞçľçă¨čż˝ĺ&nbsp;ăăŞăăăŁă}

ăăă§ăŻďź\pTeX çłťĺăŽćĽćŹčŞçľçăŽćŚçĽă¨ďźăăăĺŽçžăăăăăŤĺ°ĺĽăăă
ăăŞăăăŁăăčŞŹćăăďź

\section{\pTeX çłťĺă§ĺŠç¨ĺŻč˝ăŞćĺ­}
\label{sec:ptexchar}

% ăăŽăăăĽă˘ăŤăčąčŞĺăăéăŻäťĽä¸ăĺç§ďź
% http://tutimura.ath.cx/ptexlive/?ptexenc%2FDetails
% http://ajt.ktug.org/assets/2008/5/1/0201tsuchimura_kuroki.pdf
% https://okumuralab.org/tex/mod/forum/discuss.php?d=460

ăŞăŞă¸ăăŤăŽ\TeX ă§ćąăăćĺ­ăłăźăăŽçŻĺ˛ăŻ0--255ă§ăăŁă
\footnote{ĺ˝ĺăŽ\TeX82ă§ăŻ7-bită&nbsp;ăŁăďź\TeX90ă§8-bităŤăŞăŁăďź}ďź
\pTeX çłťĺă§ăŻďźćĽćŹčŞăŽćĺ­ăďź\LaTeX ăŽ\code{inpuenc}ăŽăăăŞă˘ăŻăăŁăĺ
ăŤăăăďźç´ćĽćąăăăăăŤďźćĺ­ăłăźăă¨ăăŚćĺšăŞçŻĺ˛ăćĄĺźľăăŚăăďź
äťĽéă§ăŻďźĺžćĽăŽć&nbsp;çľăżă§ćąăăćĺ­ă\emph{ćŹ§ććĺ­}ďź
ăăäťĽĺ¤ă\emph{ĺććĺ­}ă¨ĺźăśďź

ăŞăďźćŹçŻďź\ref{sec:ptexchar}çŻďźĺ¨ä˝ăéăăŚ
\epTeX ăŻ\pTeX ă¨ĺăďź\eupTeX ăŻ\upTeX ă¨ĺăă§ăăďź

\subsection{ăăĄă¤ăŤăŽă¨ăłăłăźăă¨ĺé¨ăłăźă}
\pTeX çłťĺăŻďź\emph{ĺĽĺşĺăăĄă¤ăŤăŽă¨ăłăłăźă}ă¨ăăŚ
ISO-2022-JP (jis)ďźEUC-JP (euc)ďźShift-JIS (sjis)ăžăăŻUTF-8 (utf8)ăŤĺŻžĺżăăŚăăďź
ăă&nbsp;ăďźĺĽĺăŻăăŽăžăžăŽă¨ăłăłăźăă§ćąăăăă¨ăŻéăăďź
ĺčĄăŻ\emph{ĺé¨ăłăźă}ăŤĺ¤ćăăăŚăăĺé¨ĺŚçăŤĺăăďź
ăăĄă¤ăŤĺşĺćăŤăăăŻăĺé¨ăłăźăăăăŽĺ¤ćăčĄăăăďź
ăăĄă¤ăŤăŽă¨ăłăłăźăă¨ĺé¨ăłăźăăç°ăŞăĺ&nbsp;´ĺăŻ
\code{ptexenc}ăŠă¤ăăŠăŞăŤĺžăŁăŚă¨ăłăłăźăĺ¤ćăçşçăăăă¨ă¨ăŞăďź
\TeX ăŽĺĽĺăă­ăťăăľăŤĺŽéăŤć¸ĄăăŽăŻĺĽĺĺčĄăŽĺ¤ćçľćă§ăăďź

\pTeX ăŽĺé¨ăłăźăăŻWindowsă§ăŻShift-JISďźăăäťĽĺ¤ă§ăŻEUC-JPăć˘ĺŽă§ăăďź
\upTeX ăŽĺé¨ăłăźăăŻć˘ĺŽă§Unicodeă§ăăăďź
čľˇĺćăŽăŞăăˇă§ăł|-kanji-internal|ďźINIă˘ăźăćăŽăżćĺšďźĺžčż°ďźăŤ
ăăŁăŚĺśĺžĄă§ăăďź

\pTeX/\upTeX ăŽĺĽĺşĺăăĄă¤ăŤăŽă¨ăłăłăźăăŻďź
\TeX~Live 2018äťĽéăŻĺ¨ăŚăŽăăŠăăăăŠăźă&nbsp;ă§UTF-8ăć˘ĺŽă§ăă
\footnote{\TeX~Live 2017äťĽĺă§ăŻ\pTeX ăŤéăďź
Windowsă§ăŻShift-JISďźăăäťĽĺ¤ă§ăŻUTF-8ă§ăăŁăďź
\upTeX ăŻĺ˝ĺăăĺ¨ăŚăŽăăŠăăăăŠăźă&nbsp;ă§UTF-8ă§ăăŁăďź}ăďź
ĺĺĽăŽĺĽĺăăĄă¤ăŤăŽă¨ăłăłăźăăŻćŹĄăŽé&nbsp;çŞă§ćąşăžăďź\code{ptexenc}ăŤăăďźďź
ăăŽćąşĺŽćçśăăŻăăĄă¤ăŤăŽĺé&nbsp;­čĄăčŞ­ăă¨ăăŤčĄăăăďź
% ćł¨ďź|PTEX_IN_FILTER| ăĺŽçžŠăăăŚăăĺ&nbsp;´ĺăŻĺĽďź
\begin{enumerate}
 \item ăăĄă¤ăŤĺé&nbsp;­ăŤUTF-8ăŽBOM\footnote{ć­Łç˘şăŤăŻďźćĺăŽ4byteă
   \code{0xEF 0xBB 0xBF 0x7E}äťĽä¸ďź}ăčŚă¤ăăăUTF-8ďźBOMäťăďźă¨ăżăŞăďź
 \item ă¨ăłăłăźăć¨ć¸ŹćŠč˝ăćĺšăŞăă°ć¨ć¸ŹăčĄăďźćĺăăă°
   ăăăćĄç¨ăă\footnote{\TeX~Live 2022äťĽĺăŻWindowsĺ°ç¨ăŽćŠč˝ă§ăăŁăăďź
   \TeX~Live 2023ă§ĺ¨ăŚăŽăăŠăăăăŠăźă&nbsp;ă§ĺŠç¨ĺŻč˝ă¨ăŞăŁă\cite{tjb142}ďź
   kpathsearchăŠă¤ăăŠăŞĺ¤ć°|guess_input_kanji_encoding|ăŤăăŁăŚĺśĺžĄă§ăďź
   ĺ¤ă1ăŞăă°ćĺšďź0ăŞăă°çĄĺšă§ăăďź}ďź
 \item čľˇĺćăŽăŞăăˇă§ăł|-kanji|ďźĺžčż°ďźăŤăăćĺŽăăăă°ăăăä˝żăďź
 \item ç°ĺ˘ĺ¤ć°|PTEX_KANJI_ENC|ăĺŽçžŠăăăŚăăă°ăăăä˝żăďź
 \item äťĽä¸ă§ćąşăžăăŞăĺ&nbsp;´ĺăŻć˘ĺŽăŽă¨ăłăłăźăăä˝żăďź
\end{enumerate}
% äťĽä¸ăŽč¨čż°ăŻéżé¨ăăăŽăă­ă°ăĺşăŤä˝ćďź
% http://abenori.blogspot.com/2016/02/e-ptexeptexinputencoding.html
% ăŞă LaTeX2e 2018-04-01 ă§ăŽ inputenc UTF-8 ć˘ĺŽĺăŤĺăăăŚ
% Windows (W32TeX) ă§ă Shift-JIS ăă UTF-8 ăŤĺ¤ć´ăăăŚăăďź
% https://okumuralab.org/tex/mod/forum/discuss.php?d=2396

ăŞăďźISO-2022-JPă§ă¨ăłăłăźăăăăćĺ­ăŻçžĺ¨ăŽă¨ăłăłăźăăŤăăăć­ŁăăčŞ­ăžăăďź
% ISO-2022-JP (JIS) ă§ă¨ăłăłăźăăăăăă¤ăĺăŻ 7 ăăăă§ăăŁăŚďź
% äťăŽ 3 ă¤ăŽă¨ăłăłăźăă¨ćăăăŤĺşĺĽăă§ăăăăďź
% ĺŽéăŤăŻďźäťăŽă¨ăłăłăźăăŽăăĄă¤ăŤăŽéä¸­ăŤ JIS ăŽćĺ­ĺăćˇˇăăŁăŚăăŚă
% ĺ¨ăŚć­Łĺ¸¸ăŤčŞ­ăżčžźăžăăďź
% https://qiita.com/zr_tex8r/items/beda5a7702b84409436e
ăžăďź\eTeXpre(u)\pTeX ăŽ\.{epTeXinputencoding}ăä˝żç¨ăăă°ăăŽćŹĄăŽčĄăă
ć°ăăă¨ăłăłăźăă§čŞ­ăžăăďź\texttt{./eptexdoc.pdf}ăĺç§ďźďź

\begin{dangerous}
ăăă§ăŻďźć­´ĺ˛ăŤčĺłăŽăăčŞ­čă¸ăŽćĺ&nbsp;ąă¨ăăŚďźă˘ăšă­ăź\pTeX ăă
çžĺ¨ăŽăłăăĽăăăŁç\pTeX ăŤčłăă¨ăłăłăźăăŽćąăăŽĺ¤éˇăčż°ăšăďź

ĺćăŽă˘ăšă­ăź\pTeX ăŻăEUCç\pTeX ăăSJISç\pTeX ăăJISç\pTeX ăăŽ
3ă¤ăŽăă­ă°ăŠă&nbsp;ăĺĽăăŤç¨ćăăŚăăďźä¸ă¤ăŽ\pTeX ăă¤ăăŞă§ăŻă¨ăłăłăźăă
EUC-JPďźShift-JISďźISO-2022-JPăŽăŠăăä¸ă¤ăŽăăĄă¤ăŤăăĺŚçă§ăăŞăăŁăďź
% JIS ăŽăăĄă¤ăŤăŞă EUC/SJIS ăŠăĄăăŽ ptex ă§ăčŞ­ăżčžźăăžăăďź
% ăăăćĺăăă§ăŻăŞă p2.1.5 (1997ĺš´) äťĽéăŽăăă§ďź
% ăăăžă§ăŻăšăżă¤ăŤăăĄă¤ăŤă EUC ă SJIS ăŤăăŚăăĺżčŚăăăŁăăăă§ăďź
|-kanji|ăŞăăˇă§ăłăčż˝ĺ&nbsp;ăăďźä¸ă¤ăŽ\pTeX ăă¤ăăŞă§č¤ć°ăŽă¨ăłăłăźăă
é¸ćĺŚçă§ăăăăăŤăŞăŁăăŽăŻ\pTeX~3.0.1ă¨3.0.4ăŽéďź2002ĺš´10ćé&nbsp;ďźă§ăăďź
% http://tutimura.ath.cx/ptexlive/?ptexenc%2FDetails
% ăŽĺćăăăŽăłăĄăłă (2008-02-23) ăă

ăłăăĽăăăŁç\pTeX ăŻďźUNIXĺăćĽćŹčŞ\TeX ăăŁăšăăŞăăĽăźăˇă§ăł
pte\TeX\footnote{Thomas EsserăăăŤăăte\TeX ăăăźăšă¨ăăŚďź
ĺćĺąäšăăăŤăăŁăŚ2004ĺš´ăă2009ĺš´ăžă§éçşďź
ăăŽĺžçśăŽptexliveăŻďź2010ĺš´ăŤ\pTeX ă\TeX~LiveăŤĺăčžźăžăăéăŽăăźăšăŤ
ăŞăŁăďź}ăŽéçşéç¨ă§čŞçăăďź
% ăłăăĽăăăŁçă¨ăăĺźç§°ăŻ2004ĺš´ĺ˝ĺăăăŽăăŽă§ăŻăŞă
% 2016ĺš´é&nbsp;ăŤçăăăăŽă§ăăăďźçłťč­ä¸ptetexă¨ä¸ä˝ă§
% éçşăăăŚăăăăŽăăłăăĽăăăŁçă¨ĺžăăĺźăśăă¨ăŤăăďź
2006ĺš´é&nbsp;ăăă¨ăłăłăźăăUTF-8ăŽăăĄă¤ăŤĺĽĺă¸ăŽĺŻžĺżăé˛ăăăďź2007ĺš´ăŤăŻ
ă¨ăłăłăźăĺ¤ćăćăé˘ć°çž¤ă\code{ptexenc}ă¨ăăăŠă¤ăăŠăŞăŤĺăĺşăăăďź
çžĺ¨ăŽ\TeX~Liveă§ă\code{ptexenc}ăŻç¨ŽăăŽăă­ă°ăŠă&nbsp;ă§ĺŠç¨ăăăŚăăďź
\end{dangerous}

\paragraph{\pTeX çłťĺăŽčľˇĺćăŽăŞăăˇă§ăł}
\begin{itemize}
 \item |-kanji=|&lt;encoding&gt;
  \begin{quotation}
   ĺĽĺşĺăă­ăšăăăĄă¤ăŤăŽă¨ăłăłăźăăćĺŽăăďź\\
   ĺŠç¨ĺŻč˝ăŞ&lt;encoding&gt;ăŽĺ¤ďź\code{euc}, \code{sjis}, \code{jis}, \code{utf8}
  \end{quotation}
 \item |-kanji-internal=|&lt;encoding&gt;
  \begin{quotation}
   ĺé¨ăłăźăăćĺŽăăďźINIă˘ăźăĺ°ç¨\footnote{ăăŠăźăăăăăĄă¤ăŤăŻ
   ĺé¨ăłăźăăŤäžĺ­ăăăŽă§ďźĺŽéăŽĺŚçă¨ć´ĺć§ăă¨ăăă
   virtual modeă§ăŻčŞ­ăżčžźăă&nbsp;ăăŠăźăăăăăĄă¤ăŤă¨ĺăĺé¨ăłăźăă§
   ĺä˝ăăăăăŤĺşĺŽăăŚăăďź\pTeX\ p3.8.2äťĽéăŽäťć§ďź}ďźďź\\
   ĺŠç¨ĺŻč˝ăŞ&lt;encoding&gt;ăŽĺ¤ďź\code{euc}, \code{sjis}
   \quad ďź\upTeX ăŽăżďź\code{uptex}ăĺŠç¨ĺŻč˝ďź
  \end{quotation}
\end{itemize}
\pTeX ă§ĺŠç¨ĺŻč˝ăŞĺé¨ăłăźăăŻ\code{euc} (EUC-JP)ă
\code{sjis} (Shift-JIS)ăŽăăăăă§ăăăăďź
ĺĽĺăäťŽăŤUTF-8ă¨ăăŚăĺżăĺé¨ăłăźăă¸ăŽĺ¤ćăčľˇăăďź
\upTeX ă§ăŻć˘ĺŽçśćăŽĺé¨ăłăźăă\code{uptex} (Unicode)ăŞăŽă§ďź
ĺĽĺăUTF-8ă¨ăăă°ĺ¤ćăŻâăťă¨ăăŠâčľˇăăăŞă\footnote{äžĺ¤ăŻ
\code{ptexenc}ăŤăăĺşĺşćĺ­ă¨ćżçšăŤĺč§Łăăăĺ˝˘ďźçľĺćĺ­ĺďźăŽ
ĺćăŞăŠďźĺžčż°ďź}ďź

\paragraph{\pTeX çłťĺăŽčľˇĺćăŽăăăź}
ĺĽĺşĺăăĄă¤ăŤăŽă¨ăłăłăźăă¨ĺé¨ăłăźăăŻčľˇĺćăŽăăăźăăĺăăďź
äžăă°
\begin{verbatim}
This is pTeX, Version 3.14159265-p3.8.0 (utf8.euc) (TeX Live 2018)
(preloaded format=ptex)
\end{verbatim}
ă¨ăăăăăźăŽĺ&nbsp;´ĺăŻďź|(utf8.euc)| ăă
\begin{itemize}
 \item ĺĽĺşĺăăĄă¤ăŤăŽďźć˘ĺŽďźă¨ăłăłăźăăŻUTF-8ďźä˝ăďźJIS~X~0208ăŽçŻĺ˛ĺďź
 \item \pTeX ăŽĺé¨ăłăźăăŻEUC-JP
\end{itemize}
ă¨ăăćĺ&nbsp;ąăčŚăŚĺăăďźĺĽĺşĺăăĄă¤ăŤăŽă¨ăłăłăźăă¨ĺé¨ăłăźăăĺăĺ&nbsp;´ĺăŻďź
\begin{verbatim}
This is pTeX, Version 3.14159265-p3.8.0 (sjis) (TeX Live 2018)
(preloaded format=ptex)
\end{verbatim}
ăŽăăăŤčĄ¨ç¤şăăăďźĺĽĺşĺăăĄă¤ăŤăŽă¨ăłăłăźăă¨ĺé¨ăłăźăăă¨ăăŤShift-JISă§ăăäžďźďź

\begin{dangerous}
ä¸ăŤăŻăăŽăăăŤć¸ăăăďź
ćĽľăăŚç´°ăăčŠąăăăă°ďźčľˇĺćăŽăăăźăŻćăŤăŚă˝ăă¤ăăŽă§ćł¨ćďź
ă­ă°ăăĄă¤ăŤăŤăŻč¨é˛ăăăăăăźăŻĺ¸¸ăŤć­ŁăăďźăăăŻäťĽä¸ăŽäşćăŤăăďź

virtual modeă§ăŻďźčľˇĺç´ĺžăŤăăăźăčĄ¨ç¤şăăŚăăďźăăŠăźăăăăăĄă¤ăŤ
čŞ­čžźăčĄăăăďźăăŽćçšă§ĺăăŚďźčľˇĺćăŽĺé¨ăłăźăă¨ăăŠăźăăăăŽ
ĺé¨ăłăźăăŽć´ĺć§ăç˘şčŞăăăďźăăă§ăăĺč´ăăŞăăŁăĺ&nbsp;´ĺăŻďź\pTeX ăŻ
č­ŚĺăčĄ¨ç¤şăăŚăăŠăźăăăăŤĺăŁăĺé¨ăłăźăăé¸ćăďźäťĽéăŽĺŚçăčĄăďź
ă­ă°ăăĄă¤ăŤăŻăăŽĺžăŤăŞăźăăłăăăăăďźăăăŤăŻć­Łăăĺé¨ăłăźă
ďźăăŠăźăăăă¨ĺăĺé¨ăłăźăďźăć¸ăčžźăžăă\cite{tjb55}ďź

ăăŽăăăŞăŚă˝ăŻďź\pTeX ăŤéăă\code{(preloaded format=***)}ă§ăčŚăăăďź
\end{dangerous}

\subsection{ćĺšăŞćĺ­ăłăźăăŽçŻĺ˛ă\pTeX ăŽĺ&nbsp;´ĺă}\label{sec:ptex_code}
\pTeX ă§ăŻďźJIS~X~0208ăăŞăăĄJISçŹŹ1, 2ć°´ćşăŽćĺ­ăĺŠç¨ĺŻč˝ă§ăăďź
ĺĽĺăŻ\emph{ă7ăăăASCIIćĺ­éĺăăŤăăăăăĄă¤ăŤăŽă¨ăłăłăźăă§
čĄ¨çžăăăJIS~X~0208ăŽćĺ­éĺăăĺ&nbsp;ăăăăŽ}ă¨ăăŚč§Łéăăăďź
ăăăŚďźäťĽä¸ăŽčŚĺăŤăăĺććĺ­ă¨ćŹ§ććĺ­ăŤĺşĺĽăăŚĺăćąăăăďź
\begin{itemize}
 \item 7ăăăASCIIćĺ­éĺăŻ\emph{ćŹ§ććĺ­}ă¨ăăŚćąăăăďź
    ăžăďź\TeX90äşćăŽă|^^|č¨ćłăă¨ăăéćĽçăŞĺĽĺćł
    \footnote{|^^ab|ăŽăăăŤăŤăă´ăŞăźăłăźă7ăŽćĺ­2ă¤ăŤçśăăŚ
    |0|--|9|, |a|--|f|ăŽăăăăă2ă¤çśăă¨ďź
    ăăă16é˛ćĺ­ăłăźăă¨ăăćĺ­ĺĽĺăăŞăăăăŽă¨ĺăĺŚçăŤĺăďź}ă
    \emph{ĺ¸¸ăŤćŹ§ććąă}ăăă\footnote{|^^|č¨ćłăŽćŹ§ććąăăŻ
    ă˘ăšă­ăź\pTeX~3.1.4äťĽéďź
    \pTeX~3.1.8ă§ĺśĺžĄçś´ĺă§ăŽćąăăćšĺăăăďźăžăďź
    ăłăăĽăăăŁç\pTeX~4.0.0ă§ćĺ­ĺĺăŤăăăŚăĺ¸¸ăŤćŹ§ććąăăăăăăŤćšäżŽăăďź
    ăăăŤă¤ăăŚăŻ\ref{sec:printkanji16bit}çŻăĺç§ďź}ďź
    % |^^|č¨ćłăŻďź|^^@|ăŽăăăŤASCIIä¸ćĺ­ďź0--9,~a-fäťĽĺ¤ďźăçśăăăŽă¨
    % |^^ab|ăŽăăăŤ16é˛ć°2ćĄăçśăăăŽăăăďź
    % ĺčăŻ\TeX82ăăăăŁăăăŽă§ďźĺžčă\TeX90ă§čż˝ĺ&nbsp;ăăăďź
    % ĺčďźKnuth, TUGboat, Volume 10 (1989), No.~3, p.325
 \item ćä¸ä˝ăăăă1ăŽĺ&nbsp;´ĺďźăăŽăă¤ăă§ĺ§ăžăĺăŤă¤ăăŚ
    ăăĄă¤ăŤăŽă¨ăłăłăźăăăĺé¨ăłăźăďźEUC-JPăžăăŻShift-JISďźă¸ăŽ
    ĺ¤ćăčŠŚăżăďźĺä¸ăłăźăăŞăćç­ĺ¤ćďźďź
    ĺććĺ­ăŽĺé¨ăłăźăă¨ăăŚč¨ąăăăć´ć°ăŻ
    $256c_1+c_2$ďźä˝ă$c_i\in C_i$ă§ăăďźăăă§
  \begin{description}
   \item[ĺé¨ăłăźăăEUC-JPăŽă¨ă]
    $C_1=C_2=\{\hex{a1},\dots,\hex{fe}\}$.
   \item[ĺé¨ăłăźăăShift-JISăŽă¨ă]
    $C_1=\{\hex{81},\dots,\hex{9f}\}\cup\{\hex{e0},\dots,\hex{fc}\}$,\\
    $C_2=\{\hex{40},\dots,\hex{7e}\}\cup\{\hex{80},\dots,\hex{fc}\}$.
  \end{description}
    ă§ăăďźăăŽĺé¨ăłăźăăŽăăżăźăłăŤĺăă°
    ăĺ¤ćĺžăŽćĺ­ăłăźăăćă¤ä¸ă¤ăŽ\emph{ĺććĺ­}ă
    ă¨ăăŚćąăăďźĺăăŞăăă°ä¸ćŚ|^^ab|ĺ˝˘ĺźă¸ăŽĺ¤ćďźĺžĺşăŽâďźăçľăŚ
    ă\emph{8ăăăćŹ§ććĺ­}ăŽăă¤ăĺăă¨ăăŚćąăăăďź
\end{itemize}
% TeX ăŽčĄĺĽĺĺŚç
% https://www.ma.ns.tcu.ac.jp/Pages/TeX/line.input.html
% ă˘ăšă­ăź pTeX 3.1.4 ăŤăăă ^^ č¨ćłăŽćšäżŽ
% https://www.ma.ns.tcu.ac.jp/Pages/TeX/hat.hat.a.b.html

\begin{dangerous}
ä¸éăŤć¸ăăŚăăăďź
ĺĽĺăăĄă¤ăŤăä¸čĄčŞ­ăżčžźăă§ĺżčŚăŞă¨ăłăłăźăĺ¤ćăčĄăŁăçľćă
ăăăăĄăŤć&nbsp;źç´ăăă¨ăăăžă§ă\code{ptexenc}ăŤăăĺĺŚçă§ăăďź
ăăŽăăăăĄă\TeX ăŽĺĽĺăă­ăťăăľăčŞ­ăżďź
ćĺ­ăŽăŤăă´ăŞăźăłăźăăŤĺžăŁăŚďźĺćă¨ćŹ§ćăŽĺşĺĽăäťăăŞăăďź
ăăźăŻăłĺăçćăăďźă¨ăăćľăă§ăăďź
\code{ptexenc}ăŤăăĺĺŚçăŤăŻ
ăĺé¨ăłăźăăŤĺ¤ćă§ăăŞăĺĽĺăŽăă¤ăĺă|^^ab|ĺ˝˘ĺźăŤĺ¤ćăă
ĺŤăžăăăďźăăŽćçšă§ăŻăŤăă´ăŞăźăłăźăăŤă¤ăăŚçĽăăŞăăăďź
ćĺ­|^|ăŽ\.{catcode}ă7ăăŠăăăŻé˘äżăŞă|^^|ăç¨ăăăăďź
\end{dangerous}

\pTeX ăŤăăăćĺšăŞćĺ­ăłăźăăŽçŻĺ˛ăŻ
ăćŹ§ććĺ­ă¨ăăŚćĺšăŞćĺ­ăłăźă(0--255)ăă¨
ăĺććĺ­ă¨ăăŚćĺšăŞćĺ­ăłăźăďźĺé¨ăłăźăă¨ăăŚč¨ąăăăć´ć°ĺ¤ďźăăŽĺéĺă§ăăďź
ĺčăŻ1ăă¤ăăťĺžčăŻ2ăă¤ăăŞăŽă§äşăăŤéăŞăăŞăďź
% ĺé¨ăłăźăăŽçŻĺ˛ďźkanji.c ăŽ |is_char_kanji| ăŽĺŽčŁ

ćčżďź2010ĺš´äťŁäťĽéďźă§ăŻďź\pTeX ă§ăăăĄă¤ăŤăŽă¨ăłăłăźăăUTF-8ă¨ăă
ĺŠç¨ăĺ˘ăăŚăăďź
ăłăăĽăăăŁç\pTeX ăŻUTF-8ăăĄă¤ăŤĺĽĺăŤĺŻžĺżăăŚăăăďź
ĺčż°ăŽéăĺé¨ăłăźăăŻEUC-JPăžăăŻShift-JISăŽăăăăă§ăăăăďź
\emph{\pTeX ăŻJIS~X~0208ĺ¤ăŽćĺ­ăăľăăźăăăŞă}ďź
ăŞăďź\code{ptexenc}ăŤăăĺĺŚçăŤäťĽä¸ăŽçšćŽăŞĺ&nbsp;ĺˇĽăĺŤăăŚăăďź
% http://tutimura.ath.cx/ptetex/?UTF-8%C2%D0%B1%FE%282%29
\begin{itemize}
 \item Unicodeă§ăŽăăŠăă­ăĺä¸čŚăăĺ¤ĺŻžä¸ĺ¤ćďźčĄ¨\ref{table:jis_uni_var}ďź
  \footnote{äžăă°ďźă˝ăźăšăăĄă¤ăŤä¸­ăŽĺ¨č§ăăźăˇ(\code{U+2015})ă¨
  EMăăźăˇ(\code{U+2014})ăŻĺä¸čŚăăďźĺé¨çăŤăŻJISăłăźă\hex{213D}ă¨
  ăăŚćąăăďźăăĄă¤ăŤăŤć¸ăĺşăăăćăŻ\code{U+2015}ăŤăŞăďź}
 \item BOMăŽçĄčŚďźăăĄă¤ăŤĺé&nbsp;­ăŤéăăďź
 \item çľĺćżçš(\code{U+3099})ăťĺćżçš(\code{U+309A})ăŽĺĺ­ĺŚç
 \item JISĺ¤ăŽăăĺ¤ćă§ăăŞăćĺ­ă|^^ab|ĺ˝˘ĺźăŤĺ¤ć
  \footnote{äžăă°ďźă˝ăźăšăăĄă¤ăŤä¸­ăŤĂ§ăŽăăăŞJIS~X~0208ĺ¤ăŽćĺ­ăç´ćĽć¸ăă¨ďź
  ăăăŻĺććĺ­ăŽĺé¨ăłăźăăŤĺ¤ćă§ăăŞăăă|Ă§|ăŤĺ¤ćăăăŚćŹ§ććąăăăăďź}âŚâ
  %%%
  % [ĺä˝ăă§ăăŻďź]
  % ä¸ăŽčĄăŽčŞŹććă§ăŻ |Ă§| ăăptexenc ăŤăă |^^| ĺ˝˘ĺźă¸ăŽĺ¤ćăăçľăŚ
  % ćŹ§ć 8 ćĺ­ |^^c3^^a7| ă¨ăăŚăŞăăŠăŤĺ°ĺ­ăăăăă¨ăćĺžăăŚăăďź
  % ćŹă˝ăźăšă pLaTeX ă§ĺŚçăăă°çďź
  % ĺé¨ Unicode ăŽ upLaTeX ă§ăŻăptexenc ăŤăă |^^| ĺ˝˘ĺźă¸ăŽĺ¤ćăăčľˇăăă
  % ĺé¨ăłăźă 0xE7 ă¨ăăŚăăăăĄăŤć&nbsp;źç´ăăăďź
  % ăăăŚ \kcatcode"E7=15 ăŞăŽă§ă¤ăłăăăăă­ăťăăľăŽćŽľéă§ćŹ§ććąăăăăďź
  % ć˘ĺŽăŽ inputenc UTF-8 ăŞăă°ăăăŻ "E7 ăŽćŹ§ć 1 ćĺ­ăŤăŞăďź
  % ăă \UseRawInputEncoding ăŞăă° "C3 "A7 ăŽćŹ§ć 2 ćĺ­ăŤăŞăďź
  \setbox0=\hbox{|Ă§|}\unless\ifdim\wd0&gt;2em\ptErr{Check above: pLaTeX assumed}\fi
  %%%
\end{itemize}
ăŞăďźUTF-8ăăĄă¤ăŤĺşĺćăŤăŻăăŽăăăŞĺ&nbsp;ĺˇĽăŽéĺ¤ćăŻčĄăăŞăďźĺĽĺćăŤ
ĺ&nbsp;ĺˇĽăăăăžăžă§ĺşĺăăăďźďź

ăăŽăăăŤ\emph{\pTeX ăŻĺĽĺăĺé¨ăłăźăăŤĺ¤ćăăĺŚçăĺŤăăăďź
ăŞăŞă¸ăăŤăŽ\TeX ă\pdfTeX ăŞăŠăŽćŹ§ć\TeX ă¨ăŻĺĽĺăŤé˘ăăŚĺżăăă
äşćă§ăŞă}ăă¨ăŤćł¨ćăĺżčŚă§ăăďź

\begin{dangerous}
 äťĽä¸ă§čż°ăšăăĺé¨ăłăźăăŽçŻĺ˛ăăŻJIS~X~0213ăŽćź˘ĺ­éĺ1é˘ďźShift-JISăŽĺ&nbsp;´ĺăŻ2é˘ăďźă
 ăžăăžăĺŤăă§ăăăďź\emph{\pTeX ăŻJIS~X~0213ăŤăŻĺŻžĺżăăŚăăŞăďź}

 JIS~X~0213ă§čŚĺŽăăăă85ĺş1çšăăŽä˝ç˝ŽăŽćĺ­ăĺĽĺăăĄă¤ăŤä¸­ăŤć¸ăăĺ&nbsp;´ĺďź
 \begin{description}
  \item[ă¨ăłăłăźăăEUC,~Shift-JISăŽĺ&nbsp;´ĺ] DVIăŤăŻ29985~(\hex{7521})%"
    çŞăŽćĺ­ă¨ăăŚĺşĺăăăďź
  \item[ă¨ăłăłăźăăJISăŽĺ&nbsp;´ĺ] ``\verb|! Missing $ inserted.|''ă¨ăăă¨ăŠăźăçşçăăďź
    ăăăŻďź\pTeX ăJIS~X~0213ăŽ1é˘ăćç¤şăăă¨ăšăąăźăăˇăźăąăłăš
    \texttt{1B 24 28 4F} (JIS2000), \texttt{1B 24 28 51} (JIS2004)ăčŞč­ăăďź
    \texttt{24}~(\texttt{\$})ăć°ĺźă˘ăźăĺşĺăă¨č§ŁéăăŚăăžăăăă§ăăďź
  \item[ă¨ăłăłăźăăUTF-8ăŽĺ&nbsp;´ĺ] UTF-8ăŽăă¤ăĺ\texttt{E6 93 84}ă¨ăăŚčŞ­ăżčžźăžăăďź
 \end{description}
 ăŞăďź\.{char}ăŤăăă\verb|\char\kuten"5521|ă%"
 ăŽăăăŤăăŚĺşçšăłăźăăćĺŽăăĺ&nbsp;´ĺăŻďźDVIăŤăŻ29985~(\hex{7521})%"
 çŞăŽćĺ­ă¨ăăŚĺşĺăăăďź
 ăžăďźDVIăŤćĺ­ă¨ăăŚĺşĺăăăăăă¨ăăŁăŚďźăăăPostScriptăPDFăŤĺ¤ćăăă¨ăăŤ
 ćĺłéăăŤĺşĺăăăăăŻĺ¨ăăŽĺĽĺéĄă§ăăďź
\end{dangerous}

\subsection{ćĺšăŞćĺ­ăłăźăăŽçŻĺ˛ă\upTeX ăŽĺ&nbsp;´ĺă}\label{sec:uptex_code}
\upTeX ăŻ\pTeX ă¨äşćăç°ăŞăăŽă§ďźăăă§čŞŹćăăďź
\pTeX ă¨ăŽéăă\emph{ĺźˇčŞż}ăăŚăăďź
\begin{itemize}
  \item ćĺ­éĺăŻĺé¨ăłăźăăŤăăçŻĺ˛ăç°ăŞăďź
    \begin{itemize}
      \item ĺé¨ăŹăŹăˇăźďźEUC-JPăžăăŻShift-JISďźăŽĺ&nbsp;´ĺďź
        ă7ăăăASCIIćĺ­éĺăăŤăăăăăĄă¤ăŤăŽă¨ăłăłăźăă§
        čĄ¨çžăăăJIS~X~0208ăŽćĺ­éĺăăĺ&nbsp;ăăăăŽďź
        ă¤ăžă\pTeX ă¨ăŞăăĺ¤ăăăŞăďź
      \item \emph{ĺé¨UnicodeăŽĺ&nbsp;´ĺďźUnicodeĺ¨ä˝ďź}
    \end{itemize}
  \item ĺććĺ­ă¨ćŹ§ććĺ­ăŽĺşĺĽăŻäťĽä¸ăŽčŚĺăŤăăďź
%
\begin{itemize}
 \item 7ăăăASCIIćĺ­éĺăŻćŹ§ććĺ­ă¨ăăŚćąăăăďź
    ăžăďź\TeX90äşćăŽă|^^|č¨ćłăă¨ăăéćĽçăŞĺĽĺćłă
    ĺ¸¸ăŤćŹ§ććąăăăăďźďź\pTeX ă¨ĺć§ďź
 \item ćä¸ä˝ăăăă1ăŽĺ&nbsp;´ĺďźăăŽăă¤ăă§ĺ§ăžăĺăŤă¤ăăŚ
    ăăĄă¤ăŤăŽă¨ăłăłăźăăăĺé¨ăłăźăă¸ăŽĺ¤ćăčŠŚăżăďźĺä¸ăłăźăăŞăćç­ĺ¤ćďźďź
    ĺé¨ăłăźăăŽăăżăźăłăŤĺăă°
    ăĺ¤ćĺžăŽćĺ­ăłăźăăćă¤ä¸ă¤ăŽ\emph{ä¸ćĺ­}ă
    ă¨ăăŚćąăăďź\emph{ăăăĺććąăăćŹ§ććąăăăŻ
    \.{kcatcode}ăŤäžĺ­ăăďźčŠłç´°ăŻ\ref{sec:uptex_kcat}çŻďźďź}
    ĺăăŞăăă°ä¸ćŚ|^^ab|ĺ˝˘ĺźă¸ăŽĺ¤ćďźĺžĺşăŽâďźăçľăŚ
    ă8ăăăćŹ§ććĺ­ăŽăă¤ăĺăă¨ăăŚćąăăăďź
    %
    % pTeX ă§ĺćĺşĺŽăŽćĺ­ďźäžăă° "ă"ďźă
    % upTeX -kanji-internal=euc/sjis ăŞă \kcatcode=15 ă§ćŹ§ććąăă§ăăďź
    % ăă&nbsp;ăĺĽĺăăĄă¤ăŤăŽă¨ăłăłăźăăŤăăăĺé¨ăłăźăăŤăă
    % çľćăŻ ^^a4^^a2 (euc) / ^^82^^a0 (sjis) ăŤăŞăďź
    %
\end{itemize}
%
 \item \code{ptexenc}ăŠă¤ăăŠăŞăŤăăĺĺŚçă\pTeX ă¨éĄäźźă&nbsp;ăďź
   ĺ¤ććšĺăŤăăŁăŚĺ°ăç°ăŞăďź
%
\begin{itemize}
 \item Unicodeĺ¤ĺŻžä¸ĺ¤ćďźĺé¨ăŹăŹăˇăźăŽĺ&nbsp;´ĺăŻ\pTeX ă¨ĺć§ďź
  \emph{ĺé¨UnicodeăŽĺ&nbsp;´ĺăŻďźĺĽĺşĺUTF-8ăŤĺŻžăăŚăŻĺ¤ćăčĄăăďź
  ĺĽĺEUC-JP/Shift-JISăăăŽĺ¤ćăŤă¤ăăŚä¸ĺŻžĺ¤ĺŻžĺżăăăă°
  Unicodeă¸ăŽĺ¤ćăŻčĄ¨\ref{table:jis_uni_var}ăŤĺžăďź}
 \item BOMăŽçĄčŚăŻčĄăďźďź\pTeX ă¨ĺć§ďź
 \item çľĺćżçšăťĺćżçšăŽĺĺ­ĺŚçăŻčĄăďź\TeX~Live 2016äťĽé
  \footnote{çľĺćżçšăťĺćżçšăŻ\TeX~Live 2015ăžă§ăŻ\pTeX ă§ăŽăż
  ĺĺ­ĺŚçăăďź\upTeX ă§ăŻčĄăŁăŚăăŞăăŁăďź}ďźďźďź\pTeX ă¨ĺć§ďźďź
 \item çŻĺ˛ĺ¤ăŽćĺ­ăŽ|^^ab|ĺ˝˘ĺźă¸ăŽĺ¤ćďźĺé¨ăŹăŹăˇăźă§ăŻ\pTeX ă¨ĺć§ďź
  \emph{ĺé¨Unicodeă§ăŻďźćĺ­éĺăUnicodeĺ¨ä˝ăŞăŽă§çŻĺ˛ĺ¤ăŽćĺ­ăŻ
  ĺ­ĺ¨ăăďźĺžăŁăŚ}|^^ab|\emph{ĺ˝˘ĺźă¸ăŽĺ¤ćăŻĺşćŹçăŤčľˇăăăŞă}
  \footnote{ä¸ć­ŁăŞUTF-8ĺĽĺăŞăŠăŤéă|^^ab|ĺ˝˘ĺźăŤĺ¤ćăăăďź}ďźâŚâ
\end{itemize}
% çľĺćĺ­ĺďźĺşĺşćĺ­+ĺćç¨ćżçšăťĺćżçšďźâĺććĺ­
% https://zrbabbler.hatenablog.com/entry/20151006/1444134044
% https://okumuralab.org/tex/mod/forum/discuss.php?d=1701
%
\end{itemize}

\begin{table}[bp]
\caption{JISâUnicodeä¸ĺŻžĺ¤ĺ¤ćďźUnicodeâJISĺ¤ćă§ăŻč¤ć°ăŽćĺ­ăĺä¸čŚ
ăăăďźJISâUnicodeĺ¤ćă§ăŻč¤ć°ĺčŁăŽăăĄ\emph{ĺ¤Şĺ­}ăé¸ćăăăďź}
\label{table:jis_uni_var}
% ptexenc/unicode-jp.c ăŽ variation[] ăŤăŚĺŽçžŠďź
% http://www.t-lab.opal.ne.jp/tex/jis_uni_variation_uptex.html
% ä¸č¨ZRăŻ https://github.com/texjporg/jsclasses/issues/49 ă§č¨ĺăă
\centering\small
\begin{tabular}{ccccc}
\toprule
ĺşçš &amp; Character Name &amp; ćĺ­ &amp; JIS~X~0208    &amp; Unicode \\
\midrule
1-17 &amp; \code{OVERLINE} &amp; \kchar\jis"2131
  &amp; \code{0x2131} &amp; \code{U+203E}, \emph{\code{U+FFE3}} \\
1-29 &amp; \code{EM DASH} &amp; \kchar\jis"213D
  &amp; \code{0x213D} &amp; \code{U+2014}, \emph{\code{U+2015}} \\ %ZR
1-33 &amp; \code{WAVE DASH} &amp; \kchar\jis"2141
  &amp; \code{0x2141} &amp; \emph{\code{U+301C}}, \code{U+FF5E} \\ %ZR
1-34 &amp; \code{DOUBLE VERTICAL LINE} &amp; \kchar\jis"2142
  &amp; \code{0x2142} &amp; \emph{\code{U+2016}}, \code{U+2225} \\ %ZR
1-36 &amp; \code{HORIZONTAL ELLIPSIS} &amp; \kchar\jis"2144
  &amp; \code{0x2144} &amp; \emph{\code{U+2026}}, \code{U+22EF} \\
1-61 &amp; \code{MINUS SIGN} &amp; \kchar\jis"215D
  &amp; \code{0x215D} &amp; \emph{\code{U+2212}}, \code{U+FF0D} \\ %ZR
1-79 &amp; \code{YEN SIGN} &amp; \kchar\jis"216F
  &amp; \code{0x216F} &amp; \code{U+00A5}, \emph{\code{U+FFE5}} \\
1-81 &amp; \code{CENT SIGN} &amp; \kchar\jis"2171
  &amp; \code{0x2171} &amp; \code{U+00A2}, \emph{\code{U+FFE0}} \\ %ZR
1-82 &amp; \code{POUND SIGN} &amp; \kchar\jis"2172
  &amp; \code{0x2172} &amp; \code{U+00A3}, \emph{\code{U+FFE1}} \\ %ZR
2-44 &amp; \code{NOT SIGN} &amp; \kchar\jis"224C
  &amp; \code{0x224C} &amp; \code{U+00AC}, \emph{\code{U+FFE2}} \\ %ZR
\bottomrule
\end{tabular}
\end{table}

\upTeX ăŤăăăćĺšăŞćĺ­ăłăźăăŽçŻĺ˛ăŻ
ăćŹ§ććĺ­ă¨ăăŚćĺšăŞćĺ­ăłăźă(0--255)ăă¨
ăĺććĺ­ă¨ăăŚćĺšăŞćĺ­ăłăźăăăŽĺéĺă§ăăďź
ĺé¨ăŹăŹăˇăźăŽĺ&nbsp;´ĺăŻ\pTeX ă¨ĺ¨ăĺăă§ăăďź
ĺčăŻ1ăă¤ăăťĺžčăŻ2ăă¤ăăŞăŽă§äşăăŤéăŞăăŞăďź
ĺé¨UnicodeăŽĺ&nbsp;´ĺăŻĺžčăUnicodeĺ¨ä˝ďź0äťĽä¸0x10FFFFäťĽä¸ăŽ
ć´ć°ĺ¤ďźă¨ăŞăăŽă§ďź\emph{0--255ăŽçŻĺ˛ăŻéăŞăŁăŚăă
ĺćăťćŹ§ćăŠăĄăăŽćĺ­ăłăźăă¨ăăŚăćĺšă§ăă}ăă¨ăŤćł¨ćďź
% ĺé¨ăłăźăăŽçŻĺ˛ďźkanji.c ăŽ |is_char_kanji| ăŽĺŽčŁ

ăăăăŽĺ&nbsp;´ĺăďź\upTeX ăŻ
ăŞăŞă¸ăăŤăŽ\TeX ă\pdfTeX ăŞăŠăŽćŹ§ć\TeX ă¨ăŻĺĽĺăŤé˘ăăŚĺżăăă
äşćă§ăŞăďźĺé¨Unicodeă¸ăŽUTF-8ĺĽĺăŤéăŁăŚăăBOMăŽçĄčŚăă¨
ăçľĺćżçšăťĺćżçšăŽĺĺ­ĺŚçăă&nbsp;ăăŻčľˇăăďźăďź
\pTeX ă¨ćŻčźăăă°ĺšžĺĺˇŽç°ăčť˝ć¸ăăăŚăăďź

\begin{dangerous}
  ĺé¨ăłăźăUnicode (\code{uptex})ăŽĺ&nbsp;´ĺăŽä¸éă0x10FFFFă¨ăăăŽăŻ
  ĺŽăŻĺă§ăăďź24bitć´ć°ĺ¤ăćĺšă§ăăďźăăĄ0x110000äťĽä¸0xFFFFFFäťĽä¸ăŻ
  çšćŽăŞç¨éă§ĺŠç¨ă§ăăăăçäżăăăŚăăďź
  \begin{itemize}
   \item \verb|Bad character code|ă¨ăŠăźăĺşăŞăçŻĺ˛ďź0äťĽä¸0xFFFFFFäťĽä¸
    \footnote{\verb|Invalid KANSUJI char|ă¨ăŠăźăĺşăŞăçŻĺ˛ăĺăďź}
   \item ĺććĺ­ăăźăŻăłăŽćĺ­ăłăźăă¨ăăŚĺŻč˝ăŞçŻĺ˛ďź0äťĽä¸0x10FFFFäťĽä¸
   \item ĺććĺ­ăăźăăŽćĺ­ăłăźăă¨ăăŚĺŻč˝ăŞçŻĺ˛ďź0äťĽä¸0xFFFFFFäťĽä¸
  \end{itemize}
  %
  \upTeX ă§ăŻĺććĺ­ăăźăŻăłăăăłĺććĺ­ăăźăăŤăăăŚ
  ćĺ­ăłăźăăUTF-32ăŽä¸ä˝24bită§ć&nbsp;źç´ăăäťć§ă¨ăŞăŁăŚăăďź
  Unicodećĺ­ĺĽĺă§0x110000äťĽä¸0xFFFFFFäťĽä¸ăŽćĺ­ăłăźăăŻăăăăŞăăďź
  ćĺ­ăłăźăăć°ĺ¤ă§ćĺŽăăĺ&nbsp;´ĺăŽćąăăŻäťĽä¸ă¨ăăŚăăďź
  \begin{itemize}
   \item \.{char}, \.{chardef}ĺăł\.{kchar}, \.{kchardef}ďź
    ćĺ­ăłăźăă0x110000äťĽä¸ă§ăăăŽăžăžăŽĺ¤ă§ĺććĺ­ăăźăăçćăăďź
    DVIĺşĺćăŤăŻăćĺ­ăłăźă mod 0x110000ăă§ć¸ăčžźăžăăďź
    % Output node |p| ... ăŽĺŚçă§ toDVI()
   \item \.{kansujichar}ă¸ăŽćĺ­ăłăźăäťŁĺĽďź
    ĺ¤ăŽć&nbsp;źç´ćăŤăćĺ­ăłăźă mod 0x110000ăăčĄăăŽă§ďź
    äťĽéăŽ\.{kansuji}ăŤăăçćăăćĺ­ăăźăŻăłăŻ0äťĽä¸0x10FFFFäťĽä¸ďź
    % eqtb ăăźăăŤć&nbsp;źç´ćăŤ toDVI()
   \item \eTeXpre(u)\pTeX ăŽ\.{Uchar}, \.{Ucharcat}ďź
    ćĺ­ăăźăŻăłçććăŤăćĺ­ăłăźă mod 0x110000ăăčĄăăŽă§ďź
    ăăŻă0äťĽä¸0x10FFFFäťĽä¸ăŤăŞăďź
    % print_kanji() ăŽĺŚçă§ toUCS()
  \end{itemize}
  çšăŤ\.{kchar}ăŽä¸č¨äťć§ăŻOTFăăăąăźă¸ă§ä˝żăăăŚăăďź
  ăăăŻďź|\CID| (Adobe-Japan1)ăŽăăăŞ
  Unicodeă§ăŞăćĺ­ăłăźăăćąăĺé¨ĺŚçăŤăăăŚ
  UnicodeăŽć­ŁčŚăŽćĺ­ăłăźăďź0x10FFFFäťĽä¸ďźăŽ
  ăŤăă´ăŞăźăłăźăăçŚĺăăăŤăăŁăŽăăăăżăŽĺ˝ąéżăĺăăŞăçŽçă§ăăďź
  % 0x110000 äťĽä¸ăŽćąăďźçžçśă§ăŻ otf ă§ćĺłçăŤĺŠç¨ďź
  % ĺ°ćĽçăŤç°ä˝ĺ­ĺŻžĺżăŽĺé¨ăłăźăăŤä˝żăĺŻč˝ć§ăçäżďź
  % https://okumuralab.org/~okumura/texfaq/qa/50036.html
  % https://github.com/texjporg/tex-jp-build/issues/160
  % https://github.com/texjporg/tex-jp-build/issues/46
\end{dangerous}

\subsection{ćĺ­ăłăźăăŽĺĺžă¨ćĺŽ}\label{sec:getcode}
(u)\pTeX ă§ăŻăćĺ­ăłăźăăĺźć°ăŤă¨ăăăŞăăăŁăăă¨ăăŁăŚăďźçśćłăŤăăŁăŚ
\begin{itemize}
 \item ćŹ§ććĺ­ăŽćĺ­ăłăźă0--255ăă¨ăďźäžďź\.{catcode}ďź
 \item ĺććĺ­ăŽĺé¨ăłăźăăă¨ăďźäžďź\.{inhibitxspcode}ďź
 \item ä¸č¨2ă¤ăŽăŠăĄăă§ăă¨ăăďźäžďź\.{prebreakpenalty}ďź
\end{itemize}
ăŽăăăăŽĺ&nbsp;´ĺăăăăăďź

\medskip

ćŹăă­ăĽăĄăłăă§ăŻä¸ăŽăŠăăăćç¤şăăăăăŤďźäťĽä¸ăŽăăăŞč¨ćłăćĄç¨ăăďź
\begin{description}
 \item[&lt;8-bit number&gt;] 0--255ăŽçŻĺ˛ĺăŽć´ć°
 \item[&lt;kanji code&gt;] ĺććĺ­ăŽĺé¨ăłăźă
 \item[&lt;character code&gt;] 0--255ăŽçŻĺ˛ĺăŽć´ć°ďźăăăłĺććĺ­ăŽĺé¨ăłăźă
 \item[&lt;16-bit number&gt;] 0--65535ăŽçŻĺ˛ĺăŽć´ć°
\end{description}

ĺććĺ­ăŽćĺ­ăłăźăăć°ĺ¤ă§ćĺŽăăăŤăŻďźĺé¨ăłăźăă§čĄ¨çžăăĺżčŚăăăďź
ăăŽćšćłă¨ăăŚďź(u)\pTeX ă§ăŻäťĽä¸ăĺŠç¨ă§ăăďź
\begin{itemize}
 \item \TeX82ă¨ĺć§ăŤďź
  ăăăŻăŻăŞăźă(|`|)ăä˝żăŁăŚă|`ă|ăăŽăăăŤăăŚĺććĺ­ăŽĺé¨ăłăźăă
  ĺé¨ć´ć°ă¨ăăŚĺžăăă¨ăă§ăăďźćŹ§ććĺ­ăŤă¤ăăŚăŻďź1ćĺ­ăŽĺśĺžĄçś´ă
  äťŁăăăŤćĺŽăăăă¨ăă§ăăďźäžăă°ďźă|`b|ăă¨ă|`\b|ăăŻĺăćĺłă&nbsp;ăŁăďźăďź
  ĺăăă¨ăĺććĺ­ăŤĺŻžăăŚă|`\ă|ăăŞăŠă¨čĄăăă¨ăŻă§ăăŞăďź
 \item ć°ĺ¤ă§ç´ćĽčĄ¨çžăăăăăŤďźç°ăŞăă¨ăłăłăźăăăĺé¨ăłăźăă¸ăŽ
  ćĺ­ăłăźăĺ¤ćăčĄăăăŞăăăŁăăç¨ćăăăŚăăďź
  \ref{sec:convert}çŻăĺç§ďź
\end{itemize}

\section{ĺćăŤăă´ăŞăźăłăźăă¨\TeX ăŽĺĽĺăă­ăťăăľ}

\TeX ăŽĺŚçăŻäťĽä¸ăŽăăăŞćŽľéăč¸ăżďź\pTeX çłťĺă§ăăăăŻĺąéă§ăăďź
% https://blog.wtsnjp.com/2016/11/24/tex-by-topic1/
% https://blog.wtsnjp.com/2017/03/31/tex-by-topic2/
\begin{itemize}
 \item ĺĽĺăä¸čĄĺä˝ă§čŞ­ăżčžźăďźćščĄćĺ­ăŻCR,~LFăăăăĺŻďźďź
 \item ďź\code{ptexenc}ăŤăăă¨ăłăłăźăĺ¤ćďź
 \item \emph{ĺĽĺăă­ăťăăľ}ăăŤăă´ăŞăźăłăźăăŤĺžăŁăŚăé&nbsp;ăŤăăăźăŻăłĺ
   ăă¤ă¤ďźăăŽéç¨ă§
  \begin{itemize}
   \item \emph{ĺąéăă­ăťăăľ}ďźăăŻă­ăă˘ăŻăăŁăćĺ­ăŞăŠ
     ĺąéĺŻč˝ăăźăŻăłăŽĺąé
   \item \emph{ĺŽčĄăă­ăťăăľ}ďźäťŁĺĽăăăŻă­ĺŽçžŠďźĺşĺăŞăšăć§çŻăŞăŠ
     ĺąéä¸č˝ăăźăŻăłăŽĺŽčĄ
  \end{itemize}
   ăäťĺĽăă\footnote{äžăă°ďźĺŽčĄăă­ăťăăľăŽçľćăŤăă
   ăŤăă´ăŞăźăłăźăăĺ¤ć´ăăăă°ďź
   čĄĺă§ăĺĽĺăă­ăťăăľăŽĺä˝ăŤĺ˝ąéżăĺăźăďźäťĽéăŽĺąéăťĺŽčĄçľćăĺ¤ĺăăďź
   ăă&nbsp;ăďźé&nbsp;ăŤä¸ĺşŚăăźăŻăłĺăăăăăŽăŽăŤăă´ăŞăźăłăźăăŻĺşĺŽă§ăăďź}ďź
   % e-TeX ăŽ \scantokens ăé¤ăďź
 \item \emph{ăă¸ăĽă˘ăŤăă­ăťăăľ}ăĺăĺăŁăĺşĺăŞăšăăĺăŤ
   čĄĺĺ˛ăťăăźă¸ĺĺ˛ăŞăŠăčĄăďźăăźă¸ăDVIăŤĺşĺăăďź
\end{itemize}

\TeX82ă§ăŻĺćĺ­ăŤ0--15ăŽăŤăă´ăŞăźăłăźă(\.{catcode})ăĺ˛ăĺ˝ăŚăŚăăďź
ĺĽĺăă­ăťăăľăŻăăŠăŽăŤăă´ăŞăźăłăźăăŽćĺ­ăćĽăăăă§çśćăéˇç§ťăă
ćéăŞăźăăăăłă¨ăăŚč¨čż°ă§ăă\cite{topic}ďź
\pTeX çłťĺăŤăăăŚăĺć§ă§ăăďźĺććĺ­ăŤăŻćŹ§ććĺ­ă¨ăŻç°ăŞă
ĺ°ç¨ăŽăŤăă´ăŞăźăłăźă(\.{kcatcode})ăĺ˛ăĺ˝ăŚăăă¨ă§ćĄĺźľăăŚăăďź
\.{kcatcode}ăŽäťć§ăŻ\pTeX ă¨\upTeX ă§ç°ăŞăăŽă§ďźĺĽăăŤčŞŹćăăďź
% [TODO] ĺćăăźăŻăłăŽčŠąăŻäťĽä¸ăĺç§ăăŞăă ptex-guide-en ăć´ĺ
% https://gist.github.com/zr-tex8r/629b5334d19cbcfc3fe58728b81b1c80

\subsection{ĺćăŤăă´ăŞăźăłăźăă\pTeX ăŽĺ&nbsp;´ĺă}
\label{sec:ptex_kcat}
\pTeX ăćŹ§ć\TeX ă¨ĺ¤§ăăç°ăŞăăŽăŻäťĽä¸ăŽçšă§ăăďź
\begin{itemize}
  \item ćĺ­ăłăźăăŤăăŁăŚĺććĺ­ďź2ăă¤ăďźă¨ćŹ§ććĺ­ďź1ăă¤ăďźăĺşĺĽăăďź
  \item ĺććĺ­ç´ĺžăŽćščĄăŻďźćŹ§ććĺ­ç´ĺžăŽćščĄă¨ç°ăŞăďźçŠşç˝ă¨ăżăŞăăŞăďź
  \item ĺććĺ­ăŤăŻĺ˝šĺ˛ăŤĺżăăŚ16~($\mathit{kanji}$), 17~($\mathit{kana}$),
    18~($\mathit{other\_kchar}$)ăŽĺćăŤăă´ăŞăźăłăźăăŽăăăăăĺ˛ăĺ˝ăŚăďź
    ĺćçśćă§ăŻďźJISăŽ1,~2, 7--15, 85--94ĺşăŽćĺ­ăŻ18ďź3--6ĺşăŽćĺ­ăŻ17ďź
    16--84ĺşăŽćĺ­ăŻ16ăŤč¨­ĺŽăăăŚăăďź
  \item ĺććĺ­ăăźăŻăłăŻćĺ­ăłăźăăŽăżă§čĄ¨çžăăďźăăŽăŤăă´ăŞăźăłăźăăŻ
    éćçŽĺşăăăăăăŤăŞăŁăŚăăďź
    ćŹ§ććĺ­ăăźăŻăłă\TeX82ă¨ĺć§ăŤăŤăă´ăŞăźăłăźă$c$ă¨ćĺ­ăłăźă$s$ăŽ
    çľăżĺăă($256c+s$)ă§čĄ¨çžăăăŚăăăŽă¨ăŻĺŻžç§çă§ăăďź
\end{itemize}
ĺćăŤăă´ăŞăźăłăźăăŽĺ¤ăŻä¸ĺżďź
16ăăćź˘ĺ­ăďź17ăăăăŞăďź18ăăăăŽäťăŽĺćč¨ĺˇăăćĺłăăŚăăďź
ăă&nbsp;ăĺşăŽä¸­čşŤăčŚăă°ĺăăéăďź\pTeX ă§ăŻçšăŤ
ĺ¨č§ć°ĺ­ăťă˘ăŤăăĄăăăďź3ĺşďźă¨ăŽăŞăˇăŁćĺ­ďź6ĺşďźă17ă§ăăďź
ă­ăŞăŤćĺ­ďź7ĺşďźăŻ18ă¨ăŞăŁăŚăăďź

ĺćăŤăă´ăŞăźăłăźăăŽĺ¤ăŤăăĺä˝ăŽéăăŻćŹĄăŽăăăŤăŞă
ďź16ă¨17ăŻ\pTeX ăŽĺé¨ĺŚçăŤăăăŚăŻĺ¨ăç­äžĄă§ďź18ă&nbsp;ăăç°ăŞăďźďź
\begin{itemize}
  \item \TeX82ă§ăŻďźăč¤ć°ćĺ­ăăăŞăĺ˝äť¤ăďźăłăłăă­ăźăŤăŻăźăďźăŤăŻ
    ăŤăă´ăŞăźăłăźăă11~($\mathit{letter}$)ăŽćĺ­ăăä˝żç¨ă§ăăŞăăă¨ăŤăŞăŁăŚăăăďź
    \pTeX ă§ăŻăŤăă´ăŞăźăłăźăă16,~17ăŽĺććĺ­ăĺăăăŚä˝żç¨ăăăă¨ăă§ăăďź
  \item ä¸ćšďźăŤăă´ăŞăźăłăźăă18ăŽĺććĺ­ăŻăłăłăă­ăźăŤăŻăźăä¸­ăŤăŻä˝żç¨ă§ăăŞăďź
    ă|\ă|ăăŽăăăŤä¸ćĺ­ĺ˝äť¤ďźăłăłăă­ăźăŤăˇăłăăŤďźăŤä˝żç¨ăăăă¨ăŻă§ăă
    \footnote{ă|\ă|ăăŽăăăŞĺćăŽăłăłăă­ăźăŤăˇăłăăŤă§čĄăçľăăŁăĺ&nbsp;´ĺďź
    ă|\!|ăăŽăăăŞćŹ§ćăłăłăă­ăźăŤăˇăłăăŤă¨ĺć§ăŤćščĄçąćĽăŽçŠşç˝ăčż˝ĺ&nbsp;ăăăŚăăžăďź
    ĺććĺ­ç´ĺžăŽćščĄăŻä˝ăçşçăăŞăă¨ăăĺĺăŤĺăăŚăăăďź
    ăăăŻ\TeX~Live 2019ăŽ\pTeX~3.8.2ă§äżŽć­Łăăă\cite{tjb37}ďź}ďź
  \item ĺžă§čŞŹćăă\.{jcharwidowpenalty}ăŻďźăŤăă´ăŞăźăłăźăăŽĺ¤ă16,~17ăŽ
    ĺććĺ­ăŽĺăŤăŽăżćżĺĽăăăăăăŽă§ďźĺ¤ă18ăŽĺććĺ­ăŽĺăŤăŻćżĺĽăăăŞăďź
  \item ăăăăŤăăďźĺććĺ­ăŻćąşăăŚâă˘ăŻăăŁăâďźćŹ§ććĺ­ăŤăăă
    ăŤăă´ăŞăźăłăźă13ăŽăăăŞçśćďźăŤăŻăŞăăŞăďź
\end{itemize}
ĺžăŁăŚďź\emph{\pTeX ăŽć˘ĺŽă§ăŻ
ăłăłăă­ăźăŤăŻăźăăŤĺ¨č§ć°ĺ­ăťă˘ăŤăăĄăăăăťăŽăŞăˇăŁćĺ­ăĺŤăăăă¨ăă§ăăăďź
ă­ăŞăŤćĺ­ăŻä¸ĺŻďźăłăłăă­ăźăŤăˇăłăăŤăŽăżďźă§ăă}ăă¨ăăăă
ďź\upTeX ăŽć˘ĺŽă§ăŻĺ¨ăŚä¸ĺŻďźďź
% upTeX ăŽć˘ĺŽă§ăŻďźĺ¨č§ć°ĺ­ă¨ă˘ăŤăăĄăăă(Halfwidth and Fullwidth Forms)ăť
% ăŽăŞăˇăŁćĺ­ăťă­ăŞăŤćĺ­ăŽĺ¨ăŚă18ă§ăăďź

\medskip

ĺćăŤăă´ăŞăźăłăźăăĺĺžăťč¨­ĺŽăăăăŞăăăŁăă\.{kcatcode}ă§ăăďź
\begin{cslist}
  \csitem[\.{kcatcode} &lt;character code&gt;=&lt;16--18&gt;]
  ăłăăĽăăăŁç\pTeX ă§ăŻďźĺćăŤăă´ăŞăźăłăźă(\.{kcatcode})ăŻ
  DVIä¸­ăŽä¸ä˝ăă¤ăăă¨ďźăăŞăăĄďźJISăłăźăă§ăăĺşăă¨ďźăŤĺ¤ăč¨­ĺŽĺŻč˝ă§ăă
  \footnote{%
    ăŞăŞă¸ăăŤăŽă˘ăšă­ăź\pTeX ă§ăŻďźĺé¨ăłăźăăŽä¸ä˝ăă¤ăăă¨ăŤĺ¤ăč¨­ĺŽĺŻč˝ă§ăăŁăďź
    ăăŞăăĄďźĺé¨ăłăźăăEUC-JPăŽă¨ăăŻĺşăă¨ăŤč¨­ĺŽĺŻč˝ă§ăăŁăăďź
    ĺé¨ăłăźăăShift-JISăŽă¨ăăŻ
    $2n-1$ĺşăť$2n$ĺş($1\leq n\leq 47$)ăŻĺä¸ăŽăŤăă´ăŞăźăłăźăăćă¤ăă¨ăŤăŞăďź
  }ďź\end{cslist}
\begin{dangerous}
  \.{kcatcode}ă§ăŻćŹ§ććĺ­ăŽćĺ­ăłăźă(0--255)ăćĺŽăăăă¨ăă§ăăăďź
  ăăŽĺ&nbsp;´ĺă0ĺşćąăăă¨ăăŚćąăăăďź
  \pTeX ăŽĺŚçă§ăăŽă0ĺşăăŽ\.{kcatcode}ăä˝żăăăăă¨ăŻăŞăăŽă§ďź
  äşĺŽä¸ăŻă16--18ăŽăŠăăăć&nbsp;źç´ĺŻč˝ăŞčż˝ĺ&nbsp;ăŹă¸ăšăżăç¨ĺşŚăŽä˝żăćšăăăŞăďź
\end{dangerous}
ăăăďź
\pTeX ăŤăăăŚăŻďź\.{kcatcode}ăćć¸ăŽĺŚçéä¸­ă§ĺ¤ć´ăăăă¨ăŻćłĺŽăăăŚăăŞăďź
ă¨ăăăŽăďź\pTeX ă§ăŻďź\upTeX ă¨ç°ăŞăďźĺććĺ­ăăźăŻăłăŤ
ăŤăă´ăŞăźăłăźăăŽćĺ&nbsp;ąăŻäżĺ­ăăăďź
ĺććĺ­ăĺŚçĺŻžčąĄă¨ăŞăăăłăŤăŤăă´ăŞăźăłăźăăŽĺ¤ăéćçŽĺşăăăăăă§ăăďź
ăă&nbsp;ăďź\pTeX ă§ă |\let\CS=ă| ăŞăŠă¨ăăŚĺććĺ­ăăźăŻăłă|\let|ăăă¨ďź|\CS|ăŤăŻ
ăăŽćăŽăŤăă´ăŞăźăłăźă(\.{kcatcode})ăäżĺ­ăăă\footnote{ăłăăĽăăăŁç\pTeX ă§ăŻďź
ä¸ćçăŤăĺććĺ­ăăźăŻăłă|\let|ăă|\CS|ăŤăăăŚăďźăăăĺŚçĺŻžčąĄă¨ăŞăăăłăŤ
ăŤăă´ăŞăźăłăźăăŽĺ¤ăĺĺĺžăăăă¨ăăćĺăŤĺ¤ć´ăăăă¨ăă(r51021)ďź
ăăăďźăăŽĺ¤ć´ăä¸ĺŽĺ¨ă§ă\.{ifcat}ă§ăŻĺĺĺžăăăďź\.{ifx}ă§ăŻĺĺĺžăăŞăăă¨ăă
ä¸çľąä¸ăŞçśćă¨ăŞăŁăŚăăžăŁăăăďźr59699ă§ĺžćĽăŽćĺăŤćťăăďźă˘ăšă­ăźçă¨ĺăďźďź
çľćçăŤďź\TeX~Live 2019--2021ă§ăŻăăă&nbsp;ăďźâŚăăĺ˝ăŚăŻăžăăŞă\cite{man4}ďź}ďź
% ä¸çľąä¸ăŞćĺăŤăŞăŁăŚăăăŽăŻäťĽä¸ăŽăăźă¸ă§ăłďź
%   * TeX Live 2019 rebuild 2019-05-30 (p3.8.2)
%   * TeX Live 2020 (p3.8.3)
%   * TeX Live 2021 (p3.9.0)
\begin{dangerous}
  äžăă°ďź\pTeX ă§ăŻäťĽä¸ăŽăłăźăă§ĺŽçžŠăăă|\X|,~|\Y|ă§ĺźć°çľçŤŻăç¤şăăăăăŤăŻ
  ăŤăă´ăŞăźăłăźăăŽćĺ&nbsp;ąăŻć&nbsp;źç´ăăăŞăăăďź|\X|ă¨|\Y|ăŻĺ¨ăĺăĺä˝ă¨ăŞăďź
  ä¸ćšďźĺăăłăźăă\upTeX ă§ĺŽčĄăăă¨ďź|\X|ă¨|\Y|ăŻç°ăŞăĺä˝ă¨ăŞăďź
\begin{verbatim}
  \kcatcode`ă=16
  \def\X#1ă{\message{X: #1}}
  \kcatcode`ă=17
  \def\Y#1ă{\message{X: #1}}
\end{verbatim}
\end{dangerous}

\subsection{ĺćăŤăă´ăŞăźăłăźăďźĺććĺ­ă¨ćŹ§ććĺ­ăŽĺşĺĽă\upTeX ăŽĺ&nbsp;´ĺă}
\label{sec:uptex_kcat}
\upTeX ăŤăăăŚăŻ\.{kcatcode}ă\pTeX ăăĺ¤§ăăäťć§ĺ¤ć´ăăăŚăă
\footnote{\upTeX ăŽć­Łĺźç¨čŞă¨ăăŚăŻďźĺććĺ­ăăźăŻăłďźĺćăăźăŻăłďźăŻ
CJKćĺ­ăăźăŻăłďźCJKăăźăŻăłďźă¨ĺźăśăšăă&nbsp;ăďźćŹćć¸ă§ăŻĺç´ĺăŽăă
\pTeX ă¨ĺăç¨čŞăç¨ăăďź}ďź
\begin{itemize}
  \item \.{kcatcode}ăăŞăăăŁăăŤĺććĺ­ăŽĺ˝šĺ˛ăŽĺéĄă&nbsp;ăă§ăŞăďź
    ăăźăŻăłĺçćăŤăăăĺććĺ­ă¨ćŹ§ććĺ­ăŽĺşĺĽă¨ăăćŠč˝ăäťä¸ăăďź
    ĺˇä˝çăŤăŻďź\emph{\.{kcatcode}ăŤçšĺĽăŞĺ¤ă¨ăăŚ15~}($\mathit{not\_cjk})$\emph{ă
    č¨­ĺŽăăă¨ďźăăăŻ8ăăăćŹ§ććĺ­ăŽăă¤ăĺă¨ăăŚćąăăďźĺććąăăăăŞăăŞă}ďź
  \item ĺććĺ­ăŤĺŻč˝ăŞăŤăă´ăŞăźăłăźăă¨ăăŚ19~($\mathit{hangul}$)ăčż˝ĺ&nbsp;ăăďź
    \emph{ăŤăă´ăŞăźăłăźă19ăŽĺććĺ­ăŻďźç´ĺžăŽćščĄăćŹ§ćĺć§ăŤçŠşç˝ă¨ăżăŞă}
    ă¨ăăçšăçšĺĽă§ăăďźăăäťĽĺ¤ăŽçšă§ăŻăŤăă´ăŞăźăłăźă16,~17ăŽĺććĺ­ă¨ĺć§ă§ăă
    ďźäžăă°ďźăłăłăă­ăźăŤăŻăźăä¸­ăŤăä˝żç¨ă§ăăďźďź
  \item \emph{ĺććĺ­ăăźăŻăłăŤă¤ăăŚăăŤăă´ăŞăźăłăźă}(\.{kcatcode})\emph{ăŽćĺ&nbsp;ąăĺŤă}ďź
    ćŹ§ćăăźăŻăłăcatcode 4bit + charcode 8bită§ďź
    ĺćăăźăŻăłăkcatcode 5bit + charcode 24bită§čĄ¨ăďź
\end{itemize}

\begin{cslist}
  \csitem[\.{kcatcode} &lt;character code&gt;=&lt;15--19&gt;]
  ĺé¨ăŹăŹăˇăźăŽ\upTeX ă§ăŻďź\pTeX ă¨ĺć§ăŤ
  JISăłăźăă§ăăĺşăă¨ăŤĺ¤ăč¨­ĺŽĺŻč˝ďź
  ĺé¨UnicodeăŽ\upTeX ă§ăŻďźĺćăŤăă´ăŞăźăłăźă(\.{kcatcode})ăŻ
  ćŚă­UnicodeăŽăă­ăăŻăă¨ďźâťä¸é¨ăŽăă­ăăŻăŻĺĺ˛ăăŚăăďźăŤĺ¤ăč¨­ĺŽĺŻč˝ă§ăăďź
  % ĺĺ˛çśćł: https://github.com/texjporg/tex-jp-build/issues/43
\end{cslist}

ăăŽăăăŤĺé¨UnicodeăŽ\upTeX ă§ăŻ\.{kcatcode}ăŽč¨­ĺŽă
UnicodeăŽăă­ăăŻăă¨ă§ăăăŽă§ďź
\pTeX ăŽJISăłăźăăŽĺşăă¨ăŤč¨­ĺŽăăăăŽă¨ăŻĺéĄăĺżăăăä¸č´ăăŞăďź
ĺăă­ăăŻăŽĺćĺ¤ăŤă¤ăăŚăŻ
\href{https://github.com/texjporg/uptex-base}{\file{uptex-base}}ă§éĺ¸ăăŚăă
\file{01uptex_doc_utf8.txt}ăĺç§ăŽăă¨ďź
\begin{dangerous}
äžăă°éˇéłč¨ĺˇăăźăăŻJISăłăźăă§\codeHEX{\tojis`ăź}% JIS 0x213C
ă§ăăďźč¨ĺˇă¨ăăŚ1ĺşăŤĺŤăžăăăă\pTeX ă§ăŽ\.{kcatcode}ăŻ18ă§ăă
ďźĺé¨ăŹăŹăˇăźăŽ\upTeX ă§ăĺć§ďźďźä¸ćšUnicodeă§ăŻ\codeHEX{\toucs`ăź}% U+30FC
ă§ăăďźăŤăżăŤăă¨ĺăăă­ăăŻăŤĺŤăžăăăăĺé¨UnicodeăŽ\upTeX ă§ăŽ
\.{kcatcode}ăŻ17ă§ăăďźăăŞăăĄďź\pTeX ă§ăŻăăźăăăłăłăă­ăźăŤăŻăźăä¸­ăŤ
ĺŤăăăăŞăăďź\upTeX ă§ăŻč¨ąăăăďź
\begin{verbatim}
\def\éťăăźăŤăź{...}
  % =&gt; pTeX ă§ăŻă\éťăăă¨ăăĺ˝äť¤ă¨ăăźăŤăźăă¨ăăçľçŤŻ
  % =&gt; upTeX ă§ăŻă\éťăăźăŤăźăă¨ăăĺ˝äť¤ăĺŽçžŠăăă
\newcommand{\éťăăźăŤăź}[1]{...}% =&gt; pTeX ă§ăŻă¨ăŠăźďźupTeX ă§ăŻéă
\end{verbatim}
% https://okumuralab.org/tex/mod/forum/discuss.php?d=2703
ăăĄăăăăŽéăŽäžăăăďź
\pTeX ă§ăŻĺ¨č§ć°ĺ­ă¨ă˘ăŤăăĄăăă(Halfwidth and Fullwidth Forms)ďź
ăŽăŞăˇăŁćĺ­ă17ă§ăăŁăăďź\upTeX ă§ăŻďźă­ăŞăŤćĺ­ă¨ĺăăďź18ă¨ăăŚăăďź
\end{dangerous}

ăŞă\ref{sec:uptex_code}çŻă§čż°ăšăéăďź\upTeX ă§ăŻĺé¨ăłăźăăŤăăă
0--127ăŽ7ăăăASCIIćĺ­éĺăŻĺ¸¸ăŤćŹ§ććĺ­ăăźăŻăłă¨ăăŚćąăăă¨ă¨ăăŚăăďź
čŁăčżăă°\emph{ĺććĺ­ăăźăŻăłă§ćĺ­ăłăźăă0--127ă¨ăăçśćłăŻ
čľˇăăăăŞă}\footnote{ĺććĺ­ăăźăă¨ăăŚăŻćĺ­ăłăźă0--127ăĺŻč˝ďź
\ref{sec:kchar}çŻă§ĺşăŚăă\.{kchar}ă§çćăăăďź}ăďź
ăăŽăă­ăăŻăŽ\.{kcatcode}ă15äťĽĺ¤ăŤč¨­ĺŽăăŚăĺććąăăŻăăăŞăďź
\begin{dangerous}
äžăă°\upTeX ăŽć˘ĺŽďźĺé¨Unicodeďźăă |\kcatcode`ă=15| ăĺŽčĄăăă¨ďź
äťĽéăŽă|ă|\relaxăăŻ |^^e3^^81^^82| ăĺĽĺăăă¨ăżăŞăăă
\footnote{ĺé¨EUC-JPă§ăŻ |^^a4^^a2|ďźĺé¨Shift-JISă§ăŻ |^^82^^a0|ăŤăŞăďź}ďź
ăăŽçśćłă§çśăăŚ |\kcatcode`ă=17| ăĺŽčĄăăŚăďź
ăăăŻ |\kcatcode`^^e3^^81^^82| ăŽĺĽĺă¨ăżăŞăăăăŽă§ĺăŤăŻćťăăŞăďź
äťŁăăăŤ |\kcatcode\ucs"3042=17| ă¨ĺŽčĄăăĺżčŚăăăďź
\end{dangerous}

ć˘ĺŽă§ăŻăăŽăăăŤĺćă¨ćŹ§ćă\.{kcatcode}ăŽĺ¤ďź16--19ăďź15ăďźăŤĺžăŁăŚ
ĺşĺĽăăăăďźäťĽä¸ăŽăăŞăăăŁăăŤăăŁăŚĺ¤ć´ĺŻč˝ă§ăăďź

\begin{cslist}
 \csitem[\.{enablecjktoken}]
  ĺććĺ­ă¨ćŹ§ććĺ­ăŽĺşĺĽăŤă¤ăăŚ\.{kcatcode}ăŽč¨­ĺŽăŤĺžăďź
  15ăŞăćŹ§ććąăďź16äťĽä¸ăŞăĺććąăăŤăăďź
  \upTeX ăŽć˘ĺŽăŻăăŽçśćă§ăăďź

 \csitem[\.{disablecjktoken}]
  ĺ¨ăŚăŽUnicodećĺ­ăďź\.{kcatcode}ăŤăăăăăďźćŹ§ććąăăŤăăďźĺăŞăăă¤ăĺă¨ăăŚćąăďźďź
  ĺĽĺăŤé˘ăăŚďź\code{ptexenc}ăŠă¤ăăŠăŞăŤăăĺĺŚçăé¤ăďź8-bitćŹ§ć\TeX ă¨äşćăŤăŞăďź

 \csitem[\.{forcecjktoken}]
  ASCIIćĺ­äťĽĺ¤ăŽUnicodećĺ­ăďź\.{kcatcode}ăŤăăăăăďź
  ĺźˇĺśçăŤĺććąăăŤăăďź
  ăăŽă¨ăďź\.{kcatcode}ă15ăŽćĺ­ăŻăăăŽäťĺćă(18)ćąăăŤăŞăďź
\begin{verbatim}
\forcecjktoken\kcatcode`čĽż=15
\message{\the\kcatcode`ďź&nbsp; % ==&gt; 18
\ifcat čĽżďź&nbsp; T\else F\fi}% ==&gt; T
\end{verbatim}
\end{cslist}

\subsection{\pTeX ăŽĺĽĺăă­ăťăăľ}% \pTeX~4.0.0ă§ăŽćšäżŽăĺŤă
\label{sec:ptex_input}
\begin{figure}[b]
\small
\[
\entrymodifiers={++[o][F-]}
\xymatrix{%
  *\txt{}&amp;*\txt{}&amp;*\txt{}&amp;*\txt{}\\
  *\txt{}\ar[r]&amp;
  \textit{N} \ar@(ur,ul)[rr]^{1,2,7,13,E}
  \ar[u]^{5\tpar, 14}
  \ar@(d,l)[]^{9\tign,10\tign}
  \ar@/_3em/[ddrr]^(0.55){J}
  \ar[dr]^(0.4){0}&amp;*\txt{}
  &amp;\textit{M}
  \ar[u]^-{5\tsp,14}\ar@/_.5em/[dd]_(0.7){J}
  \ar@/_3em/[lldd]_(0.85){10}
  \ar@(u,r)[]^{1,2,7,9\tign,13,E}
  \ar@/_1ex/[dl]_0&amp;*\txt{}\\
  *\txt{}&amp;*\txt{}&amp;*+[F-]\txt{\mbox{ĺśĺžĄçś´čŞ­ăżĺă}}
  \ar@{--&gt;}@/^1ex/[dl]\ar@{--&gt;}@/_1ex/[ur]
  \ar@{--&gt;}@/^1ex/[rrr]
  &amp;*\txt{}&amp;*\txt{}&amp;\textit{T}
  \ar@/^1ex/[lll]^(0.25){0}
  \ar[llu]_{7,13,E}\ar[d]^-{5,14}\ar@/^1ex/[lld]^{1,2,J}
  \ar@(u,r)[]^{9\tign,10\tign}
  \\
  *\txt{}&amp;
  \textit{S}\ar@/^.5em/[ur]^-(0.4){0}
  \ar[d]^-{5,14}
  \ar@(d,l)^{9\tign,10\tign}
  \ar@(d,d)@/_3em/[rr]_{J}
  \ar@/_3em/[uurr]_(0.3){1,2,7,13,E}&amp;*\txt{}&amp;
  \textit{K}\ar[ul]^(0.3){0}\ar@/_.5em/[uu]_(0.3){7,13,E}
  \ar@/^1.5em/[ll]^{10}
  \ar@(d,r)[]_{1,2,9\tign,J}
  \ar[d]_-{5,14}
  &amp;*\txt{}&amp;*\txt{}\\
  *\txt{}&amp;*\txt{}&amp;*\txt{}&amp;*\txt{}
%
}
\]
  \centering
  \parbox{35zw}{%
    ``E''ăŻăŤăă´ăŞăźăłăźă3, 4, 6, 8, 11, 12ăŽćĺ­éăďź``J''ăŻĺććĺ­ăčĄ¨ăďź\\
    ``$5\tpar$''ăŽăăăŞä¸äťăćˇťĺ­ăŻăćżĺĽăăăăźăŻăłăăčĄ¨ăďź\\
    ä˝ăďź``$9\tign$'', ``$10\tign$''ăŻăăŽćĺ­ăçĄčŚăăăă¨ăç¤şăăŚăăďź
  }
  \caption{\pTeX~4.0.0ďźć˘ĺŽďźăŽĺĽĺăă­ăťăăľăŽçśćéˇç§ťĺł}
  \label{fig:ptex_input}
\end{figure}
% [TODO] ăŤăă´ăŞăźăłăźă 19 ăĺłăŤĺĽăăŚăăŞă

ĺăŤčż°ăšăéăă§ăăăďź\pTeX ăŽĺĽĺăă­ăťăăľăŻ\TeX82ăŽăăăćĄĺźľăăăăŽăŤăŞăŁăŚăăďź
\autoref{fig:ptex_input}ăŻ\emph{\pTeX~4.0.0ć˘ĺŽć}ăŤăăăĺĽĺăă­ăťăăľăŽçśćéˇç§ťĺłă§ăăďź
\TeX82ăăćĄĺźľăăăçšďźăăăłčŞŹćăĺżčŚăŞçšăäťĽä¸ăŤčż°ăšăďź
\begin{description}
  \item[ĺé¨çśćăŽčż˝ĺ&nbsp;] \TeX82ă§ăŻçść\textit{N} (new line)ďźçść\textit{M} (middle of line)ďź
  çść\textit{S} (skipping spaces)ă¨ăă3çśćă§ăăŁăăďź\pTeX ă§ăŻ
  ćŹĄăŽ2çśćăčż˝ĺ&nbsp;ăăăďź
  \begin{description}
    \item[çść\textit{K}] ĺććĺ­ăŽç´ĺžďźçść\textit{M}ă¨ăŽĺˇŽç°ăŻćščĄă§ăšăăźăšăĺşĺăăŞăăă¨ďź
    \item[çść\textit{T}] ĺććĺ­ă§çľăăăłăłăă­ăźăŤăŻăźăăŽç´ĺžďź
    çść\textit{S}ă¨ăŽĺˇŽç°ăŻă°ăŤăźăéĺ§ăťçľäş(|{|, |}|)ă§ăŽéˇç§ťĺă
    çść\textit{M}ă§ăŞăçść\textit{K}ă§ăăăă¨ďź
  \end{description}
  \item[ăĺśĺžĄçś´čŞ­ăżĺăăĺžăŽçść] äťĽä¸ăŽăăăŤćąşăžăŁăŚăăďź
  \begin{itemize}
    \item ĺśĺžĄçś´ăă|\ |ăăŽăăăŞăŤăă´ăŞăźăłăźă10ăŽćĺ­
    ăăăŞăăłăłăă­ăźăŤăˇăłăăŤăŽă¨ăăŻçść$S$ăŤéˇç§ťăăďź
    \item ĺśĺžĄçś´ăă|\#|ăă|\ă|ăăŽăăăŞăăŽäťăŽăłăłăă­ăźăŤăˇăłăăŤăŽă¨ăăŻçść$M$ăŤéˇç§ťăăďź
    \item ĺśĺžĄçś´ăăłăłăă­ăźăŤăŻăźăăŽă¨ăăŻďź
    ăăŽĺç§°ăŽćŤĺ°žăŽćĺ­ăćŹ§ććĺ­ăŽă¨ăăŻçść$S$ăŤďźĺććĺ­ăŽă¨ăăŻçść$T$ăŤéˇç§ťăăďź
  \end{itemize}
\end{description}

ĺłăčŚăă°ĺăăéăďźďźćŹ§ććĺ­ç´ĺžăŽćščĄăŻçŠşç˝ćĺ­ćąăăăăăŽă¨ĺŻžç§çăŤďź
\emph{ĺććĺ­ç´ĺžăŽćščĄăŻä˝ăçşçăăŞă}ďź
ăăăŻďźćĽćŹčŞăŽĺç¨żĺă§ăŻčŞçąăŞçŽćă§ćščĄăčĄăăăťăăäžżĺŠăŞăăă§ăăďź
% jtexdoc.tex ăŤč¨čźăă

ĺŽéăŤăŻäťĽä¸ăŤčŞŹćăă\.{ptexlineendmode}ăăŞăăăŁăăŤăăŁăŚďź\pTeX ăŽĺĽĺăă­ăťăăľăŽćĺăŻ
ăăç¨ĺşŚăŚăźăśăĺśĺžĄă§ăăďź

\begin{cslist}
  \csitem[\.{ptexlineendmode}=&lt;0--7&gt;]
  \pTeX ăŽĺĽĺăă­ăťăăľăŽćĺăĺśĺžĄăăďźăăŽĺ¤ă2é˛ćłă§$zyx$ă¨čĄ¨ăăă¨ă
  \footnote{%
    ă¤ăžă$x$ăŻăä¸ăŽä˝ăďź$y$ăŻăäşăŽä˝ăďź$z$ăŻăĺăŽä˝ăă§ăăďź
    8äťĽä¸ăŽĺ¤ăćĺŽăăĺ&nbsp;´ĺăŻďźä¸ä˝3~bităŽĺ¤ăä˝żăăăďź
    č˛&nbsp;ć°ăćĺŽăăŚăă¨ăŠăźăŻçşçăăŞăăďźăăŽĺ&nbsp;´ĺăŽĺä˝ăŻćŞĺŽçžŠă§ăăďź
  }ďź$x$,~$y$,~$z$ăŽĺ¤ăŻďźăăăăäťĽä¸ăŽăăăŞçśćă§čĄăçľăăŁăĺ&nbsp;´ĺďź
  ćščĄăçŠşç˝ćĺ­ăçşçăăăăăĺśĺžĄăăďź
  ăăăă0ă§ăŻăçŠşç˝ćĺ­ăçşçăăăŞăăďź1ă§ăŻăçŠşç˝ćĺ­ăçşçăăăăďź
  \begin{description}
    \item[$x$] ĺććĺ­ă§çľăăăłăłăă­ăźăŤăŻăźăăŽç´ĺžăŤă°ăŤăźăéĺ§ăťçľäşă1ă¤äťĽä¸
    \footnote{%
      \pTeX ă§ăŻďźăăŽă¨ăăćščĄăä˝ăçşçăăăŞăăćĺăäźçľąçăŤă¨ăŁăŚăă
      ďź\TeX82ăăăŽćšé&nbsp;éăć¸ăăăăăŁăăŽă§ăăăďźďź
      ăăŽćĺăŽćŻéă\.{ptexlineendmode}ĺŽčŁăŽä¸čŚĺ&nbsp;ă¨ăŞăŁăďź
    }
    \item[$y$] ĺććĺ­ăăăŞăăłăłăă­ăźăŤăˇăłăăŤăŽç´ĺž
    \item[$z$] ďźăłăłăă­ăźăŤăŻăźăăťăłăłăă­ăźăŤăˇăłăăŤăŽĺç§°ăŽä¸é¨ă§ăŞăďź
    ĺććĺ­ăŽç´ĺžăŤă°ăŤăźăéĺ§ăťçľäşă1ă¤äťĽä¸
  \end{description}

  ăăŽăăŞăăăŁăăŻ\pTeX~4.0.0ă§čż˝ĺ&nbsp;ăăăďźć˘ĺŽĺ¤ăŻ0ďźă¤ăžă$x=y=z=0$ďźďź
\end{cslist}
\begin{dangerous}
  ăĺććĺ­ăăăŞăăłăłăă­ăźăŤăˇăłăăŤăŽç´ĺžăŤă°ăŤăźăéĺ§ăťçľäşă1ă¤äťĽä¸ăăăçśćă§čĄăçľäşăăĺ&nbsp;´ĺďź
  ćščĄăçŠşç˝ćĺ­ăçşçăăăăŽăŻ$y$,~$z$ăŽăăĄĺ°ăŞăă¨ă1ă¤ă1ăŽă¨ăă§ăăďź
\end{dangerous}

\begin{dangerous}
  ĺžăŁăŚďźĺććĺ­ă¨čĄćŤăŽé˘äżăäžă§ç¤şăă¨ďźäťĽä¸ăŽăăăŤăŞăďź
  \medskip

  \begin{enumerate}
    \itemsep\medskipamount
    \item ăłăłăă­ăźăŤăŻăźăăťăłăłăă­ăźăŤăˇăłăăŤăŽä¸é¨ă§ăŞăĺććĺ­ă§čĄăçľăăŁăĺ&nbsp;´ĺďź
    ćščĄăŻä˝ăçşçăăŞăďź

    \medskip
    \begin{minipage}[t]{13zw}
\begin{verbatim}
ăăă
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
ăăă
ă
    \end{minipage}%

    \item ăłăłăă­ăźăŤăŻăźăăťăłăłăă­ăźăŤăˇăłăăŤăŽä¸é¨ă§ăŞăĺććĺ­ăŽç´ĺžăŤ
    ă°ăŤăźăéĺ§ăťçľäş(|{|, |}|)ă1ă¤äťĽä¸ăăçśćă§čĄăçľăăŁăĺ&nbsp;´ĺďź
    \.{ptexlineendmode}ăŽĺ¤ă0--3ăŽă¨ăďźćščĄăŻä˝ăçşçăăŞăďź
    4--7ăŽă¨ăďźćščĄăŻçŠşç˝ćĺ­ăçşçăăďź

    \medskip
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=0
{ăăă}
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=0
{ăăă}
ă
    \end{minipage}%
    \hfill\vrule\hfill\kern-2zw
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=4
{ăăă}
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=4
{ăăă}
ă
    \end{minipage}
    \item ĺććĺ­ă§çľăăăłăłăă­ăźăŤăŻăźăăŽç´ĺžăŤă°ăŤăźăéĺ§ăťçľäşă
    1ă¤äťĽä¸ăăçśćă§čĄăçľăăŁăĺ&nbsp;´ĺďź
    \.{ptexlineendmode}ăŽĺ¤ăĺść°ăŽă¨ăďźćščĄăŻä˝ăçşçăăŞăďź
    ĺĽć°ăŽă¨ăďźćščĄăŻçŠşç˝ćĺ­ăçşçăăďź

    \medskip
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=0
\def\ćź˘{ă}{\ćź˘}
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=0
\def\ćź˘{ă}{\ćź˘}
ă
    \end{minipage}%
    \hfill\vrule\hfill\kern-2zw
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=1
\def\ćź˘{ă}{\ćź˘}
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=1
\def\ćź˘{ă}{\ćź˘}
ă
    \end{minipage}
    \item ĺććĺ­ăăăŞăăłăłăă­ăźăŤăˇăłăăŤă§čĄăçľăăŁăĺ&nbsp;´ĺďź
    \.{ptexlineendmode}ăŽĺ¤ă0,~1, 4,~5ăŽă¨ăďźćščĄăŻä˝ăçşçăăŞăďź
    2,~3, 6,~7ăŽă¨ăďźćščĄăŻçŠşç˝ćĺ­ăçşçăăďź

    \medskip
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=0
\def\ă{ă}\ă
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=0
\def\ă{ă}\ă
ă
    \end{minipage}%
    \hfill\vrule\hfill\kern-2zw
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=2
\def\ă{ă}\ă
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=2
\def\ă{ă}\ă
ă
    \end{minipage}
    \item ĺććĺ­ăăăŞăăłăłăă­ăźăŤăˇăłăăŤăŽç´ĺžăŤă°ăŤăźăéĺ§ăťçľäşă1ă¤äťĽä¸ăăçśćă§čĄăçľăăŁăĺ&nbsp;´ĺďź
    \.{ptexlineendmode}ăŽĺ¤ă0,~1ăŽă¨ăďźćščĄăŻä˝ăçşçăăŞăďź
    ăăŽäťăŽă¨ăďźćščĄăŻçŠşç˝ćĺ­ăçşçăăďź

    \medskip
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=0
\def\ă{ă}{\ă}
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=0
\def\ă{ă}{\ă}
ă
    \end{minipage}%
    \hfill\vrule\hfill\kern-2zw
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=1
\def\ă{ă}{\ă}
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=1
\def\ă{ă}{\ă}
ă
    \end{minipage}
    \par\medskip
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=2
\def\ă{ă}{\ă}
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=2
\def\ă{ă}{\ă}
ă
    \end{minipage}%
    \hfill\vrule\hfill\kern-2zw
    \begin{minipage}[t]{13zw}
\begin{verbatim}
\ptexlineendmode=4
\def\ă{ă}{\ă}
ă
\end{verbatim}
    \end{minipage}\quad â\quad
    \begin{minipage}[t]{5zw}
\ptexlineendmode=4
\def\ă{ă}{\ă}
ă
    \end{minipage}
    \medskip
  \end{enumerate}
\ptexlineendmode=0

  ăŞăďźäťĽĺăŽ\pTeX ăŽĺĽĺăă­ăťăăľăŽćĺăŻ
  \begin{itemize}
    \item \pTeX~3.8.1äťĽĺďźă˘ăšă­ăźçăĺăďźăŽćĺăŻ|\ptexlineendmode=3|~($(x,y,z)=(1,1,0)$)
    \item \pTeX~3.8.2äťĽé3.10.0ăžă§ăŽćĺăŻ|\ptexlineendmode=1|~($(x,y,z)=(1,0,0)$)
  \end{itemize}
  ă¨ăăŚăăăăĺçžă§ăă\cite{tjb87}ďź

% * ćŹ§ććĺ­ç´ĺžăŽćščĄă§ăŻçŠşç˝ćĺ­ăçşçăăă
%     * ăłăłăă­ăźăŤăŻăźăăă\ ăăŽç´ĺžăŽćščĄăŻä˝ăçşçăăŞă
%     * ă\ ăäťĽĺ¤ăŽăłăłăă­ăźăŤăˇăłăăŤăŽç´ĺžăŽćščĄăŻçŠşç˝ćĺ­ăçşçăăă
% * ĺććĺ­ç´ĺžăŽćščĄăŻä˝ăçşçăăăŞă
%     * ĺććĺ­âă°ăŤăźăĺ˘ç {, } ăćéĺă¨ăăçśćă§čĄăçľăăŁăĺ&nbsp;´ĺăďź
%       ä˝ăçşçăăŞăďźďźďź
% ref. https://qiita.com/h-kitagawa/items/de963380bd3e576ab4e3
\end{dangerous}

\subsection{ĺććĺ­ăŽćĺ­ĺĺăŽćĺ}% \pTeX~4.0.0ă§ăŽćšäżŽăĺŤă
\label{sec:printkanji16bit}
\.{meaning}ă\.{string}ăŞăŠăŽćĺ­ăăźăŻăłĺçćďźăăăăâ\.{the}-ćĺ­ĺĺâďźăŤ
ă¤ăăŚăŻäťĽä¸ăŽéăă§ăăďź
\begin{itemize}
  \item ćŹ§ććĺ­ăŻ\TeX82ă¨ĺć§ă§ďźďźćĺ­ăłăźă32ăŽçŠşç˝ăé¤ăďź
    ăăšăŚăŤăă´ăŞăźăłăźă12ăŽćŹ§ććĺ­ăăźăŻăłăŤăŞăăďź
    ĺććĺ­ăŻĺććĺ­ăăźăŻăłăŤăŞăďźăăŽĺćăŤăă´ăŞăźăłăźăăŻ
    \pTeX ă§ăŻéćçŽĺşăŤăăďź\upTeX ă§ăŻăăăŽćăŽ\.{kcatcode}ăŽĺ¤ăďźăă&nbsp;ă
    ăăă15ăŽĺ&nbsp;´ĺăŻ18ďźăŤăŞăďź
  \item ĺśĺžĄçś´ĺăŽćĺ­ĺĺăŤăăăŚăăłăłăă­ăźăŤăŻăźăăŽćĺ­ĺĺă§ăŻĺžăăŤçŠşç˝ćĺ­ăčŁăďź
    ăłăłăă­ăźăŤăˇăłăăŤăŽćĺ­ĺĺă§ăŻçŠşç˝ćĺ­ăčŁăăŞăăă¨ăăçšăŻďź
    ĺććĺ­ăĺŤăĺ&nbsp;´ĺăĺć§ă§ăă
    \footnote{ă|\ă|ăăŽăăăŤĺććĺ­ăăăŞăăłăłăă­ăźăŤăˇăłăăŤăćĺ­ĺĺăăéăŤďź
      ăăźă¸ă§ăłp3.7.2äťĽĺăŽ\pTeX ă§ăŻă|\ă |ăă¨ĺžăăŤä˝č¨ăŞçŠşç˝ćĺ­ăčŁăŁăŚăăžă
      ă¨ăăĺéĄăăăŁăďź
      \TeX~Live 2018ăŽ\pTeX~3.8.1ă§ăăŽĺéĄăŻäżŽć­Łăăă\cite{tjb37}ďź}ďź
  \item ĺććĺ­ăŻăăŽăŤăă´ăŞăźăłăźăăŤăăăďź\.{meaning}ăăă¨
    \begin{itemize}% ăăšăŚ "kanji character " ăŤăŞă
      \item \the\kcatcode`ćź˘:\quad \texttt{\meaning ćź˘}
      \item \the\kcatcode`ă:\quad \texttt{\meaning ă}
      \item \the\kcatcode`ďź:\quad \texttt{\meaning ďź}
    \end{itemize}
    ă¨ăŞăďź
\end{itemize}

ăăŚďź\pTeX~version 3çłťĺďź\TeX~Live 2021ăžă§ďźă§ăŻ\.{meaning}ďź\.{string}ç­ăŽ
ćĺ­ĺĺăĺśĺžĄçś´ĺăŤăăăŚĺććĺ­ă¨ćŹ§ććĺ­ăŽĺşĺĽăĺ¤ąăăăŚăăžăăąăźăšăăăŁăďź
% éä¸­ăŽçľćăä¸ćŚéĺ |str_pool| ăŤć&nbsp;źç´ăăĺŚçă§ĺćŹ§ćăŽĺşĺĽăĺ¤ąăăăŚăăďź
\emph{\pTeX~4.0.0äťĽé}ďź\TeX~Live 2022ďźă§ăŻďźăăŽçśćłă§ă
ĺćŹ§ćăŽĺşĺĽăçś­ćăăă\cite{tjb81}ďź
\begin{dangerous}
\eTeX çąćĽăŽ\.{scantokens}ďź\eTeXpre(u)\pTeX ă§ĺŠç¨ĺŻč˝ďźăŻ
ĺććĺ­ă¨ćŹ§ććĺ­ăŽĺşĺĽăçś­ćăăăŞăďź
äžăă°\.{forcecjktoken}ăŽçśćă§ćŹ§ćăă¤ăĺă\.{scantokens}ăăă¨ĺćăŤăŞă
\footnote{\.{scantokens}ăŻďźĺźć°ăŽăăźăŻăłĺăčąăăźăŻăłĺăăŚďź
ćšăăŚĺ­ĺĽč§ŁćĺŻžčąĄă¨ăŞăćĺ­ĺă¨ăăŚčŞ­ăżčžźăĺąéĺŻč˝ăăŞăăăŁăă§ăăďź
ĺşćŹçăŤăŻăăźăŻăłĺăä¸ćŚďźäťŽćłçăŞďźăăĄă¤ăŤăŤć¸ăĺşăăŚ
ăăăăăăŤčŞ­ăżčžźăă&nbsp;ăŽă¨ĺăăŤăŞăăďź
% https://qiita.com/zr_tex8r/items/0cc96144dd46c212a989
ăĺźć°ăćĺ­ĺĺâbufferăŤć¸ăćťăâăăăĺĽĺă¨ăăŚćąăăă¨ăăĺä˝ćé&nbsp;ăŽăăĄ
bufferăŤć¸ăćťăćçšă§ĺćŹ§ćăŽĺşĺĽăĺ¤ąăăăďź
ĺŽéăŤä¸ćŚăăĄă¤ăŤăŤć¸ăăŚčŞ­ăżčžźăĺ&nbsp;´ĺăŻďźćŹ§ćăă¤ăăŻ
|^^|ĺ˝˘ĺźă§ć¸ăĺşăăăŚćŹ§ćăŽăžăžăŤăŞăăŽă§ďźăăă¨ăŻç°ăŞăďź}ďź
% [TODO] -translate-file=cp8bit ăŞă 8bit ĺ¨é¨ă printable ăŤăŞăăŽă§ ^^ab ĺ˝˘ĺźăŤăŻăŞăăŞăďź
\end{dangerous}

\begin{dangerous}
\TeX~Live 2021ă§ăŻďźăăĄă¤ăŤăŽă¨ăłăłăźăUTF-8ďźĺé¨ăłăźăEUC-JPăŽĺ&nbsp;´ĺăŤäžăă°
\begin{verbatim}
  \def\fuga{^^c3^^bf č˝}\fuga
  \meaning\fuga
\end{verbatim}
ă¨ĺĽĺăăă¨ďźä¸čĄçŽăŻ\def\fuga{^^c3^^bf č˝}ă\code{\fuga}ăă§ăăăŽăŤĺŻžă
äşčĄçŽăŻă\code{macro:-&gt;č˝ č˝}ăă¨ăŞăŁăŚăăďź\char\euc"C3BFăŻEUC-JPă§
\hex{C3BF}ă§ăăďź|^^c3^^bf|ăŽäťŁăăăŤç´ćĽ\code{Ăż}ă¨ĺĽĺăăŚăĺć§ďźďź
ăžă
\begin{verbatim}
  \catcode"C3=11 \catcode"BF=11
  \def\č˝{P} \def\^^c3^^bf{Q}
\end{verbatim}
ă¨ăăă¨ăăŽ|\meaning\č˝|ăŻă|macro:-&gt;Q|ăă§ăăŁăďź
ćšäżŽĺžăŽ\TeX~Live 2022ă§ăŻďźä¸ă¤çŽăŽäžăŻ
  \def\fuga{^^c3^^bf č˝}ă\code{\meaning\fuga}ă% ĺćŹ§ćăĺşĺĽăăă
ă§ăăăďźäşă¤çŽăŽäžăŻ
  \catcode"C3=11 \catcode"BF=11
  \def\č˝{P} \def\^^c3^^bf{Q}
  ă\code{\meaning\č˝}ă% ĺćŹ§ćăĺşĺĽăăăăŽă§ "P" ăŤăŞăăŻă
ă¨ăŞăďź
  %%%
  % [ĺä˝ăă§ăăŻďź]
  % ä¸ăŽčĄăŽčŞŹććă§ăŻ |\č˝| ă¨ |\^^c3^^bf| ăĺşĺĽăăă TL2022 äťĽéăćĺžăăŚăăďź
  \def\XXXX{P}\unless\ifx\č˝\XXXX\ptErr{Check above: pTeX 4.x assumed}\fi
  %%%
\end{dangerous}
% ăĄă˘ďźä¸ăŽäžăŻă^^c5^^bf &lt;=&gt; éĄăă§ăăăăŁăăŽă&nbsp;ăďź
% ăăăĽă˘ăŤăŽćŹ§ćăăŠăłă newtx/newpx ă§čĄ¨ç¤şĺŻč˝ăŞćĺ­ăŤăăďź
% ĺ¤é¨ăăĄă¤ăŤĺşĺăŽĺ¤ĺäžďź
%   \label{Ă}%        % TL2021: &lt;C3&gt;^^9f =&gt; TL2022: ^^c3^^9f
%   \label{^^c3^^9f}% % TL2021: &lt;C3&gt;^^9f =&gt; TL2022: ^^c3^^9f
%   \label{Ăż}%        % TL2021: č˝       =&gt; TL2022: ^^c3^^bf
%   \label{^^c3^^bf}% % TL2021: č˝       =&gt; TL2022: ^^c3^^bf

\section{ĺććĺ­ăŽĺşĺ}\label{sec:outchar}

\TeX ăŽĺŽčĄăă­ăťăăľăŻĺąéä¸č˝ăăźăŻăłăĺŽčĄăďź
çľççľćăĺşĺăŞăšăă¨ăăŚć§çŻăăŚăăďź
ăăŽă¨ăďźćĺ­ăăźăŻăłăŻ\emph{ćĺ­ăăźă}ăŤĺ¤ćăăăďź
ăžăďźćĺ­ăłăźăăŽć°ĺ¤ăăćĺ­ăăźăăçćă§ăă
\.{char} &lt;character code&gt;ăďźăăŽç­ç¸Žĺ˝˘&lt;control sequence&gt;ă
ĺŽçžŠăă\.{chardef} &lt;control sequence&gt;=&lt;character code&gt;ă
ĺć§ăŤćĺ­ăăźăăçćăăďź
ăăŽäťçľăżăŻ\pTeX çłťĺă§ăĺăă§ăăďź
ăă&nbsp;ăćĽćŹčŞăŽćĺ­ăĺşĺăăăăăŤĺććĺ­ăăźăăä˝żç¨ăăďź
% TeX WikiăTeXĺĽé/ăăŻă­ăŽä˝ćăăăć´ĺ˝˘
%   \TeX ăŻćĺăŤĺç´ă˘ăźăă§ĺ§ăžăďź
%   ĺąéä¸č˝ăăźăŻăłăŤĺžăŁăŚĺŚçăé˛ăăŚăăďź
%   ĺç´ă˘ăźăă§ăŻďźĺŚçăăčŚç´&nbsp;ăăăăŻăšăç˝Ťçˇă§ăăă°
%   ćŹĄăăŤĺç´ćšĺăŤçŠăżä¸ăăŞăăčŚç´&nbsp;ăŽéŤăăćˇąăăçŠçŽăăŚăăďź
%   ćąşăžăŁăéˇăăŤăŞăă¨ăăźă¸ĺĺ˛ăďźăăăžă§ăŽčŚç´&nbsp;ă
%   DVIăăĄă¤ăŤăŽ1ăăźă¸ĺă¨ăăŚĺşĺăăăăăŽoutputăŤăźăăłăčľˇĺăăďź
%   ăăăŻ|\output|ă¨ăăăăźăŻăłăŞăšăăŹă¸ăšăżăŤäżĺ­ăăăăăźăŻăłĺă
%   ĺ˝äť¤ă¨ăăŚĺŽčĄăăďź
%   ĺç´ă˘ăźăă§ăŽĺŚçä¸­ăŤăć°´ĺšłćšĺăŽčŚç´&nbsp;ăăčŚă¤ăăă¨ďź
%   čŞĺçăŤć°´ĺšłă˘ăźăăŤç§ťčĄăăŚčĄăŽä˝ćä˝ćĽ­ăŤĺĽăďź
%   ăăă§ăć°´ĺšłćšĺăŽčŚç´&nbsp;ăă¨ďźćĺ­ăăźăŻăłăŞăŠčĄä¸­ăŤéç˝ŽăăšăăăŽă§ăăďź
%   ć°´ĺšłă˘ăźăă§ăŻďźćĺ­ăç˝Ťçˇăć°´ĺšłăŤä¸ŚăšăŞăăĺšăçŠçŽăăŚăăďź
%   ćąşăžăŁăéˇăăŤăŞăă¨čĄĺĺ˛ăďźä¸čĄĺăăăăŻăšăŤăžă¨ăăŚ
%   ĺ¤ĺ´ăŽĺç´ăăăŻăšăŤä¸ŚăšăŚăăďź
%   čĄĺĺ˛ăăŚăćŽľč˝ăçśăéăćŹĄăŽčĄăä˝ăçśăďź
%   ćŽľč˝çľäşăćĺłăă|\par|ĺ˝äť¤ăçŠşčĄăčŚă¤ăăă¨ďź
%   ćŽľč˝ćĺžăŽčĄăä˝ăŁăŚĺăŽĺç´ă˘ăźăăŤĺžŠĺ¸°ăăďź

ćŹ§ććĺ­ăăźăăŻ1ă¤ăŽ\node{char_node}ăŤ
ăăŠăłăă¨ćĺ­ăłăźăăŽćĺ&nbsp;ąăć&nbsp;źç´ăăŚăăďź
ĺććĺ­ăăźăăŻĺé¨çăŤăŻéŁçśăă2ă¤ăŽ\node{char_node}ăç¨ăăŚ
\begin{itemize}
 \item 1ă¤çŽăŤăăŠăłăă¨ćĺ­ăżă¤ăăŽćĺ&nbsp;ą
 \item 2ă¤çŽăŤćĺ­ăłăźăăŽćĺ&nbsp;ąďź\upTeX ă§ăŻăăăŤ\.{kcatcode}ăŽćĺ&nbsp;ąăďź
\end{itemize}
ăć&nbsp;źç´ăăŚăă\footnote{ăăă§ďź
\pTeX ă§ăŻďźĺććĺ­ăăźăŻăłă¨ĺć§ďźĺććĺ­ăăźăăŤ
\.{kcatcode}ăŽćĺ&nbsp;ąăäżĺ­ăăăďźĺżčŚăŤĺżăăŚ
ďźďźĺžčż°ăŽ\.{jcharwidowpenalty}ćżĺĽćďźĺč¨çŽăăăďź
\upTeX ă§ăŻďźăăĄăăĺććĺ­ăăźăŻăłă¨ĺć§ďźĺććĺ­ăăźăăŤ
\.{kcatcode}ăŽćĺ&nbsp;ąăäżĺ­ăăăďźďźĺžčż°ăŽ\.{jcharwidowpenalty}ćżĺĽăŽăăďźďź}ďź
% jtex.tex ăŽăTFMăăĄă¤ăŤă¨charăăźăăăç°ĄçĽĺ
% [TODO] upTeX ă§ăŽčŞŹćăŻĺăŁăŚăăăďź
%   eptex_resume.pdf ăŤăăă¨ TeX--XeT ăŽ upTeX ĺŻžĺżă§
%    * pTeX ă§ăŻĺć1ćĺ­ăĺé¨ă§ăŻ2ă¤ăŽăăźăă§čĄ¨çžăăăŚăăăă¨ăĺćăŤăăďź
%    * upTeX ăŽUnicodećĄĺźľăŤăăŁăŚ1ćĺ­3ăăźăă¨ăăŤăŞăŁăŚăăŞăăĺżéăăă
%      ăŠăăăăăŽăăăŞäşćăŻčľˇăăŁăŚăăŞăăăăŤćăăďź
%   ă¨ć¸ăăăŚăăăŽă§ďźĺăŁăŚăăă¨ćăăăăâŚďź

\subsection{ćĺ­ăăźăăŽçć}\label{sec:kchar}
ĺŽéăŤćĺ­ăăźăăçćăăçśćłăŻäťĽä¸ă§ăăďź
\begin{itemize}
 \item ćŹ§ććĺ­ăăźăŻăłăŻćŹ§ćăăŠăłăăä˝żç¨ăă\emph{ćŹ§ććĺ­ăăźă}ăŤăŞăďź
 \item ĺććĺ­ăăźăŻăłăŻĺćăăŠăłăăä˝żç¨ăă\emph{ĺććĺ­ăăźă}ăŤăŞăďź
 \item \.{char}, \.{chardef}ăŻćĺ­ăłăźă0--255ăăăŻ\emph{ćŹ§ććĺ­ăăźă}ăďź
   ăăäťĽĺ¤ăŽćĺ­ăłăźăăăăŻ\emph{ĺććĺ­ăăźă}ăçćăă
   \footnote{\.{char}/\.{chardef}ăŻćĺ­ăăźăŻăłăçľçąăăŞăăŽă§
   \upTeX ăŤăăăŚă\.{kcatcode}ăŻé˘äżăŞăďź}ďź
\end{itemize}

ăăă§ďź\upTeX ă§ăŻ\.{char}, \.{chardef}ăŽćĺăĺéĄăŤăŞăďź
ăăăăŻćĺ­ăłăźăăŽć°ĺ¤ăăç´ćĽćĺ­ăăźăăçćăăăďź
\pTeX ăăăł\upTeX ăŽĺé¨ăŹăŹăˇăźă§ăŻ
ćŹ§ććĺ­ă¨ĺććĺ­ăŽćĺšăŞćĺ­ăłăźăăéăŞăăŞăăŽă§ďź
çćăăšăćĺ­ăăźăăŽç¨ŽéĄăćĺ­ăłăźăăŤăăŁăŚä¸ćăŤĺŽăžăŁăŚăăďź
ă¨ăăă\upTeX ăŽĺé¨Unicodeă§ăŻďź0--255ăŽĺ¤ă
ćŹ§ććĺ­ă¨ĺććĺ­ăŽăăăăŽćĺ­ăłăźăă¨ăăŚăćĺšă§ăăďź
\.{char}, \.{chardef}ăŻăăŽăăĄćŹ§ććĺ­ăăźăăé¸ćăăŚăăăă¨ăćĺłăăďź
ćĺ­ăăźăŻăłăŤéăŁăŚă128--255ăŽĺ¤ăŻăăăăćĺšă§ăăăŽăŤďź
ăăŽăžăžă§ăŻďźĺććĺ­ăăźăŻăłăăĺşĺă§ăăćĺ­ăłăźă128--255ăŽ
ĺććĺ­ăăźăăďźćĺ­ăłăźăăŽć°ĺ¤ăăăŻç´ćĽĺşĺă§ăăŞăăă¨ăŤăŞăďź

ăăă§ďź\upTeX ă§ăŻć°ăăŤăĺżăĺććĺ­ăăźăăçćăăăăŞăăăŁăăă
čż˝ĺ&nbsp;ăăŚăăďźĺżčŚăŤé§ăăă128--255ăŽăżăŞăăďźäžżĺŽăŽăă
ćĺ­ăłăźă0--127ăŤĺŻžăăŚăćŠč˝ăăďźăžăĺé¨ăłăźăăŤăăăĺŠç¨ĺŻč˝ă§ăăďź

\begin{cslist}
 \csitem[\.{kchar} &lt;character code&gt;ďź\emph{\upTeX ăŽăż}ďź]
  \.{char}ăŽĺćĺşĺŽçă§ďź
  ćĺ­ăłăźă&lt;character code&gt;ăăĺććĺ­ăăźăăçćăăďź

 \csitem[\.{kchardef} &lt;control sequence&gt;=&lt;character code&gt;ďź\emph{\upTeX ăŽăż}ďź]
  \.{chardef}ăŽĺćĺşĺŽçă§ďź
  \.{kchar} &lt;character code&gt;ăŽç­ç¸Žĺ˝˘ă¨ăăŚ&lt;control sequence&gt;ăĺŽçžŠăăďź
\end{cslist}

\subsection{ĺćăăŠăłă}
\label{sec:jfont}
\TeX ăŻçľçăčĄăă¨ăďźćĺ­ăŽćĺ&nbsp;ąăTFMăăĄă¤ăŤăăĺç§ăăďź
\pTeX çłťĺăĺć§ă§ďźćŹ§ććĺ­ăŤă¤ăăŚăŻTFMăăĄă¤ăŤăĺç§ăăăďź
ĺććĺ­ăŤă¤ăăŚăŻJFMăăĄă¤ăŤăĺç§ăăďź
ăăĄă¤ăŤĺăŻăŠăĄăă\code{ăăŠăłăĺ.tfm}ă§ăăďź

TFMăăĄă¤ăŤăŤăŻďźĺ¤§ĺĽăăă¨
\begin{itemize}
 \item ăăăăăŽćĺ­ăŤé˘ăăäşć
   ďźĺćĺ­ăŽĺšďźéŤăďźćˇąăăŞăŠďź
 \item ăăŽTFMăăĄă¤ăŤăŤĺăăăăŚăăćĺ­ăŤĺąéăăäşć
   ďźćĺ­ăŽĺžăďźăăśă¤ăłăľă¤ăşďźăăŽăăŠăłăăŽĺşćşĺ¤(em, ex)ăŞăŠďź
 \item çšĺŽăŽćĺ­ăŽçľăżĺăăăŽă¨ăăŽäşć
   ďźĺĺ­ăăŤăźăăłă°ăŞăŠďź
\end{itemize}
ăŽ3ç¨ŽéĄăŽćĺ&nbsp;ąăč¨­ĺŽăăăŚăăďź
JFMăăĄă¤ăŤăTFMăăĄă¤ăŤă¨ĺć§ăŽćĺ&nbsp;ąăćă¤ăďź
\begin{itemize}
 \item ćĽćŹčŞăŽćĺ­ăŻć°ăĺ¤ăăŽă§ďź
   ćĺ­ăĺä˝ă¨ăăăŽă§ăŻăŞăďźĺąéăăć§čłŞăćă¤ćĺ­ă
   ä¸ă¤ăŤăžă¨ăăŚăżă¤ăĺĽăŽč¨­ĺŽăčĄă
 \item ć¨Şçľăżç¨ă¨ç¸Śçľăżç¨ăŽĺşĺĽăăă
\end{itemize}
ă¨ăăçšăç°ăŞăďźJFMăăŠăźăăăăŽčŠłç´°ăŻďź
ăăŽćć¸ă¨ĺăăăŁăŹăŻăăŞăŤăă\cite{jfm}ăĺç§ăăăăďź

% [TODO] ä¸ă¤ăŽćć¸ă§ç¨ăăăă¨ăă§ăăăăŠăłăć°ăŽä¸éăŻďź

\begin{cslist}
\csitem[\.{jfont}, \.{tfont}]
  ćŹ§ćăăŠăłăăĺŽçžŠăăăďźçžĺ¨ăŽćŹ§ćăăŠăłăăĺĺžăăăăă\.{font}ăŽĺćçă§ăăďź
  ä¸ĺż\.{jfont}ăăĺćăŽć¨Şçľç¨ăăŠăłăăăŽďź\.{tfont}ăăĺćăŽç¸Śçľç¨ăăŠăłăăăŽăăăŤ
  ç¨ăăĺ˝äť¤ă§ăăďź
\begin{itemize}
 \item ăăŠăłăăĺŽçžŠăăéăŻďźćŹ§ćăăŠăłăăťĺćăŽć¨Şçľç¨ăăŠăłăăť
       ĺćăŽç¸Śçľç¨ăăŠăłăăŽăăăă
       \.{tfont}, \.{jfont}, \.{tfont}ăŽăŠăăç¨ăăŚăĺŽçžŠă§ăă
       ďźčŚćąăăăĺŽéăŽTFM/JFMăŤĺżăăŚďźčŞĺçăŤă˘ăľă¤ăłăăăďźďź
       ć¸ĺźăŤă¤ăăŚăŻĺžčż°ďź
 \item \.{the}ç­ă§ăçžĺ¨ăŽăăŠăłăăăĺĺžăăéăŤăŻďź
       \.{jfont}ă§ăĺćăŽć¨Şçľç¨ăăŠăłăăăďź
       \.{tfont}ă§ăĺćăŽç¸Śçľç¨ăăŠăłăăăčżăďź
 \item \.{nullfont}ăŻĺ¨ăŚăŽćĺ­ăćŞĺŽçžŠăŞăçŠşăăŠăłăăăćăăďź
  ăăăŻćŹ§ćăăŠăłăă§ăăďźĺćç\.{nullfont}ă¨ăăćŚĺżľăŻĺ­ĺ¨ăăŞăďź
  ăăăŻďź\pTeX ă§ăŻăĺ¨ăŚăŽĺćăăŠăłăăŤăŻďźĺććĺ­ăłăźăă¨ăăŚćĺšăŞ
  ĺ¨ăŚăŽćĺ­ăĺ­ĺ¨ăăăă¨ăăćąăăŤăŞăŁăŚăăăăă§ăăďź
\end{itemize}
\end{cslist}

\begin{dangerous}
  ç´°ăăčŠąăăăă°ďź\pTeX ăŽini modeă§ăŽăăŠăźăăăä˝ććăŤĺćăăŠăłăă
  ä˝ăé¸ćăăŞăăă°ďź|\fontname\jfont|ă|nullfont|ă¨ăŞăďź
  ăžăĺććĺ­ăĺĽĺăăŚăăăźăăŻä˝ăăăŞă\footnote{ăă&nbsp;ăďź
  $\.{tracinglostchars}&gt;0$ă§ă
  \code{Missing character: There is no ă in font nullfont!}ăŽăăăŞ
  č­ŚĺăŻĺşăŞăďź}ăŽă§ďź
  ăĺćç\.{nullfont}ăé¸ćăăăŚăăăă¨č¨ăăŞăăăŞăďź
  ăă&nbsp;ďźăăŁăăĺŽéăŽĺćăăŠăłăăé¸ćăăĺžăŤ
  ăĺćç\.{nullfont}ăé¸ćăăăă¨ăăĺśĺžĄçś´ăŻä˝ăăŞăă¨ćăăăďź
  % ă¤ăžăďźtikzpictureç°ĺ˘ăŽăăăŤ|\selectfont|ă\.{nullfont}ăŤ
  % ĺĺŽçžŠăăçśćă§ăŻďźĺććĺ­ă&nbsp;ăćśăăăŤćŽăďź
  % https://tex.stackexchange.com/questions/18602/
  % https://twitter.com/doraTeX/status/1098584763277824000
  % https://twitter.com/zr_tex8r/status/1098594165573722112
\end{dangerous}

ăŞăďź\pTeX~4.1.0äťĽéă§ăŻ\.{font}, \.{jfont}, \.{tfont}ăŽăăăă
ăăŠăłăăĺŽçžŠăăéăŽć¸ĺźăćĄĺźľăăăŚăăďź
\begin{itemize}
 \item \TeX82ć¸ĺźďź
   \.{font}&lt;control sequence&gt;&lt;equals&gt;&lt;file name&gt;&lt;at clause&gt;
 \item (u)\pTeX ć¸ĺźďź
   \.{font} [&lt;in spec&gt;] &lt;control sequence&gt;&lt;equals&gt;&lt;file name&gt;&lt;at clause&gt;
\end{itemize}
ăŞăďźăăă§
\begin{itemize}
 \item &lt;in spec&gt; $\longrightarrow$ |in| &lt;encoding&gt;
 \item &lt;at clause&gt; $\longrightarrow$ |at| &lt;dimen&gt; $\OR$ |scaled| &lt;number&gt; $\OR$ &lt;optional spaces&gt;
\end{itemize}
ă§ăăďźčż˝ĺ&nbsp;ăăă&lt;in spec&gt;ăŻ
ăĺćăăŠăłăăĺŽçžŠăăJFMăJISă¨ăłăłăźăă§ăăăUnicodeă¨ăłăłăźăă§ăăăă
ăćç¤şçăŤćĺŽăăĺ&nbsp;´ĺăŤç¨ăăďźćĺŽĺŻč˝ăŞ&lt;encoding&gt;ăŻ|jis|, |ucs|ăŤéăăăďź
ăăŽć¸ĺźăç¨ăăăă¨ă§ďźäžăă°
\begin{itemize}
 \item \pTeXďźĺé¨ăłăźă|euc|ăžăăŻ|sjis|ďźă§ă
   \verb|\font in ucs \myfontA=upjisr-h|ăŤăă\upTeX ç¨JFMă§ăă
   |upjisr-h.tfm| (UCS-encoded)ăďź
 \item \upTeXďźĺé¨ăłăźă|uptex|ăăŞăăĄUnicodeďźă§ă
   \verb|\font in jis \myfontB=min10|ăŤăă\pTeX ç¨JFMă§ăă
   |min10.tfm| (JIS-encoded)ăďź
\end{itemize}
ăăăăďźă¨ăłă¸ăłĺé¨ă§JISâUnicodeĺ¤ćăčĄăăŞăăďźčŞ­ăżčžźăă§
ć­Łăăă°ăŤăźăťăŤăźăłăćżĺĽă§ăăăďźDVIă¸ăŽĺşĺćăŤăďźéĺ¤ćăŤăăďź
ćĺŽăăăă¨ăłăłăźăă§ćĺ­ăĺşĺăă
\footnote{ăăŽć°ć¸ĺźăĺ°ĺĽăăçŽçăŻďź
ĺ°ćĽ\upTeX ăŽĺé¨ăłăźăăUnicodeĺşĺŽăŤăŞăŁăĺ&nbsp;´ĺăŤ
ĺ­ĺšăă°ăŤăźăťăŤăźăłăĺŽçžŠăăă\pTeX ç¨JFM/VFăťăăă
\upTeX ç¨ăŤç¨ćăăŞăăăŞăăŚăć¸ăăăăŤăăăăă§ăă\cite{tjb149}ďź}ďź
% ćç¤şćĺŽăăăă¨ăłăłăźăăĺŽéăŽJFMăŤĺč´ăăăăŽčŞĺĺ¤ĺŽăŻčĄăăŞăďź
% ăžăďź\pTeX ă§ăŽ in jis ćĺŽăť\upTeX ă§ăŽ in ucs ćĺŽăŻĺéˇă§ăăă¨
% ă¨ăăŤďźçžĺ¨ăŽĺŽčŁăłăźăă§ăŻćĺ­ăŻăŠăš(char\_type)ăŽć¤ç´˘ăéăăŞăďź
% ăăăŻ\pTeX ăŽĺŽčŁăŻJFMăăŠăźăăăăŽäťć§ăŽăchar\_typeăăźăăŤĺăŤăŻ
% ćĺ­ăłăźăăŽćé&nbsp;ă§ĺăăăăŚăăŞăăă°ăŞăăŞăăă¨ăăčŚĺŽăĺćăŤ
% ć¤ç´˘ćéŠĺăăăŚăăăŽăŤĺŻžăďźă¨ăłăłăźăĺ¤ćăçľĄăă¨é&nbsp;çŞăĺ´Šăăăăă§ăăďź
ăŞăďź&lt;in spec&gt;ăŽăšă­ăŁăłćăŤăŻĺąéăčĄăăŞăďź
ăăăŻĺžçśăŽ&lt;control sequence&gt;ăćŞĺŽçžŠăŽă¨ăăŤĺăŤă¨ăŠăźăçşăăăŽăé˛ăăăă§ăăďź

\begin{dangerous}
  \pTeX ă§\verb|\font in ucs ...|ăŤăă\upTeX ç¨JFMăčŞ­ăżčžźăă§ăďź
  JIS~X~0208ĺ¤ăŽćĺ­ăĺşĺă§ăăăăă§ăŻăŞăďź
  ăžăďź\upTeX ă§
\begin{verbatim}
\kcatcode"D8=16\relax % JISçŻĺ˛ĺ¤ăŽćĺ­(Latin-1 Supplement)ăĺććąăăŤ
\font in jis\x=jis \x &lt;ćĺ­&gt; % äžăă° U+00D8 ăŞăŠ
\end{verbatim}
  ăŽăăăŤJISă¨ăłăłăźăăŽăăŠăłăćĺŽä¸ă§çŻĺ˛ĺ¤ăŽćĺ­ăä˝żăă¨ďź
  DVIĺşĺä¸­ďź|\shipout|ćďźăŤ
\begin{verbatim}
Character &lt;ćĺ­&gt; ("D8) cannot be typeset in JIS-encoded JFM jis,
so I use .notdef glyph instead.
\end{verbatim}
  ă¨ăăč­Śĺ\footnote{ăăŽč­Śĺă\.{tracinglostchars}ăŤĺžăďź
  Missing characterč­Śĺă¨éăŁăŚăăźăăŻç&nbsp;´ćŁăăăŞăăŽă§lostă¨ăă
  ĺç§°ăŻĺžŽĺŚă&nbsp;ăâŚďźăžăďźJISçŻĺ˛ĺ¤ăŽč­Śĺăçşçăăăżă¤ăăłă°ăŻ
  Missing characterč­Śĺďźăăźăçćĺ¤ąććăŤçşçďźă¨ăŻç°ăŞăăŽă§ďź
  |\shipout|ćăŽ\.{tracinglostchars}ăŽĺ¤ăŤäžăăă¨ăŤăŞăďź}ăçşçăďź
  DVIăŤăŻčąčďź\verb|set2 0|ďźăć¸ăăăďź
\end{dangerous}

\begin{dangerous}
  ăŞăďź\TeX82ăŤăăăčŞ­čžźć¸ăăŠăłăăŽĺ¤ĺŽ
  ďźăĺăTFMăăĄă¤ăŤĺăăă¤ăĺăăľă¤ăşăďźăŻ
  (u)\pTeX ă§ăĺ¤ć´ăăŚăăŞăăăďź
  ă¨ăłăłăźăçĄćĺŽăť\verb|in jis|ćĺŽăť\verb|in ucs|ćĺŽă&nbsp;ăăĺ¤ăăŚ
  č¤ć°ĺčŞ­ăżčžźăăă¨ăăŚăďźć°ăăăăŠăłăč­ĺĽĺ­(font identifier)ăŻ
  çşčĄăăăŞăăďźćĺăŽă¨ăłăłăźăăĺ¸¸ăŤä˝żăăăďź
\begin{verbatim}
%#!ptex
\font\xA=min10
\font in jis\xB=min10 % =&gt; min10 ăŻçĄćĺŽćăŽă¨ăłăłăźăăŽăžăž
\font in ucs\xC=min10 % =&gt; min10 ăŻçĄćĺŽćăŽă¨ăłăłăźăăŽăžăž
\end{verbatim}
\begin{verbatim}
%#!ptex
\font in ucs\yA=umin10
\font\yB=umin10 % =&gt; umin10 ăŻ Unicode ăŽăžăž
\font in jis\yC=umin10 % =&gt; umin10 ăŻ Unicode ăŽăžăž
\end{verbatim}
\end{dangerous}

\begin{dangerous}
  ćŹ§ćăăŠăłăăŤĺŻžăă&lt;in spec&gt;ăŻćĺłăćăăŞăăŽă§ďźĺăŤçĄčŚăăăďź
  ăžă\.{font}, \.{jfont}, \.{tfont}ăŽç´ĺžă|in|ă§ăŞăă
  &lt;encoding&gt;ă|jis|, |ucs|äťĽĺ¤ăŽĺ&nbsp;´ĺăŻ
\begin{verbatim}
! Missing control sequence inserted.
\end{verbatim}
  ă¨ăăă¨ăŠăźăçşçăăďź\TeX82ă¨ĺăćĺďźďź
\end{dangerous}

\begin{cslist}
\csitem[\.{ifjfont} &lt;\,font&gt;, \.{iftfont} &lt;\,font&gt;]
  \.{ifjfont}ăŻ&lt;font&gt;ăĺćăŽć¨Şçľç¨ăăŠăłăăăŠăăďź
  \.{iftfont}ăŻĺćăŽç¸Śçľç¨ăăŠăłăăăŠăăăĺ¤ĺŽăăďź
  2020-02-05ăŽăłăăă(r53681)ă§čż˝ĺ&nbsp;ăăďź
  \TeX~Live 2020ăŽ\pTeX~(p3.8.3)ă§ĺŠç¨ĺŻč˝ă§ăăďź

  ăăăŤăăďźäžăă°\.{HOGE}ăĺćăăŠăłăăĺŚăăŻ
\begin{verbatim}
\ifjfont\HOGE
  ďźĺćăŽć¨Şçľç¨ăăŠăłăďź
\else\iftfont\HOGE
  ďźĺćăŽç¸Śçľç¨ăăŠăłăďź
\else
  ďźćŹ§ćăăŠăłăďź
\fi
\end{verbatim}
  ă¨ăăŚĺ¤ĺŽă§ăăďź
\end{cslist}

\begin{dangerous}
  ä¸čż°ăŽéăďźćŹ§ćăăŠăłăăťĺćăŽć¨Şçľç¨ăăŠăłăăť
  ĺćăŽç¸Śçľç¨ăăŠăłăăŽăăăă\.{font}ä¸ă¤ă§ĺŽçžŠĺŻč˝ă&nbsp;ăďź
  ĺŽçžŠăăăăŠăłăăĺŽéăŤăŠăŽç¨ŽéĄă&nbsp;ăŁăăăçĽăććŽľăŻ
  ăăźă¸ă§ăłp3.8.2ăžă§ăŽ\pTeX ăŤăŻĺ­ĺ¨ăăŞăăŁăďź
  % https://github.com/texjporg/tex-jp-build/pull/97
\end{dangerous}

\begin{dangerous}
  ăĄăŞăżăŤďź\epTeX, \eupTeX ăŤăŻ\.{iffontchar}ăăŞăăăŁăăĺ­ĺ¨ăăďź
  ăăăďź&lt;\,font&gt;ăĺćăăŠăłăăĺŚăăĺ¤ĺŽăăăăăŤ
  \code{\.{iffontchar}~&lt;\,font&gt;~256}ăŞăŠă¨çŹŹäşĺźć°ăŤ256äťĽä¸ăŽĺ¤ăćĺŽăăăă¨ăŻă§ăăŞăďź
  ăŞăăŞăďźćŹ§ćăăŠăłăăŤĺŻžăçŹŹäşĺźć°ăŤ0--255äťĽĺ¤ăŽĺ¤ăćĺŽăăă¨
  ``\verb|! Bad character code (...).|''ă¨ăŠăźăçşçăăăăă§ăăďź
\end{dangerous}

\begin{cslist}
\csitem[\.{jfam}=&lt;number&gt;]
  çžĺ¨ăŽĺćć°ĺźăăŠăłăăăĄăăŞăŽçŞĺˇăć&nbsp;źç´ăă
  \footnote{\pTeX,~\upTeX ă§ăŻ0--15ăŽçŻĺ˛ăč¨ąăăăďź
  \epTeX, \eupTeX ă§ăŻćŹ§ćăŽ\.{fam}ă¨ĺąăŤ0--255ăŤçŻĺ˛ăćĄĺźľăăăŚăăďź}ďź
  çžĺ¨ăŽćŹ§ćć°ĺźăăĄăăŞăŽçŞĺˇăć&nbsp;źç´ăă\.{fam}ă¨ĺççăŤĺăçŞĺˇăćĺŽăăăă¨ăŻ
  ĺççăŤăŻĺŻč˝ă&nbsp;ăďźć°ĺźăăĄăăŞăŻĺćăťćŹ§ćĺąç¨ă§ăăăŽă§ĺŽéăŤăŻ
  ç°ăŞăĺ¤ăćĺŽăăăă¨ăŤăŞăďź

  ćŹ§ćăăŠăłăăč¨­ĺŽăăăŚăăć°ĺźăăĄăăŞăŽçŞĺˇă\.{jfam}ăŤćĺŽăďź
  ć°ĺźä¸­ă§ĺććĺ­ăč¨čż°ăăă¨
\begin{verbatim}
! Not two-byte family.
\end{verbatim}
  ă¨ăăă¨ăŠăźăçşçăăďźéăŤďźĺćăăŠăłăăč¨­ĺŽăăăŚăăăăĄăăŞăŽçŞĺˇă
  |\fam|ăŤćĺŽăďźć°ĺźä¸­ăŤćŹ§ććĺ­ăč¨čż°ăăă¨
\begin{verbatim}
! Not one-byte family.
\end{verbatim}
  ă¨ăăă¨ăŠăźăçşçăăďź

\csitem[\.{ptextracingfonts} (integer)]
  |\tracingoutput=1|ăŽă¨ăăŤćĺłăćă¤ăăŠăĄăźăżă§ďź
  ăăăŻĺćĽ|\shipout|ćăŤă­ă°ăŤĺşăăăŽă§ăăăăďź
  ă|\shipout|ćçšă§ăŽĺ¤ăăŤăăŁăŚäťĽä¸ăŽćĺ&nbsp;ąăčĄ¨ç¤şăăďź
  \pTeX~4.1.0ă§ĺ°ĺĽăăăďź
 \begin{itemize}
  \item ĺ¤ă1äťĽä¸ăŤč¨­ĺŽăăă¨ďź\pdfTeX ăŽ|\pdftracingfonts|ă¨ĺăć¸ĺźă§
   ăăŠăłăĺă¨ăľă¤ăşăčĄ¨ç¤şăăďźfont expansionăŤăŻéĺŻžĺżďźďź
   % LuaTeX ăŤă \tracingfonts ăŻăăă LaTeX ăŽ \tracingfonts ă¨čĄçŞ
   % XeTeX ăŽ \XeTeXtracingfonts ăŻčŞ­čžźăăŠăłăăŽćĺ¨ăăŁăŹăŻăăŞăčżăĺĽçŠ
  \item ĺ¤ă2äťĽä¸ăŤč¨­ĺŽăăă¨ďźčż˝ĺ&nbsp;ă§(u)\pTeX çšćăŽäťĽä¸ăŽćĺ&nbsp;ąăčĄ¨ç¤şăăďź
   \begin{itemize}
    \item ĺćăăŠăłă(JFM)ăŽć¨Şçľ(|/YOKO|)ăťç¸Śçľ(|/TATE|)ăŽĺşĺĽ
    \item ćç¤şçăŞă¨ăłăłăźăćĺŽďź\verb|in jis| â |+JIS| / \verb|in ucs| â |+Unicode|ďź
   \end{itemize}
 \end{itemize}
  ć¸ĺźăŻäťĽä¸ăŽăăăŤăŞăďź
 \begin{itemize}
  \item ćŹ§ćăăŠăłăăŽĺ&nbsp;´ĺ
    \footnote{ăľă¤ăşăTFMăăśă¤ăłăľă¤ăşă¨ĺăĺ&nbsp;´ĺăŻ|@ăľă¤ăş|ăççĽăăăďź}
    $\rightarrow$ |ăăĄă¤ăŤĺ@ăľă¤ăş|
  \item ĺćăăŠăłăăŽĺ&nbsp;´ĺ
    \footnote{ăľă¤ăşăŤă¤ăăŚăŻćŹ§ćăăŠăłăă¨ĺć§ďź
      ĺćăăŠăłăă§ăŻ|/YOKO|ĺăŻ|/TATE|ăŽăăăăä¸ćšă\emph{ĺ¸¸ăŤ}čĄ¨ç¤şăăăďź
      ăžăă¨ăłăłăźăçĄćĺŽăŽĺ&nbsp;´ĺăŻ|+ă¨ăłăłăźă|ăççĽăăăďź}
    $\rightarrow$ |ăăĄă¤ăŤĺ@ăľă¤ăş/çľćšĺ+ă¨ăłăłăźă|
 \end{itemize}

\csitem[\.{ptexfontname}]
  \pTeX~4.1.0ă§ĺ°ĺĽăăăďź
  ćŹ§ćăăŠăłăăŤĺŻžăăŚăŻ\.{fontname}ă¨éĄäźźă&nbsp;ăďź
  ăăŠăłăăľă¤ăşăŽčĄ¨ç¤şă|... at ...pt|ă§ăŻăŞă|...@...pt|ăŽć¸ĺźă¨ăŞăďź
  ăžăďźĺćăăŠăłăăŤĺŻžăăŚăŻčż˝ĺ&nbsp;ćĺ&nbsp;ąă¨ăăŚäťĽä¸ăčĄ¨ç¤şăăďź
   \begin{itemize}
    \item ĺćăăŠăłă(JFM)ăŽĺ&nbsp;´ĺăŻć¨Şçľăťç¸ŚçľăŽćĺ&nbsp;ąăčĄ¨ç¤ş
    \item ćç¤şçăŤ\verb|in jis|/\verb|in ucs|ăćĺŽăăăĺ&nbsp;´ĺăŤéăŁăŚă¨ăłăłăźăăčĄ¨ç¤ş
   \end{itemize}
  ć¸ĺźăŻ\.{ptextracingfonts}ă¨ĺăă§ăăăďźăăŽĺ¤ăŻ\.{ptexfontname}ăŽĺşĺăŤĺ˝ąéżăăŞăďź
  ăăă§ăŻäžăç¤şăăďź
 \begin{itemize}
  \item \verb|\font\x=cmr10 at 7pt| â {\font\x=cmr10 at 7pt \code{\ptexfontname\x}}
  \item \verb|\font\x=nmin10| â {\font\x=nmin10 \code{\ptexfontname\x}}
  \item \verb|\font\x=min10 at 8pt| â {\font\x=min10 at 8pt \code{\ptexfontname\x}}
  \item \verb|\font in jis \x=ngoth10 at 6pt| â {\font in jis \x=ngoth10 at 6pt \code{\ptexfontname\x}}
  \item \verb|\font in ucs \x=utgoth10| â {\font in ucs \x=utgoth10 \code{\ptexfontname\x}}
 \end{itemize}
  ăăăŤăă
  ăăăŽăăŠăłăăJISăłăźăă¨UnicodeăŽăŠăĄăă§DVIĺşĺăăăăă
  ăçĽăăă¨ăă§ăăăďź
  TFMăăĄă¤ăŤĺăŤăŻçžăăăă¨ăăŞă|/|ăĺŤăžăăăăŠăăă§
  ăĺćăăŠăłăăăŠăăă
  ăĺ¤ĺŽăăăă¨ăă§ăăďź
\end{cslist}

\section{\pTeX çłťĺăŽçľçĺŚç}

ĺććĺ­ăĺăŤĺşĺă§ăăă&nbsp;ăă§ăŻďźćĽćŹčŞăŽçľçă¨ăăŚăžă¨ăăŤăŞăăŞăďź
\pTeX çłťĺăŻďźçŚĺăčćŽăăčĄĺĺ˛ĺŚçďź
ĺććĺ­ă¨ćŹ§ććĺ­ăŽăšăăźăˇăłă°ă¨ăăŁăćĽćŹčŞçšćăŽçľçćŠč˝ăćăăŚăăďź

% jtex.tex ăŽăăŠă¤ăłăăŹăźăŻăăç°ĄçĽĺ
\subsection{çŚĺ}
\label{sec:kinsoku}

ćŹ§ćă¨ĺćăŽĺŚçă§čŚăăä¸ćăĺ¤§ăăŞéăăŻďźčĄĺĺ˛ĺŚçă§ăăăďź
\begin{itemize}
\item ćŹ§ćä¸­ă§ăŽčĄĺĺ˛ăŻďźăă¤ăăăźăˇă§ăłĺŚçç­ăŽ
      çšĺĽăŞĺ&nbsp;´ĺăé¤ăăŚďźĺčŞä¸­ăăŞăăĄéŁçśăăćĺ­ĺä¸­ăŻ
      ăăŹăźăŻăă¤ăłăă¨ăăŚé¸ćăăăŞăďź
\item ĺćä¸­ă§ăŻçŚĺďźčĄé&nbsp;­çŚĺă¨čĄćŤçŚĺďźăŽäžĺ¤ăé¤ăăŚďź
      ĺ¨ăŚăŽćĺ­éăăăŹăźăŻăă¤ăłăăŤăŞăĺžăďź
\end{itemize}
ăăăďź\pTeX ăŽčĄĺĺ˛ăŻ\TeX ĺé¨ăŽĺŚçăăăăťăŠĺ¤§ăăŞĺ¤ć´ă
ĺ&nbsp;ăăăăŚăŻăăŞăďźă¨ăăăŽăďź\TeX ăŽ\emph{ăăăŤăăŁ}\footnote{%
ăăăŤăăŁă¨ăŻďźčĄĺĺ˛ćăăăźă¸ĺĺ˛ćăŤ
ăăăŽçŽćăăăŹăźăŻăă¤ăłăă¨ăăŚăŠăŽç¨ĺşŚéŠĺă§ăăăăăç¤şă
ä¸čŹçăŞčŠäžĄĺ¤ă§ăăďźéŠĺă§ăăă°č˛&nbsp;ĺ¤ďźä¸éŠĺă§ăăă°ć­Łĺ¤
ă¨ăăďźďźçľśĺŻžĺ¤ă10000äťĽä¸ăŽăăăŤăăŁăŻçĄéĺ¤§ă¨ăăŚćąăăăďź}%
ă¨ăăćŚĺżľăĺćăŽçŚĺĺŚçăŤăéŠç¨ăăŚăăăăă§ăăďź

čĄé&nbsp;­çŚĺă¨čĄćŤçŚĺăĺŽçžăăćšćłă¨ăăŚďź\pTeX ă§ăŻăçŚĺăăźăăŤăă
ç¨ćăăăŚăăďźăăŽăăźăăŤăŤăŻ
\begin{itemize}
\item çŚĺćĺ­
\item ăăŽćĺ­ăŤĺŻžĺżăăăăăŤăăŁĺ¤
\item ăăăŤăăŁăŽćżĺĽä˝ç˝Ž
      ďźăăŽćĺ­ăŽĺăŤćżĺĽăăăĺžăŤćżĺĽăăăăŽĺĽďź
\end{itemize}
ăçťé˛ă§ăďź\pTeX ăŻćçŤ&nbsp;ăčŞ­ăżčžźăăăłăŤăăŽćĺ­ă
ăăźăăŤăŤçťé˛ăăăŚăăăăŠăăăčŞżăšďźçťé˛ăăăŚăăă°
ăăŽăăăŤăăŁăćĺ­ăŽĺĺžéŠĺăŞä˝ç˝ŽăŤćżĺĽăăďź

çŚĺăăźăăŤăŤćĺ&nbsp;ąăçťé˛ăăććŽľă¨ăăŚďź
äťĽä¸ăŽăăŞăăăŁăăčż˝ĺ&nbsp;ăăăŚăăďź

\begin{cslist}
\csitem[\.{prebreakpenalty} &lt;character code&gt;=&lt;number&gt;]
  ćĺŽăăćĺ­ăŽĺćšăŤăăăŤăăŁăćżĺĽăăďź
  ć­ŁăŽĺ¤ăä¸ăăă¨čĄé&nbsp;­çŚĺăŽćĺŽăŤăăăďź
  äžăă°|\prebreakpenalty`ă=10000|ă¨ăăă°ďźĺĽçšăŽ
  ç´ĺăŤ10000ăŽăăăŤăăŁăäťăăăďźčĄé&nbsp;­çŚĺćĺ­ăŽĺŻžčąĄă¨ăŞăďź

\csitem[\.{postbreakpenalty} &lt;character code&gt;=&lt;number&gt;]
  ćĺŽăăćĺ­ăŽĺžćšăŤăăăŤăăŁăćżĺĽăăďź
  ć­ŁăŽĺ¤ăä¸ăăă¨čĄćŤçŚĺăŽćĺŽăŤăăăďź
  äžăă°|\postbreakpenalty`ďź=10000|ă¨ăăă°ďźĺ§ăä¸¸ćŹĺź§ăŽ
  ç´ĺžăŤ10000ăŽăăăŤăăŁăäťăăăďźčĄćŤçŚĺćĺ­ăŽĺŻžčąĄă¨ăŞăďź
\end{cslist}

\.{prebreakpenalty}, \.{postbreakpenalty}ăŻ
ĺććĺ­ďźćŹ§ććĺ­ăŽĺşĺĽçĄăăŤćĺŽă§ăăďź
ăă&nbsp;ăďźćŹ§ććĺ­ăŤč¨­ĺŽăăăăăăăŽăăăŤăăŁăĺŽéăŤćżĺĽăăăăŽăŻ
äťĽä¸ăŽĺ&nbsp;´ĺăŤéăăăďźă¤ăžăďźćŹ§ćçľçă&nbsp;ăăŽçŻĺ˛ă§ăŻćżĺĽăăăŞăďźďź
\begin{itemize}
  \item ĺ˝čŠ˛ăŽćŹ§ććĺ­ăŽç´ĺžăĺććĺ­ďźĺćšăŤçŚĺăăăŤăăŁăäź´ăŁăŚăć§ăăŞăďźăŽ
    ĺ&nbsp;´ĺăŤéăďźăăŽćŹ§ććĺ­ăŤč¨­ĺŽăăă\.{postbreakpenalty}ăćżĺĽăăďź
  \item ĺ˝čŠ˛ăŽćŹ§ććĺ­ăŽç´ĺăĺććĺ­ďźĺžćšăŤçŚĺăăăŤăăŁăäź´ăŁăŚăć§ăăŞăďźăŽ
    ĺ&nbsp;´ĺăŤéăďźăăŽćŹ§ććĺ­ăŤč¨­ĺŽăăă\.{prebreakpenalty}ăćżĺĽăăďź
\end{itemize}
\iffalse %%%%% [TODO]
\begin{dangerous}
ä¸č¨ăŽăćŹ§ććĺ­ăŤč¨­ĺŽăăăçŚĺăăăŤăăŁăćżĺĽăăăçśćłăăŻ
ćŹ§ććĺ­ă¨ĺććĺ­ăŽĺ˘çă§ăăďź
ăăźăšăŠă¤ăłčŁć­Łďź\ref{sec:baselineshift}çŻăĺç§ďźăĺŽçžăă
\node{disp_node}ăŽćżĺĽçŽćă§ăăăďź
ăăźăšăŠă¤ăłčŁć­Łăăźă­ă§ăŞăă¨ăďź\node{penalty_node}ă¨\node{disp_node}ăŽ
ćżĺĽé&nbsp;ĺşăŻäťĽä¸ăŽăăăŤăăŚăăďź % tex-jp-build@2c83eb0
\begin{itemize}
  \item ćŹ§ćâĺććĺ­éďź \node{disp_node} â \node{penalty_node} (\.{postbreakpenalty}) ăŽé&nbsp;
  \item ĺćâćŹ§ććĺ­éďź \node{penalty_node} (\.{prebreakpenalty}) â \node{disp_node} ăŽé&nbsp;
\end{itemize}
\end{dangerous}
\fi %%%%%

\begin{dangerous}
çŚĺăăăŤăăŁăŻăŞăšăć§çŻä¸­ăŤčŞĺçăŤćżĺĽăăăăŽă§ďź\.{showlists}ă§
\begin{verbatim}
\penalty 10000(for kinsoku)
\end{verbatim}
ăŽăăăŤčĄ¨ç¤şăăăďź

ăžăďźĺććĺ­ăŽĺžćšăŤćżĺĽăăă\.{postbreakpenalty}ăŻ
\.{lastpenalty}ă§ĺĺžă§ăăăďź\.{unpenalty}ă§ĺăé¤ăăă¨ăă§ăă
\footnote{äťĽĺăŽ\pTeX ă§ăŻďź\.{unpenalty}ăăăŻăăŽ
ĺććĺ­ăŽĺžćšăŽ\.{postbreakpenalty}ăĺžŠć´ťăăŚăăžăĺ&nbsp;´ĺăăăŁăăďź
2017-04-06ăŽăłăăă(r43707)ă§äżŽć­Łăăă\cite{tjb11}ďź}ďź
% ăă&nbsp;ďźJFMă°ăŤăźăĺžćšăŤćżĺĽăăăĺććĺ­ă§ăŻä¸ćăăăăŞăďź
% https://github.com/texjporg/tex-jp-build/issues/67
ăăăďźä¸čż°ăŽéăďźćŹ§ććĺ­ăŤč¨­ĺŽăăă\.{postbreakpenalty}ăŻ
ĺžăŤĺććĺ­ăéŁçśăăŚĺăăŚćżĺĽăăăăăďź
\.{lastpenalty}ă§ĺĺžă§ăăŞăăďź\.{unpenalty}ă§ĺăé¤ăăă¨ăă§ăăŞăďź

\.{prebreakpenalty}ăŻĺćăťćŹ§ćăŤăăăďźăăŽç´ĺžăŤćĺ­ăăźăăäź´ăăăďź
ĺççăŤ\.{lastpenalty}ă§ĺĺžă§ăăŞăăďź\.{unpenalty}ă§ĺăé¤ăăă¨ăă§ăăŞăďź
\end{dangerous}

ĺä¸ăŽćĺ­ăŤĺŻžăăŚ\.{prebreakpenalty}ă¨\.{postbreakpenalty}ăŽä¸Ąćšă
ĺćăŤä¸ăăăăăŞćĺŽăŻă§ăăŞă
ďźăăä¸ĄćšćĺŽăăăĺ&nbsp;´ĺďźĺžăăćĺŽăăăăăŽăŤç˝Žăćăăăăďźďź
çŚĺăăźăăŤăŤăŻ1,024ćĺ­ĺăŽé&nbsp;ĺăăăŞăăŽă§ďź
çŚĺăăăŤăăŁăćĺŽă§ăăćĺ­ć°ăŻćĺ¤§ă§1,024ćĺ­ăžă§ă§ăă
\footnote{ćĺ¤§1,024ćĺ­ă¨ăŞăŁăăŽăŻ\TeX~Live 2023 (r65236--65248)äťĽéďź
ăŞăďź\TeX~Live 2022ăžă§ăŻ256ćĺ­ăžă§ăŽé&nbsp;ĺăăăŞăăŁăďź}ďź

çŚĺăăźăăŤăăăŽçťé˛ăŽĺé¤ăŻäťĽä¸ăŽćăŤčĄăăă\cite{tjb26,tjb57}ďź
\begin{itemize}
 \item ăăăŤăăŁĺ¤0ăă°ă­ăźăăŤăŤďźă¤ăžăďź|\global|ăç¨ăăŚďź
  č¨­ĺŽăăĺ&nbsp;´ĺďź
 \item ăăăŤăăŁĺ¤0ăă­ăźăŤăŤăŤč¨­ĺŽăăĺ&nbsp;´ĺă§ăďźăăŽč¨­ĺŽă
  ćăĺ¤ĺ´ăŽă°ăŤăźăďź\eTeX ćĄĺźľă§ăă|\currentgrouplevel|ă0ďźăŽĺ&nbsp;´ĺ
  \footnote{çŚĺăăźăăŤăŽăăĺ&nbsp;´ćăă­ăźăŤăŤă§0ăŤč¨­ĺŽăăăŚăďźăăŽĺ&nbsp;´ćăŤ
  ĺĽăŽçŚĺăăăŤăăŁč¨­ĺŽăă°ă­ăźăăŤă§čĄăăăăă¨ăŽăŞăăăăŤďź
  ćĺ¤ă°ăŤăźăäťĽĺ¤ă§ăŽ0č¨­ĺŽă§ăŻăăźăăŤăăĺé¤ăăăŞăďź}ďź
\end{itemize}

\begin{cslist}
\csitem[\.{jcharwidowpenalty}=&lt;number&gt;]
  ăăŠă°ăŠăăŽćçľčĄăăăăăăŽăăăŤĺ­¤çŤăăăŽăé˛ăăăăŽ
  ăăăŤăăŁăč¨­ĺŽăăďź
  % ăăŽăăăŤăăŁăŻďź
  % ăćŽľč˝ăĺććĺ­ăŽ1ă¤äťĽä¸ăŽéŁçś%
  % \footnote{%
  %   ć­Łç˘şăŤăŻďźĺććĺ­ă1ă¤äťĽä¸ĺŤăăăăŞ
  %   ăĺććĺ­ďźăăăŤăăŁďźă°ăŤăźďźăŤăźăłďźćä¸­ć°ĺźăŽĺ˘çďź\node{mark_node},
  %   \node{adjust_node}, \node{whatsit_node}, \node{disp_node}ăăŽ1ă¤äťĽä¸ăŽéŁçśďź
  %   ăă&nbsp;ăďźă˘ăŻăťăłăćŹä˝ăŻçĄčŚăăăďź
  % }ă§çľăăĺ&nbsp;´ĺďź
  % ăăŽä¸­ăŽćĺžăŤăă\.{kcatcode}ă16ďźćź˘ĺ­ďźăžăăŻ17ďźäťŽĺďźăŽćĺ­%
  % \footnote{%
  %   \pTeX ăŽĺćĺ¤ă§ăŻďź1,~2,~7--8ĺş\emph{äťĽĺ¤}ăŤĺŤăžăăćĺ­ďź
  % }ăŽç´ĺăăŤćżĺĽăăăďź
  % % č­ŚĺďźçžčĄăŽ pTeX ă§ăŻďźăăŽäťć§ăŤć˛żăŁăŚăăžăăďźćŹ§ćăçľĄăă&nbsp;ĺ&nbsp;´ĺďźďź
  % % äťć§ăćç˘şăŤćąşăăă¨ăăăăăăŞćăăŤăŞăăăăăďź
  % %
  % ăžăďźăăŽä˝ç˝Žăăă§ăŤăăăŤăăŁă§ăăŁăĺ&nbsp;´ĺăŻďź\.{jcharwidowpenalty}ăŽĺ¤ăĺçŽăăăďź
\end{cslist}

\subsection{ćĺ­éăŽăšăăźăš}
ćŹ§ćă§ăŻĺčŞćŻăŤăšăăźăšăćżĺĽăăďźăăŽéăčŞżć´ăăăă¨ăŤăăčĄéˇăčŞżć´ăăăďź
ä¸ćšďźĺćă§ăŻăăŽăăăŞčŞżć´ăă§ăăçŽćăăťăźĺ­ĺ¨ăăŞăäťŁăăăŤďź
ăťă¨ăăŠăŽĺ&nbsp;´ĺăŻčĄéˇăĺ¨č§ĺšăŽć´ć°ĺăŤĺăăă¨ă§ďź
ďźĺććĺ­ă&nbsp;ăăŽčĄă§ăŻďźçśşéşăŤčĄćŤăćăăăăŤăăŚçľăžăăďź

ăă&nbsp;ăďźçŚĺĺŚçăçăăăďźéä¸­ăŤćŹ§ćăćżĺĽăăăăăăĺ&nbsp;´ĺăŻăăŻăčŞżć´ăĺżčŚă¨ăŞăďź
ăăă§ä¸čŹăŤčĄăăăăŽăďźčż˝ăčžźăżďźćŹ§ćéăĺćŹ§ćéăŽăšăăźăšéăŽčŞżć´ďźčż˝ăĺşăăŞăŠăŽ
ĺŚçă§ăăďźăăăăčŞĺă§čĄăăăďź\pTeX ăŤăŻä¸č¨ăŽćŠč˝ăĺăăŁăŚăăďź
\begin{enumerate}
\item éŁçśăăĺććĺ­éăŤčŞĺçăŤă°ăŤăźďźäź¸ç¸ŽăăçŠşç˝ďźăćżĺĽ\label{kanjiskip}
\item ĺćŹ§ćéăŤďźă˝ăźăšä¸­ăŤçŠşç˝ćĺ­ăĺŤăăă¨ăďźčŞĺçăŤă°ăŤăźăćżĺĽ\label{xkanjiskip}
\item ĺćăŽç´çŠéĄăŤă°ăŤăźăăăăŻăŤăźăłăč¨­ĺŽ\label{jfmglue}
\end{enumerate}
ä¸č¨ăŽăăĄďź\ref{kanjiskip}ă¨\ref{xkanjiskip}ăŤă¤ăăŚăŻăăăă
\.{kanjiskip}, \.{xkanjiskip}ă¨ăăăăŠăĄăźăżăč¨­ăăŚăăďź
\ref{jfmglue}ăŤă¤ăăŚăŻďź\TeX ăä˝żăăăŠăłăăĄăăŞăăŻ (TFM) ăćĄĺźľăă
\pTeX ĺ°ç¨ăŽĺ˝˘ĺźďźJFMăăŠăźăăăăŤăăŁăŚĺŽçžăăŚăăďź

[TODO] JFMă°ăŤăźăŽćżĺĽčŚĺăŤă¤ăăŚ
\begin{itemize}
 \item ăĄăăŞăăŻçąćĽçŠşç˝ăŽćżĺĽĺŚçăŻĺąéä¸č˝ăăźăŻăłăćĽăăä¸­ć­
 \item ĺąéä¸č˝ăăźăŻăłăćŹ§ććĺ­ăŻăćĺ­ăŻăŠăš0ăćąăďźă\verb|ďź\relaxďź+|ăŽäž
 \item çŚĺăăăŤăăŁďź\.{prebreakpenalty}ă\.{postbreakpenalty}ďźă¨
  ăĺăçŽćăŤçşčĄăăăĺ&nbsp;´ĺăŻ
  ăçŚĺăăăŤăăŁâJFMçąćĽçŠşç˝ăăŽé&nbsp;ăŤçşčĄăăăďź
\iffalse %%%%% [TODO]
 \item ăăä¸čŹăŤďźçŚĺăăăŤăăŁďźJFMçąćĽçŠşç˝ďźăăźăšăŠă¤ăłčŁć­Łďź
  ćŹ§ćTFMçąćĽăŤăźăłăĺăçŽćăŤçşčĄăăăĺ&nbsp;´ĺăŻ
  ćŹĄăŽé&nbsp;ăŤăŞăďź\ref{sec:kinsoku}çŻăŽćł¨ćăŽä¸čŹĺďźďź% tex-jp-build/f6f500d or 9e7e21aa
  \begin{itemize}
   \item ĺćâćŹ§ćďźçŚĺăăăŤăăŁâJFMçąćĽçŠşç˝âăăźăšăŠă¤ăłčŁć­Łâ%
   ćŹ§ćTFMçąćĽăŤăźăł
   \item ćŹ§ćâĺćďźăăźăšăŠă¤ăłčŁć­ŁâçŚĺăăăŤăăŁâJFMçąćĽçŠşç˝
   \footnote{[TODO] \TeX~Live~2019ăŽ\pTeX~3.8.2ă§ăŻďźćŹ§ćTFMçąćĽăŤăźăłăŻćŹ§ćâĺćăŽ
   ĺćżćăŤăŻćżĺĽăăăŞăďź}% tex-jp-build/78c8605 ă§č§Łćąş
  \end{itemize}
\fi %%%%%
 \item ăăć°´ĺšłăăăŻăš(|\hbox|)ă|\noindent|ă§éĺ§ăăăćŽľč˝ăJFMçąćĽă°ăŤăźă§ĺ§ăžăŁă
   ĺ&nbsp;´ĺăŻďźăăŽă°ăŤăźăŻĺăé¤ăăăďźăŤăźăłăŻé¤ăăăŞăďźďź
   ăžăć°´ĺšłăăăŻăšăJFMçąćĽă°ăŤăźă§çľäşăăĺ&nbsp;´ĺăŻďźăăŽă°ăŤăźăŻčŞçśéˇăťäź¸ăłéăťç¸ŽăżéăŽ
   ăăšăŚă0ă¨ăŞăďź
\end{itemize}

\begin{cslist}
\csitem[\.{kanjiskip}=&lt;skip&gt;]
  éŁçśăăĺććĺ­éăŤć¨ćşă§ĺĽăă°ăŤăźăč¨­ĺŽăăďźćŽľč˝éä¸­ă§ăăŽĺ¤ăĺ¤ăăŚăĺ˝ąéżăŻăŞăďź
  ćŽľč˝çľäşćăŽĺ¤ăćŽľč˝ĺ¨ä˝ăŤăăăŁăŚç¨ăăăăďź
\end{cslist}

\begin{dangerous}
 ĺććĺ­ăčĄ¨ăăăźăăéŁçśăăĺ&nbsp;´ĺďźăăŽéăŤ\.{kanjiskip}ăăăăăŽă¨ăăŚčĄĺĺ˛ă
 ăăăŻăšăŽĺŻ¸ćłč¨çŽăčĄăăăďź\.{kanjiskip}ăŽĺ¤§é¨ĺăŻăăŽăăăŤćéťăŽăăĄăŤćżĺĽ
 ăăăăăŽă§ăăăŽă§ďź|\lastskip|ăŞăŠă§ĺĺžăăăă¨ăŻă§ăăŞăăďź
 |\showlists|ă|\showbox|ă§ăčĄ¨ç¤şăăăŞăďź

  ăăŽä¸ćšă§ďźăăźăăŽĺ˝˘ă§ćç¤şçăŤćżĺĽăăă\.{kanjiskip}ăĺ­ĺ¨ăăďź
  ăăŽăăăŤăŞăăŽăŻćŹĄăŽĺ&nbsp;´ĺă§ăăďź
 \begin{itemize}
  \item ć°´ĺšłăăăŻăš(|\hbox|)ăĺććĺ­ă§éĺ§ăăŚăăďźăăŽăăăŻăšăŽç´ĺă
    ĺććĺ­ă§ăăŁăĺ&nbsp;´ĺďźăăăŻăšăŽç´ĺăŤ\.{kanjiskip}ăćżĺĽăăăďź
  \item ć°´ĺšłăăăŻăš(|\hbox|)ăĺććĺ­ă§çľäşăăŚăăďźăăŽăăăŻăšăŽç´ĺžă
    ĺććĺ­ă§ăăŁăĺ&nbsp;´ĺďźăăăŻăšăŽç´ĺžăŤ\.{kanjiskip}ăćżĺĽăăăďź
  \item éŁçśăăĺććĺ­ăŽéăŤăăăŤăăŁăăăŁăĺ&nbsp;´ĺďźćéťăŽ\.{kanjiskip}ă
    ćżĺĽăăăŞăăŽă§ćç¤şçăŤăăźăăä˝ăăăďź
 \end{itemize}
 ăŞăďźć°´ĺšłăăăŻăšă§ăăŁăŚă|\raise|, |\lower|ă§ä¸ä¸ä˝ç˝Žăăˇăăăăăĺ&nbsp;´ĺăŻ
 ä¸č¨ă§čż°ăšă\.{kanjiskip}ăĺĺžăŤćżĺĽĺŚçăŽĺŻžčąĄăŤăŻăŞăăŞăďź
\end{dangerous}
\begin{dangerous}
  ăă°ăă°

  \medskip
  \begin{minipage}{.6\linewidth}
  \begin{verbatim}
  \hbox to 15zw{%
    \kanjiskip=0pt plus 1fil
    ăăăăăăďźă}
  \end{verbatim}
  \end{minipage}\hfill
  \begin{minipage}{.3\linewidth}
  \hbox to 15zw{%
    \kanjiskip=0pt plus 1fil
    ăăăăăăďźă}
  \end{minipage}

  \noindent
  ăŽăăăŤ\.{kanjiskip}ăŤçĄéăŽäź¸éˇĺşŚăćăăăăă¨ă§ĺç­ĺ˛äťăčĄăăă¨ăă
  ăłăźăăčŚăăăăďźéŁçśăăĺććĺ­ăŽéăŤăŻăĄăăŞăăŻçąćĽăŽçŠşç˝ă¨
  \.{kanjiskip}ăŻĺćăŤăŻĺĽăăŞăăŽă§ďźä¸ăŤć¸ăăăłăźăăŻä¸éŠĺă§ăă
 \footnote{ĺŽéďźéăćŹĺź§ăŽĺăťéăćŹĺź§ďźĺ¨č§ăłăłăăĺŤăďźăŽĺžăŤăŻ
 JFMă°ăŤăźăĺĽăŁăŚăăăŽă§ĺč§ăăăŞăďź
 }ďź
\end{dangerous}

\begin{cslist}
\csitem[\.{xkanjiskip}=&lt;skip&gt;]
  ĺććĺ­ă¨ćŹ§ććĺ­ăŽéăŤć¨ćşă§ĺĽăă°ăŤăźăč¨­ĺŽăăďź
  ćŽľč˝éä¸­ă§ăăŽĺ¤ăĺ¤ăăŚăĺ˝ąéżăŻăŞăďź
  ćŽľč˝çľäşćăŽĺ¤ăćŽľč˝ĺ¨ä˝ăŤăăăŁăŚç¨ăăăăďź
\end{cslist}
\begin{dangerous}
  \.{kanjiskip}ă¨ç°ăŞăďź\.{xkanjiskip}ăŻăăźăăŽĺ˝˘ă§ćżĺĽăăăďź
  ăăŽćżĺĽĺŚçăŻćŽľč˝ăŽčĄĺĺ˛ĺŚçăŽç´ĺăďź|\hbox|ăéăăă¨ăăŤčĄăăăăŽă§ďź
  ăăŠăăŤ\.{xkanjiskip}ăĺĽăŁăŚăăăăăçĽăăăăŤăŻçžĺ¨ăŽćŽľč˝ă|\hbox|ă
  çľäşăăăĺżčŚăăăďź
\end{dangerous}

\begin{cslist}
\csitem[\.{xspcode} &lt;8-bit number&gt;=&lt;0--3&gt;]
  ăłăźăçŞĺˇă&lt;8-bit number&gt;ăŽćŹ§ććĺ­ăŽĺ¨ĺ˛ăŤ\.{xkanjiskip}ă
  ćżĺĽĺŻč˝ăĺŚăă0--3ăŽĺ¤ă§ćĺŽăăďźăăăăăŽćĺłăŻćŹĄăŽéăďź
  \begin{description}
    \item[0] ćŹ§ććĺ­ăŽĺĺ´ďźĺžĺ´ă¨ăăŤ\.{xkanjiskip}ăŽćżĺĽăçŚć­˘ăăďź
    \item[1] ćŹ§ććĺ­ăŽĺĺ´ăŤăŽăż\.{xkanjiskip}ăŽćżĺĽăč¨ąĺŻăăďźĺžĺ´ăŻçŚć­˘ďź
    \item[2] ćŹ§ććĺ­ăŽĺžĺ´ăŤăŽăż\.{xkanjiskip}ăŽćżĺĽăč¨ąĺŻăăďźĺĺ´ăŻçŚć­˘ďź
    \item[3] ćŹ§ććĺ­ăŽĺĺ´ďźĺžĺ´ă¨ăăŤ\.{xkanjiskip}ăŽćżĺĽăč¨ąĺŻăăďź
  \end{description}
  \pTeX ăŽć¨ćşĺ¤ăŻďźć°ĺ­0--9ă¨čąćĺ­A--Z, a--zăŤĺŻžăăĺ¤ăŻ3ďźä¸Ąĺ´č¨ąĺŻďźďź
  ăăŽäťăŽćĺ­ăŤĺŻžăăŚăŻ0ďźä¸Ąĺ´çŚć­˘ďźďź

\csitem[\.{inhibitxspcode} &lt;kanji code&gt;=&lt;0--3&gt;]
  ăłăźăçŞĺˇă&lt;kanji code&gt;ăŽĺććĺ­ăŽĺ¨ĺ˛ăŤ\.{xkanjiskip}ă
  ćżĺĽĺŻč˝ăĺŚăă0--3ăŽĺ¤ă§ćĺŽăăďźăăăăăŽćĺłăŻćŹĄăŽéăďź
  \begin{description}
    \item[0] ĺććĺ­ăŽĺĺ´ďźĺžĺ´ă¨ăăŤ\.{xkanjiskip}ăŽćżĺĽăçŚć­˘ăăďź
    \item[1] ĺććĺ­ăŽĺžĺ´ăŤăŽăż\.{xkanjiskip}ăŽćżĺĽăč¨ąĺŻăăďźĺĺ´ăŻçŚć­˘ďź
    \item[2] ĺććĺ­ăŽĺĺ´ăŤăŽăż\.{xkanjiskip}ăŽćżĺĽăč¨ąĺŻăăďźĺžĺ´ăŻçŚć­˘ďź
    \item[3] ĺććĺ­ăŽĺĺ´ďźĺžĺ´ă¨ăăŤ\.{xkanjiskip}ăŽćżĺĽăč¨ąĺŻăăďź
  \end{description}
  ăăŽ\.{inhibitxspcode}ăŽč¨­ĺŽĺ¤ăŽćĺ&nbsp;ąăŻ1,024ćĺ­ĺăŽăăźăăŤăŤć&nbsp;źç´ăăăŚăă
  \footnote{ćĺ¤§1,024ćĺ­ă¨ăŞăŁăăŽăŻ\TeX~Live 2023 (r65236--65248)äťĽéďź
  ăŞăďź\TeX~Live 2022ăžă§ăŻ256ćĺ­ĺăŽăăźăăŤăăăŞăăŁăďź}ďź
  ćŞçťé˛ćăŻ3ďźä¸Ąĺ´č¨ąĺŻďźă§ăăă¨ăżăŞăăďźăžăă°ă­ăźăăŤăŤ3ăäťŁĺĽăăăďźăăăăŻ
  ćăĺ¤ĺ´ăŽă°ăŤăźăă§3ăäťŁĺĽăăă¨ăăźăăŤăăăŽĺé¤ăčĄăăă
  ďźçŚĺăăźăăŤăăăŽĺé¤ă¨ĺć§ăŽčŚĺďźďź
\end{cslist}
\begin{dangerous}
  \.{xspcode}ă¨\.{inhibitxspcode}ă§ăŻďźä¸čŚăăă¨
  č¨­ĺŽĺ¤1ă¨2ăŽćĺłăĺĺŻžăŽăăăŤćăăăăăăăŞăďźăăăďźĺŽăŻä¸Ąčă¨ă
  \begin{quote}
    1: ăĺććĺ­âćŹ§ććĺ­ăăŽĺ&nbsp;´ĺăŽăżč¨ąĺŻďźăćŹ§ććĺ­âĺććĺ­ăăŽĺ&nbsp;´ĺăŻçŚć­˘ďź\\
    2: ăćŹ§ććĺ­âĺććĺ­ăăŽĺ&nbsp;´ĺăŽăżč¨ąĺŻďźăĺććĺ­âćŹ§ććĺ­ăăŽĺ&nbsp;´ĺăŻçŚć­˘ďź
  \end{quote}
  ă¨ăŞăŁăŚăăďź
\end{dangerous}

\begin{cslist}
\csitem[\.{autospacing}, \.{noautospacing}]
  éŁçśăăĺććĺ­éăŤďźć¨ćşă§\.{kanjiskip}ă§ćĺŽăăăă&nbsp;ăăŽă°ăŤăźă
  ćżĺĽăă(\.{autospacing})ăćżĺĽăăŞă(\.{noautospacing})ăč¨­ĺŽăăďź
  ćŽľč˝éä¸­ă§ăăŽĺ¤ăĺ¤ăăŚăĺ˝ąéżăŻăŞăďźćŽľč˝çľäşćăŽĺ¤ăćŽľč˝ĺ¨ä˝ăŤăăăŁăŚç¨ăăăăďź
\csitem[\.{autoxspacing}, \.{noautoxspacing}]
  ĺććĺ­ă¨ćŹ§ććĺ­ăŽéăŤďźć¨ćşă§\.{xkanjiskip}ă§ćĺŽăăăă&nbsp;ăăŽă°ăŤăźă
  ćżĺĽăă(\.{autoxspacing})ăćżĺĽăăŞă(\.{noautoxspacing})ăč¨­ĺŽăăďź
  ćŽľč˝éä¸­ă§ăăŽĺ¤ăĺ¤ăăŚăĺ˝ąéżăŻăŞăďźćŽľč˝çľäşćăŽĺ¤ăćŽľč˝ĺ¨ä˝ăŤăăăŁăŚç¨ăăăăďź
\end{cslist}

ăŠăĄăăŽč¨­ĺŽăć¨ćşă§ăŻćĺš(\.{autospacing}, \.{autoxspacing})ă§ăăďź
\begin{dangerous}
  ăă§ăŤčż°ăšăăăăŤďź\.{kanjiskip}ăŽä¸é¨ă¨\.{xkanjiskip}ăŻăăźăăŽĺ˝˘ă§ćżĺĽăăăďź
  \.{noautospacing}ă\.{noautoxspacing}ăćĺŽăăŚăďźăăŽăăźăăŽĺ˝˘ă§ăŽćżĺĽčŞä˝ăŻčĄăăă
 ďźăă&nbsp;ăăźăă\.{kanjiskip}ă\.{xkanjiskip}ăŽäťŁăăăŤéˇă0ăŽă°ăŤăźăčĄ¨ăă&nbsp;ăďźďź

  ăăăŤăăďźäžăă°\.{noautoxspacing}çśćłä¸ă§ă|ăa|ăă¨
  ĺĽĺăăŚăďźéăŤéˇă0ăŽă°ăŤăźăăăăăăăăă¨ăaăăŽéă§ćščĄĺŻč˝ă¨ăŞăăă¨ăŤćł¨ćďź
\end{dangerous}

\begin{cslist}
\csitem[\.{showmode}]
  \.{kanjiskip}ăŽćżĺĽă\.{xkanjiskip}ăŽćżĺĽăćĺšăŤăŞăŁăŚăăăĺŚăă
\begin{verbatim}
&gt; auto spacing mode;
&gt; no auto xspacing mode.
\end{verbatim}
  ă¨ăăĺ˝˘ĺźďźä¸ăŽäžă§ăŻ\.{autospacing}ăă¤\.{noautoxspacing}ăŽçśćłďźă§çŤŻćŤăă­ă°ăŤčĄ¨ç¤şăăďź

\csitem[\.{inhibitglue}]
  ăăŽĺ˝äť¤ăĺŽčĄăăăä˝ç˝ŽăŤăăăŚďźăĄăăŞăăŻçąćĽăŽçŠşç˝ăŽćżĺĽăçŚć­˘ăăďźäťĽä¸ăŽçšăŤćł¨ćďź
\begin{itemize}
 \item ăĄăăŞăăŻçąćĽăŽçŠşç˝ăćżĺĽăăăŞăă&nbsp;ăă§ăăďź
       ăăŽäťŁăăăŤ\.{kanjiskip}ă\.{xkanjiskip}ăćżĺĽăăăăă¨ăŻçŚć­˘ăăŚăăŞăďź
 \item ćŹĺ˝äť¤ăŻçžĺ¨ăŽă˘ăźăăďźééĺŽďźéĺŽĺăăďźć°´ĺšłă˘ăźăăŽă¨ăăăĺšĺăçşćŽăăŞă
       ďźć°ĺźă˘ăźăă§ăĺšăăŞăďźďź
       ćŽľč˝ăĺććĺ­ă\verb|ă|ăă§ĺ§ăžăďźăăŽćĺ­ăŽç´ĺăŤăĄăăŞăăŻçąćĽăŽçŠşç˝ăĺĽăăă¨ăćć­˘
       ăăăĺ&nbsp;´ĺăŻďźćŹĄăŽăăăŤä¸ćŚćŽľč˝ăéĺ§ăăŚăă\.{inhibitglue}ăĺŽčĄăăĺżčŚăăăďź
\begin{verbatim}
\leavevmode\inhibitglue ă
\end{verbatim}
\end{itemize}
  äťĽĺăŽ\pTeX ă§ăŻăăăŽĺ˝äť¤ăĺŽčĄăăăä˝ç˝Žăăä˝ăćăăŽăĺ¤§éćă§ăăăăŤăăăŁăăďź
  \TeX~Live 2019ăŽ\pTeX~3.8.2äťĽéă§ăŻďźćç˘şăŤ\emph{ć°ăăŞăăźăăčż˝ĺ&nbsp;ăăăŞăéă}ďźă¨
  ĺŽăă\cite{tjb28,forum_2566}ďźăăŞăăĄďź
  \begin{enumerate}
    \item \.{inhibitglue}ăŻďźăăźăćżĺĽĺŚçăčĄăĺ˝äť¤
    (|\null|,~|\hskip|, |\kern|, |\vrule|,~\dots)ăĺžăăŤćĽăĺ&nbsp;´ĺăŻçĄĺšĺăăăďź
    \item ä¸ćšďź|\relax|ăăŹă¸ăšăżă¸ăŽäťŁĺĽăŞăŠăŽăăźăăä˝ăăŞăĺŚçă§ăŻçĄĺšĺăăăŞăďź
    \item \.{inhibitglue}ăŽĺšćăŻĺĽăŹăăŤăŽăŞăšăăŤăŻćł˘ĺăăŞăďź
  \end{enumerate}
\end{cslist}
\begin{dangerous}
  äťĽä¸ăŽčŞŹćăŽĺˇä˝äžăäťĽä¸ăŤç¤şăďź

  \medskip\noindent
  \begin{minipage}[t]{.8\linewidth}
  \begin{verbatim}
    ďź\vruleďź\\
    ďź\vrule\inhibitglueďź\\
    ďź\inhibitglue\vruleďź\\
    ďź\inhibitglue\relaxďź\\
    ďź\relax\inhibitglueďź\\ % ăďźăă\relaxăéă§äşĺçŠşăăĺĽă
    ă\setbox0=\hbox{\inhibitglue}ďź
  \end{verbatim}
  \end{minipage}\hfill
  \begin{minipage}[t]{.1\linewidth}
    ďź\vruleďź\\
    ďź\vrule\inhibitglueďź\\
    ďź\inhibitglue\vruleďź\\
    ďź\inhibitglue\relaxďź\\
    ďź\relax\inhibitglueďź\\
    ă\setbox0=\hbox{\inhibitglue}ďź
  \end{minipage}
\end{dangerous}
\begin{dangerous}
  p\LaTeX~2017-10-28äťĽéă§ăŻďź\.{inhibitglue}ăŽç­ç¸Žă¨ăăŚ|\&lt;|ăćŹĄăŽăăăŤ
  ĺŽçžŠăăăŚăăďź|\protected|ăŻ\eTeX ćĄĺźľăŽćŠč˝ă&nbsp;ăďźçžĺ¨ă§ăŻ\LaTeX čŞä˝ă
  \eTeX ćĄĺźľăčŚćąăăŚăăďźďź
\begin{verbatim}
\protected\def\&lt;{\ifvmode\leavevmode\fi\inhibitglue}
\end{verbatim}
\end{dangerous}
\begin{cslist}
\csitem[\.{disinhibitglue}]
  \.{inhibitglue}ăŽĺšćăçĄĺšĺďźă¤ăžăďźăĄăăŞăăŻçąćĽăŽçŠşç˝ăŽćżĺĽăč¨ąĺŻďźăăďź
  \pTeX~3.8.2ă§ć°ăăčż˝ĺ&nbsp;ăăăďź
\end{cslist}

\subsection{çľćšĺ}
% ptexdoc.tex ăŽăăăŁăŹăŻăˇă§ăłăăç°ĄçĽĺ
ĺžćĽăŽ\TeX ă§ăŻďźĺ­éăćšĺăć°´ĺšłĺłĺăďźâďźďźčĄéăćšĺăĺç´ä¸ĺăďźâďź
ăŤĺşĺŽăăăŚăăďź\pTeX ă§ăŻďź\TeX ăŽçśćă¨ăăŚâçľćšĺďźăăŁăŹăŻăˇă§ăłďźâ
ăčăďźăăŁăŹăŻăˇă§ăłăŤăăŁăŚĺ­éăćšĺă¨čĄéăćšĺăĺ¤ăăăă¨ăŤăăŚăăďź
ăŞăďźčĄăŻć°´ĺšłăăăŻăš(horizontal box)ďźăăźă¸ăŻĺç´ăăăŻăš(vertical box)ă§ăă
ă¨ăăçšăŻďź\pTeX ă§ăĺžćĽăŽ\TeX ă¨ĺć§ă§ăăďź

\pTeX ăŽăľăăźăăăçľćšĺăŻ\emph{ć¨Şçľ}ďź\emph{ç¸Śçľ}ďźăăăŚ
\emph{DtoUćšĺ}\footnote{ä¸ăăä¸(Down to Up)ă§ăăăďź}ăŽ3ă¤ă§ăăďź
ăžăć°ĺźă˘ăźăä¸­ă§ä˝ăăăăăăŻăšăŻć°ĺźăăŁăŹăŻăˇă§ăłă¨ăăăžăĺĽăŽçśćăŤăŞăďź
ć¨Şçľă§ăŽć°ĺźăăŁăŹăŻăˇă§ăłďźć¨Şć°ĺźăăŁăŹăŻăˇă§ăłďźă¨
DtoUćšĺă§ăŽć°ĺźăăŁăŹăŻăˇă§ăłăŻăăăăéć°ĺźăŽĺ&nbsp;´ĺă¨ĺşĺĽăŻăŞăăďź
ç¸Śçľă§ăŽć°ĺźăăŁăŹăŻăˇă§ăłďź\emph{ç¸Ść°ĺźăăŁăŹăŻăˇă§ăł}ďźă§ăŻć¨Şçľăćč¨ĺăăŤ
90ĺşŚĺčť˘ăăăăăăŞçśćă¨ăŞăďź
ĺžăŁăŚďź\pTeX ă§ăŻç¸Ść°ĺźăăŁăŹăŻăˇă§ăłăžă§ĺŤăăă¨ĺč¨4ç¨ŽéĄăŽçľćšĺăăľăăźăăăăŚăăă¨
ăăăďź\autoref{tab-dir}ďźďź

\begin{table}[tbp]
\caption{\pTeX ăŽăľăăźăăăçľćšĺ}
\label{tab-dir}
\centering\small
\def\mathmode{}
\def\obox#1{%
  \setbox0=\hbox{\yoko\hbox{#1%
  \large\tbaselineshift0pt%
  \vrule height 25pt width 0.4pt depth 15pt\kern-.2pt%
  \raise25pt\hbox to 0pt{\hss\composite{*r^@{&gt;&gt;}}\hss}%
  \raise-15pt\hbox to 0pt{\hss\composite{*l^@{&gt;|}}\hss}\kern.2pt%
  \vrule height.2pt depth.2pt width 60pt\hbox to 0pt{\hss\composite{*d^@{&gt;}}\hss}\kern-60pt
  \mathmode\hbox to 60pt{\,éăŻăAg\hss}\mathmode}}%
  \raise\dimexpr 0.5\dp0-0.5\ht0\box0%
}
\begin{tabular}{&gt;{\bfseries}lcccc}
\toprule
&amp;ć¨Şçľ&amp;ç¸Śçľ&amp;DtoUćšĺ&amp;ç¸Ść°ĺźăăŁăŹăŻăˇă§ăł\\
\midrule
ĺ˝äť¤&amp;|\yoko|&amp;|\tate|&amp;|\dtou|&amp;---\\
ĺ­éăćšĺ&amp;ć°´ĺšłĺłĺăďźâďź&amp;ĺç´ä¸ĺăďźâďź&amp;ĺç´ä¸ĺăďźâďź&amp;ĺç´ä¸ĺăďźâďź\\
čĄéăćšĺ&amp;ĺç´ä¸ĺăďźâďź&amp;ć°´ĺšłĺˇŚĺăďźâďź&amp;ć°´ĺšłĺłĺăďźâďź&amp;ć°´ĺšłĺˇŚĺăďźâďź\\
\parbox[t]{6zw}{ä˝żç¨ăăĺćăăŠăłă}&amp;ć¨Şçľç¨(\.{jfont})&amp;ç¸Śçľç¨(\.{tfont})&amp;
\multicolumn{2}{c}{%
  ć¨Şçľç¨(\texttt{\string\jfont})ăŽ$90^\circ$ĺčť˘}\\[\smallskipamount]
  çľçäž &amp;\obox{\yoko}&amp;\obox{\tate}&amp;\obox{\dtou}&amp;\def\mathmode{$}\obox{\tate}\\
\noalign{\medskip}
\bottomrule
\end{tabular}
\end{table}

äťĽä¸ăďźçľćšĺăŽĺ¤ć´ăçžĺ¨ăŽçľćšĺĺ¤ĺŽăŤé˘ăăăăŞăăăŁăăŽä¸čŚ§ă§ăăďź

\begin{cslist}
\csitem[\.{tate}, \.{yoko}, \.{dtou}]
  çľćšĺăăăăăç¸Śçľďźć¨ŞçľďźDtoUćšĺăŤĺ¤ć´ăăďź
  ăŤăŹăłăăŽĺćăăŠăłăăŻç¸Śçľă§ăŻç¸Śçľç¨ăăŠăłăďź
  ć¨ŞçľăăăłDtoUćšĺă§ăŻć¨Şçľç¨ăăŠăłăăŤăŞăďź

  çľćšĺăŽĺ¤ć´ăŻďźĺĺă¨ăăŚä˝ćä¸­ăŽăŞăšăăăăăŻăšăŤä˝ăŽăăźăăä˝ăăăŚăăŞă
  çśćă§ăŽăżč¨ąăăăďźăăčŠłç´°ăŤăŻďź
\begin{itemize}
  \item ĺśéć°´ĺšłă˘ăźă(|\hbox|)ďźĺé¨ĺç´ă˘ăźă(|\vbox|)ă§ăŻďź
  ä¸č¨ăŤčż°ăšăĺĺéăďź
\begin{verbatim}
  \hbox{\hsize=20em\tate âŚâŚ}
\end{verbatim}
  ăŽăăăŤďźăăźăăä˝ăăăŞăäťŁĺĽćăŞăŠăŻçľćšĺĺ¤ć´ĺăŤĺŽčĄăăŚăčŻăďź

  éĺăăă¨ćŹĄăŽăăăŞă¨ăŠăźăĺşăďź
\begin{verbatim}
! Use `\tate' at top of list.
\end{verbatim}

  \item éĺśéć°´ĺšłă˘ăźăďźčĄĺĺ˛ăăăćŽľč˝ďźăďź
  ć°ĺźă˘ăźăďźćä¸­ć°ĺźďźăăŁăšăăŹă¤ć°ĺźĺăăďź
  ă§ăŽĺŽčĄăŻçŚć­˘ďź

  \item ĺ¤é¨ĺç´ă˘ăźăăŽĺ&nbsp;´ĺăŻďźćŹĄăŽ2çšăĺćăŤćşăăăăĺ&nbsp;´ĺăŽăżĺŽčĄĺŻč˝ă§ăă
    \footnote{%
    \TeX ăŻďźĺ¤é¨ĺç´ă˘ăźăă§ăăăŻăšăăŽäťăŽăăźăăčż˝ĺ&nbsp;ăăéăŤďźăžă
    ăăŽăăźăărecent contributionsă¨ăăăŞăšăăŽćŤĺ°žăŤčż˝ĺ&nbsp;ăďź
    ăăŽĺžrecent contributionsăŽä¸­čşŤăĺžăăŤcurrent pageă¨ăăĺĽăŽăŞăšăăŤç§ťăăă
    ă¨ăăĺŚçăčĄăŁăŚăăďź

    ăăŽăăďźĺç´ăŤcurrent pageăžăăŻrecent contributionsă¨ăă1ă¤ăŽăŞăšăă
    čŞżăšăă&nbsp;ăă§ăŻăăăźă¸ăçŠşăăć­Łăăĺ¤ć­ă§ăăŞăďź
    }ďź
  \begin{itemize}
    \item current pageăŽä¸­čşŤăŤăŻăăăŻăšďźç˝Ťçˇ(|\hrule|)ďź
      insertion~(|\insert|)ăŻăŞăďź
      č¨ăćăăă°ďźcurrent pageăŽä¸­čşŤăŻăăŁăŚă
      ăăźăŻ(|\mark|)ăwhatsităŽăż
      \footnote{current pageăŽä¸­čşŤăŤă°ăŤăźďźăŤăźăłďźăăăŤăăŁăăăăŽăŻďź
      ăăăăŽĺăŤăăăŻăšďźç˝Ťçˇďźinsertionăĺ­ĺ¨ăăĺ&nbsp;´ĺăŤăŽăżă§ăăďź}ďź
    \item recent contributionsăŽä¸­čşŤăŤăăăăŻăšďźç˝Ťçˇďź
      insertionăŻăŞăďź
  \end{itemize}
  éĺăăă¨ćŹĄăŽăăăŞă¨ăŠăźăĺşăďź
\begin{verbatim}
! Use `\tate' at top of the page.
\end{verbatim}

\end{itemize}

  ăžăďźăăăŻăšăŽä¸­čşŤă|\unhbox|, |\unvbox|ç­ă§ĺăĺşă
  ĺ&nbsp;´ĺăŻďźĺăçľćšĺăŽăăăŻăšĺă§ăŞăăă°ăŞăăŞă
  \footnote{ć°ĺźăăŁăŹăŻăˇă§ăłăĺŚăăŻç°ăŞăŁăŚăăŚăčŻăďź}ďź
  éĺăăĺ&nbsp;´ĺďź
\begin{verbatim}
! Incompatible direction list can't be unboxed.
\end{verbatim}
  ăŞăă¨ăŠăźăĺşăďź
\end{cslist}
\begin{dangerous}
 |\discretionary|ĺ˝äť¤ă§ăŻ
 |\discretionary|\code{\{&lt;pre&gt;\}\{&lt;post&gt;\}\{&lt;nobreak&gt;\}}ă¨3ă¤ăŽĺźć°ă
 ćĺŽăăăďźăăŽ3ĺźć°ăŽä¸­ă§çľćšĺăĺ¤ć´ăăăă¨ăŻă§ăăŞăďźĺ¸¸ăŤĺ¨ĺ˛ăŽçľćšĺăä˝żăăăďźďź
\end{dangerous}

\begin{cslist}
\csitem[\.{iftdir}, \.{ifydir}, \.{ifddir}, \.{ifmdir}]
  çžĺ¨ăŽçľćšĺăĺ¤ĺŽăăďź\.{iftdir}, \.{ifydir}, \.{ifddir}ăŻăăăă
  ç¸Śçľďźć¨ŞçľďźDtoUćšĺă§ăăăăŠăăăĺ¤ĺŽăăďźć°ĺźăăŁăŹăŻăˇă§ăłă§ăăăăŻĺăăŞăďźďź
  ä¸ćšďź\.{ifmdir}ăŻć°ĺźăăŁăŹăŻăˇă§ăłă§ăăăăŠăăăĺ¤ĺŽăăďź

  ĺžăŁăŚďź\autoref{tab-dir}ăŤç¤şăă4ă¤ăŽçśćłăŽăŠăăŤĺąăăăăŻäťĽä¸ăŽăăăŤăăŚĺ¤ĺŽă§ăăăă¨ăŤăŞăďź
  \begin{verbatim}
\iftdir
  \ifmdir
    ďźç¸Ść°ĺźăăŁăŹăŻăˇă§ăłďź
  \else
    ďźéĺ¸¸ăŽç¸Śçľďź
  \fi
\else\ifydir
  ďźć¨Şçľďź
\else
  ďźDtoUćšĺďź
\fi
  \end{verbatim}

\csitem[\.{iftbox} &lt;number&gt;, \.{ifybox} &lt;number&gt;, \.{ifdbox} &lt;number&gt;, \.{ifmbox} &lt;number&gt;]
  &lt;number&gt;çŞăŽăăăŻăšăŽçľćšĺăĺ¤ĺŽăăďź&lt;number&gt;ăŻćĺšăŞboxăŹă¸ăšăżă§ăŞăăă°ăŞăăŞăďź

  ăăźă¸ă§ăłp3.7ăžă§ăŽ\pTeX ă§ăŻďźăăăŻăšăä¸ćŚăăźăă¨ăăŚçľăžăăŚăăžăă¨ďź
  éĺ¸¸ăŽç¸Śçľă§çľăžăăŚăăăŽăďźăăă¨ăç¸Ść°ĺźăăŁăŹăŻăˇă§ăłă§çľăžăăŚăăăŽă
  ă¨ăăćĺ&nbsp;ąăĺ¤ąăăăŚăăďźăăăďźăăă§ăŻĺžčż°ăŽăăăźăšăŠă¤ăłčŁć­ŁăŽćťăéăă
  čŞ¤ăďźćŹ§ćăŽĺç´ä˝ç˝ŽăćăăŞăă¨ăăĺéĄăçăă\cite{tatemath}ďź
  ăăŽĺéĄăč§ŁćąşăăĺŻçŁçŠă¨ăăŚďźăăźă¸ă§ăłp3.7.1ă§\.{ifmbox}ăăŞăăăŁăăĺŽčŁăăăďź
\end{cslist}

\subsection{ăăźăšăŠă¤ăłčŁć­Ł}
\label{sec:baselineshift}
ĺććĺ­ăŽăăźăšăŠă¤ăłă¨ćŹ§ććĺ­ăŽăăźăšăŠă¤ăłăä¸č´ăăçśćă§çľăă¨ďź
čĄăăăăŚčŚăăŚăăžăĺ&nbsp;´ĺăăăďźçšăŤç¸ŚçľăŽçśćłăĺ¸ĺçă§ăă
ďź\autoref{tab-dir}ăŽăçľçäžăĺç§ďźďź

ăăŽçśćłăč§Łćąşăăăăďź\pTeX ă§ăŻćŹ§ććĺ­ăŽăăźăšăŠă¤ăłăčĄéăćšĺăŤç§ťĺăăă
ăă¨ăă§ăăďź

\begin{cslist}
\csitem[\.{tbaselineshift}=&lt;dimen&gt;, \.{ybaselineshift}=&lt;dimen&gt;]
 ćĺŽăăçŽćäťĽéăŽćŹ§ććĺ­ăŽăăźăšăŠă¤ăłăˇăăéăć&nbsp;źç´ăăďźä¸ĄčăŽä˝żăĺăăŻ
 \begin{description}
  \item[\.{tbaselineshift}]
         ç¸Śçľç¨ĺćăăŠăłăăä˝żăăăă¨ăďźă¤ăžăçľćšĺăç¸ŚçľăŽă¨ăďźďź
  \item[\.{ybaselineshift}]
         ć¨Şçľç¨ĺćăăŠăłăăä˝żăăăă¨ăďźć¨ŞçľďźDtoUćšĺďźç¸Ść°ĺźăăŁăŹăŻăˇă§ăłďź
 \end{description}
 ă¨ăŞăŁăŚăăďź
 ăŠăĄăăŽĺ˝äť¤ăŤăăăŚăďź
 ć­ŁăŽĺ¤ăćĺŽăăă¨čĄéăćšĺďźć¨ŞçľăŞăă°ä¸ďźç¸ŚçľăŞăă°ĺˇŚďźăŤăăăăă¨ăŤăŞăďź
\end{cslist}

\begin{dangerous}
 \node{disp_node}%%% [TODO]
\end{dangerous}

ćŹ§ććĺ­ă&nbsp;ăă§ăŞăďźćä¸­ć°ĺź(|$...$|)ăăăźăšăŠă¤ăłčŁć­ŁăŽĺŻžčąĄă§ăăďź
ćä¸­ć°ĺźăŻĺ¨ä˝ăŤ\.{tbaselineshift}ďźăăăăŻ\.{ybaselineshift}ďźă&nbsp;ăăŽ
ăăźăšăŠă¤ăłčŁć­Łăăăăăďźăăă&nbsp;ăă§ăŻ
\begin{quote}
 ć°ĺźä¸­ăŽăăăŻăšăŽćŹ§ćăŻďźćä¸­ć°ĺźĺ¨ä˝ăŤăăăĺăĺăăăŚďź
 äşéăŤăăźăšăŠă¤ăłčŁć­Łăăăă
\end{quote}
ă¨ăăĺéĄăčľˇăăŚăăžăďźăăŽĺéĄăč§ŁćąşăăăăăŽĺ˝äť¤ăäťĽä¸ăŽ3ă¤ăŽĺ˝äť¤ă§ăăďź
\pTeX~3.7\footnote{\TeX~Live 2016ďźĺłĺŻăŤăŻ2016-03-05ăŽăłăăă(r39938)ďź}ă§čż˝ĺ&nbsp;ăăăďź
\begin{cslist}
 \csitem[\.{textbaselineshiftfactor}=&lt;number&gt;,
  \.{scriptbaselineshiftfactor}=&lt;number&gt;]\vspace{-\itemsep}
 \csitem[\.{scriptscriptbaselineshiftfactor}=&lt;number&gt;]
  ćä¸­ć°ĺźĺ¨ä˝ăŤăăăăăźăšăŠă¤ăłčŁć­ŁéăŤĺŻžăďź
  ćä¸­ć°ĺźĺăŽćç¤şçăŞăăăŻăšăéćšĺăŤç§ťĺăăăĺ˛ĺăćĺŽăăďź
  1000ă1ĺďźăăźăšăŠă¤ăłčŁć­ŁăăĄăăăŠćăĄćśăďźăŤç¸ĺ˝ăăďź

  ăăŞăăăŁăă3ă¤ăăăŽăŻďźć°ĺźăŽăšăżă¤ăŤă
  |\textstyle|äťĽä¸ďź|\displaystyle|ĺŤăďźďź|\scriptstyle|,
  |\scriptscriptstyle|ăŽă¨ăăŤăăăă
  éŠç¨ăăăĺ¤ăĺ¤ăăăăăăăŤăăăăă§ăăďź
  ć˘ĺŽĺ¤ăŻăăăă1000ďź1ĺďźďź700ďź0.7ĺďźďź500ďź0.5ĺďźă§ăăďź
\end{cslist}

\TeX~Live 2015äťĽĺăŽĺä˝ăŤćťăăŤăŻďźä¸č¨ăŽ3ăăŞăăăŁăăŤĺ¨ăŚ0ăćĺŽăăă°čŻăďź

\begin{dangerous}
\.{scriptbaselineshiftfactor}ăč¨­ĺŽăăă¨ăăŤăŻďź|\scriptstyle|ä¸ă§čż˝ĺ&nbsp;ăăăăăŻăšĺăŽ
ăăźăšăŠă¤ăłčŁć­ŁéăăŠăăăăăĺ¸¸ăŤć°ăŤăăŞăă¨ăăăŞăďź
äžăă°ćŹĄăŽăłăźăăčăăďź
\begin{verbatim}
 \ybaselineshift=10pt\scriptbaselineshiftfactor=700
 ćź˘ĺ­pqr$a\hbox{xă}^{%
  b\hbox{\scriptsize yă}
   \hbox{\scriptsize\ybaselineshift=7pt ză}
 }$ă%$
\end{verbatim}
çľççľćăŻäťĽä¸ăŽăăăŤăŞăďź
\begin{quote}
 \ybaselineshift=10pt\scriptbaselineshiftfactor=700
 ćź˘ĺ­pqr$a\hbox{xă}^{%
  b\hbox{\scriptsize yă}
   \hbox{\scriptsize\ybaselineshift=7pt ză}
 }$ă%$
\end{quote}

ăăŽäžă§ďźăăăŻăš|\hbox{\scriptsize yă}|ĺă§ăŻăăźăšăŠă¤ăłčŁć­ŁéăŻ10\,ptăŽăžăžă§ăă
\footnote{|\scriptsize|ăŞăŠăŽăăŠăłăăľă¤ăşĺ¤ć´ĺ˝äť¤ă§ăŻďźć¨ćşă§ăŻ|\ybaselineshift|ăŽĺ¤ăŻ
ĺ¤ć´ăăŞăďź|\tbaselineshift|ăŽĺ¤ăŻăăŽé˝ĺşŚĺ¤ć´ăăďźďź}ďź
ăăăćˇťĺ­ĺăŤéç˝Žăăăĺ&nbsp;´ĺďźăăŽăăăŻăšăŻ
\[
 (\text{ćä¸­ć°ĺźĺ¨ä˝ăŽăˇăăé})
 \times\frac{\text{\texttt{\string\scriptbaselineshiftfactor}}}{1000}
 = 7\,\mathrm{pt}
\]
ă&nbsp;ăä¸ăŤç§ťĺăăăŽă§ďźçľćă¨ăăŚăyăăŻćˇťĺ­ĺăŤç´ć¸ăăăă$b$ăă¨ä¸ä¸ä˝ç˝Žă
$10\,\mathrm{pt}-7\,\mathrm{pt}=3\,\mathrm{pt}$ă&nbsp;ăä¸ăŤéç˝ŽăăăŚăăžăŁăŚăăďź

ăŞăďź\.{scriptscriptbaselineshiftfactor}ăŤă¤ăăŚăĺ¨ăĺć§ăŽćł¨ćăĺ˝ăŚăŻăžăďź
\end{dangerous}

\section{ăăŽäťăŽčŁĺŠćŠč˝}

\subsection{ćĺ­ăłăźăĺ¤ćďźćź˘ć°ĺ­}
\label{sec:convert}
ĺčż°ďź\ref{sec:getcode}çŻďźăŽéăďź
ĺććĺ­ăŽćĺ­ăłăźăăć°ĺ¤ă§ćĺŽăăăŤăŻĺé¨ăłăźăă§čĄ¨çžăăĺżčŚăăăăďź
ăăăŻEUC-JP/Shift-JIS/Unicodeă¨ć§ăă§ăăďź
ç°ăŞăă¨ăłăłăźăéă§ăĺăćĺ­ăć°ĺ¤ă§ç´ćĽčĄ¨çžă§ăăăăăŤďź
ćĺ­ăłăźăĺ¤ćăčĄăăăŞăăăŁăăç¨ćăăăŚăăďź
ăžăďźćź˘ć°ĺ­ăĺşĺăăăăŞăăăŁăăç¨ćăăăŚăă\footnote{%
ĺŽăŻ\.{kansuji}, \.{kansujichar}ăăŞăăăŁăăŻp3.1.1ă§ăăŁăăĺé¤ăăďź
p3.1.2ă§ĺžŠć´ťăăă¨ăăçľçˇŻăăăďź}ďź
ăăăăŽăăŞăăăŁăă\code{ptexenc}ăä˝żç¨ăăŚăăăŽă§ďź
Unicodeă¨ăŹăŹăˇăźă¨ăłăłăźăăŽéăŽĺ¤ćă§ăŻčĄ¨\ref{table:jis_uni_var}ăŤĺžăďź

% jtexdoc.tex ăŽăčż˝ĺ&nbsp;ăăăăăŞăăăŁăăăç°ĄçĽĺ
\begin{cslist}
\csitem[\.{kuten} &lt;16-bit number&gt;]
  ĺşçšăłăźăăăĺé¨ăłăźăă¸ăŽĺ¤ćăčĄăďź
  16é˛4ćĄăŽä¸2ćĄăĺşďźä¸2ćĄăçšă§ăăă¨č§Łéăăďź
  ăă¨ăă°ďź|\char\kuten"253C|ăŻďźă\char\kuten"253Căďź37ĺş60çšďźă§ăăďź

\csitem[\.{jis} &lt;16-bit number&gt;, \.{euc} &lt;16-bit number&gt;, \.{sjis} &lt;16-bit number&gt;]
  ăăăăJISăłăźăďźEUCăłăźăďźShift-JISăłăźăăăĺé¨ăłăźăă¸ăŽĺ¤ćăčĄăďź
  ăă¨ăă°ďź|\char\jis"346E|ďź|\char\euc"B0A5|ďź|\char\sjis"8A79|ăŻďź
  ăăăăă\char\jis"346Eăďźă\char\euc"B0A5ăďźă\char\sjis"8A79ăă§ăăďź

\csitem[\.{ucs} &lt;number&gt;]
  Unicodeăăĺé¨ăłăźăă¸ăŽĺ¤ćăčĄăďź
  ăă¨ăă¨\upTeX ă§ĺŽčŁăăăŚăăăďź\pTeX~3.10.0ă§ĺăĺĽăăďź

\csitem[\.{toucs} &lt;number&gt;]
  ĺé¨ăłăźăăăUnicodeă¸ăŽĺ¤ćăčĄăďź\pTeX~3.10.0ă§čż˝ĺ&nbsp;ăăďź

\csitem[\.{tojis} &lt;number&gt;]
  ĺé¨ăłăźăăăJISăłăźăă¸ăŽĺ¤ćăčĄăďź\pTeX~4.1.0ă§čż˝ĺ&nbsp;ăăďź
\end{cslist}

ćĺ­ăłăźăă¨ăăŚä¸ć­ŁăŞĺ¤ăä¸ăăŚă
``\verb|! Bad character code (...).|''ă¨ăŠăźăŻçşçăăŞăďźä¸č¨ĺç§ďźďź
ăŞăďźJISăłăźăďźEUCăłăźăďźShift-JISăłăźăăŤă¤ăăŚćąăăăŽăŻ
JIS~X~0208ăŽçŻĺ˛ăŤéăăăďź\ref{sec:ptexchar}çŻă§ăčż°ăšăéăďź
ăăŞăăĄJIS~X~0213ăŤăŻéĺŻžĺżďźďź

\begin{dangerous}
  \pTeX~3.9.1äťĽĺă§ăŻďźä¸ć­ŁăŞćĺ­ăłăźăăä¸ăăă¨ăăŽćĺă
  ä¸çľąä¸ă§ďźçšăŤäťĽä¸ăŽĺ¤ăčżăăąăźăšăăăŁăďź
  \begin{itemize}
    \item ĺşçšăłăźăčĄ¨ăŽJIS~X~0208ăŤăăăćĺăŽćŞĺŽçžŠä˝ç˝Ž
          (JIS 0x222F, EUC 0xA2AF, SJIS 0x81AD)âŚ
          ĺććĺ­ăłăźăă¨ăăŚćĺšă§ďźJIS~X~0213ă§ăŻĺŽçžŠăăăŚăăďź
          % çşççśćłďźĺžćĽăŽUCS2toJIS(0)
    \item ĺşçšăłăźăčĄ¨ăŽ1ĺş0çš
          (JIS 0x2120, EUC 0xA1A0, SJIS 0x813F)âŚ
          ćĺ­ăłăźăă¨ăăŚçĄĺšďź
          % çşççśćł: JIStoSJIS(ä¸ć­Ł)
    \item $-1$âŚćĺ­ăłăźăă¨ăăŚçĄĺšďź
          % çşççśćłďźKUTENtoJIS(ä¸ć­Ł)âJIStoEUC(-1)
  \end{itemize}
  \pTeX~3.10.0äťĽéă§ăŻďź% \.{ucs}ă¨\.{toucs}ăčż˝ĺ&nbsp;ăăă¨ĺćăŤďź
  ä¸ć­ŁăŞćĺ­ăłăźăăĺŽšćăŤĺ¤ĺĽă§ăăăăăŤäťĽä¸ăŽäťć§ăŤăăďź
  % ăăăŻ\pTeX~4.1.0ă§čż˝ĺ&nbsp;ăă\.{tojis}ăĺć§ă§ăăďź
  \begin{itemize}
    \item ćĺ­ăłăźăĺ¤ćă\emph{ä¸čŚ}ăŞăąăźăš\footnote{ĺé¨eucăŤăăă\.{euc}ďź
        ĺé¨sjisăŤăăă\.{sjis}ďźăăăł\upTeX ă§ĺé¨uptexăŤăăă\.{ucs}ă¨
        \.{toucs}ăăăăŤčŠ˛ĺ˝ăăďź}âŚćç­ĺ¤ćă¨ăŞăďź
        ä¸ć­ŁăŞćĺ­ăłăźăăä¸ăăŚăăăŽăžăžéăďźďźăăăŻĺžćĽăŠăăăŽćĺďź
    \item ćĺ­ăłăźăĺ¤ćă\emph{ĺżčŚ}ăŞăąăźăšâŚ
        ä¸ć­ŁăŞćĺ­ăłăźăăä¸ăăă¨$-1$ăčżăďźďźčżăĺ¤ăçľąä¸ďź
  \end{itemize}
%%%
%
% pTeX-3.10.0 ă§ăŽĺŽčŁăĄă˘ (2021-06-29 @aminophen)
% https://github.com/texjporg/tex-jp-build/pull/121
%
%  * ptexenc (ptexenc.c, kanjicnv.c, unicode.c) ăŽé˘ć°
%    =&gt; ćĺ­ăłăźăĺ¤ćăä¸čŚăŞĺ&nbsp;´ĺăŻćç­ĺ¤ćďź
%                       ĺżčŚăŞĺ&nbsp;´ĺă§ä¸ć­ŁăŞćĺ­ăłăźăăŞă 0 ăčżăďź
%  * ptex-base.ch ăŽĺŽčŁ
%    =&gt; ptexenc ăŤĺžăďźăă&nbsp;ă \jis, \sjis, \euc, \kuten, \ucs, \toucs ăŽ
%       čżăĺ¤ă 0 ăŽĺ&nbsp;´ĺăŻ -1 ăčĄ¨ç¤şďź
%  * uptex-m.ch ăŽĺŽčŁ
%    =&gt; ptexenc ăăăł ptex-base.ch ăŤĺžăďźăă&nbsp;ăďźĺé¨ăłăźă uptex ăŽćăŽ
%       \ucs0 ă¨ \toucs0 ăŻďźptex-base.ch ăçĄćĄäťśăŤ -1 ăčĄ¨ç¤şăăăă¨ăăăďź
%       ăăăŻćç­ĺ¤ćă¨ăăšăăŞăŽă§ďź0 ăčĄ¨ç¤şďź
%
%%%
\end{dangerous}

\begin{cslist}
\csitem[\.{kansuji} &lt;number&gt;, \.{kansujichar} &lt;0--9&gt;=&lt;kanji code&gt;]
  \.{kansuji}ăŻďźçśăć°ĺ¤&lt;number&gt;ăćź˘ć°ĺ­ăŽćĺ­ĺă§ĺşĺăăďź
  ĺşĺăăăćĺ­ăŻ\.{kansujichar}ă§ćĺŽă§ăăďźăăăŠăŤăăŻăăä¸äşä¸ĺäşĺ­ä¸ĺŤäšăďźďź
  ăă¨ăă°
\begin{verbatim}
\kansuji 1978ĺš´
\end{verbatim}
  ăŻă\kansuji 1978ĺš´ăă¨ĺşĺăăďź
\begin{verbatim}
\kansujichar1=`ĺŁą
\kansujichar2=\euc"C6F5\relax
\kansujichar3=\jis"3B32\relax
\kansuji 1234
\end{verbatim}
  ăŻă{\kansujichar1=`ĺŁą \kansujichar2=\euc"C6F5\relax
       \kansujichar3=\jis"3B32\relax \kansuji 1234}ăă¨ĺşĺăăăďź
  ăŞăďź\.{kansuji}ăŤçśăć°ĺ¤&lt;number&gt;ăč˛&nbsp;ăŽĺ&nbsp;´ĺăŻďźçŠşćĺ­ĺăŤăŞă
  ďźăĄăăăŠ\.{romannumeral}ăŤăźă­ăžăăŻč˛&nbsp;ăŽĺ¤ăä¸ăăĺ&nbsp;´ĺă¨ĺć§ďźďź
\end{cslist}

\begin{dangerous}
  \.{kansujichar}ă§ćĺŽă§ăăăŽăŻăĺććĺ­ăŽĺé¨ăłăźăă¨ăăŚćĺšăŞĺ¤ăă§ăăďź
  äžăă°\pTeX ă§|\kansujichar1=`A|ăŽăăăŤçĄĺšăŞĺ¤ďź\pTeX ăŤăăăŚ|`A|ăŻ
  ćŹ§ććĺ­ăłăźăă§ăăďźĺććĺ­ăłăźăă§ăŻăŞăďźăćĺŽăăă¨
\begin{verbatim}
! Invalid KANSUJI char ("41).
\end{verbatim}
  ă¨ăăă¨ăŠăźăçşçăă\footnote{ĺé¨UnicodeăŽ\upTeX ă§ăŻ0--127ăĺŤăďź
  UnicodeăŽćĺ­ăłăźăăăšăŚăĺććĺ­ăłăźăă¨ăăŚćĺšă§ăă
  ďź\.{kchar}ă§äťťćăŽćĺ­ăłăźăăĺććĺ­ăăźăăŤĺ¤ćăăŚĺşĺă§ăăďźďź
  ĺşćŹçăŤăăŽă¨ăŠăźăŻçşçăăŞăďź}ďź
  ăžăďź\.{kansujichar}ăŽĺźć°ăŤč¨ąăăăĺ¤ăŻ0--9ăŤéăăďź
  äžăă°|\kansujichar10=`ćž|ă¨ăăă¨
\begin{verbatim}
! Invalid KANSUJI number (10).
\end{verbatim}
  ă¨ăăă¨ăŠăźăçşçăăďź
  % ă¨ăŠăźăăăŽăŞăŤăăŞă§ďźäťăŽ\TeX82ăăŞăăăŁăă
  %   I changed this one to zero.
  % ă¨ăăăŽăŤĺŻžăďź\kansujichar ă§ăŻ
  %   I'm skipping this control sequences.
  % ă¨ăšă­ăăăăďźĺ¤ăŽäťŁĺĽăŻčĄăăăŞăďź
\end{dangerous}

\begin{dangerous}
  \.{kansujichar}ăŻć´ć°ĺ¤ăăŠăĄăźăżă§ăăăďźp3.8.2ăžă§ăŻ
  ăäťŁĺĽă§ăăăĺĺžăŻă§ăăŞăăă¨ăăćĺă§ăăŁă
  ďźäžăă°|\count255=\kansujichar1|ăŻă¨ăŠăźďźďź
  \pTeX~3.8.3ă§ĺĺžăă§ăăăăăŤäżŽć­Łăăă\cite{tjb93}ăďź
  äťĽĺăŽ\pTeX ăčćŽăăă¨ďźĺ¤ăŽĺĺžăŻäťĽä¸ăŽăăăŤăăăŽăĺŽĺ¨ă§ăăďź
  |\count255=\expandafter`\kansuji1|
  % \count123=\kansujichar45 ăŽăăăŤ \kansujichar ăŽĺźć°ăä¸ć­ŁăŞĺ&nbsp;´ĺăŻďź
  % ! Invalid KANSUJI number (45).
  % ăŽă¨ăŠăźăĺşăďźăŞăŤăăŞăŻ \kansujichar ăçĄčŚăă \count123=45 ă¨ĺçžŠăŤăŞăďź
  % ăăăŻ \kansujichar ăŽäťŁĺĽćăŽćĺăŤĺăăăăăŽă§ăăďź
\end{dangerous}

\begin{dangerous}
  äťĽä¸ăŽăăŞăăăŁăďź\.{kansujichar}ăé¤ăăăšăŚďźăŻ
  ĺąéĺŻč˝(expandable)ă§ăăďź
  ĺé¨ć´ć°ăĺźć°ăŤă¨ăăďźĺŽčĄçľćăŻ\emph{ćĺ­ĺ}ă§ăăăă¨ăŤćł¨ć
  ďź\TeX82ăŽ\.{number}, \.{romannumeral}ă¨ĺć§ďźďź
  äťĽä¸ăŽäžăŻĺé¨ăłăźă
  \ifnum\jis"2121="3000 Unicode\else
  \ifnum\jis"2121="A1A1 EUC-JP\else
  \ifnum\jis"2121="8140 Shift-JIS\else\ptErr{Check here}\fi\fi\fi ăŽĺ&nbsp;´ĺďź

\medskip\noindent
\begin{minipage}{.6\linewidth}
\begin{verbatim}
    \newcount\hoge
    \hoge="2423
    \the\hoge, \kansuji\hoge\\
    \jis\hoge, \char\jis\hoge\\
    \kansuji1701
\end{verbatim}
\end{minipage}
\begin{minipage}{.3\linewidth}
    \newcount\hoge
    \hoge="2423
    \the\hoge, \kansuji\hoge\\
    \jis\hoge, \char\jis\hoge\\
    \kansuji1701
\end{minipage}\medskip

\begin{itemize}
 \item \.{kuten}, \.{jis}, \.{euc}, \.{sjis}, \.{ucs}, \.{toucs}, \.{tojis}
   â ĺ¤ćçľćăăŤăă´ăŞăźăłăźă12ăŽćŹ§ććĺ­ăăźăŻăłĺă§čżăďź
 \item \.{kansuji}
   â ĺ¤ćçľćăĺććĺ­ăăźăŻăłĺă§čżă\footnote{äžĺ¤çăŤďź
   ĺé¨UnicodeăŽ\upTeX ă§0--127ăŽćĺ­ăłăźăă\.{kansujichar}ă§ćĺŽăă
   ĺ&nbsp;´ĺăŽăżďź\.{kansuji}ă§çćăăăăăźăŻăłăŻăŤăă´ăŞăźăłăźă12ăŽ
   ćŹ§ććĺ­ăăźăŻăłăŤăŞă\cite{tjb36}ďź
   % ćĺ­ăłăźăă0--127ăŽĺććĺ­ăăźăŻăłăŻĺ­ĺ¨ăăŞăďźă¨ăăä¸č˛Ťć§ďź
   % \.{kchar}ăĺććĺ­ăăźăŻăłăçľăăŤç´ćĽĺććĺ­ăăźăăŤăŞăăŽă¨ăŻç°ăŞăďź
   ăžăďź\upTeX ă§ăŻçćăăĺććĺ­ăăźăŻăłăŤ
   ăăŽćçšă§ăŽĺćăŤăă´ăŞăźăłăźăăä¸ăăăăăďź
   ăă\.{kcatcode}ă15ăŞăă°18ćąăăŤăŞăďź\.{forcecjktoken}ă¨ĺć§ďźďź}ďź
\end{itemize}

  \medskip
  äťĽä¸ăŽćĺăăďź\.{kansuji}ă
  ăć´ć°ĺ¤ăăăŽçŹŚĺˇĺ¤ăăă¤ĺććĺ­ăăźăŻăłăŤĺ¤ćăăăă¨ăăçŽçăŤ
  ç¨ăăăă¨ăă§ăďź
  ăăăŻćăŤâ\.{kansuji}ăăŞăăŻâă¨ĺźă°ăăďźäžăă°
\begin{verbatim}
  \kansujichar1=\jis"2422 \edef\X{\kansuji1}
\end{verbatim}
  ă¨ăăŚăăă°ďź|\expandafter\meaning\X|ăŻă\texttt{%
  \kansujichar1=\jis"2422 \edef\X{\kansuji1}%
  \expandafter\meaning\X}ăă§ăăăďź
\begin{verbatim}
  \begingroup \kansujichar5=\jis"467C\relax \kansujichar6=\jis"4B5C\relax
  \expandafter\gdef\csname\kansuji56\endcsname{test}
  \endgroup
\end{verbatim}
  ă¨ăăă°ďź|\ćĽćŹ|ă¨ăăĺćăŽĺśĺžĄçś´ăASCIIćĺ­ă&nbsp;ăă§ĺŽçžŠă§ăăďź
\end{dangerous}

\subsection{éˇăĺä˝}
\pTeX ă§ăŻ\TeX82ăŤĺ&nbsp;ăăŚäťĽä¸ăŽĺä˝ăä˝żç¨ĺŻč˝ă§ăăďź
\begin{cslist}
 \csitem[\texttt{zw}\index{zw=\texttt{zw}}]
  çžĺ¨ăŽĺćăăŠăłăďźéĺ¸¸ăŽç¸ŚçľăŽă¨ăăŻç¸Śçľç¨ăăŠăłăďźăăäťĽĺ¤ăŽă¨ăăŻć¨Şçľç¨ăăŠăłăďź
  ăŤăăăăĺ¨č§ĺšăďźäžăă°ăăŽćć¸ăŽćŹćă§ăŻ
  $1\,\mathrm{zw} = \makeatletter\strip@pt\dimexpr 1zw\,\mathrm{pt}$ă§ăăďź

 \csitem[\texttt{zh}\index{zh=\texttt{zh}}]
  çžĺ¨ăŽĺćăăŠăłăďźéĺ¸¸ăŽç¸ŚçľăŽă¨ăăŻç¸Śçľç¨ăăŠăłăďźăăäťĽĺ¤ăŽă¨ăăŻć¨Şçľç¨ăăŠăłăďź
  ăŤăăăăĺ¨č§éŤăăďźäžăă°ăăŽćć¸ăŽćŹćă§ăŻ
  $1\,\mathrm{zh} = \makeatletter\strip@pt\dimexpr 1zh\,\mathrm{pt}$ă§ăăďź
\end{cslist}

\begin{dangerous}
  ăăć­Łç˘şăŤč¨ăă°ďź\texttt{zw}, \texttt{zh}ăŻăăăă
  ć¨ćşăŽćĺ­ăŻăŠăšďźćĺ­ăŻăŠăš0ďźăŤĺąăăĺććĺ­ăŽĺšďźéŤăă¨ćˇąăăŽĺăčĄ¨ăďź

  {\makeatletter\jfont\test=min10\test\xdef\mzw{\strip@pt\dimexpr1zw}\xdef\mzh{\strip@pt\dimexpr1zh}}%
  ăă&nbsp;ďź\pTeX ăŽć¨ćşĺćăăŠăłăăĄăăŞăăŻăŽä¸ă¤ă§ăă\texttt{min10.tfm}ă§ăŻďź
  $1\,\mathrm{zw}=\mzw\,\mathrm{pt}$, $1\,\mathrm{zh}=\mzh\,\mathrm{pt}$ă¨
  ăŞăŁăŚăăďźä¸ĄčăŽĺ¤ăŻä¸č´ăăŚăăŞăďź
  JISăăŠăłăăĄăăŞăăŻă§ăĺć§ăŽĺŻ¸ćłă¨ăŞăŁăŚăăďź
  ä¸ćšďźĺŽéăŽčĄ¨ç¤şăŤä˝żăăăĺćăăŠăłăăŽĺ¤ăăŻďź$1\,\mathrm{zw}=1\,\mathrm{zh}$ďź
  ăăŞăăĄć­Łćšĺ˝˘ăŽăăăŁăŤĺăžăăăăŤăăśă¤ăłăăăŚăăăăďźăăă¨ĺč´ăăŞăďź
  ăăăăŁăŚďźĺä˝\texttt{zh}ăŻăăžăćĺłăŽăăĺ¤ă¨ăŻăăăŞăďź

  ăŞăďź\Pkg{japanese-otf}ďźOTFăăăąăźă¸ďźăç¨ăăŚăăăăŠăłăăĄăăŞăăŻăŻ
  $1\,\mathrm{zw}=1\,\mathrm{zh}$ă§ăăďź
\end{dangerous}

\begin{cslist}
\csitem[\texttt{Q}\index{Q=\texttt{Q}}, \texttt{H}\index{H=\texttt{H}}]
  ä¸Ąčă¨ă$0.25\,\mathrm{mm}$~($7227/10160\,\mathrm{sp}$)ăćĺłăăďź
  ĺć¤ćŠăŤăăăćĺ­ăŽĺ¤§ăăăŽĺä˝ă§ăăQć°ďźç´ć°ďźă¨ďźĺ­éăéăčĄéăéăŽĺä˝ă§ăăć­Żć°ăŤçąćĽăăďź
\end{cslist}

\subsection{ăăźă¸ă§ăłçŞĺˇ}
ăłăăĽăăăŁçăŽ\pTeX çłťĺçŹčŞă§ďź\TeX~Live 2018äťĽéăŤ
ăăźă¸ă§ăłçŞĺˇăčżăćŠč˝ă(\eTeXpre)(u)\pTeX ăŤčż˝ĺ&nbsp;ăăďź
\begin{cslist}
\csitem[\.{ptexversion}, \.{ptexminorversion}, \.{ptexrevision}]
  \pTeX ăŽăăźă¸ă§ăłçŞĺˇăŻp$x{.}y{.}z$ăŽĺ˝˘ĺźă¨ăŞăŁăŚăăďźăăăăĺĺžăăăăăŽĺ˝äť¤ă§ăăďź
  \.{ptexversion}, \.{ptexminorversion}ăŻ
  ăăăă$x$,~$y$ăŽĺ¤ăĺé¨ć´ć°ă§čżăďź\.{ptexrevision}ăŻăăŽĺžăăŽă${.}z$ăăćĺ­ĺă§čżăďź
  ĺžăŁăŚďźĺ¨é¨ĺăăă\pTeX ăŽăăźă¸ă§ăłçŞĺˇăŻ
\begin{verbatim}
\number\ptexversion.\number\ptexminorversion\ptexrevision
\end{verbatim}
  ă§ĺĺžă§ăăďź\pTeX~3.8.0ă§ĺ°ĺĽăăăďź
\end{cslist}
ăăŽčż˝ĺ&nbsp;ă¨ĺćăŤďź(\eTeXpre)\upTeX ă§ăŻäťĽä¸ăčż˝ĺ&nbsp;ăăăŚăăďź
\begin{cslist}
 \csitem[\.{uptexversion}, \.{uptexrevision}ďź\emph{\upTeX ăŽăż}ďź]
  \upTeX ăŽăăźă¸ă§ăłçŞĺˇăŻu$x{.}y$ăŽĺ˝˘ĺźă¨ăŞăŁăŚăăďź
  ăăăăĺĺžăăăăăŽĺ˝äť¤ă§ăăďź
  \.{uptexversion}ăŻ$x$ăŽĺ¤ăĺé¨ć´ć°ă§čżăďź
  \.{uptexrevision}ăŻăăŽĺžăăŽă${.}y$ăăćĺ­ĺă§čżăďź
\end{cslist}
ăăăŤ\eTeXpre(u)\pTeX ăŤăŻ\.{epTeXversion}ăăŞăăăŁăăăă
ďź\texttt{./eptexdoc.pdf}ăĺç§ďźďź

\medskip

ăăŽćć¸ăŻ\eTeXpre\ifx\kchardef\undefined\else u\fi\pTeX ă§ĺŚçăăŚăăăŽă§ďź
ăăźă¸ă§ăłçŞĺˇĺ¨ä˝ăčĄ¨ç¤şăăă¨
\begin{quote}
\texttt{This is
  \ifx\eTeXversion\undefined\else e-\fi
  \ifx\enablecjktoken\undefined\else u\fi
  pTeX p\the\ptexversion.\the\ptexminorversion\ptexrevision
  \ifx\enablecjktoken\undefined\else -u\the\uptexversion\uptexrevision\fi
  \ifx\epTeXversion\undefined\else -\the\epTeXversion
  -\the\eTeXversion\eTeXrevision\fi}
\end{quote}
ă¨ăŞăďźćĺžăŽă-\the\eTeXversion\eTeXrevisionăăŻ\eTeX ăŽăăźă¸ă§ăłçŞĺˇă§ăăďź

\newpage

%%%%%
\part{ăŞăŞă¸ăăŤăŽ\TeX äşćăăŞăăăŁăăŽĺä˝}

ăŞăŞă¸ăăŤăŽ\TeX ăŤĺ­ĺ¨ăăăăŞăăăŁăăŽ2ăă¤ăäťĽä¸ăŽăłăźăă¸ăŽ
ĺŻžĺżçśćłăčŞŹćăăďź
% ćľˇĺ¤ăŽ LaTeX ăăăąăźă¸ä˝čăŤă¨ăŁăŚăŻăăĄăăŽćĺ&nbsp;ąăĺ¤§äşăŞăŻăďź

\section{ĺćăŤćŞĺŻžĺżăŽăăŞăăăŁă}
äťĽä¸ăŽăăŞăăăŁăă§ăŻďźćĺ­ăłăźăăŤćĺŽĺŻč˝ăŞĺ¤ăŻ0--255ăŽçŻĺ˛ăŤéăăăŚăăďź
\begin{quote}
 |\catcode|,
 |\sfcode|,
 |\mathcode|,
 |\delcode|,
 |\lccode|,
 |\uccode|
\end{quote}
éĺăăă¨
\begin{verbatim}
! Bad character code (...).
\end{verbatim}
ă¨ăăă¨ăŠăźăçşçăăďź|...|ăŻăăŽćĺ­ăłăźăďźďź
\begin{dangerous}
äťĽĺăŽ\pTeX ă§ăŻďź
ăăăăŽĺ˝äť¤ăŽćĺ­ăłăźăé¨ĺăŤĺććĺ­ăŽĺé¨ăłăźăăćĺŽăăăă¨ăă§ăďź
ăăŽĺ&nbsp;´ĺăŻăĺźć°ăŽä¸ä˝ăă¤ăăŽĺ¤ăŤĺŻžăăćä˝ăă¨ăăŚćąăăăŚăăďź
\begin{verbatim}
\catcode"E0=1 \message{\the\catcode"E0E1}% ==&gt; 1
\end{verbatim}
ăăăăăŽćĺăŻ2016-09-06ăŽăłăăă(r41998)ăŤăăçŚć­˘ăăďź
\TeX~Live 2017ăŽ\pTeX~(p3.7.1)ă§ĺć&nbsp;ăăăŚăăďź
\end{dangerous}

ăžăďźä¸č¨ăŽăăŞăăăŁăăŻĺç§°ă|\...char|ă§ăăăďźĺ¤ăŻ0--255ăŽçŻĺ˛ăŽăż
ćĺšă§ăăďź256äťĽä¸ăăăăŻč˛&nbsp;ăŽĺ¤ăćĺŽăăă¨çĄĺšă§ăă
ďźăŞăŞă¸ăăŤăŽ\TeX ĺć§ďźă¨ăŠăźăŤăŻăŞăăŞăďźďź
\begin{quote}
 |\endlinechar|,
 |\newlinechar|,
 |\escapechar|,\\
 |\defaulthyphenchar|,
 |\defaultskewchar|
\end{quote}

% äťăŤăăăăďź

\section{ĺćăŤĺŻžĺżăăăăŞăăăŁă}
\begin{cslist}
 \csitem[\.{char} &lt;character code&gt;,
   \.{chardef} &lt;control sequence&gt;=&lt;character code&gt;]
  ĺăŤ\ref{sec:outchar}çŻă§ăčż°ăšăéăďź
  ĺźć°ă¨ăăŚ0--255ăŤĺ&nbsp;ăăŚĺććĺ­ăŽĺé¨ăłăźăăćĺŽă§ăăďź
  ĺććĺ­ăŽĺé¨ăłăźăăćĺŽăăĺ&nbsp;´ĺăŻĺććĺ­ăĺşĺăăďź

 \csitem[\.{font}, \.{fontname}, \.{fontdimen}]
  \.{tfont}ăŤă¤ăăŚăŻ\ref{sec:jfont}çŻăĺç§ďź
  |\fontname|ăŻĺćăăŠăłăăăăăăŠăłăĺăĺĺžă§ăďź
  |\fontdimen|ăŻĺćăăŠăłăăŽăăŠăĄăźăżčĄ¨ďźJFMă§ĺŽçžŠăăă\node{param}ăăźăăŤďźăăă
  ĺ¤ăĺĺžă§ăăďź
  % [TODO] pTeX ăĺé¨ĺŚçă§ param ăăźăăŤăä˝żăăă¨ăŻăăďź
  % ĺ°ăŞăă¨ăďźzw ă¨ zh ăŻä˝żăăăŚăăŞăăă§ăăă­ďź

 \csitem[\.{accent} &lt;character code&gt;=&lt;character&gt;]
  |\accent|ăăŞăăăŁăăŤăăăŚăďźă˘ăŻăťăłăăŽé¨ĺăŤĺććĺ­ăŽĺé¨ăłăźăăćĺŽă§ăăăťăďź
  ă˘ăŻăťăłăăŽă¤ăčŚŞćĺ­ăĺććĺ­ăŤăăăă¨ăă§ăăďź
 \begin{itemize}
  \item ĺććĺ­ăă˘ăŻăťăłăăŤăăĺ&nbsp;´ĺďźăăŽä¸ä¸ä˝ç˝ŽăćĺžăăăŞăçľćăŤăŞă
    ĺŻč˝ć§ăĺ¤§ăăďź
    ăăăŻďźă˘ăŻăťăłăăŽä¸ä¸ä˝ç˝ŽčŁć­Łă§ç¨ăă|\fontdimen5|ăŽĺ¤ăĺćăăŠăłăă§ăŻ
    çšăŤćĺłăćăăŞă\footnote{ćŹ§ćăăŠăłăă§ăŻx-heightă§ăăďź}ăăă§ăăďź
  \item ĺććĺ­ăŤă˘ăŻăťăłăăă¤ăăĺ&nbsp;´ĺďź
    \begin{itemize}
     \item ĺĺ´ăŤăŻJFMă°ăŤăźă\.{kanjiskip}ăŻćżĺĽăăăŞă
           ďźăă&nbsp;ă\.{xkanjiskip}ăŻćżĺĽăăăăďźďź
     \item ĺžĺ´ăŤăŻJFMă°ăŤăźăŻćżĺĽăăăŞă
           ďźăă&nbsp;ă\.{kanjiskip}, \.{xkanjiskip}ăŻćżĺĽăăăăďźďź
    \end{itemize}
 \end{itemize}

 \csitem[\.{if} &lt;token$_1$&gt; &lt;token$_2$&gt;, \.{ifcat} &lt;token$_1$&gt; &lt;token$_2$&gt;]
  ćĺ­ăăźăŻăłăćĺŽăăĺ&nbsp;´ĺďźăăŽćĺ­ăłăźăăŻăŞăŞă¸ăăŤăŽ\TeX ă§ăŻ0--255ăŽăżăč¨ąăăăăďź
  \pTeX ă§ăŻĺććĺ­ăăźăŻăłăćĺŽăăăă¨ăă§ăăďź

  \.{if}ăŤăăĺ¤ĺŽă§ăŻďźćŹ§ććĺ­ăăźăŻăłăťĺććĺ­ăăźăŻăłă¨ăăŤ
  ăăŽćĺ­ăłăźăăćŻčźăăăďź
  \.{ifcat}ăŤăăĺ¤ĺŽă§ăŻďźćŹ§ććĺ­ăăźăŻăłăŤă¤ăăŚăŻ\.{catcode}ďź
  ĺććĺ­ăăźăŻăłăŤă¤ăăŚăŻ\.{kcatcode}ăćŻčźăăăďź
  % [TODO] TeX Live 2018 ăŽ upTeX ă§ăŻďź
  % ^^ab ĺ˝˘ĺźă§ăŽćĺ­ăłăźăćĺŽăŻćŹ§ććąăăăăăŽă§ďź
  % \ifcat ĺ¤ĺŽă§ăŻ \catcode ăčŞ­ăżĺşăăăďź
  % äžăă° \showthe\kcatcode`^^b0 ă§ăŻ 18 ăčżăăďź
  % ĺććąăăŻăăăŞăăă¨ăŤćł¨ćďź
  % https://github.com/texjporg/tex-jp-build/issues/68
\end{cslist}

\begin{dangerous}
\TeX bookăŤăŻďźăŞăŞă¸ăăŤăŽ\TeX ăŤăăă\.{if}ă¨\.{ifcat}ăŽčŞŹćă¨ăăŚ
\begin{quote}
If either token is a control sequence,
\TeX\ considers it to have character code 256 and category code 16,
unless the current equivalent of that control sequence
has been |\let| equal to a non-active character token.
\end{quote}
ă¨ăăďźăăŞăăĄ
\begin{quote}
\.{if}ă\.{ifcat}ăŽĺ¤ĺŽă§ăŻďźĺŽčŁăŽäžżĺŽä¸ďź
ăłăłăă­ăźăŤăˇăźăŻă¨ăłăšăŻćĺ­ăłăźă256ďź
ăŤăă´ăŞăźăłăźă16ăćă¤ă¨ăżăŞăăă
\end{quote}
ă¨ăăăŽă§ăăďźă¨ăăăďźtex.webăŽĺŽčŁăŻăăŽéăă§ăŞăďź
ăłăłăă­ăźăŤăˇăźăŻă¨ăłăšăăŤăă´ăŞăźăłăźă0ă¨ăżăŞăăŚăăďź
ăăŽăăďź\pTeX çłťĺăŤăăăŚĺććĺ­ăăźăŻăłăŽ\.{kcatcode}ăŽĺ¤ă
16ă§ăăĺ&nbsp;´ĺăďź\.{ifcat}ĺ¤ĺŽă§ăłăłăă­ăźăŤăˇăźăŻă¨ăłăšă¨ćˇˇĺăăăăă¨ăŻăŞăďź

ä¸ćšďźćĺ­ăłăźăăŤă¤ăăŚăŻďźç˘şăăŤtex.webăŻ\.{if}ĺ¤ĺŽăŤăăăŚ
ăłăłăă­ăźăŤăˇăźăŻă¨ăłăšă256ă¨ăżăŞăăŚăăďźăăăďź\upTeX ă§ăŻ
ćĺ­ăłăźă256ăŽĺććĺ­ă¨čĄçŞăăăŽă§ďź2019-05-06ăŽăłăăă(r51021)ă§
ăĺççăŤćĺ­ăłăźăăĺăĺžăŞăĺ¤ăăŤĺ¤ć´ăă\cite{tjb68}ďź
\end{dangerous}

\newpage

%%%%%
\part{\pTeX ăŽĺşĺăăDVIăăŠăźăăă}

\pTeX ăĺşĺăăDVIăăĄă¤ăŤăŻďźćŹ§ćăŽć¨ŞçľăŽăżăčĄăŁăŚăăă°
ăŞăŞă¸ăăŤăŽ\TeX ăĺşĺăăDVIăăĄă¤ăŤă¨ĺ¨ăĺć§ăŤč§Łéă§ăăďź
ä¸ćšďź\pTeX ă§ĺććĺ­ăĺşĺăăĺ&nbsp;´ĺďźăăăłçľćšĺĺ¤ć´ăčĄăĺ&nbsp;´ĺăŻ
äťĽä¸ăŽDVIĺ˝äť¤ăä˝żç¨ăăăďź
|set2|ďź|set3|ăŻ\cite{dvistd0}ă§ĺŽçžŠăăăŚăăăďź
ăŞăŞă¸ăăŤăŽ\TeX ă§ăŻä˝żăăăŚăăŞăďź
|dir|ăŻ\cite{dvistd0}ă§ĺŽçžŠăăăŚăăăďź\pTeX ăŽçŹčŞćĄĺźľă§ăăďź
\begin{itemize}
  \item |set2| (129)\quad $\mathit{c}[2]$\\
    ăłăźăçŞĺˇă$c$ ($\mathtt{0x100} \le c &lt; \mathtt{0x10000}$)ăŽ
    ćĺ­ăĺ°ĺ­ăďźĺç§çšăç§ťĺăăďź
    \pTeX ă§ăŻJISăłăźăďź\upTeX ă§ăŻUCS-2ăç¨ăăăăďź
  \item |set3| (130)\quad $\mathit{c}[3]$\\
    ăłăźăçŞĺˇă$c$ ($\mathtt{0x10000} \le c &lt; \mathtt{0x1000000}$)ăŽ
    ćĺ­ăĺ°ĺ­ăďźĺç§çšăç§ťĺăăďź
    \upTeX ă§ăŻUCS-4ăŽä¸ä˝3ăă¤ăăç¨ăăăăďź\pTeX ă§ăŻçžăăŞăďźďź
  \item |dir| (255)\quad $\mathit{d}[1]$\\
    çľćšĺăĺ¤ć´ăăďź$\mathit{d}[1]=0$ăć¨Şçľďź
    $\mathit{d}[1]=1$ăç¸Śçľďź$\mathit{d}[1]=3$ăDtoUçľăç¤şăďź
\end{itemize}

\pTeX ăĺşĺăăDVIăăĄă¤ăŤăŽăăŞă˘ăłăăŤé¨ăŽăăŠăźăăăIDăŻďź
ăŞăŞă¸ăăŤăŽ\TeX ă¨ĺăăĺ¸¸ăŤ2ă§ăăďź
ä¸ćšďźăăšăă˘ăłăăŤé¨ăŽ|post_post|ĺ˝äť¤ăŤçśăăăŠăźăăăIDăŻ
\pTeX ă§ăéĺ¸¸2ă§ăăăďź\pTeX ăŽćĄĺźľDVIĺ˝äť¤ă§ăă|dir|ă
ä˝żç¨ăăăŚăăĺ&nbsp;´ĺăŽăż3ăŤăťăăăăăďź

% [TODO] ć¸ăćšăĺˇĽĺ¤Ťăăăďź
|\special|ĺ˝äť¤ăŽćĺ­ĺăŻĺé¨ăłăźăă§çŹŚĺˇĺăăăăă¤ăĺă¨ăăŚć¸ăĺşăăăďź

\begin{thebibliography}{99}
 \bibitem{topic} Victor Eijkhout, \textit{\TeX\ by Topic, A \TeX nician's Reference},
  Addison-Wesley, 1992.\\
  \url{https://www.eijkhout.net/texbytopic/texbytopic.html}
 \bibitem{jfm} ASCII Corporation \&amp; Japanese \TeX\ Development Community, ăJFMăăĄă¤ăŤăăŠăźăăăăďź
  \texttt{./jfm.pdf}
 \bibitem{tatemath} aminophen, ăç¸Ść°ĺźăăŁăŹăŻăˇă§ăłă¨ăăźăšăŠă¤ăłčŁć­Łăďź
  2016/09/05,\\
  \url{https://github.com/texjporg/platex/issues/22}
 \bibitem{tjb26} h-kitagawa, ăçŚĺăăźăăŤďź\.{inhibitxspcode}ćĺ&nbsp;ąăăźăăŤăăăŽă¨ăłăăŞĺé¤ăďź
  2017/09/10,\\
  \url{https://github.com/texjporg/tex-jp-build/pull/26}
 \bibitem{tjb57} Man-Ting-Fang, \textit{[upTeX] Unexpected behaviour in kinsoku processing},
  2018/04/13,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/57}
 \bibitem{tjb11} aminophen, ăpTeX ăŽĺžçŚĺăăăŤăăŁăďź
  2017/04/05,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/11}
 \bibitem{tjb28} h-kitagawa, ă[ptex] \.{inhibitglue}ăŽĺšĺăďź
  2017/09/20,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/28}
 \bibitem{tjb36} aminophen, ăćŹ§ććĺ­ăŽ\.{kansujichar}ďź\.{inhibitxspcode}ăďź
  2017/11/26,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/36}
 \bibitem{tjb93} aminophen, ă[ptex] reading \.{kansujichar}ăďź
  2019/10/14,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/93}
 \bibitem{tjb37} aminophen, ăĺćăŽăłăłăă­ăźăŤăˇăłăăŤăďź
  2017/11/29,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/37}
 \bibitem{tjb55} aminophen, ă[(u)pTeX] ĺé¨ăłăźăăŽ -kanji-internal ăŞăăˇă§ăłăďź
  2018/04/03,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/55}
 \bibitem{forum_2566} aminophen, ă\TeX~Live 2019 ă§ăŽ \.{inhibitglue} ăŽćĺĺ¤ć´ăäşĺŽăăďź
  2019/02/06,\\
  \url{https://okumuralab.org/tex/mod/forum/discuss.php?d=2566}
 \bibitem{tjb68} aminophen, ăupTeX ăŽ |\if| ă¨ |\ifcat|ăďź
  2019/01/17,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/68}
 \bibitem{man4} aminophen, ăpTeX ăŽĺććĺ­ăăźăŻăłăŽăŤăă´ăŞăźăłăźăăďź
  2019/04/22,\\
  \url{https://github.com/texjporg/ptex-manual/issues/4}
 \bibitem{tjb87} h-kitagawa, ă[ptex] ďźťĺĺ­ďź˝+ďźťăăŹăźăšďź˝ă§çľăăŁăŚăăčĄăŽčĄçŤŻăŽćąăăďź
  2019/08/05,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/87}
 \bibitem{tjb81} h-kitagawa, ăăă¤ăĺă¨ĺććĺ­ăăźăŻăłăŽĺşĺĽăďź
  2019/06/08,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/81}
 \bibitem{tjb142} t-tk, ă[ptexenc] ĺĽĺăăĄă¤ăŤăŽćĺ­ăłăźăăŽčŞĺĺ¤ĺŽăďź
  2022/06/05,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/142}
 \bibitem{tjb149} aminophen, ă[upTeX] JIS-encoded TFMăďź
  2022/10/15,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/149}
 \bibitem{dvistd0} TUG DVI Standards Working Group,
  \textit{The DVI Driver Standard, Level 0}.\\
  \url{https://ctan.org/pkg/dvistd}
\end{thebibliography}

\newpage
\printindex


\end{document}
</pre></body></html>