DICLIBINTRO(3)

πŸ’– NAME πŸ’–

okay so bestie, this is DICLib_intro β€” dictionary access library introduction. We're in the Library Functions Manual, and the page is DICLIBINTRO(3). It's giving "the whole dictionary access library intro, no cap." πŸ’…

🌸 DESCRIPTION 🌸

The dictionary access library provides basic functions for kana-kanji conversion. ngl, the following files are prerequisite to using the dictionary access library:

  • Header file
    • canna/RK.h β€” An include file with data and function declarations for the kana-kanji conversion library. Include it when you compile.
  • Libraries
    • libcanna.a, libcanna.so β€” Kana-kanji conversion libraries. At link time, specify "-lcanna".

✨ SUMMARY ✨

okay so the dictionary access library provides three major categories of functions, periodt:

  • ✨ Code conversion functions Converts character string codes between double-width and single-width characters, and between hiragana and katakana. No external data or initialization procedures needed.
  • ✨ Romaji-kana conversion functions Converts Romaji into kana using a Romaji-kana conversion table that maps Romaji to kana. You can change the rules of Romaji-kana conversion by editing this table.
  • ✨ Kana-kanji conversion functions Converts kana into kanji through continuous clause conversion using a kana-kanji conversion dictionary that maps readings to words. You can tailor kana-kanji conversion for specific apps by modifying this dictionary.

Among all the functions for Japanese input processing, this library only does data conversion. So to actually type Japanese from a keyboard, users have to write a keyboard handling routine inside the application program.

πŸ’… Code conversion functions πŸ’…

  • Rk(w)CvtZen β€” Takes ASCII characters plus single-width katakana and turns them into double-width characters.
  • RkCvtHan β€” Turns double-width symbols, alphanumeric characters, hiragana, and katakana into single-width characters.
  • RkCvtKana β€” Turns double-width hiragana into double-width katakana.
  • RkCvtHira β€” Turns double-width katakana into double-width hiragana.
  • RkCvtEuc β€” Turns shift JIS code into EUC code.

πŸ¦‹ Romaji-kana conversion functions πŸ¦‹

  • RkOpenRoma β€” Opens the dictionary you're gonna use for Romaji-kana conversion.
  • RkCloseRoma β€” Closes the dictionary that was used for Romaji-kana conversion.
  • RkMapRoma β€” Does Romaji-kana conversion using a Romaji-kana conversion dictionary you specify.
  • RkCvtRoma β€” Converts a whole character string from Romaji to kana by looping through RkMapRoma.

πŸ‘‘ Kana-kanji conversion functions πŸ‘‘

  • RkInitialize β€” Initializes the kana-kanji conversion functions.
  • RkFinalize β€” Terminates the kana-kanji conversion functions.
  • RkCreateContext β€” Creates a brand-new conversion context.
  • RkDuplicateContext β€” Creates a context that has the same conversion environment as a context you specify.
  • RkCloseContext β€” Closes a conversion context you specify.
  • RkGetDicList β€” Gets the names of dictionaries that can be added to the dictionary list.
  • RkMountDic β€” Mounts a dictionary in the dictionary list.
  • RkGetMountList β€” Gets the names of the dictionaries currently mounted. (or characters for RkwResize)
  • RkUnmountDic β€” Unmounts a specified dictionary from the dictionary list.
  • RkRemountDic β€” Changes the priority order of a dictionary that's already in the dictionary list.
  • RkBgnBun β€” Converts the reading of a specified length into kanji.
  • RkEndBun β€” Ends kana-kanji conversion.
  • RkGoTo β€” Makes the clause with a specified clause number the current clause.
  • RkLeft β€” Moves the current clause to the clause on its left.
  • RkRight β€” Moves the current clause to its right.
  • RkXfer β€” Makes the candidate with a specified candidate number the current candidate.
  • RkNext β€” Makes the next candidate the current candidate.
  • RkPrev β€” Makes the previous candidate the current candidate.
  • RkNfer β€” Makes a reading itself the current candidate.
  • RkResize β€” Changes the reading length of the current clause to len bytes.
  • RkEnlarge β€” Makes the reading of the current clause bigger.
  • RkShorten β€” Makes the reading of the current clause smaller.
  • RkStoreYomi β€” Changes the reading of the current clause to a reading you specify, then reconverts the clauses after it.
  • RkGetYomi β€” Gets the reading of the current clause.
  • RkGetKanji β€” Gets the current candidate for the current clause.
  • RkGetKanjiList β€” Gets every kanji candidate for the current clause.
  • RkGetStat β€” Gets analysis info about the current candidate.
  • RkGetLex β€” Gets morphemic info on every word that makes up the current candidate.
  • RkDefineDic β€” Defines a specified candidate in a dictionary.
  • RkDeleteDic β€” Deletes a specified candidate from a dictionary.

And that's the footer vibe: DICLIBINTRO(3). The original footer didn't give us a source/version or date line, so that's literally all the footer had, bestie. byeee πŸ’–βœ¨

πŸ“¦ where this page comes from