%%%%% section ==> 章
%%%%% subsection => 節
+\IfFileExists{luatex85.sty}{\RequirePackage{luatex85}}{}
%<en>\documentclass[a4paper,titlepage]{article}
%<ja>\documentclass[a4paper,titlepage]{ltjsarticle}
%%%%%%%% 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,
\hbox{\tate\Large\vrule
\parbox{7\zw}{%
\addjfontfeatures{TateFeatures={Opacity=0.5, Color=#2, JFM=#1}}\noindent
- ◆◆◆◆◆◆◆\
- ã\81\82ã\82\8bæ\97¥ã\83¢ã\83¢ã\81¡ã\82\83ã\82\93ã\81\8cã\81\8a使ã\81\84で迷子になって泣きました。
+ ◆◆◆◆◆◆◆
+ ã\81\82ã\82\8bæ\97¥ã\83¢ã\83¢ã\81¡ã\82\83ã\82\93ã\81\8cã\80\8cã\81\8a使ã\81\84ã\80\8dで迷子になって泣きました。
}\vrule}}
\def\s#1#2{%
\hbox{\tate\Large
正しく半角幅で組むために利用されている.
%</ja>
+\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:}
%</en>
%<*ja>
\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回以上実行しても意味がない.}:
%</ja>
\begin{lstlisting}
\directlua{luatexja.otf.enable_ivs()}