Hello,

A question. The (probably outdated?) shared-mime-info database
specification states, that the offset attribute can contain a single
number or a range in the form 'start:end'. But KDE MIME magic e.g. also
allows an expression '>start'. Wouldn't it be nice to have such an
expression too? I e.g. have text files, which are hard to describe,
because they can contain large comments at the beginning, but that's not
the case for every file (often used to describe the content of the file,
e.g. chemical/x-cif). So it would be nice to just say

<match type="string" value="$search_string" offset=">0"/>

instead of

<match type="string" value="$search_string" offset="0:large_number"/>

to work around comment headers. Your opinion?

Regards, Daniel



_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to