|  05-07-2023, 07:23 PM | #1 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
				
				Book details->Copy->All book details
			 
			
			This copies the book details panel including all of its markup code to the clipboard - essentially what can be seen in the following screenshot:   I'm not sure what the use case is - but the code behind all the blue values (apart from the Links column) are like this: Code: <tr> <td bgcolor="transparent" style="vertical-align: top"> <p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; background-color: transparent"><strong style="font-family: 'Segoe UI Mono','Consolas','monospace'; font-size: 13px; background-color: transparent">Publisher:</strong></p></td> <td bgcolor="transparent" style="vertical-align: top"> <p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; background-color: transparent"><a href="action:7b227465726d223a20227075626c6973686572222c202276616c7565223a20224a6f686e20486f706b696e7320556e6976657273697479222c20226669656c64223a20227075626c6973686572222c2022626f6f6b5f6964223a203832302c202274797065223a2022736561726368227d"><span style="font-size: 13px; color: #6cb4ee">John Hopkins University</span></a></p></td></tr> <tr> IMO it should be be possible to copy something more like this (from the calibre://show-details link labelled Self), i.e. plain text: The columns that are shown in blue which I've boxed in red are virtual columns, IMO they shouldn't have a href="blah blah…" coding. Whereas calibre://, http://, file:/// etc links (i.e. advertised protocols) should retain their a href="blah blah…" coding. BR Last edited by BetterRed; 05-07-2023 at 07:25 PM. | 
|   |   | 
|  05-07-2023, 10:23 PM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			IIRC it copies both HTML and plain text. you choose whichever version you want to paste in the pasting program. And HTML can be used anywhere, for instance you can add the book details to an HTML page, you can paste as rich text in Word, etc.
		 | 
|   |   | 
| Advert | |
|  | 
|  05-08-2023, 12:34 AM | #3 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			If I strip out all the markup, I get this  Code: Id: 820 Title: 2019 Global Health Security Index Title sort: 2019 Global Health Security Index Authors: Dr. David M. Barash Author sort: Barash, David M. Author No Link: Dr. David M. Barash Links: Self Virtual Libraries Vanilla: EPUBS, Has Cover, Has Publisher Virtual Libraries Taglike: EPUBS, Has Cover, Has Publisher Date: 2023-02-24 09:23:12 Folder: Book files Formats: DOCXEPUBPDF Published: 2020-03-24 Publisher: John Hopkins University uuid: 3e10a4b7-c3d2-4374-9bef-6ecf8347c864 Modified: 2023-05-08 08:56:23 Size: 6.19 MB Languages: English Has Notes: N ePUB Size: 6485480 Has Category: False DateMonth: 2020-03-24 File Date: 23 02 2023 22:21:50 Approx Formats: DOCX,EPUB Epub Date: 2023-02-24 eSize: 6485480 Book #: 820 Title: 2019 Global Health Security Index  Authors: Dr. David M. Barash Links: Self Formats: DOCX, EPUB, PDF Published: 2020-03-24 Publisher: John Hopkins University Languages: English File Date: 23 02 2023 22:21:50 Approx Formats: DOCX,EPUB,PDF Epub Date: 2023-02-24 eSize: 6485480 Book #: 820 Then I can paste it into anything, such as a text email, and cut out the stuff I don't want with relative ease. I suggest Book details settings be updated with something like this: Default would be All links (i.e. status quo), the Advertised links option is what is provided by the calibre://book-details link popup, and the Plain text only option is the same after the <a href…></a> markup is stripped. BR | 
|   |   | 
|  05-08-2023, 06:22 AM | #4 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Dont strip out markup paste the plain text version. it already comes with proper newlines.
		 | 
|   |   | 
|  05-08-2023, 05:13 PM | #5 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | |
|   |   | 
| Advert | |
|  | 
|  05-08-2023, 10:16 PM | #6 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Paste it in notepad for example.
		 | 
|   |   | 
|  05-08-2023, 11:31 PM | #7 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			In Notepad I get the same long string I posted before, no newlines.  Same in Notepad++, SciTE, and Word (with no formatting on paste). Here's an example of what it looks like in SciTE - with Wrap on. Blurb and Notes are long text columns with header on top, the Links column, which I've highlighted, is also a long text column with header to the side. BR Last edited by BetterRed; 05-08-2023 at 11:33 PM. Reason: forgot the screen shot | 
|   |   | 
|  05-09-2023, 01:01 AM | #8 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			weird must be a windwos thing. unfortunately am travelling right now so cant check as i dont have a windows system with me.
		 | 
|   |   | 
|  05-09-2023, 01:11 AM | #9 | 
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | 
			
			Using Windows 10, I tried this by calling up the Book Details►Context Menu►Copy►All Book Details. When I pasted it, there were no html tags. Each item on its own line. The below is a copy and paste directly from Calibre. No Notepad++ in between. Spoiler: 
 Is that what you are wanting? | 
|   |   | 
|  05-09-2023, 01:15 AM | #10 | 
| Bibliophagist            Posts: 48,088 Karma: 174315300 Join Date: Jul 2010 Location: Vancouver Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos | 
			
			Works exactly the same under MacOS and Windows 11 when I paste into TextEdit or Notepad++. Spoiler is from Notepad++. Spoiler: 
 | 
|   |   | 
|  05-09-2023, 02:02 AM | #11 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
 Spoiler: 
 I tried running installed 6.17 with no plugins, and I still got everything (except long text columns with heading on top) concatenated in one long string. So, it appears that a calibre setting is having an effect on what gets copied - given it's the same on all my libraries it is probably a global setting. I'll do a test in safe mode to make sure its not an interaction with something else. BR | |
|   |   | 
|  05-09-2023, 02:55 AM | #12 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			Still got the problem in Safe mode. I renamed my config folder, created an empty one, started calibre at the welcome wizard, hooked it up to my Test library and copied the same book details - et voilà I got the result I want. So, its definitely something in the global settings, I'll put them back as they were and have a peek and poke… tweaks.json and py are obvious candidates… although nothing springs to front of mind. BR | 
|   |   | 
|  05-09-2023, 03:21 AM | #13 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			99% sure my problem is caused by having the book details panel UNDER the book list, if I put it to the left of the book list I get a plain text BD with newlines when I right click BD and select Copy->All book details.  Perhaps someone can confirm by changing Prefs->L&F>General->User interface layout to Narrow and try coffee and pasting Book details. BR | 
|   |   | 
|  05-09-2023, 03:22 AM | #14 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			The function that does this doesnt refer to any settings so I cant think of anything that would affect it. It basically just takes the html from the widget preproceses it a bit and converts it to text using the html2text library.
		 | 
|   |   | 
|  05-09-2023, 03:24 AM | #15 | |
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | Quote: 
 | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Error: book-details link to book with no cover | BetterRed | Library Management | 1 | 04-21-2023 09:49 PM | 
| Clickable Book IDs on Book details pane | Comfy.n | Calibre | 26 | 04-11-2023 02:38 PM | 
| Stop seeing book details when I open a book in Android | Jo69 | Android Devices | 5 | 03-27-2021 05:41 AM | 
| Copy book details pastes with space or page break | dunhill | Calibre | 2 | 08-11-2020 09:12 PM | 
| Calibre:Book Cover size in Book Details side pane & Edit Metadata Individually window | Volfer | Calibre | 3 | 01-05-2016 01:56 PM |