RKGETLEX(3)

✨ NAME ✨

okay so bestie, this is RKGETLEX(3) from the Library Functions Manual, and it's all about RkGetLex β€” the function that gets morphemic information on each word that makes up the current candidate. no cap, that's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

#include <canna/RK.h>
int RkGetLex(cxnum, lex, maxlex)
int cxnum;
RkLex *lex;
int maxlex;

✨ DESCRIPTION ✨

So RkGetLex gets morphemic information on each word that makes up the current candidate, and stores it in the array lex in sequence from the left. It's giving organized bestie energy ✨. Right-side word information is truncated when the number of words exceeds maxlex. Like, if there's too much word info, the right side gets cut off β€” not me being dramatic, that's just what it does 😭.

The fields of the structure lex are loaded with the following:

  • ylen β€” Byte length of the reading of a word 🌸
  • klen β€” Byte length of the kanji of the word πŸ’–
  • rownum β€” Row number of the word πŸ‘‘
  • coldnum β€” Column number of the word ⭐
  • dicnum β€” Not used, bestie, it's just there chilling πŸ’€

✨ RETURN VALUE ✨

This function returns -1, without doing anything, if it has been run in a nonconversion mode context. So yeah, nonconversion mode? It's not doing a single thing, just handing you -1 and walking away πŸ™ˆ.

bestie, that's not a bug, that's literally the documented return. periodt. πŸ’…

k bye bestie! this is from the Library Functions Manual, page RKGETLEX(3), and the footer doesn't give a date, so we're keeping it timeless πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from