%%
%% This is file `dirtytalk.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% dirtytalk.dtx  (with options: `package')
%% 
%% M. Klammler, 2010
%% 
%% I, the copyright holder of this work, release the source code of the dirtytalk
%% package as well as the accompaining documentation into the public domain. This
%% applies worldwide.
%% 
%% In some countries this may not be legally possible; if so: I grant anyone the
%% right to use this work for any purpose, without any conditions, unless such
%% conditions are required by law.
%% 

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{dirtytalk}[2010/11/21 A package making "quoting" easier]
\RequirePackage{kvoptions}
\newcommand{\dirtytalk@lqq}{``}
\newcommand{\dirtytalk@rqq}{''}
\newcommand{\dirtytalk@lq}{`}
\newcommand{\dirtytalk@rq}{'}
\DeclareStringOption{left}
\DeclareStringOption{right}
\DeclareStringOption{leftsub}
\DeclareStringOption{rightsub}
\ProcessKeyvalOptions*
\RequirePackage{ifthen}
\ifthenelse%
  {\equal{\dirtytalk@left}{}}%
  {}%
  {\renewcommand{\dirtytalk@lqq}{\dirtytalk@left}}
\ifthenelse%
  {\equal{\dirtytalk@right}{}}%
  {}%
  {\renewcommand{\dirtytalk@rqq}{\dirtytalk@right}}
\ifthenelse%
  {\equal{\dirtytalk@leftsub}{}}%
  {}%
  {\renewcommand{\dirtytalk@lq}{\dirtytalk@leftsub}}
\ifthenelse%
  {\equal{\dirtytalk@rightsub}{}}%
  {}%
  {\renewcommand{\dirtytalk@rq}{\dirtytalk@rightsub}}
\newcounter{dirtytalk@qdepth}
\newcommand%
  {\dirtytalk@lsymb}%
  {\ifthenelse%
    {\value{dirtytalk@qdepth}>1}%
    {\dirtytalk@lq}%
    {\dirtytalk@lqq}%
  }%
\newcommand{\dirtytalk@rsymb}%
  {\ifthenelse%
    {\value{dirtytalk@qdepth}>1}%
    {\dirtytalk@rq}%
    {\dirtytalk@rqq}%
  }
\providecommand{\say}[1]%
  {%
    \addtocounter{dirtytalk@qdepth}{1}%
    \dirtytalk@lsymb%
    #1%
    \dirtytalk@rsymb%
    \addtocounter{dirtytalk@qdepth}{-1}%
  }
\endinput
%%
%% End of file `dirtytalk.sty'.
