% $Id: american.lbx,v 0.8e 2009/07/04 15:02:31 lehman beta $

\ProvidesFile{american.lbx}
[\abx@lbxid $Id: american.lbx,v 0.8e 2009/07/04 15:02:31 lehman beta $]

% STATUS OF THIS FILE
% * complete
% * peer review pending
% * the translations should be ok, but all abbreviations in english.lbx
%   need to be double-checked by a native speaker

\DeclareBibliographyExtras{%
  \uspunctuation
  \let\bibrangedash=\textendash
  \def\finalandcomma{\addcomma}%
  \def\mkbibordinal#1{%
    \begingroup
    \@tempcnta0#1\relax\number\@tempcnta
    \@whilenum\@tempcnta>100\do{\advance\@tempcnta-100\relax}%
    \ifnum\@tempcnta>20
      \@whilenum\@tempcnta>9\do{\advance\@tempcnta-10\relax}%
    \fi
    \ifcase\@tempcnta th\or st\or nd\or rd\else th\fi
    \endgroup}%
  \def\bibdatelong{%
    \mkbibmonth{\thefield{month}}\nobreakspace
    \number\numexpr0\thefield{day}\relax,\space
    \thefield{year}}%
  \def\bibdateshort{%
    \thefield{month}/\thefield{day}/\thefield{year}}%
  \def\biburldatelong{%
    \mkbibmonth{\thefield{urlmonth}}\nobreakspace
    \number\numexpr0\thefield{urlday}\relax,\space
    \thefield{urlyear}}%
  \def\biburldateshort{%
    \thefield{urlmonth}/\thefield{urlday}/\thefield{urlyear}}%
}

\InheritBibliographyStrings{english}

\endinput
