From 988337f93d8a6cc6c9f2920db2de04bef9e40a57 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 15 Apr 2022 20:58:00 +0100 Subject: [PATCH] dice: Add cross-referencing notes and comments This may help us find things in future. Used inkscape's "document properties", "metadata" pane, and then manually moved the new metadata tag nearer to the top of the svg file. Signed-off-by: Ian Jackson --- base/misc.rs | 4 ++++ dice/die.svg | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/base/misc.rs b/base/misc.rs index df310967..e877df00 100644 --- a/base/misc.rs +++ b/base/misc.rs @@ -34,6 +34,10 @@ pub fn raw_angle_transform(compass: u8) -> String { #[throws(fmt::Error)] pub fn die_cooldown_path(mut w: W, r: f64, remprop: f64) { + // This is somewhat entangled with die.svg and + // dice/cooldown-template-extractor. + // + // Editing these might need to be done together. write!(w, "M 0,-{r} A")?; let mut arcto = move |proportion: f64| { diff --git a/dice/die.svg b/dice/die.svg index ab15808a..6fb19b9a 100644 --- a/dice/die.svg +++ b/dice/die.svg @@ -12,7 +12,10 @@ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" - xmlns:svg="http://www.w3.org/2000/svg"> + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> + + + + This is somewhat entangled with src/dice.rs and quite entangled with dice/dice/cooldown-template-extractor. Editing these things might need to be done together. + + +