01-17-2024, 02:06 AM | #631 |
Zealot
Posts: 119
Karma: 16268
Join Date: Apr 2020
Device: none
|
@jhowell
Just a note of gratitude for everything you've done, especially in this thread and all your kind help across the site. Thank you, jhowell Sincerely, Ski |
01-17-2024, 10:54 AM | #632 |
Grand Sorcerer
Posts: 6,819
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
Advert | |
|
01-21-2024, 05:25 AM | #633 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2024
Device: Kindle
|
Exception: rb element not a child of ruby element
I found a book that I can't convert with this plugin.
Exception content: Code:
Exception: rb element not a child of ruby element: b'<ruby><span><rb-bad>珠</rb-bad><img src="image_rsrcCED.jpg" alt="" style="-kfx-render: inline; -kfx-style-name: s5FU; box-sizing: content-box; height: 1em; max-height: 100%; vertical-align: baseline; width: 1em"/></span></ruby>' This book uses the image for non-standard characters, so Code:
<ruby><rb>珠</rb><rt>ruby1</rt><rb><img ... /></rb><rt>ruby2</rt></ruby> I slightly modified the code to the below and confirmed it works in my case: Code:
while rb_elem.getparent() is not event_elem: if len(rb_elem.getparent()) != 1: # rb_elem.tag = "rb-bad" # raise Exception("rb element not a child of ruby element: %s" % etree.tostring(event_elem)) break # CHANGED to break rb_elem = rb_elem.getparent() rb_elem = self.replace_element_with_container(rb_elem, "rb") rb_parent = rb_elem.getparent() # ADD ruby_id = ruby_id_entry.pop("$758") ruby_content = self.get_ruby_content(ruby_name, ruby_id) if ruby_content.pop("$159") == "$269": rt_elem = etree.Element("rt") rb_parent.insert(rb_parent.index(rb_elem) + 1, rt_elem) # MODIFIED to rb_parent |
01-21-2024, 12:18 PM | #634 |
Grand Sorcerer
Posts: 6,819
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
01-22-2024, 10:52 PM | #635 |
Grand Sorcerer
Posts: 6,813
Karma: 26985557
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
With the latest Scribe update (6.16.6), Scribe now lets you set time/date automatically, just like every other internet connected device since forever.
I have in past experimented with updating/replacing notebooks, and before overwriting I had to change the modify date of the nbk file by +12h or so before overwriting the target nbk, or the change would be ignored and the previous version synced back down from cloud. This is no longer necessary, I can just copy to computer and back to the target folder, and it 'takes'. I also thought that I had converted Print Replica document pen annotations into notebooks by overwriting a notebook nbk. But when I try it, all I see is the letter 'P' in upper left corner of the (and the notebook no longer behaves correctly). I am probably misremembering this. Probably we've even discussed this previously. So let me try a different question: is it feasible to convert an 'annotation' nbk into a 'notebook' nbk? Use case is that one is using personal document as a notebook (some template or they want to be able to zoom/pan, or use collections instead of folders) and they want to send it for handwriting conversion. As things stand you have to copy and paste using lasso tool one page at a time. Last edited by tomsem; 01-22-2024 at 11:08 PM. |
Advert | |
|
01-23-2024, 02:35 PM | #636 | ||
Grand Sorcerer
Posts: 6,819
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
It may be feasible in principle but would require further research into what is going wrong and likely an ability to modify notebooks using outside software to correct the problem. That isn't something I intend to invest my time doing. |
||
01-23-2024, 06:09 PM | #637 | |
Grand Sorcerer
Posts: 6,813
Karma: 26985557
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
I will be happy to investigate and try to figure out what is involved. Previous to the update, Kindle ran on GMT time. A file copied from computer (I'm in Pacific Time) would somehow appear 'in the past' with respect to the date Kindle last had for the file (in some 'sync' database, I infer). Scribe would infer that the cloud version was newer, and ignore the changed notebook and replace it with the earlier version on sync. Changing the modify date time to some value greater than the current GMT time (9 ish hours for me) flagged the notebook as 'changed' and would then accept and sync it. With the update, replacing the file generates a modify date that is greater than the last sync time, so it gets accepted as changed. Last edited by tomsem; 01-23-2024 at 06:23 PM. |
|
01-25-2024, 10:38 AM | #638 |
Grand Sorcerer
Posts: 6,819
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Version 2.8.0 - 25 Jan 2024
Fix conversion of Print Replica books when using calibre versions older than 6.0. (Fixes "AttributeError: 'NoneType' object has no attribute 'PdfReader'") Fix conversion of books with ruby elements containing images. (Fixes "Exception: rb element not a child of ruby element") |
01-28-2024, 08:57 AM | #639 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2023
Device: Kobo Elipsa 2E
|
jhowell Thank you for this tool it worked great! Question for you, does this also work with the current kindle app on Mac? i.e. version 7.x? I couldn't get it to work using the current 10.0.9 DeDRM and current version of your tool.
It works well with the Kindle Classic App however. Thank you. |
01-28-2024, 09:26 AM | #640 | |
Grand Sorcerer
Posts: 6,819
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
|
|
01-29-2024, 11:48 AM | #641 |
Grand Sorcerer
Posts: 6,819
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Version 2.8.1 - 29 Jan 2024
Fix plugin not working using calibre versions older than 6.0. |
02-01-2024, 08:59 AM | #642 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2024
Device: Kindle
|
Quote:
edit: I'll try the latest version a bit later. |
|
02-01-2024, 11:40 AM | #643 | |
Grand Sorcerer
Posts: 6,819
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Hopefully the latest plugin release solves the problem. Please let me know if not. |
|
02-29-2024, 12:57 PM | #644 |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2024
Device: Kindle
|
Hi
I am trying to perform a conversion, but I am encountering the following error: ERROR: KFX conversion failed: error('invalid group reference 1 at position 3') calibre, version 7.5.1. Does anyone know how to fix it? |
02-29-2024, 02:09 PM | #645 | |
Grand Sorcerer
Posts: 6,819
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
See the last paragraph in the "Dealing with conversion errors" topic in the first post of this thread for information on how to obtain a conversion log. If you could post that log here it would be very helpful. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Input] Microsoft Doc Input Plugin | igi | Plugins | 76 | 06-28-2019 05:47 AM |
KFX conversion, transfer back to library issue. | shoelesshunter | Conversion | 2 | 08-22-2017 07:40 PM |
[Conversion Input] LaTeX Formulas Input Conversion Plugin | sevyls | Plugins | 0 | 03-23-2015 06:52 AM |
[Input Plugin] DOCX Input | SauliusP. | Plugins | 42 | 06-05-2013 05:01 AM |
Looking For MHT Input Conversion Plugin | FlooseMan Dave | Plugins | 4 | 03-30-2010 06:52 PM |