Microsoft Word 剪贴板 HTML 文档 [英] Microsoft word clipboard HTML documentation

查看:116
本文介绍了Microsoft Word 剪贴板 HTML 文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在剪贴板中的 text/html 数据中找不到任何描述约定的文档,因为复制了 Word 文档的一部分!

I could not find any documentation describing conventions in text/html data in the clipboard resulting from copying part of a word document!

具体来说,我想知道有哪些类,例如 MsoNormal、TableGrid313、MsoTableGrid、MsoHeading9、MsoListParagraph!还是文本的样式信息总是位于包含文本的 span 元素的 style 属性中?

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?

推荐答案

Word round-tip HTML 没有记录,因为它不是正式的 Word 文件格式.

The Word round-tip HTML is undocumented as it's not an official Word file format.

它的创建是为了在多年前启用往返 Word 文档以在浏览器中查看(和一些编辑).即便如此,它也没有被记录下来,因为它用于内部 Microsoft 软件.作为 HTML,任何人都可以阅读和制作它,但 MS 有意识地决定不记录它(并且不需要投入资源来维护该文档).

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

这篇关于Microsoft Word 剪贴板 HTML 文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