英文:
Microsoft word clipboard HTML documentation
问题
我找不到关于从复制Word文档的一部分而产生的剪贴板中的text/html
数据中约定的任何文档描述!
具体而言,我想知道像MsoNormal、TableGrid313、MsoTableGrid、MsoHeading9、MsoListParagraph
这样的类是什么!或者文本的样式信息是否总是位于包含文本的span元素的style
属性中?
英文:
I could not find any documentation describing conventions in text/html
data in the clipboard resulting from copying part of a word document!
Specifically I want to know what classes like MsoNormal, TableGrid313, MsoTableGrid, MsoHeading9, MsoListParagraph
are there! Or does styling information of texts always lay in style
attribute of a span element containing the text?
答案1
得分: 1
"round-tip HTML" 是未记录的,因为它不是官方的 Word 文件格式。
它是为了多年前在浏览器中查看(以及部分编辑)Word 文档而创建的,即使在那时,它也没有被记录下来,因为它的使用是为了微软内部软件。由于它是 HTML,任何人都可以阅读和生成它,但微软做出了有意识的决定不记录它(也不需要将资源投入到维护该文档)。
英文:
The Word round-tip HTML is undocumented as it's not an official Word file format.
It was created to enable round-tripping Word documents for viewing (and some editing) in a browser, many years ago. Even then, it was not documented as its use was for internal Microsoft software. Being HTML, anyone could read and produce it, but MS made an conscious decision to not document it (and not need to put the resources into maintaining that documentation).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论