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 06-21-2014, 03:33 PM   #1
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
[GUI Plugin] Author Book Count

This plugin updates a new custom column for the total number of books written by each author. This is done for every book in your library. It provides functionality that standard Calibre does not provide, specifically the ability to search using queries constructed with integers for an integer custom column. Example: ((#abc_numeric:">6") and (#abc_numeric:"<47")). Also, its normal ABC column in the Tag Browser has full Tag Browser functionality based specifically on ABC.

Also see: "Author Book Count Hierarchy", a plugin designed for perusing complex Co-Author relationships, not just ABC counts.


Main Features ABC:

This plugin updates a custom column for the total number of books for an author for each book of each author in your library. It always updates all books in the open library. The results are displayed in the left browser pane under "ABC". A menu selection to "Read Instructions" is available.

Installation Notes:
  1. Calibre > Preferences > Custom Columns > Add a new custom column called "author_book_count" with a title of "ABC" and with the default "text, with column shown in the tag browser". Uncheck the new column to hide it. Save your work and restart Calibre. Refer to the attached configuration image 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 Author Book Count. Save your work. Close the window.
  4. If you don't want to see the count in the Book Details view, go to Calibre > Preferences > Look and Feel > Book Details and customize the view to your taste.
  5. The Calibre tag-browser defaults to sorting by Text instead of by Numbers within Text. To change this: Calibre > Preferences > Tweaks > Recognize Numbers Within Text When Sorting > and set numeric_collation = True. See the attached image file for reference.
  6. Optionally, you may create a second new custom column called “abc_numeric”. Choose the type as “integer”. This custom
    column will be populated with the integer version of author_book_count, but only if the column exists. Search criteria valid only for integers would then be possible, such as: #abc_numeric:">7"


Execution Notes:
  1. Click the icon for Author Book Count. Agree to continue, and it will execute. It has been optimized for speed, so it is very fast.
  2. You should not be running any other jobs when you run ABC. It is very fast, averaging in testing ~1 second per ~1,000 ebooks.


Special Notes:
  1. Requires Calibre version 6.0.0 or later.

  2. Bear in mind that a single book has a single author book count, so anthologies with a dozen authors will show the count for the author that has the lowest Calibre author id, which is to say the author that was first added to Calibre. If you see a discrepancy between the tag browser for ABC and the books shown in the window, simply right click one of their books and then > Similar Books > Books by Same Author. You should then see the books for which that author was one of multiple authors, and was not the first author listed in the list of authors. This behavior is not a bug, but rather the nature of having only a single value for a single custom column for a single book in Calibre. The count is correct, but the browser pane info on the left of the main gui has to be interpreted properly for books with multiple authors.
  3. Remember to back up your metadata.db file(s) not infrequently, and especially before starting Installation Step 1, above.
  4. This plugin does not update any ebooks or "real" metadata other than the linked new custom column that you defined in Installation Step 1, above.
  5. This plugin can be safely and simply uninstalled and the custom column and associated custom column data deleted via Preferences > Plugins > Remove and also Preferences > Custom Columns > Delete if you so desire.
  6. It is advisable to compact your Calibre metadata.db database periodically. The menu path is Calibre > Library > Library Maintenance > Check Library. It will perform a SQLite Vacuum operation to condense/compact/defrag the database. Example before and after a Vacuum:

    Before compacting<<<----------->>>After compacting:
    Page Count = 118,342<<<---------->>>Page Count = 3,606
    Database Size = 121,182,208 bytes<<>>Database Size = 3,692,544 bytes
    So, the metadata.db file went from over 121mb to less than 4mb in size.
  7. This plugin does not directly interact with the ABC Hierarchy plugin. Each has a different purpose. Use one or both; it is up to you.

Version History:
Spoiler:

Version 2.2.3 - 07 January 2023 Qt.core. Minimum Calibre Version: 6.0.0
Version 2.2.2 - 03 February 2021 Translation to Spanish.
Version 2.2.0 - 17 December 2020 Miscellaneous technical changes to improve performance.
Version 2.1.9 - 19 December 2019 Technical changes after Python 3.8 testing with Calibre 4.99.2
Version 2.1.8 - 16 December 2019 Technical Tweaks after compiling with Python 3.8
Version 2.1.7 - 22 July 2019 Technically restructured and simplified to improve performance.
Version 2.1.6 - 23 May 2019 Python 3 compatibility.
Version 2.1.5 - 05 May 2017 Allow themes with user-defined icons.
Version 2.1.4 - 16 May 2016 Changes for use by the Favourites Plug-in.
Version 2.1.3 - 22 June 2015 Changes to make ABC consistent with ABCH
Version 2.1.2 - 22 June 2015 Improved user experience when executing repetitively in multiple Calibre libraries continuously.
Version 2.1.1 - 21 June 2015 Miscellaneous performance tweaks.
Version 2.1.0 - 6 June 2015 Many Technical Changes to Improve Performance and Ease of Use.
Version 2.0.2 - 5 September 2014 Changes due to Calibre 2.2.0 Refactor
Version 2.0.1 - 24 August 2014 Max ABC Increased to 5000
Version 2.0.0 - 7 August 2014 Optional new custom column abc_numeric
Version 1.1.0 - 28 July 2014 Minor Technical and Functional enhancements.
Version 0.1.0 - 21 June 2014 Initial release of the Author Book Count plugin.
Attached Thumbnails
Click image for larger version

Name:	Using_ABC_plus_ABCHierarchy_plus_3d_Custom_Column_Simultaneously.JPG
Views:	2821
Size:	50.9 KB
ID:	126382  
Attached Files
File Type: pdf abc_instructions.pdf (405.5 KB, 1367 views)
File Type: zip author_book_count.zip (626.1 KB, 22539 views)

Last edited by DaltonST; 01-08-2023 at 04:58 PM. Reason: New Version 2.2.3
DaltonST is offline   Reply With Quote
Old 07-22-2014, 11:16 AM   #2
asllearner
Enthusiast
asllearner began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Aug 2011
Device: none
multiple authors

I like the plugin.

Of course, it would be nice if you could account for multiple authors.
Aren't you essentially collecting this information anyway? Since ABC is a single text field, can't you just list counts for authors in order of id, separated by commas, e. g. Mikado, Rogers & Hammerstein, ABC= "7, 9" => "Rogers, Hammerstein"?

Of course, I ask out of ignorance, as I am not a programmer, and haven't the slightest idea how you are doing the counting, and perhaps it would necessitate a few additional passes, thereby taking a bit longer, but it seems to be fast enough anyway.

Steps:
list individual authors
assign a count to each, including wherever they appear
for each book, assemble ABC value by stringing together values for each authors in order.

Is that much different than what you do now?

Any, nice plugin. It has come in quite handy. If the ABC were clickable in the book details, that would be a plus, of course...
asllearner is offline   Reply With Quote
Old 07-22-2014, 11:39 AM   #3
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Calibre > Preferences > Look and Feel > Book Details

Glad you like it.

The instructions tell you how to customize Calibre for Book Details: "If you don't want to see the count in the Book Details view, go to Calibre > Preferences > Look and Feel > Book Details and customize the view to your taste." You must have turned it off, because the default is "on".

This plugin handles only the first author for the single custom column, which is ""text, with column shown in the tag browser". Adding multiple author counts in the existing column would be confusing to the user, to say the least. After I finish building another new plugin, I will think about adding an optional second new custom_column to deal with multiple authors in such a way that it will be intuitive to use.
DaltonST is offline   Reply With Quote
Old 07-22-2014, 12:18 PM   #4
asllearner
Enthusiast
asllearner began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Aug 2011
Device: none
confusing?

Wow that was a quick reply!

Quote:
You must have turned it off, because the default is "on".
No, it seems to be working. It is "on". I probably wasn't being clear...unless, did something say make you think it's not working as it should?

Quote:
Adding multiple author counts in the existing column would be confusing to the user, to say the least.
It would be clearer for users like myself, cause we would see the parity between authors and the values and understood it right away. Now is what's confusing for us; I got all mixed up enough to suggest changing it.

I'll point out that not all users will have come to the forum and read your instructions first, clear as they are. Many of us install from within Calibre, and don't see the special directions til after we install it. I installed the plugin, it didn't work, naturally, and left it at that for a long time til on a whim I tried again when I had a little time to spare. Others might not have.


Quote:
I will think about adding an optional second new custom_column to deal with multiple authors in such a way that it will be intuitive to use.
Whatever you do, it's a nice plugin, so thanks. If you do go ahead, I'll get my two cents in now while the getting is good :

comma separated hyperlinked values, with tooltips indicating which author, and clickable individually for each author. Simple and intuitive. You very likely have better ideas, but I'd settle for that. On the other hand, this may be impossible under whatever limitations calibre's API has, so I'll just share my dream and let it all go....

Last edited by asllearner; 07-22-2014 at 12:23 PM.
asllearner is offline   Reply With Quote
Old 07-27-2014, 04:12 PM   #5
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
ABC Release 1.1.0 Uploaded

Author Book Count Release 1.1.0 is now available. It has an Adobe Acrobat .pdf instruction file linked to a sub-menu of the main icon. The instruction file is also attached to the primary post of this thread. Technical changes for the upcoming Calibre 2.0 release were also implemented.
DaltonST is offline   Reply With Quote
Old 07-28-2014, 12:52 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DaltonST View Post
It has an Adobe Acrobat .pdf instruction file linked to a sub-menu of the main icon.
I believe it is far more common to use HTML instructions, which have the advantage of being able to be embedded within the plugin GUI.

Also, PDF is a horrible format which invariably invokes laggy viewers.
eschwartz is offline   Reply With Quote
Old 07-28-2014, 09:06 AM   #7
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: 29,754
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by eschwartz View Post
I believe it is far more common to use HTML instructions, which have the advantage of being able to be embedded within the plugin GUI.

Also, PDF is a horrible format which invariably invokes laggy viewers.

Kiwidude Quality Check for examples
theducks is offline   Reply With Quote
Old 07-28-2014, 11:07 AM   #8
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Forum Rules Disallow Zip Attachments Except For The Plugin Itself

My choice of .pdf was not at all arbitrary.

The reason there is a .pdf file attached to this thread is that the Forum Rules disallow any zip attachments except for the PI itself in order to not confuse the scraper that automatically updates the PI Index.

A .pdf file is a single file, and does not need to be zipped. Neither do .rtf or .docx documents, for that matter.

When I converted the original MS Word document in which I wrote the instructions into HTML, multiple files were produced due to the images contained in the instructions. I cannot zip them per the Forum Rules. So, I converted my MS Word document to .pdf instead. Hence the attached .pdf file.

I did try converting the Word docx into a single-file .mht format that could simply be attached to this thread, but the result was a 1.1 megabyte .mht file instead of a 292KB .pdf file.

Within the PI itself, I could certainly use HTML instead of .pdf, since I can extract the HTML files just as I do the .pdf file when the user clicks on the "read instructions" sub-menu icon. It just seems like punishment to have to have 2 different formats because I cannot add an "HTML_Instructions.zip" file to this thread.

I am working on a new plugin that has an 18 page Word document filled with screen snippets and Powerpoint graphics. That PI has the same issue as this one. Also, I hope the Forum Rules concerning max-size of attachments is not bumped against for that PI, since even as a .pdf (and not .mht) it still will be over 1mb in size.


Regarding your suggestion to embed the viewer in the gui, I launch the instructions file (in both plugins) in a sub-process of the operating system that is independent of Calibre so that the instructions can be read even if Calibre is exited. That is why it is not embedded in the gui per you suggestion. Again, my decision was not arbitrary.
DaltonST is offline   Reply With Quote
Old 07-28-2014, 11:19 AM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The only things in the PDF that aren't in the OP are the pictures. Why not just attach the pictures? No need for the PDF in the thread.

I doubt anyone needs to view the PI help outside of calibre.
eschwartz is offline   Reply With Quote
Old 07-28-2014, 01:03 PM   #10
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Attaching Dozens of Images to OP Because Only 1 Zip Allowed by Forum Rules ???

You suggestion to attach the images to the OP and not make them available within the PI itself is not scalable at all to larger and more complex PIs that have large instruction manuals. My upcoming PI has dozens of images embedded within text, and they form a cohesive whole. Uploading them per your suggestion and expecting the users to download all of them, and then rearrange them in logical sequence, and then read them in the exact sequence they are intended to be read in, would be wishful thinking, and also quite abusive to the users themselves.

You opinion "I doubt anyone needs to view the PI help outside of Calibre" implicitly contradicts your first post that "PDF is a horrible format which invariably invokes laggy viewers". The instructions require the new users of the PI to Restart Calibre two (2) times, because there is a Custom Column involved. If the instructions were not a sub-process of the operating system, they would be closed when Calibre restarted. The user would suffer "lagginess" unnecessarily because the instructions would have to be reopened ("with lagginess") after Calibre restarted. That is not true for using an external viewer that is independent of Calibre, and remains open while Calibre restarts.

You opinion "I doubt anyone needs to view the PI help outside of Calibre" also is flatly incorrect when it comes to more complex PIs that involve the use of other PC tools (such as MS Excel or OpenOffice Calc or Google Docs) simultaneously with the perusal of the instructions. Calibre may not even be running for long periods of time when they need to perform PI-related tasks outside of Calibre.

In short, your comments and suggestions are either (a) not scalable to more complex PIs with more complex instructions; or (b) impractical; or (c) abusive to the users.

Again, my decisions about the instructions were not at all arbitrary or capricious or based on speculation or "doubts". The root criterion that forced the .pdf instruction file format is the Forum Rule about multiple zip files in the Original Post.

If the Forum Admins ever change that Rule, I will then convert all of my MS Word instructions into HTML rather than Adobe's Portable Document Format.

Regardless of the format, the viewer will be an external sub-process to Calibre for the reasons cited above. It might even be Calibre's ebook Viewer itself, which of course is an external sub-process to Calibre, and remains open when Calibre closes, as it should.
DaltonST is offline   Reply With Quote
Old 08-02-2014, 02:14 PM   #11
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
New Plugin: "ABC Hierarchy" Released

Dear asllearner,

Please see https://www.mobileread.com/forums/sho...d.php?t=243873 for the new ABC Hierarchy plugin that I wrote based upon your post.


DaltonST

Last edited by DaltonST; 08-04-2014 at 04:28 PM. Reason: New Plugin: "ABC Hierarchy"
DaltonST is offline   Reply With Quote
Old 08-05-2014, 10:18 AM   #12
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
See new attached image showing how ABC can be used simultaneously with ABCH to yield 3 different views of your Authors.
DaltonST is offline   Reply With Quote
Old 08-06-2014, 01:14 PM   #13
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
I've been trying to give this a whirl and it works as intended however now that I have results I am not able to perform any numeric searches on the column. For example if I use #author_book_count:5, I of course get results with all that have a 5 in the column. If I try to search #author_book_count:>=5, I get nothing. Is there some change I have to make in Calibre in order for this to allow me to search based on numbers?? Does this make sense to you?
nynaevelan is offline   Reply With Quote
Old 08-06-2014, 02:24 PM   #14
PeterT
Grand Sorcerer
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: 12,141
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I think the issue is that the column added is TEXTUAL and not NUMERIC.

Unfortunately I haven't been able to find a template function that would allow the creation of a custom column based on that one which would be numeric.
PeterT is offline   Reply With Quote
Old 08-06-2014, 02:35 PM   #15
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
ABC Is Used From The Tag Browser

Quote:
Originally Posted by nynaevelan View Post
I've been trying to give this a whirl and it works as intended however now that I have results I am not able to perform any numeric searches on the column. For example if I use #author_book_count:5, I of course get results with all that have a 5 in the column. If I try to search #author_book_count:>=5, I get nothing. Is there some change I have to make in Calibre in order for this to allow me to search based on numbers?? Does this make sense to you?

ABC was designed to be used from the Tag Browser, not through searching. The column should be hidden as stated in the instructions, and the type of column should be as shown in the example in the instructions. ABC actually is not an integer; it is text. That is why the instructions indicate the need to change the Tweaks within Preferences to sort text as numeric so it sorts properly.

If you click in the Tag Browser for "ABC [nnnn] 5", the Calibre-built search criterion in the search bar becomes #author_book_count:"=5". For more complex operators, you need Regular Expressions, see http://drmfree.calibre-ebook.com/search for the Calibre requirement for syntax when using REs within Calibre, and then http://www.zytrax.com/tech/web/regex.htm for a tutorial on REs.

The very fast and easy way to get your results is not through searching, but by CNTL + double-clicking each of the ABC subgroups in the Tag Browser from 1 through 4 so they have a red minus sign. The search bar will automatically be populated with "not #author_book_count:"=1" and not #author_book_count:"=2" and not #author_book_count:"=3" and not #author_book_count:"=4" and not #author_book_count:"=5"". (Be sure your Search Type option is set to "all of the items", and not "any of the items"). You can then save the search, or press CTL+* to create a Virtual Library.

Regular Expressions can also become a Saved Search. Again, REs are explained at http://www.zytrax.com/tech/web/regex.htm
DaltonST is offline   Reply With Quote
Reply

Tags
plugins

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 1750 04-07-2024 01:20 AM
[GUI Plugin] Copy book covers as Standby images (Sony/Kindle/Nook) jackie_w Plugins 136 06-18-2020 03:27 AM
[GUI Plugin] Manage Sony x50 Reader Book List kpw Plugins 170 10-02-2014 08:23 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 07:47 PM


All times are GMT -4. The time now is 05:45 AM.


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