Super/Sub script

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
pjrobertson
Harmless
Posts: 5
Joined: Sun Mar 16, 2008 6:27 pm

Super/Sub script

Postby pjrobertson » Sun Mar 16, 2008 6:33 pm

I know in pages it's possible to type super script or subscript after using the command: CMD, CTRL, + / -
Is it possible to type subscript/superscript in adium in any way (other that going to the character palette and then clicking insert)?

Btw: I mean for things like ∏² , C0₂ etc

pjrobertson
Harmless
Posts: 5
Joined: Sun Mar 16, 2008 6:27 pm

Re: Super/Sub script

Postby pjrobertson » Mon Mar 17, 2008 5:03 pm

Hmm, from the lack of comments I guess it's not possible...

mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: Super/Sub script

Postby mtimmsj » Mon Mar 17, 2008 10:22 pm

If you have the character palette open, you can use it to insert sub/super script text into the current cursor location. This requires that you don't need anything more than what is available in fonts (i.e. it doesn't appear that you can enter arbitrary text in a super/sub script). You can get easier access to the character palette by adding it to the menu bar in System Preferences -> International -> Input Menu.

If you have a big need to insert super/subscript stuff very often, you can save certain symbols to the character palette favorites for quick access to them.

pjrobertson
Harmless
Posts: 5
Joined: Sun Mar 16, 2008 6:27 pm

Re: Super/Sub script

Postby pjrobertson » Tue Mar 18, 2008 1:37 pm

Hmm yeah. I guess the character palette is the only way. :(

Thanks anyway!

Perdu
Harmless
Posts: 4
Joined: Sat Aug 26, 2006 4:35 pm

Re: Super/Sub script

Postby Perdu » Tue Mar 18, 2008 4:58 pm

What I do to use super– and subscripts is using a custom default key binding, which works in all cocoa applications.

With this I can type superscript characters by typing ctrl + ' and a number, and subscript with ctrl + -

This is the file I use (see the above link for how to install):

Code: Select all

   {

   /* superscript */
        "^'" = {
        "1" = ("insertText:", "\U00B9");
        "2" = ("insertText:", "\U00B2");
        "3" = ("insertText:", "\U00B3");
        "4" = ("insertText:", "\U2074");
        "5" = ("insertText:", "\U2075");
        "6" = ("insertText:", "\U2076");
        "7" = ("insertText:", "\U2077");
        "8" = ("insertText:", "\U2078");
        "9" = ("insertText:", "\U2079");
        "0" = ("insertText:", "\U2070");
        "i" = ("insertText:", "\U2071");
        "n" = ("insertText:", "\U207F");
        "(" = ("insertText:", "\U207D");
        ")" = ("insertText:", "\U207E");
        "+" = ("insertText:", "\U207A");
        "-" = ("insertText:", "\U207B");
        "=" = ("insertText:", "\U207C");
    };
         
    /* subscript */
   
   "^-" = {
        "1" = ("insertText:", "\U2081");
        "2" = ("insertText:", "\U2082");
        "3" = ("insertText:", "\U2083");
        "4" = ("insertText:", "\U2084");
        "5" = ("insertText:", "\U2085");
        "6" = ("insertText:", "\U2086");
        "7" = ("insertText:", "\U2087");
        "8" = ("insertText:", "\U2088");
        "9" = ("insertText:", "\U2089");
        "0" = ("insertText:", "\U2080");
        "(" = ("insertText:", "\U208D");
        ")" = ("insertText:", "\U208E");
        "+" = ("insertText:", "\U208A");
        "-" = ("insertText:", "\U208B");
        "=" = ("insertText:", "\U208C");
    };
}


You can also have it do greek letters etc.

I hope this helps.

pjrobertson
Harmless
Posts: 5
Joined: Sun Mar 16, 2008 6:27 pm

Re: Super/Sub script

Postby pjrobertson » Wed Mar 19, 2008 8:51 am

Thanks Perdu, that looks like a good solution.

I've made a DefaultKeyBindings.dict file and added your code
But things don't seem to work. I think it might be because Leopard uses Ctrl + 1,2 etc. for spaces.

Is there any work around? Thanks

Edit: I got this to work. You need to type CTRL + ' / - THEN your number. I was trying to type CTRL + '/- + number all at the same time.

Thanks Perdu! :D


Return to “Adium”

Who is online

Users browsing this forum: No registered users