RkDefineDic
define specified candidates in the dictionary
- Provided by: libcanna1g-dev (Version: 3.7p3-14)
- Source: canna
- Report a bug
define specified candidates in the dictionary
#include <canna/RK.h> int RkDefineDic(cxnum, dicname, wordrec) int cxnum; char *dicname; char *wordrec;
RkDefineDic defines specified candidates in the dictionary named by dicname. Specify the word to add in the character string wordrec, which is written in the format:
Writing wordrec, for example, as
will specify a candidate whose part of speech #T35 is defined by the reading "(HIRAGANA)" and whose spelling matches "(KANJI)".
This function returns 0 if successful; otherwise it returns -1. It also returns -1, without doing anything, if it has been run in a conversion mode context.