OSDN Git Service

doc
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 18 Sep 2021 09:39:23 +0000 (18:39 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 18 Sep 2021 09:39:23 +0000 (18:39 +0900)
doc/luatexja-en.pdf
doc/luatexja-ja.pdf
doc/luatexja-ruby.pdf
doc/luatexja-ruby.tex

index 6d9f8a3..146c837 100644 (file)
Binary files a/doc/luatexja-en.pdf and b/doc/luatexja-en.pdf differ
index 4ca3182..299097d 100644 (file)
Binary files a/doc/luatexja-ja.pdf and b/doc/luatexja-ja.pdf differ
index 2ca312a..e3cea8d 100644 (file)
Binary files a/doc/luatexja-ruby.pdf and b/doc/luatexja-ruby.pdf differ
index a01994f..3148d1d 100644 (file)
 \DeclareFontShape{JY3}{mc}{mc}{n}{<-> [0.92487] 
   HaranoAjiMincho-Regular:extend=0.67;jfm=ujisc33}{}
 
+%%%% \ltjruby 内に \texorpdfstring + | 除去を仕込む
+\RequirePackage{xparse}
+\makeatletter
+\def\removevert#1{\if\noexpand#1|%
+    \expandafter\expandafter\expandafter\@firstofone\expandafter{%
+  \else\ifnum0=1}\fi#1%
+    \ifx#1\relax\expandafter\@gobble%
+    \else\expandafter\@firstofone
+    \fi{\expandafter\@firstofone
+  \fi
+  \removevert}}
+\makeatother
+\ExplSyntaxOn
+\cs_set_eq:NN \myorigltjruby \ltjruby
+\DeclareExpandableDocumentCommand {\ltjruby} { O{} m m } {%
+   \texorpdfstring {
+    \exp_not:n { \myorigltjruby[#1]{#2}{#3} }
+  } {
+    \removevert #2 \relax
+  }
+}
+\cs_set_eq:NN \ruby \ltjruby
+\ExplSyntaxOff
+%%%%
+
 \title{\textsf{luatexja-ruby}パッケージ}
 \author{\LuaTeX-jaプロジェクトチーム}
 \date{\texttt{\csname ver@luatexja-ruby.sty\endcsname}(\today)}