Collection of mostly command line tools / PHP scripts. Somewhat out of date.

⌈⌋ branch:  scripts + snippets


Check-in [f2bde364c7]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:add LICENSE, fix location=inx reference
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f2bde364c7915b4f979f22ae6dac442c5b2932f2
User & Date: mario 2022-09-26 11:19:56
Context
2022-09-26
12:17
rename pmd2inx to pmd2inks (to avert assumption as extension, Inkscapes' extension discover glob is seemingly *inx, not *.inx) check-in: d13aa43ca4 user: mario tags: trunk
11:19
add LICENSE, fix location=inx reference check-in: f2bde364c7 user: mario tags: trunk
2022-09-25
12:57
sample files for export_gif check-in: cabe3847e9 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added inkscape/LICENSE.









































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Copyright (c) 2016 "Jesús Espino and Xavier Julian"
Copyright (c) 2022 Mario Salzer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

Changes to inkscape/Makefile.

1
2
3
4
5
6
7
8
9
10
11
12
13
SHELL   := /bin/bash 

zip:
	zip export_gif.zip export_gif.py export_gif.inx saveas_gif.inx pmd2inx
	gpg --yes --default-key 15EA8459B4448BEF4EA9C45E6A12374187A40D51 -b -a -o export_gif.zip.sig -s export_gif.zip
	
inx:
	./pmd2inx export_gif.py | xmllint -format - > export_gif.inx

deb:
	xpm -s src -t deb -n inkscape-export-gif --prefix /usr/share/inkscape/extensions -f export_gif.py
	dpkg-sig -k incl -s builder *_$(shell version export_gif.py)_*deb




|









1
2
3
4
5
6
7
8
9
10
11
12
13
SHELL   := /bin/bash 

zip:
	zip export_gif.zip export_gif.py export_gif.inx saveas_gif.inx pmd2inx LICENSE
	gpg --yes --default-key 15EA8459B4448BEF4EA9C45E6A12374187A40D51 -b -a -o export_gif.zip.sig -s export_gif.zip
	
inx:
	./pmd2inx export_gif.py | xmllint -format - > export_gif.inx

deb:
	xpm -s src -t deb -n inkscape-export-gif --prefix /usr/share/inkscape/extensions -f export_gif.py
	dpkg-sig -k incl -s builder *_$(shell version export_gif.py)_*deb

Changes to inkscape/export_gif.py.

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#    { type: label, description: "Fallback background color" }
#    { name: background, type: color, value: "0", description: "Background color for transparent layers" }
# disabled-config:
#    { name: preconvert_png, type: bool, value: 1, description: "Preconvert PNGs via Inkscape (higher quality)" }
#    { name: pillow, type: bool, value: 0, description: "Use Pillow to generate GIF (no transperancy merging)" }
# inx-export: .gif, image/gif, GIF slideshow (*.gif), Graphics Interchange Format 98a
# architecture: all
# pack: export_gif.py, *.inx, pmd2inx=pmd2inks
# format: off
# author: mario#include-once:org
# url: https://inkscape.org/~culturaljuice/★export_gif
# orig: Xavi, https://github.com/jespino/inkscape-export-layers
#
# Generates a GIF slideshow from image layers ☰  (Shift+Ctrl+L). The menu
# option Extensions➔>Export➔GIF-slideshow… iterates over layers to generate







|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#    { type: label, description: "Fallback background color" }
#    { name: background, type: color, value: "0", description: "Background color for transparent layers" }
# disabled-config:
#    { name: preconvert_png, type: bool, value: 1, description: "Preconvert PNGs via Inkscape (higher quality)" }
#    { name: pillow, type: bool, value: 0, description: "Use Pillow to generate GIF (no transperancy merging)" }
# inx-export: .gif, image/gif, GIF slideshow (*.gif), Graphics Interchange Format 98a
# architecture: all
# pack: export_gif.py, *.inx, pmd2inx=pmd2inks, LICENSE=/usr/share/doc/inkscape-export-gif/copyright
# format: off
# author: mario#include-once:org
# url: https://inkscape.org/~culturaljuice/★export_gif
# orig: Xavi, https://github.com/jespino/inkscape-export-layers
#
# Generates a GIF slideshow from image layers ☰  (Shift+Ctrl+L). The menu
# option Extensions➔>Export➔GIF-slideshow… iterates over layers to generate

Changes to inkscape/pmd2inx.

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
xml_template = """<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>{name}</name>
    <description>{desc}</description>
    <!--<schema:softwareVersion xmlns:schema="https://schema.org/">{version}</schema:softwareVersion>-->
    <category>{submenu}</category>
    <id>{id}</id>
    <dependency type="executable" location="extensions">{fn}</dependency>
    <label appearance="header">{header}</label>
    {params}
    <effect needs-live-preview="false">
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="{submenu}" />
        </effects-menu>
    </effect>
    {export}
    <script>
        <command location="extensions" interpreter="python">{fn}</command>
    </script>
</inkscape-extension>
<!--
{args}
-->
"""
mode_map = {







|










|







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
xml_template = """<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>{name}</name>
    <description>{desc}</description>
    <!--<schema:softwareVersion xmlns:schema="https://schema.org/">{version}</schema:softwareVersion>-->
    <category>{submenu}</category>
    <id>{id}</id>
    <dependency type="executable" location="inx">{fn}</dependency>
    <label appearance="header">{header}</label>
    {params}
    <effect needs-live-preview="false">
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="{submenu}" />
        </effects-menu>
    </effect>
    {export}
    <script>
        <command location="inx" interpreter="python">{fn}</command>
    </script>
</inkscape-extension>
<!--
{args}
-->
"""
mode_map = {