Rechercher une page de manuel
RkMapPhonogram
Langue: en
Version: 374422 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
RkMapPhonogram - perform Romaji-kana conversion by using a specified Romaji-kana conversion tableSYNOPSIS
#include <canna/RK.h> int RkMapPhonogram(romaji, dst, maxdst, src, srclen, flags, ulen, dlen, tlen, rule) struct RkRxDic *romaji; unsigned char *dst; int maxdst; unsigned char *src; int srclen; int flags; int *ulen; int *dlen; int *tlen; int *rule;
DESCRIPTION
RkMapPhonogram 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). RkMapPhonogram 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 area dst is loaded with the corresponding kana character string, with dlen being set to its byte length. The resulting character string is truncated when its byte length exceeds maxdst -1. 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. This process provides for situations in which an obsolete Romaji-kana conversion table is used.
- RK_FLUSH
- Converts all Romaji characters compulsorily. Useful for handling n appearing at the end of a character string.
RETURN VALUE
This function returns information about whether the character string set in dst has been converted by using a rule existing in the Romaji-kana conversion table or not. The function returns 1 if a rule existing in the Romaji-kana conversion table has been used; otherwise, it returns 0.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre