1、INCITS/ISO 4873-1991 (R2003)(formerly ANSI/ISO 4873-1991(R1998)for Information Processing -Bit Code for Information InterchangeStructure and Rules for ImplementationCopyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking perm
2、itted without license from IHS-,-,-Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-American National Standard for Information Processing - Bit Code for Information Interchange -
3、Structure and Rules for Implementation Secretariat Computer and Business Equipment Manufacturers Association Approved January 28,1993 American National Standards Institute, Inc. Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or ne
4、tworking permitted without license from IHS-,-,-AmericanNationalStandardApproval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approval havebeen met by the standards developer.Consensus is established when, in the jud
5、gment of the ANSI Board of StandardsReview, substantial agreement has been reached by directly and materiallyaffected interests. Substantial agreement means much more than a simplemajority, but not necessarily unanimity. Consensus requires that all views andobjections be considered, and that a conce
6、rted effort be made toward theirresolution.The use of American National Standards is completely voluntary; their existencedoes not in any respect preclude anyone, whether he has approved the standardsor not, from manufacturing, marketing, purchasing, or using products, processes,or procedures not co
7、nforming to the standards.The American National Standards Institute does not develop standards and will inno circumstances give an interpretation of any American National Standard.Moreover, no person shall have the right or authority to issue an interpretation ofan American National Standard in the
8、name of the American National StandardsInstitute. Requests for interpretations should be addressed to the secretariat orsponsor whose name appears on the title page of this standard.CAUTION NOTICE: This American National Standard may be revised orwithdrawn at any time. The procedures of the American
9、 National StandardsInstitute require that action be taken periodically to reaffirm, revise, or withdrawthis standard. Purchasers of American National Standards may receive currentinformation on all standards by calling or writing the American National StandardsInstitute.Published byAmerican National
10、 Standards Institute11 West 42nd Street, New York, New York 10036Copyright 1991 by Information Technology Industry Council (ITI)All rights reserved.These materials are subject to copyright claims of International Standardization Organization (ISO),American National Standards Institute (ANSI), and In
11、formation Technology Industry Council (ITI). Not forresale. No part of this publication may be reproduced in any form, including an electronic retrieval system,without the prior written permission of ITI. All requests pertaining to this standard should be submitted toITI, 1250 Eye Street NW, Washing
12、ton, DC 20005.Printed in the United States of AmericaCopyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-Copyright American National Standards Institute Provided by IHS under license
13、 with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-Contents 2 Conformance and implementation 2.1 Conformance 2.1.1 Conformance of information interchange 2.1.2 Conformance of devices 22 Implementation 3 Normative references 4 Definitions 4.1 active position
14、4.2 bit combination 4.3 byte 2 4.4 character 4.5 character position 4.6 coded-character-data-element (CC-data-element) 4.7 coded character set 4.8 code extension 4.9 code table 4.10 control character 4.11 control function 4.12 device 4.13 escape sequence 4.14 Final Byte 4.15 graphic character 4.16 g
15、raphic symbol 4.17 repertoire 4.18 user 3 S Notation, code table and names 5.1 Notation S.2 Code table 5.3 Names 6 Structure of the code : A set of unambiguous rules that establishes a character set and the one-to- one relationship between the characters of the set and their bit combinations. 4.8 co
16、de extension : The techniques for the encoding of characters that are not included in the character set of a given code. 4.9 code table : A table showing the character allocated to each bit combination in a code. 4.10 control character : A control function the coded representation of which consists
17、of a single bit combination. 4.11 control function : An action that affects the recording, processing, transmission, or interpretation of data, and that has a coded representation consisting of one or more bit combinations. 4.12 device : A component of information processing equipment which can tran
18、smit. and/or receive, coded information within CC-data-elements. NOTE -It may be an input/output device in the conventional sense, or a process such as an application program or gateway function. 4.13 escape sequence : A string of bit combinations that is used for control purposes in code extension
19、procedures. The first of these bit combinations represents the control function ESCAPE. 4.14 Final Byte : The bit combination that terminates an escape sequence or a control sequence. 4.15 graphic character : A character, other than a control function. that has a visual representation normally handw
20、ritten, printed or displayed, and that has a coded representation consisting of one or more bit combinations 4.16 graphic symbol : A visual representation of a graphic character or of a control function. 4.17 repertoire : A specified set of characters that are represented by means of one or more bit
21、 combinations of a coded character set. 4.18 user : A person or other entity that invokes the services provided by a device. NOTES 1. This entity may be a process such as an application program if the “device” is a code convertor or a gateway function, for example. 2. The characters, as supplied by
22、the user or made available to him, may be in the form of codes local to the device, or of non-conventional visible representations, provided that 2.1.2 above is satisfied. 5 Notation, code table and names 5.1 Notation The bits of the bit combinations of the - yy is the number represented by b, b, b,
23、 and b, where these bits are given the weights 8, 4,2 and 1 respectively. The notations of the form xx/yy are the same as the ones used to identify code table positions, where xx is the column number and yy is the row number (see 5.2). 5.2 Code table An 8-bit code table consists of 256 positions arr
24、anged in 16 columns and 16 rows. The columns and rows are numbered 00 to 15. The code table positions are identified by notations of the form xw/yy, where xx is the column number and yy is the row number. The positions of the code table are in one-to-one correspondence with the bit combinations of t
25、he code. The notation of a code table position, of the form xx/yy. is the same as that of the corresponding bit combination. 5.3 Names This lnternational Standard assigns one name to each character. In addition, it specifies an acronym for control characters and for the characters SPACE and DELETE,
26、and a graphic symbol for each graphic character. By convention, only capital letters, and hyphen are used for writing the names of the characters. For acronyms only capital letters, space and digit are used. It is intended that the acronyms and this convention be retained in all translations of the
27、text. The names chosen to denote graphic characters are intended to reflect their customary meaning. However, this International Standard does not define and does not restrict the meanings of graphic characters. Neither does it specify a particular style or font design for the graphic characters whe
28、n imaged. 6 Structure of the - the control character ESCAPE shall be represented by bit combination 01111; - any control characters can be allocated to the other bit combinations subject to the restrictions specified in annex A. NOTE - A CO set comprising only ESCAPE represented by bit combination 0
29、1/l 1 has been registered (Registration ISO-IR No. 104). and is identified by ESC 02/01 04/07. 7.2 Character ESCAPE ESCAPE is a control character used to form escape sequences. In this International Standard the use of escape sequences is specified in clause IO. Table 1 - ESCAPE 7.3 Character SPACE
30、A graphic character having a visual representation consisting of the absence of a graphic symbol. It causes the active position to be advanced by one character position. Table 2 - SPACE 7.4 GO set The 94 bit combinations OUOl to 07114 are used to represent graphic characters. All graphic characters
31、allocated to bit combinations in the range OUOI to 07114 are spacing characters, that is they cause the active position to advance by one character position. The graphic characters allocated by this International Standard to these 94 bit combinations are specified in table 3. Copyright American Nati
32、onal Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ANSI/ISO4873-1991 Table 3 - Graphic characters of the Co set Graphic Name Coded Symbol Pnsentation ! EXCLAMATION MARK 02/01 ii QUOTATION MARK 02/02 NUMBE
33、R SIGN 02/03 : DOLLAR SIGN 02/04 PERCENT SIGN 02/05 al AMPERSAND 02/06 i APOSTROPHE 02/07 LEFT PARENTHESIS 02/06 1 RIGHT PARENTHESIS 02/09 * ASTERISK 02/10 + PLUS SIGN 02/11 , %N-H*NuS 02/12 02/13 . FULL STOP 02/14 6 SOLIDUS 02/15 DIGIT ZERO 03/00 : DIGIT ONE 03/01 DIGIT TWO 03/02 3 DIGIT THREE 03/0
34、3 4 DIGIT FOUR 03/04 ii DIGIT FIVE 03/05 DIGIT SIX 03/06 i DIGIT SEVEN 03/07 DIGIT EIGHT 9 DIGIT NINE :;z . . COLON 03/10 . , SEMICOLON 03/11 C LESS-THAN SIGN 03/12 = EQUALS SIGN 03/13 GREATER-THAN SIGN 03/14 ? QUESTION MARK 03/s COMMERCIAL AT OS/O0 A LATIN CAPITAL LETTER A 04/01 E LATIN CAPITAL LET
35、TER B 04/02 LATIN CAPITAL LETTER C 04/03 D LATIN CAPITAL LETTER D OS/OS E LATIN CAPITAL LETTER E OS/OS L LATIN CAPITAL LETTER F 04/06 LATIN CAPITAL LETTER G 04/07 H LATIN CAPITAL LETTER H OS/OS : LATIN CAPITAL LETTER I OS/OS LATIN CAPITAL LETTER J 04/10 K LATIN CAPITAL LETTER K 04/U L LATIN CAPITAL
36、LETTER L 04112 M LATIN CAPITAL LETTER H 04/13 i LATIN CAPITAL LETTER N 04/14 LATIN CAPITAL LETTER 0 04/15 P LATIN CAPITAL LETTER P 05/00 (continued) 7 Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without
37、license from IHS-,-,-ANSI/ISO4873-1991 Table 3 - Graphic characters of the GO set Graphic Name COdd Symbol representation PR LATIN CAPITAL LETTER Q 05/01 LATIN CAPITAL LETTER R 05/02 s LATIN CAPITAL LETTER S 05/03 T LATIN CAPITAL LETTER T 05104 U LATIN CAPITAL LETTER U 05/05 ii LATIN CAPITAL LETTER
38、V 05/06 LATIN CAPITAL LETTER W 05/07 X LATIN CAPITAL LETTER X OS/OS Y LATIN CAPITAL LETTER Y OS/OS Z LATIN CAPITAL LETTER Z 05/10 I: LEFT SQUARE BRACKET 05/11 ; REVERSE SOLIDUS 05/12 RIGHT SQUARE BRACKET 05/13 a CIRCUMFLEX ACCENT 05/14 LOW LINE 05115 7 GRAVE ACCENT 06/00 i LATIN SMALL LETTER A 06/01
39、 LATIN SMALL LETTER B 06/02 s LATIN SMALL LETTER C 06/03 LATIN SMALL LETTER D 06/04 e LATIN SMALL LETTER E 06/05 f LATIN SMALL LETTER F 06/06 9 LATIN SMALL LETTER G 06/07 h LATIN SMALL LETTER H 06/08 i LATIN SMALL LETTER I 06/09 j LATIN SMALL LETTER J 06/10 k LATIN SMALL LETTER K 06/11 1 LATIN SMALL
40、 LETTER L 06/12 m LATIN SMALL LETTER M 06/13 n LATIN SMALL LETTER N 06114 0 LATIN SMALL LETTER 0 D6/15 9“ LATIN SMALL LETTER P 07/00 LATIN SMALL LETTER Q 07/01 r LATIN SMALL LETTER R D7/02 : LATIN SMALL LETTER S 07/03 LATIN SMALL LETTER T D7/04 u LATIN SMALL LETTER U 07/05 V LATIN SMALL LETTER V 07/
41、06 W LATIN SMALL LETTER W 07107 X LATIN SMALL LETTER X 07108 Y LATIN SMALL LETTER Y D7/09 ? LATIN SMALL LETTER Z 07/1D 1 LEFT CURLY BRACKET 07/11 1 VERTICAL LINE 1 07/12 2 RIGHT CURLY BRACKET 07/13 TILDE 07114 Copyright American National Standards Institute Provided by IHS under license with ANSINot
42、 for ResaleNo reproduction or networking permitted without license from IHS-,-,-ANSI/IS0 4873-l 991 7.5 Character DELETE DEL was originally used to erase or obliterate an erroneous or unwanted character in punched tape. DEL may be used for media-fill or time-fill. DEL characters may be inserted into
43、, or removed from, a data stream without affecting the information content of that stream, but such action may affect the information layout and/or the control of equipment. Table 4 - DELETE 7.6 Cl set The Cl set is available for up to 32 control characters in addition to those provided by the CO se
44、t. It shall not include any of the control characters of the CO set of IS0 6429. No specific control characters are allocated to bit combinations 08/00 to 08113 and 09/00 to 09115 by this International Standard. When the single-shift functions SS2 and SS3 are used, they shall be allocated to bit com
45、binations O - the character SPACE represented by bit combination 02/00, - the GOset; - the character DELETE represented by bit combination 07/15; - aClset; - aGlset. At Level I no shift functions shall be used and the GO and Gl sets are assumed to be invoked permanently in columns 02 to 07 and IO to
46、 IS. respectively At Level 1 the Cl set and/or the Gl set may be empty if there is no requirement for control characters in addition to those provided by the CO set and/or for graphic characters in addition to those provided by the GO set. At Level I a version shall not include a G2 or a G3 set. 8.2
47、 Level 2 Level 2. see figure 3. comprises the facilities of Level 1 and in addition to them - a G2 set the characters of which shall be invoked individually by SS2; - a G3 set the characters of which shall be invoked individually by SS3. 10 Copyright American National Standards Institute Provided by
48、 IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ANSI/IS0 4873-l 991 At Level 2 no other shift functions shall be used. The Gl set shall not be empty; either the G2 or the G3 set may be empty but not both. The Cl set shall not be empty, i
49、t shall contain at least the single-shift functions SS2 and SS3. 8.3 Level 3 Level 3, see figure 4, comprises all the facilities of Level 2, with the addition of the following three shift functions: - LSIR - LSZR - LS3R The Cl set shall not be empty; either the G2 or the G3 set may be, but not both. The Gl, G2 and G3 sets can be invoked explicitly by LSIR, LSZR and LS3R. respectively. Individual ch
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1