Re: Magic for OpenOffice (file)

From: Gregory Seidman (gss+debian_at_cs.brown.edu)
Date: 05/25/04

  • Next message: Jens Simmoleit: "re: backport(s) site"
    Date: Tue, 25 May 2004 09:47:16 -0400
    To: debian-user@lists.debian.org
    
    

    On Tue, May 25, 2004 at 08:33:19AM +0200, Magnus Therning wrote:
    } A quick search in Google didn't reveal any solution (only found one
    } reference, in Japanese).
    }
    } $ file -i file.sxw
    } file.sxw: application/x-zip
    }
    } It would be really nice if 'file' could give proper the correct type for
    } OpenOffice documents. Anyone who has an entry for /etc/magic that make
    } sit happen?

    This is a deeper problem than just OOorg. There has been dissatisfaction
    with file's reporting for compressed/gzipped/bzipped/zipped files for a
    good long time, and the idea of having file actually decompress some of
    the data to get a more accurate result has come up in the past.

    There are, in fact, reasonably good ways to wrap file with a shell
    script to get the desired results, but I don't know of an implementation
    of the file program that supports examining the contents of a compressed
    file. There is no reason it couldn't be done, of course; the file
    program in /usr/bin on Debian is GNU's GPL'd file implementation. I
    could imagine, however, that depending on lots of compression libraries
    might be an obstacle to widespread adoption. One would also have to be
    confident of the libraries' licenses. (I *think* all the compression
    formats I've mentioned have GPL or LGPL libraries.)

    Ultimately, I'd love to see it done, and I encourage you to get
    programming.

    } /M
    --Greg

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Jens Simmoleit: "re: backport(s) site"

    Relevant Pages

    • [ANN] BTPC Extension - PyramidWorkshop
      ... that exist in supportive libraries: ... compression algorithm ... with adaptive linear predictors, ... In the moment there are about 35 different arithmetic coders ...
      (comp.compression)
    • Re: Javascript Library
      ... elements, showing/hiding objects, animating objects, ajax, etc? ... Packed, jQuery is 26k. ... Packer has everything to do with compression. ... if you have n libraries to research and somebody pokes a hundred holes ...
      (comp.lang.javascript)
    • Re: Anyway to COMPRESS RESOURCES???
      ... Most zip libraries I know of use something along this style to allow arbitrary source and ... desitnation for compression. ... We use Dynazip and it does allow memory to memory compression through a ...
      (microsoft.public.vc.mfc)
    • Re: Squish compression-based classifier
      ... Which open source compression libraries, if any, would allow me to ... trees/tables for compression and then use those trees/tables to ... compression implementation as a reference point and writing my own ...
      (comp.compression)
    • Re: Disk Utility/encrypted images - choices
      ... But the main reason people use disk images is to protect their ... There may be some reasons not to bother with compression. ... likely people are going to use their backup device more frequently. ...
      (comp.sys.mac.system)