![]() |
![]() |
![]() |
Tomoe Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct TomoeRecognizer; void tomoe_recognizer_init (void
); void tomoe_recognizer_quit (void
); const gchar * tomoe_recognizer_get_default_module_dir (void
); void tomoe_recognizer_set_default_module_dir (const gchar *dir
); void tomoe_recognizer_load (const gchar *base_dir
); TomoeModule * tomoe_recognizer_load_module (const gchar *name
); void tomoe_recognizer_unload (void
); GList * tomoe_recognizer_get_registered_types (void
); GList * tomoe_recognizer_get_log_domains (void
); TomoeRecognizer * tomoe_recognizer_new (const gchar *name
,const gchar *first_property
,...
); GList * tomoe_recognizer_search (TomoeRecognizer *recognizer
,TomoeWriting *input
); const gchar * tomoe_recognizer_get_language (TomoeRecognizer *recognizer
); gboolean tomoe_recognizer_is_available (TomoeRecognizer *recognizer
);
struct TomoeRecognizer;
The TomoeRecognizer struct contains only private fields and should not be directly accessed.
const gchar * tomoe_recognizer_get_default_module_dir
(void
);
void tomoe_recognizer_set_default_module_dir
(const gchar *dir
);
TomoeRecognizer * tomoe_recognizer_new (const gchar *name
,const gchar *first_property
,...
);
Create a new TomoeRecognizer.
|
The name of recognizer type. |
|
the name of the first property. |
|
the value of the first property, followed optionally by more name/value pairs, followed by NULL |
Returns : |
a new TomoeRecognizer. |
GList * tomoe_recognizer_search (TomoeRecognizer *recognizer
,TomoeWriting *input
);
Match strokes of TomoeChar with TomoeWriting.
|
a TomoeRecognizer object. |
|
a TomoeWriting object for matching. |
Returns : |
A newly-allocated list of TomoeCandidate. The each TomoeCandidate should be also freed with g_object_unref. |
const gchar * tomoe_recognizer_get_language (TomoeRecognizer *recognizer
);
gboolean tomoe_recognizer_is_available (TomoeRecognizer *recognizer
);
|
a TomoeRecognizer object. |
Returns : |
TRUE if the recognizer is available,
FALSE otherwise. |