1
.\" Hey, EMACS: -*- nroff -*-
2
.TH RULEXDB_SUBSCRIBE_ITEM 3 "February 19, 2012"
4
rulexdb_subscribe_item \- put new dictionary item into the rulex database
9
.BI "int rulexdb_subscribe_item(RULEXDB *" rulexdb \
10
", const char *" key ", const char *" value ", int " item_type \
15
.BR rulexdb_subscribe_item ()
16
function inserts new item into one of the dictionary datasets in the
23
points to a text string containing the original word.
27
points to the corresponding pronunciation string.
31
specifies target dataset. It may accept one of the following values:
34
The item represents a lexical base, therefore should be inserted into
35
the \fBImplicit\fP dictionary.
38
Explicit item that should be inserted into the \fBExplicit\fP
42
Target dictionary should be guessed according to specified key: if it
43
represents any lexical base, then \fBImplicit\fP dictionary will be
44
chosen, otherwise the \fBExplicit\fP dictionary will be used. If key
45
word is recognized as a lexical base, but the record for this key
46
already exist in the \fBImplicit\fP dictionary, then \fBExplicit\fP
47
dictionary will be tried instead.
51
If true (non-zero) the new item will replace already existing one with
52
the same key if any. Otherwise the new item will not be stored.
55
.BR rulexdb_subscribe_item ()
58
which is zero when specified item was successfully subscribed,
61
when specified key already exists in the dictionary, or
62
negative error code otherwise.
66
Referenced database has not been opened, internal data structures are
67
corrupted or some other general failure has occurred.
73
Invalid pronunciation string specified.
83
The database is not opened for updating.
85
.BR rulexdb_classify (3),
87
.BR rulexdb_dataset_name (3),
88
.BR rulexdb_discard_dictionary (3),
89
.BR rulexdb_discard_ruleset (3),
90
.BR rulexdb_fetch_rule (3),
91
.BR rulexdb_lexbase (3),
92
.BR rulexdb_load_ruleset (3),
94
.BR rulexdb_remove_item (3),
95
.BR rulexdb_remove_rule (3),
96
.BR rulexdb_remove_this_item (3),
97
.BR rulexdb_retrieve_item (3),
98
.BR rulexdb_search (3),
100
.BR rulexdb_subscribe_rule (3)
102
Igor B. Poretsky <poretsky@mlbox.ru>.