![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 300
Karma: 2000410
Join Date: Jan 2012
Device: Kindle 4
|
Can't convert simple HTML page anymore to Kindle 1-4/Touch :(
Latest Calibre, HTML downloaded in either Firefox/Chrome
FYI, this article: http://www.cringely.com/2015/03/16/b...ogle-nearline/ Failed: Covert book 1 of 1 Convert book 1 of 1 (I, Cringely Be a cloud storage tycoon with Google Nearline - I, Cringely) Processing archive... Resolved conversion options calibre version: 2.21.0 Spoiler:
css_selectors.errors.ExpressionError: The pseudo-class :moz-placeholder is not supported Last edited by BetterRed; 03-16-2015 at 07:42 PM. |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Kovid just rewrote the pseudo-selectors code, and since it is new it might not cover everything yet. I am sure this will be fixed soon, in the meantime I guess you can use the old version.
EDIT: Remembered seeing this thread: https://www.mobileread.com/forums/sho...d.php?t=257296 Same problem. It should be fixed: https://github.com/kovidgoyal/calibr...54b8dbe69bcf1a Just wait until the next release, should be this Friday (as usual). Last edited by eschwartz; 03-16-2015 at 08:27 PM. |
![]() |
![]() |
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 300
Karma: 2000410
Join Date: Jan 2012
Device: Kindle 4
|
I have found the secret download location for the previous version: http://download.calibre-ebook.com/2.20.0/
Hope it will do the trick. |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
![]() ![]() |
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 300
Karma: 2000410
Join Date: Jan 2012
Device: Kindle 4
|
Now with 2.25. I can' t convert this to MOBI: http://andreaskluth.org/2010/03/05/p...opean-dignity/
I can convert to AZW3, but still, MOBI is the default file format for Kindle in Calibre. I even downgraded - 2.24 and 2.23, though I have to add, I didn't get back to 2.20. |
![]() |
![]() |
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Who cares what the default is?
Also, what happens when you try to convert it? |
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 300
Karma: 2000410
Join Date: Jan 2012
Device: Kindle 4
|
Me cares. And most users, btw. Basically, I live in a belief system that default is king, and do not change it much. Frankly, I use Kindle and Calibre for a few years (even though my device supported AZW3 from scratch, and it is a better format, and 100% of devices on the market today, and even the vast majority of devices in the hands of consumers support AZW3 - from scratch, not just with a firmware update), I never thought I am supposed to change defaults in Calibre from MOBI to AZW3 but now I accidentally learned I should.
Basically - how I understand it comes down to similar design thinking (that's a term borrowed from Stanford) - that the Mac long ditched the floppy drive (CD drive, VGA port), while the PC still uses them (esp. the floppy drive). I have no problem, of course, with the VGA port (MOBI format) is still hanging around in Calibre, but why make it default for the minority if the majority can use better, newer technology? 3 issues: - Many people - like me - may simply think they are better sticking to MOBI, as it is default, though their device supports AZW3 - The first problem is when I can convert the same file without error to AZW3, but not to MOBI (see below) - The second problem is that images (tables, graphs) are unenjoyable in MOBI, but look great in AZW3 Thanks for considering, Kovid, I truly appreciate your work, btw. ![]() Code:
Convert book 1 of 1 (Privacy law: US “liberty” vs European “dignity” | Hannibal and Me: life lessons from history on WordPress.com) Processing archive... Resolved conversion options calibre version: 2.25.0 {'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'breadth_first': False, 'change_justification': u'original', 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|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, 'dont_package': False, 'duplicate_links_in_toc': False, 'embed_all_fonts': False, 'embed_font_family': None, 'enable_heuristics': False, 'expand_css': False, 'extra_css': None, 'extract_to': None, 'filter_css': u'', '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 0x01869B10>, '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_levels': 5, 'max_toc_links': 50, 'minimum_line_height': 120.0, 'mobi_file_type': u'old', 'mobi_ignore_margins': True, 'mobi_keep_original_images': False, 'mobi_toc_at_start': False, 'no_chapters_in_toc': False, 'no_inline_navbars': True, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x01869E50>, '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:\...\AppData\\Local\\Temp\\calibre_vsmb2o\\vcshsf.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': '[]', 'series': None, 'series_index': None, 'share_not_sync': False, 'smarten_punctuation': False, 'sr1_replace': None, 'sr1_search': None, 'sr2_replace': None, 'sr2_search': None, 'sr3_replace': None, 'sr3_search': None, 'start_reading_at': None, 'subset_embedded_fonts': False, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'toc_title': None, 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: HTML Input running on C:\...\AppData\Local\Temp\calibre_vsmb2o\y2yj1i_pl_arc\content.opf Parsing all content... Manifest item 'toc.ncx' not found Parsing style.css ... Parsing saved_resource.html ... Parsing services.css ... Parsing Privacy law US _liberty_ vs European _dignity_ Hannibal and Me life lessons from history.html ... Parsing hovercard.css ... Parsing content.html ... Parsing master.html ... Parsing global-print.css ... Referenced file u'content_inner.html' not found Referenced file u'like.html' not found Referenced file u'images/postto-buttons.png' not found Referenced file u'./Privacy%20law%20%20US%20\u201cliberty\u201d%20vs%20European%20\u201cdignity\u201d%20%20%20Hannibal%20and%20Me%20%20life%20lessons%20from%20history_files/Privacy%20law%20%20US%20\u201cliberty\u201d%20vs%20European%20\u201cdignity\u201d%20%20%20Hannibal%20and%20Me%20%20life%20lessons%20from%20history.html' not found Referenced file u'spinner_60.gif' not found Referenced file u'sdk.js' not found Referenced file u'embeds.js' not found Referenced file u'geoip_script' not found Referenced file u'/images/grav-tag.png' not found Referenced file u'images/button-back.gif' not found Referenced file u'KvoNGODIqPG.html' not found Referenced file u'embeds.css' not found Referenced file u'postmessage.js' not found Referenced file u'check_359604.js' not found Referenced file u'.' not found Referenced file u'images/button-back-over.gif' not found Referenced file u'jquery.wpcom-proxy-request.js' not found Referenced file u'container.html' not found Referenced file u'underscore.min.js' not found Referenced file u'style%281%29.css' not found Referenced file u'pubads_impl_59.js' not found Referenced file u'../post-flair/sharing/images/googleplus1.png' not found Referenced file u'gpt.js' not found Referenced file u'postmessageRelay.html' not found Referenced file u'plusone.js' not found Referenced file u'../post-flair/sharing/images/icon-facebook.png' not found Referenced file u'/images/pillicon.png' not found Referenced file u'saved_resource%287%29.html' not found Referenced file u'ga.js' not found Referenced file u'widgets.js' not found Referenced file u'gtm.js' not found Referenced file u'jed.js' not found Referenced file u'jquery.js' not found Referenced file u'base.css' not found Referenced file u'likes-rest.js' not found Referenced file u'fastbutton.html' not found Referenced file u'../post-flair/sharing/images/icon-twitter.png' not found Referenced file u'images/loader.gif' not found Referenced file u'noticons.css' not found Referenced file u'tweet_button.46489b28ee1023601b810a443ee8af43.en.html' not found Referenced file u'ads.js' not found Referenced file u'../post-flair/sharing/images/icon-wordpress.png' not found Referenced file u'/images/grav-tag-left.png' not found Referenced file u'touch.js' not found Referenced file u'cb%3dgapi.loaded_1' not found Referenced file u'cb%3dgapi.loaded_0' not found Generating default TOC from spine... Merging user specified metadata... Detecting structure... Auto generated TOC with 1 entries. Flattening CSS and remapping font sizes... Stylesheet 'saved_resource%281%29' referenced by file u'Privacy%20law%20%20US%20_liberty_%20vs%20European%20_dignity_%20%20%20Hannibal%20and%20Me%20%20life%20lessons%20from%20history.html' is not CSS Stylesheet 'css' referenced by file u'Privacy%20law%20%20US%20_liberty_%20vs%20European%20_dignity_%20%20%20Hannibal%20and%20Me%20%20life%20lessons%20from%20history.html' is not CSS Stylesheet 'saved_resource%282%29' referenced by file u'Privacy%20law%20%20US%20_liberty_%20vs%20European%20_dignity_%20%20%20Hannibal%20and%20Me%20%20life%20lessons%20from%20history.html' is not CSS Stylesheet 'chrome-extension://pkehgijcmpdhfbdbbnkijodmdjhbjlgp/skin/socialwidgets.css' referenced by file u'Privacy%20law%20%20US%20_liberty_%20vs%20European%20_dignity_%20%20%20Hannibal%20and%20Me%20%20life%20lessons%20from%20history.html' not in manifest Python function terminated unexpectedly this element does not have children or attributes (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 193, 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 1155, in run File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py", line 185, in __call__ File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py", line 264, in stylize_spine File "site-packages\calibre\ebooks\oeb\stylizer.py", line 214, in __init__ File "lxml.etree.pyx", line 1556, in lxml.etree.__ContentOnlyElement.insert (src\lxml\lxml.etree.c:51291) File "lxml.etree.pyx", line 1544, in lxml.etree.__ContentOnlyElement._raiseImmutable (src\lxml\lxml.etree.c:51019) TypeError: this element does not have children or attributes Last edited by avid01; 04-23-2015 at 06:08 AM. |
![]() |
![]() |
![]() |
#8 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I think you are overestimating the value of defaults, whose purpose is to enforce the greatest common denominator. You'd be surprised how many people still have a Kindle Keyboard (and haven't upgraded the firmware on it). Usability is king.
Nice fancy words though. ![]() Also, side note: I despise Macbooks, and this (deprecation of useful functionality) is only one of the many reasons. Great example. ![]() In the real world, enforcing highfalutin standards regardless of what people actually need, is one reason Macs will never catch on... and why I doubt the calibre defaults will change just on your say so. Hopefully the conversion bug can be fixed (not that it reflects badly on the format itself, simply because a bug only affects the legacy format). ![]() |
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Speaking of which, I believe this commit should fix your problem: https://github.com/kovidgoyal/calibr...8d94b1258cc349
So try converting with calibre 2.26 (released today). |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert HTML to RTF with Page Breaks | odusto | Conversion | 11 | 03-18-2013 05:04 PM |
Simple touch page tuning in sunlight | Dave W | Barnes & Noble NOOK | 17 | 07-05-2012 08:45 AM |
Can't convert kindle ebooks anymore | Cannadutch | Conversion | 6 | 05-16-2012 08:03 AM |
Convert simple HTML files to Kindle format (.mobi?) | rubdottocom | Conversion | 3 | 11-30-2011 11:19 AM |
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch | jbcohen | Which one should I buy? | 4 | 06-18-2011 07:58 PM |