UnihanTag Extension
The UnihanTag Extension adds a >unihan> parser tag, which is used to add information about Chinese characters to a MediaWiki page.
Installation
-
Download UnihanTag and place it under
$IP/extensions/UnihanTag/ -
Download makedbm.pl and place it under
$IP/extensions/UnihanTag/ -
Download Unihan database at 1
-
Convert the Unihan text file into a CDB with:
perl makedbm.pl -
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 <unihan> tag to articles:
<unihan add="mandarin" contours="yes">老师</unihan>
This results in:
老师 (Pinyin: lǎo shī)
Versions
- 1.0.0: Initial release.