rkmaproma(3) - Linux man page
Name
RkMapRoma - perform Romaji-kana conversion by using a specified Romaji-kana conversion table
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
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 handling n appearing at the end of a character string.
The flags listed below specify the type of characters stored in src. These specified code conversion to be performed on the character string derived from the Romaji-kana conversion table. These flags can use one by one.
Double-byte character
- RK_NFER
- No conversion
- RK_XFER
- Hiragana
- RK_HFER
- Single-byte character
- RK_KFER
- Katakana
- RK_ZFER
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.