X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex-accent.h;h=7f7ec3d533608542eed9082d1069309fea9cbc18;hb=52eb91c94fb70d58dceef430659c8781de2eccda;hp=eb864d71531e8cf610d25a273e6e883b1b669d6b;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/tex-accent.h b/src/tex-accent.h index eb864d7153..7f7ec3d533 100644 --- a/src/tex-accent.h +++ b/src/tex-accent.h @@ -1,9 +1,22 @@ // -*- C++ -*- +/** + * \file tex-accent.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author Lars Gullik Bjønnes + * \author Matthias Ettrich + * + * Full author contact details are available in file CREDITS. + */ -#ifndef _TEX_ACCENT_ -#define _TEX_ACCENT_ +#ifndef TEX_ACCENT +#define TEX_ACCENT -#include "commandtags.h" +#include "lfuns.h" + + +namespace lyx { /* the names used by TeX and XWindows for deadkeys/accents are not the same so here follows a table to clearify the differences. Please correct this @@ -12,26 +25,26 @@ |------------------|------------------|------------------|--------------| | TeX | XWindows | \bind/LFUN | used by intl | |------------------|------------------|------------------|--------------| - | grave | grave |LFUN_GRAVE | grave - | acute | acute |LFUN_ACUTE | acute - | circumflex | circumflex |LFUN_CIRCUMFLEX | circumflex - | umlaut/dieresis | diaeresis |LFUN_UMLAUT | umlaut - | tilde | tilde |LFUN_TILDE | tilde - | macron | maron |LFUN_MACRON | macron - | dot | abovedot |LFUN_DOT | dot - | cedilla | cedilla |LFUN_CEDILLA | cedilla - | underdot | |LFUN_UNDERDOT | underdot - | underbar | |LFUN_UNDERBAR | underbar - | hácek | caron |LFUN_CARON | caron - | breve | breve |LFUN_BREVE | breve - | tie | |LFUN_TIE | tie - | Hungarian umlaut | doubleacute |LFUN_HUNG_UMLAUT | hungarian umlaut - | circle | abovering |LFUN_CIRCLE | circle + | grave | grave |LFUN_ACCENT_GRAVE | grave + | acute | acute |LFUN_ACCENT_ACUTE | acute + | circumflex | circumflex |LFUN_ACCENT_CIRCUMFLEX | circumflex + | umlaut/dieresis | diaeresis |LFUN_ACCENT_UMLAUT | umlaut + | tilde | tilde |LFUN_ACCENT_TILDE | tilde + | macron | maron |LFUN_ACCENT_MACRON | macron + | dot | abovedot |LFUN_ACCENT_DOT | dot + | cedilla | cedilla |LFUN_ACCENT_CEDILLA | cedilla + | underdot | |LFUN_ACCENT_UNDERDOT | underdot + | underbar | |LFUN_ACCENT_UNDERBAR | underbar + | hácek | caron |LFUN_ACCENT_CARON | caron + | breve | breve |LFUN_ACCENT_BREVE | breve + | tie | |LFUN_ACCENT_TIE | tie + | Hungarian umlaut | doubleacute |LFUN_ACCENT_HUNGARIAN_UMLAUT | hungarian umlaut + | circle | abovering |LFUN_ACCENT_CIRCLE | circle | | ogonek | | | | iota | | | | voiced_sound | | | | semivoiced_sound | | - | | |LFUN_SPECIAL_CARON| special caron + | | |LFUN_ACCENT_SPECIAL_CARON| special caron */ // I am not sure how some of the XWindows names coresponds to the TeX ones. @@ -73,7 +86,7 @@ enum tex_accent { /// TEX_OGONEK, /// - TEX_MAX_ACCENT=TEX_OGONEK + TEX_MAX_ACCENT= TEX_OGONEK }; @@ -84,16 +97,21 @@ struct tex_accent_struct { /// tex_accent accent; /// - char const *cmd; + char const * cmd; +#if 0 /// - char const *native; + char const * native; +#endif /// - char const *name; + char const * name; /// kb_action action; }; /// extern tex_accent_struct lyx_accent_table[]; - + + +} // namespace lyx + #endif