+2001-12-11 André Pönitz <poenitz@gmx.net>
+
+ * FontLoader.C:
+ * lyxfont.[Ch]: support for fraktur font used by \mathfrak
+
2001-12-06 John Levon <moz@compsoc.man.ac.uk>
* lyx_cb.C: another bv->text misuse, from insert label
new FontInfo("-*-msbm-*-*-*-*-*-*-*-*-*-*-*-*");
return;
+ case LyXFont::EUFRAK_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-eufrak-*-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
default:
break;
}
//
// Strings used to read and write .lyx format files
//
-char const * LyXFamilyNames[12] =
+char const * LyXFamilyNames[LyXFont::NUM_FAMILIES + 2 /* default & error */] =
{ "roman", "sans", "typewriter", "symbol",
- "cmr", "cmsy", "cmm", "cmex", "msa", "msb",
+ "cmr", "cmsy", "cmm", "cmex", "msa", "msb", "eufrak",
"default", "error" };
char const * LyXSeriesNames[4] =
///
MSB_FAMILY,
///
+ EUFRAK_FAMILY,
+ ///
INHERIT_FAMILY,
///
IGNORE_FAMILY,
+2001-12-11 André Pönitz <poenitz@gmx.net>
+
+ * math_defs.h:
+ * math_parser.C:
+ * math_hash.C: support for \mathfrak
+
2001-12-12 Angus Leeming <a.leeming@ic.ac.uk>
* math_streamstr.C: #include <iostream> to compile with DEC cxx
#ifndef MATH_DATA_H
#define MATH_DATA_H
+#include <iosfwd>
#include <vector>
#include "math_atom.h"
buffer_type bf_;
};
+///
+std::ostream & operator<<(std::ostream & os, MathArray const & ar);
+
+
#endif
///
LM_TC_CAL,
///
+ LM_TC_EUFRAK,
+ ///
LM_TC_BF,
//
LM_TC_BB,
{"mathbb", LM_TK_FONT, LM_TC_BB},
{"mathbf", LM_TK_FONT, LM_TC_BF},
{"mathcal", LM_TK_FONT, LM_TC_CAL},
+ {"mathfrak", LM_TK_FONT, LM_TC_EUFRAK},
{"mathit", LM_TK_FONT, LM_TC_IT},
{"mathnormal", LM_TK_FONT, LM_TC_VAR},
{"mathrm", LM_TK_FONT, LM_TC_RM},
else if (t.cat() == catEnd) {
if (flags & FLAG_BRACE_LAST)
return;
- //lyxerr << "found '}' unexpectedly, array: '" << array << "'\n";
- lyxerr << "found '}' unexpectedly\n";
+ lyxerr << "found '}' unexpectedly, array: '" << array << "'\n";
+ //lyxerr << "found '}' unexpectedly\n";
add(array, '}', LM_TC_TEX);
}
else if (t.cat() == catAlign) {
- //lyxerr << "found tab unexpectedly, array: '" << array << "'\n";
- lyxerr << "found tab unexpectedly\n";
+ lyxerr << "found tab unexpectedly, array: '" << array << "'\n";
+ //lyxerr << "found tab unexpectedly\n";
add(array, '&', LM_TC_TEX);
}
FONT_CMEX,
FONT_MSA,
FONT_MSB,
+ FONT_EUFRAK,
FONT_NUM
};
MathFonts[FONT_CMEX].setFamily(LyXFont::CMEX_FAMILY);
MathFonts[FONT_MSA].setFamily(LyXFont::MSA_FAMILY);
MathFonts[FONT_MSB].setFamily(LyXFont::MSB_FAMILY);
+ MathFonts[FONT_EUFRAK].setFamily(LyXFont::EUFRAK_FAMILY);
for (int i = 0; i < LM_FONT_END; ++i)
font_available_initialized[i] = false;
case LM_TC_MSB:
return MathFonts[FONT_MSB];
+ case LM_TC_EUFRAK:
+ if (math_font_available(LM_TC_EUFRAK))
+ return MathFonts[FONT_EUFRAK];
+ else
+ return MathFonts[FONT_BB];
+
default:
break;
}
static char const * theFontNames[] = {
"mathrm",
"mathcal",
+ "mathfrak",
"mathbf",
"mathbb",
"mathsf",