## Entering Characters

To enter ISO-Latin characters that are not directly available from the keyboard, Amaya uses the standard support provided by the Operating System. An optional multi-key support is also provided for Motif versions 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 will be saved as an entity (`&nbsp;`) and is displayed in the source view with the following colored character: ~
- To enter a œ (oelig), press `Ctrl o e`
- To enter a Œ (OElig), press `Ctrl Shift O E`
- To enter a «, press `Ctrl [`
- To enter a », press `Ctrl ]`
- To enter a (hyphen), press `Ctrl h -`

See the description of the standard input method: Standard multi-key for Unix and Mac OS X versions.

### About Unix Standard Multi-key Support

If an ISO-Latin character is unavailable on the standard 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 ISO-Latin characters. Note that in Amaya, you can switch the position of the first key and the second one.

If your keyboard doesn't contain the `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 (in Unix), and Amaya will apply it when you will launch your X server.

Nom | Code | Première/Seconde touche | Seconde/Première Touche | Sortie
AElig | 198 | <Shift> A | <Shift> E | Æ
Aacute | 193 | <Shift> A | quote | Á
Acirc | 194 | <Shift> A | circumflex | Â
Agrave | 192 | <Shift> A | backquote | À
Aring | 197 | <Shift> A | star | Å
Atilde | 195 | <Shift> A | tilde | Ã
Auml | 196 | <Shift> A | double quote | Ä
Ccedil | 199 | <Shift> C | comma | Ç
Eth | 222 | - | D | Ð
Eacute | 201 | <Shift> E | quote | É
Ecirc | 202 | <Shift> E | circonflex | Ê
Egrave | 200 | <Shift> E | backquote | È
Euml | 203 | <Shift> E | double quote | Ë
Iacute | 205 | <Shift> I | quote | Í
Icirc | 206 | <Shift> I | circumflex | Î
Igrave | 204 | <Shift> I | backquote | Ì
Iuml | 207 | <Shift> I | double quote | Ï
Ntilde | 209 | <Shift> N | tilde | Ñ
Oacute | 211 | <Shift> O | quote | Ó
Ocirc | 212 | <Shift> O | circumflex | Ô
Ograve | 210 | <Shift> O | backquote | Ò
Oslash | 216 | <Shift> O | slash | Ø
Otilde | 213 | <Shift> O | tilde | Õ
Ouml | 214 | <Shift> O | double quote | Ö
Thorn | 222 | <Shift> T | <Shift> H | Þ
Uacute | 205 | <Shift> U | quote | Ú
Ucirc | 206 | <Shift> U | circumflex | Û
Ugrave | 204 | <Shift> U | backquote | Ù
Uuml | 207 | <Shift> U | double quote | Ü
Yacute | 221 | <Shift> Y | quote | Ý
aelig | 230 | a | e | æ
aacute | 225 | a | quote | á
acirc | 226 | a | circumflex | â
agrave | 224 | a | backquote | à
aring | 229 | a | star | å
atilde | 227 | a | tilde | ã
auml | 228 | a | double quote | ä
brvbar | 166 | bar (pipe) | bar | ¦
ccedil | 231 | c | comma | ç
cent | 162 | c | slash | ¢
copy | 169 | c | o | ©
current | 164 | x | o | ¤
deg | 176 | accent circonflexe | 0 (zéro) | °
eacute | 233 | e | quote | é
ecirc | 234 | e | circumflex | ê
egrave | 232 | e | backquote | è
euml | 235 | e | double quote | ë
eth | 240 | - | d | ð
frac12 | 189 | / | 2 | ½
frac14 | 188 | / | 4 | ¼
frac34 | 190 | / | 3 | ¾
hyphen | 173 | - (moins) | - |
iacute | 237 | i | quote | í
icirc | 238 | i | circumflex | î
igrave | 236 | i | backquote | ì
iexcl | 161 | ! (exclam) | ! | ¡
iquest | 191 | ? (question) | ? | ¿
laquo | 171 | < (inférieur) | < | «
macr | 175 | - (moins) | circumflex | ¯
micro | 181 | / | u | µ
middot | 183 | . | circumflex | ·
nbsp | 160 | <Ctrl> space | (none) |
not | 172 | - (moins) | comma | ¬
ntilde | 241 | n | tilde | ñ
oacute | 243 | o | quote | ó
ocirc | 244 | o | circumflex | ô
ograve | 242 | o | backquote | ò
oslash | 248 | o | slash | ø
otilde | 245 | o | tilde | õ
ouml | 246 | o | double quote | ö
ordf | 170 | a | _ (underscore) | ª
ordm | 186 | o | _ (underscore) | º
para | 182 | <Shift> P | ! (exclam) | ¶
plusmn | 177 | + | - (minus) | ±
pound | 163 | l | - (minus) | £
raquo | 187 | > (supérieur) | > | »
reg | 174 | <Shift> R | <Shift> O | ®
sec | 167 | s | ! (exclam) | §
sup1 | 185 | s | 1 | ¹
sup2 | 178 | s | 2 | ²
sup3 | 179 | s | 3 | ³
szlig | 223 | s | s | ß
thorn | 254 | t | h | þ
uacute | 250 | u | quote | ú
ucirc | 251 | u | circumflex | û
ugrave | 249 | u | backquote | ù
uuml | 252 | u | double quote | ü
yacute | 253 | y | quote | ý
yen | 165 | y | - (minus) | ¥
yuml | 255 | y | double quote | ÿ

### How to type accented charaters on Mac OS X

With an international US keyboard, entering accented characters is done with the Option key (aka Alt key) as follow:

- Grave accent (`): Option + `, then the letter
- Acute accent (´): Option + e, then the letter
- Circumflex accent (ˆ): Option + i, then the letter
- Tilde accent (˜): Option + n, then the letter
- Umlaut accent (¨): Option + u, then the letter
- The letter “c” with a cedilla (ç): Option + c.

### About White Space Handling

Amaya removes insignificant white-space characters when it loads a document unless they must be explicitly preserved. This is true for XHTML, MathML, and SVG documents, as well as MathML or SVG elements included in a 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 the characters for some elements, use the `xml:space` attribute or the `PRE` element (only valid for XHTML documents). The possible values for the `xml:space` attribute are `default` and `preserve`.

- The value `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).

- The value `preserve` indicates that applications will 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.

You apply the `xml:space` attribute to all elements within the content of the element where it is specified, unless it is overriden with another instance of the `xml:space` attribute.

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

Amaya applies white space handling when it loads a document, not during editing. A consequence is that if you type insignificant white-space characters, they will be visible and saved but will be removed the next time the document is loaded. For example, the following source code:

`<p>Amaya removes the <strong> insignificant white-space </strong>when it loads ...</p>`

displays as follows during editing:

`Amaya removes the insignificant white-space when it loads...`

The text will be saved with that syntax. However, the next time the document is loaded, the text will display as:

`Amaya removes theinsignificant white-spacewhen it loads...`

because the leading and trailing spaces of the element `<strong>` are considered to be insignificant and are removed.

The correct source code would be:

`<p>Amaya removes the <strong>insignificant white-space</strong> when it loads ...</p>`