Extension:Typography

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Typography and the translation is 31% complete.

Other languages:
English • ‎日本語
MediaWiki 拡張機能マニュアル
Crystal Clear action run.svg
Typography
リリースの状態: ベータ
実装 User interface
説明 Automatically replace "quotes" with “smart” quotes.
作者 Martin Tournoij (Carpetsmokertalk)
最新バージョン 1.0 (2015-02-07)
MediaWiki 1.25+
PHP 5.4+
ライセンス MIT License
ダウンロード ダウンロード
使用するフック
OutputPageParserOutput
GetDoubleUnderscoreIDs
translatewiki.net で翻訳を利用できる場合は、Typography 拡張機能の翻訳にご協力ください
使用状況とバージョン マトリクスを確認してください。

Automatically replace "quotes" with “smart” quotes. Also replaces - with an em dash (—) and ... with an ellipsis (…).

Add __NOTYPO__ to disable it.

制限事項:

  • It uses "DOMDocument()" to parse the HTML, but only looks inside every tag.
  • So "some <strong>strange</strong> stuff!" won't work, as it sees "some, strange, and stuff".

This can (and should) be improved on at some point.

インストール

  • Download and place the files in a directory called Typography in your extensions/ directory.
  • Add the following code at the bottom of your LocalSettings.php:
 wfLoadExtension('Typography');
  • Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.