Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-27-2023, 12:20 PM   #1
Kelpman
Junior Member
Kelpman began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2020
Device: none
Question Paste Metadata from (external) Clipboard

In Calibre I can use the clipboard to set metadata via the "Copy metadata" and "Paste metadata" menu entries. If I copy the metadata of a book and paste it into an external application like a text editor I get a formatted output of the copied metadata. Copying this formatted text back to the clipboard I'm not able to paste it back onto a book.

Is there any way to create a clipboard entry in an external application that I'm able to paste as metadata onto a book in Calibre?

Regards

Kelpman
Kelpman is offline   Reply With Quote
Old 08-27-2023, 03:12 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
In the MDE You can copy Comments: (Normal view) and it pastes into apps like NP++ just fine. OTOH I do not use formatting in my comments so YMMV

The command line tool calibre-db --list can export as CSV, but that may not be convenient to use as a single
theducks is offline   Reply With Quote
Advert
Old 08-27-2023, 07:04 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Kelpman View Post
. . .
Is there any way to create a clipboard entry in an external application that I'm able to paste as metadata onto a book in Calibre?
Windows: short answer - No.

The clipboard data being pasted into calibre metadata must have been put there by the calibre copy metadata tool; with nothing in between such as a text editor or a clipboard extender. Why, because it's highly structured data in a format that is specific to calibre; text editors, clipboard extenders etc have editing features.

The above is based on my observations using Notepad, Notepad++, and Clipboard Fusion from Binary Fortress.

I haven't tried pasting from the Windows clipboard history stack, see ==>> How to Enable and Use Clipboard History on Windows 10.

I use calibre's metadata copy and paste several times a day, on most days of the week.

BR
BetterRed is offline   Reply With Quote
Old 08-28-2023, 12:36 AM   #4
Kelpman
Junior Member
Kelpman began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by BetterRed View Post
The clipboard data being pasted into calibre metadata must have been put there by the calibre copy metadata tool; with nothing in between such as a text editor or a clipboard extender. Why, because it's highly structured data in a format that is specific to calibre; text editors, clipboard extenders etc have editing features.
That reply set me on the right track, thanks!

I actually got it working by reproducing the XML structure of the copied metadata and changing the MIME data to 'application/calibre-book-metadata'. I was able to easily do this in Python (with PyQt6) and it should also be doable in JavaScript (Clipboard API) and other languages as well.
Kelpman is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and paste selected metadata emphyrion Library Management 3 04-28-2020 05:22 PM
Partially Paste Metadata halloleo Library Management 6 03-11-2020 03:40 AM
plugin to paste an image file from clipboard dhdurgee Plugins 23 02-02-2017 02:04 PM
[Bug/Strange behavior] Can't paste cover from clipboard to GIMP Katsunami Calibre 9 01-25-2017 10:10 AM
Copy Metadata to Clipboard EmilThelonius Library Management 7 10-15-2016 07:36 AM


All times are GMT -4. The time now is 03:46 PM.


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