| 1 |
% This file is part of babel. For further details see: |
| 2 |
% https://www.ctan.org/pkg/babel |
| 3 |
\ifx\BabelBeforeIni\undefined |
| 4 |
\PackageError{babel}% |
| 5 |
{This file is a component of babel and cannot\MessageBreak |
| 6 |
be loaded directly. I'll stop immediately}% |
| 7 |
{Just use babel as documented.}% |
| 8 |
\stop |
| 9 |
\fi |
| 10 |
\BabelBeforeIni{zh}{% |
| 11 |
} |
| 12 |
|
| 13 |
\ifcase\bbl@engine\else % xe/lua |
| 14 |
|
| 15 |
% Shared with zh-*.ini files |
| 16 |
\@namedef{bbl@[email protected]@\CurrentOption}#1{% |
| 17 |
\ifcase\fpeval{\bbl@fpmod{(#1-4)}{60}} 甲子\or 乙丑\or |
| 18 |
丙寅\or 丁卯\or 戊辰\or 己巳\or 庚午\or 辛未\or 壬申\or |
| 19 |
癸酉\or 甲戌\or 乙亥\or 丙子\or 丁丑\or 戊寅\or 己卯\or |
| 20 |
庚辰\or 辛巳\or 壬午\or 癸未\or 甲申\or 乙酉\or 丙戌\or |
| 21 |
丁亥\or 戊子\or 己丑\or 庚寅\or 辛卯\or 壬辰\or 癸巳\or |
| 22 |
甲午\or 乙未\or 丙申\or 丁酉\or 戊戌\or 己亥\or 庚子\or |
| 23 |
辛丑\or 壬寅\or 癸卯\or 甲辰\or 乙巳\or 丙午\or 丁未\or |
| 24 |
戊申\or 己酉\or 庚戌\or 辛亥\or 壬子\or 癸丑\or 甲寅\or |
| 25 |
乙卯\or 丙辰\or 丁巳\or 戊午\or 己未\or 庚申\or 辛酉\or |
| 26 |
壬戌\or 癸亥\fi} |
| 27 |
|
| 28 |
\fi |
| 29 |
|
| 30 |
\ifcase\bbl@engine\or\or % xe |
| 31 |
|
| 32 |
\IfBabelIntercharT{linebreak.basic}{% |
| 33 |
\bbl@input@classes |
| 34 |
\bbl@carg\bbl@add{extras\CurrentOption}% |
| 35 |
{\babel@savevariable\XeTeXinterchartokenstate |
| 36 |
\XeTeXinterchartokenstate\@ne}% |
| 37 |
% |
| 38 |
\def\BabelCJKGlue{\hskip0pt plus 0.1em\relax}% |
| 39 |
\def\BabelCJKSpace{\hskip0.2em plus 0.2em minus 0.1em\relax}% |
| 40 |
% |
| 41 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 42 |
{default}{cjkideogram}% |
| 43 |
{\BabelCJKSpace}% |
| 44 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 45 |
{default}{cjkleftpunctuation}% |
| 46 |
{\BabelCJKSpace}% |
| 47 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 48 |
{default}{cjkrightpunctuation}% |
| 49 |
{\nobreak\BabelCJKSpace}% |
| 50 |
% |
| 51 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 52 |
{cjkideogram}{default}% |
| 53 |
{\BabelCJKSpace}% |
| 54 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 55 |
{cjkleftpunctuation}{default}% |
| 56 |
{\nobreak\BabelCJKSpace}% |
| 57 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 58 |
{cjkrightpunctuation}{default}% |
| 59 |
{\BabelCJKSpace}% |
| 60 |
% |
| 61 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 62 |
{cjkideogram}{cjkideogram}% |
| 63 |
{\BabelCJKGlue}% |
| 64 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 65 |
{cjkideogram}{cjkleftpunctuation}% |
| 66 |
{\BabelCJKGlue}% |
| 67 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 68 |
{cjkideogram}{cjkrightpunctuation}% |
| 69 |
{\nobreak\BabelCJKGlue}% |
| 70 |
% |
| 71 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 72 |
{cjkleftpunctuation}{cjkideogram}% |
| 73 |
{\nobreak\BabelCJKGlue}% |
| 74 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 75 |
{cjkleftpunctuation}{cjkleftpunctuation}% |
| 76 |
{\nobreak\BabelCJKGlue}% |
| 77 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 78 |
{cjkleftpunctuation}{cjkrightpunctuation}% |
| 79 |
{\BabelCJKGlue}% |
| 80 |
% |
| 81 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 82 |
{cjkrightpunctuation}{cjkideogram}% |
| 83 |
{\BabelCJKGlue}% |
| 84 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 85 |
{cjkrightpunctuation}{cjkleftpunctuation}% |
| 86 |
{\BabelCJKGlue}% |
| 87 |
\babelinterchar[label=linebreak.basic]{\CurrentOption}% |
| 88 |
{cjkrightpunctuation}{cjkrightpunctuation}% |
| 89 |
{\nobreak\BabelCJKGlue}% |
| 90 |
} |
| 91 |
|
| 92 |
\fi |
| 93 |
|
| 94 |
\endinput |