chiark / gitweb /
cargo: update x11rb
[otter.git] / library / wikimedia.toml
1 # Copyright 2020-2021 Ian Jackson and contributors to Otter
2 # SPDX-License-Identifier: AGPL-3.0-or-later OR CC-BY-SA-3.0
3 # There is NO WARRANTY.
4
5 format=2
6
7 [scraper]
8 method = "wikimedia"
9 site-title = "Wikimedia"
10 spdx = "CC-BY-SA-4.0 / AGPL-3.0-OR-LATER"
11
12 licences = [ "Cc-by-sa-3.0", "Cc-by-sa-3.0-migrated", "cc-by-sa-4.0", "GFDL|migration=relicense", "cc-zero", "LGPL", "PD-author|*" ]
13 filename_suffix = ".svg"
14 url_prefix = "https://commons.wikimedia.org/wiki/File:"
15 url_suffix = "?action=raw"
16 data_url_prefix = "https://upload.wikimedia.org/wikipedia/commons/"
17 data_url_hashprefix = true
18
19 [group.chess]
20 outline = "Circle"
21 scale = 0.20
22 item_prefix = "chess-"
23 stem_prefix = "Chess_"
24 occulted.method = "ByColour"
25 occulted.colour = "grey"
26
27 files = """
28 _c-P    plt45   a ${colour} pawn
29 _c-B    blt45   a ${colour} bishop
30 _c-R    rlt45   a ${colour} rook
31 _c-K    klt45   the ${colour} king
32 _c-Q    qlt45   the ${colour} queen
33
34 _c-elephant     elt45   a ${colour} elephant piece
35 _c-mann         Mlt45   a ${colour} Mann piece
36 """
37
38 [group.chess.colours.white]
39 abbrev = "w"
40
41 [group.chess.colours.black]
42 abbrev = "b"
43 map = { "#000000" = "#cccccc", "#ffffff" = "#000000" }
44
45 [group.chess.colours."light blue"]
46 abbrev = "blue"
47 map = {"#ffffff" = "#04cbe5"}
48
49 [group.chess.colours."red"]
50 abbrev = "red"
51 map = {"#ffffff" = "#e64104", "#000000" = "#bbbbbb" }
52
53 [group.chess.colours."yellow"]
54 abbrev = "yellow"
55 map = {"#ffffff" = "#ffc505" }
56
57 [group.chess.colours."purple"]
58 abbrev = "purple"
59 map = {"#ffffff" = "#c105ff", "#000000" = "#bbbbbb" }
60
61 [group.chess.colours."grey"]
62 abbrev = "grey"
63 map = { "#ffffff" = "#888888" }
64
65 [group.chess-26]
66 inherit = "chess"
67 scale = 0.3461
68 files = """
69 _c-siege-engine tlt26   a ${colour} siege engine piece
70 """
71
72 [group.chess-flip]
73 inherit = "chess"
74 flip = true
75 files = """
76 _c-N    alt45   a ${colour} knight
77
78 _c-giraffe      Glt45   a ${colour} giraffe piece
79 _c-knight-king  Cet45   a ${colour} knight king piece
80 # ^ wikimedia calls these Centaurs
81 _c-ship         ship_slt45              a ${colour} ship piece
82 _c-zebra        Zlt45   a ${colour} zebra piece
83 """
84
85 [group.chess-flip-26]
86 inherit = "chess-26"
87 flip = true
88 files = """
89 _c-flag         Blt26   a ${colour} flag piece
90 """
91
92 [group.chess-flip-26-ship-adj]
93 inherit = "chess-flip-26"
94 flip = true
95 files = """
96 _c-cannon       Clt26   a ${colour} cannon piece
97 """
98
99 [group.chess-anomalous-filenames]
100 inherit = "chess"
101 stem_prefix = ""
102 files = """
103 _c-commoner     Commoner_Transparent            a ${colour} commoner piece
104 """
105
106 [group.chess-onecolour]
107 inherit = "chess"
108 colours = { }
109 files = """
110 # harlequin             put45           a black/white pawn
111 # ^ needs a grey LH edge really
112 """
113
114 [group.misc]
115 outline = "Rect"
116 centre = [224, 163]
117 scale = 0.025
118 files = """
119 mgmt-library-load-marker   Box_with_polygons    a library load area marker
120 """
121
122 [group.card-backs]
123 outline = "Rect"
124 size = [18.25, 24.25] # size to match cards-oxymoron:
125
126 files = """
127 card-stripe-back-red    Card_back_03a   a card with a red-striped back
128 card-stripe-back-blue   Card_back_03b   a card with a blue-striped back
129 card-plain-back-maroon  Card_back_15    a card with a maroon back
130 card-chequeredge-back   Card_back_04    a card (with a chequered edged back)
131 """
132
133 [group.cards-misc]
134 inherit = "card-backs"
135 back.type = "Alias"
136 back.target = "card-back"
137 occulted.method = "ByBack"
138 occulted.ilk = "card-back"
139
140 files = """
141 card-rainbow            Card_back_13    a rainbow card
142 """
143
144 [group.cards-bellot]
145 outline = "Rect"
146 size = [18.25, 24.25] # size to match cards-oxymoron:
147
148 back.type = "Alias"
149 back.target = "card-back"
150 occulted.method = "ByBack"
151 occulted.ilk = "card-back"
152
153 files = """
154 card-bellot-joker-black         Joker_black_02  a joker
155 # card-bellot-joker-red         Joker_red_02    a joker
156 # ^ on wikimedia this file is unaccountably 60kb instead of 30kb
157 #   and furthermore a different size.  wat?
158 """