News for hackers. Stuff that matters.
Re:Hyphens, minus, and dashes in Debian man pages by aezart on Thursday November 02, 2023 @09:49PM (#38123355)
The existence of multiple dashes, hyphens, etc. in English typography should be considered a bug, not a feature. Modern typesetting should standardize on a single glyph instead of perpetuating this nonsense, and it should be hyphen-minus because that's the one that's on keyboards.

The same goes for curly quotes.

Re:Hyphens, minus, and dashes in Debian man pages by WillAdams on Thursday November 02, 2023 @10:44PM (#38123804)
Aesthetics argues against that, as well as tradition. (and you failed to note the use of primes and double primes)

It's also a meaningful differentiation to be able to communicate a sentence such as:

“’struth,” he said, “she’s 5′2″ with eyes of blue.” or, “Usually, 35–40 m.p.h. is a workable and safe speed for travel—unless pedestrians are involved, in which case adjust by −20 m.p.h.”

which are far less intelligible when set with unidirectional/same width characters.

It's also useful to have the uni-directional versions ' and " for special usages in computer science contexts, while the curly forms can be used within say a .csv without the need to be escaped.

Re:Hyphens, minus, and dashes in Debian man pages by arp242 on Thursday November 02, 2023 @11:36PM (#38124167)
To be honest this seems alright (or rather, no more awkward than the original):

"'struth," he said, "she's 5'2" with eyes of blue." or, "Usually, 35-40 m.p.h. is a workable and safe speed for travel - unless pedestrians are involved, in which case adjust by -20 m.p.h."

The only one that's kind of meh is the em dash in "travel—unless", which I had to replace with " - " here. But that's kind of a display issue: there's nothing stopping anything from a font rendering "<space>-<space>" as "—", just as there's nothing stopping a font from rendering "st" as "st". That these ligatures are in Unicode is a historical mistake, and I kind of see these dashes and quotation marks as roughly similar.

Note I prefer using en dashes – like this – in a lot of my writing, which looks better to my eyes than regular dashes - like this - but having to use separate dashes for an aesthetic issue like this is kind of silly, IMHO.

What people did in hand-writing varied wildly too. I betcha that in the handwriting for lots of people the "angled" quotes look pretty straight, and things like prime marks and quotes look pretty much identical, and distinguishing between "minus sign" and "dash" is even harder.

Re:Hyphens, minus, and dashes in Debian man pages by endorphine on Friday November 03, 2023 @12:47AM (#38124644)
To offer a different perspective, the parent's version looks better (i.e. readable) and more pleasing to me.
Re:Hyphens, minus, and dashes in Debian man pages by eviks on Friday November 03, 2023 @02:56AM (#38125382)
> "she's 5'2" with eyes of blue."

you don't easily know where the quote ends in the more complicated cases (e.g. quotes at the end of a paragraph) if you use the same marks, especially since in typography quotes aren't repeated (though maybe they should)

Re:Hyphens, minus, and dashes in Debian man pages by WillAdams on Friday November 03, 2023 @07:19AM (#38127092)
Yeah, it was late, and I failed to make the latter portion of that an internal/quoted quote which would have made my point more clear.
Re:Hyphens, minus, and dashes in Debian man pages by _factor on Friday November 03, 2023 @12:37PM (#38131194)
There should have been a base simple version, and variations of it to keep the keyboard functional. The variations would need to be specifically called out to be used over the simple case. The way it looks now is like a bucket with so many dupes it becomes a mess.
Re:Hyphens, minus, and dashes in Debian man pages by mikepurvis on Thursday November 02, 2023 @11:10PM (#38123983)
I really appreciate the use of proper em-dashes aesthetically— I use them for parentheticals, interruptions, and to join related thoughts.

iOS and MacOS have native means of inputting the character and on Windows I have a small utility that replaces "--=" with an en-dash and "==-" with an en-dash.

Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @01:15AM (#38124808)
Same. Once you learn the appropriate uses for each and how to input them, it becomes easy to just use the correct dash.
Re:Hyphens, minus, and dashes in Debian man pages by asplake on Friday November 03, 2023 @02:43AM (#38125310)
> Just use the correct dash

Except that spaced vs unspaced and en vs em dashes are issues of British vs US English. Differences in usage as well as appearance.

Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @03:53AM (#38125732)
Sure. Use whatever is standard for your variety of English. Either is better than just using hyphen-minus everywhere.
Re:Hyphens, minus, and dashes in Debian man pages by Georgelemental on Friday November 03, 2023 @01:35AM (#38124932)
On Windows, I use http://wincompose.info/ for all my special-character needs (and use the system compose key on Linux).
Re:Hyphens, minus, and dashes in Debian man pages by pests on Friday November 03, 2023 @04:55AM (#38126125)
You can just use Windows Key + . in newer Windows

It's sold as the emoji keyboard but there's a tab for symbols that includes all the dashes. This interface also has built in clipboard history too.

Re:Hyphens, minus, and dashes in Debian man pages by Carioca on Thursday November 02, 2023 @11:11PM (#38123984)
While I agree with most of what you've said, I'm not sure I see a use-case for the distinction between Hyphen, Minus and Hyphen-Minus. Specifically, with having all three. If I were designing Unicode, I'd remove the Minus sign specifically. That way, if you absolutely need to e.g. use an old font that used long minuses (in old texts they could be even an em-dash), it would still be _encoded_ as the parseable expected by every software to date
Re:Hyphens, minus, and dashes in Debian man pages by adrian_b on Friday November 03, 2023 @02:53AM (#38125364)
I would remove Hyphen-Minus, whose only reason for existence was that the mechanical typewriters saved a key by using the same character for both purposes.

Distinct hyphens and minuses are necessary both due to their different meanings and due to their different traditional appearance in any typeface that does not have fixed width.

At most the en dashes could be unified with minuses, because they normally have identical appearance, even if they have different meanings.

Re:Hyphens, minus, and dashes in Debian man pages by WillAdams on Friday November 03, 2023 @07:18AM (#38127083)
The minus symbol aligns with the + symbol and numbers, en- and em-dashes align with text (and there should be different forms for use with lowercase, and all caps settings).
Re:Hyphens, minus, and dashes in Debian man pages by srinivgp on Thursday November 02, 2023 @11:14PM (#38124011)
> which are far less intelligible

they seem fine to me

maybe you're just used to it, and i'm used to the other it, and mine requires fewer distinct glyphs

Re:Hyphens, minus, and dashes in Debian man pages by baggy_trough on Friday November 03, 2023 @12:31AM (#38124550)
Personally I find the "adjust by −20 m.p.h." a little odd looking.
Re:Hyphens, minus, and dashes in Debian man pages by gorgoiler on Friday November 03, 2023 @02:20AM (#38125171)
While I the other typography looks great, in safari on iOS your “minus twenty” doesn’t actually look better than plain old -20, to me.
Re:Hyphens, minus, and dashes in Debian man pages by rtpg on Thursday November 02, 2023 @11:38PM (#38124189)
There’s a reason that killer apps in the 80s were rich text editors: aesthetics and layout matter.

Having said that, there’s definitely environments (shells and the like) where you want different behavior. Though even there it’s tricky: emoji being Unicode and a lack of random rules means that emoji “just work” everywhere. Other normalization rules might wreak havoc in certain languages people don’t know about.

ASCII only for talking to the computer is a bit of an outdated concept at this point

Re:Hyphens, minus, and dashes in Debian man pages by cultureswitch on Friday November 03, 2023 @08:22AM (#38127638)
> ASCII only for talking to the computer is a bit of an outdated concept at this point

It's not. The mapping between ASCII and keyboard keys is clear. Wherever unambiguous English text is required (for example programming and documentation), ASCII is still the best.

Each person may want to use renderers that will do fancy things, and that's fine because it's on the render side. The issue with Unicode is that it's a messy mix of presentation and data. ASCII isn't. So whenever you create a Unicode document, you are unintentionally embedding presentation information into it, and it's not the case with ASCII.

Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @12:56AM (#38124703)
Disagree. The bug is that typewriters didn't include more characters, and that we've replicated that behaviour with computers even though we can now do better.

The different dashes have different uses and meanings, so it is appropriate that they have different glyphs. It is not nonsense.

Typography will continue to evolve over time. People seem to want more richness and complexity, not less. We've already moved beyond fixed-width fonts, even though that was all typewriters and early computers could do.

Re:Hyphens, minus, and dashes in Debian man pages by toast0 on Friday November 03, 2023 @02:46AM (#38125326)
> Disagree. The bug is that typewriters didn't include more characters, and that we've replicated that behaviour with computers even though we can now do better.

Typewriters didn't need multiple dash characters, because you can extend a hypen into an en-dash by typing hypen, backspace, half-space, hypen. You can make an em-dash with another backspace, half-space, hypen. Of course, computers lost half spaces and overstriking, for the most part.

Maaaaaaybe you need a separate minus from hypen, but that could be something you swap in, if needed (my typewriter has two keys that you can swap out, if you sent away for the keys anyway; not sure if smith-corona still stocks those)

Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @04:04AM (#38125805)
> computers lost half spaces and overstriking

And gained option and option+shift, which is even better (and many programs will auto-convert multiple hyphens to an en- or em-dash anyway).

How common was half spaces and overstriking anyway? I don't recall seeing it much, but it's been years since I've seen a typewritten letter.

Re:Hyphens, minus, and dashes in Debian man pages by renox on Friday November 03, 2023 @08:07AM (#38127497)
It depends on the users and the typewriter but it could be quite frequent: I remember an old typewriter which didn't have é so you had to use e and ' to make it, same for ê, etc.
Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @08:30AM (#38127726)
Probably only used by the same sort of people that now use en- and em-dashes!
Re:Hyphens, minus, and dashes in Debian man pages by toast0 on Friday November 03, 2023 @02:50PM (#38133212)
Half spaces were pretty useful for centering text, or squeezing in corrections. And overstriking was how you underlined things. Filling forms with a typewriter is kind of overstriking, and was pretty common (typewriters were great for filling out forms with carbon or carbonless duplicates).
Re:Hyphens, minus, and dashes in Debian man pages by eru on Friday November 03, 2023 @06:24AM (#38126665)
Some early typewriters mapped 0 and o and 1 and i to the same keys even.
Re:Hyphens, minus, and dashes in Debian man pages by eru on Friday November 03, 2023 @06:23AM (#38126660)
Variable width fonts are older than fixed-width fonts. Typesetting long predates typewriters and computers.
Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @09:14AM (#38128229)
Of course. The argument here though is should we return to richness of the past, or stick with the limitations of typewriters and early computer systems?

Most people have already decided they prefer variable-width fonts (except when writing code) and multiple typefaces to setting everything in 12pt Courier. Using different dashes instead of just the keyboard hyphen-minus is the same issue.

Re:Hyphens, minus, and dashes in Debian man pages by rixed on Friday November 03, 2023 @06:57AM (#38126878)
I too miss the time when computers were meant to be symbolic, and 7bit codes were more than enough to explain ideas, and the small minority of people who actually needed to perform typography had dedicated softwares and as far as I know it worked pretty well, in that nobody had to wonder what kind of hyphen or what kind of space would a simple keystroke translates into...
Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @10:33AM (#38129394)
I miss the time when only writers had to type, and everyone else had secretaries to do it for them. /s

Now we do our own typing, and increasingly, our own typesetting.

Re:Hyphens, minus, and dashes in Debian man pages by rixed on Tuesday November 14, 2023 @04:19AM (#38260933)
I don't think I made my point clear.

Less than 5% of what I'm doing is related to typography (namely: only when displaying text for the end user). 95% of the time when I manipulate text, the text is intended for a computer to process further. I don't want typographic issues such as the proper length of spaces when delimiting keywords on the command line, or proper collation order to slow down my `git grep`, any more than I want to be bothered by variable width fonts when I'm writing code.

UTF-8 to compose user visible strings in GUI is a godsend, though.

Re:Hyphens, minus, and dashes in Debian man pages by cultureswitch on Friday November 03, 2023 @08:08AM (#38127506)
Using 5 technically different extremely similar glyphs for 4 extremely niche corner cases of typography is nonsense.

Text is not written only to be read visually by a human on printed paper. Arguably, text today is almost never used that way. What actually matters to humans is that text can be copied and pasted and rendered unambiguously. The distinction between minus-dash, dash, en dash, em dash and minus is pointless. It is literally impossible to confuse one for the other in actual usage. Same for all the 14 technically different quotes in the English language. Literally pointless to anyone but typography geeks.

These typographic rules are vestigial. We have inherited them from a time when it made no sense to limit the number of different characters used in script and it made no sense either to make it easy for a reader to figure out which typesetting blocks the typesetter put on the machine. Both of these things are now very important.

Re:Hyphens, minus, and dashes in Debian man pages by TRiG_Ireland on Friday November 03, 2023 @08:54AM (#38127973)
> minus-dash, dash, en dash, em dash and minus is pointless

Hyphens and em-dashes have literally opposite functions. Hyphens join words together, as in compound adjectives. Em-dashes separate clauses in a sentence. (And en-dashes are used for ranges.)

Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @10:00AM (#38128872)
> Using 5 technically different extremely similar glyphs for 4 extremely niche corner cases of typography is nonsense.

They're not extremely niche — they are common and mostly obvious.

> What actually matters to humans is that text can be copied and pasted and rendered unambiguously

Yes. What is ambiguous is the hyphen-minus. It literally combines two meanings in its name.

> These typographic rules are vestigial.

They are still widely used, and still function as intended, so they are not vestigial.

> We have inherited them from a time when it made no sense to limit the number of different characters used in script

I would argue the opposite: they declined in use only because of a (temporary) limit to the number of characters available on some technologies. Thanks to Unicode the limit is removed and their use is increasing again.

Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @10:16AM (#38129098)
I would also point out that in addition to the different dashes, there are (and with good reason) different hyphens. The hyphen-minus is too overloaded.
Re:Hyphens, minus, and dashes in Debian man pages by abrookewood on Friday November 03, 2023 @01:17AM (#38124824)
See the comment above "hyphen-minus [is] found on US layout keyboards", but not on all keyboards.
Re:Hyphens, minus, and dashes in Debian man pages by bee_rider on Friday November 03, 2023 @01:40AM (#38124966)
If you find a bug tracker for English, we can think about reporting this, but I’m sure they have alot of more important fixes to make.

Anyway, enough people seem to like all the extra dashes, and they don’t cause much harm, so I think it will be an uphill battle.

And who knows, maybe image recognition will free us from keyboards yet, and we can return to more sensible input paradigms, like pencils.

Re:Hyphens, minus, and dashes in Debian man pages by eviks on Friday November 03, 2023 @02:49AM (#38125343)
but hyphen-minus can't be used as a minus since its width and height don't match numbers/+

Also any modern typesetting can autoreplace what's on the keyboard, so it shouldn't stick to the bastardized version just because it's on the keyboard

Re:Hyphens, minus, and dashes in Debian man pages by zajio1am on Friday November 03, 2023 @08:33AM (#38127772)
> but hyphen-minus can't be used as a minus

That depends on fonts. In some it is represented more like minus (matching plus and center of numbers) and not like hyphen.

Re:Hyphens, minus, and dashes in Debian man pages by eviks on Friday November 03, 2023 @11:37AM (#38130409)
Which fonts have identical glyphs for these two symbols?
Re:Hyphens, minus, and dashes in Debian man pages by ghusto on Friday November 03, 2023 @07:05AM (#38126958)
But they're used for different things. We could probably get it down to two though (not using their real names, but what I suggest they could be called for simplicity):

- The hyphen. Use it for minus and concatenation, and anywhere you need something that looks like a dash ;)

— The dash. Used to break up a sentence — mid flow no less! — and that's all. In some ways the opposite of the hyphen

And that's it, you can throw the rest away. Nobody uses them outside of fussy books, and even then the people reading them wouldn't notice their absence.

Re:Hyphens, minus, and dashes in Debian man pages by layer8 on Friday November 03, 2023 @07:25AM (#38127135)
> Use it for minus and concatenation

Hyphen and minus usually have a different vertical position, because hyphens should be positioned relative to the x height, whereas minus should be consistent with plus and positioned relative to the digit height.

In addition, minus signs are substantially wider than hyphens (again, like the plus sign). Minus width is often similar to en-dash width.

You want minus signs to be like the plus sign without its vertical bar, but you don’t want the plus sign and hyphen to have the same width, or same vertical position. That would just make at least one of them look awkward in context.

Re:Hyphens, minus, and dashes in Debian man pages by ghusto on Saturday November 04, 2023 @05:43AM (#38139454)
I understand there are subtle differences, but for me at least they aren't noticeable enough. i.e. that they matter less than the benefit that would be reaped from having just these two symbols.

Sounds like you disagree, and the differences would really stick out for you?

Re:Hyphens, minus, and dashes in Debian man pages by perilunar on Friday November 03, 2023 @08:21AM (#38127633)
> Nobody uses them outside of fussy books

En-dashes are used all the time (correctly) to indicate number ranges. The hyphen is too small, and just looks wrong for this use-case. e.g. 0–100 vs 0-100.

Re:Hyphens, minus, and dashes in Debian man pages by jjgreen on Friday November 03, 2023 @10:23AM (#38129211)
The Académie anglaise awaits your formal bug report with interest.