On Sun, Apr 17, 2022 at 09:14:31PM +0200, Andrew Yu wrote:
> I wonder if there is a package for this purpose.
> 
> I've been looking for a way to convert a plain text file into a
> PostScript file.  The plain text file is hard wrapped and is hard
> page-breaked with ASCII Form Feeds, commonly represented as Control-L.

I use paps for this.

I have, in the past, used nenscript.

> The program MUST:
>   * Be able to use a monospace font;
>   * Break pages at Line Feeds.
> 
> The program MUST NOT:
>   * Treat anything other than form feeds and newlines specially;
>     Groff is not suitable because of how it treats . and \.
>   * Add borders or columns, or other fancy stuff.
> 
> The program SHOULD:
>   * Take standard input and give standard output;
>   * Have an option to use a custom font;
>   * Set text off the page's borders when a line is longer than the page
>     width, rather than wrapping;
>   * Set text off the bottom of the page when no Form Feed has been
>     encountered and the text is higher than the page height.
> 
> The program SHOULD NOT:
>   * Add any margins;
>   * Wrap text.
> 
> SHOULD and SHOULD NOT are optional, but good to have / not have.



-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  https://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
https://www.phcomp.co.uk/Contact.html
#include <std_disclaimer.h>

Reply via email to