Amaya uses different configuration files to get initial values for global parameters, dialogue strings, shortcuts, windows size and windows position. You can change the default values by creating or updating the following configuration files:
This file is used to define global parameters of Thot applications (Amaya is
a Thot application). Inside this file, there's a section called
[amaya]
where are specified the configuration options concerning:
the default home page, default
colors, the colors palette, the
dialogue language, the path to the personall dictionary, and the default printer command.
You can change the default home page of Amaya by editing the
HOME_PAGE
variable in the registry
file.
Parameters related to the particular schema HTML are stored in the HTML.conf file. In that file there are different sections, one by Presentation Schema, that allows user to control position and size of document windows defined by the presentation schema:
For each view, in both the open and geometry
sections, there is a list of four parameters specifying the
x_position
, the y_position
, the width
,
and the height
of that view. The value of the
x_position
and the y_position
are automatically
incremented by Amaya to display diffent document views at different places on
the screen.
User interface colors have default values that can be modified in the registry file of the user. The following parameters are used:
DocSelectColor, the
background color of the selected part and of
the insertion cursor.
N.B. The default value for Black and White screens is
Black
. If you can't see a selection in your screen,
change this value to White
.
ForegroundColor
, the default color of text in documents.
MenuBgColor, the b
ackground color of: menu bars at the top of
windows, the area where the selection message is displayed at the top of
document windows, menus, dialogue boxes.
ButtonColor
, background color of buttons in dialogue forms.
ScrollColor=
color of the scrolling bars.
To take into account any change to these options, you need to restart Amaya.
CSS allows the user to color documents with one of the 152 predefined colors. During initialization, the editor loads its color table to present them in a palette. If you have problems with your color resources, you can reduce by half the number of colors loaded by the editor by editing the following option in the registry file:
ReduceColor= yes
To take into account any changes to this option, you need to restart Amaya.
The dialogue language is defined by the variable LANG
in the registry file. The default language is English (value
en_US
). At the moment, only two languages are available: English
(en
) and French (fr
). When launched, Amaya loads
dialogue files according to the current dialogue language: en- files or fr-
files. These dialogue files are located in the directory Thot/config.
In Thot, a document is specified according to a schema. In Amaya, the dialogue
message that are displayed when parsing a document or when saving it under a
specific schema are given in the
Thot/amaya/HTML.code file, where the code
suffix is a language abbreviation (e.g., en
or fr
).
This file has 4 sections:
It's possible to adapt Amaya to new ISO-Latin-1 languages by writing corresponding dialogue files. These dialogue files have to be located in the same directory Thot/config, and must use the right ISO 639 code as a prefix (it- for Italian, de- for German, etc.). The specific HTML.code file also has to be created.
The standard printer command is defined by the THOTPRINTER
registry file variable. If this command is not well
adapted of the current system, the user have to update it before printing
using the "Print Setup" command or change this variable in the registry file.
It is useful to be able to invoke menu commands directly from the keyboard. The Thot toolkit provides a facility that let user accomplish this by means of an application keyboard shortcuts file. This file defines a list of associations between a keyboard sequence an the invoked corresponding command.
The syntax used to define an association is:
Directive = KeySeq ':' IdentCommand ; KeysSeq = KeySet [ ',' KeySet ] ; KeySet = [ Modifier ] [ 'Shift' ] Key ; Key = '<Key>' KeyValue / '<Key>' SpecialKey ; Modifier = 'Ctrl' / 'Alt' / 'Meta' ; KeyValue = 'a' / 'b' / ... ; SpecialKey = 'Escape' / 'Delete' / 'Space' / 'BackSpace' / 'Return' / 'Up' / 'Down' / 'Left' / 'Right' / 'Home' / 'End' / 'F1' / ... / 'L1' / ... / 'R1' / ... ; IdentCommand = 'TtcInsertChar(' Char ')' / NAME '()' ; Char = KeyValue / OctalValue ; OctalValue = '\' NUMBER ;
For an example, see the standard amaya.keyboard file, which is located in the config directory.
The list of available commands is:
File
menu:
New, OpenDoc, OpenDocInNewWindow, Reload, SaveDocument, SaveDocumentAs, TtcPrint, TtcPrintSetUp, TtcCloseDocument, AmayaClose
TtcCutSelection, TtcCopySelection, TtcPaste, TtcDeleteSelection, TtcSearchText, EnSpellCheck, FrSpellCheck.
Structure Types
menu:
CreateIsIndex, CreateBase, CreateMeta, CreateLinkInHead, CreateComment.
CreateParagraph, CreateImage, CreateHeading1, CreateHeading2, CreateHeading3, CreateHeading4, CreateHeading5, CreateHeading6, CreateList, CreateNumberedList, ThotCreateMenu, ThotCreateDirectory, CreateDefinitionList, CreateDefinitionTerm, CreateDefinitionDef, CreateHorizontalRule, CreateBlockQuote, CreatePreformatted, CreateAddress, CreateTable, CreateCaption, CreateTHead, CreateTBody, CreateTFoot, CreateRow, CreateDataCell, CreateHeadingCell, CreateToggle, CreateRadio, CreateOption, CreateTextInput, CreateTextArea, CreateCommandLine, CreateAreaRect, CreateAreaPoly, CreateDivision, CreateApplet, CreateParameter, TransformType.
Links
menu:
CreateLink, CreateTarget, ChangeLink, DeleteAnchor.
TtcSwitchButtonBar, TtcSwitchCommands, ShowStructure, ShowAlternate, ShowMapAreas.
Style
menu:
TtcChangeCharacters, TtcChangeColors, TtcChangeFormat, ChangeClass, ApplyClass, InitCSSDialog, CreateElemEmphasis, CreateElemStrong, CreateElemCite, CreateElemDefinition, CreateElemCode, CreateElemVariable, CreateElemSample, CreateElemItalic, CreateElemBold, CreateElemTeletype, CreateElemStrikeOut, CreateElemBig, CreateElemSmall, CreateSub, CreateSup, CreateElemFont.
Help
menu:
HelpAmaya, HelpBrowsing, HelpSelecting, HelpSearching, HelpViews, HelpCreating, HelpLinks, HelpChanging, HelpTables, HelpImageMaps, HelpStyleSheets, HelpAttributes, HelpPublishing, HelpPrinting, HelpMakeBook.