Differences between revisions 1 and 2
Revision 1 as of 2004-09-13 00:11:26
Size: 2117
Editor: 211
Comment:
Revision 2 as of 2004-09-13 00:27:50
Size: 2213
Editor: limodou
Comment:
Deletions are marked like this. Additions are marked like this.
Line 32: Line 32:

== PyTextile 安装及使用 ==
== PyTextile 文档及翻译 ==
== 下载 ==
== 讨论 ==

-- 211.150.223.154 [DateTime(2004-09-13T00:11:26Z)] TableOfContents

PyTextile

PyTextile是一个Textile的Python实现模块

PyTextile介绍

Python 下的包最初是由Mark Pilgrim完成的,地址在:[http://diveintomark.org/archives/2003/03/19/pytextile Mark pytextile]

上面有下载链接。不过现在已经由他人来继续维护了,[http://dealmeida.net/en/Projects/PyTextile/ pytextile]。现在最新的版本为2.0.8。

有人在Mark的Blog评论中问:reStructuredText与Textile有什么不同呢?

Mark的回答是:

  • reStructuredText 是输出格式不确定(注:我理解是可以输出多种格式,如HTML,Tex,XML,PDF等),而Textile是为web显示专门设计的。
  • reStructuredText有许多的选项是Textile缺乏的,如字段列表,定义列表,嵌套块引用等。
  • Textile有几种reStructuredText没有的选项,如CODE, CITE, SUP之类的行内速记。可以将某些高位的ASCII码字符映射为HTML的数字实体。
  • reStructured是为正式文档的特殊样式而设计的,它有脚注、参考书目引用、链接系统。而Textile是为象Blog和评论这种短的,不正式的文档而设计的。

Mark原文如下:

  • reStructuredText is designed to be output-format-agnostic; Textile is specifically designed for web display.
  • reStructuredText has many options that Textile lacks, such as field lists, definition lists, nested blockquotes, simple tables, and grid tables.
  • Textile has several options that reStructuredText lacks, such as inline shorthand for CODE, CITE, and SUP. Also, its ability to auto-map high-bit ASCII characters to HTML numeric entities (making it possible to cut-and-paste smart quotes without breaking validation).
  • reStructuredText is designed for a particular style of formal document: it has a system of cataloging footnotes, bibliographic citations, and hyperlinks. Textile is designed for shorter, more informal documents like blog posts and comments.

我并未逐字翻译,还有一些自已的理解请见谅。

PyTextile 安装及使用

PyTextile 文档及翻译

下载

讨论

PyTextile (last edited 2009-12-25 07:13:05 by localhost)