X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=doc%2Fluatexja.dtx;h=fc4fcf48f076ad21607a1e4941c9359f42a8f788;hb=f13b626507752c5b68b8b174a8d8481b1e9fc744;hp=212e7f2fc7de32a9fd167ee91ad72db23c93ac72;hpb=0255a64e9f1a509c4dcbff89ce31605f0ead52eb;p=luatex-ja%2Fluatexja.git
diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx
index 212e7f2..fc4fcf4 100644
--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -47,7 +47,7 @@
%
\usepackage{amsmath,array,tikz,pict2e,multienum,float}
-\usepackage{booktabs,multicol}
+\usepackage{booktabs,multicol,luatexja-ruby}
%%%%%%%% listings
@@ -108,7 +108,9 @@
\usepackage{luatexja-otf}
%\usepackage{lmodern}
\directlua{luatexja.otf.enable_ivs()}
+\usepackage[match]{luatexja-fontspec}
\usepackage[kozuka-pr6n]{luatexja-preset}
+\setmonojfont{KozGoPr6N-Regular.otf}
%<*ja>
\def\emph#1{\textbf{\textgt{#1}}}
\def\headfont{\normalfont\bfseries\gtfamily}
@@ -121,11 +123,6 @@
\setmathfont{xits-math.otf}
\frenchspacing
%
-\DeclareRobustCommand\ttfamily
- {\not@math@alphabet\ttfamily\mathtt
- \romanfamily\ttdefault\ttjfam\selectfont}
-\newjfontfamily\ttjfam{KozGoPr6N-Regular.otf}
-
%%%%%%%% logo
\usepackage{metalogo}
@@ -145,7 +142,7 @@
\parindent=0pt\def\makelabel##1{{\tt\textbackslash ##1}}
\def\{{\char`\{}\def\}{\char`\}}
\let\origitem=\item
- \def\item[##1]{\par\smallskip\par\hskip-\leftskip\makelabel{##1}\par}
+ \def\item[##1]{\par\smallskip\par\hskip-\leftskip\makelabel{##1}\par\nobreak}
\@totalleftmargin\leftskip
}{\par%
%\medskip
@@ -183,6 +180,7 @@
\catcode`\<=13
\def<#1>{{\normalfont\rm\itshape$\langle$#1\/$\rangle$}}
+\let\LARG=<
\maketitle
\tableofcontents
@@ -468,10 +466,11 @@ and \emph{Japanese fonts} for fonts used in \textbf{JAchar}.
ããã±ã¼ã¸ãã¯ã©ã¹ã表ãï¼
%
%<*en>
-\item In this document, natural numbers start from~0.
+\item In this document, natural numbers start from~zero.
+ $\omega$ denotes the set of all natural numbers.
%
%<*ja>
-\item æ¬ããã¥ã¡ã³ãã§ã¯ï¼èªç¶æ°ã¯0ããå§ã¾ãï¼
+\item æ¬ããã¥ã¡ã³ãã§ã¯ï¼èªç¶æ°ã¯0ããå§ã¾ãï¼èªç¶æ°å
¨ä½ã®éåã¯$\omega$ã¨è¡¨è¨ããï¼
%
\end{itemize}
@@ -526,12 +525,13 @@ and \emph{Japanese fonts} for fonts used in \textbf{JAchar}.
%\subsection{Installation}
%\subsection{ã¤ã³ã¹ãã¼ã«}
-%To install the \LuaTeX-ja\ package, you will need:
+%To install the \LuaTeX-ja\ package, you will need the following engine and packages:
%\LuaTeX-jaããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ã«ã¯ï¼æ¬¡ã®ãã®ãå¿
è¦ã§ããï¼
\begin{itemize}
\item \LuaTeX\ beta-0.74.0 (or later)
\item \Pkg{luaotfload} v2.2 (or later)
-\item \Pkg{luatexbase} v0.6
+\item \Pkg{luatexbase} v0.6 (or later)
+\item \Pkg{everysel} v1.2 (or later)
\item \Pkg{xunicode} v0.981~(2011/09/09)
\item \Pkg{adobemapping} (Adobe cmap and pdfmapping files)
\end{itemize}
@@ -551,7 +551,7 @@ Now \LuaTeX-ja is available from the following archive and distributions:
\item W32\TeX\ (in \texttt{luatexja.tar.xz})
\end{itemize}
-If you are using \TeX~Live~2013, you can install \LuaTeX-ja
+If you are using \TeX~Live~2014, you can install \LuaTeX-ja
from \TeX~Live manager (\texttt{tlmgr}):
\begin{verbatim}
$ tlmgr install luatexja
@@ -571,7 +571,7 @@ $ tlmgr install luatexja
\item W32\TeX\ (\texttt{luatexja.tar.xz})
\end{itemize}
-ä¾ãã°\TeX~Live~2013ãå©ç¨ãã¦ãããªãï¼\LuaTeX-jaã¯\TeX~Live manager (\texttt{tlmgr})ã
+ä¾ãã°\TeX~Live~2014ãå©ç¨ãã¦ãããªãï¼\LuaTeX-jaã¯\TeX~Live manager (\texttt{tlmgr})ã
使ã£ã¦ã¤ã³ã¹ãã¼ã«ãããã¨ãã§ããï¼
\begin{verbatim}
$ tlmgr install luatexja
@@ -931,7 +931,7 @@ Okumura), namely, \Pkg{ltjclasses} and \Pkg{ltjsclasses}.
æ¥æ¬èªææ¸ãçµçããããã«ã¯ï¼\texttt{article.cls}, \texttt{book.cls}ã¨ãã£ã
欧æç¨ã®ã¯ã©ã¹ãã¡ã¤ã«ã§ã¯ãªãï¼åæç¨ã®ã¯ã©ã¹ãã¡ã¤ã«ãç¨ããæ¹ãããï¼
ç¾æç¹ã§ã¯ï¼\Pkg{jclasses}ï¼\pLaTeX ã®æ¨æºã¯ã©ã¹ï¼ã¨\Pkg{jsclasses}
-ï¼å¥¥ææ´å½¦æ°ã«ããã¯ã©ã¹ãã¡ã¤ã«ï¼ã«å¯¾å¿ãããã®ã¨ãã¦ï¼\Pkg{ltjclasses}ï¼
+ï¼å¥¥ææ´å½¦æ°ã«ããã\pLaTeXe æ°ããã¥ã¡ã³ãã¯ã©ã¹ãï¼ã«å¯¾å¿ãããã®ã¨ãã¦ï¼\Pkg{ltjclasses}ï¼
\Pkg{ltjsclasses}ãããããç¨æããã¦ããï¼
%
@@ -939,7 +939,7 @@ Okumura), namely, \Pkg{ltjclasses} and \Pkg{ltjsclasses}.
%\section{ãã©ã³ãã®å¤æ´}
\subsection{plain \TeX~and~\LaTeXe}
-\label{ssub-chgfnt}
+\label{ssec-chgfnt}
\paragraph{plain \TeX}
%<*en>
@@ -1013,7 +1013,7 @@ auto select&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
alphabetic fonts to \texttt{T1}.
\verb+\fontfamily+ also changes the current Japanese font family,
the current alphabetic font family, \emph{or both}.
- For the detail, see Subsection~\ref{ssub-nfsspat}.
+ For the detail, see Subsection~\ref{ssec-nfsspat}.
%
%<*ja>
ããã§ï¼\verb+\fontencoding{+\verb+}+ ã¯ï¼å¼æ°ã«ããåæå´ã欧æ
@@ -1022,7 +1022,7 @@ auto select&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
\texttt{JY3}ã«å¤æ´ãï¼\verb+\fontencoding{T1}+ ã¯æ¬§æãã©ã³ãå´ã
\texttt{T1}ã¸ã¨å¤æ´ããï¼\verb+\fontfamily+ ãå¼æ°ã«ããåæå´ï¼æ¬§æ
å´ï¼\emph{ãããã¯ä¸¡æ¹}ã®ãã©ã³ããã¡ããªãå¤æ´ããï¼è©³ç´°ã¯
- \ref{ssub-nfsspat}ç¯ãåç
§ãããã¨ï¼
+ \ref{ssec-nfsspat}ç¯ãåç
§ãããã¨ï¼
%
%<*en>
@@ -1039,13 +1039,13 @@ auto select&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
\item åæãã©ã³ãã®ã·ã§ã¤ããå®ç¾©ããã«ã¯ï¼é常㮠\verb+\DeclareFontShape+ ã使ãã°è¯ãï¼
%
\begin{verbatim}
-\DeclareFontShape{JY3}{mc}{bx}{n}{<-> s*KozMinPr6N-Bold:jfm=ujis}{}
+\DeclareFontShape{JY3}{mc}{bx}{n}{<-> s*KozMinPr6N-Bold:jfm=ujis;-kern}{}
% Kozuka Mincho Pr6N Bold
\end{verbatim}
%<*ja>
ä»®åæ¸ä½ã使ãå ´åãªã©ï¼è¤æ°ã®åæãã©ã³ããçµã¿åããã¦ä½¿ãããå ´åã¯
\ref{ssec-altfont}ç¯ã® \verb+\ltjdeclarealtfont+ ã¨ï¼ãã®\LaTeX çã®\
-\verb+\DeclareAlternateKanjiFont+ï¼\ref{ssub-nfsspat}ç¯ï¼ãåç
§ããï¼
+\verb+\DeclareAlternateKanjiFont+ï¼\ref{ssec-nfsspat}ç¯ï¼ãåç
§ããï¼
%
\end{itemize}
@@ -1113,13 +1113,21 @@ this chapter. For the method, please see Subsection~\ref{ssec-math}.
\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}
+\Pkg{luatexja-fontspec} package in the preamble, as follows:
+\begin{quote}
+\ttfamily \textbackslash usepackage[]\{luatexja-fontspec\}
+\end{quote}
+This \Pkg{luatexja-fontspec} package
+automatically loads \Pkg{luatexja} and \Pkg{fontspec}
package, if needed.
%
%<*ja>
-\Pkg{fontspec}ããã±ã¼ã¸ã¨åæ§ã®æ©è½ãåæãã©ã³ãã«å¯¾ãã¦ãç¨ããããã«ã¯ï¼
-\Pkg{luatexja-fontspec}ããã±ã¼ã¸ãããªã¢ã³ãã«ã§èªã¿è¾¼ãå¿
è¦ãããï¼ãã®ããã±ã¼ã¸
+\Pkg{fontspec}ããã±ã¼ã¸ã¨åæ§ã®æ©è½ãåæãã©ã³ãã«å¯¾ãã¦ãç¨ããå ´åï¼
+\Pkg{luatexja-fontspec}ããã±ã¼ã¸ãèªã¿è¾¼ãï¼
+\begin{quote}
+\ttfamily \textbackslash usepackage[]\{luatexja-fontspec\}
+\end{quote}
+ãã®ããã±ã¼ã¸
ã¯å¿
è¦ãªãã°èªåã§\Pkg{luatexja}ããã±ã¼ã¸ã¨\Pkg{fontspec}ããã±ã¼ã¸ãèªã¿è¾¼ãï¼
%
@@ -1131,20 +1139,21 @@ counterparts of original commands in the \Pkg{fontspec} package:
\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã§ã¯ï¼ä»¥ä¸ã®7ã¤ã®ã³ãã³ãã\Pkg{fontspec}
ããã±ã¼ã¸ã®å
ã®ã³ãã³ãã«å¯¾å¿ãããã®ã¨ãã¦å®ç¾©ãã¦ããï¼
%
-
%<*en>
\begin{center}\small
\begin{tabular}{ccccc}
\toprule
Japanese fonts
-&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+&\verb+\newjfontfamily+\\
+&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+&\verb+\setmonojfont+$^*$\\
alphabetic fonts
-&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+&\verb+\newfontfamily+\\
+&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+&\verb+\setmonofont+\\
\midrule
Japanese fonts
-&\verb+\newjfontface+&\verb+\defaultjfontfeatures+&\verb+\addjfontfeatures+\\
+&\verb+\newjfontfamily+&\verb+\newjfontface+
+&\verb+\defaultjfontfeatures+&\verb+\addjfontfeatures+\\
alphabetic fonts
-&\verb+\newfontface+&\verb+\defaultfontfeatures+&\verb+\addfontfeatures+\\
+&\verb+\newfontfamily+&\verb+\newfontface+
+&\verb+\defaultfontfeatures+&\verb+\addfontfeatures+\\
\bottomrule
\end{tabular}
\end{center}
@@ -1171,6 +1180,45 @@ alphabetic fonts
\end{tabular}
\end{center}
%
+%<*en>
+The package option of \Pkg{luatexja-fontspec} are the followings:
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+ \item[match] If this option is specified, usual family-changing commands such as
+\verb+\rmfamily+,~\verb+\textrm+, \verb+\sffamily+,~\dots\ also change Japanese font family.
+
+Note that \emph{\texttt{\textup{\textbackslash setmonojfont}} is defined
+if and only if this \texttt{\textup{match}} option is specified}.
+
+ \item[pass=]
+Specify options which will be passed to the \Pkg{fontspec} package.
+\end{list}
+The reason that \verb+\setmonojfont+ is not defined by default is that
+it is popular for Japanese fonts that nearly all Japanese glyphs have same
+widths. Also note that kerning information in a font is not used
+(that is, \texttt{kern} feature is set off) by default in these seven (or~eight) commands.
+This is because of the compatibility with previous versions of \LuaTeX-ja
+(see \ref{para-kern}).
+%
+%<*ja>
+\Pkg{luatexja-fontspec} ããã±ã¼ã¸ã®ãªãã·ã§ã³ã¯ä»¥ä¸ã®éãã§ããï¼
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+ \item[match] ãã®ãªãã·ã§ã³ãæå®ãããã¨ï¼ã\pLaTeXe æ°ããã¥ã¡ã³ãã¯ã©ã¹ãã®ããã«\
+\verb+\rmfamily+, \verb+\textrm{...}+, \verb+\sffamily+ çã
+欧æãã©ã³ãã ãã§ãªãåæãã©ã³ããå¤æ´ããããã«ãªãï¼
+
+\emph{ãªãï¼{\tt \textbackslash setmonojfont} ã¯ãã® \texttt{match} ãªãã·ã§ã³ã
+æå®ãããæã®ã¿å®ç¾©ãããï¼}ãã®å½ä»¤ã¯æ¨æºã®ãã¿ã¤ãã©ã¤ã¿ä½ã«å¯¾å¿ããåæãã©ã³ãããæå®ããï¼
+
+ \item[pass=]
+\Pkg{fontspec} ããã±ã¼ã¸ã«æ¸¡ããªãã·ã§ã³ ãæå®ããï¼
+\end{list}
+æ¨æºã§ \verb+\setmonojfont+ ã³ãã³ããå®ç¾©ãããªãã®ã¯ï¼
+åæãã©ã³ãã§ã¯ã»ã¼å
¨ã¦ã®åææåã®ã°ãªããçå¹
ã§ããã®ãä¼çµ±çã§ãã£ããã¨ã«ããï¼
+ã¾ãï¼ãããã®åæç¨ã®ã³ãã³ãã§ã¯ãã©ã³ãå
ã®ãã¢ã«ã¼ãã³ã°æ
å ±ã¯æ¨æºã§ã¯ä½¿ç¨ãããªãï¼
+è¨ãæããã° \texttt{kern} featureã¯æ¨æºã§ã¯ç¡å¹åã¨ãªã£ã¦ããï¼
+ããã¯ä»¥åã®ãã¼ã¸ã§ã³ã®\LuaTeX-jaã¨ã®äºææ§ã®ããã§ããï¼\ref{para-kern}ç¯ãåç
§ï¼ï¼
+%
+
\begin{LTXexample}[width=0.4\textwidth]
\fontspec[Numbers=OldStyle]{LMSans10-Regular}
\jfontspec[CJKShape=NLC]{KozMinPr6N-Regular}
@@ -1180,20 +1228,6 @@ JIS~X~0213:2004âè¾»
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 seven 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{Presets}
%\subsection{ããªã»ããè¨å®}
\label{ssec-preset}
@@ -1201,7 +1235,7 @@ featureã\textbf{JAglue}ã¨è¡çªããããã§ããï¼\ref{para-kern}ç¯ã
%<*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,
+\Pkg{japanese-otf} package and a part of \Pkg{PXchfon} package by Takayuki Yato,
and loads \Pkg{luatexja-fontspec}, hence \Pkg{fontspec} internally.
If you need to pass some options to \Pkg{fontspec}, load \Pkg{fontspec} manually
@@ -1422,7 +1456,7 @@ Std/StdNãã©ã³ãã§ããï¼ãã®ä»ã¯Adobe-Japan1-5対å¿ã§ããï¼
\midrule
%\textit{rounded gothic}
%\gt 丸ã´ã·ãã¯
-&&A-OTF-Jun101Pro-Light.otf&A-OTF-Jun101Pr6N-Light.otf\\
+&&A-OTF-Jun101Pro-Light.otf&A-OTF-ShinMGoPr6N-Light.otf\\
\bottomrule
\end{tabular}
\end{center}
@@ -1572,11 +1606,11 @@ are internally specified by:
%<*en>
-\subsection{\texttt{\textbackslash CID}, \texttt{\textbackslash UTF}, and macros in \Pkg{otf} package}
-Under \pLaTeX, \Pkg{otf} package (developed by Shuzaburo Saito) is
+\subsection{\texttt{\textbackslash CID}, \texttt{\textbackslash UTF}, and macros in \Pkg{japanese-otf} package}
+Under \pLaTeX, \Pkg{japanese-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.
+supports some of functions in \Pkg{japanese-otf} package.
If you want to use these functions, load \Pkg{luatexja-otf} package.
%
%<*ja>
@@ -1612,7 +1646,7 @@ If you want to use these functions, load \Pkg{luatexja-otf} package.
ããã3ãªãã·ã§ã³ã«ã¤ãã¦ã¯ï¼
\Pkg{luatexja-preset} ããã±ã¼ã¸ã«ããªã»ããã使ãæã«ä¸ç·ã«æå®ãããï¼
-ãããã¯å¯¾å¿ããå
容ã\ref{ssub-chgfnt}ç¯ (NFSS2) ã
+ãããã¯å¯¾å¿ããå
容ã\ref{ssec-chgfnt}ç¯ï¼\ref{ssec-nfsspat}ç¯ (NFSS2) ã
\ref{ssec-fontspec}ç¯ (\Pkg{fontspec}) ã®æ¹æ³ã§æåã§æå®ããå¿
è¦ãããï¼
%
@@ -1690,8 +1724,9 @@ it sets
\end{verbatim}
%<*en>
The argument to \textsf{jacharrange} parameter is a list of non-zero integer.
-Negative integer $-n$ in the list means that ``each character in the range~$n$ is a \textbf{ALchar}'', and positive integer $+n$ means
-that ``\dots\ is a \textbf{JAchar}''.
+Negative integer $-n$ in the list means that ``each character in the range~$n$ is an
+\textbf{ALchar}'',
+and positive integer $+n$ meansthat ``\dots\ is a \textbf{JAchar}''.
%
%<*ja>
\textsf{jacharrange}ãã©ã¡ã¼ã¿ã®å¼æ°ã¯éé¶ã®æ´æ°ã®ãªã¹ãã§ããï¼
@@ -2083,12 +2118,12 @@ Here the horizontal line in above is the baseline of a line.
%<*en>
There is an interesting side-effect: characters in different size can be
-vertically aligned center in a line, by setting two parameters appropriately.
+``vertically aligned center'' in a line, by setting two parameters appropriately.
The following is an example (beware the value is not well tuned):
%
%<*ja>
ãã®æ©è½ã«ã¯é¢ç½ã使ãæ¹ãããï¼2ã¤ã®ãã©ã¡ã¼ã¿ãé©åã«è¨å®ãããã¨ã§ï¼ãµã¤ãºã®
-ç°ãªãæåãä¸å¿ç·ã«æãããã¨ãã§ããï¼
+ç°ãªãæåããä¸å¿ç·ãã«æãããã¨ãã§ããï¼
以ä¸ã¯ä¸ã¤ã®ä¾ã§ããï¼å¤ã¯ãã¾ã調æ´ããã¦ããªããã¨ã«æ³¨æï¼ï¼
%
\begin{LTXexample}
@@ -2100,6 +2135,33 @@ xyzæ¼¢å
}abcããª
\end{LTXexample}
+%<*en>
+Note that setting a positive value to \Param{yalbaselineshift} does not
+increase the depth of \textbf{ALchar}, as shown below.
+This is because \Param{yalbaselineshift} is implemented by setting \verb+xoffset+
+field of a glyph node, and this does not increase the depth of the glyph.
+This problem does not apply for \Param{yjabaselineshift}, since
+\Param{yjabaselineshift} uses a different implementation method.
+%
+%<*ja>
+ãªãï¼\Param{yalbaselineshift}ãã©ã¡ã¼ã¿ã«æ£ã®å¤ãæå®ãã¦ãï¼
+ä¸ã®ä¾ã®ããã«\textbf{ALchar}ã®æ·±ãã¯å¢å ããªããã¨ã«æ³¨æï¼
+\Param{yjabaselineshift}ãã©ã¡ã¼ã¿ã¯å¥ã®æ¹æ³ã使ã£ã¦å®è£
ãã¦ããã®ã§ï¼
+ãã®ãããªåé¡ã¯èµ·ãããªãï¼
+%
+\begin{LTXexample}[width=.3\textwidth]
+\leavevmode\fboxsep=0pt
+ \ltjsetparameter{yjabaselineshift=0pt,
+ yalbaselineshift=0pt}
+\vrule width 105pt height 0.4pt depth 0pt \hskip-95pt
+\fbox{\ltjsetparameter{yalbaselineshift=10pt}ãããxyz}
+\fbox{\ltjsetparameter{yalbaselineshift=-10pt}ãããxyz}\\
+\vrule width 105pt height 0.4pt depth 0pt \hskip-95pt
+\fbox{\ltjsetparameter{yjabaselineshift=10pt}ãããxyz}
+\fbox{\ltjsetparameter{yjabaselineshift=-10pt}ãããxyz}
+\end{LTXexample}
+
+
%<*ja>
\paragraph{æ°å¼ã«ãããæåï¼\pTeX ã¨ã®éã}
@@ -2172,7 +2234,7 @@ For the detail, see Table~\ref{table-kcat}.
\small
\caption{\texttt{\textbackslash kcatcode} in \upTeX}
\label{table-kcat}
-\medskip
+%\medskip
\noindent\hfill
\begin{tabular}{ccccc}
@@ -2234,7 +2296,7 @@ divided into the following four kinds,
and \LuaTeX-ja can control these four kinds separately:
\begin{itemize}
\item
-\emph{Distinction between\textbf{JAchar} or \textbf{ALchar}}
+\emph{Distinction between \textbf{JAchar} or \textbf{ALchar}}
is controlled by using the character range, see Subsection~\ref{ssec-setrange}.
\item
\emph{Whether the character can be used in a control word}
@@ -2319,13 +2381,14 @@ for \LuaTeX, \emph{to match the \texttt{\textbackslash catcode} setting with tha
\centering\small
%\caption{Difference of the set of non-kanji JIS~X~0208 characters which can be used in a control word}
%\caption{å¶å¾¡ç¶´ä¸ã«ä½¿ç¨åºæ¥ãJIS~X~0208éæ¼¢åã®éã}
+%\medskip
\label{table-kcat-diff}
\def\D#1#2#3#4{%
{\fboxsep0pt\fcolorbox{cyan}{white}%
{\large\char"#1#2#3#4}}\ (\texttt{U+#1#2#3#4})} %"
\leavevmode\hbox to 0pt{\hss\begin{tabular}{cccccc}
\toprule
-%&\bf row&\bf column&\bf \pTeX&\bf \upTeX&\bf\LuaTeX-ja\\
+%&\bf row&\bf col.&\bf \pTeX&\bf \upTeX&\bf\LuaTeX-ja\\
%&\bf åº&\bf ç¹&\bf \pTeX&\bf \upTeX&\fontseries{b}\selectfont\LuaTeX-ja\\
\midrule
\D 3000&1&1&N&N&Y\\
@@ -2350,7 +2413,7 @@ for \LuaTeX, \emph{to match the \texttt{\textbackslash catcode} setting with tha
\end{tabular}\qquad
\begin{tabular}{cccccc}
\toprule
-%&\bf row&\bf column&\bf \pTeX&\bf \upTeX&\bf\LuaTeX-ja\\
+%&\bf row&\bf col.&\bf \pTeX&\bf \upTeX&\bf\LuaTeX-ja\\
%&\bf åº&\bf ç¹&\bf \pTeX&\bf \upTeX&\fontseries{b}\selectfont\LuaTeX-ja\\
\midrule
\D FF0F&1&31&N&N&Y\\
@@ -2465,6 +2528,44 @@ which JFM will be used for this font by the following keys:
æå®ããå¿
è¦ãããï¼
%
+
+\begin{table}[t]
+%\caption{Differences between JFMs shipped with \LuaTeX-ja}
+%\caption{\LuaTeX-ja ã«å梱ããã¦ãã JFM ã®éã}
+%\medskip
+\label{tab-difjfm}
+\ltjsetparameter{jacharrange={+3}}
+\centering\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=file:KozMinPr6N-Regular.otf:jfm=#1 at 14.43324pt \g
+\setbox0=\vtop{\hsize=7\zw\noindent ã¡ãã£ã¨ï¼ä½}\copy0}}
+\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
+\kern-\wd0\raise\ht0\hbox{\vrule width\wd0height .2pt depth .2pt}%
+\kern-\wd0\lower\dp0\hbox{\vrule width\wd0height .2pt depth .2pt}%
+\kern-.2pt\vrule width 0.4pt height\ht0 depth \dp0}}
+\begin{tabular}{rccc}
+\toprule
+&\tt jfm-ujis.lua&\tt jfm-jis.lua&\tt jfm-min.lua\\
+\midrule
+%Example~1\cite{min10}
+%ä¾1\cite{min10}
+&\r{ujis}&\r{jis}&\r{min}\\
+%Example~2
+%ä¾2
+&\s{ujis}&\s{jis}&\s{min}\\
+Bounding Box&\t{ujis}&\t{jis}&\t{min}\\
+\bottomrule
+\end{tabular}
+\ltjsetparameter{jacharrange={-3}}
+\end{table}
+
+
\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
\item[jfm=]
%<*en>
@@ -2498,122 +2599,116 @@ JFMã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
%
%<*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}ã§ã¯æ¨ªé·ã®é·æ¹å½¢ç¶ã§ããï¼
+ \verb+jis.tfm+ ã«ç¸å½ããJFMã§ããï¼\texttt{jfm-ujis.lua} ã¨ãã®
+ \texttt{jfm-jis.lua} ã®ä¸»ãªéãã¯ï¼\texttt{jfm-ujis.lua} ã§ã¯ã»ã¨ãã©ã®æåã
+ æ£æ¹å½¢ç¶ã§ããã®ã«å¯¾ãï¼\texttt{jfm-jis.lua} ã§ã¯æ¨ªé·ã®é·æ¹å½¢ç¶ã§ãããã¨ã¨ï¼
+ \texttt{jfm-ujis.lua} ã§ã¯ãï¼ããï¼ãã®ç´å¾ã«åè§ç©ºç½ãæ¿å
¥ããããã¨ã§ããï¼
%
%<*en>
\item[\tt jfm-min.lua] A counterpart for \verb+min10.tfm+, which is one
- of the default Japanese font metric shipped with \pTeX. There
- are notable difference between this JFM and other 2~JFMs, as
- shown in Table~\ref{tab-difjfm}.
+ of the default Japanese font metric shipped with \pTeX.
%
-%<*ja>
+%<*ja>
\item[\tt jfm-min.lua] \pTeX ã«å梱ããã¦ããããã©ã«ãã®åæç¨TFM
- ã§ãã \verb+min10.tfm+ ã«ç¸å½ããJFMã§ããï¼ãã®JFMã¨ä»ã®2ã¤ã®JFMã®éã«ã¯
- 表\ref{tab-difjfm}ã«ç¤ºããããªç¹çãã¹ãéããããï¼
+ ã§ãã \verb+min10.tfm+ ã«ç¸å½ããï¼
%
\end{description}
-
%<*en>
-\item[jfmvar=] Sometimes there is a need that \ldots.
+The difference among these three~JFMs is shown in Table~\ref{tab-difjfm}.
%
%<*ja>
-\item[jfmvar=] æ¨æºã§ã¯ï¼JFMã¨ãµã¤ãºãåãã§ï¼
- å®ãã©ã³ãã ããç°ãªã2ã¤ã®åæãã©ã³ãã¯ãåºå¥ãããªããï¼ä¾ãã°
-ä¸ã®ä¾ã«ããã¦ï¼æåã®ãï¼ãã¨ãããã®å®ãã©ã³ãã¯ç°ãªããï¼
-JFMããµã¤ãºãåããªã®ã§ï¼æ®éã«ãï¼ããã¨å
¥åããæã¨åãããã«åè§ç©ºãã¨ãªãï¼
-
-ãããï¼æã«ã¯â¦â¦
-
+ããã3ã¤ã®JFMã®éãã¯è¡¨\ref{tab-difjfm}ã«ç¤ºããï¼
%
+
+\begin{figure}
\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
+ã»ãï¼{\G ãã»ãã}ï¼ã»ãï¼\par
+ã»ãï¼{\H ãã»ãã}ï¼ã»ãï¼% pTeX-like
+
\ltjsetparameter{differentjfm=paverage}
\end{LTXexample}
-\end{list}
-
-\begin{table}[t]
-%\caption{Differences between JFMs shipped with \LuaTeX-ja}
-%\caption{\LuaTeX-ja ã«å梱ããã¦ãã JFM ã®éã}
-\label{tab-difjfm}
-\ltjsetparameter{jacharrange={+3}}
-\centering\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=file:KozMinPr6N-Regular.otf:jfm=#1 at 14.43324pt \g
-\setbox0=\vtop{\hsize=7\zw\noindent ã¡ãã£ã¨ï¼ä½}\copy0}}
-\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
-\kern-\wd0\raise\ht0\hbox{\vrule width\wd0height .2pt depth .2pt}%
-\kern-\wd0\lower\dp0\hbox{\vrule width\wd0height .2pt depth .2pt}%
-\kern-.2pt\vrule width 0.4pt height\ht0 depth \dp0}}
-\begin{tabular}{rccc}
-\toprule
-&\tt jfm-ujis.lua&\tt jfm-jis.lua&\tt jfm-min.lua\\
-\midrule
-%Example~1\cite{min10}
-%ä¾1\cite{min10}
-&\r{ujis}&\r{jis}&\r{min}\\
-%Example~2
-%ä¾2
-&\s{ujis}&\s{jis}&\s{min}\\
-Bounding Box&\t{ujis}&\t{jis}&\t{min}\\
-\bottomrule
-\end{tabular}
-\ltjsetparameter{jacharrange={-3}}
-\end{table}
+\caption{Example of \texttt{jfmvar} key}
+\label{fig:jfmvar}
+\end{figure}
-%\paragraph{Note: \texttt{kern} feature}
-%\paragraph{注æï¼\texttt{kern} feature}
-\label{para-kern}
%<*en>
-Some fonts have information for inter-glyph spacing. However, this
-information is not well-compatible with \LuaTeX-ja. More concretely,
-this kerning space from this information are inserted \emph{before} the
-insertion process of \textbf{JAglue}, and this causes incorrect spacing
-between two characters when both a glue/kern from the data in the font
-and it from JFM are present.
-%
-%<*ja>
-ããã¤ãã®ãã©ã³ãã¯ã°ãªãéã®ã¹ãã¼ã¹ã«ã¤ãã¦ã®æ
å ±ãæã£ã¦ããï¼ãããï¼
-ãã®æ
å ±ã¯\LuaTeX-ja ã¨ã¯ãã¾ãç¸æ§ããããªãï¼å
·ä½çã«ã¯ï¼ãã®æ
å ±ã«åºã¥ãã¦æ¿å
¥
-ãããã«ã¼ãã³ã°ã¹ãã¼ã¹ã¯\textbf{JAglue}ã®æ¿å
¥éç¨ã®\textbf{åã«}æ¿å
¥ããï¼
-JFMã«åºã¥ãã°ã«ã¼ï¼ã«ã¼ã³ãæ¿å
¥ãããå ´åã«ã¯2æåéã®æå³ããªãã¹ãã¼ã¹ã®åå ã¨
-ãªãï¼
-%
-\begin{itemize}
-%<*en>
-\item You should specify \texttt{-kern} in
- \verb+jfont+ when you want to use other font features,
- such as \texttt{script=...}\,.
+\item[jfmvar=] Sometimes there is a need that \ldots.
%
%<*ja>
-\item \texttt{script=...}ã¨ãã£ãfeatureã使ãããå ´åã«ã¯ï¼\verb+\jfont+
- ã«\texttt{-kern}ãæå®ããã¹ãã§ããï¼
+\item[jfmvar=] æ¨æºã§ã¯ï¼JFMã¨ãµã¤ãºãåãã§ï¼
+ å®ãã©ã³ãã ããç°ãªã2ã¤ã®åæãã©ã³ãã¯ãåºå¥ãããªããï¼ä¾ãã°
+å³\ref{fig:jfmvar}ã«ããã¦ï¼æåã®ãï¼ãã¨ãããã®å®ãã©ã³ãã¯ç°ãªããï¼
+JFMããµã¤ãºãåããªã®ã§ï¼æ®éã«ãï¼ããã¨å
¥åããæã¨åãããã«åè§ç©ºãã¨ãªãï¼
+
+ãããï¼JFMã¨ãµã¤ãºãåãã§ãã£ã¦ãï¼\texttt{jfmvar} ãã¼ã®ç°ãªã
+2ã¤ã®åæãã©ã³ãï¼ä¾ãã°å³\ref{fig:jfmvar}ã§è¨ã \verb+\F+ 㨠\verb+\H+ï¼
+ã¯ãåºå¥ããããï¼ç°ãªãåæãã©ã³ãã«ç°ãªã \texttt{jfmvar} ãã¼ãå²ãå½ã¦ï¼
+ãã¤\Param{differentjfm}ãã©ã¡ã¼ã¿ã \texttt{both} ã«è¨å®ããã°ï¼
+\pTeX ã¨ä¼¼ãç¶æ³ã§çµçããããã¨ã«ãªãï¼
%
+\end{list}
+
+\begin{figure}
+\begin{LTXexample}[pos=t]
+\newcommand\test{\vrule ãã¤ãããã¯ãã¤ã¯ã\vrule\\}
+\jfont\KMFW = KozMinPr6N-Regular:jfm=prop;-kern at 17pt
+\jfont\KMFK = KozMinPr6N-Regular:jfm=prop at 17pt % kern is activated
+\jfont\KMPW = KozMinPr6N-Regular:jfm=prop;script=dflt;+pwid;-kern at 17pt
+\jfont\KMPK = KozMinPr6N-Regular:jfm=prop;script=dflt;+pwid;+kern at 17pt
+\begin{multicols}{2}
+\ltjsetparameter{kanjiskip=0pt}
+{\KMFW\test \KMFK\test \KMPW\test \KMPK\test}
+
+\ltjsetparameter{kanjiskip=3pt}
+{\KMFW\test \KMFK\test \KMPW\test \KMPK\test}
+\end{multicols}
+\end{LTXexample}
+\caption{Kerning information and \Param{kanjiskip}}
+\label{fig:kern-jfm}
+\end{figure}
+
+%\paragraph{Using kerning information in a font}
+%\paragraph{ãã¢ã«ã¼ãã³ã°æ
å ±ã®ä½¿ç¨}
+\label{para-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\,\ldots.
+Some fonts have information for inter-glyph spacing.
+This version of \LuaTeX-ja treats kerning spaces like an italic correction;
+any glue and/or kern from the JFM and a kerning space can coexist.
+See Figure~\ref{fig:kern-jfm} for detail.
+
+Note that in \verb+\setmainjfont+ etc.\ which are provided by \Pkg{luatexja-fontspec}
+package, kerning option is set \emph{off} (\texttt{Kerning=Off}) by default,
+because of the compatibility with previous versions of \LuaTeX-ja.
%
%<*ja>
-\item ãããããã¼ã·ã§ãã«å¹
ã®åæãã©ã³ãããã®ãã©ã³ãã®æ
å ±ã«åºã¥ãã¦ä½¿ããã
- ãªãã°ï¼\texttt{jfm-prop.lua}ãJFMã¨ãã¦æå®ãï¼â¦â¦
-%
-TODO: kanjiskip?
+ããã¤ãã®ãã©ã³ãã¯ã°ãªãéã®ã¹ãã¼ã¹ã«ã¤ãã¦ã®æ
å ±ãæã£ã¦ããï¼
+ãã®ã«ã¼ãã³ã°æ
å ±ã¯ä»¥åã®\LuaTeX-ja ã¨ã¯ãã¾ãç¸æ§ãè¯ããªãã£ããï¼
+æ¬ãã¼ã¸ã§ã³ã§ã¯ã«ã¼ãã³ã°ã«ãã空ç½ã¯ã¤ã¿ãªãã¯è£æ£ã¨åæ§ã«æ±ããã¨ã«ãªã£ã¦ããï¼
+ã¤ã¾ãï¼ã«ã¼ãã³ã°ç±æ¥ã®ç©ºç½ã¨JFMç±æ¥ã®ã°ã«ã¼ã»ã«ã¼ã³ã¯åæã«å
¥ãããï¼
+å³\ref{fig:kern-jfm}ãåç
§ï¼
+\begin{itemize}
+ \item \emph{\texttt{\textbackslash jfont} ãï¼
+NFSS2ç¨ã®å½ä»¤ï¼\ref{ssec-chgfnt}ç¯ï¼\ref{ssec-nfsspat}ç¯ï¼ã«ãããæå®ã§ã¯
+ã«ã¼ãã³ã°æ
å ±ã¯æ¨æºã§ä½¿ç¨ãã}ãã¨ã«ãªã£ã¦ããããã§ããï¼
+è¨ãæããã°ï¼ã«ã¼ãã³ã°æ
å ±ã使ç¨ããªãè¨å®ã«ããã«ã¯ï¼é¢åã§ã
+\begin{verbatim}
+\jfont\hoge=KozMinPr6N-Regular:jfm=ujis;-kern at 3.5mm
+\DeclareFontShape{JY3}{fuga}{m}{n} {<-> s*KozMinPr6N-Regular:jfm=ujis;-kern}{}
+\end{verbatim}
+ã®ããã«ï¼\texttt{-kern} ã¨ããæå®ãèªåã§è¿½æ¶ããªããã°ãããªãï¼
+ \item
+ä¸æ¹ï¼\emph{\Pkg{luatexja-fontspec} ã®æä¾ãã \texttt{\textbackslash setmainjfont}\
+ãªã©ã®å½ä»¤ã®æ¨æºè¨å®ã§ã¯ã«ã¼ãã³ã°æ
å ±ã¯ä½¿ç¨ããªã}ï¼\texttt{Kerning=Off}ï¼
+ãã¨ã«ãªã£ã¦ããï¼ããã¯ä»¥åã®ãã¼ã¸ã§ã³ã®\LuaTeX-jaã¨ã®äºææ§ã®ããã§ããï¼
\end{itemize}
-
+%
%<*ja>
\paragraph{\texttt{extend}ã¨\texttt{slant}}
@@ -2641,10 +2736,10 @@ For example, the following example uses the standard JFM \texttt{jfm-ujis.lua},
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
+\jfont\E=file:KozMinPr6N-Regular.otf:extend=1.5;jfm=ujis;-kern
\E ããããã
-\jfont\S=file:KozMinPr6N-Regular.otf:slant=1;jfm=ujis
+\jfont\S=file:KozMinPr6N-Regular.otf:slant=1;jfm=ujis;-kern
\S ããã\/ABC
\end{LTXexample}
@@ -2661,8 +2756,8 @@ standard, non-embedded Japanese fonts, namely, ``Ryumin-Light'' and
``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.}
+have no meaning in name-only fonts using ``{\tt psft:}''\ prefix,
+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.
%
@@ -2883,14 +2978,18 @@ This field is a list of characters which are in this character
Specifythe width of characters in character class~$i$, the height, the depth and
the amount of italic correction. All characters in character class~$i$ are regarded that its width, height, and depth are
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.
+
+But there is one exception: \texttt{width} field can be \texttt{'prop'}.
+This means that width of a character becomes that of its ``real'' glyph.
%
%<*ja>
æåã¯ã©ã¹$i$ã«å±ããæåã®å¹
ï¼é«ãï¼æ·±ãï¼ã¤ã¿ãªãã¯è£æ£ã®éãæå®ããï¼
æåã¯ã©ã¹$i$ã«å±ããå
¨ã¦ã®æåã¯ï¼ãã®å¹
ï¼é«ãï¼æ·±ãããã®ãã£ã¼ã«ãã§æå®ãã
å¤ã§ãããã®ã¨ãã¦æ±ãããï¼
-ãããï¼ä¾å¤ãä¸ã¤ããï¼ãã \texttt{'prop'} ã \texttt{width} ãã£ã¼ã«ãã«
-æå®ãããå ´åï¼æåã®å¹
ã¯ãã®ãå®éã®ãã°ãªãã®å¹
ã¨ãªãï¼
+
+ä¾å¤ã¨ãã¦ï¼\emph{\texttt{width} ãã£ã¼ã«ãã«ã¯æ°å¤ä»¥å¤ã« \texttt{'prop'} ãæå®å¯è½ã§ãã}ï¼
+ãã®å ´åï¼æåã®å¹
ã¯ãã®ãå®éã®ãã°ãªãã®å¹
ã¨ãªãï¼OpenTypeã® \texttt{prop} featureã¨ä½µç¨
+ ããã°ï¼ããã«ãã£ã¦ãããã¼ã·ã§ãã«çµãè¡ããã¨ãã§ããï¼
%
\item[left=, down=, align=]\
@@ -3023,8 +3122,8 @@ Furthermore, the glyph is shifted according to values of fields
\medskip
\caption{%
-%The position of the real glyph.
-%ãå®éã®ãã°ãªãã®ä½ç½®ï¼
+%The position of the real glyph
+%ãå®éã®ãã°ãªãã®ä½ç½®
}
\label{fig-pos}
\end{figure}
@@ -3063,6 +3162,8 @@ Furthermore, the glyph is shifted according to values of fields
\end{itemize}
%
%<*en>
+\
+
Specifies the width of kern or glue which will be inserted
between characters in character class~$i$ and those in character class~$j$.
@@ -3071,7 +3172,15 @@ used only in line adjustment with priority by \Pkg{luatexja-adjust}
(see Subsection~\ref{ssec-adj}). Higher value means the glue is easy to shretch,
and is also easy to shrink.
- is \dots
+ is also an optional value between $-1$ and 1. For example,
+Thw width of a glue between an ideographic full stop ``ã''
+and a fullwidth middle dot ``ã»'' is three-fourth of fullwidth,
+namely halfwidth from the ideographic full stop, and
+quarter-width from the fullwidth middle dot. In this case,
+we specify to
+\[
+ -1\cdot \frac{0.5}{0.5+0.25} + 1 \cdot \frac{0.25}{0.5+0.25} = -\frac13.
+\]
%
@@ -3230,7 +3339,7 @@ The following is the list of imaginary characters:
% ToDo: English version.
%<*en>
-\ldots
+See Japanese version of this manual.
%
%<*ja>
@@ -3320,6 +3429,7 @@ you can set both \verb+\fam+ and \verb+\jfam+ to the same value.
%\caption{Commands for Japanese math fonts}
%\caption{åææ°å¼ãã©ã³ãã«å¯¾ããå½ä»¤}
\label{tab-math}
+%\medskip
\centering
\def\{{\char`\{}\def\}{\char`\}}\small
\begin{tabular}{ll}
@@ -3339,7 +3449,7 @@ you can set both \verb+\fam+ and \verb+\jfam+ to the same value.
%\subsection{ã³ã¼ã«ããã¯}
%<*en>
-Like \LuaTeX\ itself, \LuaTeX-ja also has callbacks. These callbacks can
+\LuaTeX-ja also has several callbacks. These callbacks can
be accessed via \verb+luatexbase.add_to_callback+ function and so on, as other callbacks.
%
%<*ja>
@@ -3389,9 +3499,9 @@ An example of this callback is the \texttt{ltjarticle} class, with
%\item[\texttt{luatexja.define\_jfont} callback]
%\item[\texttt{luatexja.define\_jfont}ã³ã¼ã«ããã¯]
%<*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.
+This callback and the next callback form a pair, and you can assign characters
+ which do not have fixed code points in Unicode to non-zero character classes.\\
+This \texttt{luatexja.define\_jfont} callback is called just when new Japanese font is loaded.
%
%<*ja>
ãã®ã³ã¼ã«ããã¯ã¨æ¬¡ã®ã³ã¼ã«ããã¯ã¯çµããªãã¦ããï¼Unicodeä¸ã«åºå®ãããæåã³ã¼ã
@@ -3573,12 +3683,12 @@ end
%<*en>
The argument \verb+shift_info+ and the returned \verb+new_shift_info+ have
\texttt{down} and \texttt{left} fields, which are the amount of shifting
- down/left the character in a scaled-point.
+ down/left the character in a scaled point.
%
%<*ja>
å¼æ° \verb+shift_info+ ã¨æ»ãå¤ã® \verb+new_shift_info+ ã¯
\texttt{down}ã¨\texttt{left}ã®ãã£ã¼ã«ããæã¡ï¼ãããã®å¤ã¯
-æåã®ä¸ï¼å·¦ã¸ã®ã·ããéï¼ã¹ã±ã¼ã«ãã»ãã¤ã³ãåä½ï¼ã§ããï¼
+æåã®ä¸ï¼å·¦ã¸ã®ã·ããéï¼spåä½ï¼ã§ããï¼
%
%<*en>
@@ -3752,7 +3862,11 @@ Set a penalty which is inserted automatically after the character ,
to prevent a line ends with this character.
\pTeX\ has following restrictions on \verb+\prebreakpenalty+ and \verb+\postbreakpenalty+,
but they don't exist in \LuaTeX-ja:
-\dots
+\begin{itemize}
+ \item Both \verb+\prebreakpenalty+ and \verb+\postbreakpenalty+ cannot be set
+for the same character.
+ \item We can set \verb+\prebreakpenalty+ and \verb+\postbreakpenalty+ up to 256~characters.
+\end{itemize}
%
\item[\Param{jatextfont}\,=\{,\}$^\ast$]
@@ -4021,6 +4135,56 @@ by the following:
\end{itemize}
+\subsection{\texttt{\textbackslash ltjsetkanjiskip}, \texttt{\textbackslash ltjsetxkanjiskip}}
+%<*ja>
+\verb+\ltjsetparameter+ 㨠\verb+\ltjglobalsetparameter+ ã¯ï¼å¼æ°ã常ã«key-valueãªã¹ãã§ã
+ãããï¼ä¸åã®å®è¡ã«æéããããã¨ããé£ç¹ãããï¼ç¹ã«ã¯ã©ã¹ \Pkg{ltjsclasses} ã«ããã¦ã¯ï¼
+ãã©ã³ããµã¤ãºã®è¨å®(\verb+\@setfontsize+)ãã¨ã«æ¯å
+\Param{kanjiskip}ã¨\Param{xkanjiskip}ãè¨å®ãããããï¼
+ããã«ããé度ä½ä¸ãé¡èãªãã®ã¨ãªã£ã¦ããï¼
+
+ããã解決ããããï¼ããå
é¨ã«è¿ãå½ä»¤ã¨ãã¦\
+\verb+\ltjsetkanjiskip{+\verb+}+ ã¨\\
+\verb+\ltjsetxkanjiskip{+\verb+}+\ ã
+ç¨æããï¼ãããã®å®è¡ã®åã«ã¯ï¼\TeX ã® \verb+\globaldefs+ ã®å¤ãåæ ãããããã«\
+\verb+\ltj@setpar@global+\ ã®å®è¡ãå¿
è¦ã¨ãï¼
+\begin{lstlisting}
+\ltj@setpar@global
+\ltjsetkanjiskip{0pt plus .1\zw minus .01\zw}
+\ltjsetxkanjiskip{0.25em plus 0.15em minus 0.06em}
+\end{lstlisting}
+ã¨
+\begin{lstlisting}
+\ltjsetparemeter{%
+ kanjiskip=0pt plus .1\zw minus .01\zw,
+ xkanjiskip=0.25em plus 0.15em minus 0.06em}
+\end{lstlisting}
+ã¯åãæå³ãæã¤ï¼
+%
+%<*en>
+\verb+\ltjsetparameter+ and \verb+\ltjglobalsetparameter+ are slow,
+since their argument is a key-value list.
+This can be a problem in \Pkg{ltjsclasses}, because
+\Param{kanjiskip} and \Param{xkanjiskip} are set in every font resizing commands
+(\verb+\@setfontsize+). To overcome this problem,
+this version of \LuaTeX-ja provides two more internal commands, namely
+\verb+\ltjsetkanjiskip{+\verb+}+ and \verb+\ltjsetxkanjiskip{+\verb+}+.
+
+Note that \verb+\ltj@setpar@global+ command is needed before these two commands
+to reflect \TeX's internal parameter \verb+\globaldefs+.
+\begin{lstlisting}
+\ltj@setpar@global
+\ltjsetkanjiskip{0pt plus .1\zw minus .01\zw}
+\ltjsetxkanjiskip{0.25em plus 0.15em minus 0.06em}
+\end{lstlisting}
+and
+\begin{lstlisting}
+\ltjsetparemeter{%
+ kanjiskip=0pt plus .1\zw minus .01\zw,
+ xkanjiskip=0.25em plus 0.15em minus 0.06em}
+\end{lstlisting}
+have the same meaning.
+%
@@ -4079,7 +4243,7 @@ the beginning of a box and ``ã'', and also between ``ã''~and~``ã¦''.
ããï¼
%
-\begin{LTXexample}
+\begin{LTXexample}[width=0.4\textwidth]
\jfont\g=file:KozMinPr6N-Regular.otf:jfm=test \g
\fbox{\hbox{ãã¦ã\inhibitglue ã¦}}
\inhibitglue\par\noindent ã1
@@ -4162,7 +4326,7 @@ then
\end{verbatim}
does
\begin{quote}
-If the current Japanese font is \verb+\hoge+, \texttt{U+3000}-\texttt{U+30FF}
+If the current Japanese font is \verb+\hoge+, \texttt{U+3000}--\texttt{U+30FF}
and characters in class~1 (ideographic opening brackets)
are typeset by \verb+\piyo+.
\end{quote}
@@ -4195,7 +4359,7 @@ are typeset by \verb+\piyo+.
\ltjdeclarealtfont\hoge\piyo{"3000-"30FF, {-1}-{-1}}
\end{verbatim}
ã¯ã\verb+\hoge+ ãå©ç¨ãã¦ããã¨ãï¼
-\texttt{U+3000}-\texttt{U+30FF}ã¨
+\texttt{U+3000}--\texttt{U+30FF}ã¨
æåã¯ã©ã¹1ï¼éãæ¬å¼§é¡ï¼ä¸ã®æåã ã㯠\verb+\piyo+ ãç¨ããã
ãã¨ãè¨å®ããï¼\verb+{-1}-{-1}+ ã¨ããå¤ãã£ãæå®ã®ä»æ¹ããã¦ããã®ã¯ï¼
æ®éã« \texttt{-1} ã¨æå®ããã®ã§ã¯æ£ãã$-1$ã¨èªã¿åãããªãã¨ãã
@@ -4209,30 +4373,19 @@ are typeset by \verb+\piyo+.
%\subsection{Patch for NFSS2}
%\subsection{NFSS2ã¸ã®ããã}
-\label{ssub-nfsspat}
+\label{ssec-nfsspat}
\begin{figure}[!tb]
-\begin{lstlisting}[numberstyle=\tiny, numbers=left, numbersep=1em]
+\begin{LTXexample}[pos=b]
\DeclareKanjiFamily{JY3}{edm}{}
-\DeclareFontShape{JY3}{edm}{m}{n} {<-> s*IPAexMincho:jfm=ujis}{}
-\DeclareFontShape{JY3}{edm}{m}{green}{<-> s*IPAexMincho:jfm=ujis;color=007F00}{}
-\DeclareFontShape{JY3}{edm}{m}{blue} {<-> s*IPAexMincho:jfm=ujis;color=0000FF}{}
-\DeclareAlternateKanjiFont{JY3}{edm}{m}{n}{JY3}{edm}{m}{green}{"4E00-"67FF,{-2}-{-2}}
-\DeclareAlternateKanjiFont{JY3}{edm}{m}{n}{JY3}{edm}{m}{blue}{ "6800-"9FFF}
-{\kanjifamily{edm}\selectfont
-æ¥æ¬å½æ°ã¯ãæ£å½ã«é¸æãããå½ä¼ã«ããã代表è
ãéãã¦è¡åããâ¦â¦}
-\end{lstlisting}
-\begin{quote}
-\DeclareKanjiFamily{JY3}{edm}{}
-\DeclareFontShape{JY3}{edm}{m}{n} {<-> s*KozMinPr6N-Regular:jfm=ujis}{}
+\DeclareFontShape{JY3}{edm}{m}{n} {<-> s*KozMinPr6N-Regular:jfm=ujis;}{}
\DeclareFontShape{JY3}{edm}{m}{green}{<-> s*KozMinPr6N-Regular:jfm=ujis;color=007F00}{}
\DeclareFontShape{JY3}{edm}{m}{blue} {<-> s*KozMinPr6N-Regular:jfm=ujis;color=0000FF}{}
\DeclareAlternateKanjiFont{JY3}{edm}{m}{n}{JY3}{edm}{m}{green}{"4E00-"67FF,{-2}-{-2}}
\DeclareAlternateKanjiFont{JY3}{edm}{m}{n}{JY3}{edm}{m}{blue}{ "6800-"9FFF}
-
{\kanjifamily{edm}\selectfont
æ¥æ¬å½æ°ã¯ãæ£å½ã«é¸æãããå½ä¼ã«ããã代表è
ãéãã¦è¡åããâ¦â¦}
-\end{quote}
+\end{LTXexample}
%\caption{\texttt{\textbackslash DeclareAlternateKanjiFont} ã®ä½¿ç¨ä¾}
%\caption{An example of \texttt{\textbackslash DeclareAlternateKanjiFont}}
\label{fig:altkanji}
@@ -4242,17 +4395,57 @@ are typeset by \verb+\piyo+.
Japanese patch for NFSS2 in \LuaTeX-ja
is based on \texttt{plfonts.dtx} which plays the same role in \pLaTeXe.
We will describe
-commands which are not described in Subsection~\ref{ssub-chgfnt}.
+commands which are not described in Subsection~\ref{ssec-chgfnt}.
%
%<*ja>
\LuaTeX-jaã®NFSS2ã¸ã®æ¥æ¬èªãããã¯
\pLaTeXe ã§åæ§ã®å½¹å²ãæãã \texttt{plfonts.dtx} ããã¼ã¹ã«ï¼
åæã¨ã³ã³ã¼ãã£ã³ã°ã®ç®¡ççãLuaã§æ¸ããªããããã®ã§ããï¼
-ããã§ã¯\ref{ssub-chgfnt}ç¯ã§è¿°ã¹ã¦ããªãã£ãå½ä»¤ã«ã¤ãã¦
+ããã§ã¯\ref{ssec-chgfnt}ç¯ã§è¿°ã¹ã¦ããªãã£ãå½ä»¤ã«ã¤ãã¦
è¨è¿°ãã¦ããï¼
%
\begin{cslist}%
+\par\smallskip\par\hskip-\leftskip{\bfseries%
+%追å ã®é·ãå¤æ°é
+%additonal dimensions
+}\par\nobreak
+
+%<*en>
+Like \pLaTeXe, \LuaTeX-ja defines the following dimensions
+for information of current Japanese font:
+%
+%<*ja>
+\pLaTeXe ã¨åæ§ã«ï¼\LuaTeX-jaã¯ãç¾å¨ã®åæãã©ã³ãã®æ
å ±ããæ ¼ç´ããé·ãå¤æ°
+%
+{\let\item=\origitem
+\begin{quote}
+ \verb+\cht+~(height), \verb+\cdp+~(depth), \verb+\cHT+~(sum of former two),\\
+ \verb+\cwd+~(width), \verb+\cvs+~(lineskip), \verb+\chs+~(equals to \verb+\cwd+)
+\end{quote}}
+%and its \verb+\normalsize+ version:
+%ã¨ï¼ãã® \verb+\normalsize+ çã§ãã
+{\let\item=\origitem
+\begin{quote}
+ \verb+\Cht+~(height), \verb+\Cdp+~(depth),
+ \verb+\Cwd+~(width), \\\verb+\Cvs+~(equals to \verb+\baselineskip+),
+ \verb+\Chs+~(equals to \verb+\cwd+)%
+%.
+\end{quote}}
+%<*ja>
+ãå®ç¾©ãã¦ããï¼ãªãï¼\verb+\cwd+ 㨠\verb+\zw+ï¼ã¾ã
+\verb+\cHT+ 㨠\verb+\zh+ ã¯ä¸è´ããªãå¯è½æ§ãããï¼ãªããªãï¼
+\verb+\cwd+,~\verb+\cHT+ ã¯ãããã®å¯¸æ³ãã決å®ãããã®ã«å¯¾ãï¼
+\verb+\zw+ 㨠\verb+\zh+ ã¯JFMã«æå®ãããå¤ã«éããªãããã§ããï¼
+%
+%<*en>
+Note that \verb+\cwd+~and~\verb+\cHT+ may differ from \verb+\zw+~and~\verb+\zh+
+respectively.
+On the one hand the former dimensions are determined from the character ``ã'',
+but on the other hand \verb+\zw+~and~\verb+\zh+ are specified by JFM.
+%
+
+
\item[DeclareYokoKanjiEncoding\{\}\{\}\{\}]
%<*en>
@@ -4280,7 +4473,7 @@ In NFSS2 under \LuaTeX-ja, distinction between alphabetic font families
The above 3~commands are just the counterparts for \verb+\DeclareFontEncodingDefaults+ and~others.
%
%<*ja>
-ä¸è¨3ã¤ã®ã³ãã³ãã¯ã¡ããã© \verb+DeclareFontEncodingDefaults+ ãªã©ã«å¯¾å¿ãããã®ã§ããï¼
+ä¸è¨3ã¤ã®ã³ãã³ãã¯ã¡ããã© \verb+\DeclareFontEncodingDefaults+ ãªã©ã«å¯¾å¿ãããã®ã§ããï¼
%
\item[reDeclareMathAlphabet\{\}\{\}\{\}]
@@ -4308,11 +4501,11 @@ The above 3~commands are just the counterparts for \verb+\DeclareFontEncodingDef
\item ,~ã¯æ¢ã«å®ç¾©ããã¦ããªããã°ãªããªãï¼
\verb+\reDeclareMathAlphabet+\\ã®å¾ã«
両å½ä»¤ã®å
容ãåå®ç¾©ãã¦ãï¼ã®å
容ã«ããã¯åæ ãããªãï¼
-\item ,~ã«\verb+\@mathrm+ãªã©ã¨\texttt{@}ãã¤ããå½ä»¤ãæå®ããæã®åä½ã¯ä¿è¨¼ã§ããªãï¼
+\item ,~ã«\verb+\@mathrm+ãªã©ã¨ \texttt{@} ãã¤ããå½ä»¤ãæå®ããæã®åä½ã¯ä¿è¨¼ã§ããªãï¼
\end{itemize}}
%
-\item[DeclareRelationFont\{\}\{\}\{\}\{\}\\
+\item[DeclareRelationFont\{\}\{\}\{\}\{\}\\*
\null\hfill\{\}\{\}\{\}\{\}]
%<*en>
This command sets the ``accompanied'' alphabetic font family (given by the latter 4~arguments)
@@ -4341,14 +4534,39 @@ Change current alphabetic font encoding/family/\dots\ to the `accompanied' alpha
Like \verb+\fontfamily+, \verb+\selectfont+ is required to take an effect.
%
%<*ja>
-ç¾å¨ã®æ¬§æãã©ã³ãã¨ã³ã³ã¼ãã£ã³ã°ï¼ãã¡ããªï¼â¦â¦ ãï¼
+ç¾å¨ã®æ¬§æãã©ã³ãã®ã¨ã³ã³ã¼ãã£ã³ã°ï¼ãã¡ããªï¼â¦â¦ ãï¼
\verb+\DeclareRelationFont+ ã \verb+\SetRelationFont+ ã§æå®ããã
ç¾å¨ã®åæãã©ã³ããã¡ããªã«å¯¾å¿ãããå¾å±æ¬§æããã©ã³ããã¡ããªã«å¤æ´ããï¼
\verb+\fontfamily+ ã®ããã«ï¼æå¹ã«ããããã«ã¯ \verb+\selectfont+ ãå¿
è¦ã§ããï¼
%
\item[adjustbaseline]
-\ldots
+%<*en>
+In \pLaTeXe, \verb+\adjustbaseline+ sets \verb+\tbaselineshift+
+to match the vertical center of ``M'' and that of ``ã'' in vertical typesetting:
+\[
+\text{\ttfamily \textbackslash tbaselineshift} \leftarrow
+\frac{(h_{\text{M}}+d_{\text{M}}) - (h_{\text{ã}}+d_{\text{ã}})}2
+ + d_{\text{ã}} - d_{\text{M}},
+\]
+where $h_{a}$~and~$d_{a}$ denote the height of ``$a$'' and the depth, respectively.
+
+Current \LuaTeX-ja does not support vertical typesetting, so
+this \verb+\adjustbaseline+ has almost no effect.
+%
+%<*ja>
+\pLaTeXe ã§ã¯ï¼\verb+\adjustbaseline+ ã¯ç¸¦æ¸æã«ãMãã¨ãããã®ä¸å¿ç·ãä¸è´ãããããã«ï¼
+\verb+\tbaselineshift+ ãè¨å®ããå½¹å²ãæã£ã¦ããï¼
+\[
+\text{\ttfamily \textbackslash tbaselineshift} \leftarrow
+\frac{(h_{\text{M}}+d_{\text{M}}) - (h_{\text{ã}}+d_{\text{ã}})}2
+ + d_{\text{ã}} - d_{\text{M}},
+\]
+ããã§ï¼$h_{a}$,~$d_{a}$ã¯ããããã$a$ãã®é«ãã»æ·±ãã表ãï¼
+
+ç¾å¨ã®\LuaTeX-jaã¯ç¸¦æ¸ãããµãã¼ããã¦ããªãã®ã§ï¼ãã® \verb+\adjustbaseline+ ã¯
+ã»ã¨ãã©ä½ããã¦ããªãï¼
+%
\item[fontfamily\{\}]
%<*en>
@@ -4421,7 +4639,7 @@ In this case, the default family for font substitution is used for
\item[DeclareAlternateKanjiFont\{\}\{\}\{\}\{\}\\
\null\hfill\{\}\{\}\{\}\{\}\{\}]
%<*ja>
-\ref{ssec-altfont}ç¯ã®
+\ref{ssec-altfont}ç¯ã®\
\verb+\ltjdeclarealtfont+ ã¨åæ§ã«ï¼ååã®4å¼æ°ã®åæãã©ã³ãï¼åºåºãã©ã³ãï¼ã®ãã¡ä¸ã®æåã
第5--第8å¼æ°ã®åæãã©ã³ãã使ã£ã¦çµãããã«æ示ããï¼ä½¿ç¨ä¾ãå³\ref{fig:altkanji}ã«è¼ããï¼
@@ -4488,7 +4706,7 @@ Avant Garde (OT1/pag/m/n) ã«å¤ãã£ã¦ãããã¨ããããï¼
\section{Addons}
\LuaTeX-ja has several addon packages.
These addons are written as \LaTeX\ packages, but
-\Pkg{luatexja-otf}~and~\Pkg{luatexja-adjust} can be loaded in plain \LuaTeX
+\Pkg{luatexja-otf} and~\Pkg{luatexja-adjust} can be loaded in plain \LuaTeX\
by \verb+\input+.
%
%<*ja>
@@ -4499,6 +4717,7 @@ by \verb+\input+.
\verb+\input+ ã§èªã¿è¾¼ã¿å¯è½ã§ããï¼
%
\subsection{\texttt{luatexja-fontspec.sty}}
+\label{ssec-fontspec2}
%<*en>
As described in Subsection~\ref{ssec-fontspec}, this optional package
provides the counterparts for several commands defined in the
@@ -4521,7 +4740,7 @@ the commands of Japanese version:
\item[JFM-var=] \
%<*en>
-These 3 font features correspond to \texttt{cid}, \texttt{jfm} and
+These 3 keys 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.
@@ -4538,13 +4757,67 @@ See Subsections~\ref{ssec-jfont} and \ref{ssec-psft} for details.
\item[NoEmbed]
%<*en>
-By specifying this font feature, one can use ``name-only'' Japanese font which
+By specifying this key, 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}ç¯ãåç
§ï¼
%
+
+
+\begin{figure}[!tb]
+\begin{LTXexample}[pos=b]
+\jfontspec[
+ AltFont={
+ {Range="4E00-"67FF, Color=007F00},
+ {Range="6800-"9EFF, Color=0000FF},
+ {Range="3040-"306F, Font=KozGoPr6N-Regular},
+ }
+]{KozMinPr6N-Regular}
+æ¥æ¬å½æ°ã¯ãæ£å½ã«é¸æãããå½ä¼ã«ããã代表è
ãéãã¦è¡åãããããã¨ãããã®åå«ã®ããã«ã
+諸å½æ°ã¨ã®ååã«ããææã¨ãããå½å
¨åã«ããã¤ã¦èªç±ã®ããããæµæ²¢ã確ä¿ããâ¦â¦
+\end{LTXexample}
+%\caption{\texttt{AltFont} ã®ä½¿ç¨ä¾}
+%\caption{An example of \texttt{AltFont}}
+\label{fig:altkanji-fontspec}
+\end{figure}
+
+\item[AltFont]\
+
+%<*en>
+As \verb+\ltjdeclarealtfont+~(Subsection~\ref{ssec-altfont}) and
+\verb+\DeclareAlternateKanjiFont+~(Subsection~\ref{ssec-nfsspat}),
+with this key, one can typeset some Japanese characters
+by a different font and/or using different features.
+The \texttt{AltFont} feature takes a comma-separated list of comma-separated lists,
+as the following:
+%
+%<*ja>
+\ref{ssec-altfont}ç¯ã® \verb+\ltjdeclarealtfont+ ãï¼
+\ref{ssec-nfsspat}ç¯ã® \verb+\DeclareAlternateKanjiFont+ ã¨åæ§ã«ï¼
+ãã®ãã¼ãç¨ããã¨ä¸é¨ã®æåãç°ãªã£ããã©ã³ããfont featureã使ã£ã¦çµããã¨ãã§ããï¼
+\texttt{AltFont} ã«æå®ããå¤ã¯ï¼æ¬¡ã®ããã«äºéã®ã³ã³ãåºåããªã¹ãã§ããï¼
+%
+\begin{lstlisting}[escapechar=\#]
+AltFont = {
+ ...
+ { Range=#\LARG range>#, #\LARG features>#},
+ { Range=#\LARG range>#, Font=#\LARG font~name>#, #\LARG features># },
+ { Range=#\LARG range>#, Font=#\LARG font~name># },
+ ...
+}
+\end{lstlisting}
+%<*en>
+Each sublist should have the \texttt{Range} key
+(sublist which does not contain \texttt{Range} key is simply ignored).
+A demonstrartion is shown in Figure~\ref{fig:altkanji-fontspec}.
+%
+%<*ja>
+åé¨åãªã¹ãã«ã¯ \texttt{Range} ãã¼ãå¿
é ã§ããï¼å«ã¾ããªãé¨åãªã¹ãã¯
+åç´ã«ç¡è¦ãããï¼ï¼
+æå®ä¾ã¯å³\ref{fig:altkanji-fontspec}ã«ç¤ºããï¼
+%
\end{list}
%<*ja>
@@ -4553,7 +4826,6 @@ will not be embedded in the output PDF file. See Subsection~\ref{ssec-psft}.
%
-
\subsection{\texttt{luatexja-otf.sty}}
\label{ssec-ltjotf}
%<*en>
@@ -4764,7 +5036,7 @@ for making the difference obvious.
%<*en>
-...
+(see Japanese version of this manual)
%
%<*ja>
\pTeX ã§ã¯ï¼è¡é·èª¿æ´ã«ããã¦åªå
度ã®æ¦å¿µãåå¨ããªãã£ãããï¼å³
@@ -4795,18 +5067,116 @@ for making the difference obvious.
\item[\textbackslash ltjenableadjust]
åªå
é ä½ä»ãã®è¡é·èª¿æ´ãæå¹åããï¼
-\item[\textsf{adjust}=] \verb+\ltjsetparameter+ ã§æå®å¯è½ãªè¿½å ãã©ã¡ã¼ã¿ã§ããï¼
+\item[\textsf{adjust}\,=] \verb+\ltjsetparameter+ ã§æå®å¯è½ãªè¿½å ãã©ã¡ã¼ã¿ã§ããï¼
ã\textit{true}ãªã \verb+\ltjenableadjust+ ãï¼
ããã§ãªããã° \verb+\ltjdisableadjust+ ãå®è¡ããï¼
-
-
\end{list}
+%
+\subsection{\texttt{luatexja-ruby.sty}}
+%<*en>
+This addon package provides functionality of ``ruby'' (\emph{furigana}) annotations
+using callbacks of \LuaTeX-ja.
+There is no detailed manual of \Pkg{luatexja-ruby.sty} in English.
+(Japanese manual is another PDF file, \url{luatexja-ruby.pdf}.)
+%
+%<*ja>
+ãã®è¿½å ããã±ã¼ã¸ã¯ï¼\LuaTeX-jaã®æ©è½ãå©ç¨ããã«ãï¼æ¯ãä»®åï¼ã®çµçæ©è½ãæä¾ããï¼
+åå¾ã®æå種ã«å¿ããåå¾ã¸ã®èªåé²å
¥ãï¼
+è¡é å½¢ã»è¡ä¸å½¢ã»è¡æ«å½¢ã®èªåçãªä½¿ãåããç¹å¾´ã§ããï¼
+ã«ãçµçã«è¨å®å¯è½ãªé
ç®ã注æäºé
ãå¤ãããï¼æ¬è¿½å ããã±ã¼ã¸ã®è©³ç´°ãªèª¬æã¯
+使ç¨ä¾ã¨å
±ã« \url{luatexja-ruby.pdf}\ ã¨ããå¥ãã¡ã¤ã«ã«è¼ãã¦ããï¼
+ãã®ç¯ã§ã¯ç°¡åãªä½¿ç¨æ¹æ³ã®ã¿è¿°ã¹ãï¼
+%
+\begin{description}
+%<*en>
+ \item[Group-ruby]
+By default, ruby characters (the second argument of \verb+\ruby+)
+are attached to base characters (the first argument), as one object.
+This type of ruby is called \emph{group-ruby}.
+%
+%<*ja>
+ \item[ã°ã«ã¼ãã«ã] æ¨æºã§ã¯ã°ã«ã¼ãã«ãã®å½¢ã§çµã¾ããï¼ç¬¬1å¼æ°ã«è¦ªæåï¼
+第2å¼æ°ã«ã«ããè¨è¿°ããï¼
+%
+\begin{LTXexample}[width=0.3\textwidth]
+æ±è¥¿ç·\ruby{å¦å
¸}{ã¿ããã§ã}é§
ã¯â¦â¦\\
+æ±è¥¿ç·ã®\ruby{å¦å
¸}{ã¿ããã§ã}é§
ã¯â¦â¦\\
+æ±è¥¿ç·ã®\ruby{å¦å
¸}{ã¿ããã§ã}ã¨ããé§
â¦â¦\\
+æ±è¥¿ç·\ruby{è西}{ããã}é§
ã¯â¦â¦
+\end{LTXexample}
+%<*en>
+As the above example, ruby hangover is allowed on the Hiragana before/after
+its base characters.
+%
+% ãã®ä¾ã®ããã«ï¼æ¨æºã§ã¯åå¾ã®å¹³ä»®åã«ã«ãå
¨è§ã¾ã§ãããããã«ãªã£ã¦ããï¼
+%<*en>
+\item[Mono-ruby]
+To attach ruby characters to each base characters (\emph{mono-ruby}),
+one should use \verb+\ruby+ multiple times:
+%
+%<*ja>
+ \item[ã¢ãã«ã] 親æåã1æåã«ããã¨ã¢ãã«ãã¨ãªãï¼
+2æå以ä¸ã®çèªãã¢ãã«ãã®å½¢ã§çµã¿ããå ´åã¯ï¼é¢åã§ã
+ãã®æ°ã ã \verb+\ruby+ ãæ¸ãå¿
è¦ãããï¼
+%
+\begin{LTXexample}[width=0.3\textwidth]
+æ±è¥¿ç·ã®\ruby{å¦}{ã¿ãã}\ruby{å
¸}{ã§ã}é§
ã¯â¦â¦
+\end{LTXexample}
+
+%<*en>
+ \item[Jukugo-ruby]
+Vertical bar~\verb+|+ denotes a boundary of \emph{groups}.
+%
+%<*ja>
+ \item[çèªã«ã] å¼æ°å
ã®ç¸¦æ£ \verb+|+ ã¯ã°ã«ã¼ãã®åºåãã表ãï¼
+è¤æ°ã°ã«ã¼ãã®ã«ãã¯çèªã«ãã¨ãã¦çµã¾ããï¼
+\cite{x4051}ã«ããããã«ï¼
+ã©ã®ã°ã«ã¼ãã§ãã親æåãã対å¿ããã«ã以ä¸ã®é·ãã®å ´åã¯
+åã°ã«ã¼ããã¨ã«ï¼ããã§ãªãã¨ãã¯å
¨ä½ãã¾ã¨ãã¦1ã¤ã®ã°ã«ã¼ãã«ãã¨ãã¦çµã¾ããï¼
+\cite{jlreq}ã§è¦å®ããã¦ããçµã¿æ¹ã¨ã¯ç°ãªãã®ã§æ³¨æï¼
+%
+\begin{LTXexample}
+\ruby{å¦|å
¸}{ã¿ãã|ã§ã}\
+\ruby{è|西}{ã|ãã}\
+\ruby{ç¥æ¥½|å}{ããã|ãã}
+\end{LTXexample}
+%<*en>
+If there are multiple groups in one \verb+\ruby+ call,
+A linebreak between two groups is allowed.
+%
+% è¤æ°ã«ãã§ã¯ã°ã«ã¼ãã¨ã°ã«ã¼ãã®éã§æ¹è¡ãå¯è½ã§ããï¼
+\begin{LTXexample}[width=0.3\textwidth]
+\vbox{\hsize=6\zw\noindent
+ \hbox to 2.5\zw{}\ruby{京|æ¥|è²|ç°}{ãã|ããã|ãã¾|ã}
+ \hbox to 2.5\zw{}\ruby{京|æ¥|è²|ç°}{ãã|ããã|ãã¾|ã}
+ \hbox to 3\zw{}\ruby{京|æ¥|è²|ç°}{ãã|ããã|ãã¾|ã}
+}
+\end{LTXexample}
+\end{description}
+%<*en>
+If the width of ruby characters are longer than that of base characters,
+\verb+\ruby+ automatically selects the appropriate form
+among the line-head form, the line-middle form, and the line-end form.
+%
+%<*ja>
+ã¾ãï¼ã«ãæåã®ã»ãã親æåãããé·ãå ´åã¯ï¼èªåçã«
+è¡é å½¢ã»è¡ä¸å½¢ã»è¡æ«å½¢ã®ããããé©åãªãã®ãé¸æããï¼
%
+\begin{LTXexample}[width=0.3\textwidth]
+\vbox{\hsize=8\zw\noindent
+\null\kern3\zw â¦â¦ã\ruby{æ¿}{ãããã¾ã}ã
+ \kern1\zw â¦â¦ã\ruby{æ¿}{ãããã¾ã}ã\\
+\null\kern5\zw â¦â¦ã\ruby{æ¿}{ãããã¾ã}ã
+}
+\end{LTXexample}
+
+
+
@@ -4859,17 +5229,25 @@ This \verb+\jH+ is the same \verb+\dimen+ register as \verb+\jQ+.
\dim{ltj@zw}
%<*en>
A temporal register for the ``full-width'' of current Japanese font.
+The command \verb+\zw+ sets this register to the correct value, and
+``return'' this register itself.
%
%<*ja>
ç¾å¨ã®åæãã©ã³ãã®ãå
¨è§å¹
ããä¿æããä¸æã¬ã¸ã¹ã¿ï¼
+\verb+\zw+ å½ä»¤ã¯ï¼ãã®ã¬ã¸ã¹ã¿ãé©åãªå¤ã«è¨å®ããå¾ï¼
+ããã®ã¬ã¸ã¹ã¿èªä½ãè¿ããï¼
%
\dim{ltj@zh}
%<*en>
A temporal register for the ``full-height'' (usually the sum of height of imaginary body and its depth) of current Japanese font.
+The command \verb+\zh+ sets this register to the correct value, and
+``return'' this register itself.
%
%<*ja>
ç¾å¨ã®åæãã©ã³ãã®ãå
¨è§é«ããï¼é常ï¼é«ãã¨æ·±ãã®åï¼ãä¿æããä¸æã¬ã¸ã¹ã¿ï¼
+\verb+\zh+ å½ä»¤ã¯ï¼ãã®ã¬ã¸ã¹ã¿ãé©åãªå¤ã«è¨å®ããå¾ï¼
+ããã®ã¬ã¸ã¹ã¿èªä½ãè¿ããï¼
%
\attr{jfam}
@@ -4939,15 +5317,15 @@ assigned to this attribute:
\begin{description}
\item[\textit{italic} (1)]
%<*en>
-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{\hyperlink{fld:xks}{xkanjiskip}}.
+Kerns from italic correction (\verb+\/+), or from kerning information of a Japanese font.
+These kerns are ``ignored'' in the insertion process of \textbf{JAglue},
+unlike explicit \verb+\kern+.
%
%<*ja>
-ã¤ã¿ãªãã¯è£æ£(\verb+\/+)ã«ããã°ã«ã¼ï¼ãã®ã°ã«ã¼ã®ç±æ¥ã®åºå¥ï¼\verb+\kern+ ã
-\hskip\ltjgetparameter{xkanjiskip}
-\verb+\/+ ãï¼ã¯\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥éç¨ã«ããã¦å¿
è¦ã«ãªãï¼
+ã¤ã¿ãªãã¯è£æ£(\verb+\/+)ã«ããã«ã¼ã³ï¼
+ã¾ã㯠\Pkg{luaotfload} ã«ãã£ã¦æ¿å
¥ããããã©ã³ãã®ã«ã¼ãã³ã°æ
å ±ç±æ¥ã®ã«ã¼ã³ï¼
+ãããã®ã«ã¼ã³ã¯é常㮠\verb+\kern+ ã¨ã¯ç°ãªãï¼
+\textbf{JAglue}ã®æ¿å
¥å¦çã«ããã¦ã¯ééããï¼
%
\item[\textit{packed} (2)]
@@ -4957,7 +5335,7 @@ Glues from an italic correction
Penalties inserted for the word-wrapping process (\emph{kinsoku shori}) of Japanese characters.
%
%ç¦åå¦çã®ããã«æ¿å
¥ãããããã«ãã£ï¼
-\item[$(\textit{from\_jfm}-2)$--$(\textit{from\_jfm}+2)$~(4--8)]
+\item[\mathversion{bold}$(\textit{from\_jfm}-2)$--$(\textit{from\_jfm}+2)$~(4--8)]
%Glues/kerns from JFM.
%JFMç±æ¥ã®ã°ã«ã¼ï¼ã«ã¼ã³ï¼
\item[\textit{kanji\_skip}~(9), \textit{kanji\_skip\_jfm}~(10)]
@@ -6042,9 +6420,9 @@ x+y&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{both};
ä¾ãã°ï¼
\begin{verbatim}
-\jfont\foo=psft:Ryumin-Light:jfm=ujis
-\jfont\bar=psft:GothicBBB-Medium:jfm=ujis
-\jfont\baz=psft:GothicBBB-Medium:jfm=ujis;jfmvar=piyo
+\jfont\foo=psft:Ryumin-Light:jfm=ujis;-kern
+\jfont\bar=psft:GothicBBB-Medium:jfm=ujis;-kern
+\jfont\baz=psft:GothicBBB-Medium:jfm=ujis;jfmvar=piyo;-kern
\end{verbatim}
ã¨ãã3ãã©ã³ããèãï¼
\[
@@ -6112,6 +6490,7 @@ $a$ã¯ç¦åå¦çç¨ã«\textit{Nq}ã¨\textit{Np}ã®éã«å ããããã¹ã
%\caption{Summary of JFM glues}
%\caption{JFM ã°ã«ã¼ã®æ¦è¦}
\label{tab-jfmglue}
+%\medskip
\begin{center}
\small
\begin{tabular}{c|cccccc}
@@ -6272,11 +6651,11 @@ If this attempt fails, \LuaTeX-ja use the method ``\textsf{\Param{kanjiskip}~[K]
(a)é¨åã«ããã«ãã£ãåå¨ãã¦ããªãå ´åï¼
\LuaTeX-ja ã¯\textit{Nq}ã¨\textit{Np}ã®éã®è¡åå²ãå¯è½ã«ãããã¨ããï¼
-ãã®ããã«ï¼ä»¥ä¸ã®å ´åã«$a$ããã¤\textit{penalty\_node}ãä½ã£ã¦
+ãã®ããã«ï¼ä»¥ä¸ã®ããããã®å ´åã«$a$ããã¤\textit{penalty\_node}ãä½ã£ã¦
ãå³ç©ºç½ãã®ï¼ããæªå®ç¾©ãªã\textit{Np}ã®ï¼ç´åã«æ¿å
¥ããï¼
\begin{itemize}
\item ãå³ç©ºç½ããã°ã«ã¼ã§ãªãï¼ã«ã¼ã³ãæªå®ç¾©ï¼ã§ããã¨ãï¼
-%\item ã左空ç½ããã«ã¼ã³ã¨ãã¦ãã£ã¡ãå®ç¾©ããã¦ããæï¼
+\item $a\neq 0$ã®ã¨ãã¯ï¼ãå³ç©ºç½ããã°ã«ã¼ã§ãã£ã¦ã\textit{penalty\_node}ãä½ãï¼
\end{itemize}
\item[P-suppress~{[PS]}]
@@ -6437,7 +6816,7 @@ Consider the following input:
ä¾ãã°æ¬¡ã®ãããªå
¥åãèãããï¼
%
\begin{verbatim*}
-\begin{lstlisting}[escapechar=`\#]
+\begin{lstlisting}[escapechar=\#]
#\ã»ã xã´ã#
\end{lstlisting}
\end{verbatim*}
@@ -6468,7 +6847,7 @@ instead of ``\verb+\ã»ã+''.
ãããï¼\Pkg{lltjp-listings} ãå®éã«ãã¼ããããã®ã¯ \verb+\begin{document}+\
ã®ã¨ããã§ããã®ã§ï¼ããªã¢ã³ãã«å
ã§ã¯ãããã®è¿½å ãã¼ã¯ä½¿ç¨ã§ããªãï¼
-\texttt{ivsraw}ã¯ï¼ãã¼ã«å¤ã®å¤ãã¨ããã¼ã§ããï¼æ¨æºã§ã¯falseã§ããï¼
+\texttt{vsraw}ã¯ï¼ãã¼ã«å¤ã®å¤ãã¨ããã¼ã§ããï¼æ¨æºã§ã¯falseã§ããï¼
\begin{itemize}
\item trueã®å ´åã¯ï¼ç°ä½åã»ã¬ã¯ã¿ã¯ãç´åã®æåã«ç¶ãã¦ãåºåãããï¼
ãããIVSãµãã¼ãï¼\ref{ssec-ltjotf}ç¯ï¼ãæå¹ã«ãªã£ã¦ããå ´åã¯ï¼
@@ -6500,7 +6879,9 @@ instead of ``\verb+\ã»ã+''.
}}}
\lstset{vscmd=\IVSB}
\end{lstlisting}
-\end{itemize}
+\end{itemize}
+æ¢å®ã®åºåå½ä»¤ã復活ããããå ´åã¯\ \verb+vsraw=\ltjlistingsvsstdcmd+\
+ã¨ããã°è¯ãï¼
%
%\subsection{Class of Characters}
@@ -6801,7 +7182,7 @@ JFMä¸ã«ããæåã¯ã©ã¹$n$ã®å®ç¾©ã®
%
%<*ja>
-\section{IVS対å¿ï¼æªå®ï¼}
+\section{IVS対å¿}
\verb+luatexja.otf.enable_ivs()+ ãå®è¡ãï¼IVS対å¿ãæå¹ã«ããç¶æ
ã§ã¯ï¼
\verb+pre_linebreak_filter+ ã \verb+hpack_filter+ ã³ã¼ã«ããã¯ã«ã¯
次ã®4ã¤ãé ã«å®è¡ãããç¶æ
ã¨ãªã£ã¦ããï¼
@@ -6845,6 +7226,7 @@ OpenTypeãã©ã³ãã§ãTrueTypeãã©ã³ãã§ãIVSæ
å ±ãæ ¼ç´ããã¦
%%% to_table ã使ããªããããã¨ã§ï¼ã¡ã¢ãªä½¿ç¨éã¯æ¸ã£ã
IVSæ
å ±ããã£ãã·ã¥ã«ä¿åãããã¨ã§2åç®ä»¥éã®å®è¡æéãç¯ç´ãã¦ããï¼
+
\section{è¤æ°ãã©ã³ãã®ãåæãï¼æªå®ï¼}
\section{\LuaTeX-jaã«ããããã£ãã·ã¥}
@@ -6997,7 +7379,7 @@ are created or updated.
\item[save\_cache\_luc(, {[, ]})]\
Same as \texttt{save\_cache}, except that only the binary cache is updated.
-The third argument is not usually given.
+The third argument is not usually given.
But if this is given, it is treated as a string representation of .
\item[load\_cache(, )]
@@ -7015,6 +7397,40 @@ Hence, the return value of \texttt{load\_cache} is non-nil,
if and only if the updated cache is found.
\end{list}
%
+%<*ja>
+\subsection{å
é¨å½ä»¤}
+\LuaTeX-jaã«ããããã£ãã·ã¥ç®¡çã¯ï¼\texttt{luatexja.base}~(\texttt{ltj-base.lua})ã«
+å®è£
ãã¦ããï¼ä»¥ä¸ã®3é¢æ°ãå
¬éããã¦ããï¼
+ããã§ï¼ã¯ä¿åãããã£ãã·ã¥ã®ãã¡ã¤ã«åã\emph{æ¡å¼µåãªãã§}æå®ããï¼
+\begin{list}{}%
+{\def\makelabel#1{\ttfamily#1}}
+\item[save\_cache(, )]
+nilã§ãªãããã£ãã·ã¥ã«ä¿åããï¼
+ããã¹ãå½¢å¼ã®\texttt{.lua}ã®ã¿ãªããï¼
+ãã®ãã¤ããªçãä½æ/æ´æ°ãããï¼
+
+\item[save\_cache\_luc(, {[, ]})]\
+
+\texttt{save\_cache}ã¨åæ§ã ãï¼ãã¤ããªãã£ãã·ã¥ã®ã¿ãæ´æ°ãããï¼
+第3å¼æ°ãä¸ããããå ´åï¼ããã
+ã®æååå表ç¾ã¨ãã¦ä½¿ç¨ããï¼
+ãã®ããï¼ã¯æ®éã¯æå®ããªããã¨ã«ãªãã ããï¼
+
+\item[load\_cache(, )]
+ãã£ãã·ã¥ãèªã¿è¾¼ãï¼
+ã¯1å¼æ°ï¼ãã£ãã·ã¥ã®ä¸èº«ï¼ãã¨ãé¢æ°ã§ããï¼
+ãã®æ»ãå¤ã¯ããã£ãã·ã¥ã®æ´æ°ãå¿
è¦ããã©ããã示ããã¼ã«å¤ã§ãªãã¨ãããªãï¼
+
+\texttt{load\_cache}ã¯ï¼ã¾ããã¤ããªãã£ãã·ã¥\texttt{.\{luc|lub\}}ã
+èªã¿ããï¼ãããã®å
容ããæ°ãããï¼ã¤ã¾ãã®è©ä¾¡çµæã \texttt{false} ãªã
+\texttt{load\_cache}ã¯ãã®ãã¤ããªãã£ãã·ã¥ã®ä¸èº«ãè¿ãï¼
+ãããã¤ããªãã£ãã·ã¥ãè¦ã¤ãããªãã£ããï¼ãå¤ãããããªãã°ããã¹ãç
+ \texttt{.lua}ãèªã¿è¾¼ã¿ï¼ãã®å¤ãè¿ãï¼
+
+以ä¸ããï¼\texttt{load\_cache}èªä½ãnilã§ãªãå¤ãè¿ãã®ã¯ï¼ã¡ããã©ãæ°ããããã£ãã·ã¥ã
+è¦ã¤ãã£ãå ´åã§ããï¼
+\end{list}
+%
\begin{thebibliography}{99}
\addcontentsline{toc}{section}{\refname}