Bo Peng wrote:
Dear all,

Embedded please find an improved version of the embedding patch. To
test this patch, please unpack zlib-1.2.3 source package to the top
source directory of lyx and use 'scons' to build lyx. I would
appreciate it if someone can add autotools support so that more people
can test.

Although I have described the ideas behind this patch in another
'request-for-review' post, I have attached a more complete version
(also
in src/EmbeddedFiles.h).

I have implemented the embedding dialog (see attached screen shot) so
I would say that 70% of the coding has been done, and the feature can
be ready for 1.6.0 after fixing 20 or so bugs.

I will stop here until I get the permission to pursue this feature.
This looks very interesting - one wishlist item done
already!
Expected features:
=========================

1. Graphics, listings, bib file etc can be embedded into the .lyx file.
Will it be possible to add child documents as well? Assuming
you get the permissions, of course.
2. Embedding of certain files are automatic (graphics, bib etc), and
other files can be embedded manually. User can choose not to embed any file.

Very good.  Perhaps an "embed all" button for cases when
one wants to package a large work in a single file for
transmission purposes?
3. Embedded file.lyx file is a zip file, with file.lyx, manifest.txt
and embedded files. There is no subdirectory in this zip file.
What happens if the user inserts the graphics
"a/nameclash.eps" and "b/nameclash.eps" and then
tries to embed both? Maybe subdirectories are
needed?  They would also let user unpack
the file manually and get something that works. Well, at least
as long as the document directory really is the parent of
all other directories in use, which is a common case.
That'd be  a nice option to have.



Finally, this raises the question if zip is the archive format
we want to use. I assume it is available on all the platforms
that runs LyX?

Helge Hafting

Reply via email to