Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

View Poll Results: What features would you like added to this plugin?
Release existing bug fixes now 4 50.00%
Add options to make search more flexible 2 25.00%
Offer fewer options 1 12.50%
Link all matching gutenberg IDs 1 12.50%
Only link gutenberg ID for exact edition match 1 12.50%
Import more wikidata fields 2 25.00%
Handle wikidata entries with multiple book editions correctly 5 62.50%
Multiple Choice Poll. Voters: 8. You may not vote on this poll

Reply
 
Thread Tools Search this Thread
Old 01-13-2019, 09:58 PM   #31
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: 20,459
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by compurandom View Post
I'm actually kinda surprised calibre doesn't have an identifier registration system.
I haven't looked at what you are providing, but it sounds a bit like the "Preferences->Look and Feel->Book Details->Create rules to convert identifiers into links" settings.
BetterRed is offline   Reply With Quote
Old 01-13-2019, 10:12 PM   #32
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by compurandom View Post
I'm actually kinda surprised calibre doesn't have an identifier registration system. I more or less wrote one. If I were to generalize this, I'd add a column to also replace get_book_url_name() and probably use **kwargs instead of a fixed array.
The metadata source plugins act as the identifier registration system. The rules BR pointed to were added a while ago for identifiers without the backing of a plugin. You should be able to populate that programmatically. But, I'll have a look your solution in the next few days.
davidfor is offline   Reply With Quote
Old 01-13-2019, 11:01 PM   #33
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 917
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Quote:
Originally Posted by BetterRed View Post
I haven't looked at what you are providing, but it sounds a bit like the "Preferences->Look and Feel->Book Details->Create rules to convert identifiers into links" settings.
Ah so! But mine is missing name, and that one is missing regex to transform a pasted URL. And the button to get there is so wide I didn't see it as a button.

sigh. Neither is a complete solution. And I'd still need to manage linking identifiers to wikidata entities.

Maybe later I'll dig into that and see how it works and maybe synchronize the data in it with mine.

Last edited by compurandom; 01-13-2019 at 11:03 PM.
compurandom is offline   Reply With Quote
Old 01-14-2019, 12:04 AM   #34
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by compurandom View Post
Ah so! But mine is missing name
The name is what is displayed in the metadata panel. I'm not sure how you can not have that.
Quote:
and that one is missing regex to transform a pasted URL.
I built the code into the metadata editor. Press the button next to the IDs, and it is matched against the rules and then the metadata source plugins (using "id_from_url") to find an identifier.
Quote:
And the button to get there is so wide I didn't see it as a button.
I was caught by that when it was added. And I'd been involved in the discussion to add it.
Quote:

sigh. Neither is a complete solution. And I'd still need to manage linking identifiers to wikidata entities.

Maybe later I'll dig into that and see how it works and maybe synchronize the data in it with mine.
To me you could have your plugin generate them from its config. At least for the common. But, if you are generating an identifier for anything that exists in WikiData, that probably isn't practical. And I'm more curious about what you have done.
davidfor is offline   Reply With Quote
Old 01-14-2019, 12:45 AM   #35
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 917
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Quote:
Originally Posted by davidfor View Post
The name is what is displayed in the metadata panel. I'm not sure how you can not have that.
I didn't really need it, didn't want another column in my already crowded table, and didn't want to think about how to generate a default from the data already in wikidata, although I might have overlooked something. For now, I just set name to be the same thing as the identifier tag.

In fact, if I can leverage this interface, I might move more of my existing data into it, and just leave two or three columns in my interface to link to it. More to the point, I could make a model that saves data in both places, views all of it, and keeps only 2-3 columns (wdid, identifier, wikidata description) actually stored in my plugin's preferences.

I will have to play with that hidden editor. It would be nice if it had an API that was advertised in the plugin documentation pages as an alternative to the 3 (4?) functions.

Also, I was kind of looking for a way for the wikidata plugin to not step on other plugin's toes. That's why I have a checkbox to disable display of ID's, in case you have a plugin that already does it itself that you want to integrate with.

