| 240 | def reservedForFutureUse(self) : |
| 241 | """Outputs something when a reserved byte is encountered.""" |
| 242 | if self.debug : |
| 243 | sys.stderr.write("Byte at %s is out of the PCLXL Protocol Class 2.0 Specification\n" % self.pos) |
| 244 | return 0 |
| 245 | |
| 246 | def escape(self) : |
| 247 | """Handles the ESC code.""" |
| 248 | pos = endpos = self.pos |
| 249 | if self.minfile[pos : pos+8] == r"%-12345X" : |
| 250 | endpos = pos + 9 |
| 251 | endmark = chr(0x0c) + chr(0x00) |
| 252 | while self.minfile[endpos] not in endmark : |
| 253 | endpos += 1 |
| 254 | |
| 255 | # Store this in a per page mapping. |
| 256 | # NB : First time will be at page 0 (i.e. **before** page 1) ! |
| 257 | stuff = self.escapedStuff.setdefault(self.pagecount, []) |
| 258 | stuff.append(self.minfile[pos : endpos]) |
| 259 | if self.debug : |
| 260 | sys.stderr.write("Escaped datas : [%s]\n" % repr(self.minfile[pos : endpos])) |
| 261 | return endpos - pos |
| 262 | |
| 307 | self.tags[0x45] = self.reservedForFutureUse # reserved |
| 308 | self.tags[0x46] = self.reservedForFutureUse # reserved |
| 309 | |
| 310 | self.tags[0x4a] = self.reservedForFutureUse # reserved |
| 311 | self.tags[0x4b] = self.reservedForFutureUse # reserved |
| 312 | self.tags[0x4c] = self.reservedForFutureUse # reserved |
| 313 | self.tags[0x4d] = self.reservedForFutureUse # reserved |
| 314 | self.tags[0x4e] = self.reservedForFutureUse # reserved |
| 315 | |
| 316 | self.tags[0x56] = self.reservedForFutureUse # TODO : documentation not clear about reserved status |
| 317 | |
| 318 | self.tags[0x57] = self.reservedForFutureUse # reserved |
| 319 | self.tags[0x58] = self.reservedForFutureUse # reserved |
| 320 | self.tags[0x59] = self.reservedForFutureUse # reserved |
| 321 | self.tags[0x5a] = self.reservedForFutureUse # reserved |
| 324 | |
| 325 | self.tags[0x83] = self.reservedForFutureUse # reserved |
| 326 | |
| 327 | self.tags[0x87] = self.reservedForFutureUse # reserved |
| 328 | self.tags[0x88] = self.reservedForFutureUse # reserved |
| 329 | self.tags[0x89] = self.reservedForFutureUse # reserved |
| 330 | self.tags[0x8a] = self.reservedForFutureUse # reserved |
| 331 | self.tags[0x8b] = self.reservedForFutureUse # reserved |
| 332 | self.tags[0x8c] = self.reservedForFutureUse # reserved |
| 333 | self.tags[0x8d] = self.reservedForFutureUse # reserved |
| 334 | self.tags[0x8e] = self.reservedForFutureUse # reserved |
| 335 | self.tags[0x8f] = self.reservedForFutureUse # reserved |
| 336 | self.tags[0x90] = self.reservedForFutureUse # reserved |
| 337 | |
| 338 | self.tags[0x92] = self.reservedForFutureUse # reserved |
| 339 | |
| 340 | self.tags[0x94] = self.reservedForFutureUse # reserved |
| 341 | |
| 342 | self.tags[0x9a] = self.reservedForFutureUse # reserved |
| 343 | self.tags[0x9c] = self.reservedForFutureUse # reserved |
| 344 | |
| 345 | self.tags[0xa4] = self.reservedForFutureUse # reserved |
| 346 | self.tags[0xa5] = self.reservedForFutureUse # reserved |
| 347 | self.tags[0xa6] = self.reservedForFutureUse # reserved |
| 348 | self.tags[0xa7] = self.reservedForFutureUse # reserved |
| 349 | |
| 350 | self.tags[0xaa] = self.reservedForFutureUse # reserved |
| 351 | self.tags[0xab] = self.reservedForFutureUse # reserved |
| 352 | self.tags[0xac] = self.reservedForFutureUse # reserved |
| 353 | self.tags[0xad] = self.reservedForFutureUse # reserved |
| 354 | self.tags[0xae] = self.reservedForFutureUse # reserved |
| 355 | self.tags[0xaf] = self.reservedForFutureUse # reserved |
| 356 | |
| 357 | self.tags[0xb7] = self.reservedForFutureUse # reserved |
| 358 | |
| 359 | self.tags[0xba] = self.reservedForFutureUse # reserved |
| 360 | self.tags[0xbb] = self.reservedForFutureUse # reserved |
| 361 | self.tags[0xbc] = self.reservedForFutureUse # reserved |
| 362 | self.tags[0xbd] = self.reservedForFutureUse # reserved |
| 363 | self.tags[0xbe] = self.reservedForFutureUse # reserved |
| 364 | self.tags[0xbf] = self.reservedForFutureUse # reserved |
| 392 | self.tags[0xd6] = self.reservedForFutureUse # reserved |
| 393 | self.tags[0xd7] = self.reservedForFutureUse # reserved |
| 394 | self.tags[0xd8] = self.reservedForFutureUse # reserved |
| 395 | self.tags[0xd9] = self.reservedForFutureUse # reserved |
| 396 | self.tags[0xda] = self.reservedForFutureUse # reserved |
| 397 | self.tags[0xdb] = self.reservedForFutureUse # reserved |
| 398 | self.tags[0xdc] = self.reservedForFutureUse # reserved |
| 399 | self.tags[0xdd] = self.reservedForFutureUse # reserved |
| 400 | self.tags[0xde] = self.reservedForFutureUse # reserved |
| 401 | self.tags[0xdf] = self.reservedForFutureUse # reserved |
| 409 | self.tags[0xe6] = self.reservedForFutureUse # reserved |
| 410 | self.tags[0xe7] = self.reservedForFutureUse # reserved |
| 411 | self.tags[0xe8] = self.reservedForFutureUse # reserved |
| 412 | self.tags[0xe9] = self.reservedForFutureUse # reserved |
| 413 | self.tags[0xea] = self.reservedForFutureUse # reserved |
| 414 | self.tags[0xeb] = self.reservedForFutureUse # reserved |
| 415 | self.tags[0xec] = self.reservedForFutureUse # reserved |
| 416 | self.tags[0xed] = self.reservedForFutureUse # reserved |
| 417 | self.tags[0xee] = self.reservedForFutureUse # reserved |
| 418 | self.tags[0xef] = self.reservedForFutureUse # reserved |
| 419 | |
| 420 | self.tags[0xf0] = self.reservedForFutureUse # reserved |
| 421 | self.tags[0xf1] = self.reservedForFutureUse # reserved |
| 422 | self.tags[0xf2] = self.reservedForFutureUse # reserved |
| 423 | self.tags[0xf3] = self.reservedForFutureUse # reserved |
| 424 | self.tags[0xf4] = self.reservedForFutureUse # reserved |
| 425 | self.tags[0xf5] = self.reservedForFutureUse # reserved |
| 426 | self.tags[0xf6] = self.reservedForFutureUse # reserved |
| 427 | self.tags[0xf7] = self.reservedForFutureUse # reserved |