summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/babel-contrib
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-02-14 03:00:50 +0000
committerNorbert Preining <norbert@preining.info>2021-02-14 03:00:50 +0000
commit8c6ca435b3bc584eb3efe8e52417fb989e677789 (patch)
tree08bae5450fe9e553e2b28cb984cae56e8d9e0990 /macros/latex/contrib/babel-contrib
parent3d0d4d2ed250339f704c23ea8f24670c70d5981f (diff)
CTAN sync 202102140300
Diffstat (limited to 'macros/latex/contrib/babel-contrib')
-rw-r--r--macros/latex/contrib/babel-contrib/japanese/README.md2
-rw-r--r--macros/latex/contrib/babel-contrib/japanese/babel-japanese-sample.pdfbin37938 -> 37857 bytes
-rw-r--r--macros/latex/contrib/babel-contrib/japanese/babel-japanese.dtx51
-rw-r--r--macros/latex/contrib/babel-contrib/japanese/babel-japanese.pdfbin135234 -> 137972 bytes
4 files changed, 42 insertions, 11 deletions
diff --git a/macros/latex/contrib/babel-contrib/japanese/README.md b/macros/latex/contrib/babel-contrib/japanese/README.md
index 976383cc40..b4d7ba5fd8 100644
--- a/macros/latex/contrib/babel-contrib/japanese/README.md
+++ b/macros/latex/contrib/babel-contrib/japanese/README.md
@@ -81,6 +81,6 @@ modified under the terms of the LaTeX Project Public License 1.3.
## Release Date
-2020-12-13
+2021-02-13
Japanese TeX Development Community
diff --git a/macros/latex/contrib/babel-contrib/japanese/babel-japanese-sample.pdf b/macros/latex/contrib/babel-contrib/japanese/babel-japanese-sample.pdf
index cc8f1928c8..7436dca671 100644
--- a/macros/latex/contrib/babel-contrib/japanese/babel-japanese-sample.pdf
+++ b/macros/latex/contrib/babel-contrib/japanese/babel-japanese-sample.pdf
Binary files differ
diff --git a/macros/latex/contrib/babel-contrib/japanese/babel-japanese.dtx b/macros/latex/contrib/babel-contrib/japanese/babel-japanese.dtx
index 1f3a150b0d..80d7200e48 100644
--- a/macros/latex/contrib/babel-contrib/japanese/babel-japanese.dtx
+++ b/macros/latex/contrib/babel-contrib/japanese/babel-japanese.dtx
@@ -4,7 +4,7 @@
% providing Japanese language support for Babel.
%
% Copyright (C) 1999--2007 by ING (Toru INAGAKI)
-% 2016--2020 by Japanese TeX Development Community
+% 2016--2021 by Japanese TeX Development Community
%
% \fi
%
@@ -23,7 +23,7 @@
%<code>\ProvidesLanguage{japanese}
%<*!sample>
%\ProvidesFile{babel-japanese.dtx}
- [2020/12/06 v3.0 Japanese support for babel (texjporg)]
+ [2021/02/13 v3.1 Japanese support for babel (texjporg)]
%</!sample>
%\fi
%
@@ -63,7 +63,7 @@
%
% \title{Babel-Option {\sffamily japanese} version \fileversion}
% \author{\copyright\ 1999--2007 ING\\
-% 2016--2020 Japanese \TeX\ Development Community}
+% 2016--2021 Japanese \TeX\ Development Community}
% \date{\filedate}
% \maketitle
% \baselineskip=14pt
@@ -105,12 +105,11 @@
% \item Common Western classes (article.cls etc)
% provide placeholders in front of the numbering
% (e.g. \cs{chaptername}), but lack any placeholders
-% behind the numbering.\footnote{Starting from
-% Babel v3.48 (2020-09-01), a new feature to adjust
+% behind the numbering.\footnote{Update: starting from
+% Babel v3.53 (2021-01-26), a new feature to adjust
% e.g. chapter format to have placeholders like
% \cs{prechaptername} ... \cs{postchaptername} is
-% going to be added. However, it's still tentative so
-% currently unused in \file{japanese.ldf}.}
+% available, which seems to work with standard classes.}
% Therefore, the keywords like ``Part'' or ``Chapter''
% cannot be simply replaced with Japanese counterpart.
% \end{itemize}
@@ -219,13 +218,19 @@
%
% \DescribeMacro{\captionsjapanese}
% |\captionsjapanese|マクロは\pLaTeX{}の標準のクラスファイルで使われる
-% 見出し語を日本語で出力します。\LaTeX{}の標準のクラスファイルでも動作
-% しますが,元が英語用ですので,語順の関係上すべてを日本語化することは
-% できません(たとえば,Part 1→第1部とは変更することは不可能です)。
+% 見出し語を日本語で出力します。\LaTeX{}の標準のクラスファイルなど,
+% 西欧で開発されたものでも一部しますが,
+% 語順の関係上すべてが日本語化されない場合があります
+% (たとえば,Part 1→第1部とは変更することは不可能です)。
%
% [2016-12-15] 「証明」と「用語集」も日本語化するようにしました。
% |\postpartname| がタイポで |\postpartnam| になっていたのを直しました。
%
+% [2021-02-06] Babel v3.53で追加された新機能により,西欧で開発された
+% クラスファイルでも見出しの日本語化サポートが改善されました。
+% 少なくとも\LaTeX{}の標準のクラスファイルでは動作するようです。
+% 後の |\setlocalecaption| のコードを参照してください。
+%
% UTF-8エンコーディングで直接和文文字を記述します。
% \begin{macrocode}
\def\bbl@jpn@prefacename{前書き}%
@@ -426,6 +431,31 @@ X \fi
\catcode`\X=\bbl@jpn@x@catcode\relax
% \end{macrocode}
%
+% \DescribeMacro{\setlocalecaption}
+% [2021-02-06] Babel v3.53の新機能を使い,
+% 西欧のクラスファイルの |\part| と |\chapter| の形式を
+% |\pre...name| と |\post...name| で挟む形式に変更します。
+%
+% 参考:|\xkanjiskip| の自動挿入が不可能なエンジンでは
+%\begin{verbatim}
+% [[prepart]][part][[postpart]]
+% [[prechapter]][chapter][[postchapter]]
+%\end{verbatim}
+% ではなく
+%\begin{verbatim}
+% [[prepart]] [part] [[postpart]]
+% [[prechapter]] [chapter] [[postchapter]]
+%\end{verbatim}
+% のほうが見栄えが良いかもしれません。
+% \begin{macrocode}
+\ifx\setlocalecaption\@undefined \else
+\setlocalecaption{\CurrentOption}{part.template}%
+ {[[prepart]][part][[postpart]]}
+\setlocalecaption{\CurrentOption}{chapter.template}%
+ {[[prechapter]][chapter][[postchapter]]}
+\fi
+% \end{macrocode}
+%
% \begin{macrocode}
\@namedef{extras\CurrentOption}{}
\@namedef{noextras\CurrentOption}{}
@@ -458,6 +488,7 @@ X \fi
% また,このドキュメントを\file{japanese.pdf}から
% \file{babel-japanese.pdf}にリネームし,新たに「ちゃんと日本語
% する方法」を概説する新版\file{japanese.pdf}を追加しました。
+% \item 2021年2月:Babel v3.53の新機能を活用しました。
% \end{itemize}
%
% \StopEventually{}
diff --git a/macros/latex/contrib/babel-contrib/japanese/babel-japanese.pdf b/macros/latex/contrib/babel-contrib/japanese/babel-japanese.pdf
index cf4a1ba89a..d2b71c6395 100644
--- a/macros/latex/contrib/babel-contrib/japanese/babel-japanese.pdf
+++ b/macros/latex/contrib/babel-contrib/japanese/babel-japanese.pdf
Binary files differ