From 326c162a7ec8088d104101b4739c727d824ae5f7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 31 Jan 2016 23:45:28 +0000 Subject: luatexja (31jan16) git-svn-id: svn://tug.org/texlive/trunk@39527 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/luatex/luatexja/COPYING | 2 +- Master/texmf-dist/doc/luatex/luatexja/README | 10 +- .../texmf-dist/doc/luatex/luatexja/ltjclasses.pdf | Bin 704389 -> 830143 bytes .../texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf | Bin 771642 -> 815329 bytes .../texmf-dist/doc/luatex/luatexja/luatexja-en.pdf | Bin 431785 -> 453390 bytes .../texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf | Bin 773088 -> 830437 bytes Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx | 105 ++++++++++++++++----- 7 files changed, 89 insertions(+), 28 deletions(-) (limited to 'Master/texmf-dist/doc/luatex') diff --git a/Master/texmf-dist/doc/luatex/luatexja/COPYING b/Master/texmf-dist/doc/luatex/luatexja/COPYING index fd079360018..3049f8374b6 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/COPYING +++ b/Master/texmf-dist/doc/luatex/luatexja/COPYING @@ -1,4 +1,4 @@ -Copyright (c) 2011--2015 The LuaTeX-ja project, All rights reserved. +Copyright (c) 2011--2016 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: diff --git a/Master/texmf-dist/doc/luatex/luatexja/README b/Master/texmf-dist/doc/luatex/luatexja/README index a75665e7145..5d0238c94cf 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/README +++ b/Master/texmf-dist/doc/luatex/luatexja/README @@ -1,6 +1,6 @@ -The LuaTeX-ja Package 20151212.0 +The LuaTeX-ja Package 20160131.0 -------------------------------- -Copyright (c) 2011--2015 The LuaTeX-ja project +Copyright (c) 2011--2016 The LuaTeX-ja project License: modified BSD (see COPYING) LuaTeX-ja is a macro package for typesetting Japanese documents with LuaTeX. @@ -34,9 +34,9 @@ Installation 2. If you must/want to install manually: a. Download the source archive from CTAN, - or tagged as 20151212.0 in the Git repository by + or tagged as 20160131.0 in the Git repository by + ;a=snapshot;h=refs/tags/20160131.0;sf=tgz> b. Extract the archive and process following three files by LuaLaTeX to generate classes for Japanese typesetting: @@ -81,4 +81,4 @@ Notes * src/*.{ins.dtx} and src/ltj-kinsoku_make.tex are not needed in regular use. -Last commit date: Sat Dec 12 13:51:34 2015 +0900 +Last commit date: Sun Jan 31 16:29:43 2016 +0900 diff --git a/Master/texmf-dist/doc/luatex/luatexja/ltjclasses.pdf b/Master/texmf-dist/doc/luatex/luatexja/ltjclasses.pdf index 786197272d9..792607997f6 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/ltjclasses.pdf and b/Master/texmf-dist/doc/luatex/luatexja/ltjclasses.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf b/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf index 161505bac1b..07b02b87fe7 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf and b/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf b/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf index 94a99e28947..38e26c1b49c 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf and b/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf b/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf index 5d7ac92097b..31de0306e5b 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf and b/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx b/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx index ab334e5c7a2..8b199dfa679 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx +++ b/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx @@ -8,6 +8,7 @@ %%%%% section ==> 章 %%%%% subsection => 節 +\IfFileExists{luatex85.sty}{\RequirePackage{luatex85}}{} %\documentclass[a4paper,titlepage]{article} %\documentclass[a4paper,titlepage]{ltjsarticle} @@ -23,7 +24,6 @@ %%%%%%%% fonts \usepackage{luatexja-otf} -\directlua{luatexja.otf.enable_ivs()} \usepackage[no-math]{fontspec} \setmainfont[Ligatures=TeX]{Linux Libertine O} \setmonofont[Scale=MatchLowercase, ItalicFont=lmmono10-italic.otf, @@ -1004,6 +1004,28 @@ Note that the bold series in both family are same as the medium series of \emph{ %\item Japanese characters in math mode are typeset by the font family \texttt{mc}. %\item 数式モード中の和文文字は明朝体(\texttt{mc})で出力される. +%<*en> + \item \cs{jttdefault}% + \footnote{% + When \Pkg{ltjsclasses} classes are used, or + \Pkg{luatexja-fontspec} (or \Pkg{luatexja-preset}) is loaded with \texttt{match} option, + \cs{ttfamily} changes the current Japanese font amily to \cs{jttdefault}. + These classes and packages also redefine \cs{jttdefault} to + \cs{gtdefault} (\emph{gothic}~family). + } specifies the Japanese font family in \cs{verb}~or~\texttt{verbatim} environment. + The default value of \cs{jttdefault} is \cs{mcdefault}, so \emph{mincho} family is used. +% +%<*ja> + \item \cs{verb} や \texttt{verbatim} 環境中の和文文字に使われる和文フォントファミリは + \ \cs{jttdefault} で指定する% + \footnote{% + \Pkg{ltjsclasses}を使用したり,あるいは \texttt{match} オプションを指定して\Pkg{luatexja-fontspec}% + や\Pkg{luatexja-preset}パッケージを読み込んだときは,単なる \cs{ttfamily} によっても和文フォントが + \ \cs{jttdefault}\ に変更される.また,これらのクラスファイルやパッケージは + \ \cs{jttdefault}\ を \cs{gtdefault}(ゴシック体)に再定義する. + }.標準値は \cs{mcdefault},つまり明朝体として用いるのと + 同じフォントファミリである. +% %<*en> \item If you use the \Pkg{beamer} class with the default font theme (which uses sans serif @@ -1467,13 +1489,14 @@ For example, the line~5 in below example is eqivalent to lines 1--3. %\paragraph{General options} %\paragraph{一般的なオプション} \begin{cslist}[before*=] - -\item[fontspec] +\item[fontspec% +%\textrm{~(enabled by default)} +%\emph{\gtfamily (既定)} +] %<*en> With this option, Japanese fonts are selected using functionality of the \Pkg{luatexja-fontspec} package. This means that the \Pkg{fontspec} package is automatically loaded by this package. -\emph{This option is enabled by default.} If you need to pass some options to \Pkg{fontspec}, you can load \Pkg{fontspec} manually before \Pkg{luatexja-preset}: @@ -1481,7 +1504,6 @@ before \Pkg{luatexja-preset}: %<*ja> \Pkg{luatexja-fontspec}パッケージの機能を用いて和文フォントを選択する. これは,\Pkg{fontspec}パッケージが自動で読み込まれることを意味する. -\emph{このオプションは標準で有効になっている.} もし\Pkg{fontspec}パッケージに何らかのオプションを渡す必要がある \footnote{例えば,数式フォントまで置換されてしまい,\cs{mathit}によってギリシャ文字の @@ -1528,19 +1550,39 @@ In this case, one can use \cs{setmainfont} etc.\ to select \emph{alphabetic} fon いる場合は \texttt{nfssonly} オプションは無視される. % -\item[nodeluxe] +\item[match] +%<*en> +If this option is specified, usual family-changing commands such as +\cs{rmfamily},~\cs{textrm}, \cs{sffamily},~\dots\ also change Japanese font family. +This option is passed to \Pkg{luatexja-fontspec}, if \texttt{fontspec} +option is specifed. +% + +%<*ja> +このオプションが指定されると,「\pLaTeXe 新ドキュメントクラス」のように\ +\cs{rmfamily}, \verb+\textrm{...}+, \cs{sffamily} 等が +欧文フォントだけでなく和文フォントも変更するようになる. +\ \texttt{fontspec}\ +オプションが有効になっている場合は,このオプションは \Pkg{luatexja-fontspec} パッケージへと渡される. +% + + +\item[nodeluxe% +%\textrm{~(enabled by default)} +%\emph{\gtfamily (既定)} +] %<*en> +The nagation of \texttt{deluxe} option. Use one-weighted \textit{mincho} and \textit{gothic} font families. This means that \verb+\mcfamily\bfseries+, \verb+\gtfamily\bfseries+ and \verb+\gtfamily\mdseries+ use the same font. -\emph{This option is enabled by default.} % %<*ja> +\texttt{deluxe}オプションの否定. \LaTeXe 環境下の標準設定のように,明朝体・ゴシック体を各1ウェイトで使用する. より具体的に言うと,この設定の下では \ \verb+\mcfamily\bfseries+, \verb+\gtfamily\bfseries+, \verb+\gtfamily\mdseries+はみな同じフォントとなる. -\emph{このオプションは標準で有効になっている.} % \item[deluxe] %<*en> @@ -1577,8 +1619,17 @@ characters designed for ruby. }. % \item[bold] -%Substitute bold series of \textit{gothic} for bold series of \textit{mincho}. -%「明朝の太字」をゴシック体の太字によって代替する. +%<*en> +Substitute bold series of \textit{gothic} for bold series of \textit{mincho}. +If \texttt{nodeluxe} option is enabled, medium series of \textit{gothic} is also changed, +since we use same font for both series of \textit{gothic}. +% +%<*ja> +「明朝の太字」をゴシック体の太字によって代替する. +もし\texttt{nodeluxe}オプションが指定されている場合は,ゴシック体は1ウェイトしか使用されな + いため, +「ゴシック体の中字」も同時に変更されることになる. +% \item[90jis] %Use 90JIS glyph variants if possible. %出来る限り90JISの字形を使う. @@ -1594,6 +1645,7 @@ Use the JFM \texttt{jfm-jis.lua}, instead of \texttt{jfm-ujis.lua}, which is the 用いるJFMを(JISフォントメトリック類似の)\texttt{jfm-jis.lua}にする.このオプションがない時は \LuaTeX-ja標準の\texttt{jfm-ujis.lua}が用いられる. % + \end{cslist} %<*en> Note that \texttt{90jis} and \texttt{jis2004} only affect with \textit{mincho}, @@ -1602,8 +1654,8 @@ We didn't taken account of when both \texttt{90jis} and \texttt{jis2004} are sp % %<*ja> \texttt{90jis}と\texttt{jis2004}については本パッケージで定義された -明朝体・ゴシック体(・丸ゴシック体)にのみ有効である.両オプションが -同時に指定された場合の動作については全く考慮していない. +明朝体・ゴシック体(・丸ゴシック体)にのみ有効である. +両オプションが同時に指定された場合の動作については全く考慮していない. % %\paragraph{Presets for multi weight} @@ -1702,7 +1754,7 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. \end{tabular} \end{center} -%\medskip +%\newpage \item[morisawa-pro] Morisawa Pro (Adobe-Japan1-4) fonts. % \\*[-\dimexpr\medskipamount+\baselineskip\relax] @@ -1762,7 +1814,8 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. \end{tabular} \end{center} - \item[moga-mobo] MogaMincho, MogaGothic, and MoboGothic. +%\newpage +\item[moga-mobo] MogaMincho, MogaGothic, and MoboGothic. %These fonts can be downloaded from\\\hfill \url{http://yozvox.web.fc2.com/}. %これらのフォントは \url{http://yozvox.web.fc2.com/} からダウンロードできる. @@ -1776,9 +1829,9 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. %\smash{\raisebox{1.5ex}{\gt 明朝}}% &bold&Moga90Mincho Bold&MogaMincho Bold\\ \midrule - &&Moga90Gothic&MogaGothic\\ + &&Moga90Gothic*&MogaGothic*\\ &\smash{\raisebox{1.5ex}{medium}} - &Moga90Gothic&MogaGothic\\ + &Moga90Gothic Bold&MogaGothic Bold\\ \cmidrule(l){2-4} %\textit{gothic}% %\gt ゴシック @@ -3903,13 +3956,12 @@ JFM中における \texttt{kanjiskip\_natural}, \texttt{kanjiskip\_stretch},\ \catcode`\<=12\catcode`\>=12 \ltjsetparameter{jacharrange={+3}} \small - \def\r#1#2{% \hbox{\tate\Large\vrule \parbox{7\zw}{% \addjfontfeatures{TateFeatures={Opacity=0.5, Color=#2, JFM=#1}}\noindent ◆◆◆◆◆◆◆ - ある日モモちゃんがお使いで迷子になって泣きました. + ある日モモちゃんが「お使い」で迷子になって泣きました。 }\vrule}} \def\s#1#2{% \hbox{\tate\Large @@ -6722,12 +6774,16 @@ JFMの\texttt{chars}テーブルのエントリとして \verb+'AJ1-xxx'+ の形 正しく半角幅で組むために利用されている. % +\directlua{luatexja.otf.enable_ivs()} %<*en> \paragraph{IVS support} Recent fonts support Ideographic Variation Selector (IVS). It seems that \Pkg{luaotfload} and \Pkg{fontspec} packages do not support IVS, so we implemented IVS support in \Pkg{luatexja-otf}. -\emph{IVS support is experimental; if you want to enable this, load +\emph{IVS support by the \Pkg{luatexja-otf} package is experimental. +If this feature is enabled with current \LuaTeX\ (not with LuaJIT\TeX), +we cannot use any OpenType feature, including {\tt vert}~and~{\tt vrt2}, +in vertical writing mode. If you want to enable IVS support nevertheless, load \Pkg{luatexja-otf} and execute the following:} % %<*ja> @@ -6742,9 +6798,14 @@ IVSに対応してはいないようである.これらのパッケージで \medskip -\emph{IVS対応は試験的なものである. -有効にするには,\Pkg{luatexja-otf}パッケージを読み込んだ上で以下の命令を実行する% -\footnote{この命令を2回以上実行しても意味がない.}:} +\emph{\Pkg{luatexja-otf}によるIVS対応は試験的なものである.現行の\LuaTeX +でIVS対応を一旦有効にすると,縦組時に句読点などが横組用字形のままで組版されたり, +\Pkg{luaotfload}によるOpenType +featureが(\texttt{vert},~\texttt{vrt2}を含め)一切効かないといった +不具合がある\footnote{なぜかLuaJIT\TeX では大丈夫である.}.} +そのような不具合を知りながら有効にするには, +\Pkg{luatexja-otf}パッケージを読み込んだ上で以下の命令を実行する% +\footnote{この命令を2回以上実行しても意味がない.}: % \begin{lstlisting} \directlua{luatexja.otf.enable_ivs()} -- cgit v1.2.3