mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Ignore initials and connectives when geenrating tokens for author name lookup
This commit is contained in:
parent
71a9332dc5
commit
736cd93e65
@ -65,7 +65,8 @@ class Source(Plugin):
|
|||||||
parts = parts[1:] + parts[:1]
|
parts = parts[1:] + parts[:1]
|
||||||
for tok in parts:
|
for tok in parts:
|
||||||
tok = pat.sub('', tok).strip()
|
tok = pat.sub('', tok).strip()
|
||||||
yield tok
|
if len(tok) > 2 and tok.lower() not in ('von', ):
|
||||||
|
yield tok
|
||||||
|
|
||||||
|
|
||||||
def get_title_tokens(self, title):
|
def get_title_tokens(self, title):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user