From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!labrea!decwrl!hplabs!ucbvax!hermix.UUCP!colbert From: colbert@hermix.UUCP.UUCP Newsgroups: comp.lang.ada Subject: RE: OCharacters with codes >= 128 Message-ID: <8709020424.AA05821@rand-unix.rand.org> Date: Tue, 1-Sep-87 22:35:35 EDT Article-I.D.: rand-uni.8709020424.AA05821 Posted: Tue Sep 1 22:35:35 1987 Date-Received: Fri, 4-Sep-87 01:45:02 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet List-Id: You can create your own Character type by defining an enumeration type that has character literals. e.g. type Character_Type is (Nul, Del, ..., 'A', 'B', ..., Koo_Kai, Khoo_Khai, ....); Where Koo_Kai and Khoo_Khai (etc) are the special characters in your language (these letters are phonetic Thai characters). You can then use an enumeration representation specification to map the enumer- ation literals to the appropriate extended ASCII values. Once you have this character type defined, you can create a string type by defining an array of this character type: e.g. type String_Type is array (positive <>) of Character_Type; This allows you to use string literals such as the following: "This is a string of String_Type" -- may require type qualification However, you will have to use catenation to create string_type expressions that contain your countries special characters (and of course non-printable characters). E.g. "This is a '" & Koo_Kai & "' while this is a '" & Khoo_Khai & "'" As for the I/O of your language specific characters, you will need to create a Thai_Text_IO (or something equivalent). Ada does not say that Text_IO is the ONLY text I/O package, only that it is the standard text I/O package. In this case you need something non-standard. I hope this is of help. Take care, Ed Colbert Absolute Software 4593 Orchid Dr Los Angeles, CA 90043-3320 USA (213) 293-0783 hermix!colbert@rand-unix.arpa ARPA (trwrb!, sesmo!, ...)hermix!colbert UUCP P.S. See LRM Sections 2.6 (String Literals), 3.5.2 (Character Types), 3.6.3 (The Type String), 4.2 (Literals).