
Glosspaste 1.0
Samuel Murray, April 2007

This is a script for inserting glossary items with a keyboard shortcut.

It requires two things:
* you gotta have your glossary pane top left of the screen (see screenshots)
* you gotta use "Tab" to advance

When you use the script, the way to move to the next segment is Ctrl+Enter.  When you press Ctrl+Enter, OmegaT moves to the next segment and then the script kicks in.  It displays a tooltip with the terms in it.  You can insert these by number.

How to insert a term:

1. Press Ctrl+Shift+Z to activate the insert module.
2. Press the number of the term you want to insert.

If you pressed Ctrl+Shift+Z but then decides not to insert anything, you gotta press Ctrl+Shift+X to cancel the insert module, otherwise a term will be inserted when you try to type a number.  Another easy way to cancel the insert module is to press a number that doesn't have a term associated with it (that'll insert a space, though).

To exit the script, right-click the icon in the systray.

Issues:

1. If you want OmegaT to be in a different position, or you want your glossary pane elsewhere, just edit the script to change the position of the mouseclick and the position of the tooltip.  I can't guess how big your screen is, so I'm playing it safe.

2. You can't call back the tooltip once you've dismissed it, but you can still use the shortcuts :-)

3. Selecting a term that isn't there will cause a space to be typed.

4. You can use a traytip too, if you prefer -- just edit the script (comment out the one thing, comment in the other).  If you don't know what I'm saying, well, figure it out.

5. As with all my scripts, if you're using Unicode, you may find yourself sunk.

6. If you're glossary has three columns, and the third columns (or any other column) contains a single quote character, you might just break the script (but you won't lose your life or your work).
