X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=doc%2Fluatexja.dtx;h=8187f42a3a1e31643f742fa4d9766156908aab8f;hb=79acad85e3b942cd4fe555c40886ad295b487fce;hp=35387e6b4fc080aa2c42d07d8354f20868452f96;hpb=6bdcab1c23b47915bb0a69771860ca05a61fec42;p=luatex-ja%2Fluatexja.git diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx index 35387e6..8187f42 100644 --- a/doc/luatexja.dtx +++ b/doc/luatexja.dtx @@ -682,92 +682,63 @@ To install the \LuaTeX-ja\ package, you will need: 安装\LuaTeX-ja之前,需要如下: % \begin{itemize} -%<*en> -\item \LuaTeX\ (version 0.65.0-beta or later) and its supporting packages. +\item \LuaTeX\ beta-0.74.0 (or later) +\item \Pkg{luaotfload} v2.2 +\item \Pkg{luatexbase} v0.6~(2013/05/04) +\item \Pkg{xunicode} v0.981~(2011/09/09) +\end{itemize} -You might need to add the following lines to -\texttt{lualatex.ini} (just before \verb+\dump+ in the last line), -if you are using recent \LuaTeX\ whose Lua is 5.2. -% -%<*ja> -\item \LuaTeX(バージョン 0.65.0-beta以降)とその支援パッケージ. +%<*!ja> +\emph{From this version of \LuaTeX-ja, \TeX~Live~2012 (or older version) is +no longer supported, since \LuaTeX\ binary and \Pkg{luaotfload} is updated in +\TeX~Live~2013.} +And conversely, older versions of \LuaTeX-ja (20130318.1 or earlier) don't work in +\TeX~Live~2013. -Lua 5.2を用いた\LuaTeX(バージョン0.74.0-beta以降)では,\texttt{lualatex.ini}\ -に次の行を加える必要があるかもしれない(\verb+\dump+ の前に). -% -%<*!zh> -\begin{lstlisting} -{\catcode`\#=12\catcode`\~=12% -\global\everyjob\expandafter{\the\everyjob% - \directlua{% - if not table.maxn then - table.maxn = function(t) - local r = 0 - for i,_ in pairs(t) do - if type(i)=='number' then - if i>r then r=i end - end - end - return r - end - end - if not package.loaders then package.loaders=package.searchers end - if not string.explode then - string.explode = function (str, separator) - if not separator then separator=" +" end - local t, nexti, pos = { }, 1, 1 - while true do - local st, sp = str:find (separator, pos) - if not st then break end - if pos ~= st then - t [ nexti ] = str:sub ( pos , st - 1 ) - nexti = nexti + 1 - end - pos = sp + 1 - end - t [ nexti ] = str:sub ( pos ) - return t - end - end - }% -}}% -\end{lstlisting} -% -%<*zh> -\item \LuaTeX(版本号为大于0.65)和相关支持宏包。 -%如果用户使用的是\TeX Live2011以及最新版本的W32\TeX,可不考虑此项。 -% -%<*en> -\item The source archive of \LuaTeX-ja, of course\texttt{:)} -% -%<*ja> -\item \LuaTeX-jaのソースアーカイブ(もちろん\texttt{:)}). -% -%<*zh> -\item \LuaTeX-ja的源码(当然喽\texttt{:)})。 -% -%<*en> -\item The \Pkg{xunicode} package, which version is \emph{just v0.981 (2011/09/09)}.\\ -If you have the \Pkg{fontspec} package, this \Pkg{xunicode} package must be exist. -But be careful about the version; other versions may not work correctly with \LuaTeX-ja. -% -%<*ja> -\item \Pkg{xunicode}パッケージ(\textbf{2011/09/09,~v0.981}).\\ -\Pkg{fontspec}パッケージが導入されていればこのパッケージも導入されているはずであるが, -このv0.981以外のバージョンでは\LuaTeX-ja上で正しく動作しない危険性がある. -% -%<*zh> -\Pkg{xunicode}宏包,当前版本必须为\textit{v0.981(2011/09/09)}。\\ -如果你使用\Pkg{fontspec}宏包,\Pkg{xunicode}就必须存在。但是请注意该包的 -版本,其他版本可能不会正常工作。 -% -\end{itemize} +\medskip -%<*en> -The installation methods are as follows: -% +Now \LuaTeX-ja is available from the following archive and distributions: + \begin{itemize} + \item CTAN (in the \texttt{macros/luatex/generic/luatexja} directory) + \item MiK\TeX\ (in \texttt{luatexja.tar.lzma}) + \item \TeX\ Live (in \texttt{texmf-dist/tex/luatex/luatexja}) + \item W32\TeX\ (in \texttt{luatexja.tar.xz}) + \end{itemize} + +If you are using \TeX~Live~2013, you can install \LuaTeX-ja +from \TeX~Live manager (\texttt{tlmgr}): +\begin{verbatim} +$ tlmgr install luatexja +\end{verbatim} + +\medskip + +%If you want to install manually, do the following instruvtions: +% %<*ja> -インストール方法は以下のようになる: +\textbf{本バージョン以降の\LuaTeX-jaは\TeX~Live~2012以前では動作しない.} +これは,\LuaTeX と\Pkg{luaotfload}が\TeX~Live~2013において更新されたことによる. +逆に,20130318.1以前の\LuaTeX-jaは\TeX~Live~2013では動作しない. + +\medskip + +現在,\LuaTeX-jaは以下のアーカイブ,およびディストリビューションに収録されている: + \begin{itemize} + \item CTAN (\texttt{macros/luatex/generic/luatexja}) + \item MiK\TeX\ (\texttt{luatexja.tar.lzma}) + \item \TeX\ Live (\texttt{texmf-dist/tex/luatex/luatexja}) + \item W32\TeX\ (\texttt{luatexja.tar.xz}) + \end{itemize} + +例えば\TeX~Live~2013を利用しているなら,\LuaTeX-jaは\TeX~Live manager (\texttt{tlmgr})を +使ってインストールすることができる. +\begin{verbatim} +$ tlmgr install luatexja +\end{verbatim} + +\medskip + +手動でインストールする場合の方法は以下のようになる: % %<*zh> 安装方法如下: @@ -786,15 +757,7 @@ $ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git \begin{flushleft} \url{http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}. \end{flushleft} -\item Now \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} - These are based on the \texttt{master} branch. -\end{itemize} +\end{itemize} Note that the \texttt{master} branch, and hence the archive in CTAN, are not updated frequently; the forefront of development is not the \texttt{master} branch. @@ -812,16 +775,7 @@ $ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git \begin{flushleft} \url{http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}. \end{flushleft} -\item 今や,\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} - これらは\texttt{master}ブランチの内容を元にしている. \end{itemize} - \texttt{master}ブランチ(従って,CTAN内のアーカイブも)はたまにしか更新されないことに注意. 主な開発は\texttt{master}の外で行われ,比較的まとまってきたらそれを\texttt{master}に 反映させることにしている. @@ -838,16 +792,7 @@ $ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git \begin{flushleft} \url{http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}. \end{flushleft} -\item 现在\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} - 这些版本都基于\texttt{master}分支。 \end{itemize} - 注意\texttt{master}分支和CTAN仓库中的版本,升级并不频繁。 前段开发并未在\texttt{master}分支。 % @@ -873,7 +818,7 @@ But only the contents in \texttt{src/} are needed to work \LuaTeX-ja. instead copying is also good. % %<*ja> -\item \texttt{src/}の中身を自分の\texttt{TEXMF}ツリーにコピーする. +\item \texttt{src}の中身を自分の\texttt{TEXMF}ツリーにコピーする. 場所の例としては,例えば\texttt{TEXMF/tex/luatex/luatexja/}がある. シンボリックリンクが利用できる環境で,かつリポジトリを直接取得したのであれば, (更新を容易にするために)コピーではなくリンクを貼ることを勧める. @@ -1522,16 +1467,16 @@ featureが\textbf{JAglue}と衝突するためである(\ref{para-kern}節を 另注意,出格特性在这7个命令中默认关闭,因为此特性会与\textbf{JAglue}冲突(参见\ref{para-kern})。 % -%\subsection{Preset} +%\subsection{Preset} %\subsection{プリセット設定} \label{ssec-preset} -%<*en> +%<*!ja> To use standard Japanese font settings easily, one can load \Pkg{luatexja-preset} package with several options. This package provides functions in a part of \Pkg{otf} package and a part of \Pkg{PXchfon} package by Takayuki Yato, and loads \Pkg{luatexja-fontspec} internally. -% +% %<*ja> よく使われている和文フォント設定を一行で指定できるようにしたのが \Pkg{luatexja-preset}パッケージである.このパッケージは, @@ -1539,11 +1484,11 @@ and loads \Pkg{luatexja-fontspec} internally. 合わせたような格好をしており,内部で\Pkg{luatexja-fontspec}を読み込んでいる. % -%\paragraph{General options} +%\paragraph{General options} %\paragraph{一般的なオプション} \begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw} \item[deluxe] -%<*en> +%<*!ja> Specifying this option enables us to use \textit{mincho} with two weights (medium~and~bold), \textit{gothic} with three weights (medium,~bold and~heavy), and \textit{rounded gothic}% \footnote{Provided by \texttt{\char92mgfamily}, @@ -1551,7 +1496,7 @@ because \textit{rounded gothic} is called \textit{maru gothic} (丸ゴシック) The heavy weight of \textit{gothic} can be used by ``changing the family'' \verb+\gtebfamily+. This is because \Pkg{fontspec} package can handle only medium (\verb+\mdseries+) and bold (\verb+\bfseries+). -% +% %<*ja> 明朝体2ウェイト・ゴシック体3ウェイトと, 丸ゴシック体 (\verb+\mgfamily+) を使用可能とする. @@ -1560,39 +1505,25 @@ bold (\verb+\bfseries+). このような中途半端な実装になっている. % \item[expert] -%<*en> +%<*!ja> Use horizontal kana alternates, and define a control sequence \verb+\rubyfamily+ to use kana characters designed for ruby. -% -%<*ja> -横組専用仮名を用いる.また,\verb+\rubyfamily+ でルビ用仮名が使用可能となる. -% +% +%横組専用仮名を用いる.また,\verb+\rubyfamily+ でルビ用仮名が使用可能となる. \item[bold] -%<*en> -Use bold gothic as bold mincho. -% -%<*ja> -明朝の太字をゴシック体の太字とする. -% +%Use bold gothic as bold mincho. +%明朝の太字をゴシック体の太字とする. \item[90jis] -%<*en> -Use fonts with 90JIS glyphs if possible. -% -%<*ja> -出来る限り90JISの字形を採用しているフォントを使う. -% +%Use 90JIS glyph variants if possible. +%出来る限り90JISの字形を使う. \item[jis2004] -%<*en> -Use fonts with JIS2004 glyphs if possible. -% -%<*ja> -出来る限りJIS2004の字形を採用しているフォントを使う. -% +%Use JIS2004 glyph variants if possible. +%出来る限りJIS2004の字形を使う. \item[jis] -%<*en> +%<*!ja> Use the JFM \texttt{jfm-jis.lua}, instead of \texttt{jfm-ujis.lua}, which is the default JFM of \LuaTeX-ja. -% +% %<*ja> 用いるJFMを(JISフォントメトリック類似の)\texttt{jfm-jis.lua}にする.このオプションがない時は \LuaTeX-ja標準の\texttt{jfm-ujis.lua}が用いられる. @@ -1602,30 +1533,25 @@ Use the JFM \texttt{jfm-jis.lua}, instead of \texttt{jfm-ujis.lua}, which is the %\paragraph{Kozuka fonts} %\paragraph{小塚フォント} %<*en> -When using single weight, we adopt Kozuka~Gothic~M as \textit{gothic}, -because we think that Kozuka~Gothic~R looks thin. There is not `Kozuka Maru Gothic', therefore Kozuka~Gothic~H is used as a substitute for \textit{rounded gothic}. % %<*ja> -まず,小塚フォントを用いる設定を述べる. -単ウェイト時のゴシック体は小塚ゴシックRでは細いように感じるので, -小塚ゴシックMに変更している. -さらに,丸ゴシック体はないので便宜上小塚ゴシックHで代用している. +丸ゴシック体はないので便宜上小塚ゴシックHで代用している. % \begin{center}\small \begin{tabular}{llll} \toprule -&\tt kozuka4&\tt kozuka6&\tt kozuka6n\\ +&\tt kozuka-pro&\tt kozuka-pr6&\tt kozuka-pr6n\\ \midrule -%<*en> +%<*!ja> \bf mincho medium&Kozuka Mincho Pro R&Kozuka Mincho ProVI R&Kozuka Mincho Pr6N R\\ \bf mincho bold&Kozuka Mincho Pro B&Kozuka Mincho ProVI B&Kozuka Mincho Pr6N B\\ \midrule \bf gothic medium\\ without \texttt{deluxe} &Kozuka Gothic Pro M&Kozuka Gothic ProVI M&Kozuka Gothic Pr6N M\\ - multiple weights + with \texttt{deluxe} &Kozuka Gothic Pro R&Kozuka Gothic ProVI R&Kozuka Gothic Pr6N R\\ \midrule \bf gothic bold @@ -1634,7 +1560,7 @@ as a substitute for \textit{rounded gothic}. &Kozuka Gothic Pro H&Kozuka Gothic ProVI H&Kozuka Gothic Pr6N H\\ (rounded gothic) &Kozuka Gothic Pro H&Kozuka Gothic ProVI H&Kozuka Gothic Pr6N H\\ -% +% %<*ja> \gt 明朝体細字&小塚明朝Pro~R&小塚明朝ProVI~R&小塚明朝Pr6N~R\\ \gt 明朝体太字&小塚明朝Pro~B&小塚明朝ProVI~B&小塚明朝Pr6N~B\\ @@ -1656,42 +1582,44 @@ as a substitute for \textit{rounded gothic}. \end{tabular} \end{center} -%\paragraph{Hiragino and Morisawa} -%\paragraph{ヒラギノ・モリサワ} -%<*en> -Settings for Hiragino fonts: -% -%<*ja> -まずヒラギノフォントから: -% -% これらは持っているわけではないので,フォント名が -% 異なっているかもしれません.確認お願いします. +%\paragraph{Hiragino and Morisawa}\ +%\paragraph{ヒラギノ・モリサワ}\ \begin{center}\small \begin{tabular}{lll} \toprule -&\tt hiragino&\tt hiraginon\\ +&\tt hiragino-pro&\tt hiragino-pron\\ \midrule -%<*en> +%<*!ja> \bf mincho medium& Hiragino Mincho Pro W3&Hiragino Mincho Pr6N W3\\ \bf mincho bold& Hiragino Mincho Pro W6&Hiragino Mincho Pr6N W6\\ -\bf gothic medium& -Hiragino Kaku Gothic Pro W3&Hiragino Kaku Gothic ProN W3\\ +\midrule +\bf gothic medium\\ + without \texttt{deluxe} +&Hiragino Kaku Gothic Pro W6&Hiragino Kaku Gothic ProN W6\\ + with \texttt{deluxe} +&Hiragino Kaku Gothic Pro W3&Hiragino Kaku Gothic ProN W3\\ +\midrule \bf gothic bold& Hiragino Kaku Gothic Pro W6&Hiragino Kaku Gothic ProN W6\\ \bf gothic heavy& Hiragino Kaku Gothic Std W8&Hiragino Kaku Gothic StdN W8\\ \bf rounded gothic& Hiragino Maru Gothic Pro W4&Hiragino Maru Gothic ProN W4\\ -% +% %<*ja> \gt 明朝体細字& ヒラギノ明朝体Pro~W3&ヒラギノ明朝体Pr6N~W3\\ \gt 明朝体太字& ヒラギノ明朝体Pro~W6&ヒラギノ明朝体Pr6N~W6\\ -\gt ゴシック体細字& -ヒラギノ角ゴPro~W3&ヒラギノ角ゴProN~W3\\ +\midrule +\gt ゴシック体細細字\\ + 単ウェイト時 +&ヒラギノ角ゴPro~W6&ヒラギノ角ゴProN~W6\\ + 多ウェイト時 +&ヒラギノ角ゴPro~W3&ヒラギノ角ゴProN~W3\\ +\midrule \gt ゴシック体太字& ヒラギノ角ゴPro~W6&ヒラギノ角ゴProN~W6\\ \gt ゴシック体極太& @@ -1699,19 +1627,9 @@ Hiragino Maru Gothic Pro W4&Hiragino Maru Gothic ProN W4\\ \gt 丸ゴシック体& ヒラギノ丸ゴPro~W4&ヒラギノ丸ゴProN~W4\\ % -\bottomrule -\end{tabular} -\end{center} -%<*en> -Settings for Morisawa fonts: -% -%<*ja> -次はモリサワフォントを用いる設定である: -% -\begin{center}\small -\begin{tabular}{lll} -\toprule -&\tt morisawa4&\tt morisawa6n\\ +\midrule +\midrule +&\tt morisawa-pro&\tt morisawa-pr6n\\ \midrule %<*en> \bf mincho medium& @@ -1747,12 +1665,12 @@ Jun Pro 101&Jun Pr6N 101\\ %\paragraph{Settings for single weight} %\paragraph{単ウェイト用設定} -%<*en> +%<*!ja> Next, we describe settings for using only single weight. In four settings below, we use same fonts for medium and bold (and heavy) weights. (Hence \verb+\mcfamily\bfseries+ and \verb+\mcfamily\mdseries+ yields same Japanese fonts, if \texttt{deluxe} option is also specified). -% +% %<*ja> 次に,単ウェイト用の設定を述べる.この4設定では「細字」「太字」の区別はない. また,丸ゴシック体はゴシック体と同じフォントを用いる. @@ -1762,12 +1680,12 @@ if \texttt{deluxe} option is also specified). \toprule &\tt noembed&\tt ipa&\tt ipaex&\tt ms\\ \midrule -%<*en> +%<*!ja> \bf mincho&Ryumin-Light (non-embedded) &IPAMincho&IPAexMincho&MS Mincho\\ \bf gothic&GothicBBB-Medium (non-embedded) &IPAGothic&IPAexGothic&MS Gothic\\ -% +% %<*ja> \gt 明朝体&Ryumin-Light(非埋込) &IPA明朝&IPAex明朝&MS明朝\\ @@ -1778,11 +1696,11 @@ if \texttt{deluxe} option is also specified). \end{tabular} \end{center} -%\paragraph{Using HG fonts} +%\paragraph{Using HG fonts} %\paragraph{HGフォントの利用} -%<*en> +%<*!ja> We can use HG~fonts bundled with Microsoft Office for realizing multiple weights in Japanese fonts. -% +% %<*ja> すぐ前に書いた単ウェイト用設定を,Microsoft Office等に付属するHGフォントを使って 多ウェイト化した設定もある. @@ -1790,9 +1708,9 @@ We can use HG~fonts bundled with Microsoft Office for realizing multiple weights \begin{center}\small \begin{tabular}{llll} \toprule -&\tt ipa-dx&\tt ipaex-dx&\tt ms-dx\\ +&\tt ipa-hg&\tt ipaex-hg&\tt ms-hg\\ \midrule -%<*en> +%<*!ja> \bf mincho medium &IPAMincho&IPAexMincho&MS Mincho\\\midrule \bf mincho bold& @@ -1811,7 +1729,7 @@ We can use HG~fonts bundled with Microsoft Office for realizing multiple weights \multicolumn{3}{c}{HG Soei Kaku Gothic UB}\\\midrule \bf rounded gothic& \multicolumn{3}{c}{HG Maru Gothic PRO}\\ -% +% %<*ja> \gt 明朝体細字 &IPA明朝&IPAex明朝&MS明朝\\\midrule @@ -1835,7 +1753,7 @@ We can use HG~fonts bundled with Microsoft Office for realizing multiple weights \bottomrule \end{tabular} \end{center} -%<*en> +%<*!ja> Note that HG~Mincho~E, HG~Gothic~E, HG Soei Kaku Gothic UB and HG Maru Gothic PRO are internally specified by: \begin{description} @@ -1843,7 +1761,7 @@ are internally specified by: \item[{\tt 90jis}] by filename (\texttt{hgrme.ttc}, \texttt{hgrge.ttc}, \texttt{hgrsgu.ttc}, \texttt{hgrsmp.ttf}). \item[{\tt jis2004}] by filename (\texttt{hgrme04.ttc}, \texttt{hgrge04.ttc}, \texttt{hgrsgu04.ttc}, \texttt{hgrsmp04.ttf}). \end{description} -% +% %<*ja> なお,HG明朝E・HGゴシックE・HG創英角ゴシックUB・HG丸ゴシック体PROの4つについては,内部で \begin{description} @@ -2979,8 +2897,9 @@ 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'. -\emph{You should not specify any font features, such as `{\tt +jp90}', -in the definition of `name-only' fonts using this `{\tt psft:}'\ prefix.} +\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.} % %<*ja> \texttt{file:} と \texttt{name:} のプリフィックスに加えて, @@ -2990,7 +2909,7 @@ in the definition of `name-only' fonts using this `{\tt psft:}'\ prefix.} 和文フォントを指定することができる.「標準的な」和文フォント, つまり`Ryumin-Light'と`GothicBBB-Medium'の指定でこのプリフィックスが使われる. \textbf{非埋込フォントをPDFに使用すると,実際にどのようなフォントが表示に用いられるか予測できない. -そのため,本プリフィックス指定時には,\texttt{+jp90} などのfont featureは指定すべきでない.} +本プリフィックス指定時には,\texttt{+jp90} などのOpenType font featureの効力はない.} % %<*zh> 除使用\texttt{file:}和\texttt{name:}外,我们还可以在\verb!\jfont!(以及\verb!\font!) @@ -3075,6 +2994,40 @@ Please contact the LuaTeX-ja project team. というエラーが出る. % +%<*ja> +\paragraph{\texttt{extend}と\texttt{slant}} +OpenType font featureと見かけ上同じような形式で指定できるものに, +\begin{description} +\item[\texttt{extend=}] 横方向に倍拡大する. +\item[\texttt{slant=}] に指定された割合だけ傾ける. +\end{description} +の2つがあり,これらだけは\texttt{psft}プリフィックスでも使用可能にしている. +\texttt{extend}や\texttt{slant}を指定した場合は,それに応じたJFMを指定すべきである% +\footnote{\LuaTeX-jaでは,これらに対するJFMを特に提供することはしない予定である.}. +例えば,次の例では無理やり通常のJFMを使っているために,文字間隔やイタリック補正量が +正しくない: +% +%<*!ja> +\paragraph{\texttt{extend} and \texttt{slant}} +The following setting can be specified as OpenType font features: +\begin{description} +\item[\texttt{extend=}] expand the font horizontally by . +\item[\texttt{slant=}] slant the font. +\end{description} +These two settings are also supported with \texttt{psft} prefix. +Note that \LuaTeX-ja doesn't adjust JFMs by these \texttt{extend} and \texttt{slant} +settings; you have to write new JFMs on purpose. +For example, the following example uses the standard JFM \texttt{jfm-ujis.lua}, hence +letter-spacing and the width of italic correction are not correct: +% +\begin{LTXexample}[width=0.3\textwidth] +\jfont\E=psft:Ryumin-Light:extend=1.5;jfm=ujis +\E あいうえお + +\jfont\S=psft:Ryumin-Light:slant=1;jfm=ujis +\S あいう\/ABC +\end{LTXexample} + %\subsection{Structure of JFM file} %\subsection{JFMファイルの構造} %\subsection{JFM结构} @@ -4020,36 +3973,33 @@ character other than space~`\texttt{\char32}'~(U+0020) has the category code %\subsection{参数一览} \label{ssec-param} -%<*en> +%<*!ja> The following is the list of parameters which can be specified by the \verb+\ltjsetparameter+ command. [\verb+\cs+] indicates the counterpart in \pTeX, and symbols beside each parameter has the following meaning: -% +% %<*ja> 以下は \verb+\ltjsetparameter+ に指定することができるパラメータの一覧である. [\verb+\cs+]は\pTeX における対応物を示す. また,それぞれのパラメータの右上にある記号には次の意味がある: % \begin{itemize} -%<*zh> -\item % avoiding from error ``Something's wrong--perhaps a missing \item.''. -% -%<*en> +%<*!ja> \item No mark: values at the end of the paragraph or the hbox are adopted in the whole paragraph/hbox. -% +% %<*ja> \item 記号なし:段落や水平ボックスの終端での値がその段落/水平ボックス全体で用いられる. % -%<*en> +%<*!ja> \item `\ast' : local parameters, which can change everywhere inside a paragraph/hbox. -% +% %<*ja> \item `\ast':ローカルなパラメータであり,段落/水平ボックス内のどこででも値を変えることができる. % -%<*en> +%<*!ja> \item `\dagger': assignments are always global. -% +% %<*ja> \item `\dagger':指定は常にグローバルになる. % @@ -4309,7 +4259,7 @@ With the help of this example, we remark the specification of \verb+\inhibitglue % \begin{itemize} %<*zh> -\item +\item ... % %<*en> \item The call of \verb+\inhibitglue+ in the (internal) vertical mode is @@ -4981,15 +4931,15 @@ $i$は7より小さい自然数. %<*en> Furthermore, \LuaTeX-ja uses several `user-defined' whatsit nodes for 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: +\texttt{type} is 100). % %<*ja> -さらに,\LuaTeX-jaはいくつかの「ユーザ定義の」whatsit ノードを内部処理に用いる. +さらに,\LuaTeX-jaはいくつかの「ユーザ定義の」whatsitノードを内部処理に用いる. これらの全てのノードは自然数を格納している(したがってノードの\texttt{type}は -100である).次の \verb+user_id+ が使用される: +100である). % \begin{description} -\item[30111] +\item[\texttt{inhibitglue}] %<*en> Nodes for indicating that \verb+\inhibitglue+ is specified. The \texttt{value} field of these nodes doesn't matter. @@ -4999,7 +4949,7 @@ Nodes for indicating that \verb+\inhibitglue+ is \texttt{value}フィールドは意味を持たない. % -\item[30112] +\item[\texttt{stack\_marker}] %<*en> Nodes for \LuaTeX-ja's stack system (see the next subsection). The \texttt{value} field of these nodes is @@ -5010,7 +4960,7 @@ Nodes for \LuaTeX-ja's stack system (see the next これらのノードの\texttt{value}フィールドは現在のグループを表す. % -\item[30113] +\item[\texttt{char\_by\_cid}] %<*en> Nodes for Japanese Characters which the callback process of \Pkg{luaotfload} won't be applied, and the character code is @@ -5027,7 +4977,7 @@ Nodes for Japanese Characters which the callback process of \Pkg{luatexja-otf} パッケージでのみ使用される. % -\item[30114] +\item[\texttt{begin\_par}] Nodes for indicating beginning of a paragraph. A paragraph which is started by \verb+\item+ in list-like environments has a horizontal box for its label before the actual contents. So \dots @@ -6421,7 +6371,7 @@ listing environments. また,行長と自然長との差の絶対値を計算し,それを\textit{total}とおく. \subsection{行末文字の位置調整} -まず,行末が文字クラス$n$の\textbf{Jachar}であった場合, +まず,行末が文字クラス$n$の\textbf{JAchar}であった場合, それを動かすことによって,\textbf{JAglue} が負担する調整量を少なくしようとする. この行末文字の左右の移動可能量は,JFM中にある文字クラス$n$の定義の \texttt{end\_stretch},~\texttt{end\_shrink}フィールドに全角単位の値として記述されている.