X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=doc%2Fluatexja.dtx;h=617b84a9bfc31eecbf75db5c6c3f2f15170cf952;hb=d177010c46e52e722b4752eded1ae4a6807953df;hp=c7a853059c0ac0a2bb986c839c13d45aac6acd0d;hpb=be825b005d82b3d837afcf4185b422b1de4561cc;p=luatex-ja%2Fluatexja.git
diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx
index c7a8530..617b84a 100644
--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -482,7 +482,7 @@ Japanese characters in discretionary break (\cs{discretionary}) is not supported
By default, \LuaTeX-ja uses Japanese fonts to typeset Greek and Cyrillic letters,
To change this behavior,
put \verb!\ltjsetparameter{jacharrange={-2,-3}}! in the preamble.
- For the detailed description, see Subsection~\ref{ssec-setrange}.
+ For the detailed description, see Subsection~\ref{ssec:setrange}.
From version~20150906.0, characters which belongs both ISO~8859-1 and JIS~X~0208,
such as \P~and~\S, are now typeset in alphabetic fonts.
@@ -499,7 +499,7 @@ without the \cs{fontspec} (and~\Pkg{luatexja-fontspec}) package.
\end{lstlisting}
ãå
¥ããã¨
ä¸è¨ç¨®é¡ã®æåã¯æ¬§æãã©ã³ããç¨ãã¦çµã¾ããããã«ãªãï¼
- 詳ãã説æã¯\ref{ssec-setrange}ç¯ãåç
§ãã¦ã»ããï¼
+ 詳ãã説æã¯\ref{ssec:setrange}ç¯ãåç
§ãã¦ã»ããï¼
ã¾ãï¼\P,~\S ã¨ãã£ãISO~8859-1ã®ä¸ä½é åã¨JIS~X~0208ã®å
±éé¨åã®æåã¯
ãã¼ã¸ã§ã³20150906.0ããæ¨æºã§æ¬§ææ±ãã¨ãªã£ãï¼\LaTeXe\ 2017/01/01以éã§ã¯
@@ -524,11 +524,11 @@ In this document, the following terms and notations are used:
%<*en>
\item Characters are classified into following two types.
Note that the classification can be customized by a user
- (see Subsection~\ref{ssec-setrange}).
+ (see Subsection~\ref{ssec:setrange}).
%
%<*ja>
\item æåã¯æ¬¡ã®2種é¡ã«åããããï¼ãã®é¡å¥ã¯åºå®ããã¦ãããã®ã§ã¯ãªãï¼ã¦ã¼ã¶ãå¾ããå¤æ´å¯è½ã§ãã
- ï¼\ref{ssec-setrange}ç¯ãåç
§ï¼ï¼
+ ï¼\ref{ssec:setrange}ç¯ãåç
§ï¼ï¼
%
\begin{itemize}
%<*en>
@@ -874,7 +874,7 @@ and finally delete the temporary directory.
%\subsection{Using in plain \TeX}
%\subsection{plain \TeX ã§ä½¿ã}
-\label{ssec-plain}
+\label{ssec:plain}
%To use \LuaTeX-ja in plain \TeX, simply put the following at the beginning of the document:
%\LuaTeX-jaã plain \TeX ã§ä½¿ãããã«ã¯ï¼åã«æ¬¡ã®è¡ãã½ã¼ã¹ãã¡ã¤ã«ã®åé ã«è¿½å ããã°ããï¼
@@ -923,11 +923,11 @@ and finally delete the temporary directory.
\begin{itemize}
%<*en>
\item With \texttt{luatexja.cfg}, one can use other fonts
-as ``default'' Japanese fonts (Subsection~\ref{ssec-cfg}).
+as ``default'' Japanese fonts (Subsection~\ref{ssec:cfg}).
%
%<*ja>
\item \texttt{luatexja.cfg} ãç¨ãããã¨ã«ãã£ã¦ï¼æ¨æºåæãã©ã³ãã
-IPAexãã©ã³ãããå¥ã®ãã©ã³ãã«ç½®ãæãããã¨ãã§ããï¼\ref{ssec-cfg}ç¯ãåç
§ï¼
+IPAexãã©ã³ãããå¥ã®ãã©ã³ãã«ç½®ãæãããã¨ãã§ããï¼\ref{ssec:cfg}ç¯ãåç
§ï¼
%
%<*en>
@@ -960,7 +960,7 @@ IPAexãã©ã³ãããå¥ã®ãã©ã³ãã«ç½®ãæãããã¨ãã§ããï¼
%\subsection{Using in \LaTeX}
%\subsection{\LaTeX ã§ä½¿ã}
-\label{ssec-ltx}
+\label{ssec:ltx}
%<*en>
Using in \LaTeXe\ is basically same. To set up the minimal environment
@@ -1086,6 +1086,15 @@ Note that the bold series in both family are same as the medium series of gothic
\renewcommand{\kanjifamilydefault}{\gtdefault}
\end{lstlisting}
+%<*ja>
+\item \pLaTeX ã¨åæ§ã«ï¼\texttt{mc},~\texttt{gt}両ãã¡ããªã«ã¯ãå¾å±æ¬§æãæ¸ä½ãå®ç¾©ããã¦ããï¼
+ ãããã¯\cs{userelfont}ã\cs{selectfont}ï¼ãï¼ãã®ä»ã®ãå®éã«ã
+ ãã©ã³ããå¤æ´ããå½ä»¤ï¼ã®åã§å®è¡ãããã¨ã«ãã使ããã¨ãã§ããï¼
+
+ \pLaTeX ã§ã¯æ¨æºã®æ¬§æãã©ã³ãã¯OT1ã¨ã³ã³ã¼ãã£ã³ã°ã®Computer Modern Roman (\texttt{cmr})%
+ ã§ãã£ããï¼2017年以éã®\LuaLaTeX ã§ã¯TUã¨ã³ã³ã¼ãã£ã³ã°ã®latin Modern Roman (\texttt{lmr})%
+ ã«å¤æ´ããã¦ããï¼ãã®ããï¼å段è½ã§è¿°ã¹ããå¾å±æ¬§æããï¼Latin Modern Romanã«è¨å®ãã¦ããï¼
+%
\end{itemize}
@@ -1204,17 +1213,17 @@ This patch \Pkg{lltjp-geometry} also can be used in \pLaTeX; for the detail, ple
%\section{ãã©ã³ãã®å¤æ´}
\subsection{plain \TeX~and~\LaTeXe}
-\label{ssec-chgfnt}
+\label{ssec:chgfnt}
\paragraph{plain \TeX}
%<*en>
To change Japanese fonts in plain \TeX, you must use the command
-\cs{jfont}~and~\cs{tfont}. So please see Subsection~\ref{ssec-jfont}.
+\cs{jfont}~and~\cs{tfont}. So please see Subsection~\ref{ssec:jfont}.
%
%<*ja>
plain \TeX ã§åæãã©ã³ããå¤æ´ããããã«ã¯ï¼
\pTeX ã®ããã« \cs{jfont} å½ä»¤ã \cs{tfont} å½ä»¤ãç´æ¥ç¨ããï¼
-\ref{ssec-jfont}ç¯ãåç
§ï¼
+\ref{ssec:jfont}ç¯ãåç
§ï¼
%
\paragraph{\LaTeXe\ (NFSS2)}
@@ -1277,7 +1286,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\
alphabetic fonts to \texttt{T1}.
\cs{fontfamily} also changes the current Japanese font family,
the current alphabetic font family, \emph{or both}.
- For the detail, see Subsection~\ref{ssec-nfsspat}.
+ For the detail, see Subsection~\ref{ssec:nfsspat}.
%
%<*ja>
ããã§ï¼\verb+\fontencoding{+\verb+}+ ã¯ï¼å¼æ°ã«ããåæå´ã欧æ
@@ -1286,7 +1295,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\
\texttt{JY3}ã«å¤æ´ãï¼\verb+\fontencoding{T1}+ ã¯æ¬§æãã©ã³ãå´ã
\texttt{T1}ã¸ã¨å¤æ´ããï¼\cs{fontfamily} ãå¼æ°ã«ããåæå´ï¼æ¬§æ
å´ï¼\emph{ãããã¯ä¸¡æ¹}ã®ãã©ã³ããã¡ããªãå¤æ´ããï¼è©³ç´°ã¯
- \ref{ssec-nfsspat}ç¯ãåç
§ãããã¨ï¼
+ \ref{ssec:nfsspat}ç¯ãåç
§ãããã¨ï¼
%
%<*en>
@@ -1310,8 +1319,8 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\
\end{lstlisting}
%<*ja>
ä»®åæ¸ä½ã使ãå ´åãªã©ï¼è¤æ°ã®åæãã©ã³ããçµã¿åããã¦ä½¿ãããå ´åã¯
-\ref{ssec-altfont}ç¯ã® \cs{ltjdeclarealtfont} ã¨ï¼ãã®\LaTeX çã®\
-\cs{DeclareAlternateKanjiFont}ï¼\ref{ssec-nfsspat}ç¯ï¼ãåç
§ããï¼
+\ref{ssec:altfont}ç¯ã® \cs{ltjdeclarealtfont} ã¨ï¼ãã®\LaTeX çã®\
+\cs{DeclareAlternateKanjiFont}ï¼\ref{ssec:nfsspat}ç¯ï¼ãåç
§ããï¼
%
\end{itemize}
@@ -1367,17 +1376,17 @@ $5\in ç´ :=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$.
%<*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}.
+this chapter. For the method, please see Subsection~\ref{ssec:math}.
%
%<*ja>
ã¾ã\LuaTeX-jaããã¸ã§ã¯ãã§ã¯ï¼åææåãèå¥åã¨ãã¦ç¨ãããããã¨ã¯ã»ã¨ãã©ãªã
ã¨èãã¦ããï¼ãããã£ã¦ãã®ç¯ã§ã¯æ°å¼ã¢ã¼ãä¸ã®åæãã©ã³ããå¤æ´ããæ¹æ³ã«ã¤ãã¦ã¯
-è¨è¿°ããªãï¼ãã®æ¹æ³ã«ã¤ãã¦ã¯\ref{ssec-math}ç¯ãåç
§ã®ãã¨ï¼
+è¨è¿°ããªãï¼ãã®æ¹æ³ã«ã¤ãã¦ã¯\ref{ssec:math}ç¯ãåç
§ã®ãã¨ï¼
%
%\subsection{\Pkg{luatexja-fontspec} package}
%\subsection{\Pkg{luatexja-fontspec}ããã±ã¼ã¸}
-\label{ssec-fontspec}
+\label{ssec:fontspec}
%<*en>
To use the functionality of the \Pkg{fontspec} package to Japanese fonts,
it is needed to load the \Pkg{luatexja-fontspec} package in the preamble, as follows:
@@ -1478,13 +1487,23 @@ if and only if this \texttt{\textup{match}} option is specified}.
\item[scale=]
%<*en>
Override the ratio of the font size of Japanese fonts to that of alphabetic fonts.
-The default value is calculated automatically (for~example, about~0.924865 when
- the \Pkg{ltjsarticle} class is used).
+The default value is determined as follows:
+ \begin{itemize}
+ \item The value of \cs{Cjascale} is used, if this control sequence is already defined.
+ \item It is calculated automatically from the current Japanese font at the loading of the
+ package, if \cs{Cjascale} is not defined.
+ \end{itemize}
+\cs{Cjascale} is defined in \Pkg{ltjclasses} and \Pkg{ltjsclasses}.
%
%<*ja>
-欧æã«å¯¾ããåæã®æ¯çã¯ï¼æ¨æºã§ã¯ \Pkg{luatexja-fontspec}èªã¿è¾¼ã¿æã®å欧ææ¯çãã
-èªåè¨ç®ãããï¼ä¾ãã°ï¼\Pkg{ltjsarticle}ã¯ã©ã¹ä½¿ç¨æã«ã¯åæã¯æ¬§æã®ç´0.924865åã¨ãªãï¼ãï¼
-ãããæåã§ä¸æ¸ãããã¨ãã«ä½¿ç¨ããï¼
+欧æã«å¯¾ããåæã®æ¯çãæåã§ä¸æ¸ãããã¨ãã«ä½¿ç¨ããï¼
+æ¨æºã§ã¯
+\begin{itemize}
+ \item \cs{Cjascale}ãå®ç¾©ããã¦ããå ´å
+ \footnote{\LuaTeX-ja ãç¨æãã¦ããã¯ã©ã¹ãã¡ã¤ã«(\Pkg{ltjclasses},~\Pkg{ltjsclasses})ã
+ 使ãå ´åã¯ãã¡ãã«å½ã¦ã¯ã¾ãï¼}ã¯ï¼ãããç¨ããï¼
+ \item \cs{Cjascale}ãæªå®ç¾©ã®å ´åã¯ï¼\Pkg{luatexja-fontspec}èªã¿è¾¼ã¿æã®åæãã©ã³ãããèªåè¨ç®ãããï¼
+\end{itemize}
%
\end{cslist}
@@ -1562,56 +1581,6 @@ The following presets are defined:
%ã¨ãã¦èªã¿è¾¼ã¿ï¼å°å¡æ¸ä½(Pr6N)ã使ããã¨ãæå®ãã¦ããï¼
% which means that Kozuka~Pr6N fonts will be used in this document.
-%<*ja>
-ä¸è¨ã®ããªã»ãã以å¤ã®åæãã©ã³ãè¨å®ã使ãããå ´åï¼æ¬æ¥ã¯
-\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã®æä¾ãã
-\cs{setmainjfont}, \cs{setsansjfont}ã使ã£ã¦èªåã§æå®ããã¹ãã§ããï¼
-\texttt{custom}ãªãã·ã§ã³ã使ããã¨ã§ï¼\Pkg{luatexja-preset}ããã±ã¼ã¸ã®å
é¨ã«ç´æ¥ã¢ã¯ã»ã¹ãã¦
-\begin{lstlisting}
-\usepackage[kozuka-pr6n, % kozuka-pr6n ããªã»ãããåºç¤ã«ãã¦ï¼
- custom={
- mc=SourceHanSerif-Regular, % ææä½ï¼å
¨ã¦ã§ã¤ãï¼
- mc-l=SourceHanSerif-Bold, % ææä½ç´°å
- mc-m=KozMinPr6N-Regular, % ææä½ä¸å
- % mc-bx=KozMinPr6N-Bold, % ææä½å¤ªå
- % gt=HirakakuProN-W3, % ã´ã·ãã¯ä½ï¼å
¨ã¦ã§ã¤ãï¼
- % gt-m=SourceHanSans-Regular, % ã´ã·ãã¯ä½ä¸åï¼deluxe ãªãã·ã§ã³æå®æï¼
- % gt-bx=HiraKakuProN-W6,ular, % ã´ã·ãã¯ä½å¤ªå
- % gt-eb=HiraKakuProN-W6,ular, % ã´ã·ãã¯ä½æ¥µå¤ª
- mg-m=HG Maru Gothic PRO, % 丸ã´ã·ãã¯ä½
- },
- deluxe,expert,jis2004,match,nfssonly
-]{luatexja-preset}
-\end{lstlisting}
-ã®ããã«ãããã¨ãã§ãããï¼\texttt{custom}ãªãã·ã§ã³ã®æ¸å¼ã¯äºåãªãå¤æ´ããããã¨ããã
-ä¸ï¼\texttt{90jis}ã\texttt{JIS2004}ãªãã·ã§ã³ã¨ã®ç¸æ§ããã¾ãè¯ããªãã®ã§æ¨å¥¨ã¯ããªãï¼
-%
-%<*en>
-To use a Japanese font setting which does not match with any presets,
-the legitimate method is to use \cs{setmainjfont}~and~\cs{setsansjfont}
-which are provided by the \Pkg{luatexja-fontspec} package.
-
-One can use the \texttt{custom} option, such as
-\begin{lstlisting}
-\usepackage[kozuka-pr6n, % based on the kozuka-pr6n preset (Kozuka Pr6N),
- custom={
- mc=SourceHanSerif-Regular, % mincho family (all weights)
- mc-l=SourceHanSerif-Bold, % mincho light
- mc-m=KozMinPr6N-Regular, % mincho medium
- % mc-bx=KozMinPr6N-Bold, % mincho bold
- % gt=HirakakuProN-W3, % gothic family (all weights)
- % gt-m=SourceHanSans-Regular, % gothic medium (with deluxe option)
- % gt-bx=HiraKakuProN-W6,ular, % gothic bold
- % gt-eb=HiraKakuProN-W6,ular, % gothic extra bold
- mg-m=HG Maru Gothic PRO, % rounded gothic
- },
- deluxe,expert,jis2004,match,nfssonly
-]{luatexja-preset}
-\end{lstlisting}
-However, we do not recommend this \cs{custom} option;
-the format might change, and this \cs{custom} option is not well-compatible with
-\texttt{90jis}~nor~\cs{jis2004} options.
-%
%<*en>
\subsection{\cs{CID}, \cs{UTF}, and macros in \Pkg{japanese-otf} package}
@@ -1654,13 +1623,13 @@ as an external package \Pkg{luatexja-otf}.
ããã3ãªãã·ã§ã³ã«ã¤ãã¦ã¯ï¼
\Pkg{luatexja-preset} ããã±ã¼ã¸ã«ããªã»ããã使ãæã«ä¸ç·ã«æå®ãããï¼
-ãããã¯å¯¾å¿ããå
容ã\ref{ssec-chgfnt}ç¯ï¼\ref{ssec-nfsspat}ç¯ (NFSS2) ã
-\ref{ssec-fontspec}ç¯ (\Pkg{fontspec}) ã®æ¹æ³ã§æåã§æå®ããå¿
è¦ãããï¼
+ãããã¯å¯¾å¿ããå
容ã\ref{ssec:chgfnt}ç¯ï¼\ref{ssec:nfsspat}ç¯ (NFSS2) ã
+\ref{ssec:fontspec}ç¯ (\Pkg{fontspec}) ã®æ¹æ³ã§æåã§æå®ããå¿
è¦ãããï¼
%
%\subsection{Changing default Japanese fonts}
%\subsection{æ¨æºåæãã©ã³ãã®å¤æ´}
-\label{ssec-cfg}
+\label{ssec:cfg}
%<*en>
If \texttt{luatexja.cfg} can be seen from \LuaTeX, \LuaTeX-ja automatically reads it.
The main use of \texttt{luatexja.cfg} is for changing default Japanese fonts,
@@ -1731,7 +1700,7 @@ parameters, you have to use commands \cs{ltjsetparameter} and
%\subsection{Range of \textbf{JAchar}s}
%\subsection{\textbf{JAchar}ã®ç¯å²}
-\label{ssec-setrange}
+\label{ssec:setrange}
%<*en>
\LuaTeX-ja divides the Unicode codespace \texttt{U+0080}--\texttt{U+10FFFF}
@@ -2197,10 +2166,10 @@ as follows:
\ltjsetparameter{alxspmode={`ã,preonly}, jaxspmode={`\!,postonly}}
\end{lstlisting}
%<*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>
@@ -2400,7 +2369,6 @@ However, the penalty inserted after it is 10 which is the \Param{postbreakpenalt
``ã¢'', not 20.
%
%<*ja>
-\newpage
\subsection{ç¦åå¦çé¢é£ãã©ã¡ã¼ã¿ã¨OpenTypeã®font feature}
ç¦åå¦çã \Param{kanjiskip}, \Param{xkanjiskip} ã®æ¿å
¥ã«é¢é£ãããã©ã¡ã¼ã¿ã®ãã¡
\begin{quote}
@@ -2409,7 +2377,7 @@ However, the penalty inserted after it is 10 which is the \Param{postbreakpenalt
\end{quote}
ã¯ï¼æåã³ã¼ããã¨ã«è¨å®ããéã§ããï¼
-\Pkg{fontspec}ããã±ã¼ã¸ã使ãï¼\ref{ssec-fontspec}ç¯ï¼å ´åãªã©ï¼
+\Pkg{fontspec}ããã±ã¼ã¸ã使ãï¼\ref{ssec:fontspec}ç¯ï¼å ´åãªã©ï¼
å種ã®OpenType featureãé©ç¨ãããã¨ãããã¨æããï¼å段è½ã«è¿°ã¹ããã©ã¡ã¼ã¿é¡ã¯ï¼
\emph{OpenType featureã®é©ç¨åã®æåã³ã¼ãã«ãã£ã¦é©ç¨ãããï¼}
ä¾ãã°ï¼ä»¥ä¸ã®ä¾ã«ããã¦10è¡ç®ã®ãã¢ãã¯ï¼\verb+hwid+ featureã®é©ç¨ã«ããåè§ã«ã¿ã«ãã®ãï½±ã
@@ -2518,7 +2486,7 @@ and \LuaTeX-ja can control these four kinds separately:
\begin{itemize}
\item
\emph{Distinction between \textbf{JAchar} or \textbf{ALchar}}
-is controlled by the character range, see Subsection~\ref{ssec-setrange}.
+is controlled by the character range, see Subsection~\ref{ssec:setrange}.
\item
\emph{Whether the character can be used in a control word}
is controlled by setting \cs{catcode} to 11~(enabled) or 12~(disabled), as usual.
@@ -2535,7 +2503,7 @@ is controlled by the lowermost bit of the \Param{kcatcode} parameter.
åå²ãã¦ããï¼
\begin{description}
\item[欧æ/åæã®åºå¥ (\upTeX)]
-\cs{ltjdefcharrange} ã¨\textsf{jacharrange}ãã©ã¡ã¼ã¿ï¼\ref{ssec-setrange}ç¯ï¼
+\cs{ltjdefcharrange} ã¨\textsf{jacharrange}ãã©ã¡ã¼ã¿ï¼\ref{ssec:setrange}ç¯ï¼
\item[å¶å¾¡ç¶´ä¸ã«ä½¿ç¨å¯ã]
\LuaTeX èªèº«ã® \cs{catcode} ã§ãã
\item[\Param{jcharwidowpenalty}ãæ¿å
¥å¯ã]
@@ -2802,7 +2770,9 @@ We implemented this for debugging purpose.
The fifth column (\emph{utod} direction) corresponds the ``\texttt{tate (math) direction}'' of \pTeX.
Directions can be changed by \cs{yoko},~\cs{tate}, \cs{dtou},~\cs{utod},
-only when the current list is null. Also, the direction of a math formula is changed to
+only when the current list is null.
+These commands cannot be executed in unrestricted horizontal modes, nor math modes.
+The direction of a math formula is changed to
\emph{utod}, when the direction outside the math formula is \emph{tate} (vertical writing).
%
@@ -2816,6 +2786,8 @@ Down-TO-Upã®æå³ãªã®ã ããï¼\cs{dtou} ã使ç¨ããæ©ä¼ã¯ãªãã
çµæ¹åã¯ï¼\cs{yoko},~\cs{tate}, \cs{dtou},~\cs{utod} ããããã使ç¨ãããã¨ã§ï¼
ç¾å¨ä½æä¸ã®ãªã¹ããããã¯ã¹ã空ã®æã«ã®ã¿å¤æ´å¯è½ã§ããï¼
+ãã ãï¼ç¾å¨ã®ã¢ã¼ããéå¶éæ°´å¹³ã¢ã¼ããï¼æä¸ï¼å¥è¡ç«ã¦åããï¼æ°å¼ã¢ã¼ãã§ããã¨ãã«ã¯
+çµæ¹åãå¤æ´ãããã¨ã¯åºæ¥ãªãï¼
ã¾ãï¼ç¸¦çµä¸ã®æ°å¼å
ã®ããã¯ã¹ã¯\pTeX ã¨åãããã«çµæ¹åã \cs{utod} ã¨ãªãï¼
%
@@ -3290,7 +3262,7 @@ overridden by \LuaTeX-ja, using~\verb+\protected\def+.
%\section{ãã©ã³ãã¡ããªãã¯ã¨åæãã©ã³ã}
%\subsection{\cs{jfont}}
%\subsection{\cs{jfont} å½ä»¤}
-\label{ssec-jfont}
+\label{ssec:jfont}
%<*en>
To load a font as a Japanese font (for horizontal direction), you must use the
@@ -3527,7 +3499,7 @@ because of the compatibility with previous versions of \LuaTeX-ja.
\autoref{fig:kern-jfm}ãåç
§ï¼
\begin{itemize}
\item \emph{\cs{jfont} ãï¼
-NFSS2ç¨ã®å½ä»¤ï¼\ref{ssec-chgfnt}ç¯ï¼\ref{ssec-nfsspat}ç¯ï¼ã«ãããæå®ã§ã¯
+NFSS2ç¨ã®å½ä»¤ï¼\ref{ssec:chgfnt}ç¯ï¼\ref{ssec:nfsspat}ç¯ï¼ã«ãããæå®ã§ã¯
ã«ã¼ãã³ã°æ
å ±ã¯æ¨æºã§ä½¿ç¨ãã}ãã¨ã«ãªã£ã¦ããããã§ããï¼
è¨ãæããã°ï¼ã«ã¼ãã³ã°æ
å ±ã使ç¨ããªãè¨å®ã«ããã«ã¯ï¼é¢åã§ã
\begin{lstlisting}
@@ -3660,14 +3632,27 @@ JFMä¸ã«ããã \texttt{kanjiskip\_natural}, \texttt{kanjiskip\_stretch},\
This command admits the same syntax used in \cs{font}~and~\cs{jfont}.
A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont}:
\begin{itemize}
- \item Both \texttt{vert}~and~\texttt{vrt2} Opentype features are activated,
- unless they are explicitly activated or deactivated (as the third line in the example below).
+ \item OpenType Feature~\texttt{vrt2}%
+ \footnote{If the font does not define \texttt{vrt2} feature,
+ use \texttt{vert} instead.} is automatically activated,
+ unless \texttt{vert}~and//or~\texttt{vrt2} are explicitly activated
+ or deactivated (as the second line in the example below).
\begin{lstlisting}
-\tfont\S=file:KozMinPr6N-Regular.otf:jfm=ujisv
- % vert and vrt2 are automatically activated
+\tfont\S=file:KozMinPr6N-Regular.otf:jfm=ujisv % vrt2 is automatically activated
\tfont\T=file:KozMinPr6N-Regular.otf:jfm=ujisv;-vert % vert and vrt2 are not activated
+\tfont\U=file:ipaexm.ttf:jfm=ujisv
+ % vert is automatically activated, since this font does not have vrt2
\end{lstlisting}
- \item ...
+ \item Sometimes \texttt{vert} and/or \texttt{vrt2} are not activated
+ while one specified activation of these feature.
+ This is because the font does not define these features in current combination of
+ script~tag and language~system~identifier.
+
+ In this situation, \LuaTeX-ja performs all replacements which is defined in~\texttt{vert}
+ feature for \emph{some} scripts for \emph{some} languages.
+ \item Furthermore, a glyph is automatically rotated 90~degrees,
+ if it is not replaced by \texttt{vert} feature for \emph{any} script
+ for \emph{any} language, and if it is marked as `r''~or~``Tr'' in UAX~\#50.
\item One have to specify the name of vertical JFM in \texttt{jfm=}.
\LuaTeX-ja ships following vertical JFMs:
\begin{description}
@@ -3685,15 +3670,33 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont
\cs{tfont} ã§å®ç¾©ããã縦çµç¨åæãã©ã³ãã¯ï¼
以ä¸ã®ç¹ã \cs{jfont} ã«ãã横çµç¨åæãã©ã³ãã¨ã¯ç°ãªãï¼
\begin{itemize}
- \item èªåçã« \texttt{vert}, \texttt{vrt2} ã®ä¸¡OpenType featureãæå¹åãããï¼
-ä½ãï¼ä»¥ä¸ã®ä¾ã®3è¡ç®ã«ç¤ºãããã«ï¼æ示çã« \texttt{vert}, \texttt{vrt2}ï¼ã®ããããï¼ã®
-æå¹ã»ç¡å¹ãæå®ããå ´åã¯å¥ã§ããï¼
+ \item æ示çã« \texttt{vert}, \texttt{vrt2}ï¼ã®ããããï¼ã®
+ æå¹ã»ç¡å¹ãæå®ããå ´åãé¤ãï¼èªåçã« OpenType feature~\texttt{vrt2} ã®æå¹åã
+ æå®ããããã®ã¨ã¿ãªããã
+ \footnote{ãããã©ã³ãã\texttt{vrt2}ãå®ç¾©ãã¦ããªãã£ãå ´åï¼ä»£ããã«
+ \texttt{vert}ãç¨ããï¼}ï¼
\begin{lstlisting}
-\tfont\S=file:KozMinPr6N-Regular.otf:jfm=ujisv
- % vert and vrt2 are automatically activated
+\tfont\S=file:KozMinPr6N-Regular.otf:jfm=ujisv % vrt2 is automatically activated
\tfont\T=file:KozMinPr6N-Regular.otf:jfm=ujisv;-vert % vert and vrt2 are not activated
+\tfont\U=file:ipaexm.ttf:jfm=ujisv
+ % vert is automatically activated, since this font does not have vrt2
\end{lstlisting}
- \item \ref{ssec-math}ç¯ã§è¿°ã¹ãï¼æ°å¼ä¸ã®åæãã©ã³ãã«ã¯ç¸¦çµç¨åæãã©ã³ãã¯æå®ã§ããªãï¼
+ \item \texttt{vert}, \texttt{vrt2} ã®å°ãªãã¨ãä¸ã¤ã®æå¹ãæå®ããå ´åã«ãé¢ãããï¼
+ script tagã¨language system identifierã®å¤ã®çµã¿åããã«ãã£ã¦
+ å®éã«ã¯æå¹ã«ãªããªãã£ãå ´åï¼\LuaTeX-jaã¯
+ \begin{quote}
+ ã©ããã®script,~languageã§å®ç¾©ããã¦ãã\texttt{vert}ã«ãã
+ ï¼åä¸ã°ãªãããåä¸ã°ãªãã¸ã®ï¼ç½®æãå
¨é¨é©ç¨ãã
+ \end{quote}
+ ã¨ããæåãåã\footnote{%
+ ä¾ãã°ï¼Windows~7ã«ä»å±ãã¦ããSimHeiã§ã¯ï¼\texttt{vert}ã¯Scriptã\texttt{hani}ï¼
+ Languageã\texttt{CHN}ã¨ããç¶æ³ã§ã®ã¿å®ç¾©ããã¦ããï¼ãããï¼\Pkg{luaotfload}ã§ã¯
+ ãã®script,~languageã®çµã¿åãããæå®ãããã¨ã¯ã§ããªãã®ã§ï¼
+ \Pkg{luaotfload}ãã®ã¾ã¾ã§ã¯\texttt{vert}ãé©ç¨ããããã¨ã¯ã§ããªãï¼
+ }ï¼
+ \item ããã«ï¼ããããªãscript,~languageã§ã\texttt{vert}ã«ããç½®æãããªããã°ãªã
+ ã®ãã¡ï¼UAX~\#50ã§``r''ãããã¯``Tr''ã¨æå®ããã¦ãããã®ã¯90度èªåå転ãããï¼
+ \item \ref{ssec:math}ç¯ã§è¿°ã¹ãï¼æ°å¼ä¸ã®åæãã©ã³ãã«ã¯ç¸¦çµç¨åæãã©ã³ãã¯æå®ã§ããªãï¼
\item \texttt{jfm=}\ ã®é¨åã«ã¯ç¸¦çµç¨JFMãæå®ããï¼
以ä¸ã®ç¸¦çµç¨JFMã\LuaTeX-jaã«ã¯å梱ããã¦ããï¼%ããï¼éãã\autoref{tab-difjfm-tate}ã«ç¤ºããï¼
\begin{description}
@@ -3712,7 +3715,7 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont
%\subsection{Prefix \texttt{psft}}
%\subsection{\texttt{psft}ããªãã£ãã¯ã¹}
-\label{ssec-psft}
+\label{ssec:psft}
%<*en>
Besides ``\texttt{file:}''\ and ``\texttt{name:}''\ prefixes which
are introduced in the \Pkg{luaotfload} package,
@@ -3815,7 +3818,7 @@ Please contact the LuaTeX-ja project team.
%\subsection{Structure of a JFM file}
%\subsection{JFMãã¡ã¤ã«ã®æ§é }
-\label{ssec-jfm-str}
+\label{ssec:jfm-str}
%A JFM file is a Lua script which has only one function call:
%JFMãã¡ã¤ã«ã¯ãã ä¸ã¤ã®é¢æ°å¼ã³åºããå«ãLuaã¹ã¯ãªããã§ããï¼
\begin{lstlisting}
@@ -4273,7 +4276,7 @@ we specify to $0.25/(0.5+0.25)=1/3$.
\begin{cslist}[style=standard]
\item[priority=]
\Pkg{luatexja-adjust}ã«ããåªå
é ä½ä»ã
- è¡é·èª¿æ´ï¼\ref{ssec-adj}ç¯ï¼ã«ããã¦ï¼ãã®ã°ã«ã¼ã®åªå
度ãæå®ããï¼è¨±ãããå¤ã¯ä»¥ä¸ã®éãï¼
+ è¡é·èª¿æ´ï¼\ref{ssec:adj}ç¯ï¼ã«ããã¦ï¼ãã®ã°ã«ã¼ã®åªå
度ãæå®ããï¼è¨±ãããå¤ã¯ä»¥ä¸ã®éãï¼
\begin{description}
\item[ãã¼ã¸ã§ã³1] $-4$ãã$+3$ã®éã®æ´æ°
\item[ãã¼ã¸ã§ã³2以é] $-4$ãã$+3$ã®éã®æ´æ°ã®2ã¤çµ\texttt{\{, \}}ãï¼
@@ -4322,7 +4325,7 @@ An integer in $[-4,3]$ (treated as 0 if omitted), or
a pair of these integers \texttt{\{, \}} (version 2~or~later).
This is
used only in line adjustment with priority by \Pkg{luatexja-adjust}
-(see Subsection~\ref{ssec-adj}). Higher value means the glue is easy to stretch,
+(see Subsection~\ref{ssec:adj}). Higher value means the glue is easy to stretch,
and is also easy to shrink.
\item[kanjiskip\_natural=\textrm{, }%
kanjiskip\_stretch=\textrm{, }kanjiskip\_shrink=]\leavevmode
@@ -4374,7 +4377,7 @@ Hence we have the following result:
åªå
é ä½ä»ãè¡é·èª¿æ´ãæå¹ã§ããï¼ãã¤ç¾å¨ã®æåã¯ã©ã¹ã®æåã
è¡æ«ã«æ¥ãæã«ï¼ãã®æåã¨è¡æ«ã®éã«ã¯æå®ãããå¤ã®ããããã®å¤§ããã®ã«ã¼ã³ã
- æ¿å
¥ãããï¼\autoref{ssec-adj}åç
§ï¼ï¼
+ æ¿å
¥ãããï¼\autoref{ssec:adj}åç
§ï¼ï¼
ãã¼ã¸ã§ã³1ã«ããã
\begin{lstlisting}[escapechar=\$]
@@ -4600,7 +4603,7 @@ JFMå´ã§ä¸é¨ã®å¯¾å¦ãã§ãããã¨ã«ããï¼\Pkg{jsclasses}ã®ãã
%\subsection{Math font family}
%\subsection{æ°å¼ãã©ã³ããã¡ããª}
-\label{ssec-math}
+\label{ssec:math}
%<*en>
\TeX\ handles fonts in math formulas by 16~font families\footnote{Omega,
@@ -4945,7 +4948,7 @@ Then, the position of glyphs is shifted up by
%\section{Parameters}
%\section{ãã©ã¡ã¼ã¿}
\subsection{\cs{ltjsetparameter}}
-\label{ssec-param}
+\label{ssec:param}
%<*en>
As described before, \cs{ltjsetparameter} and \cs{ltjgetparameter} are
@@ -5175,7 +5178,7 @@ The default glue which inserted between two \textbf{JAchar}s.
Changing current Japanese font does not alter this parameter, as \pTeX.
If the natural width of this parameter is \cs{maxdimen}, \LuaTeX-ja uses
-the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec-jfm-str}).
+the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec:jfm-str}).
%
\item[\DParam{xkanjiskip}\,=$^\ast$] [\cs{xkanjiskip}]\
@@ -5191,7 +5194,7 @@ The default glue which inserted between a \textbf{JAchar} and an
Changing current font does not alter this parameter, as \pTeX.
As \Param{kanjiskip}, if the natural width of this parameter is \cs{maxdimen}, \LuaTeX-ja uses
-the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec-jfm-str}).
+the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec:jfm-str}).
%
@@ -5220,7 +5223,7 @@ The default value is \texttt{paverage}. \dots
%
%<*ja>
ããã©ã«ãå¤ã¯ \texttt{paverage} ã§ããï¼
-åã
ã®å¤ã«ããå·®ç°ã®è©³ç´°ã¯\ref{ssec-cluster-wa}ç¯ã®ããå³ç©ºç½ãã®ç®åºããåç
§ãã¦ã»ããï¼
+åã
ã®å¤ã«ããå·®ç°ã®è©³ç´°ã¯\ref{ssec:cluster-wa}ç¯ã®ããå³ç©ºç½ãã®ç®åºããåç
§ãã¦ã»ããï¼
%
\item[\DParam{jacharrange}\,=]
@@ -5246,7 +5249,7 @@ the behavior of this assignment is undefined.
\subsection{\cs{ltjgetparameter}}
-\label{ssec-getpar}
+\label{ssec:getpar}
%<*en>
\cs{ltjgetparameter} is a control sequence for acquiring parameters. It
always takes a parameter name as first argument.
@@ -5716,7 +5719,7 @@ As an example, the example above can be improved as follows:
\subsection{\cs{ltjdeclarealtfont}}
-\label{ssec-altfont}
+\label{ssec:altfont}
%<*en>
Using \cs{ltjdeclarealtfont}, one can ``compose'' more than one Japanese fonts.
This \cs{ltjdeclarealtfont} uses in the following form:
@@ -5785,7 +5788,7 @@ are typeset by \cs{piyo}.
\subsection{\cs{ltjalchar} 㨠\cs{ltjjachar}}
æåã³ã¼ãã$\text{}~(\geq 128=\mathtt{0x80})$ã®æåã
\ \cs{char} ããªããã£ãã使ã \cs{char} ã¨ãã¦åºåãããã¨ï¼
-ãã®æåã®å±ããæåç¯å²ï¼\ref{ssec-setrange}ç¯åç
§ï¼ã«ãã£ã¦
+ãã®æåã®å±ããæåç¯å²ï¼\ref{ssec:setrange}ç¯åç
§ï¼ã«ãã£ã¦
\textbf{ALchar}ã\textbf{JAchar}ãï¼ã¤ã¾ã欧æãã©ã³ãã§åºåããããåæãã©ã³ãã§åºåãã
ããã決ã¾ãï¼
@@ -5796,7 +5799,7 @@ are typeset by \cs{piyo}.
ã127以ä¸ã®å ´åã¯ï¼\cs{ltjjachar} ã§ãã£ã¦ã\textbf{ALchar}ã¨ãã¦åºåããããã¨
ã«æ³¨æï¼
-以ä¸ã¯\ref{ssec-setrange}ç¯ã«è¼ããä¾ã«ï¼\cs{char} ã®åä½ã追å ãããã®ã§ããï¼
+以ä¸ã¯\ref{ssec:setrange}ç¯ã«è¼ããä¾ã«ï¼\cs{char} ã®åä½ã追å ãããã®ã§ããï¼
\begin{LTXexample}[width=0.25\textwidth]
\gtfamily\large % default, ALchar, JAchar
¶, \char`¶, \ltjalchar`¶, \ltjjachar`¶\\ % default: ALchar
@@ -5809,19 +5812,19 @@ are typeset by \cs{piyo}.
%\subsection{Patch for NFSS2}
%\subsection{NFSS2ã¸ã®ããã}
-\label{ssec-nfsspat}
+\label{ssec:nfsspat}
%<*en>
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{ssec-chgfnt}.
+commands which are not described in Subsection~\ref{ssec:chgfnt}.
%
%<*ja>
\LuaTeX-jaã®NFSS2ã¸ã®æ¥æ¬èªãããã¯
\pLaTeXe ã§åæ§ã®å½¹å²ãæãã \texttt{plfonts.dtx} ããã¼ã¹ã«ï¼
åæã¨ã³ã³ã¼ãã£ã³ã°ã®ç®¡ççãLuaã§æ¸ããªããããã®ã§ããï¼
-ããã§ã¯\ref{ssec-chgfnt}ç¯ã§è¿°ã¹ã¦ããªãã£ãå½ä»¤ã«ã¤ãã¦
+ããã§ã¯\ref{ssec:chgfnt}ç¯ã§è¿°ã¹ã¦ããªãã£ãå½ä»¤ã«ã¤ãã¦
è¨è¿°ãã¦ããï¼
%
@@ -5948,17 +5951,16 @@ assignment, where \cs{DeclareRelationFont} does a global assignment.
\item[\cs{userelfont}]
%<*en>
-Change current alphabetic font encoding/family/\dots\ to the `accompanied' alphabetic
- font family with respect to current Japanese font family,
- which was set by
- \cs{DeclareRelationFont} or \cs{SetRelationFont}.
-Like \cs{fontfamily}, \cs{selectfont} is required to take an effect.
+(Only)~at the next call of \cs{selectfont},
+ change current alphabetic font encoding/family/\dots\ to the `accompanied' alphabetic
+ font family with respect to current Japanese font family,
+ which was set by
+ \cs{DeclareRelationFont} or \cs{SetRelationFont}.
%
%<*ja>
-ç¾å¨ã®æ¬§æãã©ã³ãã®ã¨ã³ã³ã¼ãã£ã³ã°ï¼ãã¡ããªï¼â¦â¦ ãï¼
+次åï¼ã®ã¿ï¼ã®\cs{selectfont}ã®å®è¡æã«ï¼ç¾å¨ã®æ¬§æãã©ã³ãã®ã¨ã³ã³ã¼ãã£ã³ã°ï¼ãã¡ããªï¼â¦â¦ ãï¼
\cs{DeclareRelationFont} ã \cs{SetRelationFont} ã§æå®ããã
ç¾å¨ã®åæãã©ã³ãã«å¯¾å¿ãããå¾å±æ¬§æããã©ã³ãã«å¤æ´ããï¼
-\cs{fontfamily} ã®ããã«ï¼æå¹ã«ããããã«ã¯ \cs{selectfont} ãå¿
è¦ã§ããï¼
%
\item[\cs{adjustbaseline}]
@@ -5999,11 +6001,11 @@ character whose character class is zero, instead of `ã'.
\item[\cs{fontfamily}\{\}]
%<*en>
As in \LaTeXe, this command changes current font family (alphabetic, Japanese,~\emph{or both})
-to . See Subsection~\ref{ssec-fontfamilycmd} for detail.
+to . See Subsection~\ref{ssec:fontfamilycmd} for detail.
%
%<*ja>
å
ã
ã®\LaTeXe ã«ããããã®ã¨åæ§ã«ï¼ãã®ã³ãã³ãã¯ç¾å¨ã®ãã©ã³ããã¡ããªï¼æ¬§æï¼
-åæï¼\emph{ãããã¯ä¸¡æ¹}ï¼ãã«å¤æ´ããï¼è©³ç´°ã¯\ref{ssec-fontfamilycmd}ç¯ãåç
§ãããã¨ï¼
+åæï¼\emph{ãããã¯ä¸¡æ¹}ï¼ãã«å¤æ´ããï¼è©³ç´°ã¯\ref{ssec:fontfamilycmd}ç¯ãåç
§ãããã¨ï¼
%
@@ -6026,7 +6028,7 @@ to . See Subsection~\ref{ssec-fontfamilycmd} for detail.
\item[\cs{DeclareAlternateKanjiFont}\{\}\{\}\{\}\{\}\\
\null\hfill\{\}\{\}\{\}\{\}\{\}]
%<*ja>
-\ref{ssec-altfont}ç¯ã®\
+\ref{ssec:altfont}ç¯ã®\
\cs{ltjdeclarealtfont} ã¨åæ§ã«ï¼ååã®4å¼æ°ã®
åæãã©ã³ãï¼åºåºãã©ã³ãï¼ã®ãã¡ä¸ã®æåã
第5ãã第8å¼æ°ã®åæãã©ã³ãã使ã£ã¦çµãããã«æ示ããï¼
@@ -6046,7 +6048,7 @@ to . See Subsection~\ref{ssec-fontfamilycmd} for detail.
\end{itemize}%
%
%<*en>
-As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec-altfont}),
+As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec:altfont}),
characters in of the Japanese font (we say the \emph{base font})
which specified by first 4 arguments are typeset
by the Japanese font which specified by fifth to eighth arguments
@@ -6083,7 +6085,7 @@ Avant Garde (OT1/pag/m/n) ã«å¤ãã£ã¦ãããã¨ããããï¼
%\subsection{Detail of \cs{fontfamily} command}
%\subsection{\cs{fontfamily}ã³ãã³ãã®è©³ç´°}
-\label{ssec-fontfamilycmd}
+\label{ssec:fontfamilycmd}
%<*en>
In this subsection, we describe when \cs{fontfamily} changes current
Japanese/alphabetic font family. Basically, current Japanese fotn family is changed to
@@ -6320,9 +6322,9 @@ by \cs{input}.
\cs{input} ã§èªã¿è¾¼ã¿å¯è½ã§ããï¼
%
\subsection{\Pkg{luatexja-fontspec}}
-\label{ssec-fontspec2}
+\label{ssec:fontspec2}
%<*en>
-As described in Subsection~\ref{ssec-fontspec}, this optional package
+As described in Subsection~\ref{ssec:fontspec}, this optional package
provides the counterparts for several commands defined in the
\Pkg{fontspec} package (requires \Pkg{fontspec}~v2.4).
In addition to OpenType font features in the original \Pkg{fontspec},
@@ -6330,7 +6332,7 @@ 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}ããã±ã¼ã¸ã§æå®å¯è½ãªå種OpenTypeæ©è½ã«å ãã¦ï¼åæçã®ã³ãã³ãã«ã¯
@@ -6344,7 +6346,7 @@ the commands of Japanese version:
%<*en>
These 3 keys correspond to \texttt{cid}, \texttt{jfm} and
\texttt{jfmvar} keys for \cs{jfont}~and~\cs{tfont} respectively.
-See Subsections~\ref{ssec-jfont} and \ref{ssec-psft} for details
+See Subsections~\ref{ssec:jfont} and \ref{ssec:psft} for details
of \texttt{cid}, \texttt{jfm} and
\texttt{jfmvar} keys.
@@ -6356,8 +6358,8 @@ will be actually used in \texttt{YokoFeatures}~and~\texttt{TateFeatures} keys.
%<*ja>
ããã3ã¤ã®ãã¼ã¯ãããã \cs{jfont},~\cs{tfont}ã«å¯¾ãã
\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}ãã¼ã¨ãããã対å¿ããï¼
-\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}ãã¼ã®è©³ç´°ã¯\ref{ssec-jfont}ç¯
- ã¨\ref{ssec-psft}ç¯ãåç
§ï¼
+\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}ãã¼ã®è©³ç´°ã¯\ref{ssec:jfont}ç¯
+ ã¨\ref{ssec:psft}ç¯ãåç
§ï¼
\texttt{CID} ãã¼ã¯ä¸ã® \texttt{NoEmbed} ã¨åããã¦ç¨ããããã¨ãã®ã¿æå¹ã§ããï¼
ã¾ãï¼æ¨ªçµç¨JFMã¨ç¸¦çµç¨JFMã¯å
±ç¨ã§ããªãããï¼å®éã« \texttt{JFM} ãã¼ãç¨ããéã¯
@@ -6368,11 +6370,11 @@ will be actually used in \texttt{YokoFeatures}~and~\texttt{TateFeatures} keys.
\item[NoEmbed]
%<*en>
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}.
+will not be embedded in the output PDF file. See Subsection~\ref{ssec:psft}.
%
%<*ja>
ãããæå®ãããã¨ã§ï¼PDFã«åãè¾¼ã¾ããªããååã ããã®ãã©ã³ããæå®ãããã¨ã
-ã§ããï¼\ref{ssec-psft}ç¯ãåç
§ï¼
+ã§ããï¼\ref{ssec:psft}ç¯ãåç
§ï¼
%
\begin{figure}[!tb]
@@ -6444,16 +6446,16 @@ A demonstrarion is shown in \autoref{fig:yokotate-fontspec}.
\item[AltFont]
%<*en>
-As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec-altfont}) and
-\cs{DeclareAlternateKanjiFont}~(Subsection~\ref{ssec-nfsspat}),
+As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec:altfont}) and
+\cs{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}ç¯ã® \cs{ltjdeclarealtfont} ãï¼
-\ref{ssec-nfsspat}ç¯ã® \cs{DeclareAlternateKanjiFont} ã¨åæ§ã«ï¼
+\ref{ssec:altfont}ç¯ã® \cs{ltjdeclarealtfont} ãï¼
+\ref{ssec:nfsspat}ç¯ã® \cs{DeclareAlternateKanjiFont} ã¨åæ§ã«ï¼
ãã®ãã¼ãç¨ããã¨ä¸é¨ã®æåãç°ãªã£ããã©ã³ããæ©è½ãã¡ã使ã£ã¦çµããã¨ãã§ããï¼
\texttt{AltFont} ãã¼ã«æå®ããå¤ã¯ï¼æ¬¡ã®ããã«äºéã®ã³ã³ãåºåããªã¹ãã§ããï¼
%
@@ -6553,7 +6555,7 @@ OpenTypeæ©è½æå®ã¯
\subsection{\Pkg{luatexja-otf}}
-\label{ssec-ltjotf}
+\label{ssec:ltjotf}
%<*en>
This optional package supports typesetting glyphs
by specifying a CID number.
@@ -6659,7 +6661,7 @@ JFMã®\texttt{chars}ãã¼ãã«ã®ã¨ã³ããªã¨ã㦠\verb+'AJ1-xxx'+ ã®å½¢
%
\subsection{\Pkg{luatexja-adjust}}
-\label{ssec-adj}
+\label{ssec:adj}
\begin{figure}[t]
\def\sq{%
\hbox to 1\zw{\hss\fboxsep=-.5\fboxrule\fbox{%
@@ -7120,8 +7122,8 @@ package to use several ``presets'' of Japanese fonts.
This package provides functions in a part of \Pkg{japanese-otf} package (changing fonts)
and a part of \Pkg{PXchfon} package (presets) by Takayuki Yato.
-One can specified other options other than listed below.
-These are simply passed to the \Pkg{luatexja-fontspec}\footnote{if \texttt{nfssonly} option is
+Options which are given in \cs{usepackage} but not described in this~subsection
+are simply passed to the \Pkg{luatexja-fontspec}\footnote{if \texttt{nfssonly} option is
\emph{not} specified; in this case these options are simply ignored.}.
For example, the line~5 in below example is equivalent to lines 1--3.
%
@@ -7131,7 +7133,8 @@ For example, the line~5 in below example is equivalent to lines 1--3.
\Pkg{otf}ããã±ã¼ã¸ã®ä¸é¨ï¼å¤æ¸ä½åï¼ã¨å
«ç»å´ä¹æ°ã«ãã\Pkg{PXchfon}ããã±ã¼ã¸ã®ä¸é¨ï¼ããªã»ããæå®ï¼
ã¨ãåããããããªæ ¼å¥½ããã¦ããï¼
-ãªãã·ã§ã³ã¨ãã¦ï¼ä»¥ä¸ã®ãªã¹ãã«ãªããã®ãæå®ãããã¨ãã§ãããï¼ãããã¯
+ããã±ã¼ã¸èªã¿è¾¼ã¿æã«æ¸¡ããããªãã·ã§ã³ã®ãã¡ï¼
+æ¬ç¯ã«ãªããã®ãæå®ããå ´åï¼ãããã¯ãã®ã¾ã¾
\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã«æ¸¡ããã\footnote{\texttt{nfssonly} ãªãã·ã§ã³ã
æå®ããã¦ããå ´åã¯ï¼\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã¯èªã¿è¾¼ã¾ããªãã®ã§åç´ã«ç¡è¦ãã
ãï¼}ï¼ä¾ãã°ï¼ä¸ã®1--3è¡ç®ã¯5è¡ç®ã®ããã«ä¸è¡ã«ã¾ã¨ãããã¨ãã§ããï¼
@@ -7144,6 +7147,10 @@ For example, the line~5 in below example is equivalent to lines 1--3.
\usepackage[no-math,match,kozuka-pr6n]{luatexja-preset}
\end{lstlisting}
+%\subsubsection{General Options}
+%\subsubsection{ä¸è¬çãªãªãã·ã§ã³}
+\label{sssec:ltjpreset-general}
+
\begin{cslist}[before*=]
\item[fontspec%
%\textrm{~(enabled by default)}
@@ -7338,8 +7345,10 @@ We didn't taken account of when both \texttt{90jis} and \texttt{jis2004} are sp
両ãªãã·ã§ã³ãåæã«æå®ãããå ´åã®åä½ã«ã¤ãã¦ã¯å
¨ãèæ
®ãã¦ããªãï¼
%
-%\paragraph{Presets for multi weight}
-%\paragraph{å¤ã¦ã§ã¤ãç¨ããªã»ããã®ä¸è¦§}
+%\subsubsection{Presets which support multi weights}
+%\subsubsection{å¤ã¦ã§ã¤ãç¨ããªã»ããã®ä¸è¦§}
+\label{sssec:ltjpreset-multi}
+
%<*en>
Besides \texttt{morisawa-pro}~and~\texttt{morisawa-pr6n} presets,
fonts are specified by font name, not by file name.
@@ -7444,7 +7453,7 @@ Std/StdNãã©ã³ãã§ããï¼ãã®ä»ã¯Adobe-Japan1-5対å¿ã§ããï¼
\item[morisawa-pro] Morisawa Pro (Adobe-Japan1-4) fonts.
% \\*[-\dimexpr\medskipamount+\baselineskip\relax]
\item[morisawa-pr6n] Morisawa Pr6N (Adobe-Japan1-6, JIS04-savvy) fonts.
-\begin{center}\small
+\begin{center}\footnotesize
\begin{tabular}{ll>{\tt}l>{\tt}l}
\toprule
\bf family&\bf series&morisawa-pro&morisawa-pr6n\\
@@ -7622,11 +7631,11 @@ Std/StdNãã©ã³ãã§ããï¼ãã®ä»ã¯Adobe-Japan1-5対å¿ã§ããï¼
\end{tabular}
\end{center}
-
-
\end{cslist}
-%\paragraph{Presets for single weight}
-%\paragraph{åã¦ã§ã¤ãç¨ããªã»ããä¸è¦§}
+%\subsubsection{Presets which do not support multi weights}
+%\subsubsection{åã¦ã§ã¤ãç¨ããªã»ããä¸è¦§}
+\label{sssec:ltjpreset-single}
+
%<*en>
Next, we describe settings for using only single weight.
%
@@ -7647,16 +7656,17 @@ Next, we describe settings for using only single weight.
&IPA Gothic&IPAex Gothic&MS Gothic\\
%
%<*ja>
-\gtfamily ææä½&Ryumin-Lightï¼éåè¾¼ï¼
+\gtfamily ææ&Ryumin-Lightï¼éåè¾¼ï¼
&IPAææ&IPAexææ&MSææ\\
-\gtfamily ã´ã·ãã¯ä½&GothicBBB-Mediumï¼éåè¾¼ï¼
+\gtfamily ã´ã·ãã¯&GothicBBB-Mediumï¼éåè¾¼ï¼
&IPAã´ã·ãã¯&IPAexã´ã·ãã¯&MSã´ã·ãã¯\\
%
\bottomrule
\end{tabular}\par\medskip}
-%\paragraph{Using HG fonts}
-%\paragraph{HGãã©ã³ãã®å©ç¨}
+%\subsubsection{Presets which use HG fonts}
+%\subsubsection{HGãã©ã³ãã使ãããªã»ãã}
+\label{sssec:ltjpreset-hg}
%<*en>
We can use HG~fonts bundled with Microsoft~Office for realizing multiple weights.
In the table below, starred fonts (e.g., IPA~Gothic*) are used
@@ -7683,19 +7693,19 @@ only if \texttt{jis2004} or \texttt{nodeluxe} option is spefified.
\textit{gothic}&bold&HG Gothic E&HG Gothic E&HG Gothic E\\\cmidrule{2-5}
&extra bold&HG Soei Kaku Gothic UB&HG Soei Kaku Gothic UB&HG Soei Kaku Gothic UB\\\midrule
\textit{rounded gothic}&&
-HG Maru Gothic PRO&HG Maru Gothic PRO&HG Maru Gothic PRO\\
+HG MaruGothic M PRO&HG MaruGothic M PRO&HG MaruGothic M PRO\\
%
%<*ja>
&medium&IPAææ&IPAexææ&MSææ\\
-\smash{\raisebox{1.5ex}{\textgt{ææä½}}}%
+\smash{\raisebox{1.5ex}{\textgt{ææ}}}%
&bold&HGææE&HGææE&HGææE\\\midrule
&&IPAã´ã·ãã¯*&IPAexã´ã·ãã¯*&MSã´ã·ãã¯*\\
&\smash{\raisebox{1.5ex}{medium}}%
&HGã´ã·ãã¯M&HGã´ã·ãã¯M&HGã´ã·ãã¯M\\\cmidrule{2-5}
-\textgt{ã´ã·ãã¯ä½}&bold&HGã´ã·ãã¯E&HGã´ã·ãã¯E&HGã´ã·ãã¯E\\\cmidrule{2-5}
+\textgt{ã´ã·ãã¯}&bold&HGã´ã·ãã¯E&HGã´ã·ãã¯E&HGã´ã·ãã¯E\\\cmidrule{2-5}
&extra bold&HGåµè±è§ã´ã·ãã¯UB&HGåµè±è§ã´ã·ãã¯UB&HGåµè±è§ã´ã·ãã¯UB\\\midrule
-\textgt{丸ã´ã·ãã¯ä½}&&
-HG丸ã´ã·ãã¯ä½PRO&HG丸ã´ã·ãã¯ä½PRO&HG丸ã´ã·ãã¯ä½PRO\\
+\textgt{丸ã´ã·ãã¯}&&
+HG丸ã´ã·ãã¯M-PRO&HG丸ã´ã·ãã¯M-PRO&HG丸ã´ã·ãã¯M-PRO\\
%
\bottomrule
\end{tabular}\par\medskip}
@@ -7721,6 +7731,138 @@ are internally specified by:
ã¨ãã¦æå®ãè¡ã£ã¦ããã®ã§æ³¨æãããã¨ï¼
%
+%\subsubsection{Define/Use Custom Presets}
+%\subsubsection{æ°ããªããªã»ããã®å®ç¾©}
+
+%<*ja>
+ãã¼ã¸ã§ã³********.0以éã§ã¯ï¼èªåã§æ°ããªããªã»ãããå®ç¾©ãããã¨ãåºæ¥ãããã«ãªã£ãï¼
+以ä¸ã«èª¬æãã2å½ä»¤ã¯ããªã¢ã³ãã«ã§ããå®è¡ã§ããªãï¼
+%
+%<*en>
+From version~********.0, one can define new presets using \cs{ltjnewpreset},
+and use them by \cs{ltjapplypreset}. These two commands can only be used in the preamble.
+%
+\begin{cslist}
+ \item[\cs{ltjnewpreset}\{\}\{\}]
+%<*ja>
+ æ°ãã«ã¨ããå称ã®ããªã»ãããå®ç¾©ããï¼ãã®å称ã¯ï¼
+ ãã§ã«å®ç¾©ããã¦ããããªã»ããåãï¼
+ \ref{sssec:ltjpreset-general}ã§å®ç¾©ããã¦ãããªãã·ã§ã³ï¼ããã«
+ 次ã®9ã¤ã¨éè¤ãã¦ã¯ãªããªãï¼
+ \begin{quote}
+ \ttfamily
+ mc mc-l mc-m mc-bx gt gt-m gt-bx gt-eb mg-m
+ \end{quote}
+
+ ã¯ï¼ããªã»ããåã以ä¸ã®ãã¼éã®ã³ã³ãåºåããªã¹ããæå®ããï¼
+ \begin{description}
+ \item[\ttfamily mc-l=] ææä½ç´°å(\cs{mcfamily}\cs{ltseries})
+ \item[\ttfamily mc-m=] ææä½ä¸å(\cs{mcfamily}\cs{mdseries})
+ \item[\ttfamily mc-bx=] ææä½å¤ªå(\cs{mcfamily}\cs{bfseries})
+ \item[\ttfamily gt-m=] ã´ã·ãã¯ä½ä¸å(\cs{gtfamily}\cs{mdseries})
+ \item[\ttfamily gt-bx=] ã´ã·ãã¯ä½å¤ªå(\cs{gtfamily}\cs{bfseries})
+ \item[\ttfamily gt-eb=] ã´ã·ãã¯ä½å¤ªå(\cs{gtfamily}\cs{ebseries})
+ \item[\ttfamily mg-m=] 丸ã´ã·ãã¯ä½(\cs{mgfamily})
+ \item[\ttfamily mc=] ææä½ã®ç´°åã»ä¸åã»å¤ªåå
¨é¨ãè¨å®ï¼
+ 以ä¸ãæå®ãããã¨ã¨åãã§ããï¼
+ \begin{quote}
+ \ttfamily mc-l=, mc-m=, mc-bx=
+ \end{quote}
+ \item[\ttfamily gt=] ã´ã·ãã¯ä½ã®ä¸åã»å¤ªåã»æ¥µå¤ªå
¨é¨ãè¨å®ï¼
+ 以ä¸ãæå®ãããã¨ã¨åãã§ããï¼
+ \begin{quote}
+ \ttfamily gt-m=, gt-bx=, gt-eb=
+ \end{quote}
+ \end{description}
+ ãªãï¼ããã±ã¼ã¸èªã¿è¾¼ã¿æã« \texttt{deluxe} ãæå¹ã§ãªãå ´åã¯ï¼
+ ä¸è¨9ãã¼ã®ãã¡\texttt{mc}, \texttt{gt}ããå®è³ªçã«æå³ãæããªãï¼
+%
+%<*en>
+ Define new preset~. This cannot be same as other presets,
+ options described in Subsubsection~\ref{sssec:ltjpreset-general}, nor
+ following nine strings:
+ \begin{quote}
+ \ttfamily
+ mc mc-l mc-m mc-bx gt gt-m gt-bx gt-eb mg-m
+ \end{quote}
+
+ is a comma-separated list which consists of
+ other presets and/or the following keys:
+ \begin{description}
+ \item[\ttfamily mc-l=] mincho light
+ \item[\ttfamily mc-m=] mincho medium
+ \item[\ttfamily mc-bx=] mincho bold
+ \item[\ttfamily gt-m=] gothic medium
+ \item[\ttfamily gt-bx=] gothic bold
+ \item[\ttfamily gt-eb=] gothic extra~bold
+ \item[\ttfamily mg-m=] rounded gothic
+ \item[\ttfamily mc=] Same as
+ \begin{quote}
+ \ttfamily mc-l=, mc-m=, mc-bx=
+ \end{quote}
+ \item[\ttfamily gt=] Same as
+ \begin{quote}
+ \ttfamily gt-m=, gt-bx=, gt-eb=
+ \end{quote}
+ \end{description}
+ If \texttt{deluxe} is not specified at loading the package,
+ only \texttt{mc}~and~\texttt{gt} keys (among above 9~keys) have a meaning.
+%
+ \item[\cs{ltjnewpreset}*\{\}\{\}]
+%<*ja>
+ \cs{ltjnewpreset}ã¨ã»ã¼åãã§ãããï¼ãã¡ãã¯ãã§ã«å®ç¾©ããã¦ããããªã»ããå
+ ãã«æå®ããå ´åã«ã¯ã¨ã©ã¼ãåºããã«å®ç¾©ãç½®ãæããï¼
+%
+%<*en>
+ Almost same as \cs{ltjnewpreset}. However, if matches a preset which already defined,
+ this command simply overwrite it.
+%
+ \item[\cs{ltjapplypreset}\{\}]
+% ã§æå®ãããããªã»ããã使ã£ã¦åæãã©ã³ããè¨å®ããï¼
+% Set Japanese font families using preset~.
+\end{cslist}
+
+%<*ja>
+ãªãï¼\cs{ltjnewpreset}ã®ç¬¬äºå¼æ°ã«å«ã¾ãã
+ããªã»ããåã¯\cs{ltjnewpreset}ã®æç¹ã§å®ç¾©ããã¦ããå¿
è¦ã¯ãªãï¼
+\cs{ltjapplypreset}ã§å®éã«ä½¿ãã¨ãã«å®ç¾©ããã¦ããã°è¯ãï¼
+ãã®ããï¼æ¬¡ã®ãããªè¨è¿°ãå¯è½ã§ããï¼
+\begin{lstlisting}
+ \ltjnewpreset{hoge}{piyo,mc-bx=HiraMinProN-W6}
+ \ltjnewpreset{piyo}{mg-m=HiraMaruProN-W4}
+ \ltjapplypreset{hoge}
+\end{lstlisting}
+
+\paragraph{注æ}
+\cs{ltjnewpreset}ã§å®ç¾©ããããªã»ããã«ã¯ä»¥ä¸ã®å¶éãããï¼
+\begin{itemize}
+ \item éåãè¾¼ã¿ã®ãã©ã³ããæå®ãããã¨ã¯ã§ããªãï¼
+ \item \texttt{ipa-hg}ãªã©ã®ããã¤ãã®ããªã»ããã§ã¯
+ ã\texttt{90jis}, \texttt{jis2004}ãæå®ããã¦ãããå¦ãã§ãã©ã³ãã®æå®ãå¤ãããå¦çã
+ è¡ããã¦ãããï¼\cs{ltjnewpreset}ã§å®ç¾©ããããªã»ããã§ã¯ãã®å¦çã¯åããªãï¼
+ HGãã©ã³ããã¢ã¬ææãªã©ã使ãããªã»ãããå®ç¾©ããå ´åã«ã¯æ³¨æãããã¨ï¼
+\end{itemize}
+%
+%<*en>
+Note that \cs{ltjnewpreset} does not ``expand'' the definition to define a preset.
+This means that one can write as the following:
+\begin{lstlisting}
+ \ltjnewpreset{hoge}{piyo,mc-bx=HiraMinProN-W6}
+ \ltjnewpreset{piyo}{mg-m=HiraMaruProN-W4}
+ \ltjapplypreset{hoge}
+\end{lstlisting}
+
+\paragraph{Restrictions}
+Presets which are defined by \cs{ltjnewpreset} have following restrictions:
+\begin{itemize}
+ \item One cannot specify non-embedded fonts (such as Ryumin-Light).
+ \item Some presets, such as \texttt{ipa-hg}, have a feature that
+ fonts are changed according to whether \texttt{90jis}~or~\texttt{jis2004} is speified.
+ This feature is not usable in presets which are defined by \cs{ltjnewpreset}.
+\end{itemize}
+%
+
+
\clearpage
%\part{Implementations}
%\part{å®è£
}