X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=doc%2Fluatexja.dtx;h=54ad48eba30370687189b5a6aad67a6935738e8a;hb=cf51a2259a27eeed9a3d5d0c40c767a5e6bc403e;hp=72e8fc459147c93e9414c4fcd76d0a5a850c7552;hpb=3f4a3d59d71f46aa007ba8525c0531c5db1c423f;p=luatex-ja%2Fluatexja.git
diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx
index 72e8fc4..54ad48e 100644
--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -1,44 +1,112 @@
-%#! lualatex -shell-escape manual.ins
+%<*!showexpl>
+%#! lualatex -shell-escape
-%<*en>
-\documentclass[a4paper,titlepage]{article}
-\usepackage[margin=25mm,footskip=5mm]{geometry}
+% To typeset this manual, you need following two fonts:
+% - KozMinPr6N-Regular.otf
+% - KozGoPr6N-Medium.otf
+
+
+%\documentclass[a4paper,titlepage]{article}
+%\documentclass[a4paper,titlepage]{ltjsarticle}
+
+%%%%%%%%
+\makeatletter
+%%%%%%%%
+
+%%%%%%%% record loaded packages
+\let\ltjpkglist\empty
+\newif\if@real@append@list
+\def\@append@newentry#1#2{{%
+ \@real@append@listtrue \def\@tempa{#2}%
+ \let\@pkglist\@append@newentry@pkglist#1%
+ \if@real@append@list
+ \let\@pkglist=\relax\xdef#1{#1\@pkglist{#2}}%
+ \fi}}
+\def\@append@newentry@pkglist#1{%
+ \def\@tempb{#1}%
+ \ifx\@tempa\@tempb\@real@append@listfalse\fi}
+\def\@addtofilelist#1{\@append@newentry\ltjpkglist{#1}}
+\let\@listfiles\empty
+
+%<*en>
+\usepackage[margin=25mm,footskip=6mm]{geometry}
+\usepackage{luatexja-adjust}\ltjdisableadjust
+\parskip=\smallskipamount
%
%<*ja>
-\documentclass[a4paper,titlepage]{ltjsarticle}
-\usepackage[margin=25mm, footskip=5mm]{geometry}
+\usepackage[textwidth=45\zw, lines=45, footskip=6mm]{geometry}
+\usepackage{luatexja-adjust}%\ltjdisableadjust
\advance\leftmargini-1\zw\advance\leftmarginii-1\zw
%
-\usepackage{amsmath,amssymb,xcolor,pict2e,multienum,amsthm,float,makecell}
-\usepackage{mathptmx}
-\usepackage{booktabs,listings,showexpl,multicol}
+\usepackage{amsmath,tikz,pict2e,multienum,float}
+\usepackage{booktabs,multicol}
+
+%%%%%%%% listings
+\usepackage{listings,showexpl}
+\lstset{
+ basicstyle=\ttfamily\small, pos=r, breaklines=true,
+ numbers=none, rframe={}, basewidth=0.5em, numberstyle=\tiny, numbersep=0.5em,
+ explpreset={numberstyle=\tiny, numbers=left, numbersep=1em}
+}
+% Suppress output from showexpl to stdout.
+\let\SX@Info\relax
+
+%%%%%%%% hyperref
+\usepackage{hyperref}
+%<*en>
+\title{The \LuaTeX-ja package}
+\author{The \LuaTeX-ja project team}
+%
+%<*ja>
+\title{\LuaTeX-jaããã±ã¼ã¸}
+\author{\LuaTeX-jaããã¸ã§ã¯ããã¼ã }
+%
+\hypersetup{%
+ unicode,
+ colorlinks,
+ allbordercolors=1 1 1,
+ allcolors=blue,
+%<*en>
+ pdfauthor={The LuaTeX-ja project team},
+ pdftitle={The LuaTeX-ja package}
+%
+%<*ja>
+ pdfauthor={LuaTeX-jaããã¸ã§ã¯ããã¼ã },
+ pdftitle={LuaTeX-jaããã±ã¼ã¸}
+%
+}
+
+%%%%%%%% definition env.
+\usepackage{amsthm}
+\theoremstyle{definition}
+%\newtheorem{defn}{Definition}
+%\newtheorem{defn}{å®ç¾©}
+
+%%%%%%%% fonts
\usepackage{luatexja-otf}
-\usepackage{luatexja-fontspec}
-\usepackage[unicode=true]{hyperref}
-\usepackage[all]{xy}
-% \SelectTips{cm}{}
+\usepackage[kozuka-pr6n,jis2004]{luatexja-preset}
+%\usepackage{amssymb}
%<*en>
-\usepackage{mathptmx}
+\usepackage{unicode-math}
\setmainfont[Ligatures=TeX]{TeX Gyre Termes}
-\setsansfont[Ligatures=TeX]{TeX Gyre Heros}
+\setsansfont[Scale=0.95,Ligatures=TeX]{TeX Gyre Heros}
+\setmathfont{xits-math.otf}
\frenchspacing
%
-\def\labelenumii{(\arabic{enumii})}
+%%%%%%%% logo
+\usepackage{metalogo}
\DeclareRobustCommand\eTeX{\ensuremath{\varepsilon}-\kern-.125em\TeX}
\DeclareRobustCommand\LuaTeX{Lua\TeX}
\DeclareRobustCommand\pdfTeX{pdf\TeX}
-\DeclareRobustCommand\pTeX{p\kern-.05em\TeX}
-\DeclareRobustCommand\upTeX{up\kern-.05em\TeX}
+\DeclareRobustCommand\pTeX{p\kern-.15em\TeX}
+\DeclareRobustCommand\upTeX{up\kern-.15em\TeX}
\DeclareRobustCommand\pLaTeX{p\kern-.05em\LaTeX}
\DeclareRobustCommand\pLaTeXe{p\kern-.05em\LaTeXe}
\DeclareRobustCommand\epTeX{\ensuremath{\varepsilon}-\kern-.125em\pTeX}
-\theoremstyle{definition}
-%\newtheorem{defn}{Definition}
-%\newtheorem{defn}{å®ç¾©}
-
+%%%%%%%% other macros
\newenvironment{cslist}{%
\leftskip2em\parindent=0pt\def\makelabel##1{{\tt\char92##1}}
\def\{{\char`\{}\def\}{\char`\}}
@@ -46,7 +114,7 @@
\def\item[##1]{\par\smallskip\par\hskip-\leftskip\makelabel{##1}\par}
}{}
-\makeatletter
+\def\labelenumii{(\arabic{enumii})}
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{{\small #1. #2}}%
@@ -57,31 +125,18 @@
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
-% Suppress output from showexpl to stdout.
-\let\SX@Info\relax
+
+%%%%%%%%
\makeatother
+%%%%%%%%
\def\Node#1#2{\,\vcenter{\hbox{\fboxsep=1pt\fbox{\vbox{\small\halign{\hfil##\hfil\cr
#1\mathstrut\cr\noalign{\hrule height.4pt}\strut#2\cr}}}}\,}}
-%<*en>
-\title{The \LuaTeX-ja package}
-\author{The \LuaTeX-ja project team}
-%
-%<*ja>
-\title{\LuaTeX-jaããã±ã¼ã¸}
-\author{\LuaTeX-jaããã¸ã§ã¯ããã¼ã }
-%
-
-\lstset{
- basicstyle=\ttfamily\small, pos=o, breaklines=true,
- numbers=none, rframe={}, basewidth=0.5em
-}
-
-\parskip=\smallskipamount
\protected\def\Param#1{\textsf{#1}} % parameter name
\protected\def\Pkg#1{\underline{\smash{\texttt{#1}}}} % packages/classes
+
\begin{document}
\catcode`\<=13
\def<#1>{{\normalfont\rm\itshape$\langle$#1$\rangle$}}
@@ -93,7 +148,7 @@
%<*en>
\textbf{This documentation is far from complete. It may have many
grammatical (and contextual) errors.} Also, several parts
-(especially, Section~\ref{sec-jfmglue}) are written in Japanese only.
+are written in Japanese only.
%
%<*ja>
\textbf{\large æ¬ããã¥ã¡ã³ãã¯ã¾ã ã¾ã æªå®æã§ãï¼}
@@ -106,6 +161,7 @@ grammatical (and contextual) errors.} Also, several parts
%\section{Introduction}
%\section{ã¯ããã«}
+
%<*en>
The \LuaTeX-ja package is a macro package for typesetting high-quality
Japanese documents when using \LuaTeX.
@@ -114,7 +170,6 @@ Japanese documents when using \LuaTeX.
\LuaTeX-jaããã±ã¼ã¸ã¯ï¼æ¬¡ä¸ä»£æ¨æº\TeX ã§ãã\LuaTeX ã®ä¸ã§ï¼\pTeX ã¨åç
ï¼ãã以ä¸ã®å質ã®æ¥æ¬èªçµçãå®ç¾ããããã¨ãããã¯ãããã±ã¼ã¸ã§ããï¼
%
-
%\subsection{Backgrounds}
%\subsection{èæ¯}
@@ -133,7 +188,7 @@ ASCII \pTeX ãããã®æ¡å¼µç©ãç¨ãããããã¨ãä¸è¬çã§ãã£
ã®ã¨ã³ã¸ã³æ¡å¼µã§ããï¼ï¼å°ã
ä»æ§ä¸ä¸ä¾¿ãªç¹ã¯ãããã®ã®ï¼åæ¥å°å·ã®åéã«
ãç¨ããããã»ã©ã®é«å質ãªæ¥æ¬èªçµçãå¯è½ã¨ãã¦ããï¼ã ãï¼ããã¯å¼±ç¹ã«
ããªã£ã¦ãã¾ã£ãï¼\pTeX ã¨ããï¼çµççã«ï¼æºè¶³ãªãã®ããã£ãããï¼æµ·å¤ã§
-è¡ããã¦ããæ°ã
ã®\TeX ã®æ¡å¼µââä¾ãã°\eTeX ã\pdfTeX ââãï¼TrueType,
+è¡ããã¦ããæ°ã
ã®\TeX ã®æ¡å¼µââä¾ãã°\eTeX ã\pdfTeX ââãï¼TrueType,
OpenType, Unicodeã¨ãã£ãè¨ç®æ©ã§æ¥æ¬èªãæ±ãéã®ç¶æ³ã®å¤åã«è¿½å¾ãããã¨
ãæ ã£ã¦ãã¾ã£ãã®ã ï¼
%
@@ -149,7 +204,7 @@ extent, but gaps still exist.
å¤é¨UTF-8å
¥åãå©ç¨å¯è½ã¨ãªãï¼ããã«Unicodeåãæ¨é²ãï¼\pTeX ã®å
é¨å¦ç
ã¾ã§Unicodeåãã\upTeX ãéçºããã¦ããï¼ã¾ãï¼\pTeX ã«\eTeX æ¡å¼µããã¼
ã¸ãã\epTeX ãç»å ´ãï¼\TeX\ Live\ 2011ã§ã¯\pLaTeX ã\epTeX ã®ä¸ã§åä½ã
-ãããã«ãªã£ãï¼ã ãï¼\pdfTeX æ¡å¼µï¼PDF ç´æ¥åºåãmicro-typesettingï¼ã
+ãããã«ãªã£ãï¼ã ãï¼\pdfTeX æ¡å¼µï¼PDFç´æ¥åºåãmicro-typesettingï¼ã
\pTeX ã«å¯¾å¿ããããã¨ããåãã¯ãªãï¼æµ·å¤ã¨ã®gapã¯æªã ã«ããã®ãç¾ç¶ã§ã
ãï¼
%
@@ -173,6 +228,7 @@ scripts for appropriate callbacks.
%\subsection{Major Changes from \pTeX}
%\subsection{\pTeX ããã®ä¸»ãªå¤æ´ç¹}
+\label{ssec:chgptex}
%<*en>
The \LuaTeX-ja package is under much influence of \pTeX\ engine. The initial
@@ -184,7 +240,7 @@ specifications/behaviors of \pTeX\ were not adopted}.
\LuaTeX-jaã¯ï¼\pTeX ã«å¤å¤§ãªå½±é¿ãåãã¦ããï¼åæã®éçºç®æ¨ã¯ï¼\pTeX ã®æ©
è½ãLuaã³ã¼ãã«ããå®è£
ãããã¨ã§ãã£ãï¼ãããï¼éçºãé²ãã«ã¤ãï¼\pTeX
ã®å®å
¨ãªç§»æ¤ã¯ä¸å¯è½ã§ããï¼ã¾ã\pTeX ã«ãããå®è£
ãããããä¸å¯è§£ã«ãªã£
-ã¦ãããããªç¶æ³ãçºè¦ãããï¼ãã®ããï¼\textbf{\LuaTeX-ja ã¯ï¼ãã¯ã
+ã¦ãããããªç¶æ³ãçºè¦ãããï¼ãã®ããï¼\textbf{\LuaTeX-jaã¯ï¼ãã¯ã
\pTeX ã®å®å
¨ãªç§»æ¤ã¯ç®æ¨ã¨ã¯ããªãï¼\pTeX ã«ãããä¸èªç¶ãªä»æ§ã»æåãã
ãã°ï¼ããã¯ç©æ¥µçã«æ¹ããï¼}
%
@@ -199,12 +255,13 @@ The followings are major changes from \pTeX:
\begin{itemize}
%<*en>
\item A Japanese font is a tuple of a `real' font, a Japanese font
- metric (\textbf{JFM}, for short), and an optional string called
- `variation'.
+ metric (\textbf{JFM}, for short).
%
%<*ja>
-\item åæãã©ã³ãã¯ï¼å°å¡ææï¼IPAææãªã©ã®ï¼å®éã®ãã©ã³ãï¼åæãã©ã³ãã¡ããªãã¯ï¼JFM ã¨å¼ã¶ï¼ï¼ã
- ã㦠`variation' ã¨å¼ã°ããæååã®çµã§ããï¼
+\item åæãã©ã³ãã¯ï¼å°å¡ææï¼IPAææãªã©ã®ï¼å®éã®ãã©ã³ãï¼åæãã©ã³
+ ãã¡ããªãã¯ï¼JFMã¨å¼ã¶\footnote{æ··ä¹±ãé²ãããï¼p\TeX ã®æå³ã§ã®
+ JFM (\texttt{min10.tfm}) ãªã©ã¯æ¬ããã¥ã¡ã³ãã§ã¯\textbf{åæç¨
+ TFM}ã¨ãã¶ãã¨ã«ããï¼}ï¼ã®çµã§ããï¼
%
%<*en>
@@ -223,12 +280,12 @@ The followings are major changes from \pTeX:
%<*en>
\item The insertion process of glues/kerns between two Japanese
characters and between a Japanese character and other characters
- (we refer these glues/kerns as \textbf{JAglue}) is rewritten from
+ (we refer glues/kerns of both kinds as \textbf{JAglue}) is rewritten from
scratch.
%
%<*ja>
-\item 2ã¤ã®åææåã®éï¼åææåã¨æ¬§ææåã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³
- ï¼\textbf{JAglue} ã¨å¼ã¶ï¼ã®æ¿å
¥å¦çã0ããæ¸ãç´ããã¦ããï¼
+\item 2ã¤ã®åææåã®éãï¼åææåã¨æ¬§ææåã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³
+ ï¼ä¸¡è
ããããã¦\textbf{JAglue}ã¨å¼ã¶ï¼ã®æ¿å
¥å¦çã0ããæ¸ãç´ããã¦ããï¼
%
\begin{itemize}
@@ -239,7 +296,7 @@ The followings are major changes from \pTeX:
%
%<*ja>
\item \LuaTeX ã®å
é¨ã§ã®æåã®æ±ããããã¼ããã¼ã¹ãã«ãªã£ã¦ããããã«ï¼ä¾ãã°ï¼
- \verb+of{}fice+ ã§ååã¯æå¶ãããªãï¼ï¼\textbf{JAglue} ã®æ¿å
¥å¦çã
+ \verb+of{}fice+ ã§ååã¯æå¶ãããªãï¼ï¼\textbf{JAglue}ã®æ¿å
¥å¦çã
ããã¼ããã¼ã¹ãã§ããï¼
%
@@ -259,11 +316,11 @@ The followings are major changes from \pTeX:
effective anymore.} In concrete terms, the following two methods are not effective anymore:
%
%<*ja>
-\item \textbf{注æï¼ä¸ã®2ã¤ã®å¤æ´ã«ããï¼å¾æ¥ \textbf{JAglue} ã®æ¿å
¥å¦çãåæããã®ã«
+\item \textbf{注æï¼ä¸ã®2ã¤ã®å¤æ´ã«ããï¼å¾æ¥\textbf{JAglue}ã®æ¿å
¥å¦çãåæããã®ã«
使ããã¦ããããã¤ãã®æ¹æ³ã¯ç¨ãããã¨ãã§ããªãï¼å
·ä½çã«ã¯ï¼æ¬¡ã®æ¹æ³ã¯ãã¯ãç¡å¹ã§ããï¼}
%
\begin{verbatim}
-ããã¡ã{}ã£ã¨ããã¡ã\/ã£ã¨
+\hskip2\zw ã¡ã{}ã£ã¨\hskip2\zw ã¡ã\/ã£ã¨
\end{verbatim}
%<*en>
If you want to do so, please put an empty hbox between it instead:
@@ -272,35 +329,40 @@ The followings are major changes from \pTeX:
ããåããã¨ããããããã°ï¼ç©ºã®æ°´å¹³ããã¯ã¹ãéã«æãã°ããï¼
%
\begin{verbatim}
-ããã¡ã\hbox{}ã£ã¨
+\hskip2\zw ã¡ã\hbox{}ã£ã¨
\end{verbatim}
%<*en>
\item In the process, two Japanese fonts which only differ in their `real'
- fonts are identified.
+ fonts are identified.
%
%<*ja>
-\item å¦çä¸ã§ã¯ï¼2ã¤ã®åæãã©ã³ãã¯ï¼ãå®éã®ããã©ã³ãã®ã¿ãç°ãªãå ´åã«åä¸è¦
+\item å¦çä¸ã§ã¯ï¼2ã¤ã®åæãã©ã³ãã¯ï¼ãå®éã®ããã©ã³ããç°ãªãã ãã®å ´åã«ã¯åä¸è¦
ãããï¼
%
\end{itemize}
+%<*ja>
+\item \LuaTeX-jaã§ã¯ï¼\pTeX ã¨åæ§ã«æ¼¢åã»ä»®åãå¶å¾¡ç¶´å
ã«ç¨ãããã¨ãã§ãï¼
+\verb+\西æ¦+ ãªã©ãæ£ããåä½ããããã«ãã¦ããï¼
+ä½ãï¼å¶å¾¡ç¶´ä¸ã«ä½¿ããåææåã\pTeXã»\upTeX ã¨å
¨ãåãã§ã¯ãªããã¨ã«æ³¨æãããã¨ï¼
+%
+
%<*en>
\item At the present, vertical typesetting (\emph{tategaki}), is not
supported in \LuaTeX-ja.
%
%<*ja>
-\item ç¾æç¹ã§ã¯ï¼ç¸¦æ¸ã㯠\LuaTeX-ja ã§ã¯ãµãã¼ãããã¦ããªãï¼
+\item ç¾æç¹ã§ã¯ï¼ç¸¦æ¸ãã¯\LuaTeX-jaã§ã¯ãµãã¼ãããã¦ããªãï¼
%
-
\end{itemize}
%<*en>
For detailed information, see Part~\ref{part-imp}.
%
%<*ja>
-詳細ã«ã¤ãã¦ã¯ç¬¬ \ref{part-imp} é¨ãåç
§ï¼
+詳細ã«ã¤ãã¦ã¯ç¬¬\ref{part-imp}é¨ãåç
§ï¼
%
%\subsection{Notations}
@@ -312,7 +374,6 @@ In this document, the following terms and notations are used:
%<*ja>
æ¬ããã¥ã¡ã³ãã§ã¯ï¼ä»¥ä¸ã®ç¨èªã¨è¨æ³ãç¨ããï¼
%
-
\begin{itemize}
%<*en>
\item Characters are divided into two types:
@@ -322,61 +383,43 @@ In this document, the following terms and notations are used:
%
\begin{itemize}
%<*en>
-\item \textbf{JAchar}: standing for Japanese characters such as
- Hiragana, Katakana, Kanji and other punctuation marks for
- Japanese.
+\item \textbf{JAchar}: standing for characters which used in Japanese typesetting,
+ such as Hiragana, Katakana, Kanji and other Japanese punctuation marks.
%
%<*ja>
-\item \textbf{JAchar}: ã²ãããªï¼ã«ã¿ã«ãï¼æ¼¢åï¼åæç¨ã®ç´ç©ã¨ãã£ãåææåã®
- ãã¨ãæãï¼
+\item \textbf{JAchar}: ã²ãããªï¼ã«ã¿ã«ãï¼æ¼¢åï¼åæç¨ã®ç´ç©ã¨ãã£ã
+ æ¥æ¬èªçµçã«ä½¿ãããæåã®ãã¨ãæãï¼
%
-%<*en>
-\item \textbf{ALchar}: standing for all other characters like alphabets.
-%
-%<*ja>
-\item \textbf{ALchar}: ã¢ã«ãã¡ããããå§ãã¨ããï¼ãã®ä»å
¨ã¦ã®æåãæãï¼
-%
+%\item \textbf{ALchar}: standing for all other characters like alphabets.
+%\item \textbf{ALchar}: ã¢ã«ãã¡ããããå§ãã¨ããï¼ãã®ä»å
¨ã¦ã®æåãæãï¼
\end{itemize}
%<*en>
We say `alphabetic fonts' for fonts used in \textbf{ALchar}, and `Japanese fonts' for fonts used in \textbf{JAchar}.
%
%<*ja>
-ããã¦ï¼\textbf{ALchar} ã®åºåã«ç¨ãããããã©ã³ããã欧æãã©ã³ããã¨å¼ã³ï¼
-\textbf{JAchar} ã®åºåã«ç¨ãããããã©ã³ãããåæãã©ã³ããã¨å¼ã¶ï¼
+ããã¦ï¼\textbf{ALchar}ã®åºåã«ç¨ãããããã©ã³ããã欧æãã©ã³ããã¨å¼ã³ï¼
+\textbf{JAchar}ã®åºåã«ç¨ãããããã©ã³ãããåæãã©ã³ããã¨å¼ã¶ï¼
%
-
%<*en>
-\item A word in a sans-serif font (like \Param{prebreakpenalty})
+\item A word in a sans-serif font (like \Param{\hyperlink{fld:prebp}{prebreakpenalty}})
means an internal parameter for Japanese typesetting, and it
is used as a key in \verb+\ltjsetparameter+ command.
%
%<*ja>
-\item ãµã³ã»ãªãä½ã§æ¸ãããèªï¼ä¾ï¼\Param{prebreakpenalty}ï¼ã¯æ¥æ¬èªçµçç¨ã®
+\item ãµã³ã»ãªãä½ã§æ¸ãããèªï¼ä¾ï¼\Param{\hyperlink{fld:prebp}{prebreakpenalty}}ï¼ã¯æ¥æ¬èªçµçç¨ã®
ãã©ã¡ã¼ã¿ã表ãï¼ããã㯠\verb+\ltjsetparameter+ ã³ãã³ãã®ãã¼ã¨ãã¦
ç¨ããããï¼
%
-
%<*en>
\item A word in typewriter font with underline (like \Pkg{fontspec})
means a package or a class of \LaTeX.
%
%<*ja>
-\item ä¸ç·ä»ãã®ã¿ã¤ãã©ã¤ã¿ä½ã§æ¸ãããèªï¼ä¾ï¼\Pkg{fontspec}ï¼ã¯ \LaTeX ã®
+\item ä¸ç·ä»ãã¿ã¤ãã©ã¤ã¿ä½ã®èªï¼ä¾ï¼\Pkg{fontspec}ï¼ã¯\LaTeX ã®
ããã±ã¼ã¸ãã¯ã©ã¹ã表ãï¼
%
-
-%<*en>
-\item The word `primitive' is used not only for primitives in \LuaTeX,
- but also for control sequences that defined in the core module of
- \LuaTeX-ja.
-%
-%<*ja>
-\item ãããªããã£ããã¨ããèªãï¼\LuaTeX ã®ããªããã£ãã ãã§ã¯ãªã \LuaTeX-ja
- ã®ã³ã¢ã¢ã¸ã¥ã¼ã«ã§å®ç¾©ãããã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹ã«å¯¾ãã¦ãç¨ããï¼
-%
-
%<*en>
\item In this document, natural numbers start from~0.
%
@@ -388,35 +431,29 @@ We say `alphabetic fonts' for fonts used in \textbf{ALchar}, and `Japanese fonts
%\subsection{About the project}
%\subsection{ããã¸ã§ã¯ãã«ã¤ãã¦}
-%<*en>
-\paragraph{Project Wiki} Project Wiki is under construction.
-%
-%<*ja>
-\paragraph{ããã¸ã§ã¯ã Wiki} ããã¸ã§ã¯ã Wiki ã¯æ§ç¯ä¸ã§ããï¼
-%
-
+%\paragraph{Project Wiki} Project Wiki is under construction.
+%\paragraph{ããã¸ã§ã¯ãWiki} ããã¸ã§ã¯ãWikiã¯æ§ç¯ä¸ã§ããï¼
%<*en>
\begin{itemize}
\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage%28en%29} (English)
\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage} (Japanese)
+\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage%28zh%29} (Chinese)
\end{itemize}
%
%<*ja>
\begin{itemize}
\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage}ï¼æ¥æ¬èªï¼
\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage%28en%29}ï¼è±èªï¼
+\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage%28zh%29}ï¼ä¸å½èªï¼
\end{itemize}
%
-%<*en>
-This project is hosted by SourceForge.JP.
-%
-%<*ja>
-æ¬ããã¸ã§ã¯ã㯠SourceForge.JP ã®ãµã¼ãã¹ãç¨ãã¦éå¶ããã¦ããï¼
-%
+%This project is hosted by SourceForge.JP.
+%æ¬ããã¸ã§ã¯ãã¯SourceForge.JPã®ãµã¼ãã¹ãç¨ãã¦éå¶ããã¦ããï¼
%\paragraph{Members}\
%\paragraph{éçºã¡ã³ãã¼}\
+
%<*en>
\begin{multienumerate}
\def\labelenumi{$\bullet$}
@@ -434,7 +471,6 @@ This project is hosted by SourceForge.JP.
\end{multienumerate}
%
-
% \paragraph{Acknowledgments} -- æ¿å
¥ãããªããã
\clearpage
@@ -443,44 +479,66 @@ This project is hosted by SourceForge.JP.
%\subsection{Installation}
%\subsection{ã¤ã³ã¹ãã¼ã«}
-%<*en>
-To install the \LuaTeX-ja\ package, you will need:
-%
-%<*ja>
-\LuaTeX-ja ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ã«ã¯ï¼æ¬¡ã®ãã®ãå¿
è¦ã§ããï¼
-%
+%To install the \LuaTeX-ja\ package, you will need:
+%\LuaTeX-jaããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ã«ã¯ï¼æ¬¡ã®ãã®ãå¿
è¦ã§ããï¼
\begin{itemize}
-%<*en>
-\item \LuaTeX\ (version 0.65.0-beta or later) and its supporting packages.\\
-If you are using \TeX~Live~2011 or current W32\TeX, you don't have to worry.
-%
-%<*ja>
-\item \LuaTeXï¼ãã¼ã¸ã§ã³ 0.65.0-beta 以éï¼ã¨ãã®æ¯æ´ããã±ã¼ã¸ï¼
- \TeX~Live~2011 ã W32\TeX ã®ææ°çãªãã°åé¡ãªãï¼
-%
-%<*en>
-\item The source archive of \LuaTeX-ja, of course\texttt{:)}
-%
-%<*ja>
-\item \LuaTeX-ja ã®ã½ã¼ã¹ã¢ã¼ã«ã¤ãï¼ãã¡ãã \texttt{:)}ï¼ï¼
-%
-%<*en>
-\item The \Pkg{xunicode} package, which version is \emph{just v0.981 (2011/09/09)}.\\
-If you have the \Pkg{fontspec} package, this \Pkg{xunicode} package must be exist.
-But be careful about the version; other versions may not work correctly with \LuaTeX-ja.
-%
-%<*ja>
-\item \Pkg{xunicode} ããã±ã¼ã¸ (\textbf{2011/09/09,~v0.981})ï¼\\
-\Pkg{fontspec} ããã±ã¼ã¸ãå°å
¥ããã¦ããã°ãã®ããã±ã¼ã¸ãå°å
¥ããã¦ããã¯ãã§ãããï¼
-ãã® v0.981 以å¤ã®ãã¼ã¸ã§ã³ã§ã¯\LuaTeX-ja ä¸ã§æ£ããåä½ããªãå±éºæ§ãããï¼
-%
+\item \LuaTeX\ beta-0.74.0 (or later)
+\item \Pkg{luaotfload} v2.2
+\item \Pkg{luatexbase} v0.6~(2013/05/04)
+\item \Pkg{xunicode} v0.981~(2011/09/09)
\end{itemize}
%<*en>
-The installation methods are as follows:
+\emph{From this version of \LuaTeX-ja, \TeX~Live~2012 (or older version) is
+no longer supported, since \LuaTeX\ binary and \Pkg{luaotfload} is updated in
+\TeX~Live~2013.}
+And conversely, older versions of \LuaTeX-ja (20130318.1 or earlier) don't work in
+\TeX~Live~2013.
+
+\medskip
+
+Now \LuaTeX-ja is available from the following archive and distributions:
+ \begin{itemize}
+ \item CTAN (in the \texttt{macros/luatex/generic/luatexja} directory)
+ \item MiK\TeX\ (in \texttt{luatexja.tar.lzma})
+ \item \TeX\ Live (in \texttt{texmf-dist/tex/luatex/luatexja})
+ \item W32\TeX\ (in \texttt{luatexja.tar.xz})
+ \end{itemize}
+
+If you are using \TeX~Live~2013, you can install \LuaTeX-ja
+from \TeX~Live manager (\texttt{tlmgr}):
+\begin{verbatim}
+$ tlmgr install luatexja
+\end{verbatim}
+
+\medskip
+
+If you want to install manually, do the following instruvtions:
%
%<*ja>
-ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ä»¥ä¸ã®ããã«ãªãï¼
+\textbf{æ¬ãã¼ã¸ã§ã³ä»¥éã®\LuaTeX-jaã¯\TeX~Live~2012以åã§ã¯åä½ããªãï¼}
+ããã¯ï¼\LuaTeX ã¨\Pkg{luaotfload}ã\TeX~Live~2013ã«ããã¦æ´æ°ããããã¨ã«ããï¼
+éã«ï¼20130318.1以åã®\LuaTeX-jaã¯\TeX~Live~2013ã§ã¯åä½ããªãï¼
+
+\medskip
+
+ç¾å¨ï¼\LuaTeX-jaã¯ä»¥ä¸ã®ã¢ã¼ã«ã¤ãï¼ããã³ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«åé²ããã¦ããï¼
+ \begin{itemize}
+ \item CTAN (\texttt{macros/luatex/generic/luatexja})
+ \item MiK\TeX\ (\texttt{luatexja.tar.lzma})
+ \item \TeX\ Live (\texttt{texmf-dist/tex/luatex/luatexja})
+ \item W32\TeX\ (\texttt{luatexja.tar.xz})
+ \end{itemize}
+
+ä¾ãã°\TeX~Live~2013ãå©ç¨ãã¦ãããªãï¼\LuaTeX-jaã¯\TeX~Live manager (\texttt{tlmgr})ã
+使ã£ã¦ã¤ã³ã¹ãã¼ã«ãããã¨ãã§ããï¼
+\begin{verbatim}
+$ tlmgr install luatexja
+\end{verbatim}
+
+\medskip
+
+æåã§ã¤ã³ã¹ãã¼ã«ããå ´åã®æ¹æ³ã¯ä»¥ä¸ã®ããã«ãªãï¼
%
\begin{enumerate}
%<*en>
@@ -496,9 +554,7 @@ $ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git
\begin{flushleft}
\url{http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}.
\end{flushleft}
-\item Now Lua\TeX-ja is included in CTAN (in the \texttt{macros/luatex/generic/luatexja} directory)
-and W32\TeX\ (in \texttt{luatexja.tar.xz}). These are based on the \texttt{master} branch.
-\end{itemize}
+\end{itemize}
Note that the \texttt{master} branch, and hence the archive in CTAN, are not updated frequently;
the forefront of development is not the \texttt{master} branch.
@@ -508,21 +564,17 @@ the forefront of development is not the \texttt{master} branch.
éçºçã§ãã£ã¦ï¼å®å®çã§ãªããã¨ã«æ³¨æï¼
\begin{itemize}
-\item Git ãªãã¸ããªã®å
容ãã³ãã¼ããï¼
+\item Gitãªãã¸ããªã®å
容ãã³ãã¼ããï¼
\begin{verbatim}
$ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git
\end{verbatim}
-\item \texttt{master} ãã©ã³ãã®ã¹ãããã·ã§ããï¼\texttt{tar.gz} å½¢å¼ï¼ããã¦ã³ãã¼ãããï¼
+\item \texttt{master}ãã©ã³ãã®ã¹ãããã·ã§ããï¼\texttt{tar.gz}å½¢å¼ï¼ããã¦ã³ãã¼ãããï¼
\begin{flushleft}
\url{http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}.
\end{flushleft}
-\item ä»ãï¼Lua\TeX-ja 㯠CTAN (\texttt{macros/luatex/generic/luatexja}) ã
-W32\TeX\ (\texttt{luatexja.tar.xz}) ã«ãåé²ããã¦ããï¼
-ããã㯠\texttt{master} ãã©ã³ãã®å
容ãå
ã«ãã¦ããï¼
\end{itemize}
-
-\texttt{master} ãã©ã³ãï¼å¾ã£ã¦ï¼CTAN å
ã®ã¢ã¼ã«ã¤ããï¼ã¯ãã¾ã«ããæ´æ°ãããªããã¨ã«æ³¨æï¼
-主ãªéçºã¯ \texttt{master} ã®å¤ã§è¡ããï¼æ¯è¼çã¾ã¨ã¾ã£ã¦ãããããã \texttt{master} ã«
+\texttt{master}ãã©ã³ãï¼å¾ã£ã¦ï¼CTANå
ã®ã¢ã¼ã«ã¤ããï¼ã¯ãã¾ã«ããæ´æ°ãããªããã¨ã«æ³¨æï¼
+主ãªéçºã¯\texttt{master}ã®å¤ã§è¡ããï¼æ¯è¼çã¾ã¨ã¾ã£ã¦ãããããã\texttt{master}ã«
åæ ããããã¨ã«ãã¦ããï¼
%
@@ -531,9 +583,9 @@ W32\TeX\ (\texttt{luatexja.tar.xz}) ã«ãåé²ããã¦ããï¼
But only the contents in \texttt{src/} are needed to work \LuaTeX-ja.
%
%<*ja>
-\item ãGit ãªãã¸ããªãã³ãã¼ã以å¤ã®æ¹æ³ã§ã¢ã¼ã«ã¤ããåå¾ãããªãã°ï¼ãããå±éããï¼
- \texttt{src/} ãã¯ããã¨ããããã¤ãã®ãã£ã¬ã¯ããªãã§ãããï¼
- åä½ã«ã¯ \texttt{src/} 以ä¸ã®å
容ã ãã§ååï¼
+\item ãGitãªãã¸ããªãã³ãã¼ã以å¤ã®æ¹æ³ã§ã¢ã¼ã«ã¤ããåå¾ãããªãã°ï¼ãããå±éããï¼
+ \texttt{src/}ãã¯ããã¨ããããã¤ãã®ãã£ã¬ã¯ããªãã§ãããï¼
+ åä½ã«ã¯\texttt{src/}以ä¸ã®å
容ã ãã§ååï¼
%
%<*en>
@@ -543,21 +595,19 @@ But only the contents in \texttt{src/} are needed to work \LuaTeX-ja.
instead copying is also good.
%
%<*ja>
-\item \texttt{src/} ã®ä¸èº«ãèªåã® \texttt{TEXMF} ããªã¼ã«ã³ãã¼ããï¼
- å ´æã®ä¾ã¨ãã¦ã¯ï¼ä¾ãã° \texttt{TEXMF/tex/luatex/luatexja/} ãããï¼
+\item \texttt{src}ã®ä¸èº«ãèªåã®\texttt{TEXMF}ããªã¼ã«ã³ãã¼ããï¼
+ å ´æã®ä¾ã¨ãã¦ã¯ï¼ä¾ãã°\texttt{TEXMF/tex/luatex/luatexja/}ãããï¼
ã·ã³ããªãã¯ãªã³ã¯ãå©ç¨ã§ããç°å¢ã§ï¼ãã¤ãªãã¸ããªãç´æ¥åå¾ããã®ã§ããã°ï¼
ï¼æ´æ°ã容æã«ããããã«ï¼ã³ãã¼ã§ã¯ãªããªã³ã¯ãè²¼ããã¨ãå§ããï¼
%
-
%<*en>
\item If \texttt{mktexlsr} is needed to update the file name database, make it so.
%
%<*ja>
-\item å¿
è¦ãããã°ï¼\texttt{mktexlsr} ãå®è¡ããï¼
+\item å¿
è¦ãããã°ï¼\texttt{mktexlsr}ãå®è¡ããï¼
%
\end{enumerate}
-
%\subsection{Cautions}
%\subsection{注æç¹}
@@ -567,8 +617,15 @@ But only the contents in \texttt{src/} are needed to work \LuaTeX-ja.
encodings, such as EUC-JP or Shift-JIS, are not supported.
%
%<*ja>
-\item å稿ã®ã½ã¼ã¹ãã¡ã¤ã«ã®æåã³ã¼ã㯠UTF-8 åºå®ã§ããï¼
- å¾æ¥æ¥æ¬èªã®æåã³ã¼ãã¨ãã¦ç¨ãããã¦ãã EUC-JP ã Shift-JIS ã¯ä½¿ç¨ã§ããªãï¼
+\item å稿ã®ã½ã¼ã¹ãã¡ã¤ã«ã®æåã³ã¼ãã¯UTF-8åºå®ã§ããï¼
+ å¾æ¥æ¥æ¬èªã®æåã³ã¼ãã¨ãã¦ç¨ãããã¦ããEUC-JPãShift-JISã¯ä½¿ç¨ã§ããªãï¼
+%
+%<*en>
+\item \LuaTeX-ja is very slower than \pTeX. Using LuaJIT\TeX slightly improve the situation.
+%
+%<*ja>
+\item \LuaTeX-jaã¯åä½ã\pTeX ã«æ¯ã¹ã¦é常ã«é
ãï¼ã³ã¼ããå¤æ´ãã¦å¾ã
ã«éããã¦ãããï¼
+ã¾ã æºè¶³ã§ããé度ã§ã¯ãªãï¼LuaJIT\TeX ãç¨ããã¨\LuaTeX ã®ã ããã1.3åã®é度ã§åãããã§ããï¼
%
\end{itemize}
@@ -576,26 +633,18 @@ But only the contents in \texttt{src/} are needed to work \LuaTeX-ja.
%\subsection{plain \TeX ã§ä½¿ã}
\label{ssec-plain}
-%<*en>
-To use \LuaTeX-ja in plain \TeX, simply put the following at the beginning of the document:
-%
-%<*ja>
-\LuaTeX-ja ã plain \TeX ã§ä½¿ãããã«ã¯ï¼åã«æ¬¡ã®è¡ãã½ã¼ã¹ãã¡ã¤ã«ã®åé ã«è¿½å ããã°ããï¼
-%
+%To use \LuaTeX-ja in plain \TeX, simply put the following at the beginning of the document:
+%\LuaTeX-jaã plain \TeX ã§ä½¿ãããã«ã¯ï¼åã«æ¬¡ã®è¡ãã½ã¼ã¹ãã¡ã¤ã«ã®åé ã«è¿½å ããã°ããï¼
\begin{verbatim}
\input luatexja.sty
\end{verbatim}
-%<*en>
-This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese documents:
-%
-%<*ja>
-ããã§ï¼\texttt{ptex.tex} ã®ããã«ï¼æ¥æ¬èªçµçã®ããã®æä½éã®è¨å®ããªãããï¼
-%
+%This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese documents:
+%ããã§ï¼\texttt{ptex.tex}ã®ããã«ï¼æ¥æ¬èªçµçã®ããã®æä½éã®è¨å®ããªãããï¼
\begin{itemize}
%<*en>
\item The following 6~Japanese fonts are preloaded:
-\begin{center}
+\begin{center}\small
\begin{tabular}{ccccc}
\toprule
\textbf{classification}&\textbf{font name}&\bf `10\,pt'&\bf`7\,pt'&\bf`5\,pt'\\\midrule
@@ -607,7 +656,7 @@ This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese doc
%
%<*ja>
\item 以ä¸ã®6ã¤ã®åæãã©ã³ããå®ç¾©ãããï¼
-\begin{center}
+\begin{center}\small
\begin{tabular}{ccccc}
\toprule
\textbf{åä½}&\textbf{ãã©ã³ãå}&\bf `10\,pt'&\bf`7\,pt'&\bf`5\,pt'\\\midrule
@@ -619,26 +668,16 @@ This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese doc
%
\begin{itemize}
%<*en>
-\item The `Qï¼ç´ï¼' is a unit used in Japanese phototypesetting, and
- $1\,\textrm{Q}=0.25\,\textrm{mm}$. This length is stored in a
- dimension \verb+\jQ+.
-%
-%<*ja>
-\item `Qï¼ç´ï¼' ã¯æ¥æ¬ã®åæ¤ã§ç¨ããããåä½ã§ï¼$1\,\textrm{Q}=0.25\,\textrm{mm}$
- ã§ããï¼ãã®é·ã㯠\verb+\jQ+ ã«ä¿æããã¦ããï¼
-%
-
-%<*en>
\item It is widely accepted that the font `Ryumin-Light' and
- `GothicBBB-Medium' aren't embedded into PDF files, and PDF reader
+ `GothicBBB-Medium' aren't embedded into PDF files, and a PDF reader
substitute them by some external Japanese fonts (\textit{e.g.},
Kozuka Mincho is used for Ryumin-Light in Adobe Reader). We adopt this custom to
the default setting.
%
%<*ja>
-\item `Ryumin-Light' 㨠`GothicBBB-Medium' 㯠PDF ãã¡ã¤ã«ã«åãè¾¼ã¾ãã«
- åååç
§ã®ã¿ã§ç¨ãããã¨ãåºãåãå
¥ãããã¦ããï¼ãã®å ´å PDF ãªã¼ãã¼ã
- é©åãªå¤é¨ãã©ã³ãã§ä»£ç¨ããï¼ä¾ãã°ï¼Adobe Reader ã§ã¯ Ryumin-Light ã¯
+\item `Ryumin-Light'ã¨`GothicBBB-Medium'ã¯PDFãã¡ã¤ã«ã«åãè¾¼ã¾ãã«
+ åååç
§ã®ã¿ã§ç¨ãããã¨ãåºãåãå
¥ãããã¦ããï¼ãã®å ´åPDFãªã¼ãã¼ã
+ é©åãªå¤é¨ãã©ã³ãã§ä»£ç¨ããï¼ä¾ãã°ï¼Adobe Readerã§ã¯Ryumin-Lightã¯
å°å¡ææã§ä»£æ¿ãããï¼ï¼ããã§ï¼ããããå¼ãç¶ãããã©ã«ãã®ãã©ã³ãã¨
ãã¦æ¡ç¨ããï¼
%
@@ -652,17 +691,17 @@ This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese doc
%<*ja>
\item 欧æãã©ã³ãã®æåã¯åæãã©ã³ãã®æåãããï¼åãæåãµã¤ãºã§ã
ä¸è¬ã«å°ãããã¶ã¤ã³ããã¦ããï¼ããã§ï¼æ¨æºã§ã¯ãããã®åæãã©ã³ãã®å®éã®ãµã¤ãºã¯æå®ãããå¤ããã
- å°ãããªãããã«è¨å®ããã¦ããï¼å
·ä½çã«ã¯æå®ã® 0.962216 åã«ã¹ã±ã¼ã«ãããï¼
- ãã® 0.962216 ã¨ããæ°å¤ãï¼p\TeX ã«ãããã¹ã±ã¼ãªã³ã°ãè¸è¥²ããå¤ã§ããï¼
+ å°ãããªãããã«è¨å®ããã¦ããï¼å
·ä½çã«ã¯æå®ã®0.962216åã«ã¹ã±ã¼ã«ãããï¼
+ ãã®0.962216ã¨ããæ°å¤ãï¼\pTeX ã«ãããã¹ã±ã¼ãªã³ã°ãè¸è¥²ããå¤ã§ããï¼
%
\end{itemize}
%<*en>
\item The amount of glue that are inserted between a \textbf{JAchar} and
- an \textbf{ALchar} (the parameter \Param{xkanjiskip}) is set to
+ an \textbf{ALchar} (the parameter \Param{\hyperlink{fld:xks}{xkanjiskip}}) is set to
%
%<*ja>
-\item \textbf{JAchar} 㨠\textbf{ALchar} ã®éã«å
¥ãã°ã«ã¼ (\Param{xkanjiskip}) ã®
+\item \textbf{JAchar}ã¨\textbf{ALchar}ã®éã«å
¥ãã°ã«ã¼(\Param{\hyperlink{fld:xks}{xkanjiskip}})ã®
éã¯æ¬¡ã®ããã«è¨å®ããã¦ããï¼
%
\[
@@ -683,7 +722,7 @@ for Japanese, you only have to load \texttt{luatexja.sty}:
%
%<*ja>
\LaTeXe ãç¨ããå ´åãåºæ¬çã«ã¯åãã§ããï¼æ¥æ¬èªçµçã®ããã®æä½éã®ç°å¢ã
-è¨å®ããããã«ã¯ï¼\texttt{luatexja.sty} ãèªã¿è¾¼ãã ãã§ããï¼
+è¨å®ããããã«ã¯ï¼\texttt{luatexja.sty}ãèªã¿è¾¼ãã ãã§ããï¼
%
\begin{verbatim}
\usepackage{luatexja}
@@ -693,7 +732,7 @@ It also does minimal settings (counterparts in \pLaTeX\ are \texttt{
plfonts.dtx} and \texttt{pldefs.ltx}):
%
%<*ja>
-ãã㧠\pLaTeX ã® \texttt{plfonts.dtx} 㨠\texttt{pldefs.ltx} ã«ç¸å½ããæä½éã®è¨å®ã
+ããã§\pLaTeX ã®\texttt{plfonts.dtx}ã¨\texttt{pldefs.ltx}ã«ç¸å½ããæä½éã®è¨å®ã
ãªãããï¼
%
@@ -703,14 +742,14 @@ plfonts.dtx} and \texttt{pldefs.ltx}):
When vertical typesetting is supported by \LuaTeX-ja in the future, \texttt{JT3} will be used for vertical fonts.
%
%<*ja>
-\item \texttt{JY3} ã¯åæãã©ã³ãç¨ã®ãã©ã³ãã¨ã³ã³ã¼ãã£ã³ã°ã§ããï¼æ¨ªæ¸ãç¨ï¼ï¼\\
-å°æ¥çã«ï¼\LuaTeX-ja ã§ç¸¦æ¸ãããµãã¼ããããéã«ã¯ï¼\texttt{JT3} ã縦æ¸ãç¨ã¨ãã¦
+\item \texttt{JY3}ã¯åæãã©ã³ãç¨ã®ãã©ã³ãã¨ã³ã³ã¼ãã£ã³ã°ã§ããï¼æ¨ªæ¸ãç¨ï¼ï¼\\
+å°æ¥çã«ï¼\LuaTeX-jaã§ç¸¦æ¸ãããµãã¼ããããéã«ã¯ï¼\texttt{JT3}ã縦æ¸ãç¨ã¨ãã¦
ç¨ããäºå®ã§ããï¼
%
%<*en>
\item Two font families \texttt{mc} and \texttt{gt} are defined:
-\begin{center}
+\begin{center}\small
\begin{tabular}{ccccc}
\toprule
\textbf{classification}&\textbf{family}&\verb+\mdseries+&\verb+\bfseries+&\textbf{scale}\\\midrule
@@ -724,8 +763,8 @@ This is a convention in \pLaTeX. This is a trace that there were only 2~fonts (t
and GothicBBB-Medium) in early years of DTP.
%
%<*ja>
-\item 2ã¤ã®ãã©ã³ããã¡ã㪠\texttt{mc} 㨠\texttt{gt} ãå®ç¾©ããã¦ããï¼
-\begin{center}
+\item 2ã¤ã®ãã©ã³ããã¡ããª\texttt{mc}ã¨\texttt{gt}ãå®ç¾©ããã¦ããï¼
+\begin{center}\small
\begin{tabular}{ccccc}
\toprule
\textbf{åä½}&\textbf{ãã¡ããª}&\verb+\mdseries+&\verb+\bfseries+&\textbf{ã¹ã±ã¼ã«}\\\midrule
@@ -734,18 +773,14 @@ and GothicBBB-Medium) in early years of DTP.
\bottomrule
\end{tabular}
\end{center}
-ã©ã¡ãã®ãã¡ããªã«ããã¦ãï¼ãã® bold ã·ãªã¼ãºã¯ã´ã·ãã¯ä½ã® medium ã·ãªã¼ãºã§
-ãããã¨ã«æ³¨æï¼ããã¯åæã® DTP ã«ããã¦åæãã©ã³ãã2ã¤ï¼ãããã¡ããã©\
-Ryumin-Light, GothicBBB-Medium ã ã£ãï¼ããå©ç¨ã§ããªãã£ãæã®åæ®ã§ããï¼\pLaTeX{}
+ã©ã¡ãã®ãã¡ããªã«ããã¦ãï¼ãã®boldã·ãªã¼ãºã¯ã´ã·ãã¯ä½ã®mediumã·ãªã¼ãºã§
+ãããã¨ã«æ³¨æï¼ããã¯åæã®DTPã«ããã¦åæãã©ã³ãã2ã¤ï¼ãããã¡ããã©\
+Ryumin-Light, GothicBBB-Mediumã ã£ãï¼ããå©ç¨ã§ããªãã£ãæã®åæ®ã§ããï¼\pLaTeX{}
ã§ã®æ¨æºè¨å®ã¨ãåãã§ããï¼
%
-%<*en>
-\item Japanese characters in math mode are typeset by the font family \texttt{mc}.
-%
-%<*ja>
-\item æ°å¼ã¢ã¼ãä¸ã®åææå㯠\texttt{mc} ãã¡ããªã§åºåãããï¼
-%
+%\item Japanese characters in math mode are typeset by the font family \texttt{mc}.
+%\item æ°å¼ã¢ã¼ãä¸ã®åææåã¯\texttt{mc}ãã¡ããªã§åºåãããï¼
\end{itemize}
%<*en>
@@ -758,126 +793,35 @@ Okumura), namely, \Pkg{ltjclasses} and \Pkg{ltjsclasses}.
%
%<*ja>
ããããªããï¼ä¸è¨ã®è¨å®ã¯æ¥æ¬èªã®ææ¸ã«ã¨ã£ã¦ååã¨ã¯è¨ããªãï¼
-æ¥æ¬èªææ¸ãçµçããããã«ã¯ï¼\texttt{article.cls}, \texttt{book.cls} ã¨ãã£ã
+æ¥æ¬èªææ¸ãçµçããããã«ã¯ï¼\texttt{article.cls}, \texttt{book.cls}ã¨ãã£ã
欧æç¨ã®ã¯ã©ã¹ãã¡ã¤ã«ã§ã¯ãªãï¼åæç¨ã®ã¯ã©ã¹ãã¡ã¤ã«ãç¨ããæ¹ãããï¼
-ç¾æç¹ã§ã¯ï¼\Pkg{jclasses} ï¼\pLaTeX ã®æ¨æºã¯ã©ã¹ï¼ã¨ \Pkg{jsclasses}
+ç¾æç¹ã§ã¯ï¼\Pkg{jclasses}ï¼\pLaTeX ã®æ¨æºã¯ã©ã¹ï¼ã¨\Pkg{jsclasses}
ï¼å¥¥ææ´å½¦æ°ã«ããã¯ã©ã¹ãã¡ã¤ã«ï¼ã«å¯¾å¿ãããã®ã¨ãã¦ï¼\Pkg{ltjclasses}ï¼
-\Pkg{ltjsclasses} ãããããç¨æããã¦ããï¼
-%
-
-%<*en>
-\paragraph{\texttt{\char92 CID, \texttt{\char92 UTF}} and macros in OTF package}
-Under \pLaTeX, \Pkg{otf} package (developed by Shuzaburo Saito) is
-used for typesetting characters which is in Adobe-Japan1-6 CID but not
-in JIS~X~0208. Since this package is widely used, \LuaTeX-ja
-supports some of functions in \Pkg{otf} package.
-If you want to use these functions, load \Pkg{luatexja-otf} package.
-%
-%<*ja>
-\paragraph{\texttt{\char92 CID, \texttt{\char92 UTF}} 㨠OTF ããã±ã¼ã¸ã®ãã¯ã}
-\pLaTeX ã§ã¯ï¼JIS~X~0208 ã«ãªã Adobe-Japan1-6 ã®æåãåºåããããã«ï¼
-é½è¤ä¿®ä¸éæ°ã«ãã \Pkg{otf} ããã±ã¼ã¸ãç¨ãããã¦ããï¼ãã®ããã±ã¼ã¸ã¯
-åºãç¨ãããã¦ããããï¼\LuaTeX-ja ã«ããã¦ã \Pkg{otf} ããã±ã¼ã¸ã®æ©è½ã®
-ä¸é¨ããµãã¼ããã¦ããï¼ãããã®æ©è½ãç¨ããããã«ã¯ \Pkg{luatexja-otf} ããã±ã¼ã¸
-ãèªã¿è¾¼ãã°ããï¼
+\Pkg{ltjsclasses}ãããããç¨æããã¦ããï¼
%
-\begin{LTXexample}
-森\UTF{9DD7}å¤ã¨å
ç°ç¾\UTF{9592}ã¨ã\UTF{9AD9}島å±ã«è¡ãã
-
-\CID{7652}飾åºã®\CID{13706}é家ï¼
-è飾åºã®åé家
-\end{LTXexample}
+%\section{Changing Fonts}
+%\section{ãã©ã³ãã®å¤æ´}
-%\subsection{Changing Fonts}
-%\subsection{ãã©ã³ãã®å¤æ´}
+\subsection{plain \TeX~and~\LaTeXe}
\label{ssub-chgfnt}
-%<*en>
-\paragraph{Remark: Japanese Characters in Math Mode}
-Since \pTeX\ supports Japanese characters in math mode, there are
-sources like the following:
-%
-%<*ja>
-\paragraph{æè¦ï¼æ°å¼ã¢ã¼ãä¸ã®åææå}
-\pTeX ã§ã¯ï¼ç¹ã«ä½ãããªãã§ãæ°å¼ä¸ã«åææåãè¨è¿°ãããã¨ãã§ããï¼ãã®ããï¼
-以ä¸ã®ãããªã½ã¼ã¹ãè¦ãããï¼
-%
-\begin{LTXexample}
-$f_{é«æ¸©}$~($f_{\text{high temperature}}$).
-\[ y=(x-1)^2+2\quad ãã£ã¦\quad y>0 \]
-$5\in ç´ :=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$.
-\end{LTXexample}
-%<*en>
-We (the project members of \LuaTeX-ja) think that using
-Japanese characters in math mode are allowed if and only if these are used as identifiers.
-In this point of view,
-%
-%<*ja>
-\LuaTeX-ja ããã¸ã§ã¯ãã§ã¯ï¼æ°å¼ã¢ã¼ãä¸ã§ã®åææåã¯ããããèå¥åã¨ãã¦ç¨ãããã
-ã¨ãã®ã¿è¨±ãããã¨èãã¦ããï¼
-ãã®è¦³ç¹ããï¼
-%
-\begin{itemize}
-%<*en>
-\item The lines 1~and~2 above are not correct, since `é«æ¸©' in above is used as a textual label, and
-`ãã£ã¦' is used as a conjunction.
-%
-%<*ja>
-\item ä¸è¨æ°å¼ã®ãã¡ 1, 2 è¡ç®ã¯æ£ãããªãï¼ãªããªãã° `é«æ¸©' ãæå³ã®ããã©ãã«ã¨
- ãã¦ï¼`ãã£ã¦' ãæ¥ç¶è©ã¨ãã¦ç¨ãããã¦ããããã§ããï¼
-%
-%<*en>
-\item However, the line~3 is correct, since `ç´ ' is used as an identifier.
-%
-%<*ja>
-\item ããããªããï¼3è¡ç®ã¯ `ç´ ' ãèå¥åã¨ãã¦ç¨ãããã¦ããã®ã§æ£ããï¼
-%
-\end{itemize}
-%<*en>
-Hence, in our opinion, the above input should be corrected as:
-%
-%<*ja>
-ãããã£ã¦ï¼\LuaTeX-ja ããã¸ã§ã¯ãã®æè¦ã¨ãã¦ã¯ï¼ä¸è¨ã®å
¥åã¯æ¬¡ã®ããã«ç´ãããã¹ã
-ã§ããï¼
-%
-\begin{LTXexample}
-$f_{\text{é«æ¸©}}$~%
-($f_{\text{high temperature}}$).
-\[ y=(x-1)^2+2\quad
- \mathrel{\text{ãã£ã¦}}\quad y>0 \]
-$5\in ç´ :=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$.
-\end{LTXexample}
-%BUG?: \{\}ããªããã°ãç´ ããã§ãªãï¼ä¸ã®æ®µè½ã®ããã£ã¦ããã§ã¦ãªãï¼
-%<*en>
-We also believe that using Japanese characters as identifiers is rare,
-hence we don't describe how to change Japanese fonts in math mode in
-this chapter. For the method, please see Subsection~\ref{ssec-math}.
-%
-%<*ja>
-ã¾ã \LuaTeX-ja ããã¸ã§ã¯ãã§ã¯ï¼åææåãèå¥åã¨ãã¦ç¨ãããããã¨ã¯ã»ã¨ãã©ãªã
-ã¨èãã¦ããï¼ãããã£ã¦ãã®ç¯ã§ã¯æ°å¼ã¢ã¼ãä¸ã®åæãã©ã³ããå¤æ´ããæ¹æ³ã«ã¤ãã¦ã¯
-è¨è¿°ããªãï¼ãã®æ¹æ³ã«ã¤ãã¦ã¯ \ref{ssec-math} ç¯ãåç
§ã®ãã¨ï¼
-%
-
-%<*en>
\paragraph{plain \TeX}
-To change Japanese fonts in plain \TeX, you must use the primitive
+%<*en>
+To change Japanese fonts in plain \TeX, you must use the control sequence
\verb+\jfont+. So please see Subsection~\ref{ssec-jfont}.
%
%<*ja>
-\paragraph{plain \TeX}
-plain \TeX ã§åæãã©ã³ããå¤æ´ããããã«ã¯ï¼\verb+\jfont+ ããªããã£ããç¨ããªãã
-ã°ãªããªãï¼\ref{ssec-jfont} ç¯ãåç
§ï¼
+plain \TeX ã§åæãã©ã³ããå¤æ´ããããã«ã¯ï¼\pTeX ã®ããã« \verb+\jfont+ å½ä»¤ãç´æ¥ç¨ããï¼
+\ref{ssec-jfont}ç¯ãåç
§ï¼
%
+\paragraph{\LaTeXe\ (NFSS2)}
%<*en>
-\paragraph{NFSS2}
For \LaTeXe, \LuaTeX-ja adopted most of the font selection system of \pLaTeXe\ (in \texttt{plfonts.dtx}).
%
%<*ja>
-\paragraph{NFSS2}
-\LaTeXe ã«ã¤ãã¦ã¯ï¼\LuaTeX-ja ã§ã¯ãã©ã³ãé¸æã·ã¹ãã ã \pLaTeXe\ (\texttt{plfonts.dtx})
+\LaTeXe ã«ã¤ãã¦ã¯ï¼\LuaTeX-jaã§ã¯ãã©ã³ãé¸æã·ã¹ãã ã\pLaTeXe\ (\texttt{plfonts.dtx})
ã®å¤§é¨åããã®ã¾ã¾æ¡ç¨ãã¦ããï¼
%
\begin{itemize}
@@ -890,7 +834,7 @@ For \LaTeXe, \LuaTeX-ja adopted most of the font selection system of \pLaTeXe\ (
%<*ja>
\item 2ã¤ã®ã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹ \verb+\mcdefault+ 㨠\verb+\gtdefault+ ãããã
ãææä½ã¨ã´ã·ãã¯ä½ã®ããã©ã«ãã®ãã©ã³ããã¡ããªãæå®ããããã«ç¨ããããï¼
- åæå¤ï¼\verb+\mcdefault+ 㯠\texttt{mc}ï¼\verb+\gtdefault+ 㯠\texttt{gt}ï¼
+ åæå¤ï¼\verb+\mcdefault+ ã¯\texttt{mc}ï¼\verb+\gtdefault+ ã¯\texttt{gt}ï¼
%
%<*en>
\item Commands \verb+\fontfamily+, \verb+\fontseries+,
@@ -903,7 +847,7 @@ For \LaTeXe, \LuaTeX-ja adopted most of the font selection system of \pLaTeXe\ (
%
%<*en>
-\begin{center}
+\begin{center}\small
\begin{tabular}{cccccc}
\toprule
&\textbf{encoding}&\textbf{family}&\textbf{series}&\textbf{shape}&\textbf{selection}\\\midrule
@@ -920,14 +864,14 @@ auto select&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
\end{center}
%
%<*ja>
-\begin{center}
+\begin{center}\small
\begin{tabular}{cccccc}
\toprule
&\textbf{ã¨ã³ã³ã¼ãã£ã³ã°}&\textbf{ãã¡ããª}&\textbf{ã·ãªã¼ãº}&\textbf{ã·ã§ã¼ã}&\textbf{é¸æ}\\\midrule
-欧æãã©ã³ã
+欧æ
&\verb+\romanencoding+&\verb+\romanfamily+&\verb+\romanseries+&\verb+\romanshape+
&\verb+\useroman+\\
-åæãã©ã³ã
+åæ
&\verb+\kanjiencoding+&\verb+\kanjifamily+&\verb+\kanjiseries+&\verb+\kanjishape+
&\verb+\usekanji+\\
両æ¹&---&--&\verb+\fontseries+&\verb+\fontshape+&---\\
@@ -957,96 +901,515 @@ auto select&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
%
%<*en>
-\item For defining a Japanese font family, use
- \verb+\DeclareKanjiFamily+ instead of
- \verb+\DeclareFontFamily+. However, in the present implementation,
- using \verb+\DeclareFontFamily+ doesn't cause any problem.
+\item For defining a Japanese font family, use
+ \verb+\DeclareKanjiFamily+ instead of
+ \verb+\DeclareFontFamily+. However, in the present implementation,
+ using \verb+\DeclareFontFamily+ doesn't cause any problem.
+%
+%<*ja>
+\item åæãã©ã³ããã¡ããªã®å®ç¾©ã«ã¯ \verb+\DeclareFontFamily+ ã®
+ 代ããã« \verb+\DeclareKanjiFamily+ ãç¨ããï¼ãããï¼ç¾å¨ã®
+ å®è£
ã§ã¯ \verb+\DeclareFontFamily+ ãç¨ãã¦ãåé¡ã¯çããªãï¼
+%
+\end{itemize}
+
+%<*en>
+\paragraph{Remark: Japanese Characters in Math Mode}
+Since \pTeX\ supports Japanese characters in math mode, there are
+sources like the following:
+%
+%<*ja>
+\paragraph{注æï¼æ°å¼ã¢ã¼ãä¸ã®åææå}
+\pTeX ã§ã¯ï¼ç¹ã«ä½ãããªãã§ãæ°å¼ä¸ã«åææåãè¨è¿°ãããã¨ãã§ããï¼ãã®ããï¼
+以ä¸ã®ãããªã½ã¼ã¹ãè¦ãããï¼
+%
+
+\begin{LTXexample}
+$f_{é«æ¸©}$~($f_{\text{high temperature}}$).
+\[ y=(x-1)^2+2\quad ãã£ã¦\quad y>0 \]
+$5\in ç´ :=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$.
+\end{LTXexample}
+%<*en>
+We (the project members of \LuaTeX-ja) think that using
+Japanese characters in math mode are allowed if and only if these are used as identifiers.
+In this point of view,
+%
+%<*ja>
+\LuaTeX-jaããã¸ã§ã¯ãã§ã¯ï¼æ°å¼ã¢ã¼ãä¸ã§ã®åææåã¯ããããèå¥åã¨ãã¦ç¨ãããã
+ã¨ãã®ã¿è¨±ãããã¨èãã¦ããï¼
+ãã®è¦³ç¹ããï¼
+%
+
+\begin{itemize}
+%<*en>
+\item The lines 1~and~2 above are not correct, since `é«æ¸©' in above is used as a textual label, and
+`ãã£ã¦' is used as a conjunction.
+%
+%<*ja>
+\item ä¸è¨æ°å¼ã®ãã¡1, 2è¡ç®ã¯æ£ãããªãï¼ãªããªãã°`é«æ¸©'ãæå³ã®ããã©ãã«ã¨
+ ãã¦ï¼`ãã£ã¦'ãæ¥ç¶è©ã¨ãã¦ç¨ãããã¦ããããã§ããï¼
+%
+%\item However, the line~3 is correct, since `ç´ ' is used as an identifier.
+%\item ããããªããï¼3è¡ç®ã¯`ç´ 'ãèå¥åã¨ãã¦ç¨ãããã¦ããã®ã§æ£ããï¼
+\end{itemize}
+%Hence, in our opinion, the above input should be corrected as:
+%ãããã£ã¦ï¼\LuaTeX-jaããã¸ã§ã¯ãã®æè¦ã¨ãã¦ã¯ï¼ä¸è¨ã®å
¥åã¯æ¬¡ã®ããã«ç´ãããã¹ãã§ããï¼
+\begin{LTXexample}
+$f_{\text{é«æ¸©}}$~%
+($f_{\text{high temperature}}$).
+\[ y=(x-1)^2+2\quad
+ \mathrel{\text{ãã£ã¦}}\quad y>0 \]
+$5\in ç´ :=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$.
+\end{LTXexample}
+%<*en>
+We also believe that using Japanese characters as identifiers is rare,
+hence we don't describe how to change Japanese fonts in math mode in
+this chapter. For the method, please see Subsection~\ref{ssec-math}.
+%
+%<*ja>
+ã¾ã\LuaTeX-jaããã¸ã§ã¯ãã§ã¯ï¼åææåãèå¥åã¨ãã¦ç¨ãããããã¨ã¯ã»ã¨ãã©ãªã
+ã¨èãã¦ããï¼ãããã£ã¦ãã®ç¯ã§ã¯æ°å¼ã¢ã¼ãä¸ã®åæãã©ã³ããå¤æ´ããæ¹æ³ã«ã¤ãã¦ã¯
+è¨è¿°ããªãï¼ãã®æ¹æ³ã«ã¤ãã¦ã¯\ref{ssec-math}ç¯ãåç
§ã®ãã¨ï¼
+%
+
+
+\subsection{fontspec}
+\label{ssec-fontspec}
+%<*en>
+To coexist with the \Pkg{fontspec} package, it is needed to load
+\Pkg{luatexja-fontspec} package in the preamble. This additional
+package automatically loads \Pkg{luatexja} and \Pkg{fontspec}
+package, if needed.
+%
+%<*ja>
+\Pkg{fontspec}ããã±ã¼ã¸ã¨åæ§ã®æ©è½ãåæãã©ã³ãã«å¯¾ãã¦ãç¨ããããã«ã¯ï¼
+\Pkg{luatexja-fontspec}ããã±ã¼ã¸ãããªã¢ã³ãã«ã§èªã¿è¾¼ãå¿
è¦ãããï¼ãã®ããã±ã¼ã¸
+ã¯å¿
è¦ãªãã°èªåã§\Pkg{luatexja}ããã±ã¼ã¸ã¨\Pkg{fontspec}ããã±ã¼ã¸ãèªã¿è¾¼ãï¼
+%
+
+%<*en>
+In \Pkg{luatexja-fontspec} package, the following 7~commands are defined as
+counterparts of original commands in the \Pkg{fontspec} package:
+%
+%<*ja>
+\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã§ã¯ï¼ä»¥ä¸ã®7ã¤ã®ã³ãã³ãã\Pkg{fontspec}
+ããã±ã¼ã¸ã®å
ã®ã³ãã³ãã«å¯¾å¿ãããã®ã¨ãã¦å®ç¾©ãã¦ããï¼
+%
+
+%<*en>
+\begin{center}\small
+\begin{tabular}{ccccc}
+\toprule
+Japanese fonts
+&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+&\verb+\newjfontfamily+\\
+alphabetic fonts
+&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+&\verb+\newfontfamily+\\
+\midrule
+Japanese fonts
+&\verb+\newjfontface+&\verb+\defaultjfontfeatures+&\verb+\addjfontfeatures+\\
+alphabetic fonts
+&\verb+\newfontface+&\verb+\defaultfontfeatures+&\verb+\addfontfeatures+\\
+\bottomrule
+\end{tabular}
+\end{center}
+%
+%<*ja>
+\begin{center}\small
+\begin{tabular}{cccc}
+\toprule
+åæ
+&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+\\
+欧æ
+&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+\\
+\midrule
+åæ
+&\verb+\newjfontfamily+&\verb+\newjfontface+&\verb+\defaultjfontfeatures+\\
+欧æ
+&\verb+\newfontfamily+&\verb+\newfontface+&\verb+\defaultfontfeatures+\\
+\midrule
+åæ
+&\verb+\addjfontfeatures+\\
+欧æ
+&\verb+\addfontfeatures+\\
+\bottomrule
+\end{tabular}
+\end{center}
+%
+\begin{LTXexample}
+\fontspec[Numbers=OldStyle]{LMSans10-Regular}
+\jfontspec{IPAexMincho}
+JIS~X~0213:2004âè¾»
+
+\addjfontfeatures{CJKShape=JIS1990}
+JIS~X~0208:1990âè¾»
+\end{LTXexample}
+
+%<*en>
+Note that there is no command named \verb+\setmonojfont+, since it is
+popular for Japanese fonts that nearly all Japanese glyphs have same
+widths. Also note that the kerning feature is set off by default in
+these 7~commands, since this feature and \textbf{JAglue} will clash (see
+\ref{para-kern}).
+%
+%<*ja>
+åæãã©ã³ãã«ã¤ãã¦ã¯å
¨ã¦ã®åææåã®ã°ãªããã»ã¼çå¹
ã§ããã®ãæ®éã§ããããï¼
+\verb+\setmonojfont+ ã³ãã³ãã¯åå¨ããªããã¨ã«æ³¨æï¼ã¾ãï¼ãããã®åæç¨ã®7ã¤ã®ã³ã
+ã³ãã§ã¯Kerning featureã¯ããã©ã«ãã§ã¯offã¨ãªã£ã¦ããï¼ããã¯ãã®
+featureã\textbf{JAglue}ã¨è¡çªããããã§ããï¼\ref{para-kern}ç¯ãåç
§ï¼ï¼
+%
+
+%\subsection{Preset}
+%\subsection{ããªã»ããè¨å®}
+\label{ssec-preset}
+
+%<*en>
+To use standard Japanese font settings easily, one can load \Pkg{luatexja-preset}
+package with several options. This package provides functions in a part of
+\Pkg{otf} package and a part of \Pkg{PXchfon} package by Takayuki Yato,
+and loads \Pkg{luatexja-fontspec} internally.
+%
+%<*ja>
+ãã使ããã¦ããåæãã©ã³ãè¨å®ãä¸è¡ã§æå®ã§ããããã«ããã®ã
+\Pkg{luatexja-preset}ããã±ã¼ã¸ã§ããï¼ãã®ããã±ã¼ã¸ã¯ï¼
+\Pkg{otf}ããã±ã¼ã¸ã®ä¸é¨æ©è½ã¨å
«ç»å´ä¹æ°ã«ãã\Pkg{PXchfon}ããã±ã¼ã¸ã®ä¸é¨æ©è½ã¨ã
+åããããããªæ ¼å¥½ããã¦ããï¼å
é¨ã§\Pkg{luatexja-fontspec}ãèªã¿è¾¼ãã§ããï¼
+%
+
+%\paragraph{General options}
+%\paragraph{ä¸è¬çãªãªãã·ã§ã³}
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+\item[deluxe]
+%<*en>
+Specifying this option enables us to use \textit{mincho} with two weights (medium~and~bold),
+\textit{gothic} with three weights (medium,~bold and~heavy), and \textit{rounded gothic}%
+\footnote{Provided by \texttt{\char92mgfamily},
+because \textit{rounded gothic} is called \textit{maru gothic} (丸ã´ã·ãã¯) in Japanese.}.
+The heavy weight of \textit{gothic} can be used by ``changing the family'' \verb+\gtebfamily+.
+This is because \Pkg{fontspec} package can handle only medium (\verb+\mdseries+) and
+bold (\verb+\bfseries+).
+%
+%<*ja>
+ææä½2ã¦ã§ã¤ãã»ã´ã·ãã¯ä½3ã¦ã§ã¤ãã¨ï¼
+丸ã´ã·ãã¯ä½ (\verb+\mgfamily+) ã使ç¨å¯è½ã¨ããï¼
+ã´ã·ãã¯ä½ã¯ç´°åã»å¤ªåã»æ¥µå¤ªã®3ã¦ã§ã¤ãããããï¼æ¥µå¤ªã´ã·ãã¯ä½ã¯ãã¡ããªã®åãæ¿ã (\verb+\gtebfamily+) %
+ã§å®ç¾ãã¦ããï¼\Pkg{fontspec}ã§ã¯é常 (\verb+\mdseries+) ã¨å¤ªå (\verb+\bfseries+) ããæ±ããªãããã«
+ãã®ãããªä¸éå端ãªå®è£
ã«ãªã£ã¦ããï¼
+%
+\item[expert]
+%<*en>
+Use horizontal kana alternates, and define a control sequence \verb+\rubyfamily+ to use kana
+characters designed for ruby.
+%
+%横çµå°ç¨ä»®åãç¨ããï¼ã¾ãï¼\verb+\rubyfamily+ ã§ã«ãç¨ä»®åã使ç¨å¯è½ã¨ãªãï¼
+\item[bold]
+%Use bold gothic as bold mincho.
+%ææã®å¤ªåãã´ã·ãã¯ä½ã®å¤ªåã¨ããï¼
+\item[90jis]
+%Use 90JIS glyph variants if possible.
+%åºæ¥ãéã90JISã®åå½¢ã使ãï¼
+\item[jis2004]
+%Use JIS2004 glyph variants if possible.
+%åºæ¥ãéãJIS2004ã®åå½¢ã使ãï¼
+\item[jis]
+%<*en>
+Use the JFM \texttt{jfm-jis.lua}, instead of \texttt{jfm-ujis.lua}, which is the default JFM of
+\LuaTeX-ja.
+%
+%<*ja>
+ç¨ããJFMãï¼JISãã©ã³ãã¡ããªãã¯é¡ä¼¼ã®ï¼\texttt{jfm-jis.lua}ã«ããï¼ãã®ãªãã·ã§ã³ããªãæã¯
+\LuaTeX-jaæ¨æºã®\texttt{jfm-ujis.lua}ãç¨ããããï¼
+%
+\end{list}
+
+%\paragraph{Kozuka fonts}
+%\paragraph{å°å¡ãã©ã³ã}
+%<*en>
+There is not `Kozuka Maru Gothic', therefore Kozuka~Gothic~H is used
+as a substitute for \textit{rounded gothic}.
+%
+%<*ja>
+丸ã´ã·ãã¯ä½ã¯ãªãã®ã§ä¾¿å®ä¸å°å¡ã´ã·ãã¯Hã§ä»£ç¨ãã¦ããï¼
+%
+\par\nobreak\medskip
+{\centering\small
+\begin{tabular}{llll}
+\toprule
+&\tt kozuka-pro&\tt kozuka-pr6&\tt kozuka-pr6n\\
+\midrule
+%<*en>
+\bf mincho medium&Kozuka Mincho Pro R&Kozuka Mincho ProVI R&Kozuka Mincho Pr6N R\\
+\bf mincho bold&Kozuka Mincho Pro B&Kozuka Mincho ProVI B&Kozuka Mincho Pr6N B\\
+\midrule
+\bf gothic medium\\
+ without \texttt{deluxe}
+&Kozuka Gothic Pro M&Kozuka Gothic ProVI M&Kozuka Gothic Pr6N M\\
+ with \texttt{deluxe}
+&Kozuka Gothic Pro R&Kozuka Gothic ProVI R&Kozuka Gothic Pr6N R\\
+\midrule
+\bf gothic bold
+&Kozuka Gothic Pro B&Kozuka Gothic ProVI B&Kozuka Gothic Pr6N B\\
+\bf gothic heavy
+&Kozuka Gothic Pro H&Kozuka Gothic ProVI H&Kozuka Gothic Pr6N H\\
+(rounded gothic)
+&Kozuka Gothic Pro H&Kozuka Gothic ProVI H&Kozuka Gothic Pr6N H\\
+%
+%<*ja>
+\gtfamily ææä½ç´°å&å°å¡ææPro~R&å°å¡ææProVI~R&å°å¡ææPr6N~R\\
+\gtfamily ææä½å¤ªå&å°å¡ææPro~B&å°å¡ææProVI~B&å°å¡ææPr6N~B\\
+\midrule
+\gtfamily ã´ã·ãã¯ä½ç´°å\\
+ãåã¦ã§ã¤ãæ
+&å°å¡ã´ã·ãã¯Pro~M&å°å¡ã´ã·ãã¯ProVI~M&å°å¡ã´ã·ãã¯Pr6N~M\\
+ãå¤ã¦ã§ã¤ãæ
+&å°å¡ã´ã·ãã¯Pro~R&å°å¡ã´ã·ãã¯ProVI~R&å°å¡ã´ã·ãã¯Pr6N~R\\
+\midrule
+\gtfamily ã´ã·ãã¯ä½å¤ªå
+&å°å¡ã´ã·ãã¯Pro~B&å°å¡ã´ã·ãã¯ProVI~B&å°å¡ã´ã·ãã¯Pr6N~B\\
+\gtfamily ã´ã·ãã¯ä½æ¥µå¤ª
+&å°å¡ã´ã·ãã¯Pro~H&å°å¡ã´ã·ãã¯ProVI~H&å°å¡ã´ã·ãã¯Pr6N~H\\
+\inhibitglueï¼ä¸¸ã´ã·ãã¯ä½ï¼\inhibitglue
+&å°å¡ã´ã·ãã¯Pro~H&å°å¡ã´ã·ãã¯ProVI~H&å°å¡ã´ã·ãã¯Pr6N~H\\
+%
+\bottomrule
+\end{tabular}\par\medskip}
+
+%\paragraph{Hiragino and Morisawa}\
+%\paragraph{ãã©ã®ãã»ã¢ãªãµã¯}\
+\par\nobreak\medskip
+{\centering\small
+\begin{tabular}{lll}
+\toprule
+&\tt hiragino-pro&\tt hiragino-pron\\
+\midrule
+%<*en>
+\bf mincho medium&
+Hiragino Mincho Pro W3&Hiragino Mincho Pr6N W3\\
+\bf mincho bold&
+Hiragino Mincho Pro W6&Hiragino Mincho Pr6N W6\\
+\midrule
+\bf gothic medium\\
+ without \texttt{deluxe}
+&Hiragino Kaku Gothic Pro W6&Hiragino Kaku Gothic ProN W6\\
+ with \texttt{deluxe}
+&Hiragino Kaku Gothic Pro W3&Hiragino Kaku Gothic ProN W3\\
+\midrule
+\bf gothic bold&
+Hiragino Kaku Gothic Pro W6&Hiragino Kaku Gothic ProN W6\\
+\bf gothic heavy&
+Hiragino Kaku Gothic Std W8&Hiragino Kaku Gothic StdN W8\\
+\bf rounded gothic&
+Hiragino Maru Gothic Pro W4&Hiragino Maru Gothic ProN W4\\
+%
+%<*ja>
+\gtfamily ææä½ç´°å&
+ãã©ã®ãææä½Pro~W3&ãã©ã®ãææä½Pr6N~W3\\
+\gtfamily ææä½å¤ªå&
+ãã©ã®ãææä½Pro~W6&ãã©ã®ãææä½Pr6N~W6\\
+\midrule
+\gtfamily ã´ã·ãã¯ä½ç´°ç´°å\\
+ãåã¦ã§ã¤ãæ
+&ãã©ã®ãè§ã´Pro~W6&ãã©ã®ãè§ã´ProN~W6\\
+ãå¤ã¦ã§ã¤ãæ
+&ãã©ã®ãè§ã´Pro~W3&ãã©ã®ãè§ã´ProN~W3\\
+\midrule
+\gtfamily ã´ã·ãã¯ä½å¤ªå&
+ãã©ã®ãè§ã´Pro~W6&ãã©ã®ãè§ã´ProN~W6\\
+\gtfamily ã´ã·ãã¯ä½æ¥µå¤ª&
+ãã©ã®ãè§ã´Std~W8&ãã©ã®ãè§ã´StdN~W8\\
+\gtfamily 丸ã´ã·ãã¯ä½&
+ãã©ã®ã丸ã´Pro~W4&ãã©ã®ã丸ã´ProN~W4\\
+%
+\midrule
+\midrule
+&\tt morisawa-pro&\tt morisawa-pr6n\\
+\midrule
+%<*en>
+\bf mincho medium&
+Ryumin Pro L-KL&Ryumin Pr6N L-KL\\
+\bf mincho bold&
+Futo Min A101 Pro Bold&Futo Min A101 Pr6N Bold\\
+\bf gothic medium&
+Chu Gothic BBB Pro Med&Chu Gothic BBB Pr6N Med\\
+\bf gothic bold&
+Futo Go B101 Pro Bold&Futo Go B101 Pr6N Bold\\
+\bf gothic heavy&
+Midashi Go Pro MB31&Midashi Go Pr6N MB31\\
+\bf rounded gothic&
+Jun Pro 101&Jun Pr6N 101\\
+%
+%<*ja>
+\gtfamily ææä½ç´°å&
+ãªã¥ã¦ãã³Pro~L-KL&ãªã¥ã¦ãã³Pr6N~L-KL\\
+\gtfamily ææä½å¤ªå&
+太ãã³A101~Pro~Bold&太ãã³A101~Pr6N~Bold\\
+\gtfamily ã´ã·ãã¯ä½ç´°å&
+ä¸ã´ã·ãã¯BBB~Pro~Med&ä¸ã´ã·ãã¯BBB~Pr6N~Med\\
+\gtfamily ã´ã·ãã¯ä½å¤ªå&
+太ã´B101~Pro~Bold&太ã´B101~Pr6N~Bold\\
+\gtfamily ã´ã·ãã¯ä½æ¥µå¤ª&
+è¦åºã´Pro~MB31&è¦åºã´Pr6N~MB31\\
+\gtfamily 丸ã´ã·ãã¯ä½&
+ãã
ãPro 101&ãã
ãPr6N 101\\
+%
+\bottomrule
+\end{tabular}\par\medskip}
+
+%\paragraph{Settings for single weight}
+%\paragraph{åã¦ã§ã¤ãç¨è¨å®}
+%<*en>
+Next, we describe settings for using only single weight.
+In four settings below, we use same fonts for medium and bold (and heavy) weights.
+(Hence \verb+\mcfamily\bfseries+ and \verb+\mcfamily\mdseries+ yields same Japanese fonts,
+if \texttt{deluxe} option is also specified).
%
%<*ja>
-\item åæãã©ã³ããã¡ããªã®å®ç¾©ã«ã¯ \verb+\DeclareFontFamily+ ã®
- 代ããã« \verb+\DeclareKanjiFamily+ ãç¨ããï¼ãããï¼ç¾å¨ã®
- å®è£
ã§ã¯ \verb+\DeclareFontFamily+ ãç¨ãã¦ãåé¡ã¯çããªãï¼
+次ã«ï¼åã¦ã§ã¤ãç¨ã®è¨å®ãè¿°ã¹ãï¼ãã®4è¨å®ã§ã¯ãç´°åãã太åãã®åºå¥ã¯ãªãï¼
+ã¾ãï¼ä¸¸ã´ã·ãã¯ä½ã¯ã´ã·ãã¯ä½ã¨åããã©ã³ããç¨ããï¼
%
-\end{itemize}
-
-\subsection{fontspec}
-\label{ssec-fontspec}
+\par\nobreak\medskip
+{\centering\small
+\begin{tabular}{lllll}
+\toprule
+&\tt noembed&\tt ipa&\tt ipaex&\tt ms\\
+\midrule
%<*en>
-To coexist with the \Pkg{fontspec} package, it is needed to load
-\Pkg{luatexja-fontspec} package in the preamble. This additional
-package automatically loads \Pkg{luatexja} and \Pkg{fontspec}
-package, if needed.
+\bf mincho&Ryumin-Light (non-embedded)
+&IPAMincho&IPAexMincho&MS Mincho\\
+\bf gothic&GothicBBB-Medium (non-embedded)
+&IPAGothic&IPAexGothic&MS Gothic\\
%
%<*ja>
-\Pkg{fontspec} ããã±ã¼ã¸ã¨åæ§ã®æ©è½ãåæãã©ã³ãã«å¯¾ãã¦ãç¨ããããã«ã¯ï¼
-\Pkg{luatexja-fontspec} ããã±ã¼ã¸ãããªã¢ã³ãã«ã§èªã¿è¾¼ãå¿
è¦ãããï¼ãã®ããã±ã¼ã¸
-ã¯å¿
è¦ãªãã°èªå㧠\Pkg{luatexja} ããã±ã¼ã¸ã¨ \Pkg{fontspec} ããã±ã¼ã¸ãèªã¿è¾¼ãï¼
+\gtfamily ææä½&Ryumin-Lightï¼éåè¾¼ï¼
+&IPAææ&IPAexææ&MSææ\\
+\gtfamily ã´ã·ãã¯ä½&GothicBBB-Mediumï¼éåè¾¼ï¼
+&IPAã´ã·ãã¯&IPAexã´ã·ãã¯&MSã´ã·ãã¯\\
%
+\bottomrule
+\end{tabular}\par\medskip}
+%\paragraph{Using HG fonts}
+%\paragraph{HGãã©ã³ãã®å©ç¨}
%<*en>
-In \Pkg{luatexja-fontspec} package, the following 7~commands are defined as
-counterparts of original commands in the \Pkg{fontspec} package:
+We can use HG~fonts bundled with Microsoft Office for realizing multiple weights in Japanese fonts.
%
%<*ja>
-\Pkg{luatexja-fontspec} ããã±ã¼ã¸ã§ã¯ï¼ä»¥ä¸ã®7ã¤ã®ã³ãã³ãã \Pkg{fontspec}
-ããã±ã¼ã¸ã®å
ã®ã³ãã³ãã«å¯¾å¿ãããã®ã¨ãã¦å®ç¾©ãã¦ããï¼
+ããåã«æ¸ããåã¦ã§ã¤ãç¨è¨å®ãï¼Microsoft Officeçã«ä»å±ããHGãã©ã³ãã使ã£ã¦
+å¤ã¦ã§ã¤ãåããè¨å®ãããï¼
%
-%<*en>
-\begin{center}
-\begin{tabular}{ccccc}
+\par\nobreak\medskip
+{\centering\small
+\begin{tabular}{llll}
\toprule
-Japanese fonts
-&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+&\verb+\newjfontfamily+\\
-alphabetic fonts
-&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+&\verb+\newfontfamily+\\
+&\tt ipa-hg&\tt ipaex-hg&\tt ms-hg\\
\midrule
-Japanese fonts
-&\verb+\newjfontface+&\verb+\defaultjfontfeatures+&\verb+\addjfontfeatures+\\
-alphabetic fonts
-&\verb+\newfontface+&\verb+\defaultfontfeatures+&\verb+\addfontfeatures+\\
+%<*en>
+\bf mincho medium
+&IPAMincho&IPAexMincho&MS Mincho\\\midrule
+\bf mincho bold&
+\multicolumn{3}{c}{HG Mincho E}\\\midrule
+\bf Gothic medium\\
+~~without \texttt{deluxe}
+&IPAGothic&IPAexGothic&MS Gothic\\
+~~with {\tt jis2004}
+&IPAGothic&IPAexGothic&MS Gothic\\
+\cmidrule(lr){1-4}
+~~otherwise&
+\multicolumn{3}{c}{HG Gothic M}\\\midrule
+\bf gothic bold&
+\multicolumn{3}{c}{HG Gothic E}\\\midrule
+\bf gothic heavy&
+\multicolumn{3}{c}{HG Soei Kaku Gothic UB}\\\midrule
+\bf rounded gothic&
+\multicolumn{3}{c}{HG Maru Gothic PRO}\\
+%
+%<*ja>
+\gtfamily ææä½ç´°å
+&IPAææ&IPAexææ&MSææ\\\midrule
+\gtfamily ææä½å¤ªå&
+\multicolumn{3}{c}{HGææE}\\\midrule
+\gtfamily ã´ã·ãã¯ä½ç´°å\\
+ãåã¦ã§ã¤ãæ
+&IPAã´ã·ãã¯&IPAexã´ã·ãã¯&MSã´ã·ãã¯\\
+ã{\tt jis2004}æå®æ
+&IPAã´ã·ãã¯&IPAexã´ã·ãã¯&MSã´ã·ãã¯\\
+\cmidrule(lr){1-4}
+ããã以å¤ã®æ&
+\multicolumn{3}{c}{HGã´ã·ãã¯M}\\\midrule
+\gtfamily ã´ã·ãã¯ä½å¤ªå&
+\multicolumn{3}{c}{HGã´ã·ãã¯E}\\\midrule
+\gtfamily ã´ã·ãã¯ä½æ¥µå¤ª&
+\multicolumn{3}{c}{HGåµè±è§ã´ã·ãã¯UB}\\\midrule
+\gtfamily 丸ã´ã·ãã¯ä½&
+\multicolumn{3}{c}{HG丸ã´ã·ãã¯ä½PRO}\\
+%
\bottomrule
-\end{tabular}
-\end{center}
+\end{tabular}\par\medskip}
+
+%<*en>
+Note that HG~Mincho~E, HG~Gothic~E, HG Soei Kaku Gothic UB and HG Maru Gothic PRO
+are internally specified by:
+\begin{description}
+\item[default] by font name (\texttt{HGMinchoE}, etc.).
+\item[{\tt 90jis}] by filename (\texttt{hgrme.ttc}, \texttt{hgrge.ttc}, \texttt{hgrsgu.ttc}, \texttt{hgrsmp.ttf}).
+\item[{\tt jis2004}] by filename (\texttt{hgrme04.ttc}, \texttt{hgrge04.ttc}, \texttt{hgrsgu04.ttc}, \texttt{hgrsmp04.ttf}).
+\end{description}
%
%<*ja>
-\begin{center}
-\begin{tabular}{ccccc}
-\toprule
-åæãã©ã³ã
-&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+&\verb+\newjfontfamily+\\
-欧æãã©ã³ã
-&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+&\verb+\newfontfamily+\\
-\midrule
-åæãã©ã³ã
-&\verb+\newjfontface+&\verb+\defaultjfontfeatures+&\verb+\addjfontfeatures+\\
-欧æãã©ã³ã
-&\verb+\newfontface+&\verb+\defaultfontfeatures+&\verb+\addfontfeatures+\\
-\bottomrule
-\end{tabular}
-\end{center}
+ãªãï¼HGææEã»HGã´ã·ãã¯Eã»HGåµè±è§ã´ã·ãã¯UBã»HG丸ã´ã·ãã¯ä½PROã®4ã¤ã«ã¤ãã¦ã¯ï¼å
é¨ã§
+\begin{description}
+\item[æ¨æº] ãã©ã³ãåï¼\texttt{HGMinchoE} ãªã©ï¼
+\item[{\tt 90jis}æå®æ] ãã¡ã¤ã«å (%
+\texttt{hgrme.ttc}, \texttt{hgrge.ttc}, \texttt{hgrsgu.ttc}, \texttt{hgrsmp.ttf})
+\item[{\tt jis2004}æå®æ] ãã¡ã¤ã«å (%
+\texttt{hgrme04.ttc}, \texttt{hgrge04.ttc}, \texttt{hgrsgu04.ttc}, \texttt{hgrsmp04.ttf})
+\end{description}
+ã¨ãã¦æå®ãè¡ã£ã¦ããã®ã§æ³¨æãããã¨ï¼
+%
+
+
+%<*en>
+\subsection{\texttt{\char92 CID}, \texttt{\char92 UTF} and macros in \Pkg{otf} package}
+Under \pLaTeX, \Pkg{otf} package (developed by Shuzaburo Saito) is
+used for typesetting characters which is in Adobe-Japan1-6 CID but not
+in JIS~X~0208. Since this package is widely used, \LuaTeX-ja
+supports some of functions in \Pkg{otf} package.
+If you want to use these functions, load \Pkg{luatexja-otf} package.
+%
+%<*ja>
+\subsection{\texttt{\char92 CID}, \texttt{\char92 UTF}ã¨\Pkg{otf}ããã±ã¼ã¸ã®ãã¯ã}
+\pLaTeX ã§ã¯ï¼JIS~X~0208ã«ãªãAdobe-Japan1-6ã®æåãåºåããããã«ï¼
+é½è¤ä¿®ä¸éæ°ã«ãã\Pkg{otf}ããã±ã¼ã¸ãç¨ãããã¦ããï¼ãã®ããã±ã¼ã¸ã¯
+åºãç¨ãããã¦ããããï¼\LuaTeX-jaã«ããã¦ã\Pkg{otf}ããã±ã¼ã¸ã®æ©è½ã®
+ä¸é¨ããµãã¼ããã¦ããï¼ãããã®æ©è½ãç¨ããããã«ã¯\Pkg{luatexja-otf}ããã±ã¼ã¸
+ãèªã¿è¾¼ãã°ããï¼
%
\begin{LTXexample}
-\fontspec[Numbers=OldStyle]{TeX Gyre Termes}
-\jfontspec{IPAexMincho}
-JIS~X~0213:2004âè¾»
+\jfontspec{KozMinPr6N-Regular.otf}
+森\UTF{9DD7}å¤ã¨å
ç°ç¾\UTF{9592}ã¨ã\UTF{9AD9}島å±ã«è¡ãã
-\addjfontfeatures{CJKShape=JIS1990}
-JIS~X~0208:1990âè¾»
+\CID{7652}飾åºã®\CID{13706}é家ï¼
+\CID{1481}åå¸ï¼è西é§
ï¼
+é«å´ã¨\CID{8705}\UTF{FA11}
+
+\ajåè§{ã¯ãããã«ã¿ã«ã}
\end{LTXexample}
-%<*en>
-Note that there is no command named \verb+\setmonojfont+, since it is
-popular for Japanese fonts that nearly all Japanese glyphs have same
-widths. Also note that the kerning feature is set off by default in
-these 7~commands, since this feature and \textbf{JAglue} will clash (see
-\ref{para-kern}).
-%
%<*ja>
-åæãã©ã³ãã«ã¤ãã¦ã¯å
¨ã¦ã®åææåã®ã°ãªããã»ã¼çå¹
ã§ããã®ãæ®éã§ããããï¼
-\verb+\setmonojfont+ ã³ãã³ãã¯åå¨ããªããã¨ã«æ³¨æï¼ã¾ãï¼ãããã®åæç¨ã®7ã¤ã®ã³ã
-ã³ãã§ã¯ Kerning feature ã¯ããã©ã«ãã§ã¯ off ã¨ãªã£ã¦ããï¼ããã¯ãã®
-feature ã \textbf{JAglue} ã¨è¡çªããããã§ããï¼\ref{para-kern} ç¯ãåç
§ï¼ï¼
+\Pkg{otf}ããã±ã¼ã¸ã§ã¯ï¼ãããã次ã®ãããªãªãã·ã§ã³ãåå¨ããï¼
+\begin{description}
+\item[\texttt{deluxe}] ææä½ã»ã´ã·ãã¯ä½å2ã¦ã§ã¤ãã¨ï¼ä¸¸ã´ã·ãã¯ä½ãæ±ããããã«ãªãï¼
+\item[\texttt{expert}] ä»®åã横çµã»ç¸¦çµå°ç¨ã®ãã®ã«åãæ¿ããï¼ã«ãç¨ä»®åãæ±ããããã«ãªãï¼
+\item[\texttt{bold}] ã´ã·ãã¯ä½ãæ¨æºã§å¤ªãã¦ã§ã¤ãã®ãã®ã«è¨å®ããï¼
+\end{description}
+ããããããã®ãªãã·ã§ã³ã¯\Pkg{luatexja-otf}ããã±ã¼ã¸ã«ã¯åå¨ããªãï¼
+\Pkg{otf}ããã±ã¼ã¸ãææ¸ä¸ã§ä½¿ç¨ããåæç¨TFMãèªåã®ç©ã«ç½®ãæãã¦ããã®ã«å¯¾ãï¼
+\Pkg{luatexja-otf}ããã±ã¼ã¸ã§ã¯ï¼ãã®ãããªãã¨ã¯è¡ããªãããã§ããï¼
+
+ããã3ãªãã·ã§ã³ã«ã¤ãã¦ã¯ï¼
+\Pkg{luatexja-preset} ããã±ã¼ã¸ã«ããªã»ããã使ãæã«ä¸ç·ã«æå®ãããï¼
+ãããã¯å¯¾å¿ããå
容ã\ref{ssub-chgfnt}ç¯ (NFSS2) ã
+\ref{ssec-fontspec}ç¯ (\Pkg{fontspec}) ã®æ¹æ³ã§æåã§æå®ããå¿
è¦ãããï¼
%
%\section{Changing Parameters}
@@ -1060,30 +1423,31 @@ parameters, you have to use commands \verb+\ltjsetparameter+ and
\verb+\ltjgetparameter+.
%
%<*ja>
-\LuaTeX-ja ã«ã¯å¤ãã®ãã©ã¡ã¼ã¿ãåå¨ããï¼ãã㦠\LuaTeX ã®ä»æ§ã®ããã«ï¼
-ãã®å¤ã㯠\TeX ã®ã¬ã¸ã¹ã¿ã«ã§ã¯ãªãï¼\LuaTeX-ja ç¬èªã®æ¹æ³ã§ä¿æããã¦ããï¼
+\LuaTeX-jaã«ã¯å¤ãã®ãã©ã¡ã¼ã¿ãåå¨ããï¼ããã¦\LuaTeX ã®ä»æ§ã®ããã«ï¼
+ãã®å¤ãã¯\TeX ã®ã¬ã¸ã¹ã¿ã«ã§ã¯ãªãï¼\LuaTeX-jaç¬èªã®æ¹æ³ã§ä¿æããã¦ããï¼
ãã®ããï¼ãããã®ãã©ã¡ã¼ã¿ãè¨å®ã»åå¾ããããã«ã¯ \verb+\ltjsetparameter+ 㨠\verb+\ltjgetparameter+ ã
ç¨ããå¿
è¦ãããï¼
%
%\subsection{Editing the range of \textbf{JAchar}s}
-%\subsection{\textbf{JAchar} ã®ç¯å²ã®è¨å®}
+%\subsection{\textbf{JAchar}ã®ç¯å²ã®è¨å®}
+\label{ssec-setrange}
%<*en>
To edit the range of \textbf{JAchar}s, you have to assign a non-zero
natural number which is less than 217 to the character range first. This
-can be done by using \verb+\ltjdefcharrange+ primitive. For example, the
+can be done by using \verb+\ltjdefcharrange+. For example, the
next line assigns whole characters in Supplementary Ideographic Plane
and the character `æ¼¢' to the range number~100.
%
%<*ja>
-\textbf{JAchar} ã®ç¯å²ãè¨å®ããããã«ã¯ï¼ã¾ãåæåã«0ãã大ãã217ããå°ãã index ã
-å²ãå½ã¦ãå¿
è¦ãããï¼ããã«ã¯ \verb+\ltjdefcharrange+ ããªããã£ããç¨ããï¼
-ä¾ãã°ï¼æ¬¡ã®ããã«æ¸ããã¨ã§è¿½å æ¼¢åé¢ (SIP) ã«ããå
¨ã¦ã®æå㨠`æ¼¢' ã
+\textbf{JAchar}ã®ç¯å²ãè¨å®ããããã«ã¯ï¼ã¾ãåæåã«0ãã大ãã217ããå°ããindexã
+å²ãå½ã¦ãå¿
è¦ãããï¼ããã«ã¯ \verb+\ltjdefcharrange+ ãç¨ããï¼
+ä¾ãã°ï¼æ¬¡ã®ããã«æ¸ããã¨ã§è¿½å æ¼¢åé¢(SIP)ã«ããå
¨ã¦ã®æåã¨`æ¼¢'ã
ã100çªã®æåç¯å²ãã«å±ããããã«è¨å®ãããï¼
%
\begin{lstlisting}
-\ltjdefcharrange{100}{"10000-"1FFFF,`æ¼¢}
+\ltjdefcharrange{100}{"20000-"2FFFF,`æ¼¢}
\end{lstlisting}
%<*en>
This assignment of numbers to ranges are always global, so you should
@@ -1103,8 +1467,8 @@ removed from the range~4.
%
%<*ja>
ããæå®ãããããæåãããéé¶çªå·ã®ç¯å²ã«å±ãã¦ãããªãã°ï¼ããã¯æ°ããè¨å®ã§
-ä¸æ¸ããããï¼ä¾ãã°ï¼SIP ã¯å
¨ã¦ \LuaTeX-ja ã®ããã©ã«ãã§ã¯4çªã®æåç¯å²ã«
-å±ãã¦ãããï¼ä¸è¨ã®æå®ãè¡ãã° SIP ã¯100çªã«å±ãããã«ãªãï¼4çªããã¯é¤ãããï¼
+ä¸æ¸ããããï¼ä¾ãã°ï¼SIPã¯å
¨ã¦\LuaTeX-jaã®ããã©ã«ãã§ã¯4çªã®æåç¯å²ã«
+å±ãã¦ãããï¼ä¸è¨ã®æå®ãè¡ãã°SIPã¯100çªã«å±ãããã«ãªãï¼4çªããã¯é¤ãããï¼
%
%<*en>
@@ -1114,8 +1478,8 @@ be used to customize which character range will be treated as ranges of
setting of \LuaTeX-ja):
%
%<*ja>
-æåç¯å²ã«çªå·ãå²ãå½ã¦ãå¾ã¯ï¼\textsf{jacharrange} ãã©ã¡ã¼ã¿ã \textbf{JAchar} ã¨
-ãã¦æ±ãããæåã®ç¯å²ãè¨å®ããããã«ç¨ããããï¼ä¾ãã°ï¼ä»¥ä¸ã¯ \LuaTeX-ja ã®
+æåç¯å²ã«çªå·ãå²ãå½ã¦ãå¾ã¯ï¼\textsf{jacharrange}ãã©ã¡ã¼ã¿ã\textbf{JAchar}ã¨
+ãã¦æ±ãããæåã®ç¯å²ãè¨å®ããããã«ç¨ããããï¼ä¾ãã°ï¼ä»¥ä¸ã¯\LuaTeX-jaã®
åæè¨å®ã§ããï¼
%
\begin{verbatim}
@@ -1128,9 +1492,9 @@ range~$n$ are treated as \textbf{ALchar}', and positive integer $+n$ means
that `the characters that belong to range~$n$ are treated as \textbf{JAchar}'.
%
%<*ja>
-\textsf{jacharrange} ãã©ã¡ã¼ã¿ã«ã¯æ´æ°ã®ãªã¹ããä¸ããï¼
-ãªã¹ãä¸ã®è² ã®æ´æ° $-n$ ã¯ãæåç¯å² $n$ ã«å±ããæå㯠\textbf{ALchar} ã¨ãã¦
-æ±ãããããã¨ãæå³ãï¼æ£ã®æ´æ° $+n$ 㯠\textbf{JAchar} ã¨ãã¦æ±ããã¨ãæå³ããï¼
+\textsf{jacharrange}ãã©ã¡ã¼ã¿ã«ã¯æ´æ°ã®ãªã¹ããä¸ããï¼
+ãªã¹ãä¸ã®è² ã®æ´æ°$-n$ã¯ãæåç¯å²$n$ã«å±ããæåã¯\textbf{ALchar}ã¨ãã¦
+æ±ãããããã¨ãæå³ãï¼æ£ã®æ´æ°$+n$ã¯\textbf{JAchar}ã¨ãã¦æ±ããã¨ãæå³ããï¼
%
%<*en>
@@ -1140,29 +1504,16 @@ determined from the following data:
%
%<*ja>
\paragraph{åæè¨å®}
-\LuaTeX-ja ã§ã¯8ã¤ã®æåç¯å²ãè¨å®ãã¦ããï¼ãããã¯ä»¥ä¸ã®ãã¼ã¿ã«åºã¥ãã¦æ±ºå®ãã¦
+\LuaTeX-jaã§ã¯8ã¤ã®æåç¯å²ãè¨å®ãã¦ããï¼ãããã¯ä»¥ä¸ã®ãã¼ã¿ã«åºã¥ãã¦æ±ºå®ãã¦
ããï¼
%
\begin{itemize}
-%<*en>
-\item Blocks in Unicode~6.0.
-%
-%<*ja>
-\item Unicode~6.0 ã®ãããã¯ï¼
-%
-%<*en>
-\item The \texttt{Adobe-Japan1-UCS2} mapping between a CID Adobe-Japan1-6 and Unicode.
-%
-%<*ja>
-\item \texttt{Adobe-Japan1-UCS2} ã«ãã Adobe-Japan1-6 ã® CID 㨠Unicode ã®éã®
- ãããã³ã°ï¼
-%
-%<*en>
-\item The \texttt{PXbase} bundle for \upTeX\ by Takayuki Yato.
-%
-%<*ja>
-\item å
«ç»å´ä¹æ°ã«ãã \upTeX ç¨ã® \texttt{PXbase} ãã³ãã«ï¼
-%
+%\item Blocks in Unicode~6.0.
+%\item Unicode~6.0ã®ãããã¯ï¼
+%\item The \texttt{Adobe-Japan1-UCS2} mapping between a CID Adobe-Japan1-6 and Unicode.
+%\item Adobe-Japan1-6ã®CIDã¨Unicodeã®éã®å¯¾å¿è¡¨\texttt{Adobe-Japan1-UCS2}ï¼
+%\item The \Pkg{PXbase} bundle for \upTeX\ by Takayuki Yato.
+%\item å
«ç»å´ä¹æ°ã«ãã\upTeX ç¨ã®\Pkg{PXbase}ãã³ãã«ï¼
\end{itemize}
%<*en>
@@ -1172,9 +1523,9 @@ number shows whether characters in the range is treated as
\texttt{prefercjk} settings defined in \texttt{PXbase} bundle.
%
%<*ja>
-以ä¸ã§ã¯ããã8ã¤ã®æåç¯å²ã«ã¤ãã¦è¨è¿°ããï¼çªå·ã®ãã¨ã®ã¢ã«ãã¡ããã `J' 㨠`A'
-ã¯ããã©ã«ã㧠\textbf{JAchar} ã \textbf{ALchar} ãã表ãã¦ããï¼ãããã®è¨å®ã¯
-\texttt{PXbase} ãã³ãã«ã§å®ç¾©ããã¦ãã \texttt{prefercjk} ã¨é¡ä¼¼ã®ãã®ã§ããï¼
+以ä¸ã§ã¯ããã8ã¤ã®æåç¯å²ã«ã¤ãã¦è¨è¿°ããï¼çªå·ã®ãã¨ã®ã¢ã«ãã¡ããã`J'ã¨`A'
+ã¯ããã©ã«ãã§\textbf{JAchar}ã\textbf{ALchar}ãã表ãã¦ããï¼ãããã®è¨å®ã¯
+\texttt{PXbase}ãã³ãã«ã§å®ç¾©ããã¦ãã\texttt{prefercjk}ã¨é¡ä¼¼ã®ãã®ã§ããï¼
%
\begin{description}
%<*en>
@@ -1183,14 +1534,13 @@ number shows whether characters in the range is treated as
consists of the following characters:
%
%<*ja>
-\item[ç¯å² 8${}^{\text{J}}$] ISO~8859-1 ã®ä¸ä½é åï¼ã©ãã³1è£å©ï¼ã¨
- JIS~X~0208 ã®å
±éé¨åã«ããè¨å·ï¼ãã®æåç¯å²ã¯
+\item[ç¯å²8${}^{\text{J}}$] ISO~8859-1ã®ä¸ä½é åï¼ã©ãã³1è£å©ï¼ã¨
+ JIS~X~0208ã®å
±éé¨åã«ããè¨å·ï¼ãã®æåç¯å²ã¯
以ä¸ã®æåã§æ§æãããï¼
%
\begin{multicols}{2}
\begin{itemize}
\def\ch#1#2{\item \char"#1\ (\texttt{U+00#1}, #2)}%"
-%<*en>
\ch{A7}{Section Sign}
\ch{A8}{Diaeresis}
\ch{B0}{Degree sign}
@@ -1199,17 +1549,6 @@ number shows whether characters in the range is treated as
\ch{B6}{Paragraph sign}
\ch{D7}{Multiplication sign}
\ch{F7}{Division Sign}
-%
-%<*ja>
-\ch{A7}{ç¯è¨å·}
-\ch{A8}{ãã¬ã}
-\ch{B0}{度}
-\ch{B1}{æ£åã¯è² 符å·}
-\ch{B4}{ã¢ãã¥ã¼ãã»ã¢ã¯ã»ã³ã}
-\ch{B6}{段è½è¨å·}
-\ch{D7}{ä¹ç®è¨å·}
-\ch{F7}{é¤ç®è¨å·}
-%
\end{itemize}
\end{multicols}
@@ -1218,13 +1557,12 @@ number shows whether characters in the range is treated as
This range consist of the following Unicode ranges, \emph{except characters in the range~8 above}:
%
%<*ja>
-\item[ç¯å² 1${}^{\text{A}}$] ã©ãã³æåï¼ä¸é¨ã¯Adobe-Japan1-6 ã«ãå«ã¾ãã¦ããï¼
- ãã®ç¯å²ã¯ä»¥ä¸ã® Unicode ã®ãããã¯ããæ§æããã¦ããï¼
- \textbf{ãã ãï¼ç¯å² 8 ã¯é¤ãï¼}
+\item[ç¯å²1${}^{\text{A}}$] ã©ãã³æåï¼ä¸é¨ã¯Adobe-Japan1-6ã«ãå«ã¾ãã¦ããï¼
+ ãã®ç¯å²ã¯ä»¥ä¸ã®Unicodeã®ãããã¯ããæ§æããã¦ããï¼
+ \textbf{ãã ãï¼ç¯å²8ã¯é¤ãï¼}
%
\begin{multicols}{2}
\begin{itemize}
-%<*en>
\item \texttt{U+0080}--\texttt{U+00FF}: Latin-1 Supplement
\item \texttt{U+0100}--\texttt{U+017F}: Latin Extended-A
\item \texttt{U+0180}--\texttt{U+024F}: Latin Extended-B
@@ -1232,16 +1570,6 @@ This range consist of the following Unicode ranges, \emph{except characters in t
\item \texttt{U+02B0}--\texttt{U+02FF}: Spacing Modifier Letters
\item \texttt{U+0300}--\texttt{U+036F}: Combining Diacritical Marks
\item \texttt{U+1E00}--\texttt{U+1EFF}: Latin Extended Additional
-%
-%<*ja>
-\item \texttt{U+0080}--\texttt{U+00FF}: ã©ãã³1è£å©
-\item \texttt{U+0100}--\texttt{U+017F}: ã©ãã³æåæ¡å¼µA
-\item \texttt{U+0180}--\texttt{U+024F}: ã©ãã³æåæ¡å¼µB
-\item \texttt{U+0250}--\texttt{U+02AF}: IPAæ¡å¼µï¼å½éé³å£°è¨å·ï¼
-\item \texttt{U+02B0}--\texttt{U+02FF}: åé²ãä¼´ã修飾æå
-\item \texttt{U+0300}--\texttt{U+036F}: ãã¤ã¢ã¯ãªãã£ã«ã«ãã¼ã¯ï¼åæå¯è½ï¼
-\item \texttt{U+1E00}--\texttt{U+1EFF}: ã©ãã³æåæ¡å¼µè¿½å
-%
\par\
\end{itemize}
\end{multicols}
@@ -1250,7 +1578,7 @@ This range consist of the following Unicode ranges, \emph{except characters in t
fonts) has some of these characters.
%
%<*ja>
-\item[ç¯å² 2${}^{\text{J}}$] ã®ãªã·ã£æåã¨ããªã«æåï¼JIS~X~0208ï¼ãããã£ã¦å¤ãã®
+\item[ç¯å²2${}^{\text{J}}$] ã®ãªã·ã£æåã¨ããªã«æåï¼JIS~X~0208ï¼ãããã£ã¦ã»ã¨ãã©ã®
åæãã©ã³ãï¼ã¯ãããã®æåãæã¤ï¼
%
\begin{multicols}{2}
@@ -1261,7 +1589,7 @@ This range consist of the following Unicode ranges, \emph{except characters in t
\item \texttt{U+1F00}--\texttt{U+1FFF}: Greek Extended
%
%<*ja>
-\item \texttt{U+0370}--\texttt{U+03FF}: ã®ãªã·ã¢æååã³ã³ããæå
+\item \texttt{U+0370}--\texttt{U+03FF}: ã®ãªã·ã¢æåã»ã³ããæå
\item \texttt{U+0400}--\texttt{U+04FF}: ããªã«æå
\item \texttt{U+1F00}--\texttt{U+1FFF}: ããªã«æåè£å©
%
@@ -1273,21 +1601,16 @@ This range consist of the following Unicode ranges, \emph{except characters in t
indicated in Table~\ref{table-rng3}.
%
%<*ja>
-\item[ç¯å² 3${}^{\text{J}}$] å¥èªç¹ã¨è¨å·é¡ï¼ãããã¯ã®ãªã¹ãã¯è¡¨~\ref{table-rng3}
+\item[ç¯å²3${}^{\text{J}}$] å¥èªç¹ã¨è¨å·é¡ï¼ãããã¯ã®ãªã¹ãã¯è¡¨\ref{table-rng3}%
ã«ç¤ºãã¦ããï¼
%
\begin{table}[!tb]
-%<*en>
-\caption{Unicode blocks in predefined character range~3.}
-%
-%<*ja>
-\caption{æåç¯å² 3 ã«æå®ããã¦ãã Unicode ãããã¯ï¼}
-%
+%\caption{Unicode blocks in predefined character range~3.}
+%\caption{æåç¯å²3ã«æå®ããã¦ããUnicodeãããã¯ï¼}
\label{table-rng3}
\catcode`\"=13\def"#1#2#3#4{\texttt{U+#1#2#3#4}}%"
\begin{center}\small
\begin{tabular}{llll}
-%<*en>
"2000--"206F&General Punctuation&
"2070--"209F&Superscripts and Subscripts\\
"20A0--"20CF&Currency Symbols&
@@ -1305,30 +1628,7 @@ This range consist of the following Unicode ranges, \emph{except characters in t
"2700--"27BF&Dingbats&
"2900--"297F&Supplemental Arrows-B\\
"2980--"29FF&Misc.\ Mathematical Symbols-B&
-"2B00--"2BFF&Miscellaneous Symbols and Arrows\\
-"E000--"F8FF&Private Use Area&
-%
-%<*ja>
-"2000--"206F&ä¸è¬å¥èªç¹&
-"2070--"209F&ä¸ä»ãã»ä¸ä»ã\\
-"20A0--"20CF&é貨è¨å·&
-"20D0--"20FF&è¨å·ç¨ãã¤ã¢ã¯ãªãã£ã«ã«ãã¼ã¯ï¼åæå¯è½ï¼\\
-"2100--"214F&æåæ§è¨å·&
-"2150--"218F&æ°åã«æºãããã®\\
-"2190--"21FF&ç¢å°&
-"2200--"22FF&æ°å¦è¨å·ï¼æ¼ç®åï¼\\
-"2300--"23FF&ãã®ä»ã®æè¡ç¨è¨å·&
-"2400--"243F&å¶å¾¡æ©è½ç¨è¨å·\\
-"2500--"257F&罫ç·ç´ ç&
-"2580--"259F&ãããã¯è¦ç´ \\
-"25A0--"25FF&å¹¾ä½å¦æ¨¡æ§&
-"2600--"26FF&ãã®ä»ã®è¨å·\\
-"2700--"27BF&è£
飾è¨å·&
-"2900--"297F&è£å©ç¢å°B\\
-"2980--"29FF&ãã®ä»ã®æ°å¦è¨å·B&
-"2B00--"2BFF&ãã®ä»ã®è¨å·åã³ç¢å°\\
-"E000--"F8FF&ç§ç¨é åï¼å¤åé åï¼&
-%
+"2B00--"2BFF&Miscellaneous Symbols and Arrows
\end{tabular}
\end{center}
\end{table}
@@ -1339,8 +1639,8 @@ This range consist of the following Unicode ranges, \emph{except characters in t
we put the definition of this range itself:
%
%<*ja>
-\item[ç¯å² 4${}^{\text{A}}$] é常åæãã©ã³ãã«ã¯å«ã¾ãã¦ããªãæåï¼
- ãã®ç¯å²ã¯ä»ã®ç¯å²ã«ãªãã»ã¨ãã©å
¨ã¦ã® Unicode ãããã¯
+\item[ç¯å²4${}^{\text{A}}$] é常åæãã©ã³ãã«ã¯å«ã¾ãã¦ããªãæåï¼
+ ãã®ç¯å²ã¯ä»ã®ç¯å²ã«ãªãã»ã¨ãã©å
¨ã¦ã®Unicodeãããã¯
ã§æ§æããã¦ããï¼ãããã£ã¦ï¼ãããã¯ã®ãªã¹ãã示ã
代ããã«ï¼ç¯å²ã®å®ç¾©ãã®ãã®ã示ãï¼
%
@@ -1348,33 +1648,19 @@ This range consist of the following Unicode ranges, \emph{except characters in t
\ltjdefcharrange{4}{%
"500-"10FF, "1200-"1DFF, "2440-"245F, "27C0-"28FF, "2A00-"2AFF,
"2C00-"2E7F, "4DC0-"4DFF, "A4D0-"A82F, "A840-"ABFF, "FB50-"FE0F,
- "FE20-"FE2F, "FE70-"FEFF, "FB00-"FB4F, "10000-"1FFFF} % non-Japanese
+ "FE20-"FE2F, "FE70-"FEFF, "FB00-"FB4F, "10000-"1FFFF, "E000-"F8FF} % non-Japanese
\end{lstlisting}
-%<*en>
-\item[Range~5${}^{\text{A}}$] Surrogates and Supplementary Private Use Areas.
-%
-%<*ja>
-\item[ç¯å² 5${}^{\text{A}}$] 代ç¨ç¬¦å·ã¨è£å©ç§ç¨é åï¼
-%
-%<*en>
-\item[Range~6${}^{\text{J}}$] Characters used in Japanese. The block list is indicated in Table~\ref{table-rng6}.
-%
-%<*ja>
-\item[ç¯å² 6${}^{\text{J}}$] æ¥æ¬èªã§ç¨ããããæåï¼ãããã¯ã®ãªã¹ãã¯
- 表~\ref{table-rng6} ã«ç¤ºãï¼
-%
+%\item[Range~5${}^{\text{A}}$] Surrogates and Supplementary Private Use Areas.
+%\item[ç¯å²5${}^{\text{A}}$] 代ç¨ç¬¦å·ã¨è£å©ç§ç¨é åï¼
+%\item[Range~6${}^{\text{J}}$] Characters used in Japanese. The block list is indicated in Table~\ref{table-rng6}.
+%\item[ç¯å²6${}^{\text{J}}$] æ¥æ¬èªã§ç¨ããããæåï¼ãããã¯ã®ãªã¹ãã¯è¡¨\ref{table-rng6}ã«ç¤ºãï¼
\begin{table}[!tb]
-%<*en>
-\caption{Unicode blocks in predefined character range~6.}
-%
-%<*ja>
-\caption{æåç¯å² 6 ã«æå®ããã¦ãã Unicode ãããã¯ï¼}
-%
+%\caption{Unicode blocks in predefined character range~6.}
+%\caption{æåç¯å²6ã«æå®ããã¦ããUnicodeãããã¯ï¼}
\label{table-rng6}
\catcode`\"=13\def"#1#2#3#4{\texttt{U+#1#2#3#4}}%"
\begin{center}\small
\begin{tabular}{llll}
-%<*en>
"2460--"24FF&Enclosed Alphanumerics&
"2E80--"2EFF&CJK Radicals Supplement\\
"3000--"303F&CJK Symbols and Punctuation&
@@ -1391,25 +1677,6 @@ This range consist of the following Unicode ranges, \emph{except characters in t
"FE30--"FE4F&CJK Compatibility Forms\\
"FE50--"FE6F&Small Form Variants&
"{20}000--"{2F}FFF&(Supplementary Ideographic Plane)
-%
-%<*ja>
-"2460--"24FF&å²ã¿è±æ°å&
-"2E80--"2EFF&CJKé¨é¦è£å©\\
-"3000--"303F&CJKã®è¨å·åã³å¥èªç¹&
-"3040--"309F&平仮å\\
-"30A0--"30FF&çä»®å&
-"3190--"319F&æ¼¢æç¨è¨å·ï¼è¿ãç¹ï¼\\
-"31F0--"31FF&çä»®åæ¡å¼µ&
-"3200--"32FF&å²ã¿CJKæåã»æ\\
-"3300--"33FF&CJKäºæç¨æå&
-"3400--"4DBF&CJKçµ±åæ¼¢åæ¡å¼µA\\
-"4E00--"9FFF&CJKçµ±åæ¼¢å&
-"F900--"FAFF&CJKäºææ¼¢å\\
-"FE10--"FE1F&縦æ¸ãå½¢&
-"FE30--"FE4F&CJKäºæå½¢\\
-"FE50--"FE6F&å°åå½¢&
-"{20}000--"{2F}FFF&ï¼è¿½å æ¼¢åé¢ï¼
-%
\end{tabular}
\end{center}
\end{table}
@@ -1418,22 +1685,17 @@ This range consist of the following Unicode ranges, \emph{except characters in t
The block list is indicated in Table~\ref{table-rng7}.
%
%<*ja>
-\item[ç¯å² 7${}^{\text{J}}$] CJK è¨èªã§ç¨ããããæåã®ãã¡ï¼Adobe-Japan1-6 ã«
+\item[ç¯å²7${}^{\text{J}}$] CJKè¨èªã§ç¨ããããæåã®ãã¡ï¼Adobe-Japan1-6ã«
å«ã¾ãã¦ããªããã®ï¼
- ãããã¯ã®ãªã¹ãã¯è¡¨~\ref{table-rng7} ã«ç¤ºãï¼
+ ãããã¯ã®ãªã¹ãã¯è¡¨\ref{table-rng7}ã«ç¤ºãï¼
%
\begin{table}[!tb]
-%<*en>
-\caption{Unicode blocks in predefined character range~7.}
-%
-%<*ja>
-\caption{æåç¯å² 7 ã«æå®ããã¦ãã Unicode ãããã¯ï¼}
-%
+%\caption{Unicode blocks in predefined character range~7.}
+%\caption{æåç¯å²7ã«æå®ããã¦ããUnicodeãããã¯ï¼}
\label{table-rng7}
\catcode`\"=13\def"#1#2#3#4{\texttt{U+#1#2#3#4}}%"
\begin{center}\small
\begin{tabular}{llll}
-%<*en>
"1100--"11FF&Hangul Jamo&
"2F00--"2FDF&Kangxi Radicals\\
"2FF0--"2FFF&Ideographic Description Characters&
@@ -1446,21 +1708,6 @@ The block list is indicated in Table~\ref{table-rng7}.
"A830--"A83F&Common Indic Number Forms\\
"AC00--"D7AF&Hangul Syllables&
"D7B0--"D7FF&Hangul Jamo Extended-B
-%
-%<*ja>
-"1100--"11FF&ãã³ã°ã«åæ¯&
-"2F00--"2FDF&康çé¨é¦\\
-"2FF0--"2FFF&æ¼¢åæ§æè¨è¿°æå&
-"3100--"312F&注é³åæ¯ ï¼æ³¨é³ç¬¦å·ï¼\\
-"3130--"318F&ãã³ã°ã«äºæåæ¯&
-"31A0--"31BF&注é³åæ¯æ¡å¼µ\\
-"31C0--"31EF&CJKã®çç»&
-"A000--"A48F&ã¤æå\\
-"A490--"A4CF&ã¤æåé¨é¦&
-"A830--"A83F&å
±éã¤ã³ãæ°åã«æºãããã®\\
-"AC00--"D7AF&ãã³ã°ã«é³ç¯æå&
-"D7B0--"D7FF&ãã³ã°ã«åæ¯æ¡å¼µB
-%
\end{tabular}
\end{center}
\end{table}
@@ -1468,15 +1715,11 @@ The block list is indicated in Table~\ref{table-rng7}.
%\subsection{\Param{kanjiskip} and \Param{xkanjiskip}}
-%\subsection{\Param{kanjiskip} 㨠\Param{xkanjiskip}}
+%\subsection{\Param{kanjiskip}ã¨\Param{xkanjiskip}}
\label{subs-kskip}
-%<*en>
-\textbf{JAglue} is divided into the following three categories:
-%
-%<*ja>
-\textbf{JAglue} ã¯ä»¥ä¸ã®3ã¤ã®ã«ãã´ãªã«åé¡ãããï¼
-%
+%\textbf{JAglue} is divided into the following three categories:
+%\textbf{JAglue}ã¯ä»¥ä¸ã®3ã¤ã®ã«ãã´ãªã«åé¡ãããï¼
\begin{itemize}
%<*en>
\item Glues/kerns specified in JFM. If \verb+\inhibitglue+ is issued
@@ -1484,7 +1727,7 @@ The block list is indicated in Table~\ref{table-rng7}.
place.
%
%<*ja>
-\item JFM ã§æå®ãããã°ã«ã¼ï¼ã«ã¼ã³ï¼ãã \verb+\inhibitglue+ ãåææåã®å¨ãã§
+\item JFMã§æå®ãããã°ã«ã¼ï¼ã«ã¼ã³ï¼ãã \verb+\inhibitglue+ ãåææåã®å¨ãã§
çºè¡ããã¦ããã°ï¼ãã®ã°ã«ã¼ã¯æ¿å
¥ãããªãï¼
%
%<*en>
@@ -1492,22 +1735,22 @@ The block list is indicated in Table~\ref{table-rng7}.
kanjiskip}).
%
%<*ja>
-\item ããã©ã«ãã§2ã¤ã® \textbf{JAchar} ã®éã«æ¿å
¥ãããã°ã«ã¼ï¼\Param{kanjiskip}ï¼ï¼
+\item ããã©ã«ãã§2ã¤ã®\textbf{JAchar}ã®éã«æ¿å
¥ãããã°ã«ã¼(\Param{\hyperlink{fld:kanjiskip}{kanjiskip}})ï¼
%
%<*en>
\item The default glue which inserted between a \textbf{JAchar} and an
- \textbf{ALchar} (\Param{xkanjiskip}).
+ \textbf{ALchar} (\Param{\hyperlink{fld:xks}{xkanjiskip}}).
%
%<*ja>
-\item ããã©ã«ã㧠\textbf{JAchar} 㨠\textbf{ALchar} ã®éã«æ¿å
¥ãããã°ã«ã¼ï¼\Param{xkanjiskip}ï¼ï¼
+\item ããã©ã«ãã§\textbf{JAchar}ã¨\textbf{ALchar}ã®éã«æ¿å
¥ãããã°ã«ã¼(\Param{\hyperlink{fld:xks}{xkanjiskip}})ï¼
%
\end{itemize}
%<*en>
-The value (a skip) of \Param{kanjiskip} or \Param{xkanjiskip} can be
+The value (a skip) of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} or \Param{\hyperlink{fld:xks}{xkanjiskip}} can be
changed as the following.
%
%<*ja>
-\Param{kanjiskip} ã \Param{xkanjiskip} ã®å¤ã¯ä»¥ä¸ã®ããã«ãã¦å¤æ´å¯è½ã§ãã.
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®å¤ã¯ä»¥ä¸ã®ããã«ãã¦å¤æ´å¯è½ã§ãã.
%
\begin{lstlisting}
\ltjsetparameter{kanjiskip={0pt plus 0.4pt minus 0.4pt},
@@ -1515,38 +1758,38 @@ changed as the following.
\end{lstlisting}
%<*en>
-It may occur that JFM contains the data of `ideal width of \Param{kanjiskip}'
-and/or `ideal width of \Param{xkanjiskip}'.
-To use these data from JFM, set the value of \Param{kanjiskip} or
-\Param{xkanjiskip} to \verb+\maxdimen+.
+It may occur that JFM contains the data of `ideal width of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}'
+and/or `ideal width of \Param{\hyperlink{fld:xks}{xkanjiskip}}'.
+To use these data from JFM, set the value of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} or
+\Param{\hyperlink{fld:xks}{xkanjiskip}} to \verb+\maxdimen+.
%
%<*ja>
-JFM ã¯ãæã¾ãã \Param{kanjiskip} ã®å¤ãããæã¾ãã \Param{xkanjiskip} ã®å¤ãã
+JFMã¯ãæã¾ãã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®å¤ãããæã¾ãã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®å¤ãã
æã£ã¦ãããã¨ãããï¼
-ãããã®ãã¼ã¿ã使ãããã«ã¯ï¼\Param{kanjiskip} ã \Param{xkanjiskip} ã®
+ãããã®ãã¼ã¿ã使ãããã«ã¯ï¼\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®
å¤ã \verb+\maxdimen+ ã®å¤ã«è¨å®ããã°ããï¼
%
%\subsection{Insertion Setting of \Param{xkanjiskip}}
-%\subsection{\Param{xkanjiskip} ã®è¨å®ã®æ¿å
¥}
+%\subsection{\Param{xkanjiskip} ã®æ¿å
¥è¨å®}
%<*en>
-It is not desirable that \Param{xkanjiskip} is inserted into every
+It is not desirable that \Param{\hyperlink{fld:xks}{xkanjiskip}} is inserted into every
boundary between \textbf{JAchar}s and \textbf{ALchar}s. For example,
-\Param{xkanjiskip} should not be inserted after opening parenthesis
+\Param{\hyperlink{fld:xks}{xkanjiskip}} should not be inserted after opening parenthesis
(\textit{e.g.}, compare `(ã' and `(\hskip\ltjgetparameter{xkanjiskip}ã').
-\LuaTeX-ja can control whether \Param{xkanjiskip} can be inserted
+\LuaTeX-ja can control whether \Param{\hyperlink{fld:xks}{xkanjiskip}} can be inserted
before/after a character, by changing \Param{jaxspmode} for \textbf{JAchar}s and
\Param{alxspmode} parameters \textbf{ALchar}s respectively.
%
%<*ja>
-\Param{xkanjiskip} ããã¹ã¦ã® \textbf{JAchar} 㨠\textbf{ALchar} ã®å¢çã«
-æ¿å
¥ãããã®ã¯æã¾ãããã¨ã§ã¯ãªãï¼ä¾ãã°ï¼\Param{xkanjiskip} ã¯éãæ¬å¼§ã®
-å¾ã«ã¯æ¿å
¥ãããã¹ãã§ã¯ãªãï¼`(ã' 㨠`(\hskip\ltjgetparameter{xkanjiskip}ã' ã
+\Param{\hyperlink{fld:xks}{xkanjiskip}}ããã¹ã¦ã®\textbf{JAchar}ã¨\textbf{ALchar}ã®å¢çã«
+æ¿å
¥ãããã®ã¯æã¾ãããã¨ã§ã¯ãªãï¼ä¾ãã°ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ã¯éãæ¬å¼§ã®
+å¾ã«ã¯æ¿å
¥ãããã¹ãã§ã¯ãªãï¼`(ã'ã¨`(\hskip\ltjgetparameter{xkanjiskip}ã'ã
æ¯ã¹ã¦ã¿ãï¼ï¼
-\LuaTeX-ja ã§ã¯ \Param{xkanjiskip} ãããæåã®åï¼å¾ã«æ¿å
¥ãããã©ãããï¼
-\textbf{JAchar} ã«å¯¾ãã¦ã¯ \Param{jaxspmode} ãï¼\textbf{ALchar} ã«å¯¾ãã¦ã¯
-\Param{alxspmode} ãããããå¤ãããã¨ã§å¶å¾¡ãããã¨ãã§ããï¼
+\LuaTeX-jaã§ã¯\Param{\hyperlink{fld:xks}{xkanjiskip}}ãããæåã®åï¼å¾ã«æ¿å
¥ãããã©ãããï¼
+\textbf{JAchar}ã«å¯¾ãã¦ã¯\Param{jaxspmode}ãï¼\textbf{ALchar}ã«å¯¾ãã¦ã¯
+\Param{alxspmode}ãããããå¤ãããã¨ã§å¶å¾¡ãããã¨ãã§ããï¼
%
\begin{LTXexample}
\ltjsetparameter{jaxspmode={`ã,preonly}, alxspmode={`\!,postonly}}
@@ -1555,14 +1798,14 @@ pãq ã!ã
%<*en>
The second argument \texttt{preonly} means `the insertion of
-\Param{xkanjiskip} is allowed before this character, but not after'.
+\Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before this character, but not after'.
the other possible values are \texttt{postonly}, \texttt{allow} and \texttt{
inhibit}.
%
%<*ja>
-2ã¤ç®ã®å¼æ°ã® \texttt{preonly} ã¯ã\Param{xkanjiskip} ã®æ¿å
¥ã¯ãã®æåã®
+2ã¤ç®ã®å¼æ°ã® \texttt{preonly}ã¯ã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯ãã®æåã®
åã§ã®ã¿è¨±ããï¼å¾ã§ã¯è¨±ããªãããã¨ãæå³ããï¼ä»ã«æå®å¯è½ãªå¤ã¯
-\texttt{postonly}, \texttt{allow}, \texttt{inhibit} ã§ããï¼
+\texttt{postonly}, \texttt{allow}, \texttt{inhibit}ã§ããï¼
%
%<*en>
@@ -1572,33 +1815,32 @@ as follows:
%
%<*ja>
ãªãï¼ç¾è¡ã®
-ä»æ§ã§ã¯ï¼\Param{jaxspmode}, \Param{alxspmode} ã¯ãã¼ãã«ãå
±æãã¦ããï¼
+ä»æ§ã§ã¯ï¼\Param{jaxspmode}, \Param{alxspmode}ã¯ãã¼ãã«ãå
±æãã¦ããï¼
ä¸ã®ã³ã¼ãã®1è¡ç®ã次ã®ããã«å¤ãã¦ãåããã¨ã«ãªãï¼
%
\begin{verbatim}
\ltjsetparameter{alxspmode={`ã,preonly}, jaxspmode={`\!,postonly}}
\end{verbatim}
%<*en>
-One can use also numbers to specify these two parameters (see Subsection \ref{ssec-param}).
+One can use also numbers to specify these two parameters (see Subsection~\ref{ssec-param}).
%
%<*ja>
-ã¾ãï¼ããã2ãã©ã¡ã¼ã¿ã«ã¯æ°å¤ã§å¤ãæå®ãããã¨ãã§ããï¼\ref{ssec-param} ç¯ãåç
§ï¼ï¼
+ã¾ãï¼ããã2ãã©ã¡ã¼ã¿ã«ã¯æ°å¤ã§å¤ãæå®ãããã¨ãã§ããï¼\ref{ssec-param}ç¯ãåç
§ï¼ï¼
%
%<*en>
-If you want to enable/disable all insertions of \Param{kanjiskip} and
-\Param{xkanjiskip}, set \Param{autospacing} and \Param{autoxspacing}
+If you want to enable/disable all insertions of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} and
+\Param{\hyperlink{fld:xks}{xkanjiskip}}, set \Param{autospacing} and \Param{autoxspacing}
parameters to \texttt{true}/\texttt{false}, respectively.
%
%<*ja>
-ããå
¨ã¦ã® \Param{kanjiskip} 㨠\Param{xkanjiskip} ã®æ¿å
¥ãæå¹åï¼ç¡å¹å
-ããããã°ï¼ãããã \Param{autospacing} 㨠\Param{autoxspacing} ã
-\texttt{true}/\texttt{false} ã«è¨å®ããã°ããï¼
+ããå
¨ã¦ã®\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¨\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ãæå¹åï¼ç¡å¹å
+ããããã°ï¼ãããã\Param{autospacing}ã¨\Param{autoxspacing}ã
+\texttt{true}/\texttt{false}ã«è¨å®ããã°ããï¼
%
%\subsection{Shifting Baseline}
%\subsection{ãã¼ã¹ã©ã¤ã³ã®ç§»å}
-
%<*en>
To make a match between a Japanese font and an alphabetic font, sometimes
shifting of the baseline of one of the pair is needed. In \pTeX, this is achieved
@@ -1616,8 +1858,8 @@ parameter).
å¿
è¦ã«ãªãï¼\pTeX ã§ã¯ãã㯠\verb+\ybaselineshift+ ãéé¶ã®é·ãã«è¨å®ãããã¨ã§
ãªããã¦ããï¼æ¬§æãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ãä¸ããï¼ï¼ãããï¼æ¥æ¬èªã主ã§ã¯ãªã
ææ¸ã«å¯¾ãã¦ã¯ï¼æ¬§æãã©ã³ãã§ã¯ãªãåæãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã移åããæ¹ãããï¼
-ãã®ããï¼\LuaTeX-ja ã§ã¯æ¬§æãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ã·ããé
-ï¼\Param{yalbaselineshift} ãã©ã¡ã¼ã¿ï¼ã¨åæãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ã·ããé
+ãã®ããï¼\LuaTeX-jaã§ã¯æ¬§æãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ã·ããé
+ï¼\Param{yalbaselineshift}ãã©ã¡ã¼ã¿ï¼ã¨åæãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ã·ããé
ï¼\Param{yjabaselineshift}ãã©ã¡ã¼ã¿ï¼ãç¬ç«ã«è¨å®ã§ããããã«ãªã£ã¦ããï¼
%
@@ -1640,7 +1882,7 @@ The following is an example (beware the value is not well tuned):
%
%<*ja>
ãã®æ©è½ã«ã¯é¢ç½ã使ãæ¹ãããï¼2ã¤ã®ãã©ã¡ã¼ã¿ãé©åã«è¨å®ãããã¨ã§ï¼ãµã¤ãºã®
-ç°ãªãæåãä¸å¿ç·ã«æãããã¨ãã§ããã®ã ï¼
+ç°ãªãæåãä¸å¿ç·ã«æãããã¨ãã§ããï¼
以ä¸ã¯ä¸ã¤ã®ä¾ã§ããï¼å¤ã¯ãã¾ã調æ´ããã¦ããªããã¨ã«æ³¨æï¼ï¼
%
\begin{LTXexample}
@@ -1653,78 +1895,34 @@ xyzæ¼¢å
\end{LTXexample}
-%\subsection{Cropmark}
-%\subsection{ãã³ã}
-
-%<*en>
-Cropmark is a mark for indicating 4~corners and horizontal/vertical
-center of the paper. In Japanese, we call cropmark as tombo(w).
-\pLaTeX\ and this \LuaTeX-ja support `tombow' by their kernel.
-The following steps are needed to typeset cropmark:
-%
-%<*ja>
-ãã³ãã¯ç¨ç´ã®åã¤è§ã¨æ°´å¹³ï¼åç´æ¹åã®ä¸å¿ã表ãå°ã§ããï¼
-\pLaTeX 㨠\LuaTeX-ja ã§ã¯ãã³ãã®åºåããµãã¼ããã¦ããï¼
-ãã³ããåºåããããã«ã¯ä»¥ä¸ã®æé ãå¿
è¦ã§ããï¼
-%
-
-\begin{enumerate}
-%<*en>
-\item First, define the banner which will be printed at the upper left
- of the paper. This is done by assigning a token list to
- \verb+\@bannertoken+.
-
-For example, the following sets banner as `\texttt{filename (YYYY-MM-DD hh:mm)}':
-%
-%<*ja>
-\item ã¾ãï¼ç¨ç´ã®å·¦ä¸ã«å°å·ãããããã¼ãå®ç¾©ããï¼ãã㯠\verb+\@bannertoken+
- ã«ãã¼ã¯ã³ãªã¹ããä¸ãããã¨ã§ãªãããï¼
-
-ä¾ãã°ï¼ä»¥ä¸ã¯ããã¼ã¨ã㦠`\texttt{filename (YYYY-MM-DD hh:mm)}' ãè¨å®ãã:
-%
-
-\begin{verbatim}
-\makeatletter
-
-\hour\time \divide\hour by 60 \@tempcnta\hour \multiply\@tempcnta 60\relax
-\minute\time \advance\minute-\@tempcnta
-\@bannertoken{%
- \jobname\space(\number\year-\two@digits\month-\two@digits\day
- \space\two@digits\hour:\two@digits\minute)}%
-\end{verbatim}
-
-\item ...
-\end{enumerate}
-
-
%\part{Reference}
%\part{ãªãã¡ã¬ã³ã¹}
\label{part-ref}
%\section{Font Metric and Japanese Font}
%\section{ãã©ã³ãã¡ããªãã¯ã¨åæãã©ã³ã}
-%\subsection{\texttt{\char92jfont} primitive}
-%\subsection{\texttt{\char92jfont} ããªããã£ã}
+%\subsection{\texttt{\char92jfont}}
+%\subsection{\texttt{\char92jfont} å½ä»¤}
\label{ssec-jfont}
%<*en>
To load a font as a Japanese font, you must use the
-\verb+\jfont+ primitive instead of~\verb+\font+, while
+\verb+\jfont+ instead of~\verb+\font+, while
\verb+\jfont+ admits the same syntax used in~\verb+\font+.
\LuaTeX-ja automatically loads \Pkg{luaotfload} package,
so TrueType/OpenType fonts with features can be used for Japanese fonts:
%
%<*ja>
-ãã©ã³ããåæãã©ã³ãã¨ãã¦èªã¿è¾¼ãããã«ã¯ï¼\verb+\jfont+ ããªããã£ãã
+ãã©ã³ããåæãã©ã³ãã¨ãã¦èªã¿è¾¼ãããã«ã¯ï¼\verb+\jfont+ ã
\verb+\font+ ããªããã£ãã®ä»£ããã«ç¨ããï¼
-\verb+\jfont+ ããªããã£ãã®ææ³ã¯ \verb+\font+ ã¨åãã§ããï¼
-\LuaTeX-ja 㯠\Pkg{luaotfload} ããã±ã¼ã¸ãèªåçã«èªã¿è¾¼ãã®ã§ï¼
-TrueType/OpenType ãã©ã³ãã« feature ãæå®ãããã®ãåæãã©ã³ãã¨ãã¦ç¨ãã
+\verb+\jfont+ ã®ææ³ã¯ \verb+\font+ ã¨åãã§ããï¼
+\LuaTeX-jaã¯\Pkg{luaotfload}ããã±ã¼ã¸ãèªåçã«èªã¿è¾¼ãã®ã§ï¼
+TrueType/OpenTypeãã©ã³ãã«featureãæå®ãããã®ãåæãã©ã³ãã¨ãã¦ç¨ãã
ãã¨ãã§ããï¼
%
-\begin{LTXexample}
-\jfont\tradgt={file:ipaexg.ttf:script=latn;%
+\begin{LTXexample}[width=0.3\textwidth]
+\jfont\tradgt={file:KozMinPr6N-Regular.otf:script=latn;%
+trad;-kern;jfm=ujis} at 14pt
-\tradgt{}å½ï¼ä½ï¼å»ï¼åº
+\tradgt å½ï¼ä½ï¼å»ï¼åº
\end{LTXexample}
%<*en>
@@ -1736,9 +1934,9 @@ causes a error. We denote control sequences which are defined in
%
%<*ja>
ãªãï¼\verb+\jfont+ ã§å®ç¾©ãããã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹ï¼ä¸ã®ä¾ã 㨠\verb+\tradgt+ï¼
-㯠\textit{font\_def} ãã¼ã¯ã³ã§ã¯ãªãã®ã§ï¼\verb+\fontname\tradgt+ ã®ãããª
+ã¯\textit{font\_def}ãã¼ã¯ã³ã§ã¯ãªãã®ã§ï¼\verb+\fontname\tradgt+ ã®ãããª
å
¥åã¯ã¨ã©ã¼ã¨ãªããã¨ã«æ³¨æããï¼ä»¥ä¸ã§ã¯ \verb+\jfont+ ã§å®ç¾©ããã
-ã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹ã ã§è¡¨ãï¼
+ã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹ãã§è¡¨ãï¼
%
\paragraph{JFM}
@@ -1746,13 +1944,13 @@ causes a error. We denote control sequences which are defined in
As noted in Introduction, a JFM has measurements of characters and
glues/kerns that are automatically inserted for Japanese
typesetting. The structure of JFM will be described in the next
-subsection. At the calling of \verb+\jfont+ primitive, you must specify
+subsection. At the calling of \verb+\jfont+, you must specify
which JFM will be used for this font by the following keys:
%
%<*ja>
-ãã¯ããã«ãã®ç¯ã§è¿°ã¹ãããã«ï¼JFM ã¯æåã¨åæçµçã§èªåçã«æ¿å
¥ããã
-ã°ã«ã¼ï¼ã«ã¼ã³ã®å¯¸æ³æ
å ±ãæã£ã¦ããï¼JFM ã®æ§é ã¯æ¬¡ã®å°ç¯ã§è¿°ã¹ãï¼
-\verb+\jfont+ ããªããã£ãã®å¼ã³åºãã®éã«ã¯ï¼ã©ã® JFM ãç¨ããã®ãã以ä¸ã®ãã¼ã§
+ãã¯ããã«ãã®ç¯ã§è¿°ã¹ãããã«ï¼JFMã¯æåã¨åæçµçã§èªåçã«æ¿å
¥ããã
+ã°ã«ã¼ï¼ã«ã¼ã³ã®å¯¸æ³æ
å ±ãæã£ã¦ããï¼JFMã®æ§é ã¯æ¬¡ã®å°ç¯ã§è¿°ã¹ãï¼
+\verb+\jfont+ å½ä»¤ã®å¼ã³åºãã®éã«ã¯ï¼ã©ã®JFMãç¨ããã®ãã以ä¸ã®ãã¼ã§
æå®ããå¿
è¦ãããï¼
%
@@ -1765,10 +1963,8 @@ a file named \texttt{jfm-.lua}.
The following JFMs are shipped with \LuaTeX-ja:
%
%<*ja>
-JFM ã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾ãã¦ããªããã°ï¼
-\texttt{jfm-.lua} ãèªã¿è¾¼ãï¼
-
-以ä¸ã® JFM ã \LuaTeX-ja ã«ã¯å梱ããã¦ããï¼
+JFMã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾ãã¦ããªããã°ï¼
+\texttt{jfm-.lua}ãèªã¿è¾¼ãï¼ä»¥ä¸ã®JFMã\LuaTeX-jaã«ã¯å梱ããã¦ããï¼
%
\begin{description}
%<*en>
@@ -1777,9 +1973,9 @@ JFM ã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
is used in \upTeX. When you use the \Pkg{luatexja-otf} package, you should use this JFM.
%
%<*ja>
-\item[\tt jfm-ujis.lua] \LuaTeX-ja ã®æ¨æº JFM ã§ããï¼ãã® JFM 㯠\upTeX ã§
- ç¨ãããã UTF/OTF ããã±ã¼ã¸ç¨ã®ã¡ããªãã¯ã§ãã \verb+upnmlminr-h.tfm+ ã
- å
ã«ãã¦ããï¼\Pkg{luatexja-otf} ããã±ã¼ã¸ã使ãã¨ãã¯ãã® JFM ãæå®ããã¹ãã§ããï¼
+\item[\tt jfm-ujis.lua] \LuaTeX-jaã®æ¨æºJFMã§ããï¼ãã®JFMã¯\upTeX ã§
+ ç¨ããããUTF/OTFããã±ã¼ã¸ç¨ã®åæç¨TFMã§ãã \verb+upnmlminr-h.tfm+ ã
+ å
ã«ãã¦ããï¼\Pkg{luatexja-otf}ããã±ã¼ã¸ã使ãã¨ãã¯ãã®JFMãæå®ããã¹ãã§ããï¼
%
%<*en>
\item[\tt jfm-jis.lua] A counterpart for \verb+jis.tfm+, `JIS font
@@ -1790,10 +1986,10 @@ JFM ã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
rectangles.
%
%<*ja>
-\item[\tt jfm-jis.lua] \pTeX ã§åºãç¨ãããã¦ãããJIS ãã©ã³ãã¡ããªãã¯ã
- \verb+jis.tfm+ ã«ç¸å½ãã JFM ã§ããï¼\texttt{jfm-ujis.lua} ã¨ãã®
- \texttt{jfm-jis.lua} ã®ä¸»ãªéãã¯ï¼\texttt{jfm-ujis.lua} ã§ã¯ã»ã¨ãã©ã®æåã
- æ£æ¹å½¢ç¶ã§ããã®ã«å¯¾ãï¼\texttt{jfm-jis.lua} ã§ã¯æ¨ªé·ã®é·æ¹å½¢ç¶ã§ããï¼
+\item[\tt jfm-jis.lua] \pTeX ã§åºãç¨ãããã¦ãããJISãã©ã³ãã¡ããªãã¯ã
+ \verb+jis.tfm+ ã«ç¸å½ããJFMã§ããï¼\texttt{jfm-ujis.lua}ã¨ãã®
+ \texttt{jfm-jis.lua}ã®ä¸»ãªéãã¯ï¼\texttt{jfm-ujis.lua}ã§ã¯ã»ã¨ãã©ã®æåã
+ æ£æ¹å½¢ç¶ã§ããã®ã«å¯¾ãï¼\texttt{jfm-jis.lua}ã§ã¯æ¨ªé·ã®é·æ¹å½¢ç¶ã§ããï¼
%
%<*en>
\item[\tt jfm-min.lua] A counterpart for \verb+min10.tfm+, which is one
@@ -1802,13 +1998,30 @@ JFM ã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
shown in Table~\ref{tab-difjfm}.
%
%<*ja>
-\item[\tt jfm-min.lua] \pTeX ã«å梱ããã¦ããããã©ã«ãã®åæãã©ã³ãã¡ããªãã¯
- ã§ãã \verb+min10.tfm+ ã«ç¸å½ãã JFM ã§ããï¼ãã® JFM ã¨ä»ã®2ã¤ã® JFM ã®éã«ã¯
- 表 \ref{tab-difjfm} ã«ç¤ºããããªç¹çãã¹ãéããããï¼
+\item[\tt jfm-min.lua] \pTeX ã«å梱ããã¦ããããã©ã«ãã®åæç¨TFM
+ ã§ãã \verb+min10.tfm+ ã«ç¸å½ããJFMã§ããï¼ãã®JFMã¨ä»ã®2ã¤ã®JFMã®éã«ã¯
+ 表\ref{tab-difjfm}ã«ç¤ºããããªç¹çãã¹ãéããããï¼
%
\end{description}
-\item[jfmvar=] Sometimes there is a need that ...
+%<*en>
+\item[jfmvar=] Sometimes there is a need that \ldots.
+%
+%<*ja>
+\item[jfmvar=] æ¨æºã§ã¯ï¼JFMã¨ãµã¤ãºãåãã§ï¼
+ å®ãã©ã³ãã ããç°ãªã2ã¤ã®åæãã©ã³ãã¯â¦â¦
+%
+\begin{LTXexample}[width=0.3\textwidth]
+\ltjsetparameter{differentjfm=both}
+\jfont\F=file:KozMinPr6N-Regular.otf:jfm=ujis
+\jfont\G=file:KozGoPr6N-Medium.otf:jfm=ujis
+\jfont\H=file:KozGoPr6N-Medium.otf:jfm=ujis;jfmvar=hoge
+
+\F ï¼{\G ãã}ï¼ % halfwidth space
+ ï¼{\H ãã}ï¼ % fullwidth space
+
+\ltjsetparameter{differentjfm=paverage}
+\end{LTXexample}
\end{list}
\begin{table}[t]
@@ -1816,14 +2029,14 @@ JFM ã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
%\caption{\LuaTeX-ja ã«å梱ããã¦ãã JFM ã®éã}
\label{tab-difjfm}
\ltjsetparameter{jacharrange={+3}}
-\begin{center}
-\def\r#1{{\jfont\g=psft:Ryumin-Light:jfm=#1 at 14.43324pt \g
+\begin{center}\small
+\def\r#1{{\jfont\g=file:KozMinPr6N-Regular.otf:jfm=#1 at 14.43324pt \g
\setbox0=\vtop{\hsize=7\zw\noindent âââââââ
ããæ¥ã¢ã¢ã¡ãããã使ãã§è¿·åã«ãªã£ã¦æ³£ãã¾ããï¼}\copy0
\vrule height 0pt depth \dp0}}
-\def\s#1{{\jfont\g=psft:Ryumin-Light:jfm=#1 at 14.43324pt \g
+\def\s#1{{\jfont\g=file:KozMinPr6N-Regular.otf:jfm=#1 at 14.43324pt \g
\setbox0=\vtop{\hsize=7\zw\noindent ã¡ãã£ã¨ï¼ä½}\copy0}}
-\def\t#1{{\jfont\g=psft:Ryumin-Light:jfm=#1 at 19.24432pt \g
+\def\t#1{{\jfont\g=file:KozMinPr6N-Regular.otf:jfm=#1 at 19.24432pt \g
\setbox0=\hbox{æ¼¢}%
\vrule width 0.4pt height\ht0 depth\dp0\kern-.2pt\copy0
\kern-\wd0\vrule width\wd0height .2pt depth .2pt
@@ -1834,8 +2047,8 @@ JFM ã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
\toprule
&\tt jfm-ujis.lua&\tt jfm-jis.lua&\tt jfm-min.lua\\
\midrule
-%Example~1\footnotemark
-%ä¾1\footnotemark
+%Example~1\cite{min10}
+%ä¾1\cite{min10}
&\r{ujis}&\r{jis}&\r{min}\\
%Example~2
%ä¾2
@@ -1846,8 +2059,6 @@ Bounding Box&\t{ujis}&\t{jis}&\t{min}\\
\end{center}
\ltjsetparameter{jacharrange={-3}}
\end{table}
-\footnotetext{from: ä¹é¨å³å·±, min10ãã©ã³ãã«ã¤ãã¦.
-\texttt{http://argent.shinshu-u.ac.jp/\~{\ }otobe/tex/files/min10.pdf}.}
%\paragraph{Note: kern feature}
%\paragraph{注æï¼kern feature}
@@ -1862,75 +2073,171 @@ and it from JFM are present.
%
%<*ja>
ããã¤ãã®ãã©ã³ãã¯ã°ãªãéã®ã¹ãã¼ã¹ã«ã¤ãã¦ã®æ
å ±ãæã£ã¦ããï¼ãããï¼
-ãã®æ
å ±ã¯ \LuaTeX-ja ã¨ã¯ãã¾ãç¸æ§ããããªãï¼å
·ä½çã«ã¯ï¼ãã®æ
å ±ã«åºã¥ãã¦æ¿å
¥
-ãããã«ã¼ãã³ã°ã¹ãã¼ã¹ã¯ \textbf{JAglue} ã®æ¿å
¥éç¨ã®\textbf{åã«}æ¿å
¥ããï¼
-JFM ã«åºã¥ãã°ã«ã¼ï¼ã«ã¼ã³ãæ¿å
¥ãããå ´åã«ã¯2æåéã®æå³ããªãã¹ãã¼ã¹ã®åå ã¨
+ãã®æ
å ±ã¯\LuaTeX-ja ã¨ã¯ãã¾ãç¸æ§ããããªãï¼å
·ä½çã«ã¯ï¼ãã®æ
å ±ã«åºã¥ãã¦æ¿å
¥
+ãããã«ã¼ãã³ã°ã¹ãã¼ã¹ã¯\textbf{JAglue}ã®æ¿å
¥éç¨ã®\textbf{åã«}æ¿å
¥ããï¼
+JFMã«åºã¥ãã°ã«ã¼ï¼ã«ã¼ã³ãæ¿å
¥ãããå ´åã«ã¯2æåéã®æå³ããªãã¹ãã¼ã¹ã®åå ã¨
ãªãï¼
%
-
\begin{itemize}
%<*en>
\item You should specify \texttt{-kern} in
- \verb+jfont+ primitive, when you want to use other font features,
+ \verb+jfont+ when you want to use other font features,
such as \texttt{script=...}\,.
%
%<*ja>
-\item \texttt{script=...} ã¨ãã£ã feature ã使ãããå ´åã«ã¯ï¼\verb+\jfont+
- ããªããã£ãã« \texttt{-kern} ãæå®ããã¹ãã§ããï¼
+\item \texttt{script=...}ã¨ãã£ãfeatureã使ãããå ´åã«ã¯ï¼\verb+\jfont+
+ ã«\texttt{-kern}ãæå®ããã¹ãã§ããï¼
%
%<*en>
\item If you want to use Japanese fonts in proportional width, and use
- information from this font, use \texttt{jfm-prop.lua} for its JFM, and ...
+ information from this font, use \texttt{jfm-prop.lua} for its JFM, and\,\ldots.
%
%<*ja>
\item ãããããã¼ã·ã§ãã«å¹
ã®åæãã©ã³ãããã®ãã©ã³ãã®æ
å ±ã«åºã¥ãã¦ä½¿ããã
- ãªãã°ï¼\texttt{jfm-prop.lua} ã JFM ã¨ãã¦æå®ãï¼â¦â¦
+ ãªãã°ï¼\texttt{jfm-prop.lua}ãJFMã¨ãã¦æå®ãï¼â¦â¦
%
-
TODO: kanjiskip?
\end{itemize}
+%<*ja>
+\paragraph{\texttt{extend}ã¨\texttt{slant}}
+OpenType font featureã¨è¦ããä¸åããããªå½¢å¼ã§æå®ã§ãããã®ã«ï¼
+\begin{description}
+\item[\texttt{extend=}] 横æ¹åã«åæ¡å¤§ããï¼
+\item[\texttt{slant=}] ã«æå®ãããå²åã ãå¾ããï¼
+\end{description}
+ã®2ã¤ãããï¼
+\texttt{extend}ã\texttt{slant}ãæå®ããå ´åã¯ï¼ããã«å¿ããJFMãæå®ãã¹ãã§ãã%
+\footnote{\LuaTeX-jaã§ã¯ï¼ãããã«å¯¾ããJFMãç¹ã«æä¾ãããã¨ã¯ããªãäºå®ã§ããï¼}ï¼
+ä¾ãã°ï¼æ¬¡ã®ä¾ã§ã¯ç¡çããé常ã®JFMã使ã£ã¦ããããã«ï¼æåééãã¤ã¿ãªãã¯è£æ£éã
+æ£ãããªãï¼
+%
+%<*en>
+\paragraph{\texttt{extend} and \texttt{slant}}
+The following setting can be specified as OpenType font features:
+\begin{description}
+\item[\texttt{extend=}] expand the font horizontally by .
+\item[\texttt{slant=}] slant the font.
+\end{description}
+Note that \LuaTeX-ja doesn't adjust JFMs by these \texttt{extend} and \texttt{slant}
+settings; you have to write new JFMs on purpose.
+For example, the following example uses the standard JFM \texttt{jfm-ujis.lua}, hence
+letter-spacing and the width of italic correction are not correct:
+%
+\begin{LTXexample}[width=0.3\textwidth]
+\jfont\E=file:KozMinPr6N-Regular.otf:extend=1.5;jfm=ujis
+\E ããããã
+
+\jfont\S=file:KozMinPr6N-Regular.otf:slant=1;jfm=ujis
+\S ããã\/ABC
+\end{LTXexample}
+
+
%\subsection{Prefix \texttt{psft}}
-%\subsection{\texttt{psft} ãã¬ãã£ãã¯ã¹}
+%\subsection{\texttt{psft}ããªãã£ãã¯ã¹}
\label{ssec-psft}
%<*en>
-Besides \texttt{file:}\ and \texttt{name:}\ prefixes, one can use \texttt{psft:}\
-prefix in \verb+\jfont+ (and~\verb+\font+) primitive,
+Besides `\texttt{file:}'\ and `\texttt{name:}'\ prefixes, one can use `\texttt{psft:}'\
+prefix in \verb+\jfont+ (and~\verb+\font+),
to specify a `name-only' Japanese font which
will not be embedded to PDF. Typical use of this prefix is to specify
the `standard' Japanese fonts, namely, `Ryumin-Light' and
-`GothicBBB-Medium'. For kerning or other information, that of Kozuka
-Mincho Pr6N Regular (this is a font by Adobe Inc., and included in
-Japanese Font Packs for Adobe Reader) will be used.
+`GothicBBB-Medium'.
+
+\emph{OpenType font features, such as `{\tt +jp90}',
+have no meaning in `name-only' fonts using this `{\tt psft:}'\ prefix.
+This is because we can't expect what fonts are actually used by the PDF reader.}
+Note that \texttt{extend}~and~\texttt{slant} settings (see~above) are supported
+with \texttt{psft} prefix, because they are only simple linear transformations.
%
%<*ja>
-\texttt{file:} 㨠\texttt{name:} ã®ãã¬ãã£ãã¯ã¹ã«å ãã¦ï¼
-\verb+\jfont+ ããªããã£ãï¼ã¨ \verb+\font+ ããªããã£ãï¼ã§ã¯
-\texttt{psft:} ãã¬ãã£ãã¯ã¹ãç¨ãããã¨ãã§ããï¼
-ãã®ãã¬ãã£ãã¯ã¹ãç¨ãããã¨ã§ï¼PDF ã«ã¯åãè¾¼ã¾ããªããååã ãã®ã
-åæãã©ã³ããæå®ãããã¨ãã§ããï¼å
¸åçãªä½¿ãæ¹ã¯ãæ¨æºçãªãåæãã©ã³ãï¼
-ã¤ã¾ã `Ryumin-Light' 㨠`GothicBBB-Medium' ãæå®ãããã¨ã§ããï¼
-ãã®å ´åï¼ã«ã¼ãã³ã°ä»ã®æ
å ±ã¯å°å¡ææ Pr6N Regular
-ï¼Adobe 社ã«ãããã©ã³ãã§ï¼Adobe Reader ã®æ¥æ¬èªãã©ã³ãããã¯ã«å«ã¾ãã¦ããï¼
-ãç¨ããããï¼
+\texttt{file:} 㨠\texttt{name:} ã®ããªãã£ãã¯ã¹ã«å ãã¦ï¼
+\verb+\jfont+ï¼ã¨ \verb+\font+ ããªããã£ãï¼ã§ã¯
+\texttt{psft:}ããªãã£ãã¯ã¹ãç¨ãããã¨ãã§ããï¼
+ãã®ããªãã£ãã¯ã¹ãç¨ãããã¨ã§ï¼PDFã«ã¯åãè¾¼ã¾ããªããååã ãã®ã
+åæãã©ã³ããæå®ãããã¨ãã§ããï¼ãæ¨æºçãªãåæãã©ã³ãï¼
+ã¤ã¾ã`Ryumin-Light'ã¨`GothicBBB-Medium'ã®æå®ã§ãã®ããªãã£ãã¯ã¹ã使ãããï¼
+
+\textbf{\texttt{psft}ããªãã£ãã¯ã¹ã®ä¸ã§ã¯
+\texttt{+jp90} ãªã©ã®OpenType font featureã®å¹åã¯ãªãï¼
+éåè¾¼ãã©ã³ããPDFã«ä½¿ç¨ããã¨ï¼å®éã«ã©ã®ãããªãã©ã³ãã
+表示ã«ç¨ãããããäºæ¸¬ã§ããªãããã§ããï¼}
+\texttt{extend}ã¨\texttt{slant}æå®ã¯åãªãå¤å½¢ã®ãã
+\texttt{psft}ããªãã£ãã¯ã¹ã§ã使ç¨å¯è½ã§ããï¼
%
-\paragraph{\texttt{cid} key}
+%\paragraph{\texttt{cid} key}
+%\paragraph{\texttt{cid}ãã¼}
\label{para-cid}
- \texttt{cid} key, ...
-
+%<*en>
+The default font defined by using \texttt{psft:} prefix is for Japanese typesetting;
+it is Adobe-Japan1-6 CID-keyed font.
+One can specify \texttt{cid} key to use other CID-keyed non-embedded fonts
+for Chinese or Korean typesetting.
+%
+%<*ja>
+æ¨æºã§\texttt{psft:}ããªãã£ãã¯ã¹ã§å®ç¾©ããããã©ã³ãã¯æ¥æ¬èªç¨ã®ãã®ã§
+ããï¼Adobe-Japan1-6ã®CIDã«å¯¾å¿ãããã®ã¨ãªãï¼ãããï¼\LuaTeX-jaã¯ä¸å½èª
+ã®çµçã«ãå¨åãçºæ®ãããã¨ãåããï¼æ¥æ¬èªãã©ã³ãã§ãªãéåè¾¼ãã©ã³ã
+ã®å¯¾å¿ãå¿
è¦ã¨ãªã£ãï¼ãã®ããã«è¿½å ãããã®ã\texttt{cid}ãã¼ã§ããï¼
-%\subsection{Structure of JFM file}
-%\subsection{JFM ãã¡ã¤ã«ã®æ§é }
+\texttt{cid}ãã¼ã«å¤ãæå®ããã¨ï¼ãã®CIDãæã£ãéåè¾¼ãã©ã³ããå®ç¾©ãããã¨ãã§ããï¼
+%
+\begin{lstlisting}[numbers=left]
+\jfont\testJ={psft:Ryumin-Light:cid=Adobe-Japan1-6;jfm=jis} % Japanese
+\jfont\testD={psft:Ryumin-Light:jfm=jis} % default value is Adobe-Japan1-6
+\jfont\testC={psft:AdobeMingStd-Light:cid=Adobe-CNS1-6;jfm=jis} % Traditional Chinese
+\jfont\testG={psft:SimSun:cid=Adobe-GB1-5;jfm=jis} % Simplified Chinese
+\jfont\testK={psft:Batang:cid=Adobe-Korea1-2;jfm=jis} % Korean
+\end{lstlisting}
+%<*en>
+Note that the code above specifies \texttt{jfm-jis.lua}, which is for Japanese fonts,
+as JFM for Chinese and Korean fonts.
+%
+%<*ja>
+ä¸ã®ã³ã¼ãã§ã¯ä¸å½èªã»éå½èªç¨ãã©ã³ãã«å¯¾ãã¦ãJFMã«
+æ¥æ¬èªç¨ã®\texttt{jfm-jis.lua}ãæå®ãã¦ããã®ã§æ³¨æããããï¼
+%
%<*en>
-A JFM file is a Lua script which has only one function call:
+At present, \LuaTeX-ja supports only 4 values written in the sample code above.
+Specifying other values, e.g.,
%
%<*ja>
-JFM ãã¡ã¤ã«ã¯ãã ä¸ã¤ã®é¢æ°å¼ã³åºããå«ã Lua ã¹ã¯ãªããã§ããï¼
+ä»ã®ã¨ããï¼\LuaTeX-jaã¯ä¸ã®ãµã³ãã«ã³ã¼ãä¸ã«æ¸ãã4ã¤ã®å¤ãããµãã¼ããã¦ããªãï¼
%
+\begin{lstlisting}
+\jfont\test={psft:Ryumin-Light:cid=Adobe-Japan2;jfm=jis}
+\end{lstlisting}
+%<*en>
+produces the following error:
+%
+%<*ja>
+ã®ããã«ããã以å¤ã®å¤ãæå®ããã¨ï¼ã¨ã©ã¼ãçºçããï¼
+%
+\begin{lstlisting}[numbers=left]
+! Package luatexja Error: bad cid key `Adobe-Japan2'.
+
+See the luatexja package documentation for explanation.
+Type H for immediate help.
+
+ \par
+l.78
+
+? h
+I couldn't find any non-embedded font information for the CID
+`Adobe-Japan2'. For now, I'll use `Adobe-Japan1-6'.
+Please contact the LuaTeX-ja project team.
+?
+\end{lstlisting}
+
+%\subsection{Structure of JFM file}
+%\subsection{JFMãã¡ã¤ã«ã®æ§é }
+
+%A JFM file is a Lua script which has only one function call:
+%JFMãã¡ã¤ã«ã¯ãã ä¸ã¤ã®é¢æ°å¼ã³åºããå«ãLuaã¹ã¯ãªããã§ããï¼
\begin{verbatim}
luatexja.jfont.define_jfm { ... }
\end{verbatim}
@@ -1943,7 +2250,7 @@ floating-point numbers in design-size unit.
%<*ja>
å®éã®ãã¼ã¿ã¯ä¸ã§ \verb+{ ... }+ ã§ç¤ºããããã¼ãã«ã®ä¸ã«æ ¼ç´ããã¦ããï¼
以ä¸ã§ã¯ãã®ãã¼ãã«ã®æ§é ã«ã¤ãã¦è¨ãï¼
-ãªãï¼JFM ãã¡ã¤ã«ä¸ã®é·ãã¯å
¨ã¦ design-size ãåä½ã¨ããæµ®åå°æ°ç¹æ°ã§ãããã¨ã«
+ãªãï¼JFMãã¡ã¤ã«ä¸ã®é·ãã¯å
¨ã¦design-sizeãåä½ã¨ããæµ®åå°æ°ç¹æ°ã§ãããã¨ã«
注æããï¼
%
@@ -1954,7 +2261,7 @@ floating-point numbers in design-size unit.
%ï¼å¿
é ï¼
%The direction of JFM. At the present, only \texttt{'yoko'} is supported.
-%JFM ã®æ¸åæ¹åï¼ç¾æç¹ã§ã¯ \texttt{'yoko'} ã®ã¿ããµãã¼ããããï¼
+%JFMã®æ¸åæ¹åï¼ç¾æç¹ã§ã¯æ¨ªæ¸ã(\texttt{'yoko'})ã®ã¿ããµãã¼ããããï¼
\item[zw=]
%(required)
@@ -1967,26 +2274,26 @@ floating-point numbers in design-size unit.
%(required)
%ï¼å¿
é ï¼
-%The amount of the length of the `full-height' (height + depth).
-%ãå
¨è§é«ããï¼height + depthï¼ã®é·ãï¼
+%The amount of the `full-height' (height + depth).
+%ãå
¨è§é«ãã(height + depth)ã®é·ãï¼
\item[kanjiskip=\{, , \}]
%(optional)
%ï¼ä»»æï¼
%<*en>
-This field specifies the `ideal' amount of \Param{kanjiskip}. As noted
+This field specifies the `ideal' amount of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}. As noted
in Subsection~\ref{subs-kskip}, if the parameter
- \Param{kanjiskip} is \verb+\maxdimen+, the value specified
+ \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} is \verb+\maxdimen+, the value specified
in this field is actually used (if this field is not specified in
JFM, it is regarded as 0\,pt). Note that and
fields are in design-size unit too.
%
%<*ja>
-ãçæ³çãªã \Param{kanjiskip} ã®éãæå®ããï¼\ref{subs-kskip} ç¯ã§è¿°ã¹ãããã«ï¼
-ãã \Param{kanjiskip} ã \verb+\maxdimen+ ã®å¤ãªãã°ï¼ãã®ãã£ã¼ã«ãã§æå®ããã
-å¤ãå®éã«ã¯ç¨ããããï¼ãããã®ãã£ã¼ã«ãã JFM ã§æå®ããã¦ããªããã°ï¼
-0\,pt ã§ãããã®ã¨ãã¦æ±ãããï¼ï¼ 㨠ã®ãã£ã¼ã«ãã design-size
+ãçæ³çãªã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®éãæå®ããï¼\ref{subs-kskip}ç¯ã§è¿°ã¹ãããã«ï¼
+ãã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã \verb+\maxdimen+ ã®å¤ãªãã°ï¼ãã®ãã£ã¼ã«ãã§æå®ããã
+å¤ãå®éã«ã¯ç¨ããããï¼ãããã®ãã£ã¼ã«ããJFMã§æå®ããã¦ããªããã°ï¼
+0\,ptã§ãããã®ã¨ãã¦æ±ãããï¼ï¼ã¨ã®ãã£ã¼ã«ããdesign-size
ãåä½ã§ãããã¨ã«æ³¨æããï¼
%
@@ -1995,16 +2302,17 @@ This field specifies the `ideal' amount of \Param{kanjiskip}. As noted
%ï¼ä»»æï¼
%<*en>
-Like the \Param{kanjiskip} field, this field specifies the `ideal'
- amount of \Param{xkanjiskip}.
+Like the \texttt{kanjiskip} field, this field specifies the `ideal'
+ amount of \Param{\hyperlink{fld:xks}{xkanjiskip}}.
%
%<*ja>
-\Param{kanjiskip} ãã£ã¼ã«ãã¨åæ§ã«ï¼\Param{xkanjiskip} ã®ãçæ³çãªãéã
+\texttt{kanjiskip}ãã£ã¼ã«ãã¨åæ§ã«ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®ãçæ³çãªãéã
æå®ããï¼
%
\end{list}
%<*en>
+\paragraph{Character classes}
Besides from above fields, a JFM file have several sub-tables those
indices are natural numbers. The table indexed by~$i\in\omega$ stores
information of `character class'~$i$. At least, the character class~0 is
@@ -2013,11 +2321,12 @@ always present, so each JFM file must have a sub-table whose index is
the following fields:
%
%<*ja>
-ä¸è¨ã®ãã£ã¼ã«ãã«å ãã¦ï¼JFM ãã¡ã¤ã«ã¯ãã®ã¤ã³ããã¯ã¹ãèªç¶æ°ã§ããããã¤ãã®
-ãµããã¼ãã«ãæã¤ï¼ã¤ã³ããã¯ã¹ã $i\in\omega$ ã§ãããã¼ãã«ã¯ãæåã¯ã©ã¹ã$i$ ã®
-æ
å ±ãæ ¼ç´ããï¼å°ãªãã¨ãï¼æåã¯ã©ã¹0ã¯å¸¸ã«åå¨ããã®ã§ï¼JFM ãã¡ã¤ã«ã¯ã¤ã³ããã¯ã¹
-ã \texttt{[0]} ã®ãµããã¼ãã«ãæããªããã°ãªããªãï¼ããããã®ãµããã¼ãã«
-ï¼ãã®ã¤ã³ããã¯ã¹ã $i$ ã§è¡¨ããï¼ã¯ä»¥ä¸ã®ãã£ã¼ã«ããæã¤ï¼
+\paragraph{æåã¯ã©ã¹}
+ä¸è¨ã®ãã£ã¼ã«ãã«å ãã¦ï¼JFMãã¡ã¤ã«ã¯ãã®ã¤ã³ããã¯ã¹ãèªç¶æ°ã§ããããã¤ãã®
+ãµããã¼ãã«ãæã¤ï¼ã¤ã³ããã¯ã¹ã$i\in\omega$ã§ãããã¼ãã«ã¯ãæåã¯ã©ã¹ã$i$ã®
+æ
å ±ãæ ¼ç´ããï¼å°ãªãã¨ãï¼æåã¯ã©ã¹0ã¯å¸¸ã«åå¨ããã®ã§ï¼JFMãã¡ã¤ã«ã¯ã¤ã³ããã¯ã¹
+ã\texttt{[0]}ã®ãµããã¼ãã«ãæããªããã°ãªããªãï¼ããããã®ãµããã¼ãã«
+ï¼ãã®ã¤ã³ããã¯ã¹ã$i$ã§è¡¨ããï¼ã¯ä»¥ä¸ã®ãã£ã¼ã«ããæã¤ï¼
%
\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
@@ -2027,22 +2336,28 @@ the following fields:
%<*en>
This field is a list of characters which are in this character
- type~$i$. This field is not required if $i=0$, since all
- \textbf{JAchar} which are not in any character class other
+ type~$i$. This field is optional if $i=0$, since all
+ \textbf{JAchar} which do not belong any character classes other
than 0 are in the character class 0
(hence, the character class~0 contains most of
- \textbf{JAchar}s). In the list, a character can be
- specified by its code number, or by the character itself
- (as a string of length~1). Moreover, there are `imaginary
- characters' which specified in the list. We will describe these later.
+ \textbf{JAchar}s). In the list, character(s) can be specified in the following form:
+\begin{itemize}
+\item a Unicode code point
+\item the character itself (as a Lua string, like \hbox{\ltjsetparameter{autoxspacing=false}\verb+'ã'+})
+\item a string like \hbox{\ltjsetparameter{autoxspacing=false}\verb+'ã*'+} (the character followed by an asterisk)
+\item several ``imaginary'' characters (We will describe these later.)
+\end{itemize}
%
%<*ja>
-ãã®ãã£ã¼ã«ãã¯æåã¯ã©ã¹~$i$ ã«å±ããæåã®ãªã¹ãã§ããï¼ãã®ãã£ã¼ã«ã㯠$i=0$ ã®
-å ´åã«ã¯å¿
é ã§ã¯ãªãï¼ãªããªãã°ï¼æåã¯ã©ã¹ 0 ã«ã¯ï¼0 以å¤ã®æåã¯ã©ã¹ã«å±ãããã®ã
-é¤ããå
¨ã¦ã® \textbf{JAchar} ãå±ããããã§ããï¼ãã£ã¦ï¼æåã¯ã©ã¹ 0 ã¯ã»ã¨ãã©ã®
-\textbf{JAchar} ãå«ãï¼ï¼ãã®ãªã¹ãã§ã¯ï¼æåã¯ãã®æåã³ã¼ããç¨ãã¦ï¼ãããã¯
-æåããèªä½ï¼é·ã1ã®æååï¼ã«ãã£ã¦æå®ãããï¼ããã«ï¼ãã®ãªã¹ãã§æå®ããã
-ãä»®æ³çãªæåããåå¨ããï¼ãããã«ã¤ãã¦ã¯å¾ã«è¨ãï¼
+ãã®ãã£ã¼ã«ãã¯æåã¯ã©ã¹$i$ã«å±ããæåã®ãªã¹ãã§ããï¼ãã®ãã£ã¼ã«ãã¯$i=0$ã®
+å ´åã«ã¯ä»»æã§ããï¼æåã¯ã©ã¹0ã«ã¯ï¼0以å¤ã®æåã¯ã©ã¹ã«å±ãããã®ã
+é¤ããå
¨ã¦ã®\textbf{JAchar}ãå±ããããï¼ï¼ãã®ãªã¹ãä¸ã§æåãæå®ããã«ã¯ï¼ä»¥ä¸ã®æ¹æ³ãããï¼
+\begin{itemize}
+\item Unicode ã«ãããã³ã¼ãçªå·
+\item ã\hbox{\ltjsetparameter{autoxspacing=false}\verb+'ã'+}ãã®ãããªï¼æåããèªä½
+\item ã\hbox{\ltjsetparameter{autoxspacing=false}\verb+'ã*'+}ãã®ãããªï¼æåããèªä½ã®å¾ã«ã¢ã¹ã¿ãªã¹ã¯ãã¤ãããã®
+\item ããã¤ãã®ãä»®æ³çãªæåãï¼å¾ã«èª¬æããï¼
+\end{itemize}
%
\item[width=, height=, depth=, italic=]
@@ -2056,8 +2371,8 @@ as values of these fields.
But there is one exception: if \texttt{'prop'} is specified in \texttt{width} field, width of a character becomes that of its `real' glyph
%
%<*ja>
-æåã¯ã©ã¹~$i$ ã«å±ããæåã®å¹
ï¼é«ãï¼æ·±ãï¼ã¤ã¿ãªãã¯è£æ£ã®éãæå®ããï¼
-æåã¯ã©ã¹~$i$ ã«å±ããå
¨ã¦ã®æåã¯ï¼ãã®å¹
ï¼é«ãï¼æ·±ãããã®ãã£ã¼ã«ãã§æå®ãã
+æåã¯ã©ã¹$i$ã«å±ããæåã®å¹
ï¼é«ãï¼æ·±ãï¼ã¤ã¿ãªãã¯è£æ£ã®éãæå®ããï¼
+æåã¯ã©ã¹$i$ã«å±ããå
¨ã¦ã®æåã¯ï¼ãã®å¹
ï¼é«ãï¼æ·±ãããã®ãã£ã¼ã«ãã§æå®ãã
å¤ã§ãããã®ã¨ãã¦æ±ãããï¼
ãããï¼ä¾å¤ãä¸ã¤ããï¼ãã \texttt{'prop'} ã \texttt{width} ãã£ã¼ã«ãã«
æå®ãããå ´åï¼æåã®å¹
ã¯ãã®ãå®éã®ãã°ãªãã®å¹
ã¨ãªãï¼
@@ -2076,11 +2391,11 @@ The effects of these 3~fields are indicated in Figure~\ref{fig-pos}.
%
%<*ja>
ãããã®ãã£ã¼ã«ãã¯ãå®éã®ãã°ãªãã®ä½ç½®ã調æ´ããããã«ããï¼
-\texttt{align} ãã£ã¼ã«ãã«æå®ã§ããå¤ã¯ \texttt{'left'}, \texttt{'middle'},
-\texttt{'right'} ã®ããããã§ããï¼ããããã3ã¤ã®ãã£ã¼ã«ãã®ãã¡ã®1ã¤ãçããã
-å ´åï¼\texttt{left} 㨠\texttt{down} 㯠0ï¼\texttt{align} ãã£ã¼ã«ãã¯
-\texttt{'left'} ã§ãããã®ã¨ãã¦æ±ãããï¼
-ããã3ã¤ã®ãã£ã¼ã«ãã®æå³ã«ã¤ãã¦ã¯å³\ref{fig-pos} ã§èª¬æããï¼
+\texttt{align}ãã£ã¼ã«ãã«æå®ã§ããå¤ã¯\texttt{'left'}, \texttt{'middle'},
+\texttt{'right'}ã®ããããã§ããï¼ããããã3ã¤ã®ãã£ã¼ã«ãã®ãã¡ã®1ã¤ãçããã
+å ´åï¼\texttt{left}ã¨\texttt{down}ã¯0ï¼\texttt{align}ãã£ã¼ã«ãã¯
+\texttt{'left'}ã§ãããã®ã¨ãã¦æ±ãããï¼
+ããã3ã¤ã®ãã£ã¼ã«ãã®æå³ã«ã¤ãã¦ã¯å³\ref{fig-pos}ã§èª¬æããï¼
%
%<*en>
@@ -2090,12 +2405,13 @@ For example, setting the \texttt{align} field to \texttt{'right'} is practically
when the current character class is the class for opening delimiters'.
%
%<*ja>
-å¤ãã®å ´åï¼\texttt{left} 㨠\texttt{down} 㯠0 ã§ããä¸æ¹ï¼
-\texttt{align} ãã£ã¼ã«ãã \texttt{'middle'} ã \texttt{'right'} ã§ãããã¨ã¯
+å¤ãã®å ´åï¼\texttt{left}ã¨\texttt{down}ã¯0ã§ããä¸æ¹ï¼
+\texttt{align}ãã£ã¼ã«ãã\texttt{'middle'}ã\texttt{'right'}ã§ãããã¨ã¯
çãããã¨ã§ã¯ãªãï¼
-ä¾ãã°ï¼\texttt{align} ãã£ã¼ã«ãã \texttt{'right'} ã«æå®ãããã¨ã¯ï¼
+ä¾ãã°ï¼\texttt{align}ãã£ã¼ã«ãã\texttt{'right'}ã«æå®ãããã¨ã¯ï¼
æåã¯ã©ã¹ãéãæ¬å¼§é¡ã§ããã¨ãã«å®éå¿
è¦ã§ããï¼
%
+
\begin{figure}[!tb]
\begin{minipage}{0.4\textwidth}%
\begin{center}\unitlength=10pt\small
@@ -2155,7 +2471,7 @@ Consider a node containing Japanese character whose value of the \texttt{align}
field is \texttt{'middle'}.
%
%<*ja>
-\texttt{align} ãã£ã¼ã«ãã®å¤ã \texttt{'middle'} ã§ããåææåãå«ããã¼ãã
+\texttt{align}ãã£ã¼ã«ãã®å¤ã\texttt{'middle'}ã§ããåææåãå«ããã¼ãã
èãããï¼
%
\begin{itemize}
@@ -2166,7 +2482,7 @@ Its width, height and depth are specified by JFM.
%
%<*ja>
é»è²ã®é·æ¹å½¢ã¯ãã¼ãã®æ ã§ããï¼
-ãã®å¹
ï¼é«ãï¼æ·±ã㯠JFM ã«ãã£ã¦æå®ãããï¼
+ãã®å¹
ï¼é«ãï¼æ·±ãã¯JFMã«ãã£ã¦æå®ãããï¼
%
\item
%<*en>
@@ -2174,7 +2490,7 @@ Since the \texttt{align} field is \texttt{'middle'},
the `real' glyph is centered horizontally (the green rectangle).
%
%<*ja>
-\texttt{align} ãã£ã¼ã«ã㯠\texttt{middle} ãªã®ã§ï¼ãå®éã®ãã°ãªãã¯
+\texttt{align}ãã£ã¼ã«ãã¯\texttt{middle}ãªã®ã§ï¼ãå®éã®ãã°ãªãã¯
æ°´å¹³æ¹åã®ä¸å¿ã«é
ç½®ãããï¼ç·è²ã®é·æ¹å½¢ï¼ï¼
%
\item
@@ -2184,24 +2500,124 @@ Furthermore, the glyph is shifted according to values of fields
glyph is indicated by the red rectangle.
%
%<*ja>
-ããã«ï¼ã°ãªã㯠\texttt{left} 㨠\texttt{down} ã®å¤ã«å¾ã£ã¦ã·ãããããï¼
+ããã«ï¼ã°ãªãã¯\texttt{left}ã¨\texttt{down}ã®å¤ã«å¾ã£ã¦ã·ãããããï¼
æçµçãªå®éã®ã°ãªãã®ä½ç½®ã¯èµ¤è²ã®é·æ¹å½¢ã§ç¤ºãããä½ç½®ã«ãªãï¼
%
\end{itemize}
\end{minipage}
-\caption{
+\medskip
+
+\caption{%
%The position of the `real' glyph.
%ãå®éã®ãã°ãªãã®ä½ç½®ï¼
}
\label{fig-pos}
\end{figure}
+\item[kern={\{[$j$]=, [$j'$]=\{, []\}, ...\}}]
+
+\item[glue={\{[$j$]=\{, , , [], []\}, ...\}}]
+%<*ja>
+æåã¯ã©ã¹$i$ã®æåã¨$j$ã®æåã®éã«æ¿å
¥ãããkernãglueã®éãæå®ããï¼
+
+ ã¯\texttt{luatexja-adjust.sty} ã«ããåªå
é ä½ä»ã
+ è¡é·èª¿æ´ï¼\ref{ssec-adj}ç¯ï¼ãæå¹ãªã¨ãã®ã¿æå³ãæã¤ï¼
+ãã®ãã£ã¼ã«ãã¯çç¥å¯è½ã§ããï¼è¡èª¿æ´å¦çã«ããããã®glueã®åªå
+ 度ã$-2$ãã$+2$ã®éã®æ´æ°ã§æå®ããï¼ã®çç¥æã®å¤
+ ã¯0ã§ããï¼ç¯å²å¤ã®å¤ãæå®ãããã¨ãã®åä½ã¯æªå®ç¾©ã§ããï¼ï¼
+
+ãçç¥å¯è½ãã£ã¼ã«ãã§ããï¼$-1$ãã$+1$ã®å®æ°å¤ãã¨ãï¼çç¥æã®å¤ã¯0ã§ããï¼
+\begin{itemize}
+\item $-1$ã¯ãã®ã°ã«ã¼ããåã®æåãç±æ¥ã§ãããã¨ã示ãï¼
+\item $+1$ã¯ãã®ã°ã«ã¼ããå¾ã®æåãç±æ¥ã§ãããã¨ã示ãï¼
+\item ãã以å¤ã®å¤ã¯ï¼ãåã®æåãç±æ¥ã®ã°ã«ã¼ã¨ãå¾ã®æåãç±æ¥ã®
+ã°ã«ã¼ãæ··åããã¦ãããã¨ã示ãï¼
+\end{itemize}
+ãªãï¼ãã®ãã£ã¼ã«ãã®å¤ã¯\Param{\hyperlink{fld:diffjfm}{differentjfm}}ã®å¤ã\texttt{pleft},~\texttt{pright},~\texttt{paverage}ã®å¤ã®ã¨ãã®ã¿å®éã«ç¨ããããï¼
+
+ä¾ãã°ï¼\cite{x4051}ã§ã¯ï¼å¥ç¹ã¨ä¸ç¹ã®éã«ã¯ï¼
+å¥ç¹ç±æ¥ã®äºå空ãã¨ä¸ç¹ç±æ¥ã®åå空ããæ¿å
¥ããããï¼ãã®å ´åã«ã¯
+\begin{itemize}
+\item ã«ã¯$0.5+0.25=0.75$ãæå®ããï¼
+\item ã«ã¯æ¬¡ã®å¤ãæå®ããï¼
+\[
+ -1\cdot \frac{0.5}{0.5+0.25} + 1 \cdot \frac{0.25}{0.5+0.25} = -\frac13
+\]
+\end{itemize}
-\item[kern={\{[$j$]=, ...\}}]
+%
+
+\item[end\_stretch=]
+\item[end\_shrink=]
+%<*ja>
+ãããã®ãã£ã¼ã«ãã¯çç¥å¯è½ã§ããï¼
+åªå
é ä½ä»ãè¡é·èª¿æ´ãæå¹ã§ããï¼ãã¤ç¾å¨ã®æåã¯ã©ã¹ã®æåãè¡
+ æ«ã«æ¥ãæã«ï¼è¡é·ãè©°ãã調æ´ã»ä¼¸ã°ã調æ´ã®ã
+ ãã«ãã®æåã¨è¡æ«ã®éã«æ¿å
¥å¯è½ãªã«ã¼ã³ã®å¤§ãããæå®ããï¼
+%
-\item[glue={\{[$j$]=\{, , \}, ...\}}]
\end{list}
+%<*ja>
+\paragraph{æåã¯ã©ã¹ã®æ±ºå®}
+æåã¯ã©ã¹ã®æ±ºå®ã¯å°ã
è¤éã§ããï¼ããã§ã¯ä¾ãç¨ãã¦èª¬æãããï¼
+
+
+ãã¨ãã°ï¼æ¬¡ã®å
容ãä¸é¨ã«å«ãã \texttt{jfm-test.lua} ãèãããï¼
+\begin{lstlisting}
+ [0] = {
+ chars = { 'æ¼¢', 'ã*' },
+ align = 'left', left = 0.0, down = 0.0,
+ width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
+ },
+ [2000] = {
+ chars = { 'ã', 'ã*', 'ï¾' },
+ align = 'left', left = 0.0, down = 0.0,
+ width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
+ },
+\end{lstlisting}
+å¥ç¹ãããã®å¹
ã¯äºåã§ããã®ã§
+\begin{LTXexample}
+\jfont\a=file:KozMinPr6N-Regular.otf:jfm=test;+vert
+\setbox0\hbox{\a ã\inhibitglue æ¼¢}
+\the\wd0
+\end{LTXexample}
+ã§ã¯ï¼å
¨è§äºå(15.0\,pt)ã¨ãªããªããã°ãããããï¼ä¸ã®å®è¡çµæã§ã¯20\,ptã¨ãªã£ã¦ããï¼
+ããã¯ä»¥ä¸ã®äºæ
ã«ãããã®ã§ããï¼
+\begin{enumerate}
+\item \verb+vert+ featureã«ãã£ã¦å¥ç¹ã縦æ¸ãç¨ã®ã°ãªãã¨ç½®ãæããï¼\Pkg{luaotfload} ã«ããå¦çï¼ï¼
+\item ããããã®ã°ãªãã¯ãæåã³ã¼ããU+F0000以éã¨ã¿ãªããã¦ãã
+ï¼å®éã«ãããã«ãªããã¯ï¼ãã©ã³ãã«ãã£ã¦ç°ãªãï¼ï¼
+\item ãã£ã¦ï¼æåã¯ã©ã¹0ã¨ã¿ãªãããããï¼çµæã¨ãã¦ãããã®å¹
ã¯å
¨è§ã ã¨èªèããã¦ãã¾ãï¼
+\end{enumerate}
+
+ä¸æ¹ï¼ã\texttt{'ã*'}ãã®ããã«ã¢ã¹ã¿ãªã¹ã¯ã¤ãã®æå®ãããã¨ï¼
+ç¶æ³ã¯ç°ãªã£ã¦ããï¼
+\begin{LTXexample}[width=0.3\textwidth]
+\jfont\a=file:KozMinPr6N-Regular.otf:jfm=test;+vert
+\a æ¼¢ã\inhibitglue æ¼¢
+\end{LTXexample}
+ããã§ï¼èªç¹ãããã®æåã¯ã©ã¹ã¯ï¼ä»¥ä¸ã®ããã«ãã¦æ±ºã¾ãï¼
+\begin{enumerate}
+\item ã¨ããããå¥ç¹ã®æã¨åãããã«ï¼\Pkg{luaotfload} ã«ãã£ã¦ç¸¦æ¸ãç¨èªç¹ã®ã°ãªãã«ç½®ãæããï¼
+\item ç½®æå¾ã®ã°ãªãã®ãæåã³ã¼ããã¯U+F0000以éã§ããï¼
+ãã®ã¾ã¾ã§ã¯æåã¯ã©ã¹ã¯0ã¨å¤å®ãããï¼
+\item ã¨ãããï¼JFMã«ã¯ã\texttt{'ã*'}ãæå®ãããã®ã§ï¼ç½®æåã®æ¨ªæ¸ãç¨èªç¹ã®ã°ãªããããï¼æåã³ã¼ãã¯U+3001ï¼ã«ãã£ã¦æåã¯ã©ã¹ãå¤å®ããï¼
+\item çµæã¨ãã¦ï¼ä¸ã®åºåä¾ä¸ã®èªç¹ã®æåã¯ã©ã¹ã¯2000ã¨ãªãï¼
+\end{enumerate}
+
+ãªãï¼ç½®æå¾ã®ã°ãªãã§å¤å®ããæåã¯ã©ã¹ã®å¤ã0ã§ãªããã°ï¼ãã¡ãããã®ã¾ã¾ä½ç¨ããï¼
+\begin{LTXexample}[width=0.3\textwidth]
+\jfont\a=file:KozMinPr6N-Regular.otf:jfm=test;+hwid
+\a æ¼¢ï¾ã²
+\end{LTXexample}
+ä¸ã®ä¾ã§ã¯ï¼
+\texttt{hwid} featureã«ããï¼ããããåè§ã®ãï¾ãã«ç½®ãæãããï¼
+æåã¯ã©ã¹ã¯ãããã®å±ãã0\textbf{ã§ã¯ãªã}ï¼ãï¾ãã®å±ãã2000ã¨ãªãï¼
+%
+
+%\paragraph{ä»®æ³çãªæå}
+%\paragraph{Imaginary characters}
%<*en>
As described before, you can specify several `imaginary characters' in
\texttt{chars} field. The most of these characters are regarded as the
@@ -2215,25 +2631,22 @@ The following is the list of `imaginary characters':
ã¯ã©ã¹0ã®æåãã¨ãã¦æ±ããã¦ããæåã§ããï¼ãã®çµæã¨ãã¦\pTeX ããç´°ã
ãçµç調æ´ãã§ããããã«ãªã£ã¦ããï¼ä»¥ä¸ã§ãã®ä¸è¦§ãè¿°ã¹ãï¼
%
-\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
-\item['lineend']
-%An ending of a line.
-%è¡ã®çµç«¯ã表ãï¼
-\item['diffmet']
-%Used at a boundary between two \textbf{JAchar}s whose JFM or size is different.
-%JFM ããµã¤ãºãç°ãªã2ã¤ã® \textbf{JAchar} ã®éã®å¢çã¨ãã¦ç¨ããããï¼
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+%%\item['diffmet']
+%%Used at a boundary between two \textbf{JAchar}s whose JFM or size is different.
+%%JFMããµã¤ãºãç°ãªã2ã¤ã®\textbf{JAchar}ã®éã®å¢çã¨ãã¦ç¨ããããï¼
\item['boxbdd']
%The beginning/ending of a horizontal box, and the beginning of a noindented paragraph.
-%hboxã®å
é ã¨æ«å°¾ï¼åã³ã¤ã³ãã³ãããã¦ããªãï¼\verb+\noindent+ã§éå§ãããï¼æ®µè½ã®å
é ã表ãï¼
+%æ°´å¹³ããã¯ã¹ã®å
é ã¨æ«å°¾ï¼åã³ã¤ã³ãã³ãããã¦ããªãï¼\verb+\noindent+ ã§éå§ãããï¼æ®µè½ã®å
é ã表ãï¼
\item['parbdd']
%The beginning of an (indented) paragraph.
-%é常ã®ï¼\verb+\noindent+ã§éå§ããã¦ããªãï¼æ®µè½ã®å
é ï¼
+%é常ã®ï¼\verb+\noindent+ ã§éå§ããã¦ããªãï¼æ®µè½ã®å
é ï¼
\item['jcharbdd']
-%A boundary between \textbf{JAchar} and anything else (such as \textbf{ALchar}, kern, glue, ...).
+%A boundary between \textbf{JAchar} and anything else (such as \textbf{ALchar}, kern, glue,\,\ldots).
%åææåã¨ããã®ä»ã®ãã®ãï¼æ¬§ææåï¼glueï¼kernçï¼ã¨ã®å¢çï¼
\item[$-1$]
@@ -2242,16 +2655,16 @@ The following is the list of `imaginary characters':
\end{list}
%\paragraph{Porting JFM from \pTeX}
-%\paragraph{\pTeX ç¨åæãã©ã³ãã¡ããªãã¯ã®ç§»æ¤}
+%\paragraph{\pTeX ç¨åæç¨TFMã®ç§»æ¤}
% ToDo: English version.
%<*en>
-...
+\ldots
%
%<*ja>
-以ä¸ã«ï¼\pTeX ç¨åæãã©ã³ãã¡ããªãã¯ã\LuaTeX-jaç¨ã«ç§»æ¤ããå ´åã®æ³¨æç¹ãæãã¦ããï¼
+以ä¸ã«ï¼\pTeX ç¨ã«ä½ãããåæç¨TFMã\LuaTeX-jaç¨ã«ç§»æ¤ããå ´åã®æ³¨æç¹ãæãã¦ããï¼
\begin{itemize}
\item å®éã«åºåãããåæãã©ã³ãã®ãµã¤ãºãdesign sizeã¨ãªãï¼
ãã®ããï¼ä¾ãã°$1\,\textrm{zw}$ãdesign sizeã®0.962216åã§ããJISãã©ã³
@@ -2270,29 +2683,33 @@ The following is the list of `imaginary characters':
æåã¯ã©ã¹ã«é¢ãã¦ã¯ã°ã«ã¼ï¼ã«ã¼ã³ã®è¨å®ã¯ããªãï¼
ããã¯ï¼\pTeX ã§ã¯ï¼
- æ°´å¹³ããã¯ã¹ã®å
é ã»æ«å°¾ã¨ã¤ã³ãã³ãããã¦ããªãï¼\verb+\noindent+ã§éå§ã
+ æ°´å¹³ããã¯ã¹ã®å
é ã»æ«å°¾ã¨ã¤ã³ãã³ãããã¦ããªãï¼\verb+\noindent+ ã§éå§ã
ããï¼æ®µè½ã®å
é ã«ã¯JFMã°ã«ã¼ã¯å
¥ããªãã¨ããä»æ§ãå®ç¾ãããããã§ããï¼
\item \pTeX ã®çµçãåç¾ããããã¨ããã®ãç®çã§ããã°ä»¥ä¸ã®æ³¨æãå®ãã°ååã§ããï¼
ã¨ããã§ï¼\pTeX ã§ã¯é常ã®æ®µè½ã®å
é ã«JFMã°ã«ã¼ãæ®ãã¨ããä»æ§ãããã®ã§ï¼
段è½å
é ã®éãæ¬å¼§ã¯å
¨è§äºåä¸ããã«ãªãï¼å
¨è§ä¸ãããå®ç¾ãããã«
- ã¯ï¼æ®µè½ã®æåã«æåã§\verb+\inhibitglue+ã追å ãããï¼ãããã¯
- \verb+\everypar+ã®hackãè¡ãï¼ãããèªååããããããªãã£ãï¼
+ ã¯ï¼æ®µè½ã®æåã«æå㧠\verb+\inhibitglue+ ã追å ãããï¼ãããã¯
+ \ \verb+\everypar+ ã®ããã¯ãè¡ãï¼ãããèªååããããããªãã£ãï¼
ä¸æ¹ï¼\LuaTeX-jaã§ã¯ï¼\texttt{'parbdd'}ã«ãã£ã¦ï¼ãããJFMå´ã§èª¿æ´ã§ããã
ãã«ãªã£ãï¼ä¾ãã°ï¼\LuaTeX-jaå梱ã®JFMã®ããã«ï¼\texttt{'boxbdd'}ã¨åãæåã¯ã©ã¹ã«
\texttt{'parbdd'}ãå
¥ããã°å
¨è§ä¸ããã¨ãªãï¼
-\ltjsetparameter{jacharrange={+3}}
\begin{LTXexample}
-\jfont\g=psft:Ryumin-Light:jfm=test \g
+\jfont\g=file:KozMinPr6N-Regular.otf:jfm=test \g
\parindent1\zw\noindent{}âââââ
\par ãâââäºåä¸ãã
\par ãâââå
¨è§ä¸ãã
\par ãâââå
¨è§äºåä¸ãã
\end{LTXexample}
\end{itemize}
-\ltjsetparameter{jacharrange={-3}}
+
+ä½ãï¼\verb+\everypar+ ãå©ç¨ãã¦ããå ´åã«ã¯ãã®ä»çµã¿ã¯æ£ããåããªãï¼
+ãã®ãããªä¾ã¨ãã¦ã¯ç®æ¡æ¸ãä¸ã® \verb+\item+ ã§å§ã¾ã段è½ãããï¼\Pkg{ltjsclasses}ã§ã¯
+人工çã«ã\texttt{'parbdd'}ã®æå³ãæã¤ãwhatsitãã¼ããä½ããã¨ã«ãã£ã¦å¯¾å¦ãã¦ãã%
+\footnote{\texttt{no\_runtime/ltjsclasses.dtx} ãåç
§ããããï¼
+JFMå´ã§ä¸é¨ã®å¯¾å¦ãã§ãããã¨ã«ããï¼\Pkg{jsclasses}ã®ããã«ifæã®å¤å®ã¯ãã¦ããªãï¼}
%
%\subsection{Math Font Family}
@@ -2308,8 +2725,8 @@ an external package is needed to support this in plain \TeX\ and
%
%<*ja>
\TeX\ ã¯æ°å¼ãã©ã³ãã16ã®ãã¡ããª\footnote{Omega, Aleph, \LuaTeXï¼ããã¦
- $\varepsilon$-\kern-.125em(u)\pTeX\ ã§ã¯256 ã®æ°å¼ãã¡ããªãæ±ããã¨ãã§ãããï¼
- ããããµãã¼ãããããã« plain \TeX 㨠\LaTeX ã§ã¯å¤é¨ããã±ã¼ã¸ãèªã¿è¾¼ãå¿
è¦ã
+ $\varepsilon$-\kern-.125em(u)\pTeX\ ã§ã¯256ã®æ°å¼ãã¡ããªãæ±ããã¨ãã§ãããï¼
+ ããããµãã¼ãããããã«plain \TeX ã¨\LaTeX ã§ã¯å¤é¨ããã±ã¼ã¸ãèªã¿è¾¼ãå¿
è¦ã
ããï¼}ã§ç®¡çãï¼ããããã®ãã¡ããªã¯3ã¤ã®ãã©ã³ããæã£ã¦ããï¼\verb+\textfont+, \verb+\scriptfont+ ãã㦠\verb+\scriptscriptfont+ ã§ãã.
%
@@ -2321,26 +2738,27 @@ font families. There is no relation between the value of
you can set both \verb+\fam+ and \verb+\jfam+ to the same value.
%
%<*ja>
-\LuaTeX-ja ã®æ°å¼ä¸ã§ã®åæãã©ã³ãã®æ±ããåæ§ã§ããï¼
-表 \ref{tab-math} ã¯æ°å¼ãã©ã³ããã¡ããªã«å¯¾ãã \TeX\ ã®ããªããã£ãã¨å¯¾å¿ãã
+\LuaTeX-jaã®æ°å¼ä¸ã§ã®åæãã©ã³ãã®æ±ããåæ§ã§ããï¼
+表\ref{tab-math}ã¯æ°å¼ãã©ã³ããã¡ããªã«å¯¾ãã \TeX ã®ããªããã£ãã¨å¯¾å¿ãã
ãã®ã示ãã¦ããï¼\verb+\fam+ 㨠\verb+\jfam+ ã®å¤ã®éã«ã¯é¢ä¿ã¯ãªãï¼
é©åãªè¨å®ã®ä¸ã§ã¯ \verb+\fam+ 㨠\verb+\jfam+ ã®ä¸¡æ¹ã«åãå¤ãè¨å®ãããã¨ãã§ããï¼
%
\begin{table}[!tb]
-%\caption{Primitives for Japanese math fonts.}
-%\caption{åææ°å¼ãã©ã³ãã«å¯¾ããããªããã£ãï¼}
+%\caption{Control sequences for Japanese math fonts}
+%\caption{åææ°å¼ãã©ã³ãã«å¯¾ããå½ä»¤}
\label{tab-math}
-\begin{center}\def\{{\char`\{}\def\}{\char`\}}
-\begin{tabular}{lll}
+\begin{center}
+\def\{{\char`\{}\def\}{\char`\}}\small
+\begin{tabular}{ll}
\toprule
-%&Japanese fonts&alphabetic fonts\\
-%&åæãã©ã³ã&欧æãã©ã³ã\\
+%\bf Japanese fonts&\bf alphabetic fonts\\
+%\bf åæãã©ã³ã&\bf 欧æãã©ã³ã\\
\midrule
-font family&\verb+\jfam+${}\in [0,256)$&\verb+\fam+\\
-text size&\tt\Param{jatextfont}\,=\{,\}&\tt\verb+\textfont+=\\
-script size&\tt\Param{jascriptfont}\,=\{,\}&\tt\verb+\scriptfont+=\\
-scriptscript size&\tt\Param{jascriptscriptfont}\,=\{,\}&\tt\verb+\scriptscriptfont+=\\
+\verb+\jfam+${}\in [0,256)$&\verb+\fam+\\
+\tt\Param{jatextfont}\,=\{,\}&\tt\verb+\textfont+=\\
+\tt\Param{jascriptfont}\,=\{,\}&\tt\verb+\scriptfont+=\\
+\tt\Param{jascriptscriptfont}\,=\{,\}&\tt\verb+\scriptscriptfont+=\\
\bottomrule
\end{tabular}
\end{center}
@@ -2354,21 +2772,21 @@ Like \LuaTeX\ itself, \LuaTeX-ja also has callbacks. These callbacks can
be accessed via \verb+luatexbase.add_to_callback+ function and so on, as other callbacks.
%
%<*ja>
-\LuaTeX èªä½ã®ãã®ã«å ãã¦ï¼\LuaTeX-ja ãã³ã¼ã«ããã¯ãæã£ã¦ããï¼
+\LuaTeX èªä½ã®ãã®ã«å ãã¦ï¼\LuaTeX-jaãã³ã¼ã«ããã¯ãæã£ã¦ããï¼
ãããã®ã³ã¼ã«ããã¯ã«ã¯ï¼ä»ã®ã³ã¼ã«ããã¯ã¨åæ§ã« \verb+luatexbase.add_to_callback+
é¢æ°ãªã©ãç¨ãããã¨ã§ã¢ã¯ã»ã¹ãããã¨ãã§ããï¼
%
\begin{list}{}%
{\def\makelabel#1{\bfseries#1}}
%\item[\texttt{luatexja.load\_jfm} callback]
-%\item[\texttt{luatexja.load\_jfm} ã³ã¼ã«ããã¯]
+%\item[\texttt{luatexja.load\_jfm}ã³ã¼ã«ããã¯]
%<*en>
With this callback you can overwrite JFMs.
This callback is called when a new JFM is loaded.
%
%<*ja>
-ãã®ã³ã¼ã«ããã¯ãç¨ãããã¨ã§ JFM ãä¸æ¸ããããã¨ãã§ããï¼
-ãã®ã³ã¼ã«ããã¯ã¯æ°ãã JFM ãèªã¿è¾¼ã¾ããã¨ãã«å¼ã³åºãããï¼
+ãã®ã³ã¼ã«ããã¯ãç¨ãããã¨ã§JFMãä¸æ¸ããããã¨ãã§ããï¼
+ãã®ã³ã¼ã«ããã¯ã¯æ°ããJFMãèªã¿è¾¼ã¾ããã¨ãã«å¼ã³åºãããï¼
%
\begin{lstlisting}[numbers=left]
@@ -2383,31 +2801,29 @@ this argument has \texttt{chars} field which contains character codes
whose character class is not~0.
%
%<*ja>
-å¼æ° \verb+jfm_info+ 㯠JFM ãã¡ã¤ã«ã®ãã¼ãã«ã¨ä¼¼ããã®ãæ ¼ç´ããããï¼
-ã¯ã©ã¹0ãé¤ããæåã®ã³ã¼ããå«ãã \texttt{chars} ãã£ã¼ã«ããæã¤ç¹ãç°ãªãï¼
+å¼æ° \verb+jfm_info+ ã¯JFMãã¡ã¤ã«ã®ãã¼ãã«ã¨ä¼¼ããã®ãæ ¼ç´ããããï¼
+ã¯ã©ã¹0ãé¤ããæåã®ã³ã¼ããå«ãã \texttt{chars}ãã£ã¼ã«ããæã¤ç¹ãç°ãªãï¼
%
%<*en>
An example of this callback is the \texttt{ltjarticle} class, with
forcefully assigning character class~0 to \texttt{'parbdd'}
- in the JFM \texttt{jfm-min.lua}. This callback doesn't
- replace any code of \LuaTeX-ja.
+ in the JFM \texttt{jfm-min.lua}.
%
%<*ja>
-ãã®ã³ã¼ã«ããã¯ã®ä½¿ç¨ä¾ã¯ \texttt{ltjarticle} ã¯ã©ã¹ã«ããï¼
-\texttt{jfm-min.lua} ä¸ã® \texttt{'parbdd'} ãå¼·å¶çã«ã¯ã©ã¹0ã«å²ãå½ã¦ã¦ããï¼
-ãã®ã³ã¼ã«ããã¯ã¯ \LuaTeX-ja ã®ã³ã¼ããæ¸ãæããªãï¼
+ãã®ã³ã¼ã«ããã¯ã®ä½¿ç¨ä¾ã¯\texttt{ltjarticle}ã¯ã©ã¹ã«ããï¼
+\texttt{jfm-min.lua}ä¸ã®\texttt{'parbdd'}ãå¼·å¶çã«ã¯ã©ã¹0ã«å²ãå½ã¦ã¦ããï¼
%
%\item[\texttt{luatexja.define\_font} callback]
-%\item[\texttt{luatexja.define\_font} ã³ã¼ã«ããã¯]
+%\item[\texttt{luatexja.define\_font}ã³ã¼ã«ããã¯]
%<*en>
This callback and the next callback form a pair, and you can assign letters which don't have
fixed code points in Unicode to non-zero character classes.
This \texttt{luatexja.define\_font} callback is called just when new Japanese font is loaded.
%
%<*ja>
-ãã®ã³ã¼ã«ããã¯ã¨æ¬¡ã®ã³ã¼ã«ããã¯ã¯çµããªãã¦ããï¼Unicode ä¸ã«åºå®ãããæåã³ã¼ã
+ãã®ã³ã¼ã«ããã¯ã¨æ¬¡ã®ã³ã¼ã«ããã¯ã¯çµããªãã¦ããï¼Unicodeä¸ã«åºå®ãããæåã³ã¼ã
çªå·ãæããªãæåãéé¶ã®æåã¯ã©ã¹ã«å²ãå½ã¦ããã¨ãã§ããï¼
ãã®ã³ã¼ã«ããã¯ã¯æ°ããåæãã©ã³ããèªã¿è¾¼ã¾ããã¨ãã«å¼ã³åºãããï¼
%
@@ -2422,28 +2838,50 @@ end
You may assume that \verb+jfont_info+ has the following fields:
%
%<*ja>
-\verb+jfont_info+ ã¯ä»¥ä¸ã®ãã£ã¼ã«ããæã¤ï¼
+\verb+jfont_info+ ã¯ä»¥ä¸ã®2ãã£ã¼ã«ããæã¤ï¼
%
\begin{description}
-\item[\tt jfm]
-%The index number of JFM.
-%JFM ã®ã¤ã³ããã¯ã¹çªå·ï¼
-
-\item[\tt size]
-%Font size in a scaled point (${}=2^{-16}\,\textrm{pt}$).
-%ã¹ã±ã¼ã«ãã»ãã¤ã³ã (${}=2^{-16}\,\textrm{pt}$) ãåä½ã¨ãããã©ã³ãã®ãµã¤ãºï¼
+\item[\tt size\_cache]
+%<*ja>
+使ç¨ããã¦ããJFMã®æ
å ±ãæ ¼ç´ããã¦ãããã¼ãã«ã§ï¼
+\textbf{ãã®ãã¼ãã«ãæ¸ãæãã¦ã¯ãªããªã}ï¼
+ä¸èº«ã¯ã»ã¼JFMãã¡ã¤ã«ã«æ¸ããã¦ããå¯ä¸ã®ãã¼ãã«ã§ãããï¼æ¬¡ã®ããã«è¥å¹²å¤ãã£ã¦ããï¼
+\begin{itemize}
+\item åæåã¯ã©ã¹$i$ã«å±ããæåéã®ãã¼ãã«
+\texttt{[$i$].chars=\{, ...\}}ã¯ï¼ãããã¬ãã«ã«ã¾ã¨ãããï¼
+\texttt{chars=\{[]=$i$, ...\}}ã¨ããå½¢ã«ãªã£ã¦ããï¼
+\item \texttt{zw},~\texttt{zh}, \texttt{kanjiskip},~\texttt{xkanjiskip} ã®åãã£ã¼ã«ãã®å¤ã¯ï¼
+å®éã«ä½¿ããããã©ã³ããµã¤ãºã«åãããsp ($1\,\mathrm{sp}=2^{-6}\,\mathrm{pt}$)åä½ã®é·ãã«å¤ãã£ã¦ããï¼
+\item åæåã¯ã©ã¹$i$ã®æ
å ±ãæ ¼ç´ãããã¼ãã«ãï¼\texttt{char\_type} ãã£ã¼ã«ãã®ä¸ã«ã¾ã¨ãããã¦ããï¼
+ä¾ãã°ï¼æåã¯ã©ã¹1ã«å±ããæåã®é«ã㯠\texttt{char\_type[1].height} ã§åç
§ã§ããï¼
+\item \texttt{dir} ãã£ã¼ã«ãã¯ãã®ãã¼ãã«ã«ã¯ãªãï¼
+\end{itemize}
+%
+%<*en>
+A table which contains the information of a JFM, and \emph{this table must not be changed}.
+The contents of this table are similar to that which is written is the JFM file, but
+the following differ:
+\begin{itemize}
+\item There is a \texttt{chars} table, \dots
+\item The value in \texttt{zw},~\texttt{zh}, \texttt{kanjiskip},~\texttt{xkanjiskip} fields are
+now scaled by real font size, and in scaled-pont unit.
+\item ...
+\item There is no \texttt{dir} field in this table.
+\end{itemize}
+%
\item[\tt var]
%The value specified in \texttt{jfmvar=...} at a call of \verb+\jfont+.
-%\verb+\jfont+ ã®å¼ã³åºãã®éã« \texttt{jfmvar=...} ã§æå®ãããå¤ï¼
+%\verb+\jfont+ ã®å¼ã³åºãã®éã«\texttt{jfmvar=...}ã§æå®ãããå¤ï¼
\end{description}
%<*en>
-The returned table \verb+new_jfont_info+ also should include these three fields.
+The returned table \verb+new_jfont_info+ also should include these two fields.
The \verb+font_number+ is a font number.
%
%<*ja>
-æ»ãå¤ã® \verb+new_jfont_info+ ãã¼ãã«ãããã3ã¤ã®ãã£ã¼ã«ããå«ã¾ãªããã°ãªããªãï¼
+æ»ãå¤ã® \verb+new_jfont_info+ ãã¼ãã«ãããã2ã¤ã®ãã£ã¼ã«ããå«ã¾ãªããã°ãªããªããï¼
+ãã以å¤ã«ã¦ã¼ã¶ãåæã«ãã£ã¼ã«ããä»ãå ãããã¨ã¯èªç±ã§ããï¼
\verb+font_number+ ã¯ãã©ã³ãçªå·ã§ããï¼
%
@@ -2454,21 +2892,20 @@ A good example of this and the next callbacks is the \Pkg{luatexja-otf}
code of \LuaTeX-ja.
%
%<*ja>
-ããã¨æ¬¡ã®ã³ã¼ã«ããã¯ã®è¯ã使ç¨ä¾ã¯ \Pkg{luatexja-otf} ããã±ã¼ã¸ã§ããï¼
-JFM ä¸ã§ Adobe-Japan1 CID ã®æåã \verb+"AJ1-xxx"+ ã®å½¢ã§æå®ããããã«
+ããã¨æ¬¡ã®ã³ã¼ã«ããã¯ã®è¯ã使ç¨ä¾ã¯\Pkg{luatexja-otf}ããã±ã¼ã¸ã§ããï¼
+JFMä¸ã§Adobe-Japan1 CIDã®æåã \verb+"AJ1-xxx"+ ã®å½¢ã§æå®ããããã«
ç¨ãããã¦ããï¼
-ãã®ã³ã¼ã«ããã¯ã¯ \LuaTeX-ja ã®ã³ã¼ããæ¸ãæããªãï¼
%
%\item[\texttt{luatexja.find\_char\_class} callback]
-%\item[\texttt{luatexja.find\_char\_class} ã³ã¼ã«ããã¯]
+%\item[\texttt{luatexja.find\_char\_class}ã³ã¼ã«ããã¯]
%<*en>
This callback is called just when \LuaTeX-ja is trying to determine which
character class a character \verb+chr_code+ belongs.
A function used in this callback should be in the following form:
%
%<*ja>
-ãã®ã³ã¼ã«ããã¯ã¯ \LuaTeX-ja ã \verb+chr_code+ ã®æåãã©ã®æåã¯ã©ã¹ã«
+ãã®ã³ã¼ã«ããã¯ã¯\LuaTeX-jaã \verb+chr_code+ ã®æåãã©ã®æåã¯ã©ã¹ã«
å±ãããã決å®ãããã¨ããéã«å¼ã³åºãããï¼
ãã®ã³ã¼ã«ããã¯ã§å¼ã³åºãããé¢æ°ã¯æ¬¡ã®å½¢ããã¦ããªããã°ãªããªãï¼
%
@@ -2491,30 +2928,23 @@ The argument \verb+char_class+ is the result of \LuaTeX-ja's default
default routine.
%
%<*ja>
-å¼æ° \verb+char_class+ 㯠\LuaTeX-ja ã®ããã©ã«ãã«ã¼ãã³ãï¼ãã®ã³ã¼ã«ããã¯ã®
+å¼æ° \verb+char_class+ ã¯\LuaTeX-jaã®ããã©ã«ãã«ã¼ãã³ãï¼ãã®ã³ã¼ã«ããã¯ã®
ç´åã®é¢æ°å¼ã³åºãã®çµæãå«ãã§ããï¼ãããã£ã¦ãã®å¤ã¯0ã§ã¯ãªããããããªãï¼
ããã«ï¼æ»ãå¤ã® \verb+new_char_class+ 㯠\verb+char_class+ ãéé¶ã®ã¨ãã«ã¯
-\verb+char_class+ ã®å¤ã¨åãã§ããã¹ãã§ï¼ããã§ãªãã¨ã㯠\LuaTeX-ja ã®
+\verb+char_class+ ã®å¤ã¨åãã§ããã¹ãã§ï¼ããã§ãªãã¨ãã¯\LuaTeX-jaã®
ããã©ã«ãã«ã¼ãã³ãæ¸ãæãããã¨ã«ãªãï¼
%
-%<*en>
-This callback doesn't replace any code of \LuaTeX-ja.
-%
-%<*ja>
-ãã®ã³ã¼ã«ããã¯ã¯ \LuaTeX-ja ã®ã³ã¼ããæ¸ãæããªãï¼
-%
-
%\item[\texttt{luatexja.set\_width} callback]
-%\item[\texttt{luatexja.set\_width} ã³ã¼ã«ããã¯]
+%\item[\texttt{luatexja.set\_width}ã³ã¼ã«ããã¯]
%<*en>
This callback is called when \LuaTeX-ja is trying to encapsule a
\textbf{JAchar} \textit{glyph\_node}, to adjust its
dimension and position.
%
%<*ja>
-ãã®ã³ã¼ã«ããã¯ã¯ \LuaTeX-ja ã \textbf{JAchar} ã®å¯¸æ³ã¨ä½ç½®ã調ç¯ããããã«
-ãã® \textit{glyph\_node} ãã«ãã»ã«åãããã¨ããéã«å¼ã³åºãããï¼
+ãã®ã³ã¼ã«ããã¯ã¯\LuaTeX-jaã\textbf{JAchar}ã®å¯¸æ³ã¨ä½ç½®ã調ç¯ããããã«
+ãã®\textit{glyph\_node}ãã«ãã»ã«åãããã¨ããéã«å¼ã³åºãããï¼
%
\begin{lstlisting}[numbers=left]
function ( shift_info, jfont_info, char_class)
@@ -2529,7 +2959,7 @@ The argument \verb+shift_info+ and the returned \verb+new_shift_info+ have
%
%<*ja>
å¼æ° \verb+shift_info+ ã¨æ»ãå¤ã® \verb+new_shift_info+ ã¯
-\texttt{down} 㨠\texttt{left} ã®ãã£ã¼ã«ããæã¡ï¼ãããã®å¤ã¯
+\texttt{down}ã¨\texttt{left}ã®ãã£ã¼ã«ããæã¡ï¼ãããã®å¤ã¯
æåã®ä¸ï¼å·¦ã¸ã®ã·ããéï¼ã¹ã±ã¼ã«ãã»ãã¤ã³ãåä½ï¼ã§ããï¼
%
@@ -2545,9 +2975,6 @@ to be that of letters in the character class~0. For example, suppose that
(the standard values of Japanese TrueType fonts).
\end{itemize}
Then, the position of glyphs is shifted up by
-\[
- \frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{825}y= 0.03\dot1\dot5y.
-\]
%
%<*ja>
è¯ãä¾ã\Pkg{test/valign.lua}ã§ããï¼ãã®ãã¡ã¤ã«ãèªã¿è¾¼ã¾ããç¶æ
ã§ã¯ï¼
@@ -2559,24 +2986,23 @@ Then, the position of glyphs is shifted up by
ï¼åæOpenTypeãã©ã³ãã®æ¨æºå¤ï¼
\item å®ãã©ã³ãå´ã®æ°å¤ï¼$(\hbox{é«ã})=28y$, $(\hbox{æ·±ã})=5y$ï¼åæTrueTypeãã©ã³ãã®æ¨æºå¤ï¼
\end{itemize}
-ã¨ãªã£ã¦ããã¨ããï¼ããã¨ï¼å®éã®æåã®åºåä½ç½®ã¯ï¼
+ã¨ãªã£ã¦ããã¨ããï¼ããã¨ï¼å®éã®æåã®åºåä½ç½®ã¯ï¼ä»¥ä¸ã®éã ãä¸ã«ããããããã¨ã¨ãªãï¼
+%
\[
- \frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{825}y= 0.03\dot1\dot5y
+ \frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{25}y= 1.04y.
\]
-ã ãä¸ã«ããããããã¨ã«ãªãï¼
-%
\end{list}
%\section{Parameters}
%\section{ãã©ã¡ã¼ã¿}
-%\subsection{\texttt{\char92 ltjsetparameter} primitive}
-%\subsection{\texttt{\char92 ltjsetparameter} ããªããã£ã}
+%\subsection{\texttt{\char92 ltjsetparameter}}
+%\subsection{\texttt{\char92 ltjsetparameter}å½ä»¤}
%<*en>
As noted before, \verb+\ltjsetparameter+ and \verb+\ltjgetparameter+ are
-primitives for accessing most parameters of \LuaTeX-ja. One of the main
+control sequences for accessing most parameters of \LuaTeX-ja. One of the main
reason that \LuaTeX-ja didn't adopted the syntax similar to that of \pTeX\
(\textit{e.g.},~\verb+\prebreakpenalty`ï¼=10000+)
is the position of \verb+hpack_filter+ callback in the source
@@ -2584,14 +3010,14 @@ of \LuaTeX, see Section~\ref{sec-para}.
%
%<*ja>
å
ã«è¿°ã¹ãããã«ï¼\verb+\ltjsetparameter+ 㨠\verb+\ltjgetparameter+ ã¯
-\LuaTeX-ja ã®ã»ã¨ãã©ã®ãã©ã¡ã¼ã¿ã«ã¢ã¯ã»ã¹ããããã®ããªããã£ãã§ããï¼
-\LuaTeX-ja ã \pTeX ã®ãããªææ³ï¼ä¾ãã°ï¼\verb+\prebreakpenalty`ï¼=10000+ï¼ã
-æ¡ç¨ããªãçç±ã®ä¸ã¤ã¯ï¼\LuaTeX ã®ã½ã¼ã¹ã«ããã \verb+\hpack_filter+
-ã³ã¼ã«ããã¯ã®ä½ç½®ã«ããï¼\ref{sec-para} ç¯ãåç
§ï¼
+\LuaTeX-jaã®ã»ã¨ãã©ã®ãã©ã¡ã¼ã¿ã«ã¢ã¯ã»ã¹ããããã®å½ä»¤ã§ããï¼
+\LuaTeX-jaã\pTeX ã®ãããªææ³ï¼ä¾ãã°ï¼\verb+\prebreakpenalty`ï¼=10000+ï¼ã
+æ¡ç¨ããªãçç±ã®ä¸ã¤ã¯ï¼\LuaTeX ã®ã½ã¼ã¹ã«ããã \verb+hpack_filter+
+ã³ã¼ã«ããã¯ã®ä½ç½®ã«ããï¼\ref{sec-para}ç¯ãåç
§ï¼
%
%<*en>
-\verb+\ltjsetparameter+ and \verb+\ltjglobalsetparameter+ are primitives
+\verb+\ltjsetparameter+ and \verb+\ltjglobalsetparameter+ are control sequences
for assigning parameters. These take one argument which is a
\texttt{=} list. Allowed keys are described in the next
subsection.
@@ -2605,7 +3031,7 @@ like other assignment.
%
%<*ja>
\verb+\ltjsetparameter+ 㨠\verb+\ltjglobalsetparameter+ ã¯ãã©ã¡ã¼ã¿ã
-æå®ããããã®ããªããã£ãã§ããï¼ããã㯠\texttt{=} ã®ãªã¹ãã
+æå®ããããã®å½ä»¤ã§ããï¼ãããã¯\texttt{=}ã®ãªã¹ãã
å¼æ°ã¨ãã¦ã¨ãï¼è¨±ããããã¼ã¯æ¬¡ã®ç¯ã«è¨è¿°ããï¼
\verb+\ltjsetparameter+ 㨠\verb+\ltjglobalsetparameter+ ã®éãã¯ã¹ã³ã¼ãã®
éãã®ã¿ã§ããï¼
@@ -2615,12 +3041,12 @@ like other assignment.
%
%<*en>
-\verb+\ltjgetparameter+ is the primitive for acquiring parameters. It
+\verb+\ltjgetparameter+ is for acquiring parameters. It
always takes a parameter name as first argument, and also takes the
additional argument---a character code, for example---in some cases.
%
%<*ja>
-\verb+\ltjgetparameter+ ã¯ãã©ã¡ã¼ã¿ã®å¤ãåå¾ããããã®ããªããã£ãã§ããï¼
+\verb+\ltjgetparameter+ ã¯ãã©ã¡ã¼ã¿ã®å¤ãåå¾ããããã®å½ä»¤ã§ããï¼
常ã«ãã©ã¡ã¼ã¿ã®ååã第ä¸å¼æ°ã«ã¨ãï¼
ããã¦ï¼ããã¤ãã®å ´åã«ã¯å ãã¦ããã«å¼æ°ï¼ä¾ãã°æåã³ã¼ãï¼ãã¨ãï¼
%
@@ -2636,9 +3062,9 @@ character other than space~`\texttt{\char32}'~(U+0020) has the category code
12~(other), while the space has 10~(space).
%
%<*ja>
-\textbf{{\normalfont\tt\char92ltjgetparameter} ã®æ»ãå¤ã¯å¸¸ã«æååã§ããï¼}
-ãã㯠\texttt{tex.write()} ã«ãã£ã¦åºåãã¦ããããã§ï¼ã¹ãã¼ã¹ `\texttt{\char32}'~(U+0020) ãé¤ããæåã®ã«ãã´ãªã¼ã³ã¼ãã¯å
¨ã¦ 12~(other) ã¨ãªãï¼
-ä¸æ¹ï¼ã¹ãã¼ã¹ã®ã«ãã´ãªã¼ã³ã¼ã㯠10~(space) ã§ããï¼
+\textbf{{\normalfont\tt\char92ltjgetparameter}ã®æ»ãå¤ã¯å¸¸ã«æååã§ããï¼}
+ããã¯\texttt{tex.write()}ã«ãã£ã¦åºåãã¦ããããã§ï¼ã¹ãã¼ã¹`\texttt{\char32}'~(U+0020)ãé¤ããæåã®ã«ãã´ãªã¼ã³ã¼ãã¯å
¨ã¦12~(other)ã¨ãªãï¼
+ä¸æ¹ï¼ã¹ãã¼ã¹ã®ã«ãã´ãªã¼ã³ã¼ãã¯10~(space)ã§ããï¼
%
%\subsection{List of Parameters}
@@ -2652,7 +3078,7 @@ in \pTeX, and symbols beside each parameter has the following meaning:
%
%<*ja>
以ä¸ã¯ \verb+\ltjsetparameter+ ã«æå®ãããã¨ãã§ãããã©ã¡ã¼ã¿ã®ä¸è¦§ã§ããï¼
-[\verb+\cs+] 㯠\pTeX ã«ããã対å¿ç©ã示ãï¼
+[\verb+\cs+]ã¯\pTeX ã«ããã対å¿ç©ã示ãï¼
ã¾ãï¼ããããã®ãã©ã¡ã¼ã¿ã®å³ä¸ã«ããè¨å·ã«ã¯æ¬¡ã®æå³ãããï¼
%
\begin{itemize}
@@ -2686,7 +3112,7 @@ Penalty value for suppressing orphans. This penalty is inserted just
%
%<*ja>
ãã©ã°ã©ãã®æå¾ã®åãå¤ç«ãã¦æ¹è¡ãããã®ãé²ãããã®ããã«ãã£ã®å¤ï¼
-ãã®ããã«ãã£ã¯ï¼æ¥æ¬èªã®ï¼å¥èªç¹ã¨ãã¦æ±ãããªãæå¾ã® \textbf{JAchar} ã®ç´å¾ã«
+ãã®ããã«ãã£ã¯ï¼æ¥æ¬èªã®ï¼å¥èªç¹ã¨ãã¦æ±ãããªãæå¾ã®\textbf{JAchar}ã®ç´å¾ã«
æ¿å
¥ãããï¼
%
@@ -2698,30 +3124,26 @@ At the present version, the lowermost bit of indicates
(see the description of \Param{jcharwidowpenalty} above).
%
%<*ja>
-æåã³ã¼ãã ã®æåãæã¤ä»å çãªå±æ§å¤ (attribute)ï¼
-ç¾å¨ã®ãã¼ã¸ã§ã³ã§ã¯ï¼ ã®æä¸ä½ããããï¼ãã®æåãå¥èªç¹ã¨
-ã¿ãªããããã©ããã表ãã¦ããï¼ä¸ã® \Param{jcharwidowpenalty} ã®è¨è¿°ãåç
§ï¼ï¼
+æåã³ã¼ããã®æåãæã¤ä»å çãªå±æ§å¤(attribute)ï¼
+ç¾å¨ã®ãã¼ã¸ã§ã³ã§ã¯ï¼ã®æä¸ä½ããããï¼ãã®æåãå¥èªç¹ã¨
+ã¿ãªããããã©ããã表ãã¦ããï¼ä¸ã®\Param{jcharwidowpenalty}ã®è¨è¿°ãåç
§ï¼ï¼
%
-\item[\Param{prebreakpenalty}\,=\{,\}] [\verb+\prebreakpenalty+]\
+\item[\Param{\hypertarget{fld:prebp}{prebreakpenalty}}\,=\{,\}] [\verb+\prebreakpenalty+]\
%<*ja>
æåã³ã¼ãã®\textbf{JAchar}ãè¡é ã«ãããã¨ãææ¢ããããã«ï¼
ãã®æåã®åã«æ¿å
¥/追å ãããããã«ãã£ã®éãæå®ããï¼
-ä¾ãã°éãæ¬å¼§ãããã¯çµ¶å¯¾ã«è¡é ã«ãã¦ã¯ãªããªãã®ã§ï¼æ¨æºã§èªã¿è¾¼ã¾ãã
- \texttt{luatexja-kinsoku.tex}ã«ããã¦
+ä¾ãã°éãæ¬å¼§ãããã¯çµ¶å¯¾ã«è¡é ã«ãã¦ã¯ãªããªãã®ã§ï¼
\begin{verbatim}
\ltjsetparameter{prebreakpenalty={`ã,10000}}
\end{verbatim}
-ã¨ï¼æ大å¤ã®10000ãæå®ããã¦ããï¼ä»ã«ãï¼å°æ¸ãã®ã«ããªã©ï¼çµ¶å¯¾ç¦æ¢ã¨ã
+ã¨ï¼æ大å¤ã®10000ãæ¨æºã§æå®ããã¦ããï¼ä»ã«ãï¼å°æ¸ãã®ã«ããªã©ï¼çµ¶å¯¾ç¦æ¢ã¨ã
ãããã§ã¯ãªããã§ããã°è¡é ã«ã¯ãã¦æ¬²ãããªãå ´åã«ï¼0ã¨
10000ã®éã®å¤ãæå®ããã®ãæç¨ã§ããã.
-\begin{verbatim}
-\ltjsetparameter{prebreakpenalty={`ã,150}}
-\end{verbatim}
%
-\item[\Param{postbreakpenalty}\,=\{,\}] [\verb+\postbreakpenalty+]
+\item[\Param{\hypertarget{fld:postbp}{postbreakpenalty}}\,=\{,\}] [\verb+\postbreakpenalty+]
%<*ja>
æåã³ã¼ãã®\textbf{JAchar}ãè¡æ«ã«ãããã¨ãææ¢ããããã«ï¼
ãã®æåã®å¾ã«æ¿å
¥/追å ãããããã«ãã£ã®éãæå®ããï¼
@@ -2732,7 +3154,7 @@ At the present version, the lowermost bit of indicates
ãï¼å¾ããæå®ããæ¹ã§ä¸æ¸ããããï¼ï¼
\item pre, poståããã¦256æååã®æ
å ±ãæ ¼ç´ãããã¨ããã§ããªãã£ãï¼
\end{itemize}
-ã¨ããå¶éããã£ããï¼\LuaTeX-ja ã§ã¯ãããã®å¶éã¯è§£æ¶ããã¦ããï¼
+ã¨ããå¶éããã£ããï¼\LuaTeX-jaã§ã¯ãããã®å¶éã¯è§£æ¶ããã¦ããï¼
%
\item[\Param{jatextfont}\,=\{,\}]
@@ -2750,76 +3172,88 @@ At the present version, the lowermost bit of indicates
\item[\Param{jaxspmode}\,=\{,\}]
%<*en>
-Setting whether inserting \Param{xkanjiskip} is allowed before/after a \textbf{JAchar} whose character code is .
+Setting whether inserting \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before/after a \textbf{JAchar} whose character code is .
The followings are allowed for :
%
%<*ja>
-æåã³ã¼ãã ã® \textbf{JAchar} ã®åï¼å¾ãã« \Param{xkanjiskip} ã®
+æåã³ã¼ããã®\textbf{JAchar}ã®åï¼å¾ãã«\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®
æ¿å
¥ã許ããã©ããã®è¨å®ï¼
-以ä¸ã® ã許ãããï¼
+以ä¸ã®ã許ãããï¼
%
\begin{description}
-%\item[0, \texttt{inhibit}] Insertion of \Param{xkanjiskip} is inhibited before the character, nor after the character.
-%\item[0, \texttt{inhibit}] \Param{xkanjiskip} ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ãç¦æ¢ãããï¼
-%\item[1, \texttt{preonly}] Insertion of \Param{xkanjiskip} is allowed before the character, but not after.
-%\item[1, \texttt{preonly}] \Param{xkanjiskip} ã®æ¿å
¥ã¯æåã®åã§ã¯è¨±ããããï¼å¾ãã§ã¯è¨±ãããªãï¼
-%\item[2, \texttt{postonly}] Insertion of \Param{xkanjiskip} is allowed after the character, but not before.
-%\item[2, \texttt{postonly}] \Param{xkanjiskip} ã®æ¿å
¥ã¯æåã®å¾ãã§ã¯è¨±ããããï¼åã§ã¯è¨±ãããªãï¼
-%\item[3, \texttt{allow}] Insertion of \Param{xkanjiskip} is allowed both before the character and after the character. This is the default value.
-%\item[3, \texttt{allow}] \Param{xkanjiskip} ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ã許ãããï¼ãããããã©ã«ãã®å¤ã§ããï¼
+%\item[0, \texttt{inhibit}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is inhibited before the character, nor after the character.
+%\item[0, \texttt{inhibit}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ãç¦æ¢ãããï¼
+%\item[1, \texttt{preonly}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before the character, but not after.
+%\item[1, \texttt{preonly}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åã§ã¯è¨±ããããï¼å¾ãã§ã¯è¨±ãããªãï¼
+%\item[2, \texttt{postonly}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed after the character, but not before.
+%\item[2, \texttt{postonly}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®å¾ãã§ã¯è¨±ããããï¼åã§ã¯è¨±ãããªãï¼
+%\item[3, \texttt{allow}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed both before the character and after the character. This is the default value.
+%\item[3, \texttt{allow}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ã許ãããï¼ãããããã©ã«ãã®å¤ã§ããï¼
\end{description}
%<*en>
This parameter is similar to the \verb+\inhibitxspcode+ primitive of \pTeX, but not compatible with \verb+\inhibitxspcode+.
%
%<*ja>
-ãã®ãã©ã¡ã¼ã¿ã¯ \pTeX ã® \verb+\inhibitxspcode+ ããªããã£ãã¨ä¼¼ã¦ãããï¼
+ãã®ãã©ã¡ã¼ã¿ã¯\pTeX ã® \verb+\inhibitxspcode+ ããªããã£ãã¨ä¼¼ã¦ãããï¼
äºææ§ã¯ãªãï¼
%
-
\item[\Param{alxspmode}\,=\{,\}] [\verb+\xspcode+]
%<*en>
-Setting whether inserting \Param{xkanjiskip} is allowed before/after a
+Setting whether inserting \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before/after a
\textbf{ALchar} whose character code is .
The followings are allowed for :
%
%<*ja>
-æåã³ã¼ãã ã® \textbf{ALchar} ã®åï¼å¾ãã« \Param{xkanjiskip} ã®
+æåã³ã¼ããã®\textbf{ALchar}ã®åï¼å¾ãã«\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®
æ¿å
¥ã許ããã©ããã®è¨å®ï¼
-以ä¸ã® ã許ãããï¼
+以ä¸ã®ã許ãããï¼
%
\begin{description}
-%\item[0, \texttt{inhibit}] Insertion of \Param{xkanjiskip} is inhibited before the character, nor after the character.
-%\item[0, \texttt{inhibit}] \Param{xkanjiskip} ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ãç¦æ¢ãããï¼
-%\item[1, \texttt{preonly}] Insertion of \Param{xkanjiskip} is allowed before the character, but not after.
-%\item[1, \texttt{preonly}] \Param{xkanjiskip} ã®æ¿å
¥ã¯æåã®åã§ã¯è¨±ããããï¼å¾ãã§ã¯è¨±ãããªãï¼
-%\item[2, \texttt{postonly}] Insertion of \Param{xkanjiskip} is allowed after the character, but not before.
-%\item[2, \texttt{postonly}] \Param{xkanjiskip} ã®æ¿å
¥ã¯æåã®å¾ãã§ã¯è¨±ããããï¼åã§ã¯è¨±ãããªãï¼
-%\item[3, \texttt{allow}] Insertion of \Param{xkanjiskip} is allowed before the character and after the character. This is the default value.
-%\item[3, \texttt{allow}] \Param{xkanjiskip} ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ã許ãããï¼ãããããã©ã«ãã®å¤ã§ããï¼
+%\item[0, \texttt{inhibit}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is inhibited before the character, nor after the character.
+%\item[0, \texttt{inhibit}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ãç¦æ¢ãããï¼
+%\item[1, \texttt{preonly}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before the character, but not after.
+%\item[1, \texttt{preonly}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åã§ã¯è¨±ããããï¼å¾ãã§ã¯è¨±ãããªãï¼
+%\item[2, \texttt{postonly}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed after the character, but not before.
+%\item[2, \texttt{postonly}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®å¾ãã§ã¯è¨±ããããï¼åã§ã¯è¨±ãããªãï¼
+%\item[3, \texttt{allow}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before the character and after the character. This is the default value.
+%\item[3, \texttt{allow}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ã許ãããï¼ãããããã©ã«ãã®å¤ã§ããï¼
\end{description}
%<*en>
-Note that parameters \Param{jaxspmode} and \Param{alxspmode} use a common table, hence these two parameters are synonyms of each other.
+Note that parameters \Param{jaxspmode} and \Param{alxspmode} share a common table, hence these two parameters are synonyms of each other.
%
%<*ja>
-\Param{jaxspmode} 㨠\Param{alxspmode} ã¯å
±éã®ãã¼ãã«ãç¨ãã¦ããããï¼
+\Param{jaxspmode}ã¨\Param{alxspmode}ã¯å
±éã®ãã¼ãã«ãç¨ãã¦ããããï¼
ããã2ã¤ã®ãã©ã¡ã¼ã¿ã¯äºãã®ç°åã¨ãªã£ã¦ãããã¨ã«æ³¨æããï¼
%
\item[\Param{autospacing}\,=$^\ast$] [\verb+\autospacing+]
\item[\Param{autoxspacing}\,=$^\ast$] [\verb+\autoxspacing+]
-\item[\Param{kanjiskip}\,=] [\verb+\kanjiskip+]
-\item[\Param{xkanjiskip}\,=] [\verb+\xkanjiskip+]
+\item[\Param{\hypertarget{fld:kanjiskip}{kanjiskip}}\,=] [\verb+\kanjiskip+]
+%<*ja>
+ããã©ã«ãã§2ã¤ã®\textbf{JAchar}ã®éã«æ¿å
¥ãããã°ã«ã¼ã§ããï¼
+é常ã§ã¯ï¼\pTeX ã¨åãããã«ãã©ã³ããµã¤ãºã«æ¯ä¾ãã¦å¤ãããã¨ã¯ãªãï¼
+ãããï¼èªç¶é·ã \verb+\maxdimen+ ã®å ´åã¯ï¼ä¾å¤çã«åæãã©ã³ãã®JFMå´ã§æå®ããã¦ãã
+å¤ãæ¡ç¨ï¼ãã¡ãã¯ãã©ã³ããµã¤ãºã«æ¯ä¾ï¼ãããã¨ã«ãªã£ã¦ããï¼
+%
+
+\item[\Param{\hypertarget{fld:xks}{xkanjiskip}}\,=] [\verb+\xkanjiskip+]
+%<*ja>
+ããã©ã«ãã§\textbf{JAchar}ã¨\textbf{ALchar}ã®éã«æ¿å
¥ãããã°ã«ã¼ã§ããï¼
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¨åãããã«ï¼é常ã§ã¯ãã©ã³ããµã¤ãºã«æ¯ä¾ãã¦å¤ãããã¨ã¯ãªããï¼
+èªç¶é·ã \verb+\maxdimen+ ã®å ´åãä¾å¤ã§ããï¼
+%
-\item[\Param{differentjfm}\,=$^\dagger$]
+
+\item[\Param{\hypertarget{fld:diffjfm}{differentjfm}}\,=$^\dagger$]
%<*en>
Specify how glues/kerns between two \textbf{JAchar}s whose JFM (or size) are different.
The allowed arguments are the followings:
%
%<*ja>
-JFMï¼ãããã¯ãµã¤ãºï¼ãç°ãªã2ã¤ã® \textbf{JAchar} ã®éã«ã°ã«ã¼ï¼ã«ã¼ã³ãã©ã®ããã«
-å
¥ããããæå®ããï¼
+JFMï¼ãããã¯ãµã¤ãºï¼ãç°ãªã2ã¤ã®\textbf{JAchar}ã®éã«ã°ã«ã¼ï¼ã«ã¼ã³ãã©ã®ããã«
+å
¥ããããæå®ããï¼
許ãããå¤ã¯ä»¥ä¸ã®éãï¼
%
\begin{description}
@@ -2827,6 +3261,9 @@ JFMï¼ãããã¯ãµã¤ãºï¼ãç°ãªã2ã¤ã® \textbf{JAchar} ã®éã«ã°
\item[\texttt{both}]
\item[\texttt{large}]
\item[\texttt{small}]
+\item[\texttt{pleft}]
+\item[\texttt{pright}]
+\item[\texttt{paverage}]
\end{description}
\item[\Param{jacharrange}\,=$^\ast$]
@@ -2834,16 +3271,18 @@ JFMï¼ãããã¯ãµã¤ãºï¼ãç°ãªã2ã¤ã® \textbf{JAchar} ã®éã«ã°
\end{list}
-%\section{Other Primitives}
-%\section{ãã®ä»ã®ããªããã£ã}
-%\subsection{Primitives for Compatibility}
-%\subsection{äºæããªããã£ã}
+%\section{Other Control Sequences}
+%\section{ãã®ä»ã®å½ä»¤}
+%\subsection{Control Sequences for Compatibility}
+%\subsection{\pTeX äºæç¨å½ä»¤}
%<*en>
-The following primitives are implemented for compatibility with \pTeX:
+The following control sequences are implemented for compatibility with \pTeX.
+Note that these don't support JIS~X~0213, but only JIS~X~0208.
%
%<*ja>
-以ä¸ã®ããªããã£ã㯠\pTeX ã¨ã®äºææ§ã®ããã«å®è£
ããã¦ããï¼
+以ä¸ã®å½ä»¤ã¯\pTeX ã¨ã®äºææ§ã®ããã«å®è£
ããã¦ããï¼ãã®ããï¼JIS~X~0213ã«ã¯å¯¾å¿ããï¼
+\pTeX ã¨åãããã«JIS~X~0208ã®ç¯å²ãããµãã¼ããã¦ããªãï¼
%
\begin{list}{}{\def\makelabel{\ttfamily\char92 }\advance\leftmargin1\zw}
\item[kuten]
@@ -2854,27 +3293,26 @@ The following primitives are implemented for compatibility with \pTeX:
\item[kansuji]
\end{list}
-%\subsection{\texttt{\char92 inhibitglue} primitive}
-%\subsection{\texttt{\char92 inhibitglue} ããªããã£ã}
-
+%\subsection{\texttt{\char92 inhibitglue}}
+%\subsection{\texttt{\char92 inhibitglue}}
%<*en>
-The primitive \verb+\inhibitglue+ suppresses the insertion of \textbf{JAglue}.
+\verb+\inhibitglue+ suppresses the insertion of \textbf{JAglue}.
The following is an example, using a special JFM that there will be a glue between
the beginning of a box and `ã', and also between `ã' and `ã¦'.
%
%<*ja>
-\verb+\inhibitglue+ ããªããã£ã㯠\textbf{JAglue} ã®æ¿å
¥ãæå¶ããï¼
-以ä¸ã¯ï¼ããã¯ã¹ã®å§ãã¨`ã'ã®éï¼`ã'ã¨`ã¦'ã®éã«ã°ã«ã¼ãå
¥ãç¹å¥ãª JFM ãç¨ããä¾ã§
+\verb+\inhibitglue+ ã¯\textbf{JAglue}ã®æ¿å
¥ãæå¶ããï¼
+以ä¸ã¯ï¼ããã¯ã¹ã®å§ãã¨`ã'ã®éï¼`ã'ã¨`ã¦'ã®éã«ã°ã«ã¼ãå
¥ãç¹å¥ãªJFMãç¨ããä¾ã§
ããï¼
%
\begin{LTXexample}
-\jfont\g=psft:Ryumin-Light:jfm=test \g
+\jfont\g=file:KozMinPr6N-Regular.otf:jfm=test \g
\fbox{\hbox{ãã¦ã\inhibitglue ã¦}}
\inhibitglue\par\noindent ã1
\par\inhibitglue\noindent ã2
\par\noindent\inhibitglue ã3
-\par\inhibitglue\hrule ãoff\inhibitglue ice
+\par\hrule\noindent ãoff\inhibitglue ice
\end{LTXexample}
%<*en>
@@ -2886,25 +3324,26 @@ With the help of this example, we remark the specification of \verb+\inhibitglue
\begin{itemize}
%<*en>
\item The call of \verb+\inhibitglue+ in the (internal) vertical mode is
- effective at the beginning of the next paragraph. This is realized
- by hacking \verb+\everypar+.
+ simply ignored.
%
%<*ja>
-\item \verb+\inhibitglue+ ã®åç´ã¢ã¼ãä¸ã§ã®å¼ã³åºãã¯æ¬¡ã®æ®µè½ã®å§ãã§å¹åãæã¤ï¼
- ãã㯠\verb+\everypar+ ã®ããã¯ã«ãã£ã¦å®ç¾ããã¦ããï¼
+\item \verb+\inhibitglue+ ã®åç´ã¢ã¼ãä¸ã§ã®å¼ã³åºãã¯æå³ãæããªãï¼
+4è¡ç®ã®å
¥åã§æå¹ã«ãªããªãã®ã¯ï¼\verb+\inhibitglue+ ã®æç¹ã§ã¯åç´ã¢ã¼ãã§ããï¼
+\verb+\noindent+ ã®æç¹ã§æ°´å¹³ã¢ã¼ãã«ãªãããã§ããï¼
%
%<*en>
\item The call of \verb+\inhibitglue+ in the (restricted) horizontal
mode is only effective on the spot; does not get over boundary of
paragraphs. Moreover, \verb+\inhibitglue+ cancels ligatures and
- kernings, as shown in line~4 of above example.
+ kernings, as shown in the last line of above example.
%
%<*ja>
\item \verb+\inhibitglue+ ã®ï¼å¶éãããï¼æ°´å¹³ã¢ã¼ãä¸ã§ã®å¼ã³åºãã¯ãã®å ´ã§ã®ã¿
æå¹ã§ããï¼æ®µè½ã®å¢çãä¹ãè¶ããªãï¼
- ããã«ï¼\verb+\inhibitglue+ ã¯ä¸ã®ä¾ã®4è¡ç®ã®ããã«ãªã¬ãã£ã¨ã«ã¼ãã³ã°ã
- æã¡æ¶ãï¼
+ ããã«ï¼\verb+\inhibitglue+ ã¯ä¸ã®ä¾ã®æçµè¡ã®ããã«ï¼æ¬§æã«ãããï¼ãªã¬ãã£ã¨ã«ã¼ãã³ã°ã
+ æã¡æ¶ãï¼ããã¯ï¼\verb+\inhibitglue+ ãå
é¨çã«ã¯ãç¾å¨ã®ãªã¹ãä¸ã«whatsitãã¼ãã
+ 追å ããããã¨ãè¡ãªã£ã¦ããããã§ããï¼
%
%<*en>
@@ -2916,22 +3355,22 @@ With the help of this example, we remark the specification of \verb+\inhibitglue
\end{itemize}
%\section{Control Sequences for \LaTeXe}
-%\section{\LaTeXe ç¨ã®ã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹}
+%\section{\LaTeXe ç¨ã®å½ä»¤}
%\subsection{Patch for NFSS2}
-%\subsection{NFSS2 ã¸ã®ããã}
+%\subsection{NFSS2ã¸ã®ããã}
\label{ssub-nfsspat}
%<*en>
As described in Subsection~\ref{ssec-ltx}, \LuaTeX-ja simply adopted
\texttt{plfonts.dtx} in \pLaTeXe\ for the Japanese patch for NFSS2.
For an convenience, we will describe
-commands which are not described in Subsection~\ref{ssub-chgfnt}.
+control sequences which are not described in Subsection~\ref{ssub-chgfnt}.
%
%<*ja>
-\ref{ssec-ltx} ç¯ã§è¿°ã¹ãããã«ï¼\LuaTeX-ja 㯠NFSS2 ã¸ã®æ¥æ¬èªãããã§ãã
-\pLaTeXe ã® \texttt{plfonts.dtx} ãåç´ã«åãå
¥ãã¦ããï¼
-便å®ã®ããï¼ããã§ã¯ \ref{ssub-chgfnt} ç¯ã§è¿°ã¹ã¦ããªãã£ãã³ãã³ãã«ã¤ãã¦
+\ref{ssec-ltx}ç¯ã§è¿°ã¹ãããã«ï¼\LuaTeX-jaã¯NFSS2ã¸ã®æ¥æ¬èªãããã§ãã
+\pLaTeXe ã®\texttt{plfonts.dtx}ãåç´ã«åãå
¥ãã¦ããï¼
+便å®ã®ããï¼ããã§ã¯\ref{ssub-chgfnt}ç¯ã§è¿°ã¹ã¦ããªãã£ãå½ä»¤ã«ã¤ãã¦
è¨è¿°ãã¦ããï¼
%
@@ -2947,9 +3386,9 @@ In NFSS2 under \LuaTeX-ja, distinction between alphabetic font families
scheme for Japanese font family (in horizontal direction).
%
%<*ja>
-\LuaTeX-ja ã® NFSS2 ã«ããã¦ã¯ï¼æ¬§æãã©ã³ããã¡ããªã¨åæãã©ã³ããã¡ããªã¯
+\LuaTeX-jaã®NFSS2ã«ããã¦ã¯ï¼æ¬§æãã©ã³ããã¡ããªã¨åæãã©ã³ããã¡ããªã¯
ãã®ã¨ã³ã³ã¼ãã£ã³ã°ããã®ã¿ä½ãããï¼
-ä¾ãã°ï¼OT1 㨠T1 ã®ã¨ã³ã³ã¼ãã£ã³ã°ã¯æ¬§æãã©ã³ããã¡ããªã«å¯¾ãããã®ã§ããï¼
+ä¾ãã°ï¼OT1ã¨T1ã®ã¨ã³ã³ã¼ãã£ã³ã°ã¯æ¬§æãã©ã³ããã¡ããªã«å¯¾ãããã®ã§ããï¼
åæãã©ã³ããã¡ããªã¯ãããã®ã¨ã³ã³ã¼ãã£ã³ã°ãæã¤ãã¨ã¯ã§ããªãï¼
ãã®ã³ãã³ãã¯åæãã©ã³ããã¡ããªï¼æ¨ªæ¸ãç¨ï¼ã®ããã®æ°ããã¨ã³ã³ã¼ãã£ã³ã°ã
å®ç¾©ããï¼
@@ -2971,8 +3410,8 @@ The above 3~commands are just the counterparts for \verb+DeclareFontEncodingDefa
% ToDo: en
%<*ja>
åæã»æ¬§æã®æ°å¼ç¨ãã©ã³ããã¡ããªãä¸åº¦ã«å¤æ´ããå½ä»¤ãä½æããï¼
-å
·ä½çã«ã¯ï¼æ¬§ææ°å¼ç¨ãã©ã³ããã¡ããªå¤æ´ã®å½ä»¤ ï¼\verb+\mathrm+çï¼ã¨ï¼åææ°å¼ç¨ãã©
- ã³ããã¡ããªå¤æ´ã®å½ä»¤ï¼\verb+\mathmc+çï¼ã®2ã¤ãåæã«è¡ãå½ä»¤ã¨ãã¦
+å
·ä½çã«ã¯ï¼æ¬§ææ°å¼ç¨ãã©ã³ããã¡ããªå¤æ´ã®å½ä»¤ï¼\verb+\mathrm+ çï¼ã¨ï¼åææ°å¼ç¨ãã©
+ ã³ããã¡ããªå¤æ´ã®å½ä»¤ï¼\verb+\mathmc+ çï¼ã®2ã¤ãåæã«è¡ãå½ä»¤ã¨ãã¦
ãï¼åï¼å®ç¾©ããï¼å®éã®ä½¿ç¨ã§ã¯ã¨
ã«åããã®ãæå®ããï¼ããªãã¡ï¼ã§åæå´ãå¤
æ´ãããããã«ããã®ãä¸è¬çã¨æãããï¼
@@ -2987,7 +3426,7 @@ The above 3~commands are just the counterparts for \verb+DeclareFontEncodingDefa
\begin{itemize}
\item ,~ã¯æ¢ã«å®ç¾©ããã¦ããªããã°ãªããªãï¼\verb+\reDeclareMathAlphabet+å¾ã«
両å½ä»¤ã®å
容ãåå®ç¾©ãã¦ãï¼ã®å
容ã«ããã¯åæ ãããªãï¼
-\item ,~ã«\verb+\@mathrm+ãªã©ã¨ \texttt{@} ãã¤ããå½ä»¤ãæå®ããæã®åä½ã¯ä¿è¨¼ã§ããªãï¼
+\item ,~ã«\verb+\@mathrm+ãªã©ã¨\texttt{@}ãã¤ããå½ä»¤ãæå®ããæã®åä½ã¯ä¿è¨¼ã§ããªãï¼
\end{itemize}}
%
@@ -3027,7 +3466,7 @@ Like \verb+\fontfamily+, \verb+\selectfont+ is required to take an effect.
%
\item[adjustbaseline]
-...
+\ldots
\item[fontfamily\{\}]
{\let\item\origitem
@@ -3036,8 +3475,8 @@ As in \LaTeXe, this command changes current font family (alphabetic, Japanese,~\
to . Which family will be changed is determined as follows:
%
%<*ja>
-å
ã
ã® \LaTeXe ã«ããããã®ã¨åæ§ã«ï¼ãã®ã³ãã³ãã¯ç¾å¨ã®ãã©ã³ããã¡ããªï¼æ¬§æï¼
-åæï¼\textbf{ãããã¯ä¸¡æ¹}ï¼ã ã«å¤æ´ããï¼
+å
ã
ã®\LaTeXe ã«ããããã®ã¨åæ§ã«ï¼ãã®ã³ãã³ãã¯ç¾å¨ã®ãã©ã³ããã¡ããªï¼æ¬§æï¼
+åæï¼\textbf{ãããã¯ä¸¡æ¹}ï¼ãã«å¤æ´ããï¼
ã©ã®ãã¡ããªãå¤æ´ããããã¯ä»¥ä¸ã®ããã«ãã¦æ±ºå®ãããï¼
%
\begin{itemize}
@@ -3047,24 +3486,24 @@ to . Which family will be changed is determined as follows:
, if one of the following two conditions is met:
%
%<*ja>
-\item ç¾å¨ã®åæãã©ã³ãã«å¯¾ããã¨ã³ã³ã¼ãã£ã³ã°ã ã§ããã¨ãããï¼
+\item ç¾å¨ã®åæãã©ã³ãã«å¯¾ããã¨ã³ã³ã¼ãã£ã³ã°ãã§ããã¨ãããï¼
ç¾å¨ã®åæãã©ã³ããã¡ããªã¯ï¼ä»¥ä¸ã®2ã¤ã®æ¡ä»¶ã®ãã¡ã®1ã¤ãæºãããã¦ããã¨ãã«
- ã«å¤æ´ãããï¼
+ ã«å¤æ´ãããï¼
%
\begin{itemize}
%<*en>
-\item The family under the encoding has been already defined by
+\item The family under the encoding has been already defined by
\verb+\DeclareKanijFamily+.
%
%<*ja>
-\item ã¨ã³ã³ã¼ãã£ã³ã° ã«ããããã¡ã㪠ãæ¢ã« \verb+\DeclareKanjiFamily+ ã«ãã£ã¦å®ç¾©ããã¦ããï¼
+\item ã¨ã³ã³ã¼ãã£ã³ã°ã«ããããã¡ããªãæ¢ã« \verb+\DeclareKanjiFamily+ ã«ãã£ã¦å®ç¾©ããã¦ããï¼
%
%<*en>
-\item A font definition named \texttt{.fd} (the file name is
+\item A font definition named \texttt{.fd} (the file name is
all lowercase) exists.
%
%<*ja>
-\item ãã©ã³ãå®ç¾©ãã¡ã¤ã« \texttt{.fd}ï¼ãã¡ã¤ã«åã¯å
¨ã¦å°æåï¼ãåå¨ããï¼
+\item ãã©ã³ãå®ç¾©ãã¡ã¤ã«\texttt{.fd}ï¼ãã¡ã¤ã«åã¯å
¨ã¦å°æåï¼ãåå¨ããï¼
%
\end{itemize}
%<*en>
@@ -3072,7 +3511,7 @@ to . Which family will be changed is determined as follows:
. For alphabetic font family, the criterion as above is used.
%
%<*ja>
-\item ç¾å¨ã®æ¬§æãã©ã³ãã«å¯¾ããã¨ã³ã³ã¼ãã£ã³ã°ã ã¨ããï¼
+\item ç¾å¨ã®æ¬§æãã©ã³ãã«å¯¾ããã¨ã³ã³ã¼ãã£ã³ã°ãã¨ããï¼
欧æãã©ã³ããã¡ããªã«å¯¾ãã¦ãï¼ä¸è¨ã®åºæºãç¨ããããï¼
%
%<*en>
@@ -3084,11 +3523,11 @@ In this case, the default family for font substitution is used for
be set to , unlike the original implementation in \LaTeX.
%
%<*ja>
-\item ä¸è¨ã®ãããããé©ç¨ãããªãï¼ã¤ã¾ã ã 㨠ã®
+\item ä¸è¨ã®ãããããé©ç¨ãããªãï¼ã¤ã¾ããã¨ã®
ã©ã¡ãã§ãå®ç¾©ãããªããããªå ´åãããï¼
ãã®å ´åï¼ä»£æ¿ãã©ã³ãã«ç¨ããããããã©ã«ãã®ãã©ã³ããã¡ããªã欧æãã©ã³ãã¨
åæãã©ã³ãã«ç¨ããããï¼\LaTeX ã®ãªãªã¸ãã«ã®å®è£
ã¨ã¯ç°ãªãï¼
- ç¾å¨ã®ã¨ã³ã³ã¼ãã£ã³ã°ã¯ ã«ã¯è¨å®ãããªããã¨ã«æ³¨æããï¼
+ ç¾å¨ã®ã¨ã³ã³ã¼ãã£ã³ã°ã¯ã«ã¯è¨å®ãããªããã¨ã«æ³¨æããï¼
%
\end{itemize}
}
@@ -3100,19 +3539,16 @@ As closing this subsection, we shall introduce an example of
%
%<*ja>
ãã®ç¯ã®çµããã«ï¼\verb+\SetRelationFont+ 㨠\verb+\userelfont+ ã®ä¾ã
-ç´¹ä»ãã¦ãããï¼
+ç´¹ä»ãã¦ãããï¼\verb+\userelfont+ ã®ä½¿ç¨ã«ãã£ã¦ï¼ãabcãã®é¨åã®ãã©ã³ãã
+Avant Garde (OT1/pag/m/n) ã«å¤ãã£ã¦ãããã¨ããããï¼
%
-\begin{LTXexample}
-\gtfamily{}ãããabc
-\SetRelationFont{JY3}{gt}{m}{n}{OT1}{pag}{m}{n}
-\userelfont\selectfont{}ãããabc
+\begin{LTXexample}[width=0.3\textwidth]
+\makeatletter
+\SetRelationFont{JY3}{\k@family}{m}{n}{OT1}{pag}{m}{n}
+ % \k@family: current Japanese font family
+\userelfont\selectfont ãããabc
\end{LTXexample}
-
-%\subsection{Cropmark/`tombow'}
-%\subsection{ãã³ã}
-% ToDo
-
%\section{Extensions}
%\section{æ¡å¼µ}
\subsection{\texttt{luatexja-fontspec.sty}}
@@ -3126,38 +3562,52 @@ the following `font features' specifications are allowed for
the commands of Japanese version:
%
%<*ja>
-\ref{ssec-fontspec} ç¯ã§è¿°ã¹ãããã«ï¼ãã®è¿½å ããã±ã¼ã¸ã¯ \Pkg{fontspec}
+\ref{ssec-fontspec}ç¯ã§è¿°ã¹ãããã«ï¼ãã®è¿½å ããã±ã¼ã¸ã¯\Pkg{fontspec}
ããã±ã¼ã¸ã§å®ç¾©ããã¦ããã³ãã³ãã«å¯¾å¿ããåæãã©ã³ãç¨ã®ã³ãã³ããæä¾ããï¼
-ãªãªã¸ãã«ã® \Pkg{fontspec} ã§ã® `font feature' ã«å ãã¦ï¼åæçã®ã³ãã³ãã«ã¯
-以ä¸ã® `font feature' ãæå®ãããã¨ãã§ããï¼
+ãªãªã¸ãã«ã®\Pkg{fontspec}ã§ã®`font feature'ã«å ãã¦ï¼åæçã®ã³ãã³ãã«ã¯
+以ä¸ã®`font feature'ãæå®ãããã¨ãã§ããï¼
%
\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+\item[CID=]
\item[JFM=]
-\item[JFM-var=]
+\item[JFM-var=] \
%<*en>
-These 2 font features correspond to \texttt{jfm} and \texttt{jfmvar} keys for
-\verb+\jfont+ primitive, respectively. See Subsection~\ref{ssec-jfont}.
+These 3 font features correspond to \texttt{cid}, \texttt{jfm} and
+\texttt{jfmvar} keys for \verb+\jfont+ respectively.
+\texttt{CID} is effective only when with \texttt{NoEmbed}
+described below.
+See Subsections~\ref{ssec-jfont} and \ref{ssec-psft} for details.
%
%<*ja>
-ãããã®2ã¤ã¯ãããã \verb+\jfont+ ããªããã£ãã«å¯¾ãã
-\texttt{jfm}, \texttt{jfmvar} ãã¼ã¨ãããã対å¿ããï¼
-\ref{ssec-jfont} ç¯ãåç
§ï¼
+ããã3ã¤ã®ãã¼ã¯ãããã \verb+\jfont+ ã«å¯¾ãã
+\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}ãã¼ã¨ãããã対å¿ããï¼
+\texttt{CID} ã¯ä¸ã® \texttt{NoEmbed} ã¨åããã¦ç¨ããããã¨ãã®ã¿æå¹ã§ããï¼
+\verb+\jfont+ ããªããã£ãã«å¯¾ãã
+\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}ãã¼ã®è©³ç´°ã¯\ref{ssec-jfont}ç¯
+ ã¨\ref{ssec-psft}ç¯ãåç
§ï¼
%
\item[NoEmbed]
%<*en>
-By specifying this font feature, you can use `name-only' Japanese font which
+By specifying this font feature, one can use `name-only' Japanese font which
will not be embedded in the output PDF file. See Subsection~\ref{ssec-psft}.
%
%<*ja>
-ãããæå®ãããã¨ã§ï¼PDF ã«åãè¾¼ã¾ããªããååã ããã®ãã©ã³ããæå®ãããã¨ã
-ã§ããï¼\ref{ssec-psft} ç¯ãåç
§ï¼
+ãããæå®ãããã¨ã§ï¼PDFã«åãè¾¼ã¾ããªããååã ããã®ãã©ã³ããæå®ãããã¨ã
+ã§ããï¼\ref{ssec-psft}ç¯ãåç
§ï¼
%
\end{list}
+%<*ja>
+ãªãï¼\texttt{luatexja-fontspec.sty} èªã¿è¾¼ã¿æã«ã¯åæãã©ã³ãå®ç¾©ãã¡ã¤ã«%
+\texttt{.fd}ã¯å
¨ãåç
§ãããªããªãï¼
+%
+
+
+
\subsection{\texttt{luatexja-otf.sty}}
%<*en>
@@ -3166,8 +3616,8 @@ Adobe-Japan1. \texttt{luatexja-otf.sty} offers the following 2~low-level
commands:
%
%<*ja>
-ãã®è¿½å ããã±ã¼ã¸ã¯ Adobe-Japan1 ã®æåã®åºåããµãã¼ãããï¼
-\texttt{luatexja-otf.sty} ã¯ä»¥ä¸ã®2ã¤ã®ä½ã¬ãã«ã³ãã³ããæä¾ããï¼
+ãã®è¿½å ããã±ã¼ã¸ã¯Adobe-Japan1ã®æåã®åºåããµãã¼ãããï¼
+\texttt{luatexja-otf.sty}ã¯ä»¥ä¸ã®2ã¤ã®ä½ã¬ãã«ã³ãã³ããæä¾ããï¼
%
\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
\item[\char92CID\{\}]
@@ -3175,7 +3625,7 @@ commands:
Typeset a character whose CID number is .
%
%<*ja>
-CID çªå·ã ã®æåãåºåããï¼
+CIDçªå·ãã®æåãåºåããï¼
%
\item[\char92UTF\{\}]
@@ -3185,8 +3635,8 @@ This command is similar to \verb+\char"+,\ %"
but please remind remarks below.
%
%<*ja>
-æåã³ã¼ããï¼16é²ã§ï¼ ã®æåãåºåããï¼
-ãã®ã³ãã³ã㯠\verb+\char"+ ã¨ä¼¼ã¦ãããï¼ä¸ã®è¨è¿°ã«æ³¨æãããã¨ï¼%"
+æåã³ã¼ããï¼16é²ã§ï¼ã®æåãåºåããï¼
+ãã®ã³ãã³ã㯠\verb+\char"+ã¨ä¼¼ã¦ãããï¼ä¸ã®è¨è¿°ã«æ³¨æãããã¨ï¼%"
%
\end{list}
@@ -3205,7 +3655,7 @@ ordinary characters in the following points:
\item Always treated as \textbf{JAchar}s.
%
%<*ja>
-\item 常㫠\textbf{JAchar} ã¨ãã¦æ±ãããï¼
+\item 常ã«\textbf{JAchar}ã¨ãã¦æ±ãããï¼
%
%<*en>
\item Processing codes for supporting OpenType features (\textit{e.g.},
@@ -3214,13 +3664,13 @@ ordinary characters in the following points:
%
%<*ja>
\item OpenType featureï¼ä¾ãã°ã°ãªãç½®æãã«ã¼ãã³ã°ï¼ããµãã¼ãããããã®
- \Pkg{luaotfload} ããã±ã¼ã¸ã®ã³ã¼ãã¯ãããã®æåã«ã¯åããªãï¼
+ \Pkg{luaotfload}ããã±ã¼ã¸ã®ã³ã¼ãã¯ãããã®æåã«ã¯åããªãï¼
%
\end{itemize}
%\paragraph{Additional Syntax of JFM}
-%\paragraph{JFM ã¸ã®è¨æ³ã®è¿½å }
+%\paragraph{JFMã¸ã®è¨æ³ã®è¿½å }
%<*en>
\texttt{luatexja-otf.sty} extends the syntax of JFM; the entries of \texttt{
@@ -3229,11 +3679,88 @@ chars} table in JFM now allows a string in the form
whose CID number in Adobe-Japan1 is \verb+xxx+.
%
%<*ja>
-\texttt{luatexja-otf.sty} 㯠JFM ã®è¨æ³ãæ¡å¼µããï¼
-JFM ã® \texttt{chars} ãã¼ãã«ã®ã¨ã³ããªã¨ã㦠\verb+'AJ1-xxx'+ ã®å½¢ã®æååã
-使ããããã«ãªãï¼ãã㯠Adobe-Japan1 ã«ããã CID çªå·ã \verb+xxx+ ã®æåã表ãï¼
+\texttt{luatexja-otf.sty}ã¯JFMã®è¨æ³ãæ¡å¼µããï¼
+JFMã®\texttt{chars}ãã¼ãã«ã®ã¨ã³ããªã¨ã㦠\verb+'AJ1-xxx'+ ã®å½¢ã®æååã
+使ããããã«ãªãï¼ããã¯Adobe-Japan1ã«ãããCIDçªå·ã \verb+xxx+ ã®æåã表ãï¼
+%
+
+\subsection{\texttt{luatexja-adjust.sty}}
+\label{ssec-adj}
+\begin{figure}[t]
+\def\sq{%
+ \hbox to 1\zw{\hss\fboxsep=-.5\fboxrule\fbox{%
+ ã\hskip\dimexpr-.5\zw-.2pt\vrule width.4pt height.08\zw depth.12\zw%
+ \hskip\dimexpr.5\zw-.2pt\relax}\hss}}
+\def\sb{\hbox to 1\zw{\hss\fboxsep=-.5\fboxrule\fbox{%
+ â \hskip\dimexpr-.5\zw-.2pt\vrule width.4pt height.08\zw depth.12\zw%
+ \hskip\dimexpr.5\zw-.2pt\relax}\hss}}
+\newbox\gridbox
+\def\outbox#1{{\Large%
+ \ltjsetparameter{kanjiskip=0pt plus .2\zw minus .2\zw}%
+ \setbox\gridbox=\hbox to 20\zw{\sq\sq\sq\sq\sb\sq\sq\sq\sq\sb\sq\sq\sq\sq\sb\sq\sq\sq\sq\sb}%
+ \hbox{\textcolor{cyan!50!white}{\copy\gridbox}\hskip-20\zw%
+ \vbox{\hsize=20\zw\noindent\leftskip0pt\rightskip0pt\parfillskip0pt#1}\vrule}%
+}}
+
+{\centering
+\begin{tabular}{lc}
+\toprule
+no adjustment&\outbox{以ä¸ã®åçã¯ï¼ãå
é¤åçãã¨ããå¼ã°ããã\hskip-.5\zw\null}\\
+without priority&%
+\ltjdisableadjust
+\outbox{以ä¸ã®åçã¯ï¼ãå
é¤åçãã¨ããå¼ã°ããã}%
+\ltjenableadjust\\
+with priority&%
+\outbox{以ä¸ã®åçã¯ï¼ãå
é¤åçãã¨ããå¼ã°ããã}
+%\ltjdisableadjust
+\\
+\bottomrule
+\end{tabular}\par}
+\smallskip
+
+Note: the value of
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}} is 0\,pt${}^{+1/5\,\mathrm{em}}_{-1/5\,\mathrm{em}}$ in this figure,
+for making the difference obvious.
+%\caption{è¡é·èª¿æ´}\label{fig-adj}
+%\caption{Line adjustment}\label{fig-adj}
+\end{figure}
+
+
+%<*en>
+...
+%
+%<*ja>
+\pTeX ã§ã¯ï¼è¡é·èª¿æ´ã«ããã¦åªå
度ã®æ¦å¿µãåå¨ããªãã£ãããï¼å³
+\ref{fig-adj}ä¸æ®µã«ãããåè§åã®å端ã¯ï¼å³\ref{fig-adj}ä¸æ®µã®ããã«ï¼éµ
+æ¬å¼§å¨è¾ºã®ç©ºç½ã¨åæé空ç½(\Param{\hyperlink{fld:kanjiskip}{kanjiskip}})ã®ä¸¡æ¹ã«ãã£ã¦è² æ
ãããï¼ã
+ããï¼ãæ¥æ¬èªçµçå¦çã®è¦ä»¶ã\cite{jlreq}ãJIS~X~4051~\cite{x4051}ã«ãã
+ã¦ã¯ï¼ãã®ãããªç¶æ³ã§ã¯å端ã¯éµæ¬å¼§å¨è¾ºã®ç©ºç½ã®ã¿ã§è² æ
ãï¼ãã®ä»ã®åæ
+æåã¯ãã¿çµã§çµã¾ããï¼å³\ref{fig-adj}ä¸æ®µï¼ãã¨ã«ãªã£ã¦ããï¼ãã®è¿½å
+ããã±ã¼ã¸ã¯\cite{jlreq}ã\cite{x4051}ã«ãããè¦å®ã®ãããªï¼åªå
é ä½ä»ã
+ã®è¡é·èª¿æ´ãæä¾ããï¼è©³ç´°ãªä»æ§ã«ã¤ãã¦ã¯\ref{sec-adjspec}ãåç
§ï¼
+
+
+\texttt{luatexja-adjust.sty}ã¯ï¼ä»¥ä¸ã®å½ä»¤ãæä¾ããï¼ãããã¯ãã¹ã¦ã°ãã¼ãã«ã«å¹åãçºæ®ããï¼
+
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+\item[\char92ltjdisableadjust]
+åªå
é ä½ä»ãã®è¡é·èª¿æ´ãç¡å¹åããï¼
+
+\item[\char92ltjenableadjust]
+åªå
é ä½ä»ãã®è¡é·èª¿æ´ãæå¹åããï¼
+
+\item[åªå
度è¨å®â¦â¦]
+
+\end{list}
+
+
+
+
+
%
+
+
%\part{Implementations}
%\part{å®è£
}
\label{part-imp}
@@ -3241,13 +3768,13 @@ JFM ã® \texttt{chars} ãã¼ãã«ã®ã¨ã³ããªã¨ã㦠\verb+'AJ1-xxx'+ ã®
%\section{ãã©ã¡ã¼ã¿ã®ä¿æ}
\label{sec-para}
%\subsection{Used Dimensions, Attributes and whatsit nodes}
-%\subsection{\LuaTeX-ja ã§ç¨ãããã寸æ³ã¬ã¸ã¹ã¿ï¼å±æ§ã¬ã¸ã¹ã¿ï¼whatsit ãã¼ã}
+%\subsection{\LuaTeX-jaã§ç¨ãããã寸æ³ã¬ã¸ã¹ã¿ï¼å±æ§ã¬ã¸ã¹ã¿ï¼whatsitãã¼ã}
%<*en>
Here the following is the list of dimensions and attributes which are used in \LuaTeX-ja.
%
%<*ja>
-以ä¸ã¯ \LuaTeX-ja ã§ç¨ãããã寸æ³ã¬ã¸ã¹ã¿ (dimension)ï¼å±æ§ã¬ã¸ã¹ã¿ (attribute) ã®
+以ä¸ã¯\LuaTeX-jaã§ç¨ãããã寸æ³ã¬ã¸ã¹ã¿(dimension)ï¼å±æ§ã¬ã¸ã¹ã¿(attribute)ã®
ãªã¹ãã§ããï¼
%
\begin{list}{}{%
@@ -3258,12 +3785,12 @@ Here the following is the list of dimensions and attributes which are used in \L
\dim{jQ}
%<*en>
-As explained in Subsection~\ref{ssec-plain}, \verb+\jQ+ is equal to
+\verb+\jQ+ is equal to
$1\,\textrm{Q}=0.25\,\textrm{mm}$, where `Q'~(also called `ç´') is
a unit used in Japanese phototypesetting. So one should not change the value of this dimension.
%
%<*ja>
-\ref{ssec-plain} ç¯ã§è¿°ã¹ãããã«ï¼\verb+\jQ+ 㯠$1\,\textrm{Q}=0.25\,\textrm{mm}$
+\verb+\jQ+ ã¯$1\,\textrm{Q}=0.25\,\textrm{mm}$
ã¨çããï¼ããã§ï¼`Q'ï¼ãããã¯ãç´ãï¼ã¯æ¥æ¬ã®åæ¤ã§ç¨ããããåä½ã§ããï¼ãããã£ã¦ï¼
ãã®å¯¸æ³ã¬ã¸ã¹ã¿ã®å¤ãå¤æ´ãã¦ã¯ãªããªãï¼
%
@@ -3275,7 +3802,7 @@ There is also a unit called `æ¯' which equals to $0.25\,\textrm{mm}$ and
\verb+\jH+ is a synonym of \verb+\jQ+.
%
%<*ja>
-åããåæ¤ã§ç¨ãããã¦ããåä½ã¨ãã¦ãæ¯ããããï¼ãã㯠$0.25\,\textrm{mm}$ ã¨
+åããåæ¤ã§ç¨ãããã¦ããåä½ã¨ãã¦ãæ¯ããããï¼ããã$0.25\,\textrm{mm}$ã¨
çããï¼\verb+\jH+ 㯠\verb+\jQ+ ã®å¥åã§ããï¼
%
@@ -3316,7 +3843,7 @@ The font index of current Japanese font.
The character class of Japanese \textit{glyph\_node}.
%
%<*ja>
-åææåã® \textit{glyph\_node} ã®æåã¯ã©ã¹ï¼
+åææåã®\textit{glyph\_node}ã®æåã¯ã©ã¹ï¼
%
\attr{ltj@yablshift}
@@ -3324,7 +3851,7 @@ The character class of Japanese \textit{glyph\_node}.
The amount of shifting the baseline of alphabetic fonts in scaled point ($2^{-16}\,\textrm{pt}$).
%
%<*ja>
-ã¹ã±ã¼ã«ãã»ãã¤ã³ã ($2^{-16}\,\textrm{pt}$) ãåä½ã¨ãã欧æãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ç§»åéï¼
+ã¹ã±ã¼ã«ãã»ãã¤ã³ã($2^{-16}\,\textrm{pt}$)ãåä½ã¨ãã欧æãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ç§»åéï¼
%
\attr{ltj@ykblshift}
@@ -3332,23 +3859,23 @@ The amount of shifting the baseline of alphabetic fonts in scaled point ($2^{-16
The amount of shifting the baseline of Japanese fonts in scaled point ($2^{-16}\,\textrm{pt}$).
%
%<*ja>
-ã¹ã±ã¼ã«ãã»ãã¤ã³ã ($2^{-16}\,\textrm{pt}$) ãåä½ã¨ããåæãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ç§»åéï¼
+ã¹ã±ã¼ã«ãã»ãã¤ã³ã($2^{-16}\,\textrm{pt}$)ãåä½ã¨ããåæãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ç§»åéï¼
%
\attr{ltj@autospc}
%<*en>
-Whether the auto insertion of \Param{kanjiskip} is allowed at the node.
+Whether the auto insertion of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} is allowed at the node.
%
%<*ja>
-ãã®ãã¼ã㧠\Param{kanjiskip} ã®èªåæ¿å
¥ã許ããããã©ããï¼
+ãã®ãã¼ãã§\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®èªåæ¿å
¥ã許ããããã©ããï¼
%
\attr{ltj@autoxspc}
%<*en>
-Whether the auto insertion of \Param{xkanjiskip} is allowed at the node.
+Whether the auto insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed at the node.
%
%<*ja>
-ãã®ãã¼ã㧠\Param{xkanjiskip} ã®èªåæ¿å
¥ã許ããããã©ããï¼
+ãã®ãã¼ãã§\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®èªåæ¿å
¥ã許ããããã©ããï¼
%
\attr{ltj@icflag}
@@ -3365,11 +3892,11 @@ assigned to this attribute:
Glues from an italic correction
(\verb+\/+). This distinction of origins of glues
(from explicit \verb+\kern+, or from \verb+\/+)
- is needed in the insertion process of \Param{xkanjiskip}.
+ is needed in the insertion process of \Param{\hyperlink{fld:xks}{xkanjiskip}}.
%
%<*ja>
-ã¤ã¿ãªãã¯è£æ£ (\verb+\/+) ã«ããã°ã«ã¼ï¼ãã®ã°ã«ã¼ã®ç±æ¥ã®åºå¥ï¼\verb+\kern+ ã
-\verb+\/+ ãï¼ã¯ \Param{xkanjiskip} ã®æ¿å
¥éç¨ã«ããã¦å¿
è¦ã«ãªãï¼
+ã¤ã¿ãªãã¯è£æ£(\verb+\/+)ã«ããã°ã«ã¼ï¼ãã®ã°ã«ã¼ã®ç±æ¥ã®åºå¥ï¼\verb+\kern+ ã
+\verb+\/+ ãï¼ã¯\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥éç¨ã«ããã¦å¿
è¦ã«ãªãï¼
%
\item[\textit{packed} (2)]
@@ -3379,50 +3906,51 @@ Glues from an italic correction
Penalties inserted for the word-wrapping process of Japanese characters (\emph{kinsoku}).
%
%<*ja>
-åææåã®ã¯ã¼ãã©ããéç¨ã«ããã¦æ¿å
¥ãããããã«ã㣠(\emph{kinsoku})ï¼
+åææåã®ã¯ã¼ãã©ããéç¨ã«ããã¦æ¿å
¥ãããããã«ãã£(\emph{kinsoku})ï¼
%
-\item[\textit{from\_jfm} (4)]
+\item[\textit{from\_jfm} (6)]
%<*en>
Glues/kerns from JFM.
%
%<*ja>
-JFM ç±æ¥ã®ã°ã«ã¼ï¼ã«ã¼ã³ï¼
+JFMç±æ¥ã®ã°ã«ã¼ï¼ã«ã¼ã³ï¼
%
-\item[\textit{line\_end} (5)]
-%<*en>
-Kerns for ...
-%
-%<*ja>
-ã«ã¼ã³ ...
-%
+%%\item[\textit{line\_end} (5)]
+%%%<*en>
+%%Kerns for \ldots
+%%%
+%%%<*ja>
+%%åææåãè¡æ«ã«ããã¨ãï¼è¡æ«ã¨ã®éã«æ¿å
¥ãããã«ã¼ã³ã§ããï¼
+%%% ã¶ãä¸ãçµã¸ã®å¿ç¨
+%%%
-\item[\textit{kanji\_skip} (6)]
+\item[\textit{kanji\_skip} (9)]
%<*en>
-Glues for \Param{kanjiskip}.
+Glues for \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}.
%
%<*ja>
-\Param{kanjiskip} ã®ã°ã«ã¼ï¼
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®ã°ã«ã¼ï¼
%
-\item[\textit{xkanji\_skip} (7)]
+\item[\textit{xkanji\_skip} (10)]
%<*en>
-Glues for \Param{xkanjiskip}.
+Glues for \Param{\hyperlink{fld:xks}{xkanjiskip}}.
%
%<*ja>
-\Param{xkanjiskip} ã®ã°ã«ã¼ï¼
+\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®ã°ã«ã¼ï¼
%
-\item[\textit{processed} (8)]
+\item[\textit{processed} (11)]
%<*en>
-Nodes which is already processed by ...
+Nodes which is already processed by \ldots.
%
%<*ja>
-... ã«ãã£ã¦æ¢ã«å¦çããããã¼ãï¼
+\LuaTeX-ja ã®å
é¨å¦çã«ãã£ã¦æ¢ã«å¦çããããã¼ãï¼
%
-\item[\textit{ic\_processed} (9)]
+\item[\textit{ic\_processed} (12)]
%<*en>
Glues from an italic correction, but also already processed.
%
@@ -3445,68 +3973,75 @@ Where $i$~is a natural number which is less than~7.
These 7~attributes store bit~vectors indicating which character block is regarded as a block of \textbf{JAchar}s.
%
%<*ja>
-$i$ ã¯7ããå°ããèªç¶æ°ï¼
-ããã7ã¤ã®å±æ§ã¬ã¸ã¹ã¿ã¯ï¼ã©ã®æåãããã¯ã \textbf{JAchar} ã®ãããã¯ã¨ãã¦
+$i$ã¯7ããå°ããèªç¶æ°ï¼
+ããã7ã¤ã®å±æ§ã¬ã¸ã¹ã¿ã¯ï¼ã©ã®æåãããã¯ã\textbf{JAchar}ã®ãããã¯ã¨ãã¦
æ±ããããã示ãããããã¯ãã«ãæ ¼ç´ããï¼
%
\end{list}
%<*en>
Furthermore, \LuaTeX-ja uses several `user-defined' whatsit nodes for
-typesetting. All those nodes store a natural number (hence the node's
-\texttt{type} is 100).
+inrernal processing. All those nodes store a natural number (hence the node's
+\texttt{type} is 100).
%
%<*ja>
-ããã«ï¼\LuaTeX-ja ã¯ããã¤ãã®ãã¦ã¼ã¶å®ç¾©ã®ãwhatsit ãã¼ããçµçã«ç¨ããï¼
-ãããã®å
¨ã¦ã®ãã¼ãã¯èªç¶æ°ãæ ¼ç´ãã¦ããï¼ãããã£ã¦ãã¼ãã® \texttt{type} ã¯
-100 ã§ããï¼ï¼
+ããã«ï¼\LuaTeX-jaã¯ããã¤ãã®ãã¦ã¼ã¶å®ç¾©ã®ãwhatsitãã¼ããå
é¨å¦çã«ç¨ããï¼
+ãããã®å
¨ã¦ã®ãã¼ãã¯èªç¶æ°ãæ ¼ç´ãã¦ããï¼ãããã£ã¦ãã¼ãã®\texttt{type}ã¯
+100ã§ããï¼ï¼
%
\begin{description}
-\item[30111]
+\item[\texttt{inhibitglue}]
%<*en>
Nodes for indicating that \verb+\inhibitglue+ is
specified. The \texttt{value} field of these nodes doesn't matter.
%
%<*ja>
\verb+\inhibitglue+ ãæå®ããããã¨ã示ããã¼ãï¼ãããã®ãã¼ãã®
-\texttt{value} ãã£ã¼ã«ã ã¯æå³ãæããªãï¼
+\texttt{value}ãã£ã¼ã«ãã¯æå³ãæããªãï¼
%
-\item[30112]
+\item[\texttt{stack\_marker}]
%<*en>
Nodes for \LuaTeX-ja's stack system (see the next
subsection). The \texttt{value} field of these nodes is
current group.
%
%<*ja>
-\LuaTeX-ja ã®ã¹ã¿ãã¯ã·ã¹ãã ï¼æ¬¡ã®ç¯ãåç
§ï¼ã®ããã®ãã¼ãï¼
-ãããã®ãã¼ãã® \texttt{value} ãã£ã¼ã«ãã¯ç¾å¨ã®ã°ã«ã¼ãã表ãï¼
+\LuaTeX-jaã®ã¹ã¿ãã¯ã·ã¹ãã ï¼æ¬¡ã®ç¯ãåç
§ï¼ã®ããã®ãã¼ãï¼
+ãããã®ãã¼ãã®\texttt{value}ãã£ã¼ã«ãã¯ç¾å¨ã®ã°ã«ã¼ãã表ãï¼
%
-\item[30113]
+\item[\texttt{char\_by\_cid}]
%<*en>
Nodes for Japanese Characters which the callback process of
- luaotfload won't be applied, and the character code is
+ \Pkg{luaotfload} won't be applied, and the character code is
stored in the \texttt{value} field. Each node having this
\verb+user_id+ is converted to a `glyph\_node' \emph{after}
the callback process of luaotfload.
+ This \verb+user_id+ is only used by the \Pkg{luatexja-otf} package.
%
%<*ja>
-luaotfload ã®ã³ã¼ã«ããã¯ã«ããå¦çãé©ç¨ãããªãåææåã®ããã®ãã¼ãã§ï¼
-\texttt{value} ãã£ã¼ã«ãã«ãã®æåã®ã³ã¼ããæ ¼ç´ããã¦ããï¼
-ãã® \verb+user_id+ ãæã¤ãã¼ãã¯ããããã luaotfload ã®ã³ã¼ã«ããã¯ã®å¦çã®
-\textbf{å¾ã§} `glyph\_node' ã«å¤æãããï¼
+\Pkg{luaotfload}ã®ã³ã¼ã«ããã¯ã«ããå¦çãé©ç¨ãããªãåææåã®ããã®ãã¼ãã§ï¼
+\texttt{value}ãã£ã¼ã«ãã«ãã®æåã®ã³ã¼ããæ ¼ç´ããã¦ããï¼
+ãã® \verb+user_id+ ãæã¤ãã¼ãã¯ããããã\Pkg{luaotfload}ã®ã³ã¼ã«ããã¯ã®å¦çã®
+\textbf{å¾ã§}`glyph\_node'ã«å¤æãããï¼ãã® \verb+user_id+ 㯠%
+\Pkg{luatexja-otf} ããã±ã¼ã¸ã§ã®ã¿ä½¿ç¨ãããï¼
%
+
+\item[\texttt{begin\_par}]
+Nodes for indicating beginning of a paragraph.
+A paragraph which is started by \verb+\item+ in list-like environments has a horizontal box
+for its label before the actual contents. So \dots
\end{description}
%<*en>
These whatsits will be removed during the process of inserting \textbf{JAglue}s.
%
%<*ja>
-ãããã® whatsit ãã¼ã㯠\textbf{JAglue} ã®æ¿å
¥å¦çã®éã«åãé¤ãããï¼
+ãããã®whatsitãã¼ãã¯\textbf{JAglue}ã®æ¿å
¥å¦çã®éã«åãé¤ãããï¼
%
%\subsection{Stack System of \LuaTeX-ja}
-%\subsection{\LuaTeX-ja ã®ã¹ã¿ãã¯ã·ã¹ãã }
+%\subsection{\LuaTeX-jaã®ã¹ã¿ãã¯ã·ã¹ãã }
\label{ssec-stack}
%\paragraph{Background}
@@ -3514,13 +4049,13 @@ These whatsits will be removed during the process of inserting \textbf{JAglue}s.
%<*en>
\LuaTeX-ja has its own stack system, and most parameters of \LuaTeX-ja
are stored in it. To clarify the reason, imagine the parameter
-\Param{kanjiskip} is stored by a skip, and consider the following
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}} is stored by a skip, and consider the following
source:
%
%<*ja>
-\LuaTeX-ja ã¯ç¬èªã®ã¹ã¿ãã¯ã·ã¹ãã ãæã¡ï¼\LuaTeX-ja ã®ã»ã¨ãã©ã®ãã©ã¡ã¼ã¿ã¯
+\LuaTeX-jaã¯ç¬èªã®ã¹ã¿ãã¯ã·ã¹ãã ãæã¡ï¼\LuaTeX-jaã®ã»ã¨ãã©ã®ãã©ã¡ã¼ã¿ã¯
ãããç¨ãã¦ä¿æããã¦ããï¼ãã®çç±ãæããã«ããããã«ï¼
-\Param{kanjiskip} ãã©ã¡ã¼ã¿ãã¹ãããã¬ã¸ã¹ã¿ã§ä¿æããã¦ããã¨ãï¼
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãã©ã¡ã¼ã¿ãã¹ãããã¬ã¸ã¹ã¿ã§ä¿æããã¦ããã¨ãï¼
以ä¸ã®ã³ã¼ããèãã¦ã¿ããï¼
%
\begin{LTXexample}
@@ -3531,18 +4066,18 @@ source:
%<*en>
As described in Subsection~\ref{ssec-param}, the only effective value of
-\Param{kanjiskip} in an hbox is the latest value, so the value of
-\Param{kanjiskip} which applied in the entire hbox should be 5\,pt.
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}} in an hbox is the latest value, so the value of
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}} which applied in the entire hbox should be 5\,pt.
However, by the implementation method of \LuaTeX, this `5\,pt' cannot be
known from any callbacks. In the \texttt{tex/packaging.w} (which is a
file in the source of \LuaTeX), there are the following codes:
%
%<*ja>
-\ref{ssec-param} ç¯ã§è¿°ã¹ãããã«ï¼ããæ°´å¹³ããã¯ã¹ã®ä¸ã§å¹åãæã¤
-\Param{kanjiskip} ã®å¤ã¯æå¾ã«ç¾ããå¤ã®ã¿ã§ããï¼ãããã£ã¦ããã¯ã¹å
¨ä½ã«é©ç¨ããã
-\Param{kanjiskip} 㯠5\,pt ã§ããã¹ãã§ããï¼ãããï¼\LuaTeX ã®å®è£
ã®ããã«ï¼
-ãã® `5\,pt' ã¯ã©ã®ã³ã¼ã«ããã¯ãããç¥ããã¨ã¯ã§ããªãï¼
-\texttt{tex/packaging.w}ï¼ãã㯠\LuaTeX ã®ã½ã¼ã¹ãã¡ã¤ã«ã§ããï¼ã®ä¸ã«ï¼
+\ref{ssec-param}ç¯ã§è¿°ã¹ãããã«ï¼ããæ°´å¹³ããã¯ã¹ã®ä¸ã§å¹åãæã¤
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®å¤ã¯æå¾ã«ç¾ããå¤ã®ã¿ã§ããï¼ãããã£ã¦ããã¯ã¹å
¨ä½ã«é©ç¨ããã
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¯5\,ptã§ããã¹ãã§ããï¼ãããï¼\LuaTeX ã®å®è£
ã®ããã«ï¼
+ãã®`5\,pt'ã¯ã©ã®ã³ã¼ã«ããã¯ãããç¥ããã¨ã¯ã§ããªãï¼
+\texttt{tex/packaging.w}ï¼ããã¯\LuaTeX ã®ã½ã¼ã¹ãã¡ã¤ã«ã§ããï¼ã®ä¸ã«ï¼
以ä¸ã®ã³ã¼ããããï¼
%
\begin{lstlisting}
@@ -3572,7 +4107,7 @@ callback.
%<*ja>
\verb+unsave+ ã \verb+filtered_hpack+ï¼ãã㯠\verb+hpack_filter+ ã³ã¼ã«ããã¯ã
å®è¡ãããã¨ããã§ããï¼ã®\textbf{åã«}å®è¡ããã¦ãããã¨ã«æ³¨æããï¼
-ãããã£ã¦ï¼ä¸è¨ã½ã¼ã¹ä¸ã§ `5\,pt' 㯠\verb+unsave+ ã®ã¨ããã§æ¨ã¦ããï¼
+ãããã£ã¦ï¼ä¸è¨ã½ã¼ã¹ä¸ã§`5\,pt'㯠\verb+unsave+ ã®ã¨ããã§æ¨ã¦ããï¼
\verb+hpack_filter+ ããã¯ã¢ã¯ã»ã¹ãããã¨ãã§ããªãï¼
%
@@ -3584,7 +4119,7 @@ The code of stack system is based on that in a post of Dev-luatex mailing list\f
\texttt{[Dev-luatex] tex.currentgrouplevel}, a post at 2008/8/19 by Jonathan Sauer.}.
%
%<*ja>
-ã¹ã¿ãã¯ã·ã¹ãã ã®ã³ã¼ã㯠Dev-luatex ã¡ã¼ãªã³ã°ãªã¹ãã®ããæ稿\footnote{\texttt{[Dev-luatex] tex.currentgrouplevel}: Jonathan Sauer ã«ãã 2008/8/19 ã®æ稿ï¼}ã
+ã¹ã¿ãã¯ã·ã¹ãã ã®ã³ã¼ãã¯Dev-luatexã¡ã¼ãªã³ã°ãªã¹ãã®ããæ稿\footnote{\texttt{[Dev-luatex] tex.currentgrouplevel}: Jonathan Sauerã«ãã2008/8/19ã®æ稿ï¼}ã
ãã¼ã¹ã«ãã¦ããï¼
%
@@ -3598,11 +4133,11 @@ a new stack level is created by \verb+\ltjsetparameter+, all data of the
previous level is copied.
%
%<*ja>
-æ
å ±ãä¿æããããã«ï¼2ã¤ã® \TeX ã®æ´æ°ã¬ã¸ã¹ã¿ãç¨ãã¦ããï¼
+æ
å ±ãä¿æããããã«ï¼2ã¤ã®\TeX ã®æ´æ°ã¬ã¸ã¹ã¿ãç¨ãã¦ããï¼
\verb+\ltj@@stack+ ã§ã¹ã¿ãã¯ã¬ãã«ï¼\verb+\ltj@@group@level+ ã§æå¾ã®ä»£å
¥ã
-ãªãããæç¹ã§ã® \TeX ã®ã°ã«ã¼ãã¬ãã«ãä¿æãã¦ããï¼
-ãã©ã¡ã¼ã¿ã¯ \texttt{charprop\_stack\_table} ã¨ããååã®ã²ã¨ã¤ã®å¤§ããªãã¼ãã«ã«
-æ ¼ç´ãããï¼ããã§ï¼\texttt{charprop\_stack\_table[$i$]} ã¯ã¹ã¿ãã¯ã¬ãã« $i$ ã®
+ãªãããæç¹ã§ã®\TeX ã®ã°ã«ã¼ãã¬ãã«ãä¿æãã¦ããï¼
+ãã©ã¡ã¼ã¿ã¯\texttt{charprop\_stack\_table}ã¨ããååã®ã²ã¨ã¤ã®å¤§ããªãã¼ãã«ã«
+æ ¼ç´ãããï¼ããã§ï¼\texttt{charprop\_stack\_table[$i$]}ã¯ã¹ã¿ãã¯ã¬ãã«$i$ã®
ãã¼ã¿ãæ ¼ç´ãã¦ããï¼ããæ°ããã¹ã¿ãã¯ã¬ãã«ã \verb+\ltjsetparameter+ ã«ãã£ã¦
çæããããï¼åã®ã¬ãã«ã®å
¨ã¦ã®ãã¼ã¿ãã³ãã¼ãããï¼
%
@@ -3618,13 +4153,13 @@ stack level is~$s$ and the \TeX's group level is~$t$ just after the hbox
group, then:
%
%<*ja>
-ä¸ã®ãèæ¯ãã§è¿°ã¹ãåé¡ã解決ããããã«ï¼\LuaTeX-ja ã§ã¯ããä¸ã¤ã®ææ³ãå°å
¥ããï¼
-æ°ããã¹ã¿ãã¯ã¬ãã«ãçæããããã¨ããã¨ãï¼type, subtype, value ããããã
-44~(\textit{user\_defined}), 30112ï¼ããã¦ç¾å¨ã®ã°ã«ã¼ãã¬ãã«ã§ãã whatsit ãã¼ã
-ãç¾å¨ã®ãªã¹ãã«ä»ãå ããï¼ãã®ãã¼ãã \textit{stack\_flag} ã¨ããï¼ï¼
+ä¸ã®ãèæ¯ãã§è¿°ã¹ãåé¡ã解決ããããã«ï¼\LuaTeX-jaã§ã¯ããä¸ã¤ã®ææ³ãå°å
¥ããï¼
+æ°ããã¹ã¿ãã¯ã¬ãã«ãçæããããã¨ããã¨ãï¼type, subtype, valueããããã
+44~(\textit{user\_defined}), 30112ï¼ããã¦ç¾å¨ã®ã°ã«ã¼ãã¬ãã«ã§ããwhatsitãã¼ã
+ãç¾å¨ã®ãªã¹ãã«ä»ãå ããï¼ãã®ãã¼ãã\textit{stack\_flag}ã¨ããï¼ï¼
ããã«ããï¼ããæ°´å¹³ããã¯ã¹ã®ä¸ã§ä»£å
¥ããªããããã©ãããç¥ããã¨ãå¯è½
-ã¨ãªãï¼ã¹ã¿ãã¯ã¬ãã«ã $s$ï¼ãã®æ°´å¹³ããã¯ã¹ã°ã«ã¼ãã®ç´å¾ã® \TeX ã®ã°ã«ã¼ãã¬ãã«ã
-$t$ ã¨ããã¨ï¼
+ã¨ãªãï¼ã¹ã¿ãã¯ã¬ãã«ã$s$ï¼ãã®æ°´å¹³ããã¯ã¹ã°ã«ã¼ãã®ç´å¾ã®\TeX ã®ã°ã«ã¼ãã¬ãã«ã
+$t$ã¨ããã¨ï¼
%
\begin{itemize}
%<*en>
@@ -3634,9 +4169,9 @@ $t$ ã¨ããã¨ï¼
level~$s$.
%
%<*ja>
-\item ãããã®æ°´å¹³ããã¯ã¹ã®ãªã¹ãã®ä¸ã« \textit{stack\_flag} ãã¼ãããªããã°ï¼
+\item ãããã®æ°´å¹³ããã¯ã¹ã®ãªã¹ãã®ä¸ã«\textit{stack\_flag}ãã¼ãããªããã°ï¼
æ°´å¹³ããã¯ã¹ã®ä¸ã§ã¯ä»£å
¥ã¯èµ·ãããªãã£ãã¨ãããã¨ã«ãªãï¼
- ãããã£ã¦ï¼ãã®æ°´å¹³ããã¯ã¹ã®çµããã«ããããã©ã¡ã¼ã¿ã®å¤ã¯ã¹ã¿ãã¯ã¬ãã« $s$ ã«
+ ãããã£ã¦ï¼ãã®æ°´å¹³ããã¯ã¹ã®çµããã«ããããã©ã¡ã¼ã¿ã®å¤ã¯ã¹ã¿ãã¯ã¬ãã«$s$ã«
æ ¼ç´ããã¦ããï¼
%
@@ -3647,9 +4182,9 @@ $t$ ã¨ããã¨ï¼
stack level~$s+1$.
%
%<*ja>
-\item ããå¤ã $t+1$ ã® \textit{stack\_flag} ãã¼ããããã°ï¼ãã®
+\item ããå¤ã$t+1$ã®\textit{stack\_flag}ãã¼ããããã°ï¼ãã®
æ°´å¹³ããã¯ã¹ã°ã«ã¼ãã®ä¸ã§ä»£å
¥ãèµ·ãã£ããã¨ã«ãªãï¼
- ãããã£ã¦ï¼æ°´å¹³ããã¯ã¹ã®çµããã«ããããã©ã¡ã¼ã¿ã®å¤ã¯ã¹ã¿ãã¯ã¬ãã« $s+1$ ã«
+ ãããã£ã¦ï¼æ°´å¹³ããã¯ã¹ã®çµããã«ããããã©ã¡ã¼ã¿ã®å¤ã¯ã¹ã¿ãã¯ã¬ãã«$s+1$ã«
æ ¼ç´ããã¦ããï¼
%
@@ -3661,10 +4196,10 @@ $t$ ã¨ããã¨ï¼
level~$s$.
%
%<*ja>
-\item ãã \textit{stack\_flag} ãã¼ããããããããã®å¤ãå
¨ã¦ $t+1$ ãã大ãã
+\item ãã\textit{stack\_flag}ãã¼ããããããããã®å¤ãå
¨ã¦$t+1$ãã大ãã
å ´åï¼ãã®ããã¯ã¹ã®ä¸ã§ä»£å
¥ãèµ·ãã£ããï¼ããã¯ãããå
é¨ã®ãã°ã«ã¼ãã§
èµ·ãã£ãã¨ãããã¨ã«ãªãï¼ãããã£ã¦ï¼æ°´å¹³ããã¯ã¹ã®çµããã§ã®ãã©ã¡ã¼ã¿ã®
- å¤ã¯ã¹ã¿ãã¯ã¬ãã« $s$ ã«æ ¼ç´ããã¦ããï¼
+ å¤ã¯ã¹ã¿ãã¯ã¬ãã«$s$ã«æ ¼ç´ããã¦ããï¼
%
\end{itemize}
@@ -3686,7 +4221,7 @@ This problem is resolved by using
%\section{åææåç´å¾ã®æ¹è¡}
\label{sec-lbreak}
%\subsection{Reference: Behavior in \pTeX}
-%\subsection{åè: \pTeX ã®åä½}
+%\subsection{åèï¼\pTeX ã®åä½}
%<*en>
In~\pTeX, a line break after a Japanese character doesn't emit a space,
since words are not separated by spaces in Japanese writings. However,
@@ -3726,7 +4261,7 @@ after `beginning/ending of a group' characters.
\item State~$M$: è¡ä¸ï¼
\item State~$K$: è¡ä¸ï¼åææåã®å¾ï¼ï¼
\end{itemize}
-ã¾ãï¼ç¶æ
é·ç§»ã¯ï¼å³ \ref{fig-ptexipro} ã®ããã«ãªã£ã¦ããï¼å³ä¸ã®æ°åã¯
+ã¾ãï¼ç¶æ
é·ç§»ã¯ï¼å³\ref{fig-ptexipro}ã®ããã«ãªã£ã¦ããï¼å³ä¸ã®æ°åã¯
ã«ãã´ãªã¼ã³ã¼ãã表ãã¦ããï¼æåã®3ç¶æ
ã¯\TeX ã®å
¥åå¦çé¨ã¨åãã§ããï¼
å³ä¸ããç¶æ
$K$ã¨ã$j$ãã¨æ¸ãããç¢å°ãåãé¤ãã°ï¼\TeX ã®å
¥åå¦çé¨ã¨å
ããã®ã«ãªãï¼
@@ -3739,36 +4274,72 @@ after `beginning/ending of a group' characters.
%
\begin{figure}[!tb]
-\begin{gather*}
- \def\sp{\texttt{\char32}}
- \xymatrix{&&
- {\text{scan a cs}}\ar@(r,ul)[dr]&\\
-\ar[r]&
- *++[o][F-]{N}\ar[ur]^0\ar[dd]_{d,\ g}\ar[u]^{5\ (\texttt{\char92par})}
- \ar@{->}@(d,l)[ddrr]_(0.45){j}&&
- *++[o][F-]{S}\ar@(l,dr)[ul]^0\ar@(l,ur)[ddll]_{d,\ g}\ar[u]_{5}
- \ar@{->}@(r,r)[dd]^{j}\\&\\&
- *++[o][F-]{M}\ar[uuur]^0\ar@(r,dl)[uurr]_(0.55){10\ (\sp)}
- \ar[d]_{5\ ({\sp})}\ar@{->}@(dr,dl)[rr]_{j}&&
- *++[o][F-]{K}\ar@{->}@(ul,d)[uuul]^0\ar@{->}[ll]^{d}
- \ar@{->}@(ur,dr)[uu]^{10\ (\sp)}\ar@{->}[d]_5\\
- &&&
- }\\
- d:=\{3,4,6,7,8,11,12,13\},\quad g:=\{1,2\},\quad j:=(\text{Japanese characters})
-\end{gather*}
+\let\sp\textvisiblespace\small
+\begin{minipage}{.6\textwidth}%
+\begin{center}
+\unitlength=6.5mm\sf\mathversion{bold}
+\begin{tikzpicture}[
+ ->, auto, shorten >=1pt
+]
+\node [shape=rectangle, font=\scriptsize] (init) at (2,7) {start};
+\node [shape=circle,draw, fill=blue!20] (newline) at (4,7) {$N$};
+\node [shape=circle,draw, fill=blue!20] (midline) at (4,4) {$M$};
+\node [shape=circle,draw, fill=blue!20] (skipspc) at (8,7) {$S$};
+\node [shape=circle,draw, fill=red!20] (kanji) at (8,4) {$K$};
+\node [shape=rectangle,draw, fill=green!20] (scanacs) at (6,8) {scan a c.s.};
+\node (endk) at (8,2.5) {} ;
+\node (endm) at (4,2.5) {} ;
+\node (ends) at (8,8.5) {} ;
+\node (endn) at (4,8.5) {} ;
+\begin{scope}[font=\scriptsize]
+\path (newline) edge [bend right] node [left]{G, O} (midline)
+ (init) edge node {} (newline)
+ (midline) edge [bend right=10] node {10} (skipspc)
+ (skipspc) edge [bend right] node [left,right=10,above=7]{G, O} (midline)
+ (skipspc) edge [loop right] node {10} (skipspc)
+ (newline) edge [loop right] node {10} (newline)
+ (scanacs) edge [bend left] node [left=3,below]{$(*)$} (skipspc)
+ (scanacs) edge [bend right] node [right=30,above=20]{$(*)$} (midline)
+ (midline) edge node {5\ [\sp]} (endm)
+ (midline) edge [loop left] node {G, O} (midline)
+ (skipspc) edge node [right] {5} (ends)
+ (newline) edge node {5 [{\tt\char92par}]} (endn);
+\begin{scope}[red]
+\path (newline) edge [bend right] node [right=25,below=3]{J} (kanji)
+ (midline) edge node [below]{J} (kanji)
+ (kanji) edge [bend left] node {O} (midline)
+ (kanji) edge node {10} (skipspc)
+ (kanji) edge [loop right] node {G, J} (kanji)
+ (skipspc) edge [bend left] node {J} (kanji)
+ (kanji) edge node {5} (endk)
+;
+\end{scope}
+\end{scope}
+\end{tikzpicture}
+\end{center}
+\end{minipage}%
+\begin{minipage}{.4\textwidth}
+\begin{description}
+\item[\textsf{G}] Beginning of group (usually \verb+{+)\\
+ and ending of group (usually \verb+}+).
+\item[\textsf{J}] Japanese characters.
+\item[\textsf{5}] \textit{end-of-line} (usually \verb+^^J+).
+\item[\textsf{10}] space (usually \sp).
+\item[\textsf{O}] other characters, whose category code is in $\{3,4,6,7,8,11,12,13\}$.
+\item[\textsf{[\sp]}, \textsf{[{\tt\char92par}]}]
+emits a space, or~\verb+\par+.
+\end{description}
+\end{minipage}
\begin{itemize}
-%<*en>
-\item Numbers represent category codes.
-%
-%<*ja>
-\item æ°åã¯ã«ãã´ãªã¼ã³ã¼ãã表ããã¦ããï¼
-%
-%<*en>
-\item Category codes 9~(ignored), 14~(comment)~and~15~(invalid) are omitted in the above diagram.
-%
-%<*ja>
-\item ã«ãã´ãªã¼ã³ã¼ã 9ï¼ç¡è¦ããæåï¼ï¼14ï¼ã³ã¡ã³ãæåï¼ï¼15ï¼ç¡å¹æåï¼ã¯ä¸ã®å³ã§ã¯çããã¦ããï¼
-%
+\item We omitted about category codes
+9~(\textit{ignored}), 14~(\textit{comment})~and~15~(\textit{invalid})
+from the above diagram. We also ignored the input like `\verb+^^A+' or `\verb+^+\verb+^df+'.
+\item When a character whose category code is 0 (\textit{escape character}) is seen by \TeX,
+the input processor scans a control sequence (\textsf{scan a c.s.}).
+These paths are not shown in the above diagram.
+
+After that, the state is changed to State~$S$ (skipping blanks) in most cases, but
+to State~$M$ (middle of line) sometimes.
\end{itemize}
%\caption{State transitions of \pTeX's input processor.}
%\caption{\pTeX ã®å
¥åå¦çé¨ã®ç¶æ
é·ç§»ï¼}
@@ -3777,7 +4348,7 @@ after `beginning/ending of a group' characters.
%\subsection{Behavior in \LuaTeX-ja}
-%\subsection{\LuaTeX-ja ã®åä½}
+%\subsection{\LuaTeX-jaã®åä½}
%<*en>
States in the input processor of \LuaTeX\ is the same as that of \TeX,
and they can't be customized by any callbacks. Hence, we can only use
@@ -3794,10 +4365,12 @@ Considering these situations, handling of an end-of-line in \LuaTeX-ja are as fo
\begin{quote}
A character U+FFFFF (its category code is set to 14~(comment) by
\LuaTeX-ja) is appended to an input line, \emph{before \LuaTeX\ actually
-process it}, if and only if the following two conditions are satisfied:
+process it}, if and only if the following three conditions are satisfied:
\begin{enumerate}
-\item The category code of the character $\langle${return}$\rangle$
- (whose character code is 13) is 5~(end-of-line).
+\item The category code of \verb+\endlinechar+%
+\footnote{Usually, it is $\langle${return}$\rangle$
+ (whose character code is 13).} is 5~(end-of-line).
+\item The category code of U+FFFFF itself is 14~(comment).
\item The input line matches the following `regular expression':
\[
(\text{any char})^*(\textbf{JAchar})
@@ -3824,9 +4397,9 @@ u
%
%<*ja>
-\LuaTeX ã®å
¥åå¦çé¨ã¯\TeX ã®ããã¨å
¨ãåãã§ããï¼callbackã«ããã¦ã¼ã¶ã
+\LuaTeX ã®å
¥åå¦çé¨ã¯\TeX ã®ããã¨å
¨ãåãã§ããï¼ã³ã¼ã«ããã¯ã«ããã¦ã¼ã¶ã
ã«ã¹ã¿ãã¤ãºãããã¨ã¯ã§ããªãï¼ãã®ããï¼æ¹è¡æå¶ã®ç®çã§ã¦ã¼ã¶ãå©ç¨ã§
-ããããªcallbackã¨ãã¦ã¯ï¼\verb+process_input_buffer+ã
+ããããªã³ã¼ã«ããã¯ã¨ãã¦ã¯ï¼\verb+process_input_buffer+ã
\verb+token_filter+ã«éããã¦ãã¾ãï¼ãããï¼\TeX ã®å
¥åå¦çé¨ãããè¦ã
ã¨ï¼å¾è
ãå½¹ã«ã¯çµããªããã¨ãåããï¼æ¹è¡æåã¯ï¼å
¥åå¦çé¨ã«ãã£ã¦ãã¼
ã¯ã³åãããæã«ï¼ã«ãã´ãªã¼ã³ã¼ã10ã®32çªæåã¸ã¨ç½®ãæãããã¦ãã¾ãã
@@ -3839,11 +4412,13 @@ u
\begin{quote}
åå
¥åè¡ã«å¯¾ãï¼\textbf{ãã®å
¥åè¡ãèªã¾ããåã®å
é¨ç¶æ
ã§}
-以ä¸ã®2æ¡ä»¶ãæºãããã¦ããå ´åï¼\LuaTeX-jaã¯U+FFFFFçªã®æå
+以ä¸ã®3æ¡ä»¶ãæºãããã¦ããå ´åï¼\LuaTeX-jaã¯U+FFFFFçªã®æå
\footnote{ãã®æåã¯ã³ã¡ã³ãæåã¨ãã¦æ±ãããããã«\LuaTeX-jaå
é¨ã§è¨å®ããã¦ããï¼}
ãæ«å°¾ã«è¿½å ããï¼ãã£ã¦ï¼ãã®å ´åã«æ¹è¡ã¯ç©ºç½ã¨ã¯è¦åãããªããã¨ã¨ãªãï¼
\begin{enumerate}
-\item æ¹è¡æåï¼æåã³ã¼ã13çªï¼ã®ã«ãã´ãªã¼ã³ã¼ãã5~(end-of-line)ã§ããï¼
+\item \verb+\endlinechar+ã®æå\footnote{æ®éã¯ï¼æ¹è¡æåï¼æåã³ã¼ã13çªï¼ã§ããï¼}
+ã®ã«ãã´ãªã¼ã³ã¼ãã5~(end-of-line)ã§ããï¼
+\item U+FFFFFã®ã«ãã´ãªã¼ã³ã¼ãã14~(comment)ã§ããï¼
\item å
¥åè¡ã¯æ¬¡ã®ãæ£è¦è¡¨ç¾ãã«ããããã¦ããï¼
\[
(\text{any char})^*(\textbf{JAchar})
@@ -3875,24 +4450,25 @@ u
ãã®è¡ã¯ããã§æ¹è¡ããããã«ããæ¹ãããã ããï¼
%
+%<*ja>
%\section{Insertion of JFM glues, \Param{kanjiskip} and \Param{xkanjiskip}}
-%\section{JFM ã°ã«ã¼ã®æ¿å
¥ï¼\Param{kanjiskip} 㨠\Param{xkanjiskip}}
+%\section{JFMã°ã«ã¼ã®æ¿å
¥ï¼\Param{kanjiskip}ã¨\Param{xkanjiskip}}
\label{sec-jfmglue}
%\subsection{Overview}
%\subsection{æ¦è¦}
-\LuaTeX-ja ã«ãããåæå¦çã°ã«ã¼ã®æ¿å
¥æ¹æ³ã¯ï¼\pTeX ã®ããã¨ã¯å
¨ãç°ãªãï¼
+\LuaTeX-jaã«ããã \textbf{JAglue} ã®æ¿å
¥æ¹æ³ã¯ï¼\pTeX ã®ããã¨ã¯å
¨ãç°ãªãï¼
\pTeX ã§ã¯æ¬¡ã®ãããªä»æ§ã§ãã£ãï¼
\begin{itemize}
\item JFMã°ã«ã¼ã®æ¿å
¥ã¯ï¼åææåã表ããã¼ã¯ã³ãå
ã«æ°´å¹³ãªã¹ãã«ï¼æåã表ãï¼ã
追å ããéç¨ã§è¡ãããï¼
-\item \Param{xkanjiskip}ã®æ¿å
¥ã¯ï¼æ°´å¹³ããã¯ã¹ã¸ã®ããã±ã¼ã¸ã³ã°ãè¡åå²åã«è¡ãããï¼
-\item \Param{kanjiskip}ã¯ãã¼ãã¨ãã¦ã¯æ¿å
¥ãããªãï¼ããã±ã¼ã¸ã³ã°ãè¡åå²ã®è¨ç®æã«
-ãåææåã表ã2ã¤ã®ã®éã«ã¯\Param{kanjiskip}ãããããã®ã¨ã¿ãªãããï¼
+\item \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯ï¼æ°´å¹³ããã¯ã¹ã¸ã®ããã±ã¼ã¸ã³ã°ãè¡åå²åã«è¡ãããï¼
+\item \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¯ãã¼ãã¨ãã¦ã¯æ¿å
¥ãããªãï¼ããã±ã¼ã¸ã³ã°ãè¡åå²ã®è¨ç®æã«
+ãåææåã表ã2ã¤ã®ã®éã«ã¯\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãããããã®ã¨ã¿ãªãããï¼
\end{itemize}
ãããï¼\LuaTeX-jaã§ã¯ï¼æ°´å¹³ããã¯ã¹ã¸ã®ããã±ã¼ã¸ã³ã°ãè¡åå²åã«å
¨ã¦ã®
-\textbf{JAglue}ï¼å³ã¡JFMã°ã«ã¼ã»\Param{xkanjiskip}ã»\Param{kanjiskip}ã®
+\textbf{JAglue}ï¼å³ã¡JFMã°ã«ã¼ã»\Param{\hyperlink{fld:xks}{xkanjiskip}}ã»\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®
3種é¡ãä¸åº¦ã«æ¿å
¥ãããã¨ã«ãªã£ã¦ããï¼ããã¯ï¼\LuaTeX ã«ããã¦æ¬§æã®ååã»
ã«ã¼ãã³ã°å¦çããã¼ããã¼ã¹ã«ãªã£ããã¨ã«å¯¾å¿ããå¤æ´ã§ããï¼
@@ -3924,10 +4500,10 @@ with the \textit{id} of it:
The \textit{id} is \textit{id\_pbox}.
%
%<*ja>
-\item ãã® \verb+\ltj@icflag+ ã®å¤ã $[3,15)$ ã«å
¥ããã¼ãã®ãªã¹ãï¼
+\item ãã® \verb+\ltj@icflag+ ã®å¤ã$[3,15)$ã«å
¥ããã¼ãã®ãªã¹ãï¼
ãããã®ãã¼ãã¯ããæ¢ã«ããã±ã¼ã¸ã³ã°ãããæ°´å¹³ããã¯ã¹ãã \verb+\unhbox+ ã§
ã¢ã³ããã¯ããããã®ã§ããï¼
- ãã® \textit{id} 㯠\textit{id\_pbox} ã§ããï¼
+ ãã®\textit{id}ã¯\textit{id\_pbox}ã§ããï¼
%
%<*en>
@@ -3935,29 +4511,29 @@ with the \textit{id} of it:
The \textit{id} is \textit{id\_math}.
%
%<*ja>
-\item ã¤ã³ã©ã¤ã³æ°å¼ã§ãã®å¢çã«2ã¤ã® \textit{math\_node} ãå«ããã®ï¼
- ãã® \textit{id} 㯠\textit{id\_math} ã§ããï¼
+\item ã¤ã³ã©ã¤ã³æ°å¼ã§ãã®å¢çã«2ã¤ã®\textit{math\_node}ãå«ããã®ï¼
+ ãã®\textit{id}ã¯\textit{id\_math}ã§ããï¼
%
%<*en>
\item A \textit{glyph\_node}~$p$ with nodes which relate with it:
%
%<*ja>
-\item \textit{glpyh\_node}~$p$ ã¨ããã«é¢ä¿ãããã¼ãï¼
+\item \textit{glpyh\_node}~$p$ã¨ããã«é¢ä¿ãããã¼ãï¼
%
\begin{enumerate}
%<*en>
\item A kern for the italic correction of~$p$.
%
%<*ja>
-\item $p$ ã®ã¤ã¿ãªãã¯è£æ£ã®ããã®ã«ã¼ã³ï¼
+\item $p$ã®ã¤ã¿ãªãã¯è£æ£ã®ããã®ã«ã¼ã³ï¼
%
%<*en>
\item An accent attached to $p$ by \verb+\accent+.
%
%<*ja>
-\item \verb+\accent+ ã«ãã $p$ ã«ä»éããã¢ã¯ã»ã³ãï¼
+\item \verb+\accent+ ã«ãã$p$ã«ä»éããã¢ã¯ã»ã³ãï¼
%
\end{enumerate}
\[
@@ -3980,8 +4556,8 @@ The \textit{id} is \textit{id\_jglyph} or
represents a Japanese character or not.
%
%<*ja>
-\textit{id} 㯠\textit{glyph\_node} ãåææåã表ããã©ããã«ãã£ã¦
-\textit{id\_jglyph}ï¼ããã㯠\textit{id\_glyph} ã¨ãªãï¼
+\textit{id}ã¯\textit{glyph\_node}ãåææåã表ããã©ããã«ãã£ã¦
+\textit{id\_jglyph}ï¼ãããã¯\textit{id\_glyph}ã¨ãªãï¼
%
%<*en>
@@ -3992,9 +4568,9 @@ The \textit{id} is \textit{id\_hlist} if the node is an
%
%<*ja>
\item ããã¯ã¹æ§ã®ãã¼ãï¼ã¤ã¾ãæ°´å¹³ããã¯ã¹ï¼åç´ããã¯ã¹ï¼ç½«ç· (\verb+\vrule+)ï¼
- ãã㦠\textit{unset\_node}ï¼
- ãã® \textit{id} ã¯åç´ã«ç§»åãã¦ããªãæ°´å¹³ããã¯ã¹ãªãã° \textit{id\_hlist}ï¼
- ããã§ãªããã° \textit{id\_box\_like} ã¨ãªãï¼
+ ããã¦\textit{unset\_node}ï¼
+ ãã®\textit{id}ã¯åç´ã«ç§»åãã¦ããªãæ°´å¹³ããã¯ã¹ãªãã°\textit{id\_hlist}ï¼
+ ããã§ãªããã°\textit{id\_box\_like}ã¨ãªãï¼
%
%<*en>
@@ -4003,16 +4579,16 @@ The \textit{id} is \textit{id\_glue}, \textit{id\_kern}
and \textit{id\_disc}, respectively.
%
%<*ja>
-\item ã°ã«ã¼ï¼subtype ã 2~(\textit{accent}) ã§ã¯ãªãã«ã¼ã³ï¼ããã¦ä»»ææ¹è¡ï¼
- ãã® \textit{id} ã¯ãããã \textit{id\_glue}, \textit{id\_kern}ï¼ããã¦
- \textit{id\_disc} ã§ããï¼
+\item ã°ã«ã¼ï¼subtypeã 2~(\textit{accent})ã§ã¯ãªãã«ã¼ã³ï¼ããã¦ä»»ææ¹è¡ï¼
+ ãã®\textit{id}ã¯ãããã\textit{id\_glue}, \textit{id\_kern}ï¼ããã¦
+ \textit{id\_disc}ã§ããï¼
%
\end{enumerate}
%<*en>
Let \textit{Np}, \textit{Nq} and \textit{Nr} denote a cluster.
%
%<*ja>
-以ä¸ã§ã¯ \textit{Np}, \textit{Nq}, \textit{Nr} ã§ã¯ã©ã¹ã¿ã表ãï¼
+以ä¸ã§ã¯\textit{Np}, \textit{Nq}, \textit{Nr}ã§ã¯ã©ã¹ã¿ã表ãï¼
%
\end{defn}
@@ -4022,7 +4598,7 @@ $\mathit{Np}.\mathit{id}$ã®æå³ãè¿°ã¹ãã¨ã¨ãã«ï¼
ãæå¾ã®æåãã表ã\textit{glyph\_node}~$\mathit{Np}.\mathit{tail}$ã次ã®ããã«å®ç¾©ããï¼
ç´æçã«è¨ãã¨ï¼\textit{Np}ã¯$\mathit{Np}.\mathit{head}$ã§å§ã¾ã$\mathit{Np}.\mathit{tail}$ã§çµãããããªåèªï¼
ã¨è¦åããã¨ãã§ããï¼ããã$\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$ã¯
-説æç¨ã«æºåããæ¦å¿µã§ãã£ã¦ï¼å®éã® Lua ã³ã¼ãä¸ã«ãã®ããã«æ¸ããã¦ããããã§ã¯ãªããã¨ã«æ³¨æï¼
+説æç¨ã«æºåããæ¦å¿µã§ãã£ã¦ï¼å®éã®Luaã³ã¼ãä¸ã«ãã®ããã«æ¸ããã¦ããããã§ã¯ãªããã¨ã«æ³¨æï¼
\begin{description}
\item[\textit{id\_jglyph}] åææåï¼\\
@@ -4050,7 +4626,7 @@ $\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$ã¯ï¼ãã®åææå
\begin{verbatim}
\hbox{\hbox{abc}...\hbox{\lower1pt\hbox{xyz}}}
\end{verbatim}
-ã®ããã«ï¼$p$ã®å
容ãå¥ã® hbox ã§éå§ã»çµäºãã¦ããå¯è½æ§ãååããå¾ãï¼ãã®ãããªå ´åï¼
+ã®ããã«ï¼$p$ã®å
容ãå¥ã®æ°´å¹³ããã¯ã¹ã§éå§ã»çµäºãã¦ããå¯è½æ§ãååããå¾ãï¼ãã®ãããªå ´åï¼
$\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$ã®ç®åºã¯ï¼\textbf{åç´æ¹åã«ã·ããããã¦ããªã}æ°´å¹³ããã¯ã¹ã®
å ´åã ãå
é¨ãå帰çã«æ¢ç´¢ããï¼ä¾ãã°ä¸ã®ä¾ã§ã¯ï¼$\mathit{Np}.\mathit{head}$ã¯æåãaãã表ããã¼ãã§ããï¼
ä¸æ¹$\mathit{Np}.\mathit{tail}$ã¯åç´æ¹åã«ã·ãããããæ°´å¹³ããã¯ã¹ï¼\verb+\lower1pt\hbox{xyz}+ã«å¯¾å¿ãããã¼ãã§ããï¼
@@ -4083,7 +4659,7 @@ $\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$ã®ç®åºã¯ï¼\textbf{
\textit{id}ã\textit{id\_pbox}ã§ãã£ã¦$\mathit{Np}.\mathit{head}$ã\textbf{JAchar}ã§ããã¨ãï¼
\item[åæB] ãªã¹ãä¸ã®æ°´å¹³ããã¯ã¹ã®ä¸èº«ã®å
é ã¨ãã¦åºç¾ããåææåï¼åæAã¨ã®éãã¯ï¼ããã®åã«
-JFMã°ã«ã¼ã®æ¿å
¥ãè¡ãããªãï¼\Param{xkanjiskip},~\Param{kanjiskip}ã¯å
¥ãå¾ãï¼ãã¨ã§ããï¼\\
+JFMã°ã«ã¼ã®æ¿å
¥ãè¡ãããªãï¼\Param{\hyperlink{fld:xks}{xkanjiskip}},~\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¯å
¥ãå¾ãï¼ãã¨ã§ããï¼\\
\textit{id}ã\textit{id\_hlist}ã\textit{id\_disc}ã§ãã£ã¦$\mathit{Np}.\mathit{head}$ã\textbf{JAchar}ã§ããã¨ãï¼
\item[欧æ] ãªã¹ãä¸ã«ç´æ¥ï¼æ°´å¹³ããã¯ã¹ã®ä¸èº«ã¨ãã¦åºç¾ãã¦ãã欧ææåï¼æ¬¡ã®3ã¤ã®å ´åã該å½ï¼
@@ -4168,24 +4744,59 @@ $g$ã¯ãæåã³ã¼ã\texttt{'boxbdd'}ã®æåãã¨\textit{Np}ã®éã«å
¥
ã¾ãï¼ãå³ç©ºç½ãã«ãããéãç®åºããï¼é常ã¯ãããï¼é£ãåã£ã2ã¤ã®åææåéã«å
¥ã空ç½éã¨ãªãï¼
\begin{description}
\item[JFMç±æ¥{[M]}] JFMã®æåã¯ã©ã¹æå®ã«ãã£ã¦å
¥ã空ç½ã以ä¸ã«ãã£ã¦æ±ããï¼ãã®æ®µéã§ç©ºç½éãæªå®ç¾©ï¼æªæå®ï¼ã ã£ãå ´åï¼
- ããã©ã«ãå¤\Param{kanjiskip}ãæ¡ç¨ãããã¨ã¨ãªãã®ã§ï¼æ¬¡ã¸ï¼
+ ããã©ã«ãå¤\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãæ¡ç¨ãããã¨ã¨ãªãã®ã§ï¼æ¬¡ã¸ï¼
\begin{enumerate}
\item ãã両ã¯ã©ã¹ã¿ã®éã§\verb+\inhibitglue+ãå®è¡ããã¦ããå ´åï¼è¨¼ã¨ãã¦whatsitãã¼ããèªåæ¿å
¥ãããï¼ï¼
- 代ããã«\Param{kanjiskip}ãæ¿å
¥ããããã¨ã¨ãªãï¼æ¬¡ã¸ï¼
+ 代ããã«\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãæ¿å
¥ããããã¨ã¨ãªãï¼æ¬¡ã¸ï¼
\item \textit{Nq}ã¨\textit{Np}ãåãJFMã»åã\texttt{jfmvar}ãã¼ã»åããµã¤ãºã®åæãã©ã³ãã§ãã£ããªãã°ï¼
- å
±éã«ä½¿ã£ã¦ããJFMå
ã§æ¿å
¥ããã空ç½ï¼ã°ã«ã¼ãã«ã¼ã³ï¼ã決ã¾ã£ã¦ããã調ã¹ãï¼
+ å
±éã«ä½¿ã£ã¦ããJFMå
ã§æ¿å
¥ããã空ç½ï¼ã°ã«ã¼ãã«ã¼ã³ï¼ã決ã¾ã£ã¦ããã調ã¹ï¼æ±ºã¾ã£ã¦ããã°ãããæ¡ç¨ï¼
\item 1.ã§ã2.ã§ããªãå ´åã¯ï¼\textit{Nq}ã¨\textit{Np}ãéãJFM/\texttt{jfmvar}/ãµã¤ãºã§ããï¼
ãã®å ´åï¼ã¾ã
\[
-\vcenter{\halign{\hfil$#:={}$&(\inhibitglue#\inhibitglue)\cr
-gb&\textit{Nq}ã¨ãæåã³ã¼ãã{\tt'diffmet'}ã®æåãã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³\cr
-ga&ãæåã³ã¼ãã{\tt'diffmet'}ã®æåãã¨\textit{Np}ã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³\cr
+\vcenter{\halign{\hfil$#:={}$&\inhibitglue#\inhibitglue\cr
+gb&(\textit{Nq}ã¨ã使ç¨ãã©ã³ãã\textit{Nq}ã®ããã¨åãã§ï¼\hfil\cr
+\omit&\quad æåã³ã¼ãã\textit{Np}ã®ããã®æåãã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³)\hfil\cr
+ga&(\inhibitglue ã使ç¨ãã©ã³ãã\textit{Np}ã®ããã¨åãã§ï¼\hfil\cr
+\omit&\quad æåã³ã¼ãã\textit{Nq}ã®ããã®æåãã¨\textit{Np}ã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³)\hfil\cr
}}
\]
-ã¨ãã¦ï¼å·¦å´ç±æ¥ã»å³å´ç±æ¥ã®ç©ºç½ï¼ã°ã«ã¼ï¼ã«ã¼ã³ï¼ãï¼ããããã®JFMããï¼æ±ããï¼
-$\mathit{ga}$ã¨$\mathit{gb}$ã®ã©ã¡ããçæ¹ãæªå®ç¾©ã§ãããªãã°ï¼å®ç¾©ããã¦ããå´ã®å¤ããã®ã¾ã¾æ¡ç¨ããï¼
-ãã$\mathit{ga}$ã¨$\mathit{gb}$ã両æ¹æ±ºã¾ã£ã¦ãããªãã°ï¼ä¸¡è
ã®å¤ãå¹³å\footnote{\Param{differentjfm}ãã©ã¡ã¿ã®
-å¤ã«ãã£ã¦ï¼ã大ããæ¹ããå°ããæ¹ããåè¨ãã«å¤ãããã¨ãã§ããï¼}ããå¤ãæ¡ç¨ããï¼
+ã¨ãã¦ï¼åå´ã®æåã®JFMã使ã£ãæã®ç©ºç½ï¼ã°ã«ã¼ï¼ã«ã¼ã³ï¼ã¨ï¼å¾å´ã®æåã®JFMã使ã£ãæã®ãããæ±ããï¼
+
+$\mathit{gb}$,~$\mathit{ga}$ããããã«å¯¾ããã®å¤ã$d_b$,~$d_a$ã¨ããï¼
+\begin{itemize}
+\item
+$\mathit{ga}$ã¨$\mathit{gb}$ã®ä¸¡æ¹ãæªå®ç¾©ã§ãããªãã°ï¼JFMç±æ¥ã®ã°ã«ã¼ã¯æ¿å
¥ãããï¼\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãæ¡ç¨ãããã¨ã¨ãªãï¼ã©ã¡ããçæ¹ã®ã¿ãæªå®ç¾©ã§ãããªãã°ï¼æ¬¡ã®ã¹ãããã§ãã®æªå®ç¾©ã®æ¹ã¯é·ã0ã®kernã§ï¼ã®å¤ã¯0ã§ãããã®ããã«æ±ãããï¼
+\item
+\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}ã®å¤ã\texttt{pleft}, \texttt{pright}, \texttt{paverage}ã®ã¨ãï¼
+ã®æå®ã«å¾ã£ã¦æ¯ä¾é
åãè¡ãï¼
+JFMç±æ¥ã®ã°ã«ã¼ï¼ã«ã¼ã³ã¯ä»¥ä¸ã®å¤ã¨ãªãï¼
+\[
+ f\left(\frac{1-d_b}2\textit{gb} + \frac{1+d_b}2\textit{ga},
+\frac{1-d_a}2\textit{gb} + \frac{1+d_a}2\textit{ga}\right)
+\]
+ããã§ï¼$f(x,y)$ã¯
+\[
+ f(x,y)=\begin{cases}
+x&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{pleft};\\
+y&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{pright};\\
+(x+y)/2&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{paverage};
+\end{cases}.
+\]
+\item
+\Param{differentmet}ããã以å¤ã®å¤ã®æã¯ï¼ã®å¤ã¯ç¡è¦ããï¼JFMç±æ¥ã®ã°ã«ã¼ï¼ã«ã¼ã³ã¯ä»¥ä¸ã®å¤ã¨ãªãï¼
+\[
+ f(\textit{gb},\textit{ga})
+\]
+ããã§ï¼$f(x,y)$ã¯
+\[
+ f(x,y)=\begin{cases}
+\min(x,y)&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{small};\\
+\max(x,y)&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{large};\\
+(x+y)/2&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{average};\\
+x+y&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{both};
+\end{cases}.
+\]
+\end{itemize}
\end{enumerate}
ä¾ãã°ï¼
@@ -4204,37 +4815,26 @@ $\mathit{ga}$ã¨$\mathit{gb}$ã®ã©ã¡ããçæ¹ãæªå®ç¾©ã§ãããªãã°
ãã®å ´åï¼$p$ã¨$q$ã®éã¯ï¼å®ãã©ã³ããç°ãªãã«ãããããã(2)ã®ç¶æ³ã¨ãªãä¸æ¹ã§ï¼
$q$ã¨$r$ã®éã¯ï¼å®ãã©ã³ããåããªã®ã«ï¼\texttt{jfmvar}ãã¼ã®å
容ãç°ãªãã®ã§(3)ã®ç¶æ³ã¨ãªãï¼
\item[\Param{kanjiskip}~{[K]}] ä¸ã®[M]ã«ããã¦ç©ºç½ãå®ã¾ããªãã£ãå ´åï¼
-\Param{kanjiskip}ã®å¤ã以ä¸ã§å®ãï¼ããããå³ç©ºç½ãã¨ãã¦æ¡ç¨ããï¼
+以ä¸ã§å®ããéãå³ç©ºç½ãã¨ãã¦æ¡ç¨ããï¼
ãã®æ®µéã«ããã¦ã¯ï¼\verb+\inhibitglue+ã¯å¹åãæããªãããï¼
çµæã¨ãã¦ï¼2ã¤ã®åææåéã«ã¯å¸¸ã«ä½ããã®ã°ã«ã¼ï¼ã«ã¼ã³ãæ¿å
¥ããããã¨ã¨ãªãï¼
\begin{enumerate}
\item 両ã¯ã©ã¹ã¿ï¼å³å¯ã«ã¯$\mathit{Nq}.\mathit{tail}$ï¼$\mathit{Np}.\mathit{head}$ï¼ã®ä¸èº«ã®æåã³ã¼ãã«å¯¾ãã
\Param{autospacing}ãã©ã¡ã¿ã両æ¹ã¨ãfalseã ã£ãå ´åã¯ï¼é·ã0ã®glueã¨ããï¼
-\item ã¦ã¼ã¶å´ããè¦ã\Param{kanjiskip}ãã©ã¡ã¿ã®èªç¶é·ã${\tt \char92 maxdimen}=(2^{30}-1)\,{\rm sp}$ã§
-ãªããã°ï¼\Param{kanjiskip}ãã©ã¡ã¿ã®å¤ãæã¤glueãæ¡ç¨ããï¼
-\item 2.ã§ãªãå ´åã¯ï¼\textit{Nq}, \textit{Np}ã§ä½¿ããã¦ããJFMã«æå®ããã¦ãã\Param{kanjiskip}ã®å¤ãç¨ããï¼
+\item ã¦ã¼ã¶å´ããè¦ã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãã©ã¡ã¿ã®èªç¶é·ã${\tt \char92 maxdimen}=(2^{30}-1)\,{\rm sp}$ã§
+ãªããã°ï¼\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãã©ã¡ã¿ã®å¤ãæã¤glueãæ¡ç¨ããï¼
+\item 2.ã§ãªãå ´åã¯ï¼\textit{Nq}, \textit{Np}ã§ä½¿ããã¦ããJFMã«æå®ããã¦ãã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®å¤ãç¨ããï¼
ã©ã¡ããçæ¹ã®ã¯ã©ã¹ã¿ã ããåææåï¼\textsf{åæA}ã»\textsf{åæB}ï¼ã®ã¨ãã¯ï¼ãã¡ãã®ã¯ã©ã¹ã¿ã§ä½¿ããã¦ãã
JFMç±æ¥ã®å¤ã ããç¨ããï¼ãã両è
ã§ä½¿ããã¦ããJFMãç°ãªã£ãå ´åã¯ï¼ä¸ã®[M]~3.ã¨åæ§ã®æ¹æ³ãç¨ãã¦èª¿æ´ããï¼
\end{enumerate}
\end{description}
\paragraph{ã左空ç½ãã®ç®åºã¨ããã«ä¼´ãè£æ£}
-次ã«ï¼ã左空ç½ãã«ãããéãç®åºããï¼
-\begin{description}
-\item[line-end~{[E]}]
-\textit{Nq}ã¨\textit{Np}ã®éã§è¡åå²ãèµ·ããã¨ãã«ï¼
-\textit{Nq}ã¨è¡æ«ã®éã«å
¥ã空ç½ã§ããï¼ã¶ãä¸ãçµã®çµçãªã©ã«ç¨ãããããã¨ãæå¾
ãã¦ããï¼
-\begin{enumerate}
-\item æ¢ã«ç®åºãããå³ç©ºç½ããã«ã¼ã³ã§ããå ´åã¯ï¼ã左空ç½ãã¯æ¿å
¥ãããªãï¼
-\item ãå³ç©ºç½ããglueãæªå®ç¾©ï¼é·ã0ã®glueã¨ã¿ãªãï¼ã®å ´åã¯ï¼ã左空ç½ãã¯
-\textit{Nq}ã¨ãæåã³ã¼ã\texttt{'lineend'}ã®æåãã¨ã®éã«å
¥ãã«ã¼ã³ã¨ãã¦ï¼JFMãã決å®ãããï¼
-\item 2.ã§æ±ºã¾ã£ãã左空ç½ãã®é·ãã0ã§ãªããã°ï¼ãã®åã ãå
ã»ã©ç®åºãããå³ç©ºç½ãã®èªç¶é·ãå¼ãï¼
-\end{enumerate}
-\end{description}
+ã左空ç½ãã¯éå»ã®ãã¼ã¸ã§ã³ã§ã¯å®ç¾©ãã¦ãããï¼ãã®ãã¼ã¸ã§ã³ã§ã¯æ¿å
¥ã¯ä¸åè¡ãããªãï¼æ©è½èªä½åé¤ãã¦ããï¼ï¼ãããï¼ä»æ§ã¯æµåçã§ããï¼å°æ¥å¾©æ´»ããå¯è½æ§ãããããï¼ããã¥ã¢ã«ä¸ã®è¨è¿°ã¯ä»ã®ã¨ãã極åå¤æ´ããªãï¼
\paragraph{ç¦åç¨ããã«ãã£ã®æ¿å
¥}
ã¾ãï¼
\[
- a:=(\text{\textit{Nq}{\footnotemark}ã®æåã«å¯¾ãã\Param{postbreakpenalty}ã®å¤})
-+(\text{\textit{Np}{\footnotemark}ã®æåã«å¯¾ãã\Param{prebreakpenalty}ã®å¤})
+ a:=(\text{\textit{Nq}{\footnotemark}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã®å¤})
++(\text{\textit{Np}{\footnotemark}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:prebp}{prebreakpenalty}}ã®å¤})
\]
ã¨ãã\footnotetext{å³å¯ã«ã¯ãããã$\mathit{Nq}.\mathit{tail}$ï¼$\mathit{Np}.\mathit{head}$ï¼}ï¼
ããã«ãã£ã¯é常$[-10000,10000]$ã®æ´æ°å¤ãã¨ãï¼ã¾ã$\pm 10000$ã¯æ£è² ã®ç¡é大ãæå³ãããã¨ã«ãªã£ã¦ãããï¼ãã®$a$ã®
@@ -4270,26 +4870,26 @@ $a$ã¯ç¦åå¦çç¨ã«\textit{Nq}ã¨\textit{Np}ã®éã«å ããããã¹ã
\label{tab-jfmglue}
\begin{center}
\small
-\begin{tabular}{>{\sf}c|cccccc}
+\begin{tabular}{c|cccccc}
\toprule
{\bf\textit{Np}}â&\sf åæA&\sf åæB&\sf 欧æ&\sf ç®±&\sf glue&\sf kern\\\midrule
-åæA&
+\sf åæA&
\gkf{E}{MâK}{PN}&
\gkf{---}{\OA âK}{PN}&
\gkf{---}{\OA âX}{PN}&
\gkf{---}{\OA}{PA}&
\gkf{---}{\OA}{PN}&
\gkf{---}{\OA}{PS}\\
-åæB&
+\sf åæB&
\gkf{E}{\OBâK}{PA}&
\gkf{---}{K}{PS}&
\gkf{---}{X}{PS}\\
-欧æ&
+\sf 欧æ&
\gkf{E}{\OB âX}{PA}&
\gkf{---}{X}{PS}\cr
-ç®±&\gkf{E}{\OB}{PA}\\
-glue&\gkf{E}{\OB}{PN}\\
-kern&\gkf{E}{\OB}{PS}\\
+\sf ç®±&\gkf{E}{\OB}{PA}\\
+\sf glue&\gkf{E}{\OB}{PN}\\
+\sf kern&\gkf{E}{\OB}{PS}\\
\bottomrule
\end{tabular}
\end{center}
@@ -4322,20 +4922,20 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\item \LuaTeX-ja adopts the method `\textsf{P-normal~[PN]}' to adjust the penalty between two clusters for \emph{kinsoku shori}.
%
%<*ja>
-\item \LuaTeX-ja ã¯2ã¤ã®ã¯ã©ã¹ã¿ã®éã®ç¦åå¦çç¨ã®ããã«ãã£ã調ç¯ããããã«ã\textsf{P-normal~[PN]}ãã®æ¹æ³ãæ¡ç¨ããï¼
+\item \LuaTeX-jaã¯2ã¤ã®ã¯ã©ã¹ã¿ã®éã®ç¦åå¦çç¨ã®ããã«ãã£ã調ç¯ããããã«ã\textsf{P-normal~[PN]}ãã®æ¹æ³ãæ¡ç¨ããï¼
%
\end{enumerate}
\end{quote}
\end{table}
\subsection{ãã®ä»ã®å ´å}
-æ¬ç¯ã®å
容ã¯è¡¨ \ref{tab-jfmglue} ã«ã¾ã¨ãã¦ããï¼
+æ¬ç¯ã®å
容ã¯è¡¨\ref{tab-jfmglue}ã«ã¾ã¨ãã¦ããï¼
\paragraph{åæAã¨æ¬§æã®é}
\textit{Nq}ã\textsf{åæA}ã§ï¼\textit{Np}ã\textsf{欧æ}ã®å ´åï¼JFMã°ã«ã¼æ¿å
¥å¦çã¯æ¬¡ã®ããã«ãã¦è¡ãããï¼
\begin{itemize}
\item ãå³ç©ºç½ãã«ã¤ãã¦ã¯ï¼ã¾ã以ä¸ã«è¿°ã¹ã\textsf{Boundary-B~[\OB]}ã«ãã空ç½ã決å®ãããã¨è©¦ã¿ãï¼
-ããã失æããå ´åã¯ï¼\textsf{\Param{xkanjiskip}~[X]}ã«ãã£ã¦å®ããï¼
+ããã失æããå ´åã¯ï¼\textsf{\Param{\hyperlink{fld:xks}{xkanjiskip}}~[X]}ã«ãã£ã¦å®ããï¼
\item ã左空ç½ãã«ã¤ãã¦ã¯ï¼æ¢ã«è¿°ã¹ã\textsf{line-end~[E]}ããã®ã¾ã¾æ¡ç¨ããï¼ããã«ä¼´ããå³ç©ºç½ãã®è£æ£ãåãï¼
\item ç¦åç¨ããã«ãã£ãï¼ä»¥åè¿°ã¹ã\textsf{P-normal~[PN]}ã¨åãã§ããï¼
\end{itemize}
@@ -4349,23 +4949,23 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\item ããã§ãªããã°ï¼
\textit{Nq}ã¨ãæåã³ã¼ãã{\tt'jcharbdd'}ã®æåãã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³ã¨ãã¦å®ã¾ãï¼
\end{enumerate}
-\item[\Param{xkanjiskip}~{[X]}]
+\item[\Param{\hyperlink{fld:xks}{xkanjiskip}}~{[X]}]
ãã®æ®µéã§ã¯ï¼\textsf{\Param{kanjiskip}~[K]}ã®ã¨ãã¨åãããã«ï¼
-\Param{xkanjiskip}ã®å¤ã以ä¸ã§å®ãï¼ããããå³ç©ºç½ãã¨ãã¦æ¡ç¨ããï¼
+以ä¸ã§å®ããéããå³ç©ºç½ãã¨ãã¦æ¡ç¨ããï¼
ãã®æ®µéã§\verb+\inhibitglue+ã¯å¹åãæããªãã®ãåãã§ããï¼
\begin{enumerate}
-\item 以ä¸ã®ããããã®å ´åã¯ï¼\Param{xkanjiskip}ã®æ¿å
¥ã¯ææ¢ãããï¼ãããï¼å®éã«ã¯è¡åå²ã許容ããããã«ï¼é·ã0ã®glueãæ¡ç¨ããï¼
+\item 以ä¸ã®ããããã®å ´åã¯ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯ææ¢ãããï¼ãããï¼å®éã«ã¯è¡åå²ã許容ããããã«ï¼é·ã0ã®glueãæ¡ç¨ããï¼
\begin{itemize}
\item 両ã¯ã©ã¹ã¿ã«ããã¦ï¼ãããã®ä¸èº«ã®æåã³ã¼ãã«å¯¾ãã\Param{autoxspacing}ãã©ã¡ã¿ãå
±ã«falseã§ããï¼
-\item \textit{Nq}ã®ä¸èº«ã®æåã³ã¼ãã«ã¤ãã¦ï¼ãç´å¾ã¸ã®\Param{xkanjiskip}ã®æ¿å
¥ããç¦æ¢ããã¦ãã
+\item \textit{Nq}ã®ä¸èº«ã®æåã³ã¼ãã«ã¤ãã¦ï¼ãç´å¾ã¸ã®\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ããç¦æ¢ããã¦ãã
ï¼ã¤ã¾ãï¼\Param{jaxspmode}~(or \Param{alxspmode})ãã©ã¡ã¿ã2以ä¸ï¼ï¼
-\item \textit{Np}ã®ä¸èº«ã®æåã³ã¼ãã«ã¤ãã¦ï¼ãç´åã¸ã®\Param{xkanjiskip}ã®æ¿å
¥ããç¦æ¢ããã¦ãã
+\item \textit{Np}ã®ä¸èº«ã®æåã³ã¼ãã«ã¤ãã¦ï¼ãç´åã¸ã®\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ããç¦æ¢ããã¦ãã
ï¼ã¤ã¾ãï¼\Param{jaxspmode}~(or \Param{alxspmode})ãã©ã¡ã¿ãå¶æ°ï¼ï¼
\end{itemize}
-\item ã¦ã¼ã¶å´ããè¦ã\Param{xkanjiskip}ãã©ã¡ã¿ã®èªç¶é·ã${\tt \char92 maxdimen}=(2^{30}-1)\,{\rm sp}$ã§
-ãªããã°ï¼\Param{xkanjiskip}ãã©ã¡ã¿ã®å¤ãæã¤glueãæ¡ç¨ããï¼
+\item ã¦ã¼ã¶å´ããè¦ã\Param{\hyperlink{fld:xks}{xkanjiskip}}ãã©ã¡ã¿ã®èªç¶é·ã${\tt \char92 maxdimen}=(2^{30}-1)\,{\rm sp}$ã§
+ãªããã°ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ãã©ã¡ã¿ã®å¤ãæã¤glueãæ¡ç¨ããï¼
\item 2.ã§ãªãå ´åã¯ï¼\textit{Nq}, \textit{Np}ï¼\textsf{åæA}/\textsf{åæB}ãªã®ã¯çæ¹ã ãï¼
-ã§ä½¿ããã¦ããJFMã«æå®ããã¦ãã\Param{xkanjiskip}ã®å¤ãç¨ããï¼
+ã§ä½¿ããã¦ããJFMã«æå®ããã¦ãã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®å¤ãç¨ããï¼
\end{enumerate}
\end{description}
@@ -4374,7 +4974,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\textsf{åæA}ã®ã¯ã©ã¹ã¿ãéã«ãªãã®ã§ï¼\textsf{Boundary-A~[\OA]}ã®é¨åãå¤ããã ãï¼
\begin{itemize}
\item ãå³ç©ºç½ãã«ã¤ãã¦ã¯ï¼ã¾ã以ä¸ã«è¿°ã¹ã\textsf{Boundary-A~[\OA]}ã«ãã空ç½ã決å®ãããã¨è©¦ã¿ãï¼
-ããã失æããå ´åã¯ï¼\textsf{\Param{xkanjiskip}~[X]}ã«ãã£ã¦å®ããï¼
+ããã失æããå ´åã¯ï¼\textsf{\Param{\hyperlink{fld:xks}{xkanjiskip}}~[X]}ã«ãã£ã¦å®ããï¼
\item \textit{Nq}ãåæã§ãªãã®ã§ï¼ã左空ç½ãã¯ç®åºãããªãï¼
\item ç¦åç¨ããã«ãã£ã¯ï¼ä»¥åè¿°ã¹ã\textsf{P-normal~[PN]}ã¨åãã§ããï¼
\end{itemize}
@@ -4401,9 +5001,9 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\item ã左空ç½ãã«ã¤ãã¦ã¯ï¼æ¢ã«è¿°ã¹ã\textsf{line-end~[E]}ã®ç®åºæ¹æ³ããã®ã¾ã¾æ¡ç¨ããï¼ããã«ä¼´ããå³ç©ºç½ãã®è£æ£ãåãï¼
\item ç¦åç¨ããã«ãã£ã®å¦çã¯ï¼å¾ãã®ã¯ã©ã¹ã¿\textit{Np}ã®ç¨®é¡ã«ãã£ã¦ç°ãªãï¼
ãªãï¼$\mathit{Np}.\mathit{head}$ã¯ç¡æå³ã§ããããï¼
-ã$\mathit{Np}.\mathit{head}$ã«å¯¾ãã\Param{prebreakpenalty}ã®å¤ãã¯0ã¨ã¿ãªãããï¼è¨ãæããã°ï¼
+ã$\mathit{Np}.\mathit{head}$ã«å¯¾ãã\Param{\hyperlink{fld:prebp}{prebreakpenalty}}ã®å¤ãã¯0ã¨ã¿ãªãããï¼è¨ãæããã°ï¼
\[
- a:=(\text{\textit{Nq}{\footnotemark}ã®æåã«å¯¾ãã\Param{postbreakpenalty}ã®å¤}).
+ a:=(\text{\textit{Nq}{\footnotemark}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã®å¤}).
\]
\begin{description}
\item[ç®±] \textit{Np}ã\textsf{ç®±}ã§ãã£ãå ´åã¯ï¼ä¸¡ã¯ã©ã¹ã¿ã®éã§ã®è¡åå²ã¯
@@ -4447,7 +5047,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\overbrace{\Node{glyph}{`ã'}}^{\mathit{Nq}}\longrightarrow \overbrace{\Node{glue}{1\,pt}}^{\mathit{Np}}
\]
ã®ãããªç¶æ³ãèããï¼
-ãã®ã¨ãï¼$a$ï¼å³ã¡ãããã®\Param{postbreakpenalty}ããããªãå¤ã§ãã£ã¦ãï¼
+ãã®ã¨ãï¼$a$ï¼å³ã¡ãããã®\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ããããªãå¤ã§ãã£ã¦ãï¼
ãã®2ã¯ã©ã¹ã¿éã¯æçµçã«
\begin{equation}
\overbrace{\Node{glyph}{`ã'}}^{\mathit{Nq}}\longrightarrow
@@ -4455,7 +5055,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\label{eq-gref}
\end{equation}
ã¨ãªãï¼$a$åã®ããã«ãã£ã¯æ¿å
¥ãããªããã¨ã«æ³¨æãã¦æ¬²ããï¼
-\Param{postbreakpenalty}ã¯ï¼$a$ã¯ï¼æ®ã©ã®å ´åãéè² ã®å¤ã¨èãããï¼ãã®ãããªå ´åã§ã¯
+\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã¯ï¼$a$ã¯ï¼æ®ã©ã®å ´åãéè² ã®å¤ã¨èãããï¼ãã®ãããªå ´åã§ã¯
\eqref{eq-gref}ã¨
\[
\overbrace{\Node{glyph}{`ã'}}^{\mathit{Nq}}\longrightarrow
@@ -4476,7 +5076,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\item ç¦åç¨ããã«ãã£ã®å¦çã¯ï¼\textit{Nq}ã®ç¨®é¡ã«ãã£ã¦ç°ãªãï¼
$\mathit{Nq}.\mathit{tail}$ã¯ç¡æå³ãªã®ã§ï¼
\[
- a:=(\text{\textit{Np}{\footnotemark}ã®æåã«å¯¾ãã\Param{prebreakpenalty}ã®å¤}).
+ a:=(\text{\textit{Np}{\footnotemark}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:prebp}{prebreakpenalty}}ã®å¤}).
\]
\begin{description}
\item[ç®±] \textit{Nq}ã\textsf{ç®±}ã®å ´åã¯ï¼\textsf{P-allow~[PA]}ãç¨ããï¼
@@ -4501,7 +5101,7 @@ $\mathit{Nq}.\mathit{tail}$ã¯ç¡æå³ãªã®ã§ï¼
\item \textsf{åæB}ã¨ç®±ã»ã°ã«ã¼ã»ã«ã¼ã³ãé£æ¥ããã¨ãï¼ã©ã¡ããåãã¯é¢ä¿ãªãï¼ï¼éã«JFMã°ã«ã¼ã»ããã«ãã£ã®æ¿å
¥ã¯ä¸åããªãï¼
\item \textsf{åæB}ã¨\textsf{åæB}ï¼ã¾ã\textsf{åæB}ã¨\textsf{欧æ}ã¨ãé£æ¥ããæã¯ï¼ç¦åç¨ããã«ãã£æ¿å
¥å¦çã¯
\textsf{P-suppress~[PS]}ãç¨ããããï¼
-\item \textsf{åæB}ã®æåã«å¯¾ãã\Param{prebreakpenalty},~\Param{postbreakpenalty}ã®å¤ã¯ä½¿ãããï¼0ã¨ãã¦è¨ç®ãããï¼
+\item \textsf{åæB}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:prebp}{prebreakpenalty}},~\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã®å¤ã¯ä½¿ãããï¼0ã¨ãã¦è¨ç®ãããï¼
\end{itemize}
@@ -4513,18 +5113,758 @@ $\mathit{Nq}.\mathit{tail}$ã¯ç¡æå³ãªã®ã§ï¼
\end{LTXexample}
\begin{itemize}
\item 1è¡ç®ã®\verb+\inhibitglue+ã¯\textsf{Boundary-B~[\OB]}ã®å¦çã®ã¿ãææ¢ããã®ã§ï¼ããªãªãã¨ãAãã®éã«ã¯
-\Param{xkanjiskip}ï¼ååã¢ãï¼ãå
¥ããã¨ã«æ³¨æï¼
+\Param{\hyperlink{fld:xks}{xkanjiskip}}ï¼ååã¢ãï¼ãå
¥ããã¨ã«æ³¨æï¼
\item 2è¡ç®ã®ããªãªãã¨ãAãã®éã«ããã¦ã¯ï¼åè
ã\textsf{åæB}ã¨ãªãï¼æ°´å¹³ããã¯ã¹ã®ä¸èº«ã®æ«å°¾ã¨ãã¦ç»å ´ãã¦ããããï¼ã®ã§ï¼
-ãããã\textsf{Boundary-B~[\OB]}ã®å¦çã¯è¡ãããªãï¼ãã£ã¦ï¼\Param{xkanjiskip}ãå
¥ããã¨ã¨ãªãï¼
+ãããã\textsf{Boundary-B~[\OB]}ã®å¦çã¯è¡ãããªãï¼ãã£ã¦ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ãå
¥ããã¨ã¨ãªãï¼
\item 3è¡ç®ã§ã¯ï¼ããªãªãã®å±ããã¯ã©ã¹ã¿ã¯\textsf{åæA}ã§ããï¼ããã«ãã£ã¦ï¼
ããªãªãã¨ãAãã®éã«ã¯\textsf{Boundary-B~[\OB]}ç±æ¥ã®åè§ã¢ããå
¥ããã¨ã«ãªãï¼
\end{itemize}
+%
+
+%\section{Patch for the \Pkg{listings} package}
+%\section{\Pkg{listings} ããã±ã¼ã¸ã¸ã®å¯¾å¿}
+
+%<*en>
+It is well-known that the \Pkg{listings} package outputs weird results
+for Japanese input.
+The \Pkg{listings} package makes most of letters active and assigns
+output command for each letter \cite{listings}.
+But Japanese characters are not included in these activated letters.
+For \pTeX{} series, there is no method to make Japanese characters active;
+a patch \Pkg{jlisting.sty} \cite{jlisting} resolves the problem forcibly.
+%
+%<*ja>
+\Pkg{listings} ããã±ã¼ã¸ãï¼ãã®ã¾ã¾ã§ã¯æ¥æ¬èªãã¾ã¨ãã«åºåã§ããªããã¨
+ã¯ããç¥ããã¦ããï¼ãã¡ãã¨æ´å½¢ãã¦åºåããããã«ï¼\Pkg{listings}ããã±ã¼
+ã¸ã¯å
é¨ã§ãã»ã¨ãã©ã®æåããã¢ã¯ãã£ãã«ãï¼åæåã«å¯¾ãã¦ãã®æåã®åº
+åå½ä»¤ãå²ãå½ã¦ã¦ãã \cite{listings}ï¼
+ãããï¼ããã§ã¢ã¯ãã£ãã«ããæåã®ä¸ã«ï¼åææ
+åããªãããã§ããï¼\pTeX ç³»åã§ã¯ï¼åææåãã¢ã¯ãã£ãã«ããææ³ããªãï¼
+\Pkg{jlisting.sty} ã¨ããããã\cite{jlisting}ãç¨ãããã¨ã§ç¡çãã解決ãã¦ããï¼
+%
+
+%<*en>
+In \LuaTeX-ja, the problem is resolved by using \verb+process_input_buffer+ callback.
+The callback function inserts the output command before each letter above U+0080.
+This method can omits the process to make all Japanese characters active
+(most of the activated characters are not used in many cases).
+%
+%<*ja>
+\LuaTeX-jaã§ã¯ï¼\verb+process_input_buffer+ ã³ã¼ã«ããã¯ãå©ç¨ãããã¨ã§ï¼
+ãåè¡ã«åºç¾ããU+0080以éã®æåã«å¯¾ãã¦ï¼ãããã®åºåå½ä»¤ãåç½®ãããã¨ããæ¹æ³ãã¨ã£ã¦ããï¼
+ããã«ããï¼ï¼å
¥åã«ã¯ä½¿ç¨ããã¦ããªããããããªãï¼åææåãããã¹ã¦ã¢ã¯ãã£ãåããæéããªãï¼
+è¦éããè¯ãå®è£
ã«ãªã£ã¦ããï¼
+%
+
+%<*en>
+If \Pkg{listings.sty} and \LuaTeX-ja were loaded,
+then the patch \Pkg{lltjp-listings.sty} is loaded automatically at \verb+\begin{document}+.
+%
+%<*ja>
+\LuaTeX-ja ã§å©ç¨ããã \Pkg{listings} ããã±ã¼ã¸ã¸ã®ããã \Pkg{lltjp-listings.sty} ã¯ï¼
+\Pkg{listings.sty} ã¨\LuaTeX-jaãèªã¿è¾¼ãã§ããã°ï¼
+\verb+\begin{document}+ ã®ç®æã«ããã¦èªåçã«èªã¿è¾¼ã¾ããã®ã§ï¼é常ã¯ãã¾ã
+æèããå¿
è¦ã¯ãªãï¼
+%
+
+%\paragraph{Class of characters}
+%\paragraph{æå種}
+
+%Roughly speaking, the \Pkg{listings} package processes input as follows:
+%\Pkg{listings} ããã±ã¼ã¸ã®å
é¨ã§ã¯ï¼å¤§éæã«è¨ãã¨
+\begin{enumerate}
+%\item Collects \textit{letters} and \textit{digits}, which can be used for the name of identifiers.
+%\item èå¥åã¨ãã¦ä½¿ããæå (``letter'',~``digit'') ãã¡ãéããï¼
+%\item When reading an \textit{other}, outputs the collected character string (with modification, if needed).
+%\item letterã§ãdigitã§ããªãæåãç¾ããæã«ï¼åéããæååãï¼å¿
è¦ãªã修飾ãã¦ï¼åºåããï¼
+%\item Collects \textit{others}.
+%\item ä»åº¦ã¯éã«ï¼letterã§ãªãæåãã¡ãletterãç¾ããã¾ã§éããï¼
+%\item When reading a \textit{letter} or a \textit{digit}, outputs the collected character string.
+%\item letterãåºç¾ãããéããæååãåºåããï¼
+%\item Turns back to 1.
+%\item 1.ã«æ»ãï¼
+\end{enumerate}
+%<*en>
+By the above process, line breaks inside of an identifier are blocked.
+A flag \verb+\lst@ifletter+ indicates whether the previous character can be used
+for the name of identifiers or not.
+%
+%<*ja>
+ã¨ããå¦çãè¡ããã¦ããï¼ããã«ããï¼èå¥åã®éä¸ã§ã¯è¡åå²ãè¡ãããªãããã«ãªã£ã¦ããï¼
+ç´åã®æåãèå¥åã¨ãã¦ä½¿ãããå¦ã㯠\verb+\lst@ifletter+ ã¨ãããã©ã°ã«æ ¼ç´ããã¦ããï¼
+%
+
+%<*en>
+For Japanese characters, line breaks are permitted on both sides
+except for parentheses, dashes, etc.
+To process Japanese characters,
+The pacth \Pkg{lltjp-listings.sty} introduces a new flag \verb+\lst@ifkanji+, which indicates
+whether the previous character is Japanese character or not.
+For illustration, we introduce the following classes of character:
+%
+%<*ja>
+ãã¦ï¼æ¥æ¬èªã®å¦çã§ããï¼æ®ã©ã®åææåã®åå¾ã§ã¯è¡åå²ãå¯è½ã§ãããï¼ãã®ä¸æ¹ã§
+æ¬å¼§é¡ãé³å¼ããªã©ã§ã¯ç¦åå¦çãå¿
è¦ãªãã¨ããï¼\Pkg{lltjp-listings.sty} ã§ã¯ï¼
+ç´åãåææåã§ãããã示ããã©ã° \verb+\lst@ifkanji+ ãæ°ãã«å°å
¥ããï¼
+以éï¼èª¬æã®ããã«ä»¥ä¸ã®ããã«æåãåé¡ããï¼
+%
+\begin{center}
+\small
+\begin{tabular}{lccccc}
+\toprule
+&Letter&Other&Kanji&Open&Close\\\midrule
+\verb+\lst@ifletter+&T&F&T&F&T\\
+\verb+\lst@ifkanji+&F&F&T&T&F\\
+%Meaning&identifier char&other alphabet&most of Japanese char&open paren&close paren\\
+%æå³&èå¥åä¸ã®æå&ãã®ä»æ¬§ææå&æ®ã©ã®åææå&éãæ¬å¼§é¡&éãæ¬å¼§é¡\\
+\bottomrule
+\end{tabular}
+\end{center}
+%<*en>
+Note that \textit{digits} in the \Pkg{listings} package can be Letter or
+Other according to circumstances.
+%
+%<*ja>
+ãªãï¼æ¬æ¥ã®\Pkg{listings} ããã±ã¼ã¸ã§ã®åé¡``digit''ã¯ï¼
+åºç¾ç¶æ³ã«ãã£ã¦ï¼ä¸ã®è¡¨ã®Letterã¨Otherã®ã©ã¡ãã«ããªãããï¼
+ã¾ãï¼Kanjiã¨Close㯠\verb+\lst@ifletter+ 㨠\verb+\lst@ifkanji+ ã®å¤ãä¸è´ãã¦ãããï¼
+ããã¯ééãã§ã¯ãªãï¼
+%
+
+%<*en>
+For example, let us consider the case an Open comes after a Letter.
+Since an Open represents Japanese open parenthesis,
+it is preferred to be permitted to insert line break after the Letter.
+Therefore, the collected character string is output in this case.
+%
+%<*ja>
+ä¾ãã°ï¼Letterã®ç´å¾ã«Openãæ¥ãå ´åãèããï¼
+æå種Openã¯åæéãæ¬å¼§é¡ãæ³å®ãã¦ããã®ã§ï¼Letterã®ç´å¾ã§ã¯è¡åå²ãå¯è½ã§ãããã¨ãæã¾ããï¼
+ãã®ããï¼ãã®å ´åã§ã¯ï¼ãã§ã«åéããã¦ããæååãåºåãããã¨ã§è¡åå²ã許容ããããã«ããï¼
+%
+
+%<*en>
+The following table summarizes $5\times 5=25$ cases:
+%
+%<*ja>
+åãããã«ï¼$5\times 5=25$éãå
¨ã¦ã«ã¤ãã¦æ¸ãã¨ï¼æ¬¡ã®ããã«ãªãï¼
+%
+\begin{center}
+\small
+\begin{tabular}{llccccc}
+\toprule
+%<*en>
+&&\multicolumn{4}{c}{Next}\\\cmidrule(lr){3-7}
+&&\hbox to 4em{\hss Letter\hss}&\hbox to 4em{\hss Other\hss}
+&\hbox to 4em{\hss Kanji\hss}&\hbox to 4em{\hss Open\hss}&Close\\\midrule
+&Letter&collects&\multicolumn{3}{c}{\hrulefill \ outputs\ \hrulefill}&collects\\
+&Other&outputs&collects&\multicolumn{2}{c}{\hrulefill \ outputs\ \hrulefill}&collects\\
+Prev&Kanji&\multicolumn{4}{c}{\hrulefill \ outputs\ \hrulefill}&collects\\
+&Open&\multicolumn{5}{c}{\hrulefill \ collects\ \hrulefill}\\
+&Close&\multicolumn{4}{c}{\hrulefill \ outputs\ \hrulefill}&collects\\
+%
+%<*ja>
+&&\multicolumn{4}{c}{å¾ãå´ã®æå}\\\cmidrule(lr){3-7}
+&&\hbox to 4em{\hss Letter\hss}&\hbox to 4em{\hss Other\hss}
+&\hbox to 4em{\hss Kanji\hss}&\hbox to 4em{\hss Open\hss}&Close\\\midrule
+ç´&Letter&åé&\multicolumn{3}{c}{\hrulefill \ åºå\ \hrulefill}&åé\\
+å&Other&åºå&åé&\multicolumn{2}{c}{\hrulefill \ åºå\ \hrulefill}&åé\\
+æ&Kanji&\multicolumn{4}{c}{\hrulefill \ åºå\ \hrulefill}&åé\\
+å&Open&\multicolumn{5}{c}{\hrulefill \ åé\ \hrulefill}\\
+種&Close&\multicolumn{4}{c}{\hrulefill \ åºå\ \hrulefill}&åé\\
+%
+\bottomrule
+\end{tabular}
+\end{center}
+%In the above table,
+%ä¸ã®è¡¨ã«ããã¦ï¼
+\begin{itemize}
+%\item ``outputs'' means to output the collected character string (i.e., line breaking is permitted there).
+%\item ãåºåãã¯ï¼ããã¾ã§ã«éããæååãåºåï¼âããã§è¡åå²å¯è½ï¼ãæå³ããï¼
+
+%\item ``collects'' means to append the next character to the collected character string (i.e., line breaking is prohibited there).
+%\item ãåéãã¯ï¼å¾å´ã®æåãï¼ç¾å¨åéãããæååã«è¿½å ï¼è¡åå²ä¸å¯ï¼ãæå³ããï¼
+\end{itemize}
+
+%\paragraph{Classification of characters}
+%\paragraph{åææåæ±ãã¨ãªãæå}
+
+%<*en>
+Characters are classified according to \Param{jacharrange} parameter (see Section \ref{ssec-setrange}):
+%
+%<*ja>
+\Pkg{listings} ããã±ã¼ã¸ã«ããã¦åææåã¨æ±ããã
+ï¼åã«è¿°ã¹ãKanji, Openï¼ãããã¯ãéãæ¬å¼§é¡ãåé¡ï¼ãå¦ãã¯ï¼
+é常ã®\textbf{JAchar}/\textbf{Alchar}ã®ç¯å²ã®è¨å®ï¼\Param{jacharrange} ãã©ã¡ã¼ã¿ï¼\ref{ssec-setrange}ç¯ãåç
§ï¼ã«å¾ã£ã¦è¡ãããï¼
+%
+\begin{itemize}
+
+%\item \textbf{ALchars} above U+0080 are Letter.
+%\item ï¼U+0080以éã®ï¼\textbf{ALchar}ã¯ï¼ãã¹ã¦Letteræ±ãã§ããï¼
+
+%\item \textbf{JAchars} are classified in the order as follows:
+%\item ï¼U+0080以éã®ï¼\textbf{JAchar}ã«ã¤ãã¦ã¯ï¼ä»¥ä¸ã®é åºã«å¾ã£ã¦æå種ã決ããï¼
+\begin{enumerate}
+%\item Characters whose \Param{\hyperlink{fld:prebp}{prebreakpenalty}} is greater than or equal to 0 are Open.
+%\item \Param{\hyperlink{fld:prebp}{prebreakpenalty}}ã0以ä¸ã®æåã¯Openæ±ãã§ããï¼
+
+%\item Characters whose \Param{\hyperlink{fld:postbp}{postbreakpenalty}} is greater than or equal to 0 are Close.
+%\item \Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã0以ä¸ã®æåã¯Closeæ±ãã§ããï¼
+
+%\item Characters that don't satisfy the above two conditions are Kanji.
+%\item ä¸ã®2æ¡ä»¶ã®ã©ã¡ãã«ãå½ã¦ã¯ã¾ããªãã£ãæåã¯ï¼Kanjiæ±ãã§ããï¼
+\end{enumerate}
+\end{itemize}
+
+%<*en>
+The width of halfwidth kana (U+FF61--U+FF9F) is same as the width of \textbf{ALchar};
+the width of the other \textbf{JAchars} is double the width of \textbf{ALchar}.
+%
+%<*ja>
+ãªãï¼åè§ã«ã(U+FF61--U+FF9F)以å¤ã®\textbf{JAchar}ã¯æ¬§ææå2æååã®å¹
ãã¨ããã®ã¨ã¿ãªãããï¼
+åè§ã«ãã¯æ¬§ææå1æååã®å¹
ã¨ãªãï¼
+%
+
+%<*en>
+The classification process is executed every time a character appears in
+listing environments.
+%
+%<*ja>
+ãããã®æå種決å®ã¯ï¼å®éã« \texttt{lstlisting} ç°å¢ãªã©ã®å
é¨ã§æåãåºã¦ãããã³ã«è¡ãããï¼
+%
+
+%<*ja>
+\section{åæã®è¡é·è£æ£æ¹æ³}
+\label{sec-adjspec}
+\texttt{luatexja-adjust.sty} ã§æä¾ãããåªå
é ä½ä»ãã®è¡é·èª¿æ´ã®è©³ç´°ãè¿°
+ã¹ãï¼å¤§ã¾ãã«è¿°ã¹ãã¨ï¼æ¬¡ã®ããã«ãªãï¼
+\begin{itemize}
+\item é常ã®\TeX ã®è¡åå²æ¹æ³ã«å¾ã£ã¦ï¼æ®µè½ãè¡åå²ããï¼ãã®æ®µéã§ã¯ï¼è¡
+ é·ã«å端ãåºãå ´åï¼ãã®å端åã¯\Param{\hyperlink{fld:xks}{xkanjiskip}}ï¼
+ \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ï¼JFMã°ã«ã¼ã®å
¨ã¦ã§ï¼åªå
é ä½ãªãï¼è² æ
ãããï¼
+\item ãã®å¾ï¼\texttt{post\_linebreak\_filter} callbackã使ãï¼\textbf{段
+ è½ä¸ã®åè¡ãã¨ã«}ï¼è¡æ«æåã®ä½ç½®ã調æ´ãããï¼åªå
度ä»ãã®è¡é·èª¿æ´
+ ãå®ç¾ããããã«ã°ã«ã¼ã®ä¼¸ç¸®åº¦ã調æ´ããï¼
+\texttt{luatexja-adjust.sty} ã®ä½ç¨ã¯ï¼ãã®callbackã追å ããã ãã§ããï¼
+ ãã®ç« ã®æ®ãã§ã¯callbackã§ã®å¦çã«ã¤ãã¦è§£èª¬ããï¼
+\end{itemize}
+
+\paragraph{æºåï¼åè¨ä¼¸ç¸®éã®è¨ç®}
+ã°ã«ã¼ã®ä¼¸ç¸®åº¦ï¼\texttt{plus} ã \texttt{minus} ã§æå®ããã¦ããå¤ï¼ã«ã¯ï¼
+æéå¤ã®ä»ã«ï¼\texttt{fi}ï¼\texttt{fil}ï¼\texttt{fill}ï¼\texttt{filll}ã¨
+ãã4ã¤ã®ç¡é大ã¬ãã«ï¼å¾ãã®æ¹ã»ã©å¤§ããï¼ãããï¼è¡ã®èª¿æ´ã«
+\texttt{fi} ãªã©ã®\textbf{ç¡é大ã¬ãã«ã®ä¼¸ç¸®åº¦ãç¨ãããã¦ããå ´åã¯ï¼ã
+ã®è¡ã«å¯¾ãã¦ã®å¦çãä¸æ¢}ããï¼
+
+ãã£ã¦ï¼ä»¥éï¼åé¡ã«ãã¦ããè¡ã®è¡é·èª¿æ´ã¯ä¼¸ç¸®åº¦ãæéé·ã®ã°ã«ã¼ãç¨ãã¦
+è¡ããã¦ããã¨ãã¦è¯ãï¼ã¾ãï¼æ®µè½ä¸ã®è¡ä¸ã®ã°ã«ã¼ã
+\begin{itemize}
+\item ä¸ã®ã©ãã«ã該å½ããªãã°ã«ã¼
+\item JFMã°ã«ã¼ï¼åªå
度å¥ã«ã¾ã¨ããããï¼
+\item å欧æé空ç½(\Param{\hyperlink{fld:xks}{xkanjiskip}})
+\item åæé空ç½(\Param{\hyperlink{fld:kanjiskip}{kanjiskip}})
+\end{itemize}
+ã®$1+1+5+1=8$ã¤ã«é¡å¥ãï¼ããããã®ç¨®å¥ãã¨ã«è¨±å®¹ããã¦ãã伸縮度ã®åè¨ãè¨ç®ããï¼
+ã¾ãï¼è¡é·ã¨èªç¶é·ã¨ã®å·®ã®çµ¶å¯¾å¤ãè¨ç®ãï¼ããã\textit{total}ã¨ããï¼
+
+\subsection{è¡æ«æåã®ä½ç½®èª¿æ´}
+ã¾ãï¼è¡æ«ãæåã¯ã©ã¹$n$ã®\textbf{JAchar}ã§ãã£ãå ´åï¼
+ãããåãããã¨ã«ãã£ã¦ï¼\textbf{JAglue} ãè² æ
ãã調æ´éãå°ãªããããã¨ããï¼
+ãã®è¡æ«æåã®å·¦å³ã®ç§»åå¯è½éã¯ï¼JFMä¸ã«ããæåã¯ã©ã¹$n$ã®å®ç¾©ã®
+\texttt{end\_stretch},~\texttt{end\_shrink}ãã£ã¼ã«ãã«å
¨è§åä½ã®å¤ã¨ãã¦è¨è¿°ããã¦ããï¼
+
+ä¾ãã°ï¼è¡æ«æåãå¥ç¹ãããã§ããï¼ããã§ç¨ãããã¦ããJFMä¸ã«
+\begin{verbatim}
+ [2] = {
+ chars = { 'ã', ... }, width = 0.5, ...,
+ end_stretch = 0.5, end_shrink = 0.5,
+ },
+\end{verbatim}
+ã¨ããæå®ããã£ãå ´åï¼ãã®è¡æ«ã®å¥ç¹ã¯
+\begin{itemize}
+\item é常ã®\TeX ã®è¡åå²å¦çã§ãåè§ä»¥ä¸ã®è©°ãããè¡ããã¦ããå ´åï¼
+ãã®åã®è¡ä¸ã®\textbf{JAglue}ã®è² æ
ã軽æ¸ããããï¼
+è¡æ«ã®å¥ç¹ãåè§ã ãå³ã«ç§»åããï¼ã¶ãä¸ãçµãè¡ãï¼ï¼
+\item é常ã®\TeX ã®è¡åå²å¦çã§ãåè§ä»¥ä¸ã®ç©ºãããè¡ããã¦ããå ´åï¼
+éã«è¡æ«å¥ç¹ãåè§å·¦ã«ç§»åãããï¼è¦ãç®çã«å
¨è§åãã¨ãªãï¼ï¼
+\item 以ä¸ã®ã©ã¡ãã§ããªãå ´åï¼è¡æ«å¥ç¹ã®ä½ç½®èª¿æ´ã¯è¡ããªãï¼
+\end{itemize}
+ã¨ãªãï¼
+
+è¡æ«æåã移åããå ´åï¼ãã®åã ã\textit{total}ã®å¤ãå¼ãã¦ããï¼
+
+\subsection{ã°ã«ã¼ã®èª¿æ´}
+\textit{total}ã®åã ããï¼è¡ä¸ã®ã°ã«ã¼ã®ä¼¸ç¸®åº¦ã«å¿ãã¦è² æ
ããããã¨ã«ãªãï¼
+â¦â¦
+
+%
+
+
-\section{psft}
\begin{thebibliography}{99}
\addcontentsline{toc}{section}{\refname}
\bibitem{texbytopic}
Victor Eijkhout, \emph{\TeX\ by Topic, A \TeX nician's Reference}, Addison-Wesley, 1992.
+\bibitem{listings} C.\ Heinz, B.\ Moses. The \textsf{Listings} Package.
+\bibitem{jlisting} Thor Watanabe. Listings\ -\ MyTeXpert. \newblock
+\url{http://mytexpert.sourceforge.jp/index.php?Listings}
+\bibitem{min10} ä¹é¨å³å·±ï¼min10ãã©ã³ãã«ã¤ãã¦ï¼
+\url{http://argent.shinshu-u.ac.jp/~otobe/tex/files/min10.pdf}
+\bibitem{jlreq} W3C Japanese Layout Task Force~(ed), Requirements for Japanese Text Layout (W3C Working Group Note), 2011, 2012. \newblock
+\url{http://www.w3.org/TR/jlreq/}%
+% \\æ¥æ¬èªè¨³ã®æ¸ç±çï¼W3Cæ¥æ¬èªçµçã¿ã¹ã¯ãã©ã¼ã¹ï¼ç·¨ï¼ï¼ãW3Cæè¡ãã¼ã æ¥æ¬èªçµçå¦çã®è¦ä»¶ãï¼æ±äº¬é»æ©å¤§å¦åºçå±ï¼2012ï¼
+\bibitem{x4051} æ¥æ¬å·¥æ¥è¦æ ¼(Japanese Industrial Standard) JIS~X~4051,
+æ¥æ¬èªææ¸ã®çµçæ¹æ³(Formatting rules for Japanese documents), 1993, 1995, 2004.
\end{thebibliography}
+
+\newpage
+\appendix
+\batchmode
+%\section{The category code of non-kanji characters defined in JIS~X~0213}
+%\section{\LuaTeX-jaã«ãããJIS~X~0213éæ¼¢åã®catcode}
+
+%<*en>
+In these tables, the default catcode (\LuaTeX-ja) and kcatcode ((u)\pTeX) of non-kanji
+characters defined in JIS~X~0213 from row 1 to row 13 is summarized.
+Each character is printed as follows:
+%
+%<*ja>
+ããã§ã¯ï¼JIS~X~0213ã®éæ¼¢åé¨åï¼ç¬¬1åºã第13åºï¼ã®ãã¡ï¼
+ã©ã®æåã(u)\pTeX ã\LuaTeX-jaã§å¶å¾¡ç¶´å
ã«ä½¿ç¨å¯è½ãã表ã«ãã¦ã¾ã¨ããï¼
+åæåã¯
+%
+\begin{center}
+\tt\fboxsep=1pt\fbox{\hbox to \zw{\gtfamily ã\hss}}\,\scriptsize LUP
+\end{center}
+%<*ja>
+ã®ããã«è¡¨ç¤ºãã¦ããï¼åæåã¯æ¬¡ã®æå³ãæã£ã¦ããï¼
+ãã®è¡¨ã®çæã¯ï¼JIS~X~0208ã®ç¯å²å
ã®æåã«ã¤ãã¦ã¯\verb+\jis+å½ä»¤ã使ã£ã¦è¡ãªã£ã¦ããï¼
+%
+%<*en>
+The tables are generated by using \verb+\jis+ command for characters included in
+JIS~X~0208.
+Each character in the tables means:
+%
+\begin{itemize}
+%<*en>
+\item The background of a character regarded as \textbf{ALchar} in \LuaTeX-ja
+ is colored light blue.
+%
+%<*ja>
+\item èæ¯ãèãéãå¡ããã¦ããæåã¯ï¼
+\LuaTeX-ja ã®æ¨æºã§\textbf{ALchar}ã¨ãã¦èªèããã¦ããæåã§ããï¼
+%
+
+%<*en>
+\item The first letter {\tt L} means that the character is available for
+ the name of a control sequence in \XeTeX{} and \LuaTeX-ja (its catcode is 11).
+%
+%<*ja>
+\item 1æåç®ã® {\tt L} ã¯ï¼\XeTeX ã\LuaTeX-jaã«ããã¦ãã®æåãå¶å¾¡ç¶´å
ã«
+使ç¨å¯è½ï¼catcodeã11ï¼ã§ãããã¨ã表ãã¦ããï¼
+%
+
+%<*en>
+\item The second letter {\tt U} means that the character is available for
+ the name of a control sequence in \upTeX{} (its kcatcode is 16 or 17).
+ \upTeX{} regards these characters as Japanese character.
+%
+%<*ja>
+\item 2æåç®ã®{\tt U} ã¯ï¼\upTeX ã«ããã¦ãã®æåãå¶å¾¡ç¶´å
ã«ä½¿ç¨å¯è½ï¼kcatcodeã¯16,~17ï¼ã§ãããã¨ã
+表ãã¦ããï¼ãã®ç¯å²å
ã§ã¯ï¼\upTeX ã¯æ¨æºã§å
¨æåãåææåã¨ãã¦æ±ãããã§ããï¼
+%
+
+%<*en>
+\item The third letter {\tt P} means that the character is available for
+ the name of a control sequence in \pTeX{} (its kcatcode is 16 or 17).
+%
+%<*ja>
+\item 3æåç®ã® {\tt P} ã¯ï¼\pTeX ã«ããã¦ãã®æåãå¶å¾¡ç¶´å
ã«ä½¿ç¨å¯è½ï¼kcatcodeã¯16,~17ï¼ã§ãããã¨ã
+表ãã¦ããï¼
+%
+
+%<*en>
+\item If the third letter is {\tt -} (or the character is printed in red),
+ the character is not included in JIS~X~0208.
+ Therefore, you can consider the character is not available in \pTeX.
+%
+%<*ja>
+\item 3æåç®ã{\tt -}ã¨ãªã£ã¦ãããã®ï¼æ¬ä½ã®æåã赤身ããã£ã¦ããï¼ã¯ï¼
+JIS~X~0208ã«ãªããã\pTeX ã§ã¯ä½¿ç¨ä¸è½ã¨èãã¦è¯ããã®ã§ããï¼
+%
+
+%\item The kana for Japanese syllable beginning with a voiced velar nasal
+% consonant.kana in rows 4~and~5 are omitted.
+%\item 第4åºã¨ç¬¬5åºã«ããï¼é¼»æ¿é³ã®ä»®åã«ã¤ãã¦ã¯çç¥ããï¼
+\end{itemize}
+
+
+\makeatletter
+\def\uplist{% upTeX 㧠\kcatcode!=18 ãªãã®
+ \@elt {8486}\@elt {8491}\@elt {8492}\@elt {8499}\@elt {8500}\@elt {8501}%
+ \@elt {8502}\@elt {8504}\@elt {8508}\@elt {9008}\@elt {9009}\@elt {9010}%
+ \@elt {9011}\@elt {9012}\@elt {9013}\@elt {9014}\@elt {9015}\@elt {9016}%
+ \@elt {9017}\@elt {9025}\@elt {9026}\@elt {9027}\@elt {9028}\@elt {9029}%
+ \@elt {9030}\@elt {9031}\@elt {9032}\@elt {9033}\@elt {9034}\@elt {9035}%
+ \@elt {9036}\@elt {9037}\@elt {9038}\@elt {9039}\@elt {9040}\@elt {9041}%
+ \@elt {9042}\@elt {9043}\@elt {9044}\@elt {9045}\@elt {9046}\@elt {9047}%
+ \@elt {9048}\@elt {9049}\@elt {9050}\@elt {9057}\@elt {9058}\@elt {9059}%
+ \@elt {9060}\@elt {9061}\@elt {9062}\@elt {9063}\@elt {9064}\@elt {9065}%
+ \@elt {9066}\@elt {9067}\@elt {9068}\@elt {9069}\@elt {9070}\@elt {9071}%
+ \@elt {9072}\@elt {9073}\@elt {9074}\@elt {9075}\@elt {9076}\@elt {9077}%
+ \@elt {9078}\@elt {9079}\@elt {9080}\@elt {9081}\@elt {9082}\@elt {9249}%
+ \@elt {9250}\@elt {9251}\@elt {9252}\@elt {9253}\@elt {9254}\@elt {9255}%
+ \@elt {9256}\@elt {9257}\@elt {9258}\@elt {9259}\@elt {9260}\@elt {9261}%
+ \@elt {9262}\@elt {9263}\@elt {9264}\@elt {9265}\@elt {9266}\@elt {9267}%
+ \@elt {9268}\@elt {9269}\@elt {9270}\@elt {9271}\@elt {9272}\@elt {9273}%
+ \@elt {9274}\@elt {9275}\@elt {9276}\@elt {9277}\@elt {9278}\@elt {9279}%
+ \@elt {9280}\@elt {9281}\@elt {9282}\@elt {9283}\@elt {9284}\@elt {9285}%
+ \@elt {9286}\@elt {9287}\@elt {9288}\@elt {9289}\@elt {9290}\@elt {9291}%
+ \@elt {9292}\@elt {9293}\@elt {9294}\@elt {9295}\@elt {9296}\@elt {9297}%
+ \@elt {9298}\@elt {9299}\@elt {9300}\@elt {9301}\@elt {9302}\@elt {9303}%
+ \@elt {9304}\@elt {9305}\@elt {9306}\@elt {9307}\@elt {9308}\@elt {9309}%
+ \@elt {9310}\@elt {9311}\@elt {9312}\@elt {9313}\@elt {9314}\@elt {9315}%
+ \@elt {9316}\@elt {9317}\@elt {9318}\@elt {9319}\@elt {9320}\@elt {9321}%
+ \@elt {9322}\@elt {9323}\@elt {9324}\@elt {9325}\@elt {9326}\@elt {9327}%
+ \@elt {9328}\@elt {9329}\@elt {9330}\@elt {9331}\@elt {9505}\@elt {9506}%
+ \@elt {9507}\@elt {9508}\@elt {9509}\@elt {9510}\@elt {9511}\@elt {9512}%
+ \@elt {9513}\@elt {9514}\@elt {9515}\@elt {9516}\@elt {9517}\@elt {9518}%
+ \@elt {9519}\@elt {9520}\@elt {9521}\@elt {9522}\@elt {9523}\@elt {9524}%
+ \@elt {9525}\@elt {9526}\@elt {9527}\@elt {9528}\@elt {9529}\@elt {9530}%
+ \@elt {9531}\@elt {9532}\@elt {9533}\@elt {9534}\@elt {9535}\@elt {9536}%
+ \@elt {9537}\@elt {9538}\@elt {9539}\@elt {9540}\@elt {9541}\@elt {9542}%
+ \@elt {9543}\@elt {9544}\@elt {9545}\@elt {9546}\@elt {9547}\@elt {9548}%
+ \@elt {9549}\@elt {9550}\@elt {9551}\@elt {9552}\@elt {9553}\@elt {9554}%
+ \@elt {9555}\@elt {9556}\@elt {9557}\@elt {9558}\@elt {9559}\@elt {9560}%
+ \@elt {9561}\@elt {9562}\@elt {9563}\@elt {9564}\@elt {9565}\@elt {9566}%
+ \@elt {9567}\@elt {9568}\@elt {9569}\@elt {9570}\@elt {9571}\@elt {9572}%
+ \@elt {9573}\@elt {9574}\@elt {9575}\@elt {9576}\@elt {9577}\@elt {9578}%
+ \@elt {9579}\@elt {9580}\@elt {9581}\@elt {9582}\@elt {9583}\@elt {9584}%
+ \@elt {9585}\@elt {9586}\@elt {9587}\@elt {9588}\@elt {9589}\@elt {9590}%
+ % ãããã JIS X 0213
+ \@elt {8760}\@elt {8761}\@elt {9083}\@elt {9332}\@elt {9333}\@elt {9334}%
+ \@elt {9335}\@elt {9336}\@elt {9337}\@elt {9338}\@elt {9339}\@elt {9591}%
+ \@elt {9592}\@elt {9593}\@elt {9594}\@elt {9595}\@elt {9596}\@elt {9597}%
+ \@elt {9598}\@elt {9838}\@elt {9839}\@elt {9840}\@elt {9841}\@elt {9842}%
+ \@elt {9843}\@elt {9844}\@elt {9845}\@elt {9846}\@elt {9847}\@elt {9848}%
+ \@elt {9849}\@elt {9850}\@elt {9851}\@elt {9852}\@elt {9853}\@elt {9854}%
+ \@elt {10098}\@elt {10099}\@elt {10100}\@elt {10101}%
+}
+\def\plist{% pTeX 㧠\kcatcode!=18 ãªãã®
+ \@elt {8993}\@elt {8994}\@elt {8995}\@elt {8996}\@elt {8997}\@elt {8998}%
+ \@elt {8999}\@elt {9000}\@elt {9001}\@elt {9002}\@elt {9003}\@elt {9004}%
+ \@elt {9005}\@elt {9006}\@elt {9007}\@elt {9008}\@elt {9009}\@elt {9010}%
+ \@elt {9011}\@elt {9012}\@elt {9013}\@elt {9014}\@elt {9015}\@elt {9016}%
+ \@elt {9017}\@elt {9018}\@elt {9019}\@elt {9020}\@elt {9021}\@elt {9022}%
+ \@elt {9023}\@elt {9024}\@elt {9025}\@elt {9026}\@elt {9027}\@elt {9028}%
+ \@elt {9029}\@elt {9030}\@elt {9031}\@elt {9032}\@elt {9033}\@elt {9034}%
+ \@elt {9035}\@elt {9036}\@elt {9037}\@elt {9038}\@elt {9039}\@elt {9040}%
+ \@elt {9041}\@elt {9042}\@elt {9043}\@elt {9044}\@elt {9045}\@elt {9046}%
+ \@elt {9047}\@elt {9048}\@elt {9049}\@elt {9050}\@elt {9051}\@elt {9052}%
+ \@elt {9053}\@elt {9054}\@elt {9055}\@elt {9056}\@elt {9057}\@elt {9058}%
+ \@elt {9059}\@elt {9060}\@elt {9061}\@elt {9062}\@elt {9063}\@elt {9064}%
+ \@elt {9065}\@elt {9066}\@elt {9067}\@elt {9068}\@elt {9069}\@elt {9070}%
+ \@elt {9071}\@elt {9072}\@elt {9073}\@elt {9074}\@elt {9075}\@elt {9076}%
+ \@elt {9077}\@elt {9078}\@elt {9079}\@elt {9080}\@elt {9081}\@elt {9082}%
+ \@elt {9083}\@elt {9084}\@elt {9085}\@elt {9086}\@elt {9249}\@elt {9250}%
+ \@elt {9251}\@elt {9252}\@elt {9253}\@elt {9254}\@elt {9255}\@elt {9256}%
+ \@elt {9257}\@elt {9258}\@elt {9259}\@elt {9260}\@elt {9261}\@elt {9262}%
+ \@elt {9263}\@elt {9264}\@elt {9265}\@elt {9266}\@elt {9267}\@elt {9268}%
+ \@elt {9269}\@elt {9270}\@elt {9271}\@elt {9272}\@elt {9273}\@elt {9274}%
+ \@elt {9275}\@elt {9276}\@elt {9277}\@elt {9278}\@elt {9279}\@elt {9280}%
+ \@elt {9281}\@elt {9282}\@elt {9283}\@elt {9284}\@elt {9285}\@elt {9286}%
+ \@elt {9287}\@elt {9288}\@elt {9289}\@elt {9290}\@elt {9291}\@elt {9292}%
+ \@elt {9293}\@elt {9294}\@elt {9295}\@elt {9296}\@elt {9297}\@elt {9298}%
+ \@elt {9299}\@elt {9300}\@elt {9301}\@elt {9302}\@elt {9303}\@elt {9304}%
+ \@elt {9305}\@elt {9306}\@elt {9307}\@elt {9308}\@elt {9309}\@elt {9310}%
+ \@elt {9311}\@elt {9312}\@elt {9313}\@elt {9314}\@elt {9315}\@elt {9316}%
+ \@elt {9317}\@elt {9318}\@elt {9319}\@elt {9320}\@elt {9321}\@elt {9322}%
+ \@elt {9323}\@elt {9324}\@elt {9325}\@elt {9326}\@elt {9327}\@elt {9328}%
+ \@elt {9329}\@elt {9330}\@elt {9331}\@elt {9332}\@elt {9333}\@elt {9334}%
+ \@elt {9335}\@elt {9336}\@elt {9337}\@elt {9338}\@elt {9339}\@elt {9340}%
+ \@elt {9341}\@elt {9342}\@elt {9505}\@elt {9506}\@elt {9507}\@elt {9508}%
+ \@elt {9509}\@elt {9510}\@elt {9511}\@elt {9512}\@elt {9513}\@elt {9514}%
+ \@elt {9515}\@elt {9516}\@elt {9517}\@elt {9518}\@elt {9519}\@elt {9520}%
+ \@elt {9521}\@elt {9522}\@elt {9523}\@elt {9524}\@elt {9525}\@elt {9526}%
+ \@elt {9527}\@elt {9528}\@elt {9529}\@elt {9530}\@elt {9531}\@elt {9532}%
+ \@elt {9533}\@elt {9534}\@elt {9535}\@elt {9536}\@elt {9537}\@elt {9538}%
+ \@elt {9539}\@elt {9540}\@elt {9541}\@elt {9542}\@elt {9543}\@elt {9544}%
+ \@elt {9545}\@elt {9546}\@elt {9547}\@elt {9548}\@elt {9549}\@elt {9550}%
+ \@elt {9551}\@elt {9552}\@elt {9553}\@elt {9554}\@elt {9555}\@elt {9556}%
+ \@elt {9557}\@elt {9558}\@elt {9559}\@elt {9560}\@elt {9561}\@elt {9562}%
+ \@elt {9563}\@elt {9564}\@elt {9565}\@elt {9566}\@elt {9567}\@elt {9568}%
+ \@elt {9569}\@elt {9570}\@elt {9571}\@elt {9572}\@elt {9573}\@elt {9574}%
+ \@elt {9575}\@elt {9576}\@elt {9577}\@elt {9578}\@elt {9579}\@elt {9580}%
+ \@elt {9581}\@elt {9582}\@elt {9583}\@elt {9584}\@elt {9585}\@elt {9586}%
+ \@elt {9587}\@elt {9588}\@elt {9589}\@elt {9590}\@elt {9591}\@elt {9592}%
+ \@elt {9593}\@elt {9594}\@elt {9595}\@elt {9596}\@elt {9597}\@elt {9598}%
+ \@elt {9761}\@elt {9762}\@elt {9763}\@elt {9764}\@elt {9765}\@elt {9766}%
+ \@elt {9767}\@elt {9768}\@elt {9769}\@elt {9770}\@elt {9771}\@elt {9772}%
+ \@elt {9773}\@elt {9774}\@elt {9775}\@elt {9776}\@elt {9777}\@elt {9778}%
+ \@elt {9779}\@elt {9780}\@elt {9781}\@elt {9782}\@elt {9783}\@elt {9784}%
+ \@elt {9785}\@elt {9786}\@elt {9787}\@elt {9788}\@elt {9789}\@elt {9790}%
+ \@elt {9791}\@elt {9792}\@elt {9793}\@elt {9794}\@elt {9795}\@elt {9796}%
+ \@elt {9797}\@elt {9798}\@elt {9799}\@elt {9800}\@elt {9801}\@elt {9802}%
+ \@elt {9803}\@elt {9804}\@elt {9805}\@elt {9806}\@elt {9807}\@elt {9808}%
+ \@elt {9809}\@elt {9810}\@elt {9811}\@elt {9812}\@elt {9813}\@elt {9814}%
+ \@elt {9815}\@elt {9816}\@elt {9817}\@elt {9818}\@elt {9819}\@elt {9820}%
+ \@elt {9821}\@elt {9822}\@elt {9823}\@elt {9824}\@elt {9825}\@elt {9826}%
+ \@elt {9827}\@elt {9828}\@elt {9829}\@elt {9830}\@elt {9831}\@elt {9832}%
+ \@elt {9833}\@elt {9834}\@elt {9835}\@elt {9836}\@elt {9837}\@elt {9838}%
+ \@elt {9839}\@elt {9840}\@elt {9841}\@elt {9842}\@elt {9843}\@elt {9844}%
+ \@elt {9845}\@elt {9846}\@elt {9847}\@elt {9848}\@elt {9849}\@elt {9850}%
+ \@elt {9851}\@elt {9852}\@elt {9853}\@elt {9854}%
+}
+
+\def\jlist{% JIS X 0213 ã ãã«ãããã®
+\@elt{"222F}{"FF07}\@elt{"2230}{"FF02}\@elt{"2231}{"FF0D}\@elt{"2232}{"FF5E}%
+\@elt{"2233}{"3033}\@elt{"2234}{"3034}\@elt{"2235}{"3035}\@elt{"2236}{"303B}%
+\@elt{"2237}{"303C}\@elt{"2238}{"30FF}\@elt{"2239}{"309F}\@elt{"2242}{"2284}%
+\@elt{"2243}{"2285}\@elt{"2244}{"228A}\@elt{"2245}{"228B}\@elt{"2246}{"2209}%
+\@elt{"2247}{"2205}\@elt{"2248}{"2305}\@elt{"2249}{"2306}\@elt{"2251}{"2295}%
+\@elt{"2252}{"2296}\@elt{"2253}{"2297}\@elt{"2254}{"2225}\@elt{"2255}{"2226}%
+\@elt{"2256}{"FF5F}\@elt{"2257}{"FF60}\@elt{"2258}{"3018}\@elt{"2259}{"3019}%
+\@elt{"225A}{"3016}\@elt{"225B}{"3017}\@elt{"226B}{"2262}\@elt{"226C}{"2243}%
+\@elt{"226D}{"2245}\@elt{"226E}{"2248}\@elt{"226F}{"2276}\@elt{"2270}{"2277}%
+\@elt{"2271}{"2194}\@elt{"227A}{"266E}\@elt{"227B}{"266B}\@elt{"227C}{"266C}%
+\@elt{"227D}{"2669}\@elt{"2321}{"25B7}\@elt{"2322}{"25B6}\@elt{"2323}{"25C1}%
+\@elt{"2324}{"25C0}\@elt{"2325}{"2197}\@elt{"2326}{"2198}\@elt{"2327}{"2196}%
+\@elt{"2328}{"2199}\@elt{"2329}{"21C4}\@elt{"232A}{"21E8}\@elt{"232B}{"21E6}%
+\@elt{"232C}{"21E7}\@elt{"232D}{"21E9}\@elt{"232E}{"2934}\@elt{"232F}{"2935}%
+\@elt{"233A}{"29BF}\@elt{"233B}{"25C9}\@elt{"233C}{"303D}\@elt{"233D}{"FE46}%
+\@elt{"233E}{"FE45}\@elt{"233F}{"25E6}\@elt{"2340}{"2022}\@elt{"235B}{"2213}%
+\@elt{"235C}{"2135}\@elt{"235D}{"210F}\@elt{"235E}{"33CB}\@elt{"235F}{"2113}%
+\@elt{"2360}{"2127}\@elt{"237B}{"30A0}\@elt{"237C}{"2013}\@elt{"237D}{"29FA}%
+\@elt{"237E}{"29FB}\@elt{"2474}{"3094}\@elt{"2475}{"3095}\@elt{"2476}{"3096}%
+\@elt{"2639}{"2664}\@elt{"263A}{"2660}\@elt{"263B}{"2662}%
+\@elt{"263C}{"2666}\@elt{"263D}{"2661}\@elt{"263E}{"2665}\@elt{"263F}{"2667}%
+\@elt{"2640}{"2663}\@elt{"2659}{"03C2}\@elt{"265A}{"24F5}\@elt{"265B}{"24F6}%
+\@elt{"265C}{"24F7}\@elt{"265D}{"24F8}\@elt{"265E}{"24F9}\@elt{"265F}{"24FA}%
+\@elt{"2660}{"24FB}\@elt{"2661}{"24FC}\@elt{"2662}{"24FD}\@elt{"2663}{"24FE}%
+\@elt{"2664}{"2616}\@elt{"2665}{"2617}\@elt{"2666}{"3020}\@elt{"2667}{"260E}%
+\@elt{"2668}{"2600}\@elt{"2669}{"2601}\@elt{"266A}{"2602}\@elt{"266B}{"2603}%
+\@elt{"266C}{"2668}\@elt{"266D}{"25B1}\@elt{"266E}{"31F0}\@elt{"266F}{"31F1}%
+\@elt{"2670}{"31F2}\@elt{"2671}{"31F3}\@elt{"2672}{"31F4}\@elt{"2673}{"31F5}%
+\@elt{"2674}{"31F6}\@elt{"2675}{"31F7}\@elt{"2676}{"31F8}\@elt{"2677}{"31F9}%
+\@elt{"2678}{"31F7}\@elt{"2679}{"31FA}\@elt{"267A}{"31FB}\@elt{"267B}{"31FC}%
+\@elt{"267C}{"31FD}\@elt{"267D}{"31FE}\@elt{"267E}{"31FF}\@elt{"2742}{"23BE}%
+\@elt{"2743}{"23BF}\@elt{"2744}{"23C0}\@elt{"2745}{"23C1}\@elt{"2746}{"23C2}%
+\@elt{"2747}{"23C3}\@elt{"2748}{"23C4}\@elt{"2749}{"23C5}\@elt{"274A}{"23C6}%
+\@elt{"274B}{"23C7}\@elt{"274C}{"23C8}\@elt{"274D}{"23C9}\@elt{"274E}{"23CA}%
+\@elt{"274F}{"23CB}\@elt{"2750}{"23CC}\@elt{"2772}{"30F7}\@elt{"2773}{"30F8}%
+\@elt{"2774}{"30F9}\@elt{"2775}{"30FA}\@elt{"2776}{"22DA}\@elt{"2777}{"22DB}%
+\@elt{"2778}{"2153}\@elt{"2779}{"2154}\@elt{"277A}{"2155}\@elt{"277B}{"2713}%
+\@elt{"277C}{"2318}\@elt{"277D}{"2423}\@elt{"277E}{"23CE}\@elt{"2841}{"3251}%
+\@elt{"2842}{"3252}\@elt{"2843}{"3253}\@elt{"2844}{"3254}\@elt{"2845}{"3255}%
+\@elt{"2846}{"3256}\@elt{"2847}{"3257}\@elt{"2848}{"3258}\@elt{"2849}{"3259}%
+\@elt{"284A}{"325A}\@elt{"284B}{"325B}\@elt{"284C}{"325C}\@elt{"284D}{"325D}%
+\@elt{"284E}{"325E}\@elt{"284F}{"325F}\@elt{"2850}{"32B1}\@elt{"2851}{"32B2}%
+\@elt{"2852}{"32B3}\@elt{"2853}{"32B4}\@elt{"2854}{"32B5}\@elt{"2855}{"32B6}%
+\@elt{"2856}{"32B7}\@elt{"2857}{"32B8}\@elt{"2858}{"32B9}\@elt{"2859}{"32BA}%
+\@elt{"285A}{"32BB}\@elt{"285B}{"32BC}\@elt{"285C}{"32BD}\@elt{"285D}{"32BE}%
+\@elt{"285E}{"32BF}\@elt{"2867}{"25D0}\@elt{"2868}{"25D1}\@elt{"2869}{"25D2}%
+\@elt{"286A}{"25D3}\@elt{"286B}{"203C}\@elt{"286C}{"2047}\@elt{"286D}{"2048}%
+\@elt{"286E}{"2049}\@elt{"286F}{"01CD}\@elt{"2870}{"01CE}\@elt{"2871}{"01D0}%
+\@elt{"2872}{"1E3E}\@elt{"2873}{"1E3F}\@elt{"2874}{"01F8}\@elt{"2875}{"01F9}%
+\@elt{"2876}{"01D1}\@elt{"2877}{"01D2}\@elt{"2878}{"01D4}\@elt{"2879}{"01D6}%
+\@elt{"287A}{"01D8}\@elt{"287B}{"01DA}\@elt{"287C}{"01DC}\@elt{"2921}{"20AC}%
+\@elt{"2922}{"00A0}\@elt{"2923}{"00A1}\@elt{"2924}{"00A4}\@elt{"2925}{"00A6}%
+\@elt{"2926}{"00A9}\@elt{"2927}{"00AA}\@elt{"2928}{"00AB}\@elt{"2929}{"00AD}%
+\@elt{"292A}{"00AE}\@elt{"292B}{"00AF}\@elt{"292C}{"00B2}\@elt{"292D}{"00B3}%
+\@elt{"292E}{"00B7}\@elt{"292F}{"00B8}\@elt{"2930}{"00B9}\@elt{"2931}{"00BA}%
+\@elt{"2932}{"00BB}\@elt{"2933}{"00BC}\@elt{"2934}{"00BD}\@elt{"2935}{"00BE}%
+\@elt{"2936}{"00BF}\@elt{"2937}{"00C0}\@elt{"2938}{"00C1}\@elt{"2939}{"00C2}%
+\@elt{"293A}{"00C3}\@elt{"293B}{"00C4}\@elt{"293C}{"00C5}\@elt{"293D}{"00C6}%
+\@elt{"293E}{"00C7}\@elt{"293F}{"00C8}\@elt{"2940}{"00C9}\@elt{"2941}{"00CA}%
+\@elt{"2942}{"00CB}\@elt{"2943}{"00CC}\@elt{"2944}{"00CD}\@elt{"2945}{"00CE}%
+\@elt{"2946}{"00CF}\@elt{"2947}{"00D0}\@elt{"2948}{"00D1}\@elt{"2949}{"00D2}%
+\@elt{"294A}{"00D3}\@elt{"294B}{"00D4}\@elt{"294C}{"00D5}\@elt{"294D}{"00D6}%
+\@elt{"294E}{"00D8}\@elt{"294F}{"00D9}\@elt{"2950}{"00DA}\@elt{"2951}{"00DB}%
+\@elt{"2952}{"00DC}\@elt{"2953}{"00DD}\@elt{"2954}{"00DE}\@elt{"2955}{"00DF}%
+\@elt{"2956}{"00E0}\@elt{"2957}{"00E1}\@elt{"2958}{"00E2}\@elt{"2959}{"00E3}%
+\@elt{"295A}{"00E4}\@elt{"295B}{"00E5}\@elt{"295C}{"00E6}\@elt{"295D}{"00E7}%
+\@elt{"295E}{"00E8}\@elt{"295F}{"00E9}\@elt{"2960}{"00EA}\@elt{"2961}{"00EB}%
+\@elt{"2962}{"00EC}\@elt{"2963}{"00ED}\@elt{"2964}{"00EE}\@elt{"2965}{"00EF}%
+\@elt{"2966}{"00F0}\@elt{"2967}{"00F1}\@elt{"2968}{"00F2}\@elt{"2969}{"00F3}%
+\@elt{"296A}{"00F4}\@elt{"296B}{"00F5}\@elt{"296C}{"00F6}\@elt{"296D}{"00F8}%
+\@elt{"296E}{"00F9}\@elt{"296F}{"00FA}\@elt{"2970}{"00FB}\@elt{"2971}{"00FC}%
+\@elt{"2972}{"00FD}\@elt{"2973}{"00FE}\@elt{"2974}{"00FF}\@elt{"2975}{"0100}%
+\@elt{"2976}{"012A}\@elt{"2977}{"016A}\@elt{"2978}{"0112}\@elt{"2979}{"014C}%
+\@elt{"297A}{"0101}\@elt{"297B}{"012B}\@elt{"297C}{"016B}\@elt{"297D}{"0113}%
+\@elt{"297E}{"014D}\@elt{"2A21}{"0104}\@elt{"2A22}{"02D8}\@elt{"2A23}{"0141}%
+\@elt{"2A24}{"013D}\@elt{"2A25}{"015A}\@elt{"2A26}{"0160}\@elt{"2A27}{"015E}%
+\@elt{"2A28}{"0164}\@elt{"2A29}{"0179}\@elt{"2A2A}{"017D}\@elt{"2A2B}{"017B}%
+\@elt{"2A2C}{"0105}\@elt{"2A2D}{"02DB}\@elt{"2A2E}{"0142}\@elt{"2A2F}{"013E}%
+\@elt{"2A30}{"015B}\@elt{"2A31}{"02C7}\@elt{"2A32}{"0161}\@elt{"2A33}{"015F}%
+\@elt{"2A34}{"0165}\@elt{"2A35}{"017A}\@elt{"2A36}{"02DD}\@elt{"2A37}{"017E}%
+\@elt{"2A38}{"017C}\@elt{"2A39}{"0154}\@elt{"2A3A}{"0102}\@elt{"2A3B}{"0139}%
+\@elt{"2A3C}{"0106}\@elt{"2A3D}{"010C}\@elt{"2A3E}{"0118}\@elt{"2A3F}{"011A}%
+\@elt{"2A40}{"010E}\@elt{"2A41}{"0143}\@elt{"2A42}{"0147}\@elt{"2A43}{"0150}%
+\@elt{"2A44}{"0158}\@elt{"2A45}{"016E}\@elt{"2A46}{"0170}\@elt{"2A47}{"0162}%
+\@elt{"2A48}{"0155}\@elt{"2A49}{"0103}\@elt{"2A4A}{"013A}\@elt{"2A4B}{"0107}%
+\@elt{"2A4C}{"010D}\@elt{"2A4D}{"0119}\@elt{"2A4E}{"011B}\@elt{"2A4F}{"010F}%
+\@elt{"2A50}{"0111}\@elt{"2A51}{"0144}\@elt{"2A52}{"0148}\@elt{"2A53}{"0151}%
+\@elt{"2A54}{"0159}\@elt{"2A55}{"016F}\@elt{"2A56}{"0171}\@elt{"2A57}{"0163}%
+\@elt{"2A58}{"02D9}\@elt{"2A59}{"0108}\@elt{"2A5A}{"011C}\@elt{"2A5B}{"0124}%
+\@elt{"2A5C}{"0134}\@elt{"2A5D}{"015C}\@elt{"2A5E}{"016C}\@elt{"2A5F}{"0109}%
+\@elt{"2A60}{"011D}\@elt{"2A61}{"0125}\@elt{"2A62}{"0135}\@elt{"2A63}{"015D}%
+\@elt{"2A64}{"016D}\@elt{"2A65}{"0271}\@elt{"2A66}{"028B}\@elt{"2A67}{"027E}%
+\@elt{"2A68}{"0283}\@elt{"2A69}{"0292}\@elt{"2A6A}{"026C}\@elt{"2A6B}{"026E}%
+\@elt{"2A6C}{"0279}\@elt{"2A6D}{"0288}\@elt{"2A6E}{"0256}\@elt{"2A6F}{"0273}%
+\@elt{"2A70}{"027D}\@elt{"2A71}{"0282}\@elt{"2A72}{"0290}\@elt{"2A73}{"027B}%
+\@elt{"2A74}{"026D}\@elt{"2A75}{"025F}\@elt{"2A76}{"0272}\@elt{"2A77}{"029D}%
+\@elt{"2A78}{"028E}\@elt{"2A79}{"0261}\@elt{"2A7A}{"014B}\@elt{"2A7B}{"0270}%
+\@elt{"2A7C}{"0281}\@elt{"2A7D}{"0127}\@elt{"2A7E}{"0295}\@elt{"2B21}{"0294}%
+\@elt{"2B22}{"0266}\@elt{"2B23}{"0298}\@elt{"2B24}{"01C2}\@elt{"2B25}{"0253}%
+\@elt{"2B26}{"0257}\@elt{"2B27}{"0284}\@elt{"2B28}{"0260}\@elt{"2B29}{"0193}%
+\@elt{"2B2A}{"0153}\@elt{"2B2B}{"0152}\@elt{"2B2C}{"0268}\@elt{"2B2D}{"0289}%
+\@elt{"2B2E}{"0258}\@elt{"2B2F}{"0275}\@elt{"2B30}{"0259}\@elt{"2B31}{"025C}%
+\@elt{"2B32}{"025E}\@elt{"2B33}{"0250}\@elt{"2B34}{"026F}\@elt{"2B35}{"028A}%
+\@elt{"2B36}{"0264}\@elt{"2B37}{"028C}\@elt{"2B38}{"0254}\@elt{"2B39}{"0251}%
+\@elt{"2B3A}{"0252}\@elt{"2B3B}{"028D}\@elt{"2B3C}{"0265}\@elt{"2B3D}{"02A2}%
+\@elt{"2B3E}{"02A1}\@elt{"2B3F}{"0255}\@elt{"2B40}{"0291}\@elt{"2B41}{"027A}%
+\@elt{"2B42}{"0267}\@elt{"2B43}{"025A}\@elt{"2B44}{"00E6}\@elt{"2B45}{"01FD}%
+\@elt{"2B46}{"1F70}\@elt{"2B47}{"1F71}\@elt{"2B48}{"0254}\@elt{"2B49}{"0254}%
+\@elt{"2B4A}{"028C}\@elt{"2B4B}{"028C}\@elt{"2B4C}{"0259}\@elt{"2B4D}{"0259}%
+\@elt{"2B4E}{"025A}\@elt{"2B4F}{"025A}\@elt{"2B50}{"1F72}\@elt{"2B51}{"1F73}%
+\@elt{"2B52}{"0361}\@elt{"2B53}{"02C8}\@elt{"2B54}{"02CC}\@elt{"2B55}{"02D0}%
+\@elt{"2B56}{"02D1}\@elt{"2B57}{"0306}\@elt{"2B58}{"203F}\@elt{"2B59}{"030B}%
+\@elt{"2B5A}{"0301}\@elt{"2B5B}{"0304}\@elt{"2B5C}{"0300}\@elt{"2B5D}{"030F}%
+\@elt{"2B5E}{"030C}\@elt{"2B5F}{"0302}\@elt{"2B60}{"02E5}\@elt{"2B61}{"02E6}%
+\@elt{"2B62}{"02E7}\@elt{"2B63}{"02E8}\@elt{"2B64}{"02E9}\@elt{"2B65}{"02E9}%
+\@elt{"2B66}{"02E5}\@elt{"2B67}{"0325}\@elt{"2B68}{"032C}\@elt{"2B69}{"0339}%
+\@elt{"2B6A}{"031C}\@elt{"2B6B}{"031F}\@elt{"2B6C}{"0320}\@elt{"2B6D}{"0308}%
+\@elt{"2B6E}{"033D}\@elt{"2B6F}{"0329}\@elt{"2B70}{"032F}\@elt{"2B71}{"02DE}%
+\@elt{"2B72}{"0324}\@elt{"2B73}{"0330}\@elt{"2B74}{"033C}\@elt{"2B75}{"0334}%
+\@elt{"2B76}{"031D}\@elt{"2B77}{"031E}\@elt{"2B78}{"0318}\@elt{"2B79}{"0319}%
+\@elt{"2B7A}{"032A}\@elt{"2B7B}{"033A}\@elt{"2B7C}{"033B}\@elt{"2B7D}{"0303}%
+\@elt{"2B7E}{"031A}\@elt{"2C21}{"2776}\@elt{"2C22}{"2777}\@elt{"2C23}{"2778}%
+\@elt{"2C24}{"2779}\@elt{"2C25}{"277A}\@elt{"2C26}{"277B}\@elt{"2C27}{"277C}%
+\@elt{"2C28}{"277D}\@elt{"2C29}{"277E}\@elt{"2C2A}{"277F}\@elt{"2C2B}{"24EB}%
+\@elt{"2C2C}{"24EC}\@elt{"2C2D}{"24ED}\@elt{"2C2E}{"24EE}\@elt{"2C2F}{"24EF}%
+\@elt{"2C30}{"24F0}\@elt{"2C31}{"24F1}\@elt{"2C32}{"24F2}\@elt{"2C33}{"24F3}%
+\@elt{"2C34}{"24F4}\@elt{"2C35}{"2170}\@elt{"2C36}{"2171}\@elt{"2C37}{"2172}%
+\@elt{"2C38}{"2173}\@elt{"2C39}{"2174}\@elt{"2C3A}{"2175}\@elt{"2C3B}{"2176}%
+\@elt{"2C3C}{"2177}\@elt{"2C3D}{"2178}\@elt{"2C3E}{"2179}\@elt{"2C3F}{"217A}%
+\@elt{"2C40}{"217B}\@elt{"2C41}{"24D0}\@elt{"2C42}{"24D1}\@elt{"2C43}{"24D2}%
+\@elt{"2C44}{"24D3}\@elt{"2C45}{"24D4}\@elt{"2C46}{"24D5}\@elt{"2C47}{"24D6}%
+\@elt{"2C48}{"24D7}\@elt{"2C49}{"24D8}\@elt{"2C4A}{"24D9}\@elt{"2C4B}{"24DA}%
+\@elt{"2C4C}{"24DB}\@elt{"2C4D}{"24DC}\@elt{"2C4E}{"24DD}\@elt{"2C4F}{"24DE}%
+\@elt{"2C50}{"24DF}\@elt{"2C51}{"24E0}\@elt{"2C52}{"24E1}\@elt{"2C53}{"24E2}%
+\@elt{"2C54}{"24E3}\@elt{"2C55}{"24E4}\@elt{"2C56}{"24E5}\@elt{"2C57}{"24E6}%
+\@elt{"2C58}{"24E7}\@elt{"2C59}{"24E8}\@elt{"2C5A}{"24E9}\@elt{"2C5B}{"32D0}%
+\@elt{"2C5C}{"32D1}\@elt{"2C5D}{"32D2}\@elt{"2C5E}{"32D3}\@elt{"2C5F}{"32D4}%
+\@elt{"2C60}{"32D5}\@elt{"2C61}{"32D6}\@elt{"2C62}{"32D7}\@elt{"2C63}{"32D8}%
+\@elt{"2C64}{"32D9}\@elt{"2C65}{"32DA}\@elt{"2C66}{"32DB}\@elt{"2C67}{"32DC}%
+\@elt{"2C68}{"32DD}\@elt{"2C69}{"32DE}\@elt{"2C6A}{"32DF}\@elt{"2C6B}{"32E0}%
+\@elt{"2C6C}{"32E1}\@elt{"2C6D}{"32E2}\@elt{"2C6E}{"32E3}\@elt{"2C6F}{"32FA}%
+\@elt{"2C70}{"32E9}\@elt{"2C71}{"32E5}\@elt{"2C72}{"32ED}\@elt{"2C73}{"32EC}%
+\@elt{"2C7D}{"2051}\@elt{"2C7E}{"2042}\@elt{"2D21}{"2460}\@elt{"2D22}{"2461}%
+\@elt{"2D23}{"2462}\@elt{"2D24}{"2463}\@elt{"2D25}{"2464}\@elt{"2D26}{"2465}%
+\@elt{"2D27}{"2466}\@elt{"2D28}{"2467}\@elt{"2D29}{"2468}\@elt{"2D2A}{"2469}%
+\@elt{"2D2B}{"246A}\@elt{"2D2C}{"246B}\@elt{"2D2D}{"246C}\@elt{"2D2E}{"246D}%
+\@elt{"2D2F}{"246E}\@elt{"2D30}{"246F}\@elt{"2D31}{"2470}\@elt{"2D32}{"2471}%
+\@elt{"2D33}{"2472}\@elt{"2D34}{"2473}\@elt{"2D35}{"2160}\@elt{"2D36}{"2161}%
+\@elt{"2D37}{"2162}\@elt{"2D38}{"2163}\@elt{"2D39}{"2164}\@elt{"2D3A}{"2165}%
+\@elt{"2D3B}{"2166}\@elt{"2D3C}{"2167}\@elt{"2D3D}{"2168}\@elt{"2D3E}{"2169}%
+\@elt{"2D3F}{"216A}\@elt{"2D40}{"3349}\@elt{"2D41}{"3314}\@elt{"2D42}{"3322}%
+\@elt{"2D43}{"334D}\@elt{"2D44}{"3318}\@elt{"2D45}{"3327}\@elt{"2D46}{"3303}%
+\@elt{"2D47}{"3336}\@elt{"2D48}{"3351}\@elt{"2D49}{"3357}\@elt{"2D4A}{"330D}%
+\@elt{"2D4B}{"3326}\@elt{"2D4C}{"3323}\@elt{"2D4D}{"332B}\@elt{"2D4E}{"334A}%
+\@elt{"2D4F}{"333B}\@elt{"2D50}{"339C}\@elt{"2D51}{"339D}\@elt{"2D52}{"339E}%
+\@elt{"2D53}{"338E}\@elt{"2D54}{"338F}\@elt{"2D55}{"33C4}\@elt{"2D56}{"33A1}%
+\@elt{"2D57}{"216B}\@elt{"2D5F}{"337B}\@elt{"2D60}{"301D}\@elt{"2D61}{"301F}%
+\@elt{"2D62}{"2116}\@elt{"2D63}{"33CD}\@elt{"2D64}{"2121}\@elt{"2D65}{"32A4}%
+\@elt{"2D66}{"32A5}\@elt{"2D67}{"32A6}\@elt{"2D68}{"32A7}\@elt{"2D69}{"32A8}%
+\@elt{"2D6A}{"3231}\@elt{"2D6B}{"3232}\@elt{"2D6C}{"3239}\@elt{"2D6D}{"337E}%
+\@elt{"2D6E}{"337D}\@elt{"2D6F}{"337C}\@elt{"2D73}{"222E}\@elt{"2D78}{"221F}%
+\@elt{"2D79}{"22BF}\@elt{"2D7D}{"2756}\@elt{"2D7E}{"261E}%
+}
+
+\newcount\cntA
+\newcount\cntB
+\newcount\flag
+\def\chk@in@#1#2{{\global\flag=0\relax%
+ \def\@elt##1{\ifnum#2=##1\global\flag=1 \fi}%
+ #1}}
+\def\get@in@#1#2{{%
+ \global\flag=0\relax%
+ \def\@elt##1##2{\ifnum#2=##1\global\flag##2 \fi}%
+ #1}}
+
+\def\outi{%
+\get@in@{\jlist}{\cntA}\cntB=\flag
+\ifnum\cntB=0{}%
+ \cntB=\jis\cntA{}%
+ \ifnum\cntB=0 \else
+ \ifnum\ltjgetparameter{jacharrange}{\ltjgetparameter{chartorange}{\cntB}}=0
+ \def\@@@tmp{white}\else\def\@@@tmp{white!85!blue}\fi
+ \fcolorbox{black}{\@@@tmp}{%
+ \hbox to \zw{\gtfamily ã\hskip-\zw\ltjjachar\cntB ã\hss}}\,\scriptsize%
+ \ifnum\catcode\cntB=11 L\else\ \fi
+ \chk@in@{\uplist}{\cntA}\ifnum\flag=1 U\else~\fi
+ \chk@in@{\plist}{\cntA}\ifnum\flag=1 P\else~\fi
+ \fi
+\else
+ \ifnum\ltjgetparameter{jacharrange}{\ltjgetparameter{chartorange}{\cntB}}=0
+ \def\@@@tmp{white}\else\def\@@@tmp{white!85!blue}\fi
+ \fcolorbox{black}{\@@@tmp}{\color{red!50!black}%
+ \hbox to \zw{\gtfamily ã\hskip-\zw\ltjjachar\cntB ã\hss}}\,\scriptsize%
+ \ifnum\catcode\cntB=11 L\else~\fi
+ \chk@in@{\uplist}{\cntA}\ifnum\flag=1 U\else~\fi-%
+\fi\global\advance\cntA1 }
+
+\def\out#1#2{%
+\midrule\global\cntA=\numexpr 8192+#1*256+#2*16\relax
+"#2{}x&\ifnum#2=2\global\advance\cntA1\else\outi\fi&\outi&\outi&\outi&\outi&\outi&\outi&\outi%"
+&\outi&\outi&\outi&\outi&\outi&\outi&\outi&\ifnum#2=7\global\advance\cntA1\else\outi\fi\\
+}
+
+\def\test#1{{%
+%\subsection*{Row #1}
+%\subsection*{第#1åº}
+\tt\small\fboxsep=1pt\centering\tabcolsep=0.25\zw
+\begin{tabular}{ccccccccccccccccc}\toprule&"0&"1&"2&"3&"4&"5&"6&"7&"8&"9&"A&"B&"C&"D&"E&"F\\
+\out{#1}{2}\out{#1}{3}\out{#1}{4}\out{#1}{5}\out{#1}{6}\out{#1}{7}\bottomrule
+\end{tabular}\par}\medskip}
+
+\test{1}\test{2}\test{3}\test{4}\test{5}\test{6}\test{7}\test{8}
+\test{9}\test{10}\test{11}\test{12}\test{13}
+
+\errorstopmode
+
+\section{Package versions used in this document}
+This document was typeset using the following packages:
+
+\medskip
+
+{\makeatletter\tt\footnotesize
+ \def\@pkglist#1{%
+ \filename@parse{#1}\def\@temp{sty}
+ \ifx\@temp\filename@ext
+ \edef\reserved@a{%
+ \filename@base.%
+ \ifx\filename@ext\relax tex\else\filename@ext\fi}%
+ \leavevmode\hskip-13em\hbox to 13em{\filename@area\reserved@a\hss}%
+ \csname ver@\reserved@a\endcsname\par
+ \fi
+ }%
+\parindent0pt\leftskip13em
+\ltjpkglist
+
+\makeatother}
\end{document}
+%!showexpl>
+%<*showexpl>
+%%
+%% config file for showexpl.sty
+%%
+%% Copyright The LuaTeX-ja project team, 2012
+%%
+\ProvidesFile{showexpl.cfg}
+ [2012/05/20 v0.01 Definitions for the showexpl package (luatexja)]
+\lstset{}
+\def\SX@Info{}
+\endinput
+%*showexpl>