09-25-2020, 03:32 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2020
Device: Desktop (Windows)
|
Calibre 5.0: Copying HTML/rich text in ePub doesn't work anymore
Platform: Desktop, Windows 10
--- I'm trying Calibre 5.0, and the new highlighting feature feels really great! By the way, I've noticed that, after upgrading to v5.0, copying a text segment in the Calibre viewer does not work as it did in v4.xx. Suppose a source xhtml file of an ePub file contains something like `<span class="orange">emphasized</span> text`. In Calibre v4.xx copying this text segment would store it in the clipboard as the rich text format so that pasting it to other applications preserves the formatting. e.g., I could paste the text to get `<span style="color: rgb(255, 102, 0);">emphasized</span> text` in an HTML editor. However, in Calibre v5.0, it seems that copy-and-paste always works in the plain-text mode and any formatting information is erased. Is the removal of this feature intended? Or, is there a setting to tweak this behavior? |
09-25-2020, 03:46 AM | #2 |
creator of calibre
Posts: 44,362
Karma: 23752080
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There are no changes to this in calibre code, it could be that something changed in Qt WebEngine (the library used for rendering html) that was updated as part of calibre 5.
|
Advert | |
|
09-25-2020, 09:48 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2020
Device: Desktop (Windows)
|
Thank you for your quick reply.
I have no experience in PyQt, but in another open-source application (Anki) using newest version of QTWebengine, v5.15.0, QTWebenginePage.copy() properly copies selected text into multiple formats. (Perhaps this observation is of useless, though.) Another bug in copying text is as follows: ## Steps for reproduction 1. Open an ePub file. 2. Activate a toolbar in the left side of the Calibre viewer. (Preferences -> Miscellaneous -> Show a toolbar with the most useful actions) 3. Select a text segment and click the 'Copy to Clipboard' button in the toolbar. ## Expected behavior (the behavior in v4.23) The text segment is copied to clipboard in various formats (including HTML). ## Actual behavior (the behavior in v5) Nothing happens. It doesn't copy anything, even as a plain text. |
09-25-2020, 10:01 AM | #4 |
creator of calibre
Posts: 44,362
Karma: 23752080
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
OK open a ticket for it, I will look into it when I have a moment.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre ePub doesn't work on LuLu? | Geremia | Conversion | 1 | 03-09-2013 10:15 PM |
PRS-T1 Recovery Mode doesn't work anymore | bookp | Sony Reader Dev Corner | 2 | 07-13-2012 06:13 PM |
Connect to itunes for Calibre doesn't work anymore | Marquis | Apple Devices | 9 | 02-18-2012 07:21 PM |
DIE ZEIT Premium recipe doesn't work anymore | Moik | Recipes | 1 | 07-16-2011 01:46 PM |
Downloading a cover doesn't work anymore? | JGB | Calibre | 13 | 12-05-2008 01:40 PM |