Search found 50 matches

by pelle
Tue Jul 24, 2018 6:26 pm
Forum: Inkscape Resources
Topic: countersheets extension (counters, cards, mail merge from CSV)
Replies: 9
Views: 934

Re: countersheets extension (counters, cards, mail merge from CSV)

Thanks! It can replace any SVG attribute, however some are difficult to use. For instance if you set the transform attribute sometimes parts can end up all over the page (have on my TODO list that there needs to be a way to specify rotations and scales in a safe way). It should be possible to set a ...
by pelle
Mon Jul 23, 2018 8:27 pm
Forum: Inkscape Resources
Topic: countersheets extension (counters, cards, mail merge from CSV)
Replies: 9
Views: 934

Re: countersheets extension (counters, cards, mail merge from CSV)

Is this similar to the Generator extension? http://wiki.inkscape.org/wiki/index.php/Extension_repository#Generator Yes! The idea is fundamentally the same. I think I was in contact with the guy making that extension some time in the past. I do not know if the generator collates the things it genera...
by pelle
Mon Jul 23, 2018 7:33 pm
Forum: Inkscape Resources
Topic: countersheets extension (counters, cards, mail merge from CSV)
Replies: 9
Views: 934

Re: countersheets extension (counters, cards, mail merge from CSV)

It is not so much technical terminology as boardgames terminology. :) You draw something in Inkscape, and then you want to make many copies of it in the same document, but each copy has to be slightly different (texts modified or colors changed or really any SVG attributes modified) and possibly you...
by pelle
Sun Jul 22, 2018 10:16 pm
Forum: Inkscape Resources
Topic: countersheets extension (counters, cards, mail merge from CSV)
Replies: 9
Views: 934

countersheets extension (counters, cards, mail merge from CSV)

Just tagged my now over 10 years old countersheets extension as version 2.1. Draw templates as groups in Inkscape, then read data from a CSV file and you get new layers with sheets of "counters" (or whatever it is that you want to do; it is kind of a generic mail-merge tool really, but it ...
by pelle
Sat Mar 10, 2018 8:38 am
Forum: Programming
Topic: Substitute for flowImage to inline images in text from extension
Replies: 10
Views: 2928

Re: Substitute for flowImage to inline images in text from extension

Yes, finding someone else is a good idea. I understand how the text does not explain very well at all what it does. Added scaling text to fit some other element to my TODO list for 2.2. I think one way is to add it as a keyword in the CSV header cell, and if enabled it will scale it to fit the bound...
by pelle
Fri Mar 09, 2018 5:30 pm
Forum: Programming
Topic: Substitute for flowImage to inline images in text from extension
Replies: 10
Views: 2928

Re: Substitute for flowImage to inline images in text from extension

I am not so good with presentation (marketing?) unfortunately. Also need a video. Showing how to do a few things would help. Many struggle with just copying the two files into the Inkscape extensions folder. And then that they need to figure out the full path of the CSV file. After that it is easy e...
by pelle
Thu Mar 08, 2018 7:23 pm
Forum: Programming
Topic: automate text input from .txt and place in inkscape?
Replies: 23
Views: 4294

Re: automate text input from .txt and place in inkscape?

I did not see this earlier because I do not log in often. My countersheets-extension (see https://www.boardgamegeek.com/thread/299033/inkscape-extensions-boardgame-development ) can cope with centered text (at least I never had any issues with it, just making sure the text style is set to align cent...
by pelle
Thu Mar 08, 2018 7:10 pm
Forum: Programming
Topic: Substitute for flowImage to inline images in text from extension
Replies: 10
Views: 2928

Re: Substitute for flowImage to inline images in text from extension

I managed to come up with a work-around for this (less than two years after posting the original question!) by inserting a square unicode character in a tspan, then launch inkscape --queary-all to get the positions of all elements and look at what coordinates (and in what size) those squares ended u...
by pelle
Wed Jan 18, 2017 1:41 am
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Re: Writing extensions and units/dpi (broken in 0.92)

Asking around at Launchpad and inkscape-dev seems to have helped (or at least I understand the issue better). There is a bug over a year old about unittouu not working properly for old documents (or any other documents that do not have user-units that are not one of the predefined standard lengths)....
by pelle
Tue Jan 10, 2017 8:47 pm
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Re: Writing extensions and units/dpi (broken in 0.92)

Yes, hexmapextension could be easily fixed by just making sure to use unitstouu everywhere, but still not sure what is wrong about the coordinates in the countersheetsextension (that uses a lot more magic and calculations on transforms to figure out how to position things, but as far as I can see do...
by pelle
Mon Jan 09, 2017 11:03 pm
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Re: Writing extensions and units/dpi (broken in 0.92)

Hexmap extension works in 0.92 if I set the viewBox attribute to the same value as is used in the 0.91 template. It looks as if unittouu helper function in 0.92 calculates the actual size of user-units so that if I use that everywhere (instead of hardcoding 1 inch = 90 px as in hexmapextension) it s...
by pelle
Mon Jan 09, 2017 6:57 pm
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Re: Writing extensions and units/dpi (broken in 0.92)

Thanks! I added a Question for it on launchpad a few days ago (and now mentioned as a comment in your bug).

https://answers.launchpad.net/inkscape/+question/431543
by pelle
Fri Jan 06, 2017 7:54 am
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Re: Writing extensions and units/dpi (broken in 0.92)

If I put some templates in a new document and generate a countersheet there (instead of opening an old existing SVG document with templates) then that issue with user-units kicks in and the generated counters are way outside of the document because they are translated in mm instead of pixels.
by pelle
Fri Jan 06, 2017 7:47 am
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Re: Writing extensions and units/dpi (broken in 0.92)

Just multiplying all coordinates read from --query-all by 90.0/96.0 made the countersheets work as expected. Of course using that hack will make the extension break for 0.91 and older instead. Also perhaps something can still break depending on if Inkscape is applying some magic to convert the dpi o...
by pelle
Thu Jan 05, 2017 10:20 pm
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Re: Writing extensions and units/dpi (broken in 0.92)

I need to investigate a bit more before I start writing bug reports. Compared the output of --query-all between 0.91 and 0.92 and the output differs for the same file. The x coordinate reported for one of my templates used by the extension are for instance -605.6053 in 0.92, but -567.75497 in 0.91 a...
by pelle
Thu Jan 05, 2017 9:07 am
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Re: Writing extensions and units/dpi (broken in 0.92)

Just creating a new empty documents makes it use a viewport that is the same size as the document in mm, so the user-units are mm, which explains the error in hex-size. Since I have to use user-units in specifying path coordinates I guess I somehow needs a way to get the size of user-units in the ex...
by pelle
Thu Jan 05, 2017 8:09 am
Forum: Discuss Software Issues
Topic: Writing extensions and units/dpi (broken in 0.92)
Replies: 13
Views: 1826

Writing extensions and units/dpi (broken in 0.92)

I updated to 0.92 just now and tested my extensions, and it looks like various distances and sizes are all off in irregular and confusing ways. I expected maybe a few % off (uniformly) because of the 90 to 96 dpi change I saw mentioned in the 0.92 changelog, but it is worse than that. The hexmap ext...
by pelle
Thu Oct 27, 2016 6:13 am
Forum: Programming
Topic: Substitute for flowImage to inline images in text from extension
Replies: 10
Views: 2928

Re: Substitute for flowImage to inline images in text from extension

OK, SVG 2.0 uses CSS to layout text in various shapes with automatic line-breaks. Looks better than the old flow-hacks, but unfortunately I do not see any mentions of support for inlining images there.

https://www.w3.org/TR/SVG2/text.html#Te ... ontentArea
by pelle
Thu Oct 27, 2016 6:09 am
Forum: Programming
Topic: Substitute for flowImage to inline images in text from extension
Replies: 10
Views: 2928

Re: Substitute for flowImage to inline images in text from extension

Yes, flow layout in SVG sounds useful (and Inkscape has at least partial support). Here is the description for SVG 1.2: https://www.w3.org/TR/2004/WD-SVG12-20041027/flow.html. But no I can't find a mention for what the plan is for 2.0. Seems like flowImage is not included, or any of the other flow e...
by pelle
Wed Oct 26, 2016 5:59 pm
Forum: Programming
Topic: Substitute for flowImage to inline images in text from extension
Replies: 10
Views: 2928

Substitute for flowImage to inline images in text from extension

I want my extension (https://github.com/lifelike/countersheetsextension) to be able to insert images in flowing text. SVG 1.2 supports this by using flowImage elements together with flowPara. Inkscape however only supports flowPara. I googled and all I could find was a bug report for this from 2005 ...
by pelle
Sun May 24, 2015 9:24 am
Forum: Help with using Inkscape
Topic: Lock an object to prevent it from change, but still move
Replies: 5
Views: 2114

Re: Lock an object to prevent it from change, but still move

I know that locking is not the correct term, because it is indeed used to completely lock something. It was the closest word I could come up with. Pressing the mouse-button on an object that is not selected and immediately moving it and then releasing works, because then the resize-arrows never show...
by pelle
Sat May 23, 2015 12:27 am
Forum: Help with using Inkscape
Topic: Lock an object to prevent it from change, but still move
Replies: 5
Views: 2114

Lock an object to prevent it from change, but still move

I want to make many objects "read-only" so I can still drag them around, but not accidentally resize or otherwise modify them. Is there som trick to achieve that? I read that there is a way to lock objects, but that seems to also prevent moving them around? Alternatively if there is some w...
by pelle
Sun May 15, 2011 8:13 am
Forum: Programming
Topic: Transforms properly in extension
Replies: 1
Views: 1034

Re: Transforms properly in extension

Regarding the use elements: One workaround found by one of my users is to make sure all the possible elements to use for the xlink reference are centered on the same position in the SVG file. This isn't easy to maintain when there are many possible elements to reference. Another workaround I prefer ...
by pelle
Sun May 15, 2011 8:09 am
Forum: Programming
Topic: Transforms properly in extension
Replies: 1
Views: 1034

Transforms properly in extension

I'm have some old problems with my extension that I get frequent requests from users about fixing. Now that I am working on a new version maybe I might make an attempt. The problem is that I copy subtrees (contents of specific groups) of the SVG, putting multiple copies (often slightly modified) els...
by pelle
Fri Jan 28, 2011 7:18 pm
Forum: Discuss Software Issues
Topic: Inkscape and OS X 10.6 Snow Leopard
Replies: 48
Views: 37608

Re: Inkscape and OS X 10.6 Snow Leopard

Following one of the links above to install lxml from source fixed the problem for me (on a new Mac, Snow Leopard, Python 2.6.1, Inkscape 0.48.0 r9654). Didn't have to remove MacPorts or manually copy anything or anything else complicated like that, just download and install the latest lxml. Hasn't ...

Go to advanced search