从 word、rtf、ecc 获取文档的最佳解析器是什么

发布于 2024-12-02 04:22:32 字数 517 浏览 1 评论 0原文

我需要知道解决我的问题的最佳方案是什么。

我想制作一个文档编辑器,它接收单词文件(或任何其他富文本格式)并允许您修改内容/样式来构建文档。

本质上,对于这个问题,我想研究一下实现这一结果的最佳选择是什么。

最好将

-> upload the file
-> parse it to docbook 
-> transform it to xhtml 
-> modify with wysiwyg editor
-> save changes to docbook

解决方案与一些

-> upload the file
-> transform it to xhtml syntax
-> modify the xhtml with a wysiwyg editor
-> convert xhtml to docbook

可以帮助我这样做的工具/库/程序联系起来(如果可能的话)。

I need to know what's the best solution for my problem.

I want to make a Docbook editor that receive a word file (or any other rich text formats) and allows you to modify the content/style to build up a docbook.

Essentially with this question I wanna examine what's the best option to achieve this result.

Is it better to

-> upload the file
-> parse it to docbook 
-> transform it to xhtml 
-> modify with wysiwyg editor
-> save changes to docbook

or

-> upload the file
-> transform it to xhtml syntax
-> modify the xhtml with a wysiwyg editor
-> convert xhtml to docbook

please relate the solution with some tools/library/programs that can help me to do so (if possible).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七秒鱼° 2024-12-09 04:22:32

验证后,DocBook XSL 允许您转换(特别是):

  • DocBook XML< /strong> 到 Word XML
  • Word XMLDocBook XML
  • DocBook XMLXHTML

认为你已经有了通用的解决方案。 XSLT 可以用很多编程语言进行处理。

至于您的两个过程,我知道区别在于,在第二个过程中,您尝试仅检测 XHTML 中的修改以将它们反映在 DocBook XML 中。完全使用 XSL 进行转换可能会更容易。

我认为您应该告诉我们您正在创建的应用程序的上下文是什么,然后我们就可以了解固有的局限性并更好地校准我们的答案。

编辑:您可以启发自己,甚至将其作为解决方案:Oxygen XML Editor。请参阅http://www.oxygenxml.com/docbook_editor.html

该编辑器可以以所见即所得的方式编辑DocBook ,并以多种方式导入/导出它。

有一个更简单的作者版本,可以完成所有这些操作。

After verification, the DocBook XSL allow you to convert (in particular) :

  • DocBook XML to Word XML
  • Word XML to DocBook XML
  • DocBook XML to XHTML

Think you've got your general solution. XSLT can be processed with a lot of programming langages.

As for your two processes, I understand that the difference is that in the second one, you try to only detect the modification in the XHTML to reflect them in the DocBook XML. It'll probably be easier to convert it entirely using XSL.

I think that you should tell us what is the context of the application you're creating, and then we could know the inherent limitations and better calibrate our answers.

Edit: You could inpire yourself or even taking it as a solution : Oxygen XML Editor. See http://www.oxygenxml.com/docbook_editor.html

This editor can edit DocBook in WYSIWYG, and import/export it in many ways.

There's an Author version, more simple, that shall do all of this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文