The Macros
Frequently
used markup / editing sequences can be bundeled to Macros, which makes them
one-click accessible via custom buttons in the Annotation Editor. A good example
for a useful Macro is marking up the selected text as a paragraph and
subsequently applying the structural normalization to the content of the newly
created tag.
The Macros Menu
The Macros menu is part of the Window menu in the
GoldenGATE main window. It contains the functions for creating and managing
Macros:
- Create: Create
a new Macro by entering an Annotation type and selecting a processor.
- Edit: Open
the Macro editor dialog.
The Edit Macros Dialog
The dialog for Macro management is accessible
through the Edit function in the Macros menu. On the right of the dialog, a list
displays all existing Macros. In the middle, it displays the parameters of the
Macro currently selected in that list:
- Macro Label: The
label text for the button representing the Macro in the Annotation Editor.
- Macro Tooltip: The
tooltip text for the button representing the Macro in the Annotation Editor.
This text should provide a one-sentence explanation of what the Macro
vaguely does.
- DocPart Type: The
type of Document Part to create by the Macro.
- Open for Editing:
If checked, the newly created Document Part will be opened for editing
after the processor of the Macro has finished. This is particularly useful
for immediately correcting error of the processor, which is not too unlikely
if the latter applies NLP.
- Processor: Above
the buttons, a label displays the type and name of the processor currently
selected.
- "Use ..." Buttons:
For every type of document processor accessible to GoldenGATE, a button
exists which opens a dialog for selecting the processor from a list
displaying all avalilable processors of the particular type.
- Summary: Below the buttons, a label
provides a brief summary of what the Macro does in its current configuration.
Since this summary is rather generic, it is not too appropriate as a tooltip
in most cases, although the Macro editor uses it as a fallback if not
explicit tooltip is given.
At the top of the dialog, a line of
buttons provides the functionality for managing the Macros:
- Create: Open
a sub-dialog for creating a new Macro by entering an Annotation type and selecting a
processor.
- Clone: Clone
the Macro currently selected. This is pretty much the same as
creating a new one, beside the fact that the parameters are copied.
- Delete: Delete
the Macro currently selected. The processor of the Macro will not be
affected by this operation.