chiark / gitweb /
dice: Add cross-referencing notes and comments
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 19:58:00 +0000 (20:58 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 21:43:43 +0000 (22:43 +0100)
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 <ijackson@chiark.greenend.org.uk>
base/misc.rs
dice/die.svg

index df31096701c68d9fe5964dc02602939baa509974..e877df00010acb46cca07bea7cdcd501b1f31dee 100644 (file)
@@ -34,6 +34,10 @@ pub fn raw_angle_transform(compass: u8) -> String {
 
 #[throws(fmt::Error)]
 pub fn die_cooldown_path<W: fmt::Write>(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| {
index ab15808ab002f1702253ae1ec5c3d1bd42c6f450..6fb19b9a855658468201b73cef6d749b4ebd5994 100644 (file)
    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/">
   <sodipodi:namedview
      id="namedview7"
      pagecolor="#ffffff"
        spacingx="0.052916667"
        spacingy="0.052916667" />
   </sodipodi:namedview>
+  <metadata
+     id="metadata830">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:description>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.</dc:description>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
   <defs
      id="defs2" />
   <g