Changes between Version 3 and Version 4 of WikiProcessors


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

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v3 v4  
    1 = Wiki Processors =
    2 Processors are WikiMacros designed to provide alternative markup formats for the Trac Wiki engine. Processors can be thought of as ''macro functions to process user-edited text''.
     1= Wiki プロセッサ =
     2プロセッサは Trac の Wiki エンジンが、 Wiki 以外のフォーマットを提供するために設計された WikiMacros です。プロセッサは、 ''ユーザが編集したテキストを処理するマクロ機能'' と考えることができます。
    33
    4 The wiki engine uses processors to allow using [wiki:WikiRestructuredText Restructured Text] and [wiki:WikiHtml raw HTML] in any wiki text throughout Trac.
     4Trac 内の全ての Wiki テキストにおいて、 [wiki:WikiRestructuredText Restructured Text] および [wiki:WikiHtml raw HTML] をプロセッサとして使用することができます。
    55
    6 == Using Processors ==
    7 To use a processor on a block of text, use a wiki blockquote, selecting a processor by name using ''shebang notation'' (#!), familiar to most UNIX users from scripts.
     6テキストブロックでプロセッサを使うには、 Wiki の引用ブロックを使用し、プロセッサの名前を (Unix 系 OS のスクリプトのように) ''shebang 行'' (#!) に続いて指定します。
    87
    9 '''Example 1''' (''inserting raw HTML in a wiki text''):
     8'''例1''' (''Wiki テキストに 生 HTML を挿入する''):
    109
    1110{{{
     
    1312<pre class="wiki">{{{
    1413#!html
    15 &lt;h1 style="color: orange"&gt;This is raw HTML&lt;/h1&gt;
     14&lt;h1 style="color: orange"&gt;これは生 HTML です&lt;/h1&gt;
    1615}}}</pre>
    1716}}}
    1817
    19 '''Results in:'''
     18'''結果、このように表示されます:'''
    2019{{{
    2120#!html
    22 <h1 style="color: orange">This is raw HTML</h1>
     21<h1 style="color: orange">これは生 HTML です</h1>
    2322}}}
    2423
    2524----
    2625
    27 '''Example 2''' (''inserting Restructured Text in wiki text''):
     26'''例2''' (''Wiki テキストに !ReStructured テキストを挿入する''):
    2827
    2928{{{
     
    3130<pre class="wiki">{{{
    3231#!rst
    33 A header
    34 --------
    35 This is some **text** with a footnote [*]_.
     32見出し
     33------
     34脚注 [*]_ 付きの **text** です。
    3635
    37 .. [*] This is the footnote.
     36.. [*] ここは脚注。
    3837}}}</pre>
    3938}}}
    4039
    41 '''Results in:'''
     40'''結果、このように表示されます:'''
    4241{{{
    4342#!rst
    44 A header
    45 --------
    46 This is some **text** with a footnote [*]_.
     43見出し
     44------
     45脚注 [*]_ 付きの **text** です。
    4746
    48 .. [*] This is the footnote.
     47.. [*] ここは脚注。
    4948}}}
     49(訳注: !ReStructuredText は国際化が甘いので、使えないかもしれません)
    5050----
    51 '''Example 3''' (''inserting a block of C source code in wiki text''):
     51'''例3''' (''Wiki テキストに C 言語ソースコードブロックを挿入する''):
    5252
    5353{{{
     
    6363}}}
    6464
    65 '''Results in:'''
     65'''結果、このように表示されます:'''
    6666{{{
    6767#!c
     
    7575----
    7676
    77 == Available Processors ==
    78 The following processors are included in the Trac distribution:
    79  * '''html''' -- Insert custom HTML in a wiki page. See WikiHtml.
    80  * '''rst''' -- Trac support for Restructured Text. See WikiRestructuredText.
    81  * '''textile''' -- Supported if  [http://dealmeida.net/projects/textile/ Textile] is installed.
     77== 利用可能なプロセッサ ==
     78以下のプロセッサが Trac の配布に含まれています:
     79 * '''html''' -- Wiki ページにカスタム HTML を挿入する。 WikiHtml を参照してください。
     80 * '''rst''' -- Restructured テキスト を Trac でサポートする。 WikiRestructuredText を参照してください。
     81 * '''textile''' -- [http://dealmeida.net/projects/textile/ Textile] がインストールされていれば、サポートされます。
    8282
    83 === Code Highlighting Support ===
    84 Trac includes processors to provide inline [wiki:TracSyntaxColoring syntax highlighting] for the following languages:
     83=== ソースコードの強調表示サポート ===
     84Trac では、以下のプログラミング言語でのインライン [wiki:TracSyntaxColoring syntax ハイライト] を行うプロセッサを内蔵しています。
    8585 * '''c''' -- C
    8686 * '''cpp''' -- C++
     
    9292 * '''sql''' -- SQL
    9393 * '''xml''' -- XML
    94 '''Note:''' ''Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.''
     94'''Note:''' ''Trac はシンタックスの色付けを、外部のソフトウェアパッケージに依存しています。詳しくは TracSyntaxColoring をご覧下さい。''
    9595
    96 By using the MIME type as processor, it is possible to syntax-highlight the same languages that are supported when browsing source code. For example, you can write:
     96プロセッサとして mime-type が指定されると、ソースコードをブラウズするときと同じく、サポートされている言語であれば、シンタックスハイライトを行うことができます。例えば、以下のように書くと:
    9797{{{
    9898{{{
     
    102102}}}
    103103
    104 The result will be syntax highlighted HTML code. The same is valid for all other mime types supported.
     104この結果はシンタックスハイライトされた HTML コードになります。サポートされている全ての mime-type でも、これは同じく有効です。
    105105
    106106
    107 For more processor macros developed and/or contributed by users, visit:
     107ユーザによるプロセッサマクロの開発やコントリビュート:
    108108 * [http://projects.edgewall.com/trac/wiki/ProcessorBazaar ProcessorBazaar]
    109109 * [http://projects.edgewall.com/trac/wiki/MacroBazaar MacroBazaar]
    110110
    111111
    112 == Advanced Topics: Developing Processor Macros ==
    113 Developing processors is no different than WikiMacros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information.
     112== 上級トピック: プロセッサマクロを開発する ==
     113プロセッサの開発は WikiMacros と違いはありません。事実、これらは同じような機能を持ち、シンタックスだけが異なります。詳しくは WikiMacros に記述します。
    114114
    115 '''Example:''' (''Restructured Text Processor''):
     115'''例:''' (''Restructured テキストプロセッサ''):
    116116{{{
    117117from docutils.core import publish_string