|
From: Shigeharu T. <sh...@ie...> - 2007-08-01 07:40:32
|
shige 08/01 2007 ---------------- In Japanese environment, to print the correct Japanese strings in the pdf file by the cairopdf terminal, we may need to set the environment variable CHARSET to the corresponding value of the script encoding, especially in the case 'gnuplot script_file'. In this case we cannot get the correct output even if the script file is UTF-8 encoding and LANG=ja_JP.UTF-8. I propose to add the following explanation to cairopdf terminal help, which is unified diff to $Id: cairo.trm,v 1.2 2007/07/20 19:12:50 tlecomte Exp $ ----- From here ----- --- cairo.trm.ORG 2007-07-21 04:12:50.000000000 +0900 +++ cairo.trm 2007-08-01 16:28:08.000000000 +0900 @@ -687,6 +687,16 @@ " OpenOffice Symbol fonts, and remove the Microsoft one.", " Other non-conform fonts, such as \"wingdings\" have been observed working.", "", +" If you use another encoding which is not supported by `set encoding`", +" (ex. using the title string in Japanese), you may need to set the", +" environment variable CHARSET for your glib, especially in case you give", +" the script file as the form \'gnuplot script_file\'. In the case, you", +" can solve the problem by setting the environment variable CHARSET as", +" the corresponding value to the script encoding. For example, if the", +" script is Japanese EUC encoding (EUC-JP), you should set CHARSET to", +" \"EUC-JP\", if UTF-8 encoding, set CHARSET to \"UTF-8\", and if", +" Shift_JIS encoding, set CHARSET to \"SHIFT_JIS\".", +"", " The rendering of the plot cannot be altered yet. To obtain the best output", " possible, the rendering involves two mechanisms : antialiasing and", " oversampling.", ----- To here ----- +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN sh...@ie... TEL(&FAX): +81-257-22-8161 +========================================================+ |