fixes: groups + transparency

This commit is contained in:
vv01f 2019-06-21 22:32:46 +02:00
parent d50b0f82f5
commit 4a363d81c0
No known key found for this signature in database
GPG Key ID: 02625A16AC1D1FF6
2 changed files with 75 additions and 70 deletions

View File

@ -145,10 +145,10 @@
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="-22.625771"
inkscape:cy="150.42233"
inkscape:cx="100.30866"
inkscape:cy="146.42233"
inkscape:document-units="px"
inkscape:current-layer="other"
inkscape:current-layer="html"
showgrid="false"
inkscape:window-width="1366"
inkscape:window-height="707"
@ -349,11 +349,10 @@
sodipodi:role="line">HTML</tspan></text>
</g>
<g
transform="translate(-3.3789062,-1.8653534)"
id="html"
inkscape:groupmode="layer"
inkscape:label="html-prod"
style="display:none">
style="display:inline">
<g
id="html-prod"
inkscape:label="#g1017">
@ -480,55 +479,58 @@
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169">ePUB</tspan></text>
</g>
<g
style="display:none"
style="display:inline"
inkscape:label="epub-prod"
inkscape:groupmode="layer"
id="epub"
transform="translate(-3.3789062,-1.8653534)">
<path
style="display:inline;opacity:1;fill:#999999;fill-opacity:1;stroke:none;stroke-width:1.01779449;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke"
d="M 12.684021,3.2445979 H 37.676926 V 35.865352 H 12.684021 Z"
id="rect1800"
inkscape:connector-curvature="0" />
<path
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.99062216;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke"
d="M 11.934021,2.3570979 H 36.176926 V 34.215355 H 11.934021 Z"
id="rect1802"
inkscape:connector-curvature="0" />
<path
style="display:inline;opacity:1;fill:url(#radialGradient1786);fill-opacity:1;stroke:#000000;stroke-width:0.60230362;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke"
d="M 11.865788,2.3930571 H 36.606389 V 34.449011 H 11.865788 Z"
id="rect1804"
inkscape:connector-curvature="0" />
<path
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.64091748;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke"
d="M 3.6993649,9.7429504 H 33.986045 V 21.334326 H 3.6993649 Z"
id="rect1806"
inkscape:connector-curvature="0" />
<g
aria-label="ePUB"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11.49126816px;line-height:1.25;font-family:monospace;-inkscape-font-specification:monospace;letter-spacing:0px;word-spacing:0px;display:inline;fill:#006400;fill-opacity:1;stroke:none;stroke-width:0.28728169"
id="text1810">
id="epub-prod">
<path
d="m 11.147259,19.342876 q -0.572319,0.235661 -1.1670824,0.353491 -0.5947629,0.117831 -1.2568574,0.117831 -1.5766828,0 -2.4127175,-0.841646 -0.8304236,-0.847256 -0.8304236,-2.435161 0,-1.537406 0.8023688,-2.42955 0.8023688,-0.892145 2.1882786,-0.892145 1.3971317,0 2.1658345,0.830424 0.774314,0.824813 0.774314,2.328553 v 0.667705 H 7.1522474 q 0.00561,0.740648 0.4376557,1.105362 0.4320447,0.364713 1.2905233,0.364713 0.566708,0 1.1165831,-0.162718 0.5498755,-0.162719 1.1502495,-0.51621 z M 9.7557378,15.807965 q -0.011222,-0.650873 -0.3366582,-0.98192 -0.3198254,-0.336658 -0.9482541,-0.336658 -0.5667081,0 -0.9033663,0.34788 -0.3366583,0.342269 -0.3983789,0.976309 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169"
id="path1822"
inkscape:connector-curvature="0" />
inkscape:connector-curvature="0"
id="rect1800"
d="M 12.684021,3.2445979 H 37.676926 V 35.865352 H 12.684021 Z"
style="display:inline;opacity:1;fill:#999999;fill-opacity:1;stroke:none;stroke-width:1.01779449;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke" />
<path
d="m 14.440898,12.665821 v 2.457605 h 0.678928 q 0.813591,0 1.139027,-0.274937 0.331047,-0.274938 0.331047,-0.953865 0,-0.678928 -0.331047,-0.953865 -0.325436,-0.274938 -1.139027,-0.274938 z M 12.785662,11.2743 h 2.272443 q 1.73379,0 2.491271,0.617207 0.763092,0.617207 0.763092,2.003117 0,1.385909 -0.763092,2.003116 -0.757481,0.617207 -2.491271,0.617207 h -0.617207 v 3.136533 h -1.655236 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169"
id="path1824"
inkscape:connector-curvature="0" />
inkscape:connector-curvature="0"
id="rect1802"
d="M 11.934021,2.3570979 H 36.176926 V 34.215355 H 11.934021 Z"
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.99062216;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke" />
<path
d="M 19.384163,16.559835 V 11.2743 H 21.0394 v 5.700747 q 0,0.628428 0.319825,0.987531 0.319826,0.353491 0.886534,0.353491 0.566708,0 0.886533,-0.353491 0.319825,-0.359103 0.319825,-0.987531 V 11.2743 h 1.655237 v 5.285535 q 0,1.705735 -0.678928,2.480049 -0.678927,0.774314 -2.182667,0.774314 -1.49813,0 -2.182668,-0.774314 -0.678928,-0.774314 -0.678928,-2.480049 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169"
id="path1826"
inkscape:connector-curvature="0" />
inkscape:connector-curvature="0"
id="rect1804"
d="M 11.865788,2.3930571 H 36.606389 V 34.449011 H 11.865788 Z"
style="display:inline;opacity:1;fill:url(#radialGradient1786);fill-opacity:1;stroke:#000000;stroke-width:0.60230362;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke" />
<path
d="m 28.002615,15.847242 v 2.480049 h 1.09975 q 0.791147,0 1.105361,-0.269327 0.319825,-0.269327 0.319825,-0.937032 0,-0.678928 -0.331047,-0.976309 -0.331047,-0.297381 -1.094139,-0.297381 z m 0,-3.265585 v 1.947006 h 1.09975 q 0.628429,0 0.892144,-0.224438 0.269327,-0.224439 0.269327,-0.740649 0,-0.516209 -0.274938,-0.746259 -0.269326,-0.23566 -0.886533,-0.23566 z m -1.599127,-1.318579 h 2.698877 q 1.397132,0 2.098503,0.533043 0.706982,0.527431 0.706982,1.582293 0,0.80798 -0.415212,1.262469 -0.415212,0.454488 -1.21758,0.527431 0.959476,0.09539 1.442019,0.645262 0.488155,0.549875 0.488155,1.537406 0,1.211969 -0.729427,1.756234 -0.729426,0.544264 -2.37344,0.544264 h -2.698877 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169"
id="path1828"
inkscape:connector-curvature="0" />
inkscape:connector-curvature="0"
id="rect1806"
d="M 3.6993649,9.7429504 H 33.986045 V 21.334326 H 3.6993649 Z"
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.64091748;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke" />
<g
id="text1810"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11.49126816px;line-height:1.25;font-family:monospace;-inkscape-font-specification:monospace;letter-spacing:0px;word-spacing:0px;display:inline;fill:#006400;fill-opacity:1;stroke:none;stroke-width:0.28728169"
aria-label="ePUB">
<path
inkscape:connector-curvature="0"
id="path1822"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169"
d="m 11.147259,19.342876 q -0.572319,0.235661 -1.1670824,0.353491 -0.5947629,0.117831 -1.2568574,0.117831 -1.5766828,0 -2.4127175,-0.841646 -0.8304236,-0.847256 -0.8304236,-2.435161 0,-1.537406 0.8023688,-2.42955 0.8023688,-0.892145 2.1882786,-0.892145 1.3971317,0 2.1658345,0.830424 0.774314,0.824813 0.774314,2.328553 v 0.667705 H 7.1522474 q 0.00561,0.740648 0.4376557,1.105362 0.4320447,0.364713 1.2905233,0.364713 0.566708,0 1.1165831,-0.162718 0.5498755,-0.162719 1.1502495,-0.51621 z M 9.7557378,15.807965 q -0.011222,-0.650873 -0.3366582,-0.98192 -0.3198254,-0.336658 -0.9482541,-0.336658 -0.5667081,0 -0.9033663,0.34788 -0.3366583,0.342269 -0.3983789,0.976309 z" />
<path
inkscape:connector-curvature="0"
id="path1824"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169"
d="m 14.440898,12.665821 v 2.457605 h 0.678928 q 0.813591,0 1.139027,-0.274937 0.331047,-0.274938 0.331047,-0.953865 0,-0.678928 -0.331047,-0.953865 -0.325436,-0.274938 -1.139027,-0.274938 z M 12.785662,11.2743 h 2.272443 q 1.73379,0 2.491271,0.617207 0.763092,0.617207 0.763092,2.003117 0,1.385909 -0.763092,2.003116 -0.757481,0.617207 -2.491271,0.617207 h -0.617207 v 3.136533 h -1.655236 z" />
<path
inkscape:connector-curvature="0"
id="path1826"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169"
d="M 19.384163,16.559835 V 11.2743 H 21.0394 v 5.700747 q 0,0.628428 0.319825,0.987531 0.319826,0.353491 0.886534,0.353491 0.566708,0 0.886533,-0.353491 0.319825,-0.359103 0.319825,-0.987531 V 11.2743 h 1.655237 v 5.285535 q 0,1.705735 -0.678928,2.480049 -0.678927,0.774314 -2.182667,0.774314 -1.49813,0 -2.182668,-0.774314 -0.678928,-0.774314 -0.678928,-2.480049 z" />
<path
inkscape:connector-curvature="0"
id="path1828"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:monospace;-inkscape-font-specification:'monospace Bold';fill:#006400;fill-opacity:1;stroke-width:0.28728169"
d="m 28.002615,15.847242 v 2.480049 h 1.09975 q 0.791147,0 1.105361,-0.269327 0.319825,-0.269327 0.319825,-0.937032 0,-0.678928 -0.331047,-0.976309 -0.331047,-0.297381 -1.094139,-0.297381 z m 0,-3.265585 v 1.947006 h 1.09975 q 0.628429,0 0.892144,-0.224438 0.269327,-0.224439 0.269327,-0.740649 0,-0.516209 -0.274938,-0.746259 -0.269326,-0.23566 -0.886533,-0.23566 z m -1.599127,-1.318579 h 2.698877 q 1.397132,0 2.098503,0.533043 0.706982,0.527431 0.706982,1.582293 0,0.80798 -0.415212,1.262469 -0.415212,0.454488 -1.21758,0.527431 0.959476,0.09539 1.442019,0.645262 0.488155,0.549875 0.488155,1.537406 0,1.211969 -0.729427,1.756234 -0.729426,0.544264 -2.37344,0.544264 h -2.698877 z" />
</g>
</g>
</g>
<g
@ -536,29 +538,32 @@
id="other"
inkscape:groupmode="layer"
inkscape:label="other-prod"
style="display:none">
<path
style="display:inline;opacity:1;fill:#999999;fill-opacity:1;stroke:none;stroke-width:1.01779449;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke"
d="M 15.983707,6.110612 37.582499,3.211474 V 35.832227 H 12.589594 Z"
id="rect1002"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.60230362;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke"
d="M 19.771379,10.359926 V 2.359929 H 36.511962 V 34.415886 H 11.771379 V 10.359929 Z"
id="rect1006"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccc" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#008000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.66666669;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 19.103516,12.498047 v 0.333984 12.580078 l 5.265625,6.107422 4.802734,-5.347656 0.0078,-9.769531 h -1.332032 l -0.0078,9.257812 -3.447266,3.84375 -3.957031,-4.58789 V 13.830078 h 5.167969 v 8.558594 l -1.333985,1.333984 -1.333984,-1.333984 v -7.058594 h -1.332031 v 7.611328 l 2.667968,2.666016 2.664063,-2.667969 V 12.498047 Z"
id="path1831"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path1031"
d="m 11.771379,10.359929 h 8 v -8.0707 z"
style="display:inline;opacity:1;fill:#ececec;fill-opacity:1;stroke:#000000;stroke-width:0.60230362;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke" />
style="display:inline">
<g
id="other-prod">
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="rect1002"
d="M 15.983707,6.110612 37.582499,3.211474 V 35.832227 H 12.589594 Z"
style="display:inline;opacity:1;fill:#999999;fill-opacity:1;stroke:none;stroke-width:1.01779449;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke" />
<path
sodipodi:nodetypes="ccccccc"
inkscape:connector-curvature="0"
id="rect1006"
d="M 19.771379,10.359926 V 2.359929 H 36.511962 V 34.415886 H 11.771379 V 10.359929 Z"
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.60230362;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke" />
<path
inkscape:connector-curvature="0"
id="path1831"
d="m 19.103516,12.498047 v 0.333984 12.580078 l 5.265625,6.107422 4.802734,-5.347656 0.0078,-9.769531 h -1.332032 l -0.0078,9.257812 -3.447266,3.84375 -3.957031,-4.58789 V 13.830078 h 5.167969 v 8.558594 l -1.333985,1.333984 -1.333984,-1.333984 v -7.058594 h -1.332031 v 7.611328 l 2.667968,2.666016 2.664063,-2.667969 V 12.498047 Z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#008000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.66666669;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
<path
style="display:inline;opacity:1;fill:#ececec;fill-opacity:1;stroke:#000000;stroke-width:0.60230362;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0.37795278;stroke-opacity:1;paint-order:fill markers stroke"
d="m 11.771379,10.359929 h 8 v -8.0707 z"
id="path1031"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -15,7 +15,7 @@ for iconsize in $(echo 64 ); do # in px, assuming its a square, a = iconsize; sm
# option `--verb=LayerShowAll` works with GUI only, possibility: split SVG in separate files beforhand
inkscape --without-gui --file=${if} \
--export-id-only --export-id=${ofi}"-prod" \
--export-background-opacity=1 --export-area-page \
--export-background-opacity=0 --export-area-page \
--export-png=${of} --export-width=${iconsize} --export-height=${iconsize}
done