Changeset 267
- Timestamp:
- 09/19/05 14:25:12 (19 years ago)
- Location:
- pkpgcounter/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/NEWS
r263 r267 22 22 pkpgcounter News : 23 23 24 * 1.69 : 25 26 - Improved PCL3/4/5 parser. 27 28 - Improved PCLXL parser wrt PJL stuff. 29 24 30 * 1.68 : 25 31 -
pkpgcounter/trunk/pkpgpdls/pcl345.py
r265 r267 310 310 311 311 if (orientationcount == (pagecount - 1)) and (resets == 1) : 312 self.logdebug("Rule #1") 312 313 pagecount -= 1 313 314 elif pagecount and (pagecount == orientationcount) : 314 pass315 self.logdebug("Rule #2") 315 316 elif resets == ejects == mediasourcecount == mediasizecount == escstart == 1 : 316 if (startgfx and endgfx) and (startgfx != endgfx) : 317 #if ((startgfx and endgfx) and (startgfx != endgfx)) or (startgfx == endgfx == 0) : 318 if (startgfx and endgfx) or (startgfx == endgfx == 0) : 319 self.logdebug("Rule #3") 317 320 pagecount = orientationcount 318 321 elif (endgfx and not startgfx) and (pagecount > orientationcount) : 322 self.logdebug("Rule #4") 319 323 pagecount = orientationcount 320 324 else : 325 self.logdebug("Rule #5") 321 326 pagecount += 1 322 327 elif (ejects == mediasourcecount == orientationcount) and (startgfx == endgfx) : 323 pass 328 if (resets == 2) and (orientationcount == (pagecount - 1)) and (orientationcount > 1) : 329 self.logdebug("Rule #6") 330 pagecount = orientationcount 324 331 elif pagecount == mediasourcecount == escstart : 325 pass # should be OK.332 self.logdebug("Rule #7") 326 333 elif resets == startgfx == endgfx == mediasizecount == orientationcount == escstart == 1 : 327 pass334 self.logdebug("Rule #8") 328 335 elif resets == startgfx == endgfx == (pagecount - 1) : 329 pass336 self.logdebug("Rule #9") 330 337 elif (not startgfx) and (not endgfx) : 331 pass338 self.logdebug("Rule #10") 332 339 elif (resets == 2) and (startgfx == endgfx) and (mediasourcecount == 1) : 333 pass 340 if orientationcount == (pagecount - 1) : 341 self.logdebug("Rule #11") 342 pagecount = orientationcount 334 343 elif (resets == 1) and (startgfx == endgfx) and (mediasourcecount == 0) : 335 344 if (startgfx > 1) and (startgfx != (pagecount - 1)) : 345 self.logdebug("Rule #12") 336 346 pagecount -= 1 337 else :338 pass339 347 elif startgfx == endgfx : 348 self.logdebug("Rule #13") 340 349 pagecount = startgfx 341 350 elif startgfx == (endgfx - 1) : 351 self.logdebug("Rule #14") 342 352 pagecount = startgfx 343 353 elif (startgfx == 1) and not endgfx : 354 self.logdebug("Rule #15") 344 355 pass 345 356 else : 357 self.logdebug("Rule #16") 346 358 pagecount = abs(startgfx - endgfx) 347 359 -
pkpgcounter/trunk/pkpgpdls/version.py
r263 r267 20 20 # 21 21 22 __version__ = "1.6 8"22 __version__ = "1.69" 23 23 24 24 __doc__ = """pkpgcounter : a generic Page Description Languages parser."""