Richard Heck wrote:

> Georg Baum wrote:
>> Richard Heck wrote:
>>   
>>> Without any optional arguments, this script acts like dir_copy.py did:
>>> It copies all files in LyX's temporary directory to a subdirectory of
>>> the target directory. But now the script takes two optional arguments:
>>>     -e: a list of extensions to copy, by default all
>>>     -t: an extension to add to the name of the generated target
>>> directory, by default "LyXconv"
>>>     
>> Why -t?
>>   
> Well, -e would be better, but it was taken. 't' was for "target". I
> didn't have any better ideas.

With target I associate the complete name. What about -s for suffix?

>> IMHO in the long term the usual ask-overwrite mechanism should kick in if
>> a file with the same name as the directory already exists. Then no
>> artificial suffix is needed.
>>   
> Yes. But copiers don't know about that at present, and it's not clear
> how they could.

They don't need to. AFAIK LyX does this check that before calling a copier.
In fact I don't know what happens if the existing object is a file, and a
directory is to be created, or vice versa. I guess that the operation will
fail with some weird error if the users chooses to overwrite.

>> Why not assume a common set of extensions for all html converters? I
>> guess they are all alike.
>>   
> I don't know whether that is true or not. I've checked tex4ht and
> latex2html, and they both seem to generate only .html, .css, and .png.
> But especially with image formats, it's hard to know what you might find.

Users may file a bug report if something is missing :-)


Georg

Reply via email to