[GRASSLIST:1710] Re: CE characters and vector colours

Glynn Clements glynn.clements at virgin.net
Sat Nov 8 18:50:32 EST 2003


Miha STAUT wrote:

> Last nihgt I had to plot some text labels on a map. The problem was that my 
> labels contained also Central Europan characters which did not plot at all. 
> I am sure there exists a solution to this problem.

Which program? ps.map? d.text? d.text.freetype? d.label?

ps.map only supports ISO Latin-1 (aka. ISO-8859-1). 5.0.0-pre3 and
earlier completely ignored the encoding so, if you have a printer (or
copy of Ghostscript) with a Latin-2 font[1], using -pre3 may work.

[1] and you can figure out how it's encoded; I wouldn't rely upon it
being ISO-8859-2; PostScript's default encoding isn't ISO-8859-1, but
something which it calls StandardEncoding[2].

[2] which is rather an odd name for an encoding which isn't remotely
standard; AFAICT, nothing other than PostScript uses this encoding.

If d.text.freetype was built to use iconv (look for HAVE_ICONV_H in
config.h), you can use any encoding which is supported by iconv
(subject to the font having the relevant glyphs, obviously), via the
charset=... option. If it wasn't built to use iconv, you're limited to
ISO-8859-1.

I don't think that the GRASS fonts (used by d.text, d.label etc)
support Latin-2. Actually, I don't think that they support Latin-1
either, just ASCII, Greek and Cyrillic.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list