Gennady Makarov - 2019-03-28

Hello! I use Gnuplot 5.2.2 on Ubuntu 18 installed from APK (gnuplot/bionic,bionic,now 5.2.2+dfsg1-2ubuntu1). I need to plot my data using cyrillic and greek symbols, and, usually, using older versions of Gnuplot I used postscript terminal with adobeglyphnames option - and needed glyphs includes into resulting .eps, which then was transformed into .pdf with epstopdf.

But my Gnuplot 5.2.2 does not concern adobeglyphnames option, so only greek symbols appear in my .pdf and cyrillic do not. Below I apply test script and attach .pdf which was produced by it. Cyrillic symbols "Пробная функция" are to be between quotes.

#! /usr/bin/gnuplot -persist
set datafile commentschars "@#&"
set encoding utf8
set terminal postscript eps enhanced color dl 2 lw 1 size 20cm,10cm font "Times-Roman" 12
set style line 1 lt 1 lw 2 lc rgb "black"
set style line 2 lt 1 lw 4 lc rgb "dark-red"
unset key
set xtics pi
set mxtics 10
set ytics 1
set mytics 5
set format y "%-3.0f"
set format x '%.0P {/Symbol p}'
set grid ytics xtics
set ylabel "y \"Пробная функция\""
set xlabel "{/Symbol Q}"
set xrange [0:10*pi]
set yrange [-2.5:2.5]
set samples 1000
set output "test.eps"
plot 0.5*sin(x)+0.25*sin(2*x)+0.1*sin(3*x) with lines ls 2
exit

I found that older version of Gnuplot named cyrillic glyphs as /afii10037 ("У") etc while adobeglyphnames option was used. But my Gnuplot names cyrillic glyphs as /uni0423 etc regardless of adobeglyphnames or noadobeglyphnames options (or its absence)

Help me please adjust gnuplot.