4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Matthias Ettrich
10 * Full author contact details are available in file CREDITS.
17 #include "support/docstring.h"
22 // FIXME This file has nothing to do with TeX anymore
24 /* the names used by TeX and XWindows for deadkeys/accents are not the same
25 so here follows a table to clearify the differences. Please correct this
28 |------------------|------------------|------------------|--------------|
29 | TeX | XWindows | \bind/LFUN | used by intl |
30 |------------------|------------------|------------------|--------------|
31 | grave | grave |LFUN_ACCENT_GRAVE | grave
32 | acute | acute |LFUN_ACCENT_ACUTE | acute
33 | circumflex | circumflex |LFUN_ACCENT_CIRCUMFLEX | circumflex
34 | umlaut/dieresis | diaeresis |LFUN_ACCENT_UMLAUT | umlaut
35 | tilde | tilde |LFUN_ACCENT_TILDE | tilde
36 | macron | maron |LFUN_ACCENT_MACRON | macron
37 | dot | abovedot |LFUN_ACCENT_DOT | dot
38 | cedilla | cedilla |LFUN_ACCENT_CEDILLA | cedilla
39 | underdot | |LFUN_ACCENT_UNDERDOT | underdot
40 | underbar | |LFUN_ACCENT_UNDERBAR | underbar
41 | hácek | caron |LFUN_ACCENT_CARON | caron
42 | breve | breve |LFUN_ACCENT_BREVE | breve
43 | tie | |LFUN_ACCENT_TIE | tie
44 | Hungarian umlaut | doubleacute |LFUN_ACCENT_HUNGARIAN_UMLAUT | hungarian umlaut
45 | circle | abovering |LFUN_ACCENT_CIRCLE | circle
49 | | semivoiced_sound | |
50 | | |LFUN_ACCENT_SPECIAL_CARON| special caron
52 // I am not sure how some of the XWindows names coresponds to the TeX ones.
92 TEX_MAX_ACCENT= TEX_OGONEK
96 struct tex_accent_struct {
99 /// UCS4 code point of this accent
108 extern tex_accent_struct lyx_accent_table[];
111 extern docstring const DoAccent(docstring const &, tex_accent);
113 extern docstring const DoAccent(char_type, tex_accent);
115 extern tex_accent_struct get_accent(kb_action action);