Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2021, 06:16 AM   #496
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
Posts: 147
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
The hyphenation option adds CSS to either force hyphenation on or off. If neither option is selected, then whatever is already in the book is used. And if there is no hyphenation CSS in the book, it goes to the device. And that is basically if you use justification, then hyphenation will happen. If you use ragged-right alignment, then hyphenation won't be done.
What you're saying is if neither the option to enable or disable hyphenation is selected in the plugin, the device will read the setting within the KEPUB file and on that basis decide whether or not to hyphenate justified text? Or is it always done for justified text as long as there's a proper hyphenation dictionary on the device?
Buhaj47 is offline   Reply With Quote
Old 11-29-2021, 08:03 AM   #497
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Buhaj47 View Post
What you're saying is if neither the option to enable or disable hyphenation is selected in the plugin, the device will read the setting within the KEPUB file and on that basis decide whether or not to hyphenate justified text? Or is it always done for justified text as long as there's a proper hyphenation dictionary on the device?
Sort of. If there are no hyphenation rules in the book, hyphenation happens if the book is justified. How that happens will be based on the hyphenation dictionary. But, I have no idea what happens if there is no hyphenation dictionary for the books language.

If there are hyphenation rules in the book, they should override the above. The options add the rules to either enable or disable hyphenation. If the rules are turning hyphenation on, I don't know how this interacts with the settings in the hyphenation dictionary.
davidfor is offline   Reply With Quote
Advert
Old 02-06-2022, 02:09 PM   #498
Gone
Out of order
Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.
 
Posts: 601
Karma: 1649868
Join Date: Feb 2014
Device: Libra Colour
Hi guys,

Lately, when I send ePub to my Kobo Libra 2, Calibre asks me what format I want to send and then save the converted kePub on my Mac.

Before, I had nothing to do except click on Send to my device (Kobo). The ePub was converted on the fly, no trace of it on my Mac mini M1.

So, why does Calibre asks me which format I want to send? In the settings, it is specified that I want kePub.

And why does Calibre save the kePub on my computer?

I've been looking all over the settings, and I can't see why. I think it started to happen since the last kePub Output plugin update. Not sure.

Thanks.
Gone is offline   Reply With Quote
Old 02-06-2022, 07:37 PM   #499
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Claude_C View Post
Hi guys,

Lately, when I send ePub to my Kobo Libra 2, Calibre asks me what format I want to send and then save the converted kePub on my Mac.

Before, I had nothing to do except click on Send to my device (Kobo). The ePub was converted on the fly, no trace of it on my Mac mini M1.

So, why does Calibre asks me which format I want to send? In the settings, it is specified that I want kePub.

And why does Calibre save the kePub on my computer?

I've been looking all over the settings, and I can't see why. I think it started to happen since the last kePub Output plugin update. Not sure.
I can think of two reasons for this. And I think you might have both.

Firstly, calibre is doing a conversion to kepub, not using the KoboTouchExtended driver to send the book to the device. Either, the KoboTouchExtended driver has been uninstalled, or it has been disabled. In either case, the built-in KoboTouch driver is being used. You can check the state of the driver in the Plugins page of the preferences.

You might have changed the default send-to-device action to the "Send specific format" instead of "Send to main memory". You can change this by right-clicking (or the Mac equivalent) the "Send to device" button, clicking the "Set default send to device action" and choosing "Send to main memory".
davidfor is offline   Reply With Quote
Old 02-06-2022, 10:00 PM   #500
Gone
Out of order
Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.Gone has a complete set of Star Wars action figures.
 
Posts: 601
Karma: 1649868
Join Date: Feb 2014
Device: Libra Colour
Quote:
Originally Posted by davidfor View Post
I can think of two reasons for this. And I think you might have both.

Firstly, calibre is doing a conversion to kepub, not using the KoboTouchExtended driver to send the book to the device. Either, the KoboTouchExtended driver has been uninstalled, or it has been disabled. In either case, the built-in KoboTouch driver is being used. You can check the state of the driver in the Plugins page of the preferences.

