File: quarry.xml

package info (click to toggle)
quarry 0.2.0.dfsg.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 4,716 kB
  • ctags: 4,039
  • sloc: ansic: 44,098; sh: 3,723; xml: 3,176; makefile: 497; sed: 5
file content (44 lines) | stat: -rw-r--r-- 1,514 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-go-sgf">
    <comment>Board game record</comment>
    <glob pattern="*.sgf"/>

    <!-- Usually SGF files start with one of these two properties at
	 offset 0. -->
    <magic priority="50">
      <match type="string" value="(;FF[" offset="0"/>
      <match type="string" value="(;GM[" offset="0"/>
    </magic>

    <!-- These properties are usually not used as the opening ones,
	 but are good candidates to be used this way. -->
    <magic priority="45">
      <match type="string" value="(;CA[" offset="0"/>
      <match type="string" value="(;AP[" offset="0"/>
    </magic>

    <!-- We also repeat matching on the first kilobyte of a file, but
	 give matches much lower priroty. -->
    <magic priority="25">
      <match type="string" value="(;FF[" offset="0:1019"/>
      <match type="string" value="(;GM[" offset="0:1019"/>
    </magic>
    <magic priority="20">
      <match type="string" value="(;CA[" offset="0:1019"/>
      <match type="string" value="(;AP[" offset="0:1019"/>
    </magic>

    <!-- Last resort matching with very low priority. -->
    <magic priority="5">
      <match type="string" value="(;\n" offset="0"/>
      <match type="string" value="(;\r\n" offset="0"/>
    </magic>
    <magic priority="0">
      <match type="string" value="(;" offset="0"/>
    </magic>

    <alias type="text/sgf"/>
    <alias type="text/x-sgf"/>
  </mime-type>
</mime-info>