Babu has asked for the wisdom of the Perl Monks concerning the following question:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CHARACTER MAP
by zentara (Cardinal) on Apr 14, 2012 at 16:29 UTC | |
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh | [reply] |
by Babu (Initiate) on Apr 15, 2012 at 15:38 UTC | |
Thanks for your reply. I would like to build a script which would take the font name as argument and displays the utf8 characters that are supported by that font as like charmap application. | [reply] |
by zentara (Cardinal) on Apr 15, 2012 at 20:50 UTC | |
I showed you how to display the unicode characters in the Font viewer above. All you need to do is gather information on font you have on your commandline, and use a module to extract all the characters. This isn't a code writing service. Look at TrueType font gallery and the various CPAN Font related modules at Font to see how you can examine a Font file and extract the code points and names. The Tk module has in it's /examples directory the following script which is named unicode and attempts to display all the code pages on your system. It looks like Unicode::Unihan is easily used. You probably should look at Gucharmap if you want a nice charmap program, it's gtk2-c, not Perl, but you could convert it to Perl if you wanted.
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh | [reply] [d/l] |
|
Re: CHARACTER MAP
by NetWallah (Canon) on Apr 14, 2012 at 13:53 UTC | |
All great truths begin as blasphemies.
| [reply] |
|
Re: CHARACTER MAP
by repellent (Priest) on Apr 14, 2012 at 19:29 UTC | |
Example: http://rishida.net/scripts/pickers/latin/ If you're writing it (for your own education), you may want to refer to the pickers above to see what it takes to put characters together. | [reply] |
|
Re: CHARACTER MAP
by JavaFan (Canon) on Apr 14, 2012 at 13:06 UTC | |
Feel free to drop by again after you've tried something yourself, and have more specific questions. | [reply] [d/l] |
|
Re: CHARACTER MAP
by planetscape (Chancellor) on Apr 16, 2012 at 12:38 UTC | |
See also: The Unicode Sliderule HTH, planetscape | [reply] |
|
Re: CHARACTER MAP
by Anonymous Monk on Apr 14, 2012 at 23:34 UTC | |
| [reply] |