Live data from Hacker News

HN mining or: How I learned that there are some among us with soft quotes

github.com

81–85 of 85 posts

Re: HN mining or: How I learned that there are some among us with soft quotes

#81
post #51
post #43

Earlier quoted context omitted.

Interestingly, the logic of mapping of two single quotes into a double quote was not built into TeX; rather, the metadata in each of the standard fonts simply used the ligature mechanism to handle it, just as they would specify that "f" followed by "t" should turn into the single-character "ft" ligature. It's a shame that ASCII (and its visual representation on terminals from most manufacturers) has a wonderfully sla…

About your middle paragraph: note that ASCII doesn't have left and right quotes; at 0x60 it has GRAVE ACCENT ` (not a left quote), and at 0x27 it has APOSTROPHE ' (not a right quote). Unfortunately for many years, fonts and terminals (like the SAIL ones you mentioned) continued to encourage abusing these characters as symmetric left- and right-quotes (as they were in some character sets pre-ASCII and even an early ve…

Yeah, no. ASCII assuredly has had what it officially called "opening single quotation mark" at 0x40, and "closing single quotation mark" at 0x27, for a very long time.

For starters, most easily at hand, see Communications of the ACM, Vol. 8, No. 4, April 1965, page 207, which shows them by those names.

Of course, there are details. It says that the 0x40 character can also be used as a grave accent, but only if "preceded by an alphabetic character and a BS (Backspace) in that sequence." Oh, for the days of hard-copy terminals.

And 0x27 is worse. It is documented there to be used as Apostrophe, closing single quotation mark, and even acute accent (but again, only in the context of the three character sequence alpha-backspace-accent).

Fine, that was 1965, and no controversy. But following the actual ANSI standard along over the years, by 2007 they're still there in "Coded Character Sets - 7-Bit American National Standard Code for Information Interchange (7-Bit ASCII)" ANSI INCITS 4-1986 (R2007) / ANSI X3.4-1986 (R2007), Approved June 14, 2007; Table 7, page 12. (Well, in 1986 they'd been slightly renamed to be Left and Right Single Quotation Mark, so the names would make sense for right-to-left languages, too; just as Paren, Bracket, and Brace pairs had all also changed names from "Open/Close" to "Left/Right".) The subsequent revisions to the ASCII standard, of June 15, 2012 and November 2, 2017, I don't have copies of, but these character designations clearly lasted at least into the "updated definitions" current as of mid 2012.

So, left and right single quotes were clearly in the official standard for almost five full decades beyond "early ASCII". I expect that they survive still, and will soon go into their seventh decade, but happy to hear otherwise from anyone with access to the later standard documents.

