mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:04:12 +02:00
Remove Chinese special chars in titles
This commit is contained in:
parent
78f858a875
commit
348338f75c
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ def get_title_tokens(self, title, strip_joiners=True, strip_subtitle=False):
|
|||
# Remove hyphens only if they have whitespace before them
|
||||
(r'(\s-)', ' '),
|
||||
# Replace other special chars with a space
|
||||
(r'''[:,;!@$%^&*(){}.`~"\s\[\]/]''', ' '),
|
||||
(r'''[:,;!@$%^&*(){}.`~"\s\[\]/]《》''', ' '),
|
||||
]]
|
||||
|
||||
for pat, repl in title_patterns:
|
||||
|
|
|
|||
Loading…
Reference in a new issue