4 ms·
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 u
by drfuchs 4y ago
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 slanty left-quote character, but the right-quote character is typically shown as vertical. This makes TeX input files that contain quotations look kind of yucky, which is all the more galling as the original SAIL terminals had symmetric quotes, so everything looked beautiful there (never mind also having proper uparrow and downarrow characters to indicate superscript and subscript, rather than the ugly caret and underscore characters that we're all stuck with in ASCII-land TeX).
Source: Me, 1980 or so, working on TeX and Metafont.
- bombcar 4y agoI 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".
- anjbe 4y agoIn 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 gave up and named U+002D “hyphen‐minus,” and created two separate characters U+2212 “minus” (−) and U+2010 “hyphen” (‐) to use in situations where the typography matters. Most fonts seem to use identical glyphs for hyphen‐minus and minus, but I’ve seen some that try to split the difference, giving hyphen‐minus a glyph with a height and width somewhere in between hyphen and minus. If you find minus and hyphen‐minus hard to distinguish visually, just remember that a true minus sign looks just like a plus without the vertical part. Compare the alignments: - example (U+002D hyphen‐minus) + example (plus) − example (U+2212 minus)
- drfuchs 4y agoAnd 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!)
- deleted 4y ago[deleted]
- thangalin 4y agoKeenWrite[0] is my free, open-source plain text Markdown editor that exports to XHTML. That XHTML is passed into ConTeXt (typesetting software) to produce beautifully typeset PDFs. On the way from Markdown to XHTML, KeenWrite passes the XHTML through KeenQuotes[1], my straight quote curling library, to encode quotation marks as HTML entities. This means ' becomes lsquo, rsquo, or apos, depending on the context (pun intended, sorry). Those HTML entities are then curled correctly when any theme[2] is applied. What bytes is not having a separate glyph for a curled apostrophe because it makes detection of British (or nested) quotations a difficult chore for natural language processors. To get a curled apostrophe, word processors inject the semantically incorrect right-curled single quote, which ought to be reserved for a closing quotation mark exclusively. There are a few fonts that do curl the apostrophe, such as GFS Didot[3]. [0]: https://github.com/DaveJarvis/keenwrite https://github.com/DaveJarvis/keenwrite [1]: https://whitemagicsoftware.com/keenquotes/ https://whitemagicsoftware.com/keenquotes/ [2]: https://github.com/DaveJarvis/keenwrite-themes/blob/main/xhtml/xml-entities.tex https://github.com/DaveJarvis/keenwrite-themes/blob/main/xht... [3]: https://fonts.google.com/specimen/GFS+Didot https://fonts.google.com/specimen/GFS+Didot
- svat 4y agoAbout 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 version of ASCII), despite their updated definitions. See Markus Kahn's page at https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html which explains it well. (Also: the one-page documentation (plus one page implementation) of the LaTeX “upquote” package: http://mirrors.ctan.org/macros/latex/contrib/upquote/upquote.pdf http://mirrors.ctan.org/macros/latex/contrib/upquote/upquote... )
- bentley 4y agoThat’s the Unicode way of doing things (which I heartily subscribe to), but in ASCII’s original conception what you describe as “abuse” was a feature. For instance, in RFC 20 which is dated 1969, 0x27 is named “Apostrophe (Closing Single Quotation Mark/Acute Accent)” and 0x60 is named “Grave Accent (Opening Single Quotation Mark)”. Additionally, double quote also served as a diaeresis, and comma as a cedilla. Of course, your links are right: it makes no sense to overload these characters anymore now that we have character sets and software capable of providing typographic niceties. But it’s fun to know the history.
- drfuchs 4y agoYeah, 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.)