||Could not print Greek chars with a2ps
Here is the iso7.edf that works for me.
Best results with these Lucida fonts.
For directions on how to apply them, read on.
a2ps -Xiso7 <file>
ISO-8859-7 (ISO Greek) Greek character set, by Manolis Lourakis <firstname.lastname@example.org>
Adobe Glyph List, v.1.2, 22 Oct 1998
(man a2ps | info a2ps)
- ttf2pt1, for converting Andale TTF font.
Printing documents (text) which contained Greek chars, resulted in Greek chars either
printed as gibberish or sequence of control codes, depending on font used.
Using the -Xiso7 option did not rectify the situation.
Problem traced to be the codes used in iso7.edf encoding file that was shipped
with my version of a2ps. Instead of using some recognizable glyph names, it used
the afiixxxx representation.
Checking resource #1, found out that the afii codes where indeed those intended
for representation of Greek chars. Only that all the fonts I tried did not seem to
understand those codes. Replacing with the equivalent codes from resource #2,
I was able to print Greek chars. Output is fine, both in gv and in paper.
Download iso7.edf and lucida font and untar, gunzip
in /tmp, creating file /tmp/iso7.edf and directory /tmp/lucida
locate iso7.edf, (/usr/share/a2ps/encoding/iso7.edf) and
cp /usr/share/a2ps/encoding/iso7.edf /usr/share/a2ps/encofing/iso7.edf.orig, thus creating a backup of the original
Copy the iso7.edf you downloaded from /tmp to /usr/shar/a2ps/encoding,
cp /tmp/iso7.edf /usr/share/a2ps/encoding
Copy the /tmp/lucida directory in a place of your liking. Maybe,
mv /tmp/lucida /usr/share/a2ps
Modify /etc/a2ps.cfg or /etc/a2ps-site.cfg to reflect the extra font directory you created above.
Maybe, by adding
You should have a
make_fonts_map.sh script in your /usr/share/a2ps/afm directory. cd to that directory and run the script.
Backup the existing "fonts.map" and copy the new fonts.map to the existing one.
ArialGre, ArailNarrowGre, CourierGre, GillSansGre
Solaris fonts work fine, with the exception of GREEK SMALL LETTER SIGMA and GREEK SMALL LETTER FINAL SIGMA. It seems
that Sun has transposed those two chars.
To rectify, transpose positions of
sigma1 in supplied
GREEK CAPITAL LETTER DELTA does not print correctly. All others OK. Conversion done with ttf2pt1. Maybe I didn't use it right?
Examining the resulting
.afm, instead of
_383 is placed.
Delta changed the output, but did not print GREEK CAPITAL LETTER DELTA.
Now, I'm sure i've read somewhere about these
_xxx numbers...if I could only remember where...
GRArial-Normal, Greek-ArailPlain, Greek-CourierPlain, Greek-TimesPlain
||From my orig SuSE.6.4 distro
Unfortunately, only gibberish came out:-(
Interestingely enough, Greek-ArialPlain works OK with the original iso7.edf
||Of unknown origin
||Everything works OK