Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2229

Re: Formatting Unicode symbol in a label

Newsgroups comp.graphics.apps.gnuplot
Date 2014-01-07 08:28 -0800
References <f42d0c0d-5118-47af-96b5-2289abd59dcb@googlegroups.com>
Message-ID <5f527c28-954d-4ba1-9476-c09fddb44cd0@googlegroups.com> (permalink)
Subject Re: Formatting Unicode symbol in a label
From "Dan'l B" <dan.hinckley@gmail.com>

Show all headers | View raw


On Saturday, January 4, 2014 1:32:56 PM UTC+1, Dan'l B wrote:
> Given a line such as
> 
> 
> 
> "" u (myDateSP(1,2)):3:((strcol(4) eq "First") ?  ("U+1F311"):1/0) w labels left font "Arial Unicode MS,18" offset -4,0,\
> 
> 
> 
> How do I insert the Unicode codepoint for a quarter moon symbol (for example)? The above formatting doesn't work.
> 
> 
> 
> Arial Unicode MS includes that unicode character. Times New Roman PSMT also supports it; both are available on my system.
> 
> 
> 
> OSX 10.6.8 
> GN   4.6 patchlevel 4
> pdfcairo installed
> using PDF terminal

The Symbola font includes all unicode glyphs for moon phases.

In these 4 labels, the last two work. All glyphs appear in OSX Font Book; when inserted as symbols into the BBedit command file, the symbols appear correctly; the BBedit file is saved as UTF8; UTF8 is set in the terminal. The SVG terminal displays all the characters properly; the Aqua and PDF terminals display only the First and Last Quarters properly.

"" u (myDateSP(1,2)):3:((strcol(4) eq "New") ?  ("🌑"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "Full") ?  ("🌕"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "First") ?  ("☽"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "Last") ?  ("☾"):1/0) w labels left font "Symbola,28" offset -4,0,\

Neither of these terminal setups seems to help:

set terminal pdfcairo enhanced size 13.5,9.8
set term pdfcairo enhanced  font "Symbola" size 13.5,9.8

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-04 04:32 -0800
  Re: Formatting Unicode symbol in a label Karl <mail.kfr@gmx.net> - 2014-01-04 18:16 +0100
  Re: Formatting Unicode symbol in a label Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2014-01-04 19:09 +0100
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-04 23:56 -0800
    Re: Formatting Unicode symbol in a label Karl <mail.kfr@gmx.net> - 2014-01-05 18:44 +0100
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-05 00:05 -0800
    Re: Formatting Unicode symbol in a label Karl <mail.kfr@gmx.net> - 2014-01-05 18:28 +0100
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-05 18:08 -0800
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-07 08:22 -0800
    Re: Formatting Unicode symbol in a label Ethan A Merritt <merritt@u.washington.edu> - 2014-01-07 13:18 -0800
      Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-07 23:59 -0800
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-07 08:28 -0800

csiph-web