Design and Implementation of Pinyin Input Method Client Base on Text Services Framework
- Author
- WangShiYuan
- Advisor
- QinBing , SongWenBo
- School
- Harbin Institute of Technology
- Major
- Software Engineering
- Classification
- TP391.14 Text entry technology
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 1
- Citations
- 0
Abstract
In today’s era of information technology, the computer has been in people’sdaily life plays an important role. Chinese content on the Internet develop slowlyand gradually play a leading role. The importance of Chinese input has becomeincreasingly prominent. Input method is the basis for the software. Input methodmakes people’s daily work and life more convenient. Especially Pinyin input methodis most familiar one for ordinary users. Pinyin input method for users has a greatersignificance. A simple, practical and convenient input method is very important.Pinyin input method is based on Text Services Framework. Text ServicesFramework provides system application interface. Pinyin input method realize TextServices Framework interfaces, response system messages, and Client process thesemessages in turn to complete the entire input process. I based on high cohesion, lowcoupling rules to module division. I put the platform-independent part of thedivision as a public module. It has nothing to do with the input method framework.And is directly supplied to the input frame. That reduces the development effort.I analyze user habits and summarize the input requirements. I understand theinput method development in the world and further clarify the requirements. In thispaper, the text service module and the common module. Text Service Moduleadaptes Text Services Framework, implements framework interfaces, responds tosystem messages and retrieves data from the system. Data can be provided to thepublic module and display module for the UI service. Common module contains theengine management module, the module configuration tool and the skin threesub-modules. Engine management module manages multiple interfaces inconsistentengine, unifies engine interface, puts different engines provide results for the secondcandidate sort, maintains a local cache of candidate words and finishes flip function.Tool provides a graphical user interface to configure the input method. Skin moduleparse skin data files, to get skin data and draw out the skin. Basic tool module isbased modules and a toolbox for other modules. Each of these classes can solve aspecific function, Public module will be used frequently in the project, reducing thefunctional similarity of the code, so that the whole project is more simple and clear.Finally, I conduct functional testing and compatibility testing to ensure thesystem to meet expectations. This article will provide new ideas for otherdevelopers.
Table of contents
Summary 4-5
Abstract 5-9
Chapter 1 Introduction 9-13
1.1 sources and background issues 9
1.2 the purpose and significance of the subject developed 9
1.3 with the subject -related research at home and abroad 9-11
1.4 the main contents 11-13
Chapter 2 needs analysis and overall design 13-27
2.1 input method work area 13-14
2.2 input operation needs 14-18
2.2.1 symbol mapping 14-16
2.2.2 candidate submitted 16
2.2.3 candidate flip 16-17
2.2.4 display update 17
2.2.5 skin to draw 17-18
2.3 settings tool needs 18
2.4 input environment 18
2.5 non- functional requirements 18-19
2.6 text Services Framework technology 19-23
2.6.1 text Services Framework works 19-21
2.6.2 text Services Framework main concepts 21-22
2.6.3 text Services Framework primary interface 22-23
2.7 overall system design 23-26
2.7.1 input Method solutions 23-24
overall framework 2.7.2 Pinyin input Method 24-25
2.7 .3 Pinyin input method design 25-26
2.8 Summary 26-27
Chapter 3 text service module design and implementation 27-41
3.1 the text in the service module 27
3.2 input service module design and implementation 27-32
3.3 key mapping module design and implementation 32-39
3.3.1 key pretreatment 32-34
3.3.2 input state transitions 34
3.3.3 key conversion engine event 34-39
3.3.4 hotkeys Manager 39
3.4 graphics module to show the design and implementation of 39-40
3.5 Summary 40-41 <br / > Chapter 4, module design and implementation of public 41-64
4.1 engine management module 41-47
4.1.1 engine management level division 41-45
4.1.2 processing logic 45-47
4.2 skin module 47-55
4.2.1 skin file Info 47-48
4.2.2 skin file parsing 48-52
4.2.3 skin to draw 52-53
4.2.4 skin module processing logic 53-55 <br / > 4.3 setting tool 55
4.4 basic tools module 55-61
4.4.1 registry management 56
4.4.2 file mapping 56-57
4.4.3 thesaurus management 57-58
4.4.4 shared Data 58
4.4.5 crashes management 58 -59
4.4.6 configuration management 59-61
4.5 system application results 61-63
4.5.1 skin drawing interface 61 <br / > 4.5.2 settings tool interface 61-63
4.6 Summary 63-64
Chapter 5 System test 64-78
5.1 test environment 64
5.2 functionality test 64-76
5.2.1 basic Input test 64-73
5.2.2 test nbsp setting tool ; 73-75
5.2.3 input environmental testing 75-76
5.3 compatibility testing 76-77
5.4 Summary 77 -78
conclusion 78-79
References 79-83
Thanks 83-84
CVs 84
Related dissertations
- Approximate Chinese String Matching Techniques Based on Pinyin Input Method
- Personalized User Dictionary Updating Method Based on Network Information
- Design and Development of Pinyin Input Method of Feature Phone
- The Study on the Primary Technology for Ship Intelligent Engines
- A Pinyin Input Method Editor with English-Chinese Aided Translation Function
- The Research of Network Typos from the Perspective of Pinyin Input Method
- Sound word conversion evaluation system research and implementation
- Design and Implementation of User Input Module for Embedded Graphical User Interface