• Home
Name
Date
Size
#Lines
LOC

..--

etc/12-May-2024-199153

figures/12-May-2024-

frameworks/12-May-2024-4,1083,257

interfaces/kits/js/12-May-2024-2,5301,794

profile/12-May-2024-4428

services/12-May-2024-7,0605,057

unitest/12-May-2024-466326

BUILD.gnD12-May-20241.3 KiB3430

LICENSED12-May-20249.9 KiB177150

README.mdD12-May-20242.2 KiB6736

README_zh.mdD12-May-20242 KiB6536

bundle.jsonD12-May-20244.4 KiB138138

inputmethod.gniD12-May-2024819 2016

README.md

1 # miscservices_inputmethod
2 
3 #### Introduction
4 
5 Input Method Framework, is used to connect the application and input method. the application can input text through the input method
6 
7 **图 1**  子系统架构图<a name="fig143011012341"></a>
8 ![](figures/subsystem_architecture.png "子系统架构图")
9 
10 #### Warehouse path
11 
12 /base/miscservices/inputmethod
13 
14 #### Introduction to framework code
15 
16 The input method framework currently has four modules, as follows:
17 
18 1. Application client
19 
20 Path: /base/miscservices/inputmethod/frameworks/inputmethod_controller
21 
22 Function: realize the service delivery of application and input method framework, including the binding between application and input method service, application display and hiding request for input method, etc
23 
24 2. Input method client
25 
26 Path: /base/miscservices/inputmethod/frameworks/inputmethod_ability
27 
28 Function: the intermediate bridge between input method framework service and input method delivery, including monitoring the current status of input method, etc
29 
30 3. Input method service
31 
32 Path: /base/miscservices/inputmethod/services
33 
34 Function: as the core of the input method framework, the main processing logic of the input method is completed here
35 
36 4. Input method JS interface
37 
38 Path: /base/miscservices/inputmethod/interfaces/kits/JS
39 
40 Function: the temporarily exposed JS interface is mainly reserved for calling input methods
41 
42 #### Main functions supported by the framework
43 
44 1. Click in the edit attribute control to invoke the default input method application through the input method framework
45 
46 2. Typing can be carried out through the input method application, and characters can be input to the application client on the screen
47 
48 #### Debugging method
49 
50 1.   Compile command
51 
52 ./build.sh --product-name (Fill in the specific product name, such as:Hi3516DV300) --build-target inputmethod_native
53 
54 2.  push so file
55 
56 in $root\out\ohos-arm-release\miscservices\inputmethod_native, push libinputmethod_client.z.so libinputmethod_ability.z.so
57 libinputmethod_service.z.so to system/lib,and push libinputmethodability.z.so to system/lib/module, and make sure the four so files is readable at least.
58 
59 3.  reboot
60 
61 ####Participation contribution
62 
63 1. Fork warehouse
64 2. Submission code
65 3. Create a new pull request
66 4. Commit is complete
67 

README_zh.md

1 # miscservices_inputmethod
2 
3 #### 介绍
4 输入法框架,主要作用是拉通应用和输入法,保证应用可以通过输入法进行文本输入
5 
6 **图 1**  子系统架构图<a name="fig143011012341"></a>
7 ![](figures/subsystem_architecture_zh.png "子系统架构图")
8 
9 #### 仓路径
10 /base/miscservices/inputmethod
11 
12 #### 框架代码介绍
13 输入法框架目前有四大模块,具体如下:
14 
15 1.  应用客户端
16 
17 路径:/base/miscservices/inputmethod/frameworks/inputmethod_controller
18 
19 作用:实现应用和输入法框架服务交付,包括应用与输入法服务的绑定、应用对输入法的显示和隐藏请求等等
20 
21 2.  输入法客户端
22 
23 路径:/base/miscservices/inputmethod/frameworks/inputmethod_ability
24 
25 作用:实现输入法框架服务与输入法交付的中间桥梁,包括监听输入法当前的状态等等
26 
27 3.  输入法服务
28 
29 路径:/base/miscservices/inputmethod/services
30 
31 作用:作为输入法框架的核心,输入法的主要处理逻辑都是在这里完成
32 
33 4.  输入法Js接口
34 
35 路径:/base/miscservices/inputmethod/interfaces/kits/js
36 
37 作用:暂时对外暴露的js接口,主要是留给输入法进行调用使用的
38 
39 #### 框架主要支持功能
40 
41 1.在编辑属性的控件中进行点击操作,即可通过输入法框架调起默认输入法应用
42 
43 2.通过输入法应用可以进行打字,并上屏输入字符到应用客户端
44 
45 #### 本框架编译调试方法
46 
47 1.   编译命令
48 
49 ./build.sh --product-name (填写具体的产品名,如:Hi3516DV300) --build-target inputmethod_native
50 
51 2.  推送so文件
52 
53 将工程目录下out\ohos-arm-release\miscservices\inputmethod_native下的libinputmethod_client.z.so libinputmethod_ability.z.so
54 libinputmethod_service.z.so三大so推送到system/lib,将libinputmethodability.z.so推送到system/lib/module下,并确保四个so至少为可读状态。
55 
56 3.  重启设备
57 
58 #### 参与贡献
59 
60 1.  Fork 本仓库
61 2.  提交代码
62 3.  新建 Pull Request
63 4.  commit完成即可
64 
65