|
From: <mi...@us...> - 2021-07-19 13:43:06
|
Revision: 8804
http://sourceforge.net/p/docutils/code/8804
Author: milde
Date: 2021-07-19 13:43:02 +0000 (Mon, 19 Jul 2021)
Log Message:
-----------
Update SVG image samples and tests.
Modified Paths:
--------------
trunk/docutils/docs/user/rst/images/biohazard-scaling.svg
trunk/docutils/docs/user/rst/images/biohazard.svg
trunk/docutils/docs/user/rst/images/title-scaling.svg
trunk/docutils/docs/user/rst/images/title.svg
trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
trunk/docutils/test/functional/input/data/svg_images.txt
Modified: trunk/docutils/docs/user/rst/images/biohazard-scaling.svg
===================================================================
--- trunk/docutils/docs/user/rst/images/biohazard-scaling.svg 2021-07-19 13:42:25 UTC (rev 8803)
+++ trunk/docutils/docs/user/rst/images/biohazard-scaling.svg 2021-07-19 13:43:02 UTC (rev 8804)
@@ -1,95 +1,5 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- 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"
- sodipodi:docname="biohazard-scaling.svg"
- inkscape:version="0.47 r22583"
- sodipodi:version="0.32"
- id="svg24159"
- viewBox="0 0 48 48"
- width="100%"
- height="100%"
- version="1.0">
- <title
- id="title2837">Biohazard</title>
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title>Biohazard</dc:title>
- <cc:license
- rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
- <dc:description>Standalone biohazard symbol, with no border, background or descriptive text.</dc:description>
- <dc:creator>
- <cc:Agent>
- <dc:title>Silsor</dc:title>
- </cc:Agent>
- </dc:creator>
- <dc:identifier></dc:identifier>
- <dc:source></dc:source>
- <dc:relation>http://de.wikipedia.org/wiki/Datei:Biohazard_symbol.svg</dc:relation>
- <dc:publisher>
- <cc:Agent>
- <dc:title>Wikipedia</dc:title>
- </cc:Agent>
- </dc:publisher>
- <dc:contributor>
- <cc:Agent>
- <dc:title>Bastique, Andux, MarianSigler, GM</dc:title>
- </cc:Agent>
- </dc:contributor>
- </cc:Work>
- <cc:License
- rdf:about="http://creativecommons.org/licenses/publicdomain/">
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#Reproduction" />
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#Distribution" />
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
- </cc:License>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs5">
- <inkscape:perspective
- sodipodi:type="inkscape:persp3d"
- inkscape:vp_x="0 : 178.13126 : 1"
- inkscape:vp_y="0 : 1000 : 0"
- inkscape:vp_z="376.4375 : 178.13126 : 1"
- inkscape:persp3d-origin="188.21875 : 118.75417 : 1"
- id="perspective2835" />
- </defs>
- <sodipodi:namedview
- inkscape:current-layer="svg24159"
- inkscape:window-y="33"
- inkscape:window-x="0"
- inkscape:cy="22.455418"
- inkscape:cx="22.152639"
- inkscape:zoom="8.9316693"
- inkscape:window-height="771"
- inkscape:window-width="993"
- inkscape:pageshadow="2"
- inkscape:pageopacity="0.0"
- borderopacity="1.0"
- bordercolor="#666666"
- pagecolor="#ffffff"
- id="base"
- showgrid="false"
- inkscape:window-maximized="0" />
- <path
- id="path7214"
- style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;display:inline"
- d="m 23.585163,1.377771 c -7.3e-5,1.1e-4 6.2e-5,0.0039 0,0.0039 0.0013,-3.54e-4 0.0026,-0.0032 0.0039,-0.0039 -4.78e-4,0 -0.0034,-2.3e-5 -0.0039,0 z m -0.293287,0.01173 c -0.0027,3.39e-4 -0.0051,0.0032 -0.0078,0.0039 0.01047,-6.47e-4 0.0208,-0.0032 0.0313,-0.0039 -0.0026,3.1e-5 -0.0053,-1.18e-4 -0.0078,0 -0.0057,2.6e-4 -0.01016,-6.94e-4 -0.01564,0 z m 1.4234,0.0078 c 0.02085,0.0016 0.04176,0.0023 0.06257,0.0039 -0.02047,-0.0016 -0.04204,-0.0032 -0.06257,-0.0039 z m 0.06257,0.0039 c 5.265987,0.418547 9.412454,4.8332343 9.412454,10.206258 0,5.470767 -4.303553,9.932781 -9.705743,10.210182 l 0,2.096004 c 1.474852,0.23317 2.604371,1.513993 2.604371,3.054059 0,0.376932 -0.06786,0.737393 -0.191614,1.071465 l 1.916125,1.106653 c 2.96118,-4.473042 8.935485,-5.932586 13.643543,-3.214395 4.696858,2.711739 6.431117,8.594706 4.062951,13.389373 3.25012,-6.325927 0.990037,-14.166586 -5.236079,-17.761246 -1.557783,-0.899383 -3.21756,-1.447302 -4.895883,-1.673666 0.642426,-1.566299 0.997159,-3.281384 0.997159,-5.079678 0,-7.1369497 -5.576639,-12.979536 -12.607284,-13.405009 z m -1.716682,0.0078 c -6.995507,0.462047 -12.536897,6.2854693 -12.536897,13.397187 0,1.7471 0.33392,3.416827 0.942418,4.946709 C 9.8382992,19.991498 8.2240722,20.533989 6.7115792,21.40722 0.52714555,24.977806 -1.7383295,32.735989 1.4168439,39.039434 -0.86121285,34.26773 0.88578585,28.463663 5.5423552,25.775186 10.280179,23.039814 16.295416,24.535893 19.236731,29.07561 l 1.849653,-1.06755 c -0.116245,-0.324958 -0.175968,-0.675422 -0.175968,-1.040177 0,-1.474684 1.033904,-2.7081 2.416653,-3.014963 l 0,-2.138998 c -5.354361,-0.327959 -9.604053,-4.769878 -9.604053,-10.206284 0,-5.3484377 4.106511,-9.745581 9.338141,-10.198436 z m 0.5983,12.857539 c -2.702513,0.06215 -5.1939,0.982199 -7.238239,2.479239 0.163319,0.241678 0.3388,0.475581 0.523995,0.699968 0.185211,0.224379 0.381018,0.43966 0.586572,0.64522 0.205552,0.205552 0.420838,0.401368 0.645233,0.586565 0.164974,0.136169 0.34173,0.258763 0.516174,0.383226 1.509041,-0.990801 3.316157,-1.571993 5.263466,-1.571993 1.947286,-8e-6 3.750506,0.581192 5.259545,1.571993 0.174446,-0.124463 0.351193,-0.247057 0.516176,-0.383226 0.22439,-0.185197 0.439673,-0.381013 0.645219,-0.586565 0.205567,-0.20556 0.401375,-0.420841 0.586578,-0.64522 0.185195,-0.224387 0.360669,-0.45829 0.523998,-0.699968 -2.118228,-1.551143 -4.716051,-2.479239 -7.531516,-2.479239 -0.06599,0 -0.133689,-7.88e-4 -0.199445,0 -0.0321,5.04e-4 -0.06572,-7.33e-4 -0.09775,0 z m -12.31791,11.277867 c -0.284223,2.610003 0.211199,5.323971 1.618924,7.76224 1.407734,2.438252 3.510158,4.228056 5.912592,5.286916 0.127648,-0.262284 0.242394,-0.532967 0.344121,-0.805556 0.101731,-0.272573 0.190676,-0.548209 0.265902,-0.828999 0.07525,-0.280797 0.139504,-0.565564 0.187704,-0.852481 0.03545,-0.210964 0.05374,-0.42411 0.07431,-0.637415 -1.612588,-0.811463 -3.018925,-2.087157 -3.992574,-3.773578 -0.973652,-1.686412 -1.374436,-3.539399 -1.270899,-5.341664 -0.194995,-0.08884 -0.390062,-0.179391 -0.590482,-0.254187 -0.272577,-0.10171 -0.548216,-0.190664 -0.829012,-0.265909 -0.280794,-0.07523 -0.565552,-0.135585 -0.852473,-0.183786 -0.286919,-0.04821 -0.577155,-0.08499 -0.868119,-0.105582 z m 25.316234,0.152498 c -0.290976,0.02064 -0.581196,0.05743 -0.868118,0.105592 -0.286924,0.04821 -0.571694,0.108551 -0.852489,0.183796 -0.28078,0.07523 -0.560331,0.164188 -0.832917,0.265916 -0.200416,0.07475 -0.391568,0.169238 -0.586562,0.258079 0.103529,1.802257 -0.297254,3.655268 -1.270904,5.341672 -0.973644,1.686405 -2.379987,2.958198 -3.992556,3.769663 0.02056,0.213296 0.03885,0.42645 0.07429,0.637406 0.0482,0.286925 0.108544,0.571684 0.183787,0.85249 0.07524,0.280789 0.164195,0.560349 0.265917,0.832913 0.10171,0.272598 0.21648,0.539357 0.344115,0.80165 2.402441,-1.05887 4.504863,-2.844756 5.91259,-5.283018 1.407749,-2.438268 1.907058,-5.156151 1.622843,-7.766155 z m -14.984836,3.300424 -1.861376,1.079286 c 2.393175,4.80097 0.67248,10.702448 -4.035564,13.420654 -4.684876,2.704807 -10.6285418,1.281437 -13.6044538,-3.140087 3.861645,5.950286 11.7584698,7.900842 17.9724108,4.31321 1.505271,-0.869071 2.775062,-1.989431 3.793133,-3.273026 1.038062,1.349323 2.351864,2.521178 3.918266,3.425539 6.220932,3.591652 14.127263,1.63317 17.98415,-4.332768 -2.970401,4.440658 -8.922715,5.877231 -13.616174,3.167461 -4.737818,-2.735388 -6.449511,-8.693465 -3.988659,-13.51059 L 26.29902,29.028617 c -0.565692,0.629844 -1.386768,1.028448 -2.299348,1.028448 -0.927577,0 -1.760299,-0.411791 -2.32672,-1.059736 z" />
+<?xml version="1.0" encoding="UTF-8"?>
+<svg version="1.0" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
+ <title>Biohazard</title>
+ <path d="m23.585 1.3778c-7.3e-5 1.1e-4 6.2e-5 0.0039 0 0.0039 0.0013-3.54e-4 0.0026-0.0032 0.0039-0.0039-4.78e-4 0-0.0034-2.3e-5 -0.0039 0zm-0.29329 0.01173c-0.0027 3.39e-4 -0.0051 0.0032-0.0078 0.0039 0.01047-6.47e-4 0.0208-0.0032 0.0313-0.0039-0.0026 3.1e-5 -0.0053-1.18e-4 -0.0078 0-0.0057 2.6e-4 -0.01016-6.94e-4 -0.01564 0zm1.4234 0.0078c0.02085 0.0016 0.04176 0.0023 0.06257 0.0039-0.02047-0.0016-0.04204-0.0032-0.06257-0.0039zm0.06257 0.0039c5.266 0.41855 9.4125 4.8332 9.4125 10.206 0 5.4708-4.3036 9.9328-9.7057 10.21v2.096c1.4749 0.23317 2.6044 1.514 2.6044 3.0541 0 0.37693-0.06786 0.73739-0.19161 1.0715l1.9161 1.1067c2.9612-4.473 8.9355-5.9326 13.644-3.2144 4.6969 2.7117 6.4311 8.5947 4.063 13.389 3.2501-6.3259 0.99004-14.167-5.2361-17.761-1.5578-0.89938-3.2176-1.4473-4.8959-1.6737 0.64243-1.5663 0.99716-3.2814 0.99716-5.0797 0-7.1369-5.5766-12.98-12.607-13.405zm-1.7167 0.0078c-6.9955 0.46205-12.537 6.2855-12.537 13.397 0 1.7471 0.33392 3.4168 0.94242 4.9467-1.6284 0.2386-3.2426 0.78109-4.7551 1.6543-6.1844 3.5706-8.4499 11.329-5.2947 17.632-2.2781-4.7717-0.53106-10.576 4.1255-13.264 4.7378-2.7354 10.753-1.2393 13.694 3.3004l1.8497-1.0676c-0.11624-0.32496-0.17597-0.67542-0.17597-1.0402 0-1.4747 1.0339-2.7081 2.4167-3.015v-2.139c-5.3544-0.32796-9.6041-4.7699-9.6041-10.206 0-5.3484 4.1065-9.7456 9.3381-10.198zm0.5983 12.858c-2.7025 0.06215-5.1939 0.9822-7.2382 2.4792 0.16332 0.24168 0.3388 0.47558 0.524 0.69997 0.18521 0.22438 0.38102 0.43966 0.58657 0.64522 0.20555 0.20555 0.42084 0.40137 0.64523 0.58656 0.16497 0.13617 0.34173 0.25876 0.51617 0.38323 1.509-0.9908 3.3162-1.572 5.2635-1.572 1.9473-8e-6 3.7505 0.58119 5.2595 1.572 0.17445-0.12446 0.35119-0.24706 0.51618-0.38323 0.22439-0.1852 0.43967-0.38101 0.64522-0.58656 0.20557-0.20556 0.40138-0.42084 0.58658-0.64522 0.1852-0.22439 0.36067-0.45829 0.524-0.69997-2.1182-1.5511-4.7161-2.4792-7.5315-2.4792-0.06599 0-0.13369-7.88e-4 -0.19944 0-0.0321 5.04e-4 -0.06572-7.33e-4 -0.09775 0zm-12.318 11.278c-0.28422 2.61 0.2112 5.324 1.6189 7.7622 1.4077 2.4383 3.5102 4.2281 5.9126 5.2869 0.12765-0.26228 0.24239-0.53297 0.34412-0.80556 0.10173-0.27257 0.19068-0.54821 0.2659-0.829 0.07525-0.2808 0.1395-0.56556 0.1877-0.85248 0.03545-0.21096 0.05374-0.42411 0.07431-0.63742-1.6126-0.81146-3.0189-2.0872-3.9926-3.7736-0.97365-1.6864-1.3744-3.5394-1.2709-5.3417-0.195-0.08884-0.39006-0.17939-0.59048-0.25419-0.27258-0.10171-0.54822-0.19066-0.82901-0.26591-0.28079-0.07523-0.56555-0.13558-0.85247-0.18379-0.28692-0.04821-0.57716-0.08499-0.86812-0.10558zm25.316 0.1525c-0.29098 0.02064-0.5812 0.05743-0.86812 0.10559-0.28692 0.04821-0.57169 0.10855-0.85249 0.1838-0.28078 0.07523-0.56033 0.16419-0.83292 0.26592-0.20042 0.07475-0.39157 0.16924-0.58656 0.25808 0.10353 1.8023-0.29725 3.6553-1.2709 5.3417-0.97364 1.6864-2.38 2.9582-3.9926 3.7697 0.02056 0.2133 0.03885 0.42645 0.07429 0.63741 0.0482 0.28692 0.10854 0.57168 0.18379 0.85249 0.07524 0.28079 0.1642 0.56035 0.26592 0.83291 0.10171 0.2726 0.21648 0.53936 0.34412 0.80165 2.4024-1.0589 4.5049-2.8448 5.9126-5.283 1.4077-2.4383 1.9071-5.1562 1.6228-7.7662zm-14.985 3.3004-1.8614 1.0793c2.3932 4.801 0.67248 10.702-4.0356 13.421-4.6849 2.7048-10.629 1.2814-13.604-3.1401 3.8616 5.9503 11.758 7.9008 17.972 4.3132 1.5053-0.86907 2.7751-1.9894 3.7931-3.273 1.0381 1.3493 2.3519 2.5212 3.9183 3.4255 6.2209 3.5917 14.127 1.6332 17.984-4.3328-2.9704 4.4407-8.9227 5.8772-13.616 3.1675-4.7378-2.7354-6.4495-8.6935-3.9887-13.511l-1.9357-1.1184c-0.56569 0.62984-1.3868 1.0284-2.2993 1.0284-0.92758 0-1.7603-0.41179-2.3267-1.0597z"/>
</svg>
Modified: trunk/docutils/docs/user/rst/images/biohazard.svg
===================================================================
--- trunk/docutils/docs/user/rst/images/biohazard.svg 2021-07-19 13:42:25 UTC (rev 8803)
+++ trunk/docutils/docs/user/rst/images/biohazard.svg 2021-07-19 13:43:02 UTC (rev 8804)
@@ -1,62 +1,5 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- 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"
- version="1.0"
- width="48"
- height="48"
- id="svg24159">
- <title
- id="title2837">Biohazard</title>
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title>Biohazard</dc:title>
- <cc:license
- rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
- <dc:description>Standalone biohazard symbol, with no border, background or descriptive text.</dc:description>
- <dc:creator>
- <cc:Agent>
- <dc:title>Silsor</dc:title>
- </cc:Agent>
- </dc:creator>
- <dc:identifier />
- <dc:source />
- <dc:relation>http://de.wikipedia.org/wiki/Datei:Biohazard_symbol.svg</dc:relation>
- <dc:publisher>
- <cc:Agent>
- <dc:title>Wikipedia</dc:title>
- </cc:Agent>
- </dc:publisher>
- <dc:contributor>
- <cc:Agent>
- <dc:title>Bastique, Andux, MarianSigler, GM</dc:title>
- </cc:Agent>
- </dc:contributor>
- </cc:Work>
- <cc:License
- rdf:about="http://creativecommons.org/licenses/publicdomain/">
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#Reproduction" />
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#Distribution" />
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
- </cc:License>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs5" />
- <path
- d="m 23.585163,1.377771 c -7.3e-5,1.1e-4 6.2e-5,0.0039 0,0.0039 0.0013,-3.54e-4 0.0026,-0.0032 0.0039,-0.0039 -4.78e-4,0 -0.0034,-2.3e-5 -0.0039,0 z m -0.293287,0.01173 c -0.0027,3.39e-4 -0.0051,0.0032 -0.0078,0.0039 0.01047,-6.47e-4 0.0208,-0.0032 0.0313,-0.0039 -0.0026,3.1e-5 -0.0053,-1.18e-4 -0.0078,0 -0.0057,2.6e-4 -0.01016,-6.94e-4 -0.01564,0 z m 1.4234,0.0078 c 0.02085,0.0016 0.04176,0.0023 0.06257,0.0039 -0.02047,-0.0016 -0.04204,-0.0032 -0.06257,-0.0039 z m 0.06257,0.0039 c 5.265987,0.418547 9.412454,4.8332343 9.412454,10.206258 0,5.470767 -4.303553,9.932781 -9.705743,10.210182 l 0,2.096004 c 1.474852,0.23317 2.604371,1.513993 2.604371,3.054059 0,0.376932 -0.06786,0.737393 -0.191614,1.071465 l 1.916125,1.106653 c 2.96118,-4.473042 8.935485,-5.932586 13.643543,-3.214395 4.696858,2.711739 6.431117,8.594706 4.062951,13.389373 3.25012,-6.325927 0.990037,-14.166586 -5.236079,-17.761246 -1.557783,-0.899383 -3.21756,-1.447302 -4.895883,-1.673666 0.642426,-1.566299 0.997159,-3.281384 0.997159,-5.079678 0,-7.1369497 -5.576639,-12.979536 -12.607284,-13.405009 z m -1.716682,0.0078 c -6.995507,0.462047 -12.536897,6.2854693 -12.536897,13.397187 0,1.7471 0.33392,3.416827 0.942418,4.946709 C 9.8382992,19.991498 8.2240722,20.533989 6.7115792,21.40722 0.52714555,24.977806 -1.7383295,32.735989 1.4168439,39.039434 -0.86121285,34.26773 0.88578585,28.463663 5.5423552,25.775186 10.280179,23.039814 16.295416,24.535893 19.236731,29.07561 l 1.849653,-1.06755 c -0.116245,-0.324958 -0.175968,-0.675422 -0.175968,-1.040177 0,-1.474684 1.033904,-2.7081 2.416653,-3.014963 l 0,-2.138998 c -5.354361,-0.327959 -9.604053,-4.769878 -9.604053,-10.206284 0,-5.3484377 4.106511,-9.745581 9.338141,-10.198436 z m 0.5983,12.857539 c -2.702513,0.06215 -5.1939,0.982199 -7.238239,2.479239 0.163319,0.241678 0.3388,0.475581 0.523995,0.699968 0.185211,0.224379 0.381018,0.43966 0.586572,0.64522 0.205552,0.205552 0.420838,0.401368 0.645233,0.586565 0.164974,0.136169 0.34173,0.258763 0.516174,0.383226 1.509041,-0.990801 3.316157,-1.571993 5.263466,-1.571993 1.947286,-8e-6 3.750506,0.581192 5.259545,1.571993 0.174446,-0.124463 0.351193,-0.247057 0.516176,-0.383226 0.22439,-0.185197 0.439673,-0.381013 0.645219,-0.586565 0.205567,-0.20556 0.401375,-0.420841 0.586578,-0.64522 0.185195,-0.224387 0.360669,-0.45829 0.523998,-0.699968 -2.118228,-1.551143 -4.716051,-2.479239 -7.531516,-2.479239 -0.06599,0 -0.133689,-7.88e-4 -0.199445,0 -0.0321,5.04e-4 -0.06572,-7.33e-4 -0.09775,0 z m -12.31791,11.277867 c -0.284223,2.610003 0.211199,5.323971 1.618924,7.76224 1.407734,2.438252 3.510158,4.228056 5.912592,5.286916 0.127648,-0.262284 0.242394,-0.532967 0.344121,-0.805556 0.101731,-0.272573 0.190676,-0.548209 0.265902,-0.828999 0.07525,-0.280797 0.139504,-0.565564 0.187704,-0.852481 0.03545,-0.210964 0.05374,-0.42411 0.07431,-0.637415 -1.612588,-0.811463 -3.018925,-2.087157 -3.992574,-3.773578 -0.973652,-1.686412 -1.374436,-3.539399 -1.270899,-5.341664 -0.194995,-0.08884 -0.390062,-0.179391 -0.590482,-0.254187 -0.272577,-0.10171 -0.548216,-0.190664 -0.829012,-0.265909 -0.280794,-0.07523 -0.565552,-0.135585 -0.852473,-0.183786 -0.286919,-0.04821 -0.577155,-0.08499 -0.868119,-0.105582 z m 25.316234,0.152498 c -0.290976,0.02064 -0.581196,0.05743 -0.868118,0.105592 -0.286924,0.04821 -0.571694,0.108551 -0.852489,0.183796 -0.28078,0.07523 -0.560331,0.164188 -0.832917,0.265916 -0.200416,0.07475 -0.391568,0.169238 -0.586562,0.258079 0.103529,1.802257 -0.297254,3.655268 -1.270904,5.341672 -0.973644,1.686405 -2.379987,2.958198 -3.992556,3.769663 0.02056,0.213296 0.03885,0.42645 0.07429,0.637406 0.0482,0.286925 0.108544,0.571684 0.183787,0.85249 0.07524,0.280789 0.164195,0.560349 0.265917,0.832913 0.10171,0.272598 0.21648,0.539357 0.344115,0.80165 2.402441,-1.05887 4.504863,-2.844756 5.91259,-5.283018 1.407749,-2.438268 1.907058,-5.156151 1.622843,-7.766155 z m -14.984836,3.300424 -1.861376,1.079286 c 2.393175,4.80097 0.67248,10.702448 -4.035564,13.420654 -4.684876,2.704807 -10.6285418,1.281437 -13.6044538,-3.140087 3.861645,5.950286 11.7584698,7.900842 17.9724108,4.31321 1.505271,-0.869071 2.775062,-1.989431 3.793133,-3.273026 1.038062,1.349323 2.351864,2.521178 3.918266,3.425539 6.220932,3.591652 14.127263,1.63317 17.98415,-4.332768 -2.970401,4.440658 -8.922715,5.877231 -13.616174,3.167461 -4.737818,-2.735388 -6.449511,-8.693465 -3.988659,-13.51059 L 26.29902,29.028617 c -0.565692,0.629844 -1.386768,1.028448 -2.299348,1.028448 -0.927577,0 -1.760299,-0.411791 -2.32672,-1.059736 z"
- style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;display:inline"
- id="path7214" />
+<?xml version="1.0" encoding="UTF-8"?>
+<svg version="1.0" width="48" height="48" xmlns="http://www.w3.org/2000/svg">
+ <title>Biohazard</title>
+ <path d="m23.585 1.3778c-7.3e-5 1.1e-4 6.2e-5 0.0039 0 0.0039 0.0013-3.54e-4 0.0026-0.0032 0.0039-0.0039-4.78e-4 0-0.0034-2.3e-5 -0.0039 0zm-0.29329 0.01173c-0.0027 3.39e-4 -0.0051 0.0032-0.0078 0.0039 0.01047-6.47e-4 0.0208-0.0032 0.0313-0.0039-0.0026 3.1e-5 -0.0053-1.18e-4 -0.0078 0-0.0057 2.6e-4 -0.01016-6.94e-4 -0.01564 0zm1.4234 0.0078c0.02085 0.0016 0.04176 0.0023 0.06257 0.0039-0.02047-0.0016-0.04204-0.0032-0.06257-0.0039zm0.06257 0.0039c5.266 0.41855 9.4125 4.8332 9.4125 10.206 0 5.4708-4.3036 9.9328-9.7057 10.21v2.096c1.4749 0.23317 2.6044 1.514 2.6044 3.0541 0 0.37693-0.06786 0.73739-0.19161 1.0715l1.9161 1.1067c2.9612-4.473 8.9355-5.9326 13.644-3.2144 4.6969 2.7117 6.4311 8.5947 4.063 13.389 3.2501-6.3259 0.99004-14.167-5.2361-17.761-1.5578-0.89938-3.2176-1.4473-4.8959-1.6737 0.64243-1.5663 0.99716-3.2814 0.99716-5.0797 0-7.1369-5.5766-12.98-12.607-13.405zm-1.7167 0.0078c-6.9955 0.46205-12.537 6.2855-12.537 13.397 0 1.7471 0.33392 3.4168 0.94242 4.9467-1.6284 0.2386-3.2426 0.78109-4.7551 1.6543-6.1844 3.5706-8.4499 11.329-5.2947 17.632-2.2781-4.7717-0.53106-10.576 4.1255-13.264 4.7378-2.7354 10.753-1.2393 13.694 3.3004l1.8497-1.0676c-0.11624-0.32496-0.17597-0.67542-0.17597-1.0402 0-1.4747 1.0339-2.7081 2.4167-3.015v-2.139c-5.3544-0.32796-9.6041-4.7699-9.6041-10.206 0-5.3484 4.1065-9.7456 9.3381-10.198zm0.5983 12.858c-2.7025 0.06215-5.1939 0.9822-7.2382 2.4792 0.16332 0.24168 0.3388 0.47558 0.524 0.69997 0.18521 0.22438 0.38102 0.43966 0.58657 0.64522 0.20555 0.20555 0.42084 0.40137 0.64523 0.58656 0.16497 0.13617 0.34173 0.25876 0.51617 0.38323 1.509-0.9908 3.3162-1.572 5.2635-1.572 1.9473-8e-6 3.7505 0.58119 5.2595 1.572 0.17445-0.12446 0.35119-0.24706 0.51618-0.38323 0.22439-0.1852 0.43967-0.38101 0.64522-0.58656 0.20557-0.20556 0.40138-0.42084 0.58658-0.64522 0.1852-0.22439 0.36067-0.45829 0.524-0.69997-2.1182-1.5511-4.7161-2.4792-7.5315-2.4792-0.06599 0-0.13369-7.88e-4 -0.19944 0-0.0321 5.04e-4 -0.06572-7.33e-4 -0.09775 0zm-12.318 11.278c-0.28422 2.61 0.2112 5.324 1.6189 7.7622 1.4077 2.4383 3.5102 4.2281 5.9126 5.2869 0.12765-0.26228 0.24239-0.53297 0.34412-0.80556 0.10173-0.27257 0.19068-0.54821 0.2659-0.829 0.07525-0.2808 0.1395-0.56556 0.1877-0.85248 0.03545-0.21096 0.05374-0.42411 0.07431-0.63742-1.6126-0.81146-3.0189-2.0872-3.9926-3.7736-0.97365-1.6864-1.3744-3.5394-1.2709-5.3417-0.195-0.08884-0.39006-0.17939-0.59048-0.25419-0.27258-0.10171-0.54822-0.19066-0.82901-0.26591-0.28079-0.07523-0.56555-0.13558-0.85247-0.18379-0.28692-0.04821-0.57716-0.08499-0.86812-0.10558zm25.316 0.1525c-0.29098 0.02064-0.5812 0.05743-0.86812 0.10559-0.28692 0.04821-0.57169 0.10855-0.85249 0.1838-0.28078 0.07523-0.56033 0.16419-0.83292 0.26592-0.20042 0.07475-0.39157 0.16924-0.58656 0.25808 0.10353 1.8023-0.29725 3.6553-1.2709 5.3417-0.97364 1.6864-2.38 2.9582-3.9926 3.7697 0.02056 0.2133 0.03885 0.42645 0.07429 0.63741 0.0482 0.28692 0.10854 0.57168 0.18379 0.85249 0.07524 0.28079 0.1642 0.56035 0.26592 0.83291 0.10171 0.2726 0.21648 0.53936 0.34412 0.80165 2.4024-1.0589 4.5049-2.8448 5.9126-5.283 1.4077-2.4383 1.9071-5.1562 1.6228-7.7662zm-14.985 3.3004-1.8614 1.0793c2.3932 4.801 0.67248 10.702-4.0356 13.421-4.6849 2.7048-10.629 1.2814-13.604-3.1401 3.8616 5.9503 11.758 7.9008 17.972 4.3132 1.5053-0.86907 2.7751-1.9894 3.7931-3.273 1.0381 1.3493 2.3519 2.5212 3.9183 3.4255 6.2209 3.5917 14.127 1.6332 17.984-4.3328-2.9704 4.4407-8.9227 5.8772-13.616 3.1675-4.7378-2.7354-6.4495-8.6935-3.9887-13.511l-1.9357-1.1184c-0.56569 0.62984-1.3868 1.0284-2.2993 1.0284-0.92758 0-1.7603-0.41179-2.3267-1.0597z"/>
</svg>
Modified: trunk/docutils/docs/user/rst/images/title-scaling.svg
===================================================================
--- trunk/docutils/docs/user/rst/images/title-scaling.svg 2021-07-19 13:42:25 UTC (rev 8803)
+++ trunk/docutils/docs/user/rst/images/title-scaling.svg 2021-07-19 13:43:02 UTC (rev 8804)
@@ -1,43 +1,11 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- 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"
- id="svg2"
- height="19.933594pt"
- width="214.26941pt"
- viewBox="0 0 285.69254 26.578126"
- version="1.1">
- <metadata
- id="metadata8">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs6" />
- <text
- style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:34.41720963px;line-height:0%;font-family:TeXGyrePagella;-inkscape-font-specification:'TeXGyrePagella Italic';text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none"
- xml:space="preserve"
- id="text2818"
- transform="scale(0.95603363,1.0459883)"
- y="24.939034"
- x="-0.3865214"><tspan
- id="tspan2820"
- y="24.939034"
- x="-0.3865214"><tspan
- style="font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman'"
- id="tspan2985">re</tspan><tspan
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:34.41720963px;line-height:100%;font-family:'Courier New';-inkscape-font-specification:'Courier New';text-align:start;writing-mode:lr-tb;text-anchor:start"
- id="tspan2822">Structured</tspan><tspan
- style="font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman'"
- id="tspan2989">Text</tspan></tspan></text>
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="203pt" height="24pt" version="1.1"
+ viewBox="0 0 232 24" xmlns="http://www.w3.org/2000/svg">
+ <text x="-2.25" y="24" fill="#000000"
+ font-family="Times New Roman, Liberation Serif, FreeSerif, serif"
+ font-size="32px" font-style="italic" letter-spacing="0px"
+ stroke-width="1px" word-spacing="0px"><tspan
+ x="-2.25" y="24">re<tspan
+ font-family="Helvetica, Liberation Sans, FreeSans, sans-serif"
+ font-style="normal">Structured</tspan>Text</tspan></text>
</svg>
Modified: trunk/docutils/docs/user/rst/images/title.svg
===================================================================
--- trunk/docutils/docs/user/rst/images/title.svg 2021-07-19 13:42:25 UTC (rev 8803)
+++ trunk/docutils/docs/user/rst/images/title.svg 2021-07-19 13:43:02 UTC (rev 8804)
@@ -1,43 +1,11 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- 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"
- id="svg2"
- height="21.262499pt"
- width="228.4207pt"
- version="1.1">
- <metadata
- id="metadata8">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs6" />
- <text
- style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36.711689px;line-height:0%;font-family:TeXGyrePagella;-inkscape-font-specification:'TeXGyrePagella Italic';text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.0666666"
- xml:space="preserve"
- id="text2818"
- transform="scale(0.95603363,1.0459883)"
- y="26.601633"
- x="-0.41228947"><tspan
- style="stroke-width:1.0666666"
- id="tspan2820"
- y="26.601633"
- x="-0.41228947"><tspan
- style="font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman';stroke-width:1.0666666"
- id="tspan2985">re</tspan><tspan
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36.711689px;line-height:100%;font-family:'Courier New';-inkscape-font-specification:'Courier New';text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:1.0666666"
- id="tspan2822">Structured</tspan><tspan
- style="font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman';stroke-width:1.0666666"
- id="tspan2989">Text</tspan></tspan></text>
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="203pt" height="24pt" version="1.1"
+ xmlns="http://www.w3.org/2000/svg">
+ <text x="-2.25" y="24" fill="#000000"
+ font-family="Times New Roman, Liberation Serif, FreeSerif, serif"
+ font-size="32px" font-style="italic" letter-spacing="0px"
+ stroke-width="1px" word-spacing="0px"><tspan
+ x="-2.25" y="24">re<tspan
+ font-family="Helvetica, Liberation Sans, FreeSans, sans-serif"
+ font-style="normal">Structured</tspan>Text</tspan></text>
</svg>
Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-07-19 13:42:25 UTC (rev 8803)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-07-19 13:43:02 UTC (rev 8804)
@@ -1270,86 +1270,66 @@
<div class="section" id="svg-images">
<h2><a class="toc-backref" href="#toc-entry-43">2.24 SVG Images</a></h2>
<object class="align-left" data="../../../docs/user/rst/images/biohazard.svg" style="width: 48px; height: 48px;" type="image/svg+xml">../../../docs/user/rst/images/biohazard.svg</object>
-<p>Scalable vector graphics (SVG) images are the only standards-compliable way
-to include vector graphics in HTML documents. However, they are not
-supported by all backends/output formats. (E.g., LaTeX supports the
-PDF or Postscript formats for vector graphics instead.)</p>
-<p>Rendering behaviour varies, depending on</p>
-<ol class="loweralpha">
-<li><p class="first">The SVG image itself, e.g. fixed-size vs. scaling:</p>
-<pre class="literal-block">
-width="280" viewBox="0 0 280 27"
-height="27" width="100%"
- height="100%"
-</pre>
-</li>
-<li><p class="first">The method used to put the image in the document.</p>
-<p>For HTML, there are several alternatives including:</p>
-<ul class="simple">
-<li>using the HTML <tt class="docutils literal"><img></tt> tag (not for interactive/animated SVG),</li>
-<li>using the HTML <tt class="docutils literal"><object></tt> tag,</li>
-<li>including within SVG using the SVG <tt class="docutils literal"><image></tt> tag,</li>
-<li>embedd the SVG code within HTML (inlining).</li>
-</ul>
-<p>The <cite>html4css1</cite> writer uses <tt class="docutils literal"><object></tt> tags, the <cite>html5</cite>
-writer uses <tt class="docutils literal"><img></tt> tags.</p>
-<!-- cf. http://edutechwiki.unige.ch/en/Using_SVG_with_HTML5_tutorial -->
-</li>
-<li><p class="first">The viewing agent.</p>
+<p>Scalable vector graphics (SVG) images are the only standards-compatible
+way to include vector graphics in HTML documents. However, they are not
+supported by all backends/output formats (LaTeX, e.g., supports the PDF
+or Postscript formats for vector graphics instead). Rendering behaviour
+varies, depending on the SVG image itself, the method used to put the
+image in the document, and the viewing agent.</p>
<p>All up-to-date HTML browsers support SVG, however not all do this fully
and in the same manner. Many older versions, especially IE < 9, have
-deficiencies or require plug-ins (i.e. don't support the <tt class="docutils literal"><img></tt> tag).</p>
-</li>
-</ol>
+deficiencies or require plug-ins (i.e. don't support the <tt class="docutils literal"><img></tt> tag).
+The <cite>html4css1</cite> writer includes SVG images using <tt class="docutils literal"><object></tt> tags,
+the <cite>html5</cite> writer uses <tt class="docutils literal"><img></tt> tags.</p>
<p>If the image is wrapped in <tt class="docutils literal"><object></tt> or <tt class="docutils literal"><svg></tt> tags, it depends on the
-<tt class="docutils literal">viewBox</tt> declaration inside the images root <tt class="docutils literal"><svg></tt> element whether an
+"viewBox" declaration inside the image's root <tt class="docutils literal"><svg></tt> element whether an
SVG image is scaled or clipped/padded. Images wrapped in <tt class="docutils literal"><img></tt> are
always scaled.</p>
<ul>
<li><object class="first align-right" data="../../../docs/user/rst/images/title-scaling.svg" style="width: 50%;" type="image/svg+xml">../../../docs/user/rst/images/title-scaling.svg</object>
-<p>A scaling image (scales with the browser window), occupying 50% of the line
-width. The <tt class="docutils literal">viewBox</tt> setting in the image file enables auto-scaling also in
-<tt class="docutils literal"><object></tt> tags and embedded SVG (if width and hight are set to 100% in the
-SVG <image> tag).</p>
+<p>An image occupying 50% of the line width. The "viewBox" attribute in
+the image file enables auto-scaling also in <tt class="docutils literal"><object></tt> tags and
+embedded SVG.</p>
</li>
<li><object class="first align-right" data="../../../docs/user/rst/images/title.svg" style="width: 50%; height: 15px;" type="image/svg+xml">../../../docs/user/rst/images/title.svg</object>
-<p>A fixed-size image in a box 50% wide and 15 pixles high. This image is
-scaled, if wrapped in an <tt class="docutils literal"><img></tt> tag but clipped in an <tt class="docutils literal"><object></tt> tag
-or within SVG.</p>
+<p>An image without "viewBox" in a box 50% wide and 15 pixles high.
+This image is scaled, if wrapped in an <tt class="docutils literal"><img></tt> tag but clipped in
+an <tt class="docutils literal"><object></tt> tag or within SVG.</p>
</li>
<li><object class="first align-right" data="../../../docs/user/rst/images/title-scaling.svg" style="width: 50%; height: 1.5em;" type="image/svg+xml">../../../docs/user/rst/images/title-scaling.svg</object>
-<p>A right aligned, scaling image 50% wide and 1.5 em high. (This SVG image
-keeps the aspect ratio.)</p>
+<p>A right aligned image with "viewBox", 50% wide and 1.5 em high.
+(SVG images keep the aspect ratio unless the "preserveAspectRatio"
+attribute is <tt class="docutils literal">"none"</tt>.)</p>
</li>
<li><p class="first">An inline image <object data="../../../docs/user/rst/images/biohazard-scaling.svg" style="height: 0.8em;" type="image/svg+xml">inline-svg</object> scaled to a height of 0.8 em.</p>
</li>
<li><object class="first align-right" data="../../../docs/user/rst/images/biohazard-scaling.svg" style="height: 1em;" type="image/svg+xml">../../../docs/user/rst/images/biohazard-scaling.svg</object>
-<p>A scaling image 1 em high, right aligned:</p>
+<p>An image 1 em high, right aligned:</p>
</li>
-<li><p class="first">A scaling image 5 mm x 5 mm, centered, with hyperlink reference:</p>
+<li><p class="first">An image 5 mm x 5 mm, centred, with hyperlink reference:</p>
<a class="reference internal image-reference" href="#svg-images"><object class="align-center" data="../../../docs/user/rst/images/biohazard-scaling.svg" style="width: 5mm; height: 5mm;" type="image/svg+xml">../../../docs/user/rst/images/biohazard-scaling.svg</object></a>
</li>
<li><object class="first align-right" data="../../../docs/user/rst/images/biohazard.svg" style="width: 4cm; height: 2em;" type="image/svg+xml">../../../docs/user/rst/images/biohazard.svg</object>
-<p>A fixed-size image in a 4 cm x 2 em box.</p>
+<p>An image without "viewBox" in a 4 cm x 2 em box.</p>
</li>
</ul>
<p>Older versions of <cite>webkit</cite> based browsers (chromium, safari, midori,
konqueror) support the <tt class="docutils literal"><img></tt> tag but don't display contained bitmap
-images in this case.</p>
+images.</p>
<ul>
<li><object class="first align-right" data="../../../docs/user/rst/images/biohazard-bitmap.svg" style="width: 3em;" type="image/svg+xml">../../../docs/user/rst/images/biohazard-bitmap.svg</object>
-<p>A small, fixed-size SVG image with embedded bitmap, The <tt class="docutils literal">:width:</tt> is
-set to 3 em in the rST source. Does not scale if wrapped in <tt class="docutils literal"><object></tt>
-tags.</p>
+<p>A small SVG image with embedded bitmap, The <tt class="docutils literal">:width:</tt> is set to 3 em
+in the rST source. Does not scale if wrapped in <tt class="docutils literal"><object></tt> tags
+because there is no "viewBox" attribute.</p>
</li>
<li><object class="first align-right" data="../../../docs/user/rst/images/biohazard-bitmap-scaling.svg" style="width: 3em;" type="image/svg+xml">../../../docs/user/rst/images/biohazard-bitmap-scaling.svg</object>
-<p>A scaling SVG image with embedded bitmap, 3 em wide.</p>
+<p>An SVG image with embedded bitmap and "viewBox", 3 em wide.</p>
</li>
</ul>
<p>SVG images can also be put in figures:</p>
<blockquote>
<div class="figure align-center">
-<object data="../../../docs/user/rst/images/title.svg" style="width: 290px; height: 28px;" type="image/svg+xml">reStructuredText, the markup syntax</object>
+<object data="../../../docs/user/rst/images/title-scaling.svg" style="width: 290px; height: 28px;" type="image/svg+xml">reStructuredText, the markup syntax</object>
<p class="caption">SVG image in a figure.</p>
</div>
</blockquote>
Modified: trunk/docutils/test/functional/input/data/svg_images.txt
===================================================================
--- trunk/docutils/test/functional/input/data/svg_images.txt 2021-07-19 13:42:25 UTC (rev 8803)
+++ trunk/docutils/test/functional/input/data/svg_images.txt 2021-07-19 13:43:02 UTC (rev 8804)
@@ -6,41 +6,22 @@
:height: 48 px
:align: left
-Scalable vector graphics (SVG) images are the only standards-compliable way
-to include vector graphics in HTML documents. However, they are not
-supported by all backends/output formats. (E.g., LaTeX supports the
-PDF or Postscript formats for vector graphics instead.)
+Scalable vector graphics (SVG) images are the only standards-compatible
+way to include vector graphics in HTML documents. However, they are not
+supported by all backends/output formats (LaTeX, e.g., supports the PDF
+or Postscript formats for vector graphics instead). Rendering behaviour
+varies, depending on the SVG image itself, the method used to put the
+image in the document, and the viewing agent.
-Rendering behaviour varies, depending on
+All up-to-date HTML browsers support SVG, however not all do this fully
+and in the same manner. Many older versions, especially IE < 9, have
+deficiencies or require plug-ins (i.e. don't support the ``<img>`` tag).
+The `html4css1` writer includes SVG images using ``<object>`` tags,
+the `html5` writer uses ``<img>`` tags.
-a) The SVG image itself, e.g. fixed-size vs. scaling::
- width="280" viewBox="0 0 280 27"
- height="27" width="100%"
- height="100%"
-
-b) The method used to put the image in the document.
-
- For HTML, there are several alternatives including:
-
- * using the HTML ``<img>`` tag (not for interactive/animated SVG),
- * using the HTML ``<object>`` tag,
- * including within SVG using the SVG ``<image>`` tag,
- * embedd the SVG code within HTML (inlining).
-
- The `html4css1` writer uses ``<object>`` tags, the `html5`
- writer uses ``<img>`` tags.
-
- .. cf. http://edutechwiki.unige.ch/en/Using_SVG_with_HTML5_tutorial
-
-c) The viewing agent.
-
- All up-to-date HTML browsers support SVG, however not all do this fully
- and in the same manner. Many older versions, especially IE < 9, have
- deficiencies or require plug-ins (i.e. don't support the ``<img>`` tag).
-
If the image is wrapped in ``<object>`` or ``<svg>`` tags, it depends on the
-``viewBox`` declaration inside the images root ``<svg>`` element whether an
+"viewBox" declaration inside the image's root ``<svg>`` element whether an
SVG image is scaled or clipped/padded. Images wrapped in ``<img>`` are
always scaled.
@@ -48,20 +29,18 @@
:width: 50%
:align: right
- A scaling image (scales with the browser window), occupying 50% of the line
- width. The ``viewBox`` setting in the image file enables auto-scaling also in
- ``<object>`` tags and embedded SVG (if width and hight are set to 100% in the
- SVG <image> tag).
+ An image occupying 50% of the line width. The "viewBox" attribute in
+ the image file enables auto-scaling also in ``<object>`` tags and
+ embedded SVG.
-
* .. image:: ../../../docs/user/rst/images/title.svg
:width: 50%
:height: 15 px
:align: right
- A fixed-size image in a box 50% wide and 15 pixles high. This image is
- scaled, if wrapped in an ``<img>`` tag but clipped in an ``<object>`` tag
- or within SVG.
+ An image without "viewBox" in a box 50% wide and 15 pixles high.
+ This image is scaled, if wrapped in an ``<img>`` tag but clipped in
+ an ``<object>`` tag or within SVG.
* .. image:: ../../../docs/user/rst/images/title-scaling.svg
:width: 50 %
@@ -68,8 +47,9 @@
:height: 1.5 em
:align: right
- A right aligned, scaling image 50% wide and 1.5 em high. (This SVG image
- keeps the aspect ratio.)
+ A right aligned image with "viewBox", 50% wide and 1.5 em high.
+ (SVG images keep the aspect ratio unless the "preserveAspectRatio"
+ attribute is ``"none"``.)
* An inline image |inline-svg| scaled to a height of 0.8 em.
@@ -80,9 +60,9 @@
:height: 1 em
:align: right
- A scaling image 1 em high, right aligned:
+ An image 1 em high, right aligned:
-* A scaling image 5 mm x 5 mm, centered, with hyperlink reference:
+* An image 5 mm x 5 mm, centred, with hyperlink reference:
.. image:: ../../../docs/user/rst/images/biohazard-scaling.svg
:target: `SVG Images`_
@@ -95,19 +75,19 @@
:height: 2 em
:align: right
- A fixed-size image in a 4 cm x 2 em box.
+ An image without "viewBox" in a 4 cm x 2 em box.
Older versions of `webkit` based browsers (chromium, safari, midori,
konqueror) support the ``<img>`` tag but don't display contained bitmap
-images in this case.
+images.
* .. image:: ../../../docs/user/rst/images/biohazard-bitmap.svg
:width: 3em
:align: right
- A small, fixed-size SVG image with embedded bitmap, The ``:width:`` is
- set to 3 em in the rST source. Does not scale if wrapped in ``<object>``
- tags.
+ A small SVG image with embedded bitmap, The ``:width:`` is set to 3 em
+ in the rST source. Does not scale if wrapped in ``<object>`` tags
+ because there is no "viewBox" attribute.
* .. image:: ../../../docs/user/rst/images/biohazard-bitmap-scaling.svg
@@ -114,14 +94,14 @@
:width: 3em
:align: right
- A scaling SVG image with embedded bitmap, 3 em wide.
+ An SVG image with embedded bitmap and "viewBox", 3 em wide.
SVG images can also be put in figures:
- .. figure:: ../../../docs/user/rst/images/title.svg
+ .. figure:: ../../../docs/user/rst/images/title-scaling.svg
:alt: reStructuredText, the markup syntax
:width: 290 px
:height: 28 px
:align: center
-
+
SVG image in a figure.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|