% \iffalse meta comment
%
% Copyright (c) ING 1999-2006
%
% \fi
%
% \iffalse
%<*!fdl>
%<*driver>
\ProvidesFile{japanese.drv}
%</driver>
%
%<*driver>
\documentclass{ltxdoc}
\setcounter{StandardModuleDepth}{1}
\CodelineNumbered
\MakeShortVerb{\|}
\OnlyDescription
\begin{document}
 \DocInput{japanese.dtx}
\end{document}
%</driver>
%</!fdl>
% \fi
%
% \parindent=1zw
% \def\babel{{\sffamily babel}$B%7%9%F%`(B}
% \title{Babel-Option {\sffamily japanese} \\ {\Large version 1.1}}
% \author{Copyright \copyright 1999, 2006 ING}
% \date{}
% \maketitle
% \baselineskip=15pt
% \def\abstractname{$B35(B $BMW(B}
% \begin{abstract}
% {\sffamily japanese}$B%Q%C%1!<%8$O(B\babel{}$B$NF|K\8l%*%W%7%g%s$rDj5A(B
% $B$7$?%^%/%m=8$G$9!#8=9T$N(B\babel{}$B$K$OF|K\8l%*%W%7%g%s$,Dj5A$5$l$F(B
% $B$$$J$$$N$G!$K\%Q%C%1!<%8$G$O(B |\usepackage{japanese}|$B$G(Bjapanese.ldt
% $B%U%!%$%k$rFI$_9~$s$G$$$^$9!#(B
% \end{abstract}
%
% \section*{japanese.ldf}
%
% japanese.ldf$B$O!$8+=P$78l$HF|IU$rF|K\8l$G=PNO$9$k$?$a$N%^%/%m$r(B
% $BDj5A$7$?%U%!%$%k!J(Blanguagedefinition file$B!K$G$9!#(B
%
% \DescribeMacro{\LdfInit}
% |\LdfInit|$B%^%/%m$O(Bjapanese.ldf$B$rFs=E$KFI$_9~$^$J$$$h$&$KKI;_$7$^$9!#(B
%    \begin{macrocode}
%<*ldf>
\LdfInit{japanese}\captionsjapanese
%    \end{macrocode}
% \DescribeMacro{\l@japanese}
% $B<!$K!$(B|\l@japanese|$B%3%^%s%I$,Dj5A$5$l$F$$$k$+H]$+$rH=CG$7$^$9!#(B
% $BDj5A$5$l$F$$$l$P!$(B\babel{}$B$OF|K\8lMQ$K;XDj$7$?%O%$%U%M!<%7%g%s%Q%?!<%s$r(B
% $BFI$_9~$_$^$9!#(B
% \DescribeMacro{\adddialect}
% $BDj5A$5$l$F$$$J$1$l$P(B |\adddialect|$B$G!$%G%U%)%k%H$N8@8lHV9f(B0$B$N!J(Blanguage.dat
% $B$G:G=i$K;XDj$7$?8@8l!$DL>o$O1Q8l!K%Q%?!<%s$rFI$_9~$_$^$9!#(B
%
% \babel{}$B$K$O(B |\addlanguage{|{\itshape language}|}|$B%^%/%m$,$"$j!$?7$7$$(B
% $B8@8l(B{\itshape language}$B$rDj5A$9$k$N$K;H$o$l$^$9!#$=$3$G!$$3$N%^%/%m$r(B
% $BDj5A$7$F$*$1$P!$F|K\8lMQ$K309q8l$N%O%$%U%M!<%7%g%s%Q%?!<%s$rFI$_9~$^(B
% $B$J$/$F$b!$8+=P$78l$HF|IU$r@Z$jBX$($F;H$&$3$H$,$G$-$^$9!#$7$+$7!$B>$N8@8l(B
% $B$H$N8_49@-!$$*$h$S<+F0%O%$%U%s5!G=$,F/$+$J$$$?$a!$(Boverfull$B$,B3=P$9$k$N$G!$(B
% $B2?$l$+$N8@8lMQ%O%$%U%M!<%7%g%s%Q%?!<%s$rFI$_9~$s$G$*$-$^$9!#(B
%
% {\sffamily japanese}$B%Q%C%1!<%8$G$O!$(Blanguage.dat$B$G1Q8lMQ%O%$%U%M!<%7%g%s(B
% $B%Q%?!<%s$rFI$_9~$`$3$H$G(B |\l@|{\itshape lang}$B%3%^%s%I!$$D$^(B
% $B$j(B |\l@japanese|$B$rDj5A$7$F$$$^$9!#(B
%    \begin{macrocode}
\ifx\l@japanese\@undefined
  \@nopatterns{Japanese}
  \adddialect\l@japanese0\fi
%    \end{macrocode}
% \DescribeMacro{\captionsjapanese}
% |\captionsjapanese|$B%^%/%m$O(B\LaTeX{}$B$NI8=`$N%/%i%9%U%!%$%k$G;H$o$l$k(B
% $B8+=P$78l$rF|K\8l$G=PNO$7$^$9!#(B
%    \begin{macrocode}
\addto\captionsjapanese{%
  \def\prefacename{$BA0(B $B=q(B $B$-(B}%
  \def\refname{$B;29MJ88%(B}%
  \def\abstractname{$B35(B $BMW(B}%
  \def\bibname{$B4XO"?^=q(B}%
  \def\chaptername{$BBh(B\protect\@Jchp $B>O(B}%
  \def\@Jchp{\thechapter\def\thechapter{}}%
  \def\appendixname{$BIU(B $BO?(B}%
  \def\contentsname{$BL\(B $B<!(B}%
  \def\listfigurename{$B?^(B $BL\(B $B<!(B}%
  \def\listtablename{$BI=(B $BL\(B $B<!(B}%
  \def\indexname{$B:w(B $B0z(B}%
  \def\figurename{$B?^(B}%
  \def\tablename{$BI=(B}%
  \def\partname{$BBh(B\protect\@Jpt $BIt(B}%
  \def\@Jpt{\thepart\def\thepart{}}}%
%    \end{macrocode}
% \DescribeMacro{\datejapanese}
% |\datejapanese|$B%^%/%m$OF|K\8l$GF|IU$r=PNO$9$k$h$&$K(B |\today|$B%3%^%s%I$r(B
% $B:FDj5A$7$^$9!#%G%U%)%k%H$N=PNO$O@>Nq!J!V(B1999$BG/(B1$B7n(B10$BF|!W$N7A<0!K$G$9!#(B
% $BG/7nF|$H?t;z$N4V$K$ODL>o$N%9%Z!<%9$,F~$j$^$9!#(B
%    \begin{macrocode}
\def\datejapanese{%
  \newif\if$B@>Nq(B \$B@>Nq(Btrue%
  \def\$B@>Nq(B{\$B@>Nq(Btrue}%
  \def\$BOBNr(B{\$B@>Nq(Bfalse}%
  \def\today{%
    \if$B@>Nq(B%
      \number\year $BG/(B\nobreak \number\month $B7n(B\nobreak \number\day $BF|(B%
    \else \@tempcnta\year%
      \advance\@tempcnta-1988 $BJ?@.(B%
      \ifnum \@tempcnta =1 $B85(B\else\number\@tempcnta\fi%
        $BG/(B\nobreak \number\month $B7n(B\nobreak\number\day $BF|(B\fi}}
%    \end{macrocode}
% \DescribeMacro{\extrasjapanese}
% |\extrasjapanese|$B%^%/%m$N0z?t$K$O!$F|K\8l$K$h$kAHHG>e$N5,B'$K!$FCJL$J(B
% $BDj5A$rDI2C$9$k$3$H$,$G$-$^$9!#(B|\nonextrasjapanese|$B%^%/%m$ODI2C$7$?Dj5A$r(B
% \DescribeMacro{\nonextrasjapanese}
% $B%-%c%s%;%k$7$^$9!#8=:_$OI,MW$,$J$$$N$G0z?t$O6u$G$9!#(B
%    \begin{macrocode}
\addto\extrasjapanese{}
\addto\noextrasjapanese{}
\ldf@finish{japanese}
%</ldf>
%    \end{macrocode}
%
% \section*{japanese.sty}
%
% japanese.sty$B$O(Bjapanese.ldf$B$rFI$_9~$`$?$a$N%Q%C%1!<%8%U%!%$%k$G$9!#(B
%    \begin{macrocode}
%<+package>\ifx\Ldfinit\@undefined
%<+package>\def\Ldfinit{%
%<+package>  \chardef\atcatcode=\catcode`\@
%<+package>  \catcode`\@=11\relax
%<+package>  \input babel.def\relax
%<+package>  \catcode`\@=\atcatcode \let\atcatcode\relax
%<+package>  \Ldfinit}\fi
%<+package>\input japanese.ldf\relax
%    \end{macrocode}
%
% \section*{langxmpl.dat}
%
% langxmpl.dat$B$O(BINI\TeX{}$B$G3F8@8lMQ%O%$%U%M!<%7%g%s%Q%?!<%s$N(B
% $BFI$_9~$_$r@)8f$9$k(Blanguage.dat$B$N%5%s%W%k$G$9!#(B
%
%    \begin{macrocode}
%<+dat>%% langxmpl.dat$B$r(Blanguage.dat$B$H%j%M!<%`$7$F$*;H$$$/$@$5$$!#(B
%<+dat>%% \endinput$B$N9T$O:o=|$7$F$/$@$5$$!#(B
%<+dat>%%
%<+dat>=USenglish
%<+dat>%%american ushyphen.tex
%<+dat>%%ukhyphen.tex$B$O(Bhyphen.tex$B$r%j%M!<%`$7$?$b$N$G$9!#(B
%<+dat>english  ukhyphen.tex
%<+dat>=UKenglish
%<+dat>=british
%<+dat>%%french  fhyph.tex
%<+dat>%%pTeX 2.1.5$B$G$O(BCTAN:/digests/tugboat/germanhy.tex$B$r;H$$$^$9!#(B
%<+dat>%%german  germanhy.tex
%<+dat>japanese  ukhyphen.tex
%<+dat>%%$B<!$N#19T$O!cI,$:!d:o=|$7$F$/$@$5$$!#(B
%    \end{macrocode}
% \rightline{1999$BG/(B1$B7n(B}
% \rightline{ING $<$t-ing@tbh.t-com.ne.jp$>$}
%
% \StopEventually{}
%
%    \begin{macrocode}
%<*readme>
\documentclass{jarticle}
\def\babel{\textsf{babel}$B%7%9%F%`(B}
\def\japanese{\textsf{japanese}$B%Q%C%1!<%8(B}
\begin{document}
\title{Babel-Option {\sffamily japanese} \\ {\Large version 1.0}}
\author{Copyright \copyright 1999 ING}
\date{}
\maketitle

\section*{$B35MW(B}

japanese$B%Q%C%1!<%8$O(B \babel{}$B$NF|K\8l%*%W%7%g%s$rDj5A$7$?%^%/%m=8$G$9!#(B
$B0J2<$N%U%!%$$r4^$s$G$$$^$9!#(B
\begin{quote}
\begin{tabular}{l@{$B!'(B }l}
japanese.ldf & $BF|K\8lDj5A%U%!%$%k(B \\
japanese.sty & japanese.ldf$B$rFI$_9~$`%9%?%$%k%U%!%$%k(B \\
japanese.drv & japanese.dtx$B$rJ8=q2=$9$k$?$a$N%I%i%$%P%U%!%$%k(B \\
langxmpl.dat & language.dat$B$N%5%s%W%k(B \\
readme.tex   & $B$3$N%U%!%$%k(B \\
sample.tex   & \verb+\iflanguage+$B$H(B \verb+\selectlanguage+$B$N;HMQNc(B
\end{tabular}
\end{quote}

\babel{}$B$K$O(B japanese$B%*%W%7%g%s$,Dj5A$5$l$F$$$^$;$s!#$=$3$G!$(Bjapanese.sty$B$H(B
$B%O%$%U%M!<%7%g%s%Q%?!<%s$rFI$_9~$s$G!V8@8l(Bjapanese$B!W$r(B \babel{}$B$KDI2C$7$^$9!#(B

\section*{$B%$%s%9%H!<%k(B}

$B%$%s%9%H!<%k$O<!$N(B2$BCJ3,$G$9!#(B
\begin{enumerate}
\item $B%O%$%U%M!<%7%g%s%Q%?!<%s$r%U%)!<%^%C%H%U%!%$%k$KFI$_9~$`!#(B
\item japanese.sty$B$rFI$_9~$`!#(B
\end{enumerate}

$BF|K\8l$K$O%O%$%U%M!<%7%g%s=hM}$,$"$j$^$;$s!#$7$+$7!$2?$i$+$N(B
$B%O%$%U%M!<%7%g%s%Q%?!<%s$r%U%)!<%^%C%H%U%!%$%k$KFI$_9~$s$G$*$+$J$1$l$P!$(B
$B2$J8C18l$N<+F0%O%$%U%s=hM}$O9T$o$l$:(BOverfull$B$K$J$j$^$9!#(B
$B$^$?!$(B\verb+\iflanguage+$B%3%^%s%I$G!$8=:_$I$N8@8l$,%"%/%F%#%V$J$N$+$r(B
$BD4$Y$k$3$H$,$G$-$^$;$s!#(B

$B$3$3$G$OL5Fq$K!$1Q8l$N%O%$%U%M!<%7%g%s%Q%?!<%s$r%U%)!<%^%C%H%U%!%$%k$K(B
$BFI$_9~$s$G$*$/$3$H$r$*4+$a$7$^$9!#$J$*!$1Q8l$N%O%$%U%M!<%7%g%s%Q%?!<%s$O!$(B
\LaTeX{}$B$NG[I[%Q%C%1!<%8$K4^$^$l$F$$$k(Bhyphen.tex$B$r%j%M!<%`(B\footnote{%
$B87L)$K8@$($P!$JF8l$H1Q8l$N%O%$%U%M!<%7%g%s$O0[$J$j$^$9!#$3$3$G$OJX59E*$K(B
$BN><T$rF10l$N$b$N$H$7$F07$C$F$$$^$9!#(B}$B$7$FFI$_9~$_$^$9!#(B
langxmpl.dat$B$r;2>H$7$F$/$@$5$$!#!JCm0U!'(B\LaTeX{}$B$NG[I[%Q%C%1!<%8$K4^$^$l(B
$B$F$$$k(Bhyphen.cfg$B$r(Bphyphen.cfg$B$J$I$N$h$&$K%j%M!<%`$7$F$*$$$F$/$@$5$$!#!K(B

\japanese{}$B$G$O(Bbabel$B$N%*%W%7%g%s$G(B \verb+japanese+$B$r;XDj$9$k$N$G$O$J$/!$(B
japanese.sty$B$rC1FH$GFI$_9~$_$^$9!#(B
$B$3$N>l9g%G%U%)%k%H$N8@8l$OF|K\8l$G$9!#(B
\begin{quote}\small\begin{verbatim}
\documentclass{jreport}
\usepackage[...,english,...]{babel}
\usepackage{japanese}
\begin{document}
$BK\J8(B
\end{document}
\end{verbatim}\end{quote}

\section*{$BHw9M(B}

\babel{}$B$,%5%]!<%H$9$kB>$N8@8l$HF1$8;H$$J}$r$9$k$H$-$O!$(Bbabel.sty$B$r(B
$B=$@5$7$^$9!#(Bbabel.sty$B$r(Bmybabel.sty$B$J$I$K%3%T!<$7$F!$$=$l$K<!$N#19T$r(B
$BDI2C$7$^$9!#(B
\begin{quote}
\verb+\DeclareOption{japanese}{\input{japanese.ldf}}+
\end{quote}
$B;H$$J}$NNc$r<($7$^$9!#%G%U%)%k%H$N8@8l$O!$%*%W%7%g%s$G:G8e$K;XDj$7$?(B
$B8@8l$K$J$j$^$9!#(B
\begin{quote}\small\begin{verbatim}
\documentclass{jreport}
\usepackage[english,japanese,...]{mybabel}
\begin{document}
$BK\J8(B
\end{document}
\end{verbatim}\end{quote}
$B$3$3$G2~JQ$7$?(Bmybabel.sty$B$O8D?ME*$J;HMQ$K;_$a$F$/$@$5$$!#(B

\section*{$B<U<-(B}

Babel-Option {\sffamily japanese}$B$N:n@.$KEv$C$F!$%P%0%U%#%C%/%9$d2~NI0F$r(B
$B$4Ds0F$$$?$@$$$?J}$K46<U$7$^$9!#(B

bookworm $<$BYV01204$>$$B$5$s$+$i!$?7$7$$8@8l$rDj5A$7!$$=$l$K8GM-$N(B
$B8@8lHV9f$rIU$1$k%^%/%m(B \verb+\addlanguage+$B$N5!G=$K$D$$$F!$>\$7$$(B
$B2r@b$r$$$?$@$-$^$7$?!#K\%Q%C%1!<%8$G$O:NMQ$7$F$$$^$;$s$,!$(B\babel{}
$B$N8@8l@Z$jBX$(5!G=$rM}2r$9$k>e$G$?$$$X$s;29M$K$J$j$^$7$?!#(B

Tony $<$PAG01322$>$$B$5$s$+$i!$%-%c%W%7%g%s$HF|IU$NDj5A$K$D$$$F(B
$B$4Ds0F$r$$$?$@$-$^$7$?!#(B

$BBg@P>!(B $<$DZH00446$>$$B$5$s$+$i!$=iHG$K4^$^$l$F$$$?(B \verb+\ifx\undefined+
$B$N%P%0$r$4;XE&$$$?$@$-$^$7$?!#(B

\section*{COPYRIGHT NOTICE}

This package is free software that can be redistributed and/or modified
under the terms of the \LaTeX{} Project Public License as specified in
the file \texttt{macros/latex/base/lppl.txt} on any CTAN archive server,
such as \texttt{http:/ring.wakwak.com/pub/text/CTAN/}.

\section*{$BJQ99MzNr(B}

$BF|IU$NDj5A$K=iJbE*$J%_%9$,$"$C$?$N$r=$@5$7$^$7$?!#!J(B2005$BG/(B2$B7n!K(B
\bigskip

\rightline{2005$BG/(B2$B7n(B}
\rightline{ING $<$t-ing@tbh.t-com.ne.jp$>$}
\end{document}
%</readme>
%    \end{macrocode}
%
%    \begin{macrocode}
%<*sample>
\documentclass{report}
\usepackage[german,english]{babel}
\usepackage{japanese}
\makeatletter
\def\tbcaption{\def\@captype{table}\caption}
\makeatother
\def\yes{--- $B$O$$!#:#F|$O(B\today $B$G$9!#(B \tbcaption{$B%-%c%W%7%g%s$NNc(B}}
\def\no{--- $B$$$$$((B}
\def\TEXT{Textverarbeitung mit einem Rechner kann in vielf\"altiger Weise
erfolgen. Eigenschaften und Leistungsf\"ahigkeit sind hierbei weniger
vom jeweiligen Rechnertype, sondern vielmehr vom verwendeten
\textit{Textverarbeitungsprogramm} bestimmt.}
\def\se{\selectlanguage{english}}
\def\sj{\selectlanguage{japanese}}
\def\sg{\selectlanguage{german}}
\setlength{\textheight}{23cm}
\begin{document}
\se
\chapter{babel}
$B:G=i$O1Q8l$@$C$?$O$:$@$,(B.... $B!J(Blanguage$B$NCM$O(B\the\language$B!K(B

\bigskip
\TEXT

$B$3$3$O1Q8l!)(B \iflanguage{english}{\yes}{\no}\par
-- --$B%I%$%D8l!)(B \iflanguage{german}{\yes}{\no}\par
-- --$BF|K\8l!)(B \iflanguage{japanese}{\yes}{\no}

\sj
\begin{flushright}
$B!J$3$3$GF|K\8l$KJQ99$9$k!#(Blanguage$B$NCM$O(B\the\language$B!K(B
\end{flushright}

\TEXT

$BJQ$@$J!$$3$3$O1Q8l!)(B \iflanguage{english}{\yes}{\no}\par
-- --$B%I%$%D8l!)(B \iflanguage{german}{\yes}{\no}\par
-- --$BF|K\8l!)(B \iflanguage{japanese}{\yes}{\no}

\sg
\begin{flushright}
$B!J$3$3$G%I%$%D8l$KJQ99$9$k!#(Blanguage$B$NCM$O(B\the\language$B!K(B
\end{flushright}

\TEXT

$B$o$+$i$J$/$J$C$?!$$3$3$O1Q8l!)(B \iflanguage{english}{\yes}{\no}\par
-- --$B%I%$%D8l!)(B \iflanguage{german}{\yes}{\no}\par
-- --$BF|K\8l!)(B \iflanguage{japanese}{\yes}%
{\no \sj}

$B$=$l$J$iF|K\8l$K$7$h$&!#(Blanguage$B$NCM$O(B\the\language\tbcaption{\today}
\end{document}
%</sample>
%    \end{macrocode>
%
% \Finale
