Dan'l B wrote:
> On Saturday, January 4, 2014 1:32:56 PM UTC+1, Dan'l B wrote:
> Turns out that the Symbola font includes all the unicode glyphs for moon
> phases.
>
> Can anyone illuminate me about why the following problem might occur? In
> these labels, the last two work, the first two do not when outputting to
> PDFcairo terminal. They all appear in the OSX Font Book, and 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 terminal displays
> only the First and Last Quarters properly; EPS and PDF terminals do not
> display any of the four:
>
> "" 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,\
The UTF sequences in your 3rd and 4th commands are indeed
☽ Unicode 263D UTF8 0xE2 0x98 0xBD first quarter moon
☾ Unicode 263E UTF8 0xE2 0x98 0xBE last quarter moon
and they display correctly here on my screen as I read your post.
The sequences in your 1st and 2nd commands are not displayed
correctly here but a hex dump shows that they are
Unicode 01F311 UTF8 0xF0 0x9F 0x8C 0x91
Unicode 01F315 UTF8 0xF0 0x9F 0x8C 0x95
These lie on a higher page of the Unicode tables and were added to
the standard in Unicode 6.0 (released Oct 2010). So I can easily
believe that many environments do not yet support them,
including my desktop display.
Maybe you can use instead
⬤ Unicode 2B24 UTF8 0xE2 0xAC 0xA4 Large Black Circle
◯ Unicode 25EF UTF8 0xE2 0x97 0xAF Large Circle