scsh-0.6/doc/src/ascii.tex

97 lines
7.6 KiB
TeX
Raw Normal View History

\T\appendix
\chapter{ASCII character encoding}
\label{ascii-chart}
% Table of ASCII encodings (as used by CHAR->ASCII and ASCII->CHAR)
``ASCII'' stands for ``American Standard Code for Information Interchange''.
The ASCII standard is a seven-bit code published by the United States of
America Standards Institute (USASI) in 1968.
The ASCII encoding forms the first half of ISO-8859-1 (Latin1) which in
turn forms the first page of ISO 10646 (Unicode).
The Scheme~48 procedures
\link{\code{char->ascii}}{ascii-procedures}
and
\link{\code{ascii->char}}{ascii-procedures}
\T (section~\ref{ascii-procedures})
give access to the ASCII encoding.
% Could also show named Scheme characters (#\space etc.) and C escapes.
\T{\small
\W\begin{tabular}{rrllrrll}
\T\setlongtables
\T\begin{longtable}{rrllrrll}
n$_{10}$ & n$_{16}$ & & Unicode name & n$_{10}$ & n$_{16}$ & & Unicode name \\
\T\endfirsthead
\T n$_{10}$ & n$_{16}$ & & Unicode name & n$_{10}$ & n$_{16}$ & & Unicode name \\
\T\endhead
\code{0} & \code{0} & NUL & null & \code{64} & \code{40} & \verb|@| & commercial at \\
\code{1} & \code{1} & SOH & start of heading & \code{65} & \code{41} & \verb|A| & latin capital letter a \\
\code{2} & \code{2} & STX & start of text & \code{66} & \code{42} & \verb|B| & latin capital letter b \\
\code{3} & \code{3} & ETX & end of text & \code{67} & \code{43} & \verb|C| & latin capital letter c \\
\code{4} & \code{4} & EOT & end of transmission & \code{68} & \code{44} & \verb|D| & latin capital letter d \\
\code{5} & \code{5} & ENQ & enquiry & \code{69} & \code{45} & \verb|E| & latin capital letter e \\
\code{6} & \code{6} & ACK & acknowledge & \code{70} & \code{46} & \verb|F| & latin capital letter f \\
\code{7} & \code{7} & BEL & bell & \code{71} & \code{47} & \verb|G| & latin capital letter g \\
\code{8} & \code{8} & BS & backspace & \code{72} & \code{48} & \verb|H| & latin capital letter h \\
\code{9} & \code{9} & HT & horizontal tabulation & \code{73} & \code{49} & \verb|I| & latin capital letter i \\
\code{10} & \code{A} & LF & line feed & \code{74} & \code{4A} & \verb|J| & latin capital letter j \\
\code{11} & \code{B} & VT & vertical tabulation & \code{75} & \code{4B} & \verb|K| & latin capital letter k \\
\code{12} & \code{C} & FF & form feed & \code{76} & \code{4C} & \verb|L| & latin capital letter l \\
\code{13} & \code{D} & CR & carriage return & \code{77} & \code{4D} & \verb|M| & latin capital letter m \\
\code{14} & \code{E} & SO & shift out & \code{78} & \code{4E} & \verb|N| & latin capital letter n \\
\code{15} & \code{F} & SI & shift in & \code{79} & \code{4F} & \verb|O| & latin capital letter o \\
\code{16} & \code{10} & DLE & data link escape & \code{80} & \code{50} & \verb|P| & latin capital letter p \\
\code{17} & \code{11} & DC1 & device control one & \code{81} & \code{51} & \verb|Q| & latin capital letter q \\
\code{18} & \code{12} & DC2 & device control two & \code{82} & \code{52} & \verb|R| & latin capital letter r \\
\code{19} & \code{13} & DC3 & device control three & \code{83} & \code{53} & \verb|S| & latin capital letter s \\
\code{20} & \code{14} & DC4 & device control four & \code{84} & \code{54} & \verb|T| & latin capital letter t \\
\code{21} & \code{15} & NAK & negative acknowledge & \code{85} & \code{55} & \verb|U| & latin capital letter u \\
\code{22} & \code{16} & SYN & synchronous idle & \code{86} & \code{56} & \verb|V| & latin capital letter v \\
\code{23} & \code{17} & ETB & end of transmission block & \code{87} & \code{57} & \verb|W| & latin capital letter w \\
\code{24} & \code{18} & CAN & cancel & \code{88} & \code{58} & \verb|X| & latin capital letter x \\
\code{25} & \code{19} & EM & end of medium & \code{89} & \code{59} & \verb|Y| & latin capital letter y \\
\code{26} & \code{1A} & SUB & substitute & \code{90} & \code{5A} & \verb|Z| & latin capital letter z \\
\code{27} & \code{1B} & ESC & escape & \code{91} & \code{5B} & \verb|[| & left square bracket \\
\code{28} & \code{1C} & FS & file separator & \code{92} & \code{5C} & \verb|\| & reverse solidus \\
\code{29} & \code{1D} & GS & group separator & \code{93} & \code{5D} & \verb|]| & right square bracket \\
\code{30} & \code{1E} & RS & record separator & \code{94} & \code{5E} & \verb|^| & circumflex accent \\
\code{31} & \code{1F} & US & unit separator & \code{95} & \code{5F} & \verb|_| & low line \\
\code{32} & \code{20} & SPACE & space & \code{96} & \code{60} & \verb|`| & grave accent \\
\code{33} & \code{21} & \verb|!| & exclamation mark & \code{97} & \code{61} & \verb|a| & latin small letter a \\
\code{34} & \code{22} & \verb|"| & quotation mark & \code{98} & \code{62} & \verb|b| & latin small letter b \\
\code{35} & \code{23} & \verb|#| & number sign & \code{99} & \code{63} & \verb|c| & latin small letter c \\
\code{36} & \code{24} & \verb|$| & dollar sign & \code{100} & \code{64} & \verb|d| & latin small letter d \\
\code{37} & \code{25} & \verb|%| & percent sign & \code{101} & \code{65} & \verb|e| & latin small letter e \\
\code{38} & \code{26} & \verb|&| & ampersand & \code{102} & \code{66} & \verb|f| & latin small letter f \\
\code{39} & \code{27} & \verb|'| & apostrophe & \code{103} & \code{67} & \verb|g| & latin small letter g \\
\code{40} & \code{28} & \verb|(| & left parenthesis & \code{104} & \code{68} & \verb|h| & latin small letter h \\
\code{41} & \code{29} & \verb|)| & right parenthesis & \code{105} & \code{69} & \verb|i| & latin small letter i \\
\code{42} & \code{2A} & \verb|*| & asterisk & \code{106} & \code{6A} & \verb|j| & latin small letter j \\
\code{43} & \code{2B} & \verb|+| & plus sign & \code{107} & \code{6B} & \verb|k| & latin small letter k \\
\code{44} & \code{2C} & \verb|,| & comma & \code{108} & \code{6C} & \verb|l| & latin small letter l \\
\code{45} & \code{2D} & \verb|-| & hyphen-minus & \code{109} & \code{6D} & \verb|m| & latin small letter m \\
\code{46} & \code{2E} & \verb|.| & full stop & \code{110} & \code{6E} & \verb|n| & latin small letter n \\
\code{47} & \code{2F} & \verb|/| & solidus & \code{111} & \code{6F} & \verb|o| & latin small letter o \\
\code{48} & \code{30} & \verb|0| & digit zero & \code{112} & \code{70} & \verb|p| & latin small letter p \\
\code{49} & \code{31} & \verb|1| & digit one & \code{113} & \code{71} & \verb|q| & latin small letter q \\
\code{50} & \code{32} & \verb|2| & digit two & \code{114} & \code{72} & \verb|r| & latin small letter r \\
\code{51} & \code{33} & \verb|3| & digit three & \code{115} & \code{73} & \verb|s| & latin small letter s \\
\code{52} & \code{34} & \verb|4| & digit four & \code{116} & \code{74} & \verb|t| & latin small letter t \\
\code{53} & \code{35} & \verb|5| & digit five & \code{117} & \code{75} & \verb|u| & latin small letter u \\
\code{54} & \code{36} & \verb|6| & digit six & \code{118} & \code{76} & \verb|v| & latin small letter v \\
\code{55} & \code{37} & \verb|7| & digit seven & \code{119} & \code{77} & \verb|w| & latin small letter w \\
\code{56} & \code{38} & \verb|8| & digit eight & \code{120} & \code{78} & \verb|x| & latin small letter x \\
\code{57} & \code{39} & \verb|9| & digit nine & \code{121} & \code{79} & \verb|y| & latin small letter y \\
\code{58} & \code{3A} & \verb|:| & colon & \code{122} & \code{7A} & \verb|z| & latin small letter z \\
\code{59} & \code{3B} & \verb|;| & semicolon & \code{123} & \code{7B} & \verb|{| & left curly bracket \\
\code{60} & \code{3C} & \verb|<| & less-than sign & \code{124} & \code{7C} & \verb$|$ & vertical line \\
\code{61} & \code{3D} & \verb|=| & equals sign & \code{125} & \code{7D} & \verb|}| & right curly bracket \\
\code{62} & \code{3E} & \verb|>| & greater-than sign & \code{126} & \code{7E} & \verb|~| & tilde \\
\code{63} & \code{3F} & \verb|?| & question mark & \code{127} & \code{7F} & DEL & delete \\
\W\end{tabular}
\T\end{longtable}
\T}