Logo Search packages:      
Sourcecode: calibre version File versions  Download package

calibre::ebooks::rtf2xml::paragraphs::Paragraphs Class Reference

List of all members.


Detailed Description

=================
Purpose
=================
Write paragraph tags for a tokenized file. (This module won't be any use to use
to you unless you use it as part of the other modules.)
-------------
Method
-------------
RTF does not tell you when a paragraph begins. It only tells you when the
paragraph ends.
In order to make paragraphs out of this limited info, the parser starts in the
body of the documents and assumes it is not in a paragraph. It looks for clues
to begin a paragraph. Text starts a paragraph; so does an inline field or
list-text. If an end of paragraph marker (\par) is found, then this indicates
a blank paragraph.
Once a paragraph is found, the state changes to 'paragraph.' In this state,
clues are looked to for the end of a paragraph. The end of a paragraph marker
(\par) marks the end of a paragraph. So does the end of a footnote or heading;
a paragraph definintion; the end of a field-block; and the beginning of a
section. (How about the end of a section or the end of a field-block?)

Definition at line 20 of file paragraphs.py.


Public Member Functions

def __init__
def make_paragraphs

Private Member Functions

def __before_body_func
def __bogus_para__def_func
def __close_para_func
def __empty_para_func
def __empty_pgbk_func
def __initiate_values
def __not_paragraph_func
def __paragraph_func
def __start_para_func

Private Attributes

 __bug_handler
 __copy
 __end2_marker
 __end_marker
 __file
 __not_paragraph_dict
 'cw<pf<par-def___' : self.__close_para_func, # paragraph definition 'mi<mk<fld-bk-end' : self.__close_para_func, # end of field-block
 __paragraph_dict
 __run_level
 __start2_marker
 __start_marker
 __state
 __state_dict
 __token_info
 __write_empty_para
 __write_obj
 __write_to

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index