mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3fd851a355
commit
f130425da8
@ -124,7 +124,10 @@ def cap_author_token(token):
|
||||
scots_name = None
|
||||
for x in ('mc', 'mac'):
|
||||
if (token.lower().startswith(x) and len(token) > len(x) and
|
||||
token[len(x)] == upper(token[len(x)])):
|
||||
(
|
||||
token[len(x)] == upper(token[len(x)]) or
|
||||
lt == token
|
||||
)):
|
||||
scots_name = len(x)
|
||||
break
|
||||
ans = capitalize(token)
|
||||
|
Loading…
x
Reference in New Issue
Block a user