Where to store templates?

classic Classic list List threaded Threaded
8 messages Options
Alexander Wilms Alexander Wilms
Reply | Threaded
Open this post in threaded view
|

Where to store templates?

Hi,

I want to add some templates to the repository, but I'm not sure where they should be stored (https://wiki.documentfoundation.org/Design/Call_for_Templates#Submissions). "root/extras/source/templates/layout" or "root/extras/source/templates/presnt"? There are two presentation templates and one writer document containing a certain formatting, the text could be deleted and none of the documents needs to be translated. The slideshow templates contain several master slides, if that matters.

Thanks in advance

Alex
Michael Meeks-2 Michael Meeks-2
Reply | Threaded
Open this post in threaded view
|

Re: Where to store templates?

Hi Alexander,

On Fri, 2012-05-11 at 11:30 -0700, Alexander Wilms wrote:
> I want to add some templates to the repository, but I'm not sure where they
> should be stored

        :-) So - I guess we should clobber the existing templates with the new
ones; which leads to the question of - where are the existing ones -
extras/ is almost certainly the place - as you say :-)

        The extras/README should be packed with this sort of useful information
but ... is not ;-)

> (https://wiki.documentfoundation.org/Design/Call_for_Templates#Submissions).
> "root/extras/source/templates/layout" or
> "root/extras/source/templates/presnt"? There are two presentation templates
> and one writer document containing a certain formatting, the text could be
> deleted and none of the documents needs to be translated. The slideshow
> templates contain several master slides, if that matters.

        So - which are you going to do first ? :-)

        Incidentally - one golden rule here is that - when you push something
to git it is there *forever* - which means that every subsequent git
clone anyone in the world will ever do will include your data :-)

        What is the moral of that ?

        a) don't check-in lots of big binary files unless they
           are really very static / complete :-)
        b) come up with cunning programmatic ways to not do translation
           of templates in the utterly dumb way it's done now ;-)
        c) try to share big things - eg. images across templates
           without checking them in repeatedly (and bundling them
           into distributions).

        Just some hints there really; ie. about the worst thing you can do is
whack some big beautiful high-res image into a template, and then check
it in for each language with a minor tweak. Sadly the packaging code
takes great delight in duplicating such things per-language already
so ... until Gabor fixes this to make templates variously sanely
translateable (IIRC).

        There is a bug for some of this: eg.

        https://bugs.freedesktop.org/show_bug.cgi?id=49098
or https://bugs.freedesktop.org/show_bug.cgi?id=49101

        Personally, I'd prefer to have '.fodp' '.fodt' etc. files in there, so
we can actually see what is happening as they are changed by people and
version control becomes meaningful :-)

        Anyhow - not sure if that helped much but ... :-)

        Thanks !

                Michael.

--
[hidden email]  <><, Pseudo Engineer, itinerant idiot

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Alexander Wilms Alexander Wilms
Reply | Threaded
Open this post in threaded view
|

Re: Where to store templates?

Hi Michael,

I've still some questions:

The .fodp and .fodt files do not contain a thumbnail. Thus, previews
would need to be generated (and maybe saved somewhere) for the template
picker. Is that an issue?

The templates do not contain text that needs to be translated.
Apparently the files in this
(http://cgit.freedesktop.org/libreoffice/core/tree/extras/source/templates/layout)
folder aren't translated either, so I guess thats the correct path for
fodp files? What about the fodt file? I didn't find a path where that
could be stored.

There are no templates that share the same pictures, I hope the fact
that no translations are needed makes up for that.

Is it eough if I upload the sources used to create the backgrounds (svg
& Blender files) to the Wiki?

Thanks for the help :)

Alex






_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Andras Timar Andras Timar
Reply | Threaded
Open this post in threaded view
|

Re: Where to store templates?

Hi Alex

