FreeWnn 1.0 for Cygwin B20.1

[Japanese page] [Back to Cygwin page] [Back to Top page]


YOU ARE INSTALLING...

This patch kit is for FreeWnn 1.0 and makes jserver available under Cygwin environment on Windows 95/98/NT. You need having Cygwin B20.1 and X11R6.4 installed on your Windows in order to compile with this patch kit. Currently, there is no support for a server of the other languages than Japanese.

This patch assumes that you install jserver together with some contributed dictionaries, namely pubdic+, gerodic and a supplement for pubdic+. Please obtain all of them according to the section `OBTAIN ALL FILES YOU NEED', and follow the instruction described in the section `INSTALL' to build FreeWnn.

Note that pubdic, which is a dictionary that comes with the standard Wnn distribution, is no longer installed with this patch kit, and pubdic+ will be installed instead of pubdic. You can change this by a configuration if you want, but I don't see any reason to use the old poor(sorry!) dictionary. Some people might say that Wnn is not so smart (actually I thought so), but now, thanks to many users, you can make your Wnn wiser by having some additional dictionaries. So why not use them?


OBTAIN ALL FILES YOU NEED

This patch requires the following packages to build.

  1. FreeWnn-1.0-cygwin-990519.diff.gz (this patch itself)
  2. FreeWnn-1.00.tar.gz (the official FreeWnn distribution)
  3. pubdic+-wnn-1.0.tar.gz (pubdic+)
  4. pubdic+-sup-1.07.tar.gz (a supplement dictionary for pubdic+)

Pubdic+ and the supplement are available at Mr.Endo's Web page. You don't need to get gerodic from this page since gerodic is already included in FreeWnn-1.00.tar.gz.


INSTALL

Extract source files and apply the patch.

FreeWnn-1.00.tar.gz can be extracted in any directory to build. Pubdic+ and the supplement MUST be extracted under the directory Xsi/Contrib/dic that is created by extracting FreeWnn-1.00.tar.gz. So the command line would be like the following:


$ tar xfvz FreeWnn-1.00.tar.gz
$ cd Xsi/Contrib/dic
$ tar xfvz pubdic+-wnn-1.0.tar.gz
$ tar xfvz pubdic+-sup-1.07.tar.gz
$ cd ../../..

And then, apply this patch.


$ gzip -cd FreeWnn-1.0-cygwin-990519.diff.gz | patch -bp1

Configuration

You can make a customization by modifying the configuration file 'config/Wnn.conf', which is slightly different from the one on UNIX. 'config/Project.tmpl' is no longer used with this patch since it doesn't work with Cygwin's imake (I couldn't figure out how it's supposed to work).

The default installation directory would be the following, as a typical configuration on UNIX:


/usr/local/bin/Wnn4		jserver, utility programs
/usr/local/lib/wnn		dictionaries, etc.
/usr/local/lib			library
/usr/local/include/wnn		header files to use the library

Build and install

And now, execute the following commands to build and install it.


$ cd Xsi
$ xmkmf
$ make World
$ make install

That should be it.


RUN THE SERVER

Jserver is a regular console application of Windows. To start jserver, type the command from a DOS prompt (or just double click from Explorer). It does not run as a daemon in background currently.


$ /usr/local/bin/Wnn4/jserver.exe

In addition to standard command line options, the jserver applied with this patch kit takes one new option '-l', which makes jserver listen to localhost only. This option is userful if you want to have jserver for your personal use only, and don't want to be accessed by anyone through the network.

To terminate jserver, run wnnkill.exe command from another DOS prompt.


$ /usr/local/bin/Wnn4/wnnkill.exe

SETUP FOR EGG

Here is a sample configuration for EGG Next Generation(aka Tamagotchy). I'm using 'egg-980712.tar.gz' with this setting. Two dictionary entries are added to the variable 'wnn-dictionary-specification-list' from the original value.


; patch for egg-cnv.el
(eval-after-load
    "egg-cnv"
  '(progn
(defun egg-finalize-backend ()
  (funcall (aref egg-conversion-backend 12)))
)); end eval-after-load

