Microsoft Word 剪贴板 HTML 文档

huangapple go评论62阅读模式
英文:

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).

huangapple
  • 本文由 发表于 2020年1月6日 17:59:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/59610010.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定