| 1 |
# Character Mapping Table |
| 2 |
# DOS code page 437 <-> ISO Latin-1 |
| 3 |
|
| 4 |
# To use this file, you must first compile it with MKCHRTAB (also known |
| 5 |
# as MKCHRTAB32 for Windows 95/NT users). |
| 6 |
# |
| 7 |
# To compile a game using this character set mapping, prepare the game's |
| 8 |
# source code using DOS code page 437, then compile the game using this |
| 9 |
# command: |
| 10 |
# |
| 11 |
# tc -ctab 437la1.tcp mygame.t |
| 12 |
# |
| 13 |
# To play a game using ISO Latin 1 on DOS, make sure your DOS command |
| 14 |
# prompt is set to code page 437, then play the game normally. The TADS |
| 15 |
# run-time should automatically load the compiled version of this mapping |
| 16 |
# file. |
| 17 |
# |
| 18 |
|
| 19 |
|
| 20 |
# Internal Character Set Identifier - this is a string of no more than |
| 21 |
# four characters that uniquely and universally identifies the character |
| 22 |
# set. For a given character set, this ID must be the same on every |
| 23 |
# platform. The reason the ID must be the same everywhere is that the |
| 24 |
# run-time uses the ID, which the compiler stores in the .GAM file, to |
| 25 |
# choose the character set mapping file when a player loads the game. |
| 26 |
# In order to allow you to compile your game on one system, and have |
| 27 |
# players run the game on different systems, every system must use the |
| 28 |
# same character set identifier for the internal character set, so that |
| 29 |
# every platform can choose the correct character set mapping to the |
| 30 |
# native character set. |
| 31 |
# |
| 32 |
# IMPORTANT - to ensure that character set identifiers are universal |
| 33 |
# and unique, character set identifiers MUST be registered. Currently, |
| 34 |
# Mike Roberts ([email protected]) maintains the list of registered |
| 35 |
# character set identifiers; please contact him by email if you would |
| 36 |
# like the current list or add a new character set to the list. |
| 37 |
# |
| 38 |
# You do NOT need to register *native* character sets. The native |
| 39 |
# character set used to compile a game is not stored with the game, |
| 40 |
# because it is irrelevant once the game is compiled -- the game is |
| 41 |
# entirely translated to the internal character set during compilation. |
| 42 |
# Note, however, that the TADS run-time varies by operating system in |
| 43 |
# how it determines the native character set, and how it chooses a |
| 44 |
# character set mapping file based on the native character set. |
| 45 |
# |
| 46 |
# On DOS, the run-time chooses a native character set based on the active |
| 47 |
# "code page"; DOS labels code pages with 3- or 4-digit numbers. (For |
| 48 |
# example, this file is for code page 437, the DOS US code page.) The |
| 49 |
# run-time generates the name of the character mapping table by appending |
| 50 |
# the internal character set ID to the code page number, then adding the |
| 51 |
# extension ".tcp" -- for example, the mapping file for native code page |
| 52 |
# 437 to internal character set ISO Latin 1 is called "437LA1.TCP". |
| 53 |
# This convention is system-specific; consult the documentation for your |
| 54 |
# version of TADS for local conventions. |
| 55 |
# |
| 56 |
# Members of the ISO Latin-X series of character sets are all registered, |
| 57 |
# and are assigned identifiers such of the form "LaX", where X is the |
| 58 |
# numeric suffix to the ISO Latin name. For example, ISO Latin-1 (ISO |
| 59 |
# 8859-1) has identifier "La1", ISO Latin-2 has identifier "La2", and |
| 60 |
# so on. |
| 61 |
# |
| 62 |
id = La1 |
| 63 |
|
| 64 |
|
| 65 |
# Full name of the internal character set - this name is stored in a |
| 66 |
# game compiled with this internal character set, so that the run-time |
| 67 |
# can display a sensible error message if a suitable mapping file is |
| 68 |
# not available when a player loads the game. The full name isn't used |
| 69 |
# for choosing the mapping file, but is meant for the player to see. |
| 70 |
# |
| 71 |
# Each registered character set has an official full name, which should |
| 72 |
# be used here to ensure that players encountering character mapping |
| 73 |
# problems can more easily determine what file they need. The ISO |
| 74 |
# Latin series names should be of the form "ISO Latin-X (ISO 8859-Y)". |
| 75 |
# |
| 76 |
ldesc = ISO Latin-1 (ISO 8859-1) |
| 77 |
|
| 78 |
|
| 79 |
# Extra System-specific information - this can be any string of |
| 80 |
# characters; the meaning is system-dependent. For DOS, this extra |
| 81 |
# information is ignored, so we'll just leave it out entirely here. |
| 82 |
# Other systems use it for varying purposes. On Windows, for example, |
| 83 |
# this string contains a code page number, which the TADS run-time |
| 84 |
# will use as the system code page when this character set is selected |
| 85 |
# by a game. |
| 86 |
# EXTRA_SYSTEM_INFO = none |
| 87 |
|
| 88 |
# --------------------------------------------------------------------------- |
| 89 |
# The ASCII subset 1-127 is the same in both character sets and therefore |
| 90 |
# doesn't need to be mapped |
| 91 |
|
| 92 |
# |
| 93 |
# The following characters have equivalent characters in both character |
| 94 |
# sets, so we'll provide a reversible 1-to-1 mapping. |
| 95 |
|
| 96 |
# DOS 437 <-> ISO Latin 1 |
| 97 |
128 <-> 199 |
| 98 |
129 <-> 252 |
| 99 |
130 <-> 233 |
| 100 |
131 <-> 226 |
| 101 |
132 <-> 228 |
| 102 |
133 <-> 224 |
| 103 |
134 <-> 229 |
| 104 |
135 <-> 231 |
| 105 |
136 <-> 234 |
| 106 |
137 <-> 235 |
| 107 |
138 <-> 232 |
| 108 |
139 <-> 239 |
| 109 |
140 <-> 238 |
| 110 |
141 <-> 236 |
| 111 |
142 <-> 196 |
| 112 |
143 <-> 197 |
| 113 |
144 <-> 201 |
| 114 |
145 <-> 230 |
| 115 |
146 <-> 198 |
| 116 |
147 <-> 244 |
| 117 |
148 <-> 246 |
| 118 |
149 <-> 242 |
| 119 |
150 <-> 251 |
| 120 |
151 <-> 249 |
| 121 |
152 <-> 255 |
| 122 |
153 <-> 214 |
| 123 |
154 <-> 220 |
| 124 |
155 <-> 162 |
| 125 |
156 <-> 163 |
| 126 |
157 <-> 165 |
| 127 |
160 <-> 225 |
| 128 |
161 <-> 237 |
| 129 |
162 <-> 243 |
| 130 |
163 <-> 250 |
| 131 |
164 <-> 241 |
| 132 |
165 <-> 209 |
| 133 |
166 <-> 170 |
| 134 |
167 <-> 186 |
| 135 |
168 <-> 191 |
| 136 |
170 <-> 172 |
| 137 |
171 <-> 189 |
| 138 |
172 <-> 188 |
| 139 |
173 <-> 161 |
| 140 |
174 <-> 171 |
| 141 |
175 <-> 187 |
| 142 |
179 <-> 166 |
| 143 |
196 <-> 151 |
| 144 |
230 <-> 181 |
| 145 |
241 <-> 177 |
| 146 |
246 <-> 247 |
| 147 |
248 <-> 176 |
| 148 |
249 <-> 183 |
| 149 |
253 <-> 178 |
| 150 |
|
| 151 |
# |
| 152 |
# there are a few characters in the DOS character set that map to the same |
| 153 |
# ISO Latin 1 character as some other DOS character; we'll cover those |
| 154 |
# here. |
| 155 |
|
| 156 |
250 -> 183 |
| 157 |
|
| 158 |
# |
| 159 |
# these characters are mappings from ISO Latin 1 that are redundant -- |
| 160 |
# multiple characters in ISO Latin 1 map to the same character in DOS |
| 161 |
# code page 437. So, we only need to provide the mapping from ISO Latin 1. |
| 162 |
|
| 163 |
# DOS code page 437 <- ISO Latin 1 |
| 164 |
|
| 165 |
196 <- 150 |
| 166 |
|
| 167 |
|
| 168 |
# |
| 169 |
# The following characters from DOS code page 437 have no equivalents |
| 170 |
# in ISO Latin-1. We'll map them to character 129; this character |
| 171 |
# isn't used in Latin-1, so we'll use it as our invalid character code. |
| 172 |
# We'll map it back to character 250 in code page 437, which is a |
| 173 |
# mid-dot character; this will serve as our "missing character" display |
| 174 |
# indicator. |
| 175 |
|
| 176 |
# DOS 437 -> ISO Latin 1 invalid (129) -> DOS 437 invalid (177) |
| 177 |
127 -> 129 -> 250 |
| 178 |
158 -> 129 |
| 179 |
159 -> 129 |
| 180 |
169 -> 129 |
| 181 |
176 -> 129 |
| 182 |
177 -> 129 |
| 183 |
178 -> 129 |
| 184 |
180 -> 129 |
| 185 |
181 -> 129 |
| 186 |
182 -> 129 |
| 187 |
183 -> 129 |
| 188 |
184 -> 129 |
| 189 |
185 -> 129 |
| 190 |
186 -> 129 |
| 191 |
187 -> 129 |
| 192 |
188 -> 129 |
| 193 |
189 -> 129 |
| 194 |
190 -> 129 |
| 195 |
191 -> 129 |
| 196 |
192 -> 129 |
| 197 |
193 -> 129 |
| 198 |
194 -> 129 |
| 199 |
195 -> 129 |
| 200 |
197 -> 129 |
| 201 |
198 -> 129 |
| 202 |
199 -> 129 |
| 203 |
200 -> 129 |
| 204 |
201 -> 129 |
| 205 |
202 -> 129 |
| 206 |
203 -> 129 |
| 207 |
204 -> 129 |
| 208 |
205 -> 129 |
| 209 |
206 -> 129 |
| 210 |
207 -> 129 |
| 211 |
208 -> 129 |
| 212 |
209 -> 129 |
| 213 |
210 -> 129 |
| 214 |
211 -> 129 |
| 215 |
212 -> 129 |
| 216 |
213 -> 129 |
| 217 |
214 -> 129 |
| 218 |
215 -> 129 |
| 219 |
216 -> 129 |
| 220 |
217 -> 129 |
| 221 |
218 -> 129 |
| 222 |
219 -> 129 |
| 223 |
220 -> 129 |
| 224 |
221 -> 129 |
| 225 |
222 -> 129 |
| 226 |
223 -> 129 |
| 227 |
224 -> 129 |
| 228 |
225 -> 129 |
| 229 |
226 -> 129 |
| 230 |
227 -> 129 |
| 231 |
228 -> 129 |
| 232 |
229 -> 129 |
| 233 |
231 -> 129 |
| 234 |
232 -> 129 |
| 235 |
233 -> 129 |
| 236 |
234 -> 129 |
| 237 |
235 -> 129 |
| 238 |
236 -> 129 |
| 239 |
237 -> 129 |
| 240 |
238 -> 129 |
| 241 |
239 -> 129 |
| 242 |
240 -> 129 |
| 243 |
242 -> 129 |
| 244 |
243 -> 129 |
| 245 |
244 -> 129 |
| 246 |
245 -> 129 |
| 247 |
247 -> 129 |
| 248 |
251 -> 129 |
| 249 |
252 -> 129 |
| 250 |
254 -> 129 |
| 251 |
255 -> 129 |
| 252 |
|
| 253 |
# |
| 254 |
# The following characters from ISO Latin 1 do not have exact equivalents |
| 255 |
# in DOS code page 437, but have reasonable approximations. For example, |
| 256 |
# we'll map accented characters to the unaccented version when no |
| 257 |
# accented version is available. |
| 258 |
# |
| 259 |
|
| 260 |
'\'' <- 130 |
| 261 |
'"' <- 132 |
| 262 |
'<' <- 139 |
| 263 |
'\'' <- 145 |
| 264 |
'\'' <- 146 |
| 265 |
'"' <- 147 |
| 266 |
'"' <- 148 |
| 267 |
'>' <- 155 |
| 268 |
'Y' <- 159 |
| 269 |
'\'' <- 180 |
| 270 |
',' <- 184 |
| 271 |
'A' <- 192 |
| 272 |
'A' <- 193 |
| 273 |
'A' <- 194 |
| 274 |
'A' <- 195 |
| 275 |
'E' <- 200 |
| 276 |
'E' <- 202 |
| 277 |
'E' <- 203 |
| 278 |
'I' <- 205 |
| 279 |
'I' <- 206 |
| 280 |
'I' <- 207 |
| 281 |
'O' <- 210 |
| 282 |
'O' <- 211 |
| 283 |
'O' <- 212 |
| 284 |
'O' <- 213 |
| 285 |
'x' <- 215 |
| 286 |
'O' <- 216 |
| 287 |
'U' <- 217 |
| 288 |
'U' <- 218 |
| 289 |
'U' <- 219 |
| 290 |
'Y' <- 221 |
| 291 |
225 <- 223 |
| 292 |
'a' <- 227 |
| 293 |
'o' <- 245 |
| 294 |
'o' <- 248 |
| 295 |
'y' <- 253 |
| 296 |
|
| 297 |
|
| 298 |
# |
| 299 |
# The following characters from ISO Latin 1 do not appear in DOS code |
| 300 |
# page 437. Map these ISO Latin 1 characters to our "missing character" |
| 301 |
# indicator (DOS code page character 250). |
| 302 |
|
| 303 |
250 <- 128 |
| 304 |
250 <- 131 |
| 305 |
250 <- 133 |
| 306 |
250 <- 134 |
| 307 |
250 <- 135 |
| 308 |
250 <- 136 |
| 309 |
250 <- 137 |
| 310 |
250 <- 138 |
| 311 |
250 <- 140 |
| 312 |
250 <- 141 |
| 313 |
250 <- 142 |
| 314 |
250 <- 143 |
| 315 |
250 <- 144 |
| 316 |
250 <- 149 |
| 317 |
250 <- 152 |
| 318 |
250 <- 153 |
| 319 |
250 <- 154 |
| 320 |
250 <- 156 |
| 321 |
250 <- 157 |
| 322 |
250 <- 158 |
| 323 |
250 <- 160 |
| 324 |
250 <- 164 |
| 325 |
250 <- 167 |
| 326 |
250 <- 168 |
| 327 |
250 <- 169 |
| 328 |
250 <- 173 |
| 329 |
250 <- 174 |
| 330 |
250 <- 175 |
| 331 |
250 <- 179 |
| 332 |
250 <- 182 |
| 333 |
250 <- 185 |
| 334 |
250 <- 190 |
| 335 |
250 <- 204 |
| 336 |
250 <- 208 |
| 337 |
250 <- 222 |
| 338 |
250 <- 240 |
| 339 |
250 <- 254 |
| 340 |
|
| 341 |
|
| 342 |
# |
| 343 |
# We can also specify entity mappings for this character set. |
| 344 |
# The entity mappings provide the local character set expansions for |
| 345 |
# the HTML named entities. |
| 346 |
# |
| 347 |
&scaron = 's' |
| 348 |
&Scaron = 'S' |
| 349 |
&sbquo = '\'' |
| 350 |
&bdquo = '"' |
| 351 |
&dagger = 250 |
| 352 |
&Dagger = 250 |
| 353 |
&permil = 250 |
| 354 |
&lsaquo = '<' |
| 355 |
&OElig = 250 |
| 356 |
&lsquo = '\'' |
| 357 |
&rsquo = '\'' |
| 358 |
&ldquo = '"' |
| 359 |
&rdquo = '"' |
| 360 |
&ndash = 0304 |
| 361 |
&mdash = '-' '-' |
| 362 |
&trade = '(' 't' 'm' ')' |
| 363 |
&rsaquo = '>' |
| 364 |
&oelig = 250 |
| 365 |
&Yuml = 'Y' |
| 366 |
¡ = 0255 |
| 367 |
¢ = 0233 |
| 368 |
£ = 0234 |
| 369 |
¤ = 250 |
| 370 |
¥ = 0235 |
| 371 |
¦ = 0263 |
| 372 |
§ = 250 |
| 373 |
¨ = 250 |
| 374 |
© = '(' 'c' ')' |
| 375 |
ª = 0246 |
| 376 |
« = 0256 |
| 377 |
¬ = 0252 |
| 378 |
­ = ' ' |
| 379 |
® = '(' 'R' ')' |
| 380 |
¯ = 250 |
| 381 |
° = 0370 |
| 382 |
± = 0361 |
| 383 |
² = 0375 |
| 384 |
³ = 250 |
| 385 |
´ = '\'' |
| 386 |
µ = 0346 |
| 387 |
¶ = 250 |
| 388 |
· = 0371 |
| 389 |
¸ = ',' |
| 390 |
¹ = 250 |
| 391 |
º = 0247 |
| 392 |
» = 0257 |
| 393 |
¼ = 0254 |
| 394 |
½ = 0253 |
| 395 |
¾ = '3' '/' '4' |
| 396 |
¿ = 0250 |
| 397 |
À = 'A' |
| 398 |
Á = 'A' |
| 399 |
 = 'A' |
