OSDN Git Service

doc
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Thu, 2 May 2019 07:24:30 +0000 (16:24 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Thu, 2 May 2019 07:24:30 +0000 (16:24 +0900)
doc/luatexja.dtx
test/test51-vtest.tex

index 6a134d4..c86da04 100644 (file)
@@ -3729,6 +3729,23 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont
 \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>
@@ -3805,7 +3822,7 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont
   したい場合は次のようにすれば良い.
 \begin{lstlisting}
 \directlua{luatexja.jfont.register_vert_replace{
-  ['あ']='い', [',']=nil,
+  ['あ']='い', [',']=false,
 }}
 \end{lstlisting}
   \verb+luatexja.jfont.register_vert_replace+ による変更はこの関数の\emph{実行後}に定義される
index ad0c192..e20bc90 100644 (file)
@@ -476,22 +476,22 @@ $$
 
 
 \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