The script can be used to enter phonetic characters using any mnemonic character, combination of characters, or character name. In its current form, entering e in the script's edit field enters a schwa in the document; c gives you an open o (turned c); ng enters an eng at the cursor position; jn, a lefthookatleft; nj, nrighthook; flap enters the flapped r in the document. Press OK or Enter/Return when the ?=help prompt is displayed to show a help screen with the defined keys. It is easy to add keystrokes. Ideally, the script is assigned to a keyboard shortcut for easy access.
To enter phonetic characters with a diacritic, first enter the phonetic character using the script here. Then use the compose script (listed separately) to enter a diacritic and combine the two.
When run, the script shows this simple dialog:

Enter a character or a string and press Enter/Return to enter the phonetic character at the insertion point.
The script is very simple and can be used as a template for a script to enter any character. You don't need scripting knowledge to modify the list with key definitions (maybe a bit of courage) -- though precision is required in formatting entries exactly as in the script's text.
Like the script? A donation will be appreciated.
Questions, comments? Get in touch