RKDEFINEDIC(3)

πŸ’– RKDEFINEDIC πŸ’–

okay bestie so we're looking at RkDefineDic, a little function from the Library Functions Manual, section 3 β€” that's the C library functions corner of the man pages, iykyk ✨


✨ NAME ✨

RkDefineDic β€” bestie, it defines the specified candidates in the dictionary πŸŽ€


🌸 SYNOPSIS 🌸

#include <canna/RK.h>
int RkDefineDic(cxnum, dicname, wordrec)
int cxnum;
char *dicname;
char *wordrec;

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. RkDefineDic defines the candidates you specify into the dictionary whose name is dicname. the vibes are: you hand it a dictionary name, and it goes and puts your word in there. periodt πŸ’…

the word you wanna add goes in the character string wordrec, and it has to be written in this exact format:

reading   part-of-speech information   kanji candidate

so if you write wordrec like this, for example:

(HIRAGANA)     #T35     (KANJI)  ...

then you're specifying a candidate whose part of speech #T35 is defined by the reading "(HIRAGANA)", and whose spelling matches "(KANJI)". and that's it, that's the whole assignment, no cap πŸ”₯


⭐ RETURN VALUE ⭐

this function returns 0 if it worked πŸŽ‰ β€” otherwise it returns -1 😭

also, heads up bestie: it returns -1 without doing anything at all if it's been run in a conversion mode context. like, it just. doesn't. nothing happens. so don't be surprised, okay? πŸ™ˆ

and that's the whole page, babe β€” signed off from the Library Functions Manual, RKDEFINEDIC(3), section 3, the RkDefineDic girlies' very own corner of the docs πŸ’œπŸ«Ά go forth and define those candidates, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from