Re: patch -- LaTeX exporter, and new --to command line option


Subject: Re: patch -- LaTeX exporter, and new --to command line option
From: Joaquin Cuenca Abela (cuenca@ie2.u-psud.fr)
Date: Wed Jan 26 2000 - 11:53:33 CST


sterwill@abisource.com wrote:
>
> Having not looked at the code to implement this, is the process XP-clean
> enough to fit nicely in such an wp/ap/xp/ap_Convert.cpp? It seems to
> me like the process would have very clean entry points (give it the source
> file, the target file(s), and the output format(s), and let it do all the
> doc loading/converting/saving magic), so that this could be easily
> implemented with a few lines of code in each platform.

Yes, but the loading/converting/saving magic takes ~6 lines of code. I
think that we have to include in the ap_Convert.cpp the code to
"calculate" the target filename in function of the source file.

The code that I've done make this:

Conversion: AbiWord -> LaTeX

filename.abw -> filename.latex
filename -> filename.latex

i.e., if the file has an extension, we change it. If not, we add one.

Does make any sense include this code to ap_Convert module?

--
Joaquín Cuenca Abela
e-mail: cuenca@ie2.u-psud.fr



This archive was generated by hypermail 2b25 : Wed Jan 26 2000 - 11:55:09 CST