Unicode characters

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unicode characters

Schmitzberger, Florian
Hi,

I want to print a per mil sign (‰) with Gnuplot (version 5.0.3). I am using postscript output terminal. I tried with 'set encoding utf8', and then call the per mil sign with the Unicode identifer {u+2030}. This does not seem to work.

I do not have pdfcairo available as an output terminal, which I understand would make printing Unicode characters easier. I have the following terminals available on my MacBook Pro. gnuplot> print GPVAL_TERMINALS canvas cgm context corel dumb dxf eepic emf emtex epslatex fig hpgl latex mf mp pcl5 postscript pslatex pstex pstricks qms svg tek40xx tek410x texdraw tgif tkcanvas tpic unknown vttek x11 xlib xterm

How can I get Gnuplot to print a per mil sign?

Florian

------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
gnuplot-info mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Reply | Threaded
Open this post in threaded view
|

Re: Unicode characters

Ethan A Merritt-2
On Monday, 31 October 2016 09:28:51 AM Schmitzberger, Florian wrote:
> Hi,
>
> I want to print a per mil sign (‰) with Gnuplot (version 5.0.3). I am using postscript output terminal. I tried with 'set encoding utf8', and then call the per mil sign with the Unicode identifer {u+2030}. This does not seem to work.

PostScript (the language) does not support UTF-8.
There is nothing gnuplot can do about that.
Work-arounds are possible, but rather painful.  
If you want to pursue this, you could start by reading the file
     .../gnuplot/term/PostScript/unicode_maps.README

It would be much easier to switch to
another terminal type that natively supports utf-8.
If your copy of gnuplot was not built with support for cairo or tikz,
perhaps you can take that up with whoever builtit?
Of the terminals you list as available, svg would be the best best.

        Ethan

> I do not have pdfcairo available as an output terminal, which I understand would make printing Unicode characters easier. I have the following terminals available on my MacBook Pro. gnuplot> print GPVAL_TERMINALS canvas cgm context corel dumb dxf eepic emf emtex epslatex fig hpgl latex mf mp pcl5 postscript pslatex pstex pstricks qms svg tek40xx tek410x texdraw tgif tkcanvas tpic unknown vttek x11 xlib xterm
>
> How can I get Gnuplot to print a per mil sign?
>
> Florian


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
gnuplot-info mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info