PS_CHAR_ENCODING

Added by Januka about 1 month ago

Hi, Could you please tell me how I should use PS_CHAR_ENCODING? The entry in the manual really confuses me. I've tried the following which spits out the error "Error: /undefined in ISO-8859-1_Encoding".

echo '10 10 Magnitude 6 or greater earthquakes' | gmt pstext -J$proj -R$range \
--PS_CHAR_ENCODING=ISO-8859-1 \
-F+a0+f12p,Bookman-Demi,white+jLT -G0/0/0 -TO -P -O -V -K >> $outps

Having an example in the https://docs.generic-mapping-tools.org/latest/gmt.conf.html would really help.

Also, a hyperlink to Appendix F in the following description is needed as I don't know where Appendix F is.

PS_CHAR_ENCODING
(static) Names the eight bit character set being used for text in files and in command line parameters. This allows GMT to ensure that the PostScript output generates the correct characters on the plot. Choose from Standard, Standard+, ISOLatin1, ISOLatin1+, and ISO-8859-x (where x is in the ranges [1,10] or [13,15]). See Appendix F for details [ISOLatin1+ (or Standard+)]. Note: Normally the character set is written as part of the PostScript header. If you need to switch to another character set for a later overlay then you must use --PS_CHAR_ENCODING=encoding on the command line and not via gmt set.

Thanks!


Replies (1)

RE: PS_CHAR_ENCODING - Added by Federico about 1 month ago

Please post on the GMT forum at www.generic-mapping-tools.org instead.

(1-1/1)