| Trees | Indices | Help |
|
|---|
|
|
Starting with the version posted by Gustavo Carneiro, I (Santiago Gala) am trying to make it more compatible with the markup that docutils generate, and also more modular.
|
|||
|
HtmlHandler A handler to display html to a gtk textview |
|||
| HtmlTextView | |||
|
|||
|
|||
|
|||
|
|||
whitespace_rx = re.compile('\\s+')
|
|||
allwhitespace_rx = re.compile('^\\s*$')
|
|||
display_resolution = 0.3514598*(gtk.gdk.screen_height()/ float
|
|||
classes = {'problematic': ';color: red',}
|
|||
element_styles = {'u': ';text-decoration: underline', 'em': ';
|
|||
BLOCK_HEAD = set(('h1', 'h2', 'h3', 'h4', 'h5', 'h6',))
|
|||
BLOCK_PHRASAL = set(('address', 'blockquote', 'pre',))
|
|||
BLOCK_PRES = set(('hr',))
|
|||
BLOCK_STRUCT = set(('div', 'p',))
|
|||
BLOCK_HACKS = set(('table', 'tr'))
|
|||
BLOCK = BLOCK_HEAD.union(BLOCK_PHRASAL).union(BLOCK_STRUCT).un
|
|||
INLINE_PHRASAL = set('abbr, acronym, cite, code, dfn, em, kbd,
|
|||
INLINE_PRES = set('b, i, u, tt'.split(', '))
|
|||
INLINE_STRUCT = set('br, span'.split(', '))
|
|||
INLINE = INLINE_PHRASAL.union(INLINE_PRES).union(INLINE_STRUCT)
|
|||
LIST_ELEMS = set('dl, ol, ul'.split(', '))
|
|||
change_cursor = None
|
|||
Imports: gobject, pango, gtk, xml, re, warnings, StringIO, socket, time, urllib2, operator, gajim, tooltips
|
|||
|
|
|
|||
whitespace_rx
|
allwhitespace_rx
|
display_resolution
|
classes
|
element_styles
|
BLOCK_HEAD
|
BLOCK_PHRASAL
|
BLOCK_PRES
|
BLOCK_STRUCT
|
BLOCK_HACKS
|
BLOCK
|
INLINE_PHRASAL
|
INLINE_PRES
|
INLINE_STRUCT
|
INLINE
|
LIST_ELEMS
|
change_cursor
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 12 02:06:28 2010 | http://epydoc.sourceforge.net |