Why are the symbols on the number keys of PC & Mac keyboards different to ASCII keyboards?
On a US-layout PC keyboard, the symbols above the number keys are as follows:
Whereas the keyboard on an Apple II is different:
Note, for example, the '(' and ')' symbols are now above 8 and 9, and '&' is above 6 instead of 7.
The order of the symbols on the Apple II corresponds to the ASCII symbols 33 to 41, in that order. This layout was used on a number of other microcomputers (including the Commodore 64 and the BBC Micro), and dated back at least to the 1970s: in 1974 Popular Electronics ran an article on how to build your own ASCII keyboard.
Despite this, IBM chose to use a non-ASCII-based layout for their keyboard. Apple later abandoned the ASCII layout for the Macintosh in 1984, adopting a similar layout to IBM's PC.
Obviously with the growth of the PC clone market, the PC layout would become a de-facto standard, and ASCII keyboards were relegated to history. But why were there two different layouts in the first place?
Note that the "PC" layout for the symbols was not a novel invention by IBM for it's PC: it had already been seen on the Space-cadet keyboard, VT100 terminal, and the Xerox Alto. The point remains that there were two different layouts in use at the same time.
history keyboards
add a comment |
On a US-layout PC keyboard, the symbols above the number keys are as follows:
Whereas the keyboard on an Apple II is different:
Note, for example, the '(' and ')' symbols are now above 8 and 9, and '&' is above 6 instead of 7.
The order of the symbols on the Apple II corresponds to the ASCII symbols 33 to 41, in that order. This layout was used on a number of other microcomputers (including the Commodore 64 and the BBC Micro), and dated back at least to the 1970s: in 1974 Popular Electronics ran an article on how to build your own ASCII keyboard.
Despite this, IBM chose to use a non-ASCII-based layout for their keyboard. Apple later abandoned the ASCII layout for the Macintosh in 1984, adopting a similar layout to IBM's PC.
Obviously with the growth of the PC clone market, the PC layout would become a de-facto standard, and ASCII keyboards were relegated to history. But why were there two different layouts in the first place?
Note that the "PC" layout for the symbols was not a novel invention by IBM for it's PC: it had already been seen on the Space-cadet keyboard, VT100 terminal, and the Xerox Alto. The point remains that there were two different layouts in use at the same time.
history keyboards
There are numerous keyboard layouts. Most require characters outside the 7-bit ASCII range.
– Thorbjørn Ravn Andersen
2 hours ago
add a comment |
On a US-layout PC keyboard, the symbols above the number keys are as follows:
Whereas the keyboard on an Apple II is different:
Note, for example, the '(' and ')' symbols are now above 8 and 9, and '&' is above 6 instead of 7.
The order of the symbols on the Apple II corresponds to the ASCII symbols 33 to 41, in that order. This layout was used on a number of other microcomputers (including the Commodore 64 and the BBC Micro), and dated back at least to the 1970s: in 1974 Popular Electronics ran an article on how to build your own ASCII keyboard.
Despite this, IBM chose to use a non-ASCII-based layout for their keyboard. Apple later abandoned the ASCII layout for the Macintosh in 1984, adopting a similar layout to IBM's PC.
Obviously with the growth of the PC clone market, the PC layout would become a de-facto standard, and ASCII keyboards were relegated to history. But why were there two different layouts in the first place?
Note that the "PC" layout for the symbols was not a novel invention by IBM for it's PC: it had already been seen on the Space-cadet keyboard, VT100 terminal, and the Xerox Alto. The point remains that there were two different layouts in use at the same time.
history keyboards
On a US-layout PC keyboard, the symbols above the number keys are as follows:
Whereas the keyboard on an Apple II is different:
Note, for example, the '(' and ')' symbols are now above 8 and 9, and '&' is above 6 instead of 7.
The order of the symbols on the Apple II corresponds to the ASCII symbols 33 to 41, in that order. This layout was used on a number of other microcomputers (including the Commodore 64 and the BBC Micro), and dated back at least to the 1970s: in 1974 Popular Electronics ran an article on how to build your own ASCII keyboard.
Despite this, IBM chose to use a non-ASCII-based layout for their keyboard. Apple later abandoned the ASCII layout for the Macintosh in 1984, adopting a similar layout to IBM's PC.
Obviously with the growth of the PC clone market, the PC layout would become a de-facto standard, and ASCII keyboards were relegated to history. But why were there two different layouts in the first place?
Note that the "PC" layout for the symbols was not a novel invention by IBM for it's PC: it had already been seen on the Space-cadet keyboard, VT100 terminal, and the Xerox Alto. The point remains that there were two different layouts in use at the same time.
history keyboards
history keyboards
edited 2 hours ago
Kaz
asked 3 hours ago
KazKaz
1,031315
1,031315
There are numerous keyboard layouts. Most require characters outside the 7-bit ASCII range.
– Thorbjørn Ravn Andersen
2 hours ago
add a comment |
There are numerous keyboard layouts. Most require characters outside the 7-bit ASCII range.
– Thorbjørn Ravn Andersen
2 hours ago
There are numerous keyboard layouts. Most require characters outside the 7-bit ASCII range.
– Thorbjørn Ravn Andersen
2 hours ago
There are numerous keyboard layouts. Most require characters outside the 7-bit ASCII range.
– Thorbjørn Ravn Andersen
2 hours ago
add a comment |
3 Answers
3
active
oldest
votes
It all dates back to typewriters, but the two layouts aren’t ASCII v. non-ASCII, they’re mechanical v. electric.
The !" etc. layout was common on mechanical typewriters, based on the layout used for the Remington No. 2 in 1878. This is the layout that ASCII was based on; that’s why “!”, “"” etc. received consecutive encodings, aligned with the encodings of the digits they were paired with. This was criterion 17 in the ASCII committee’s decision-making process (see Charles E. Mackenzie’s Coded Character Sets, History and Development for details):
Criterion 17. Graphics that are normally paired on typewriter keytops should differ only in a common single bit position.
This also explains the paired encodings of the other symbols in the 33-63 range (“*”/“:”, “+”/“;” etc.). Criterion 14 determined the space character’s encoding and caused some shifting of characters to free up 0 (space is the “shifted” character corresponding to 0).
With the advent of electric typewriters (not electronic, yet), the designers ran into issues with the force required for different symbols. Smaller symbols such as '
and "
require less force; having them on the same keys as digits meant that the drivers had to be more complex. (You can see the different force requirement on a mechanical typewriter: if you hit ' or . with the same force as a letter key, you’ll often end up with an imprint of the type element on the paper, showing as a rectangle around the symbol.) To simplify the design, small symbols were grouped together on separate keys, so that the force didn’t vary for a single key’s different symbols. This layout ended up being used in IBM’s Selectric range in particular, and IBM continued using that layout for its computer keyboards (which pre-date the PC).
Ultimately the PC won in the market, and its keyboard layout along with it.
Perfect explanation of the whereabout, except for the introduction. I wouldn't call it 'not about ASCII vs. non ASCII', but an ASCII compatible ordering sequence, like the Apple used to need only a simple encoder vs. the PC mimicking the Selectric keyboard. So ASCII did play a role here. It may, BTW, be remarkable that the sequence on a German PC keyboard is the same as with mechanical typewriters (ASCII) except 3 carries§
and 7 has/
. again, like German typewriters before. Fliping all the symbols above the numbers makes using US keyboards for me harder than the simple Y/Z switch.
– Raffzahn
1 hour ago
add a comment |
It all dates back to the age of typewriters.
Using an ASCII-based layout made the design of computer keyboard encoders simpler, as the output of any key while holding Shift (capitals, symbols) differs from the the normal output by just one bit. For this reason, these keyboards are also known as bit-paired keyboards.
Mechanical typewriters had used a large number of different layouts, particularly early designs. A standardised layout had developed by the time of IBM's Selectric electric typewriter in the 1960s. This standard typewriter layout differed from the bit-paired ASCII layout, particularly in its placement of symbols, but this was not a disadvantage for a typewriter.
In the computer age, these two layouts would appeal to different types of individuals. Computer designers and engineers would obviously appreciate the simplicity of the ASCII-based layout when building a machine. On the other hand, many computers were used by professional typists as a replacement for electric typewriters. As users of touch-typing, they would want to keep the same keyboard layout they were used to, as switching layout would slow down their work.
In the light of this, it's unsurprising that IBM would use the same typewriter-based layout as their Selectrics when releasing their first personal computer. It is possible that Apple changed layout for the Mac for the same reason.
I'd written the whole question, and was getting sources for the last paragraph, when I first stumbled across the term "bit-shifted keyboard", which immediately gave me the explanation. I figured I may as well write up an answer and share it. Strange that I'd never come across the term before...
– Kaz
3 hours ago
Note that the order of symbols in ASCII is itself based on the common American layout used on mechanical typewriters. When ASCII was developed, there were two common layouts, one for mechanical typewriters, the other for electric typewriters, and those are the two layouts in your question.
– Stephen Kitt
3 hours ago
@StephenKitt Would it be more accurate to say ASCII was based on electric teleprinters, rather than mechanical typewriters?
– Kaz
3 hours ago
@ and " are swapped between the UK and USA Windows keyboard layouts. There are other changes as well, since shift-3 is used for the UK pound currency sign, not the US "pound/hash" sign. But I have no idea why @ and " were swapped between the UK and US layouts.
– alephzero
3 hours ago
@alephzero I wasn't thinking so much of regional differences, rather the fact that there were different layouts for the same region: the changing position of the '(' and ')' for example. Incidentally, the UK-based BBC Micro kept the same ASCII layout on the number keys as the Apple II pictured with '#' symbol as shift-3, and allocated '£' to code 0x60, placed on a key to the left of the cursor keys. So there's the same mismatch between an ASCII layout and a UK/GB PC keyboard layout.
– Kaz
2 hours ago
|
show 1 more comment
A couple of the design goals for ASCII were to make the encodings of certain characters have useful properties, and to minimize the logic necessary to handle the "shift" key when using a layout that was similar to conventional typewriters at the time (whose layouts sometimes varied and in some situations could be customized with a few interchangeable type bars and key caps).
The way the ASCII sequence was constructed made it practical to have the shift key simply toggle the state of bit 4. On many typewriters, the digits were very commonly mapped to !"#$%¢&'(). Because ASCII does not have a cent sign, and probably also because it would be desirable to keep () consecutive, it the characters that would usually be shift-8-9-0 were changed to shift 7-8-9.
Note that on old ASCII keyboards, shift-0 will yield a space, and on many of them shift-space will yield a zero. This would not have precluded the possibility of making shift-zero a useful (non-space) character. For example, ASCII could have swapped the character-code ranges 0x21-0x5F with 0x41-0x5F, keeping the blank as the lowest non-control character, followed immediately by A-Z, and allowing 0x40-0x49 to be )!"#$%@&(
, matching keyboard layouts of the time except with the cent sign replaced with a commercial at. The optimal shift mappings for keyboards with more keys, however, would still differ from those for keyboards with fewer.
The ASCII committee didn’t want the alphabet to immediately follow space because they wanted symbols to collate before letters (in particular hyphens and periods). The reasoning which led to the ASCII encoding is given in exhaustive detail in the reference listed in my answer.
– Stephen Kitt
24 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "648"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f9127%2fwhy-are-the-symbols-on-the-number-keys-of-pc-mac-keyboards-different-to-ascii%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
It all dates back to typewriters, but the two layouts aren’t ASCII v. non-ASCII, they’re mechanical v. electric.
The !" etc. layout was common on mechanical typewriters, based on the layout used for the Remington No. 2 in 1878. This is the layout that ASCII was based on; that’s why “!”, “"” etc. received consecutive encodings, aligned with the encodings of the digits they were paired with. This was criterion 17 in the ASCII committee’s decision-making process (see Charles E. Mackenzie’s Coded Character Sets, History and Development for details):
Criterion 17. Graphics that are normally paired on typewriter keytops should differ only in a common single bit position.
This also explains the paired encodings of the other symbols in the 33-63 range (“*”/“:”, “+”/“;” etc.). Criterion 14 determined the space character’s encoding and caused some shifting of characters to free up 0 (space is the “shifted” character corresponding to 0).
With the advent of electric typewriters (not electronic, yet), the designers ran into issues with the force required for different symbols. Smaller symbols such as '
and "
require less force; having them on the same keys as digits meant that the drivers had to be more complex. (You can see the different force requirement on a mechanical typewriter: if you hit ' or . with the same force as a letter key, you’ll often end up with an imprint of the type element on the paper, showing as a rectangle around the symbol.) To simplify the design, small symbols were grouped together on separate keys, so that the force didn’t vary for a single key’s different symbols. This layout ended up being used in IBM’s Selectric range in particular, and IBM continued using that layout for its computer keyboards (which pre-date the PC).
Ultimately the PC won in the market, and its keyboard layout along with it.
Perfect explanation of the whereabout, except for the introduction. I wouldn't call it 'not about ASCII vs. non ASCII', but an ASCII compatible ordering sequence, like the Apple used to need only a simple encoder vs. the PC mimicking the Selectric keyboard. So ASCII did play a role here. It may, BTW, be remarkable that the sequence on a German PC keyboard is the same as with mechanical typewriters (ASCII) except 3 carries§
and 7 has/
. again, like German typewriters before. Fliping all the symbols above the numbers makes using US keyboards for me harder than the simple Y/Z switch.
– Raffzahn
1 hour ago
add a comment |
It all dates back to typewriters, but the two layouts aren’t ASCII v. non-ASCII, they’re mechanical v. electric.
The !" etc. layout was common on mechanical typewriters, based on the layout used for the Remington No. 2 in 1878. This is the layout that ASCII was based on; that’s why “!”, “"” etc. received consecutive encodings, aligned with the encodings of the digits they were paired with. This was criterion 17 in the ASCII committee’s decision-making process (see Charles E. Mackenzie’s Coded Character Sets, History and Development for details):
Criterion 17. Graphics that are normally paired on typewriter keytops should differ only in a common single bit position.
This also explains the paired encodings of the other symbols in the 33-63 range (“*”/“:”, “+”/“;” etc.). Criterion 14 determined the space character’s encoding and caused some shifting of characters to free up 0 (space is the “shifted” character corresponding to 0).
With the advent of electric typewriters (not electronic, yet), the designers ran into issues with the force required for different symbols. Smaller symbols such as '
and "
require less force; having them on the same keys as digits meant that the drivers had to be more complex. (You can see the different force requirement on a mechanical typewriter: if you hit ' or . with the same force as a letter key, you’ll often end up with an imprint of the type element on the paper, showing as a rectangle around the symbol.) To simplify the design, small symbols were grouped together on separate keys, so that the force didn’t vary for a single key’s different symbols. This layout ended up being used in IBM’s Selectric range in particular, and IBM continued using that layout for its computer keyboards (which pre-date the PC).
Ultimately the PC won in the market, and its keyboard layout along with it.
Perfect explanation of the whereabout, except for the introduction. I wouldn't call it 'not about ASCII vs. non ASCII', but an ASCII compatible ordering sequence, like the Apple used to need only a simple encoder vs. the PC mimicking the Selectric keyboard. So ASCII did play a role here. It may, BTW, be remarkable that the sequence on a German PC keyboard is the same as with mechanical typewriters (ASCII) except 3 carries§
and 7 has/
. again, like German typewriters before. Fliping all the symbols above the numbers makes using US keyboards for me harder than the simple Y/Z switch.
– Raffzahn
1 hour ago
add a comment |
It all dates back to typewriters, but the two layouts aren’t ASCII v. non-ASCII, they’re mechanical v. electric.
The !" etc. layout was common on mechanical typewriters, based on the layout used for the Remington No. 2 in 1878. This is the layout that ASCII was based on; that’s why “!”, “"” etc. received consecutive encodings, aligned with the encodings of the digits they were paired with. This was criterion 17 in the ASCII committee’s decision-making process (see Charles E. Mackenzie’s Coded Character Sets, History and Development for details):
Criterion 17. Graphics that are normally paired on typewriter keytops should differ only in a common single bit position.
This also explains the paired encodings of the other symbols in the 33-63 range (“*”/“:”, “+”/“;” etc.). Criterion 14 determined the space character’s encoding and caused some shifting of characters to free up 0 (space is the “shifted” character corresponding to 0).
With the advent of electric typewriters (not electronic, yet), the designers ran into issues with the force required for different symbols. Smaller symbols such as '
and "
require less force; having them on the same keys as digits meant that the drivers had to be more complex. (You can see the different force requirement on a mechanical typewriter: if you hit ' or . with the same force as a letter key, you’ll often end up with an imprint of the type element on the paper, showing as a rectangle around the symbol.) To simplify the design, small symbols were grouped together on separate keys, so that the force didn’t vary for a single key’s different symbols. This layout ended up being used in IBM’s Selectric range in particular, and IBM continued using that layout for its computer keyboards (which pre-date the PC).
Ultimately the PC won in the market, and its keyboard layout along with it.
It all dates back to typewriters, but the two layouts aren’t ASCII v. non-ASCII, they’re mechanical v. electric.
The !" etc. layout was common on mechanical typewriters, based on the layout used for the Remington No. 2 in 1878. This is the layout that ASCII was based on; that’s why “!”, “"” etc. received consecutive encodings, aligned with the encodings of the digits they were paired with. This was criterion 17 in the ASCII committee’s decision-making process (see Charles E. Mackenzie’s Coded Character Sets, History and Development for details):
Criterion 17. Graphics that are normally paired on typewriter keytops should differ only in a common single bit position.
This also explains the paired encodings of the other symbols in the 33-63 range (“*”/“:”, “+”/“;” etc.). Criterion 14 determined the space character’s encoding and caused some shifting of characters to free up 0 (space is the “shifted” character corresponding to 0).
With the advent of electric typewriters (not electronic, yet), the designers ran into issues with the force required for different symbols. Smaller symbols such as '
and "
require less force; having them on the same keys as digits meant that the drivers had to be more complex. (You can see the different force requirement on a mechanical typewriter: if you hit ' or . with the same force as a letter key, you’ll often end up with an imprint of the type element on the paper, showing as a rectangle around the symbol.) To simplify the design, small symbols were grouped together on separate keys, so that the force didn’t vary for a single key’s different symbols. This layout ended up being used in IBM’s Selectric range in particular, and IBM continued using that layout for its computer keyboards (which pre-date the PC).
Ultimately the PC won in the market, and its keyboard layout along with it.
edited 2 hours ago
answered 3 hours ago
Stephen KittStephen Kitt
37.4k8151164
37.4k8151164
Perfect explanation of the whereabout, except for the introduction. I wouldn't call it 'not about ASCII vs. non ASCII', but an ASCII compatible ordering sequence, like the Apple used to need only a simple encoder vs. the PC mimicking the Selectric keyboard. So ASCII did play a role here. It may, BTW, be remarkable that the sequence on a German PC keyboard is the same as with mechanical typewriters (ASCII) except 3 carries§
and 7 has/
. again, like German typewriters before. Fliping all the symbols above the numbers makes using US keyboards for me harder than the simple Y/Z switch.
– Raffzahn
1 hour ago
add a comment |
Perfect explanation of the whereabout, except for the introduction. I wouldn't call it 'not about ASCII vs. non ASCII', but an ASCII compatible ordering sequence, like the Apple used to need only a simple encoder vs. the PC mimicking the Selectric keyboard. So ASCII did play a role here. It may, BTW, be remarkable that the sequence on a German PC keyboard is the same as with mechanical typewriters (ASCII) except 3 carries§
and 7 has/
. again, like German typewriters before. Fliping all the symbols above the numbers makes using US keyboards for me harder than the simple Y/Z switch.
– Raffzahn
1 hour ago
Perfect explanation of the whereabout, except for the introduction. I wouldn't call it 'not about ASCII vs. non ASCII', but an ASCII compatible ordering sequence, like the Apple used to need only a simple encoder vs. the PC mimicking the Selectric keyboard. So ASCII did play a role here. It may, BTW, be remarkable that the sequence on a German PC keyboard is the same as with mechanical typewriters (ASCII) except 3 carries
§
and 7 has /
. again, like German typewriters before. Fliping all the symbols above the numbers makes using US keyboards for me harder than the simple Y/Z switch.– Raffzahn
1 hour ago
Perfect explanation of the whereabout, except for the introduction. I wouldn't call it 'not about ASCII vs. non ASCII', but an ASCII compatible ordering sequence, like the Apple used to need only a simple encoder vs. the PC mimicking the Selectric keyboard. So ASCII did play a role here. It may, BTW, be remarkable that the sequence on a German PC keyboard is the same as with mechanical typewriters (ASCII) except 3 carries
§
and 7 has /
. again, like German typewriters before. Fliping all the symbols above the numbers makes using US keyboards for me harder than the simple Y/Z switch.– Raffzahn
1 hour ago
add a comment |
It all dates back to the age of typewriters.
Using an ASCII-based layout made the design of computer keyboard encoders simpler, as the output of any key while holding Shift (capitals, symbols) differs from the the normal output by just one bit. For this reason, these keyboards are also known as bit-paired keyboards.
Mechanical typewriters had used a large number of different layouts, particularly early designs. A standardised layout had developed by the time of IBM's Selectric electric typewriter in the 1960s. This standard typewriter layout differed from the bit-paired ASCII layout, particularly in its placement of symbols, but this was not a disadvantage for a typewriter.
In the computer age, these two layouts would appeal to different types of individuals. Computer designers and engineers would obviously appreciate the simplicity of the ASCII-based layout when building a machine. On the other hand, many computers were used by professional typists as a replacement for electric typewriters. As users of touch-typing, they would want to keep the same keyboard layout they were used to, as switching layout would slow down their work.
In the light of this, it's unsurprising that IBM would use the same typewriter-based layout as their Selectrics when releasing their first personal computer. It is possible that Apple changed layout for the Mac for the same reason.
I'd written the whole question, and was getting sources for the last paragraph, when I first stumbled across the term "bit-shifted keyboard", which immediately gave me the explanation. I figured I may as well write up an answer and share it. Strange that I'd never come across the term before...
– Kaz
3 hours ago
Note that the order of symbols in ASCII is itself based on the common American layout used on mechanical typewriters. When ASCII was developed, there were two common layouts, one for mechanical typewriters, the other for electric typewriters, and those are the two layouts in your question.
– Stephen Kitt
3 hours ago
@StephenKitt Would it be more accurate to say ASCII was based on electric teleprinters, rather than mechanical typewriters?
– Kaz
3 hours ago
@ and " are swapped between the UK and USA Windows keyboard layouts. There are other changes as well, since shift-3 is used for the UK pound currency sign, not the US "pound/hash" sign. But I have no idea why @ and " were swapped between the UK and US layouts.
– alephzero
3 hours ago
@alephzero I wasn't thinking so much of regional differences, rather the fact that there were different layouts for the same region: the changing position of the '(' and ')' for example. Incidentally, the UK-based BBC Micro kept the same ASCII layout on the number keys as the Apple II pictured with '#' symbol as shift-3, and allocated '£' to code 0x60, placed on a key to the left of the cursor keys. So there's the same mismatch between an ASCII layout and a UK/GB PC keyboard layout.
– Kaz
2 hours ago
|
show 1 more comment
It all dates back to the age of typewriters.
Using an ASCII-based layout made the design of computer keyboard encoders simpler, as the output of any key while holding Shift (capitals, symbols) differs from the the normal output by just one bit. For this reason, these keyboards are also known as bit-paired keyboards.
Mechanical typewriters had used a large number of different layouts, particularly early designs. A standardised layout had developed by the time of IBM's Selectric electric typewriter in the 1960s. This standard typewriter layout differed from the bit-paired ASCII layout, particularly in its placement of symbols, but this was not a disadvantage for a typewriter.
In the computer age, these two layouts would appeal to different types of individuals. Computer designers and engineers would obviously appreciate the simplicity of the ASCII-based layout when building a machine. On the other hand, many computers were used by professional typists as a replacement for electric typewriters. As users of touch-typing, they would want to keep the same keyboard layout they were used to, as switching layout would slow down their work.
In the light of this, it's unsurprising that IBM would use the same typewriter-based layout as their Selectrics when releasing their first personal computer. It is possible that Apple changed layout for the Mac for the same reason.
I'd written the whole question, and was getting sources for the last paragraph, when I first stumbled across the term "bit-shifted keyboard", which immediately gave me the explanation. I figured I may as well write up an answer and share it. Strange that I'd never come across the term before...
– Kaz
3 hours ago
Note that the order of symbols in ASCII is itself based on the common American layout used on mechanical typewriters. When ASCII was developed, there were two common layouts, one for mechanical typewriters, the other for electric typewriters, and those are the two layouts in your question.
– Stephen Kitt
3 hours ago
@StephenKitt Would it be more accurate to say ASCII was based on electric teleprinters, rather than mechanical typewriters?
– Kaz
3 hours ago
@ and " are swapped between the UK and USA Windows keyboard layouts. There are other changes as well, since shift-3 is used for the UK pound currency sign, not the US "pound/hash" sign. But I have no idea why @ and " were swapped between the UK and US layouts.
– alephzero
3 hours ago
@alephzero I wasn't thinking so much of regional differences, rather the fact that there were different layouts for the same region: the changing position of the '(' and ')' for example. Incidentally, the UK-based BBC Micro kept the same ASCII layout on the number keys as the Apple II pictured with '#' symbol as shift-3, and allocated '£' to code 0x60, placed on a key to the left of the cursor keys. So there's the same mismatch between an ASCII layout and a UK/GB PC keyboard layout.
– Kaz
2 hours ago
|
show 1 more comment
It all dates back to the age of typewriters.
Using an ASCII-based layout made the design of computer keyboard encoders simpler, as the output of any key while holding Shift (capitals, symbols) differs from the the normal output by just one bit. For this reason, these keyboards are also known as bit-paired keyboards.
Mechanical typewriters had used a large number of different layouts, particularly early designs. A standardised layout had developed by the time of IBM's Selectric electric typewriter in the 1960s. This standard typewriter layout differed from the bit-paired ASCII layout, particularly in its placement of symbols, but this was not a disadvantage for a typewriter.
In the computer age, these two layouts would appeal to different types of individuals. Computer designers and engineers would obviously appreciate the simplicity of the ASCII-based layout when building a machine. On the other hand, many computers were used by professional typists as a replacement for electric typewriters. As users of touch-typing, they would want to keep the same keyboard layout they were used to, as switching layout would slow down their work.
In the light of this, it's unsurprising that IBM would use the same typewriter-based layout as their Selectrics when releasing their first personal computer. It is possible that Apple changed layout for the Mac for the same reason.
It all dates back to the age of typewriters.
Using an ASCII-based layout made the design of computer keyboard encoders simpler, as the output of any key while holding Shift (capitals, symbols) differs from the the normal output by just one bit. For this reason, these keyboards are also known as bit-paired keyboards.
Mechanical typewriters had used a large number of different layouts, particularly early designs. A standardised layout had developed by the time of IBM's Selectric electric typewriter in the 1960s. This standard typewriter layout differed from the bit-paired ASCII layout, particularly in its placement of symbols, but this was not a disadvantage for a typewriter.
In the computer age, these two layouts would appeal to different types of individuals. Computer designers and engineers would obviously appreciate the simplicity of the ASCII-based layout when building a machine. On the other hand, many computers were used by professional typists as a replacement for electric typewriters. As users of touch-typing, they would want to keep the same keyboard layout they were used to, as switching layout would slow down their work.
In the light of this, it's unsurprising that IBM would use the same typewriter-based layout as their Selectrics when releasing their first personal computer. It is possible that Apple changed layout for the Mac for the same reason.
answered 3 hours ago
KazKaz
1,031315
1,031315
I'd written the whole question, and was getting sources for the last paragraph, when I first stumbled across the term "bit-shifted keyboard", which immediately gave me the explanation. I figured I may as well write up an answer and share it. Strange that I'd never come across the term before...
– Kaz
3 hours ago
Note that the order of symbols in ASCII is itself based on the common American layout used on mechanical typewriters. When ASCII was developed, there were two common layouts, one for mechanical typewriters, the other for electric typewriters, and those are the two layouts in your question.
– Stephen Kitt
3 hours ago
@StephenKitt Would it be more accurate to say ASCII was based on electric teleprinters, rather than mechanical typewriters?
– Kaz
3 hours ago
@ and " are swapped between the UK and USA Windows keyboard layouts. There are other changes as well, since shift-3 is used for the UK pound currency sign, not the US "pound/hash" sign. But I have no idea why @ and " were swapped between the UK and US layouts.
– alephzero
3 hours ago
@alephzero I wasn't thinking so much of regional differences, rather the fact that there were different layouts for the same region: the changing position of the '(' and ')' for example. Incidentally, the UK-based BBC Micro kept the same ASCII layout on the number keys as the Apple II pictured with '#' symbol as shift-3, and allocated '£' to code 0x60, placed on a key to the left of the cursor keys. So there's the same mismatch between an ASCII layout and a UK/GB PC keyboard layout.
– Kaz
2 hours ago
|
show 1 more comment
I'd written the whole question, and was getting sources for the last paragraph, when I first stumbled across the term "bit-shifted keyboard", which immediately gave me the explanation. I figured I may as well write up an answer and share it. Strange that I'd never come across the term before...
– Kaz
3 hours ago
Note that the order of symbols in ASCII is itself based on the common American layout used on mechanical typewriters. When ASCII was developed, there were two common layouts, one for mechanical typewriters, the other for electric typewriters, and those are the two layouts in your question.
– Stephen Kitt
3 hours ago
@StephenKitt Would it be more accurate to say ASCII was based on electric teleprinters, rather than mechanical typewriters?
– Kaz
3 hours ago
@ and " are swapped between the UK and USA Windows keyboard layouts. There are other changes as well, since shift-3 is used for the UK pound currency sign, not the US "pound/hash" sign. But I have no idea why @ and " were swapped between the UK and US layouts.
– alephzero
3 hours ago
@alephzero I wasn't thinking so much of regional differences, rather the fact that there were different layouts for the same region: the changing position of the '(' and ')' for example. Incidentally, the UK-based BBC Micro kept the same ASCII layout on the number keys as the Apple II pictured with '#' symbol as shift-3, and allocated '£' to code 0x60, placed on a key to the left of the cursor keys. So there's the same mismatch between an ASCII layout and a UK/GB PC keyboard layout.
– Kaz
2 hours ago
I'd written the whole question, and was getting sources for the last paragraph, when I first stumbled across the term "bit-shifted keyboard", which immediately gave me the explanation. I figured I may as well write up an answer and share it. Strange that I'd never come across the term before...
– Kaz
3 hours ago
I'd written the whole question, and was getting sources for the last paragraph, when I first stumbled across the term "bit-shifted keyboard", which immediately gave me the explanation. I figured I may as well write up an answer and share it. Strange that I'd never come across the term before...
– Kaz
3 hours ago
Note that the order of symbols in ASCII is itself based on the common American layout used on mechanical typewriters. When ASCII was developed, there were two common layouts, one for mechanical typewriters, the other for electric typewriters, and those are the two layouts in your question.
– Stephen Kitt
3 hours ago
Note that the order of symbols in ASCII is itself based on the common American layout used on mechanical typewriters. When ASCII was developed, there were two common layouts, one for mechanical typewriters, the other for electric typewriters, and those are the two layouts in your question.
– Stephen Kitt
3 hours ago
@StephenKitt Would it be more accurate to say ASCII was based on electric teleprinters, rather than mechanical typewriters?
– Kaz
3 hours ago
@StephenKitt Would it be more accurate to say ASCII was based on electric teleprinters, rather than mechanical typewriters?
– Kaz
3 hours ago
@ and " are swapped between the UK and USA Windows keyboard layouts. There are other changes as well, since shift-3 is used for the UK pound currency sign, not the US "pound/hash" sign. But I have no idea why @ and " were swapped between the UK and US layouts.
– alephzero
3 hours ago
@ and " are swapped between the UK and USA Windows keyboard layouts. There are other changes as well, since shift-3 is used for the UK pound currency sign, not the US "pound/hash" sign. But I have no idea why @ and " were swapped between the UK and US layouts.
– alephzero
3 hours ago
@alephzero I wasn't thinking so much of regional differences, rather the fact that there were different layouts for the same region: the changing position of the '(' and ')' for example. Incidentally, the UK-based BBC Micro kept the same ASCII layout on the number keys as the Apple II pictured with '#' symbol as shift-3, and allocated '£' to code 0x60, placed on a key to the left of the cursor keys. So there's the same mismatch between an ASCII layout and a UK/GB PC keyboard layout.
– Kaz
2 hours ago
@alephzero I wasn't thinking so much of regional differences, rather the fact that there were different layouts for the same region: the changing position of the '(' and ')' for example. Incidentally, the UK-based BBC Micro kept the same ASCII layout on the number keys as the Apple II pictured with '#' symbol as shift-3, and allocated '£' to code 0x60, placed on a key to the left of the cursor keys. So there's the same mismatch between an ASCII layout and a UK/GB PC keyboard layout.
– Kaz
2 hours ago
|
show 1 more comment
A couple of the design goals for ASCII were to make the encodings of certain characters have useful properties, and to minimize the logic necessary to handle the "shift" key when using a layout that was similar to conventional typewriters at the time (whose layouts sometimes varied and in some situations could be customized with a few interchangeable type bars and key caps).
The way the ASCII sequence was constructed made it practical to have the shift key simply toggle the state of bit 4. On many typewriters, the digits were very commonly mapped to !"#$%¢&'(). Because ASCII does not have a cent sign, and probably also because it would be desirable to keep () consecutive, it the characters that would usually be shift-8-9-0 were changed to shift 7-8-9.
Note that on old ASCII keyboards, shift-0 will yield a space, and on many of them shift-space will yield a zero. This would not have precluded the possibility of making shift-zero a useful (non-space) character. For example, ASCII could have swapped the character-code ranges 0x21-0x5F with 0x41-0x5F, keeping the blank as the lowest non-control character, followed immediately by A-Z, and allowing 0x40-0x49 to be )!"#$%@&(
, matching keyboard layouts of the time except with the cent sign replaced with a commercial at. The optimal shift mappings for keyboards with more keys, however, would still differ from those for keyboards with fewer.
The ASCII committee didn’t want the alphabet to immediately follow space because they wanted symbols to collate before letters (in particular hyphens and periods). The reasoning which led to the ASCII encoding is given in exhaustive detail in the reference listed in my answer.
– Stephen Kitt
24 mins ago
add a comment |
A couple of the design goals for ASCII were to make the encodings of certain characters have useful properties, and to minimize the logic necessary to handle the "shift" key when using a layout that was similar to conventional typewriters at the time (whose layouts sometimes varied and in some situations could be customized with a few interchangeable type bars and key caps).
The way the ASCII sequence was constructed made it practical to have the shift key simply toggle the state of bit 4. On many typewriters, the digits were very commonly mapped to !"#$%¢&'(). Because ASCII does not have a cent sign, and probably also because it would be desirable to keep () consecutive, it the characters that would usually be shift-8-9-0 were changed to shift 7-8-9.
Note that on old ASCII keyboards, shift-0 will yield a space, and on many of them shift-space will yield a zero. This would not have precluded the possibility of making shift-zero a useful (non-space) character. For example, ASCII could have swapped the character-code ranges 0x21-0x5F with 0x41-0x5F, keeping the blank as the lowest non-control character, followed immediately by A-Z, and allowing 0x40-0x49 to be )!"#$%@&(
, matching keyboard layouts of the time except with the cent sign replaced with a commercial at. The optimal shift mappings for keyboards with more keys, however, would still differ from those for keyboards with fewer.
The ASCII committee didn’t want the alphabet to immediately follow space because they wanted symbols to collate before letters (in particular hyphens and periods). The reasoning which led to the ASCII encoding is given in exhaustive detail in the reference listed in my answer.
– Stephen Kitt
24 mins ago
add a comment |
A couple of the design goals for ASCII were to make the encodings of certain characters have useful properties, and to minimize the logic necessary to handle the "shift" key when using a layout that was similar to conventional typewriters at the time (whose layouts sometimes varied and in some situations could be customized with a few interchangeable type bars and key caps).
The way the ASCII sequence was constructed made it practical to have the shift key simply toggle the state of bit 4. On many typewriters, the digits were very commonly mapped to !"#$%¢&'(). Because ASCII does not have a cent sign, and probably also because it would be desirable to keep () consecutive, it the characters that would usually be shift-8-9-0 were changed to shift 7-8-9.
Note that on old ASCII keyboards, shift-0 will yield a space, and on many of them shift-space will yield a zero. This would not have precluded the possibility of making shift-zero a useful (non-space) character. For example, ASCII could have swapped the character-code ranges 0x21-0x5F with 0x41-0x5F, keeping the blank as the lowest non-control character, followed immediately by A-Z, and allowing 0x40-0x49 to be )!"#$%@&(
, matching keyboard layouts of the time except with the cent sign replaced with a commercial at. The optimal shift mappings for keyboards with more keys, however, would still differ from those for keyboards with fewer.
A couple of the design goals for ASCII were to make the encodings of certain characters have useful properties, and to minimize the logic necessary to handle the "shift" key when using a layout that was similar to conventional typewriters at the time (whose layouts sometimes varied and in some situations could be customized with a few interchangeable type bars and key caps).
The way the ASCII sequence was constructed made it practical to have the shift key simply toggle the state of bit 4. On many typewriters, the digits were very commonly mapped to !"#$%¢&'(). Because ASCII does not have a cent sign, and probably also because it would be desirable to keep () consecutive, it the characters that would usually be shift-8-9-0 were changed to shift 7-8-9.
Note that on old ASCII keyboards, shift-0 will yield a space, and on many of them shift-space will yield a zero. This would not have precluded the possibility of making shift-zero a useful (non-space) character. For example, ASCII could have swapped the character-code ranges 0x21-0x5F with 0x41-0x5F, keeping the blank as the lowest non-control character, followed immediately by A-Z, and allowing 0x40-0x49 to be )!"#$%@&(
, matching keyboard layouts of the time except with the cent sign replaced with a commercial at. The optimal shift mappings for keyboards with more keys, however, would still differ from those for keyboards with fewer.
answered 1 hour ago
supercatsupercat
7,127738
7,127738
The ASCII committee didn’t want the alphabet to immediately follow space because they wanted symbols to collate before letters (in particular hyphens and periods). The reasoning which led to the ASCII encoding is given in exhaustive detail in the reference listed in my answer.
– Stephen Kitt
24 mins ago
add a comment |
The ASCII committee didn’t want the alphabet to immediately follow space because they wanted symbols to collate before letters (in particular hyphens and periods). The reasoning which led to the ASCII encoding is given in exhaustive detail in the reference listed in my answer.
– Stephen Kitt
24 mins ago
The ASCII committee didn’t want the alphabet to immediately follow space because they wanted symbols to collate before letters (in particular hyphens and periods). The reasoning which led to the ASCII encoding is given in exhaustive detail in the reference listed in my answer.
– Stephen Kitt
24 mins ago
The ASCII committee didn’t want the alphabet to immediately follow space because they wanted symbols to collate before letters (in particular hyphens and periods). The reasoning which led to the ASCII encoding is given in exhaustive detail in the reference listed in my answer.
– Stephen Kitt
24 mins ago
add a comment |
Thanks for contributing an answer to Retrocomputing Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f9127%2fwhy-are-the-symbols-on-the-number-keys-of-pc-mac-keyboards-different-to-ascii%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
There are numerous keyboard layouts. Most require characters outside the 7-bit ASCII range.
– Thorbjørn Ravn Andersen
2 hours ago