Bug 14009 - Magic information for image/vnd.djvu
Summary: Magic information for image/vnd.djvu
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL: http://djvu.cvs.sourceforge.net/djvu/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-10 08:21 UTC by Leon Bottou
Modified: 2008-02-21 09:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Leon Bottou 2008-01-10 08:21:05 UTC
The xml file for mimetype image/vnd.djvu could be improved
by adding the following magic information, aliases, and glob patterns.

<?xml version="1.0"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="image/vnd.djvu">
   <alias type="image/x.djvu"/>
   <alias type="image/x-djvu"/>
   <glob pattern="*.djvu"/>
   <glob pattern="*.djv"/>
   <magic priority="50">
     <match type="string" offset="0" value="AT&amp;TFORM">
       <match type="string" offset="12" value="DJVM"/>
       <match type="string" offset="12" value="DJVU"/>
     </match>
     <match type="string" offset="0" value="FORM">
       <match type="string" offset="8" value="DJVM"/>
       <match type="string" offset="8" value="DJVU"/>
     </match>
   </magic>

In fact the djvulibre project distributes its own xml file
which sometimes conflicts with the one bundled with shared-mime-info.
Since image/vnd.djvu is an official mime type, best
would be to correct it in shared-mime-info and
to remove it from djvulibre.

See also http://sourceforge.net/tracker/index.php?func=detail&aid=1856879&group_id=32953&atid=406583
http://djvu.cvs.sourceforge.net/djvu/djvulibre-3.5/desktopfiles/djvulibre-mime.xml

Thanks.

- L.
Comment 1 Bastien Nocera 2008-02-21 09:38:12 UTC
* freedesktop.org.xml.in: Update DJVU magic and aliases from
the upstream DjVulibre projects, spotted by Leon Bottou
<leon@bottou.org> (Closes: #14009)
* tests/2001_compression_overview.djvu:
* tests/list: Add test case for DjVu files


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.