| 400 |
à = 'A' |
| 401 |
Ä = 0216 |
| 402 |
Å = 0217 |
| 403 |
Æ = 0222 |
| 404 |
Ç = 0200 |
| 405 |
È = 'E' |
| 406 |
É = 0220 |
| 407 |
Ê = 'E' |
| 408 |
Ë = 'E' |
| 409 |
Ì = 'I' |
| 410 |
Í = 'I' |
| 411 |
Î = 'I' |
| 412 |
Ï = 'I' |
| 413 |
Ð = 250 |
| 414 |
Ñ = 0245 |
| 415 |
Ò = 'O' |
| 416 |
Ó = 'O' |
| 417 |
Ô = 'O' |
| 418 |
Õ = 'O' |
| 419 |
Ö = 0231 |
| 420 |
× = 'x' |
| 421 |
Ø = 'O' |
| 422 |
Ù = 'U' |
| 423 |
Ú = 'U' |
| 424 |
Û = 'U' |
| 425 |
Ü = 0232 |
| 426 |
Ý = 'Y' |
| 427 |
Þ = 250 |
| 428 |
ß = 0341 |
| 429 |
à = 0205 |
| 430 |
á = 0240 |
| 431 |
â = 0203 |
| 432 |
ã = 'a' |
| 433 |
ä = 0204 |
| 434 |
å = 0206 |
| 435 |
æ = 0221 |
| 436 |
ç = 0207 |
| 437 |
è = 0212 |
| 438 |
é = 0202 |
| 439 |
ê = 0210 |
| 440 |
ë = 0211 |
| 441 |
ì = 0215 |
| 442 |
í = 0241 |
| 443 |
î = 0214 |
| 444 |
ï = 0213 |
| 445 |
ð = 250 |
| 446 |
ñ = 0244 |
| 447 |
ò = 0225 |
| 448 |
ó = 0242 |
| 449 |
ô = 0223 |
| 450 |
õ = 'o' |
| 451 |
ö = 0224 |
| 452 |
÷ = 0366 |
| 453 |
ø = 'o' |
| 454 |
ù = 0227 |
| 455 |
ú = 0243 |
| 456 |
û = 0226 |
| 457 |
ü = 0201 |
| 458 |
ý = 'y' |
| 459 |
þ = 250 |
| 460 |
ÿ = 0230 |
| 461 |
&circ = '^' |
| 462 |
&tilde = '~' |
| 463 |
|
| 464 |
# code page 437 has a bunch of the math symbols and Greek letters as well |
| 465 |
&fnof = 159 |
| 466 |
&alpha = 224 |
| 467 |
&Gamma = 226 |
| 468 |
&pi = 227 |
| 469 |
&Sigma = 228 |
| 470 |
&sigma = 229 |
| 471 |
&tau = 231 |
| 472 |
&Phi = 232 |
| 473 |
&Theta = 233 |
| 474 |
&Omega = 234 |
| 475 |
&delta = 235 |
| 476 |
&infin = 236 |
| 477 |
&phi = 237 |
| 478 |
&epsilon = 238 |
| 479 |
&cap = 239 |
| 480 |
&equiv = 240 |
| 481 |
&ge = 242 |
| 482 |
&le = 243 |
| 483 |
&asymp = 247 |
| 484 |
&radic = 251 |
| 485 |
|
| 486 |
# several of the capital Greek letters look a lot like Roman letters |
| 487 |
&Alpha = 'A' |
| 488 |
&Beta = 'B' |
| 489 |
&Zeta = 'Z' |
| 490 |
&Eta = 'H' |
| 491 |
&Iota = 'I' |
| 492 |
&Kappa = 'K' |
| 493 |
&Mu = 'M' |
| 494 |
&Nu = 'N' |
| 495 |
&Omicron = 'O' |
| 496 |
&Rho = 'P' |
| 497 |
&Tau = 'T' |
| 498 |
&Upsilon = 'Y' |
| 499 |
&Chi = 'X' |
| 500 |
|
| 501 |
# provide approximations for the Latin-2 entities |
| 502 |
&Aogon = 'A' |
| 503 |
&Lstrok = 'L' |
| 504 |
&Lcaron = 'L' |
| 505 |
&Sacute = 'S' |
| 506 |
&Scedil = 'S' |
| 507 |
&Tcaron = 'T' |
| 508 |
&Zacute = 'Z' |
| 509 |
&Zcaron = 'Z' |
| 510 |
&Zdot = 'Z' |
| 511 |
&aogon = 'a' |
| 512 |
&ogon = 'o' |
| 513 |
&lstrok = 'l' |
| 514 |
&lcaron = 'l' |
| 515 |
&sacute = 's' |
| 516 |
&scedil = 's' |
| 517 |
&tcaron = 't' |
| 518 |
&zacute = 'z' |
| 519 |
&dblac = '"' |
| 520 |
&zcaron = 'z' |
| 521 |
&zdot = 'z' |
| 522 |
&Racute = 'R' |
| 523 |
&Abreve = 'A' |
| 524 |
&Lacute = 'L' |
| 525 |
&Cacute = 'C' |
| 526 |
&Ccaron = 'C' |
| 527 |
&Eogon = 'E' |
| 528 |
&Ecaron = 'E' |
| 529 |
&Dcaron = 'D' |
| 530 |
&Dstrok = 'D' |
| 531 |
&Nacute = 'N' |
| 532 |
&Ncaron = 'N' |
| 533 |
&Odblac = 'O' |
| 534 |
&Rcaron = 'R' |
| 535 |
&Uring = 'U' |
| 536 |
&Udblac = 'U' |
| 537 |
&Tcedil = 'T' |
| 538 |
&racute = 'r' |
| 539 |
&abreve = 'a' |
| 540 |
&lacute = 'l' |
| 541 |
&cacute = 'c' |
| 542 |
&ccaron = 'c' |
| 543 |
&eogon = 'e' |
| 544 |
&ecaron = 'e' |
| 545 |
&dcaron = 'd' |
| 546 |
&dstrok = 'd' |
| 547 |
&nacute = 'n' |
| 548 |
&ncaron = 'n' |
| 549 |
&odblac = 'o' |
| 550 |
&rcaron = 'r' |
| 551 |
&uring = 'u' |
| 552 |
&udblac = 'u' |
| 553 |
&tcedil = 't' |