/usr/lib/python2.6/site-packages/pygments/formatters
NameSizeModeActions
bbcode.py33140644editdlrm
bbcode.pyc35800644editdlrm
bbcode.pyo35800644editdlrm
html.py260940644editdlrm
html.pyc245830644editdlrm
html.pyo245830644editdlrm
img.py167640644editdlrm
img.pyc174030644editdlrm
img.pyo174030644editdlrm
latex.py106430644editdlrm
latex.pyc88350644editdlrm
latex.pyo88350644editdlrm
other.py38570644editdlrm
other.pyc47860644editdlrm
other.pyo47860644editdlrm
rtf.py45360644editdlrm
rtf.pyc44250644editdlrm
rtf.pyo44250644editdlrm
svg.py58670644editdlrm
svg.pyc60840644editdlrm
svg.pyo60840644editdlrm
terminal.py40120644editdlrm
terminal.pyc42640644editdlrm
terminal.pyo42640644editdlrm
terminal256.py76040644editdlrm
terminal256.pyc72890644editdlrm
terminal256.pyo72890644editdlrm
_mapping.py55030644editdlrm
_mapping.pyc58800644editdlrm
_mapping.pyo58800644editdlrm
__init__.py18470644editdlrm
__init__.pyc25790644editdlrm
__init__.pyo25790644editdlrm
Edit: /usr/lib/python2.6/site-packages/pygments/formatters/rtf.pyo (4425B)
Ñò Žf¯Jc@s9dZddklZdgZdefd„ƒYZdS(sØ pygments.formatters.rtf ~~~~~~~~~~~~~~~~~~~~~~~ A formatter that generates RTF files. :copyright: Copyright 2006-2009 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;/usr/lib/python2.6/site-packages/pygments/formatters/rtf.pyR*s cCs(|iddƒiddƒiddƒS(Ns\s\\t{s\{t}s\}(treplace(Rttext((s;/usr/lib/python2.6/site-packages/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;/usr/lib/python2.6/site-packages/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;/usr/lib/python2.6/site-packages/pygments/formatters/rtf.pytformat_unencodedWsZ              ( t__name__t __module__t__doc__tnametaliasest filenamestFalset unicodeoutputRRRR0(((s;/usr/lib/python2.6/site-packages/pygments/formatters/rtf.pyRs     N(R3tpygments.formatterRt__all__R(((s;/usr/lib/python2.6/site-packages/pygments/formatters/rtf.pyt s