Make enscript support at least some UTF-8. - pointtools - Simple point utilities to hold text presentations.
HTML git clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 9d9bd91369117238963de553f570318b6fb42437
DIR parent dd0a478f3e3154a2c890c8debdd58ce5ea8cf62e
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 2 May 2020 15:04:39 +0200
Make enscript support at least some UTF-8.
Diffstat:
M bin/point2pdf | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
DIR diff --git a/bin/point2pdf b/bin/point2pdf
@@ -6,5 +6,8 @@
name="slides"
[ $# -gt 0 ] && name="$1"
-enscript *.txt -Brf "Courier16" -p - | ps2pdf - "${name}.pdf"
+enscript *.txt -Brf "Courier16" \
+ -I "cat %s | iconv -c -f utf-8 -t iso-8859-1//translit" \
+ -p - \
+ | ps2pdf - "${name}.pdf"