Re: Embedded files in documents

2010-09-23 Thread Abdelrazak Younes

On 09/22/2010 07:30 PM, Richard Heck wrote:
For now, you might want to look at the lyxpak.py script, written by 
Enrico Forestieri, which is a lower-tech approach to the same problem. 
The script lives at development/tools/lyxpak.py in the source and can 
be downloaded from:

http://www.lyx.org/trac/export/35481/lyx-devel/branches/BRANCH_1_6_X/development/tools/lyxpak.py 

Since it's all python, it would be a fairly simple matter to set up a 
LyX format and converter under ToolsPreferences to allow export and 
even import of the archives from within LyX.


Why don't we do that then? (I mean you ;-))

Abdel.



Re: Embedded files in documents

2010-09-23 Thread Erich Hoover
On Wed, Sep 22, 2010 at 11:30 AM, Richard Heck rgh...@comcast.net wrote:

 On 09/22/2010 12:56 PM, Erich Hoover wrote:

 I've been starting to get a few of the people I work with to convert to
 LyX and I've been noticing that when sending documents between authors it
 would be convenient to not always be ZIPping up all the dependencies.  Is
 there any chance that patches to allow embedding files in LyX documents
 would get accepted into LyX mainline?  My thought would be to have something
 like the following before the actual document:
 ...

 You know how to stir the hornets' nest, don't you? ;-)

 There is a long story behind this kind of idea, which I will not recount.
 Suffice it to say there was some disagreement about implementation. If you
 think about it for a bit, you will see that there are some potential
 security issues. Those were part of the issue.
 ...


Sorry to be a bother, I've not run into any particular problems with LyX -
so I do not have an active roll in your community that would make me aware
of this issue.  I did not see anything on the FeaturePoll page, so I
incorrectly assumed there was nothing going on on this front.  Thank you all
for your contributions to LyX, it has made my life much easier on numerous
occasions.

Erich Hoover
ehoo...@mines.edu


Re: Embedded files in documents

2010-09-23 Thread Abdelrazak Younes

On 09/22/2010 07:30 PM, Richard Heck wrote:
For now, you might want to look at the lyxpak.py script, written by 
Enrico Forestieri, which is a lower-tech approach to the same problem. 
The script lives at development/tools/lyxpak.py in the source and can 
be downloaded from:

http://www.lyx.org/trac/export/35481/lyx-devel/branches/BRANCH_1_6_X/development/tools/lyxpak.py 

Since it's all python, it would be a fairly simple matter to set up a 
LyX format and converter under Tools>Preferences to allow export and 
even import of the archives from within LyX.


Why don't we do that then? (I mean you ;-))

Abdel.



Re: Embedded files in documents

2010-09-23 Thread Erich Hoover
On Wed, Sep 22, 2010 at 11:30 AM, Richard Heck  wrote:

> On 09/22/2010 12:56 PM, Erich Hoover wrote:
>
>> I've been starting to get a few of the people I work with to convert to
>> LyX and I've been noticing that when sending documents between authors it
>> would be convenient to not always be ZIPping up all the dependencies.  Is
>> there any chance that patches to allow embedding files in LyX documents
>> would get accepted into LyX mainline?  My thought would be to have something
>> like the following before the actual document:
>> ...
>>
> You know how to stir the hornets' nest, don't you? ;-)
>
> There is a long story behind this kind of idea, which I will not recount.
> Suffice it to say there was some disagreement about implementation. If you
> think about it for a bit, you will see that there are some potential
> security issues. Those were part of the issue.
> ...


Sorry to be a bother, I've not run into any particular problems with LyX -
so I do not have an active roll in your community that would make me aware
of this issue.  I did not see anything on the FeaturePoll page, so I
incorrectly assumed there was nothing going on on this front.  Thank you all
for your contributions to LyX, it has made my life much easier on numerous
occasions.

Erich Hoover
ehoo...@mines.edu


Embedded files in documents

2010-09-22 Thread Erich Hoover
I've been starting to get a few of the people I work with to convert to LyX
and I've been noticing that when sending documents between authors it would
be convenient to not always be ZIPping up all the dependencies.  Is there
any chance that patches to allow embedding files in LyX documents would get
accepted into LyX mainline?  My thought would be to have something like the
following before the actual document:

\begin_resources
\begin_file MyLayout.layout Last Modification Time File Size
Base64 Encoded Layout File
\end_file
\begin_file figures/MyFigure.pdf Last Modification Time File Size
Base64 Encoded Figure File
\end_file
\end_resources

The idea would be that these files would only be used if the local files did
not exist. Additionally, these files would get updated automatically if the
local file was ever modified and then document was re-opened.  I believe
that this kind of resource inclusion would greatly improve the ability to
share LyX documents, so if this proposal sounds acceptable then I would be
happy to put in the work to make it happen.

Erich Hoover
ehoo...@mines.edu


Re: Embedded files in documents

2010-09-22 Thread Richard Heck

