Changes between Version 1 and Version 2 of WikiProcessors


Ignore:
Timestamp:
Jun 21, 2005, 1:13:36 AM (19 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v1 v2  
    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 'hashbang notation' (#!), familiar to most UNIX users from scripts.
     6== プロセッサの利用法 ==
     7テキストブロックでプロセッサを使うには、 Wiki の引用ブロックを使用し、プロセッサの名前を (Unix 系 OS のスクリプトのように) 'sharbang行' (#!) に続いて指定します。
    88
    9 '''Example 1''' (''inserting raw HTML in a wiki text''):
     9'''例1''' (''Wiki テキストに 生 HTML を挿入する''):
    1010
    1111{{{
     
    1313<pre class="wiki">{{{
    1414#!html
    15 &lt;h1 style="color: orange"&gt;This is raw HTML&lt;/h1&gt;
     15&lt;h1 style="color: orange"&gt;これは生 HTML です&lt;/h1&gt;
    1616}}}</pre>
    1717}}}
    1818
    19 '''Results in:'''
     19'''結果、このように表示されます:'''
    2020{{{
    2121#!html
    22 <h1 style="color: orange">This is raw HTML</h1>
     22<h1 style="color: orange">これは生 HTML です</h1>
    2323}}}
    2424
    2525----
    2626
    27 '''Example 2''' (''inserting Restructured Text in wiki text''):
     27'''例2''' (''Wiki テキストに !ReStructured テキストを挿入する''):
    2828
    2929{{{
     
    3131<pre class="wiki">{{{
    3232#!rst
    33 A header
    34 --------
    35 This is some **text** with a footnote [*]_.
     33見出し
     34------
     35脚注 [*]_ 付きの **text** です。
    3636
    37 .. [*] This is the footnote.
     37.. [*] ここは脚注。
    3838}}}</pre>
    3939}}}
    4040
    41 '''Results in:'''
     41'''結果、このように表示されます:'''
    4242{{{
    4343#!rst
    44 A header
    45 --------
    46 This is some **text** with a footnote [*]_.
     44見出し
     45------
     46脚注 [*]_ 付きの **text** です。
    4747
    48 .. [*] This is the footnote.
     48.. [*] ここは脚注。
    4949}}}
     50(訳注: !ReStructuredText は国際化が甘いので、使えないかもしれません)
    5051----
    51 '''Example 3''' (''inserting a block of C source code in wiki text''):
     52'''例3''' (''Wiki テキストに C 言語ソースコードブロックを挿入する''):
    5253
    5354{{{
     
    6364}}}
    6465
    65 '''Results in:'''
     66'''結果、このように表示されます:'''
    6667{{{
    6768#!c
     
    7778
    7879
    79 == Available Processors ==
    80 The following processors are included in the Trac distribution:
    81  * '''html''' -- Insert custom HTML in a wiki page. See WikiHtml.
    82  * '''rst''' -- Trac support for Restructured Text. See WikiRestructuredText.
    83  * '''textile''' -- Initial support as of aug 2, 2004.  See [http://projects.edgewall.com/trac/ticket/593 ticket 593] and [http://dealmeida.net/projects/textile/ Textile].
     80== 利用可能なプロセッサ ==
     81以下のプロセッサが Trac の配布に含まれています:
     82 * '''html''' -- Wiki ページにカスタム HTML を挿入する。 WikiHtml を参照してください。
     83 * '''rst''' -- Restructured テキスト を Trac でサポートする。 WikiRestructuredText を参照してください。
     84 * '''textile''' -- 2004年8月2日にサポートを開始したばかり。 [http://projects.edgewall.com/trac/ticket/593 ticket 593] および [http://dealmeida.net/projects/textile/ Textile] を参照してください。
    8485
    85 === Source Code Support ===
    86 Trac includes processors to provide inline [wiki:TracSyntaxColoring syntax highlighting] for these languages:
     86=== ソースコードのサポート ===
     87Trac では、以下のプログラミング言語でのインライン [wiki:TracSyntaxColoring syntax ハイライト] を行うプロセッサを内蔵しています。
    8788 * '''c''' -- C
    8889 * '''cpp''' -- C++
     
    9495 * '''sql''' -- SQL
    9596 * '''xml''' -- XML
    96 '''Note:''' ''Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.''
     97'''Note:''' ''Trac はシンタックスの色付けを、外部のソフトウェアパッケージに依存しています。詳しくは TracSyntaxColoring をご覧下さい。''
    9798
    98 By using the mime-type as processor, it is posible to syntax-highlight the same languages that are supported when browsing source code.  (The list of mime-types can be found in [source:trunk/trac/Mimeview.py Mimeview.py]).
     99プロセッサ使用時に mime-type が指定されると、ソースコードをブラウズする際に可能な限り同じ言語で、シンタックスハイライトを行います。(mime-type のリストは [http://projects.edgewall.com/trac/browser/trunk/trac/Mimeview.py Mimeview.py] にあります)
    99100
    100 For example, you can write:
     101例えば、以下のように書くと:
    101102
    102103{{{
     
    107108}}}
    108109
    109 The result will be syntax highlighted html code. The same is valid for all other mime types supported.
     110この結果はシンタックスハイライトされた HTML コードになります。サポートされている全ての mime-type でも、これは同じく有効です。
    110111
    111112
    112113
    113 For more processor macros developed and/or contributed by users, visit the macro bazaar:
     114プロセッサマクロの開発やユーザによるコントリビュートのため、マクロバザールが開かれています:
    114115 http://projects.edgewall.com/trac/wiki/MacroBazaar
    115116
    116117----
    117 == Advanced Topics: Developing Processor Macros ==
    118 Developing processors is no different than WikiMacros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information.
     118== 上級トピック: プロセッサマクロを開発する ==
     119プロセッサの開発は WikiMacros と違いはありません。事実、これらは同じような機能を持ち、シンタックスだけが異なります。詳しくは WikiMacros に記述します。
    119120
    120 '''Example:''' (''Restructured Text Processor''):
     121'''例:''' (''Restructured テキストプロセッサ''):
    121122{{{
    122123from docutils.core import publish_string
     
    128129
    129130----
    130 See also : WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide
     131参考 : WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide