Next: , Previous: Projects, Up: The Programs


3.2 The Malaga Profiles .malagarc or malaga.ini

If you prefer some options that you want to use with every Malaga project, you may create a personal profile. On Unix systems, it is located in your home directory and is called .malagarc. In Windows NT based systems, it is located in your user profile directory and is called malaga.ini. In Windows DOS based systems, it is located in the root directory of your system drive and is also called malaga.ini. You can enter malaga and mallex options in the same manner as you do in the project file:

     malaga: set display-line "malshow"
     malaga: set use-display yes
     mallex: set display-line "malshow"
     mallex: set use-display yes

The settings in your personal profile override the settings in the project file.

You can set some attributes of the graphical user interface, like the position, the size, and the font size of each window that is part of the user interface. The following attributes are available:

*_geometry:
Defines the size and/or position of a window. The “*” must be replaced by the name of the window, which may be allomorphs, path, result, tree, variables, or expressions. The attribute must be followed by an expression like `628x480+640+512'. The first two numbers (`628x480') define the width and the height of the window in pixels, the last two numbers (`+640+512') define the position of its upper left corner.
font:
The attribute must be followed by the name of the font family to use.
font_size:
The attribute must be followed by an integer font size, given in points. The available font sizes are 8, 10, 12, 14, 18, and 24 points.
show_indexes:
The attribute must be followed by yes or no, which determines whether state indexes are shown in the Tree and Path windows.
hanging_style:
The attribute must be followed by yes or no, which determines whether horizontally adjacent complex values are aligned at their top lines (hanging style) or at their bottom lines (non-hanging style).
inline_path:
The attribute must be followed by yes or no, which determines whether the components of a state or a link in a path will be arranged horizontally or vertically. For small feature-structures, e.g. in formal grammars, horizontal arrangement is better readable, while full-blown natural language grammar paths look better in vertical arrangement.
show_tree:
A three-valued attribute that determines which states of a tree are shown. Possible values are: full, no_dead_ends and result_paths.

Here is an example which sets every option available:

     allomorphs_geometry: 628x480+640+0
     path_geometry: 628x480+640+0
     result_geometry: 628x480+640+0
     tree_geometry: 628x480+640+512
     variables_geometry: 628x480+640+512
     expressions_geometry: 628x480+640+0
     
     font: helvetica
     font_size: 12
     
     show_indexes: yes
     hanging_style: yes
     inline_path: yes
     show_tree: no_dead_ends