| 1 |
# TADS 2 Character Mapping Table |
| 2 |
# Windows code page 1252 <-> 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 Windows code page 1252, then compile the game using |
| 9 |
# this command: |
| 10 |
# |
| 11 |
# tc -ctab win_la1.tcp mygame.t |
| 12 |
# |
| 13 |
# To play a game using ISO Latin 1 with HTML TADS on Windows, simply run |
| 14 |
# the game normally. The HTML TADS run-time should automatically load |
| 15 |
# the compiled version of this mapping file. |
| 16 |
# |
| 17 |
# NOTE: this mapping is for use with TADS 2 only. TADS 3 uses a |
| 18 |
# different mapping system. |
| 19 |
|
| 20 |
|
| 21 |
# Internal Character Set Identifier - this is a string of no more than |
| 22 |
# four characters that uniquely and universally identifies the character |
| 23 |
# set. For a given character set, this ID must be the same on every |
| 24 |
# platform. The reason the ID must be the same everywhere is that the |
| 25 |
# run-time uses the ID, which the compiler stores in the .GAM file, to |
| 26 |
# choose the character set mapping file when a player loads the game. |
| 27 |
# In order to allow you to compile your game on one system, and have |
| 28 |
# players run the game on different systems, every system must use the |
| 29 |
# same character set identifier for the internal character set, so that |
| 30 |
# every platform can choose the correct character set mapping to the |
| 31 |
# native character set. |
| 32 |
# |
| 33 |
# IMPORTANT - to ensure that character set identifiers are universal |
| 34 |
# and unique, character set identifiers MUST be registered. Currently, |
| 35 |
# Mike Roberts ([email protected]) maintains the list of registered |
| 36 |
# character set identifiers; please contact him by email if you would |
| 37 |
# like the current list or add a new character set to the list. |
| 38 |
# |
| 39 |
# You do NOT need to register *native* character sets. The native |
| 40 |
# character set used to compile a game is not stored with the game, |
| 41 |
# because it is irrelevant once the game is compiled -- the game is |
| 42 |
# entirely translated to the internal character set during compilation. |
| 43 |
# Note, however, that the TADS run-time varies by operating system in |
| 44 |
# how it determines the native character set, and how it chooses a |
| 45 |
# character set mapping file based on the native character set. |
| 46 |
# |
| 47 |
# Members of the ISO Latin-X series of character sets are all registered, |
| 48 |
# and are assigned identifiers such of the form "LaX", where X is the |
| 49 |
# numeric suffix to the ISO Latin name. For example, ISO Latin-1 (ISO |
| 50 |
# 8859-1) has identifier "La1", ISO Latin-2 has identifier "La2", and |
| 51 |
# so on. |
| 52 |
# |
| 53 |
id = La1 |
| 54 |
|
| 55 |
|
| 56 |
# Full name of the internal character set - this name is stored in a |
| 57 |
# game compiled with this internal character set, so that the run-time |
| 58 |
# can display a sensible error message if a suitable mapping file is |
| 59 |
# not available when a player loads the game. The full name isn't used |
| 60 |
# for choosing the mapping file, but is meant for the player to see. |
| 61 |
# |
| 62 |
# Each registered character set has an official full name, which should |
| 63 |
# be used here to ensure that players encountering character mapping |
| 64 |
# problems can more easily determine what file they need. The ISO |
| 65 |
# Latin series names should be of the form "ISO Latin-X (ISO 8859-Y)". |
| 66 |
# |
| 67 |
ldesc = ISO Latin-1 (ISO 8859-1) |
| 68 |
|
| 69 |
|
| 70 |
# Extra System-specific information - this can be any string of |
| 71 |
# characters; the meaning is system-dependent. For DOS, this extra |
| 72 |
# information is ignored. Other systems use it for varying purposes. |
| 73 |
# |
| 74 |
# On Windows, this string contains a code page number, which the TADS |
| 75 |
# run-time will use as the system code page when this character set is |
| 76 |
# selected by a game. |
| 77 |
# |
| 78 |
# ISO Latin-1 maps well to Windows code page 1252, so use 1252 for |
| 79 |
# games written for ISO Latin-1. |
| 80 |
# |
| 81 |
EXTRA_SYSTEM_INFO = 1252 |
| 82 |
|
| 83 |
|
| 84 |
# --------------------------------------------------------------------------- |
| 85 |
# The ASCII subset 1-127 is the same in both character sets and therefore |
| 86 |
# doesn't need to be mapped |
| 87 |
|
| 88 |
# ISO Latin-1 and Windows code page 1252 are identical for characters |
| 89 |
# 0xA0 through 0xFF. |
| 90 |
|
| 91 |
160 <-> 160 |
| 92 |
161 <-> 161 |
| 93 |
162 <-> 162 |
| 94 |
163 <-> 163 |
| 95 |
164 <-> 164 |
| 96 |
165 <-> 165 |
| 97 |
166 <-> 166 |
| 98 |
167 <-> 167 |
| 99 |
168 <-> 168 |
| 100 |
169 <-> 169 |
| 101 |
170 <-> 170 |
| 102 |
171 <-> 171 |
| 103 |
172 <-> 172 |
| 104 |
173 <-> 173 |
| 105 |
174 <-> 174 |
| 106 |
175 <-> 175 |
| 107 |
176 <-> 176 |
| 108 |
177 <-> 177 |
| 109 |
178 <-> 178 |
| 110 |
179 <-> 179 |
| 111 |
180 <-> 180 |
| 112 |
181 <-> 181 |
| 113 |
182 <-> 182 |
| 114 |
183 <-> 183 |
| 115 |
184 <-> 184 |
| 116 |
185 <-> 185 |
| 117 |
186 <-> 186 |
| 118 |
187 <-> 187 |
| 119 |
188 <-> 188 |
| 120 |
189 <-> 189 |
| 121 |
190 <-> 190 |
| 122 |
191 <-> 191 |
| 123 |
192 <-> 192 |
| 124 |
193 <-> 193 |
| 125 |
194 <-> 194 |
| 126 |
195 <-> 195 |
| 127 |
196 <-> 196 |
| 128 |
197 <-> 197 |
| 129 |
198 <-> 198 |
| 130 |
199 <-> 199 |
| 131 |
200 <-> 200 |
| 132 |
201 <-> 201 |
| 133 |
202 <-> 202 |
| 134 |
203 <-> 203 |
| 135 |
204 <-> 204 |
| 136 |
205 <-> 205 |
| 137 |
206 <-> 206 |
| 138 |
207 <-> 207 |
| 139 |
208 <-> 208 |
| 140 |
209 <-> 209 |
| 141 |
210 <-> 210 |
| 142 |
211 <-> 211 |
| 143 |
212 <-> 212 |
| 144 |
213 <-> 213 |
| 145 |
214 <-> 214 |
| 146 |
215 <-> 215 |
| 147 |
216 <-> 216 |
| 148 |
217 <-> 217 |
| 149 |
218 <-> 218 |
| 150 |
219 <-> 219 |
| 151 |
220 <-> 220 |
| 152 |
221 <-> 221 |
| 153 |
222 <-> 222 |
| 154 |
223 <-> 223 |
| 155 |
224 <-> 224 |
| 156 |
225 <-> 225 |
| 157 |
226 <-> 226 |
| 158 |
227 <-> 227 |
| 159 |
228 <-> 228 |
| 160 |
229 <-> 229 |
| 161 |
230 <-> 230 |
| 162 |
231 <-> 231 |
| 163 |
232 <-> 232 |
| 164 |
233 <-> 233 |
| 165 |
234 <-> 234 |
| 166 |
235 <-> 235 |
| 167 |
236 <-> 236 |
| 168 |
237 <-> 237 |
| 169 |
238 <-> 238 |
| 170 |
239 <-> 239 |
| 171 |
240 <-> 240 |
| 172 |
241 <-> 241 |
| 173 |
242 <-> 242 |
| 174 |
243 <-> 243 |
| 175 |
244 <-> 244 |
| 176 |
245 <-> 245 |
| 177 |
246 <-> 246 |
| 178 |
247 <-> 247 |
| 179 |
248 <-> 248 |
| 180 |
249 <-> 249 |
| 181 |
250 <-> 250 |
| 182 |
251 <-> 251 |
| 183 |
252 <-> 252 |
| 184 |
253 <-> 253 |
| 185 |
254 <-> 254 |
| 186 |
255 <-> 255 |
| 187 |
|
| 188 |
# |
| 189 |
# Windows code page 1252 has characters at code points 0x80 through |
| 190 |
# 0x9F; these values are not used by ISO Latin-1. Choose 0x80 as the |
| 191 |
# invalid character in ISO Latin-1, since it's not used, and map |
| 192 |
# all of the Windows 1252 characters in this range to this invalid |
| 193 |
# character. Map the invalid character back to character 0x9E in |
| 194 |
# the Windows 1252 code page, since this is an unused and invalid |
| 195 |
# character in that code page. |
| 196 |
# |
| 197 |
|
| 198 |
128 -> 128 -> 158 |
| 199 |
129 -> 128 |
| 200 |
130 -> 128 |
| 201 |
131 -> 128 |
| 202 |
132 -> 128 |
| 203 |
133 -> 128 |
| 204 |
134 -> 128 |
| 205 |
135 -> 128 |
| 206 |
136 -> 128 |
| 207 |
137 -> 128 |
| 208 |
138 -> 128 |
| 209 |
139 -> 128 |
| 210 |
140 -> 128 |
| 211 |
141 -> 128 |
| 212 |
142 -> 128 |
| 213 |
143 -> 128 |
| 214 |
144 -> 128 |
| 215 |
145 -> 128 |
| 216 |
146 -> 128 |
| 217 |
147 -> 128 |
| 218 |
148 -> 128 |
| 219 |
149 -> 128 |
| 220 |
150 -> 128 |
| 221 |
151 -> 128 |
| 222 |
152 -> 128 |
| 223 |
153 -> 128 |
| 224 |
154 -> 128 |
| 225 |
155 -> 128 |
| 226 |
156 -> 128 |
| 227 |
157 -> 128 |
| 228 |
158 -> 128 |
| 229 |
159 -> 128 |
| 230 |
|
| 231 |
# |
| 232 |
# The remaining internal code points (0x81 through 0x9F) are not used. |
| 233 |
# Map all of them to our code page 1252 invalid character, in case some |
| 234 |
# game should incorrectly use one of these codes. |
| 235 |
# |
| 236 |
|
| 237 |
158 <- 129 |
| 238 |
158 <- 130 |
| 239 |
158 <- 131 |
| 240 |
158 <- 132 |
| 241 |
158 <- 133 |
| 242 |
158 <- 134 |
| 243 |
158 <- 135 |
| 244 |
158 <- 136 |
| 245 |
158 <- 137 |
| 246 |
158 <- 138 |
| 247 |
158 <- 139 |
| 248 |
158 <- 140 |
| 249 |
158 <- 141 |
| 250 |
158 <- 142 |
| 251 |
158 <- 143 |
| 252 |
158 <- 144 |
| 253 |
158 <- 145 |
| 254 |
158 <- 146 |
| 255 |
158 <- 147 |
| 256 |
158 <- 148 |
| 257 |
158 <- 149 |
| 258 |
158 <- 150 |
| 259 |
158 <- 151 |
| 260 |
158 <- 152 |
| 261 |
158 <- 153 |
| 262 |
158 <- 154 |
| 263 |
158 <- 155 |
| 264 |
158 <- 156 |
| 265 |
158 <- 157 |
| 266 |
158 <- 158 |
| 267 |
158 <- 159 |
| 268 |
|
| 269 |
# |
| 270 |
# Note that you can also specify entity mappings for this character set. |
| 271 |
# The entity mappings provide the local character set expansions for |
| 272 |
# the HTML named entities using the standard TADS run-time. |
| 273 |
# |
| 274 |
# Note that the entity mappings apply *only* to the standard TADS. |
| 275 |
# HTML TADS does *not* use any HTML entity mappings defined in a character |
| 276 |
# mapping table file, but instead provides its own mapping mechanism. |
| 277 |
# Therefore, we do not provide any mappings for the Windows version. |
| 278 |
|