Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2012, 10:55 AM   #16
copyrite
Wizard
copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.
 
copyrite's Avatar
 
Posts: 1,841
Karma: 4985051
Join Date: Sep 2010
Location: Maryland
Device: Kindle
Quote:
Originally Posted by chaley View Post
Use "program:format_number(strlen(field('title')), '{0:d}')"
Quote:
Originally Posted by theducks View Post
Good you included a screen shot
That screen shows 'Digits' (text), not Numbers, which is why the Search term (for a numeric field) does not work.

The column needs to be Floating Point for that to work
or you need to pad enough leading 0's (blanks are just too hard to see ) to match the highest digit count
So... how do I modify chaley's template (above) to achieve my goal?
copyrite is offline   Reply With Quote
Old 08-18-2012, 12:45 PM   #17
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: 31,057
Karma: 60358908
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 copyrite View Post
So... how do I modify chaley's template (above) to achieve my goal?
chaley is way beyond me


Only a Guess : change
Code:
{0:d}
to
Code:
{0>3f}
theducks is online now   Reply With Quote
Advert
Old 08-18-2012, 02:52 PM   #18
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by copyrite View Post
Sorting by the header sort of works, but it gives me wonky results. Here's a mere sampling of my library to show you what I mean:

Spoiler:


That was the exact phrase I attempted to search for, yes, from the page you indicated, but it didn't work, maybe because the RegEx needs to allow for two numeric place holder values?
Change the sort type of the custom column (made from other columns) to number.
chaley is offline   Reply With Quote
Old 08-18-2012, 04:01 PM   #19
copyrite
Wizard
copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.
 
copyrite's Avatar
 
Posts: 1,841
Karma: 4985051
Join Date: Sep 2010
Location: Maryland
Device: Kindle
Thank you!

One of my titles from Amazon is 161 characters long. *shakes head*
copyrite is offline   Reply With Quote
Old 08-18-2012, 09:15 PM   #20
Rob557
Zealot
Rob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-books
 
Posts: 108
Karma: 810
Join Date: Jul 2012
Device: Kobo
Quote:
Originally Posted by chaley View Post
Change the sort type of the custom column (made from other columns) to number.
Thanks chaley ... I should have mentioned that aspect before and so belatedly inserted a more complete description of the process earlier in this thread. I'll repeat some of it here for more convenient reference:

In setting up the custom column (by right-clicking on the existing row of column descriptors and selecting "add your own columns", then clicking on the "+" icon (or the "i" icon after the column is set up)), after inputting a name of your choice and choosing the column type "column built from other columns", and inputting the template description that chaley provided
"program:format_number(strlen(field('title')), '{0:d}')"
it is important (as chaley also identifies herein) to also select the accompanying option to sort/search column by "number".
Rob557 is offline   Reply With Quote
Advert
Old 08-19-2012, 02:49 PM   #21
copyrite
Wizard
copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.
 
copyrite's Avatar
 
Posts: 1,841
Karma: 4985051
Join Date: Sep 2010
Location: Maryland
Device: Kindle
Oh never mind. The Quality Check plug-in can achieve the same output.

Last edited by copyrite; 08-19-2012 at 03:34 PM.
copyrite is offline   Reply With Quote
Old 08-20-2012, 04:59 AM   #22
Rob557
Zealot
Rob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-books
 
Posts: 108
Karma: 810
Join Date: Jul 2012
Device: Kobo
Quote:
Originally Posted by copyrite (as self-edited) View Post
Oh never mind. The Quality Check plug-in can achieve the same output.
Just to clarify copyrite's post-edit comment in the immediately preceding posting, he was not referring to the subject of this thread (sort by length of title), but he was instead referring to the following posting that he had made, and subsequently replaced with the above comment, regarding checking tags:
Quote:
Originally Posted by copyrite (self-deleted)
Rather than creating a new thread since this is a similar idea, how do you create a custom column that lists the number of tags in each entry using "{tags:count(,)}". Is this still a 'column build from other columns'? I tried a bit of cut and paste from the previous example "program:format_number(strlen{tags:count(,)}), '{0:d}" but it did not work ...
copyrite was noting that the Quality Check plug-in has an option that handles tags ("check metadata / check excess tags"), but note that the Quality Check plugin does not currently identify the character length of titles, authors, etc. and so the information provided by chaley (and theducks) in this thread was quite useful.

Last edited by Rob557; 08-20-2012 at 05:02 AM.
Rob557 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-650 [calibre] How do I set it up so I can sort by author - Series - Title?? BelgarionNL Sony Reader 49 06-22-2012 10:04 PM
Caibre - Fails to sort by Author, Title, etc LesWilk Devices 1 03-17-2012 06:41 AM
Sort by author then title richardwarriner Library Management 3 11-16-2011 01:00 PM
Author then title sort Gary Young Calibre 4 08-30-2010 10:03 PM
Sort by author AND title bookends Calibre 2 05-09-2010 01:55 PM


All times are GMT -4. The time now is 10:34 AM.


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