OPEN_JLIB(3X)
NAME
open_jlib, close_jlib − enable or disable Japanese specific facilities
SYNOPSIS
#include <jlib.h>
int open_jlib (langname)
char *langname;
int close_jlib ()
DESCRIPTION
The arguments to open_jlib are langname, which is used to bind operation to the end-user’s specified language requirements. For example,
open_jlib (getenv ("LANG"));
Once open_jlib is invoked, the following facilities are available. Those marked with an asterisk are provided by a server process. Note that once open_jlib is invoked, another one must not be invoked until close_jlib is invoked.
| RomajiHiragana (s1, s2)* | ROMAJI to HIRAGANA |
| RomajiKatakana (s1, s2)* | ROMAJI to KATAKANA |
| RomajiHankakuKatakana (s1, s2)* | ROMAJI to HANKAKU KATAKANA |
| HiraganaKatakana (s1, s2) | HIRAGANA to KATAKANA |
| KatakanaHiragana (s1, s2) | KATAKANA to HIRAGANA |
| HankakuZenkaku (s1, s2, mode) | HANKAKU to ZENKAKU |
| ZenkakuHankaku (s1, s2) | ZENKAKU to HANKAKU |
| KutenZenkaku (c, s) | KUTEN (section-point) code to ZENKAKU |
| J_UD_open (filename, mode)* | open a user dictionary |
| J_UD_close (dp)* | close a user dictionary |
| J_UD_store (key, kouho, dp)* | store a word into a user dictionary |
| J_UD_delete (key, kouho, dp)* | delete a word from a user dictionary |
| J_UD_search (key, dp)* | search a word in a user dictionary |
| J_UD_free (p)* | free a space allocated by J_UD_search |
| open_kana_kan (filename)* | initialize KANA to KANJI conversion |
| close_kana_kan (ed)* | terminate KANA to KANJI conversion |
| Henkan (ed, string, len, buf, size, mode)* | perform KANA to KANJI conversion |
| JiKouho (ed, pb, nb)* | get all KOUHOs |
| Kakutei (ed, pb, nb, nk)* | update HINDO information |
| HenkanOwari (ed, pb)* | free a space allocated by Henkan |
| SetUserDict (ed, dp, mode)* | enable or disable to consult a user dictionary |
When these facilities are no longer needed, invoke close_jlib to close them.
DIAGNOSTICS
Open_jlib returns 0 upon successful completion. Otherwise, −1 is returned and jlib_errno is set to indicate the error:
[JUNAVAIL] Cannot connect to server. Above facilities marked with an asterisk are not available.
[JUNAVAIL] Open_jlib has been invoked.
Close_jlib returns 0 upon successful completion. Otherwise, −1 is returned.
GLOSSARY
Here is a glossary of terms used in the description of each manpage entry for Japanese-specific facilities shown above.
BUNSETSU a small group of words
HINDO the frequency of use
ROMAJI a way of spelling Japanese by Roman character
KANA a character to express a syllable developed in Japan based on KANJI. There are two kinds of KANA, HIRAGANA and KATAKANA.
HIRAGANA characters from 04-01 to 04-83 in section-point code
KATAKANA characters from 05-01 to 05-86 in section-point code
KUTEN code a one of expression for KANJI characters
ZENKAKU character a character two times as large as a HANKAKU character
HANKAKU character a character in the KANA8 character set
YOMI show how to pronounce a KANJI
DAKUON sound to express KANA that is written preceding DAKUTEN
DAKUTEN a symbol to express DAKUON
HANDAKUON sound to express KANA that is written preceding HANDAKUTEN; i.e., sound of PA, PI, PU, PE, and PO.
HANDAKUTEN a symbol to express HANDAKUON
HYOUKI show how to spell a Japanese word
HINSHI a part of speech
SEE ALSO
RomajiHiragana(3X), RomajiKatakana(3X), RomajiHankakuKatakana(3X), HiraganaKatakana(3X), KatakanaHiragana(3X), HankakuZenkaku(3X), ZenkakuHankaku(3X), KutenZenkaku(3X), J_UD_open(3X), J_UD_close(3X), J_UD_store(3X), J_UD_delete(3X), J_UD_search(3X), J_UD_free(3X), open_kana_kan(3X), close_kana_kan(3X), Henkan(3X), JiKouho(3X), Kakutei(3X), HenkanOwari(3X), SetUserDict(3X)
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989