Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-10-2011, 04:26 PM   #1
ion475
Junior Member
ion475 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2011
Device: iPhone
TXT to EPUB - Freeze on 1%

I got a bunch of TXT file that I convert to EPUB format so that I can view it on my iphone. Although most of them convert fine, for some reason, I got the following in a few of my TXT file:

Convert book X of X (Name Here...)
Resolved conversion options
calibre version: 0.8.5
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': None,
'chapter_mark': u'none',
'comments': None,
'cover': u'c:\\users\\ion\\appdata\\local\\temp\\calibre_0. 8.5_tmp_j53mzd\\calibre_0.8.5_x3kr1g.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': True,
'dont_split_on_page_breaks': True,
'enable_heuristics': False,
'epub_flatten': False,
'extra_css': None,
'extract_to': None,
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'formatting_type': u'auto',
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0561EE50>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'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': True,
'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.iPadOutput object at 0x05625110>,
'page_breaks_before': None,
'paragraph_type': u'auto',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'preserve_spaces': True,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'c:\\users\\ion\\appdata\\local\\temp\\calibre_0. 8.5_tmp_j53mzd\\calibre_0.8.5_gyqpph.opf',
'remove_fake_margins': False,
'remove_first_image': False,
'remove_paragraph_spacing': True,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'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': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: TXT Input running
on (Directory to the TXT)
Reading text from file...
Detected input encoding as utf-8 with a confidence of 99.0%
Auto detected paragraph type as unformatted
Auto detected formatting as heuristic
Running text through basic conversion...
Language not specified
Creator not specified
Building file list...
Found files...
HTMLFile:0:a: (Directory of the HTML file)
Normalizing filename cases
Rewriting HTML links
Parsing index.html ...
********* Heuristic processing HTML *********
replaced 4 nbsp indents with inline styles
There are 65 blank lines. 0.0217974513749 percent blank
minimum chapters required are: 15
found 0 pre-existing headings
Total wordcount is: 99426, Average words per section is: 99426, Marked up 0 chapters
Hard line breaks check returned True
Median line length is 60, calculated with html format
Fixing hyphenated content
Looking for more split points based on punctuation, currently have 0

Then it would just get stuck there. I've try to run it overnight, doing the same thing.

I mean, usually it takes maybe a minute at max to convert the file, so I've no clue what's happening...
ion475 is offline   Reply With Quote
Old 06-10-2011, 08:36 PM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Heuristic processing can be intensive. My recommendation would be to let it run for about and hour. If it's still stuck then stop the conversion do it again. But this time specify the formatting_type as plain. This will disable the heuristic processing.
user_none is offline   Reply With Quote
Advert
Old 06-10-2011, 09:00 PM   #3
ion475
Junior Member
ion475 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2011
Device: iPhone
Quote:
Heuristic processing can be intensive. My recommendation would be to let it run for about and hour. If it's still stuck then stop the conversion do it again. But this time specify the formatting_type as plain. This will disable the heuristic processing.
I don't have heuristic processing enable and is actually running the conversion with formatting_type as plain. I've already tried running the conversion overnight (10 hours), same result.
ion475 is offline   Reply With Quote
Old 06-10-2011, 09:53 PM   #4
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
According to that log you have the formatting set to auto and that enables heuristic processing even if you have it disabled in the heuristic preferences area. Look at the log again and if you see "********* Heuristic processing HTML *********" heuristics are running.
user_none is offline   Reply With Quote
Old 06-10-2011, 10:34 PM   #5
ion475
Junior Member
ion475 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2011
Device: iPhone
user_none: Got it to work. The problem I was having was that even though I change the formatting of TXT file input under preference to "plain", that doesn't show up correctly when I do bulk convert.

Once I convert each of them individually and change the option one by one, it was able to convert correctly.
ion475 is offline   Reply With Quote
Advert
Old 06-10-2011, 11:35 PM   #6
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
If you've got a lot of books with this problem that points to a bug - if you open up a bug with a test case on the bug tracker we can dig into the cause. https://bugs.launchpad.net/calibre

Bulk Conversion can be set globally by disabling heuristics/auto under text input in preferences (instead of book by book), but the whole point of having heuristics as the default is that otherwise text conversions don't come out very well.
ldolse is offline   Reply With Quote
Old 06-11-2011, 10:36 PM   #7
Segref
Junior Member
Segref began at the beginning.
 
Segref's Avatar
 
Posts: 2
Karma: 10
Join Date: Jun 2011
Device: Kobo
Quote:
Originally Posted by ion475 View Post
user_none: Got it to work. The problem I was having was that even though I change the formatting of TXT file input under preference to "plain", that doesn't show up correctly when I do bulk convert.

Once I convert each of them individually and change the option one by one, it was able to convert correctly.
I am having the same problem with "TXT", "RTF" and "HTML" files. They either hang on 1% or say there is no ebook content. everything was ok with 0.8.4 but seemed to go pear shaped when I changed to 0.8.5. I have reinstalled 0.8.4 but still have the same problem. TXT and HTML both work individually.
I am running Windows7 64 bit.
Segref is offline   Reply With Quote
Old 06-12-2011, 01:39 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@Segref: Uninstall, delete C:\Program Files\Calibre2
(or wherever you chose to install calibre). Then re-install. And
dont worry, uninstalling will not affect your books/settings.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch TXT to EPUB ? smallhagrid Conversion 6 04-08-2011 03:59 AM
TXT to ePub using Calibre haino ePub 2 11-19-2010 05:37 PM
Convert .TXT to .EPUB Arfer Calibre 6 09-02-2010 10:41 AM
Conversion: EPUB to TXT Starson17 Calibre 11 05-29-2010 12:31 PM
System freeze when converting to EPUB TMF Calibre 1 05-24-2009 05:22 PM


All times are GMT -4. The time now is 01:47 AM.


MobileRead.com is a privately owned, operated and funded community.