On 7/26/05, Bastien Nocera <[EMAIL PROTECTED]> wrote: > On Tue, 2005-07-26 at 17:02 -0400, Luis Villa wrote: > > On 7/26/05, Bastien Nocera <[EMAIL PROTECTED]> wrote: > > > Hey Luis, > > > > > > On Tue, 2005-07-26 at 16:48 -0400, Luis Villa wrote: > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > > > > <mime-info > > > > xmlns="http://www.freedesktop.org/standards/shared-mime-info"> > > > > <mime-type type="application/docbook+xml"> > > > > <sub-class-of type="text/xml"/> > > > > <comment xml:lang="en">Docbook XML Document</comment> > > > > <magic priority="60"> > > > > <match type="string" value='docbookx.dtd' offset="0:200"/> > > > > > > Do you really need to go 200 bytes into the file? The further you need > > > to go into the file, the more expensive it is. I would also add that my > > > text file mentioning "docbookx.dtd" would get detected as a docbook > > > file, not good. > > > > Yeah, knew this one was imperfect; I can clean it up if people > > actually want to go this way to sniff things. > > > > > > </magic> > > > > <glob pattern="*.xml"/> > > > > > > That's not good. text/xml files are already detected with *.xml. > > > > What would be preferable then?
So you answered the second question but not the first :) > > (I looked for what ogg tarkin does, but > > no success- seems it isn't in the primary DB either?) > > Ogg Tarkin isn't a filetype. Tarkin is the video codec, Ogg is the > container. Only the container has a mime-type (this is slightly > different for some other video types because they have different file > extensions for different purposes). > > > > > </mime-type> > > > > </mime-info> > > > > > > You got the gist of it, but it's not commitable. > > > > Well, I didn't figure that ;) like I said, Works For Me, but if people > > actually want it committed I can play a bit more. > > Sure, what's the point otherwise? :) So that I can finally be one of those shitty downstreamers who doesn't upstream fixes, just like I complain about all the time ;) Luis _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
