![]() |
![]() |
![]() |
Tomoe Reference Manual | ![]() |
---|---|---|---|---|
TomoeRecognizer; void tomoe_recognizer_load (const gchar *base_dir); void tomoe_recognizer_unload (void); GList* tomoe_recognizer_get_registered_types (void); TomoeRecognizer* tomoe_recognizer_new (const gchar *name, const gchar *first_property, ...); GList* tomoe_recognizer_search (TomoeRecognizer *recognizer, TomoeWriting *input);
typedef struct _TomoeRecognizer TomoeRecognizer;
The TomoeRecognizer struct contains only private fields and should not be directly accessed.
GList* tomoe_recognizer_get_registered_types (void);
Returns : |
TomoeRecognizer* tomoe_recognizer_new (const gchar *name, const gchar *first_property, ...);
Create a new TomoeRecognizer.
name : |
The name of recognizer type. |
first_property : |
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.
recognizer : |
a TomoeRecognizer object. |
input : |
a TomoeWriting object for matching. |
Returns : | A newly-allocated list of TomoeCandidate. The each TomoeCandidate should be also freed with g_object_unref. |