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 04-30-2011, 07:26 PM   #1
penguinaka
Quack! Quack!
penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.
 
penguinaka's Avatar
 
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
What's the issue? rtf => mobi

I'm doing a fairly large conversion and i seem to have around 300+ .rtf's that have this same issue below. Anyone have an idea for a fix so i can run it as a batch rather than re-saving each one as a different file type?


Convert book 53 of 3813 (The Privateer)
Resolved conversion options
calibre version: 0.7.59
{'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(., 'chapter|book|section|part|prologue|epilogue\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'enable_heuristics': False,
'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.InputProfile object at 0x0572A1F0>,
'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': False,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x0572A3D0>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'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': u'c:\\users\\brian\\appdata\\local\\temp\\calibre_ 0.7.59_tmp_6ahkaj\\calibre_0.7.59_klewav.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'',
'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': False,
'verbose': 2}
InputFormatPlugin: RTF Input running
on C:\Users\Brian\Documents\Calibre Library\S. M. Stirling\The Privateer (18330)\The Privateer - S. M. Stirling.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 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 119, 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 920, in run
File "site-packages\calibre\customize\conversion.py", line 204, in __call__
File "site-packages\calibre\ebooks\rtf\input.py", line 270, in convert
File "site-packages\calibre\ebooks\rtf\input.py", line 132, in generate_xml
File "site-packages\calibre\ebooks\rtf2xml\ParseRtf.py", line 252, in parse_rtf
calibre.ebooks.rtf2xml.ParseRtf.InvalidRtfExceptio n:
Invalid RTF: document doesn't start with {

Exception in token processing
penguinaka is offline   Reply With Quote
Old 04-30-2011, 07:47 PM   #2
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,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Check out this thread.
DoctorOhh is offline   Reply With Quote
Advert
Old 04-30-2011, 09:28 PM   #3
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
Since you have so many with the error, another theory I didn't mention in the other thread is that there is a strong likelihood that the files aren't rtf at all, they're .txt using the wrong extension. Batch re-naming would be easier with 300 files than using MS Word one by one, so give renaming a shot too.
ldolse is offline   Reply With Quote
Old 05-01-2011, 09:36 AM   #4
penguinaka
Quack! Quack!
penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.
 
penguinaka's Avatar
 
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
@dwanthny ty for the link

@Idolse thanks for the input

What I found out is the documents were saved in a different encoding than calibre is used to converting. Because when you open them with word pad or ms word a dialog box pops up asks you to choose a encoding type. After that is done if you then "save as" over top of the file as a rtf again. At the top of the page in word on the bar by the title it will change to say for example.

The Island - Gene Wolfe.rtf(Compatibility Mode) - Microsoft Word

After that the file will convert just fine. What i had to do in order to work down the list of non nonverted errors and find them very quickly was go to mobi which i had converted to and rate everything that got converted (mobi) with a star and then sort for non stars in all formats and work down the list

Last edited by penguinaka; 05-01-2011 at 09:39 AM.
penguinaka is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RTF to MOBI conversion andrewholt Conversion 0 04-02-2011 10:43 AM
mobi, rtf, and odt conversions alansplace Calibre 8 11-30-2010 03:54 AM
Table of Contents RTF > MOBI daxmon87 Calibre 12 10-09-2010 12:46 AM
Pagebreaks for RTF to mobi question mputtr Calibre 1 03-17-2010 04:20 AM
RTF to MOBI error rcuadro Calibre 1 06-21-2009 07:30 PM


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


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