![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2011
Location: Spain
Device: Kindle 3
|
Calibre stops converting RTF files
Hi,
Last week I got a Kindle and I converted some RTF files into MOBI with Calibre and no problem. Suddenly Calibre sotpped converting RTF files. I have tried with new files and also with the same files converted previously always getting the same error. I have reinstalled Calibre 0.7.50 several times. I also have tried installing previous versions, but the problem persists. My OS is Windows 7 Home Premiun 64 bits service pack 1. These are the job details. I think that the problem begins in the red marked lines. Convert book 1 of 1 (Sharpe y el aguila del imperio) Resolved conversion options calibre version: 0.7.36 {'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': 'c:\\users\\luis\\appdata\\local\\temp\\calibre_0. 7.36_tmp_qrpb32\\calibre_0.7.36_stu_o4.jpeg', 'debug_pipeline': None, 'disable_font_rescaling': False, 'dont_compress': False, 'extra_css': None, 'font_size_mapping': None, 'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' , 'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' , 'html_unwrap_factor': 0.4, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.SonyReaderInput object at 0x05423730>, 'insert_blank_line': False, 'insert_metadata': False, 'isbn': None, '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, '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 0x054238D0>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'personal_doc': u'[PDOC]', 'prefer_author_sort': False, 'prefer_metadata_cover': False, 'preprocess_html': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': 'c:\\users\\luis\\appdata\\local\\temp\\calibre_0. 7.36_tmp_qrpb32\\calibre_0.7.36_fklm_n.opf', 'remove_first_image': False, 'remove_footer': False, 'remove_header': False, 'remove_paragraph_spacing': True, 'remove_paragraph_spacing_indent_size': 1.0, 'rescale_images': False, 'series': None, 'series_index': None, 'smarten_punctuation': False, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'toc_title': None, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: RTF Input running on C:\JL\Libros\Calibre\Bernard Cornwell\Sharpe y el aguila del imperio (67)\Sharpe y el aguila del imperio - Bernard Cornwell.rtf Converting RTF to XML... Preprocessing to convert unicode characters Python function terminated unexpectedly [Error 5] Acceso denegado: 'c:\\users\\luis\\appdata\\local\\temp\\tmpvtrhgq' (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 107, in main File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert File "site-packages\calibre\ebooks\conversion\plumber.py", line 853, in run File "site-packages\calibre\customize\conversion.py", line 216, in __call__ File "site-packages\calibre\ebooks\rtf\input.py", line 254, in convert File "site-packages\calibre\ebooks\rtf\input.py", line 119, in generate_xml File "site-packages\calibre\ebooks\rtf2xml\ParseRtf.py", line 331, in parse_rtf File "site-packages\calibre\ebooks\rtf2xml\colors.py", line 247, in convert_colors WindowsError: [Error 5] Acceso denegado: 'c:\\users\\luis\\appdata\\local\\temp\\tmpvtrhgq' I would be very gratefully for your help. Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,190
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Fixed in next release
|
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2011
Location: Spain
Device: Kindle 3
|
Thank you very much for your quick response.
I wait for the next release. Meanwhile I am achieving very good results converting in Word from DOC to HTML instead RTF, and from HTML to MOBI in Calibre. Regards. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
A hint when using that workflow: Save as filtered HTML in Word, if you aren't already. Also, it may interest you that there is a plugin available for OpenOffice that exports to ePub.
|
![]() |
![]() |
![]() |
#5 |
Fanatic
![]() ![]() ![]() ![]() ![]() Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
|
|
![]() |
![]() |
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Yes, but ePub may be a better conversion source than HTML output through Word. I've been on this forum long enough to be vary of that particular brand of HTML code even though I never used it myself (due to not having MS Office, mostly). Of course, that depends on the conversion results and whether or not he is happy with the results from converting via HTML.
|
![]() |
![]() |
![]() |
#7 | |
Fanatic
![]() ![]() ![]() ![]() ![]() Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
|
Quote:
Calibre can convert almost everything to everything. But it cant convert ePub to a single HTML file. There is a reason for that. You never know what you are going to find inside a ePub. Everybody always says that ePub is HTML in a container...well I never seen one were this was true. There is a kludge were Calibre generates an zip file that contains something that is remotely related to HTML but most of the time it is a big bowl of spaghetti from dozens of html, xhtml, css and other junk with no apparent structure. Try to find a ePub to HTML converter and you will find out that it is more easy to find a PDF to HTML converter Not one ePub is build in the same way, they all look different on the inside and they even look different on different devices because nobody really knows how this 'standard' is implemented. |
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42
Karma: 1496
Join Date: Dec 2010
Location: Saskatoon, SK.
Device: Kobo Aura One
|
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
I honestly fail to see the need for a single monolithic HTML file, but your mileage may vary. EPub is, as far as ebook formats go, the most versatile format as far as formatting goes, as well as being the easiest to manage with Calibre, since most of the times, no conversion is needed in order for the metadata to be correct when I export a file. The first reason is why I suggested it here- if you have a base format preserving much, if not all, of the layout, you can expect pretty good conversion results.
Oh, and did I mention there's a WYSIWYG editor available, as well? |
![]() |
![]() |
![]() |
#10 | |
Fanatic
![]() ![]() ![]() ![]() ![]() Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
|
Quote:
You'll end up with dozens of different files that you have to edit separately. In Sigil I still have to edit the CSS file by hand, what is WYSIWYG about that? That is, if there is a CSS I don't need Sigil for that. Notepad++ is more easy to use. Simply from Calibre use the Tweak option. This morning I ran into an ePub that existed of 27 HTML/XHTML files. No CSS but all the fortmatting was done in the separate parts. Hurray!!!! Versatility above all Open File one, correct the 2cm wide margins en 3 cm bottom margins and save it. Open file two, correct the 2.5 cm margins...can leave the bottom margins intact because they are not set here, save file two.... etc etc etc ...save file 27, rebuild ePub. And hope I did not make an error on the way because I won't be able to see it in one go if it is somewere in part 17 In Sigil this would not be any easier, you will have to open 27 tabs and switch between them because all the different parts are treated separately That is the reason why I want one single file and not 27 or 30 or 4 If Calibre was able to produce one big HTML file I simply could open one file and use a real WYSIWYG editor and make alle changes in one go. Up till now I use the RTF road. That works, most of the time. It only fails if someone made a mess of the ePub. For example screw up with the size of the different parts and Calibre is not able to generate a correct file. It can miss the last part of the book...or the last part of chapter 13. ePub is so versatile that anybody is able to produce a big pile of junk in 30 seconds. Last edited by Ortep; 03-31-2011 at 01:30 PM. |
|
![]() |
![]() |
![]() |
#11 | ||||||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Learn more in the Sigil forum. |
||||||
![]() |
![]() |
![]() |
#12 | ||||||||
Fanatic
![]() ![]() ![]() ![]() ![]() Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
|
Quote:
Quote:
I used to use ePub but I ran back to Mobi as fast as I could. It gives me almost te same results on any reader. Fact is: Why would I need this in the first place? ePub is supposed to be standard, not a bowl of spaghetti Quote:
The problem is that everybody uses a different approach and they will find a way to make as problematic as possible. Quote:
Here a part from the user manual of Sigil http://web.sigil.googlecode.com/hg/searching.html Quote:
Quote:
Quote:
Quote:
![]() And of course you can use any other programmers editor. The main argument is: There is no good WYSIWYG edit tool for ePub. Only a lot of small tools to repair them...in a way. But there are a LOT of HTML editors that are extremely easy to use. In any flavour you wnt. So I'm craving for a good ePub to HTML conversion tool. Also because the end goal for me (and all Kindle users) is not ePub. So why clean it up and make it usable in the first place? And until that tool is there I will convert to RTF and edit that file with a tool you can find on any Windows computer: Wordpad. Easy and in one go. If you really want ePub? Simply convert it back. Tip: The really easy and fast way to improve problematic ePub files is to open the ePub with something like Winrar or whatever archiver program you have. Find the css and simply delete it. You will lose all the formatting, but it was bad in the first place. Last edited by Ortep; 04-01-2011 at 01:34 AM. |
||||||||
![]() |
![]() |
![]() |
#13 | |||||||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Never said it was.
Quote:
Quote:
Quote:
Quote:
But I'm not here in a calibre forum to further defend or clarify Sigil usage. Quote:
![]() I don't create ePubs, only clean them up and Sigil is a quick way to make the changes I need. Quote:
Quote:
Tweak ePub built into calibre will expand the ePub, when I do mess with the css file (previously for margins) I open it up with this method and do quick edits using Notepad++. |
|||||||
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Sure, there's a code view that allows you to edit the XHTML by hand. However, there's also a book view that allows for, dare I say it, WYSIWYG editing of the book. You don't have to do anything.
Also, there's no real need for you to get that worked up about this issue of using ePub and/or Sigil as a conversion step. I only stated what I've found to work best when converting, neither you nor the OP have to use that method. |
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
If you have a crappy epub and you want to get it to as clean a version of single file html as possible you could convert to mobi, and then convert back to epub.
When you convert back to epub, you have two options to make it a single HTML file: - enable debug output, and grab the html from the 'input' directory - change your epub output to not split on page breaks and change the max split size to a few megabytes. Staying in the html world is generally a better idea than going to rtf. You could also try converting to Markdown/Textile, but formatting retention is highly dependent on how various bits of the html is structured. It can be a good method to clean up crappy html in a number of cases. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] New to Calibre--problems converting files | rxmom03 | Calibre | 4 | 07-04-2012 09:46 PM |
Split file when converting files in Calibre | larlarcook | Conversion | 2 | 01-29-2011 12:26 AM |
Error converting RTF files | organicveggie | Calibre | 4 | 08-09-2010 03:20 AM |
Anyone else having trouble lately converting HTML files in Calibre? | ficbot | Workshop | 1 | 07-27-2009 04:15 AM |
Converting PDF files in Calibre | BJWanlund | Calibre | 0 | 12-07-2008 10:28 PM |