%%
%% This is file `hebpatch.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hebpatch.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2012 by Zvi Gilboa zgilboa@virginia.edu
%% --------------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
%% 
%% This work consists of the files hebpatch.dtx and hebpatch.ins
%% and the derived filebase hebpatch.sty.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\def\PackageName{hebpatch}
\def\fileversion{v0.1}
\def\filedate{2012/06/01}
\def\fileinfo{A Compatibility Patch for \babel's Original Implementation of Hebrew Language Support}
\ProvidesPackage{hebpatch}[2012/06/01]
\edef\selectlanguage{%
  \noexpand\protect
  \expandafter\noexpand\csname selectlanguage \endcsname
  }
\expandafter\def\csname selectlanguage \endcsname#1{%
  \bbl@push@language
  \aftergroup\bbl@pop@language
  \bbl@set@language{#1}}
\def\bbl@set@language#1{%
  \edef\languagename{%
    \ifnum\escapechar=\expandafter`\string#1\@empty
    \else \string#1\@empty\fi}%
  \select@language{\languagename}%
  \if@filesw
    \protected@write\@auxout{}{\string\select@language{\languagename}}%
     \if@rl%
       \addtocontents{cot}{\xstring\select@language{\languagename}}%
       \addtocontents{fol}{\xstring\select@language{\languagename}}%
       \addtocontents{tol}{\xstring\select@language{\languagename}}%
     \else%
       \addtocontents{toc}{\xstring\select@language{\languagename}}%
       \addtocontents{lof}{\xstring\select@language{\languagename}}%
       \addtocontents{lot}{\xstring\select@language{\languagename}}%
     \fi%
  \fi}
\endinput
%%
%% End of file `hebpatch.sty'.
