mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-26 02:53:19 +02:00
...
This commit is contained in:
parent
41815e218a
commit
67eb873eab
1 changed files with 1 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ def cap_author_token(token):
|
|||
if lt in ('von', 'de', 'el', 'van', 'le'):
|
||||
return lt
|
||||
if re.match(r'([a-z]\.){2,}$', lt) is not None:
|
||||
# Normalize tokens of the form J.K. to J. K.
|
||||
parts = token.split('.')
|
||||
return '. '.join(map(capitalize, parts)).strip()
|
||||
return capitalize(token)
|
||||
|
|
|
|||
Loading…
Reference in a new issue