![]() |
![]() |
![]() |
libskk Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define SKK_TYPE_ROM_KANA_CONVERTER gboolean skk_rom_kana_converter_is_valid (SkkRomKanaConverter *self
,gunichar uc
); gboolean skk_rom_kana_converter_output_nn_if_any (SkkRomKanaConverter *self
); void skk_rom_kana_converter_append_text (SkkRomKanaConverter *self
,const gchar *text
); gboolean skk_rom_kana_converter_append (SkkRomKanaConverter *self
,gunichar uc
); gboolean skk_rom_kana_converter_can_consume (SkkRomKanaConverter *self
,gunichar uc
,gboolean preedit_only
,gboolean no_carryover
); void skk_rom_kana_converter_reset (SkkRomKanaConverter *self
); gboolean skk_rom_kana_converter_delete (SkkRomKanaConverter *self
); SkkRomKanaConverter * skk_rom_kana_converter_new (void
); SkkKanaMode skk_rom_kana_converter_get_kana_mode (SkkRomKanaConverter *self
); void skk_rom_kana_converter_set_kana_mode (SkkRomKanaConverter *self
,SkkKanaMode value
); SkkPeriodStyle skk_rom_kana_converter_get_period_style (SkkRomKanaConverter *self
); void skk_rom_kana_converter_set_period_style (SkkRomKanaConverter *self
,SkkPeriodStyle value
); const gchar * skk_rom_kana_converter_get_output (SkkRomKanaConverter *self
); const gchar * skk_rom_kana_converter_get_preedit (SkkRomKanaConverter *self
); struct SkkRomKanaConverter; struct SkkRomKanaConverterClass; enum SkkKanaMode; enum SkkPeriodStyle;
"kana-mode" SkkKanaMode : Read / Write "output" gchar* : Read / Write "period-style" SkkPeriodStyle : Read / Write "preedit" gchar* : Read "rule" SkkRomKanaMapFile* : Read / Write
#define SKK_TYPE_ROM_KANA_CONVERTER (skk_rom_kana_converter_get_type ())
The type for SkkRomKanaConverter.
gboolean skk_rom_kana_converter_is_valid (SkkRomKanaConverter *self
,gunichar uc
);
|
the SkkRomKanaConverter instance |
gboolean skk_rom_kana_converter_output_nn_if_any
(SkkRomKanaConverter *self
);
Output "nn" if preedit ends with "n".
|
the SkkRomKanaConverter instance |
void skk_rom_kana_converter_append_text (SkkRomKanaConverter *self
,const gchar *text
);
Append text to the internal buffer.
|
the SkkRomKanaConverter instance |
|
a string. [in] |
gboolean skk_rom_kana_converter_append (SkkRomKanaConverter *self
,gunichar uc
);
Append a character to the internal buffer.
|
the SkkRomKanaConverter instance |
|
an ASCII character. [in] |
Returns : |
`true` if the character is handled, `false` otherwise |
gboolean skk_rom_kana_converter_can_consume (SkkRomKanaConverter *self
,gunichar uc
,gboolean preedit_only
,gboolean no_carryover
);
Check if a character will be consumed by the current conversion.
|
the SkkRomKanaConverter instance |
|
an ASCII character. [in] |
|
only checks if preedit is active. [in] |
|
return false if there will be carryover. [in] |
Returns : |
`true` if the character can be consumed |
void skk_rom_kana_converter_reset (SkkRomKanaConverter *self
);
Reset the internal state of the converter.
|
the SkkRomKanaConverter instance |
gboolean skk_rom_kana_converter_delete (SkkRomKanaConverter *self
);
Delete the trailing character from the internal buffer.
|
the SkkRomKanaConverter instance |
Returns : |
`true` if any character is removed, `false` otherwise |
SkkKanaMode skk_rom_kana_converter_get_kana_mode
(SkkRomKanaConverter *self
);
Get and return the current value of the "kana-mode" property.
|
the SkkRomKanaConverter instance to query |
Returns : |
the value of the "kana-mode" property |
void skk_rom_kana_converter_set_kana_mode (SkkRomKanaConverter *self
,SkkKanaMode value
);
Set the value of the "kana-mode" property to value
.
|
the SkkRomKanaConverter instance to modify |
|
the new value of the "kana-mode" property |
SkkPeriodStyle skk_rom_kana_converter_get_period_style
(SkkRomKanaConverter *self
);
Get and return the current value of the "period-style" property.
|
the SkkRomKanaConverter instance to query |
Returns : |
the value of the "period-style" property |
void skk_rom_kana_converter_set_period_style (SkkRomKanaConverter *self
,SkkPeriodStyle value
);
Set the value of the "period-style" property to value
.
|
the SkkRomKanaConverter instance to modify |
|
the new value of the "period-style" property |
const gchar * skk_rom_kana_converter_get_output (SkkRomKanaConverter *self
);
Get and return the current value of the "output" property.
|
the SkkRomKanaConverter instance to query |
Returns : |
the value of the "output" property |
const gchar * skk_rom_kana_converter_get_preedit (SkkRomKanaConverter *self
);
Get and return the current value of the "preedit" property.
|
the SkkRomKanaConverter instance to query |
Returns : |
the value of the "preedit" property |
struct SkkRomKanaConverterClass { GObjectClass parent_class; };
The class structure for SKK_TYPE_ROM_KANA_CONVERTER
. All the fields in this structure are private and should never be accessed directly.
typedef enum { SKK_KANA_MODE_HIRAGANA, SKK_KANA_MODE_KATAKANA, SKK_KANA_MODE_HANKAKU_KATAKANA } SkkKanaMode;
Type representing kana scripts.
"kana-mode"
property"kana-mode" SkkKanaMode : Read / Write
kana-mode.
Default value: SKK_KANA_MODE_HIRAGANA
"period-style"
property"period-style" SkkPeriodStyle : Read / Write
period-style.
Default value: SKK_PERIOD_STYLE_JA_JA