%
% bxbase.sty
%

%%%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxbase}[2010/06/15 v0.5 BX base library]

%%%% include 'bxbase.def'
\input{bxbase.def}
\bxBDHookBabel
\bxBDHookUnicode
\bxBDHookSafeCaret

%%%% error messages
\def\bx@pkgname{bxbase}
\def\bx@error{\PackageError\bx@pkgname}
\def\bx@alert{\PackageWarningNoLine\bx@pkgname}
\def\bx@warn{\PackageInfo\bx@pkgname}
\def\bx@warn@aecs#1{\px@warn{Command \string#1 already exists}}

%%------

%%<*> \Ux, \UI, \AJ
\ifx\Ux\@undefined \def\Ux{\bxUx}%
\else \px@warn@aecs\Ux \fi
\ifx\UI\@undefined \def\UI{\bxUI}%
\else \px@warn@aecs\UI \fi
\ifx\AJ\@undefined \def\AJ{\bxAJ}%
\else \px@warn@aecs\AJ \fi

%%<*> \JI, \KI
\ifx\JI\@undefined \def\JI{\bxJI}%
\else \px@warn@aecs\JI \fi
\ifx\KI\@undefined \def\KI{\bxKI}%
\else \px@warn@aecs\KI \fi

%%%% withnohyph environment
\expandafter\ifx\csname l@nohyphenation\endcsname\relax
  \newlanguage\l@nohyphenation \fi
\def\withnohyph{\language\l@nohyphenation}
\let\endwithnohyph\relax

%%------ all done
\endinput
%% EOF
%
% * bxbase provides:
%   - bx@Uxh@fb      (terminal)
%   - bxUx           (passed to bx@Ux)
%   - bxUI           (passed to bx@UI)
%   - bxUHex         (passed to bx@Uxh)
% * bxutf8 provides:
%   - conversion from UTF8 string to bxUHex
% * bxucs provides:
%   - bx@Ux@ucs      (fallback to bx@UI)
%   - bx@Uxh@ucs     (fallback to bx@UIh)
% * utf/otf provides:
%   - bx@UIh@p       (terminal)
%
% [default]
%   bx@Ux       bx@Uxh  
%     v           v     
%   bx@UI   >   bx@UIh  =  bx@UIh@fb or bx@UIh@p
%
% [with bxucs]
%   bx@Ux = bx@Ux@ucs   bx@Uxh = bx@Uxh@ucs
%             v                    v       
%           bx@UI     >          bx@UIh  =  bx@Uxh@fb or bx@UIh@p
%
