11-20-2020, 12:54 PM | #16 |
Bibliophagist
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Looking at the first message in the thread, I have to wonder if @groob is not using calibre but another app to try to launch that reference since he mentioned using dash as an example.
|
11-20-2020, 04:49 PM | #17 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2020
Device: none
|
Hi -- to the previous comments where this kind of thing works when the Calibre app itself executes the link. Like the following:
Code:
open -a calibre.app --args calibre://show-book/Calibre_Library/12 Code:
/Applications/calibre.app/Contents/MacOS/calibre calibre://show-book/Calibre_Library/12 For instance, I'm writing notes and want to make a markdown link to a book in Calibre like this: Code:
[Link to a Book](calibre://show-book/_hex_-43616c696272655f4c696272617279/206) https://manual.calibre-ebook.com/url...bre-url-scheme I'm trying to to do this thing exactly as suggested in the docs: Quote:
|
|
11-20-2020, 06:02 PM | #18 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Platform Windows 10 2004, Calibre 5.5
I store Author information (bio, obits, pictures etc) in Evernote, which I access directly, or via calibre's Author Link field. I would like to use the calibre URL scheme to show the books for an author, this is as far as I've progressed: This calibre://switch-library/Test performs as expected - starts calibre if not started and switches to my Test Library From this calibre://search/Library_Name?q=query I assumed this calibre://search/Test?Better would switch to the Test library and do the search for Better. But it doesn't do the library switch before doing the search on the current library for Better. Nor does it switch to the Test library if calibre is not running, it opens the 'last used' library and searches it. This calibre://search/Test?authors:"=Better Red" does nothing. I tried replacing "Better Red" with hex, as in calibre://search/Test?authors:=42657474657220526564 but that also does nothing. For my specific use, something like calibre://show-author/Library_Name/author_id would be ideal --- would need to show the author_id somewhere - e.g. a column in Manage Authors that could be copied. FWIW : I'm using Word as the testbed, I'll get to Evernote once I get it working in Word. BR |
11-20-2020, 09:28 PM | #19 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@basker: If it works with one, it has to work with the other. However, that may not be true on macOS which is a particularly gimped OS, typical of Apple software. I'll take a look at it, when I have a moment. The good Lord alone knows what special hoops calibre will have to jump through for Apple's sake.
@BetterRed: You have the syntax wrong, you are missing the q= and yes it should switch libraries before doing the search, however, for some reason I forgot to implement that for the search action, fixed here: https://github.com/kovidgoyal/calibr...0e843883c82253 |
11-21-2020, 01:42 AM | #20 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yup, I was correct. macOS needs an extra hoop to jump through, because it handles URLs by sending messages to applications rather than just running them with commadn line arguments. This takes care of it: https://github.com/kovidgoyal/calibr...42bfaae1cb5fb5
|
11-21-2020, 03:44 AM | #21 | |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
11-21-2020, 05:55 AM | #22 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Working great - once I add the author search links to my Authors notebook entries I can cast the calibre version 2.0 server adrift
BR |
11-21-2020, 12:52 PM | #23 | |
Enthusiast
Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
|
Quote:
calibre://show-book/Calibre_Library/1 and I can confirm that this indeed open calibre. Then I've tried the suggested approach: open -a calibre.app --args calibre://show-book/Calibre_Library/1 but that doesn't work either. Btw, apart this apparent bug on my MacOs why can't we just simply use the plain url calibre://show-book/Calibre_Library/1 ? This way we could simply use as a standard link in any note taking app. Is the `open -a calibre.app` part absolutely necessary? |
|
11-21-2020, 05:31 PM | #24 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Linking books has been at the top of my calibre wish-list forever.
You can use calibre protocol URI's in long text columns to link related items within and across libraries. I already have a custom long text column called "Related\#related" in my major libraries. So, I can now watch Kurosawa's Ran (or read the Screenplay/Storyboard PDF) in my Movies library via a calibre://view-book/ link in the Related custom column of King Lear in my Books library, and get back to King Lear via a calibre://show-book/ link in the Related custom column of Ran my Movies library. Fantastic BR |
11-21-2020, 05:53 PM | #25 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I originally posted this in the JobSpy plugin thread.
Kovid has decided the suggestion was worth including in the core Suggestion - a tool to create and copy calibre URL links to the clipboard for the selected book, something like:
BR Last edited by BetterRed; 11-23-2020 at 03:02 PM. |
11-22-2020, 08:38 PM | #26 |
Custom User Title
Posts: 8,618
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I would use this too.
|
11-22-2020, 10:05 PM | #27 | |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
11-23-2020, 05:12 AM | #28 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Great - I'll delay updating my existing interbook links for a bit.
Hmmm - let's try for the trifecta, how about a calibre://search/<library-name>?q=authors:"=<author-name>" in the Authors context menu. Stay Safe - BR |
11-23-2020, 07:50 AM | #29 | |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
this is the context menu you get from clicking the author in the book details panel, not the one in the tag browser. |
|
11-23-2020, 12:51 PM | #30 | |
Enthusiast
Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
|
Quote:
Is the fix already published in a new build already or should we wait a bit? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
html to pdf error: Blocking URL request with scheme: https | bobwolfe | Conversion | 8 | 06-15-2021 06:04 AM |
Help with URL Scheme for Google Translate (Mobile) | MeSue | Marvin | 30 | 10-04-2013 10:53 AM |
Would anyone know Slovoed's URL Scheme | Heitor | Marvin | 3 | 09-25-2013 01:16 AM |
Kobo custom font, naming scheme | sneakyspider | Kobo Reader | 3 | 05-16-2013 04:27 AM |