Enscript converts ASCII text files to PostScript, HTML, RTF, ANSI and overstrikes.
Enscript cannot convert UTF-8 encoded text to PostScript. The issue is discussed in detail in the Needed Encoding Not a Valid Option section of the Locale Related Issues page. The solution is to use paps-0.6.6, instead of Enscript, for converting UTF-8 encoded text to PostScript.
Download (HTTP): http://fresh.t-systems-sfr.com/unix/src/misc/enscript-1.6.4.tar.gz
Download (FTP): ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/enscript-1.6.4.tar.gz
Download MD5 sum: b5174b59e4a050fb462af5dbf28ebba3
Download size: 1.0 MB
Estimated disk space required: 11.5 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Enscript
Install Enscript by running the following commands:
patch -Np1 -i ../enscript-1.6.4-security_fixes-1.patch && ./configure --prefix=/usr \ --sysconfdir=/etc/enscript \ --localstatedir=/var \ --with-media=Letter && make
Though it is very sparse, if you have teTeX-3.0 installed, you can create alternate forms of the documentation by issuing any or all of the following commands:
make -C docs ps && make -C docs pdf && cd docs && texi2html enscript.texi && makeinfo --plaintext -o enscript.txt enscript.texi && cd ..
To test the results, issue: make check.
Now, as the root user:
make install && install -v -m755 -d /usr/share/doc/enscript-1.6.4 && install -v -m644 README* *.txt docs/FAQ.html \ /usr/share/doc/enscript-1.6.4
If you built any of the alternate forms of documentation, install it using the following command as the root user:
install -v -m644 docs/*.{dvi,html,pdf,ps,txt} \ /usr/share/doc/enscript-1.6.4
--sysconfdir=/etc/enscript: This switch puts configuration data in /etc/enscript instead of /usr/etc.
--localstatedir=/var: This switch sets the directory for runtime data to /var instead of /usr/var.
--with-media=Letter: This switch sets the medium format to letter.
Last updated on 2007-02-02 05:00:08 -0600