Subject: Pig in Mule

From: Dong-Ping Deng <[email-masked]>
Date: Fri, 19 Feb 1993 14:42:31 EST

To: [email-masked]
Subject: Pig in Mule
--text follows this line--

Are there any netters using Pig inside Mule?  If there are some, we may start
of a mailing list to exchange tricks and tips.

Here are some quotes from Pig

Version: 1.1
Author:  Ping Zhou  [email-masked]
Date:    November 16, 1992
...
Several ways can be used to input a CiZu:
As an example all following can be used for the input of Ji4 Suan4 Ji1
j-s-j j.s.j j-su-ji ji4-suan4-ji1 ji-suan4-ji jsj ji4suan4ji1
you can see there are more possibilities. The input is case insensitive.

...
If you have added new entries to your CiDian, you have to save the CiDian
 permanently using the command M-x pig-save-CiDian. Otherwise you will loose
 the entries for the new CiZu once you quit Emacs or Mule.
If you want a copy of your CiDian in the PinYin-GuoBiao format at any time
  use the command M-x pig-extract-CiDian.
Consequently there are two ways to build up a CiDian:
 either as you editing files by inputing unknown CiZu
 or edit the CiDian file directly and then use the command
 M-x pig-build-CiDian to convert it to the internal format.
...

I just cooked up one way to build a large CiDian quickly ;-). Here you are:

1) Grab a HanYu article from anywhere, then extract your favorite CiZu and
arrange them as follows.

经济
开始
科学
苦恼
快乐
垃圾
美国
美洲
民主
南斯拉夫
...

2) Use TommiKaikkonen's gb2pinyin.c to find  pinyin for these cizu. You need
to modify gb2pinyin.c a little bit (put "-" instead of " "). Then use your
favorite Emacs utilities (like kill-rectangle, yank-rectangle etc.) to
arrange them as follows:

jing1-ji3-                         经济
kai1-shi3-                         开始
ke1-xue2-                          科学
ku3-nao3-                          苦恼
kuai4-le4-                         快乐
la1-ji1-                           垃圾
mei3-guo2-                         美国
mei3-zhou1-                        美洲
min2-zhu3-                         民主
na1-si1-la1-fu1-                   南斯拉夫
....

3) Follow instructions in Pig to build your internal CiDian.el.

Have fun.

Caveat: Duo-yin-zi is not well taken.

--

邓冬平

[email-masked]