The first way to enter these symbols relies on you creating a HTML document. Code points can be entered as HTML entities in the form &#x<code point>;. This assumes the <code point> in its hexadecimal representation. The code point for the Tab symbol described above is 21E5 and looks like ⇥. Of course, whether you see the symbol correctly depends on your viewer's ability to interpret the HTML entity and display the corresponding symbol.
If you are not writing a HTML document, you can still insert these symbols (if your editor supports doing so). On a Mac this can be done via the following process:
1. Open System Preferences
2. Select International
3. Select Input Menu
4. Scroll to the bottom and check "Unicode Hex Input"
You should now have a little "U+" icon in your menu bar at the top right. With this enabled you can now enter symbols by typing the code point while holding the Alt/Option key.
That is pretty much it. I think a similar process is used on Windows.
Here is a list of code points for some of the keys on a Mac OS X keyboard.
| Key | Code Point | Symbol |
| Control | 2303 | ⌃ |
| Alt/Option | 2325 | ⌥ |
| Shift | 21E7 | ⇧ |
| Command | 2318 | ⌘ |
| Tab | 21E5 | ⇥ |
| Backtab | 21E4 | ⇤ |
| Return | 21A9 | ↩ |
| Enter | 2305 | ⌅ |
| Delete | 2326 | ⌦ |
| Backspace | 232B | ⌫ |
| Escape | 238B | ⎋ |
| Left Arrow | 2190 | ← |
| Right Arrow | 2192 | → |
| Up Arrow | 2191 | ↑ |
| Down Arrow | 2193 | ↓ |
TextMate's HTML bundle has tab triggered snippets for each of these symbols. To enter the Tab entity just type tab⇥.



1 comments:
Sometime between when I wrote this post and now where I am running Mac OS X 10.6.4, the menu items for enabling Unicode Hex Input has changed. Here is the new sequence.
1. Open System Preferences
2. Select Language & Text
3. Select Input Sources
4. Scroll to the bottom and check "Unicode Hex Input".
Post a Comment