mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #775825 (titlecase error on the word (part) macht)
This commit is contained in:
parent
5d3455b184
commit
fb87d6b9ad
@ -68,7 +68,7 @@ def titlecase(text):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
match = MAC_MC.match(word)
|
match = MAC_MC.match(word)
|
||||||
if match and not match.group(2).startswith('hin'):
|
if match and not match.group(2)[:3] in ('hin', 'ht'):
|
||||||
line.append("%s%s" % (capitalize(match.group(1)),
|
line.append("%s%s" % (capitalize(match.group(1)),
|
||||||
capitalize(match.group(2))))
|
capitalize(match.group(2))))
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user