diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/README | 8 | ||||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf | bin | 463467 -> 463896 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf | bin | 863556 -> 864442 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx | 64 | ||||
-rw-r--r-- | Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty | 22 |
5 files changed, 66 insertions, 28 deletions
diff --git a/Master/texmf-dist/doc/luatex/luatexja/README b/Master/texmf-dist/doc/luatex/luatexja/README index ddb71a68cc9..788b0eebeb3 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 20170124.0 +The LuaTeX-ja Package 20170126.0 -------------------------------- Copyright (c) 2011--2017 The LuaTeX-ja project License: modified BSD (see COPYING) @@ -34,9 +34,9 @@ Installation 2. If you must/want to install manually: a. Download the source archive from CTAN, - or tagged as 20170124.0 in the Git repository by + or tagged as 20170126.0 in the Git repository by <http://git.osdn.jp/view?p=luatex-ja/luatexja.git - ;a=snapshot;h=refs/tags/20170124.0;sf=tgz> + ;a=snapshot;h=refs/tags/20170126.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: Tue Jan 24 17:16:00 2017 +0900 +Last commit date: Thu Jan 26 16:53:21 2017 +0900 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 484cb2becaf..6618e35bae3 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 77d70203368..ceae1c001ed 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 ac42d21a161..b80d2628d87 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx +++ b/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx @@ -26,11 +26,13 @@ %%%%%%%% Lua GC \patchcmd\@outputpage{\stepcounter{page}}{% \directlua{% - local k = collectgarbage("count") - if k>900000 then - collectgarbage("collect") - texio.write_nl("term and log", "GC: ", math.floor(k), math.floor(collectgarbage("count"))) - end + if jit then + local k = collectgarbage("count") + if k>900000 then + collectgarbage("collect") + texio.write_nl("term and log", "GC: ", math.floor(k), math.floor(collectgarbage("count"))) + end + end }% \stepcounter{page}% }{}{} @@ -56,7 +58,7 @@ \def\headfont{\normalfont\bfseries\gtfamily}\normalsize %</ja> %<*en> -\frenchspacing +\frenchspacing\sloppy \usepackage[margin=25mm,lmargin=30mm,rmargin=30mm,footskip=6mm]{geometry} \usepackage{luatexja-adjust}\ltjdisableadjust \parskip=\smallskipamount @@ -176,7 +178,7 @@ \def\_{\leavevmode \kern .06em\vbox {\hrule \@width .333em}} \def\cs#1{\texttt{\upshape - \texorpdfstring{\textbackslash\ltjsetparameter{autoxspacing=false}#1}{\textbackslash#1}}} + \texorpdfstring{\textbackslash\hbox{\ltjsetparameter{autoxspacing=false}#1}}{\textbackslash#1}}} \ltjsetparameter{alxspmode={`\\,allow}} %%%%%%%% \makeatother @@ -2435,16 +2437,12 @@ The block list is indicated in Table~\ref{table-rng7}. %<*en> \paragraph{Notes on \texttt{U+0080}--\texttt{U+00FF}} You should treat characters in \\texttt{U+0080}--\texttt{U+00FF} as \textbf{ALchar}, -when you use traditional 8-bit fonts, such as the \Pkg{textcomp} package or the -\Pkg{marvosym} package. +when you use traditional 8-bit fonts, such as the \Pkg{marvosym} package. -For example, the codepoint \cs{textparagraph} which is provided by the \Pkg{textcomp} -package is 182. This codepoint corresponds \P\ (\text{U+00B6}) in Unicode. -Similarly, \cs{Frowny} which is provided by the \Pkg{marvosym} package has +For example, \cs{Frowny} which is provided by the \Pkg{marvosym} package has the same codepoint as \S\ (\text{U+00A7}). Hence, as previous versions of \LuaTeX-ja, if these characters are treated as -\text{JAchar}s, then \cs{textparagraph} produces ``ltjjachar`¶'' (in a Japanese font), -and \cs{Frowny} produces ``\ltjjachar`§'' (in a Japanese font). +\text{JAchar}s, then \cs{Frowny} produces ``\ltjjachar`§'' (in a Japanese font). To avoid such situations, the default setting of \LuaTeX-ja is changed in this release so that all characters \texttt{U+0080}--\texttt{U+00FF} are treated as \textbf{ALchar}. @@ -2459,22 +2457,16 @@ setting, you can use \cs{ltjalchar} and \cs{ltjjachar} respectively, as the foll %</en> %<*ja> \paragraph{\texttt{U+0080}--\texttt{U+00FF}についての注意} -\LuaTeX-jaで,\Pkg{textcomp}パッケージや\Pkg{marvosym}パッケージ等,Unicodeフォントでなく +\LuaTeX-jaで,\Pkg{marvosym}パッケージ等,Unicodeフォントでなく 伝統的な8ビットフォントを用いる場合には注意が必要である. -例えば,\Pkg{textcomp}パッケージの提供する \cs{textparagraph} は, -符号位置が182,つまり \texttt{0xB6} であり,Unicodeではこの符号位置では\P\ (\text{U+00B6}) に対応する. -また,\Pkg{marvosym}パッケージの提供する \cs{Frowny} も,符号位置は167,つまりUnicodeにおける +例えば,\Pkg{marvosym}パッケージの提供する \cs{Frowny} も,符号位置は167,つまりUnicodeにおける \S\ (\text{U+00A7}) と同じ符号位置にある. 即ち,以前のバージョンのように,「前節の文字範囲8内の文字は\textbf{JAchar}」という設定で -あったとすると,上記の \cs{textparagraph} は和文フォントで「\ltjjachar`¶」を出力し, -また \cs{Frowny} は和文フォントで「\ltjjachar`§」を出力することになる. +あったとすると,上記の \cs{Frowny} は和文フォントで「\ltjjachar`§」を出力することになる. このような事態を避けるために,本バージョンからは \texttt{U+0080}--\texttt{U+00FF} の範囲の 文字は全て\textbf{ALchar}となるように初期設定を変更している. -特に影響を受けるのが,JIS~X~0208の一部分である文字範囲8内の文字であり, -\emph{\Pkg{fontspec}パッケージを読み込んだりして欧文記号としてこれらの文字の出力環境を整え -ないと,ソース中に直接記述しても出力されない}ことになる. なお,文字範囲の設定に関わらず1つの文字を\textbf{ALchar}, \textbf{JAchar}で出力したい場合には, 以下の例のようにそれぞれ \cs{ltjalchar},~\cs{ltjjachar} に該当文字の文字コードを渡せばよい. @@ -2485,6 +2477,7 @@ setting, you can use \cs{ltjalchar} and \cs{ltjjachar} respectively, as the foll \end{LTXexample} %</ja> + %<en>\subsection{\Param{kanjiskip} and \Param{xkanjiskip}} %<ja>\subsection{\Param{kanjiskip}と\Param{xkanjiskip}} \label{subs-kskip} @@ -6110,7 +6103,6 @@ are typeset by \cs{piyo}. \end{LTXexample} %</ja> - %<en>\section{Commands for \LaTeXe} %<ja>\section{\LaTeXe 用の命令} @@ -6553,6 +6545,30 @@ to use the default family for font substitution. 和文・欧文の両方のフォントファミリを<family>に設定し,代用フォントが使われるに任せることにする. %</ja> +%<*en> +\subsection{Notes on \cs{DeclareTextSymbol}} +From \LaTeX~2017/01/01, the standard encoding of \LuaLaTeX\ is changed to the \texttt{TU} +encoding. This menas that symbols defined by \texttt{T1}~and~\texttt{TS1} encodings can be used +without loading any package. To produces these symbols in alphabetic fonts in \LuaTeX-ja, +\LuaTeX-ja patches \cs{DeclareTextSymbol}, and reloads \texttt{tuenc.def}. + +Under original definition of \cs{DeclareTextSymbol}, +internal commands which is defined by \cs{DeclareTextSymbol} (such as \cs{T1\cs{textquotedblleft}}) +are \textit{chardef} tokens. However, this no longer holds in \LuaTeX-ja; +for example, the meaning of \cs{TU\cs{textquotedblleft}} is \cs{ltjalchar8220\ltjalchar"2423 }. +%</en> +%<*ja> +\subsection{\cs{DeclareTextSymbol}使用時の注意} +\LaTeX~(2017/01/01)以降では,\texttt{TU}エンコーディングが標準となり,特に何もしなくても +\texttt{T1},~\texttt{TS1}エンコーディングで定義されていた記号類が +使えるようになった.\LuaTeX-jaではこれらの命令によって記号が欧文フォントで出力されるようにするため, +\cs{DeclareTextSymbol}命令を改変し,そして\texttt{TU}エンコーディングの定義である +\texttt{tuenc.def}を再読込している. + +従来は \cs{DeclareTextSymbol} で内部的に定義された\cs{T1\cs{textquotedblleft}}といった命令は +\textit{chardef}トークンであった.しかし前段落で述べた改変によりもはやそうではなくなっており,例えば +\cs{TU\cs{textquotedblleft}}は \cs{ltjalchar8220\ltjalchar"2423 } という定義になっている.%" +%</ja> %<*en> \section{Addon packages} diff --git a/Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty b/Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty index 8c70c993e6b..735fb9e2255 100644 --- a/Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty +++ b/Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty @@ -5,6 +5,28 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{lltjfont}[2016/04/01 Patch to NFSS2 for LuaTeX-ja] +\def\ltj@chardef@text@cmd#1{% + \edef\ltj@chardef@text@cmd@name{\expandafter\@gobble\string#1}% + \afterassignment\ltj@chardef@text@cmd@\ltj@tempcnta +} +\def\ltj@chardef@text@cmd@{% + \ifnum\ltj@tempcnta>"7F + \expandafter\edef\csname \ltj@chardef@text@cmd@name\endcsname{% + \noexpand\ltjalchar\the\ltj@tempcnta\space + }% + \else + \expandafter\chardef\csname \ltj@chardef@text@cmd@name\endcsname\ltj@tempcnta + \fi +} +\def\DeclareTextSymbol#1#2#3{% + \@dec@text@cmd\ltj@chardef@text@cmd#1{#2}#3\relax +} + +\ifdefined\UnicodeEncodingName + \input{tuenc.def} +\fi + + \let\k@encoding\@empty \let\ck@encoding\@empty % LuaTeX-ja uses JY3 and JT3 encodings. |