Ñò >íLc@s9dZddklZdgZdefd„ƒYZdS(sØ pygments.formatters.rtf ~~~~~~~~~~~~~~~~~~~~~~~ A formatter that generates RTF files. :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. iÿÿÿÿ(t Formattert RtfFormattercBsPeZdZdZdgZdgZeZd„Zd„Z d„Z d„Z RS(s Format tokens as RTF markup. This formatter automatically outputs full RTF documents with color information and other useful stuff. Perfect for Copy and Paste into Microsoft® Word® documents. *New in Pygments 0.6.* Additional options accepted: `style` The style to use, can be a string or a Style subclass (default: ``'default'``). `fontface` The used font famliy, for example ``Bitstream Vera Sans``. Defaults to some generic font which is supposed to have fixed width. tRTFtrtfs*.rtfcKs-ti|||idƒpd|_dS(s Additional options accepted: ``fontface`` Name of the font used. Could for example be ``'Courier New'`` to further specify the default which is ``' modern'``. The RTF specification claims that `` modern`` are "Fixed-pitch serif and sans serif fonts". Hope every RTF implementation thinks the same about modern... tfontfacetN(Rt__init__tgetR(tselftoptions((s>/Users/jano/code/pygments-rb/vendor/pygments/formatters/rtf.pyR*s cCs(|iddƒiddƒiddƒS(Ns\s\\t{s\{t}s\}(treplace(Rttext((s>/Users/jano/code/pygments-rb/vendor/pygments/formatters/rtf.pyt_escape8s cCs|pdS|i|ƒ}|id jo d}n|ipd}g}x›|D]“}t|ƒdjog|i|dƒpd}t|ƒdjod t|ƒ}n|}|id t|ƒ|fƒqR|it|ƒƒqRWdi|ƒid d ƒS(NRsutf-8sutf-16sutf-32s iso-8859-15i€tignoret?s\'%xs \ud{\u%d%s}s s\par (sutf-8sutf-16sutf-32(RtencodingtordtencodetappendtstrtjoinR (RR Rtbuftctansic((s>/Users/jano/code/pygments-rb/vendor/pygments/formatters/rtf.pyt _escape_text=s" !c Cs•|id|iod|i|iƒpdƒh}d}x³|iD]¨\}}x™|d|d|dfD]|}|oo||job|||<|idt|d d !d ƒt|d d !d ƒt|d d !d ƒfƒ|d7}qpqpWqHW|idƒx€|D]x\}} x,|ii|ƒ o|io |i}qW|ii|ƒ}g} |do| id||dƒn|do| id||dƒn|do| idƒn|do| idƒn|do| idƒn|do| id||dƒndi | ƒ} | o|id| ƒn|i|i | ƒƒ| o|idƒqqW|idƒdS(NsF{\rtf1\ansi\deff0{\fonttbl{\f0\fmodern\fprq1\fcharset0%s;}}{\colortbl;t Ritcolortbgcolortborders\red%d\green%d\blue%d;iiiiis}\f0s\cb%ds\cf%dtbolds\btitalics\it underlines\uls\chbrdr\chcfpat%ds{%s R ( twriteRRtstyletintt styles_tokentparenttstyle_for_tokenRRR( Rt tokensourcetoutfilet color_mappingtoffsett_R#RtttypetvalueRtstart((s>/Users/jano/code/pygments-rb/vendor/pygments/formatters/rtf.pytformat_unencodedWsZ              ( t__name__t __module__t__doc__tnametaliasest filenamestFalset unicodeoutputRRRR0(((s>/Users/jano/code/pygments-rb/vendor/pygments/formatters/rtf.pyRs     N(R3tpygments.formatterRt__all__R(((s>/Users/jano/code/pygments-rb/vendor/pygments/formatters/rtf.pyt s