+/* This file is part of
+ * ======================================================
+ *
+ * LyX, The Document Processor
+ *
+ * Copyright 1995 Matthias Ettrich
+ * Copyright 1995-2000 The LyX Team.
+ *
+ * ====================================================== */
+
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <cstdlib>
#include "tex-accent.h"
#include "commandtags.h"
*/
// I am not sure how some of the XWindows names coresponds to the TeX ones.
-//static
tex_accent_struct lyx_accent_table[18] = {
{ static_cast<tex_accent>(0), "", "", "", static_cast<kb_action>(0)},
{TEX_ACUTE, "\\'", " AEIOUYaeiouySZszRLCNrlcn", "acute", LFUN_ACUTE},
{TEX_DOT, "\\.", " ZzICGicgEe", "dot", LFUN_DOT},
{TEX_OGONEK, "\\k", " AaEe", "ogonek", LFUN_OGONEK},
{ static_cast<tex_accent>(0), "", "", "", static_cast<kb_action>(0)}};
-
+
tex_accent_struct get_accent(kb_action action)
{
{
string res;
- res+= lyx_accent_table[accent].cmd;
- res+= '{';
+ res += lyx_accent_table[accent].cmd;
+ res += '{';
if (s == "i" || s == "j") {
- res+= '\\';
+ res += '\\';
}
- res+= s;
- res+= '}';
+ res += s;
+ res += '}';
return res;
}