'He' is Chinese word 和's PinYin(Sound), it means 'and' or 'with'.
'HeInput'('和码' in Chinese) is a name of famous Chinese input mathod.
OpenHeInput-iOS is open source HeInput project for iOS (iPhone/iPad) using Objective C.
This application is based on iOS 8.0+ App Extension custom keyboard.
Now it is full functional Chinese Input application, can be deployed to iPhone/iPad.
This application is also available in the AppStore:
https://itunes.apple.com/ca/app/id417876708?mt=8
Input features include:
- 21,000+ Chinese words;
- 184,000+ Chinese phrases;
- Chinese Simplified and Traditional option;
- Search code with PinYin;
- Convenient switch between HeInput/PinYin/English/Number input.
Setting steps:
- System requirement: iOS 8.0+;
- Settings > General > Keyboard > Keyboards > Add a New Keyboard;
- Select "OpenHeInput".
输入法设置:
- 系统要求: iOS 8.0+;
- 设置 > 通用 > 键盘 > 键盘 > 添加新键盘;
- 选择 "OpenHeInput"。
Created with XCode 7.2 and iOS 9.2.
Workspace Name: HeIOS-Workspace, include 3 modules:
- Static Library: HeLibrary;
- Static Library: HeInputLibrary;
- iOS Application: OpenHeInput.
The main parts of code are:
- Hekeyboard_ViewController which is inherited from UIInputViewController;
- Input_DataServer which provide input data;
- Input_DataServer includes EngineCollection;
- EngineCollection includes HeMaEngine, PinYinEngine, HeEnglishEngine, etc;
- Each Engine access SQLite database;
Include a SQLite database: hema_db.sqlite, it includes tables:
create table HanZi
(
--_id INTEGER PRIMARY KEY,
HanZi text,
M1 numeric,
M2 numeric,
M3 numeric,
M4 numeric,
GBOrder numeric,
B5Order numeric
);
create table CiZu
(
--_id INTEGER PRIMARY KEY,
CiZu text,
M1 numeric,
M2 numeric,
M3 numeric,
M4 numeric,
HeMaOrder numeric,
JianFan numeric
);
create table English_Word
(
--_id INTEGER PRIMARY KEY,
word text,
HeMaOrder numeric
);
create table PinYin_Number
(
--_id INTEGER PRIMARY KEY,
PinYin text,
number numeric
);
create table PinYin_HanZi
(
--_id INTEGER PRIMARY KEY,
PinYin text,
HanZiString text
);
create table HanZi_PinYin
(
--_id INTEGER PRIMARY KEY,
HanZi text,
PinYin text,
ShengDiao numeric
);
- Convienent function for user adding words and phrases;
- Function for adding users favorite phrases collection;
- Keyboard skin;
- Convienent way to input emoji;
http://www.hezi.net/He/UserGuide_Concise/en-us/Set/HeChinese_Guide_Concise.htm