From f6fcace920a3cc9697637f5ae2f2b4853f473b62 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 17 Jan 2020 10:37:04 -0500 Subject: [PATCH 1/3] *.svg: specify Open Sans instead of generic "sans-serif" font. The text in most of our diagrams was left to use the generic "sans-serif" font face, which depends on both the local machine and the program used to edit/convert the SVG image. This isn't the best situation, because we want the output PNGs to be predictable. The Tyrian layout used for devmanual.gentoo.org makes heavy use of the "Open Sans" font, so this commit updates each SVG in the devmanual to use that face for all text elements that were previously "sans-serif". Bug: https://bugs.gentoo.org/700904 Signed-off-by: Michael Orlitzky --- ebuild-writing/functions/diagram.svg | 479 ++++++------ general-concepts/autotools/diagram.svg | 515 ++++++++++--- .../emerge-and-ebuild/diagram.svg | 294 +++++-- general-concepts/git-to-rsync/diagram.svg | 644 ++++++++++++---- general-concepts/mirrors/diagram.svg | 717 +++++++++--------- 5 files changed, 1728 insertions(+), 921 deletions(-) diff --git a/ebuild-writing/functions/diagram.svg b/ebuild-writing/functions/diagram.svg index 43bf26e..e428394 100644 --- a/ebuild-writing/functions/diagram.svg +++ b/ebuild-writing/functions/diagram.svg @@ -5,17 +5,11 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - inkscape:export-ydpi="96" - inkscape:export-xdpi="96" - inkscape:version="1.0beta1 (fe3e306978, 2019-09-17)" - sodipodi:docname="diagram.svg" - id="svg2503" - viewBox="-130 100 1100 80" - height="80" + version="1.0" width="1100" - version="1.0"> + height="80" + viewBox="-130 100 1100 80" + id="svg2503"> @@ -28,389 +22,366 @@ - Ebuild Function Order + x="-129.33987" + y="96.698219" + id="background" + style="fill:#eeeeee;stroke-width:0.293003" /> + x="-7.6246438" + y="115.12637" + id="rect2508" + style="opacity:1;fill:#ccccff;stroke:#000000;stroke-width:2;stop-opacity:1" /> pkg_setup + id="text2510" + style="text-anchor:middle;opacity:1;stop-opacity:1;-inkscape-font-specification:'Open Sans';font-family:'Open Sans';font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;">pkg_setup + x="109.90766" + y="115.12637" + id="rect2518" + style="opacity:1;fill:#ffffff;stroke:#000000;stroke-width:2;stop-opacity:1" /> src_unpack + id="text2520" + style="text-anchor:middle;opacity:1;stop-opacity:1">src_unpack + x="428.4689" + y="115.12637" + id="rect2528" + style="opacity:1;fill:#ffffff;stroke:#000000;stroke-width:2;stop-opacity:1" /> src_compile + id="text2530" + style="text-anchor:middle;opacity:1;stop-opacity:1;-inkscape-font-specification:'Open Sans';font-family:'Open Sans';font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;">src_compile + style="opacity:1;fill:none;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stop-opacity:1" /> + x="538.37067" + y="115.12637" + id="rect2540" + style="opacity:1;fill:#ccffcc;stroke:#000000;stroke-width:2;stop-opacity:1" /> src_test + id="text2542" + style="text-anchor:middle;opacity:1;stop-opacity:1;-inkscape-font-specification:'Open Sans';font-family:'Open Sans';font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;">src_test - + x1="619.22565" /> + + y2="135.12637" + x2="639.90759" + y1="130.12637" + x1="647.90759" /> + x="649.09814" + y="115.12637" + id="rect2550" + style="opacity:1;fill:#ffffff;stroke:#000000;stroke-width:2;stop-opacity:1" /> src_install + id="text2552" + style="text-anchor:middle;opacity:1;stop-opacity:1;-inkscape-font-specification:'Open Sans';font-family:'Open Sans';font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;">src_install - + x1="729.9978" /> + + y2="135.12637" + x2="759.09814" + y1="130.12637" + x1="767.09814" /> + x="767.90759" + y="115.12637" + id="rect2560" + style="opacity:1;fill:#ccccff;stroke:#000000;stroke-width:2;stop-opacity:1" /> pkg_preinst + id="text2562" + style="text-anchor:middle;opacity:1;stop-opacity:1;-inkscape-font-specification:'Open Sans';font-family:'Open Sans';font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;">pkg_preinst - + x1="848.47461" /> + + y2="135.12637" + x2="865.90759" + y1="130.12637" + x1="873.90759" /> + x="873.90759" + y="115.12637" + id="rect2570" + style="opacity:1;fill:#ccccff;stroke:#000000;stroke-width:2;stop-opacity:1" /> pkg_postinst + id="text2572" + style="text-anchor:middle;opacity:1;stop-opacity:1;-inkscape-font-specification:'Open Sans';font-family:'Open Sans';font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;">pkg_postinst + style="opacity:1;fill:none;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stop-opacity:1" /> + x="322.2374" + y="115.12637" + id="rect2583" + style="opacity:1;fill:#ffffff;stroke:#000000;stroke-width:2;stop-opacity:1" /> src_configure + id="text2585" + style="text-anchor:middle;opacity:1;stop-opacity:1;-inkscape-font-specification:'Open Sans';font-family:'Open Sans';font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;">src_configure + x="215.93536" + y="115.12637" + id="rect2587" + style="opacity:1;fill:#ffffff;stroke:#000000;stroke-width:2;stop-opacity:1" /> src_prepare + id="text2589" + style="text-anchor:middle;opacity:1;stop-opacity:1">src_prepare + y="115.0796" + x="-113.90761" + height="30" + width="80" /> pkg_pretend + y="133.18214" + x="-73.904678">pkg_pretend - - + x1="537.90765" /> - - + x1="537.90765" /> + x2="537.90759" + y2="130.12637" + id="line890" + style="opacity:1;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stop-opacity:1" /> - + id="line894" + style="opacity:1;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stop-opacity:1" /> + id="g904"> - + + x2="420.4689" + y1="130.12637" + x1="428.4689" /> + id="g899"> + x1="322.2374" /> + x1="322.2374" /> + x1="296.80441" /> + id="g894"> + id="g884"> + x2="-15.624653" + y1="130.12637" + x1="-7.6246533" /> + x2="-15.624653" + y1="130.12637" + x1="-7.6246533" /> + + + + + + x2="109.90767" + y2="130.12637" + id="line920" + style="opacity:1;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stop-opacity:1" /> diff --git a/general-concepts/autotools/diagram.svg b/general-concepts/autotools/diagram.svg index 7e205e1..37e5a93 100644 --- a/general-concepts/autotools/diagram.svg +++ b/general-concepts/autotools/diagram.svg @@ -1,102 +1,415 @@ - - - - Autotools Build Process - - - - Usually handled - by upstream - - - Shipped with - the package - - - Makefile.am - - - - - - - automake - - - - - - - Makefile.in - - - - - - - configure - - - - - - - autoconf - - - - - - - - - configure.in / - configure.ac - - - - - - - - - - - Makefile - - - - - - - make - - - - - - - program - + + + + + + image/svg+xml + + + + + + + Autotools Build Process + + + Usually handled + by upstream + + Shipped with + the package + + Makefile.am + + + + + automake + + + + + Makefile.in + + + + + configure + + + + + autoconf + + + + + configure.in / + configure.ac + + + + + + + + Makefile + + + + + make + + + + + program - - - diff --git a/general-concepts/emerge-and-ebuild/diagram.svg b/general-concepts/emerge-and-ebuild/diagram.svg index 2e28cb2..42f77ed 100644 --- a/general-concepts/emerge-and-ebuild/diagram.svg +++ b/general-concepts/emerge-and-ebuild/diagram.svg @@ -1,55 +1,241 @@ - - - - Emerge and Ebuild - - - - # emerge foo - - - - - - - emerge - - - - - $PN, phases - - - - - Image in $D - - - ebuild.sh - - - foo-1.23.ebuild - - - - - - - - - - - Installed image - in $ROOT - + + + + + + image/svg+xml + + + + + + + Emerge and Ebuild + + + # emerge foo + + + + + emerge + + + + $PN, phases + + + + Image in $D + + ebuild.sh + + foo-1.23.ebuild + + + + + + + + Installed image + in $ROOT - - - - diff --git a/general-concepts/git-to-rsync/diagram.svg b/general-concepts/git-to-rsync/diagram.svg index 2ee9608..e695dbb 100644 --- a/general-concepts/git-to-rsync/diagram.svg +++ b/general-concepts/git-to-rsync/diagram.svg @@ -1,142 +1,504 @@ - - - - Git to RSYNC Propagation - - - - - Developers - - - - - - - - Developers - - - - - Developers - - - - - Git Remote - - - - - - - - - Staging - Box - - - - - - - - - rsync1 - - - - - - - - - Public rsync - - - - - - - - - Public rsync - - - - - - - - - Public rsync - - - - - - - - - Users - - - - - - - - - Users - - - - - - - - - Users - - - - - - - - Users - - - - - - - - - Users - + + + + + + image/svg+xml + + + + + + + Git to RSYNC Propagation + + + Developers + + + + + Developers + + + Developers + + + Git Remote + + + + + Staging + Box + + + + + rsync1 + + + + + Public rsync + + + + + Public rsync + + + + + Public rsync + + + + + Users + + + + + Users + + + + + Users + + + + + Users + + + + + Users - - diff --git a/general-concepts/mirrors/diagram.svg b/general-concepts/mirrors/diagram.svg index b807e5a..c98b830 100644 --- a/general-concepts/mirrors/diagram.svg +++ b/general-concepts/mirrors/diagram.svg @@ -1,521 +1,496 @@ - + height="250.00000px" + width="700.00000px" + y="0.0000000" + x="0.0000000" + version="1.0"> - + - image/svg+xml + image/svg+xml + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + - Git to RSYNC Propagation + width="710.21484" + height="260.03522" + x="-2.0556145" + y="0.24284256" /> + y="110.00000" + x="10.000000" + height="30.000000" + width="80.000000" /> Developers + x="50">Developers - - + + + y1="125.00000" + x2="122.00000" + y2="130.00000" + stroke-width="2" + stroke="black" + id="line1559" /> + y="60.000000" + x="10.000000" + height="30.000000" + width="80.000000" /> Developers + x="50">Developers + d="M 90.000000,75.000000 C 103.33333,75.000000 110.00000,83.333333 110.00000,100.00000 C 110.00000,120.00000 116.66667,128.33333 130.00000,125.00000" /> + y="160.00000" + x="10.000000" + height="30.000000" + width="80.000000" /> Developers + x="50">Developers + d="M 90.000000,175.00000 C 103.33333,175.00000 110.00000,166.66667 110.00000,150.00000 C 110.00000,130.00000 116.66667,121.66667 130.00000,125.00000" /> + y="110.00000" + x="130.00000" + height="30.000000" + width="80.000000" /> dev.gentoo + x="170">dev.gentoo - - + + + y1="125.00000" + x2="242.00000" + y2="130.00000" + stroke-width="2" + stroke="black" + id="line1581" /> + y="110.00000" + x="250.00000" + height="30.000000" + width="80.000000" /> Staging + x="290">Staging Box + x="290">Box - - + + + y1="125.00000" + x2="362.00000" + y2="130.00000" + stroke-width="2" + stroke="black" + id="line1593" /> + y="110.00000" + x="370.00000" + height="30.000000" + width="80.000000" /> OSU Mirrors + x="410">OSU Mirrors - + + y1="75.000000" + x2="482.00000" + y2="80.000000" + stroke-width="2" + stroke="black" + id="line1601" /> + d="M 450.00000,125.00000 C 463.33333,125.00000 470.00000,116.66667 470.00000,100.00000 C 470.00000,80.000000 476.66667,71.666667 490.00000,75.000000" /> + y="60.000000" + x="490.00000" + height="30.000000" + width="80.000000" /> Public mirror + x="530">Public mirror - - + + + y1="125.00000" + x2="482.00000" + y2="130.00000" + stroke-width="2" + stroke="black" + id="line1613" /> + y="110.00000" + x="490.00000" + height="30.000000" + width="80.000000" /> Public mirror + x="530">Public mirror - + + y1="175.00000" + x2="482.00000" + y2="180.00000" + stroke-width="2" + stroke="black" + id="line1621" /> + d="M 450.00000,125.00000 C 463.33333,125.00000 470.00000,133.33333 470.00000,150.00000 C 470.00000,170.00000 476.66667,178.33333 490.00000,175.00000" /> + y="160.00000" + x="490.00000" + height="30.000000" + width="80.000000" /> Public mirror + x="530">Public mirror - + + y1="25.000000" + x2="602.00000" + y2="30.000000" + stroke-width="2" + stroke="black" + id="line1631" /> + d="M 570.00000,75.000000 C 583.33333,75.000000 590.00000,66.666667 590.00000,50.000000 C 590.00000,30.000000 596.66667,21.666667 610.00000,25.000000" /> + y="10.000000" + x="610.00000" + height="30.000000" + width="80.000000" /> Users + x="650">Users - - + + + y1="75.000000" + x2="602.00000" + y2="80.000000" + stroke-width="2" + stroke="black" + id="line1643" /> + y="60.000000" + x="610.00000" + height="30.000000" + width="80.000000" /> Users + x="650">Users - - + + + y1="125.00000" + x2="602.00000" + y2="130.00000" + stroke-width="2" + stroke="black" + id="line1653" /> + y="110.00000" + x="610.00000" + height="30.000000" + width="80.000000" /> Users + x="650">Users - - + + + y1="175.00000" + x2="602.00000" + y2="180.00000" + stroke-width="2" + stroke="black" + id="line1663" /> + y="160.00000" + x="610.00000" + height="30.000000" + width="80.000000" /> Users + x="650">Users - + + y1="225.00000" + x2="602.00000" + y2="230.00000" + stroke-width="2" + stroke="black" + id="line1671" /> + d="M 570.00000,175.00000 C 583.33333,175.00000 590.00000,183.33333 590.00000,200.00000 C 590.00000,220.00000 596.66667,228.33333 610.00000,225.00000" /> + y="210.00000" + x="610.00000" + height="30.000000" + width="80.000000" /> Users + x="650">Users -- 2.24.1