Introduction to Enscript
Enscript converts ASCII text files
to PostScript, HTML, RTF, ANSI and overstrikes.
注意
Development versions of BLFS may not build or run some packages
properly if LFS or dependencies have been updated since the most
recent stable versions of the books.
小心
Enscript cannot convert UTF-8
encoded text to PostScript. The issue is discussed in detail in
the 所需编码不是有效选项 section of the 区域设置相关问题 page. The solution is to use paps-0.8.0,
instead of Enscript, for
converting UTF-8 encoded text to PostScript.
Package Information
Enscript Dependencies
Optional
texlive-20250308 (or install-tl-unx)
Installation of Enscript
Install Enscript by running the
following commands:
./configure --prefix=/usr \
--sysconfdir=/etc/enscript \
--localstatedir=/var \
--with-media=Letter &&
make CC="gcc -std=gnu17" &&
pushd docs &&
makeinfo --plaintext -o enscript.txt enscript.texi &&
popd
If you have texlive-20250308 installed, you can
create Postscript and PDF documentation by issuing (does not
support parallel make):
make -j1 -C docs ps pdf
To test the results, issue: make
check.
Now, as the root user:
make install &&
install -v -m755 -d /usr/share/doc/enscript-1.6.6 &&
install -v -m644 README* *.txt docs/*.txt \
/usr/share/doc/enscript-1.6.6
If you built Postscript and PDF documentation, install it using the
following command as the root user:
install -v -m644 docs/*.{dvi,pdf,ps} \
/usr/share/doc/enscript-1.6.6
Command Explanations
--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 size instead of the A4
default.