diff options
author | Karl Berry <karl@freefriends.org> | 2022-07-14 20:21:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-07-14 20:21:15 +0000 |
commit | bbde8f2f326aa5d77b82d0fed87b086e8cbabc36 (patch) | |
tree | 4e09eb5df0114e3efa7c3ac41cdc034022218f2f /Master/texmf-dist/source | |
parent | b60771c5603b16fe6b0a36679afb641c475ef31e (diff) |
xpinyin (14jul22)
git-svn-id: svn://tug.org/texlive/trunk@63897 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/xpinyin/xpinyin.dtx | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/xpinyin/xpinyin.dtx b/Master/texmf-dist/source/latex/xpinyin/xpinyin.dtx index e142fba5ce1..31d960cd665 100644 --- a/Master/texmf-dist/source/latex/xpinyin/xpinyin.dtx +++ b/Master/texmf-dist/source/latex/xpinyin/xpinyin.dtx @@ -167,12 +167,12 @@ Copyright and Licence %</internal> %<package>\NeedsTeXFormat{LaTeX2e} %<package>\RequirePackage{expl3} -%<+package>\GetIdInfo$Id: xpinyin.dtx b319ff9 2022-06-04 19:40:35 +0800 Qing Lee <sobenlee@gmail.com> $ +%<+package>\GetIdInfo$Id: xpinyin.dtx dd0cc20 2022-07-14 18:53:49 +0800 Qing Lee <sobenlee@gmail.com> $ %<package> {Automatically add pinyin to Chinese characters} %<package>\ProvidesExplPackage{\ExplFileName} -%<package> {\ExplFileDate}{3.0}{\ExplFileDescription} +%<package> {\ExplFileDate}{3.1}{\ExplFileDescription} %<database>\ProvidesFile{xpinyin-database.def}% -%<database> [2022/06/04 v3.0 xpinyin database] +%<database> [2022/07/14 v3.1 xpinyin database] %<*driver> \documentclass{ctxdoc} \usepackage{xpinyin} @@ -186,7 +186,7 @@ Copyright and Licence %</driver> % \fi % -% \CheckSum{690} +% \CheckSum{695} % \GetFileId{xpinyin.sty} % % \title{\bfseries\pkg{xpinyin} 宏包} @@ -279,7 +279,7 @@ Copyright and Licence % 对于多音字,可以使用 \tn{xpinyin} 为其设置拼音;而 \tn{xpinyin*} 相当于 % \env{pinyinscope} 环境的命令形式。\tn{xpinyin} 可以在 \env{pinyinscope} 环境和 % \tn{xpinyin*} 中使用。例如, -% \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.5\linewidth,gobble=5] +% \begin{SideBySideExample} % \xpinyin{长}{chang2}\\ % \xpinyin*{甄士隐梦幻识通灵}\\ % \xpinyin*{\xpinyin{重}{zhong4}要} @@ -291,7 +291,7 @@ Copyright and Licence % \tn{pinyin} \oarg{options} \Arg{拼音} % \end{syntax} % 用于输出拼音,为了输入的方便 \texttt{\"u} 可以用 |v| 代替。例如, -% \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.5\linewidth,gobble=5] +% \begin{SideBySideExample} % \pinyin{lv2zi}\\ % \pinyin{nv3hai2zi} % \end{SideBySideExample} @@ -422,8 +422,8 @@ Copyright and Licence % \end{macrocode} % % \begin{macrocode} -\RequirePackage { xparse } -\RequirePackage { l3keys2e } +\cs_if_exist:NF \NewDocumentCommand + { \RequirePackage { xparse } } % \end{macrocode} % % \begin{variable}{\c_@@_tone_prop} @@ -1176,7 +1176,12 @@ Copyright and Licence % \end{macro} % % \begin{macrocode} -\ProcessKeysOptions { xpinyin } +\cs_if_exist:NTF \ProcessKeyOptions + { \ProcessKeyOptions [ xpinyin ] } + { + \RequirePackage { l3keys2e } + \ProcessKeysOptions { xpinyin } + } % \end{macrocode} % % \begin{macrocode} |