Difference between revisions of "Talk:NewFromTemplateSpec"

From Inkscape Wiki
Jump to navigation Jump to search
(→‎Defaults: mm, pt -> default units of the template)
Line 65: Line 65:
=== Defaults ===
=== Defaults ===
"default_mm.svg" and "default_pt.svg" don't respect specifications. Must be "default.mm.svg" and "default.pt.svg". Is it correct ? [[User:Binnette|Binnette]] 09:59, 15 May 2010 (UTC)
"default_mm.svg" and "default_pt.svg" don't respect specifications. Must be "default.mm.svg" and "default.pt.svg". Is it correct ? [[User:Binnette|Binnette]] 09:59, 15 May 2010 (UTC)
::"mm" and "pt" are not languages but default units used in the template (Millimeters, Points). "default_mm.svg" and "default_pt.svg" seem correct to me, similar to how document (paper) sizes are added to the file name of a template ("icon_48x48.svg", "icon_64x64.svg").
--[[User:~suv|~suv]] 12:19, 29 May 2010 (UTC)

Revision as of 12:19, 29 May 2010

Point on the current template selector

The current system in order to choose a template is deprecated. It's simply a list in the menu (see picture).

  1. You can't parametrize templates (width, height, border, ...).
  2. You can't easily add new templates.
  3. You can't visualize templates before choice.
  4. The list don't respect any order.
  5. Templates are not categorized (CD, DVD, screen, ...).
  6. Templates names don't respect specifications:
    • Some contains _ between words (like icon_16x16).
    • Some templates are in french (like "Défaut") and others in english (like "business_card_...").
  7. Template list is too long. It can cause problem for netbooks.
  8. You can't make template be one of your favourites or "recently used".
  9. Commons templates of the "Document properties dialog" are not present (like A3, B2, US Letter, ...)
  10. You can't choose the units for your new drawing.

Template Selector 0.47.png

Binnette 21:54, 4 March 2010 (UTC)

About attributes

Is it possible to add completely new attributes into a svg file ? like:

<sodipodi:namedview
   inkscape:template-name="Web banner 728x90"
   inkscape:template-name-fr="Bannière Web 728x90"
   inkscape:template-category="Web/Banner"
   inkscape:template-description="A banner for a website, size: 728x90 px"
   ...
/>

Also, is "sodipodi:namedview" the correct markup for template attributes ?

Binnette 10:11, 15 May 2010 (UTC)

Yes, it is possible (we use custom attributes quite a lot in Inkscape). But do it with some care. For example, the category attribute will probably be necessary, but possibly you can just use an existing property for some of the others. --Jaspervdg 12:07, 29 May 2010 (UTC)

Categories names

Translations

Do we have to traduce categories names ? If yes, we can add new attributes in svg files, like :

   inkscape:template-category-fr="Fond d'écran"

See ya Binnette 09:52, 15 May 2010 (UTC)

Notation

Should we use underscore between words ? like :

   inkscape:template-category="Paper_sizes"

or can we simply use:

   inkscape:template-category="Paper sizes"

Binnette 09:55, 15 May 2010 (UTC)

I'd go with spaces.

Keywords

I think that keywords are optionals, because they must be traduced in too many languages. And there is categories in order to find templates. Should we use them or not ?

Binnette 09:56, 15 May 2010 (UTC)

Currents categories

Background

Is "background" the same category as "Desktop" ? Binnette 09:57, 15 May 2010 (UTC)

Defaults

"default_mm.svg" and "default_pt.svg" don't respect specifications. Must be "default.mm.svg" and "default.pt.svg". Is it correct ? Binnette 09:59, 15 May 2010 (UTC)

"mm" and "pt" are not languages but default units used in the template (Millimeters, Points). "default_mm.svg" and "default_pt.svg" seem correct to me, similar to how document (paper) sizes are added to the file name of a template ("icon_48x48.svg", "icon_64x64.svg").

--~suv 12:19, 29 May 2010 (UTC)