Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-10-2011, 01:02 PM   #1
BroCraig
Junior Member
BroCraig began at the beginning.
 
BroCraig's Avatar
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Location: Winnsboro, LA
Device: Kindle
.txt to .mobi

Ok, Got a text file. Using Calibre to convert it. When I do, the words get chopped. Like at the end of a line the word "of" looks like this, o
f. Not sure how to make it not chop words at the end of a line. Anyone know what I need to do. I am a newbie at calibre.
BroCraig is offline   Reply With Quote
Old 03-10-2011, 01:23 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,433
Karma: 950001
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Can't really say why this is happening. Attach a sample of the file and the conversion log. You can see the log afteryou run a conversion by clicking jobs at the lower right corner of the man window, select the job in the job dialog that opens and click the detail button.
user_none is offline   Reply With Quote
 
Enthusiast
Old 03-10-2011, 02:14 PM   #3
BroCraig
Junior Member
BroCraig began at the beginning.
 
BroCraig's Avatar
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Location: Winnsboro, LA
Device: Kindle
ok, log

Here is the log.


Email The Autobiography of Benjamin Franklin to BroCraig@free.Kindle.com
connect: (u'smtp.gmail.com', 587)
connect: (587, u'smtp.gmail.com')
reply: '220 mx.google.com ESMTP i10sm4101034anh.12\r\n'
reply: retcode (220); Msg: mx.google.com ESMTP i10sm4101034anh.12
connect: mx.google.com ESMTP i10sm4101034anh.12
send: 'ehlo rev-craig-beemans-macbook-pro.local\r\n'
reply: '250-mx.google.com at your service, [72.156.148.50]\r\n'
reply: '250-SIZE 35651584\r\n'
reply: '250-8BITMIME\r\n'
reply: '250-STARTTLS\r\n'
reply: '250 ENHANCEDSTATUSCODES\r\n'
reply: retcode (250); Msg: mx.google.com at your service, [72.156.148.50]
SIZE 35651584
8BITMIME
STARTTLS
ENHANCEDSTATUSCODES
send: 'STARTTLS\r\n'
reply: '220 2.0.0 Ready to start TLS\r\n'
reply: retcode (220); Msg: 2.0.0 Ready to start TLS
send: 'ehlo rev-craig-beemans-macbook-pro.local\r\n'
reply: '250-mx.google.com at your service, [72.156.148.50]\r\n'
reply: '250-SIZE 35651584\r\n'
reply: '250-8BITMIME\r\n'
reply: '250-AUTH LOGIN PLAIN XOAUTH\r\n'
reply: '250 ENHANCEDSTATUSCODES\r\n'
reply: retcode (250); Msg: mx.google.com at your service, [72.156.148.50]
SIZE 35651584
8BITMIME
AUTH LOGIN PLAIN XOAUTH
ENHANCEDSTATUSCODES
send: AUTH <censored>
reply: '235 2.7.0 Accepted\r\n'
reply: retcode (235); Msg: 2.7.0 Accepted
send: u'mail FROM:<BroCraig@gmail.com> size=502619\r\n'
reply: '250 2.1.0 OK i10sm4101034anh.12\r\n'
reply: retcode (250); Msg: 2.1.0 OK i10sm4101034anh.12
send: u'rcpt TO:<BroCraig@free.Kindle.com>\r\n'
reply: '250 2.1.5 OK i10sm4101034anh.12\r\n'
reply: retcode (250); Msg: 2.1.5 OK i10sm4101034anh.12
send: 'data\r\n'
reply: '354 Go ahead i10sm4101034anh.12\r\n'
reply: retcode (354); Msg: Go ahead i10sm4101034anh.12
data: (354, 'Go ahead i10sm4101034anh.12')
send: 'Content-Type: multipart/mixed; boundary="===============8196497422022582706=="\r\ nMIME-Version: 1.0...
reply: '250 2.0.0 OK 1299775902 i10sm4101034anh.12\r\n'
reply: retcode (250); Msg: 2.0.0 OK 1299775902 i10sm4101034anh.12
data: (250, '2.0.0 OK 1299775902 i10sm4101034anh.12')
send: 'quit\r\n'
reply: '221 2.0.0 closing connection i10sm4101034anh.12\r\n'
reply: retcode (221); Msg: 2.0.0 closing connection i10sm4101034anh.12
BroCraig is offline   Reply With Quote
Old 03-10-2011, 02:16 PM   #4
BroCraig
Junior Member
BroCraig began at the beginning.
 
BroCraig's Avatar
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Location: Winnsboro, LA
Device: Kindle
oops

Here is the file
BroCraig is offline   Reply With Quote
Old 03-10-2011, 02:21 PM   #5
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,433
Karma: 950001
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
The log is an email log not a conversion log. You will most likely have to convert the file manually. Also, please attach the source text file.
user_none is offline   Reply With Quote
Old 03-10-2011, 02:23 PM   #6
BroCraig
Junior Member
BroCraig began at the beginning.
 
BroCraig's Avatar
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Location: Winnsboro, LA
Device: Kindle
OOps. Here is the conversion file.


