groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Bugs around variable `device'


From: Werner LEMBERG
Subject: Re: [Groff] Bugs around variable `device'
Date: Fri, 01 Feb 2002 23:33:22 +0100 (CET)

> 
> The right error message, however, should be
>   device not suitable for postprocessor

Probably better:

   grotty: Input data not suitable for a TTY device.

> Additionally, a global dictionnary should be provided that maps a
> device name to a postprocessor name, e.g.
>
> {
>   {"ps", "grops"}
>   {"ascii", "grotty"}
>   {"latin1", "grotty"}
>   \[ell]
> }

This data is already available: The device's DESC file contains the
postprocessor to be used.  A compiled-in table makes it impossible to
add new devices without recompiling (at least currently since
different output encodings are treated as different devices).

So the process is as follows:

  . Get the device name from the `x T device' line.

  . Read the device's DESC file and get the value of the `postpro'
    keyword.

  . Check whether the current postprocessor is identical to the
    `postpro' value, abort otherwise.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]