$Id: kanren.man,v 1.3 2001/06/14 18:08:33 ura Exp $


FreeWnn is a network-extensible Kana-to-Kanji conversion system.
This file is part of FreeWnn.

Copyright Kyoto University Research Institute for Mathematical Sciences
1987, 1988, 1989, 1990, 1991, 1992
Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
Copyright FreeWnn Project 1999, 2000

Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

JS_KANREN "20 September 1991"
̾��
.sv 1
js_kanren() Ϣʸ���Ѵ���Ԥ���
����
.sv 1
#include "jslib.h"

int
js_kanren(env,yomi,hinsi,fzk,vec,vec1,vec2,rb)
struct wnn_env *env; /* �Ķ� */
w_char *yomi; /* �ɤ��� */
int hinsi; /* �ʻ��ֹ� */
w_char *fzk; /* ��°��ʸ���� */
int vec; /* ��³�٥����� */
int vec1; /* ��³�٥����� */
int vec2; /* ��³�٥����� */
struct wnn_ret_buf *rb; /* �Ѵ���̤��֤����ꥢ�ؤΥݥ��� */
��ǽ

0

�ɤ� yomi ��Ϣʸ���Ѵ����������������֤��� hinsi, fzk �ϡ�yomi ��ʸ�������ʸ����ʻ��ֹ桢��°��ʸ�������ꤹ�롣 �ʻ��ֹ桢��°��ʸ�������ꤷ�����ϡ�yomi ��Ƭ��ʸ�������ʸ�����³ �Ǥ��뾮ʸ����(����ʸ���ޤ����ʸ��Ȥʤ�)�Ȥ����Ѵ����롣 ����ʸ�����³�Ǥ�����䤬̵�����ϡ���ʸ�����Ƭ�ˤʤ���Τ��֤��� �����ʤ����ϡ���ʸ�����Ƭ�ˤʤ�ʤ����(�������ˡ����ꤷ���ʻ�ʳ� ���ʻ줬���ʤ��ƤϤ����ʤ���Ρ����Ȥ��С�hinsi ��̾�����ꤷ���Ȥ��� ������:����������ˤϡ����줬������ʸ��Ȥʤ�)���֤��� ���Τ����ɤθ��䤬���Ф줿���ϡ�rb->buf->sbn->status ���֤���롣
 WNN_CONNECT ���ꤵ�줿(�ʻ졢��°��)����³�Ǥ���
 WNN_SENTOU ��ʸ�����Ƭ
 WNN_NOT_CONNECT ��ʸ�����Ƭ�ˤʤ�ʤ�����������³�Ǥ��ʤ�
 WNN_GIJI ����ʸ��Ȥ����Ѵ�����
����ʸ�����°�줬̵�����ϡ�NULL ����ꤹ�롣 ���ξ�ʸ��Ȥ�����ʸ��Ȥ����Ѵ�������ϡ�hinsi �ˡ�
 WNN_BUN_SENTOU (��ʸ�����Ƭ�ˤʤ����)
 WNN_ALL_HINSI (���Ƥξ�ʸ��)
����ꤹ�롣 vec��vec1 �ϡ��Ѵ��Τ���ν�ü�٥��ȥ����ꤹ�롣 ���ξ�ʸ�����ü�٥��ȥ����ꤹ�롣���ξ��ϡ�yomi �κǸ��ʸ��� ����ʸ���ޤ᤿��Τ���ʸ��Ȥʤ롣 ���ξ�ʸ��Ȥ�����ʸ��Ȥ����Ѵ�������ϡ�vec�� vec1 �ˡ�
 WNN_VECT_KANREN (Ϣʸ���Ѵ��ν�ü�٥��ȥ�)
 WNN_VECT_KANTAN (ñʸ���Ѵ��ν�ü�٥��ȥ�)
 WNN_VECT_KANZEN (�������Ф��ν�ü�٥��ȥ�)
 WNN_VECT_BUNSETSU (ʸ��ν�ü�٥��ȥ�)
����ꤹ�롣 vec �˻��ꤷ����ü�٥��ȥ�ϡ�vec1 �˻��ꤷ����ü�٥��ȥ���⡢ɾ�� ��ब�⤯�ʤ롣 �̾vec �ˤϸ��ξ�ʸ�����ü�٥��ȥ��vec1 �ˤϡ�WNN_VECT_KANREN ����ꤹ�롣 vec1 �˻��ꤹ�٤���ü�٥��ȥ뤬�ʤ����ϡ�WNN_VECT_NO ����ꤹ�롣 ���ξ�� vec �Τߤ��Ѵ��˻��Ѥ���롣 vec2 �ϡ�Ϣʸ���Ѵ����������ʸ��ǻ��Ѥ���롣 �̾vec2 �ˤ� WNN_VECT_BUNSETSU ����ꤹ�롣 vec ����³�Ǥ���ʸ�ᤫ��vec1 ����³�Ǥ���ʸ�ᤫ�ϡ� rb->buf->sbn->status_bkwd ���֤���롣 vec ����³�Ǥ������ϡ�WNN_CONNECT_BK ����vec1 ����³�Ǥ������ϡ� WNN_NOT_CONNECT_BK ���֤���롣 �����ͤϡ�yomi �˻��ꤷ�����Ǹ���ʸ��Τߤ�ͭ���Ǥ��롣 rb �ˤϡ��Ѵ���̤��֤륨�ꥢ�ؤΥݥ���(struct wnn_ret_buf *)����� ���롣rb �ϡ��桼�����Ѱդ� *rb = {0, NULL} �˽�������롣 rb->buf ���Ѵ���̤���ʸ��ξ���(struct wnn_dai_bunsetsu *)����Ƭ�ؤ� �ݥ������֤���롣�������顢��ʸ���������ʸ��ξ��������äƤ��롣 ��°��ե����뤬�ɤ߹��ޤ�Ƥ��ʤ����ϡ����顼�Ȥʤ롣
�꥿����Х�塼
.sv 1
���ェλ���ˤϡ���ʸ������֤���
�۾ェλ���ˤϡ�-1 ���֤���