On Sat, 2014-10-11 at 07:13 +0200, su_v wrote:
On 2014-10-10 21:21 , Tavmjong Bah wrote:
I've replaced a large fraction of the templates in the experimental branch by "procedural" templates. This unclutters quite a bit the Templates menu as well as offering overall more options. Please test your favorite templates and give me feedback.
Great!
Would anyone be interested in an even more generic procedural template which instead of presets presets offers a number of options from the Document Properties dialog?
Snapshot (WIP, not finished): https://gist.github.com/su-v/d2f0fdc10b1d3ea7898e
But where is the auto-draw tab?
Your python fu puts mine to shame.
This template looks quite interesting! Perhaps it should replace the simpler one I wrote. What do others think?
Here is a brain dump of questions and observations; some are of a more broader nature:
* Can some of the functions could be put into a library to be shared between procedural templates (e.g. add/delete layers).
* I am wondering if the page size presets could be broken up into sub-categories. This might make certain categories easier to find... and would make sharing page sizes between templates easier. (BTW, I don't think "Banner 460x60" is useful in the modern age.)
* It might be good to include the actual size in some of the page size preset labels, e.g. there seem to be more than one "European" standard size. (See https://en.wikipedia.org/wiki/Business_card )
* Is it possible to gray out sections that don't apply (like when the Page format is not "Custom")? This probably an overall extensions issue.
* The basis for all the templates is "default.svg" (I think). Is this good? What if someone puts in a really weird default?
* The 'po' files determine which "default.svg" files is used. These files differ in only one way... the name "Layer 1". Can this change be done programmatically so we can remove all the almost duplicate files?
* What if a user replaces the default file? It won't be picked up if they don't replace the correct language dependent file.
* I thought we had a "Save default" option, I guess we don't.
* Page 'viewBox' could use some explanation (maybe it's too specialized for a generic template).
* "Resize margins" could also use some explanation. Is it really useful in the generic template?
* I don't know what "apply all tabs" means.
* Some kind of color value verification could be useful.
* Zoom level could use an "auto" value. I'm not sure the best way of doing this (I did a very simple thing in "empty_icons.py").
* I would expect the "Guides" and "Grids" tabs to actually allow me to define guides and grids (and with using document units).
* Format for "Current layer (id)" is unclear. It will probably need some coding change to actually work.
* As I was reworking the templates, I questioned how useful some of the existing templates were to the average user (LaTeX beamer?) We could have a download section on our website for specialized templates.
Tav