Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-22-2014, 07:10 PM   #1
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Idea for adding search tags functionality

I had an idea how to add the ability to search for tags/keywords as a way to get around Kobo's slow collections implementation. (I don't use collections myself, I usually just use the search function to find the book directly, or to get a list of all books by an author or series, so the following is just from what I have seen others posting about the speed of collections.)

The search function operates on the title, author, series, and subtitle fields, and it appears to be very fast. I have 650+ books on my Glo and if I search for "k" it takes only a second to build and display a list of 287 books containing the letter "k" in one of those four fields. In theory if I added these 287 books to a collection called "k" then it should be even faster to display that collection (since it only has to search one field). I haven't tried this, but I gather from what others have posted that it would probably take longer than 1 second to display a collection of 287 books.

The subtitle field seems pretty much useless. The subtitle just gets added to the end of the title, so if I wanted a subtitle I could just include it in the title and get exactly the same effect.

So the idea is to somehow disable the display of the subtitle (firmware patch), and add a feature to Calibre to insert the book's tags into the subtitle field in the form t::<tag name>. Then if I had tags such as t::fantasy and t::mystery for example, entering "t::" into the search bar would bring up a pick list of all my tags, and performing the search for say "t::fantasy" would bring up a list of all books with the t::fantasy tag.

My questions are: Would this work? If so, would it be faster than collections? And if so, would it be more useful than having subtitles?

Last edited by GeoffR; 04-22-2014 at 07:15 PM. Reason: spelling
GeoffR is offline   Reply With Quote
Old 04-23-2014, 12:18 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Interesting idea. And my first reaction was that it would work. But, I did some playing and I'm not as sure.

The problem is search results. I made a quick change to the utilities plugin to add the tags as the subtitle. The following are four of the values set:

Code:
t::Science Fiction t::Fantasy
t::Science Fiction
t::Science Fiction t::Young Adult t::Fantasy
t::Science Fiction t::Action & Adventure
When I searched for "t::science", the initial results list showed all of the above. If I selected "t::Science Fiction", I got all the books that had that as part of the subtitle. That worked nicely.

It worked because I had a book that "Science Fiction" as its only tag. Searching for "Fantasy" didn't work as well. I don't have any books that have "Fantasy" as their only tag. When the initial search results comes back, there isn't an entry I can select to display all the books with "Fantasy" as a tag. I have to press the "Go" button down the bottom to do that search. That still works, but it might not be as good.

One other thing, while doing the searches I found that the colon isn't a good separator. I had to change keyboards to use it.

Geoff: I have sent you a PM.
davidfor is offline   Reply With Quote
Advert
Old 04-23-2014, 01:03 AM   #3
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
You're right of course, the search pick list isn't going to be very useful. While "t::" is not a good tag prefix for the keyboard, perhaps "@" would work well, as in @fantasy, @crime, etc.

I realised though that there is are no sort options on the list of search results, they are only sorted by title. That isn't a problem when I am searching by author or series because the results are usually all by the same author, but sort options are an advantage for collections.

Thanks!
GeoffR is offline   Reply With Quote
Old 04-23-2014, 01:39 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by GeoffR View Post
You're right of course, the search pick list isn't going to be very useful. While "t::" is not a good tag prefix for the keyboard, perhaps "@" would work well, as in @fantasy, @crime, etc.
Yes, "@" works and I think it looks better. An alternative would be "#".
Quote:
I realised though that there is are no sort options on the list of search results, they are only sorted by title. That isn't a problem when I am searching by author or series because the results are usually all by the same author, but sort options are an advantage for collections.
Sorting or filtering the results like the book list would be good.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Metadata tags idea toomuchreading Library Management 8 11-10-2012 05:15 PM
Calibre Feature Request / Idea: Tags as Status Tracker talonius Calibre 4 09-12-2012 01:04 AM
Adding books and tags paulfiera Calibre 2 09-04-2011 02:19 PM
PDF, Tags and Keywords RockyBubba Library Management 4 04-03-2011 08:41 AM
Crazy idea - search? atesta Sony Reader Dev Corner 12 08-23-2008 06:33 PM


All times are GMT -4. The time now is 07:32 AM.


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