![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 86
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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm, maybe it should be searching author_sort not authors, chaley will have to comment.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,327
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
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])" |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |