OSDN Git Service

Updated documents
[luatex-ja/luatexja.git] / doc / luatexja.dtx
index 7ae62b0..7b6f8fe 100644 (file)
 \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}
 
 \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{
@@ -374,15 +367,22 @@ For more detailed information, see Part~\ref{part-imp} or other sections of this
 \ltjsetparameter{talbaselineshift=0.1\zw}
 \dimen0=\ltjgetparameter{talbaselineshift}
 \ltjsetparameter{prebreakpenalty={`ぁ,100}}
-\ifnum\ltjgetparemeter{direction}=4 ... \fi
+\ifnum\ltjgetparameter{direction}=4 ... \fi
 \end{lstlisting}
 %<*en>
 Note that \pTeX\ adds new two useful units, namely \texttt{zw}~and~\texttt{zh}.
-As shown above, they are changed by \cs{zw}~and~\cs{zh} respectively, in \LuaTeX-ja.
+As shown above, \emph{they are changed to \cs{zw}~and~\cs{zh} respectively} in \LuaTeX-ja.%
+\footnote{\LuaTeX-ja 20200127.0 introduces \cs{ltj@zw}~and~\cs{ltj@zh}, which are copy of
+  \cs{zw}~and~\cs{zh}.}
 %</en>
 %<*ja>
-特に注意してほしいのは,\pTeX で追加された \texttt{zw} と \texttt{zh} という単位は
-\LuaTeX-ja では使用できず,\cs{zw}, \cs{zh} と制御綴の形にしないといけないという点である.
+特に注意してほしいのは,\pTeX で追加された\texttt{zw}と\texttt{zh}という単位は
+\LuaTeX-ja では使用できず,\emph{\cs{zw}, \cs{zh} と制御綴の形にしないといけない}という点である
+\footnote{%
+  別のパッケージやユーザが\cs{zw},~\cs{zh}を書き換えてしまうことに対応するため,
+  \LuaTeX-ja 20200127.0以降では,\cs{ltj@zw},~\cs{ltj@zh}がそれぞれ\cs{zw},~\cs{zh}の
+  コピーとして定義されている.
+}.
 %</ja>
 
 %<*en>
@@ -648,41 +648,29 @@ 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 \href{http://www.luatex.org/}{\LuaTeX}\ 1.07.0 (or later)
+\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
 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 +686,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 +716,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 +734,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} ã\83\96ã\83©ã\83³ã\83\81ã\81®ã\82¹ã\83\8aã\83\83ã\83\97ã\82·ã\83§ã\83\83ã\83\88ï¼\88\texttt{tar.gz} å½¢å¼\8fï¼\89ã\82\92ã\83\80ã\82¦ã\83³ã\83­ã\83¼ã\83\89ã\81\99ã\82\8bï¼\8e
+\item \texttt{master} ã\83\96ã\83©ã\83³ã\83\81ã\81®ã\82¹ã\83\8aã\83\83ã\83\97ã\82·ã\83§ã\83\83ã\83\88ï¼\88\texttt{tar.gz} å½¢å¼\8fï¼\89ã\82\92ã\83\80ã\82¦ã\83³ã\83­ã\83¼ã\83\89ã\81\99ã\82\8bï¼\9a
 \begin{flushleft}
 \url{http://git.osdn.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}.
 \end{flushleft}
@@ -867,6 +876,31 @@ and finally delete the temporary directory.
 コピーし,その中で\LuaTeX-jaの初回起動を行い,作業用ディレクトリを消す作業をしている.
 %</ja>
 
+\item
+%<*en>
+Note that when \LuaTeX-ja is loaded in plain \LuaTeX~nor \LaTeX~2019-10-01,
+we cannot use color specification on font loading, such as
+\begin{lstlisting}
+  \font\hoge=lmroman10-regular.otf:color=FF0000 % \font primitive
+  \DeclareFontShape{TU}{...}{...}{...}{<-> lmsans10-boldoblique:color=005599}{} % NFSS
+  \setmainfont{texgyretermes}[Color=220022]     % fontspec
+\end{lstlisting}
+This is because codes for shifting baseline in math mode (\LuaTeX-ja) collide with and prevents loading
+codes for font color (\Pkg{luaotfload}) in these environments.
+\emph{We recommend to use \LaTeX\ 2020-02-02}, since we can avoid this collision in \LaTeX\ 2020-02-02.
+%</en>
+%<*ja>
+なお,\LuaTeX-jaをplain~\LuaTeX や\LaTeX\ 2019-10-01以前の環境下で用いる場合,
+以下のような\emph{フォント読み込み時の色指定}(\cs{textcolor}命令ではなく!)\emph{は利用できない}.
+\begin{lstlisting}
+  \font\hoge=lmroman10-regular.otf:color=FF0000 % \font primitive
+  \DeclareFontShape{TU}{...}{...}{...}{<-> lmsans10-boldoblique:color=005599}{} % NFSS
+  \setmainfont{texgyretermes}[Color=220022]     % fontspec
+\end{lstlisting}
+これは,\LuaTeX-jaによる数式内のベースライン補正(\ref{ssec:baseline}節)のコードが
+\Pkg{luaotfload}パッケージのフォント色処理のコードと衝突するためである.
+\LaTeX\ 2020-02-02以降では衝突回避のための仕組みが備わっているので.\emph{\LaTeX\ 2020-02-02以降での使用を勧める}.
+%</ja>
 \end{itemize}
 
 %<en>\subsection{Using in plain \TeX}
@@ -998,12 +1032,24 @@ plfonts.dtx} and \texttt{pldefs.ltx}).
 \begin{center}\small
 \begin{tabular}{lllc}
 \toprule
-\textbf{classification}&&&\textbf{commands}\\\midrule
+\textbf{classification}&\textbf{commands}&&\textbf{family}\\\midrule
 \emph{mincho} (明朝体)&\verb+\textmc{...}+&\verb+{\mcfamily ...}+&\cs{mcdefault}\\
 \emph{gothic} (\textgt{ゴシック体})&\verb+\textgt{...}+&\verb+{\gtfamily ...}+&\cs{gtdefault}\\
+(Japanese counterpart for typewriter font)&---&---&\cs{jttdefault}\\
 \bottomrule
 \end{tabular}
 \end{center}
+  Here \cs{jttdefault} specifies the Japanese font family in \cs{verb}~or~\texttt{verbatim}
+  environment, and its default value is \cs{mcdefault} (mincho family).%
+  \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).
+  } \LuaTeX-ja does not define commands to only switch current Japanese font family to
+  \cs{jttdefault}.
+
 \item
 By default, the following fonts are used for these two families.
 \begin{center}\small
@@ -1020,17 +1066,26 @@ By default, the following fonts are used for these two families.
      There is no italic nor slanted shape for these \texttt{mc}~and~\texttt{gt}.
 %</en>
 %<*ja>
-\item \pLaTeX ã\81¨å\90\8cæ§\98ã\81«ï¼\8cæ¨\99æº\96ã\81§ã\81¯ã\80\8cæ\98\8eæ\9c\9dä½\93ã\80\8dã\80\8cã\82´ã\82·ã\83\83ã\82¯ä½\93ã\80\8dã\81®2種é¡\9eã\82\92ç\94¨ã\81\84ã\82\8bï¼\9a
+\item \pLaTeX ã\81¨å\90\8cæ§\98ã\81«ï¼\8cæ¨\99æº\96ã\81§ã\81¯ã\80\8cæ\98\8eæ\9c\9dä½\93ã\80\8dã\80\8cã\82´ã\82·ã\83\83ã\82¯ä½\93ã\80\8dã\81®2種é¡\9eã\82\92ç\94¨ã\81\84ã\82\8bï¼\8e
 \begin{center}\small
 \begin{tabular}{llll}
 \toprule
-\emph{字体}&&&\emph{ファミリ名}\\\midrule
+\emph{字体}&\emph{命令}&&\emph{ファミリ名}\\\midrule
 明朝体&\verb+\textmc{...}+&\verb+{\mcfamily ...}+&\cs{mcdefault}\\
 \textgt{ゴシック体}&\verb+\textgt{...}+&\verb+{\gtfamily ...}+&\cs{gtdefault}\\
+(タイプライタ体と合わせる和文)&---&&\cs{jttdefault}\\
 \bottomrule
 \end{tabular}
 \end{center}
-  \newpage
+  \cs{jttdefault}は\cs{verb}や\texttt{verbatim}環境中の和文文字に使われる和文フォントファミリであり,
+  標準値は\cs{mcdefault},つまり明朝体である
+  \footnote{%
+       \Pkg{ltjsclasses}を使用したり,また\Pkg{luatexja-fontspec}や\Pkg{luatexja-preset}パッケージを
+       \texttt{match}オプションを指定して読み込んだときは,単なる\cs{ttfamily}によっても和文フォントが
+       \cs{jttdefault}に変更される.また,これらのクラスファイルやパッケージは
+       \cs{jttdefault}を \cs{gtdefault}(ゴシック体)に再定義する.
+  }.和文フォントファミリ(のみ)を\cs{jttdefault}に切り替える命令は準備していない.
+
 \item 標準では,次のフォントが用いられる:
 \begin{center}\small
 \begin{tabular}{lllll}
@@ -1070,28 +1125,6 @@ By default, the following fonts are used for these two families.
   直に書くことができる(但し\autoref{para:jachar_in_math}ページの記述も参照).
   その際には明朝体(\texttt{mc})で出力される.
 %</ja>
-%<*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 the mincho family is used.
-%</en>
-%<*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},つまり明朝体として用いるのと
-  同じフォントファミリである.
-%</ja>
 
 %<*en>
 \item If you use the \Pkg{beamer} class with the default font theme (which uses sans serif
@@ -1161,8 +1194,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>
 
@@ -1342,7 +1374,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\
 \item 和文フォントのシェイプを定義するには,通常の \cs{DeclareFontShape} を使えば良い:
 %</ja>
 \begin{lstlisting}
-\DeclareFontShape{JY3}{mc}{bx}{n}{<-> s*KozMinPr6N-Bold:jfm=ujis;-kern}{}
+\DeclareFontShape{JY3}{mc}{b}{n}{<-> s*KozMinPr6N-Bold:jfm=ujis;-kern}{}
     % Kozuka Mincho Pr6N Bold
 \end{lstlisting}
 %<*ja>
@@ -1476,14 +1508,14 @@ counterparts of original commands in the \Pkg{fontspec} package
 \begin{tabular}{>{\bfseries}lllll}
 \toprule
 Japanese fonts
-&\cs{jfontspec}&\cs{setmainjfont}&\cs{setsansjfont}&\cs{setmonojfont}$^*$\\
+&\cs{jfontspec}&\cs{setmainjfont}&\cs{setsansjfont}&\cs{setmonojfont}\\
 Alphabetic fonts
 &\cs{fontspec}&\cs{setmainfont}&\cs{setsansfont}&\cs{setmonofont}\\
 \midrule
 Japanese fonts
-&\cs{newjfontfamily}&\cs{renewjfontfamily}$^{**}$&\cs{setjfontfamily}$^{**}$\\
+&\cs{newjfontfamily}&\cs{renewjfontfamily}&\cs{setjfontfamily}\\
 Alphabetic fonts
-&\cs{newfontfamily}&\cs{renewfontfamily}$^{**}$&\cs{setfontfamily}$^{**}$\\
+&\cs{newfontfamily}&\cs{renewfontfamily}&\cs{setfontfamily}\\
 \midrule
 Japanese fonts
 &\cs{newjfontface}&\cs{defaultjfontfeatures}&\cs{addjfontfeatures}\\
@@ -1491,15 +1523,6 @@ Alphabetic fonts
 &\cs{newfontface}&\cs{defaultfontfeatures}&\cs{addfontfeatures}\\
 \bottomrule
 \end{tabular}\par}
-\medskip
-\fakefn{$^*$}{%
-  \cs{setmonojfont} is defined if and only if \texttt{match} option is specified.}
-\fakefn{$^{**}$}{%
-  \cs{renewfontfamily}~and~\cs{setfontfamily} are new commands
-  in \Pkg{fontspec}~v2.6h (2018/7/30).
-  Hence, \Pkg{luatexja-fontspec} define \cs{renewjfontfamily}~and~\cs{setjfontfamily}
-  only when \Pkg{fontspec}~v2.6h (or later) is used.
-}
 \end{table}
 %</en>
 %<*ja>
@@ -1510,14 +1533,14 @@ Alphabetic fonts
 \begin{tabular}{lllll}
 \toprule
 \emph{和文}
-&\cs{jfontspec}&\cs{setmainjfont}&\cs{setsansjfont}&\cs{setmonojfont}$^*$\\
+&\cs{jfontspec}&\cs{setmainjfont}&\cs{setsansjfont}&\cs{setmonojfont}\\
 \emph{欧文}
 &\cs{fontspec}&\cs{setmainfont}&\cs{setsansfont}&\cs{setmonofont}\\
 \midrule
 \emph{和文}
-&\cs{newjfontfamily}&\cs{renewjfontfamily}$^{**}$&\cs{setjfontfamily}$^{**}$\\
+&\cs{newjfontfamily}&\cs{renewjfontfamily}&\cs{setjfontfamily}\\
 \emph{欧文}
-&\cs{newfontfamily}&\cs{renewfontfamily}$^{**}$&\cs{setfontfamily}$^{**}$\\
+&\cs{newfontfamily}&\cs{renewfontfamily}&\cs{setfontfamily}\\
 \midrule
 \emph{和文}
 &\cs{newjfontface}&\cs{defaultjfontfeatures}&\cs{addjfontfeatures}\\
@@ -1525,17 +1548,6 @@ Alphabetic fonts
 &\cs{newfontface}&\cs{defaultfontfeatures}&\cs{addfontfeatures}\\
 \bottomrule
 \end{tabular}\par}
-
-\medskip
-\fakefn{$^*$}{\cs{setmonojfont} は \texttt{match} オプションが
-指定された時のみ定義される.}
-\fakefn{$^{**}$}{%
-  \cs{renewfontfamily} と \cs{setfontfamily} は
-  \Pkg{fontspec}~v2.6h (2018/7/30)で新たに追加された命令である.
-  そのため,\Pkg{luatexja-fontspec}が \cs{renewjfontfamily} と \cs{setjfontfamily} を
-  定義するのはv2.6h以降の\Pkg{fontspec}を使用した時のみになっている.
-}
-
 \end{table}
 %</ja>
 
@@ -1546,18 +1558,12 @@ Alphabetic fonts
 %<*en>
 If this option is specified, usual family-changing commands such as
 \cs{rmfamily},~\cs{textrm}, \cs{sffamily},~\dots\ also change Japanese font family.
-
-Note that \emph{\cs{setmonojfont} is defined
-if and only if this \texttt{\textup{match}} option is specified}.
 %</en>
 
 %<*ja>
 このオプションが指定されると,「\pLaTeXe 新ドキュメントクラス」のように\
 \cs{rmfamily}, \verb+\textrm{...}+, \cs{sffamily} 等が
 欧文フォントだけでなく和文フォントも変更するようになる.
-
-\emph{なお,\cs{setmonojfont} はこの \texttt{match} オプションが
-指定された時のみ定義される.}この命令は標準の「タイプライタ体に対応する和文フォント」を指定する.
 %</ja>
 
  \item[pass=<opts>]
@@ -1599,12 +1605,8 @@ This means that two lines below are equivalent, for example.
 \usepackage[no-math]{fontspec}\usepackage{luatexja-fontspec}
 \usepackage[no-math]{luatexja-fontspec}
 \end{lstlisting}
-
-
 %<*en>
-The reason that \cs{setmonojfont} is not defined by default is that
-it is popular for Japanese fonts that nearly all Japanese glyphs have same
-widths.  Also note that kerning information in a font is not used
+Note that kerning information in a font is not used
 (that is, \texttt{kern} feature is set off) by default in these seven (or~eight) commands.
 This is because of the compatibility with previous versions of \LuaTeX-ja
 (see \ref{para-kern}).
@@ -1612,9 +1614,7 @@ This is because of the compatibility with previous versions of \LuaTeX-ja
 Below is an example of \cs{jfontspec}.
 %</en>
 %<*ja>
-標準で \cs{setmonojfont} コマンドが定義されないのは,
-和文フォントではほぼ全ての和文文字のグリフが等幅であるのが伝統的であったことによる.
-また,これらの和文用のコマンドではフォント内のペアカーニング情報は標準では使用されない,
+これらの和文用のコマンドではフォント内のペアカーニング情報は標準では使用されない,
 言い換えれば \texttt{kern} featureは標準では無効化となっている.
 これは以前のバージョンの\LuaTeX-jaとの互換性のためである(\ref{para-kern}節を参照).
 
@@ -2125,6 +2125,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}}
@@ -2279,6 +2325,7 @@ parameters to \texttt{true}/\texttt{false}, respectively.
 
 %<en>\subsection{Shifting the baseline}
 %<ja>\subsection{ベースラインの移動}
+\label{ssec:baseline}
 %<*en>
 To make a match between a Japanese font and an alphabetic font, sometimes
 shifting of the baseline of one of the pair is needed. In \pTeX, this is achieved
@@ -3424,14 +3471,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 +3762,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 +6479,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 +6861,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 +6911,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 +6975,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 +6984,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 +7007,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 +7016,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 +7026,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 +7122,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}ã\83\91ã\83\83ã\82±ã\83¼ã\82¸ã\81®ã\82³ã\83¼ã\83\89はこれらの文字には働かない.
+  \Pkg{luaotfload}ã\83\91ã\83\83ã\82±ã\83¼ã\82¸ã\81«ã\82\88ã\82\8bå\87¦ç\90\86はこれらの文字には働かない.
 %</ja>
 \end{itemize}
 
@@ -7991,12 +8042,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 +8088,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 +8113,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 +8136,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 +8175,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 +8198,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 +8226,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 +8265,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,26 +8297,25 @@ 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.
+\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によって代用している.
+「原ノ味丸ゴシック」は存在しないので,便宜的に原ノ味角ゴシックHeavyによって代用している.
 %</ja>
 \begin{center}\small
 \begin{tabular}{lll}
@@ -8284,18 +8333,18 @@ There is not rounded gothic family in Harano Aji Fonts.
  &HaranoAjiGothic-Medium.otf\\
 \cmidrule(l){2-3}
 %<en>\smash{\raisebox{2ex}{\textit{gothic}}}%
-%<ja>\smash{\raisebox{2ex}{\gt ゴシック}}%
+%<ja>\smash{\raisebox{2ex}{\textgt{ゴシック}}}%
  &bold&HaranoAjiGothic-Bold.otf\\
  &extra bold&HaranoAjiGothic-Heavy.otf\\
 \midrule
 %<en>\textit{rounded gothic}
-%<ja>\gt 丸ゴシック
+%<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}
@@ -8412,42 +8461,44 @@ and use them by \cs{ltjapplypreset}. These two commands can only be used in the
   新たに<name>という名称のプリセットを定義する.この名称は,
   すでに定義されているプリセット名や,
   \ref{sssec:ltjpreset-general}で定義されているオプション,さらに
-  次の9つと重複してはならない.
+  次の11個と重複してはならない.
   \begin{quote}
        \ttfamily
-       mc mc-l mc-m mc-bx gt gt-m gt-bx gt-eb mg-m
+       mc mc-l mc-m mc-b mc-bx gt gt-m gt-b gt-bx gt-eb mg-m
   \end{quote}
 
   <specification>は,プリセット名や以下のキー達のコンマ区切りリストを指定する:
   \begin{description}
    \item[\ttfamily mc-l=<font>] 明朝体細字(\cs{mcfamily}\cs{ltseries})
    \item[\ttfamily mc-m=<font>] 明朝体中字(\cs{mcfamily}\cs{mdseries})
-   \item[\ttfamily mc-bx=<font>] 明朝体太字(\cs{mcfamily}\cs{bfseries})
+   \item[\ttfamily mc-b=<font>] 明朝体太字(\cs{mcfamily}\cs{bfseries})
+   \item[\ttfamily mc-bx=<font>] \texttt{mc-b=<font>}と同義.
    \item[\ttfamily gt-m=<font>] ゴシック体中字(\cs{gtfamily}\cs{mdseries})
-   \item[\ttfamily gt-bx=<font>] ゴシック体太字(\cs{gtfamily}\cs{bfseries})
+   \item[\ttfamily gt-b=<font>] ゴシック体太字(\cs{gtfamily}\cs{bfseries})
+   \item[\ttfamily gt-bx=<font>] \texttt{gt-b=<font>}と同義.
    \item[\ttfamily gt-eb=<font>] ゴシック体太字(\cs{gtfamily}\cs{ebseries})
    \item[\ttfamily mg-m=<font>] 丸ゴシック体(\cs{mgfamily})
    \item[\ttfamily mc=<font>] 明朝体の細字・中字・太字全部を設定.
        以下を指定したことと同じである:
        \begin{quote}
-         \ttfamily mc-l=<font>, mc-m=<font>, mc-bx=<font>
+         \ttfamily mc-l=<font>, mc-m=<font>, mc-b=<font>
        \end{quote}
    \item[\ttfamily gt=<font>] ゴシック体の中字・太字・極太全部を設定.
        以下を指定したことと同じである:
        \begin{quote}
-         \ttfamily gt-m=<font>, gt-bx=<font>, gt-eb=<font>
+         \ttfamily gt-m=<font>, gt-b=<font>, gt-eb=<font>
        \end{quote}
   \end{description}
   なお,パッケージ読み込み時に \texttt{deluxe} が有効でない場合は,
-  上記9キーのうち\texttt{mc}, \texttt{gt}しか実質的に意味を持たない.  
+  上記11キーのうち\texttt{mc}, \texttt{gt}しか実質的に意味を持たない.
 %</ja>
 %<*en>
   Define new preset~<name>. This <name> cannot be same as other presets,
   options described in Subsubsection~\ref{sssec:ltjpreset-general}, nor
-  following nine strings:
+  following 11~strings:
   \begin{quote}
-       \ttfamily
-       mc mc-l mc-m mc-bx gt gt-m gt-bx gt-eb mg-m
+       \ttfamily       
+       mc mc-l mc-m mc-b mc-bx gt gt-m gt-b gt-bx gt-eb mg-m
   \end{quote}
 
   <specification> is a comma-separated list which consists of
@@ -8455,22 +8506,24 @@ and use them by \cs{ltjapplypreset}. These two commands can only be used in the
   \begin{description}
    \item[\ttfamily mc-l=<font>] mincho light
    \item[\ttfamily mc-m=<font>] mincho medium
-   \item[\ttfamily mc-bx=<font>] mincho bold
+   \item[\ttfamily mc-b=<font>] mincho bold
+   \item[\ttfamily mc-bx=<font>] synonym for \texttt{mc-b=<font>}
    \item[\ttfamily gt-m=<font>] gothic medium
-   \item[\ttfamily gt-bx=<font>] gothic bold
+   \item[\ttfamily gt-b=<font>] gothic bold
+   \item[\ttfamily gt-bx=<font>] synonym for \texttt{gt-b=<font>}
    \item[\ttfamily gt-eb=<font>] gothic extra~bold
    \item[\ttfamily mg-m=<font>] rounded gothic
    \item[\ttfamily mc=<font>] Same as
        \begin{quote}
-         \ttfamily mc-l=<font>, mc-m=<font>, mc-bx=<font>
+         \ttfamily mc-l=<font>, mc-m=<font>, mc-b=<font>
        \end{quote}
    \item[\ttfamily gt=<font>] Same as
        \begin{quote}
-         \ttfamily gt-m=<font>, gt-bx=<font>, gt-eb=<font>
+         \ttfamily gt-m=<font>, gt-b=<font>, gt-eb=<font>
        \end{quote}
   \end{description}
   If \texttt{deluxe} is not specified at loading the package,
-  only \texttt{mc}~and~\texttt{gt} keys (among above 9~keys) have a meaning.
+  only \texttt{mc}~and~\texttt{gt} keys (among above 11~keys) have a meaning.
 %</en>
  \item[\cs{ltjnewpreset}*\{<name>\}\{<specification>\}]
 %<*ja>
@@ -8492,7 +8545,7 @@ and use them by \cs{ltjapplypreset}. These two commands can only be used in the
 \cs{ltjapplypreset}で実際に使うときに定義されていれば良い.
 そのため,次のような記述も可能である:
 \begin{lstlisting}
-  \ltjnewpreset{hoge}{piyo,mc-bx=HiraMinProN-W6}
+  \ltjnewpreset{hoge}{piyo,mc-b=HiraMinProN-W6}
   \ltjnewpreset{piyo}{mg-m=HiraMaruProN-W4}
   \ltjapplypreset{hoge}
 \end{lstlisting}
@@ -8511,7 +8564,7 @@ and use them by \cs{ltjapplypreset}. These two commands can only be used in the
 Note that \cs{ltjnewpreset} does not ``expand'' the definition to define a preset.
 This means that one can write as the following:
 \begin{lstlisting}
-  \ltjnewpreset{hoge}{piyo,mc-bx=HiraMinProN-W6}
+  \ltjnewpreset{hoge}{piyo,mc-b=HiraMinProN-W6}
   \ltjnewpreset{piyo}{mg-m=HiraMaruProN-W4}
   \ltjapplypreset{hoge}
 \end{lstlisting}
@@ -8575,7 +8628,7 @@ This \cs{jH} is the same \cs{dimen} register as \cs{jQ}.
 等しい.この \cs{jH} は \cs{jQ} と同じ寸法レジスタを指す.
 %</ja>
 
-\dim{ltj@zw}
+\dim{ltj@dimen@zw}
 %<*en>
 A temporal register for the ``full-width'' of current Japanese font.
 The command \cs{zw} sets this register to the correct value, and
@@ -8587,7 +8640,7 @@ The command \cs{zw} sets this register to the correct value, and
 「このレジスタ自体を返す」.
 %</ja>
 
-\dim{ltj@zh}
+\dim{ltj@dimen@zh}
 %<*en>
 A temporal register for the ``full-height'' (usually the sum of height of imaginary body and its depth) of current Japanese font.
 The command \cs{zh} sets this register to the correct value, and
@@ -8813,19 +8866,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}ã\81®ã\82³ã\83¼ã\83«ã\83\90ã\83\83ã\82¯ã\81«ã\82\88ã\82\8bå\87¦ç\90\86ã\81\8cé\81©ç\94¨ã\81\95ã\82\8cã\81ªã\81\84\textbf{JAchar}ã\81®ã\81\9fã\82\81ã\81®ã\83\8eã\83¼ã\83\89ã\81§ï¼\8c
+\Pkg{luaotfload}による処理が適用されない\textbf{JAchar}のためのノードで,
 \texttt{value} フィールドに文字コードが格納されている.
 この種類のノードはそれぞれが\Pkg{luaotfload}のコールバックの処理の
 \emph{後で}\textit{glyph\_node}に変換される.
-\cs{CID}, \cs{UTF}ã\82\84IVS対å¿\9cå\87¦ç\90\86ã\81§ã\81\93ã\81®ç¨®é¡\9eã\81®ã\83\8eã\83¼ã\83\89ã\81\8cå\88©ç\94¨ã\81\95ã\82\8cã\81¦ã\81\84ã\82\8bï¼\8e
+\cs{CID}, \cs{UTF}でこの種類のノードが利用されている.
 %</ja>
 
 \item[\textit{replace\_vs}]
@@ -9888,6 +9941,10 @@ x+y&($\Param{diffrentjfm}=\texttt{both}$).
 という3ノードを考える(それぞれ単独でクラスタをなす).
 この場合,$p$と$q$の間は,実フォントが異なるにもかかわらず2.の状況となる一方で,
 $q$と$r$の間は(実フォントが同じなのに)\texttt{jfmvar} キーの内容が異なるので3.の状況となる.
+
+  なお,JFMで\texttt{kanjiskip\_natural}, \texttt{kanjiskip\_stretch},\
+\texttt{kanjiskip\_shrink}キーが指定されていた場合は,……
+  
 \item[\Param{kanjiskip}~{[K]}] 上の[M]において空白が定まらなかった場合,
 以下で定めた量「右空白」として採用する.
 この段階においては,\cs{inhibitglue} は効力を持たないため,
@@ -10386,9 +10443,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]
@@ -10416,8 +10472,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{