%%
%% This is file `ginpenc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ginpenc.dtx  (with options: `package')
%% 
%%   ginpenc package
%% 
%%   Copyright  2003, 2011 Harald Harders
%% 
%%   This program can be redistributed and/or modified under the terms
%%   of the LaTeX Project Public License Distributed from CTAN
%%   archives in directory macros/latex/base/lppl.txt; either
%%   version 1 of the License, or any later version.
%% 
%%   harald.harders@gmx.de
%% 
\ProvidesPackage{ginpenc}
  [2011/12/29  v1.01  Replace \string\"a by "a with babel for German texts]
\newif\ifginpenc@babel
\AtBeginDocument{%
  \let\inputenc\empty
  \newcommand*\gie@inputencoding{}%
  \let\gie@inputencoding\inputencoding
  \def\inputencoding#1{%
    \def\inputenc{#1}%
    \gie@inputencoding{#1}%
    \ifginpenc@babel
      \IfFileExists{\inputenc.gie}{%
        \input{\inputenc.gie}%
        }{%
        \PackageWarning{ginpenc}{Encoding file \inputenc.gie not
          found}%
        }%
    \fi
    }%
  \begingroup
  \expandafter\ifx\csname @inpenc@undefined\endcsname\relax
    \edef\x{\endgroup}%
  \else
    \def\@inpenc@undefined@#1{\def\noexpand\inputenc{#1}}%
    \edef\x{\endgroup
      \@inpenc@undefined
    }%
  \fi
  \x
  \@ifpackageloaded{babel}{%
    \ginpenc@babeltrue
    \ifx\inputenc\empty
    \else
      \IfFileExists{\inputenc.gie}{%
        \input{\inputenc.gie}%
        \addto\extrasgerman{\umlautgerman}%
        \addto\extrasngerman{\umlautgerman}%
        \addto\extrasaustrian{\umlautgerman}%
        \addto\extrasnaustrian{\umlautgerman}%
        \addto\noextrasgerman{\umlautnotgerman}%
        \addto\noextrasngerman{\umlautnotgerman}%
        \addto\noextrasaustrian{\umlautnotgerman}%
        \addto\noextrasnaustrian{\umlautnotgerman}%
        \expandafter\selectlanguage\expandafter{\languagename}%
        }{%
        \PackageWarning{ginpenc}{Encoding file \inputenc.gie not
          found}%
        }%
    \fi
    }{}%
  }
\endinput
%%
%% End of file `ginpenc.sty'.
