str.title() fails with words containing apostrophes
jussi.piitulainen at helsinki.fi
Tue Mar 7 02:21:17 EST 2017
Marko Rauhamaa writes:
> Steve D'Aprano wrote:
>> I came across this book title:
>> Täällä Pohjantähden alla (‘Here beneath the North Star’)
>> which is partly title case, but I'm not sure what rule is being
>> applied there. My guess is that "Täällä Pohjantähden" means "North
>> Star" and it counts as a proper noun, like countries and people's
>> names, and so takes initial caps for each word. Am I close?
"Täällä" is "here", "Pohjantähden" is "North Star". So it's just a first
word and a name.
("Pohja" and "tähti" correspond to "North" and "Star".)
More information about the Python-list