From: Ian Jackson Date: Tue, 10 May 2022 21:28:31 +0000 (+0100) Subject: mformat 2: Convert all builtin libraries X-Git-Tag: otter-1.1.0~233 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=943d6322000210442c7e745cdef2f1461144d2e4;p=otter.git mformat 2: Convert all builtin libraries This mostly involves deleting (enables us to delete) various size specifications which can be inferred from the SVGs. Signed-off-by: Ian Jackson --- diff --git a/library/cards-oxymoron.toml b/library/cards-oxymoron.toml index 0ee713ce..fafcd419 100644 --- a/library/cards-oxymoron.toml +++ b/library/cards-oxymoron.toml @@ -2,6 +2,8 @@ # SPDX-License-Identifier: AGPL-3.0-or-later OR CC-BY-SA-3.0 # There is NO WARRANTY. +format=2 + [scraper] method = "cards-oxymoron" spdx = "GPL-2.0-or-later" @@ -11,9 +13,7 @@ filename_suffix = ".gif" [group.clubs] item_prefix = "card-oxymoron-" outline = "Rect" -size = [73, 97] -centre = [36.5, 48.5] -scale = 0.25 +size = [18.25, 24.25] item_suffix = "-c" sort = "card-playing-c_s" diff --git a/library/edited.toml b/library/edited.toml index e2b5411c..90828a29 100644 --- a/library/edited.toml +++ b/library/edited.toml @@ -2,11 +2,12 @@ # SPDX-License-Identifier: AGPL-3.0-or-later OR CC-BY-SA-3.0 # There is NO WARRANTY. +format=2 + [scraper] method = "none" [group.chess-board] -size = [242, 246] scale = 0.38 outline = "Rect" files = """ @@ -14,8 +15,7 @@ chess-board - the chessboard """ [group.chess-misc] -size = [32] -scale = 0.38 +size = [12] item_prefix = "chess-" outline = "Circle" files = """ diff --git a/library/wikimedia.toml b/library/wikimedia.toml index 6ec1ea42..1f99ed21 100644 --- a/library/wikimedia.toml +++ b/library/wikimedia.toml @@ -2,6 +2,8 @@ # SPDX-License-Identifier: AGPL-3.0-or-later OR CC-BY-SA-3.0 # There is NO WARRANTY. +format=2 + [scraper] method = "wikimedia" site-title = "Wikimedia" @@ -17,7 +19,6 @@ data_url_hashprefix = true [group.chess] outline = "Circle" scale = 0.20 -size = [45] item_prefix = "chess-" stem_prefix = "Chess_" occulted.method = "ByColour" @@ -63,7 +64,6 @@ map = { "#ffffff" = "#888888" } [group.chess-26] inherit = "chess" -size = [26] scale = 0.3461 files = """ _c-siege-engine tlt26 a _colour siege engine piece @@ -113,7 +113,6 @@ files = """ [group.misc] outline = "Rect" -size = [448,326] centre = [224, 163] scale = 0.025 files = """ @@ -122,9 +121,7 @@ mgmt-library-load-marker Box_with_polygons a library load area marker [group.card-backs] outline = "Rect" -size = [73, 97] # size to match cards-oxymoron: -scale = 0.25 -orig_size = [208, 303] +size = [18.25, 24.25] # size to match cards-oxymoron: files = """ card-stripe-back-red Card_back_03a a card with a red-striped back @@ -146,9 +143,8 @@ card-rainbow Card_back_13 a rainbow card [group.cards-bellot] outline = "Rect" -size = [73, 97] # size to match cards-oxymoron: -scale = 0.25 -orig_size = [167, 243] +size = [18.25, 24.25] # size to match cards-oxymoron: + back.type = "Alias" back.target = "card-back" occulted.method = "ByBack"