% This is the file pinyin.ldf of the CJK package
%   for hyphenating Chinese pinyin syllables.
%
% We use the latin-1 character code for `umlaut u' (0xfc).  Additionally,
% the quote character "'" is used in its standard sense (resolving syllabic
% ambiguities).
%
% created by Werner Lemberg <wl@gnu.org>
%
% Version 4.5.2 (28-Mar-2003)

\ProvidesLanguage{pinyin}
        [CJK 4.5.2 pinyin support for the babel system]

\LdfInit{pinyin}{captionspinyin}

\ifx\l@pinyin\@undefined
  \@nopatterns{pinyin}
  \adddialect\l@pinyin0
\fi

\def\pinyinhyphenmins{11}
\def\captionspinyin{}
\def\datepinyin{}

\initiate@active@char{"}

\addto\extraspinyin{\languageshorthands{pinyin}}
\addto\extraspinyin{\bbl@activate{"}}
\addto\extraspinyin{\babel@save\"\umlautlow}
\addto\extraspinyin{%
  \babel@savevariable{\lccode"27}%
  \lccode"27 "27}

\addto\noextraspinyin{\umlauthigh}

\declare@shorthand{pinyin}{"u}{\textormath{\"{u}}{\ddot u}}
\declare@shorthand{pinyin}{"U}{\textormath{\"{U}}{\ddot U}}

\def\mdqon{\shorthandon{"}}
\def\mdqoff{\shorthandoff{"}}

\ldf@finish{pinyin}

\endinput
