Live data from Hacker News

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

github.com

41–50 of 85 posts

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

#41
post #11

Earlier quoted context omitted.

smart/soft quotes are usually: ‘|’|“|” but there are also other quoting glyphs in ASCII but especially UTF-8

Why are they soft or smart? That makes no sense - they’re just open and close quotation marks.

They are smart because the feature that inserts them is "smart". "Context-aware quotes" or "smartly inserted quotes" might be more accurate.

A PM somewhere probably thought "smart quotes" sounded neat, and here we are.

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

#42
post #28

They aren't smart or soft, they are typographically correct. On PC I have AutoHotKey bindings for German and English quotes, single and double, and I'm usually using them.

You might want to give Ilya Birman's Typography Layout a try: https://ilyabirman.net/typography-layout/

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

#43
post #29
post #18

This has been driving me nuts for decades: "Smart Quotes" first appeared as the name of a feature of interactive document editing tools, wherein the user would always keyboard the "vertical" single or double quote ASCII character, and the software would look at the context of where that quote character was being inserted, and choose the correct "left-quote" or "right-quote" character to actually insert into the docum…

TeX (as a mostly batch formatter) didn't do this, but it did map ASCII quote characters to the typesetting ones. Including mapping a sequence of two single quote or backquote characters to the typeset double quotes. (FrameMaker was great, BTW. It was what got me into developing fancy layout style sheets and templates, which I later also did with Interleaf, MS Word, LaTeX, and various Web stuff. Somewhere in there, I…

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.

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

#44
This is the first time I'm hearing the term 'smart quotes' or 'soft quotes'. I googled to see what it is and all I got was some 'smart' quotes. There's an obscure Wiktionary page on smart quotes which also does not really explain what it is. The GitHub page being linked itself is so vague and cryptic it's hard to understand what is even talked about.

To all those who are confused, smart quotes or soft quotes are those context aware quote marks that some word processors insert which depending on context, will put either closing or opening quote marks.

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

#45
post #10

Earlier quoted context omitted.

That's incorrect. This is a double quote: ", 0x22, ascii This is a smart open quote: “, 0x201c, unicode This is a smart close quote: ”, 0x201d, unicode By default your keyboard double-quote key produces the ascii double quote mark, and that is what's used for quoting in virtually every programming language. Word and many email clients will use smart-quotes by default, but they're pretty rare in programming, hence why…

They’re not smart quotes - they're just open and close quotation marks. What is smart about them? And I don’t see how one is any “softer” than the other. People’s programming editors often do paren matching - does that make them smart parens? No they’re still just regular old parens.

On my computer quotation marks default to low/high, so it depends on your language setting.

i.e. - the quotes are smart because they adapt to your region.

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

#46
post #4

What is a soft quote?

They are better known as "smart quotes" iOS at the least by default will substitute "dumb" quotes with smart quotes in text boxes.

Are there any other places on on the internet that call them "soft quotes"?

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

#48
post #18

This has been driving me nuts for decades: "Smart Quotes" first appeared as the name of a feature of interactive document editing tools, wherein the user would always keyboard the "vertical" single or double quote ASCII character, and the software would look at the context of where that quote character was being inserted, and choose the correct "left-quote" or "right-quote" character to actually insert into the docum…

I think “smart quotes” is fine as a name, since most people who type them still do it automatically via a context-based logic (whether it’s a word processor or text box input on an iPhone). And it works better than “curly quotes” since they are not curly in some fonts.

If you’re going to be pedantic, I’m not sure that “left-quote” or “right-quote” is correct either. Shouldn’t it be “left double quotation mark” or “right double quotation mark”?

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

#49
post #43
post #29

Earlier quoted context omitted.

TeX (as a mostly batch formatter) didn't do this, but it did map ASCII quote characters to the typesetting ones. Including mapping a sequence of two single quote or backquote characters to the typeset double quotes. (FrameMaker was great, BTW. It was what got me into developing fancy layout style sheets and templates, which I later also did with Interleaf, MS Word, LaTeX, and various Web stuff. Somewhere in there, I…

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".

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

#50
post #43
post #29

Earlier quoted context omitted.

TeX (as a mostly batch formatter) didn't do this, but it did map ASCII quote characters to the typesetting ones. Including mapping a sequence of two single quote or backquote characters to the typeset double quotes. (FrameMaker was great, BTW. It was what got me into developing fancy layout style sheets and templates, which I later also did with Interleaf, MS Word, LaTeX, and various Web stuff. Somewhere in there, I…

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…

KeenWrite[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

[1]: https://whitemagicsoftware.com/keenquotes/

[2]: https://github.com/DaveJarvis/keenwrite-themes/blob/main/xht...

[3]: https://fonts.google.com/specimen/GFS+Didot

Post reply on HN