View Single Post
Old 03-06-2011, 11:30 PM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by getajob View Post
Thanks for your suggestions. I am glad to hear that 0.7.48 is working for you.

Do you have any other ideas of what else I can check?
I have one idea. Quit calibre, rename the configuration directory, restart calibre. This will force calibre to create a brand new configuration folder. If something in your configuration folder is corrupt this might fix it.

The epub you attached looked very close to what I got when I left both text input settings to auto.

My experiment:

I have never used textile. I took your source and added it to calibre. I converted to ePub using paragraph style - Off, Formatting style - Textile.

I attached the resultant epub, which looks great except I didn't have the image. I also attached the txt file I used for the source. I left all of my default settings alone, hopefully they haven't skewed it too much.

In case it might help, here is my job details info.

Spoiler:

Code:
Convert book 1 of 1 (textile) Resolved conversion options
 calibre version: 0.7.48
 {'asciiize': False,
  'author_sort': None,
  'authors': None,
  'base_font_size': 16.0,
  'book_producer': None,
  'change_justification': u'original',
  'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'introduction|prologue|epilogue|chapter|book|section|conclusion|part\\s+', 'i')) or @class = 'chapter']",
  'chapter_mark': u'none',
  'comments': None,
  'cover': None,
  'debug_pipeline': None,
  'dehyphenate': False,
  'delete_blank_paragraphs': False,
  'disable_font_rescaling': False,
  'dont_split_on_page_breaks': False,
  'enable_heuristics': False,
  'epub_flatten': False,
  'extra_css': u'body { margin: 0 0; padding: 0em 0em; }\n\np {margin-top:0.5em; margin-bottom:0.5em; text-indent:1.1em}\n\nh1+p, h2+p, h3+p, p.whitespace+p, p.softbreak+p {margin-top:0.1em; margin-bottom:0.3em; text-indent:0%}',
  'extract_to': None,
  'fix_indents': False,
  'flow_size': 260,
  'font_size_mapping': u'16,16,16,16,17.5,17.5,18,18',
  'format_scene_breaks': True,
  'formatting_type': u'textile',
  'html_unwrap_factor': 0.4,
  'input_encoding': None,
  'input_profile': <calibre.customize.profiles.SonyReaderInput object at 0x0444AC90>,
  'insert_blank_line': True,
  'insert_metadata': False,
  'isbn': None,
  'italicize_common_cases': False,
  'keep_ligatures': True,
  'language': None,
  'level1_toc': None,
  'level2_toc': None,
  'level3_toc': None,
  'line_height': 0.0,
  'linearize_tables': False,
  'margin_bottom': 5.0,
  'margin_left': 5.0,
  'margin_right': 5.0,
  'margin_top': 5.0,
  'markdown_disable_toc': False,
  'markup_chapter_headings': False,
  'max_toc_links': 50,
  'minimum_line_height': 120.0,
  'no_chapters_in_toc': False,
  'no_default_epub_cover': False,
  'no_inline_navbars': False,
  'no_svg_cover': False,
  'output_profile': <calibre.customize.profiles.SonyReaderOutput object at 0x0444AF90>,
  'page_breaks_before': u'//h:h1',
  'paragraph_type': u'off',
  'prefer_metadata_cover': False,
  'preserve_cover_aspect_ratio': False,
  'preserve_spaces': False,
  'pretty_print': True,
  'pubdate': None,
  'publisher': None,
  'rating': None,
  'read_metadata_from_opf': 'C:\\Calibre_temp\\calibre_0.7.48_tmp_oghngz\\calibre_0.7.48_ckbwpv.opf',
  'remove_first_image': False,
  'remove_paragraph_spacing': True,
  'remove_paragraph_spacing_indent_size': 1.1,
  'renumber_headings': False,
  'replace_scene_breaks': u'',
  'series': None,
  'series_index': None,
  'smarten_punctuation': True,
  'sr1_replace': None,
  'sr1_search': None,
  'sr2_replace': None,
  'sr2_search': None,
  'sr3_replace': None,
  'sr3_search': None,
  'tags': None,
  'timestamp': None,
  'title': None,
  'title_sort': None,
  'toc_filter': None,
  'toc_threshold': 6,
  'txt_in_remove_indents': False,
  'unwrap_lines': False,
  'use_auto_toc': False,
  'verbose': 2}
 InputFormatPlugin: TXT Input running
 on C:\My Dropbox\CalibreLibrary\textile\textile (8108)\textile - textile.txt
 Reading text from file...
 Detected input encoding as ISO-8859-2 with a confidence of 83.5262045228%
 Running text through textile conversion...
 Language not specified
 Building file list...
     Found files...
          HTMLFile:0:a:C:\My Dropbox\CalibreLibrary\textile\textile (8108)\index.html
 Normalizing filename cases
 Rewriting HTML links
 Parsing index.html ...
 Forcing index.html into XHTML namespace
 Merging user specified metadata...
 Detecting structure...
 Auto generated TOC with 2 entries.
 Flattening CSS and remapping font sizes...
 Source base font size is 12.00000pt
 Cleaning up manifest...
 Trimming unused files from manifest...
 Parsing stylesheet.css ...
 Creating EPUB Output...
         Splitting on page-break
     Looking for large trees in index.html...
     No large trees found
 Generating default cover
 EPUB output written to C:\Calibre_temp\calibre_0.7.48_tmp_oghngz\calibre_0.7.48_brpjix.epub


Good Luck.
Attached Files
File Type: epub textile.epub (88.8 KB, 375 views)
File Type: txt textile.txt (1.2 KB, 255 views)
DoctorOhh is offline   Reply With Quote