On 09/22/2010 12:56 PM, Erich Hoover wrote:
I've been starting to get a few of the people I work with to convert 
to LyX and I've been noticing that when sending documents between 
authors it would be convenient to not always be ZIPping up all the 
dependencies.  Is there any chance that patches to allow embedding 
files in LyX documents would get accepted into LyX mainline?  My 
thought would be to have something like the following before the 
actual document:


\begin_resources
\begin_file MyLayout.layout Last Modification Time File Size
Base64 Encoded Layout File
\end_file
\begin_file figures/MyFigure.pdf Last Modification Time File Size
Base64 Encoded Figure File
\end_file
\end_resources

The idea would be that these files would only be used if the local 
files did not exist. Additionally, these files would get updated 
automatically if the local file was ever modified and then document 
was re-opened.  I believe that this kind of resource inclusion would 
greatly improve the ability to share LyX documents, so if this 
proposal sounds acceptable then I would be happy to put in the work to 
make it happen.



You know how to stir the hornets' nest, don't you? ;-)

There is a long story behind this kind of idea, which I will not 
recount. Suffice it to say there was some disagreement about 
implementation. If you think about it for a bit, you will see that there 
are some potential security issues. Those were part of the issue.


One of our developers, Vincent van Ravesteijn, was working on this again 
a while ago. (He wasn't involved in the original disagreement.) I don't 
know what the status of his work is, but it looks very unlikely that it 
could possibly be completed by 2.0, since we are near beta on that. 
Someone, though, will get something like this working for 2.1.


For now, you might want to look at the lyxpak.py script, written by 
Enrico Forestieri, which is a lower-tech approach to the same problem. 
The script lives at development/tools/lyxpak.py in the source and can be 
downloaded from:

http://www.lyx.org/trac/export/35481/lyx-devel/branches/BRANCH_1_6_X/development/tools/lyxpak.py
Since it's all python, it would be a fairly simple matter to set up a 
LyX format and converter under ToolsPreferences to allow export and 
even import of the archives from within LyX.


Richard



Embedded files in documents

2010-09-22 Thread Erich Hoover
I've been starting to get a few of the people I work with to convert to LyX
and I've been noticing that when sending documents between authors it would
be convenient to not always be ZIPping up all the dependencies.  Is there
any chance that patches to allow embedding files in LyX documents would get
accepted into LyX mainline?  My thought would be to have something like the
following before the actual document:

\begin_resources
\begin_file "MyLayout.layout"  

\end_file
\begin_file "figures/MyFigure.pdf"  

\end_file
\end_resources

The idea would be that these files would only be used if the local files did
not exist. Additionally, these files would get updated automatically if the
local file was ever modified and then document was re-opened.  I believe
that this kind of resource inclusion would greatly improve the ability to
share LyX documents, so if this proposal sounds acceptable then I would be
happy to put in the work to make it happen.

Erich Hoover
ehoo...@mines.edu


Re: Embedded files in documents

2010-09-22 Thread Richard Heck

On 09/22/2010 12:56 PM, Erich Hoover wrote:
I've been starting to get a few of the people I work with to convert 
to LyX and I've been noticing that when sending documents between 
authors it would be convenient to not always be ZIPping up all the 
dependencies.  Is there any chance that patches to allow embedding 
files in LyX documents would get accepted into LyX mainline?  My 
thought would be to have something like the following before the 
actual document:


\begin_resources
\begin_file "MyLayout.layout"  

\end_file
\begin_file "figures/MyFigure.pdf"  

\end_file
\end_resources

The idea would be that these files would only be used if the local 
files did not exist. Additionally, these files would get updated 
automatically if the local file was ever modified and then document 
was re-opened.  I believe that this kind of resource inclusion would 
greatly improve the ability to share LyX documents, so if this 
proposal sounds acceptable then I would be happy to put in the work to 
make it happen.



You know how to stir the hornets' nest, don't you? ;-)

There is a long story behind this kind of idea, which I will not 
recount. Suffice it to say there was some disagreement about 
implementation. If you think about it for a bit, you will see that there 
are some potential security issues. Those were part of the issue.


One of our developers, Vincent van Ravesteijn, was working on this again 
a while ago. (He wasn't involved in the original disagreement.) I don't 
know what the status of his work is, but it looks very unlikely that it 
could possibly be completed by 2.0, since we are near beta on that. 
Someone, though, will get something like this working for 2.1.


For now, you might want to look at the lyxpak.py script, written by 
Enrico Forestieri, which is a lower-tech approach to the same problem. 
The script lives at development/tools/lyxpak.py in the source and can be 
downloaded from:

http://www.lyx.org/trac/export/35481/lyx-devel/branches/BRANCH_1_6_X/development/tools/lyxpak.py
Since it's all python, it would be a fairly simple matter to set up a 
LyX format and converter under Tools>Preferences to allow export and 
even import of the archives from within LyX.


Richard