<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})ã®åˆå­—å‡¦ç†
  \footnote{ãŸã&nbsp;ã—ï¼ŒUnicodeã§å˜ä¸€ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã§è¡¨ã›ã‚‹å&nbsp;´åˆã«é™ã‚‹ï¼Ž}
 \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ä»¥ä¸‹ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã¯ã‚ã‚Šãˆãªã„ãŒï¼Œ
  0x110000ä»¥ä¸Š0x21FFFFä»¥ä¸‹ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã‚’æ•°å€¤ã§æŒ‡å®šã™ã‚‹å&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ä»¥ä¸‹ï¼‰ã®
  ã‚«ãƒ†ã‚´ãƒªãƒ¼ã‚³ãƒ¼ãƒ‰ã‚„ç¦å‰‡ãƒšãƒŠãƒ«ãƒ†ã‚£ã®ã—ãŒã‚‰ã¿ã®å½±éŸ¿ã‚’å—ã‘ãªã„ç›®çš„ã§ã‚ã‚‹ï¼Ž
  0x220000ä»¥ä¸Šã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã¯ä¸Šè¨˜ã®æ•°å€¤å¤‰æ›ã‚’è¡Œã‚ãªã„ï¼ˆ\ref{sec:uptex_ivs}ç¯€ã‚’å‚ç…§ï¼‰ï¼Ž
  % 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{æ–‡å­—ã‚³ãƒ¼ãƒ‰ã®ç¯„å›²ã®æ‹¡å¼µã€\upTeX~u1.35, u2.00ã€‘}\label{sec:uptex_extension}
\upTeX ã§ã¯å¾“æ¥ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã®ç¯„å›²ã‹ã‚‰ã®æ‹¡å¼µã‚’
u1.35ãŠã‚ˆã³u2.00 (\TeX~Live 2025)ã«ã¦è¡Œã£ãŸï¼Ž
å¾“æ¥ã¯å’Œæ–‡æ–‡å­—ã‚’Unicode 1æ–‡å­—ã®ã‚³ãƒ¼ãƒ‰ãƒã‚¤ãƒ³ãƒˆã§ã€Œ1æ–‡å­—1ãƒˆãƒ¼ã‚¯ãƒ³ã€ã¨ã—ã¦å–ã‚Šæ‰±ã†ã®ã«å¯¾ã—ï¼Œ
æ¬§æ–‡æ–‡å­—ã¯8bitã®ç¯„å›²å†…ã«ã¨ã©ã¾ã‚Šã€Œ1ãƒã‚¤ãƒˆ1ãƒˆãƒ¼ã‚¯ãƒ³ã€ã§æ‰±ã£ã¦ã„ãŸãŒï¼Œ
ãã‚Œã‚’è¶…ãˆã¦æ‰±ãˆã‚‹ã‚ˆã†ã«ã™ã‚‹ã‚‚ã®ã§ã‚ã‚‹ï¼Ž
ã‚„ã‚„ç‰¹æ®Šãªæ‰±ã„ã‚’è¦ã™ã‚‹ä¸Šï¼Œæ–°è¦ã®è¦ç´&nbsp;ã‚‚å¤šã„ãŸã‚ã“ã“ã«ç¯€ã‚’ç«‹ã¦ã¦èª¬æ˜Žã™ã‚‹ï¼Ž

\subsubsection{Unicodeåˆæˆæ–‡å­—ã¨ç•°ä½“å­—ã‚»ãƒ¬ã‚¯ã‚¿(IVS) (\upTeX~u1.35)}\label{sec:uptex_ivs}
Unicodeã§ã¯ï¼Œä¸€ã¤ã®æ–‡å­—ã‚’è¡¨ã™ãŸã‚ã«è¤‡æ•°ã®ã‚³ãƒ¼ãƒ‰ãƒã‚¤ãƒ³ãƒˆã®
é€£ãªã‚Šï¼ˆã‚·ãƒ¼ã‚±ãƒ³ã‚¹ï¼‰ã§ç¤ºã™ã“ã¨ãŒè¦å®šã•ã‚Œã¦ã„ã‚‹æ–‡å­—ãŒã‚ã‚‹ï¼Ž
ãã®ä¾‹ãŒç•°ä½“å­—ã‚»ãƒ¬ã‚¯ã‚¿(IVS, Ideographic Variation Sequence/Selector)\cite{ivd220913}ã‚„
çµµæ–‡å­—ã‚·ãƒ¼ã‚±ãƒ³ã‚¹\cite{emseq160}ãªã©ã§ã‚ã‚‹ï¼Ž
\upTeX ã§ã¯ãã‚Œã‚‰åˆæˆæ–‡å­—ã‚’å¾“æ¥æ‰±ã†ã“ã¨ãŒã§ããªã‹ã£ãŸãŒï¼Œ\upTeX~u1.35ã§å¯¾å¿œã‚’é€²ã‚ãŸ\cite{tjb46}ï¼Ž
ä»•æ§˜ã¯ä»¥ä¸‹ã®é€šã‚Šã§ã‚ã‚‹ï¼Ž

\begin{itemize}
 \item æƒ³å®šã—ãŸç¯„å›²ã®ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã®é›†åˆ%
   \footnote{è¨€ã„æ›ãˆã‚Œã°ç¶²ç¾…çš„ã§ã¯ãªãæƒ³å®šå¤–ã®ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã«ã¯å¯¾å¿œã—ã¦ã„ãªã„ï¼Ž}%
   ã‚’å®šã‚ï¼Œ\upTeX ç‹¬è‡ªã®å†…éƒ¨ç”¨ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ï¼ˆåˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ï¼‰ã‚’å®šç¾©ã™ã‚‹ï¼ˆå¾Œè¿°ï¼‰ï¼Ž
   åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ã«ã¯ã‚³ãƒ¼ãƒ‰å€¤0x220000ä»¥é™ã‚’ç”¨ã„ï¼Œå’Œæ–‡æ–‡å­—ã¨ã—ã¦æ‰±ã†ï¼Ž
 \item \code{ptexenc}ï¼Œ\upTeX ã‚¨ãƒ³ã‚¸ãƒ³ã‚’æ‹¡å¼µã™ã‚‹ï¼Ž
   \code{ptexenc}ãƒ©ã‚¤ãƒ–ãƒ©ãƒªã§æ–‡å­—ã‚³ãƒ¼ãƒ‰ã®åˆæˆãƒ»åˆ†è§£ã®APIã‚’ç”¨æ„ã™ã‚‹ï¼Ž
   \upTeX ã¨dviwareã®é–“ã®æ–‡å­—ãƒ‡ãƒ¼ã‚¿æ¸¡ã—ã«ã¯åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ã‚’ç”¨ã„ã‚‹ï¼Ž
 \item \upTeX ã«\.{kcatcode} 20 ($\mathit{modifier}$)ã‚’æ–°è¨­ã™ã‚‹ï¼Ž
   ã“ã‚Œã¯UTF-8ã®å…¥åŠ›ãƒãƒƒãƒ•ã‚¡ã®æ–‡å­—åˆ—ã§ç¾ã‚Œã‚‹ç•°ä½“å­—ã‚»ãƒ¬ã‚¯ã‚¿ã‚„åˆæˆç”¨æ¿ç‚¹ã‚’æƒ³å®šã—ã¦ã„ã‚‹ãŒï¼Œ
   \emph{åŸºåº•æ–‡å­—ã¨ã¯ç‹¬ç«‹ã—ãŸ1ã¤ã®å’Œæ–‡æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³}ã¨ã—ã¦æ‰±ã‚ã‚Œã‚‹ï¼Ž
   ãƒˆãƒ¼ã‚¯ãƒ³ã¨ã—ã¦ã®æ‰±ã„ã¯\.{kcatcode} 16,~17ã¨åŒæ§˜ã§ã‚ã‚‹
   ï¼ˆç›´å¾Œã®æ”¹è¡Œã¯ç©ºç™½ã¨ã¿ãªã•ãªã„ï¼Œã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ãƒ¯ãƒ¼ãƒ‰ã«ä½¿ç”¨å¯èƒ½ï¼‰ï¼Ž
 \item \upTeX ãŒãƒˆãƒ¼ã‚¯ãƒ³åˆ—ã‹ã‚‰æ–‡å­—ãƒŽãƒ¼ãƒ‰ã‚’ç”Ÿæˆã™ã‚‹æ®µéšŽã§ï¼Œ
   åŸºåº•æ–‡å­—ã¨$\mathit{modifier}$ãŒé€£ç¶šã—ã¦ãƒŽãƒ¼ãƒ‰åŒ–ã•ã‚Œã‚ˆã†ã¨ã™ã‚‹å&nbsp;´åˆ
   \footnote{ãƒ•ã‚¡ã‚¤ãƒ«ä¸­ã«ç›´æŽ¥æ–‡å­—ã‚’å…¥åŠ›ã—ãŸå&nbsp;´åˆã«é™ã‚‰ãšï¼Œ
     åŸºåº•æ–‡å­—ã®ç›´æŽ¥å…¥åŠ›ï¼‹\.{char}ãªã©ã«ã‚ˆã‚‹modifierã®æ–‡å­—ã‚³ãƒ¼ãƒ‰æŒ‡å®šå…¥åŠ›ï¼Œ
     ã¾ãŸã¯ãã®é€†ã§ã‚‚è‰¯ã„ï¼Ž}ã«ã¯ï¼Œ
   ç‹¬ç«‹ã—ãŸ2ã¤ã®ãƒŽãƒ¼ãƒ‰ã‚’ç”Ÿæˆã™ã‚‹ä»£ã‚ã‚Šã«ï¼Œ
   åŸºåº•æ–‡å­—ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã‚’åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ã«ç½®ãæ›ãˆãŸ
   \emph{å˜ä¸€ã®åˆæˆæ–‡å­—ãƒŽãƒ¼ãƒ‰}ã‚’ç”Ÿæˆã™ã‚‹
   \footnote{æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³ã®æ®µéšŽã§2æ–‡å­—ã&nbsp;ã£ãŸã‚‚ã®ãŒ1ã¤ã®æ–‡å­—ãƒŽãƒ¼ãƒ‰ã«å¤‰æ›ã•ã‚Œã‚‹
     ã¨ã„ã†ç‚¹ã§ã¯æ¬§æ–‡ã®åˆå­—å‡¦ç†ï¼ˆãƒªã‚¬ãƒãƒ£ï¼‰ã«ä¼¼ã¦ã„ã‚‹ãŒï¼Œ
     åŸºåº•æ–‡å­—ã¨$\mathit{modifier}$ã®åˆæˆã¯å±•é–‹ä¸èƒ½ãƒˆãƒ¼ã‚¯ãƒ³ãŒæ¥ã¦ã‚‚ä¸­æ–­ã•ã‚Œãªã„ï¼Ž}ï¼Ž
     % æ¬§æ–‡ãƒªã‚¬ãƒãƒ£ãƒ»ã‚«ãƒ¼ãƒ³ã¯ TFM ã®å‡¦ç†ï¼ŽJFM ã‚°ãƒ«ãƒ¼ãƒ»ã‚«ãƒ¼ãƒ³æŒ¿å…¥ã‚‚åŒæ§˜ï¼Ž
     % ã“ã‚Œã«å¯¾ã— modifier ã®åˆæˆã¯ ptexenc ã®å‡¦ç†ãªã®ã§ï¼Ž
   åˆæˆã«å¤±æ•—ã—ãŸ$\mathit{modifier}$ã¯æ™®é€šã®æ–‡å­—ï¼ˆCJKè¨˜å·ï¼‰ã¨ã—ã¦ãµã‚‹ã¾ã„ï¼Œ
   \.{kcatcode} 18 ($\mathit{other\_kchar}$)ã®æ–‡å­—ãƒŽãƒ¼ãƒ‰ã‚’ç”Ÿæˆã™ã‚‹ï¼Ž
 \item \upTeX ã‚¨ãƒ³ã‚¸ãƒ³å†…éƒ¨ã§ã¯åˆæˆæ–‡å­—ãƒŽãƒ¼ãƒ‰ã‚’å˜ä¸€ã®ãƒŽãƒ¼ãƒ‰ã¨ã—ã¦æ‰±ã†ãŒï¼Œ
   å‡¦ç†ä¸­ã«åˆæˆæ–‡å­—ã®ãƒ‡ãƒ¼ã‚¿ã‚’æ–‡å­—ãƒãƒƒãƒ•ã‚¡ã«æ›¸ãæˆ»ã™éš›ã«ã¯ï¼Œ
   å¸¸ã«UTF-8ã®è¤‡æ•°ã‚³ãƒ¼ãƒ‰ãƒã‚¤ãƒ³ãƒˆã®ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã«æˆ»ã™
   \footnote{æ–‡å­—ãƒŽãƒ¼ãƒ‰ã®ãƒ‡ãƒ¼ã‚¿ã‚’\.{showlists}ã§è¡¨ç¤ºã™ã‚‹éš›ãªã©ãŒè©²å½“ï¼Ž
     æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³ã¯å…ƒã€…åˆæˆã•ã‚Œã¦ã„ãªã„ï¼Ž}ï¼Ž
   ãã‚Œã‚†ãˆï¼Œãƒ†ã‚­ã‚¹ãƒˆå½¢å¼ã®å…¥å‡ºåŠ›ã§ã¯ç‰¹æ®Šãªå†…éƒ¨ã‚³ãƒ¼ãƒ‰ãŒç¾ã‚Œã‚‹ã“ã¨ã¯ãªãå¿…ãšæ­£è¦ã®Unicodeã«ãªã‚‹ï¼Ž
 \item \upTeX ã®åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰å€¤ã‚’
   \.{char}, \.{chardef}ãªã©ã®æ–‡å­—ãƒŽãƒ¼ãƒ‰ç”Ÿæˆãƒ—ãƒªãƒŸãƒ†ã‚£ãƒ–ã«ç›´æŽ¥ä¸Žãˆã‚‹ã“ã¨ã‚‚ã§ãã‚‹ï¼Ž
   ã¾ãŸï¼Œåˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰å€¤ã‚’
   \.{kansujichar}ã‚„ï¼ˆ\eupTeX ã®ï¼‰\.{Uchar}ãªã©ã®æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³ç”Ÿæˆãƒ—ãƒªãƒŸãƒ†ã‚£ãƒ–ã«
   ä¸Žãˆã‚‹ã¨ï¼Œå±•é–‹çµæžœã¯åŸºåº•æ–‡å­—ï¼‹modifierã®2ãƒˆãƒ¼ã‚¯ãƒ³ã¨ãªã‚‹ï¼Ž
 \item \upTeX ãŒåˆæˆæ–‡å­—ãƒŽãƒ¼ãƒ‰ã‚’DVIã«æ›¸ãå‡ºã™éš›ã«ã¯ï¼Œ
   ãã®åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰å€¤ã§DVIå‘½ä»¤|set3|ã§æ›¸ãè¾¼ã‚€ï¼Ž
 \item \code{dvips}, \code{dvipdfmx}ãªã©Adobe-Japan1 (AJ1)ã®CIDãŒæ‰±ãˆã‚‹dviwareã§ã¯ï¼Œ
   AJ1ã®æ–‡å­—ã«å¯¾ã—ã¦DVIå‘½ä»¤|set3|ã‹ã‚‰AJ1ã®CIDã‚³ãƒ¼ãƒ‰ã¸å¤‰æ›ã™ã‚‹virtual fontã‚’çµŒç”±ã—ã¦
   å‡ºåŠ›ã™ã‚‹ã“ã¨ãŒå¯èƒ½ã§ã‚ã‚‹ï¼Ž
 \item dviwareå´ã®å®Ÿè£…ã¨ã—ã¦ï¼Œåˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ã‚’ç›´æŽ¥æ‰±ã„
   DVIå‘½ä»¤|set3|ã«å¯¾ã—é©åˆ‡ãªã‚°ãƒªãƒ•ã‚’é¸æŠžã™ã‚‹ã‚ˆã†ã«ã—ã¦ã‚‚ã‚ˆã„ï¼Ž
