View Single Post
Old 05-10-2010, 12:13 PM   #50
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,460
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Starson17 View Post
IIRC, that code requires an exact match of {authors}, but uses a fuzzy match of title (convert to lower case, remove punctuation, eliminate excess whitespace, remove leading indefinite articles "a", "an", "the", etc.).
I haven't looked at the other match algorithms. I should.

I am using user_none's code, which first lower_cases the title and then uses a regexp to prepare the title for matching. The regexp,
Code:
re.sub('(?u)\W|[_]', '' ...)
removes all non-alphanumeric and '_' characters.

Quote:
I don't have any ebook devices (or none that Calibre considers to be a "Device")
I also have a device that isn't a calibre device -- an HTC phone. I have been wondering whether it makes sense to build a general driver that matches any USB storage that the other drivers do not, and simply uses a folder on the device to store books. One way to do it is to have a USB plugin that accepts lists of device id:folder pairs. I don't think it would be outrageously hard, but I could be surprised, especially when cross-platform issues are factored in.

What I don't know is if it would be useful. Sometimes I want it, and sometimes I think that saving to disk is enough. However, with the new OnDevice feature, I think that I will want my phone to be considered a valid device. Reflection continues.
chaley is offline   Reply With Quote