OSDN Git Service

luatexja-ruby: date and default value of [yt]rubydepth
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sun, 26 Jun 2022 00:06:58 +0000 (09:06 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sun, 26 Jun 2022 00:06:58 +0000 (09:06 +0900)
doc/luatexja-ruby.out.ps [new file with mode: 0644]
doc/luatexja-ruby.pdf
doc/luatexja-ruby.tex
src/addons/luatexja-ruby.sty
src/ltj-ruby.lua

diff --git a/doc/luatexja-ruby.out.ps b/doc/luatexja-ruby.out.ps
new file mode 100644 (file)
index 0000000..4a0191d
--- /dev/null
@@ -0,0 +1,37 @@
+%!
+/pdfmark where{pop}
+{/globaldict where{pop globaldict}{userdict}ifelse/pdfmark/cleartomark load put}
+ifelse
+[
+/Title(\376\377\122\051\000|\165\050\000|\145\271\000|\154\325\060\212\000|\060\210\060\106\000|\060\173\060\106\000|\060\173\060\106)
+/Count -3
+/Action/GoTo/Dest(section.1)cvn
+/OUT pdfmark
+[
+/Title(\376\377\165\050\000|\212\236\060\210\060\106\000|\060\124)
+/Action/GoTo/Dest(subsection.1.1)cvn
+/OUT pdfmark
+[
+/Title(\376\377\124\175\000|\116\344\060\201\060\104\000|\060\214\060\104)
+/Action/GoTo/Dest(subsection.1.2)cvn
+/OUT pdfmark
+[
+/Title(\376\377\060\260\060\353\060\374\060\327\060\156\143\007\000|\133\232\060\127\000|\060\146\060\104)
+/Action/GoTo/Dest(subsection.1.3)cvn
+/OUT pdfmark
+[
+/Title(\376\377\154\350\000|\141\017\000|\160\271\060\141\060\206\060\106\000|\060\104\000|\060\146\060\223)
+/Action/GoTo/Dest(section.2)cvn
+/OUT pdfmark
+[
+/Title(\376\377\133\237\000|\210\305\060\130\060\144\000|\060\135\060\106\060\153\060\144\060\104\060\146)
+/Action/GoTo/Dest(section.3)cvn
+/OUT pdfmark
+[
+/Title(\376\377\060\104\060\117\060\144\060\113\060\156\117\213)
+/Action/GoTo/Dest(section.4)cvn
+/OUT pdfmark
+[
+/Title(\376\377\060\016\145\345\147\054\212\236\175\104\162\110\121\346\164\006\060\156\211\201\116\366\060\017\0002\0000\0001\0002\0000\0004\0000\0003\060\156\117\213)
+/Action/GoTo/Dest(section.5)cvn
+/OUT pdfmark
index 2dce103..c7405be 100644 (file)
Binary files a/doc/luatexja-ruby.pdf and b/doc/luatexja-ruby.pdf differ
index 3148d1d..09f8c86 100644 (file)
@@ -212,11 +212,11 @@ plain \LuaTeX でのロードはまだサポートしておらず,
   {本}{ほん}}
 \end{LTXexample}
 \item[ybaseheight=<real>] 非負の値が指定された場合,
-  \emph{縦組以外での}ルビの親文字の高さを全角高さの<real>倍と強制的に固定する.
+  \emph{縦組以外での}親文字の高さを親文字全角の<real>倍と強制的に固定する.
   負の値が指定された場合は「固定しない」(すなわち,v0.3より前の挙動と同じになる).
-  既定値は0.88
-\item[tbaseheight=<real>] \texttt{ybaseheight}と同様だが,こちらは\emph{縦組での}ルビの親文字の高さを指定する.
-  既定値は0.5
+  既定値は$0.88$
+\item[tbaseheight=<real>] \texttt{ybaseheight}と同様だが,こちらは\emph{縦組での}親文字の高さを指定する.
+  既定値は$0.5$
 \item[baseheight=<real>] \texttt{ybaseheight},\texttt{tbaseheight}を同時に指定したことと同義.
 \begin{LTXexample}[width=0.3\textwidth, preset=\Large]
 \noindent
@@ -229,6 +229,25 @@ plain \LuaTeX でのロードはまだサポートしておらず,
 \ltjruby[baseheight=-1]{本}{ほん}\ 
 \ltjruby[baseheight=-1]{dvi}{ディーヴィーアイ}
 \end{LTXexample}
+\item[yrubydepth=<real>] 非負の値が指定された場合,
+  \emph{縦組以外での}ルビの深さをルビ全角の<real>倍と強制的に固定する.
+  負の値が指定された場合は「固定しない」(すなわち,v0.52以前の挙動と同じになる).
+  既定値は$0.12$.
+\item[trubydepth=<real>] \texttt{yrubydepth}と同様だが,こちらは\emph{縦組での}ルビの深さを指定する.
+  既定値は$0.5$.
+\item[rubydepth=<real>] \texttt{yrubydepth},\texttt{trubydepth}を同時に指定したことと同義.
+\begin{LTXexample}[width=0.3\textwidth, preset=\Large]
+\noindent
+\ltjruby[rubydepth=0.12]{◆}{ほん}\ 
+\ltjruby[rubydepth=0.12]{◆}{pdf}\ 
+\ltjruby[rubydepth=0.12]{◆}{dvi}\\
+\ltjruby[rubydepth=0]{◆}{ほん}\ 
+\ltjruby[rubydepth=0]{◆}{pdf}\ 
+\ltjruby[rubydepth=0]{◆}{dvi}\\
+\ltjruby[rubydepth=-1]{◆}{ほん}\ 
+\ltjruby[rubydepth=-1]{◆}{pdf}\
+\ltjruby[rubydepth=-1]{◆}{dvi}
+\end{LTXexample}
 
 
 
@@ -268,11 +287,12 @@ mode=9, stretch={1}{2}{1}, stretchruby={0}{0}{1}
 <option>の既定値を指定する.\textsf{luatexja-ruby}読み込み時の値は
 各項目の所で既に説明してあるが,次のようになっている.
 \begin{verbatim}
-  pre=-1, post=-1, mode=1, 
+  pre=-1, post=-1, mode=1,
   stretchruby={1}{2}{1}, stretch = {1}{2}{1},
   stretchbol={0}{1}{1}, stretcheol={1}{1}{0},
   maxmargin=0.5, size=0.5, intergap=0, rubysmash=false,
   kenten=\textbullet, fontcmd=\relax, ybaseheight=0.88, tbaseheight=0.5,
+  yrubydepth=0.12, trubydepth=0.5,
   intrude_jfmgk, intrude_kanjiskip, intrude_xkanjiskip
 \end{verbatim}
 
index c8b452d..5f01987 100644 (file)
@@ -4,7 +4,7 @@
 
 % LaTeX only!
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{luatexja-ruby}[2021-05-17 v0.52]
+\ProvidesPackage{luatexja-ruby}[2022-06-26 v0.53]
 \RequirePackage{luatexja}
 
 %%------------------
 \ltjsetparameter{rubypreintrusion={-1,1}}
 
 \setkeys[ltj]{ruby}{
-  pre=-1, post=-1, mode=1, 
+  pre=-1, post=-1, mode=1,
   stretchruby={1}{2}{1}, stretch = {1}{2}{1},
   stretchbol={0}{1}{1}, stretcheol={1}{1}{0},
   maxmargin=0.5, size=0.5, intergap=0, rubysmash=false,
   kenten=\textbullet, fontcmd=\relax, ybaseheight=0.88, tbaseheight=0.5,
-  yrubydepth=-1, trubydepth=-1,
+  yrubydepth=0.12, trubydepth=0.5,
   intrude_jfmgk, intrude_kanjiskip, intrude_xkanjiskip,
   epsilon=0.0001,
 }
index 865db05..7fa7ea9 100644 (file)
@@ -3,7 +3,7 @@
 --
 luatexbase.provides_module({
   name = 'luatexja.ruby',
-  date = '2022-02-03',
+  date = '2022-06-25',
   description = 'Ruby annotation',
 })
 luatexja.ruby = {}