Entering characters

To enter characters that are not directly available from the keyboard,
Amaya uses the standard services provided by the Operating System. An
optional multi-key support is also provided for Motif and Windows
versions.

Amaya provides a mechanism for assigning keyboard
shortcuts to characters that are not directly available from the
keyboard. Some of them are pre-defined:

To enter a non-breaking space, press Ctrl-space
This character is displayed in the source view under the form of the
following colored character: ~

About Unix standard multi-key support

If a character is unavailable on the keyboard, you can insert the
character by pressing the special Compose key followed by a
sequence of two other keys. See the table below for the keys used to insert
various characters. Note that in Amaya you can change the order of the two
keys.

If your keyboard does not contain a Compose key, you can attach
it to an existing key such as Alt-Gr with the following
xmodmap command:

keycode 113 = Multi_key

You can place this command in the $HOME/.Xmodmap file, and
Amaya will apply it when you will launch your X server.

With an international US keyboard (qwerty), accented characters are
entered with the Alt key (aka Option key) as
follows:

Acute accent (Â´): alt-e, then the letter

Grave accent (`): alt-`, then the letter

Circumflex accent (ˆ): alt-i, then the letter

Tilde accent (˜): alt-n, then the letter

Umlaut accent (Â¨): alt-u, then the letter

The letter “c” with a cedilla (Ã§): alt-c

About white space handling

As required by the HTML specification, Amaya removes insignificant
white-space characters when it loads a document. This applies to (X)HTML,
MathML, and SVG documents, as well as MathML and SVG elements included in a
(X)HTML document,

The following are considered as insignificant white-space characters:

End of line characters (#xD and #xA)

Tab characters (#x9)

Leading spaces of an element

Trailing spaces of an element

Contiguous spaces (one space is preserved)

To preserve all characters for some elements, use the
xml:space attribute or the pre element (only in
(X)HTML documents). The possible values for the xml:space
attribute are default and preserve.

default means that an applications' default white-space
treatment is acceptable for these elements. In Amaya, the default
treatment removes the insignificant white-space characters for all
supported DTDs (see above).

preserve indicates that applications must preserve all the
characters, except the first one that immediately follows the end tag of
the element where it is specified, if that element is an end of line.

The xml:space attribute applies to all elements within the
element where it is specified, unless it is overridden with another instance
of xml:space.

In an XHTML DTD, the pre element causes the same behavior as
the xml:space attribute with the value preserve.