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

def calibre.ebooks.rtf2xml.table_info.TableInfo.__init__ (   self,
  in_file,
  bug_handler,
  table_data,
  copy = None,
  run_level = 1 
)
Required:
    'file'--file to parse
    'table_data' -- a dictionary for each table.
Optional:
    'copy'-- whether to make a copy of result for debugging
    'temp_dir' --where to output temporary results (default is
    directory from which the script is run.)
Returns:
    nothing
    

Definition at line 28 of file table_info.py.

References calibre.ebooks.rtf2xml.check_encoding.CheckEncoding.__bug_handler, calibre.ebooks.rtf2xml.configure_txt.Configure.__bug_handler, calibre.ebooks.rtf2xml.convert_to_tags.ConvertToTags.__bug_handler, calibre::ebooks::rtf2xml::check_brackets::CheckBrackets.__bug_handler, calibre.ebooks.rtf2xml.line_endings.FixLineEndings.__bug_handler, calibre.ebooks.rtf2xml.pict.Pict.__bug_handler, calibre.ebooks.rtf2xml.combine_borders.CombineBorders.__bug_handler, calibre.ebooks.rtf2xml.delete_info.DeleteInfo.__bug_handler, calibre::ebooks::rtf2xml::list_table::ListTable.__bug_handler, calibre.ebooks.rtf2xml.copy.Copy.__bug_handler, calibre.ebooks.rtf2xml.get_options.GetOptions.__bug_handler, calibre.ebooks.rtf2xml.process_tokens.ProcessTokens.__bug_handler, calibre::ebooks::rtf2xml::default_encoding::DefaultEncoding.__bug_handler, calibre.ebooks.rtf2xml.footnote.Footnote.__bug_handler, calibre.ebooks.rtf2xml.header.Header.__bug_handler, calibre.ebooks.rtf2xml.inline.Inline.__bug_handler, calibre.ebooks.rtf2xml.field_strings.FieldStrings.__bug_handler, calibre.ebooks.rtf2xml.headings_to_sections.HeadingsToSections.__bug_handler, calibre.ebooks.rtf2xml.preamble_div.PreambleDiv.__bug_handler, calibre.ebooks.rtf2xml.styles.Styles.__bug_handler, calibre.ebooks.rtf2xml.colors.Colors.__bug_handler, calibre.ebooks.rtf2xml.info.Info.__bug_handler, calibre.ebooks.rtf2xml.list_numbers.ListNumbers.__bug_handler, calibre.ebooks.rtf2xml.fonts.Fonts.__bug_handler, calibre.ebooks.rtf2xml.make_lists.MakeLists.__bug_handler, calibre.ebooks.rtf2xml.old_rtf.OldRtf.__bug_handler, calibre.ebooks.rtf2xml.group_borders.GroupBorders.__bug_handler, calibre.ebooks.rtf2xml.group_styles.GroupStyles.__bug_handler, calibre.ebooks.rtf2xml.add_brackets.AddBrackets.__bug_handler, calibre::ebooks::rtf2xml::get_char_map::GetCharMap.__bug_handler, calibre.ebooks.rtf2xml.table_info.TableInfo.__bug_handler, calibre.ebooks.rtf2xml.body_styles.BodyStyles.__bug_handler, calibre.ebooks.rtf2xml.preamble_rest.Preamble.__bug_handler, calibre.ebooks.rtf2xml.hex_2_utf8.Hex2Utf8.__bug_handler, calibre.ebooks.rtf2xml.fields_small.FieldsSmall.__bug_handler, calibre.ebooks.rtf2xml.paragraphs.Paragraphs.__bug_handler, calibre.ebooks.rtf2xml.paragraph_def.ParagraphDef.__bug_handler, calibre.ebooks.rtf2xml.table.Table.__bug_handler, calibre.ebooks.rtf2xml.sections.Sections.__bug_handler, calibre.ebooks.rtf2xml.fields_large.FieldsLarge.__bug_handler, calibre.ebooks.rtf2xml.convert_to_tags.ConvertToTags.__copy, calibre.ebooks.rtf2xml.combine_borders.CombineBorders.__copy, calibre.ebooks.rtf2xml.delete_info.DeleteInfo.__copy, calibre.ebooks.rtf2xml.line_endings.FixLineEndings.__copy, calibre.ebooks.rtf2xml.pict.Pict.__copy, calibre.ebooks.rtf2xml.replace_illegals.ReplaceIllegals.__copy, calibre.ebooks.rtf2xml.process_tokens.ProcessTokens.__copy, calibre.ebooks.rtf2xml.footnote.Footnote.__copy, calibre.ebooks.rtf2xml.header.Header.__copy, calibre.ebooks.rtf2xml.inline.Inline.__copy, calibre.ebooks.rtf2xml.headings_to_sections.HeadingsToSections.__copy, calibre.ebooks.rtf2xml.colors.Colors.__copy, calibre.ebooks.rtf2xml.info.Info.__copy, calibre.ebooks.rtf2xml.preamble_div.PreambleDiv.__copy, calibre.ebooks.rtf2xml.styles.Styles.__copy, calibre.ebooks.rtf2xml.fonts.Fonts.__copy, calibre.ebooks.rtf2xml.list_numbers.ListNumbers.__copy, calibre.ebooks.rtf2xml.group_borders.GroupBorders.__copy, calibre.ebooks.rtf2xml.group_styles.GroupStyles.__copy, calibre.ebooks.rtf2xml.make_lists.MakeLists.__copy, calibre.ebooks.rtf2xml.add_brackets.AddBrackets.__copy, calibre.ebooks.rtf2xml.body_styles.BodyStyles.__copy, calibre.ebooks.rtf2xml.table_info.TableInfo.__copy, calibre.ebooks.rtf2xml.preamble_rest.Preamble.__copy, calibre.ebooks.rtf2xml.hex_2_utf8.Hex2Utf8.__copy, calibre.ebooks.rtf2xml.fields_small.FieldsSmall.__copy, calibre.ebooks.rtf2xml.paragraphs.Paragraphs.__copy, calibre.ebooks.rtf2xml.paragraph_def.ParagraphDef.__copy, calibre.ebooks.rtf2xml.table.Table.__copy, calibre.ebooks.rtf2xml.sections.Sections.__copy, calibre.ebooks.rtf2xml.fields_large.FieldsLarge.__copy, calibre.ebooks.rtf2xml.ParseRtf.ParseRtf.__copy, calibre.ebooks.rtf2xml.convert_to_tags.ConvertToTags.__file, calibre::ebooks::rtf2xml::check_brackets::CheckBrackets.__file, calibre.ebooks.rtf2xml.combine_borders.CombineBorders.__file, calibre.ebooks.rtf2xml.delete_info.DeleteInfo.__file, calibre.ebooks.rtf2xml.line_endings.FixLineEndings.__file, calibre.ebooks.rtf2xml.pict.Pict.__file, calibre.ebooks.rtf2xml.copy.Copy.__file, calibre.ebooks.rtf2xml.replace_illegals.ReplaceIllegals.__file, calibre.ebooks.rtf2xml.process_tokens.ProcessTokens.__file, calibre.ebooks.rtf2xml.header.Header.__file, calibre::ebooks::rtf2xml::default_encoding::DefaultEncoding.__file, calibre.ebooks.rtf2xml.footnote.Footnote.__file, calibre.ebooks.rtf2xml.inline.Inline.__file, calibre.ebooks.rtf2xml.output.Output.__file, calibre.ebooks.rtf2xml.headings_to_sections.HeadingsToSections.__file, calibre.ebooks.rtf2xml.preamble_div.PreambleDiv.__file, calibre.ebooks.rtf2xml.styles.Styles.__file, calibre.ebooks.rtf2xml.info.Info.__file, calibre.ebooks.rtf2xml.colors.Colors.__file, calibre.ebooks.rtf2xml.list_numbers.ListNumbers.__file, calibre.ebooks.rtf2xml.fonts.Fonts.__file, calibre.ebooks.rtf2xml.old_rtf.OldRtf.__file, calibre.ebooks.rtf2xml.make_lists.MakeLists.__file, calibre.ebooks.rtf2xml.group_borders.GroupBorders.__file, calibre.ebooks.rtf2xml.group_styles.GroupStyles.__file, calibre.ebooks.rtf2xml.add_brackets.AddBrackets.__file, calibre.ebooks.rtf2xml.body_styles.BodyStyles.__file, calibre.ebooks.rtf2xml.table_info.TableInfo.__file, calibre.ebooks.rtf2xml.preamble_rest.Preamble.__file, calibre.ebooks.rtf2xml.hex_2_utf8.Hex2Utf8.__file, calibre.ebooks.rtf2xml.fields_small.FieldsSmall.__file, calibre.ebooks.rtf2xml.paragraphs.Paragraphs.__file, calibre.ebooks.rtf2xml.table.Table.__file, calibre.ebooks.rtf2xml.paragraph_def.ParagraphDef.__file, calibre.ebooks.rtf2xml.sections.Sections.__file, calibre.ebooks.rtf2xml.fields_large.FieldsLarge.__file, calibre.ebooks.rtf2xml.ParseRtf.ParseRtf.__file, calibre.ebooks.rtf2xml.convert_to_tags.ConvertToTags.__run_level, calibre.ebooks.rtf2xml.pict.Pict.__run_level, calibre.ebooks.rtf2xml.delete_info.DeleteInfo.__run_level, calibre.ebooks.rtf2xml.line_endings.FixLineEndings.__run_level, calibre::ebooks::rtf2xml::list_table::ListTable.__run_level, calibre.ebooks.rtf2xml.replace_illegals.ReplaceIllegals.__run_level, calibre::ebooks::rtf2xml::override_table::OverrideTable.__run_level, calibre.ebooks.rtf2xml.process_tokens.ProcessTokens.__run_level, calibre.ebooks.rtf2xml.inline.Inline.__run_level, calibre.ebooks.rtf2xml.field_strings.FieldStrings.__run_level, calibre.ebooks.rtf2xml.colors.Colors.__run_level, calibre.ebooks.rtf2xml.preamble_div.PreambleDiv.__run_level, calibre.ebooks.rtf2xml.info.Info.__run_level, calibre.ebooks.rtf2xml.styles.Styles.__run_level, calibre.ebooks.rtf2xml.fonts.Fonts.__run_level, calibre.ebooks.rtf2xml.make_lists.MakeLists.__run_level, calibre.ebooks.rtf2xml.group_borders.GroupBorders.__run_level, calibre.ebooks.rtf2xml.group_styles.GroupStyles.__run_level, calibre.ebooks.rtf2xml.add_brackets.AddBrackets.__run_level, calibre.ebooks.rtf2xml.table_info.TableInfo.__run_level, calibre.ebooks.rtf2xml.body_styles.BodyStyles.__run_level, calibre.ebooks.rtf2xml.hex_2_utf8.Hex2Utf8.__run_level, calibre.ebooks.rtf2xml.fields_small.FieldsSmall.__run_level, calibre.ebooks.rtf2xml.paragraphs.Paragraphs.__run_level, calibre.ebooks.rtf2xml.paragraph_def.ParagraphDef.__run_level, calibre.ebooks.rtf2xml.table.Table.__run_level, calibre.ebooks.rtf2xml.sections.Sections.__run_level, calibre.ebooks.rtf2xml.fields_large.FieldsLarge.__run_level, calibre.ebooks.rtf2xml.ParseRtf.ParseRtf.__run_level, calibre.ebooks.rtf2xml.table_info.TableInfo.__table_data, calibre.ebooks.rtf2xml.table.Table.__table_data, calibre.ebooks.rtf2xml.convert_to_tags.ConvertToTags.__write_to, calibre.ebooks.rtf2xml.delete_info.DeleteInfo.__write_to, calibre.ebooks.rtf2xml.combine_borders.CombineBorders.__write_to, calibre.ebooks.rtf2xml.pict.Pict.__write_to, calibre.ebooks.rtf2xml.line_endings.FixLineEndings.__write_to, calibre.ebooks.rtf2xml.replace_illegals.ReplaceIllegals.__write_to, calibre.ebooks.rtf2xml.process_tokens.ProcessTokens.__write_to, calibre.ebooks.rtf2xml.footnote.Footnote.__write_to, calibre.ebooks.rtf2xml.header.Header.__write_to, calibre.ebooks.rtf2xml.inline.Inline.__write_to, calibre.ebooks.rtf2xml.headings_to_sections.HeadingsToSections.__write_to, calibre.ebooks.rtf2xml.preamble_div.PreambleDiv.__write_to, calibre.ebooks.rtf2xml.styles.Styles.__write_to, calibre.ebooks.rtf2xml.colors.Colors.__write_to, calibre.ebooks.rtf2xml.info.Info.__write_to, calibre.ebooks.rtf2xml.list_numbers.ListNumbers.__write_to, calibre.ebooks.rtf2xml.fonts.Fonts.__write_to, calibre.ebooks.rtf2xml.group_styles.GroupStyles.__write_to, calibre.ebooks.rtf2xml.group_borders.GroupBorders.__write_to, calibre.ebooks.rtf2xml.make_lists.MakeLists.__write_to, calibre.ebooks.rtf2xml.add_brackets.AddBrackets.__write_to, calibre.ebooks.rtf2xml.body_styles.BodyStyles.__write_to, calibre.ebooks.rtf2xml.table_info.TableInfo.__write_to, calibre.ebooks.rtf2xml.preamble_rest.Preamble.__write_to, calibre.ebooks.rtf2xml.hex_2_utf8.Hex2Utf8.__write_to, calibre.ebooks.rtf2xml.fields_small.FieldsSmall.__write_to, calibre.ebooks.rtf2xml.paragraphs.Paragraphs.__write_to, calibre.ebooks.rtf2xml.paragraph_def.ParagraphDef.__write_to, calibre.ebooks.rtf2xml.table.Table.__write_to, calibre.ebooks.rtf2xml.sections.Sections.__write_to, and calibre.ebooks.rtf2xml.fields_large.FieldsLarge.__write_to.

00028 
    def __init__(self,
            in_file,
            bug_handler,
            table_data,
            copy=None,
            run_level = 1,):
        """
        Required:
            'file'--file to parse
            'table_data' -- a dictionary for each table.
        Optional:
            'copy'-- whether to make a copy of result for debugging
            'temp_dir' --where to output temporary results (default is
            directory from which the script is run.)
        Returns:
            nothing
            """
        self.__file = in_file
        self.__bug_handler = bug_handler
        self.__copy = copy
        self.__table_data = table_data
        self.__run_level = run_level
        self.__write_to = tempfile.mktemp()
            # self.__write_to = 'table_info.data'

Generated by  Doxygen 1.6.0   Back to index