mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2024-12-05 00:35:29 +00:00
64335d94d7
Some layout programs add a blank block at the beginning but include the terminating '*' on a line before starting the actual data. This is ignored by GerbView so we all this type of behavior in the mimetype file detection as well Suggested by Mark Jeronimus Fixes https://gitlab.com/kicad/code/kicad/issues/12097
35 lines
1.5 KiB
XML
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>
|