Member bob… Posted May 2, 2012 Share Posted May 2, 2012 This topic was imported from the Typophile platform How come character map doesn't show me alt codes for every glyph? And what's the logic behind the numeration? Link to comment
Member hra… Posted May 2, 2012 Share Posted May 2, 2012 I think those codes are only for ASCII-8 characters. Note that the leading zero is a "trigger", so you really only have 1000 possible codes anyway. But only 0 to 255 are implemented. In fact try Alt-0321: you get "A". Because 321 = 65 (the code for "A") plus 256. So it's just cycling through (like how 370 degrees is the same as 10 degrees). And logic?! :-) hhp Link to comment
Member bob… Posted May 2, 2012 Author Share Posted May 2, 2012 Perfect, thanks for the quick lesson! Link to comment
Member Té… Posted May 2, 2012 Share Posted May 2, 2012 Microsoft. Logic. Choose one. The initial zero is a trigger allright, but for the incoming strokes to be interpreted as Windows-1252 or Unicode (on later and chromier Windowses) instead of CP437 or whatever your local DOS codepage is. The zero may not be needed on DOS-less Windows (anything after XP, I think), but I don't know for sure. Link to comment
Member hra… Posted May 2, 2012 Share Posted May 2, 2012 AFAIR doing codes without a leading zero goes to an alternative encoding, like EBCDIC or something. BTW, I'm pretty sure the ASCII (even -8) arrangement predates Microsoft. hhp Link to comment
Member Té… Posted May 3, 2012 Share Posted May 3, 2012 Nah... I don't think Microsoft ever did EBCDIC. Too IBMish, even for them. No, I'm sure the Win98 user manual said that without the zero, it went by the DOS code page, and my own checks seem to confirm that with Alt-165 returning Ñ and Alt-224 returning Ó, both proper for code page 850. Link to comment
Member hra… Posted May 3, 2012 Share Posted May 3, 2012 Does that mean it lets you do those cute rules and borders? hhp Link to comment
Member Té… Posted May 3, 2012 Share Posted May 3, 2012 When I shell out to DOS it does. In Windows I only get ASCII approximations. Guess that's to be expected, since Windows-1252 does not have the borders anyway. Link to comment
Member hra… Posted May 3, 2012 Share Posted May 3, 2012 What if you switch to some sort of console font? hhp Link to comment
Member The… Posted May 4, 2012 Share Posted May 4, 2012 Arial Unicode contains and displays these characters, but of course it's a proportional font. Fortunally, Courier New works better: -- gosh, I even could recall the Alt codes! Ah, those good old memories of creating user interfaces with these. (BTW This is with InDesign on Windows 7.) Link to comment
Member Té… Posted May 4, 2012 Share Posted May 4, 2012 ...our salad days, when we were still green to the world... @Hrant – Nope, not even when I choose Terminal (an OEM/DOS font) in Notepad. Mind, the zero prefix does the trick, then. Of course, the Win98 machine has accumulated all sorts of patches and stuff, and I can no longer remember if using the DOS codes worked fully on base Win98. @Theunis – I recall (re)writing some UI routines in Turbo Pascal, which was of course the other language for the laity after GWBASIC. Yuck. Never liked Microsoft-style BASICs. But then, I did own a QL. Link to comment
Member hra… Posted May 4, 2012 Share Posted May 4, 2012 Theunis, way cool. We can start the next retro trend with this puppy. :-) Reynir: Pascal, eh? I used to put up "Dijkstra is a Wimp" flyers at my school. When they tore them down I added a perfectly forged "Approved for posting by the School of Engineering and Computer Science"* stamp. That made 'em last much longer. I defended "goto" like there was no tomorrow; microcode is still only for the fully spined. * An ironic acronym if there ever was one. hhp Link to comment
Member The… Posted May 4, 2012 Share Posted May 4, 2012 Té, have you tried Courier New? Strangely enough, Terminal doesn't work for me either, but CN does it, well, out of the retro-box! I didn't even had to select the OEM Charset first. Wikipedia on Box Characters shows that Unicode nowadays includes rounded corners to match. And they added a little bit more order to the set ... My bottom line in the image shows codes 179 to 202 (ish), a pretty random order. It would be cool to see the box set in a modern font -- matching the rest of the font in style, of course! Link to comment
Member hra… Posted May 4, 2012 Share Posted May 4, 2012 Granjon would've had a field day with this. hhp Link to comment
Member Té… Posted May 5, 2012 Share Posted May 5, 2012 Nope, CN is no help in '98. But since '98 is pre-Unicodification anyway... Needed to look it up, but the CPC6128 at least had line-drawing characters with rounded corners. Well, as rounded as an 8×8 grid allows. @hrant – According to later info, it was the editor of the piece, one N. Wirth, that changed the title to "GOTO Considered Harmful". Dijkstra's name was "A Case Against the GO TO Statement". Turbo Pascal isn't a standard Pascal, but more like a Pascal in dungarees. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now