hgtrans control GetLabelAliasReplacement
Gets the replacement string associated with a previously defined alias.
Syntax
hgtrans control GetLabelAliasReplacement subcase, datatype, level, index
Application
HyperGraphTrans Tcl Get
Description
This command gets the replacement rule associated with a previously defined aliasing rule.
Inputs
- subcase
- The name of the subcase in which to apply the rule.
- datatype
- The name of the datatype in which to apply the rule. (Does not apply if the level is “subcase”.)
- level
- The level of labels at which to apply the rule.
- datatype
- request
- component
- index
- The index of the rule. One-based. It must be an integer greater than zero.
Example
Add a rule to change the word “head” in all request names to its Spanish equivalent
“cabeza” and then read it back. Assumes that this is the first rule
added.
hgtrans control AddLabelAliasRule "head" "cabeza" "Subcase 1" "Displacement" request
hgtrans control GetLabelAliasReplacement "Subcase 1" "Displacement" request 1
Errors
Returns an empty string if no matching rule exists.
Keywords
get channel alias