José Matos wrote:
On Thursday 30 August 2007 19:49:18 Richard Heck wrote:
I think the idea was that people would set it compressed or not and
never change it. I don't know that this is true.

rh

First: the compressed feature is done in such a way that inside lyx the user should not care if the file is compressed or not. The same should happen for embedded files.
I agree.
Second: people who write scripts to modify should know better. :-)
We should, if necessary, start a repository of simple scripts to manipulate lyx files that takes into account the new complexities.

For sh we could write functions, after I become quite surprised with some of things that can be done like text completion that this seems a trivial task in comparison.
Under Linux you could certainly run: file somefile.lyx, and see what you get back. Viz:
[EMAIL PROTECTED] tmp]$ file ~/files/papers/WhatIsComp.lyx
/home/rgheck/files/papers/WhatIsComp.lyx: \012- TeX document text
[EMAIL PROTECTED] tmp]$ file WhatIsComp.lyx
WhatIsComp.lyx: gzip compressed data, from Unix
To be fair I am not sure if the above example is generic or if it only works with bash, but sure is nice to write ssh lyx and then pressing TAB get the remaining address. :-)
How'd you get that working? I know there are shells other than bash that have really good text completion, but I haven't used them.

rh


--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to