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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-02-2014, 08:19 AM   #1
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
[GUI Plugin] Derive Genres

[GUI Plugin] Derive Genres
This plugin derives a custom column field “genre” using Boolean logic based upon Tag Rules as well as optionally using default non-fiction and/or fiction/poetry genres based upon Author Rules.

Main Features of the Derive Genres Plugin:

This release updates a new custom column for book genre using rules defined to use existing Tags and/or Authors. It derives Genres only for the specific books you select prior to clicking the plugin icon. It uses 3 .csv files encoded in Unicode(UTF-8) to import the Tag Rules, Author Rules, and Non-Fiction Language Keywords. Dies ist eine mehrsprachige Plugin. Yaha ēka bahubhāṣī plaga'ina hai. Ceci est un plugin multilingue. Este es un plugin de multilenguaje.

Installation Notes:
  1. Calibre > Preferences > Custom Columns > Add a new custom column called "genre" with a title of "Genre" and with the default "text, with column shown in the tag browser". Move the new column up to where you wish to see it, usually next to Tags. Save your work and restart Calibre. Refer to the attached instructions .pdf file.
  2. Calibre > Preferences > Plugins > Load Plugin from File and load the attached zip file. Save your work and restart Calibre.
  3. Calibre > Preferences > Toolbar > Main Menu Toolbar and then add the icon for Derive Genres. Save your work. Close the window
Execution Notes:

Thoroughly read the instructions prior to executing this plugin. The icon has a sub-menu named “Read Instructions". Also first download all of the attached files. The "supporting files" .txt file is really a .zip. Rename it to .zip and extract it. Place the .ods and .csv files according to the instructions. This Plugin cannot be used at all without the attached supporting files.

Special Notes:
Requires Calibre version 1.48.0 or later.

PayPal Donations:
If you find this or my other plugin useful, please feel free to show your appreciation. I have spent many hundreds of unpaid hours in their development, so any encouragement for me to continue is appreciated. Donate

Version History:

Spoiler:

Version 1.1.3 - 5 September 2014 Changes due to Calibre 2.2.0 refactor
Version 1.1.2 - 7 August 2014 Improvements to new export .csv file
Version 1.1.1 - 6 August 2014 Bug created in 1.1.0 eliminated
Version 1.1.0 - 6 August 2014 New export .csv for missing Tag Rules
Version 1.0.0 - 1 August 2014 Initial release of the Derive Genres plugin. The actual plugin name is: derive_genres
Attached Files
File Type: txt Derive_Genres_Supporting_Files_rename_to_zip.txt (279.2 KB, 75 views)
File Type: pdf derive_genres_instructions.pdf (941.2 KB, 76 views)
File Type: zip derivegenres.zip (838.4 KB, 410 views)

Last edited by DaltonST; 09-11-2014 at 11:27 AM. Reason: Version 1.1.3 - 5 September 2014 Changes due to Calibre 2.2.0 refactor
DaltonST is offline   Reply With Quote
Old 08-03-2014, 09:23 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,048
Karma: 18147936
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Has this plugin been written so it works on both Calibre as it is now and the beta Calibre with Qt5? If it doesn't work with Qt5, will it be converted to work?
JSWolf is offline   Reply With Quote
Old 08-03-2014, 09:58 PM   #3
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
Derive Genres Is Calibre 2.0 Compliant, Of Course

Yes, it was so written. It is on Kovid's list of 2.0 compliant plugins. Refer to http://plugins.calibre-ebook.com/porting.html anytime if you have questions about compliance with Calibre 2.0 and Qt5 of any particular plugin.

Last edited by DaltonST; 08-03-2014 at 11:20 PM.
DaltonST is offline   Reply With Quote
Old 08-06-2014, 09:15 AM   #4
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
New Version 1.1.1 Released. The Derive Genres plugin now exports a Unicode(UTF-8) encoded .csv file containing all of the unique Tag Combinations for which Tag Rules were missing. This should make adding necessary new Tag Rules much easier. The instructions have also been updated. Also, a bug created in Version 1.1.0 was eliminated.

Last edited by DaltonST; 08-06-2014 at 07:21 PM.
DaltonST is offline   Reply With Quote
Old 08-11-2014, 11:29 AM   #5
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
Derive_Genres_Supporting_Files.zip Required for Plugin Use

The Derive Genres plugin will not do anything whatsoever unless you download the attached file containing zipped supporting files that the plugin uses.

Extract it into the parent directory of your Calibre libraries. They go into the parent directory so that they are available regardless of which Calibre Library you have switched to (assuming they all have the same parent directory, such as "C:\Users\Public\Public eBooks").

Please refer to the documentation, which is available as a sub-menu item in Calibre. The documentation is also attached to the Original Post for Derive Genres.
Attached Files
File Type: zip Derive_Genres_Supporting_Files.zip (279.2 KB, 53 views)
DaltonST is offline   Reply With Quote
Old 09-05-2014, 12:28 PM   #6
DuBlue
Junior Member
DuBlue began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2014
Device: Kobo Touch
Hello DaltonST, I was really excited when I came across your plugin as I have been wanting to sort out my genre tags for a long time. I have a very extensive library and have been dreading the manual drudgery that I presumed would be required. Alas, after getting through steps 1 and 2 (and reading the instructions PDF), I get to step 3 and there is no 'Derive Genres' icon in my list to add to either the toolbar or the menubar. I recently upgraded to 2.2 of Calibre and thought that may be the issue. I am also on a Macbook which may/may not be relevant.
DuBlue is offline   Reply With Quote
Old 09-05-2014, 01:06 PM   #7
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
Quote:
Originally Posted by DuBlue View Post
Hello DaltonST, I was really excited when I came across your plugin as I have been wanting to sort out my genre tags for a long time. I have a very extensive library and have been dreading the manual drudgery that I presumed would be required. Alas, after getting through steps 1 and 2 (and reading the instructions PDF), I get to step 3 and there is no 'Derive Genres' icon in my list to add to either the toolbar or the menubar. I recently upgraded to 2.2 of Calibre and thought that may be the issue. I am also on a Macbook which may/may not be relevant.

