Revert "Support the mathbbm font."

This reverts commit e709a6626e.
This commit is contained in:
Thibaut Cuvelier 2020-07-28 18:01:38 +02:00
parent e709a6626e
commit d75ff9931d
10 changed files with 13 additions and 6479 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -119,7 +119,6 @@ mathnormal font mathmode inherit medium up math
frak font mathmode
mathbb font mathmode
mathds font mathmode
mathbbm font mathmode
mathbf font mathmode
mathcal font mathmode
mathfrak font mathmode

View File

@ -47,8 +47,6 @@ enum FontFamily {
///
DS_FAMILY,
///
BBM_FAMILY,
///
EUFRAK_FAMILY,
///
RSFS_FAMILY,

View File

@ -494,7 +494,6 @@ string getFamilyCSS(FontFamily const & f)
case MSA_FAMILY:
case MSB_FAMILY:
case DS_FAMILY:
case BBM_FAMILY:
case EUFRAK_FAMILY:
case RSFS_FAMILY:
case STMARY_FAMILY:

View File

@ -1159,8 +1159,7 @@ char const * simplefeatures[] = {
"pict2e",
"drs",
"environ",
"dsfont",
"bbm"
"dsfont"
};
char const * bibliofeatures[] = {

View File

@ -36,8 +36,8 @@ using namespace std;
using namespace lyx::support;
QString const math_fonts[] = {"cmex10", "cmmi10", "cmr10", "cmsy10",
"dsrom10", "bbm10", "esint10", "eufm10", "msam10", "msbm10",
"rsfs10", "stmary10", "wasy10"};
"dsrom10", "esint10", "eufm10", "msam10", "msbm10", "rsfs10",
"stmary10", "wasy10"};
int const num_math_fonts = sizeof(math_fonts) / sizeof(*math_fonts);
namespace lyx {

View File

@ -136,8 +136,6 @@ void InsetMathFont::validate(LaTeXFeatures & features) const
features.require("mhchem");
if (fontname == "mathds")
features.require("dsfont");
if (fontname == "mathbbm")
features.require("bbm");
} else if (features.runparams().math_flavor == OutputParams::MathAsHTML) {
features.addCSSSnippet(
"span.normal{font: normal normal normal inherit serif;}\n"

View File

@ -785,8 +785,6 @@ fontinfo fontinfos[] = {
inh_shape, Color_math},
{"mathds", DS_FAMILY, inh_series,
inh_shape, Color_math},
{"mathbbm", BBM_FAMILY, inh_series,
inh_shape, Color_math},
{"mathtt", TYPEWRITER_FAMILY, inh_series,
inh_shape, Color_math},
{"mathit", inh_family, inh_series,

View File

@ -39,7 +39,6 @@
#include <stack>
#include <iostream>
#include <algorithm>
#include <sstream>
using namespace std;
using namespace lyx::support;
@ -863,25 +862,17 @@ void outputDocBookInfo(
generateDocBookParagraphWithoutSectioning(text, buf, xs, runparams, paragraphs, bpitInfo, epitInfo);
if (hasAbstract) {
// Sometimes, there are many paragraphs that should go into the abstract, but none generates actual content.
// Thus, first generate to a temporary stream, then only create the <abstract> tag if these paragraphs
// generate some content.
odocstringstream os2;
XMLStream xs2(os2);
generateDocBookParagraphWithoutSectioning(text, buf, xs2, runparams, paragraphs, bpitAbstract, epitAbstract);
string tag = paragraphs[bpitAbstract].layout().docbookforceabstracttag();
if (tag == "NONE")
tag = "abstract";
// Actually output the abstract if there is something to do.
if (!os2.str().empty()) {
string tag = paragraphs[bpitAbstract].layout().docbookforceabstracttag();
if (tag == "NONE")
tag = "abstract";
xs << xml::StartTag(tag);
xs << xml::CR();
xs << XMLStream::ESCAPE_NONE << os2.str();
xs << xml::EndTag(tag);
xs << xml::CR();
}
xs << xml::StartTag(tag);
xs << xml::CR();
xs.startDivision(false);
generateDocBookParagraphWithoutSectioning(text, buf, xs, runparams, paragraphs, bpitAbstract, epitAbstract);
xs.endDivision();
xs << xml::EndTag(tag);
xs << xml::CR();
}
// End the <info> tag if it was started.