Convert book 1 of 1 (The Autobiography of Benjamin Franklin)
Resolved conversion options
calibre version: 0.7.48
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 13.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part|prologue|epilogue\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': '/var/folders/Z0/Z0do63H4FC8ExhY7A+jO5++++TI/-Tmp-/calibre_0.7.48_tmp_qROts2/calibre_0.7.48_BEEPNS.jpeg',
'debug_pipeline': None,
'dehyphenate': False,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'enable_heuristics': True,
'extra_css': None,
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.KindleInput object at 0x1096a2b90>,
'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,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'mobi_ignore_margins': False,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x1096a5090>,
'page_breaks_before': u'/',
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/Z0/Z0do63H4FC8ExhY7A+jO5++++TI/-Tmp-/calibre_0.7.48_tmp_qROts2/calibre_0.7.48_mfVwF3.opf',
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'rescale_images': False,
'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,
'toc_title': None,
'unwrap_lines': True,
'use_auto_toc': True,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on /Users/brocraig/eBooks Library/Benjamin Franklin/The Autobiography of Benjamin Franklin (40)/The Autobiography of Benjamin Franklin - Benjamin Franklin.epub
Parsing all content...
Parsing OPS/chapter-1.xhtml ...
********* Heuristic processing HTML *********
There are 424 blank lines. 0.5 percent blank
minimum chapters required are: 10
found 0 pre-existing headings
common had 4 hits - 4 chapters with no title, 0 chapters with titles, 0.0 percent.
uppercase had 1 hits - 0 chapters with no title, 1 chapters with titles, 1.0 percent.
Marked 0 headings, Searching for common section headings
marked 1 chapters. - Part I
marked 2 chapters. - Part II
marked 3 chapters. - Part III
marked 4 chapters. - Part IV
Total wordcount is: 66400, Average words per section is: 16600, Marked up 4 chapters
deleting blank lines
Hard line breaks check returned False
Median line length is 672, calculated with html format
Looking for more split points based on punctuation, currently have 4
marked 5 section markers based on punctuation. - CHARLES W ELIOT</p>
Initial parse failed:
Traceback (most recent call last):
File "site-packages/calibre/ebooks/oeb/base.py", line 881, in first_pass
File "lxml.etree.pyx", line 2532, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48634)
File "parser.pxi", line 1545, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:72245)
File "parser.pxi", line 1417, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:71041)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67581)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:64257)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:65178)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64521)
XMLSyntaxError: Opening and ending tag mismatch: i line 190 and p, line 190, column 464

Parsing file 'OPS/chapter-1.xhtml' as HTML
Forcing OPS/chapter-1.xhtml into XHTML namespace
Parsing OPS/css/book.css ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Part I
Detected chapter: Part II
Detected chapter: Part III
Detected chapter: Part IV
Auto generated TOC with 4 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 MOBI Output...
Generating in-line TOC...
Applying case-transforming CSS...
Parsing manglecase.css ...
Parsing tocstyle.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
Generating flat CTOC ...
CNCX utilization: 1 record, 0% full
Indexing navPoints ...
Generating INDX ...
Serializing images...
MOBI output written to /var/folders/Z0/Z0do63H4FC8ExhY7A+jO5++++TI/-Tmp-/calibre_0.7.48_tmp_qROts2/calibre_0.7.48_XTvYxn.mobi
BroCraig is offline   Reply With Quote
Old 03-10-2011, 02:23 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,490
Karma: 17660776
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Please delete this post
JSWolf is online now   Reply With Quote
Old 03-10-2011, 02:29 PM   #8
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,433
Karma: 950001
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
The log indicates that the file being converted is an EPUB not a TXT file. Try turning off heuristic processing. If you still have the same issue attach the new conversion log.
user_none is offline   Reply With Quote
Old 03-10-2011, 02:33 PM   #9
Hoyt Clagwell
Addict
Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.Hoyt Clagwell ought to be getting tired of karma fortunes by now.
 
Hoyt Clagwell's Avatar
 
Posts: 288
Karma: 5678807
Join Date: Mar 2011
Device: The blue one next to the fish.
I can't help BroCraig with his question but want to point out that The Autobiography of Benjamin Franklin can be found on this site.

http://www.mobileread.com/forums/sho...6934#post76934

also here

http://www.mobileread.com/forums/sho...802#post808802

Last edited by Hoyt Clagwell; 03-10-2011 at 03:02 PM.
Hoyt Clagwell is offline   Reply With Quote
Old 03-10-2011, 02:40 PM   #10
BroCraig
Junior Member
BroCraig began at the beginning.
 
BroCraig's Avatar
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Location: Winnsboro, LA
Device: Kindle
Ah, I figured it out. I set the metadata to say it was an epub. I then converted it to mobi. I changed that and it looks fine. I hope that makes sense. Anyway, thanks for pointing me in the right direction!!!!!!
BroCraig is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
txt to mobi - dashes becoming ? cybmole Calibre 5 10-14-2010 11:02 AM
Problem converting txt to mobi toby39 Calibre 10 09-05-2010 02:16 PM
iLiad iLiad can't read mobi/epub/txt desertblues iRex 27 07-24-2010 10:59 AM
Convert Mobi to txt jflatto Kindle Formats 1 10-19-2008 04:14 PM
New Illiad Can't Read my mobi or txt files sherryk_us iRex 25 08-04-2008 11:46 AM


All times are GMT -4. The time now is 06:09 PM.


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