Fix #775825 (titlecase error on the word (part) macht)

This commit is contained in:
Kovid Goyal 2011-05-02 13:46:19 -06:00
parent 5d3455b184
commit fb87d6b9ad

View File

@ -68,7 +68,7 @@ def titlecase(text):
continue
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)),
capitalize(match.group(2))))
continue