From 9d9bd91369117238963de553f570318b6fb42437 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Sat, 2 May 2020 15:04:39 +0200 Subject: [PATCH] Make enscript support at least some UTF-8. --- bin/point2pdf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/point2pdf b/bin/point2pdf index c6a5e7f..9ac2cb6 100755 --- 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"