「フィルタ」の版間の差分

提供:MoodleDocs
移動先:案内検索
編集の要約なし
(スペイン語への link、他)
(3人の利用者による、間の39版が非表示)
1行目: 1行目:
作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] 2006年10月17日 (火) 20:32 (CDT)
ロケーション: 管理 > モジュール > フィルタ


'''フィルタ''' allow for the automatic transformation of entered text into different, often more complex forms. For example the titles of [[リソース]]can automatically become hyperlinks that take you to the relevant resource, URLs pointing to [[mp3]] files can become [[フラッシュ]] controls embedded in the webpage that let you pause and rewind the audio. The possibilities are endless and there are a number of standard filters included with Moodle and many more specialized filters contributed by the community.
フィルタは、入力されたテキストを、多くの場合複雑で異なる形に自動変換します。例えば、リソースのタイトルを関連するリソースにハイパーリンクできます。また、[[mp3]]ファイルを指したURIを、オーディオの停止や巻き戻しのできる[[フラッシュ]]コントロール埋め込みのウェブページに変換できます。可能性は無限大で、Moodleに含まれた数多くの標準フィルタおよびMoodle.org [http://moodle.org/mod/data/view.php?id=6009 Modules and plugins database]で利用できる多くの特別フィルタがあります。


Filters are one of Moodle's pluggable resources and may be added or removed simply by using a file manager to add or remove them from the /filters directory. Moodle detects those that are present and makes them available to use.
==フィルタを有効にする==
[[Image:filters admin.png|thumb|Moodle 2.0のフィルタ管理]]
フィルタを有効にするには:
#管理 > モジュール > フィルタにアクセスしてください。
#フィルタ管理ページで、あなたが有効にしたいフィルタの反対側にある「閉じた目のアイコン」をクリックして「開いた目のアイコン」にしてください。
#上/下の矢印を使用して、フィルタが適用される順番を並び替えてください。


In versions prior to 1.7, the filters manager and individual filter settings may be found in the site administration block >> [[Configuration]] >> Filters.  In 1.7 it can be found in the administration block >> Modules >> Filters.
いくつかのフィルタには、設定カラムのリンクでアクセス可能な付加的な設定があります。


[[Image:Filters_configuration_table.JPG|thumb|300px|left|Moodle 1.6 Filters administration]]  
メモ: 「管理 > アピアランス > [[フィルタ設定]]」でフィルタに適用される設定を変更することができます。
Prior to Moodle 1.6 the filters administration screen has two columns - '''active''' and '''inactive'''. The arrows are used to move filters from one column to the other. Only filters in the active column will be applied. Note that up and down arrows are provided to the left of the '''active''' column to enable the order in which filters are applied to be changed. In some cases this can be significant.
{{Moodle 1.6}}
Moodle 1.6 has a more unified administration screen (similar to the modules and blocks administration screens).
The filters administration screen enables individual filters to be shown (enabled) or hidden (disabled). Only enabled filters will be applied to displayed text. The order in which filters are applied to displayed text can be significant - you can change the order in which enabled filters are applied using the up and down buttons. The enabled filters are applied from the top of the list down. Some filters have their own settings screen. Please refer to the documentation for the individual filter for more information.


Underneath the filter selection area, there are fields which control the cache.
==標準フィルタ==
<br style="clear:both;"/>


==フィルタ==
標準的な Moodle に含まれるフィルタは:


*Activity Names Auto-linking - This scans text for activity titles that exist in the same course and creates a link.
*活動名オートリンク - テキストをスキャンして、同一コースにある活動タイトルへのリンクを作成します。
*Algebra - This filter will convert algebra code into GIF images. It requires the tex filter to be installed ([[#TeX notation|see below]]). Note also that your system must also include the following Perl module: HTML::Entities.pm
*[[代数表記法フィルタ|代数表記法]] - このフィルタでは、代数表記を GIF イメージに変換します。TeX フィルタがインストールされている必要があります ([[#Tex表記法|下記をご覧ください]])。あなたのシステムに次の Perl モジュールがインストールされている必要もありますので注意してください: HTML::Entities.pm
*Database auto-linking - As the name suggests, this filter enables automatic linking of [[Database module]] entries.
*データベースオートリンク - フィルタ名が示すように、このフィルタでは[[データベースモジュール]]エントリのオートリンクを有効にします。
*Email Protection - This filter scans the text for any email addresses. Where found they are changed to reduce the chance of being added to a spammers list.
*メールプロテクション - このフィルタでは、テキスト内のすべてのメールアドレスをスキャンします。メールアドレスが発見された場合、そのメールアドレスが変更され、スパムリストに追加される可能性を減らします。
*Glossary auto-linking - As the name suggests, this filter enables automatic linking of [[Glossary module]] entries. In addition to this filter, individual glossary entries should have the "This entry should be automatically linked" box checked.
*用語集オートリンク - フィルタ名が示すように、このフィルタでは[[用語集モジュール]]エントリのオートリンクを有効にします。このフィルタを使用する場合、個々の用語集エントリで「エントリを自動的にリンクさせる」ボックスをチェックしてください。
*[[Multi language content]] - This filter enables resources to be created in multiple languages. It looks for <lang> tags which indicate that a text contains multiple languages. Then it selects and outputs the best language for the current user. The language of the resource will change when the user changes their selected Moodle language.
*[[多言語シンタックス]] - このフィルタでは、リソースを多言語で作成できるようにします。フィルタは、テキストが多言語を含んでいることを示す&lt;span&nbsp;lang="xx" class="multilang"&gt;...&lt;/span&gt; タグを探します。そして、現在のユーザに最適な言語を選択して出力します。Moodle 1.8 以前のバージョンでは、多言語コンテンツフィルタは &lt;lang&gt; 要素をサポートしていましたが、その後、標準的な HTML 要素 &lt;span&gt; に変更しました。現在 &lt;lang&gt; の利用は廃止されていますので注意してください。
*[[マルチメディアプラグイン]]
*[[マルチメディアプラグイン]]
*Resource Names Auto-linking - The titles of [[Resources]] can automatically become hyperlinks that take you to the relevant resource within the same course.
*リソース名オートリンク - このフィルタでは、同一コース内で関連するリソースに対して、[[リソース]]のタイトルをリンクさせます。
*[[TeXフィルタ|TeX表記法]]
*[[TeXフィルタ|Tex表記法]]
*Tidy - This filter checks whether HTML code is XHTML compliant, tidying where necessary. To make this filter work you need to have PHP compiled with the libtidy option; see http://www.php.net/tidy. The Using Moodle discussion [http://moodle.org/mod/forum/discuss.php?d=28418 Tidy Filter for Moodle 1.5] contains more details.
*Tidy - このフィルタは、HTML が XHTML 準拠かどうかチェックして、必要に応じて整えます。このフィルタを動作させるには、 libtidy オプションをつけて PHP をコンパイルする必要があります (http://www.php.net/tidy をご覧ください)。Using Moodle ディスカッション [http://moodle.org/mod/forum/discuss.php?d=28418 Tidy Filter for Moodle 1.5] (英語) でさらに詳細な情報をご覧いただけます。
*Wiki Page Auto-linking
*Wiki ページオートリンク
*[[ワードセンサーシップ]] - This filter "blacks out" words found on a list.
*[[ワードセンサーシップ]] - このフィルタでは、リストに登録した言葉が発見された場合、「黒塗り」にされます。


==キャッシュコントロール==
==非標準フィルタ==
{{Moodle 1.6}}
*Text cache lifetime - To reduce load on the server and to speed display of pages, Moodle can store previously processed pages (that have not changed) for a period of time. This setting controls the time for which processed pages are stored. A longer setting may improve performance but has the effect that changes to pages may not become visible for a time. You can switch caching off completely here.
*Filter uploaded files - This setting enables uploaded files (HTML and text only) to be processed by the filters system. You can choose to have none, only HTML or all files filtered.
*Filter match once per page - This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match on the complete page will be converted to a link. All others will be ignored.
*Filter match once per text - This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match in a discrete block of text will be converted to a link. All others in that text block will be ignored.
*Filter all strings - When set to yes, almost all Moodle text will be filtered. This is probably only necessary when using the multi-language filter.


==Config.php設定==
フィルタは Moodle の脱着可能なリソースの1つで、「/filters」ディレクトリで追加または削除することにより、簡単に脱着することができます。Moodle は「/filters」ディレクトリ内に新たなフィルタがあるかどうか探して、利用できるようにします。
{{Moodle 1.5}}
 
*For Moodle 1.6 see the Cache Settings above. For earlier versions of Moodle, the filter/config.php file will need to be changed for the visual effects below.  The following two settings affect the glossary, activity and resource linking filters:
* [[Jmol filter|Jmol]] - 分子構造を表示するためのインタラクティブ 3D ビューアです。
:To convert only the first matching title on a page, insert or uncomment the  following line in config.php: <code>$CFG->filtermatchoneperpage = true;</code>
* [[Code Syntax Highlighting]] - [[PHP]]、[[HTML]]、[[CSS]]および XML 等、多くのプログラミング言語の部分を示して、コードをさらに読みやすくするフィルタです。
:To convert only the first matching title in a discrete block of text, insert or uncomment the following line in config.php: <code>$CFG->filtermatchonepertext = true;</code>


==関連情報==
==関連情報==
非標準フィルタ:


* [[Jmol filter|Jmol]] - for interactive 3D viewing of molecular structures
*[[フィルタ設定]]
* [[Code Syntax Highlighting]] - for more readable excerpts of programming languages including [[PHP]], [[HTML]], [[CSS]], and XML amongst many others
*[[Moodle.orgフォーラムで使用されているフィルタ]]
*[[開発:フィルタ]]
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=76206 Filter Demo's now online] フォーラムディスカッション - 英語


[[Category:管理者]]
[[Category:フィルタ]]
[[Category:フィルタ]]


[[en:Filters (administrator)]]
[[en:Filters_%28administrator%29]]
[[es:Filtros (Administrador)]]

2010年9月9日 (木) 02:57時点における版

ロケーション: 管理 > モジュール > フィルタ

フィルタは、入力されたテキストを、多くの場合複雑で異なる形に自動変換します。例えば、リソースのタイトルを関連するリソースにハイパーリンクできます。また、mp3ファイルを指したURIを、オーディオの停止や巻き戻しのできるフラッシュコントロール埋め込みのウェブページに変換できます。可能性は無限大で、Moodleに含まれた数多くの標準フィルタおよびMoodle.org Modules and plugins databaseで利用できる多くの特別フィルタがあります。

フィルタを有効にする

Moodle 2.0のフィルタ管理

フィルタを有効にするには:

  1. 管理 > モジュール > フィルタにアクセスしてください。
  2. フィルタ管理ページで、あなたが有効にしたいフィルタの反対側にある「閉じた目のアイコン」をクリックして「開いた目のアイコン」にしてください。
  3. 上/下の矢印を使用して、フィルタが適用される順番を並び替えてください。

いくつかのフィルタには、設定カラムのリンクでアクセス可能な付加的な設定があります。

メモ: 「管理 > アピアランス > フィルタ設定」でフィルタに適用される設定を変更することができます。

標準フィルタ

標準的な Moodle に含まれるフィルタは:

  • 活動名オートリンク - テキストをスキャンして、同一コースにある活動タイトルへのリンクを作成します。
  • 代数表記法 - このフィルタでは、代数表記を GIF イメージに変換します。TeX フィルタがインストールされている必要があります (下記をご覧ください)。あなたのシステムに次の Perl モジュールがインストールされている必要もありますので注意してください: HTML::Entities.pm
  • データベースオートリンク - フィルタ名が示すように、このフィルタではデータベースモジュールエントリのオートリンクを有効にします。
  • メールプロテクション - このフィルタでは、テキスト内のすべてのメールアドレスをスキャンします。メールアドレスが発見された場合、そのメールアドレスが変更され、スパムリストに追加される可能性を減らします。
  • 用語集オートリンク - フィルタ名が示すように、このフィルタでは用語集モジュールエントリのオートリンクを有効にします。このフィルタを使用する場合、個々の用語集エントリで「エントリを自動的にリンクさせる」ボックスをチェックしてください。
  • 多言語シンタックス - このフィルタでは、リソースを多言語で作成できるようにします。フィルタは、テキストが多言語を含んでいることを示す<span lang="xx" class="multilang">...</span> タグを探します。そして、現在のユーザに最適な言語を選択して出力します。Moodle 1.8 以前のバージョンでは、多言語コンテンツフィルタは <lang> 要素をサポートしていましたが、その後、標準的な HTML 要素 <span> に変更しました。現在 <lang> の利用は廃止されていますので注意してください。
  • マルチメディアプラグイン
  • リソース名オートリンク - このフィルタでは、同一コース内で関連するリソースに対して、リソースのタイトルをリンクさせます。
  • Tex表記法
  • Tidy - このフィルタは、HTML が XHTML 準拠かどうかチェックして、必要に応じて整えます。このフィルタを動作させるには、 libtidy オプションをつけて PHP をコンパイルする必要があります (http://www.php.net/tidy をご覧ください)。Using Moodle ディスカッション Tidy Filter for Moodle 1.5 (英語) でさらに詳細な情報をご覧いただけます。
  • Wiki ページオートリンク
  • ワードセンサーシップ - このフィルタでは、リストに登録した言葉が発見された場合、「黒塗り」にされます。

非標準フィルタ

フィルタは Moodle の脱着可能なリソースの1つで、「/filters」ディレクトリで追加または削除することにより、簡単に脱着することができます。Moodle は「/filters」ディレクトリ内に新たなフィルタがあるかどうか探して、利用できるようにします。

  • Jmol - 分子構造を表示するためのインタラクティブ 3D ビューアです。
  • Code Syntax Highlighting - PHPHTMLCSSおよび XML 等、多くのプログラミング言語の部分を示して、コードをさらに読みやすくするフィルタです。

関連情報