RKMAPROMA(3)
β¨ NAME β¨
okay bestie, welcome to RKMAPROMA(3) from the Library Functions Manual π This page is all about RkMapRoma β perform Romaji-kana conversion by using a specified Romaji-kana conversion table. It's giving "romaji goes in, kana comes out" and honestly? iconic. β¨
πΈ SYNOPSIS πΈ
#include <canna/RK.h>
int RkMapRoma(romaji, dst, maxdst, src, srclen, flags, status)
struct RkRxDic *romaji;
unsigned char *dst;
int maxdst;
unsigned char *src;
int srclen;
int flags;
int *status;
π¦ DESCRIPTION π¦
RkMapRoma performs Romaji-kana conversion by using a specified Romaji-kana conversion table. romaji specifies a pointer to the Romaji-kana conversion table that has been returned by RkOpenRoma(3). (iykyk, that's where the table comes from.)
RkMapRoma interprets the srclen bytes of contiguous data starting at the area src as a Romaji character string and searches through the Romaji-kana conversion table for the rule of Romaji-kana conversion that matches the beginning of the Romaji character string. If the corresponding conversion rule is found, the corresponding kana character string is stored in the area dst. The resulting character string is truncated when its byte length exceeds maxdst -1. dst is padded with null characters at the end if possible.
flags is a combination of the following Romaji-kana conversion flags connected by or:
RK_SOKUONβ Enables gemination, in which a sequence of two occurrences of the same character,xx, is converted to small kana character "tsu" only if it is not defined in the Romaji-kana conversion table file.RK_FLUSHβ Converts all Romaji characters compulsorily. Useful for handlingnappearing at the end of a character string.
The flags listed below specify the type of characters stored in src. These specify code conversion to be performed on the character string derived from the Romaji-kana conversion table. These flags can use one by one.
RK_NFERβ No conversionRK_XFERβ HiraganaRK_HFERβ Single-byte characterRK_KFERβ KatakanaRK_ZFERβ Double-byte character
status is set to the byte length of the character string set in the area dst. A negative value means that there is no matching Romaji character string.
π RETURN VALUE π
This function returns the starting byte length of the Romaji character string matched by Romaji-kana conversion. π
and that's the page, bestie! The footer just says RKMAPROMA(3) β no extra source/version/date line to spill, so that's the whole tea. Library Functions Manual, RKMAPROMA(3), periodt. ππ
π¦ where this page comes from
- debian bookworm: libcanna1g-dev 3.7p3-20 Β· ISC
- debian trixie: libcanna1g-dev 3.7p3-25 Β· ISC
- ubuntu jammy: libcanna1g-dev 3.7p3-17 Β· ISC
- ubuntu noble: libcanna1g-dev 3.7p3-20 Β· ISC
- ubuntu questing: libcanna1g-dev 3.7p3-26
- ubuntu resolute: libcanna1g-dev 3.7p3-26build1 Β· ISC
- ubuntu stonking: libcanna1g-dev 3.7p3-29 Β· ISC
- Copyright 1994 NEC Corporation, Tokyo, Japan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms