0

晚上好,
我正在尝试在我的mono/gtk# 项目中使用这个JS 库。 目前,我正在使用webkit-sharp提供的简单webview 小部件。Webview 打开 HTML 页面,女巫使用 ASCIIMathML.js 库来呈现表达式,如. 但与Firefox相比,它看起来不同。 我没有足够的声誉来发布图片,所以这里是imgur的链接。 C# 代码

int_2^3 2x^2 dx



private WebView _webView;
protected void CustomInit()
{
    _webView = new WebView();
    _webView.Open("/home/alexey/Projects/Asecti/Core/WebPage/index.html");
    webviewScrollWindows.Add(_webView);
    webviewScrollWindows.ShowAll();
}

JS库中的属性:

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 中的错误吗?

4

0 回答 0