You might have changed the default send-to-device action to the "Send specific format" instead of "Send to main memory". You can change this by right-clicking (or the Mac equivalent) the "Send to device" button, clicking the "Set default send to device action" and choosing "Send to main memory".

KoboTouchExtended is activated. KoboTouch is deactivated.When I plug in my Kobo, in Calibre it says that KoboTouchExtended has been detected.

You were right about the "Send to main memory". That was the culprit for me. Now it works like before.

Many thanks! It has been bugging me for a while.
Gone is offline   Reply With Quote
Advert
Old 02-14-2022, 02:07 PM   #501
narcessaxx
Junior Member
narcessaxx began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2022
Device: Kobo Libra 2
Conversion to Kepub Error

Hi there, I keep getting this error when trying to convert files to kepub. This is a new error, I haven’t had any issues with it in the past, so I am wondering if it's the plugin acting up. I am using the latest version of calibre and the latest version of the kepub output.


--
Spoiler:


Convert book 1 of 1 (Witchmark)
DeDRM v7.2.1: Trying to decrypt hfrx0vau.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “hfrx0vau.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Integration status: True
Conversion options changed from defaults:
verbose: 2
cover: '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/9f7ftept.jpeg'
output_profile: 'tablet'
read_metadata_from_opf: '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/lup75o_k.opf'
Resolved conversion options
calibre version: 5.36.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/9f7ftept.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,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'epub_version': '3',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'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 0x11c1aaa30>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'kepub_clean_markup': True,
'kepub_disable_hyphenation': False,
'kepub_hyphenate': True,
'kepub_hyphenate_chars': 6,
'kepub_hyphenate_chars_after': 3,
'kepub_hyphenate_chars_before': 3,
'kepub_hyphenate_limit_lines': 2,
'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.TabletOutput object at 0x11c1aaeb0>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/lup75o_k.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': '',
'search_replace': '[]',
'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,
'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,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
Failed to initialize plugin: '/Users/roseberry/Library/Preferences/calibre/plugins/Read MP3 AudioBook metadata.zip'
Failed to initialize plugin: '/Users/roseberry/Library/Preferences/calibre/plugins/Wikidata.zip'
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
decrypted_ebook = self.ePubDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
raise DeDRMError("{0} v{1}: Couldn't decrypt after {2:.1f} seconds. DRM free perhaps?".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.5 seconds. DRM free perhaps?
DeDRM v7.2.1: Trying to decrypt hfrx0vau.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “hfrx0vau.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
decrypted_ebook = self.ePubDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
raise DeDRMError("{0} v{1}: Couldn't decrypt after {2:.1f} seconds. DRM free perhaps?".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.5 seconds. DRM free perhaps?
InputFormatPlugin: EPUB Input running
on /var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/hfrx0vau.epub
Failed to parse as XML, parsing as tag soup
Traceback (most recent call last):
File "calibre/ebooks/oeb/polish/parsing.py", line 81, in parse
ValueError: Root tag is not <html> in the XHTML namespace

Parsing all content...
Parsing chapter1.xhtml ...
Parsing chapter4.xhtml ...
Parsing title.xhtml ...
Parsing chapter11.xhtml ...
Parsing chapter14.xhtml ...
Parsing chapter15.xhtml ...
Parsing chapter22.xhtml ...
Parsing chapter7.xhtml ...
Parsing torad.xhtml ...
Parsing abouttheauthor.xhtml ...
Parsing chapter2.xhtml ...
Parsing chapter20.xhtml ...
Parsing chapter25.xhtml ...
Parsing contents.xhtml ...
Parsing newsletter.xhtml ...
Parsing chapter10.xhtml ...
Parsing chapter5.xhtml ...
Parsing mini_toc.xhtml ...
Parsing toc.xhtml ...
Parsing chapter19.xhtml ...
Parsing chapter23.xhtml ...
Parsing chapter8.xhtml ...
Parsing copyright.xhtml ...
Parsing acknowledgments.xhtml ...
Parsing chapter13.xhtml ...
Parsing chapter3.xhtml ...
Parsing copyrightnotice.xhtml ...
Parsing dedication.xhtml ...
Parsing styles/stylesheet.css ...
Parsing chapter21.xhtml ...
Parsing chapter6.xhtml ...
Parsing cover.xhtml ...
Parsing chapter24.xhtml ...
Parsing chapter12.xhtml ...
Parsing chapter16.xhtml ...
Parsing chapter17.xhtml ...
Parsing chapter18.xhtml ...
Parsing chapter9.xhtml ...
The item toc.xhtml is not a XML document. Removing it from spine.
Reading TOC from HTML...
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 11.60400pt
Removing fake margins...
Found 34 items of level: div_1
Found 4323 items of level: p_2
div_1 left margin stats: Counter({'0': 30})
div_1 right margin stats: Counter({'0': 30})
p_2 left margin stats: Counter({'0': 4323})
p_2 right margin stats: Counter({'0': 4323})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'images/author-photo.jpg' from manifest
Trimming 'torad.xhtml' from manifest
Trimming 'images/backad.jpg' from manifest
Trimming 'mini_toc.xhtml' from manifest
Trimming 'images/Title-Page.jpg' from manifest
Trimming 'images/twitter_logo.png' from manifest
Trimming 'images/NewsletterSignup.jpg' from manifest
Creating KePub Output...
2022-02-14 11:03:09 [DEBUG] Running ePub conversion
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in chapter1.xhtml...
No large trees found
Looking for large trees in chapter4.xhtml...
No large trees found
Looking for large trees in title.xhtml...
No large trees found
Looking for large trees in chapter11.xhtml...
No large trees found
Looking for large trees in chapter14.xhtml...
No large trees found
Looking for large trees in chapter15.xhtml...
No large trees found
Looking for large trees in chapter22.xhtml...
No large trees found
Looking for large trees in chapter7.xhtml...
No large trees found
Looking for large trees in abouttheauthor.xhtml...
No large trees found
Looking for large trees in chapter2.xhtml...
No large trees found
Looking for large trees in chapter20.xhtml...
No large trees found
Looking for large trees in chapter25.xhtml...
No large trees found
Looking for large trees in contents.xhtml...
No large trees found
Looking for large trees in newsletter.xhtml...
No large trees found
Looking for large trees in chapter10.xhtml...
No large trees found
Looking for large trees in chapter5.xhtml...
No large trees found
Looking for large trees in chapter19.xhtml...
No large trees found
Looking for large trees in chapter23.xhtml...
No large trees found
Looking for large trees in chapter8.xhtml...
No large trees found
Looking for large trees in copyright.xhtml...
No large trees found
Looking for large trees in acknowledgments.xhtml...
No large trees found
Looking for large trees in chapter13.xhtml...
No large trees found
Looking for large trees in chapter3.xhtml...
No large trees found
Looking for large trees in copyrightnotice.xhtml...
No large trees found
Looking for large trees in dedication.xhtml...
No large trees found
Looking for large trees in chapter21.xhtml...
No large trees found
Looking for large trees in chapter6.xhtml...
No large trees found
Looking for large trees in cover.xhtml...
No large trees found
Looking for large trees in chapter24.xhtml...
No large trees found
Looking for large trees in chapter12.xhtml...
No large trees found
Looking for large trees in chapter16.xhtml...
No large trees found
Looking for large trees in chapter17.xhtml...
No large trees found
Looking for large trees in chapter18.xhtml...
No large trees found
Looking for large trees in chapter9.xhtml...
No large trees found
2022-02-14 11:03:09 [WARN] This EPUB file has no Table of Contents. Creating a default TOC
2022-02-14 11:03:10 [INFO] Upgrading to EPUB 3...
2022-02-14 11:03:10 [DEBUG] Done ePub conversion
2022-02-14 11:03:10 [DEBUG] Creating KePub Container for ePub at /var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/swlbf3w4.kepub
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file titlepage.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file title.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file copyrightnotice.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file dedication.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter1.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file cover.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter3.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter2.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter4.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter6.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter5.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter7.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter8.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter9.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter10.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter11.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter13.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter12.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter15.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter14.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter16.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter17.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter18.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter19.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter20.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter21.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter22.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter23.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter24.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter25.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file acknowledgments.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file abouttheauthor.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file newsletter.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file contents.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file copyright.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file toc.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file nav.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file cover.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file titlepage.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file title.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file copyrightnotice.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter1.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter2.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file dedication.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter3.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter5.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter7.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter8.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter9.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter6.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter4.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter10.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter12.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter11.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter13.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter14.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter15.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter16.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter17.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter18.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter19.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter20.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter21.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter22.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter23.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter24.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter25.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file acknowledgments.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file newsletter.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file abouttheauthor.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file contents.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file copyright.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file toc.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file nav.xhtml
2022-02-14 11:03:10 [INFO] Copying file '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/_zp5jv02_KePubOutputPluginInfo' to '/private/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/_8xv636n_epub_container' as 'plugininfo.kte'
2022-02-14 11:03:10 [DEBUG] Found meta node with name=cover
2022-02-14 11:03:10 [INFO] Found cover image ID 'cover'
2022-02-14 11:03:10 [DEBUG] Found an item node with cover ID
2022-02-14 11:03:10 [WARN] Item node is already set as cover-image
2022-02-14 11:03:10 [INFO] Copying file '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/kepub_9c23r10q_hyphenate' to '/private/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/_8xv636n_epub_container' as 'kte-css/hyphenation.css'
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file titlepage.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file cover.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file title.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file copyrightnotice.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file dedication.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter2.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter4.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter3.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter6.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter7.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter5.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter10.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter8.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter13.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter9.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter1.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter15.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter17.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter18.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter20.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter12.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter22.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter16.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter24.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter25.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file acknowledgments.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter21.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter23.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file contents.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter19.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter14.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file abouttheauthor.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter11.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file toc.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file newsletter.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file nav.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file copyright.xhtml
2022-02-14 11:03:10 [ERROR] Failed converting!
Traceback (most recent call last):
File "calibre_plugins.kepubout.conversion.kepub_output" , line 188, in convert
common.modify_epub(
File "calibre_plugins.kepubout.common", line 220, in modify_epub
container.add_content_file_reference("kte-css/{0}".format(css_path))
File "calibre_plugins.kepubout.container", line 222, in add_content_file_reference
self.__run_async_over_content(self.__add_content_f ile_reference_impl, (name,))
File "calibre_plugins.kepubout.container", line 375, in __run_async_over_content
self.__run_async(func, names)
File "calibre_plugins.kepubout.container", line 368, in __run_async
future.result(timeout=10)
File "concurrent/futures/_base.py", line 432, in result
File "concurrent/futures/_base.py", line 388, in __get_result
File "concurrent/futures/thread.py", line 57, in run
File "calibre_plugins.kepubout.container", line 234, in __add_content_file_reference_impl
head = head[0]
IndexError: list index out of range

Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 39, in <module>
File "site.py", line 35, in main
File "calibre/utils/ipc/worker.py", line 215, in main
File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override
File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "calibre/ebooks/conversion/plumber.py", line 1281, in run
File "calibre_plugins.kepubout.conversion.kepub_output" , line 188, in convert
File "calibre_plugins.kepubout.common", line 220, in modify_epub
File "calibre_plugins.kepubout.container", line 222, in add_content_file_reference
File "calibre_plugins.kepubout.container", line 375, in __run_async_over_content
File "calibre_plugins.kepubout.container", line 368, in __run_async
File "concurrent/futures/_base.py", line 432, in result
File "concurrent/futures/_base.py", line 388, in __get_result
File "concurrent/futures/thread.py", line 57, in run
File "calibre_plugins.kepubout.container", line 234, in __add_content_file_reference_impl
IndexError: list index out of range

Last edited by theducks; 02-14-2022 at 02:35 PM. Reason: Please use Spoiler for logs
narcessaxx is offline   Reply With Quote
Old 04-23-2022, 12:31 PM   #502
Clio
Enthusiast
Clio began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Jan 2021
Location: UK
Device: Kobo Glo HD, Kobo Libra2, Kindle
Hello,

I hope someone might be able to help me with a question please. I am converting some books to kepub format, and most of them have converted very well. But there is one which won't convert. I asked this question in a different section of this forum, and was told that it was due to a problem with the kepub output plugin, and I should post here. I hope this is the right place.

Attached is a screenshot of the error message I got when the book wouldn't convert.

Thanks in advance for any help!
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	98
Size:	423.2 KB
ID:	193440  
Clio is offline   Reply With Quote
Old 04-24-2022, 08:20 AM   #503
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Clio View Post
Hello,

I hope someone might be able to help me with a question please. I am converting some books to kepub format, and most of them have converted very well. But there is one which won't convert. I asked this question in a different section of this forum, and was told that it was due to a problem with the kepub output plugin, and I should post here. I hope this is the right place.

Attached is a screenshot of the error message I got when the book wouldn't convert.

Thanks in advance for any help!
That's happening very early in the conversion before anything kepub specific is done. The Kepub Output plugin basically does the conversion to epub and then adds the kepub specific things. The line in error is happening in is in the ePub code and looks to be a problem with an obfuscated font. I would expect to see the same error in conversion to epub.

Can you run an conversion to epub and see what happens? Opening it in the calibre editor and running the check process might also show an error. But, I don't know if that checks the fonts.

Also, can you post the full conversion output? If you save it to a file and attach that, it should avoid any text size issues in the post.
davidfor is offline   Reply With Quote
Old 04-24-2022, 10:48 AM   #504
Clio
Enthusiast
Clio began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Jan 2021
Location: UK
Device: Kobo Glo HD, Kobo Libra2, Kindle
Quote:
Originally Posted by davidfor View Post
That's happening very early in the conversion before anything kepub specific is done. The Kepub Output plugin basically does the conversion to epub and then adds the kepub specific things. The line in error is happening in is in the ePub code and looks to be a problem with an obfuscated font. I would expect to see the same error in conversion to epub.

Can you run an conversion to epub and see what happens? Opening it in the calibre editor and running the check process might also show an error. But, I don't know if that checks the fonts.

Also, can you post the full conversion output? If you save it to a file and attach that, it should avoid any text size issues in the post.
Hello and thank you!

I have tried converting it to epub and that seems to have worked. Although I haven't yet loaded the epub onto my ereader, only looked at it in the Calibre viewer.

Attached is the job details from converting it to epub. Is that what you meant? Or was it something else? Sorry if I misunderstood. And thank you again!
Attached Files
File Type: docx job details.docx (17.0 KB, 74 views)
Clio is offline   Reply With Quote
Old 04-25-2022, 08:56 AM   #505
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Clio View Post
Hello and thank you!

I have tried converting it to epub and that seems to have worked. Although I haven't yet loaded the epub onto my ereader, only looked at it in the Calibre viewer.

Attached is the job details from converting it to epub. Is that what you meant? Or was it something else? Sorry if I misunderstood. And thank you again!
That seems to have worked. What format are you converting from? It appears to be a MOBI. Which I didn't know had obfuscated fonts. Or embedded fonst at all.

I think I need to see the book. If it is legal to, please attach it. Or post a link if it can be downloaded freely. Otherwise, upload it somewhere and PM me a link and I'll see what I can do.

You could also try to convert the epub you now have to kepub and see what happens. That may work for you, but, I'd still like to look at the original book.
davidfor is offline   Reply With Quote
Old 04-26-2022, 02:39 PM   #506
Clio
Enthusiast
Clio began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Jan 2021
Location: UK
Device: Kobo Glo HD, Kobo Libra2, Kindle
Quote:
Originally Posted by davidfor View Post
That seems to have worked. What format are you converting from? It appears to be a MOBI. Which I didn't know had obfuscated fonts. Or embedded fonst at all.

I think I need to see the book. If it is legal to, please attach it. Or post a link if it can be downloaded freely. Otherwise, upload it somewhere and PM me a link and I'll see what I can do.

You could also try to convert the epub you now have to kepub and see what happens. That may work for you, but, I'd still like to look at the original book.
Hi, and thank you again. The original format is AZW3. Attached is the job details of what happens when I try to convert it from AZW3 to kepub.

I will try converting from epub to kepub and see if that works.

It probably wouldn't be legal to attach the book here, but do you have somewhere I can upload it as you suggested so that you can look at it?
Attached Files
File Type: docx AZW3-kepub.docx (18.6 KB, 68 views)
Clio is offline   Reply With Quote
Old 04-26-2022, 04:10 PM   #507
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: 74,620
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Clio View Post
Hi, and thank you again. The original format is AZW3. Attached is the job details of what happens when I try to convert it from AZW3 to kepub.

I will try converting from epub to kepub and see if that works.

It probably wouldn't be legal to attach the book here, but do you have somewhere I can upload it as you suggested so that you can look at it?
One thing to try is to load the eBook into the Calibre editor and delete any embedded fonts. Then try the conversion to KePub again.
JSWolf is offline   Reply With Quote
Old 04-26-2022, 11:20 PM   #508
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Clio View Post
Hi, and thank you again. The original format is AZW3. Attached is the job details of what happens when I try to convert it from AZW3 to kepub.

I will try converting from epub to kepub and see if that works.
It's definitely happening when conversion to kepub. I'm surprised it didn't happen with the conversion to epub. It probably means something has changed in the epub conversion pipeline that the kepub conversion skips. It seems to be with encrypting the embedded font, so it probably means the key has been lost.
Quote:
It probably wouldn't be legal to attach the book here, but do you have somewhere I can upload it as you suggested so that you can look at it?
Most people use Google drive or something similar. If you are worried about it getting out, there are options to hide the files. Or you can zip it with a password and send me the password separately.

Also, it would be simpler for me if you saved the logs as text files. They are just a little easier to open.
davidfor is offline   Reply With Quote
Old 04-27-2022, 10:09 AM   #509
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,566
Karma: 84810789
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by davidfor View Post
It's definitely happening when conversion to kepub. I'm surprised it didn't happen with the conversion to epub..
I have that book from Amazon. It contains corrupted font files. Calibre generally deals with that well enough but if the option to upgrade to EPUB version 3 is used on that book then the files become even more corrupted to the point that the book won’t open anymore in the calibre reader or editor.
jhowell is online now   Reply With Quote
Old 04-27-2022, 09:11 PM   #510
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jhowell View Post
I have that book from Amazon. It contains corrupted font files. Calibre generally deals with that well enough but if the option to upgrade to EPUB version 3 is used on that book then the files become even more corrupted to the point that the book won’t open anymore in the calibre reader or editor.
That could be part of it. But, in both conversions, the starting point is an AZW3 file. The Kepub Output plugin is largely a wrapper for the Epub Output plugin. It should be doing some setup, running the epub conversion and then doing the kepub specific stuff. That is why I was surprised that the same error didn't happen when converting to epub. I have to go back and look at the code as I remember something didn't work purely from class inheritance. We may have missed something. I'll have to see if I have an AZW3 book with fonts to see how it goes. I the book in question from Kobo. The epub doesn't seem to have any issues.

It does make me wonder if it is a matter of exceptions being caught and handled differently.

@Clio: Can you try the conversion but on the Kepub Output page select 2 for the EPUB version? That might work. I can't think there would be any real advantage in using epub3 over epub2.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
catalogue builder output columns are not in the same order in the output KWhytte Library Management 5 12-04-2012 02:03 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
Plugin which uses net as input and output medve Development 0 12-04-2011 03:20 PM
Creat new Output plugin (LaTeX and/or txt2tags) Lebewesen Development 3 11-22-2011 11:10 AM
AZW Conversion Output Plugin tylau0 Plugins 59 08-14-2011 10:36 PM


All times are GMT -4. The time now is 08:02 PM.


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