News for hackers. Stuff that matters.
Re:History of the broken vertical bar, being the ¦ form of | by ncmncm on Friday August 09, 2019 @12:02AM (#20651250)
For anybody who has used a Vt52, H19, or similar terminal, there is no mystery. Before we had bitmap graphics, we had fill-in forms with ASCII graphics. A vertical line made with solid bars looked uneven, but the gap in the bar was the same height as the gap between a bar and the one above or below it, so it made a pleasing vertical dashed line to match the horizontal lines of actual hyphens and equal signs.

Nowadays, of course, if you want a line, you draw a line, so the gap no longer has a purpose.

Re:History of the broken vertical bar, being the ¦ form of | by cpach on Friday August 09, 2019 @12:04AM (#20651256)
I don’t get it. Why did the line look uneven?
Re:History of the broken vertical bar, being the ¦ form of | by throwaway2048 on Friday August 09, 2019 @12:09AM (#20651280)

    +-----+      +-----+
    |     |      ¦     ¦
    |     |  VS  ¦     ¦
    |     |      ¦     ¦
    +-----+      +-----+
Your font rendering mileage may vary.
Re:History of the broken vertical bar, being the ¦ form of | by dfeojm-zlib on Friday August 09, 2019 @02:42AM (#20651839)
Re:History of the broken vertical bar, being the ¦ form of | by chias on Friday August 09, 2019 @03:18AM (#20652002)
Whoa, sweet Dwarf Fortress graphics pack ;)
Re:History of the broken vertical bar, being the ¦ form of | by Filligree on Friday August 09, 2019 @08:45AM (#20653760)
Fun fact: DF contains a CP437-to-Unicode mapping function, to let the text-mode output work on modern terminals.

It's still all CP437 internally.

Re:History of the broken vertical bar, being the ¦ form of | by mixmastamyk on Friday August 09, 2019 @03:13AM (#20651976)
That was in the 80s and had a large number of box drawing characters.
Re:History of the broken vertical bar, being the ¦ form of | by cschmidt on Friday August 09, 2019 @08:57AM (#20653840)
There is a proposal to add some of the old missing box drawing characters to Unicode, in a section called "Graphics for Legacy Computing":

http://www.unicode.org/L2/L2017/17435r-terminals-prop.pdf

They have been implemented recently in the Pragmata Pro font I use, which seems to just keep adding glyphs

https://www.fsd.it/shop/fonts/pragmatapro/

Re:History of the broken vertical bar, being the ¦ form of | by kijin on Friday August 09, 2019 @05:36AM (#20652724)
Unicode still contains a large number of box drawing characters. Some are broken into three, or even four parts.

https://en.wikipedia.org/wiki/Box-drawing_character

Re:History of the broken vertical bar, being the ¦ form of | by mywacaday on Friday August 09, 2019 @07:28AM (#20653296)
I remember copying a random maze generator from a magazine that used a lot of these on a C64, fun times!
Re:History of the broken vertical bar, being the ¦ form of | by WalterBright on Friday August 09, 2019 @12:28AM (#20651347)
I always hated the Windows product key font which you'd have to type in to register Windows. The B looked like 8 and the D looked like O.

I'd have to break out a magnifying glass to figure it out.

That font seems to be popular for serial numbers and any other use case where the user has to type in a series of characters.

I call it the IH8USRS font.

Re:History of the broken vertical bar, being the ¦ form of | by Dextro on Friday August 09, 2019 @07:31AM (#20653310)
It's interesting that codes for the Nintendo eShop have certain similar looking characters blocked off even in the keyboard you use to input. That way there's no question even if it's a zero or the letter O for example.
Re:History of the broken vertical bar, being the ¦ form of | by userbinator on Friday August 09, 2019 @08:26AM (#20653655)
The Windows product keys are encoded in base24 using the alphabet BCDFGHJKMPQRTVWXY2346789, no doubt chosen to avoid ambiguities (e.g. 5 and S, 1 and I, O and 0), but unfortunately the B and 8 confusion remains.
Re:History of the broken vertical bar, being the ¦ form of | by sago on Friday August 09, 2019 @09:54AM (#20654298)
Interesting. I've not thought about this before, but it seems at first glance a rather inconsistent set.

Resolved by removing both: O and 0; I and 1 and L (l); S and 5.

Resolved by removing the letter: Z and 2; A and 4.

Not resolved: B and 8; G and 6.

I wonder if it was just a quick idea someone had, or if there is some research behind it.

Re:History of the broken vertical bar, being the ¦ form of | by martin_a on Friday August 09, 2019 @10:29AM (#20654651)
Why did they remove E? Can't easily be confused with 3, I think.
Re:History of the broken vertical bar, being the ¦ form of | by kube-system on Friday August 09, 2019 @11:24AM (#20655184)
Maybe they removed the vowels so that a randomly generated key doesn’t have any unexpected words in it?
Re:History of the broken vertical bar, being the ¦ form of | by marcosdumay on Friday August 09, 2019 @08:32AM (#20653690)
Too bad this was not written near the keys.

Or, well, I don't know if it would be very useful to write there either. At least not on that font.

Re:History of the broken vertical bar, being the ¦ form of | by mannykannot on Friday August 09, 2019 @07:43AM (#20653373)
Thanks for the neologism! Regardless of which font it is rendered in, it is clear from the context that the third character is the number 8 and not the letter B.
Re:History of the broken vertical bar, being the ¦ form of | by phjesusthatguy3 on Friday August 09, 2019 @02:41PM (#20657178)
I saw a custom license plate a few months ago that was A8C0EF6 which, if not reading carefully, looked just like ABCDEFG
Re:History of the broken vertical bar, being the ¦ form of | by happytoexplain on Thursday August 08, 2019 @11:05PM (#20651016)
Gotta love how much this write-up refers to the serifs on the lowercase L, but is rendered in a font (on Windows at least) that entirely omits those serifs.
Re:History of the broken vertical bar, being the ¦ form of | by salutonmundo on Thursday August 08, 2019 @11:19PM (#20651079)
Most sans-serif fonts poorly distinguish between "I" and "l", I've found. (This led to my dad thinking that artificial intelligence was called "Al", as in "Albert".)
Re:History of the broken vertical bar, being the ¦ form of | by hermitdev on Thursday August 08, 2019 @11:55PM (#20651220)
This is why I prefer a fixed width font when it can be ambiguous. They don't typically have the ambiguities between "l" (lower case "L") and "I" (upper case "i") or even the number "1", similarly between the letter "O" and number "0".

Personally, when handwriting, I got in the habit of striking a hyphen through the number "7" to disambuate against a possible number "1". Likewise, I'd strike through the letter "Z" to disambiguate from the number "2", and a diagonal strike through the number "0" to differentiate from the letter "O".

My handwriting is terrible, and it has saved me a lot of grief over the years, but especially in my engineering courses in college.

Re:History of the broken vertical bar, being the ¦ form of | by burfog on Friday August 09, 2019 @02:59AM (#20651920)
7 and Z have far less disruptive fixes.

For 7, just make the top long and the slash slanty. Don't do that for 1.

For Z, give the top a very slight curve, and optionally do the same for the bottom. That is, bend the middle of the line in toward the center of the letter. It might be enough to just imagine doing this, so that you don't end up with a curve going the other way. Give the 2 a proper curve instead of a sharp corner, and it will look different.

Re:History of the broken vertical bar, being the ¦ form of | by gerdesj on Friday August 09, 2019 @05:02AM (#20652509)
That's fine but the reason I use the extra bits is to try and make a character unambiguous for a reader who does not know my handwriting habits. In the case of Z I do both - your suggestion and put a bar across it. 2 gets a small loop at the bottom left.
Re:History of the broken vertical bar, being the ¦ form of | by delhanty on Friday August 09, 2019 @05:29AM (#20652683)
Or (for 7) as in [0]

>in Japan, Korea and Taiwan 7 is written as ① in the illustration to the right. [1]

[0] https://en.wikipedia.org/wiki/7#Evolution_of_the_glyph

[1] https://en.wikipedia.org/wiki/7#/media/File:Sevens.svg

Re:History of the broken vertical bar, being the ¦ form of | by C1sc0cat on Friday August 09, 2019 @04:18AM (#20652266)
This is what I do I still use German/engineering Sevens and Zed's - it was that I was taught at 19 when I started work.
Re:History of the broken vertical bar, being the ¦ form of | by pbhjpbhj on Friday August 09, 2019 @07:26AM (#20653273)
Same, I use crossed 7 and z, but I think of them as French (which was my first foreign language at school), and started using them in A-level maths (UK).
Re:History of the broken vertical bar, being the ¦ form of | by JadeNB on Friday August 09, 2019 @10:02AM (#20654376)
> Personally, when handwriting, I got in the habit of striking a hyphen through the number "7" to disambuate against a possible number "1". Likewise, I'd strike through the letter "Z" to disambiguate from the number "2", and a diagonal strike through the number "0" to differentiate from the letter "O".

My handwriting also makes it hard to distinguish q from 9 in a situation where the baseline isn't clear.

I like and use your solutions, but the problem is that, if the reader doesn't know about them and doesn't have the other candidates to compare, a '1', a '2', or an 'O' has no visible mark to indicate that it's not a '7', a 'Z', or an '0'—that is, they are identified by missing, not additional, information. (I don't know any good solution, though.)

Re:History of the broken vertical bar, being the ¦ form of | by hermitdev on Saturday August 10, 2019 @11:23PM (#20666021)
Surprisingly, in my experience, most people pick up on it with no explanation. Ive only had to explain it to a handful of people and to each, once. My handwriting is awful and has only gotten worse due to nuerigical issues. I look at my writing from my college notebooks versus current, and comparatively, my college writing is legible and I'm now producing chicken scratch that only I can decipher.
Re:History of the broken vertical bar, being the ¦ form of | by JadeNB on Sunday August 11, 2019 @02:17PM (#20669560)
Sure! I agree that, if I saw your O side-by-side-with your 0, or even your 0 by itself, I would instantly understand. My point is just that, if I saw your O by itself and hadn't seen any of your handwriting before, I wouldn't know "aha, this is an O because it doesn't have a distinguishing mark", since I wouldn't know that your 0 does have a distinguishing mark.
Re:History of the broken vertical bar, being the ¦ form of | by scatters on Friday August 09, 2019 @05:16AM (#20652599)
Similarly, but I dot my zeros to distinguish them from the null / empty-set symbol ∅ (and from the Scandinavian Ø).
Re:History of the broken vertical bar, being the ¦ form of | by repiret on Friday August 09, 2019 @01:00AM (#20651453)
I don't know if that's actually traditionally true of fixed-width fonts. Courier, for example, is pretty bad, and widely used by people who aren't using a fixed-width font because they're programming.
Re:History of the broken vertical bar, being the ¦ form of | by stan_rogers on Friday August 09, 2019 @05:56AM (#20652818)
Traditionally you'd use a lower-case ell for a numeral one, since there was no numeral one on your keyboard. Nor was there a separate zero. All of this "different characters for different uses" nonsense is for that newfangled electronic stuff.
Re:History of the broken vertical bar, being the ¦ form of | by ncmncm on Friday August 09, 2019 @03:05PM (#20657371)
"I had to code a database using just ones and zeroes."

"Oh, you had ones? We had to use the letter ell."

Re:History of the broken vertical bar, being the ¦ form of | by darwingr on Friday August 09, 2019 @02:01AM (#20651685)
I’ve adopted all of these as well. Doing statistics in my undergrad, not understanding what you or someone else wrote was just the worst. The change of style just became an obvious necessity.
Re:History of the broken vertical bar, being the ¦ form of | by roywiggins on Thursday August 08, 2019 @11:54PM (#20651211)
My fantasy company would promote their wonderful new Al method of doing X, where X is just done by some guy named Al.
Re:History of the broken vertical bar, being the ¦ form of | by coding123 on Friday August 09, 2019 @12:24AM (#20651333)
Investor: OH wow is that a Neural Network you guys are building?

You: Yeah, Al here is our resident Network engineer. Go ahead and ask him a question.

Investor: So do you use any kind of drop-out or just as-is?

Al: Yeah, we don't have too much packet-los-

You: OK Moving along...

Re:History of the broken vertical bar, being the ¦ form of | by andreareina on Friday August 09, 2019 @01:21AM (#20651533)
Just say you trained a bunch of neural nets. https://xkcd.com/2173/
Re:History of the broken vertical bar, being the ¦ form of | by orthoxerox on Friday August 09, 2019 @02:01AM (#20651687)
Are you the son of Scott Bakula?
Re:History of the broken vertical bar, being the ¦ form of | by Tomte on Thursday August 08, 2019 @11:28PM (#20651114)
I never consciously realized, but I actually prefer the broken bar. No reason, just nostalgia, I suppose.

I might hunt for a contemporary programming font that renders the pipe so.

Re:History of the broken vertical bar, being the ¦ form of | by lstamour on Thursday August 08, 2019 @11:49PM (#20651193)
I suddenly realized what made reading old Linux books feel so nostalgic - in at least one of the books I still have, the terminal commands were all printed using broken bars for pipe, etc. You really don’t see that nowadays, but I remember it from text-based browsing, horizontal nav bars often used bar/pipe characters to separate links, and still probably do in footers and dusty corners...
Re:History of the broken vertical bar, being the ¦ form of | by couchand on Friday August 09, 2019 @01:34AM (#20651590)
> horizontal nav bars often used bar/pipe characters to separate links, and still probably do in footers and dusty corners...

You mean like in the HN footer?

Re:History of the broken vertical bar, being the ¦ form of | by taneq on Friday August 09, 2019 @12:46AM (#20651408)
If you really want to feel oldschool, try writing crosses through your zeroes as well (to distinguish them from O's).
Re:History of the broken vertical bar, being the ¦ form of | by Tomte on Friday August 09, 2019 @12:48AM (#20651414)
I do, when writing by hand (and only in the job), but I'm not feeling about the crossed 0 in a computer font the same way as about the broken pipe.
Re:History of the broken vertical bar, being the ¦ form of | by reaperducer on Friday August 09, 2019 @12:56AM (#20651443)
Or even older school, use a capitol P for a question mark.

Or if you were fancy, a P with a / through it.

Re:History of the broken vertical bar, being the ¦ form of | by pbhjpbhj on Friday August 09, 2019 @07:30AM (#20653305)
Is that a rudimentary typewriter thing?
Re:History of the broken vertical bar, being the ¦ form of | by reaperducer on Friday August 09, 2019 @10:14PM (#20659745)
Teletype.
Re:History of the broken vertical bar, being the ¦ form of | by burfog on Friday August 09, 2019 @03:08AM (#20651948)
Unicode killed it. They introduced a non-ASCII broken bar, and they made the ASCII bar explicitly non-broken. Fonts created in the Unicode era follow Unicode.

I will never forgive Unicode for this abomination.

By defining Unicode mappings, they also replaced the β in MS-DOS fonts with a ß. Evidently they like Germans more than they like Greeks and mathematics.

This too is an abomination. Old documents are now screwed up.

Re:History of the broken vertical bar, being the ¦ form of | by speedplane on Friday August 09, 2019 @03:16AM (#20651989)
> Unicode killed it. They introduced a non-ASCII broken bar, and they made the ASCII bar explicitly non-broken. ... I will never forgive Unicode for this abomination.

I'm more upset that they allowed implementers to put lettuce on the bagel unicode emoji. Bagels are for carbs, fat, and salt, lettuce has no place. An abomination.

Re:History of the broken vertical bar, being the ¦ form of | by snazz on Friday August 09, 2019 @11:18AM (#20655138)
Who gets to decide about those kinds of things? (Also, cheese on Google’s burgers....)

Is it the implementation’s choice so long as it resembles the description?

Re:History of the broken vertical bar, being the ¦ form of | by Tomte on Saturday August 10, 2019 @06:55AM (#20661352)
Yes, Unicode specifically does not standardize the look of a glyph.
Re:History of the broken vertical bar, being the ¦ form of | by em-bee on Friday August 09, 2019 @01:25AM (#20651549)
although i never used such a font, i thought the broken bar was appropriate for the shell pipe function because the gap is the space for the data to pass through.
Re:History of the broken vertical bar, being the ¦ form of | by JadeNB on Friday August 09, 2019 @10:04AM (#20654399)
That seems like a weird mnemonic—in that case the bulk of the pipe is obstructing, not permitting, the flow of data.
Re:History of the broken vertical bar, being the ¦ form of | by rcfox on Friday August 09, 2019 @10:13AM (#20654489)
That's what a pipe does though. If liquid had its way, it would fall straight down. Pipes force it in another direction.
Re:History of the broken vertical bar, being the ¦ form of | by em-bee on Friday August 09, 2019 @12:51PM (#20656098)
well, i wasn't actually looking at it as a pipe but a filter, which is how some programs process the data coming through (grep for example)
Re:History of the broken vertical bar, being the ¦ form of | by mixmastamyk on Friday August 09, 2019 @03:16AM (#20651994)
Visually a double horizontal line from the line drawing block might be best.
Re:History of the broken vertical bar, being the ¦ form of | by em-bee on Friday August 09, 2019 @03:31AM (#20652050)
that looks like an = sign which would be confusing but also, many uses for pipes are as filters. a filter is a flat surface where something passes from one side to another. the pipe symbolizes that filter (even though the actual filter is the program behind it, so yeah, both metaphors kid of work. either the pipe connects two programs, or it invokes a filter which is named after the pipe symbol)
Re:History of the broken vertical bar, being the ¦ form of | by ncmncm on Friday August 09, 2019 @12:28AM (#20651345)
The broken bar feels more like real programming.

Excuse me, now I need to do some FontForge work.

Re:History of the broken vertical bar, being the ¦ form of | by phaedrus on Friday August 09, 2019 @10:21AM (#20654567)
In 2008-9 I had a Neo Freerunner, an early (Linux) smartphone. I also used | in my passwords. Some of the soft keyboards included only a ¦, in the | spot—indicating that the programmer/UI-designer believed them interchangeable. (That is, the character I got on a keyboard by pressing shift-backslash was | even though it was rendered as ¦ on the keyboard silkscreen, but on the smartphone it was ¦ on the key and in the typed text.) This made my log-ins fail in many contexts, and took some inspired thinking to figure out the problem. That was how I first learned the two are not just different glyphs for the same character.
Re:History of the broken vertical bar, being the ¦ form of | by PaulHoule on Friday August 09, 2019 @09:02AM (#20653877)
Funny, I was building a system that needed a way to namespace CSS classes (so I could suck in HTML from different sources and assemble it into one document) and I found that class names can contain most of the ISO-LATIN-1 characters and I chose to use the broken vertical bar to separate namespaces from short names because hardly anyone uses it.
Re:History of the broken vertical bar, being the ¦ form of | by cojxd on Friday August 09, 2019 @05:02AM (#20652513)
From the linked page in the blog of the late Michael Kaplan:

>I'd go look for it but I don't want to move off this page.

The dark days of not having browser tabs...