]> git.lyx.org Git - lyx.git/blob - src/tex-accent.h
Remove cached var from RenderPreview. Changes elsewhere to suit.
[lyx.git] / src / tex-accent.h
1 // -*- C++ -*-
2 /**
3  * \file tex-accent.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  * \author Matthias Ettrich
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef TEX_ACCENT
14 #define TEX_ACCENT
15
16 #include "lfuns.h"
17
18 /* the names used by TeX and XWindows for deadkeys/accents are not the same
19    so here follows a table to clearify the differences. Please correct this
20    if I got it wrong
21
22    |------------------|------------------|------------------|--------------|
23    |      TeX         |     XWindows     |   \bind/LFUN     | used by intl |
24    |------------------|------------------|------------------|--------------|
25    |    grave         |    grave         |LFUN_GRAVE        | grave
26    |    acute         |    acute         |LFUN_ACUTE        | acute
27    |    circumflex    |    circumflex    |LFUN_CIRCUMFLEX   | circumflex
28    | umlaut/dieresis  |    diaeresis     |LFUN_UMLAUT       | umlaut
29    |    tilde         |    tilde         |LFUN_TILDE        | tilde
30    |    macron        |    maron         |LFUN_MACRON       | macron
31    |    dot           |    abovedot      |LFUN_DOT          | dot
32    |    cedilla       |    cedilla       |LFUN_CEDILLA      | cedilla
33    |    underdot      |                  |LFUN_UNDERDOT     | underdot
34    |    underbar      |                  |LFUN_UNDERBAR     | underbar
35    |    hácek         |    caron         |LFUN_CARON        | caron
36    |    breve         |    breve         |LFUN_BREVE        | breve
37    |    tie           |                  |LFUN_TIE          | tie
38    | Hungarian umlaut |    doubleacute   |LFUN_HUNG_UMLAUT  | hungarian umlaut
39    |    circle        |    abovering     |LFUN_CIRCLE       | circle
40    |                  |    ogonek        |                  |
41    |                  |    iota          |                  |
42    |                  |    voiced_sound  |                  |
43    |                  | semivoiced_sound |                  |
44    |                  |                  |LFUN_SPECIAL_CARON| special caron
45    */
46 // I am not sure how some of the XWindows names coresponds to the TeX ones.
47
48 ///
49 enum tex_accent {
50         ///
51         TEX_NOACCENT = 0,
52         ///
53         TEX_ACUTE,
54         ///
55         TEX_GRAVE,
56         ///
57         TEX_MACRON,
58         ///
59         TEX_TILDE,
60         ///
61         TEX_UNDERBAR,
62         ///
63         TEX_CEDILLA,
64         ///
65         TEX_UNDERDOT,
66         ///
67         TEX_CIRCUMFLEX,
68         ///
69         TEX_CIRCLE,
70         ///
71         TEX_TIE,
72         ///
73         TEX_BREVE,
74         ///
75         TEX_CARON,
76 //  TEX_SPECIAL_CARON,
77         ///
78         TEX_HUNGUML,
79         ///
80         TEX_UMLAUT,
81         ///
82         TEX_DOT,
83         ///
84         TEX_OGONEK,
85         ///
86         TEX_MAX_ACCENT= TEX_OGONEK
87 };
88
89
90 /** the native is so we know what characters TeX can write in a decent way
91  it should be up to the user if _all_ characters should be allowed to
92  be accented. Lgb. */
93 struct tex_accent_struct {
94         ///
95         tex_accent accent;
96         ///
97         char const * cmd;
98 #if 0
99         ///
100         char const * native;
101 #endif
102         ///
103         char const * name;
104         ///
105         kb_action action;
106 };
107
108 ///
109 extern tex_accent_struct lyx_accent_table[];
110
111 #endif