1 ------------------------------------------------------------------------------
3 -- GNAT RUNTIME COMPONENTS --
5 -- A D A . C H A R A C T E R S . L A T I N _ 9 --
10 -- Copyright (C) 2002 Free Software Foundation, Inc. --
12 -- This specification is derived from the Ada Reference Manual for use with --
13 -- GNAT. The copyright notice above, and the license provisions that follow --
14 -- apply solely to the modifications made to Ada.Characters.Latin_1, noted --
15 -- in the text, to derive the equivalent Latin-9 package. --
17 -- GNAT is free software; you can redistribute it and/or modify it under --
18 -- terms of the GNU General Public License as published by the Free Soft- --
19 -- ware Foundation; either version 2, or (at your option) any later ver- --
20 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
21 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
22 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
23 -- for more details. You should have received a copy of the GNU General --
24 -- Public License distributed with GNAT; see file COPYING. If not, write --
25 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
26 -- MA 02111-1307, USA. --
28 -- As a special exception, if other files instantiate generics from this --
29 -- unit, or you link this unit with other files to produce an executable, --
30 -- this unit does not by itself cause the resulting executable to be --
31 -- covered by the GNU General Public License. This exception does not --
32 -- however invalidate any other reasons why the executable file might be --
33 -- covered by the GNU Public License. --
35 -- GNAT was originally developed by the GNAT team at New York University. --
36 -- Extensive contributions were provided by Ada Core Technologies Inc. --
38 ------------------------------------------------------------------------------
40 -- This package provides definitions for Latin-9 (ISO-8859-9) analogous to
41 -- those defined in the standard package Ada.Characters.Latin_1 for Latin-1.
43 package Ada
.Characters
.Latin_9
is
44 pragma Pure
(Latin_9
);
46 ------------------------
47 -- Control Characters --
48 ------------------------
50 NUL
: constant Character := Character'Val (0);
51 SOH
: constant Character := Character'Val (1);
52 STX
: constant Character := Character'Val (2);
53 ETX
: constant Character := Character'Val (3);
54 EOT
: constant Character := Character'Val (4);
55 ENQ
: constant Character := Character'Val (5);
56 ACK
: constant Character := Character'Val (6);
57 BEL
: constant Character := Character'Val (7);
58 BS
: constant Character := Character'Val (8);
59 HT
: constant Character := Character'Val (9);
60 LF
: constant Character := Character'Val (10);
61 VT
: constant Character := Character'Val (11);
62 FF
: constant Character := Character'Val (12);
63 CR
: constant Character := Character'Val (13);
64 SO
: constant Character := Character'Val (14);
65 SI
: constant Character := Character'Val (15);
67 DLE
: constant Character := Character'Val (16);
68 DC1
: constant Character := Character'Val (17);
69 DC2
: constant Character := Character'Val (18);
70 DC3
: constant Character := Character'Val (19);
71 DC4
: constant Character := Character'Val (20);
72 NAK
: constant Character := Character'Val (21);
73 SYN
: constant Character := Character'Val (22);
74 ETB
: constant Character := Character'Val (23);
75 CAN
: constant Character := Character'Val (24);
76 EM
: constant Character := Character'Val (25);
77 SUB
: constant Character := Character'Val (26);
78 ESC
: constant Character := Character'Val (27);
79 FS
: constant Character := Character'Val (28);
80 GS
: constant Character := Character'Val (29);
81 RS
: constant Character := Character'Val (30);
82 US
: constant Character := Character'Val (31);
84 --------------------------------
85 -- ISO 646 Graphic Characters --
86 --------------------------------
88 Space
: constant Character := ' '; -- Character'Val(32)
89 Exclamation
: constant Character := '!'; -- Character'Val(33)
90 Quotation
: constant Character := '"'; -- Character'Val(34)
91 Number_Sign
: constant Character := '#'; -- Character'Val(35)
92 Dollar_Sign
: constant Character := '$'; -- Character'Val(36)
93 Percent_Sign
: constant Character := '%'; -- Character'Val(37)
94 Ampersand
: constant Character := '&'; -- Character'Val(38)
95 Apostrophe
: constant Character := '''; -- Character'Val(39)
96 Left_Parenthesis
: constant Character := '('; -- Character'Val(40)
97 Right_Parenthesis
: constant Character := ')'; -- Character'Val(41)
98 Asterisk
: constant Character := '*'; -- Character'Val(42)
99 Plus_Sign
: constant Character := '+'; -- Character'Val(43)
100 Comma
: constant Character := ','; -- Character'Val(44)
101 Hyphen
: constant Character := '-'; -- Character'Val(45)
102 Minus_Sign
: Character renames Hyphen
;
103 Full_Stop
: constant Character := '.'; -- Character'Val(46)
104 Solidus
: constant Character := '/'; -- Character'Val(47)
106 -- Decimal digits '0' though '9' are at positions 48 through 57
108 Colon
: constant Character := ':'; -- Character'Val(58)
109 Semicolon
: constant Character := ';'; -- Character'Val(59)
110 Less_Than_Sign
: constant Character := '<'; -- Character'Val(60)
111 Equals_Sign
: constant Character := '='; -- Character'Val(61)
112 Greater_Than_Sign
: constant Character := '>'; -- Character'Val(62)
113 Question
: constant Character := '?'; -- Character'Val(63)
115 Commercial_At
: constant Character := '@'; -- Character'Val(64)
117 -- Letters 'A' through 'Z' are at positions 65 through 90
119 Left_Square_Bracket
: constant Character := '['; -- Character'Val (91)
120 Reverse_Solidus
: constant Character := '\'; -- Character'Val (92)
121 Right_Square_Bracket
: constant Character := ']'; -- Character'Val (93)
122 Circumflex
: constant Character := '^'; -- Character'Val (94)
123 Low_Line
: constant Character := '_'; -- Character'Val (95)
125 Grave
: constant Character := '`'; -- Character'Val (96)
126 LC_A
: constant Character := 'a'; -- Character'Val (97)
127 LC_B
: constant Character := 'b'; -- Character'Val (98)
128 LC_C
: constant Character := 'c'; -- Character'Val (99)
129 LC_D
: constant Character := 'd'; -- Character'Val (100)
130 LC_E
: constant Character := 'e'; -- Character'Val (101)
131 LC_F
: constant Character := 'f'; -- Character'Val (102)
132 LC_G
: constant Character := 'g'; -- Character'Val (103)
133 LC_H
: constant Character := 'h'; -- Character'Val (104)
134 LC_I
: constant Character := 'i'; -- Character'Val (105)
135 LC_J
: constant Character := 'j'; -- Character'Val (106)
136 LC_K
: constant Character := 'k'; -- Character'Val (107)
137 LC_L
: constant Character := 'l'; -- Character'Val (108)
138 LC_M
: constant Character := 'm'; -- Character'Val (109)
139 LC_N
: constant Character := 'n'; -- Character'Val (110)
140 LC_O
: constant Character := 'o'; -- Character'Val (111)
141 LC_P
: constant Character := 'p'; -- Character'Val (112)
142 LC_Q
: constant Character := 'q'; -- Character'Val (113)
143 LC_R
: constant Character := 'r'; -- Character'Val (114)
144 LC_S
: constant Character := 's'; -- Character'Val (115)
145 LC_T
: constant Character := 't'; -- Character'Val (116)
146 LC_U
: constant Character := 'u'; -- Character'Val (117)
147 LC_V
: constant Character := 'v'; -- Character'Val (118)
148 LC_W
: constant Character := 'w'; -- Character'Val (119)
149 LC_X
: constant Character := 'x'; -- Character'Val (120)
150 LC_Y
: constant Character := 'y'; -- Character'Val (121)
151 LC_Z
: constant Character := 'z'; -- Character'Val (122)
152 Left_Curly_Bracket
: constant Character := '{'; -- Character'Val (123)
153 Vertical_Line
: constant Character := '|'; -- Character'Val (124)
154 Right_Curly_Bracket
: constant Character := '}'; -- Character'Val (125)
155 Tilde
: constant Character := '~'; -- Character'Val (126)
156 DEL
: constant Character := Character'Val (127);
158 ---------------------------------
159 -- ISO 6429 Control Characters --
160 ---------------------------------
162 IS4
: Character renames FS
;
163 IS3
: Character renames GS
;
164 IS2
: Character renames RS
;
165 IS1
: Character renames US
;
167 Reserved_128
: constant Character := Character'Val (128);
168 Reserved_129
: constant Character := Character'Val (129);
169 BPH
: constant Character := Character'Val (130);
170 NBH
: constant Character := Character'Val (131);
171 Reserved_132
: constant Character := Character'Val (132);
172 NEL
: constant Character := Character'Val (133);
173 SSA
: constant Character := Character'Val (134);
174 ESA
: constant Character := Character'Val (135);
175 HTS
: constant Character := Character'Val (136);
176 HTJ
: constant Character := Character'Val (137);
177 VTS
: constant Character := Character'Val (138);
178 PLD
: constant Character := Character'Val (139);
179 PLU
: constant Character := Character'Val (140);
180 RI
: constant Character := Character'Val (141);
181 SS2
: constant Character := Character'Val (142);
182 SS3
: constant Character := Character'Val (143);
184 DCS
: constant Character := Character'Val (144);
185 PU1
: constant Character := Character'Val (145);
186 PU2
: constant Character := Character'Val (146);
187 STS
: constant Character := Character'Val (147);
188 CCH
: constant Character := Character'Val (148);
189 MW
: constant Character := Character'Val (149);
190 SPA
: constant Character := Character'Val (150);
191 EPA
: constant Character := Character'Val (151);
193 SOS
: constant Character := Character'Val (152);
194 Reserved_153
: constant Character := Character'Val (153);
195 SCI
: constant Character := Character'Val (154);
196 CSI
: constant Character := Character'Val (155);
197 ST
: constant Character := Character'Val (156);
198 OSC
: constant Character := Character'Val (157);
199 PM
: constant Character := Character'Val (158);
200 APC
: constant Character := Character'Val (159);
202 ------------------------------
203 -- Other Graphic Characters --
204 ------------------------------
206 -- Character positions 160 (16#A0#) .. 175 (16#AF#)
208 No_Break_Space
: constant Character := Character'Val (160);
209 NBSP
: Character renames No_Break_Space
;
210 Inverted_Exclamation
: constant Character := Character'Val (161);
211 Cent_Sign
: constant Character := Character'Val (162);
212 Pound_Sign
: constant Character := Character'Val (163);
213 Euro_Sign
: constant Character := Character'Val (164);
214 Yen_Sign
: constant Character := Character'Val (165);
215 UC_S_Caron
: constant Character := Character'Val (166);
216 Section_Sign
: constant Character := Character'Val (167);
217 LC_S_Caron
: constant Character := Character'Val (168);
218 Copyright_Sign
: constant Character := Character'Val (169);
219 Feminine_Ordinal_Indicator
: constant Character := Character'Val (170);
220 Left_Angle_Quotation
: constant Character := Character'Val (171);
221 Not_Sign
: constant Character := Character'Val (172);
222 Soft_Hyphen
: constant Character := Character'Val (173);
223 Registered_Trade_Mark_Sign
: constant Character := Character'Val (174);
224 Macron
: constant Character := Character'Val (175);
226 -- Character positions 176 (16#B0#) .. 191 (16#BF#)
228 Degree_Sign
: constant Character := Character'Val (176);
229 Ring_Above
: Character renames Degree_Sign
;
230 Plus_Minus_Sign
: constant Character := Character'Val (177);
231 Superscript_Two
: constant Character := Character'Val (178);
232 Superscript_Three
: constant Character := Character'Val (179);
233 UC_Z_Caron
: constant Character := Character'Val (180);
234 Micro_Sign
: constant Character := Character'Val (181);
235 Pilcrow_Sign
: constant Character := Character'Val (182);
236 Paragraph_Sign
: Character renames Pilcrow_Sign
;
237 Middle_Dot
: constant Character := Character'Val (183);
238 LC_Z_Caron
: constant Character := Character'Val (184);
239 Superscript_One
: constant Character := Character'Val (185);
240 Masculine_Ordinal_Indicator
: constant Character := Character'Val (186);
241 Right_Angle_Quotation
: constant Character := Character'Val (187);
242 UC_Ligature_OE
: constant Character := Character'Val (188);
243 LC_Ligature_OE
: constant Character := Character'Val (189);
244 UC_Y_Diaeresis
: constant Character := Character'Val (190);
245 Inverted_Question
: constant Character := Character'Val (191);
247 -- Character positions 192 (16#C0#) .. 207 (16#CF#)
249 UC_A_Grave
: constant Character := Character'Val (192);
250 UC_A_Acute
: constant Character := Character'Val (193);
251 UC_A_Circumflex
: constant Character := Character'Val (194);
252 UC_A_Tilde
: constant Character := Character'Val (195);
253 UC_A_Diaeresis
: constant Character := Character'Val (196);
254 UC_A_Ring
: constant Character := Character'Val (197);
255 UC_AE_Diphthong
: constant Character := Character'Val (198);
256 UC_C_Cedilla
: constant Character := Character'Val (199);
257 UC_E_Grave
: constant Character := Character'Val (200);
258 UC_E_Acute
: constant Character := Character'Val (201);
259 UC_E_Circumflex
: constant Character := Character'Val (202);
260 UC_E_Diaeresis
: constant Character := Character'Val (203);
261 UC_I_Grave
: constant Character := Character'Val (204);
262 UC_I_Acute
: constant Character := Character'Val (205);
263 UC_I_Circumflex
: constant Character := Character'Val (206);
264 UC_I_Diaeresis
: constant Character := Character'Val (207);
266 -- Character positions 208 (16#D0#) .. 223 (16#DF#)
268 UC_Icelandic_Eth
: constant Character := Character'Val (208);
269 UC_N_Tilde
: constant Character := Character'Val (209);
270 UC_O_Grave
: constant Character := Character'Val (210);
271 UC_O_Acute
: constant Character := Character'Val (211);
272 UC_O_Circumflex
: constant Character := Character'Val (212);
273 UC_O_Tilde
: constant Character := Character'Val (213);
274 UC_O_Diaeresis
: constant Character := Character'Val (214);
275 Multiplication_Sign
: constant Character := Character'Val (215);
276 UC_O_Oblique_Stroke
: constant Character := Character'Val (216);
277 UC_U_Grave
: constant Character := Character'Val (217);
278 UC_U_Acute
: constant Character := Character'Val (218);
279 UC_U_Circumflex
: constant Character := Character'Val (219);
280 UC_U_Diaeresis
: constant Character := Character'Val (220);
281 UC_Y_Acute
: constant Character := Character'Val (221);
282 UC_Icelandic_Thorn
: constant Character := Character'Val (222);
283 LC_German_Sharp_S
: constant Character := Character'Val (223);
285 -- Character positions 224 (16#E0#) .. 239 (16#EF#)
287 LC_A_Grave
: constant Character := Character'Val (224);
288 LC_A_Acute
: constant Character := Character'Val (225);
289 LC_A_Circumflex
: constant Character := Character'Val (226);
290 LC_A_Tilde
: constant Character := Character'Val (227);
291 LC_A_Diaeresis
: constant Character := Character'Val (228);
292 LC_A_Ring
: constant Character := Character'Val (229);
293 LC_AE_Diphthong
: constant Character := Character'Val (230);
294 LC_C_Cedilla
: constant Character := Character'Val (231);
295 LC_E_Grave
: constant Character := Character'Val (232);
296 LC_E_Acute
: constant Character := Character'Val (233);
297 LC_E_Circumflex
: constant Character := Character'Val (234);
298 LC_E_Diaeresis
: constant Character := Character'Val (235);
299 LC_I_Grave
: constant Character := Character'Val (236);
300 LC_I_Acute
: constant Character := Character'Val (237);
301 LC_I_Circumflex
: constant Character := Character'Val (238);
302 LC_I_Diaeresis
: constant Character := Character'Val (239);
304 -- Character positions 240 (16#F0#) .. 255 (16#FF)
305 LC_Icelandic_Eth
: constant Character := Character'Val (240);
306 LC_N_Tilde
: constant Character := Character'Val (241);
307 LC_O_Grave
: constant Character := Character'Val (242);
308 LC_O_Acute
: constant Character := Character'Val (243);
309 LC_O_Circumflex
: constant Character := Character'Val (244);
310 LC_O_Tilde
: constant Character := Character'Val (245);
311 LC_O_Diaeresis
: constant Character := Character'Val (246);
312 Division_Sign
: constant Character := Character'Val (247);
313 LC_O_Oblique_Stroke
: constant Character := Character'Val (248);
314 LC_U_Grave
: constant Character := Character'Val (249);
315 LC_U_Acute
: constant Character := Character'Val (250);
316 LC_U_Circumflex
: constant Character := Character'Val (251);
317 LC_U_Diaeresis
: constant Character := Character'Val (252);
318 LC_Y_Acute
: constant Character := Character'Val (253);
319 LC_Icelandic_Thorn
: constant Character := Character'Val (254);
320 LC_Y_Diaeresis
: constant Character := Character'Val (255);
322 ------------------------------------------------
323 -- Summary of Changes from Latin-1 => Latin-9 --
324 ------------------------------------------------
326 -- 164 Currency => Euro_Sign
327 -- 166 Broken_Bar => UC_S_Caron
328 -- 168 Diaeresis => LC_S_Caron
329 -- 180 Acute => UC_Z_Caron
330 -- 184 Cedilla => LC_Z_Caron
331 -- 188 Fraction_One_Quarter => UC_Ligature_OE
332 -- 189 Fraction_One_Half => LC_Ligature_OE
333 -- 190 Fraction_Three_Quarters => UC_Y_Diaeresis
335 end Ada
.Characters
.Latin_9
;