From xemacs-m  Mon Apr 14 16:31:11 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA17942
	for <xemacs-beta@xemacs.org>; Mon, 14 Apr 1997 16:31:10 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id OAA05593;
	Mon, 14 Apr 1997 14:43:57 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Where are the canna header files?
References: <tjg1wthcsw.fsf@sfs.nphil.uni-tuebingen.de>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: John Griffith's message of 14 Apr 1997 16:57:51 +0200
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 14 Apr 1997 14:43:55 -0700
Message-ID: <m2afn1nuuc.fsf@altair.xemacs.org>
Lines: 77
X-Mailer: Gnus v5.4.45/XEmacs 20.1

John Griffith <griffith@sfs.nphil.uni-tuebingen.de> writes:

> I might go to Japan next year so I decided I better get used to
> looking at Japanese (even if I don't understand it yet).  Anyway,
> in configure it says

>> --canna-includes=DIR 	Search for Canna header files in DIR.
>> --canna-libraries=DIR	Search for Canna libraries in DIR.

My canna includes are installed in /usr/include/canna.  My Wnn
includes are installed in /usr/X11R6/include/wnn.  There appears to be 
utterly no problem in having support for both around, and when built
as shared libraries impose little penalty in XEmacs binary size.  I
use the following functions to turn them on:

(defun enable-wnn ()
  "Enable Wnn/Egg input method."
  (interactive)
  (when (featurep 'wnn)
    (load-library "egg")
    (load-library "egg-wnn")
    (setq egg-default-startup-file "eggrc-wnn")))

(defun enable-canna ()
  "Enable Canna input method."
  (interactive)
  (when (boundp 'CANNA)
    (require 'canna)
    (canna)))

The language environment must be set to Japanese to complete the
initialization of Wnn.  I wish there were a way to get back the
default nil language environment, but there isn't.

> and sure enough if I do --with-canna it doesn't know where to look.
> The file mule-doc/README.mule says canna is bundled with Mule (does
> that mean it's bundled with XEmacs?). I looked everywhere and cannot
> find any of the .h files.

> What is the preferred method for reading/writing Japanese and what
> _exactly_ do I need to do it?  I haven't been able to find an
> authoritative answer.

I don't think there is one.  You have a choice and each package has
its own set of advantages.

(Please correct me if I'm off-base on any of this, we need a canonical 
answer to put in the FAQ).

XIM, Canna, and Wnn are supported in distributed XEmacs 20.1.  I have no
idea how to use the XIM stuff.  Martin posted something on this a
couple of months ago.

Canna and Wnn require running a special server and compiling special
support into XEmacs. Canna is Japanese-only and has the oldest
support. Wnn supports Japanese, Chinese and Korean and comes in two
flavors Wnn4 which is free, and Wnn6 which is commercially available
from Omron corporation. Both packages support dictionaries where I
believe you can build up a set of your most commonly used words. Wnn's
dictionaries are more extensive than Canna's out of the box.

Other MULE input packages like Quail and SKK are not supported out of
the box yet.  Quail support is being worked on by Jareth Hein and
should become available sometime in the 20.2 beta cycle.  I have no
idea what the system support requirements are.

SKK is a Japanese-only input method that is implemented entirely in
Lisp.  A URL was recently posted here for SKK-10.27.  It doesn't quite 
work out of the box, but it is clear that much effort has been
expended to port it to XEmacs/MULE and the changes required to get it
bytecompiled and running are trivial.  I look forward to getting some
time to go over the source in detail because this package does stuff I 
had no idea was possible. :-)

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

