Sujet : Re: From JoyceUlysses.txt -- words occurring exactly once
De : hjp-python (at) *nospam* hjp.at (Peter J. Holzer)
Groupes : comp.lang.pythonDate : 01. Jun 2024, 10:04:29
Autres entêtes
Message-ID : <mailman.78.1717229487.2909.python-list@python.org>
References : 1 2 3 4 5
Pièces jointes : signature.asc (application/pgp-signature) On 2024-05-30 19:26:37 -0700, HenHanna via Python-list wrote:
hard to decide what to do with hyphens
and apostrophes
(I'd, he's, can't, haven't, A's and B's)
Especially since the same character is used as both an apostrophe and a
closing quotation mark. And while that's pretty unambiguous between to
characters it isn't at the end of a word:
This is Alex’ house.
This type of building is called an ‘Alex’ house.
The sentence ‘We are meeting at Alex’ house’ contains an apostrophe.
(using proper unicode quotation marks. It get's worse if you stick to
ASCII.)
Personally I like to use U+0027 APOSTROPHE as an apostrophe and U+2018
LEFT SINGLE QUOTATION MARK and U+2019 RIGHT SINGLE QUOTATION MARK as
single quotation marks[1], but despite the suggestive names, this is not
the common typographical convention, so your texts are unlikely to make
this distinction.
hp
[1] Which I use rarely, anyway.
-- _ | Peter J. Holzer | Story must make more sense than reality.|_|_) | || | | hjp@hjp.at | -- Charles Stross, "Creative writing__/ | http://www.hjp.at/ | challenge!"