- Timestamp:
- 06/24/04 00:07:50 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/NEWS
r1558 r1564 22 22 PyKota NEWS : 23 23 24 - 1.19alpha26 : 25 26 - Fixed PCL5 parser according to the sources of rastertohp. 27 24 28 - 1.19alpha25 : 25 29 -
pykota/trunk/pykota/pdlanalyzer.py
r1553 r1564 22 22 # 23 23 # $Log$ 24 # Revision 1.11 2004/06/23 22:07:50 jalet 25 # Fixed PCL5 parser according to the sources of rastertohp 26 # 24 27 # Revision 1.10 2004/06/18 22:24:03 jalet 25 28 # Removed old comments … … 162 165 ")s" : "W", 163 166 "&p" : "X", 164 "&l" : "X" } 167 "&l" : "XH", 168 "&a" : "G", 169 } 165 170 self.data = [] 166 171 self.pos = self.len = 0 … … 190 195 # <ESC>&n###W -> Starts an alphanumeric string ID block 191 196 # <ESC>&p###X -> Start of a non printable characters block 197 # <ESC>&a2G -> Back side when duplex mode as generated by rastertohp 198 # <ESC>&l0H -> Eject if NumPlanes > 1, as generated by rastertohp 192 199 # 193 200 tagstart = self.readone() … … 210 217 size = (size * 10) + int(char) 211 218 if char in tagend : 212 if tag == "&l":219 if (tag == "&l") and (char == "X") : 213 220 copies = size 221 elif (tag == "&l") and (char == "H") and (size == 0) : 222 pagecount += 1 # Eject if NumPlanes > 1 223 elif (tag == "&a") and (size == 2) : 224 pagecount += 1 # Back side in duplex mode 214 225 else : 215 226 # doing a read will prevent the seek -
pykota/trunk/pykota/version.py
r1556 r1564 22 22 # 23 23 24 __version__ = "1.19alpha2 5_unofficial"24 __version__ = "1.19alpha26_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""