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

Re: MIME and Applied Biosystems chromatograms.



Hi Daniel, many thanks for your precious answers.

Le Mon, Jan 21, 2008 at 02:19:33AM +0100, Daniel Leidert a écrit :
> Ok, first thing, I guess you are referring to this format:
> http://www.appliedbiosystems.com/support/software_community/ABIF_File_Format.pdf

Exactly (I did not manage to find the spec). If I want to document this
within the file, I have to use a comment, isn't it? The
<cm:specification> tag is specific to chemical-mime-data?


> Hm. Following the format description, it seems that you misinterpret the
> format. The ".e" stands for "two bytes" (seems, there you find the
> version number, see the above format description). So you probably want to
> use a mask:
> 
> <!-- offset 4 and 5 stand for the version number -->
> <match type="string" offset="0"
>        value="ABIF??tdir"
>        mask="ffffffff0000ffffffff" />

Exactly. Actually, I cut-and-pasted the original value from the following URL:
http://filext.com/file-extension/AB1

Some sample .ab1 files are available at the following URL:
http://www.appliedbiosystems.com/support/software_community/data_sets.cfm

After using your <match> declaration (corrected by adding 0x at the
beginning of the mask), the autodetection with gnomevfs works well.

 - .ab1 files are detected as x-dna by gnomevfs-info with and without
   the -s option.
 - If I delete the suffix, only gnomevfs-info -s detects the type (I
   think that it is the expected behaviour).

For the applicaiton/ab1 type, it was a typo. Some sites ask their users
to configure their browsers to use application/abi1, so I will declare
this as an alias of application/x-dna, which is not such a good name in
the end. When things work well, maybe it would be better to ask Applied
Biosystems what they think about this.

Strangely, even after correcting the typo my GNOME desktop still detects
the files as application/ab1. Therefore, I can not test if the .desktop
file works now.

I have commited corrected .mime, .destkop, and .sharedmimeinfo in the
SVN.

Have a nice day,

-- 
Charles Plessy
http://charles.plessy.org
Wakō, Saitama, Japan


Reply to: