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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-24-2011, 11:42 PM   #1
Stampercam
Connoisseur
Stampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to beholdStampercam is a splendid one to behold
 
Stampercam's Avatar
 
Posts: 82
Karma: 19674
Join Date: Jan 2011
Device: ipad, MiGear
Tag browser searching

The recent change to allow clicking on a category in the tag broswer is a great new option, however it doesn't seem to be working quite right for me.

When I go into authors and click on I it, in the tag browser it shows me the authers whose surname starts with I, but in the book list it shows the authors whose FIRST name starts with I, so instead of Greg Isle books, I'm getting Isaac Asimov etc.

Last edited by Stampercam; 06-24-2011 at 11:44 PM. Reason: typo
Stampercam is offline   Reply With Quote
Old 06-25-2011, 12:51 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,374
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm, maybe it should be searching author_sort not authors, chaley will have to comment.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 06-25-2011, 04:42 AM   #3
chaley
"chaley", not "charley"
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: 4,975
Karma: 802238
Join Date: Jan 2010
Location: France
Device: Many android devices
This got complicated. Two problems:

1) must check each author in the author_sort, but that means a complicated regexp that checks for ampersands. Didn't need to do this for authors.
2) must build a character class to handle letter equivalences in some languages.

For an example or the second problem, in some locales the letters S and Š are to sort as equivalent letters. The search must find either letter whether it is a first or later author (later authors are identified by the & character). The regex that calibre now generates to do that is
Code:
author_sort:"~(^[ŠS])|(&\\s*[ŠS])"
Code changes submitted.
chaley 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
Tag browser partioning issue jesscat Calibre 4 01-04-2011 05:46 PM
Tag Browser partitioning dasimser Calibre 2 01-03-2011 12:18 PM
Empty tag browser Rachel Calibre 18 07-26-2010 11:42 AM
Tag Browser - grayed out tags? Starson17 Calibre 1 07-25-2010 12:16 PM
Searching for the absence of a tag? TMF Calibre 3 08-29-2009 06:07 PM


All times are GMT -4. The time now is 08:18 PM.


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