wok-next view gcompris/stuff/patches/fix-svg.patch @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
line source
1 Fix the errors that prevents svgcleaner from optimizing the SVGs:
3 ${install}/usr/share/gcompris/boards/babymatch/fusee.svg:
4 Error: the document does not have an SVG element.
6 ${install}/usr/share/gcompris/boards/play_piano.svg:
7 Error: invalid color at 159:28.
9 ${install}/usr/share/gcompris/boards/louis_braille/piano.svg:
10 Error: invalid color at 89:28.
12 ${install}/usr/share/gcompris/boards/instruments/piano.svg:
13 Error: invalid color at 89:28.
15 ${install}/usr/share/gcompris/boards/memory/gcompris_band.svg:
16 Error: invalid color at 3029:28.
18 --- a/src/babymatch-activity/resources/babymatch/fusee.svg
19 +++ b/src/babymatch-activity/resources/babymatch/fusee.svg
20 @@ -1,6 +1,6 @@
21 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
22 <!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
23 -<svg:svg
24 +<svg
25 xmlns:dc="http://purl.org/dc/elements/1.1/"
26 xmlns:cc="http://creativecommons.org/ns#"
27 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
28 @@ -16,9 +16,9 @@
29 inkscape:version="0.46"
30 inkscape:output_extension="org.inkscape.output.svg.inkscape"
31 version="1.0">
32 - <svg:metadata
33 + <metadata
34 id="metadata16" />
35 - <svg:defs
36 + <defs
37 id="defs550">
38 <inkscape:perspective
39 sodipodi:type="inkscape:persp3d"
40 @@ -27,7 +27,7 @@
41 inkscape:vp_z="500 : 250 : 1"
42 inkscape:persp3d-origin="250 : 166.66667 : 1"
43 id="perspective20" />
44 - </svg:defs>
45 + </defs>
46 <sodipodi:namedview
47 id="base"
48 showgrid="true"
49 @@ -39,65 +39,65 @@
50 inkscape:window-x="115"
51 inkscape:window-y="25"
52 inkscape:current-layer="svg548" />
53 - <svg:g
54 + <g
55 id="g846"
56 transform="matrix(0.2576836,0,0,0.2576836,-3.2999786,-6.7252894)">
57 - <svg:path
58 + <path
59 style="fill:#ff4000;fill-rule:evenodd;stroke-width:3.75"
60 d="M 271.335,362.637 C 271.335,362.637 284.054,399.945 298.468,431.318 C 312.883,462.692 338.321,477.954 341.713,477.954 C 345.104,477.954 348.496,460.148 347.648,449.973 C 346.8,439.798 323.058,419.447 363.759,451.668 C 404.459,483.889 433.288,497.456 430.744,486.433 C 434.984,459.299 387.5,402.489 418.026,412.664 C 448.551,422.839 500.274,446.581 468.053,409.272 C 435.832,371.964 402.763,355.005 430.745,355.853 C 458.726,356.701 485.859,369.42 472.293,344.83 C 458.726,320.24 393.456,281.998 365.475,265.887 C 343.429,276.91 300.165,305.826 271.335,362.637 z"
61 id="path671"
62 sodipodi:nodetypes="cccccccccccc"
63 transform="matrix(1.004098,0,0,1.014736,-1.111864,-7.223473)" />
64 - <svg:path
65 + <path
66 style="fill:#ffff33;fill-opacity:0.696296;fill-rule:evenodd;stroke-width:12.5;stroke-linejoin:round"
67 d="M 284.054,339.743 C 284.054,339.743 293.381,384.683 303.556,398.249 C 313.731,411.816 316.275,410.12 318.819,391.466 C 321.363,372.812 303.556,354.157 334.081,374.508 C 364.607,394.858 390.892,420.295 375.63,388.922 C 360.367,357.549 356.127,349.918 377.325,360.941 C 398.523,371.964 418.874,380.443 393.435,349.918 C 373.934,327.872 412.937,321.936 419.721,319.393 C 435.832,321.937 351.04,274.452 342.561,274.452 C 333.233,276.148 287.445,332.959 284.054,339.743 z"
68 id="path672"
69 sodipodi:nodetypes="cccccccccc" />
70 - <svg:path
71 + <path
72 style="fill:#d9d9d9;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linejoin:round;stroke-dasharray:none"
73 d="M 43.244,60.7763 C 122.101,62.472 321.362,94.6929 397.675,290.563 C 371.389,295.651 306.948,358.397 296.773,393.161 C 102.599,293.955 47.4836,137.089 43.244,60.7763 z"
74 id="path663"
75 sodipodi:nodetypes="cccc"
76 transform="translate(-25.43768,-29.67728)" />
77 - <svg:path
78 + <path
79 style="fill:#bfbfbf;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linejoin:round;stroke-dasharray:none"
80 d="M 189.087,321.936 C 189.087,321.936 192.478,408.424 192.478,409.272 C 192.478,410.12 296.773,457.604 302.708,460.148 L 297.621,392.314 C 288.294,393.162 205.197,339.743 189.087,321.936 z"
81 id="path664"
82 sodipodi:nodetypes="ccccc"
83 transform="translate(-25.43768,-29.67728)" />
84 - <svg:path
85 + <path
86 style="fill:#bfbfbf;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linejoin:round;stroke-dasharray:none"
87 d="M 190.761,322.825 C 190.761,322.825 192.478,408.424 192.478,409.272 C 192.478,410.12 296.773,457.604 302.708,460.148 L 297.621,392.314 C 264.809,382.406 210.2,343.258 190.761,322.825 z"
88 id="path665"
89 sodipodi:nodetypes="ccccc"
90 transform="matrix(-2.457462e-2,0.999698,0.999698,2.457462e-2,-13.30614,-47.2839)" />
91 - <svg:path
92 + <path
93 style="fill:#bfbfbf;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linejoin:round;stroke-dasharray:none"
94 d="M 235.31677,210.16905 C 235.31677,210.16905 249.57675,244.29165 251.98394,249.85491 C 254.93778,253.60324 329.57296,314.51127 335.05153,317.92908 L 331.87269,296.24835 C 323.87845,288.54971 255.06929,228.23237 235.31677,210.16905 z"
95 id="path666"
96 sodipodi:nodetypes="ccccc" />
97 - <svg:path
98 + <path
99 style="fill:#bfbfbf;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linejoin:round;stroke-dasharray:none"
100 d="M 232.63653,209.39949 L 215.86803,233.67972 L 236.51282,269.41364 L 322.26679,337.15802 L 334.6544,318.61254 L 252.66302,249.37251 L 232.63653,209.39949 z"
101 id="path667"
102 sodipodi:nodetypes="ccccccc" />
103 - <svg:path
104 + <path
105 style="fill:#bfbfbf;fill-rule:evenodd;stroke:#000000;stroke-width:12.5;stroke-linejoin:round"
106 d="M 124.645,131.154 C 95.8152,170.158 155.169,218.49 183.151,183.725 C 217.068,141.329 158.562,100.629 124.645,131.154 z"
107 id="path668"
108 sodipodi:nodetypes="ccc" />
109 - <svg:path
110 + <path
111 style="fill:#aeffff;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linejoin:round;stroke-dasharray:none"
112 d="M 132.276,135.393 C 153.474,115.043 202.653,139.633 180.608,176.094 C 156.018,207.466 105.991,167.615 132.276,135.393 z"
113 id="path669"
114 sodipodi:nodetypes="ccc" />
115 - <svg:path
116 + <path
117 style="fill:#ffffff;fill-opacity:0.75;fill-rule:evenodd;stroke-width:12.5;stroke-linejoin:round"
118 d="M 148.386,134.502 C 141.52512,139.23955 123.48549,154.12588 138.211,171.854 C 150.93,175.246 168.736,136.198 148.386,134.502 z"
119 id="path670"
120 sodipodi:nodetypes="ccc" />
121 - </svg:g>
122 - <svg:metadata
123 + </g>
124 + <metadata
125 id="metadata18">
126 <rdf:RDF
127 id="RDF616">
128 @@ -130,5 +130,5 @@
129 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
130 </cc:Work>
131 </rdf:RDF>
132 - </svg:metadata>
133 -</svg:svg>
134 + </metadata>
135 +</svg>
136 --- a/src/play_piano-activity/play_piano.svg
137 +++ b/src/play_piano-activity/play_piano.svg
138 @@ -156,7 +156,7 @@
139 offset="0"
140 id="stop11328" />
141 <stop
142 - style="stop-color:none"
143 + style="stop-color:#ffffff;stop-opacity:0;"
144 offset="1"
145 id="stop11330" />
146 </linearGradient>
147 --- a/src/louis_braille-activity/resources/louis_braille/piano.svg
148 +++ b/src/louis_braille-activity/resources/louis_braille/piano.svg
149 @@ -86,7 +86,7 @@
150 offset="0"
151 id="stop11328" />
152 <stop
153 - style="stop-color:none"
154 + style="stop-color:#ffffff;stop-opacity:0;"
155 offset="1"
156 id="stop11330" />
157 </linearGradient>
158 --- a/src/instruments-activity/resources/instruments/piano.svg
159 +++ b/src/instruments-activity/resources/instruments/piano.svg
160 @@ -86,7 +86,7 @@
161 offset="0"
162 id="stop11328" />
163 <stop
164 - style="stop-color:none"
165 + style="stop-color:#ffffff;stop-opacity:0;"
166 offset="1"
167 id="stop11330" />
168 </linearGradient>
169 --- a/src/memory-activity/resources/memory/gcompris_band.svg
170 +++ b/src/memory-activity/resources/memory/gcompris_band.svg
171 @@ -3026,7 +3026,7 @@
172 offset="0"
173 id="stop6049" />
174 <stop
175 - style="stop-color:none"
176 + style="stop-color:#3f2f17;stop-opacity:0;"
177 offset="1"
178 id="stop6051" />
179 </linearGradient>