I intended on actually adding some the id's that other plugins already use as defaults with the display box unchecked, but I haven't gotten around to finding them (I know there are at least 3). IDs that are handled elsewhere can still be imported from wikidata, and eventually I will add something to search for books in wikidata based on linked identifiers to get their wikidata IDs. The wikidata metadata plugin does this already, but only for gutenberg IDs (and ISBNs, but I'm not sure that works).

The point is to have full bidirectional linking between wikidata and other sources; ultimately, linking on any source should cause a cascade of data to become available on all the sources.

(large button)
Quote:
I was caught by that when it was added. And I'd been involved in the discussion to add it.
The button itself is fine, but can we shrink it to a normal size instead of full width?
compurandom is offline   Reply With Quote
Old 01-14-2019, 01:21 AM   #36
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 917
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Quote:
Originally Posted by Jay Dugger View Post
I feel as if I ask for the sun, the moon, and the stars, but if I don't ask...
Ask and you shall receive. I think almost everything you asked for is now available either through this metadata plugin or the GUI plugin I just published.

Quote:
The field series may map to the column Series;
This plugin will import that now along with series index. Series data is in the todo list for the GUI version of the plugin, both the simple version in this plugin and an extended version that can generate indexes from prevous/next columns. It'll be interesting to see how well that works if I get around to it.

Quote:
genre to a custom column "Genre;" and so on.

publisher to Publisher

illustrator to a custom column of the same name
These would be easy to add by importing the properties. Illustrator and genre are already in the defaults as examples. Note that you have to create the custom column yourself.

Quote:
language of work or name to Languages (though this should append, and not overwrite)
This one is messier; I haven't tried importing it. If the languages is a multivalue field, it might work as is; uncheck the overwrite column to merge data in multivalue columns.

Quote:
publication date to Published
This is another messy one; Do you want the publication date of the current edition, or the oldest date for any edition? Maybe you want the inception date rather than the publication date? This plugin does a simplistic job at attempting to grab the oldest date out of several.

I'll be writing code for the GUI plugin eventually to handle some of these cases in a more sophisticated way and track down metadata shared by multiple editions but not propagated. For now, you can directly import edition publication date and inception date and give a priority between them. Eventually, I might add merge rules of some sort. (Average publication date anyone?)

Quote:
narrative locations and characters also to a custom column of the same name, but these two wikidata properties might only apply to fiction...
In my set of test books, I found a surprising number of non-fiction books that included location and characters. Importing characters can quickly make a mess. One of the books put several hundred characters into a tags field.

The way I have it now, you can import these directly, unchanged, or run them through the entity filter and pick and choose how many you want to keep and if you want to respell them.

Quote:
The Commons category and the topic's main category as tags
That should work, but I didn't test it. I suppose the commons category could come in as a link as well, but I didn't even look to see if that is possible from the calibre side.

Quote:
All available identifiers as Ids.
That is there and somewhat well tested, although as per discussion above, I may change how it works internally.

Note that wikidata supports somewhere on the order of 3500 identifiers, so "all available" may become silly fast. What I support is importing identifiers in selected books into the preferences editor for filtering, adjusting, and manual labeling. Currently, only one identifier of each type is supported. I think this can be fixed, but I don't currently have plans for it.

Last edited by compurandom; 01-14-2019 at 01:29 AM.
compurandom is offline   Reply With Quote
Old 01-14-2019, 04:03 AM   #37
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: 20,459
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
I built the code into the metadata editor. Press the button next to the IDs, and it is matched against the rules and then the metadata source plugins (using "id_from_url") to find an identifier.


When I press the button to the left of the {ids} text box, in the Metadata Edit General tab, calibre interrogates the clipboard for an ISBN number, if there's nothing resembling an ISBN I'm prompted to enter one.

If I right click in the {ids} text box, there's an "Edit identifiers in a dedicated window" option, it pops a simple text box into which I can enter keyname:value pairs e.g. books_etc:9780571345809 or torygraph_review:mere-wife-review-beowulf-updated-modern-new-york/

Am I missing something?

I'd rather enter a name (maybe select from a drop down list of what's in Preferences->L&F) followed by a complete URI including the protocol name, the latter is usually waiting in the clipboard. As it is I have to paste it into the text box and carefully chop off the front bit e.g. "https://www.telegraph.co.uk/books/what-to-read/"

Re the Wide Button, my problem with it is that I forget where it is. Book Details seems an unlikely place - but I can't think of a less unlikely place

BR
BetterRed is offline   Reply With Quote
Old 01-14-2019, 05:16 AM   #38
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
If the clipboard contains the URL for an identifier, when you click the paste button, the URL is parsed to get the identifier. For example, if you have the Goodreads Metadata source plugin installed, and have "https://www.goodreads.com/book/show/13487260" in the clipboard and press the button, you should get "goodreads:13487260" added as an identifier. Not all metadata source plugins have the necessary method. All the ones I maintain do, and I have been meaning to go through the built-in ones to add it. It also works if you have the URL that matches one of the rules.

If the contents of the clipboard don't match a metadata source or a rule, it falls back to looking for an ISBN.
davidfor is offline   Reply With Quote
Old 01-14-2019, 07:33 AM   #39
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: 20,459
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Ah- most of my 'books' aren't commercial books as such, and what I have in the clipboard could be anything, a url to a newspaper review or a link to the download location at somewhere like Stratfor or Lowy or a Twitter tweet

Every time I think of using the ids column I go back to pasting them into a long text custom column.

BR
BetterRed is offline   Reply With Quote
Old 11-16-2020, 08:07 AM   #40
theamazingjmo
Junior Member
theamazingjmo began at the beginning.
 
theamazingjmo's Avatar
 
Posts: 6
Karma: 10
Join Date: Sep 2014
Location: Ohio
Device: Paperwhite 2
Exclamation

I can't install the plugin, which is weird because it hasn't been updated since the last time I uninstalled it. Perhaps a conflict with another plugin?

Code:
calibre, version 5.5.0
ERROR: Install plugin failed: A problem occurred while installing this plugin. This plugin will now be uninstalled. Please post the error message in details below into the forum thread for this plugin and restart calibre.

Traceback (most recent call last):
  File "calibre\gui2\dialogs\plugin_updater.py", line 731, in _install_clicked
  File "calibre\customize\ui.py", line 472, in add_plugin
  File "calibre\customize\ui.py", line 61, in load_plugin
  File "calibre\customize\zipplugin.py", line 293, in load
  File "importlib\__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "calibre\customize\zipplugin.py", line 185, in exec_module
  File "calibre\customize\zipplugin.py", line 181, in get_code
  File "calibre_plugins.wikidata.__init__", line 348
    print 'matches=',matches
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('matches=',matches)?
theamazingjmo is offline   Reply With Quote
Old 11-16-2020, 09:20 AM   #41
georgemk
Addict
georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.
 
Posts: 232
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
Looks like the plugin hasn't been updated to run with any version of Calibre 5 and above.
The last update was in 2019 when Calibre used Python 2. Now it uses Python 3 which requires all plugins to be converted as there were a lot of changes to the programming language.
georgemk is offline   Reply With Quote
Old 11-16-2020, 11:24 AM   #42
theamazingjmo
Junior Member
theamazingjmo began at the beginning.
 
theamazingjmo's Avatar
 
Posts: 6
Karma: 10
Join Date: Sep 2014
Location: Ohio
Device: Paperwhite 2
Quote:
Originally Posted by georgemk View Post
Looks like the plugin hasn't been updated to run with any version of Calibre 5 and above.
The last update was in 2019 when Calibre used Python 2. Now it uses Python 3 which requires all plugins to be converted as there were a lot of changes to the programming language.
Ah I see. So nothing amiss on my end, then.
theamazingjmo is offline   Reply With Quote
Old 11-19-2020, 08:15 AM   #43
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 917
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
I haven't updated it since nobody left a comment. Now that someone has, I'll work on it this weekend.

Any feature requests while I'm at it?

I had planned for a bigger update end of the year, but I have other projects as well.

Last edited by compurandom; 11-19-2020 at 08:21 AM.
compurandom is offline   Reply With Quote
Old 11-20-2020, 10:37 AM   #44
theamazingjmo
Junior Member
theamazingjmo began at the beginning.
 
theamazingjmo's Avatar
 
Posts: 6
Karma: 10
Join Date: Sep 2014
Location: Ohio
Device: Paperwhite 2
Quote:
Originally Posted by compurandom View Post
I haven't updated it since nobody left a comment. Now that someone has, I'll work on it this weekend.

Any feature requests while I'm at it?

I had planned for a bigger update end of the year, but I have other projects as well.
Can't really think of any features I need...it does what I want it to do, find wikidata entries, I'm not sure what else to dream up
theamazingjmo is offline   Reply With Quote
Old 11-20-2020, 10:39 AM   #45
theamazingjmo
Junior Member
theamazingjmo began at the beginning.
 
theamazingjmo's Avatar
 
Posts: 6
Karma: 10
Join Date: Sep 2014
Location: Ohio
Device: Paperwhite 2
Thanks for working on the fix, as I use the plugin quite frequently
theamazingjmo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Source Plugin] BiblioNETka.pl fenuks Plugins 8 01-15-2024 01:19 PM
[Metadata Source Plugin] Comicvine chewt0y Plugins 88 07-11-2022 12:00 PM
[Metadata Source Plugin] Biblionet.gr wrangly Plugins 13 01-21-2021 07:46 AM
[Metadata Source Plugin] Skoob rodrigoccurvo Plugins 11 06-13-2019 06:44 PM
[Metadata Source Plugin] DIZZIE_NL Pr.BarnArt Plugins 7 08-11-2014 01:48 PM


All times are GMT -4. The time now is 04:29 AM.


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