@brief Get information about input method variable(s).
The minput_get_variable() function returns information about
variable @b variable of the input method specified by @b language and @b name.
An input method variable controls behavior of an input method.
There are two kinds of variables, global and local. A global
variable has a global definition, and the description and the value
may be inherited by a local variable. Each input method defines a
local variable which has local value. It may also declare a
local variable that inherits definition of a global variable of
the same name.
If @b language is #Mt and @b name is #Mnil, information about a global
variable is returned. Otherwise information about a local variable
is returned.
If @b variable is #Mnil, information about all variables is
returned.
The return value is a @e well-formed plist (@ref m17nPlist) of this
format:
((NAME DESCRIPTION STATUS VALUE [VALID-VALUE ...]) ...)
NAME is a symbol representing the variable name.
DESCRIPTION is an M-text describing the variable, or Mnil if the variable has no description.
STATUS is a symbol representing how the value is decided. The value is Mnil (the default value),
Mcustomized (the value is customized by per-user customization file), or Mconfigured (the value is set by
the call of minput_config_variable()). For a local variable only, it may also be Minherited (the value is
inherited from the corresponding global variable).
VALUE is the initial value of the variable. If the key of this element is Mt, the variable has no initial
value. Otherwise, the key is Minteger, Msymbol, or Mtext and the value is of the corresponding type.
VALID-VALUEs (if any) specify which values the variable can have. They have the same type (i.e. having
the same key) as VALUE except for the case that VALUE is an integer. In that case, VALID-VALUE may be a
plist of two integers specifying the range of possible values.
If there no VALID-VALUE, the variable can have any value as long as the type is the same as VALUE.
If variable is not Mnil, the first element of the returned plist contains the information about variable.