Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2009, 02:49 PM   #1
doreenjoy
01000100 01001010
doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.
 
doreenjoy's Avatar
 
Posts: 1,889
Karma: 2400000
Join Date: Mar 2009
Device: Polyamorous
Error when converting RTF to EPUB

I'm trying to convert an RTF to EPUB using Calibre version 0.5.8, and I keep getting an error message. Any ideas? I've opened the file in Notepad -- it's definitely nothing but RTF.
Job: **Convert book: Test**
**tuple**: ('InvalidRtfException', u"'ascii' codec can't decode byte 0x92 in position 51: ordinal not in range(128)Invalid RTF: File not ascii encoded.\n")
**Traceback**:
Traceback (most recent call last):
File "parallel.py", line 958, in worker
File "parallel.py", line 916, in work
File "calibre\ebooks\epub\from_any.pyo", line 167, in any2epub
File "calibre\ebooks\epub\from_any.pyo", line 86, in rtf2opf
File "calibre\ebooks\lrf\rtf\convert_from.pyo", line 144, in generate_html
File "calibre\ebooks\lrf\rtf\convert_from.pyo", line 134, in generate_xml
File "calibre\ebooks\rtf2xml\ParseRtf.pyo", line 237, in parse_rtf
InvalidRtfException: 'ascii' codec can't decode byte 0x92 in position 51: ordinal not in range(128)Invalid RTF: File not ascii encoded.


**Log**:
Converting RTF to XML...
line: 1 has bad encoding
File "c:\docume~1\admin\locals~1\temp\calibre_0.5.8_g1k dri.rtf" does not appear to be RTF.
('InvalidRtfException', u"'ascii' codec can't decode byte 0x92 in position 51: ordinal not in range(128)Invalid RTF: File not ascii encoded.\n")
Traceback (most recent call last):
File "parallel.py", line 958, in worker
File "parallel.py", line 916, in work
File "calibre\ebooks\epub\from_any.pyo", line 167, in any2epub
File "calibre\ebooks\epub\from_any.pyo", line 86, in rtf2opf
File "calibre\ebooks\lrf\rtf\convert_from.pyo", line 144, in generate_html
File "calibre\ebooks\lrf\rtf\convert_from.pyo", line 134, in generate_xml
File "calibre\ebooks\rtf2xml\ParseRtf.pyo", line 237, in parse_rtf
InvalidRtfException: 'ascii' codec can't decode byte 0x92 in position 51: ordinal not in range(128)Invalid RTF: File not ascii encoded.
doreenjoy is offline   Reply With Quote
Old 07-16-2009, 03:38 PM   #2
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: 73,931
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Try the current 0.0.6 beta and see what happens. Then if you still get an error, then open a ticket so it can be fixed.

The work on 0.5.14 has stopped so please help test 0.6.0 .
JSWolf is offline   Reply With Quote
Advert
Old 07-16-2009, 06:58 PM   #3
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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre only supports ascii encoded RTF files. A simple workaround is to convert the RTF to HTML (use save as in word) and then convert the html in calibre
kovidgoyal is online now   Reply With Quote
Old 05-19-2012, 03:32 AM   #4
mp3825
Junior Member
mp3825 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2012
Device: none
I have just upgraded to 0.8.52 and cannot convert RTF anymore. Did before. the error is this
calibre, version 0.8.52
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Time Slave)

Convert book 1 of 1 (Time Slave)
Resolved conversion options
calibre version: 0.8.52
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\me\\AppData\\Local\\Temp\\calibre_0.8 .52_tmp_khravt\\dl8pai.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'enable_heuristics': True,
'epub_flatten': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0427DA30>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'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,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.KindleFireOutput object at 0x0427DDB0>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\me\\AppData\\Local\\Temp\\calibre_0.8 .52_tmp_khravt\\a2lfxd.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[["<b.*?>\\\\s*Generated\\\\s+by\\\\s+ABC\\\\s+Amber \\\\s+LIT.*?</b>", ""], ["(?ism)<a href=\\"http://www.abbyy.com/buy\\"><b>(\\\\w|\\\\s)*</b></a>(<br>)?", ""], ["(?ism)<a href=\\"http://www.abbyy.com/buy\\"><b>(\\\\.|\\\\w|\\\\s)*</b>?", ""], ["(?ism)<a href=\\"http://www.abbyy.com/buy\\"><b>?", ""], ["(?ism)<a href=\\"http://www.abbyy.com/buy\\">?", ""]]',
'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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: RTF Input running
on C:\Users\me\AppData\Local\Temp\calibre_0.8.52_tmp_ khravt\mnudy8.rtf
Converting RTF to XML...
Python function terminated unexpectedly

Invalid RTF: document doesn't start with {

Exception in token processing (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 191, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 979, in run
File "site-packages\calibre\customize\conversion.py", line 208, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\rtf_inp ut.py", line 244, in convert
File "site-packages\calibre\ebooks\conversion\plugins\rtf_inp ut.py", line 103, in generate_xml
File "site-packages\calibre\ebooks\rtf2xml\ParseRtf.py", line 247, in parse_rtf
calibre.ebooks.rtf2xml.ParseRtf.InvalidRtfExceptio n:
Invalid RTF: document doesn't start with {

Exception in token processing
mp3825 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RTF -> EPUB conversion error gondwild Calibre 3 01-16-2011 11:35 AM
Error converting RTF files organicveggie Calibre 4 08-09-2010 03:20 AM
Converting rtf to epub rxmom03 Calibre 2 06-16-2010 11:56 PM
Mass Converting LIT, RTF, & PDF to ePUB Tom2112 ePub 8 01-11-2010 01:14 AM
Converting Epub to RTF PieOPah ePub 0 12-11-2008 12:02 PM


All times are GMT -4. The time now is 12:19 AM.


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