diff options
author | Karl Berry <karl@freefriends.org> | 2014-06-23 23:35:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-06-23 23:35:40 +0000 |
commit | d82e5391f0626307e306305eb3fe00eac8c8da3f (patch) | |
tree | 4b85bc59b049d9b7025d666cd0fc324d83d98e4a /Master/texmf-dist/doc/luatex/luatexja | |
parent | 2290bfdf9afc805d8a73d6d9728c1362486db3fd (diff) |
luatexja (22jun14)
git-svn-id: svn://tug.org/texlive/trunk@34369 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luatexja')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/COPYING | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/README | 8 | ||||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf | bin | 393817 -> 393146 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf | bin | 362167 -> 365271 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf | bin | 727474 -> 731379 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx | 100 |
6 files changed, 95 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/luatex/luatexja/COPYING b/Master/texmf-dist/doc/luatex/luatexja/COPYING index bb732b6d883..ba2ed9a72c6 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/COPYING +++ b/Master/texmf-dist/doc/luatex/luatexja/COPYING @@ -1,4 +1,4 @@ -Copyright (c) 2011--2013 The LuaTeX-ja project, All rights reserved. +Copyright (c) 2011--2014 The LuaTeX-ja project, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -14,7 +14,7 @@ modification, are permitted provided that the following conditions are met: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE LUATEX-JA PROJECT OR CONTRIBUTORS BE LIABLE +DISCLAIMED. IN NO EVENT SHALL THE LUATEX-JA PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND diff --git a/Master/texmf-dist/doc/luatex/luatexja/README b/Master/texmf-dist/doc/luatex/luatexja/README index 3668aeb2158..2bebe5b1ad7 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/README +++ b/Master/texmf-dist/doc/luatex/luatexja/README @@ -1,4 +1,4 @@ -The LuaTeX-ja Package 20140504.0 +The LuaTeX-ja Package 20140621.1 -------------------------------- Copyright (c) 2011--2014 The LuaTeX-ja project License: modified BSD (see COPYING) @@ -33,9 +33,9 @@ Installation 2. If you must/want to install manually: a. Download the source archive from CTAN, - or tagged as 20140504.0 in the Git repository by + or tagged as 20140621.1 in the Git repository by <http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git - ;a=snapshot;h=refs/tags/20140504.0;sf=tgz> + ;a=snapshot;h=refs/tags/20140621.1;sf=tgz> b1. Extract the archive and process following three files by LuaLaTeX to generate classes for Japanese typesetting: @@ -80,4 +80,4 @@ Notes * src/*.{ins.dtx} and src/ltj-kinsoku_make.tex are not needed in regular use. -Last commit date: Sun May 4 06:31:45 2014 +0900 +Last commit date: Sat Jun 21 21:42:39 2014 +0900 diff --git a/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf b/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf Binary files differindex 24f1be48df1..c42dbc652a5 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf +++ b/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf b/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf Binary files differindex 4c398d686a5..b30d16fc26b 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf +++ b/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf b/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf Binary files differindex 187b498f942..746adb84246 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf +++ b/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx b/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx index ed343fefb84..69fc7e16ab5 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx +++ b/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx @@ -142,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% %<en>\medskip @@ -525,12 +525,13 @@ and \emph{Japanese fonts} for fonts used in \textbf{JAchar}. %<en>\subsection{Installation} %<ja>\subsection{インストール} -%<en>To install the \LuaTeX-ja\ package, you will need: +%<en>To install the \LuaTeX-ja\ package, you will need the following engine and packages: %<ja>\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} @@ -550,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 @@ -570,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 @@ -2117,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): %</en> %<*ja> この機能には面白い使い方がある:2つのパラメータを適切に設定することで,サイズの -異なる文字を中心線に揃えることができる. +異なる文字を「中心線」に揃えることができる. 以下は一つの例である(値はあまり調整されていないことに注意): %</ja> \begin{LTXexample} @@ -2134,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. +%</en> +%<*ja> +なお,\Param{yalbaselineshift}パラメータに正の値を指定しても, +下の例のように\textbf{ALchar}の深さは増加しないことに注意. +\Param{yjabaselineshift}パラメータは別の方法を使って実装しているので, +このような問題は起こらない. +%</ja> +\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 との違い} @@ -3471,9 +3499,9 @@ An example of this callback is the \texttt{ltjarticle} class, with %<en>\item[\texttt{luatexja.define\_jfont} callback] %<ja>\item[\texttt{luatexja.define\_jfont}コールバック] %<*en> -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\_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. %</en> %<*ja> このコールバックと次のコールバックは組をなしており,Unicode中に固定された文字コード @@ -4107,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{+<skip>\verb+}+ と\\ +\verb+\ltjsetxkanjiskip{+<skip>\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} +は同じ意味を持つ. +%</ja> +%<*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{+<skip>\verb+}+ and \verb+\ltjsetxkanjiskip{+<skip>\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. +%</en> @@ -4331,7 +4409,7 @@ commands which are not described in Subsection~\ref{ssec-chgfnt}. \par\smallskip\par\hskip-\leftskip{\bfseries% %<ja>追加の長さ変数達 %<en>additonal dimensions -}\par +}\par\nobreak %<*en> Like \pLaTeXe, \LuaTeX-ja defines the following dimensions |