Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
pygments
/
formatters
/
File Content:
rtf.pyo
� _aTc @ sO d Z d d l m Z d d l m Z m Z d g Z d e f d � � YZ d S( s� pygments.formatters.rtf ~~~~~~~~~~~~~~~~~~~~~~~ A formatter that generates RTF files. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. i����( t Formatter( t get_int_optt _surrogatepairt RtfFormatterc B sJ e Z d Z d Z d g Z d g Z d � Z d � 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(R) Word(R) documents. Please note that ``encoding`` and ``outencoding`` options are ignored. The RTF format is ASCII natively, but handles unicode characters correctly thanks to escape sequences. .. versionadded:: 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. `fontsize` Size of the font used. Size is specified in half points. The default is 24 half-points, giving a size 12 font. .. versionadded:: 2.0 t RTFt rtfs *.rtfc K sA t j | | � | j d � p"