Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

2shortplanks (968)

  (email not shown publicly)
AOL IM: trelane2sp (Add Buddy, Send Message)
Yahoo! ID: trelane2sp (Add User, Send Message)

Mark Fowler has never been the same since he was elected leader of the London Perl Mongers. The strain manifests itself mainly in releasing various [] modules [] to CPAN, giving talks [], and use of the Trelane nick on for endless procrastination. Doctors are still seeking a cure.
Friday July 30, 2004
04:52 AM

Typing random unicode on Mac OS X

[ #20145 ]
Not strictly Perl related this one, but I've been spending so much of my time dealing with random unicode when I've been programming in Perl that I thought I might share:

Normally I use the american keyboard layout (since, as a Perl programmer I really want shift-3 to give me # not £.) This means when I hold down 'Alt' in most applications I can type things like “special quotes” and fünny léttérs. All good and well, but occasionally there's a unicode charecter that I know the code for but there's no keyboard shortcut for.

Lots of googling later and I'm a little more informed. You know within "International" in "System Preferences" you can enable one or more keyboard drivers in the "Input Menu" that you can switch between (with command-space and alt-command-space, or by using the 'show input menu in menu bar' option.) As well as enabling the charecter palette that allows you to scroll though seemingly all of unicode (useful, if not a bit tiresome every single time you want to enter a letter) you should also enable 'Unicode Hex Input'. When you switch to this keyboard driver it acts just like it would if you were using the american keyboard (yey) but changes the way the 'Alt' key works. Now holding down 'Alt' and typing the UTF-16LE code for the charecter (i.e. the hexcode for the codepage) allows you to enter any unicode charecter you want. Cor, it's just like using Windows again.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • It's a real PITA switching back and forth mentally though as the Finnish kbd has all the fuzzy letters on the right hand giving you a on the left pinky and ä on the right pinky which gets cross-wired at various levels of need. Typing is so 1930s....what happened to our mind reading computers and HAL, anyway? :)