Changeset 3122

Show
Ignore:
Timestamp:
12/10/06 19:23:44 (17 years ago)
Author:
jerome
Message:

Added support for pkpgcounter v2.13's GC pseudo-colorspace.

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/conf/pykota.conf.sample

    r3044 r3122  
    608608#       cmy     ===> Cyan, Magenta, Yellow 
    609609#       rgb     ===> Red, Green, Blue 
     610#       gc      ===> Grayscale, Colored : this is a pseudo colorspace useful 
     611#                    if all you need is differentiating grayscale from 
     612#                    colored pages. 
    610613# 
    611614# Supported resolutions for ink accounting are any number of dots 
     
    643646# accounter : ink(bw) 
    644647# accounter : ink(cmy, 72) 
     648# accounter : ink(gc, 72) 
    645649#          
    646650# This directive can be set either globally or per printer or both. 
     
    689693#       cmy     ===> Cyan, Magenta, Yellow 
    690694#       rgb     ===> Red, Green, Blue 
     695#       gc      ===> Grayscale, Colored : this is a pseudo colorspace useful 
     696#                    if all you need is differentiating grayscale from 
     697#                    colored pages. 
    691698# 
    692699# Supported resolutions for ink accounting are any number of dots 
     
    12441251#               coefficient_black 
    12451252# 
     1253#       gc : 
     1254#               coefficient_grayscale 
     1255#               coefficient_colored 
     1256# 
    12461257# Any coefficient which is not set is considered to be equal to 1.0 
    12471258# 
  • pykota/trunk/NEWS

    r3117 r3122  
    2222PyKota NEWS : 
    2323        
     24    - 1.26alpha1 (2006-12-10) : 
     25     
     26        - Added support for pkpgcounter v2.13's GC pseudo colorspace if you 
     27          only want to differentiate grayscale pages from colored pages. 
     28           
     29        - Fixed a compatibility problem dumpykota's "--format cups" command line 
     30          option. 
     31           
    2432    - 1.25 (2006-12-03) : 
    2533        
  • pykota/trunk/pykota/accounters/ink.py

    r3046 r3122  
    3333                        "RGB" : { "R" : "red", "G" : "green", "B" : "blue" } , 
    3434                        "BW" : { "B" : "black", "W" : "white" } , 
     35                        "GC" : { "G" : "grayscale", "C" : "colored" } , 
    3536                     } 
    3637    def computeJobSize(self) :     
     
    5051        (colorspace, resolution) = parameters 
    5152        colorspace = colorspace.lower() 
    52         if colorspace not in ("cmyk", "bw", "cmy", "rgb") : 
     53        if colorspace not in ("cmyk", "bw", "cmy", "rgb", "gc") : 
    5354            raise PyKotaAccounterError, "Invalid parameters for ink accounter : [%s]" % self.arguments 
    5455