Hi, I'm fairly new to TextMate but I've been through the mailing list archives and was unable to determine if the following is possible.
In general, I'd like TextMate to display a unicode character in place of a sequence of ASCII characters. For instance, I'd like to be able to type => but have the editor display ⇒ (U+21D2).
The saved file will need to be ASCII so I'm not looking for a way to replace characters, just a way to choose a different representation.
Is there a simple way to do this?
Thanks, Jonathan
-- ten ni hibari ningen umi ni asobu hi zo larks in the sky people in the sea a holiday
On 25.01.2009, at 17:40, Jonathan Middleton wrote:
In general, I'd like TextMate to display a unicode character in place of a sequence of ASCII characters. For instance, I'd like to be able to type => but have the editor display ⇒ (U+21D2).
The saved file will need to be ASCII so I'm not looking for a way to replace characters, just a way to choose a different representation.
Is there a simple way to do this?
I would prepare a kind of a mapping file (two columns: ASCII ⇥ Unicode) and two commands which convert ASCII -> Unicode and visa versa.
--Hans
Thanks for the response, Hans. I'm really looking for an automagic method, which displays the unicode on the fly, as opposed to converting the entire file back and forth. Any ideas?
Cheers, Jonathan
On Monday, January 26, 2009, at 02:15AM, "Hans-Jörg Bibiko" bibiko@eva.mpg.de wrote:
On 25.01.2009, at 17:40, Jonathan Middleton wrote:
In general, I'd like TextMate to display a unicode character in place of a sequence of ASCII characters. For instance, I'd like to be able to type => but have the editor display ? (U+21D2).
The saved file will need to be ASCII so I'm not looking for a way to replace characters, just a way to choose a different representation.
Is there a simple way to do this?
I would prepare a kind of a mapping file (two columns: ASCII ? Unicode) and two commands which convert ASCII -> Unicode and visa versa.
--Hans
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 27.01.2009, at 00:02, Alex Ross wrote:
On Jan 26, 2009, at 2:36 PM, Jonathan Middleton wrote:
Thanks for the response, Hans. I'm really looking for an automagic method, which displays the unicode on the fly, as opposed to converting the entire file back and forth. Any ideas?
Use emacs?
:/
You can write your own open file command (template command or drag- command) bound to ⌘O or to ⌘⇧O. Use AppleScript's file choose dialog, call your converting routine. For saving the same, write a tmcommand (maybe bound to a scope) which converts to current doc and saves it.
--Hans