\item[\tt jfm-tmin.lua] A counterpart for \verb+tmin10.tfm+, which is one
of the default Japanese font metric shipped with \pTeX.
\end{description}
+\begin{figure}[!tb]
+\begin{LTXexample}[pos=b]
+\jfont\X=[KozMinPr6N-Regular.otf]:jfm=ujis
+\tfont\U=[KozMinPr6N-Regular.otf]:jfm=ujisv
+\tfont\V=[KozMinPr6N-Regular.otf]:jfm=ujisv;jpotf
+\def\TEST#1#2{\leavevmode\hbox{#1#2\string#2 “引用,と句読点.”}}
+\ttfamily\centering\TEST\yoko\X \quad \TEST\tate\U \quad \TEST\tate\V
+\end{LTXexample}
+\caption{\texttt{jpotf} ``feature''}
+\label{fig:jpotf}
+\end{figure}
+
+ \item If \texttt{vert}~and/or~\texttt{vrt2} features are activated,
+ one can specify \texttt{jpotf} to additional substitutions.
+ By default, it substitutes ideographic comma/period for fullwidth comma/period,
+ and double prime quotation marks for double quotation marks
+ (See~\autoref{fig:jpotf}).
\end{itemize}
%</en>
%<*ja>
したい場合は次のようにすれば良い.
\begin{lstlisting}
\directlua{luatexja.jfont.register_vert_replace{
- ['あ']='い', [',']=nil,
+ ['あ']='い', [',']=false,
}}
\end{lstlisting}
\verb+luatexja.jfont.register_vert_replace+ による変更はこの関数の\emph{実行後}に定義される
\vfill\eject
-\def\T{KozMinPr6N-Regular.otf}
-%\def\T{ipaexm.ttf}
-%\def\T{HiraMinProN-W3.otf}
-\jfont\X=[\T]:jfm=ujis;language=latn;script=latn
-\tfont\V=[\T]:jfm=ujisv;+vert;jpotf;language=latn;script=latn
-\tfont\VM=[\T]:jfm=ujisv;+vert;language=latn;script=latn
+\directlua{luatexja.jfont.register_vert_replace{
+ ['あ']='い', %[',']=false, ['.']='ゐ',
+}}
+%\def\T{[KozMinPr6N-Regular.otf]}
+\def\T{SourceHanSerif-Regular}
+%\def\T{[ipaexm.ttf]}
+%\def\T{[HiraMinProN-W3.otf]}
+\jfont\X=\T:jfm=ujis;language=latn;script=latn
+\tfont\V=\T:jfm=ujisv;+vert;jpotf;language=latn;script=latn
+\tfont\VM=\T:jfm=ujisv;+vert;language=latn;script=latn
\noindent
-\vbox{\yoko\X\hsize=20\zw
- \char"301Dあ「」ああ\char"301F---“あああ,あああ.”
-}\\
-\vbox{\tate\V\hsize=20\zw
- \char"301Dあ「」ああ\char"301F---“あああ,あああ.”
-}
-\vbox{\tate\VM\hsize=20\zw
- \char"301Dあ「」ああ\char"301F---“あああ,あああ.”
-}
+\def\ts{\char"301Dあ\char"301Dあ「」あ\char"301Eあ\char"301F%
+ ---“あああ,あああ.”}
+\vbox{\yoko\X\hsize=20\zw\ts}\vadjust{\vskip.5\baselineskip}\\
+\vbox{\tate\V\hsize=20\zw\ts}\quad
+\vbox{\tate\VM\hsize=20\zw\ts}
\end