Cool. Thanks!

You need to install the Symbola font for this to work, and you probably need perl v 5.12 at least, and preferrably v 5.14 for the superior unicode handling.

I get the following errors when running the script using Strawberry Perl 5.12.3 for Microsoft Windows:

UCS-2LE:code point "\x{1d000}" too high at C:/strawberry/perl/site/lib +/Tk.pm line 423, <DATA> line 402. UCS-2LE:code point "\x{1d001}" too high at C:/strawberry/perl/site/lib +/Tk.pm line 423, <DATA> line 402. UCS-2LE:code point "\x{1d002}" too high at C:/strawberry/perl/site/lib +/Tk.pm line 423, <DATA> line 402. UCS-2LE:code point "\x{1d003}" too high at C:/strawberry/perl/site/lib +/Tk.pm line 423, <DATA> line 402. UCS-2LE:code point "\x{1d004}" too high at C:/strawberry/perl/site/lib +/Tk.pm line 423, <DATA> line 402. UCS-2LE:code point "\x{1d005}" too high at C:/strawberry/perl/site/lib +/Tk.pm line 423, <DATA> line 402. UCS-2LE:code point "\x{1d006}" too high at C:/strawberry/perl/site/lib +/Tk.pm line 423, <DATA> line 402. UCS-2LE:code point "\x{1d000}" too high at C:/strawberry/perl/site/lib +/Tk.pm line 423, <DATA> line 402. Unable to free colormap, palette is still selected. This application has requested the Runtime to terminate it in an unusu +al way. Please contact the application's support team for more information.

This is because Unicode 6.0 isn't supported in Perl version 5.12. It was introduced in Perl version 5.14. Unicode 6.0 is the version in which the many symbols, pictographs and emoticons included in the Symbola font were introduced. These characters are in the supplementary planes, not the Basic Multilingual Plan.

So…

use v5.14;

…instead of…

use v5.12;

In reply to Re: Tk Symbola Font viewer by Jim
in thread Tk Symbola Font viewer by zentara

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.