DuBlue,


Try this:

1) Restart Calibre

2) Uninstall the Plugin

3) Restart Calibre

4) Install the Plugin

5) Restart Calibre

6) Preferences > Toolbar > Click the Main Toolbar to Customize

7) Scan the left column of icons that you do not have, being sure to go to the very bottom

8) When you find Derive Genres, select it and click the > Right Arrow to add it to your Main Toolbar. It will automatically drop to the bottom of the list. Select it and move it upwards to where you wish using the > Green Arrow.

9) Save, close, and Restart Calibre

10) If you have a lot of icons, you may wish to Preferences > Look & Feel > User Interface Layout > Wide.

Having done or attempted the above but the icon still does not appear, reinstall (repair) Calibre 2.2.0 that you have just installed, and start over with Step 1) above.

I just did Steps 1 - 10 above, although mine was working perfectly in the first place, and it once again is back to where it was. I think perhaps you need to Restart Calibre a bit more between steps.

If you used Windows, I would suggest even rebooting the entire pc after reinstalling Calibre 2.2.0 (just on general principles; not for any specific reason).

Last edited by DaltonST; 09-05-2014 at 01:11 PM.
DaltonST is offline   Reply With Quote
Old 09-05-2014, 01:16 PM   #8
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
Calibre 2.2.0 Removes Plugin Icons...

DuBlue,

Well, I just installed Calibre 2.2.0, and ALL of my plugin icons disappeared. I was on Calibre 2.1.0. Apparently this is a Calibre 2.2.0 phenomenon. I have had zero problems like this since I released my first plugin on Calibre 1.40, all the way through to Calibre 2.1.0 on Windows 64.

I am reverting to Calibre 2.1.0 from http://download.calibre-ebook.com/2.1.0/ to see if it clears this up.

Last edited by DaltonST; 09-05-2014 at 01:38 PM. Reason: http://download.calibre-ebook.com/2.1.0/
DaltonST is offline   Reply With Quote
Old 09-05-2014, 02:01 PM   #9
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
Revert to Calibre 2.1.0 Temporarily To Restore Plugin Icons

DuBlue,

I just uninstalled Calibre 2.2.0, installed Calibre 2.1.0, installed some plugins, and their icons now appear.

Until Kovid figures this all out, I suggest you revert to Calibre 2.1.0, which does not eat plugins.

http://download.calibre-ebook.com/2.1.0/
DaltonST is offline   Reply With Quote
Old 09-05-2014, 04:01 PM   #10
DuBlue
Junior Member
DuBlue began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2014
Device: Kobo Touch
Thanks!.. 2.1 did the trick... I guess we wait for 2.2.1 now
DuBlue is offline   Reply With Quote
Old 09-05-2014, 04:20 PM   #11
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
Exclamation Kovid: Calibre 2.2.0 Issue

Quote:
Originally Posted by DuBlue View Post
Thanks!.. 2.1 did the trick... I guess we wait for 2.2.1 now
Kovid,

Please read DuBlue's posts above. Thanks.
DaltonST is offline   Reply With Quote
Old 09-05-2014, 04:34 PM   #12
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,770
Karma: 43931916
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
I'm not sure this IS a buf in any way, shape or form. Rather, it was a removal of some code that had issues from message_box.py. See https://github.com/kovidgoyal/calibr...83a7cfc99768c9 for details of the change.

Also if you think it IS a bug, maybe opening a bug report would be beneficial...
PeterT is offline   Reply With Quote
Old 09-05-2014, 05:35 PM   #13
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 66
Karma: 8524
Join Date: Aug 2013
Device: Nexus 7 Tablet Android 4.4.2
PeterT,

I think you posted in the wrong thread. I don't know what a "buf" is. This has nothing to do with whatever you were referring to. The issue is that no third-party plugins have an icon available for selecting for location on a Toolbar in Preferences > Toolbar in Calibre 2.2.0.
DaltonST is offline   Reply With Quote
Old 09-05-2014, 05:39 PM   #14
BetterRed
null operator
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: 3,412
Karma: 1957866
Join Date: Mar 2012
Location: NSW Australia
Device: none
@DaltonST - a 'buf' is a mistake in a 'bug' :rufl:

BR
BetterRed is online now   Reply With Quote
Old 09-05-2014, 05:44 PM   #15
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,770
Karma: 43931916
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Quote:
Originally Posted by DaltonST View Post
PeterT,

I think you posted in the wrong thread. I don't know what a "buf" is. This has nothing to do with whatever you were referring to. The issue is that no third-party plugins have an icon available for selecting for location on a Toolbar in Preferences > Toolbar in Calibre 2.2.0.
Yes... Buf was a typo. Try running calibre in debug mode and LOOK at what the log contains....

Trust me all of my other plugins still work.....
PeterT is offline   Reply With Quote
Reply

Tags
.csv, custom column, genre

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 260 09-15-2014 04:41 PM
[GUI Plugin] EpubMerge JimmXinu Plugins 179 09-04-2014 09:43 PM
[GUI Plugin] Hyphenate This! SauliusP. Plugins 191 08-28-2014 05:48 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 06:31 PM.


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