晚上好,
我试图在我的 mono / gtk#project 中使用this JS库。
目前,我已经通过 webkit-sharp 提供了简单的 webview小部件。 Webview打开HTML页面,使用ASCIIMathML.js lib来呈现像int_2^3 2x^2 dx
这样的表达式。
但与firefox相比,它看起来有所不同。
我没有足够的声誉来发布图片,因此这里链接到imgur。
C#代码
private WebView _webView;
protected void CustomInit()
{
_webView = new WebView();
_webView.Open("/home/alexey/Projects/Asecti/Core/WebPage/index.html");
webviewScrollWindows.Add(_webView);
webviewScrollWindows.ShowAll();
}
var expression = "`int_2^3 (2x^3 + 3x^2) dx`";
var mathcolor = "black"; // change it to "" (to inherit) or another color
var mathfontsize = "8em"; // change to e.g. 1.2em for larger math
var mathfontfamily = "serif"; // change to "" to inherit (works in IE)
// or another family (e.g. "arial")
var automathrecognize = false; // writing "amath" on page makes this true
var checkForMathML = true; // check if browser can display MathML
var notifyIfNoMathML = true; // display note at top if no MathML capability
var alertIfNoMathML = false; // show alert box if no MathML capability
var translateOnLoad = true; // set to false to do call translators from js
var translateLaTeX = true; // false to preserve $..$, $$..$$
var translateLaTeXformatting = true; // false to preserve \emph,\begin{},\end{}
var translateASCIIMath = true; // false to preserve `..`
var translateASCIIsvg = true; // false to preserve agraph.., \begin{graph}..
var avoidinnerHTML = false; // set true if assigning to innerHTML gives error
var displaystyle = true; // puts limits above and below large operators
var showasciiformulaonhover = true; // helps students learn ASCIIMath
var decimalsign = "."; // change to "," if you like, beware of `(1,2)`!
var AMdelimiter1 = "`", AMescape1 = "\\\\`"; // can use other characters
var AMdocumentId = "wikitext" // PmWiki element containing math (default=body)
var checkforprocessasciimathinmoodle = false; // true for systems like Moodle
var dsvglocation = ""; // path to d.svg (blank if same as ASCIIMathML.js loc)
我尝试过改变字体,但这并没有解决我的问题 它是webkit-sharp中的一个错误吗?