diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
commit | cca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch) | |
tree | 146f39ded1c938019e1ed42d30923c2ac9e86789 /share/templates | |
parent | Initial commit. (diff) | |
download | inkscape-12fc8abae6d434cac7670a59ed3a67301cc2eb10.tar.xz inkscape-12fc8abae6d434cac7670a59ed3a67301cc2eb10.zip |
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/templates')
-rw-r--r-- | share/templates/A4leaflet-3fold-Roll.svg | 1245 | ||||
-rw-r--r-- | share/templates/CD_label_120x120.svg | 90 | ||||
-rw-r--r-- | share/templates/CMakeLists.txt | 44 | ||||
-rw-r--r-- | share/templates/LaTeX_Beamer.svg | 93 | ||||
-rw-r--r-- | share/templates/README | 26 | ||||
-rw-r--r-- | share/templates/Typography_Canvas.svg | 87 | ||||
-rw-r--r-- | share/templates/about_screen.svg | 99 | ||||
-rwxr-xr-x | share/templates/create_default_templates.py | 75 | ||||
-rw-r--r-- | share/templates/default.svg | 16 | ||||
-rw-r--r-- | share/templates/default_pt.svg | 38 | ||||
-rw-r--r-- | share/templates/default_px.svg | 38 | ||||
-rwxr-xr-x | share/templates/i18n.py | 20 | ||||
-rw-r--r-- | share/templates/no_layers.svg | 41 | ||||
-rw-r--r-- | share/templates/templates.h | 1 |
14 files changed, 1913 insertions, 0 deletions
diff --git a/share/templates/A4leaflet-3fold-Roll.svg b/share/templates/A4leaflet-3fold-Roll.svg new file mode 100644 index 0000000..448afbd --- /dev/null +++ b/share/templates/A4leaflet-3fold-Roll.svg @@ -0,0 +1,1245 @@ +<?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" + width="297mm" + height="210mm" + viewBox="0 0 297 210" + version="1.1"> + <title + id="title4039">A4 leaflet 3-fold Roll</title> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#000000" + borderopacity="0.3" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.2" + inkscape:cx="560" + inkscape:cy="400" + inkscape:document-units="mm" + inkscape:current-layer="layer1" + showgrid="true" + units="mm" + showguides="true" + inkscape:guide-bbox="true" + inkscape:snap-page="true" + inkscape:snap-bbox="false" + inkscape:snap-text-baseline="true"> + <inkscape:grid + units="mm" + spacingy="1" + spacingx="1" + id="grid4472" + type="xygrid" + originx="0" + originy="0" + empspacing="5" + dotted="true" /> + <sodipodi:guide + position="197,180" + orientation="-1,0" + id="guide7767" + inkscape:locked="false" + inkscape:label="99 mm for the Back cover" + inkscape:color="rgb(0,0,255)" /> + <sodipodi:guide + position="98,180" + orientation="-1,0" + id="guide7769" + inkscape:locked="false" + inkscape:label="98 mm for Flap outer" + inkscape:color="rgb(0,0,255)" /> + <sodipodi:guide + position="100,30" + orientation="1,0" + id="guide7850" + inkscape:locked="false" + inkscape:label="100 mm for Inside left" + inkscape:color="rgb(255,0,0)" /> + <sodipodi:guide + position="199,30" + orientation="1,0" + id="guide7852" + inkscape:locked="false" + inkscape:label="99 mm for Inside center" + inkscape:color="rgb(255,0,0)" /> + <sodipodi:guide + position="297,30" + orientation="1,0" + id="guide7854" + inkscape:locked="false" + inkscape:label="98 mm for Inside right" + inkscape:color="rgb(255,0,0)" /> + <sodipodi:guide + position="297,180" + orientation="-1,0" + id="guide7856" + inkscape:locked="false" + inkscape:label="100 mm for Front cover" + inkscape:color="rgb(0,0,255)" /> + </sodipodi:namedview> + <defs + id="defs2" /> + <metadata + id="metadata5"> + <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>A4 leaflet 3-fold Roll</dc:title> + <dc:date>2018-02-07</dc:date> + <dc:creator> + <cc:Agent> + <dc:title>Mihaela Jurković</dc:title> + </cc:Agent> + </dc:creator> + <dc:rights> + <cc:Agent> + <dc:title /> + </cc:Agent> + </dc:rights> + <dc:source /> + <dc:language>English</dc:language> + <cc:license + rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" /> + <dc:subject> + <rdf:Bag> + <rdf:li>A4 leaflet 3-fold</rdf:li> + </rdf:Bag> + </dc:subject> + <dc:description>An A4 page 3-fold Roll template with guides, print marks, and marked leaflet pages. Inner and outer page contents go into their respective Layers. </dc:description> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/publicdomain/zero/1.0/"> + <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> + <inkscape:_templateinfo> + <inkscape:_name>A4 leaflet 3-fold Roll</inkscape:_name> + <inkscape:author>Mihaela Jurković</inkscape:author> + <inkscape:_shortdesc>An A4 page 3-fold Roll template with guides, print marks, and marked leaflet pages. Inner and outer page contents go into their respective Layers.</inkscape:_shortdesc> + <inkscape:date>2018-02-07</inkscape:date> + <inkscape:_keywords>A4 leaflet 3-fold</inkscape:_keywords> + </inkscape:_templateinfo> + <g + transform="translate(0,-87)" + id="layer1" + inkscape:groupmode="layer" + inkscape:label="Outer" + style="display:inline"> + <text + id="text7783" + y="182" + x="247" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0000ff;stroke:none;stroke-width:0;" + y="182" + x="247" + id="tspan7779" + sodipodi:role="line">page 1</tspan><tspan + id="tspan7781" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0000ff;stroke:none;stroke-width:0;" + y="198" + x="247" + sodipodi:role="line">Front cover</tspan></text> + <text + id="text7789" + y="182" + x="147" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0000ff;stroke:none;stroke-width:0;" + y="182" + x="147" + id="tspan7785" + sodipodi:role="line">page 6</tspan><tspan + id="tspan7787" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0000ff;stroke:none;stroke-width:0;" + y="198" + x="147" + sodipodi:role="line">Back cover</tspan></text> + <text + xml:space="preserve" + x="50" + y="182" + id="text7775"><tspan + sodipodi:role="line" + id="tspan7773" + x="50" + y="182" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0000ff;stroke:none;stroke-width:0;">page 5</tspan><tspan + sodipodi:role="line" + x="50" + y="198" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0000ff;stroke:none;stroke-width:0;" + id="tspan7777">Flap outer</tspan></text> + </g> + <g + inkscape:groupmode="layer" + id="layer2" + inkscape:label="Inner" + style="display:none"> + <text + transform="translate(0,-87)" + xml:space="preserve" + x="247" + y="182" + id="text7796"><tspan + sodipodi:role="line" + id="tspan7792" + x="247" + y="182" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;stroke:none;stroke-width:0;">page 4</tspan><tspan + sodipodi:role="line" + x="247" + y="198" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;stroke:none;stroke-width:0;" + id="tspan7794">Inside right</tspan></text> + <text + transform="translate(0,-87)" + xml:space="preserve" + x="147" + y="182" + id="text7802"><tspan + sodipodi:role="line" + id="tspan7798" + x="147" + y="182" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;stroke:none;stroke-width:0;">page 3</tspan><tspan + sodipodi:role="line" + x="147" + y="198" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;stroke:none;stroke-width:0;" + id="tspan7800">Inside center</tspan></text> + <text + transform="translate(0,-87)" + id="text7808" + y="182" + x="50" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;stroke:none;stroke-width:0;" + y="182" + x="50" + id="tspan7804" + sodipodi:role="line">page 2</tspan><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:11px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;stroke:none;stroke-width:0;" + y="198" + x="50" + sodipodi:role="line" + id="tspan7846">Inside left</tspan></text> + </g> + <g + sodipodi:insensitive="true" + inkscape:groupmode="layer" + inkscape:label="Printing Marks" + id="printing-marks"> + <g + inkscape:label="CropMarks" + id="CropMarks"> + <path + style="stroke:#000000;stroke-width:0.25;fill:none" + id="cropTL1" + d="M 0,-5.0 L 0,-15.0" /> + <path + style="stroke:#000000;stroke-width:0.25;fill:none" + id="cropTL2" + d="M -5.0,0 L -15.0,0" /> + <path + style="stroke:#000000;stroke-width:0.25;fill:none" + id="cropTR1" + d="M 297.0,-5.0 L 297.0,-15.0" /> + <path + style="stroke:#000000;stroke-width:0.25;fill:none" + id="cropTR2" + d="M 302.0,0 L 312.0,0" /> + <path + style="stroke:#000000;stroke-width:0.25;fill:none" + id="cropBL1" + d="M 0,215.0 L 0,225.0" /> + <path + style="stroke:#000000;stroke-width:0.25;fill:none" + id="cropBL2" + d="M -5.0,210.0 L -15.0,210.0" /> + <path + style="stroke:#000000;stroke-width:0.25;fill:none" + id="cropBR1" + d="M 297.0,215.0 L 297.0,225.0" /> + <path + style="stroke:#000000;stroke-width:0.25;fill:none" + id="cropBR2" + d="M 302.0,210.0 L 312.0,210.0" /> + </g> + <g + inkscape:label="BleedMarks" + id="BleedMarks"> + <path + style="stroke-dashoffset:0;stroke:#000000;stroke-dasharray:4, 2, 1, 2;stroke-miterlimit:4;stroke-width:0.25;fill:none" + id="bleedTL1" + d="M -5.0,-5.0 L -5.0,-15.0" /> + <path + style="stroke-dashoffset:0;stroke:#000000;stroke-dasharray:4, 2, 1, 2;stroke-miterlimit:4;stroke-width:0.25;fill:none" + id="bleedTL2" + d="M -5.0,-5.0 L -15.0,-5.0" /> + <path + style="stroke-dashoffset:0;stroke:#000000;stroke-dasharray:4, 2, 1, 2;stroke-miterlimit:4;stroke-width:0.25;fill:none" + id="bleedTR1" + d="M 302.0,-5.0 L 302.0,-15.0" /> + <path + style="stroke-dashoffset:0;stroke:#000000;stroke-dasharray:4, 2, 1, 2;stroke-miterlimit:4;stroke-width:0.25;fill:none" + id="bleedTR2" + d="M 302.0,-5.0 L 312.0,-5.0" /> + <path + style="stroke-dashoffset:0;stroke:#000000;stroke-dasharray:4, 2, 1, 2;stroke-miterlimit:4;stroke-width:0.25;fill:none" + id="bleedBL1" + d="M -5.0,215.0 L -5.0,225.0" /> + <path + style="stroke-dashoffset:0;stroke:#000000;stroke-dasharray:4, 2, 1, 2;stroke-miterlimit:4;stroke-width:0.25;fill:none" + id="bleedBL2" + d="M -5.0,215.0 L -15.0,215.0" /> + <path + style="stroke-dashoffset:0;stroke:#000000;stroke-dasharray:4, 2, 1, 2;stroke-miterlimit:4;stroke-width:0.25;fill:none" + id="bleedBR1" + d="M 302.0,215.0 L 302.0,225.0" /> + <path + style="stroke-dashoffset:0;stroke:#000000;stroke-dasharray:4, 2, 1, 2;stroke-miterlimit:4;stroke-width:0.25;fill:none" + id="bleedBR2" + d="M 302.0,215.0 L 312.0,215.0" /> + </g> + <g + inkscape:label="RegistrationMarks" + id="RegistrationMarks"> + <g + id="regMarkL"> + <path + id="path4503" + transform="translate(-10.0,90.0) rotate(0)" + style="stroke:none;fill-opacity:1;fill:#000000" + d="m -0.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4505" + transform="translate(-10.0,90.0) rotate(0)" + style="stroke:none;fill-opacity:1;fill:#00ffff" + d="m -1.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4507" + transform="translate(-10.0,90.0) rotate(0)" + style="stroke:none;fill-opacity:1;fill:#ff00ff" + d="m -2.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4509" + transform="translate(-10.0,90.0) rotate(0)" + style="stroke:none;fill-opacity:1;fill:#ffff00" + d="m -3.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4511" + transform="translate(-10.0,90.0) rotate(0)" + style="stroke:none;fill-opacity:1;fill:#000000" + d="m -4.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + </g> + <g + id="regMarkR"> + <path + id="path4514" + transform="translate(307.0,90.0) rotate(180)" + style="stroke:none;fill-opacity:1;fill:#000000" + d="m -0.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4516" + transform="translate(307.0,90.0) rotate(180)" + style="stroke:none;fill-opacity:1;fill:#00ffff" + d="m -1.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4518" + transform="translate(307.0,90.0) rotate(180)" + style="stroke:none;fill-opacity:1;fill:#ff00ff" + d="m -2.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4520" + transform="translate(307.0,90.0) rotate(180)" + style="stroke:none;fill-opacity:1;fill:#ffff00" + d="m -3.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4522" + transform="translate(307.0,90.0) rotate(180)" + style="stroke:none;fill-opacity:1;fill:#000000" + d="m -4.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + </g> + <g + id="regMarkT"> + <path + id="path4525" + transform="translate(148.5,-10.0) rotate(90)" + style="stroke:none;fill-opacity:1;fill:#000000" + d="m -0.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4527" + transform="translate(148.5,-10.0) rotate(90)" + style="stroke:none;fill-opacity:1;fill:#00ffff" + d="m -1.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4529" + transform="translate(148.5,-10.0) rotate(90)" + style="stroke:none;fill-opacity:1;fill:#ff00ff" + d="m -2.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4531" + transform="translate(148.5,-10.0) rotate(90)" + style="stroke:none;fill-opacity:1;fill:#ffff00" + d="m -3.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4533" + transform="translate(148.5,-10.0) rotate(90)" + style="stroke:none;fill-opacity:1;fill:#000000" + d="m -4.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + </g> + <g + id="regMarkB"> + <path + id="path4536" + transform="translate(148.5,220.0) rotate(-90)" + style="stroke:none;fill-opacity:1;fill:#000000" + d="m -0.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4538" + transform="translate(148.5,220.0) rotate(-90)" + style="stroke:none;fill-opacity:1;fill:#00ffff" + d="m -1.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4540" + transform="translate(148.5,220.0) rotate(-90)" + style="stroke:none;fill-opacity:1;fill:#ff00ff" + d="m -2.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4542" + transform="translate(148.5,220.0) rotate(-90)" + style="stroke:none;fill-opacity:1;fill:#ffff00" + d="m -3.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + <path + id="path4544" + transform="translate(148.5,220.0) rotate(-90)" + style="stroke:none;fill-opacity:1;fill:#000000" + d="m -4.0,5.0 -1.0,0 5.0,-5.0 -5.0,-5.0 1.0,0 5.0,5.0 -5.0,5.0 z" /> + </g> + </g> + <g + inkscape:label="ColourBars" + id="PrintingColourBars"> + <g + transform="translate(158.5,-10.0) rotate(0)" + id="PrintingColourBarsT"> + <rect + id="rect4548" + y="-4.33333333333" + x="0.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(0,0,0)" /> + <rect + id="rect4550" + y="-4.33333333333" + x="3.33333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(25.5,25.5,25.5)" /> + <rect + id="rect4552" + y="-4.33333333333" + x="6.66666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(51.0,51.0,51.0)" /> + <rect + id="rect4554" + y="-4.33333333333" + x="10.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(76.5,76.5,76.5)" /> + <rect + id="rect4556" + y="-4.33333333333" + x="13.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(102.0,102.0,102.0)" /> + <rect + id="rect4558" + y="-4.33333333333" + x="16.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(127.5,127.5,127.5)" /> + <rect + id="rect4560" + y="-4.33333333333" + x="20.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(153.0,153.0,153.0)" /> + <rect + id="rect4562" + y="-4.33333333333" + x="23.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(178.5,178.5,178.5)" /> + <rect + id="rect4564" + y="-4.33333333333" + x="26.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(204.0,204.0,204.0)" /> + <rect + id="rect4566" + y="-4.33333333333" + x="30.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(229.5,229.5,229.5)" /> + <rect + id="rect4568" + y="-4.33333333333" + x="33.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(255.0,255.0,255.0)" /> + <rect + id="rect4570" + y="0" + x="0.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(0,255,255)" /> + <rect + id="rect4572" + y="0" + x="3.33333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(25.5,255,255)" /> + <rect + id="rect4574" + y="0" + x="6.66666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(51.0,255,255)" /> + <rect + id="rect4576" + y="0" + x="10.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(76.5,255,255)" /> + <rect + id="rect4578" + y="0" + x="13.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(102.0,255,255)" /> + <rect + id="rect4580" + y="0" + x="16.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(127.5,255,255)" /> + <rect + id="rect4582" + y="0" + x="20.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(153.0,255,255)" /> + <rect + id="rect4584" + y="0" + x="23.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(178.5,255,255)" /> + <rect + id="rect4586" + y="0" + x="26.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(204.0,255,255)" /> + <rect + id="rect4588" + y="0" + x="30.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(229.5,255,255)" /> + <rect + id="rect4590" + y="0" + x="33.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(255.0,255,255)" /> + <rect + id="rect4592" + y="-4.33333333333" + x="37.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,0,255)" /> + <rect + id="rect4594" + y="-4.33333333333" + x="41.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,25.5,255)" /> + <rect + id="rect4596" + y="-4.33333333333" + x="44.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,51.0,255)" /> + <rect + id="rect4598" + y="-4.33333333333" + x="47.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,76.5,255)" /> + <rect + id="rect4600" + y="-4.33333333333" + x="51.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,102.0,255)" /> + <rect + id="rect4602" + y="-4.33333333333" + x="54.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,127.5,255)" /> + <rect + id="rect4604" + y="-4.33333333333" + x="57.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,153.0,255)" /> + <rect + id="rect4606" + y="-4.33333333333" + x="61.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,178.5,255)" /> + <rect + id="rect4608" + y="-4.33333333333" + x="64.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,204.0,255)" /> + <rect + id="rect4610" + y="-4.33333333333" + x="67.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,229.5,255)" /> + <rect + id="rect4612" + y="-4.33333333333" + x="71.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,255.0,255)" /> + <rect + id="rect4614" + y="0" + x="37.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,0)" /> + <rect + id="rect4616" + y="0" + x="41.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,25.5)" /> + <rect + id="rect4618" + y="0" + x="44.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,51.0)" /> + <rect + id="rect4620" + y="0" + x="47.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,76.5)" /> + <rect + id="rect4622" + y="0" + x="51.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,102.0)" /> + <rect + id="rect4624" + y="0" + x="54.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,127.5)" /> + <rect + id="rect4626" + y="0" + x="57.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,153.0)" /> + <rect + id="rect4628" + y="0" + x="61.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,178.5)" /> + <rect + id="rect4630" + y="0" + x="64.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,204.0)" /> + <rect + id="rect4632" + y="0" + x="67.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,229.5)" /> + <rect + id="rect4634" + y="0" + x="71.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,255.0)" /> + </g> + <g + transform="translate(158.5,220.0) rotate(0)" + id="PrintingColourBarsB"> + <rect + id="rect4637" + y="-4.33333333333" + x="0.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(0,0,0)" /> + <rect + id="rect4639" + y="-4.33333333333" + x="3.33333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(25.5,25.5,25.5)" /> + <rect + id="rect4641" + y="-4.33333333333" + x="6.66666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(51.0,51.0,51.0)" /> + <rect + id="rect4643" + y="-4.33333333333" + x="10.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(76.5,76.5,76.5)" /> + <rect + id="rect4645" + y="-4.33333333333" + x="13.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(102.0,102.0,102.0)" /> + <rect + id="rect4647" + y="-4.33333333333" + x="16.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(127.5,127.5,127.5)" /> + <rect + id="rect4649" + y="-4.33333333333" + x="20.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(153.0,153.0,153.0)" /> + <rect + id="rect4651" + y="-4.33333333333" + x="23.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(178.5,178.5,178.5)" /> + <rect + id="rect4653" + y="-4.33333333333" + x="26.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(204.0,204.0,204.0)" /> + <rect + id="rect4655" + y="-4.33333333333" + x="30.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(229.5,229.5,229.5)" /> + <rect + id="rect4657" + y="-4.33333333333" + x="33.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#000" + height="3.33333333333" + fill="rgb(255.0,255.0,255.0)" /> + <rect + id="rect4659" + y="0" + x="0.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(0,255,255)" /> + <rect + id="rect4661" + y="0" + x="3.33333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(25.5,255,255)" /> + <rect + id="rect4663" + y="0" + x="6.66666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(51.0,255,255)" /> + <rect + id="rect4665" + y="0" + x="10.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(76.5,255,255)" /> + <rect + id="rect4667" + y="0" + x="13.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(102.0,255,255)" /> + <rect + id="rect4669" + y="0" + x="16.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(127.5,255,255)" /> + <rect + id="rect4671" + y="0" + x="20.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(153.0,255,255)" /> + <rect + id="rect4673" + y="0" + x="23.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(178.5,255,255)" /> + <rect + id="rect4675" + y="0" + x="26.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(204.0,255,255)" /> + <rect + id="rect4677" + y="0" + x="30.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(229.5,255,255)" /> + <rect + id="rect4679" + y="0" + x="33.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#0FF" + height="3.33333333333" + fill="rgb(255.0,255,255)" /> + <rect + id="rect4681" + y="-4.33333333333" + x="37.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,0,255)" /> + <rect + id="rect4683" + y="-4.33333333333" + x="41.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,25.5,255)" /> + <rect + id="rect4685" + y="-4.33333333333" + x="44.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,51.0,255)" /> + <rect + id="rect4687" + y="-4.33333333333" + x="47.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,76.5,255)" /> + <rect + id="rect4689" + y="-4.33333333333" + x="51.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,102.0,255)" /> + <rect + id="rect4691" + y="-4.33333333333" + x="54.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,127.5,255)" /> + <rect + id="rect4693" + y="-4.33333333333" + x="57.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,153.0,255)" /> + <rect + id="rect4695" + y="-4.33333333333" + x="61.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,178.5,255)" /> + <rect + id="rect4697" + y="-4.33333333333" + x="64.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,204.0,255)" /> + <rect + id="rect4699" + y="-4.33333333333" + x="67.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,229.5,255)" /> + <rect + id="rect4701" + y="-4.33333333333" + x="71.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#F0F" + height="3.33333333333" + fill="rgb(255,255.0,255)" /> + <rect + id="rect4703" + y="0" + x="37.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,0)" /> + <rect + id="rect4705" + y="0" + x="41.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,25.5)" /> + <rect + id="rect4707" + y="0" + x="44.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,51.0)" /> + <rect + id="rect4709" + y="0" + x="47.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,76.5)" /> + <rect + id="rect4711" + y="0" + x="51.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,102.0)" /> + <rect + id="rect4713" + y="0" + x="54.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,127.5)" /> + <rect + id="rect4715" + y="0" + x="57.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,153.0)" /> + <rect + id="rect4717" + y="0" + x="61.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,178.5)" /> + <rect + id="rect4719" + y="0" + x="64.3333333333" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,204.0)" /> + <rect + id="rect4721" + y="0" + x="67.6666666667" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,229.5)" /> + <rect + id="rect4723" + y="0" + x="71.0" + width="3.33333333333" + stroke-width="0.5" + stroke="#FF0" + height="3.33333333333" + fill="rgb(255,255,255.0)" /> + </g> + </g> + </g> +</svg> diff --git a/share/templates/CD_label_120x120.svg b/share/templates/CD_label_120x120.svg new file mode 100644 index 0000000..1f1e44b --- /dev/null +++ b/share/templates/CD_label_120x120.svg @@ -0,0 +1,90 @@ +<?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="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="120mm" + height="120mm" + viewBox="-60 -60 120 120" + sodipodi:docname="CD-Label_120x120.svg"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1" + inkscape:cx="226.771653543" + inkscape:cy="226.771653543" + inkscape:document-units="mm" + inkscape:current-layer="layer1" + showgrid="false" + units="mm" + showguides="true" + inkscape:guide-bbox="true" + inkscape:snap-global="true" + inkscape:snap-bbox="true" + inkscape:snap-bbox-midpoints="true" + inkscape:window-width="850" + inkscape:window-height="832" + inkscape:window-x="717" + inkscape:window-y="28" + inkscape:window-maximized="0" + inkscape:bbox-paths="true" + inkscape:bbox-nodes="true" + inkscape:snap-bbox-edge-midpoints="true" + inkscape:snap-grids="true"> + <sodipodi:guide + orientation="1,0" + position="226.771653543,226.771653543" + id="guide2827" /> + <sodipodi:guide + orientation="0,1" + position="226.771653543,226.771653543" + id="guide2829" /> + <inkscape:grid + type="xygrid" + id="grid3072" + empspacing="10" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" + units="mm" + dotted="false" + spacingx="0.1mm" + spacingy="0.1mm" /> + </sodipodi:namedview> + <metadata + id="metadata2822"> + <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 /> + </cc:Work> + </rdf:RDF> + </metadata> + <inkscape:_templateinfo> + <inkscape:_name>CD Label 120mmx120mm </inkscape:_name> + <inkscape:author>Tavmjong Bah, based on tempate by JazzyNico</inkscape:author> + <inkscape:_shortdesc>Simple CD Label template with disc's pattern.</inkscape:_shortdesc> + <inkscape:date>2014-10-06</inkscape:date> + <inkscape:_keywords>CD label 120x120 disc disk</inkscape:_keywords> + </inkscape:_templateinfo> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="Template" + style="fill:none;stroke:black;stroke-width:0.05"> + <circle cx="0" cy="0" r="60"/> + <circle cx="0" cy="0" r="19"/> + <circle cx="0" cy="0" r="7.5"/> + </g> +</svg> diff --git a/share/templates/CMakeLists.txt b/share/templates/CMakeLists.txt new file mode 100644 index 0000000..70665de --- /dev/null +++ b/share/templates/CMakeLists.txt @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +file(GLOB _FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.svg") + +add_custom_command( + OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/templates.h + COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/i18n.py ${_FILES} > ${CMAKE_CURRENT_SOURCE_DIR}/templates.h + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/i18n.py ${_FILES} +) +set_source_files_properties(${CMAKE_SOURCE_DIR}/templates.h PROPERTIES GENERATED TRUE) +add_custom_target(templates_h ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/templates.h) + +install(FILES ${_FILES} "README" DESTINATION ${INKSCAPE_SHARE_INSTALL}/templates) + + +# create localized versions of default.svg +if(ENABLE_NLS) + file(GLOB POFILES ${CMAKE_SOURCE_DIR}/po/*.po) + foreach(pofile ${POFILES}) + string(REGEX REPLACE "(.+(\\\\|/))+" "${CMAKE_BINARY_DIR}/po/" pofile ${pofile}) + string(REGEX REPLACE "\\.po$" ".gmo" pofile ${pofile}) + list(APPEND GMOFILES "${pofile}") + endforeach(pofile) + + add_custom_command( + OUTPUT default_templates.timestamp + COMMAND python3 ./create_default_templates.py ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/default.svg ${CMAKE_CURRENT_SOURCE_DIR}/create_default_templates.py ${GMOFILES} + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMENT "Generating localized default templates" + ) + add_custom_target(default_templates ALL DEPENDS default_templates.timestamp) + + get_inkscape_languages() + foreach(language_code ${INKSCAPE_LANGUAGE_CODES}) + string(MAKE_C_IDENTIFIER "${language_code}" language_code_escaped) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/default.${language_code}.svg + DESTINATION ${INKSCAPE_SHARE_INSTALL}/templates + COMPONENT translations.${language_code_escaped} + OPTIONAL) + endforeach() +else() + message(STATUS "Generation of localized default templates will be skipped (building without NLS)") +endif() diff --git a/share/templates/LaTeX_Beamer.svg b/share/templates/LaTeX_Beamer.svg new file mode 100644 index 0000000..e80e11a --- /dev/null +++ b/share/templates/LaTeX_Beamer.svg @@ -0,0 +1,93 @@ +<?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://web.resource.org/cc/" + 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" + width="453.5433" + height="340.15747" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.44.1" + sodipodi:docname="beamer.svg" + version="1.0"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#000000" + borderopacity="0.3" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1.540463" + inkscape:cx="226.77165" + inkscape:cy="170.07874" + inkscape:document-units="mm" + inkscape:current-layer="layer1" + inkscape:window-width="988" + inkscape:window-height="724" + inkscape:window-x="33" + inkscape:window-y="22" + width="12.8cm" + height="9.6cm" + units="cm" + showgrid="true" + gridspacingx="2mm" + gridspacingy="2mm" + grid_units="mm" + gridempspacing="5" + inkscape:object-paths="false" + inkscape:grid-points="true" + inkscape:grid-bbox="true" + inkscape:guide-points="true" + showguides="true" + inkscape:guide-bbox="true"> + <sodipodi:guide + orientation="vertical" + position="56.476527" + id="guide3573" /> + <sodipodi:guide + orientation="horizontal" + position="11.035643" + id="guide3579" /> + <sodipodi:guide + orientation="horizontal" + position="24.018753" + id="guide3886" /> + <sodipodi:guide + orientation="horizontal" + position="285.62841" + id="guide3988" /> + <sodipodi:guide + orientation="horizontal" + position="303.15561" + id="guide4081" /> + </sodipodi:namedview> + <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" /> + </cc:Work> + </rdf:RDF> + </metadata> + <inkscape:_templateinfo> + <inkscape:_name>LaTeX Beamer</inkscape:_name> + <inkscape:author>jiho-sf</inkscape:author> + <inkscape:_shortdesc>LaTeX beamer template with helping grid.</inkscape:_shortdesc> + <inkscape:date>2007-05-20</inkscape:date> + <inkscape:_keywords>LaTex LaTeX latex grid beamer</inkscape:_keywords> + </inkscape:_templateinfo> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" /> +</svg> diff --git a/share/templates/README b/share/templates/README new file mode 100644 index 0000000..b6eb3c3 --- /dev/null +++ b/share/templates/README @@ -0,0 +1,26 @@ +This folder contains the templates for new documents created in +Inkscape. They're listed in the "File > New From Template..." submenu. +A template may store any document-specific settings (such as initial +zoom and view, paper size, background and borders, metadata, window +geometry, grid and guide settings, export hints) as well as any +objects. To add a new template, simply use "File > Save Template". +Alternatively you can manually save or copy it into this folder or +(preferred option) to the corresponding "templates" directory in your +profile directory. + +Procedural templates are located in the adjacent 'extensions' +directory. By convention, they begin with 'empty_'. + + +## Default template ## + +At startup or when creating a new document, Inkscape will load the +default template, which is named "default.svg". A localized version in +the current locale (default.*.svg) will be preferred over the English +version if available. To customize the default template simply use +"File > Save Template" and make sure to enable "Set as default +template". Alternatively you can manually edit the files in this +folder or (preferred option) save or copy them to the corresponding +"templates" directory in your profile directory. Default templates in +the profile directory will always be preferred over the stock versions +that ship with Inkscape (i.e. the files in this folder). diff --git a/share/templates/Typography_Canvas.svg b/share/templates/Typography_Canvas.svg new file mode 100644 index 0000000..c6b848d --- /dev/null +++ b/share/templates/Typography_Canvas.svg @@ -0,0 +1,87 @@ +<?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" + height="1000" + width="1000" + sodipodi:docname="Typography_Canvas.svg"> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#000000" + borderopacity="0.3" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.5" + inkscape:cx="500" + inkscape:cy="500" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="false" + showguides="true" + inkscape:window-width="1280" + inkscape:window-height="737" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + showborder="true" + inkscape:showpageshadow="false"> + <sodipodi:guide + id="guide_baseline" + inkscape:label="baseline" + position="0,253" + orientation="0,1" /> + <sodipodi:guide + id="guide_ascender" + inkscape:label="ascender" + position="0,945" + orientation="0,1" /> + <sodipodi:guide + id="guide_caps" + inkscape:label="caps" + position="0,896" + orientation="0,1" /> + <sodipodi:guide + id="guide_xheight" + inkscape:label="xheight" + position="0,729" + orientation="0,1" /> + <sodipodi:guide + id="guide_descender" + inkscape:label="descender" + position="0,28" + orientation="0,1" /> + </sodipodi:namedview> + <defs + id="defs4" /> + <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 /> + </cc:Work> + </rdf:RDF> + </metadata> + <inkscape:_templateinfo> + <inkscape:_name>Typography Canvas</inkscape:_name> + <inkscape:author>Felipe C. da S. Sanc...</inkscape:author> + <inkscape:_shortdesc>Empty typography canvas with helping guidelines.</inkscape:_shortdesc> + <inkscape:date>2011-05-26</inkscape:date> + <inkscape:_keywords>guidelines typography canvas</inkscape:_keywords> + </inkscape:_templateinfo> + <g + id="layer1" + inkscape:groupmode="layer" + inkscape:label="Layer 1" /> +</svg> diff --git a/share/templates/about_screen.svg b/share/templates/about_screen.svg new file mode 100644 index 0000000..86b231e --- /dev/null +++ b/share/templates/about_screen.svg @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + width="750" + height="625" + viewBox="0 0 750 625" + version="1.1" + sodipodi:docname="about_screen.svg" + id="svg685" + inkscape:version="1.2-dev (37aac6d2d2, 2022-01-27, custom)" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs687" /> + <sodipodi:namedview + pagecolor="#b1b1b1" + bordercolor="#2a2a2a" + borderopacity="1" + inkscape:pageshadow="0" + inkscape:pageopacity="0" + inkscape:pagecheckerboard="true" + inkscape:showpageshadow="false" + inkscape:document-units="px" + showgrid="false" + units="px" + width="750px" + height="1140px" + borderlayer="true" + inkscape:zoom="0.35014432" + inkscape:cx="1099.5466" + inkscape:cy="44.267462" + inkscape:current-layer="layer1" + id="namedview670" + inkscape:blackoutopacity="0.0" + inkscape:deskcolor="#494949" + inkscape:window-maximized="1"> + <inkscape:page + x="0" + y="0" + width="750" + height="625" + id="page1792" + inkscape:label="About Screen" /> + <inkscape:page + x="800.33966" + y="-1.2340232" + width="960" + height="360" + id="page1794" + inkscape:label="Website Download Splash" /> + <inkscape:page + x="931.97632" + y="401.65384" + width="700" + height="220" + id="page4330" + inkscape:label="Welcome Screen" /> + </sodipodi:namedview> + <g + inkscape:label="Background" + inkscape:groupmode="layer" + id="bg" + sodipodi:insensitive="true"> + <rect + style="fill:#ffffff;stroke-width:1.109;stop-color:#000000" + id="rect194" + width="750" + height="625" + x="0" + y="0" /> + <path + id="rect194-3" + style="fill:#ffffff;stroke-width:1.109;stop-color:#000000" + d="M 800.33966,-1.2340232 V 358.76598 h 54.57812 v -71.65039 h 850.84372 v 71.65039 h 54.5781 V -1.2340232 Z" /> + <rect + style="fill:#ffffff;stroke-width:1.109;stop-color:#000000" + id="rect1266" + width="700" + height="220" + x="931.97632" + y="401.65381" /> + <text + xml:space="preserve" + style="font-size:21.3333px;line-height:1.25;font-family:Aclonica;-inkscape-font-specification:Aclonica;text-align:start;letter-spacing:0px;word-spacing:0px;fill:#ffffff;stroke-width:0.264583" + x="1006.1695" + y="-39.8265" + id="text7093-6-5-5"><tspan + sodipodi:role="line" + id="tspan7091-7-3-6" + style="font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:start" + x="1006.1695" + y="-39.8265">Optional formats to consider when making your graphic</tspan></text> + </g> + <g + id="layer1" + inkscape:groupmode="layer" + inkscape:label="Layer 1" /> +</svg> diff --git a/share/templates/create_default_templates.py b/share/templates/create_default_templates.py new file mode 100755 index 0000000..11017c7 --- /dev/null +++ b/share/templates/create_default_templates.py @@ -0,0 +1,75 @@ +#!/usr/bin/env python3 +# +# Creates localized default templates +# (uses default.svg as base and reads localized strings directly from .po/.gmo files) +# + +from __future__ import print_function +from __future__ import unicode_literals # make all literals unicode strings by default (even in Python 2) + +import gettext +import glob +import os +import shutil +import sys +from io import open # needed for support of encoding parameter in Python 2 + + +LAYER_STRING = 'Layer' + + +if len(sys.argv) != 3: + sys.exit("Usage:\n %s ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}" % sys.argv[0]) + +source_dir = sys.argv[1] +binary_dir = sys.argv[2] + + +# get available languages (should match the already created .gmo files) +gmofiles = glob.glob(binary_dir + '/po/*.gmo') + +languages = gmofiles +languages = [os.path.basename(language) for language in languages] # split filename from path +languages = [os.path.splitext(language)[0] for language in languages] # split extension + + +# process each language sequentially +for language in languages: + # copy .gmo file into a location where gettext can find and use it + source = binary_dir + '/po/' + language + '.gmo' + destination_dir = binary_dir + '/po/locale/' + language + '/LC_MESSAGES/' + destination = destination_dir + 'inkscape.mo' + + if not os.path.isdir(destination_dir): + os.makedirs(destination_dir) + shutil.copy(source, destination) + +# do another loop to ensure we've copied all the translations before using them +for language in languages: + # get translation with help of gettext + translation = gettext.translation('inkscape', localedir=binary_dir + '/po/locale', languages=[language]) + translated_string = translation.gettext(LAYER_STRING) + + if type(translated_string) != type(LAYER_STRING): # python2 compat (make sure translation is a Unicode string) + translated_string = translated_string.decode('utf-8') + + # now create localized version of English template file (if we have a translation) + template_file = source_dir + '/share/templates/default.svg' + output_file = binary_dir + '/share/templates/default.' + language + '.svg' + + if os.path.isfile(output_file): + os.remove(output_file) + if translated_string != LAYER_STRING: + with open(template_file, 'r', encoding='utf-8', newline='\n') as file: + filedata = file.read() + filedata = filedata.replace('Layer', translated_string) + with open(output_file, 'w', encoding='utf-8', newline='\n') as file: + file.write(filedata) + + +# create timestamp file (indicates last successful creation for build system) +timestamp_file = binary_dir + '/share/templates/default_templates.timestamp' +if os.path.exists(timestamp_file): + os.utime(timestamp_file, None) +else: + open(timestamp_file, 'a').close() diff --git a/share/templates/default.svg b/share/templates/default.svg new file mode 100644 index 0000000..42455ab --- /dev/null +++ b/share/templates/default.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<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" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://web.resource.org/cc/" + xmlns:dc="http://purl.org/dc/elements/1.1/" + width="210mm" + height="297mm" + viewBox="0 0 210 297"> + <defs /> + <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" /> +</svg> diff --git a/share/templates/default_pt.svg b/share/templates/default_pt.svg new file mode 100644 index 0000000..3a0cfda --- /dev/null +++ b/share/templates/default_pt.svg @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<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" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://web.resource.org/cc/" + xmlns:dc="http://purl.org/dc/elements/1.1/" + width="210mm" + height="297mm" + viewBox="0 0 595.275591 841.889764"> + <defs /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#000000" + borderopacity="0.3" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.35" + inkscape:cx="375" + inkscape:cy="520" + inkscape:document-units="pt" + inkscape:current-layer="layer1" /> + <metadata> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" /> +</svg> diff --git a/share/templates/default_px.svg b/share/templates/default_px.svg new file mode 100644 index 0000000..8e6401e --- /dev/null +++ b/share/templates/default_px.svg @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<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" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://web.resource.org/cc/" + xmlns:dc="http://purl.org/dc/elements/1.1/" + width="210mm" + height="297mm" + viewBox="0 0 793.7007874 1122.519685"> + <defs /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#000000" + borderopacity="0.30" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.35" + inkscape:cx="375" + inkscape:cy="520" + inkscape:document-units="px" + inkscape:current-layer="layer1" /> + <metadata> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" /> +</svg> diff --git a/share/templates/i18n.py b/share/templates/i18n.py new file mode 100755 index 0000000..96593b6 --- /dev/null +++ b/share/templates/i18n.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from xml.dom import minidom +import sys + +elements = ["inkscape:_name", "inkscape:_shortdesc", "inkscape:_keywords"] + +sys.stdout.write("char * stringlst = [") + +for filename in sys.argv[1:]: + doc = minidom.parse(filename) + templates = doc.getElementsByTagName('inkscape:_templateinfo') + + if templates: + for element in elements: + lines = templates[0].getElementsByTagName(element) + if lines: + sys.stdout.write("N_(\"" + lines[0].firstChild.nodeValue + "\"),") + +sys.stdout.write("];") diff --git a/share/templates/no_layers.svg b/share/templates/no_layers.svg new file mode 100644 index 0000000..442b5c0 --- /dev/null +++ b/share/templates/no_layers.svg @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<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" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://web.resource.org/cc/" + xmlns:dc="http://purl.org/dc/elements/1.1/" + width="210mm" + height="297mm" + viewBox="0 0 210 297"> + <defs /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#000000" + borderopacity="0.3" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.35" + inkscape:cx="400" + inkscape:cy="560" + inkscape:document-units="mm"/> + <metadata> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <inkscape:_templateinfo> + <inkscape:_name>No Layers</inkscape:_name> + <inkscape:_shortdesc>Empty sheet with no layers</inkscape:_shortdesc> + <inkscape:_keywords>no layers empty</inkscape:_keywords> + </inkscape:_templateinfo> +</svg> diff --git a/share/templates/templates.h b/share/templates/templates.h new file mode 100644 index 0000000..46eb1be --- /dev/null +++ b/share/templates/templates.h @@ -0,0 +1 @@ +char * stringlst = [N_("A4 leaflet 3-fold Roll"),N_("An A4 page 3-fold Roll template with guides, print marks, and marked leaflet pages. Inner and outer page contents go into their respective Layers."),N_("A4 leaflet 3-fold"),N_("CD Label 120mmx120mm "),N_("Simple CD Label template with disc's pattern."),N_("CD label 120x120 disc disk"),N_("LaTeX Beamer"),N_("LaTeX beamer template with helping grid."),N_("LaTex LaTeX latex grid beamer"),N_("Typography Canvas"),N_("Empty typography canvas with helping guidelines."),N_("guidelines typography canvas"),N_("No Layers"),N_("Empty sheet with no layers"),N_("no layers empty"),];
\ No newline at end of file |