4

I am looking to insert a special character or symbol into my documents, which are intended to be markdown formatted text files. The symbol is intended to be used to represent a tick box or other tick/cross visual symbol (either empty, or actually ticked). Examples provided below (inserted using Edit > Special Characters in Safari)

☐☑☒✓✕❏

Once I have used it in a file, I want the symbol to be readable regardless of whether I view the file through an app in either OS X or iOS, as well as capable of being inserted from any source including the iPhone keyboard

What is the best method of ensuring consistent input and viewing of such characters works across the board, is there a particular font family or Unicode code that will enable portability across my devices, and is there a simple way to insert them, possibly via text expander or autocorrect if they are not on the main keyboard?

2 Answers 2

4

Viewing Special Characters

The good news is that this part should almost always 'just work' on OS X and iOS devices. Encodings are usually handled intelligently, Unicode fonts are installed, and font substitution does its job.

If you do encounter problems, be sure to specify the encoding as Unicode (UTF-8) when saving. If your text editor doesn't allow you to specify an encoding, it's a fairly safe bet that this is what it's using.

Since Markdown files are plaintext, you don't have to worry about fonts. If you are using rich formatting, though, Lucida Grande, Arial Unicode, and Apple Symbol are all good options. But, again, OS X and iOS generally switch to another font seamlessly when the main font doesn't support a character.

Entering Special Characters

Both OS X and iOS include built-in text replacement tools that will let you insert your symbols easily.

OS X
Open System Preferences-> Language and Text-> Text and click the [+] button. Choose a keyword to be expanded and paste in the special character. You'll have to create snippets with unique keywords for each character. enter image description here

iOS
Copy a special character. Open Settings-> General-> Keyboard-> Shortcuts and tap the [+] button. Paste the character under Phrase and enter a unique keyword under Shortcut. Tap save. Again, you'll have to create snippets with unique keywords for each character.

If you like, you can use the excellent TextExpander to do the same thing, but it isn't necessary in this case.

2

For that task, I usually take two routes depending on the complexity of the task. To simply input a character, I'd use Uklele to remap the keyboard. But if the task requires more than just the input of a character I'd add/modify ~/Library/KeyBindings/DefaultKeyBinding.dict which uses Cocoa Text System to bind certain keys of your choice to operations available to all Cocoa Text System based apps. You can run a search on google for DefaultKeyBinding.dict and you'll find lot's of resources to explain the operations.

Regarding the fonts, I think Lucida Grande has many of those special characters on OSX. Whatever character you choose, you can see a list of font based variations of it in the Character Viewer if you expand that window. Note that this floating window does expand without the display of the windows resize mouse pointer.

2
  • I saw the "font variations" bit, but couldn't easily work out which fonts it was listing, or know if they were available on iOS, and how iOS might handle them if for example I used an app (say ByWord) that did not choose to use that font, even it it was available on the phone...
    – stuffe
    Mar 18, 2012 at 0:20
  • When you click on the character in the “font variations” corner you'll have the feed back about the font name. I think iOS also uses Lucida Grande. Many of those symbols are listed as part of other languages as well. So they'll map correctly based on Unicode codes.
    – ismail
    Mar 18, 2012 at 0:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .