什么是可在 Web 上使用的可靠、全功能的开放式富文本表示形式?

发布于 2024-07-06 11:57:15 字数 702 浏览 7 评论 0原文

我正在寻找文本的内部表示格式,它将支持基本格式(字体、大小、粗细、缩进、基本表格,还支持以下功能:

  • 双向输入(希伯来语、阿拉伯语等)
  • 同一文本字段中的多语言输入(即 UTF-8)
  • 锚定脚注(即上标数字,它是指向该编号脚注的链接)

我猜 TEIDocBook< /a> 足够丰富,但有一个障碍 - 我希望这些文本缓冲区可通过 Web 编辑,因此我需要一个可以使用 TEI 或 DocBook 的编辑控件,或者可靠< /strong> 和其中之一与编辑控件可以使用的任何内容之间的双向转换

更新:我正在考虑的编辑控件类似于 TinyMCE,但是AFAICT,TinyMCE缺少脚注,我不确定它的可扩展性(编辑1或2兆字节的文本怎么样?)

任何指针赞赏!

I'm looking for an internal representation format for text, which would support basic formatting (font face, size, weight, indentation, basic tables, also supporting the following features:

  • Bidirectional input (Hebrew, Arabic, etc.)
  • Multi-language input (i.e. UTF-8) in same text field
  • Anchored footnotes (i.e. a superscript number that's a link to that numbered footnote)

I guess TEI or DocBook are rich enough, but here's the snag -- I want these text buffers to be Web-editable, so I need either an edit control that eats TEI or DocBook, or reliable and two-way conversion between one of them and whatever the edit control can eat.

UPDATE: The edit control I'm thinking of is something like TinyMCE, but AFAICT, TinyMCE lacks footnotes, and I'm not sure about its scalability (how about editing 1 or 2 megabytes of text?)

Any pointers much appreciated!

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

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

发布评论

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

评论(5

人心善变 2024-07-13 11:57:15

FCKeditor有一个很棒的API,支持多种编程语言(考虑到它是javascript,这并不难实现),可以通过HTML加载或在代码中实例化; 但最重要的是,它允许轻松访问底层表单字段,因此拥有 jQuery 或原型 ajax 缓冲区应该不会很难实现。

与以前的版本相比,加载时间非常快。 我想尝试一下。

FCKeditor has a great API, supports several programming languages (considering it is javascript this isn't hard to achieve), can be loaded through HTML or instantiated in code; but most of all, allows easy access to the underlying form field, so having a jQuery or prototype ajax buffer shouldn't be terribly difficult to achieve.

The load time is very quick compared to previous versions. I'd give it a whirl.

半世蒼涼 2024-07-13 11:57:15

根据我的经验,HTML 和 XML 格式(如 TEI 或 DocBook)之间的双向转换很难做到 100% 可靠。

您可以使用 Xopus (demo) 让您的用户直接编辑 TEI 或 DocBook XML。 Xopus 是一个基于商业浏览器的 XML 编辑器,专为非技术用户设计。 它支持双向和UTF-8。 WYSIWYG 视图使用 XSLT 呈现,因此您可以充分控制以您描述的方式呈现脚注。

由于 TEI 和 DocBook 无法存储样式信息,因此这些格式不允许用户更改字体、大小和粗细。 但我认为这是一件好事:用户应该插入标题和强调,设计师应该选择字体和大小。

Xopus 有一个强大的表格编辑器,缩进是通过嵌套部分或列表以及 XSLT 对此做出反应来处理的。

不幸的是,Xopus 3 只能扩展到大约 200KB 的 XML,但我们正在工作 关于这一点。

In my experience a two-way conversion between HTML and XML formats like TEI or DocBook is very hard to make 100% reliable.

You could use Xopus (demo) to have your users directly edit TEI or DocBook XML. Xopus is a commercial browser based XML editor designed specifically for non-technical users. It supports bidi and UTF-8. The WYSIWYG view is rendered using XSLT, so that gives you sufficient control to render footnotes the way you describe.

As TEI and DocBook don't have means to store styling information, those formats will not allow your users to change font face, size and weight. But I think that is a good thing: users should insert headers and emphasis, designers should pick font face and size.

Xopus has a powerful table editor and indentation is handled by nesting sections or lists and XSLT reacting to that.

Unfortunately Xopus 3 will only scale to about 200KB of XML, but we're working on that.

寄意 2024-07-13 11:57:15

我真的无法决定其中之一。 恕我直言,它们都不是很好也不完整。 它们都有各自的优点和明显的缺点。 如果 TinyMCE 是您的最爱,那么据我所知,它也提供表格。

此列表可能会派上用场:WysiwygEditorComparision

I can't really decide on one of them. IMHO they are all not very good and complete. They all have their advantages and clear disadvantages. If TinyMCE is your favorite then afaik, it also does tables.

This list will probably come in handy: WysiwygEditorComparision.

情丝乱 2024-07-13 11:57:15

我还使用过 FCKEditor,它表现良好并且很容易集成到我的项目中。 值得一看。

I've also used FCKEditor and it performed well and was easy to integrate into my project. It's worth checking out.

岛徒 2024-07-13 11:57:15

对上面 laurens 的回答进行小修正:截至目前(2012 年 5 月),Xopus 支持 UTF8,但不支持 BiDi 编辑。 如果从右到左的文本来自其他来源,则可以正常显示,无法正确编辑。
资料来源:我最近被要求评估这个,所以一直在测试它。

Small correction to laurens' answer above: As of now (May 2012), Xopus supports UTF8, but not BiDi editing. Right-to-left text is displayed fine if it came from another source, cannot be edited correctly.
Source: I was recently asked to evaluate this, so have been testing it.

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