iAdded some explainotion for working with other encodings - enscript - GNU Enscript Err thinkerwim.openbsd.amsterdam 70 hgit clone git://thinkerwim.org/enscript.git URL:git://thinkerwim.org/enscript.git thinkerwim.org 70 1Log /git/enscript/log.gph thinkerwim.org 70 1Files /git/enscript/files.gph thinkerwim.org 70 1Refs /git/enscript/refs.gph thinkerwim.org 70 1README /git/enscript/file/README.gph thinkerwim.org 70 1LICENSE /git/enscript/file/COPYING.gph thinkerwim.org 70 i--- Err thinkerwim.openbsd.amsterdam 70 1commit f371f7b7a0b0784739ac3164e802f0d09c7de8ae /git/enscript/commit/f371f7b7a0b0784739ac3164e802f0d09c7de8ae.gph thinkerwim.org 70 1parent 8dd15a323fa471f3ec726fd9a274c37123cb90f5 /git/enscript/commit/8dd15a323fa471f3ec726fd9a274c37123cb90f5.gph thinkerwim.org 70 hAuthor: Wim Stockman URL:mailto:wim@thinkerwim.org thinkerwim.org 70 iDate: Mon, 13 Mar 2023 13:49:43 +0100 Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 iAdded some explainotion for working with other encodings Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 iDiffstat: Err thinkerwim.openbsd.amsterdam 70 i M README | 9 +++++++++ Err thinkerwim.openbsd.amsterdam 70 i M tools/convertfontto.sh | 10 +++++++++- Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 i2 files changed, 18 insertions(+), 1 deletion(-) Err thinkerwim.openbsd.amsterdam 70 i--- Err thinkerwim.openbsd.amsterdam 70 1diff --git a/README b/README /git/enscript/file/README.gph thinkerwim.org 70 i@@ -231,3 +231,12 @@ option `DownloadFont: name'. Err thinkerwim.openbsd.amsterdam 70 i option `-o' lists missing characters. In GNU enscript `-o' is an Err thinkerwim.openbsd.amsterdam 70 i alias for `-p' and missing characters are listed with an option `-O'. Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 i+* Example Usage: Err thinkerwim.openbsd.amsterdam 70 i+ Err thinkerwim.openbsd.amsterdam 70 i+1) Defaults: create document in Helvetica 14 with default headers Err thinkerwim.openbsd.amsterdam 70 i+ enscript -f Helvetica@14 -o myfile.ps myfile.txt Err thinkerwim.openbsd.amsterdam 70 i+2) Create document with a Latin 9 font encoding from example utf-8 with no header Err thinkerwim.openbsd.amsterdam 70 i+ cat myfile.txt | iconv -f utf-8 -t latin9 | enscript -f FreeMono@14 -B -o myfile.ps Err thinkerwim.openbsd.amsterdam 70 i+ Don't forget to install the latin9 font afm! Err thinkerwim.openbsd.amsterdam 70 i+ You can use the tool convertfontto.sh Err thinkerwim.openbsd.amsterdam 70 i+ Err thinkerwim.openbsd.amsterdam 70 1diff --git a/tools/convertfontto.sh b/tools/convertfontto.sh /git/enscript/file/tools/convertfontto.sh.gph thinkerwim.org 70 i@@ -1,9 +1,17 @@ Err thinkerwim.openbsd.amsterdam 70 i #!/usr/bin/env bash Err thinkerwim.openbsd.amsterdam 70 i+# Small bashscript to convert a font to another encoding. Err thinkerwim.openbsd.amsterdam 70 i+# USAGE Err thinkerwim.openbsd.amsterdam 70 i+# convertfontto fontname outputfontname encoding destination Err thinkerwim.openbsd.amsterdam 70 i+# place the destination into your .enscriptrc file or enscript.cfg Err thinkerwim.openbsd.amsterdam 70 i+# Defaults are : encoding - Latin9 Err thinkerwim.openbsd.amsterdam 70 i+# outputfontname: fontname-encoding.afm Err thinkerwim.openbsd.amsterdam 70 i+# destination: $HOME/.config/enscript/afm Err thinkerwim.openbsd.amsterdam 70 i+# Err thinkerwim.openbsd.amsterdam 70 i set -eu Err thinkerwim.openbsd.amsterdam 70 i font=${1?Please give a font}; Err thinkerwim.openbsd.amsterdam 70 i encoding=${3:-iso8859-15}; Err thinkerwim.openbsd.amsterdam 70 i outputfile=${2:-"${font%.*}-$encoding"} Err thinkerwim.openbsd.amsterdam 70 i-destination=${4:-~/fonts}; Err thinkerwim.openbsd.amsterdam 70 i+destination=${4:-~/.config/enscript/afm}; Err thinkerwim.openbsd.amsterdam 70 i fontforge -lang=ff -c "Open(\"$font\");Reencode(\"$encoding\");Generate(\"$outputfile.pfa\")"; Err thinkerwim.openbsd.amsterdam 70 i mkdir -p $destination Err thinkerwim.openbsd.amsterdam 70 i cp "$outputfile.pfa" "$destination/" Err thinkerwim.openbsd.amsterdam 70 .