(And, yes, of course the Unicode standard has its own (no doubt better) opinions about what goes on with the first 128 characters out of tens of thousands, and what they're called and what they're properly used for; but that's a different issue than what the ASCII standard itself has to say about cramming stuff into its overloaded character set with a grand total of 128 slots.)

Re: HN mining or: How I learned that there are some among us with soft quotes

#82
post #49
post #43

Earlier quoted context omitted.

Interestingly, the logic of mapping of two single quotes into a double quote was not built into TeX; rather, the metadata in each of the standard fonts simply used the ligature mechanism to handle it, just as they would specify that "f" followed by "t" should turn into the single-character "ft" ligature. It's a shame that ASCII (and its visual representation on terminals from most manufacturers) has a wonderfully sla…

I suspect if you dug back you'd find that very old monospace fonts had ` and ' looking like mirrors of each other, but once they realized that nobody uses ` and instead always uses ' and ", they made them vertical so that they wouldn't look "that bad".

[deleted]

Re: HN mining or: How I learned that there are some among us with soft quotes

#83
post #65
post #49

Earlier quoted context omitted.

I suspect if you dug back you'd find that very old monospace fonts had ` and ' looking like mirrors of each other, but once they realized that nobody uses ` and instead always uses ' and ", they made them vertical so that they wouldn't look "that bad".

In the old days of ASCII several characters were heavily overloaded. On teletypes it was not unusual to create accented characters by typing ` or ' (which looked more like ´), then backspacing and typing a vowel, to get (e.g.) è or é. The same could be done with ~ to create ñ, if the tilde were high up like ˜, or with " to simulate an umlaut. And of course there’s the overload of hyphen and minus, such that Unicode g…

And typewriters, before that. They all had only a single key for Apostrophe as well as Single Left Quote and Single Right Quote. In fact, since most(?) manual typewriters also lacked a "One / Exclamation" key, there was a fourth use: for "1" you typed lower-case L (yikes); while to get an exclamation point, you had to type a period, then backspace, then overstrike with an apostrophe (which is yet another reason the apostrophe et. al. character was vertical!)

Re: HN mining or: How I learned that there are some among us with soft quotes

#84
post #81
post #51

Earlier quoted context omitted.

About your middle paragraph: note that ASCII doesn't have left and right quotes; at 0x60 it has GRAVE ACCENT ` (not a left quote), and at 0x27 it has APOSTROPHE ' (not a right quote). Unfortunately for many years, fonts and terminals (like the SAIL ones you mentioned) continued to encourage abusing these characters as symmetric left- and right-quotes (as they were in some character sets pre-ASCII and even an early ve…

Yeah, no. ASCII assuredly has had what it officially called "opening single quotation mark" at 0x40, and "closing single quotation mark" at 0x27, for a very long time. For starters, most easily at hand, see Communications of the ACM, Vol. 8, No. 4, April 1965, page 207, which shows them by those names. Of course, there are details. It says that the 0x40 character can also be used as a grave accent, but only if "prece…

Yeah you're right and good point, and my earlier comment was partly misleading anyway, because there isn't much difference even among typographers between "apostrophe" and "right single quotation mark".

A better way of stating it is to start with appearance: people who started with computers where 0x40 ` and 0x27 ' looked symmetric (like ‘ and ’) would likely end up using them as symmetric quotation marks (thus the conventions used in some software like Emacs and TeX), while everyone else, where they were not symmetric (looking slanted and vertical respectively) would likely not be led down that route. It's a bit unfortunate that there was this divergence, and that it wasn't settled early enough.

An interesting example is The TeXbook itself: the 1979 TeX manual (in the "TeX and METAFONT" book), the precursor to The TeXbook and apparently written with mostly the SAIL environment in mind, simply says (early in Chapter 2):

> In the first place, there are two kinds of quotation marks in books, but only one kind on the typewriter. Even on your computer terminal, which has more characters than an ordinary typewriter, you probably have only a non-oriented double quote mark (") because the standard “ascii” code for computers was not invented with book publishing in mind. However, your terminal probably does have two flavors of single-quote marks, namely ’ and ’, which you can get by typing ` and ´. The second of these is useful also as an apostrophe.

While already in 1984, The TeXbook (second printing, October 1984: the earliest I have access to), written with more awareness of the rest of the world, has more-or-less the same text, but adds:

> American keyboards usually contain a left-quote character that shows up as something like `, and an apostrophe or right-quote that looks like ' or ´.

So already the appearance did differ across different systems.

There's a bit more on another related page of Kuhn at https://www.cl.cam.ac.uk/~mgk25/ucs/apostrophe.html (this one is about the opposite problem: Europeans using acute accent as apostrophe), and there's a bit more about history of these two ASCII positions at https://jkorpela.fi/latin1/ascii-hist.html

Re: HN mining or: How I learned that there are some among us with soft quotes

#85
post #55

Earlier quoted context omitted.

it’s an old gatekeeping / geek dick measuring thing, don’t worry about it

I'm upvoting you, because calling it disturbing really doesn't make sense unless egotism is involved. IMHO. If someone can explain why it's not just egotism, please go right ahead. Otherwise, it really does seem like it. To me at least. Other comments try to sort of deal with this problem in their explanations about soft and hard quotes, but they don't really deal with the part about it being disturbing. What's so di…

A good-faith interpretation would be that "disturbing" is meant more lightly than that. It's more like saying use of tabs (or spaces) is "disturbing". It is a cultural disagreement on surface level, but not _really_ a disagreement if you were to probe further (I doubt the author thinks people are literally disturbed if they use soft quotes).

Further, if you check my sibling comment you'll see that it is a common mistake for beginner/intermediate coders to paste these quotes into code. This is the source of the "cultural debate" in this instance. They are making a judgement about how this common copy/paste problem shows up in practice. Not a judgement about "proper usage".

It's honestly a little surprising that you took this so personally. It reads rather playfully in my opinion.

Post reply on HN