ó V!ś\c@sjdZddlZddlZdejjfd„ƒYZdefd„ƒYZdefd„ƒYZdS( s. Additional support for Pygments formatter. i˙˙˙˙NtOdtPygmentsFormattercBseZd„Zdd„ZRS(cCs)tjjj|ƒ||_||_dS(N(tpygmentst formattert Formattert__init__trststyle_functiontescape_function(tselfRR((sN/tmp/pip-install-usGedi/docutils/docutils/writers/odf_odt/pygmentsformatter.pyRs cCs|j||ƒS(N(R(Rtnamet parameters((sN/tmp/pip-install-usGedi/docutils/docutils/writers/odf_odt/pygmentsformatter.pytrststyles((t__name__t __module__RR (((sN/tmp/pip-install-usGedi/docutils/docutils/writers/odf_odt/pygmentsformatter.pyRs tOdtPygmentsProgFormattercBseZd„ZRS(cCstjj}x |D]\}}|j|ƒ}||jkr_|jdƒ}d||f}nŤ||jjkr“|jdƒ}d||f}nw||jjj |jjj j |jjj |jjj |jjj |jjfkr |jdƒ}d||f}n||jkr:|jdƒ}d||f}nĐ||jkrk|jdƒ}d||f}nŸ||jjkrŸ|jdƒ}d||f}nk||jjkrÓ|jdƒ}d||f}n7||jkr|jd ƒ}d||f}n|}|j|ƒqWdS( Nscodeblock-keywords.%sscodeblock-stringscodeblock-numberscodeblock-operatorscodeblock-commentscodeblock-classnamescodeblock-functionnamescodeblock-name(RttokentTokenRtKeywordR tLiteraltStringtNumbertIntegertLongtFloattHextOcttOperatortCommenttNametClasstFunctiontwrite(Rt tokensourcetoutfilet tokenclasstttypetvaluets2ts1((sN/tmp/pip-install-usGedi/docutils/docutils/writers/odf_odt/pygmentsformatter.pytformatsV     (R R R&(((sN/tmp/pip-install-usGedi/docutils/docutils/writers/odf_odt/pygmentsformatter.pyR stOdtPygmentsLaTeXFormattercBseZd„ZRS(cCsŒtjj}xy|D]q\}}|j|ƒ}||jkr_|jdƒ}d||f}n||jj|jjjfkr˘|jdƒ}d||f}nŐ||j j krÖ|jdƒ}d||f}nĄ||j kr=|ddkr|jdƒ}d||d f}qw|jdƒ}d||f}n:||j j krq|jd ƒ}d||f}n|}|j |ƒqWdS( Nscodeblock-keywords.%sscodeblock-stringscodeblock-operatori˙˙˙˙s scodeblock-comments/%s scodeblock-name(RRRRRR RRtBacktickRt AttributeRtBuiltinR(RRR R!R"R#R$R%((sN/tmp/pip-install-usGedi/docutils/docutils/writers/odf_odt/pygmentsformatter.pyR&Ls<  (R R R&(((sN/tmp/pip-install-usGedi/docutils/docutils/writers/odf_odt/pygmentsformatter.pyR'Ks(t__doc__Rtpygments.formatterRRRR R'(((sN/tmp/pip-install-usGedi/docutils/docutils/writers/odf_odt/pygmentsformatter.pyt s    1