\end{itemize}

\upTeX~u1.35ã§å¯¾å¿œã—ãŸåˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ã®æ¦‚ç•¥ã‚’è¡¨\ref{table:compound_charcode}ã«ã¾ã¨ã‚ãŸï¼Ž
å„æ–‡å­—ã‚³ãƒ¼ãƒ‰ã®å…·ä½“çš„ãªå¤‰æ›å¼ã¯
\href{https://github.com/texjporg/uptex-base}{\file{uptex-base}}ã§é…å¸ƒã—ã¦ã„ã‚‹
\file{01uptex_doc_utf8.txt}ã‚’å‚ç…§ã•ã‚ŒãŸã„ï¼Ž
ç•°ä½“å­—ã‚»ãƒ¬ã‚¯ã‚¿(VS, Variation Selector)ã¯å‰è¿°ã®IVSã®ä»–ï¼Œ
SVS (Standardized Variation Sequence)ã«ã‚‚å¯¾å¿œã—ã¦ã„ã‚‹ï¼Ž
IVSã®æœ€å¤§VS256ã¾ã§æ‹¡å¼µå¯èƒ½ã«ãªã‚‹ã‚ˆã†åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ã§ã¯è€ƒæ…®ã—ã¦ã‚ã‚‹ãŒï¼Œ
ãŠãŠã‚‚ã¨ã®Unicode Ideographic Variation Database\cite{ivd220913}ã§ã¯
ä»Šã®ã¨ã“ã‚VS49ã€œVS256ãŒæœªå®šç¾©ã§ã‚ã‚‹ï¼Ž
ä»®åã®æ¿ç‚¹ãƒ»åŠæ¿ç‚¹ã¯åŸºåº•æ–‡å­—ãŒå¹³ä»®åã‚„ç‰‡ä»®åã®å&nbsp;´åˆã«åŠ&nbsp;ãˆå¤‰ä½“ä»®åã«ã‚‚å¯¾å¿œã—ã¦ã„ã‚‹ï¼Ž
çµµæ–‡å­—ã¯ã‹ã¤ã¦ã®æ—¥æœ¬ã®æºå¸¯é›»è©±ç”±æ¥ã®çµµæ–‡å­—ã®å¤§éƒ¨åˆ†ã«å¯¾å¿œã—ã¦ã„ã‚‹ãŒï¼Œ
æœ€è¿‘ã‚ˆãè¿½åŠ&nbsp;ã§è¦å®šã•ã‚Œã‚‹é•·ãã¦è¤‡é›‘ãªã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã«ã¯å¯¾å¿œã—ã¦ã„ãªã„ï¼Ž
çµµæ–‡å­—ã®å›½æ——(RGI Emoji Flag Sequence)ã¯ï¼Œ
$\mathit{modifier}$ã¨$\mathit{modifier}$ã®é€£ç¶šãŒè¦å®šé€šã‚Šã«çµ„ã¿åˆã‚ã•ã‚‹ã¨åˆæˆæ–‡å­—ã®æ‰±ã„ã«ãªã‚‹ï¼Ž
å›½æ——ãŠã‚ˆã³è‚Œè‰²(Emoji Modifier Fitzpatrick Type-1..6)ãªã©çµµæ–‡å­—å…¨èˆ¬ã«ã¤ã„ã¦ï¼Œ
DVIã«æ›¸ã‹ã‚ŒãŸãƒ‡ãƒ¼ã‚¿ã‚’ã©ã†å‡ºåŠ›ã™ã‚‹ã‹ã¯dviwareã«ãŠä»»ã›ã™ã‚‹ï¼Ž
ä»Šå¾Œï¼Œã•ã‚‰ã«åˆæˆæ–‡å­—ã‚’è¿½åŠ&nbsp;å¯¾å¿œã™ã‚‹ã‹ã©ã†ã‹ã¯æœªæ¤œè¨Žã§ã‚ã‚Šè¨ˆç”»ã‚‚ãªã„ï¼Ž

\begin{table}[bp]
\caption{åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ï¼Ž\upTeX~u1.35ã§ã®å¯¾å¿œçŠ¶æ³ï¼Ž}
\label{table:compound_charcode}
\centering\small
\begin{tabular}{ccccc}
\toprule
ç¨®é¡ž &amp; åŸºåº•æ–‡å­— &amp; modifier
  &amp; åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ &amp; ãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿ \\
\midrule
ä»®å+æ¿ç‚¹  &amp; ä»®å    &amp; \code{U+3099}
  &amp; 0x22,0000ã€œ0x23,FFFF &amp;  \\
ä»®å+åŠæ¿ç‚¹ &amp; ä»®å   &amp; \code{U+309A}
  &amp; 0x24,0000ã€œ0x25,E6E5 &amp;  \\
çµµæ–‡å­—(å›½æ——) &amp; \code{U+1F1E6..1F1FF} &amp; \code{U+1F1E6..1F1FF}
  &amp; 0x25,E6E6ã€œ0x25,FFFF &amp; $26ç¨®\times 26ç¨®$ \\
çµµæ–‡å­—(è‚Œè‰²) &amp; çµµæ–‡å­— &amp; \code{U+1F3FB..1F3FF}
  &amp; 0x26,0000ã€œ0x2F,FFFF &amp; Type-1-2ã€œ6 \\
SVS &amp; æ¼¢å­—,è¨˜å·ãªã©  &amp; \code{U+FE00..FE0F}
  &amp; 0x40,0000ã€œ0x7F,FFFF &amp; VS1ã€œVS16 \\
IVS &amp; æ¼¢å­—          &amp; \code{U+E0100..E011F}
  &amp; 0x80,0080ã€œ0xFF,FFFF &amp; VS17ã€œVS48 \\
\bottomrule
\end{tabular}
\end{table}

è¡¨ä¸­ã§modifierã«ç›¸å½“ã™ã‚‹æ–‡å­—ã‚³ãƒ¼ãƒ‰ã¯
\upTeX~u1.35ã§ã¯æ—¢å®šã§\.{kcatcode}=20 ($\mathit{modifier}$)ã«è¨­å®šã—ã¦ã‚ã‚‹ï¼Ž
åˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ã®ãƒ¡ãƒˆãƒªãƒƒã‚¯ã¨ã—ã¦ã¯é€šå¸¸JFMã®æ—¢å®šå€¤ã®å…¨è§’å¹…ã‚’æƒ³å®šã—ã¦ã„ã‚‹ãŒï¼Œ
æ–‡å­—ã‚³ãƒ¼ãƒ‰0xFFFFFFä»¥å†…ãªã®ã§å€‹åˆ¥ã«è¨­å®šã™ã‚‹ã“ã¨ã‚‚ã§ãã‚‹ï¼Ž

virtual fontã®ä»•æ§˜ã¨ã—ã¦ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã®é¢ã§ã¯ä»Šå›žæ–°è¦ãªéƒ¨åˆ†ã¯ãªã„ã‚‚ã®ã®ï¼Œ
æœ€å¤§ã§æ–‡å­—ã‚³ãƒ¼ãƒ‰0xFFFFFFã¨ãªã‚‹ç‚¹ã¯å¾“æ¥ã®\TeX ãƒ•ã‚¡ãƒŸãƒªãƒ¼ã§ä¾‹ãŒãªã„ï¼Ž
ã“ã®ãŸã‚å‘¨è¾ºã‚½ãƒ•ãƒˆã‚¦ã‚§ã‚¢ã§ã¯ã“ã‚Œã«æº–æ‹&nbsp;ã—ãŸæ‹¡å¼µãŒå¿…è¦ã«ãªã‚‹å&nbsp;´åˆãŒå¤šã„ï¼Ž
\code{omfonts} (\code{ovp2ovf}, \code{ovf2ovp}), \code{dvips}, \code{dvipdfmx}ã¯å¯¾å¿œã‚’æ¸ˆã¾ã›ã¦ã‚ã‚Š
\TeX~Live 2025ã§ã¯åˆ©ç”¨å¯èƒ½ã§ã‚ã‚‹ï¼Ž

\begin{dangerous}
  ç´›ã‚‰ã‚ã—ã„ãŒï¼Œ\ref{sec:uptex_code}ç¯€ã§è¿°ã¹ãŸã‚ˆã†ã«ï¼Œ
  çµåˆæ¿ç‚¹ãƒ»åŠæ¿ç‚¹ã®åˆå­—å‡¦ç†ã®ã†ã¡ï¼Œ
  \begin{itemize}
   \item å…¥åŠ›ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ä¸€è¡Œèª­ã¿è¾¼ã‚“ã§ãƒãƒƒãƒ•ã‚¡ã«æ&nbsp;¼ç´ã™ã‚‹æ®µéšŽã§ï¼Œ
   \item ã‹ã¤Unicodeã§å˜ä¸€ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã§è¡¨ã›ã‚‹ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ãŒã‚ã£ãŸå&nbsp;´åˆ
  \end{itemize}
  ã«ã¯ï¼Œå¾“æ¥ã‹ã‚‰\code{ptexenc}ãƒ©ã‚¤ãƒ–ãƒ©ãƒªã«ã‚ˆã‚‹å‰å‡¦ç†ã«ã‚ˆã‚Š
  \emph{ãƒˆãƒ¼ã‚¯ãƒ³åŒ–ä»¥å‰}ã®æ®µéšŽã§åˆå­—å‡¦ç†ãŒè¡Œã‚ã‚Œã¦ã„ã‚‹
  ï¼ˆä¾‹ãˆã°ï¼Œ|ãƒ”|(U+30D2 U+309A)ã¯|ãƒ”|(U+30D4)ã¨åŒä¸€ã®æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³ã¨ã¿ãªã•ã‚Œã‚‹ï¼‰ï¼Ž

  ä¸€æ–¹ï¼Œ
  \begin{itemize}
   \item Unicodeã§ã¯æ–‡å­—åˆæˆã§ãªã„ã¨è¡¨ã›ãªã„ä»®åã®æ¿ç‚¹ãƒ»åŠæ¿ç‚¹
     \footnote{æƒ³å®šã¯ï¼Œ
      JIS~X~0213ã«å«ã¾ã‚Œã‚‹ã€Œã‚«ã€ãªã©ã®åŠæ¿ç‚¹ã‚„ï¼Œ%ã€Œã‹ã‚šãã‚šãã‚šã‘ã‚šã“ã‚šã‚«ã‚šã‚­ã‚šã‚¯ã‚šã‚±ã‚šã‚³ã‚šã‚»ã‚šãƒ„ã‚šãƒˆã‚šã‡·ã‚šã€
      å¤‰ä½“ä»®åã®æ¿ç‚¹ãƒ»åŠæ¿ç‚¹ã§ã‚ã‚‹ï¼Ž}
   \item ãƒˆãƒ¼ã‚¯ãƒ³ã‚’å‡¦ç†ã—ãŸçµæžœã¨ã—ã¦é€£ç¶šã—ãŸã‚·ãƒ¼ã‚±ãƒ³ã‚¹ãŒç¾ã‚Œã¦ãƒŽãƒ¼ãƒ‰åŒ–ã•ã‚Œã‚‹å&nbsp;´åˆ
     \footnote{\.{kansuji}, \.{Uchar}ç­‰ã«ã‚ˆã‚‹æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³ç”Ÿæˆã‚„ï¼Œ
      åŸºåº•æ–‡å­—ã¨çµåˆæ¿ç‚¹ãƒ»åŠæ¿ç‚¹ã‚’é€£ç¶šã—ã¦\.{char}ã§æ–‡å­—ãƒŽãƒ¼ãƒ‰ç”Ÿæˆã™ã‚‹å&nbsp;´åˆãªã©ï¼Ž}
  \end{itemize}
  ã«ã¤ã„ã¦ã¯ï¼Œ\upTeX~u1.35ã§å°Žå…¥ã—ãŸ\emph{ãƒŽãƒ¼ãƒ‰åŒ–æ™‚ã®åˆæˆ}ã§å¯¾å¿œã™ã‚‹ï¼Ž
\end{dangerous}


\subsubsection{æ¬§æ–‡8bitè¶… (\upTeX~u2.00, å®Ÿé¨“çš„)}\label{sec:uptex_ofm}
\upTeX ã§ã¯å¾“æ¥ï¼Œæ¬§æ–‡æ–‡å­—ã¨ã—ã¦æ‰±ãˆã‚‹æ–‡å­—ã‚³ãƒ¼ãƒ‰ã®ç¯„å›²ã¯8bitï¼ˆ\TeX90äº’æ›ã®0--255ï¼‰ã§ã‚ã£ãŸãŒï¼Œ
\upTeX~u2.00ã§ã¯0x2E7Fä»¥ä¸‹ã¾ã§æ‹¡å¼µã—ãŸ\cite{tjb170}ï¼Ž
å‹•ä½œå®Ÿç¸¾ãŒã¾ã&nbsp;å°‘ãªãé–¢é€£ãƒ•ã‚©ãƒ³ãƒˆã®æ•´å‚™ç­‰ã«ã‚‚æ™‚é–“ã‚’è¦ã™ã‚‹ãŸã‚ï¼Œä»Šã®ã¨ã“ã‚å®Ÿé¨“çš„æ©Ÿèƒ½ã¨ä½ç½®ã¥ã‘ã¦ã„ã‚‹ï¼Ž
ä»•æ§˜ã¯ä»¥ä¸‹ã®é€šã‚Šã§ã‚ã‚‹ï¼Ž
\begin{itemize}
 \item \upTeX ã‚¨ãƒ³ã‚¸ãƒ³ãŒæ‰±ãˆã‚‹æ¬§æ–‡æ–‡å­—ã®ç¯„å›²ã¯0ï½ž0x2E7Fã§ã‚ã‚‹ï¼Ž
   æ–‡å­—ã‚³ãƒ¼ãƒ‰256ä»¥ä¸Šã‚’å«ã‚€æ–‡å­—ãƒ•ã‚©ãƒ³ãƒˆã¯Unicode U+0000..2E7Fã§ã‚ã‚‹ã“ã¨ã‚’æƒ³å®šã™ã‚‹ï¼Ž
 \item \.{kcatcode} 14 ($\mathit{latin\_ucs}$)ã‚’æ–°è¨­ã™ã‚‹ï¼Ž
   UTF-8ã®å…¥åŠ›ãƒãƒƒãƒ•ã‚¡ã§8bitæ–‡å­—ã‚³ãƒ¼ãƒ‰åˆ—ãŒæ­£è¦ã®UTF-8ã¨ã—ã¦U+2E7Fä»¥ä¸‹ã¨èª­ã¿å–ã‚Œã¦ï¼Œ
   ã‹ã¤ãã®ã‚³ãƒ¼ãƒ‰å€¤ã‚’å«ã‚€ãƒ–ãƒ­ãƒƒã‚¯ã®\.{kcatcode}ãŒ14ã¨ãªã£ã¦ã„ã‚‹ã¨ãï¼Œ
   Unicodeã®æ¬§æ–‡ã§ã‚ã‚‹ã¨è§£é‡ˆã—ã¦ç¬¦å·ä½ç½®0ï½ž0x2E7Fã®æ¬§æ–‡æ–‡å­—ãƒŽãƒ¼ãƒ‰ã‚’ç”Ÿæˆã™ã‚‹ï¼Ž
   åŒæ™‚ã«ãã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã«ç›¸å½“ã™ã‚‹æ¬§æ–‡æ–‡å­—ã®\.{catcode}ãŒä»˜ä¸Žã•ã‚Œã‚‹ï¼Ž
   ã“ã®ã¨ãã€Œæ¬§æ–‡Unicode 1æ–‡å­—ã«å¯¾ã—1ãƒˆãƒ¼ã‚¯ãƒ³ã€ã¨ãªã‚‹ï¼Ž
 \item æ¬§æ–‡ç”¨8bit TFMã«åŠ&nbsp;ãˆã¦æ¬§æ–‡ç”¨16bit OFM Level-0ãŒèª­ã¿è¾¼ã‚ã‚‹ï¼Ž
   ç¬¦å·ä½ç½®0ï½ž0x2E7Fã®æ¬§æ–‡æ–‡å­—ãƒŽãƒ¼ãƒ‰ã¯ã“ã‚Œã§æ‰±ã†ï¼Ž
   å’Œæ–‡æ–‡å­—ã¯å¾“æ¥åŒæ§˜JFMã§æ‰±ã†ï¼Ž
 \item 256ï½ž0x2E7Fã®æ¬§æ–‡æ–‡å­—ã‚³ãƒ¼ãƒ‰ã¯ï¼Œ
   DVIãƒ•ã‚¡ã‚¤ãƒ«ã«ã¯ãã®ã¾ã¾ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ï¼ˆUCS-2ç›¸å½“ï¼‰ã§DVIå‘½ä»¤|set2|ã§æ›¸ãè¾¼ã‚€ï¼Ž
 \item U+2E80ä»¥ä¸Šã®Unicodeæ–‡å­—ã¯\upTeX ã§ã¯æ¬§æ–‡æ–‡å­—ã¨ã—ã¦æ‰±ã‚ãªã„ï¼Ž
   å¿…è¦ãªå&nbsp;´åˆã¯virtual fontã¨dviwareã§å‡¦ç½®%
   \footnote{é&nbsp;»å‡ºã™ã‚‹ä¾‹ã«U+FB00..FB06ã®ãƒªã‚¬ãƒãƒ£ï¼ˆff, fi, flç­‰ï¼‰ãŒæŒ™ã’ã‚‰ã‚Œã‚‹ï¼Ž
   \TeX90ã§ã¯ãã‚Œã‚‰ã‚’8bit (0--255)ã®å†…éƒ¨ã‚³ãƒ¼ãƒ‰ã«å‰²ã‚Šå½“ã¦ã¦ä½¿ç”¨ã—ã¦ã„ã‚‹ãŒï¼Œ
   ãã‚Œã¨åŒæ§˜ã®å–ã‚Šæ‰±ã„ã‚’ç¶­æŒã™ã‚‹å¿…è¦ãŒã‚ã‚‹ï¼Ž}%
   ã‚’ã™ã‚‹ï¼Ž
 \item \.{catcode}, \.{lccode}, \.{uccode}, \.{sfcode}ã®æ‰±ã†æ¬§æ–‡æ–‡å­—ã‚³ãƒ¼ãƒ‰ã®
   æœ€å¤§å€¤ã¯0x2E7Fã¨ã™ã‚‹ï¼ˆ\.{kcatcode}=14,15ä¸¡æ–¹ï¼‰ï¼Ž
 \item \.{kcatcode}=14ã®ã¨ãï¼Œ
   \.{char}, \.{chardef}ã¯0ï½ž0x2E7Fã®æ¬§æ–‡æ–‡å­—ãŒæ‰±ãˆã‚‹ï¼Ž
 \item \eupTeX ã§ã¯\.{kcatcode}=14ã®ã¨ãï¼Œ
   \.{Uchar}, \.{Ucharcat}, \.{iffontchar}ã¯0ï½ž0x2E7Fã®æ¬§æ–‡æ–‡å­—ãŒæ‰±ãˆã‚‹ï¼Ž
 \item |^^^^abcd|ã®æ›¸å¼ã¯ï¼Œãã®16bitã‚³ãƒ¼ãƒ‰(0xABCD)ã®æ¬§æ–‡æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³ã‚’ç”Ÿæˆã™ã‚‹
   ï¼ˆ\.{kcatcode}ã®è¨­å®šã«ä¾ã‚‰ãšå¸¸ã«æ¬§æ–‡æ‰±ã„ï¼Ž|^^ab|æ›¸å¼ã¨åŒæ§˜ï¼‰ï¼Ž
\end{itemize}

é–¢é€£ã‚½ãƒ•ãƒˆã‚¦ã‚§ã‚¢ã§ã¯ï¼Œ\code{updvitype}ã‚‚æ¬§æ–‡ç”¨16bit OFM Level-0ã¸ã®å¯¾å¿œã‚’æ¸ˆã¾ã›ãŸï¼Ž
\pTeX ç³»åˆ—ã«å¯¾å¿œã—ãŸdviwareã§ã¯ã™ã§ã«OFMã¸ã®å¯¾å¿œãŒæ–½ã•ã‚Œã¦ã„ã‚‹ã“ã¨ãŒå¤šãï¼Œ
\code{dvipdfmx}, \code{dvips}ã®ã‚ˆã†ãªä¸»è¦ãªdviwareã§ã‚‚
\upTeX ã®æ¬§æ–‡æ–‡å­—ã‚³ãƒ¼ãƒ‰ã®ç¯„å›²æ‹¡å¼µã¯ã™ã§ã«ã‚«ãƒãƒ¼ã•ã‚Œã¦ã„ã‚‹ï¼Ž
ç¾æ™‚ç‚¹ã§\upTeX ã¯æ¬§æ–‡ç”¨OFM Level-1ã«ã¯æœªå¯¾å¿œã§ã‚ã‚‹ï¼Ž


\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|ã€ã¯åŒã˜æ„å‘³ã§ã‚ã‚‹ï¼‰ï¼Ž
  å¾“æ¥\pTeX ç³»åˆ—ã§ã¯åŒã˜ã“ã¨ã‚’å’Œæ–‡æ–‡å­—ã«å¯¾ã—ã¦ã€Œ|`\ã‚|ã€ãªã©ã¨è¡Œã†ã“ã¨ã¯ã§ããªã‹ã£ãŸãŒï¼Œ
  \TeX~Live 2025 \pTeX~4.1.2ä»¥é™å¯èƒ½ã«ãªã£ãŸ\cite{tjb167}ï¼Ž
 \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ã§è¡¨ã™ï¼Ž
  \item \.{kcatcode}ã«14 ($\mathit{latin\_ucs}$)ã¨20 ($\mathit{modifier}$)ãŒ\TeX~Live 2025ã§æ–°è¨­ã•ã‚ŒãŸï¼Ž
    å†…å®¹ã¯\ref{sec:uptex_extension}ç¯€ã§è©³èª¬ã—ãŸï¼Ž
\end{itemize}

\begin{cslist}
  \csitem[\.{kcatcode} &lt;character code&gt;=&lt;14--20&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--20ã‹ï¼Œ14--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}ã¯åŸºæœ¬çš„ã«é–¢ä¿‚ãªã„ï¼Ž
   ãŸã&nbsp;ã—\upTeX~u2.00ä»¥é™ã§ã¯ï¼Œæ–‡å­—ã‚³ãƒ¼ãƒ‰256--0x2E7Fã«ã¤ã„ã¦ã‚‚ï¼Œ
   \.{kcatcode}=14ã«è¨­å®šã•ã‚Œã¦ã„ã‚‹å&nbsp;´åˆã«é™ã£ã¦\emph{æ¬§æ–‡æ–‡å­—ãƒŽãƒ¼ãƒ‰}ã‚’ç”Ÿæˆã™ã‚‹ï¼Ž
   \ref{sec:uptex_extension}ç¯€ã‚’å‚ç…§ã®ã“ã¨}ï¼Ž
\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ã¨åŒã˜æŒ™å‹•ï¼‰ï¼Ž
  \upTeX~u2.00ã§ã¯ï¼Œ
  æ¬§æ–‡æ–‡å­—ã‚’Unicode 1æ–‡å­—ã«å¯¾ã—1ãƒˆãƒ¼ã‚¯ãƒ³ã¨ã—ã¦æ‰±ã†æ©Ÿèƒ½ãŒè¿½åŠ&nbsp;ã•ã‚ŒãŸï¼ˆ\ref{sec:uptex_ofm}ç¯€ï¼‰ãŒï¼Œ
  ãã‚Œã«ä¼´ã„&lt;in spec&gt;ã®æ›¸å¼ã‚‚æ‹¡å¼µã•ã‚ŒãŸï¼Ž
  æŒ‡å®šå¯èƒ½ãª&lt;encoding&gt;ã¯|t1|, |ts1|, |ly1|, |t5|, |l7x|, |t2a|, |t2b|, |t2c|, |lgr|ã§ã‚ã‚‹ï¼Ž
  ãƒ¬ã‚¬ã‚·ãƒ¼ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã®æ¬§æ–‡TFMã«å¯¾ã—ã¦ã“ã®æŒ‡å®šã‚’ã™ã‚‹ã¨ï¼Œ
  å†…éƒ¨ã‚³ãƒ¼ãƒ‰ãŒUnicodeã§ã‚ã‚‹æ¬§æ–‡æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³ã¨ãƒ¬ã‚¬ã‚·ãƒ¼ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã®TFMã®æƒ…å&nbsp;±ã¨ã®ç›¸äº’å¤‰æ›ãŒæ©Ÿèƒ½ã™ã‚‹ï¼Ž
\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 2025 (r73803)ä»¥é™ï¼Ž
ãªãŠï¼Œ\TeX~Live 2022ã¾ã§ã¯256æ–‡å­—ã¾ã§ã®é&nbsp;˜åŸŸã—ã‹ãªãï¼Œ
\TeX~Live 2023 (r65246--65248)ã§1,024æ–‡å­—ã«æ‹¡å¼µã—ã‚ˆã†ã¨ã—ãŸãŒ
ä¸å®Œå…¨ã§å‹•ä½œã—ã¦ã„ãªã‹ã£ãŸã®ã§ï¼Œ\TeX~Live 2025 (r73803)ã§å†ä¿®æ­£ã—ãŸï¼Ž}ï¼Ž

ç¦å‰‡ãƒ†ãƒ¼ãƒ–ãƒ«ã‹ã‚‰ã®ç™»éŒ²ã®å‰Šé™¤ã¯ä»¥ä¸‹ã®æ™‚ã«è¡Œã‚ã‚Œã‚‹\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 ãƒ¡ãƒˆãƒªãƒƒã‚¯ç”±æ¥ç©ºç™½ã®æŒ¿å…¥å‡¦ç†ã¯å±•é–‹ä¸èƒ½ãƒˆãƒ¼ã‚¯ãƒ³ãŒæ¥ãŸã‚‰ä¸­æ–­
  ï¼ˆæ¬§æ–‡TFMã®ã‚«ãƒ¼ãƒ‹ãƒ³ã‚°ã‚„åˆå­—å‡¦ç†ã¨åŒæ§˜ï¼‰
 \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 2025 (r73803)ä»¥é™ï¼Ž
  ãªãŠï¼Œ\TeX~Live 2022ã¾ã§ã¯256æ–‡å­—åˆ†ã®ãƒ†ãƒ¼ãƒ–ãƒ«ã—ã‹ãªãï¼Œ
  \TeX~Live 2023 (r65246--65248)ã§1,024æ–‡å­—ã«æ‹¡å¼µã—ã‚ˆã†ã¨ã—ãŸãŒ
  ä¸å®Œå…¨ã§å‹•ä½œã—ã¦ã„ãªã‹ã£ãŸã®ã§ï¼Œ\TeX~Live 2025 (r73803)ã§å†ä¿®æ­£ã—ãŸï¼Ž}ï¼Ž
  æœªç™»éŒ²æ™‚ã¯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 ã§ã¯ç¾ã‚Œãªã„ï¼‰ï¼Ž
    \upTeX~u1.35ä»¥é™ã§ã¯ï¼Œåˆæˆæ–‡å­—ç”¨æ‹¡å¼µæ–‡å­—ã‚³ãƒ¼ãƒ‰ã‚‚ç”¨ã„ã‚‰ã‚Œã‚‹ï¼ˆ\ref{sec:uptex_ivs}ç¯€ï¼‰ï¼Ž
  \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{tjb46} t-tk, ã€Œ[upTeX+dvipdfmx] ç•°ä½“å­—ã‚»ãƒ¬ã‚¯ã‚¿ã€Unicodeåˆæˆæ–‡å­—ã€ï¼Œ
  2018/01/28,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/46}
 \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}
 \bibitem{tjb167} h-kitagawa, ã€Œ[XeTeX] BMPè¶…ã®ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ã‚·ãƒ³ãƒœãƒ«ã€ï¼Œ
  2024/02/25,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/167}
 \bibitem{tjb170} t-tk, ã€Œ[upTeX] ofmèª­ã¿è¾¼ã¿ã¨ç¬¦å·ä½ç½® 256 ä»¥ä¸Šã®æ¬§æ–‡æ–‡å­—ãƒˆãƒ¼ã‚¯ãƒ³ãƒ»ãƒŽãƒ¼ãƒ‰ã€ï¼Œ
  2024/08/18,\\
  \url{https://github.com/texjporg/tex-jp-build/issues/170}
 \bibitem{ivd220913} Ideographic Variation Database,
  2022/09/13,\\
  \url{https://www.unicode.org/ivd/data/2022-09-13/}
 \bibitem{emseq160} Emoji Sequence Data,
  2024/05/01,\\
  \url{https://www.unicode.org/Public/emoji/16.0/emoji-sequences.txt}
\end{thebibliography}

\newpage
\printindex


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