Perché i caratteri di punteggiatura nella tabella ASCII sono ovunque?


Nella tabella ASCII , i caratteri di punteggiatura compaiono tra i caratteri non stampabili e prima dei numeri ( !"#$%&')*+,-./ ), tra i numeri e lettere maiuscole ( :;<=>[email protected] ), tra le lettere maiuscole ( [\]^_' ) e le lettere minuscole e dopo le lettere minuscole ( {|}~ ).

A prima vista, ci si aspetterebbe che questi siano raggruppati insieme; eventualmente prima di tutti i caratteri alfanumerici o dietro di essi. Ma questo non è il caso; apprendono sparsi in questi diversi gruppi.

Perché è così? C'è qualche (possibile storico) motivo per cui i personaggi sono raggruppati in questo modo?

posta Qqwy 13.09.2016 - 13:36

1 risposta


Secondo articolo ASCII di Wikipedia :

The code itself was patterned so that most control codes were together, and all graphic codes were together, for ease of identification. The first two columns (32 positions) were reserved for control characters.) The "space" character had to come before graphics to make sorting easier, so it became position 20hex for the same reason, many special signs commonly used as separators were placed before digits. The committee decided it was important to support uppercase 64-character alphabets, and chose to pattern ASCII so it could be reduced easily to a usable 64-character set of graphic codes, as was done in the DEC SIXBIT code (1963). Lowercase letters were therefore not interleaved with uppercase. To keep options available for lowercase letters and other graphics, the special and numeric codes were arranged before the letters, and the letter A was placed in position 41hex to match the draft of the corresponding British standard. The digits 0–9 were arranged so they correspond to values in binary prefixed with 011, making conversion with binary-coded decimal straightforward.

risposta data 13.09.2016 - 17:24

Leggi altre domande sui tag