Changes between Version 2 and Version 3 of WikiRestructuredText


Ignore:
Timestamp:
Dec 31, 2005, 4:43:10 PM (18 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiRestructuredText

    v2 v3  
    1 = reStructuredTextのサポート =
     1= reStructuredText Support in Trac =
    22
    3 TracはWikiFormatting が使われているあらゆるコンテキストの中でWikiマークアップの代わりとなるものとして''reStructuredText''の使用をサポートしています。
     3Trac supports using ''reStructuredText'' (RST) as an alternative to wiki markup in any context WikiFormatting is used.
    44
    5 reStructuredTextのウェブページより:
    6  "''reStructuredTextは読みやすく、見たものを手にする、マークアップされたプレインテキストとそのパーサーシステムです。reStructuredTextはプログラムのインラインのドキュメント(例えば、Python docstrings)や簡単なウェブページをすばやく作ること、スタンドアロンのドキュメントを書くのにとても役に立ちます。reStructuredTextは特定のアプリケーションの分野のための拡張として設計されています。''"
     5From the reStucturedText webpage:
     6 "''reStructuredText is an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser   system. It is useful for in-line program documentation (such as Python docstrings), for quickly creating  simple web pages, and for standalone documents. reStructuredText is designed for extensibility for  specific application domains. ''"
    77
    8 === 必須条件 ===
    9 TracでRSTのサポートを有効にするためには、Pythonのdocutilsパッケージがインストールされてなければなりません。
    10 あなたのオペレーティングシステムでまだ使用できない場合は、[http://docutils.sourceforge.net/rst.html RST Website]からダウンロードすることができます。
     8=== Requirements ===
     9Note that to activate RST support in Trac, the python docutils package must be installed.
     10If not already available on your operating system, you can download it at the [http://docutils.sourceforge.net/rst.html RST Website].
    1111
    12 === さらなるRSTに関する情報 ===
     12=== More information on RST ===
    1313
    14  * reStructuredText ウェブサイト -- http://docutils.sourceforge.net/rst.html
    15  * RST クイックリファレンス -- http://docutils.sourceforge.net/docs/rst/quickref.html
     14 * reStructuredText Website -- http://docutils.sourceforge.net/rst.html
     15 * RST Quick Reference -- http://docutils.sourceforge.net/docs/rst/quickref.html
    1616
    1717----
    1818
    19 == RSTをTracで使用する ==
    20 テキストがRSTを使用してパースされるようにするには、''rst''プロセッサを使用してください。
     19== Using RST in Trac ==
     20To specify that a block of text should be parsed using RST, use the ''rst'' processor.
    2121
    22 === reStructuredTextにおける TracLinks ===
     22=== TracLinks in reStructuredText ===
    2323
    24  * TracはRSTテキストの中でTracLinks を許可するための 'trac'というカスタマイズされたRSTのリファレンスディレクティブを提供しています。
     24 * Trac provides a custom RST reference-directive 'trac' to allow TracLinks from within RST text.
    2525
    26  :
     26 Example:
    2727 {{{
    2828 {{{
     
    3434 }}}
    3535
    36  ''trac''ディレクティブのすべての使用方法の一覧は、WikiRestructuredTextLinks を見てください。
     36 For a complete example of all uses of the ''trac''-directive, please see WikiRestructuredTextLinks.
    3737
    3838
    39  * TracはRSTにおいて、カスタマイズされた'':trac::''というリンクのための命名体系を使用することにより、簡単な方法でTracLinks を作ることを許可しています。
     39 * Trac allows an even easier way of creating TracLinks in RST, using the custom '':trac:'' link naming scheme.
    4040
    41  :
     41 Example:
    4242 {{{
    4343 {{{
     
    4949 }}}
    5050
    51 === reStructuredTextにおけるシンタックスハイライト ===
     51=== Syntax highlighting in reStructuredText ===
    5252
    53 同様に、RSTにおいてTracSyntaxColoring を行なうディレクティブがあります。
    54 ディレクティブはcode-blockと呼ばれます。
     53There is a directive for doing TracSyntaxColoring in ReST as well. The directive is called
     54code-block
    5555
    56 
     56Example
    5757
    5858{{{
     
    7070}}}
    7171
    72 上記の例は以下のように見えます。
     72Will result in the below.
    7373
    7474{{{
     
    8484}}}
    8585
     86=== WikiMacros in reStructuredText ===
    8687
    87 === 例 ===
    88 以下の例はほとんど一目瞭然です:
     88For doing WikiMacros in ReST you use the same directive as for syntax highlightning i.e
     89code-block. To work you must use a version of trac that has #801 applied.
     90
     91=== WikiMacro Example ===
     92
     93{{{
     94{{{
     95#!rst
     96
     97.. code-block:: HelloWorld
     98 
     99   Something I wanted to say
     100
     101
     102}}}
     103}}}
     104
     105Will result in the below.
     106
     107[[HelloWorld(Something I wanted to say)]]
     108
     109
     110=== Bigger ReST Example ===
     111The example below should be mostly self-explanatory:
    89112{{{
    90113#!html
     
    111134-------------
    112135
    113 See also ticket |#42|.
    114 
    115 .. |#42| trac:: #42
     136See also ticket `#42`:trac:.
    116137
    117138.. _webpage: http://docutils.sourceforge.net/rst.html
     
    120141
    121142
    122 結果:
     143Results in:
    123144{{{
    124145#!rst
     
    143164-------------
    144165
    145 See also ticket |#42|.
    146 
    147 .. |#42| trac:: #42
     166See also ticket `#42`:trac:.
    148167
    149168.. _webpage: http://docutils.sourceforge.net/rst.html
     
    152171
    153172----
    154 参考: WikiRestructuredTextLinks, WikiProcessors, WikiFormatting
     173See also: WikiRestructuredTextLinks, WikiProcessors, WikiFormatting