|
From: Tatsuro M. <tma...@ya...> - 2022-02-02 21:43:12
|
Geoff As far as I remember, postscript teminal has its original font map but does not have unicode compatible font map. If you want high quality plot in eps format with unicode font, it is better to use epscairo gnuplot> help epscairo The `epscairo` terminal device generates encapsulated PostScript (*.eps) using the cairo and pango support libraries. cairo version >= 1.6 is required. Please read the help for the `pdfcairo` terminal. Tatsuro > ----- Original Message ----- > > From: "Geoff Kaniuk" <geoff > To: "gnuplot-info> > Date: 2022/02/03 木 01:57 > Subject: Re: [Gnuplot-info] plotting points formatted in utf8 > > > Hello Tatsuro, > > Sorry, my reply-to was not set. The correction you mentioned was > actually the first variant I tried. > > I have now repeated the test with pt "\U+25CE" in terminal wxt and also > added the font specification to set terminal. This gives me the bullseye > in the Gnuplot display, but not in the .eps file. > > I have created a test script and a screenshot: > > SCRIPT > http://kaniuk.co.uk/tests/test-unicode.gp > > SCREENSHOT > http://kaniuk.co.uk/tests/test-unicode-GK.png > > This shows the output on the Gnuplot display and also the resulting .eps > file. > > So some progress - Thanks! > > Geoff > > 33 Ashbury Close, Cambridge CB1 3RW 01223 710582 > > On 02/02/2022 08:51, Tatsuro MATSUOKA wrote: > > Hello Geoff > > > > Please keep replying to the mailing list. > > > > I found the mistakes of your command. > > > > pt "U+25CE" > > > > should be > > > > pt "\U+25CE" > > > > (back slash "\" is forgotten) > > > > For me, pt "◎" and pt "\U+25CE" are coincident. > > > > reset session > > set encoding utf8 > > set terminal wxt nopersist enhanced font 'Dejavu Sans' # font selection seems to be important > > set sample 20 > > plot -x w p pt "◎", \ > > -0.8 * x w p pt "0x9678" , \ > > -0.6 * x w p pt "\U+25CE" > > > > See > > http://tmacchant33.starfree.jp/Files/unicode_test2.png > > > > As I wrote in the comment in the script, the font selection seem to be important. > > If I use 'Arial' font instead of 'Dejavu Sans' font, I got broken plot > > > > http://tmacchant33.starfree.jp/Files/unicode_test3.png > > > > Arial font does not support Bulls eye charrcter. > > > > I am windows user and see windows font map using windows tool. > > You are Debian user and on debian has similar tool to see font map and may select proper font. > > > > Tatsuro > > > > > >> ----- Original Message ----- > >> <geoff > >> To: "Tatsuro MATSUOKA" > >> Date: 2022/02/02 水 07:32 > >> Subject: Re: [Gnuplot-info] plotting points formatted in utf8 > >> > >> > >> Thank you so much for the test case. I have repeated your test on my > >> Linux system including producing the .eps file > >> > >> I get the same results as you for the hex and unicode syntax > >> > >> However for > >> plot x w p pt "◎" > >> > >> I get: > >> > >> Gnuplot 1: accented letter a circumflex followed by faint box > >> .eps no plotted points > >> > >> I get exactly the same results with terminal wxt. There must be some > >> fundamental setting or mapping I am missing > >> > >> Geoff > >> > >> 33 Ashbury Close, Cambridge CB1 3RW 01223 710582 > >> > >> On 01/02/2022 20:40, Tatsuro MATSUOKA wrote: > >>> I tried the following script on 5.4.3 and 5.5 (last modified 2022-01-29) on cygwin > >>> also tried 5.2.8 on windows (I do not have version 5.2 on cygwin) with wxt terminal. > >>> > >>> The results are the same. > >>> The screenshot the below was taken on 5.4.3. > >>> http://tmacchant33.starfree.jp/Files/unicode_test2.png > >>> > >>> Used script is > >>> > >>> # begin > >>> reset session > >>> set encoding utf8 > >>> set terminal x11 1 nopersist enhanced > >>> set sample 20 > >>> plot x w p pt "◎", \ > >>> 0.8 * x w p pt "0x9678" , \ > >>> 0.6 * x w p pt "U+25CE" > >>> # end > >>> > >>> For 5.2.8 on windows, I used the wxt terminal instead of the x11 terminal. > >>> > >>> Tatsuro > >>>> ----- Original Message ----- > >>>> > >>>> From: "Geoff Kaniuk" > >>>> To: "gnuplot-info > >>>> Date: 2022/02/02 水 03:15 > >>>> Subject: [Gnuplot-info] plotting points formatted in utf8 > >>>> > >>>> > >>>> I am trying to plot points specified in utf8 using the pt "..." option > >>>> as mentioned in the gnuplot manual. I am using gnuplot v5.2 running in > >>>> Debian Buster. > >>>> > >>>> My settings are: > >>>> reset session > >>>> set encoding utf8 > >>>> set terminal x11 1 nopersist enhanced > >>>> > >>>> As an example I tried the Bullseye point: > >>>> ◎ 9678(hex) 25CE(utf8) > >>>> > >>>> It is not clear what syntax I should use to express the character. > >>>> All of the versions: > >>>> pt "◎" > >>>> pt "0x9678" > >>>> pt "U+25CE" > >>>> > >>>> failed to plot the > >>>> > >>>> What am I missing? > >>>> > >>>> Any help much appreciated > >>>> > >>>> -- > >>>> Geoff > >>>> > >>>> 33 Ashbury Close, Cambridge CB1 3RW 01223 710582 > >>>> > >>>> > >>>> _______________________________________________ > >>>> gnuplot-info mailing list > >>>> gnu...@li... > >>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > >>>> > >>> > >> > > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |