diff options
| author | Peng Huang <shawn.p.huang@gmail.com> | 2010-06-05 09:14:58 +0800 |
|---|---|---|
| committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-06-05 09:14:58 +0800 |
| commit | 317efbfb9472b4696895baa2b771ba7a8eea681c (patch) | |
| tree | 88f0935ca63efd799a85416048d2f33afee4a215 /scripts/php_2_py.php | |
| parent | dacee4558562dd4c64f97fbbcd825c41672b9942 (diff) | |
| download | ibus-libpinyin-317efbfb9472b4696895baa2b771ba7a8eea681c.tar.gz ibus-libpinyin-317efbfb9472b4696895baa2b771ba7a8eea681c.tar.xz ibus-libpinyin-317efbfb9472b4696895baa2b771ba7a8eea681c.zip | |
Move php_2_py.php to scripts/
Diffstat (limited to 'scripts/php_2_py.php')
| -rw-r--r-- | scripts/php_2_py.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/php_2_py.php b/scripts/php_2_py.php new file mode 100644 index 0000000..e53a535 --- /dev/null +++ b/scripts/php_2_py.php @@ -0,0 +1,21 @@ +<?php +include("ZhConversion.php"); + +echo "# -*- coding: utf-8 -*- \n"; + +function printDict($name, $dict) { + echo "$name = {\n"; + foreach($dict as $key => $val) { + echo " u\"", $key, "\": u\"", $val, "\",\n"; + } + echo "}\n"; + echo "\n"; +} + +printDict("zh2Hant", $zh2Hant); +printDict("zh2Hans", $zh2Hans); +printDict("zh2TW", $zh2TW); +printDict("zh2HK", $zh2HK); +printDict("zh2CN", $zh2CN); +printDict("zh2SG", $zh2SG); +?> |
