Extension:ChineseTools
From MediaWiki.org
|
Release status: beta |
|
|---|---|
| Implementation | Tag |
| Description | Converts Chinese characters (both Simplified and Traditional) to pinyin letters, and also converts Traditional Chinese characters to Simplified Chinese characters. |
| Author(s) | eastwind |
| Last Version | v1.0 (May 24, 2008) |
| License | No license specified |
| Download | Download Link |
| Example | Example 1 |
|
check usage (experimental) |
|
This extension converts Chinese characters (both Simplified and Traditional) to pinyin letters, and also converts Traditional Chinese characters to Simplified Chinese characters. The original conversion utility was designed by PrimeZeroTools.
C-Pop Fantasie has created a MediaWiki extension based on this utility, primarily used for dynamically converting Traditional Chinese lyrics into pinyin and Simplified Chinese.
The website for the extension can be found here.
Contents |
[edit] Download instructions
Please download the files here and place them in $IP/extensions/ChineseTools/.
Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
[edit] Installation
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/ChineseTools/ChineseTools.php");
[edit] Parameters
- type:
- 's' = Convert Traditional Chinese text to Simplified Chinese text
- 'p' = Convert Traditional or Simplified Chinese text to pinyin (with tones)
[edit] Examples
<chinese type="s">測試</chinese> <chinese type="p">測試</chinese>