UnihanTag Extension

The UnihanTag Extension adds a >unihan> parser tag, which is used to add information about Chinese characters to a MediaWiki page.

Installation

  1. Download UnihanTag and place it under $IP/extensions/UnihanTag/

  2. Download makedbm.pl and place it under $IP/extensions/UnihanTag/

  3. Download Unihan database at 1

  4. Convert the Unihan text file into a CDB with:

    perl makedbm.pl

  5. Enable the extension by adding this line to your LocalSettings.php:

require_once('extensions/UnihanTag/UnihanTag.php');

Usage

Once installed, you may utilize UnihanTag by adding the tag to articles:

<unihan add="mandarin" contours="yes">老师</unihan>

This results in:

老师 (Pinyin: lǎo shī)

Versions

  • 1.0.0: Initial release.

Copyright © Kenny Root. All rights reserved.