How to modify calibre text sort algorithm
Hello all.
Most of my books are in spanish and so I have titles with beginning exclamation and question marks (¿ and ¡). I would like to add that symbols to the list of articles to be ignored when sorting text but I'm getting an error.
The items I'm adding are:
u'¿\\s+'),
u'¡\\s+'),
The error is:
calibre, version 4.9.1
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\tweaks.py", line 535, in apply_tweak
File "<string>", line 93
u'¿\\s+'),
^
SyntaxError: invalid syntax
The arrow points the + symbol after the s.
Of course someone would think of removing such caracters from the title but we are talking about a few thousand books. Any help would be welcome. Thanks.
Last edited by khonshu; 01-26-2020 at 10:35 AM.
|