More options for elements

Flesh out your ideas for new or improved Inkscape features before submitting a request.
iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

More options for elements

Postby iconberg » Wed Feb 11, 2015 12:48 am

Hi,

i would like to see more options for elements and layers like:

    - only visible (not printing): would be nice to mark input fields for a template for example
    - lock positon/size (but editable, mainly for text but also color/filling/stroke): also a good use for templates

    - not sure is someone would need the opposite, not visible but printing

What do you think?

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: More options for elements

Postby hulf2012 » Wed Feb 11, 2015 2:16 am

Hello,
I believe, It can be, partially or perhaps totally done, using layers.

http://tavmjong.free.fr/INKSCAPE/MANUAL ... ayers.html

Allthough, a print icon in the layer dialog could be usefull,... like in CAD drawings.
Keep in mind that SVG still is a format for web pages. The printing thing is not one of their strong points
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Re: More options for elements

Postby iconberg » Wed Feb 11, 2015 4:37 am

Hi,

i tried if i can use the existing options visible and lock but cant archive the effect i need.

I understand that such a function is not part of the SVG but with an attribute it would be easy for inkscape to archive this.
Primarly it should be for use with inkscape to improve the workflow with templates. In the finished SVG it can be discarded or left behind.

added:
Similar programs have such option, i find them quite useful and guess other would too.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: More options for elements

Postby hulf2012 » Wed Feb 11, 2015 5:00 am

Sorry... right now i don't see it.

In inkscape ther are options to lock or hide some objects, the problem is that the user later forget what objects where hidden or locked. The SVG format allows that (hidden, lock, visibility, (switch??)).

You say that the layer system is not enough... But what other system have in mind?
You say other programs can do it... do you have a link to one example of that?.

To develop more about your idea, one document can be edited or viewed differently by different users. A view for printing is just a user called printer. Or say you are a teacher and you create a exam document for different students. Your version of the document (teacher user ) will have the answers, but the version for your students (user student 1, user student 2 etc,...) will have the answers hidden and maybe some questions personalized....
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Re: More options for elements

Postby iconberg » Wed Feb 11, 2015 6:36 am

Hi,

i make a example how i want to realize an extension.
(An example program would be nicelabel or bartender. But also coral draw or adobe std to create pdf forms has such options)

You see an example label we want to create with inkscape. There is normaly a barcode, a logo or little picture, some fixed text and some to fill in via typing or from a file.
The fields which are "connected" to a field from a csv-file for example should be marked with the name of the data field (<red> fields).
So i can easy see from which the data comes, cause often there is no fixed text that labels the "database" fields, like No., color, surface,...
The fields that should be filled by typing should be fixed in position and size to prevent moving to secure the layout is not going messed up.
For that an option would be nice that fixes the field but allows enter new text also.
And the red label fields should not be printed or converted in pdf for example.

Hope this makes clear for what such options would be useful.
I know inkscape is not make for such purposes but it needs only some little points to get it ready for other useful task too.

greetz

added: :( Why isnt the svg shown as gfx instead of source here :shock:

[svg]
<?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="8.2677164in"
height="11.692913in"
viewBox="0 0 744.09449 1052.3622"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="Zeichnung.svg"
inkscape:export-filename="C:\Temp\example.png"
inkscape:export-xdpi="48.380001"
inkscape:export-ydpi="48.380001">
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.83336326"
inkscape:cx="288.05026"
inkscape:cy="526.1811"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1028"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
units="in" />
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Ebene 1">
<g
transform="translate(372,526)"
style="fill:#000000"
id="barcode">
<g
id="g3408"
transform="matrix(4.4552479,0,0,4.4552479,-210.32834,236.30971)"
sodipodi:insensitive="true">
<rect
x="0"
y="0"
width="1"
height="34"
id="barcode_bar1" />
<rect
x="2"
y="0"
width="1"
height="34"
id="barcode_bar3" />
<rect
x="6"
y="0"
width="2"
height="30"
id="barcode_bar5" />
<rect
x="9"
y="0"
width="1"
height="30"
id="barcode_bar7" />
<rect
x="11"
y="0"
width="1"
height="30"
id="barcode_bar9" />
<rect
x="14"
y="0"
width="3"
height="30"
id="barcode_bar11" />
<rect
x="19"
y="0"
width="2"
height="30"
id="barcode_bar13" />
<rect
x="23"
y="0"
width="1"
height="30"
id="barcode_bar15" />
<rect
x="26"
y="0"
width="1"
height="30"
id="barcode_bar17" />
<rect
x="29"
y="0"
width="2"
height="30"
id="barcode_bar19" />
<rect
x="32"
y="0"
width="1"
height="30"
id="barcode_bar21" />
<rect
x="37"
y="0"
width="1"
height="30"
id="barcode_bar23" />
<rect
x="40"
y="0"
width="3"
height="30"
id="barcode_bar25" />
<rect
x="44"
y="0"
width="1"
height="30"
id="barcode_bar27" />
<rect
x="46"
y="0"
width="1"
height="34"
id="barcode_bar29" />
<rect
x="48"
y="0"
width="1"
height="34"
id="barcode_bar31" />
<rect
x="50"
y="0"
width="2"
height="30"
id="barcode_bar33" />
<rect
x="54"
y="0"
width="2"
height="30"
id="barcode_bar35" />
<rect
x="57"
y="0"
width="2"
height="30"
id="barcode_bar37" />
<rect
x="60"
y="0"
width="2"
height="30"
id="barcode_bar39" />
<rect
x="64"
y="0"
width="1"
height="30"
id="barcode_bar41" />
<rect
x="69"
y="0"
width="1"
height="30"
id="barcode_bar43" />
<rect
x="71"
y="0"
width="1"
height="30"
id="barcode_bar45" />
<rect
x="73"
y="0"
width="3"
height="30"
id="barcode_bar47" />
<rect
x="78"
y="0"
width="1"
height="30"
id="barcode_bar49" />
<rect
x="81"
y="0"
width="3"
height="30"
id="barcode_bar51" />
<rect
x="85"
y="0"
width="1"
height="30"
id="barcode_bar53" />
<rect
x="88"
y="0"
width="3"
height="30"
id="barcode_bar55" />
<rect
x="92"
y="0"
width="1"
height="34"
id="barcode_bar57" />
<rect
x="94"
y="0"
width="1"
height="34"
id="barcode_bar59" />
<text
x="47"
y="39"
style="font-size:9px;text-align:center;text-anchor:middle"
xml:space="preserve"
id="barcode_text">4 001234 123455 </text>
</g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:66.42067719px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-307.05103"
y="-405.1301"
id="text3464"
sodipodi:linespacing="125%"
sodipodi:insensitive="true"><tspan
sodipodi:role="line"
id="tspan3466"
x="-307.05103"
y="-405.1301">Sample item</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:55.95038223px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-305.81445"
y="-163.98471"
id="text3452"
sodipodi:linespacing="125%"
sodipodi:insensitive="true"><tspan
sodipodi:role="line"
x="-305.81445"
y="-163.98471"
id="tspan3456">No.:</tspan><tspan
sodipodi:role="line"
x="-305.81445"
y="-94.04673"
id="tspan3460">Color:</tspan><tspan
sodipodi:role="line"
x="-305.81445"
y="-24.108755"
id="tspan3462">Surface:</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:55.95038223px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-62.167"
y="-163.24707"
id="text3480"
sodipodi:linespacing="125%"
sodipodi:insensitive="true"><tspan
sodipodi:role="line"
id="tspan3482"
x="-62.167"
y="-163.24707">01234</tspan><tspan
sodipodi:role="line"
x="-62.167"
y="-93.30909"
id="tspan3484">green</tspan><tspan
sodipodi:role="line"
x="-62.167"
y="-23.371115"
id="tspan3486">100% rubber</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:29.67900848px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-303.70889"
y="-456.39984"
id="text3508"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3510"
x="-303.70889"
y="-456.39984">&lt;name&gt;</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:29.67900848px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-58.594322"
y="-206.79872"
id="text3508-6"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3510-1"
x="-58.594322"
y="-206.79872">&lt;itemno&gt;</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:29.67900848px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-59.794273"
y="-130.0015"
id="text3508-5"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3510-7"
x="-59.794273"
y="-130.0015">&lt;color&gt;</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:29.67900848px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-58.594315"
y="-66.40377"
id="text3508-9"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3510-76"
x="-58.594315"
y="-66.40377">&lt;surface&gt;</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:29.67900848px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="135.48604"
y="-278.5441"
id="text3508-6-6"
sodipodi:linespacing="125%"
inkscape:export-xdpi="48.380001"
inkscape:export-ydpi="48.380001"><tspan
sodipodi:role="line"
id="tspan3510-1-9"
x="135.48604"
y="-278.5441">&lt;logo&gt;</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:29.67900848px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-78.106293"
y="439.03012"
id="text3508-6-8"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3510-1-0"
x="-78.106293"
y="439.03012">&lt;ean13&gt;</tspan></text>
</g>
<rect
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:5,5;stroke-dashoffset:0;stroke-opacity:1"
id="rect4374"
width="201.59276"
height="175.19371"
x="506.38184"
y="35.998684" />
</g>
</svg>

[/svg]

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: More options for elements

Postby hulf2012 » Wed Feb 11, 2015 9:34 am

Well...
I think it's diferent to what you described in your first message.
I 'm not sure if it's what you are looking for, but according to your description I believe the answer is yes :
http://wiki.colivre.net/Aurium/InkscapeGenerator

I recently used to create several certificates from a course here in my country.

Off topic:
I also don't know how does it work the "[svg]" tag in this forum. If you want to upload a svg file, you can attach it but first it should be zipped. Or you can a give a link of your file in dropbox or a similar service.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Re: More options for elements

Postby iconberg » Wed Feb 11, 2015 5:59 pm

Yes, this project is similar, seen it before. But it is an sh script, not a python program.
I need some improvements like inserting barcodes for example, i dont want to implement this via sh (i even wonder if this would run on win, didnt try it), so i have to recode in python.

The both options are not a must for it, but would be nice.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: More options for elements

Postby tylerdurden » Wed Feb 11, 2015 11:02 pm

Can perhaps be done with javascript and html:
viewtopic.php?f=5&t=16250&p=60825
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: More options for elements

Postby tylerdurden » Wed Feb 11, 2015 11:37 pm

iconberg wrote:added: :( Why isnt the svg shown as gfx instead of source here :shock:


To display the svg:
As the tooltip illustrates, the bbcode inserts the svg file via URL, i.e. the file must be on the web somewhere else. Similar to using the insert image tags ( [img])
SVG-embedBBcode1.jpg
hover mouse pointer for tootips (where available)
SVG-embedBBcode1.jpg (6.21 KiB) Viewed 3874 times



SVG files can be attached locally, but not displayed.
Attachments
Zeichnung.svg
(8.78 KiB) Downloaded 334 times
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Re: More options for elements

Postby iconberg » Wed Feb 11, 2015 11:55 pm

tylerdurden wrote:Can perhaps be done with javascript and html:
viewtopic.php?f=5&t=16250&p=60825


Yeah, thanks for the point.
I guess i go with a html+python (instead of javascript, i hate it) interface and only the design is done in inkscape with an minimal extension.


Return to “Inkscape Ideas”