2012/5/13 Alexander Wilms <[hidden email]>:
> The templates do not contain text that needs to be translated. Apparently
> the files in this
> (http://cgit.freedesktop.org/libreoffice/core/tree/extras/source/templates/layout)
> folder aren't translated either, ...

Those templates do contain translatable text, in meta.xml the contents
in <dc:title> element. These strings are localized, see
http://opengrok.libreoffice.org/xref/core/sfx2/source/doc/templatelocnames.src.
When you add/remove templates (presentation backgrounds), you need to
update this file.

Best regards,
Andras
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Alexander Wilms Alexander Wilms
Reply | Threaded
Open this post in threaded view
|

Re: Where to store templates?

Hi Andras,

thanks for the hint.
Since we'd like to save flat ODF files, that <dc:title> element is
contained in that single xml file (e.g. fodt).
Does that change anything?

Kind Regards

Alex


_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Andras Timar Andras Timar
Reply | Threaded
Open this post in threaded view
|

Re: Where to store templates?

Hi Alex,

2012/5/13 Alexander Wilms <[hidden email]>:
> Hi Andras,
>
> thanks for the hint.
> Since we'd like to save flat ODF files, that <dc:title> element is contained
> in that single xml file (e.g. fodt).
> Does that change anything?
>
No, it's not a problem from the localization point of view. But you
need to test the loader in sfx2, if it recognizes fodp (for Impress).
Another question, if fodp can be used as a template, i.e. it should
not be directly opened but a new document should be created with its
settings.

Best regards,
Andras
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Petr Mladek Petr Mladek
Reply | Threaded
Open this post in threaded view
|

Re: Where to store templates?

In reply to this post by Michael Meeks-2
Michael Meeks píše v Pá 11. 05. 2012 v 21:22 +0100:

> Incidentally - one golden rule here is that - when you push something
> to git it is there *forever* - which means that every subsequent git
> clone anyone in the world will ever do will include your data :-)
>
> What is the moral of that ?
>
> a) don't check-in lots of big binary files unless they
>   are really very static / complete :-)
> b) come up with cunning programmatic ways to not do translation
>   of templates in the utterly dumb way it's done now ;-)
> c) try to share big things - eg. images across templates
>   without checking them in repeatedly (and bundling them
>   into distributions).

Probably a more safe solution might be to create a separate git
repository, like we have for dictionaries.

BTW: I really like the initiative. We really need more templates. I am
just curious. How is the commit related to
http://templates.libreoffice.org/template-center ?
Are you going to select few high quality templates that should be
distributed with LO by default? How many such templates do you expect in
the long term?


> Personally, I'd prefer to have '.fodp' '.fodt' etc. files in there, so
> we can actually see what is happening as they are changed by people and
> version control becomes meaningful :-)

As Andras pointed out. I am not sure if these formats support templates.
We need to make sure that the files are opened as new (untitled). I
wonder how hard it would be to extend it. Fridrich?


Best Regards,
Petr

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Alexander Wilms Alexander Wilms
Reply | Threaded
Open this post in threaded view
|

Re: Where to store templates?

Hi everyone,

>But you need to test the loader in sfx2, if it recognizes fodp (for Impress).
>Another question, if fodp can be used as a template, i.e. it should
>not be directly opened but a new document should be created with its
>settings.

I'm not a coder, so I would need help here. However, I did a search for
'ott' and the only relevant file in sfx2 seems to be this:
http://opengrok.libreoffice.org/xref/core/sfx2/source/doc/docvor.cxx,
is that correct?

>BTW: I really like the initiative. We really need more templates. I am
>just curious. How is the commit related to
>http://templates.libreoffice.org/template-center ?
>Are you going to select few high quality templates that should be
>distributed with LO by default? How many such templates do you expect in
>the long term?

I created some templates which you can find on that Wiki page:
https://wiki.documentfoundation.org/Design/Call_for_Templates#Submissions.
I uploaded some of them to templates.libreoffice.org/template-center
and we're looking for more people willing to design some more. I tried
to contact several contributors who uploaded nice templates to the
template center, but got no answer so far.
The design team will then decide/vote which ones meet our expectations.
Regarding the number of templates: I didn't think about that yet, but
10 for each application seems reasonable. Maybe more later on.

Kind regards

Alex

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice