Debian Codegraph @

docs/developers

raw
1 Development notes for SCIM
2 ==========================
3
4 If you want to write your own input method with SCIM, you should
5 implement three classes, BackEnd, IMEngineFactory and IMEngineInstance:
6
7 * BackEnd
8 Manage all of the IMEngineFactory objects in order to let FrontEnd
9 use them.
10 See src/scim_backend.* to learn how to implement it.
11
12 * IMEngineFactory
13 An input method has one IMEngineFactory objects which manages all of
14 the IMEngineInstance objects that FrontEnd requests to create. If there
15 are any global data which should be shared among all IMEngineInstances, such as
16 phrase library etc.,they should be put into IMEngineFactory and only transfer
17 the pointer to IMEngineInstance.
18 See src/scim_imengine.* and modules/IMEngine/* to learn how to implement it.
19
20 * IMEngineInstance
21 The real keyevents -> strings conversion work is done by this class.
22 The keyevents fired by client program will be transported to IMEngineInstance
23 by calling IMEngineInstance::process_key_event (...) from FrontEnd.
24 IMEngineInstance objects should process these key events and make response to
25 FrontEnd by calling base class functions show_preedit_string,
26 update_preedit_string etc.
27 See modules/IMEngine/* to learn how to implement it.