X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=doc%2Fluatexja.dtx;h=8d6dbb2c983a15b2e5c00ecd44b3d06889188be1;hb=6e672f2c6c4c966166ec272a021b0f3afa93bee0;hp=dc36b0a5766df34f8e56e9a48f44b448da444b43;hpb=1a0d70340d556352e9ad6dc2f299ff02db714fce;p=luatex-ja%2Fluatexja.git diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx index dc36b0a..8d6dbb2 100644 --- a/doc/luatexja.dtx +++ b/doc/luatexja.dtx @@ -133,7 +133,7 @@ ASCII \pTeX やそれの拡張物が用いられることが一般的であっ のエンジン拡張であり,(少々仕様上不便な点はあるものの)商業印刷の分野に も用いられるほどの高品質な日本語組版を可能としている.だが,それは弱点に もなってしまった:\pTeX という(組版的に)満足なものがあったため,海外で -行われている数々の\TeX の拡張──例えば\eTeX や\pdfTeX ──や,TrueType, +行われている数々の\TeX の拡張――例えば\eTeX や\pdfTeX ――や,TrueType, OpenType, Unicodeといった計算機で日本語を扱う際の状況の変化に追従すること を怠ってしまったのだ. % @@ -228,7 +228,7 @@ The followings are major changes from \pTeX: % %<*ja> \item 2つの和文文字の間,和文文字と欧文文字の間に入るグルー/カーン - (\textbf{JAglue} と呼ぶ)の挿入処理が0から書き直されている. + (\textbf{JAglue}と呼ぶ)の挿入処理が0から書き直されている. % \begin{itemize} @@ -300,7 +300,7 @@ The followings are major changes from \pTeX: For detailed information, see Part~\ref{part-imp}. % %<*ja> -詳細については第 \ref{part-imp} 部を参照. +詳細については第\ref{part-imp}部を参照. % %\subsection{Notations} @@ -499,6 +499,7 @@ $ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git \item Now \LuaTeX-ja is available from the following archive and distributions: \begin{itemize} \item CTAN (in the \texttt{macros/luatex/generic/luatexja} directory) + \item MiK\TeX\ (in \texttt{luatexja.tar.lzma}) \item \TeX\ Live (in \texttt{texmf-dist/tex/luatex/luatexja}) \item W32\TeX\ (in \texttt{luatexja.tar.xz}) \end{itemize} @@ -524,6 +525,7 @@ $ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git \item 今や,\LuaTeX-jaは以下のアーカイブ,およびディストリビューションにも収録されている: \begin{itemize} \item CTAN (\texttt{macros/luatex/generic/luatexja}) + \item MiK\TeX\ (\texttt{luatexja.tar.lzma}) \item \TeX\ Live (\texttt{texmf-dist/tex/luatex/luatexja}) \item W32\TeX\ (\texttt{luatexja.tar.xz}) \end{itemize} @@ -866,7 +868,7 @@ this chapter. For the method, please see Subsection~\ref{ssec-math}. %<*ja> また\LuaTeX-jaプロジェクトでは,和文文字が識別子として用いられることはほとんどない と考えており,したがってこの節では数式モード中の和文フォントを変更する方法については -記述しない.この方法については \ref{ssec-math} 節を参照のこと. +記述しない.この方法については\ref{ssec-math}節を参照のこと. % %<*en> @@ -877,7 +879,7 @@ To change Japanese fonts in plain \TeX, you must use the primitive %<*ja> \paragraph{plain \TeX} plain \TeX で和文フォントを変更するためには,\verb+\jfont+ プリミティブを用いなけれ -ばならない.\ref{ssec-jfont} 節を参照. +ばならない.\ref{ssec-jfont}節を参照. % %<*en> @@ -962,7 +964,7 @@ auto select&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\ \texttt{JY3}に変更し,\verb+\fontencoding{T1}+ は欧文フォント側を \texttt{T1}へと変更する.\verb+\fontfamily+ も引数により和文側,欧文 側,\textbf{あるいは両方}のフォントファミリを変更する.詳細は - \ref{ssub-nfsspat} 節を参照すること. + \ref{ssub-nfsspat}節を参照すること. % %<*en> @@ -1055,7 +1057,7 @@ these 7~commands, since this feature and \textbf{JAglue} will clash (see 和文フォントについては全ての和文文字のグリフがほぼ等幅であるのが普通であるため, \verb+\setmonojfont+ コマンドは存在しないことに注意.また,これらの和文用の7つのコマ ンドではKerning featureはデフォルトではoffとなっている.これはこの -featureが\textbf{JAglue}と衝突するためである(\ref{para-kern} 節を参照). +featureが\textbf{JAglue}と衝突するためである(\ref{para-kern}節を参照). % %\section{Changing Parameters} @@ -1282,7 +1284,7 @@ This range consist of the following Unicode ranges, \emph{except characters in t indicated in Table~\ref{table-rng3}. % %<*ja> -\item[範囲3${}^{\text{J}}$] 句読点と記号類.ブロックのリストは表 \ref{table-rng3} +\item[範囲3${}^{\text{J}}$] 句読点と記号類.ブロックのリストは表\ref{table-rng3}% に示してある. % \begin{table}[!tb] @@ -1370,7 +1372,7 @@ This range consist of the following Unicode ranges, \emph{except characters in t % %<*ja> \item[範囲6${}^{\text{J}}$] 日本語で用いられる文字.ブロックのリストは - 表 \ref{table-rng6} に示す. + 表\ref{table-rng6}に示す. % \begin{table}[!tb] %<*en> @@ -1429,7 +1431,7 @@ The block list is indicated in Table~\ref{table-rng7}. %<*ja> \item[範囲7${}^{\text{J}}$] CJK言語で用いられる文字のうち,Adobe-Japan1-6に 含まれていないもの. - ブロックのリストは表 \ref{table-rng7} に示す. + ブロックのリストは表\ref{table-rng7}に示す. % \begin{table}[!tb] %<*en> @@ -1588,10 +1590,10 @@ as follows: \ltjsetparameter{alxspmode={`あ,preonly}, jaxspmode={`\!,postonly}} \end{verbatim} %<*en> -One can use also numbers to specify these two parameters (see Subsection \ref{ssec-param}). +One can use also numbers to specify these two parameters (see Subsection~\ref{ssec-param}). % %<*ja> -また,これら2パラメータには数値で値を指定することもできる(\ref{ssec-param} 節を参照). +また,これら2パラメータには数値で値を指定することもできる(\ref{ssec-param}節を参照). % %<*en> @@ -1813,7 +1815,7 @@ JFMの名前を指定する.もし以前に指定されたJFMが読み込ま %<*ja> \item[\tt jfm-min.lua] \pTeX に同梱されているデフォルトの和文フォントメトリック である \verb+min10.tfm+ に相当するJFMである.このJFMと他の2つのJFMの間には - 表 \ref{tab-difjfm} に示すような特筆すべき違いがある. + 表\ref{tab-difjfm}に示すような特筆すべき違いがある. % \end{description} @@ -1901,7 +1903,7 @@ TODO: kanjiskip? %\subsection{Prefix \texttt{psft}} -%\subsection{\texttt{psft} プレフィックス} +%\subsection{\texttt{psft}プリフィックス} \label{ssec-psft} %<*en> Besides \texttt{file:}\ and \texttt{name:}\ prefixes, one can use \texttt{psft:}\ @@ -1909,27 +1911,88 @@ prefix in \verb+\jfont+ (and~\verb+\font+) primitive, to specify a `name-only' Japanese font which will not be embedded to PDF. Typical use of this prefix is to specify the `standard' Japanese fonts, namely, `Ryumin-Light' and -`GothicBBB-Medium'. For kerning or other information, that of Kozuka -Mincho Pr6N Regular (this is a font by Adobe Inc., and included in -Japanese Font Packs for Adobe Reader) will be used. +`GothicBBB-Medium'. % %<*ja> -\texttt{file:}と\texttt{name:}のプレフィックスに加えて, +\texttt{file:}と\texttt{name:}のプリフィックスに加えて, \verb+\jfont+ プリミティブ(と \verb+\font+ プリミティブ)では -\texttt{psft:}プレフィックスを用いることができる. -このプレフィックスを用いることで,PDFには埋め込まれない「名前だけの」 -和文フォントを指定することができる.典型的な使い方は「標準的な」和文フォント, -つまり`Ryumin-Light'と`GothicBBB-Medium'を指定することである. -この場合,カーニング他の情報は小塚明朝 Pr6N Regular -(Adobe社によるフォントで,Adobe Readerの日本語フォントパックに含まれている) -が用いられる. +\texttt{psft:}プリフィックスを用いることができる. +このプリフィックスを用いることで,PDFには埋め込まれない「名前だけの」 +和文フォントを指定することができる.「標準的な」和文フォント, +つまり`Ryumin-Light'と`GothicBBB-Medium'の指定でこのプリフィックスが使われる. % -\paragraph{\texttt{cid} key} +%\paragraph{\texttt{cid} key} +%\paragraph{\texttt{cid}キー} \label{para-cid} - \texttt{cid} key, ... +%<*en> +The default font defined by using \texttt{psft:} prefix is for Japanese typesetting; +it is Adobe-Japan1-6 CID-keyed font. +One can specify \texttt{cid} key to use other CID-keyed non-embedded fonts +for Chinese or Korean typesetting. +\begin{lstlisting}[numbers=left] +\jfont\testJ={psft:Ryumin-Light:cid=Adobe-Japan1-6;jfm=jis} % Japanese +\jfont\testD={psft:Ryumin-Light:jfm=jis} % default value is Adobe-Japan1-6 +\jfont\testC={psft:AdobeMingStd-Light:cid=Adobe-CNS1-5;jfm=jis} % Traditional Chinese +\jfont\testG={psft:SimSun:cid=Adobe-GB1-5;jfm=jis} % Simplified Chinese +\jfont\testK={psft:Batang:cid=Adobe-Korea1-2;jfm=jis} % Korean +\end{lstlisting} +Note that the code above specifies \texttt{jfm-jis.lua}, which is for Japanese fonts, +as JFM for Chinese and Korean fonts. +% +%<*ja> +標準で\texttt{psft:}プリフィックスで定義されるフォントは日本語用のもので +あり,Adobe-Japan1-6のCIDに対応したものとなる.しかし,\LuaTeX-jaは中国語 +の組版にも威力を発揮することが分かり,日本語フォントでない非埋込フォント +の対応も必要となった.そのために追加されたのが\texttt{cid}キーである. +\texttt{cid}キーに値を指定すると,そのCIDを持った非埋込フォントを定義することができる: +\begin{lstlisting}[numbers=left] +\jfont\testJ={psft:Ryumin-Light:cid=Adobe-Japan1-6;jfm=jis} % 日本語 +\jfont\testD={psft:Ryumin-Light:jfm=jis} % 無指定時は Adobe-Japan1-6 +\jfont\testC={psft:AdobeMingStd-Light:cid=Adobe-CNS1-5;jfm=jis} % 中国語繁体字 +\jfont\testG={psft:SimSun:cid=Adobe-GB1-5;jfm=jis} % 中国語簡体字 +\jfont\testK={psft:Batang:cid=Adobe-Korea1-2;jfm=jis} % 韓国語 +\end{lstlisting} +上のコードでは中国語・韓国語用フォントに対してもJFMに +日本語用の\texttt{jfm-jis.lua}を指定しているので注意されたい. +% + +%<*en> +At present, \LuaTeX-ja supports only 4 values written in the sample code above. +Specifying other values, e.g., +% +%<*ja> +今のところ,\LuaTeX-jaは上のサンプルコード中に書いた4つの値しかサポートしていない. +% +\begin{lstlisting} +\jfont\test={psft:Ryumin-Light:cid=Adobe-Japan2;jfm=jis} +\end{lstlisting} +%<*en> +occurs the following error: +% +%<*ja> +のようにそれら以外の値を指定すると, +% +\begin{lstlisting}[numbers=left] +! Package luatexja Error: bad cid key `Adobe-Japan2'. + +See the luatexja package documentation for explanation. +Type H for immediate help. + + \par +l.78 + +? h +I couldn't find any non-embedded font information for the CID +`Adobe-Japan2'. For now, I'll use `Adobe-Japan1-6'. +Please contact the LuaTeX-ja project team. +? +\end{lstlisting} +%<*ja> +というエラーが出る. +% %\subsection{Structure of JFM file} %\subsection{JFMファイルの構造} @@ -1992,7 +2055,7 @@ This field specifies the `ideal' amount of \Param{kanjiskip}. As noted fields are in design-size unit too. % %<*ja> -「理想的な」\Param{kanjiskip}の量を指定する.\ref{subs-kskip} 節で述べたように, +「理想的な」\Param{kanjiskip}の量を指定する.\ref{subs-kskip}節で述べたように, もし\Param{kanjiskip}が \verb+\maxdimen+ の値ならば,このフィールドで指定された 値が実際には用いられる(もしこのフィールドがJFMで指定されていなければ, 0\,ptであるものとして扱われる).とのフィールドもdesign-size @@ -2089,7 +2152,7 @@ The effects of these 3~fields are indicated in Figure~\ref{fig-pos}. \texttt{'right'}のいずれかである.もしこれら3つのフィールドのうちの1つが省かれた 場合,\texttt{left}と\texttt{down}は0,\texttt{align}フィールドは \texttt{'left'}であるものとして扱われる. -これら3つのフィールドの意味については図 \ref{fig-pos} で説明する. +これら3つのフィールドの意味については図\ref{fig-pos}で説明する. % %<*en> @@ -2286,13 +2349,12 @@ The following is the list of `imaginary characters': ところで,\pTeX では通常の段落の先頭にJFMグルーが残るという仕様があるので, 段落先頭の開き括弧は全角二分下がりになる.全角下がりを実現させるに は,段落の最初に手動で \verb+\inhibitglue+ を追加するか,あるいは - \verb+\everypar+ のハックを行い,それを自動化させるしかなかった. + \ \verb+\everypar+ のハックを行い,それを自動化させるしかなかった. 一方,\LuaTeX-jaでは,\texttt{'parbdd'}によって,それがJFM側で調整できるよ うになった.例えば,\LuaTeX-ja同梱のJFMのように,\texttt{'boxbdd'}と同じ文字クラスに \texttt{'parbdd'}を入れれば全角下がりとなる. -\ltjsetparameter{jacharrange={+3}} \begin{LTXexample} \jfont\g=psft:Ryumin-Light:jfm=test \g \parindent1\zw\noindent{}◆◆◆◆◆ @@ -2301,7 +2363,12 @@ The following is the list of `imaginary characters': \par 〔◆◆←全角二分下がり \end{LTXexample} \end{itemize} -\ltjsetparameter{jacharrange={-3}} + +但し,\verb+\everypar+ を利用している場合にはこの仕組みは正しく動かない. +そのような例としては箇条書き中の \verb+\item+ で始まる段落があり,\Pkg{ltjsclasses}では +人工的に「\texttt{'parbdd'}の意味を持つ」whatsitノードを作ることによって対処している% +\footnote{\texttt{no\_runtime/ltjsclasses.dtx} を参照されたい. +JFM側で一部の対処ができることにより,\Pkg{jsclasses}のようにif文の判定はしていない.} % %\subsection{Math Font Family} @@ -2331,7 +2398,7 @@ you can set both \verb+\fam+ and \verb+\jfam+ to the same value. % %<*ja> \LuaTeX-jaの数式中での和文フォントの扱いも同様である. -表 \ref{tab-math} は数式フォントファミリに対する \TeX のプリミティブと対応する +表\ref{tab-math}は数式フォントファミリに対する \TeX のプリミティブと対応する ものを示している.\verb+\fam+ と \verb+\jfam+ の値の間には関係はなく, 適切な設定の下では \verb+\fam+ と \verb+\jfam+ の両方に同じ値を設定することができる. % @@ -2555,7 +2622,7 @@ to be that of letters in the character class~0. For example, suppose that \end{itemize} Then, the position of glyphs is shifted up by \[ - \frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{825}y= 0.03\dot1\dot5y. + \frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{25}y= 1.04y. \] % %<*ja> @@ -2570,7 +2637,7 @@ Then, the position of glyphs is shifted up by \end{itemize} となっていたとする.すると,実際の文字の出力位置は, \[ - \frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{825}y= 0.03\dot1\dot5y + \frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{25}y= 1.04y. \] だけ上にずらされることになる. % @@ -2595,8 +2662,8 @@ of \LuaTeX, see Section~\ref{sec-para}. 先に述べたように,\verb+\ltjsetparameter+ と \verb+\ltjgetparameter+ は \LuaTeX-jaのほとんどのパラメータにアクセスするためのプリミティブである. \LuaTeX-jaが\pTeX のような文法(例えば,\verb+\prebreakpenalty`)=10000+)を -採用しない理由の一つは,\LuaTeX のソースにおける \verb+\hpack_filter+ -コールバックの位置にある.\ref{sec-para} 節を参照. +採用しない理由の一つは,\LuaTeX のソースにおける \verb+hpack_filter+ +コールバックの位置にある.\ref{sec-para}節を参照. % %<*en> @@ -2883,7 +2950,7 @@ the beginning of a box and `あ', and also between `あ' and `ウ'. \inhibitglue\par\noindent あ1 \par\inhibitglue\noindent あ2 \par\noindent\inhibitglue あ3 -\par\inhibitglue\hrule あoff\inhibitglue ice +\par\hrule\noindent あoff\inhibitglue ice \end{LTXexample} %<*en> @@ -2895,24 +2962,24 @@ With the help of this example, we remark the specification of \verb+\inhibitglue \begin{itemize} %<*en> \item The call of \verb+\inhibitglue+ in the (internal) vertical mode is - effective at the beginning of the next paragraph. This is realized - by hacking \verb+\everypar+. + simply ignored. % %<*ja> -\item \verb+\inhibitglue+ の垂直モード中での呼び出しは次の段落の始めで効力を持つ. - これは \verb+\everypar+ のハックによって実現されている. +\item \verb+\inhibitglue+ の垂直モード中での呼び出しは意味を持たない. +4行目の入力で有効にならないのは,\verb+\inhibitglue+ の時点では垂直モードであり, +\verb+\noindent+ の時点で水平モードになるからである. % %<*en> \item The call of \verb+\inhibitglue+ in the (restricted) horizontal mode is only effective on the spot; does not get over boundary of paragraphs. Moreover, \verb+\inhibitglue+ cancels ligatures and - kernings, as shown in line~4 of above example. + kernings, as shown in the last line of above example. % %<*ja> \item \verb+\inhibitglue+ の(制限された)水平モード中での呼び出しはその場でのみ 有効であり,段落の境界を乗り越えない. - さらに,\verb+\inhibitglue+ は上の例の4行目のようにリガチャとカーニングを + さらに,\verb+\inhibitglue+ は上の例の最終行のようにリガチャとカーニングを 打ち消す. % @@ -2938,9 +3005,9 @@ For an convenience, we will describe commands which are not described in Subsection~\ref{ssub-chgfnt}. % %<*ja> -\ref{ssec-ltx} 節で述べたように,\LuaTeX-jaはNFSS2への日本語パッチである +\ref{ssec-ltx}節で述べたように,\LuaTeX-jaはNFSS2への日本語パッチである \pLaTeXe の\texttt{plfonts.dtx}を単純に取り入れている. -便宜のため,ここでは \ref{ssub-chgfnt} 節で述べていなかったコマンドについて +便宜のため,ここでは\ref{ssub-chgfnt}節で述べていなかったコマンドについて 記述しておく. % @@ -3135,7 +3202,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}での`font feature'に加えて,和文版のコマンドには 以下の`font feature'を指定することができる: @@ -3143,27 +3210,32 @@ the commands of Japanese version: \begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw} +\item[CID=] \item[JFM=] -\item[JFM-var=] +\item[JFM-var=] \ %<*en> -These 2 font features correspond to \texttt{jfm} and \texttt{jfmvar} keys for -\verb+\jfont+ primitive, respectively. See Subsection~\ref{ssec-jfont}. +These 3 font features correspond to \texttt{cid}, \texttt{jfm} and +\texttt{jfmvar} keys for \verb+\jfont+ primitive, respectively. +\texttt{CID} is effective only when with \texttt{NoEmbed} +described below. +See Subsections~\ref{ssec-jfont} and \ref{ssec-psft} for details. % %<*ja> -これらの2つはそれぞれ \verb+\jfont+ プリミティブに対する -\texttt{jfm}, \texttt{jfmvar}キーとそれぞれ対応する. -\ref{ssec-jfont} 節を参照. +これら3つのキーはそれぞれ \verb+\jfont+ プリミティブに対する +\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}キーとそれぞれ対応する. +\texttt{CID} は下の \texttt{NoEmbed} と合わせて用いられたときのみ有効である. +詳細は\ref{ssec-jfont}節と\ref{ssec-psft}節を参照. % \item[NoEmbed] %<*en> -By specifying this font feature, you can use `name-only' Japanese font which +By specifying this font feature, one can use `name-only' Japanese font which will not be embedded in the output PDF file. See Subsection~\ref{ssec-psft}. % %<*ja> これを指定することで,PDFに埋め込まれない「名前だけ」のフォントを指定することが -できる.\ref{ssec-psft} 節を参照. +できる.\ref{ssec-psft}節を参照. % \end{list} @@ -3272,7 +3344,7 @@ As explained in Subsection~\ref{ssec-plain}, \verb+\jQ+ is equal to a unit used in Japanese phototypesetting. So one should not change the value of this dimension. % %<*ja> -\ref{ssec-plain} 節で述べたように,\verb+\jQ+ は$1\,\textrm{Q}=0.25\,\textrm{mm}$ +\ref{ssec-plain}節で述べたように,\verb+\jQ+ は$1\,\textrm{Q}=0.25\,\textrm{mm}$ と等しい.ここで,`Q'(もしくは「級」)は日本の写植で用いられる単位である.したがって, この寸法レジスタの値を変更してはならない. % @@ -3462,13 +3534,13 @@ $i$は7より小さい自然数. %<*en> Furthermore, \LuaTeX-ja uses several `user-defined' whatsit nodes for -typesetting. All those nodes store a natural number (hence the node's -\texttt{type} is 100). +inrernal processing. All those nodes store a natural number (hence the node's +\texttt{type} is 100). The following \verb+user_id+s are used: % %<*ja> -さらに,\LuaTeX-jaはいくつかの「ユーザ定義の」whatsitノードを組版に用いる. +さらに,\LuaTeX-jaはいくつかの「ユーザ定義の」whatsit ノードを内部処理に用いる. これらの全てのノードは自然数を格納している(したがってノードの\texttt{type}は -100である). +100である).次の \verb+user_id+ が使用される: % \begin{description} \item[30111] @@ -3498,14 +3570,21 @@ Nodes for Japanese Characters which the callback process of \Pkg{luaotfload} won't be applied, and the character code is stored in the \texttt{value} field. Each node having this \verb+user_id+ is converted to a `glyph\_node' \emph{after} - the callback process of \Pkg{luaotfload}. + the callback process of luaotfload. + This \verb+user_id+ is only used by the \Pkg{luatexja-otf} package. % %<*ja> \Pkg{luaotfload}のコールバックによる処理が適用されない和文文字のためのノードで, \texttt{value}フィールドにその文字のコードが格納されている. この \verb+user_id+ を持つノードはそれぞれが\Pkg{luaotfload}のコールバックの処理の -\textbf{後で}`glyph\_node'に変換される. +\textbf{後で}`glyph\_node'に変換される.この \verb+user_id+ は % +\Pkg{luatexja-otf} パッケージでのみ使用される. % + +\item[30114] +Nodes for indicating beginning of a paragraph. +A paragraph which is started by \verb+\item+ in list-like environments has a horizontal box +for its label before the actual contents. So \dots \end{description} %<*en> These whatsits will be removed during the process of inserting \textbf{JAglue}s. @@ -3547,7 +3626,7 @@ known from any callbacks. In the \texttt{tex/packaging.w} (which is a file in the source of \LuaTeX), there are the following codes: % %<*ja> -\ref{ssec-param} 節で述べたように,ある水平ボックスの中で効力を持つ +\ref{ssec-param}節で述べたように,ある水平ボックスの中で効力を持つ \Param{kanjiskip}の値は最後に現れた値のみであり,したがってボックス全体に適用される \Param{kanjiskip}は5\,ptであるべきである.しかし,\LuaTeX の実装のために, この`5\,pt'はどのコールバックからも知ることはできない. @@ -3735,7 +3814,7 @@ after `beginning/ending of a group' characters. \item State~$M$: 行中. \item State~$K$: 行中(和文文字の後). \end{itemize} -また,状態遷移は,図 \ref{fig-ptexipro} のようになっており,図中の数字は +また,状態遷移は,図\ref{fig-ptexipro}のようになっており,図中の数字は カテゴリーコードを表している.最初の3状態は\TeX の入力処理部と同じであり, 図中から状態$K$と「$j$」と書かれた矢印を取り除けば,\TeX の入力処理部と同 じものになる. @@ -3803,10 +3882,11 @@ Considering these situations, handling of an end-of-line in \LuaTeX-ja are as fo \begin{quote} A character U+FFFFF (its category code is set to 14~(comment) by \LuaTeX-ja) is appended to an input line, \emph{before \LuaTeX\ actually -process it}, if and only if the following two conditions are satisfied: +process it}, if and only if the following three conditions are satisfied: \begin{enumerate} \item The category code of the character $\langle${return}$\rangle$ (whose character code is 13) is 5~(end-of-line). +\item The category code of U+FFFFF itself is 14~(comment). \item The input line matches the following `regular expression': \[ (\text{any char})^*(\textbf{JAchar}) @@ -3848,11 +3928,12 @@ u \begin{quote} 各入力行に対し,\textbf{その入力行が読まれる前の内部状態で} -以下の2条件が満たされている場合,\LuaTeX-jaはU+FFFFF番の文字 +以下の3条件が満たされている場合,\LuaTeX-jaはU+FFFFF番の文字 \footnote{この文字はコメント文字として扱われるように\LuaTeX-ja内部で設定をしている.} を末尾に追加する.よって,その場合に改行は空白とは見做されないこととなる. \begin{enumerate} \item 改行文字(文字コード13番)のカテゴリーコードが5~(end-of-line)である. +\item U+FFFFFのカテゴリーコードが14~(comment)である. \item 入力行は次の「正規表現」にマッチしている: \[ (\text{any char})^*(\textbf{JAchar}) @@ -4338,7 +4419,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]} \end{table} \subsection{その他の場合} -本節の内容は表 \ref{tab-jfmglue} にまとめてある. +本節の内容は表\ref{tab-jfmglue}にまとめてある. \paragraph{和文Aと欧文の間} \textit{Nq}が\textsf{和文A}で,\textit{Np}が\textsf{欧文}の場合,JFMグルー挿入処理は次のようにして行われる.