kicad/resources/linux/mime/kicad-gerbers.xml.in

35 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-gerber">
<sub-class-of type="text/plain"/>
<comment>Gerber file</comment>
<glob pattern="*.gbr" weight="50"/>
<!--Try to match with some common opening commands-->
<magic priority="50">
<!--A comment line-->
<!--The possible 3 characters allow for a null block with *CRLF before the data-->
<match type="string" offset="0:3" value="G04"/>
<!--Some setup macros-->
<match type="string" offset="0:3" value="%FSLA"/>
<match type="string" offset="0:3" value="%MO"/>
<match type="string" offset="0:3" value="%TF."/>
<!--Seems to be common with files exported from some programs-->
<match type="string" offset="0:3" value="G75*"/>
</magic>
</mime-type>
<mime-type type="application/x-gerber-job">
<sub-class-of type="text/plain"/>
<comment>Gerber job file</comment>
<glob pattern="*.gbrjob" weight="50"/>
</mime-type>
<mime-type type="application/x-excellon">
<sub-class-of type="text/plain"/>
<comment>Excellon drill file</comment>
<glob pattern="*.drl" weight="50"/>
<magic priority="50">
<!--This is always the header for an excellon drill file-->
<match type="string" offset="0" value="M48"/>
</magic>
</mime-type>
</mime-info>