lyx_guilyx_guilyx_guiOn Fri, Sep 08, 2000 at 10:21:37AM +0200, Jean-Marc Lasgouttes
wrote:
> >>>>> "Lars" == Lars Gullik Bj&resh;nnes <[EMAIL PROTECTED]> writes:
>
> Lars> I think we sould fix this by having all external program
> Lars> encapsulated in a class/module.
>
> Lars> In this case a DVIPS class something like this:
>
> Lars> class DVIPS { dvips(PAPERTYPE, OUTPUTTYPE, FILE, ...); bool
> Lars> run() const; };
>
> Lars> Where PAPERTYPE is the usual paper type enum and we can
> Lars> translate this to the approp. string inside the DVIPS class.
>
> It might be even better to have that as a script (sh or anything).
> This would allow to distribute some kind of drivers which would not be
> hardcoded in LyX.
For now, the only extra options we need to pass a converter/viewer are paper
options (as some formats like linuxdoc/dvi do not store them).
Se we can just use text files that contains the flags rules.
For example, for dvips it would be something like
a4 portrait "-t a4"
us portrait "-t letter"
a4 landscape "-t a4 -t landscape"
us landscape "-t landscape"
...