shared-mime-database : entry change

Stéphane LOEUILLET stephane.loeuillet at tiscali.fr
Mon Dec 8 23:41:48 EET 2003


hi,

actually, the entry for djvu files is :

  <mime-type type="image/x-djvu">
    <magic priority="50">
      <match type="string" value="FORM" offset="4">
        <match type="string" value="DJVU" offset="12"/>
        <match type="string" value="DJVM" offset="12"/>
        <match type="string" value="BM44" offset="12"/>
        <match type="string" value="PM44" offset="12"/>
      </match>
    </magic>
  </mime-type>

it contains 1 error and 3 missing elements :

current mime-type is not the official one
2 glob for file extensions : .djv & .djvu
1 alias for the bad mime-type

so, it should be something like this :

  <mime-type type="image/vnd.djvu">
    <magic priority="50">
      <match type="string" value="FORM" offset="4">
        <match type="string" value="DJVU" offset="12"/>
        <match type="string" value="DJVM" offset="12"/>
        <match type="string" value="BM44" offset="12"/>
        <match type="string" value="PM44" offset="12"/>
      </match>
    </magic>
    <glob pattern="*.djvu"/>
    <glob pattern="*.djv"/>
    <alias type="image/x-djvu"/>
    <comment>DjVu image</comment>
    <comment xml:lang="fr">Image DjVu</comment>
  </mime-type>

for the good mime-type, i directly asked one of the people involded in
the djvu format codec/code. so, it is a sure thing.

to quote him :

> Furthermore, the official mime type for DjVu is image/vnd.djvu.
> But some viewers are unaware of this and require image/x-djvu.
> Whichever you use is more a policy decision than a technical choice.

any comment is welcomed.

++

-- 
Stéphane LOEUILLET <stephane.loeuillet at tiscali.fr>

PS : i sent already this post while i was not subscribed yesterday but
as i had no news from any moderator and as it did not show neither in
the mail archive at redhat site, nor on gmane newsgroups, i prefered
're'posting it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
Url : http://lists.freedesktop.org/archives/xdg/attachments/20031208/e7b65e3c/attachment.pgp 


More information about the xdg mailing list