File: dic_add.man

package info (click to toggle)
freewnn 1.1.1~a021%2Bcvs20100325-6
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 18,192 kB
  • sloc: ansic: 97,631; sh: 8,551; makefile: 6,581; cpp: 88
file content (132 lines) | stat: -rw-r--r-- 4,440 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.\"
.\"   $Id: dic_add.man,v 1.3 2001/06/14 18:08:32 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
.\"
.TH JL_DIC_ADD 3  "2 October 1991"
.SH ̾
.sv 1
.nf
.ta 0.1i 2i
jl_dic_add()	Хåե˼ɲä롣
jl_dic_add_e()	Ķ˼ɲä롣
.fi
.SH 
.sv 1
.nf
.ta 0.1i 3i
#include "jllib.h"

int
jl_dic_add(buf,dic_name,hindo_name, rev, prio,rw, hrw, pwd_dic, 
				pwd_hindo, error_handler, message_handler)  
struct wnn_buf *buf;		/* Хåե */
char *dic_name;			/* ̾ */
char *hindo_name;		/* ٥ե̾ */
int rev;			/* Ѵɤ(̤) */
int prio;			/* ͥ */
int rw;				/* R/W */
int hrw;			/* ٥եR/W */
char *pwd_dic;			/* Υѥɥե̾ */
char *pwd_hindo;		/* ٥եΥѥɥե̾ */
int (*error_handler)();		/* 顼ϥɥ */
int (*message_handler)();	/* åϥɥ */

int
jl_dic_add_e(env,dic_name,hindo_name, rev, prio,rw, hrw,pwd_dic, 
				pwd_hindo, error_handler, message_handler)  
struct wnn_env *env;		/* Ķ */
char *dic_name;			/* ̾ */
char *hindo_name;		/* ٥ե̾ */
int rev;			/* Ѵɤ(̤) */
int prio;			/* ͥ */
int rw;				/* R/W */
int hrw;			/* ٥եR/W */
char *pwd_dic;			/* Υѥɥե̾ */
char *pwd_hindo;		/* ٥եΥѥɥե̾ */
int (*error_handler)();		/* 顼ϥɥ */
int (*message_handler)();	/* åϥɥ */
.fi
.SH ǽ
.HP 0
.IP
jl_dic_add ϡХåե buf δĶˡjl_dic_add_e ϡĶ env 
dic_name, hindo_name μ٥եɲä롣
饤ȡȤμ٥եϡե̾Ƭ
 ! Ĥ̾dic_name, hindo_name ˻ꤹ롣

prio ǡͥ٤ꤹ롣
rw, hrw ǡ٥ե뤬ɤ߼Ѥݤꤹ롣
.nf
.ta 0.3i 2.5i
	    WNN_DIC_RDONLY	ɤ߼
	    WNN_DIC_RW		ɤ߼/񤭹߲ǽ
.fi
Ƿ񡢤ӡɤ߼ѼˤϡñϿ/Ǥʤ

rev  ǡѴԤʤɤꤹ롣
.nf
.ta 0.3i 2.5i
	    WNN_DIC_ADD_REV	Ѵ
	    WNN_DIC_ADD_NOR	̾Ѵ
.fi
ѴФƤѴϹԤʤȤǤʤ

pwd_dic, pwd_hindo ǡڤ٥եΥѥɤäƤե
̾ꤹ롣
ڤ٥ե˥ѥɤݤäƤʤϡNULL ꤹ롣

顼ϥɥ error_handler ǡڤ٥ե뤬¸ߤʤ
뤫ݤꤹ롣
.nf
.ta 0.3i 2.5i
	    WNN_NO_CREAT	Ϻ餺ιԤϥåפ롣
	    WNN_CREATE		ϿǽȤƺɤ߹ࡣ
	                	٥եϤμФ٥ե
	                	ƺɤ߹ࡣ
	    ¾       	(*error_handler)()򡢥åȤʤʸ
	                	Ȥơʤɤ뤫ݤ֤
	                	ؿȸʤδؿƤ֡
	                	ؿͤ 1 ʤ0 ʤʤ
.fi

åϥɥ message_handler  NULL ǤʤСʸɽ
ؿȸʤʤɤȤåɽԤʤ

Υϥɥ餬ɬפʤΤϡjl_open ǡХåŪ˼
ɤ߹ߤԤʤǤ롣
	
եˤϡհǺ롣
.SH ꥿Х塼
.sv 1
.nf
ェλˤϼֹ֤
۾ェλˤ -1 ֤
.fi