TomoeRecognizer

TomoeRecognizer

Functions

Properties

char * language Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── TomoeRecognizer

Description

Functions

tomoe_recognizer_init ()

void
tomoe_recognizer_init (void);

tomoe_recognizer_quit ()

void
tomoe_recognizer_quit (void);

tomoe_recognizer_get_default_module_dir ()

const gchar *
tomoe_recognizer_get_default_module_dir
                               (void);

tomoe_recognizer_set_default_module_dir ()

void
tomoe_recognizer_set_default_module_dir
                               (const gchar *dir);

tomoe_recognizer_load ()

void
tomoe_recognizer_load (const gchar *base_dir);

tomoe_recognizer_load_module ()

TomoeModule *
tomoe_recognizer_load_module (const gchar *name);

tomoe_recognizer_unload ()

void
tomoe_recognizer_unload (void);

tomoe_recognizer_get_registered_types ()

GList *
tomoe_recognizer_get_registered_types (void);

tomoe_recognizer_get_log_domains ()

GList *
tomoe_recognizer_get_log_domains (void);

tomoe_recognizer_new ()

TomoeRecognizer *
tomoe_recognizer_new (const gchar *name,
                      const gchar *first_property,
                      ...);

Create a new TomoeRecognizer.

Parameters

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.


tomoe_recognizer_search ()

GList *
tomoe_recognizer_search (TomoeRecognizer *recognizer,
                         TomoeWriting *input);

Match strokes of TomoeChar with TomoeWriting.

Parameters

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.


tomoe_recognizer_get_language ()

const gchar *
tomoe_recognizer_get_language (TomoeRecognizer *recognizer);

tomoe_recognizer_is_available ()

gboolean
tomoe_recognizer_is_available (TomoeRecognizer *recognizer);

Parameters

recognizer

a TomoeRecognizer object.

 

Returns

TRUE if the recognizer is available, FALSE otherwise.

Types and Values

struct TomoeRecognizer

struct TomoeRecognizer;

Property Details

The “language” property

  “language”                 char *

The language of the recognizer.

Owner: TomoeRecognizer

Flags: Read / Write / Construct Only

Default value: NULL