49 points · by azeemba · 2y ago · 75 comments
Ultimately, many "character sets" combined printable characters, cursor/head control, and record boundaries into one serialized byte stream that could be used by terminals, printers, programs for all sorts of purposes.
Any such solution will always be broken, proof is left as an exercise for the reader. Hint: use Ogden's lemma.
So if you decide not to support "strings", just "text", then those separators Just Work.
> ASCII separators are equally as broken. How do you represent a string containing the record separator in a record-separated file?
ASCII separators may not be perfect, but they're certainly less broken than CSV. With CSV, you have the pervasive problem of how to represent a common, everyday character in the file. With ASCII separators, you only have the problem of representing an unusual, untypeable character, which is much less troublesome.
I think a big reason they never took off is also that there's no visual representation of them, or input method for them.
I'd be happy to use them instead of CSV if I could edit records in Notepad or TextEdit the way I can with commas and quoted strings. See the separators, type them.
But of course once you do that, somebody now wants to insert a list of five values separated by unit or record separators into a field. They'd just be common ASCII characters along with tab, CR, LF, etc, and need to be escaped the same.
There's no escaping escaping...
This difference carries over to C, where NULL got the job done for string termination pretty darn well, even if there were strong critiques to be weighed against it.
CSV is more broken than you imagine. Try opening an American CSV file with Excel in Germany or France. You’ll discover that it doesn’t parse, and the reason is that the ‘C’ in CSV apparently stands for “could be a semicolon too” because comma is the decimal separator in these countries and therefore must be available for use inside values.
Printers were fare more common than hardware terminals for most of the initial history of computing.
https://en.wikipedia.org/wiki/Dead_key
I can't claim I know how they relate exactly to the accented characters being encoded in character sets but they seem to be at least historically an influence. Pressing a dead key which doesn't advance the cursor and then overwrite the basic character over it is certainly faster than using backspace (also cheaper if you think about character pricing).
That the ECMA specs only talk about using BACKSPACE is surprising. At least those OS I used only supported the dead key approach but of course that was decades after the specs were written.
If the expanded count doesn't match, a diacritic might be present.
[0] https://learn.microsoft.com/en-us/dotnet/api/system.text.nor...
To some extent the character set was still evolving, for example the Euro sign was not around until decades later and that would need to be bolted together with backspace characters or escape codes, maybe even downloaded characters, with the printer specific manual (Epson) studied at great length.
In the DOS era (and before with home micros that were programmed in BASIC) it was quite normal to compose things for the printer that you had no expectation of seeing on screen, not that anyone read much on screen (as everyone had vast piles of paper on their desk).
Until quite recently some POS systems were very much tied in to a very specific printer, at least these character sets were a step forward from hard coding a BASIC program to an exact make and model of printer.
https://en.wikipedia.org/wiki/Ditto_mark
Guessing maybe there’s some keyboards which were missing quote/prime characters but had umlauts?
I was coding forms for tabular data, doing silly things because the printed manual made that too tempting, so any excuse to use a character or escape code sequence was fair game.
This was in an era when handwriting was commonly used so the convention for 'ditto' could be freestyled by me to be middle dots, umlauts or anything CHR(). The convenience of the keyboard, in an era before the PC was not really there.
The asker completely ignores that asking questions about accent marks, like they themselves are doing in that very post, would be a lot more annoying without being able to write said accent marks.
You can use it for referring to the new Glőrbl character that I invented.
For example, one could type ë by entering ¨ then following with e. The ¨ would be displayed at the position where the combined character would be, while waiting for the second character to be entered. Once the second character is entered, the display would be updated with the correct combined character.
New? Some computers of the 1980s could already do this. At least the 16 bit home computers had bitmap drawn characters on the screen.
Edit: Looks like somebody doesn't believe that computers in the 80s had such a thing.
> On the Amiga, rendering text is similar to rendering lines and shapes. The Amiga graphics library provides text functions based around the RastPort structure, which makes it easy to intermix graphics and text.
> In order to render text, the Amiga needs to have a graphical representation for each symbol or text character. These individual images are known as glyphs. The Amiga gets each glyph from a font in the system font list. At present, the fonts in the system list contain a bitmap of a specific point size for all the characters and symbols of the font.
Otherwise HYVÄÄ YÖTÄ was HYV{{ Y|T{, which was only little miserable.
But if you changed the ROM into Swedish ROM, {a|b} become äaöbå, which was basically unreadable.
Printers are an obvious answer for a different question.
For that, the printer would also need to interpret the characters in the correct character set.
Edit: Its 1983 predecessor that added accented characters was made for the VT220, and it used a buffer of 8 bit character codes, no way to combine. (Some of those terminals could be sent a limited number of custom characters to store in RAM, but that's a very different mechanism as far as I can tell.)
Edit 2: I made an error before, the naked accents were not in the predecessor, they were even newer.