[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

shared-mime-database : entry change



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 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.

Attachment: signature.asc
Description: Ceci est une partie de message=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]