Changeset 256 for pkpgcounter

Show
Ignore:
Timestamp:
09/06/05 15:56:34 (19 years ago)
Author:
jerome
Message:

Improved PostScript? and PCL3/4/5 parsers.

Location:
pkpgcounter/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/NEWS

    r255 r256  
    2222pkpgcounter News : 
    2323    
     24  * 1.65 : 
     25     
     26    - Improved PostScript parser. 
     27     
     28    - Improved PCL3/4/5 parser. 
     29     
    2430  * 1.64 : 
    2531     
  • pkpgcounter/trunk/pkpgpdls/pcl345.py

    r255 r256  
    344344            if ejects : 
    345345                pagecount = ejects 
     346        elif (resets == 2) and (startgfx == endgfx) and (mediasourcecount == 1) : 
     347            pass 
     348        elif (resets == 1) and (startgfx == endgfx) and (mediasourcecount == 0) : 
     349            pass 
    346350        elif startgfx == endgfx :     
    347351            pagecount = startgfx 
  • pkpgcounter/trunk/pkpgpdls/postscript.py

    r252 r256  
    8484                pagecount += 1 
    8585                pages[pagecount] = { "copies" : 1 } 
     86            elif line.startswith(r"(%%[Page: ") : 
     87                pagecount += 1 
     88                pages[pagecount] = { "copies" : 1 } 
    8689            elif line.startswith(r"%%Requirements: numcopies(") :     
    8790                try : 
  • pkpgcounter/trunk/pkpgpdls/version.py

    r255 r256  
    2020# 
    2121 
    22 __version__ = "1.64" 
     22__version__ = "1.65" 
    2323 
    2424__doc__ = """pkpgcounter : a generic Page Description Languages parser."""