+2002-07-09 André Pönitz <poenitz@gmx.net>
+
+ * lyxfont.[Ch]: support for wasy symbols
+
2002-07-08 André Pönitz <poenitz@gmx.net>
* BufferView_pimpl.C: apply John's patch for #93.
"floatflt",
"varioref",
"prettyref",
- "float"
+ "float",
+ "wasy"
};
const int nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
LyXTextClass const & tclass = textclasslist[params.textclass];
- /**
- * These are all the 'simple' includes. i.e
- * packages which we just \usepackage{package}
- **/
- for (int i = 0 ; i < nb_simplefeatures ; ++i) {
+ //
+ // These are all the 'simple' includes. i.e
+ // packages which we just \usepackage{package}
+ //
+ for (int i = 0; i < nb_simplefeatures; ++i) {
if (isRequired(simplefeatures[i]))
packages << "\\usepackage{"
- << simplefeatures[i]
- << "}\n";
+ << simplefeatures[i] << "}\n";
}
- /**
- * The rest of these packages are somewhat more complicated
- * than those above.
- **/
+ //
+ // The rest of these packages are somewhat more complicated
+ // than those above.
+ //
if (isRequired("amsmath")
&& ! tclass.provides(LyXTextClass::amsmath)) {
new FontInfo("-*-eufm10-medium-*-*-*-*-*-*-*-*-*-*-*");
return;
+ case LyXFont::WASY_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-wasy10-medium-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
default:
break;
}
char const * GUIFamilyNames[LyXFont::NUM_FAMILIES + 2 /* default & error */] =
{ N_("Roman"), N_("Sans serif"), N_("Typewriter"), N_("Symbol"),
- "cmr", "cmsy", "cmm", "cmex", "msa", "msb", "eufrak",
+ "cmr", "cmsy", "cmm", "cmex", "msa", "msb", "eufrak", "wasy",
N_("Inherit"), N_("Ignore") };
char const * GUISeriesNames[4] =
//
char const * LyXFamilyNames[LyXFont::NUM_FAMILIES + 2 /* default & error */] =
{ "roman", "sans", "typewriter", "symbol",
- "cmr", "cmsy", "cmm", "cmex", "msa", "msb", "eufrak",
+ "cmr", "cmsy", "cmm", "cmex", "msa", "msb", "eufrak", "wasy",
"default", "error" };
char const * LyXSeriesNames[4] =
///
EUFRAK_FAMILY,
///
+ WASY_FAMILY,
+ ///
INHERIT_FAMILY,
///
IGNORE_FAMILY,
case LyXFont::CMEX_FAMILY:
case LyXFont::MSA_FAMILY:
case LyXFont::MSB_FAMILY:
+ case LyXFont::WASY_FAMILY:
return true;
default:
return false;
{
os << "[block " << cell(0) << ']';
}
+
+
+void MathBraceInset::infoize(std::ostream & os) const
+{
+ os << "Nested Block: ";
+}
void normalize(NormalStream & ns) const;
///
void metrics(MathMetricsInfo & mi) const;
+ ///
+ void MathBraceInset::infoize(std::ostream & os) const;
private:
/// width of brace character
if (array().empty())
x += 2;
y = xarray().yo();
+ lyxerr << "getPos: " << x << " " << y << "\n";
}
MathUnknownInset * MathCursor::inMacroMode() const
{
- if (pos() == 0)
+ if (!hasPrevAtom())
return 0;
MathUnknownInset * p = prevAtom()->asUnknownInset();
return (p && !p->final()) ? p : 0;
return true;
}
- // leave autocorrect mode if necessary
- if (autocorrect_ && c == ' ') {
- autocorrect_ = false;
- return true;
+ // This is annoying as one has to press <space> far too often.
+ // Disable it.
+
+ if (0) {
+ // leave autocorrect mode if necessary
+ if (autocorrect_ && c == ' ') {
+ autocorrect_ = false;
+ return true;
+ }
}
// just clear selection on pressing the space bar
*/
// try auto-correction
- if (autocorrect_ && hasPrevAtom() && math_autocorrect(prevAtom(), c))
- return true;
+ //if (autocorrect_ && hasPrevAtom() && math_autocorrect(prevAtom(), c))
+ // return true;
// no special circumstances, so insert the character without any fuss
insert(c);
// for markers
width_ += 2;
descent_ += 1;
+ ascent_ += 1;
}
}
}
- drawMarkers(pi, x, y);
+ drawMarkers2(pi, x, y);
}
{"eufrak", LyXFont::EUFRAK_FAMILY, inh_series, inh_shape, LColor::math},
{"msa", LyXFont::MSA_FAMILY, inh_series, inh_shape, LColor::math},
{"msb", LyXFont::MSB_FAMILY, inh_series, inh_shape, LColor::math},
+ {"wasy", LyXFont::WASY_FAMILY, inh_series, inh_shape, LColor::math},
{"text", inh_family, inh_series, inh_shape, LColor::black},
{"textbf", inh_family, LyXFont::BOLD_SERIES, inh_shape, LColor::black},
{"textit", inh_family, inh_series, LyXFont::ITALIC_SHAPE, LColor::black},