1
A
回答
1
有一個XSLT樣式表1是確實由微軟提供的單詞分佈的一部分,該轉換,它是什麼處理將MATHML在Word剪貼板。通常安裝,就像這樣
c:/Program Files (x86)/Microsoft Office/Office14/OMML2MML.XSL
有一個在
http://dpcarlisle.blogspot.co.uk/2007/04/xhtml-and-mathml-from-office-20007.html
+0
此文件位於Mac中的位置? – Nikhil
0
的這一個早期版本的一些討論,這裏是一個C#類我是工作在幾天前的片段......我知道這太遲了......但是爲了未來的痛苦。
我認爲這不是在動作腳本
文件OMML2MML.xsl
位於%ProgramFiles%\Microsoft Office\Office12\
由@大衛提到的XSL文件用於放置在Word剪貼板MathML和轉換OMML到MML也有很大不同。
public static string OMML(string omml)
{
XslCompiledTransform xslTransform = new XslCompiledTransform();
xslTransform.Load("OMML2MML.xsl");
using (XmlReader reader = XmlReader.Create(new StringReader(omml)))
{
using (MemoryStream ms = new MemoryStream())
{
XmlWriterSettings settings = xslTransform.OutputSettings.Clone();
// Configure xml writer to omit xml declaration.
settings.ConformanceLevel = ConformanceLevel.Fragment;
settings.OmitXmlDeclaration = true;
XmlWriter xw = XmlWriter.Create(ms, settings);
// Transform our OfficeMathML to MathML
xslTransform.Transform(reader, xw);
ms.Seek(0, SeekOrigin.Begin);
StreamReader sr = new StreamReader(ms, Encoding.UTF8);
string MathML = sr.ReadToEnd();
return MathML;
}
}
}
相關問題
- 1. MathML或OMML到PNG w/.NET?
- 2. 將一個乳膠代碼轉換爲python中的mathml或svg代碼
- 3. 將ASCII MathML轉換爲LaTeX
- 4. 將MathML轉換爲ASCIIMathML
- 5. 將XORShift算法從C代碼轉換爲Delphi代碼
- 6. 將膠乳轉換爲HTML中的MathML
- 7. 將幀數轉換爲時間碼的最佳代碼/算法?
- 8. 如何轉換MATHML爲ASCII碼
- 9. 在MS Word中將MathML轉換爲MathType
- 10. 將VBA代碼轉換爲CATScript或VBScript
- 11. 將LaTeX公式轉換爲內容MathML或OpenMath的工具?
- 12. 將遞歸算法轉換爲迭代
- 13. 將子集求和的近似算法轉換爲php代碼
- 14. 將平原ascii數學或ascii藝術轉換爲mathml/latex
- 15. 將遞歸算法轉換爲迭代算法的困難
- 16. 無法將Javascript代碼轉換爲JQuery
- 17. 將ReactJS代碼轉換爲ES6語法
- 18. 無法將Python代碼轉換爲Java
- 19. 將PHP方法轉換爲Java代碼
- 20. 將PHP代碼轉換爲C(SHA1算法)
- 21. 幫助將算法轉換爲python代碼
- 22. 將VB6代碼轉換爲PHP轉換
- 23. 將xml轉換爲代碼
- 24. 將代碼轉換爲POST
- 25. 將代碼轉換爲RequireJS
- 26. 將ASTNode轉換爲代碼
- 27. 將代碼轉換爲lambda
- 28. 將UML轉換爲代碼
- 29. 將代碼轉換爲constexpr
- 30. 將代碼轉換爲python
請參閱http://stackoverflow.com/a/11663161/797393 – Cylian