(setq wnn-dictionary-specification-list
  '((jserver
     (nil nil ""
	  [2 10 2 45 100 200 5 1 40 -100 200 -100 200 80 200 200 200]
	  "pubdic/full.fzk"
	  ["pubdic/kihon.dic"     ("kihon.h")    5 nil t]
	  ["pubdic/setsuji.dic"   ("setsuji.h")  5 nil t]
	  ["pubdic/koyuu.dic"     ("koyuu.h")    1 nil t]
	  ["pubdic/chimei.dic"    ("chimei.h")   1 nil t]
	  ["pubdic/jinmei.dic"    ("jinmei.h")   1 nil t]
	  ["pubdic/special.dic"   ("special.h")  5 nil t]
	  ["pubdic/computer.dic"  ("computer.h") 5 nil t]
	  ["pubdic/symbol.dic"    ("symbol.h")   1 nil t]
	  ["pubdic/tankan.dic"    ("tankan.h")   1 nil t]
	  ["pubdic/bio.dic"       ("bio.h")      1 nil t]
	  ["gerodic/g-jinmei.dic" ("g-jinmei.h") 1 nil t]
	  ["misc/supplement.dic"  ("supplement.h") 1 nil t]
	  ["wnncons/tankan2.dic"  nil            1 nil nil]
	  ["wnncons/tankan3.dic"  nil            1 nil nil]
	  [("ud")                 nil            5 t   t])
     (nil t "R"
	  [2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200]
	  "pubdic/full.fzk"
	  ["pubdic/kihon.dic"     ("kihon.h")    5 nil t]
	  ["pubdic/setsuji.dic"   ("setsuji.h")  5 nil t]
	  ["pubdic/koyuu.dic"     ("koyuu.h")    1 nil t]
	  ["pubdic/chimei.dic"    ("chimei.h")   1 nil t]
	  ["pubdic/jinmei.dic"    ("jinmei.h")   1 nil t]
	  ["pubdic/special.dic"   ("special.h")  5 nil t]
	  ["pubdic/computer.dic"  ("computer.h") 5 nil t]
	  ["pubdic/symbol.dic"    ("symbol.h")   1 nil t]
	  ["pubdic/tankan.dic"    ("tankan.h")   1 nil t]
	  ["pubdic/bio.dic"       ("bio.h")      1 nil t]
	  ["gerodic/g-jinmei.dic" ("g-jinmei.h") 1 nil t]
	  ["misc/supplement.dic"  ("supplement.h") 1 nil t]
	  ["wnncons/tankan2.dic"  nil            1 nil nil]
	  ["wnncons/tankan3.dic"  nil            1 nil nil]
	  [("ud")                 nil            5 t   t]))
    (cserver
     (Q   nil "Q"
	  nil
	  "sys/full.con"
	  ["sys/QianMa.dic"       nil            1 nil nil])
     (W   nil "W"
	  nil
	  "sys/full.con"
	  ["sys/WuBi.dic"         nil            1 nil nil])
     (nil nil "PZ"
	  [1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0]
	  "sys/full.con"
	  ["sys/level_1.dic"      ("level_1.h")  4 nil t]
	  ["sys/level_2.dic"      ("level_2.h")  1 nil t]
	  ["sys/basic.dic"        ("basic.h")    7 nil t]
	  ["sys/computer.dic"     ("computer.h") 4 nil t]
	  ["sys/cwnn.dic"         ("cwnn.h")     4 nil t]
	  [("ud")                 nil            5 t   t])
     (Q   t "QR"
	  nil
	  "sys/full.conR"
	  ["sys/QianMa.dic"       nil            1 nil nil])
     (W   t "WR"
	  nil
	  "sys/full.conR"
	  ["sys/WuBi.dic"         nil            1 nil nil])
     (nil t "PZR"
	  [1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0]
	  "sys/full.conR"
	  ["sys/level_1.dic"      ("level_1.h")  4 nil t]
	  ["sys/level_2.dic"      ("level_2.h")  1 nil t]
	  ["sys/basic.dic"        ("basic.h")    7 nil t]
	  ["sys/computer.dic"     ("computer.h") 4 nil t]
	  ["sys/cwnn.dic"         ("cwnn.h")     4 nil t]
	  [("ud")                 nil            5 t   t]))
    (tserver
     (nil nil ""
	  [1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0]
	  "sys/full.con"
	  ["sys/cns_ch.dic"       ("cns_ch.h")   4 nil t]
	  ["sys/cns_wd.dic"       ("cns_wd.h")   1 nil t]
	  [("ud")                 nil            5 t   t])
     (nil t "R"
	  [1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0]
	  "sys/full.conR"
	  ["sys/cns_ch.dic"       ("cns_ch.h")   4 nil t]
	  ["sys/cns_wd.dic"       ("cns_wd.h")   1 nil t]
	  [("ud")                 nil            5 t   t]))
    (kserver
     (nil nil ""
	  [2 5 2 45 200 80 5 1 40 0 400 -100 400 80 200 2 200]
	  "sys/full.fzk"
	  ["sys/hword.dic"        ("hword.h")    5 nil t]
	  ["sys/single.dic"       ("single.h")   1 nil t]
	  [("ud")                 nil            2 t   t])
     (nil t "R"
	  [2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200]
	  "sys/full.fzk"
	  ["sys/hword.dic"        ("hword.h")    5 nil t]
	  ["sys/single.dic"       ("single.h")   1 nil t]
	  [("ud")                 nil            2 t   t]))))

CHANGE LOG


KNOWN BUGS / TODO list


CONTENTS OF THIS PATCH

To be written.


INFORMATION SOURCE

----------------------------------------------------------------

Keisuke Mori (ksk@kt.rim.or.jp)
Last Modified: $Id: jserver.html,v 1.2 1999/05/21 05:11:08 ksk Exp $