I came up with these the other day, and thought someone else might find these useful. They're very small bundles that simply let you type (while working in HTML) and have properly coded typographic characters.
I come from a print design background, and am used to being rather particular with my typography. One of my biggest pet peeves is seeing a double tick mark (") where a proper quote mark (") should be.
I've been learning to hand-code my websites, but something that always frustrated me with HTML was having to code out – when I was used to just hitting opt - (hyphen).
So I came up with the attached snippets that let me do what I wanted to do - I can type the character as I'm used to typing it, and Textmate inserts the proper HTML code.
I'll be honest, I got the idea for this when I tried out SkEdit - it was the one feature that I missed in Textmate. But it was easy enough to add myself.
Enjoy! I hope there are some typophiles that will like this!
In a word, no. I had filtered out the markdown bundle, so I hadn't explored it. Besides, smartypants doesn't do exactly what I wanted to do, anyway, as I understand it. It takes "period period period" and turns it into "…"
I was trying to have the effect of just typing from within an HTML document, using the typing that I am used to, and having TM automagically insert the right HTML code for that typographic mark.
If Smarty Pants does this as well, I didn't see it. But thanks for pointing it out - I had no idea!
On 5/6/07, Jacob Rus jacobolus@gmail.com wrote:
Chip Cullen wrote:
I came up with these the other day, and thought someone else might
Have you tried smarty pants (or TM's markdown bundle which also runs smarty pants?)
-Jacob
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Chip Cullen wrote:
In a word, no. I had filtered out the markdown bundle, so I hadn't explored it. Besides, smartypants doesn't do exactly what I wanted to do, anyway, as I understand it. It takes "period period period" and turns it into "…"
I was trying to have the effect of just typing from within an HTML document, using the typing that I am used to, and having TM automagically insert the right HTML code for that typographic mark.
If Smarty Pants does this as well, I didn't see it. But thanks for pointing it out - I had no idea!
Smarty pants turns double hyphens into em- and en-dashes, straight quotes to smart quotes, `...` into `…`, `x` into `×`, etc. etc.
On Sun, 6 May 2007, Chip Cullen wrote:
I come from a print design background, and am used to being rather particular with my typography. One of my biggest pet peeves is seeing a double tick mark (") where a proper quote mark (") should be.
Heh. I come from a programming background, and one of *my* biggest pet peeves is seeing non-ASCII typographical characters which mess up pasting page content into a plain-text document or converting to something my Palm Pilot can use... :-)