Show
Ignore:
Timestamp:
12/09/07 15:26:15 (16 years ago)
Author:
jerome
Message:

Each parser now has a 'format' attribute containing its short name.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/mscrap.py

    r529 r555  
    3333    totiffcommands = [ 'xvfb-run -a abiword --import-extension=.doc --print="| gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r\"%(dpi)i\" -sOutputFile=\"%(outfname)s\" -" "%(infname)s"' ] 
    3434    required = [ "xvfb-run", "xauth", "abiword", "gs" ] 
     35    format = "Microsoft shitty" 
    3536    def isValid(self) :     
    3637        """Returns True if data is MS crap, else False. 
     
    4647           or self.firstblock.startswith("\x31\xbe\x00\x00") \ 
    4748           or self.firstblock[2112:].startswith("MSWordDoc") : 
    48             self.logdebug("DEBUG: Input file seems to be in a Microsoft shitty file format.") 
    4949            # Here we do the missing test because all commands will be needed even in page counting mode 
    5050            if self.isMissing(self.required) :