%
% luatexja-plain.sty
%

%! これは外から読まれない
%% Avoid multiple loading.
\csname luatexjaplainLoaded\endcsname
\edef\ltj@plain@AtEnd{%
\endlinechar=\the\endlinechar
\relax}
\endlinechar=-1 %
\def\luatexjaplainLoaded{\endinput}

\ifltj@in@latex                 %<*LaTeX>
  \NeedsTeXFormat{LaTeX2e}
  \ProvidesPackage{luatexja-plain}[2011/04/01 v0.1]
\fi                             %</LaTeX>

%%------------------

\endlinechar=13
%! この中に master の luatexja-plain.tex の内容を挿入する
%! ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
% LuaTeX-ja macros against plain TeX

\jfont\tenmin=psft:Ryumin-Light:jfm=ujis at 13.5\jQ
\jfont\sevenmin=psft:Ryumin-Light:jfm=ujis at 9.5\jQ
\jfont\fivemin=psft:Ryumin-Light:jfm=ujis at 7\jQ
\jfont\tengt=psft:GothicBBB-Medium:jfm=ujis at 13.5\jQ
\jfont\sevengt=psft:GothicBBB-Medium:jfm=ujis at 9.5\jQ
\jfont\fivegt=psft:GothicBBB-Medium:jfm=ujis at 7\jQ

\let\mc=\tenmin
\let\gt=\tengt
\mc
\ltjsetparameter{kanjiskip=0pt plus 0.4pt minus 0.4pt, 
  xkanjiskip=.25\zw plus 1pt minus 1pt,
  autospacing, autoxspacing, jacharrange={-1}, 
  yalbaselineshift=0pt, yjabaselineshift=0pt,
  jcharwidowpenalty=500, differentjfm=average
}

\ltj@tempcnta="0%"
\loop\ifnum\ltj@tempcnta<"100%"
  \ltjsetparameter{alxspmode={\ltj@tempcnta,0}}%
  \advance\ltj@tempcnta by1
\repeat

\ltj@tempcnta=`\0%"
\loop\ifnum\ltj@tempcnta<`\:%"
  \ltjsetparameter{alxspmode={\ltj@tempcnta,3}}%
  \advance\ltj@tempcnta by1
\repeat

\ltj@tempcnta=`\A%"
\loop\ifnum\ltj@tempcnta<`\[%"
  \ltjsetparameter{alxspmode={\ltj@tempcnta,3}}%
  \advance\ltj@tempcnta by1
\repeat

\ltj@tempcnta=`\a%"
\loop\ifnum\ltj@tempcnta<`\{%"
  \ltjsetparameter{alxspmode={\ltj@tempcnta,3}}%
  \advance\ltj@tempcnta by1
\repeat

\input luatexja-kinsoku.tex

\ltj@tempcnta="2000%"
\loop\ifnum\ltj@tempcnta<"2070%"
  \ltjsetparameter{kcatcode={\ltj@tempcnta,1}}%
  \advance\ltj@tempcnta by1
\repeat

\ltj@tempcnta="3000%"
\loop\ifnum\ltj@tempcnta<"3040%"
  \ltjsetparameter{kcatcode={\ltj@tempcnta,1}}%
  \advance\ltj@tempcnta by1
\repeat

\ltj@tempcnta="FF00%"
\loop\ifnum\ltj@tempcnta<"FFF0%"
  \ltjsetparameter{kcatcode={\ltj@tempcnta,1}}%
  \advance\ltj@tempcnta by1
\repeat
%\endinput
%! ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

%%------------------ all done
\ltj@plain@AtEnd
\endinput
%% EOF
