diff options
Diffstat (limited to 'macros/luatex/generic/luatexja/doc/luatexja.dtx')
-rw-r--r-- | macros/luatex/generic/luatexja/doc/luatexja.dtx | 283 |
1 files changed, 185 insertions, 98 deletions
diff --git a/macros/luatex/generic/luatexja/doc/luatexja.dtx b/macros/luatex/generic/luatexja/doc/luatexja.dtx index b404fc4636..19332cfb06 100644 --- a/macros/luatex/generic/luatexja/doc/luatexja.dtx +++ b/macros/luatex/generic/luatexja/doc/luatexja.dtx @@ -17,26 +17,11 @@ \makeatletter %%%%%%%% \def\pgfsysdriver{pgfsys-pdftex.def} -\directlua{if jit then jit.on() end} \usepackage{metalogo,amsmath,array,tikz,pict2e,multienum,float,mathtools} \usepackage{booktabs,multicol,luatexja-ruby} \usepackage[all]{xy} \usepackage{lltjext,alltt,comment} -%%%%%%%% Lua GC -\patchcmd\@outputpage{\stepcounter{page}}{% - \directlua{% - 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}% -}{}{} - %%%%%%%% fonts \usepackage{luatexja-otf} \usepackage[no-math]{fontspec} @@ -46,7 +31,8 @@ %<ja> Scale=MatchLowercase, FakeStretch=1.137121, ItalicFont=iosevka-slab-oblique, BoldFont=iosevka-slab-bold, BoldItalicFont=iosevka-slab-bolditalic, -]{iosevka-slab-regular} +%<en> ]{iosevka-slab-regular} +%<ja> ]{iosevka-slab-light} \setsansfont[Scale=MatchLowercase,Ligatures=TeX,RawFeature=-notdef]{Linux Biolinum O} \usepackage[match]{luatexja-fontspec} \usepackage[kozuka-pr6n]{luatexja-preset} @@ -87,14 +73,22 @@ \def\IVS#1{\char\numexpr "E0100+#1\relax}%" \def\IVSA#1#2#3#4#5{% - \textcolor{blue}{\raisebox{3.5pt}{\normalfont\ttfamily% - \fboxsep=0.5pt\fbox{\tiny \oalign{0#1#2\crcr#3#4#5\crcr}}}}% + \hbox to1em{\hss\textcolor{blue}{\raisebox{3.5pt}{\normalfont\ttfamily% + \fboxsep=0.5pt\fbox{\hbox to0.75em{\hss\tiny \oalign{0#1#2\crcr#3#4#5\crcr}\hss}}}}\hss}% } {\catcode`\%=11 \gdef\IVSB#1{\expandafter\IVSA\directlua{ local cat_str = luatexbase.catcodetables['string'] tex.sprint(cat_str, string.format('%X', 0xE00EF+#1)) }}} +\def\UCSA#1#2#3#4{% + \hbox to1em{\hss\textcolor{blue}{\raisebox{3.5pt}{\normalfont\ttfamily% + \fboxsep=0.5pt\fbox{\hbox to0.75em{\hss\tiny \oalign{#1#2\crcr#3#4\crcr}\hss}}}}\hss}% +} +\def\UCSB#1#2{% + \hbox to1em{\hss\textcolor{red}{\raisebox{3.5pt}{\normalfont\ttfamily% + \fboxsep=0.5pt\fbox{\hbox to0.75em{\hss\tiny \oalign{\hss#1\hss\crcr\hss#2\hss\crcr}\hss}}}}\hss}% +} \usepackage{listings,showexpl,enumitem} \lstset{ @@ -648,32 +642,21 @@ and \emph{Japanese fonts} for fonts used in \textbf{JAchar}. %<ja>\section{使い方} %<en>\subsection{Installation} %<ja>\subsection{インストール} - +\label{ssec:install} %<en>The following packages are needed for the \LuaTeX-ja\ package. %<ja>\LuaTeX-jaパッケージの動作には次のパッケージ類が必要である. \begin{itemize} \item \href{http://www.luatex.org/}{\LuaTeX}\ 1.0.0 (or later) -\item recent \href{https://github.com/latex3/luaotfload}{\Pkg{luaotfload}} (v2.98 or later recommended) +\item recent \href{https://github.com/latex3/luaotfload}{\Pkg{luaotfload}} (v3.1 or later recommended) \item \Pkg{adobemapping} (Adobe cmap and pdfmapping files) -\item \Pkg{etoolbox}, \Pkg{everysel} (if you want to use \LuaTeX-ja with \LaTeXe) +\item \href{https://github.com/josephwright/etoolbox/}{\Pkg{etoolbox}}, + \Pkg{everysel} (if you want to use \LuaTeX-ja with \LaTeXe) \item \Pkg{ltxcmds}, \Pkg{pdftexcmds}, \Pkg{filehook}, \Pkg{atbegshi} -\item \Pkg{fontspec} v2.7c (or later) +\item \href{https://github.com/wspr/fontspec/}{\Pkg{fontspec}} v2.7c (or later) %<en>\item \emph{IPAex fonts} (\url{http://ipafont.ipa.go.jp/}) %<ja>\item \emph{IPAexフォント(\url{http://ipafont.ipa.go.jp/})} \end{itemize} -%<*en> -LuaHB\TeX~and~\href{https://github.com/khaledhosny/harftex}{Harf\TeX}, -which are \LuaTeX-variants integrated with Harfbuzz, are not supported for now. -Maybe documents can typeset without an error, -but with unwanted results (especially, vertical typesetting and \cs{CID}). -%</en> -%<*ja> -現時点では,LuaHB\TeX や\href{https://github.com/khaledhosny/harftex}{Harf\TeX}といった -Harfbuzzを利用したエンジンでの動作は未保証である. -エラーが発生せずにタイプセットできるかもしれないが,特に縦組時や -\cs{CID}などで意図しない結果となりうる可能性が大きい. -%</ja> %<*en> Now \LuaTeX-ja is available from @@ -681,8 +664,8 @@ CTAN (in the \texttt{macros/luatex/generic/luatexja} directory), and the following distributions: \begin{itemize} \item MiK\TeX\ (in \texttt{luatexja.tar.lzma}); see the next subsection - \item \TeX\ Live (in \texttt{texmf-dist/tex/luatex/luatexja}) - \item W32\TeX\ (in \texttt{luatexja.tar.xz}) + \item \href{https://www.tug.org/texlive/}{\TeX\ Live} (in \texttt{texmf-dist/tex/luatex/luatexja}) + \item \href{http://w32tex.org/}{W32\TeX}\ (in \texttt{luatexja.tar.xz}) \end{itemize} IPAex fonts are also available in these distributions. %</en> @@ -698,6 +681,27 @@ IPAex fonts are also available in these distributions. W32\TeX においてはIPAexフォントは \texttt{luatexja.tar.xz} 内にある. %</ja> +%<*en> +\paragraph{Using \LuaTeX-ja with LuaHB\TeX} +Using \LuaTeX-ja with LuaHB\TeX (\LuaTeX\ integrated with +\href{https://github.com/harfbuzz/harfbuzz}{HarfBuzz}) is not well tested. +Maybe documents can typeset without an error, +but with unwanted results (especially, vertical typesetting and \cs{CID}). + +Especially, +\emph{We don't recommend defining a Japanese font with HarfBuzz}, +by specifying \texttt{Renderer=Harfbuzz}~etc.\ (\Pkg{fontspec}) or~{mode=harf} (otherwise). +%</en> +%<*ja> +\paragraph{LuaHB\TeX 下での\LuaTeX-jaの使用} +現時点では,LuaHB\TeX 下での\LuaTeX-jaの使用は十分にテストされていない. +エラーが発生せずにタイプセットできるかもしれないが,特に縦組時や +\cs{CID}などで意図しない結果となりうる可能性が大きい. + +特に,\texttt{Renderer=Harfbuzz}等(\Pkg{fontspec})や\texttt{mode=harf}指定(それ以外)を用いて +\emph{和文フォントに対してHarfBuzzを用いることは推奨しない}. +%</ja> + %<en>\paragraph{Manual installation} %<ja>\paragraph{手動インストール方法} @@ -707,7 +711,7 @@ W32\TeX においてはIPAexフォントは \texttt{luatexja.tar.xz} 内にあ At the present, \LuaTeX-ja has no \emph{stable} release. \begin{itemize} -\item Clone the Git repository: +\item Clone the Git repository by \begin{lstlisting} $ git clone git://git.osdn.jp/gitroot/luatex-ja/luatexja.git \end{lstlisting} @@ -725,11 +729,11 @@ the forefront of development is not the \texttt{master} branch. 開発版であって,安定版でないことに注意. \begin{itemize} -\item Gitリポジトリをクローンする: +\item Gitリポジトリを次のコマンドでクローンする: \begin{lstlisting} $ git clone git://git.osdn.jp/gitroot/luatex-ja/luatexja.git \end{lstlisting} -\item \texttt{master} ブランチのスナップショット(\texttt{tar.gz} 形式)をダウンロードする. +\item \texttt{master} ブランチのスナップショット(\texttt{tar.gz} 形式)をダウンロードする: \begin{flushleft} \url{http://git.osdn.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}. \end{flushleft} @@ -1161,8 +1165,7 @@ so \Pkg{ltjsclasses} uses the \texttt{nomag*} option\footnote{Same effect as \footnote{\Pkg{jsclasses}や,八登崇之氏による\Pkg{BXjscls}クラスにおける同名のオプションと 同じ.上記クラスは\TeX コードのみで実装しているが,\Pkg{ltjsclasses}ではLuaコードも用いている.}が標準で 有効になっており,これを使って本文フォントサイズの設定を行っている. -しかし,この\texttt{nomag*}オプションでは(20180121.0版より前の版において\Pkg{unicode-math}パッケージ使用時に -起きたように)予想外の意図しない現象に遭遇する危険がある.そのような場合は +しかし,この\texttt{nomag*}オプションでは(バージョン20180121.0より前で\Pkg{unicode-math}パッケージ使用時に起きたように)予想外の意図しない現象に遭遇する危険がある.そのような場合は \cs{documentclass}において\texttt{nomag}オプションを指定してほしい. %</ja> @@ -1647,7 +1650,7 @@ The following presets are defined: \begin{quote} \ttfamily \hyphenchar\font=-1 \exhyphenchar=-1 - hiragino-pro, hiragino-pron, ipa, ipa-hg, ipaex, ipaex-hg, + haranoaji, hiragino-pro, hiragino-pron, ipa, ipa-hg, ipaex, ipaex-hg, kozuka-pr6, kozuka-pr6n, kozuka-pro, moga-mobo, moga-mobo-ex, bizud, morisawa-pr6n, morisawa-pro, ms, ms-hg, noembed, noto-otc, noto-otf, sourcehan, sourcehan-jp, ume, yu-osx, yu-win, yu-win10 @@ -2125,6 +2128,52 @@ setting, you can use \cs{ltjalchar} and \cs{ltjjachar} respectively, as the foll \end{LTXexample} %</ja> +%<*ja> +\paragraph{絵文字など,複数コードポイントの列で表現される字形をを利用する場合の注意} +(\Pkg{luaotfload}による)OpenType機能や合字等の処理は,\LuaTeX-jaが +段落・水平ボックスの中身全体に対して「この文字は\textbf{JAchar}だから和文フォントで組む」と +フォントを置き換えた後に適用される. +そのため,異体字セレクタや絵文字といった複数のコードポイントの列で表現される文字を +組む場合には,列全体で\textbf{JAchar}の範囲か\textbf{ALchar}の範囲かが +統一されていないといけない. + +例えば,CJK統合漢字(とその拡張達)と +IVS用の異体字セレクタ(\texttt{U+E0100}--\texttt{U+E01EF})は標準では +どちらも同じ文字範囲6であるため,(フォントがサポートしていれば)IVSは正しく機能する. +しかし,下の例のように異体字セレクタを\textbf{ALchar}の文字範囲(4)に移動させると, +IVSは機能しなくなる: +\ltjdefcharrange{4}{"E0100-"E01EF} +\begin{LTXexample} +\ltjdefcharrange{4}{"E0100-"E01EF} +葛󠄀城市,葛󠄁飾区,葛西 +\end{LTXexample} +\ltjdefcharrange{6}{"E0100-"E01EF} + +また,標準では絵文字として使われる可能性が大きい一部の文字が\textbf{JAchar}となっている +\footnote{同じUnicodeブロック内にAdobe-Japan1-6の文字があったため.}. +絵文字を用いる場合にはこの点に留意する必要がある. + +\begin{center} + \begin{minipage}{.5\textwidth}\small\ttfamily +\verb!\ltjsetparameter{jacharrange={+3}}!\\ +\verb!\font\nce=NotoColorEmoji.ttf:mode=harf\nce!\\ +\IVSA 1F469\UCSB{ZW}{J}\UCSA 2764\UCSB{VS}{16}\UCSB{ZW}J\IVSA 1F48B\UCSB{ZW}J\IVSA 1F468\ + \textcolor{green}{\% U+2764: JAchar}\\ +\verb!\ltjsetparameter{jacharrange={-3}}!\\ +\IVSA 1F469\UCSB{ZW}{J}\UCSA 2764\UCSB{VS}{16}\UCSB{ZW}J\IVSA 1F48B\UCSB{ZW}J\IVSA 1F468\ + \textcolor{green}{\% U+2764: ALchar} + \end{minipage}% + \begin{minipage}{.5\textwidth} +\ltjsetparameter{jacharrange={+3}} +\font\nce=NotoColorEmoji.ttf:mode=harf\nce +👩❤️💋👨 +\ltjsetparameter{jacharrange={-3}} +👩❤️💋👨 + \end{minipage} +\end{center} +\ltjsetparameter{jacharrange={+3}} +%</ja> + %<en>\subsection{\Param{kanjiskip} and \Param{xkanjiskip}} %<ja>\subsection{\Param{kanjiskip}と\Param{xkanjiskip}} @@ -3424,14 +3473,16 @@ JFMは文字と和文組版で自動的に挿入される \def\r#1#2{% \hbox{\Large\vrule \parbox[b]{7\zw}{% - \addjfontfeatures{YokoFeatures={Opacity=0.5, Color=#2, JFM=#1}}\noindent + \addjfontfeatures{YokoFeatures={JFM=#1}}\noindent + \color{#2}\transparent{0.5} ◆◆◆◆◆◆◆ ある日モモちゃんがお使いで迷子になって泣きました. }\vrule}} \def\s#1#2{% \Large \parbox[b]{7\zw}{% - \addjfontfeatures{YokoFeatures={Opacity=0.5, Color=#2, JFM=#1}}\noindent + \addjfontfeatures{YokoFeatures={JFM=#1}}\noindent + \color{#2}\transparent{0.5} ちょっと!何 }} \def\t#1#2#3{\hbox to 0pt{\hss% @@ -3713,14 +3764,16 @@ This functionality is disabled by \texttt{-ltjksp} specification. \def\r#1#2{% \hbox{\tate\Large\vrule \parbox{7\zw}{% - \addjfontfeatures{TateFeatures={Opacity=0.5, Color=#2, JFM=#1}}\noindent + \addjfontfeatures{TateFeatures={JFM=#1}}\noindent + \color{#2}\transparent{0.5} ◆◆◆◆◆◆◆ ある日モモちゃんが「お使い」で迷子になって泣きました。 }\vrule}} \def\s#1#2{% \hbox{\tate\Large \parbox{7\zw}{% - \addjfontfeatures{TateFeatures={Opacity=0.5, Color=#2, JFM=#1}}\noindent + \addjfontfeatures{TateFeatures={JFM=#1}}\noindent + \color{#2}\transparent{0.5} ちょっと!何 }}} \def\t#1#2#3{\hbox to 0pt{\hss% @@ -6428,11 +6481,11 @@ to <family>. See Subsection~\ref{ssec:fontfamilycmd} for detail. \begin{figure}[!tb] \begin{LTXexample}[pos=b] \DeclareKanjiFamily{JY3}{edm}{} -\DeclareFontShape{JY3}{edm}{m}{n} {<-> s*KozMinPr6N-Regular:jfm=ujis;}{} -\DeclareFontShape{JY3}{edm}{m}{green}{<-> s*KozMinPr6N-Regular:jfm=ujis;color=007F00}{} -\DeclareFontShape{JY3}{edm}{m}{blue} {<-> s*KozMinPr6N-Regular:jfm=ujis;color=0000FF}{} -\DeclareAlternateKanjiFont{JY3}{edm}{m}{n}{JY3}{edm}{m}{green}{"4E00-"67FF,{-2}-{-2}} -\DeclareAlternateKanjiFont{JY3}{edm}{m}{n}{JY3}{edm}{m}{blue}{ "6800-"9FFF} +\DeclareFontShape{JY3}{edm}{m}{n} {<-> s*KozMinPr6N-Regular:jfm=ujis;}{} +\DeclareFontShape{JY3}{edm}{m}{fb} {<-> s*KozGoPr6N-Regular:jfm=ujis}{} +\DeclareFontShape{JY3}{edm}{m}{fb2} {<-> s*KozGoPr6N-Medium:jfm=ujis}{} +\DeclareAlternateKanjiFont{JY3}{edm}{m}{n}{JY3}{edm}{m}{fb}{ "4E00-"67FF,{-2}-{-2}} +\DeclareAlternateKanjiFont{JY3}{edm}{m}{n}{JY3}{edm}{m}{fb2}{"6800-"9FFF} {\kanjifamily{edm}\selectfont 日本国民は、正当に選挙された国会における代表者を通じて行動し、……} \end{LTXexample} @@ -6810,11 +6863,11 @@ will not be embedded in the output PDF file. See Subsection~\ref{ssec:psft}. \begin{figure}[!tb] \begin{LTXexample}[width=0.25\textwidth] \jfontspec[ - YokoFeatures={Color=007F00}, TateFeatures={Color=00007F}, + YokoFeatures={FakeBold=3}, TateFeatures={FakeBold=6}, TateFont=KozGoPr6N-Regular ]{KozMinPr6N-Regular} \hbox{\yoko 横組のテスト}\hbox{\tate 縦組のテスト} -\addjfontfeatures{Color=FF0000} +\addjfontfeatures{FakeBold=0} \hbox{\yoko 横組}\hbox{\tate 縦組} \end{LTXexample} %<ja>\caption{\texttt{TateFeatures} 等の使用例} @@ -6860,8 +6913,8 @@ A demonstrarion is shown in \autoref{fig:yokotate-fontspec}. \begin{LTXexample}[pos=b] \jfontspec[ AltFont={ - {Range="4E00-"67FF, Color=007F00}, - {Range="6800-"9EFF, Color=0000FF}, + {Range="4E00-"67FF, Font=KozGoPr6N-Medium}, + {Range="6800-"9EFF, FakeBold=4}, {Range="3040-"306F, Font=KozGoPr6N-Regular}, } ]{KozMinPr6N-Regular} @@ -6924,7 +6977,7 @@ For example, \begin{lstlisting} AltFont = { { Font=HogeraMin-Light, BoldFont=HogeraMin-Bold, - Range="3000-"30FF, BoldFeatures={Color=007F00} } + Range="3000-"30FF, BoldFeatures={FakeBold=1} } } \end{lstlisting} does \emph{not} work. Instead, one have to write @@ -6933,7 +6986,7 @@ UprightFeatures = { AltFont = { { Font=HogeraMin-Light, Range="3000-"30FF, } }, }, BoldFeatures = { - AltFont = { { Font=HogeraMin-Bold, Range="3000-"30FF, Color=007F00 } }, + AltFont = { { Font=HogeraMin-Bold, Range="3000-"30FF, FakeBold=1 } }, } \end{lstlisting} @@ -6956,7 +7009,7 @@ has no effect, because a color specification is already done in \begin{lstlisting} AltFont = { { Font=HogeraMin-Light, BoldFont=HogeraMin-Bold, - Range="3000-"30FF, BoldFeatures={Color=007F00} } + Range="3000-"30FF, BoldFeatures={FakeBold=1} } } \end{lstlisting} のように指定することは出来ず, @@ -6965,7 +7018,7 @@ UprightFeatures = { AltFont = { { Font=HogeraMin-Light, Range="3000-"30FF, } }, }, BoldFeatures = { - AltFont = { { Font=HogeraMin-Bold, Range="3000-"30FF, Color=007F00 } }, + AltFont = { { Font=HogeraMin-Bold, Range="3000-"30FF, FakeBold=1 } }, } \end{lstlisting} のように指定しなければならない. @@ -6975,8 +7028,8 @@ BoldFeatures = { 指定することは可能であり.また\ \texttt{YokoFeatures},~\texttt{TateFeatures} キーの 中身に \texttt{AltFont} を指定することができる. -また,\autoref{fig:yokotate-fontspec}後半部では6行目の色の指定が効かず, -2行目で指定した\ \texttt{YokoFeatures},~\texttt{TateFeatures}\ による色の指定が有効になっ +また,\autoref{fig:yokotate-fontspec}後半部では6行目の疑似太字無効化の指定が効かず, +2行目で指定した\ \texttt{YokoFeatures},~\texttt{TateFeatures}\ による疑似太字の指定が有効になっ たままである.これは\emph{\ \texttt{YokoFeatures},~\texttt{TateFeatures}\ による OpenType機能指定は 組方向に依存しないOpenType機能の指定より後に解釈される}からである. @@ -7071,13 +7124,13 @@ ordinary characters in the following points: 有効か無効かを問わず,\cs{UTF} で出力される文字にはこれらのOpenType機能が働いた字形になる. %</ja> %<*en> -\item Processing codes for supporting other OpenType features (for example, +\item Processes for supporting other OpenType features (for example, glyph replacement and kerning) by the \Pkg{luaotfload} package is not performed to these characters. %</en> %<*ja> \item その他のOpenType機能(例えばグリフ置換やカーニング)をサポートするための - \Pkg{luaotfload}パッケージのコードはこれらの文字には働かない. + \Pkg{luaotfload}パッケージによる処理はこれらの文字には働かない. %</ja> \end{itemize} @@ -7949,13 +8002,13 @@ We didn't taken account of when more than one options among them are specified. \label{sssec:ltjpreset-multi} %<*en> -Besides \texttt{bizud}, \texttt{morisawa-pro},~and~\texttt{morisawa-pr6n} presets, +Besides \texttt{bizud}, \texttt{haranoaji}, \texttt{morisawa-pro},~and~\texttt{morisawa-pr6n} presets, fonts are specified by font name, not by file name. In following tables, starred fonts (e.g.~KozGo\dots-Regular) are used for medium series of \textit{gothic}, \emph{if and only if \texttt{deluxe} option is specified}. %</en> %<*ja> -\texttt{bizud}, \texttt{morisawa-pro}, \texttt{morisawa-pr6n}以外はフォントの指定は +\texttt{bizud}, \texttt{haranoaji}, \texttt{morisawa-pro}, \texttt{morisawa-pr6n}以外はフォントの指定は (ファイル名でなく)フォント名で行われる. 以下の表において,*\,つきのフォント(e.g.,~KozGo\dots-Regular)は,\emph{\texttt{deluxe}オプション指定時に} ゴシック体中字として用いられるものを示している. @@ -7991,12 +8044,12 @@ There is not rounded gothic family in Kozuka fonts. &KozGoPro-Medium&KozGoProVI-Medium&KozGoPr6N-Medium\\ \cmidrule(l){2-5} %<en>\smash{\raisebox{2ex}{\textit{gothic}}}% -%<ja>\smash{\raisebox{2ex}{\gt ゴシック}}% +%<ja>\smash{\raisebox{2ex}{\textgt{ゴシック}}}% &bold&KozGoPro-Bold&KozGoProVI-Bold&KozGoPr6N-Bold\\ &extra bold&KozGoPro-Heavy&KozGoProVI-Heavy&KozGoPr6N-Heavy\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&KozGoPro-Heavy&KozGoProVI-Heavy&KozGoPr6N-Heavy\\ \bottomrule \end{tabular} @@ -8037,18 +8090,17 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. &Hiragino~Kaku~Gothic~Pro~W6&Hiragino~Kaku~Gothic~ProN~W6\\ \cmidrule(l){2-4} %<en>\smash{\raisebox{2ex}{\textit{gothic}}}% -%<ja>\smash{\raisebox{2ex}{\gt ゴシック}}% +%<ja>\smash{\raisebox{2ex}{\textgt{ゴシック}}}% &bold&Hiragino~Kaku~Gothic~Pro~W6&Hiragino~Kaku~Gothic~ProN~W6\\ &extra bold&Hiragino~Kaku~Gothic~Std~W8&Hiragino~Kaku~Gothic~StdN~W8\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&Hiragino~Maru~Gothic~Pro~W4&Hiragino~Maru~Gothic~ProN~W4\\ \bottomrule \end{tabular} \end{center} -%<ja>\newpage \item[bizud] BIZ UD fonts (by Morisawa Inc.) bundled with Windows~10 October 2018 Update. \begin{center}\small @@ -8063,12 +8115,12 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. &medium&BIZ-UDGothicR.ttc\\ \cmidrule(l){2-3} %<en>\textit{gothic}% -%<ja>\gt ゴシック +%<ja>\textgt{ゴシック} &bold&BIZ-UDGothicB.ttc\\ &extra bold&BIZ-UDGothicB.ttc\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&BIZ-UDGothicB.ttc\\ \bottomrule \end{tabular} @@ -8086,18 +8138,18 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. \midrule &medium&A-OTF-RyuminPro-Light.otf&A-OTF-RyuminPr6N-Light.otf\\ %<en>\smash{\raisebox{1.5ex}{\textit{mincho}}}% -%<ja>\smash{\raisebox{1.5ex}{\gt 明朝}}% +%<ja>\smash{\raisebox{1.5ex}{\textgt{明朝}}}% &bold&A-OTF-FutoMinA101Pro-Bold.otf&A-OTF-FutoMinA101Pr6N-Bold.otf\\ \midrule &medium &A-OTF-GothicBBBPro-Medium.otf&A-OTF-GothicBBBPr6N-Medium.otf\\ %<en>\textit{gothic}% -%<ja>\gt ゴシック +%<ja>\textgt{ゴシック} &bold&A-OTF-FutoGoB101Pro-Bold.otf&A-OTF-FutoGoB101Pr6N-Bold.otf\\ &extra bold&A-OTF-MidashiGoPro-MB31.otf&A-OTF-MidashiGoPr6N-MB31.otf\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&A-OTF-Jun101Pro-Light.otf&A-OTF-ShinMGoPr6N-Light.otf\\ \bottomrule \end{tabular} @@ -8125,12 +8177,12 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. &YuGothic-Regular&YuGothic-Medium&YuGothic~Medium\\ \cmidrule(l){2-5} %<en>\textit{gothic}% -%<ja>\gt ゴシック +%<ja>\textgt{ゴシック} &bold&YuGothic-Bold&YuGothic-Bold&YuGothic~Bold\\ &extra bold&YuGothic-Bold&YuGothic-Bold&YuGothic~Bold\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&YuGothic-Bold&YuGothic-Bold&YuGothic~Bold\\ \bottomrule \end{tabular} @@ -8148,17 +8200,17 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. \midrule &medium&Moga90Mincho&MogaMincho\\ %<en>\smash{\raisebox{1.5ex}{\textit{mincho}}}% -%<ja>\smash{\raisebox{1.5ex}{\gt 明朝}}% +%<ja>\smash{\raisebox{1.5ex}{\textgt{明朝}}}% &bold&Moga90Mincho Bold&MogaMincho Bold\\ \midrule &medium&Moga90Gothic&MogaGothic\\ %<en>\textit{gothic}% -%<ja>\gt ゴシック +%<ja>\textgt{ゴシック} &bold&Moga90Gothic Bold&MogaGothic Bold\\ &extra bold&Moga90Gothic Bold&MogaGothic Bold\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&Mobo90Gothic&MoboGothic\\ \bottomrule \end{tabular} @@ -8176,19 +8228,19 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. \midrule &medium&Ume Mincho\\ %<en>\smash{\raisebox{1.5ex}{\textit{mincho}}}% -%<ja>\smash{\raisebox{1.5ex}{\gt 明朝}}% +%<ja>\smash{\raisebox{1.5ex}{\textgt{明朝}}}% &bold&Ume Mincho\\ \midrule &&Ume Gothic*\\ &\smash{\raisebox{1.5ex}{medium}}&Ume Gothic O5\\ \cmidrule(l){2-3} %<en>\textit{gothic}% -%<ja>\gt ゴシック +%<ja>\textgt{ゴシック} &bold&Ume Gothic O5\\ &extra bold&Ume Gothic O5\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&Ume Gothic O5\\ \bottomrule \end{tabular} @@ -8215,12 +8267,12 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. &\AD{Sans}{Medium}\\ \cmidrule(l){2-4} %<en>\smash{\raisebox{2ex}{\textit{gothic}}}% -%<ja>\smash{\raisebox{2ex}{\gt ゴシック}}% +%<ja>\smash{\raisebox{2ex}{\textgt{ゴシック}}}% &bold&\AD{Sans}{Bold}\\ &extra bold&\AD{Sans}{Heavy}\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&\AD{Sans}{Heavy}\\ \bottomrule \end{tabular} @@ -8247,18 +8299,54 @@ Std/StdNフォントであり,その他はAdobe-Japan1-5対応である. &\AD{Sans}{Medium}\\ \cmidrule(l){2-4} %<en>\smash{\raisebox{2ex}{\textit{gothic}}}% -%<ja>\smash{\raisebox{2ex}{\gt ゴシック}}% +%<ja>\smash{\raisebox{2ex}{\textgt{ゴシック}}}% &bold&\AD{Sans}{Bold}\\ &extra bold&\AD{Sans}{Black}\\ \midrule %<en>\textit{rounded gothic} -%<ja>\gt 丸ゴシック +%<ja>\textgt{丸ゴシック} &&\AD{Sans}{Black}\\ \bottomrule \end{tabular} \end{center} +\item[haranoaji] Harano Aji Fonts. +%<en>\par These fonts can be downloaded from\\\hfill \url{https://github.com/trueroad/HaranoAjiFonts}. +%<ja>これらのフォントは \url{https://github.com/trueroad/HaranoAjiFonts} からダウンロードできる. +%<*en> +There is not rounded gothic family in Harano Aji Fonts. +%</en> +%<*ja> +「原ノ味丸ゴシック」は存在しないので,便宜的に原ノ味角ゴシックHeavyによって代用している. +%</ja> +\begin{center}\small +\begin{tabular}{lll} +\toprule +\bf family&\bf series&\texttt{haranoaji}\\ +\midrule + &light&HaranoAjiMincho-Light.otf\\ +%<en>\textit{mincho}% +%<ja>\textgt{明朝}% + &medium&HaranoAjiMincho-Regular.otf\\ + &bold&HaranoAjiMincho-Bold.otf\\ +\midrule + &&HaranoAjiGothic-Regular.otf*\\ + &\smash{\raisebox{1.5ex}{medium}} + &HaranoAjiGothic-Medium.otf\\ +\cmidrule(l){2-3} +%<en>\smash{\raisebox{2ex}{\textit{gothic}}}% +%<ja>\smash{\raisebox{2ex}{\textgt{ゴシック}}}% + &bold&HaranoAjiGothic-Bold.otf\\ + &extra bold&HaranoAjiGothic-Heavy.otf\\ +\midrule +%<en>\textit{rounded gothic} +%<ja>\textgt{丸ゴシック} +&&HaranoAjiGothic-Heavy.otf\\ +\bottomrule +\end{tabular} +\end{center} \end{cslist} + %<en>\subsubsection{Presets which do not support multi weights} %<ja>\subsubsection{単ウェイト用プリセット一覧} \label{sssec:ltjpreset-single} @@ -8776,19 +8864,19 @@ Nodes for \LuaTeX-ja's stack system (see the next \item[\textit{char\_by\_cid}] %<*en> -Nodes for \textbf{JAchar} which the callback process of - \Pkg{luaotfload} won't be applied, and the character code is +Nodes for \textbf{JAchar} which processes by \Pkg{luaotfload} won't be applied, + and the character code is stored in the \texttt{value} field. Each node of this type are converted to a \textit{glyph\_node} \emph{after} - the callback process of luaotfload. -Nodes of this type is used in \cs{CID}, \cs{UTF} and IVS support. + processes by luaotfload. +Nodes of this type is used in \cs{CID}~and~\cs{UTF}. %</en> %<*ja> -\Pkg{luaotfload}のコールバックによる処理が適用されない\textbf{JAchar}のためのノードで, +\Pkg{luaotfload}による処理が適用されない\textbf{JAchar}のためのノードで, \texttt{value} フィールドに文字コードが格納されている. この種類のノードはそれぞれが\Pkg{luaotfload}のコールバックの処理の \emph{後で}\textit{glyph\_node}に変換される. -\cs{CID}, \cs{UTF}やIVS対応処理でこの種類のノードが利用されている. +\cs{CID}, \cs{UTF}でこの種類のノードが利用されている. %</ja> \item[\textit{replace\_vs}] @@ -10349,9 +10437,8 @@ variation selectors are ``combined'' with the previous character. \texttt{vsraw}は,ブール値の値をとるキーであり,標準ではfalseである. \begin{itemize} - \item trueの場合は,異体字セレクタは「直前の文字に続けて」出力される. -もしもIVSサポート(\ref{ssec:ltjotf}節)が有効になっていた場合は, -以下の例(左側は入力,右側はその出力)のようになる. + \item trueの場合は,異体字セレクタは「直前の文字に続けて」出力されるため, +例えば以下の例(左側は入力,右側はその出力)のようになる. %</ja> \begin{LTXexample} \begin{lstlisting}[vsraw=true] @@ -10379,8 +10466,8 @@ The default setting of the \texttt{vscmd} key produces the following. %<en> For example, the following code is the setting of the \texttt{vscmd} key in this document. \begin{lstlisting}[numbers=left] \def\IVSA#1#2#3#4#5{% - \textcolor{blue}{\raisebox{3.5pt}{\tt% - \fboxsep=0.5pt\fbox{\tiny \oalign{0#1#2\crcr#3#4#5\crcr}}}}% + \hbox to1em{\hss\textcolor{blue}{\raisebox{3.5pt}{\normalfont\ttfamily% + \fboxsep=0.5pt\fbox{\hbox to0.75em{\hss\tiny \oalign{0#1#2\crcr#3#4#5\crcr}\hss}}}}\hss}% } {\catcode`\%=11 \gdef\IVSB#1{\expandafter\IVSA\directlua{ |