The content of the invention
For above-mentioned problem, the present invention provides a kind of Tibetan language input method and processing unit, to overcome existing skill
Repeated code is more, input rate is low existing for the input of Tibetan language tone code in art, is not easy to the defects of user's use.
The invention provides a kind of Tibetan language input method, including:
The Tibetan language switching command that user inputs keyboard transmission by Tibetan language is received, determines that the Tibetan typeface file in system is
It is no effective;
If effectively, sending input prompt to the user, and receive user and keyboard is inputted successively by the Tibetan language
The Tibetan language key character of input, the Tibetan language key character are in each classification determined after classifying to Tibetan language radical according to font
Basic element of character, and the Tibetan language key character with it is described input keyboard in key mapping correspond;
According to suggesting character storage index, it is determined that corresponding with each Tibetan language key character respectively suggest character lists, and according to
It is secondary that each suggestion character lists are pushed to user, it is described it is each suggest in character lists respectively comprising each Tibetan language key character and
There is the non-key character of similar character form structure to each Tibetan language key character;
User is received successively from each Tibetan language character for suggesting selecting in character lists, according to the Tibetan typeface file
Each Tibetan language character of selection is overlapped, forms a whole word of Tibetan language.
The invention provides a kind of Tibetan language input processing device, including:
Receiving module, the Tibetan language switching command sent for receiving user by Tibetan language input keyboard, is determined in system
Whether Tibetan typeface file is effective;
Transceiver module, if for effectively, sending input prompt to the user, and receive user and pass through the Tibetan language
The Tibetan language key character that input keyboard is sequentially input, the Tibetan language key character are to be determined after classifying to Tibetan language radical according to font
Each classification in basic element of character, and the Tibetan language key character with it is described input keyboard in key mapping correspond;
Processing module, for being indexed according to suggestion character storage, it is determined that corresponding with each Tibetan language key character respectively suggest
Character lists, and each suggestion character lists are pushed to user successively, included respectively in each suggestion character lists described each
Tibetan language key character and the non-key character to each Tibetan language key character with similar character form structure;
Laminating module, for receiving user successively from each Tibetan language character for suggesting selecting in character lists, according to institute
State Tibetan typeface file to be overlapped each Tibetan language character of selection, form a whole word of Tibetan language.
Tibetan language input method and processing unit provided by the invention, by being checked to ensure that input to Tibetan typeface file
Tibetan language can correctly be shown, by the way that numerous Tibetan language radicals is classified according to font, a basic element of character is selected in every class
As with inputting the one-to-one key character of key mapping in keyboard so that the input of Tibetan language is inputted according to radical,
So that user need not recognize Tibetan language word to be entered, so as to avoid user in existing tone code input mode must recognize it is to be entered
Tibetan language word and the defects of larger repeated code.In addition, by setting comprising Tibetan language key character and having with the Tibetan language key character
The suggestion character lists of the non-key character of similar character form structure, greatly reduce the Tibetan language input key mapping in input keyboard, side
Just user's memory and use, be advantageous to improve the input efficiency of Tibetan language.
Embodiment
Fig. 1 is the flow chart of Tibetan language input method embodiment one of the present invention, as shown in figure 1, the Tibetan language that the present embodiment provides
Input method is particularly suitable for use in the terminal device with android system, such as smart mobile phone, tablet personal computer, this method
Executive agent can be a Tibetan language input processing device being integrated in terminal device, and this method specifically includes:
Step 101, the Tibetan language switching command that user inputs keyboard transmission by Tibetan language is received, determine the Tibetan language word in system
Whether body file is effective, if effectively, performing step 102, otherwise, performs step 105;
In order to ensure correctly entering and showing for Tibetan language, need to be configured with the system font file of android system
The Tibetan typeface file being adapted with input method, is additionally, since the reasons such as system upgrade, user misoperation, the Tibetan language in system
Font file can be modified, delete or the system with newly upgrading is incompatible, cause not being properly entered when Tibetan language inputs
With display Tibetan language, therefore, when each user starts Tibetan language input, it is required for whether effective to the Tibetan typeface file in system
Checked.Specifically, when processing unit is receiving the Tibetan language switching command that user is sent by Tibetan language input keyboard, need
Determine whether the Tibetan typeface file in system is effective, otherwise, it is necessary to will be local if effectively, carrying out the input process of Tibetan language
The backup Tibetan typeface file to prestore is updated into system font file, to allow to carry out normal Tibetan language input process.
Step 102, input prompt is sent to the user, and it is defeated successively by Tibetan language input keyboard to receive user
The Tibetan language key character entered, the Tibetan language key character are in each classification determined after classifying to Tibetan language radical according to font
Basic element of character, and the Tibetan language key character corresponds with the key mapping in the input keyboard;
After the Tibetan typeface file during processing unit determines system is effective, it can be by the current Tibetan to be entered of user
Input prompt is sent in the application program of text, such as the opening position of current Tibetan language to be entered is flashed with cursor in word document
To prompt user to carry out Tibetan language input.User is after input prompt is received, by inputting input through keyboard Tibetan language keyword
Symbol.Wherein, the input keyboard both can be the physical keyboard or virtual soft disk on subscriber terminal equipment, input
On keyboard there is with the one-to-one key mapping of Tibetan language key character.And the Tibetan language key character is by being carried out to Tibetan language word
Numerous Tibetan language radicals are obtained after character form structure analysis, are classified these Tibetan language radicals and then according to font similarity, each
A basic element of character is selected in classification to be shown in as the Tibetan language key character of the classification in the key mapping of input keyboard.Also, institute
State the word that Tibetan language key character both can be the symbols such as basic element of character or Tibetan language punctuate in the classification of Tibetan language word radical
Basic element of character in root classification.In the present embodiment, Tibetan language input keyboard key mapping in, for Tibetan language input situation, each
A Tibetan language key character is only corresponded in key mapping, without setting a key mapping for each Tibetan language radical, without in a key
Multiple Tibetan language radicals are set on position, the quantity of key mapping in keyboard had both been greatly reduced, and had been easy to the user terminal in small volume to set
Standby upper use, is also convenient for the memory and use of user, another user need not remember the various radical of quantity and its position.Separately
Outside, Tibetan language key character described in the present embodiment in keyboard is inputted put in order can by the use habit to user or
The usage frequency of Tibetan language key character is laid out.
Step 103, according to suggest character storage index, it is determined that corresponding with each Tibetan language key character respectively suggest character row
Table, and each suggestion character lists are pushed to user successively, closed respectively comprising each Tibetan language in each suggestion character lists
Key characters and the non-key character to each Tibetan language key character with similar character form structure;
In the present embodiment, will there is the non-key character of similar character form structure to the Tibetan language key character, i.e., it is above-mentioned every
Radical in individual classification is stored in the form of suggesting character lists, and is established the suggestion character lists and closed with corresponding Tibetan language
The concordance list of key characters corresponding relation.Specifically, after processing unit receives the Tibetan language key character of user's input, according to building
Discuss character storage index and determine suggestion character lists corresponding with the Tibetan language key character, and the suggestion character in the list is pushed away
User is given, so that user carries out the selection of Tibetan language character to be entered.
Step 104, user is received successively from each Tibetan language character for suggesting selecting in character lists, according to the Tibetan language
Font file is overlapped to each Tibetan language character of selection, forms a whole word of Tibetan language.
In the present embodiment, by the way that the process of step 102 and 103 is repeated, whole word of Tibetan language will be formed in user
After the completion of each Tibetan language character input, processing unit, will be each according to the Tibetan language structure word rule of defined in Tibetan typeface file
Tibetan language character is overlapped, and is ultimately formed a whole word of Tibetan language, is input in current application program.In practical application, Yong Huke
To determine the end of input Tibetan language character by inputting the key mappings such as space, carriage return, the whole word of Tibetan language is carried out so as to trigger processing unit
Overlap-add procedure process.
Step 105, the SDK SDK version numbers for obtaining system;
Step 106, the Tibetan typeface file of local backup is updated according to the SDK version numbers and arrives system font file
In.
In the present embodiment, after processing unit receives the Tibetan language inputting switching command of user's transmission, if true by checking
File is invalid for the Tibetan typeface for determining in system, just needs the Tibetan typeface file renewal of local backup arriving system font file
In.And because the continuous renewal of current android system develops, the android system of different editions is to system font file
Processing mode is different, it is therefore desirable to different processing is carried out for different android systems.Specifically, to Android systems
When application software is inserted in system, difference is distinguished by SDK SDK version numbers specifically in android system
Processing mode.Therefore, processing unit is after the SDK SDK version numbers of the system of acquisition, according to the SDK versions
Number difference, in different ways by Tibetan typeface file renewal into system font file.By Tibetan typeface file more
Newly into system font file after, carry out normal Tibetan language input process, that is, perform step 102-104.
In the present embodiment, by the inspection to Tibetan typeface file, with not after in inspection determination Tibetan typeface, file is invalid
Same SDK version numbers are foundation, by the renewal of Tibetan typeface file into system font file, to ensure that input Tibetan language can be correct
Input and display;By the way that numerous Tibetan language radicals is classified according to font, per select in class a basic element of character as with
The one-to-one key character of key mapping inputted in keyboard so that the input of Tibetan language is inputted according to radical so that use
Family need not recognize Tibetan language word to be entered, must recognize Tibetan language to be entered so as to avoid user in existing tone code input mode
The defects of word and larger repeated code;In addition, by setting comprising Tibetan language key character and there is similar character with the Tibetan language key character
The suggestion character lists of the non-key character of shape structure, the Tibetan language input key mapping in input keyboard is greatly reduced, facilitates user
Memory and use, be advantageous to improve the input efficiency of Tibetan language.
The flow chart of Fig. 2 Tibetan language input method embodiments two of the present invention, as Fig. 2 shows, this method includes:
Step 201, the Tibetan language switching command that user inputs keyboard transmission by Tibetan language is received, from the software merit rating text of system
Tibetan typeface configuration parameter is obtained in part;
Step 202, according to the Tibetan typeface configuration parameter, determine whether the Tibetan typeface file in system effective, if
Effectively, then step 203 is performed, otherwise, performs step 208;
In the present embodiment, in the Shared for being used to carry out software parameter configuration that android system provides
Tibetan typeface file configuration parameter is added in Preferences files, the parameter can reflect Tibetan typeface text in current system
The effective status of part.
Specifically, after processing unit receives the Tibetan language switching command of user's transmission, Shared is passed through
Preferences interfaces read the Tibetan typeface file configuration parameter in this document, and Tibetan typeface is determined according to the configuration parameter
Whether file is effective.If for example, the parameter is 1, illustrate that Tibetan typeface file is effective, if the parameter is 0, illustrate Tibetan typeface text
Part is invalid.
Step 203, input prompt is sent to the user, and it is defeated successively by Tibetan language input keyboard to receive user
The Tibetan language key character entered, the Tibetan language key character are in each classification determined after classifying to Tibetan language radical according to font
Basic element of character, and the Tibetan language key character corresponds with the key mapping in the input keyboard;
Step 204, according to suggest character storage index, it is determined that corresponding with each Tibetan language key character respectively suggest character row
Table, and the sequential packet that each Tibetan language character suggested in character lists successively decreases by frequency of use respectively is pushed to use successively
Family, it is described respectively to suggest including each Tibetan language key character in character lists respectively and there is phase with each Tibetan language key character
Like the non-key character of character form structure;
In the present embodiment, by the Tibetan language inputted with user key character it is corresponding suggest character lists be pushed to user supply
When user is selected, it is proposed that the push order of Tibetan language character can be carried out according to the order that frequency of use is successively decreased in character lists
Push, so as to be advantageous to improve input rate.
Step 205, user is received successively from each Tibetan language character for suggesting selecting in character lists, according to the Tibetan language
Font file is overlapped to each Tibetan language character of selection, forms a whole word of Tibetan language;
Step 206, the number used according to each suggestion character lists, the Tibetan language character of user's selection is calculated respectively
Frequency of use;
Step 207, according to the frequency of use, adjust the Tibetan language character of user's selection in corresponding suggestion character row
Putting in order in table.
Further, in the present embodiment, the processing unit can record each number for suggesting character lists of user's selection, with
And user selects some to suggest the number of Tibetan language character in some suggestion character lists, so as to which the suggestion Tibetan language word be calculated
The frequency of use of symbol, and the Tibetan language character putting in order in the suggestion character lists is adjusted according to the frequency of use, enter one
Step is advantageous to improve input efficiency.
Step 208, the SDK SDK version numbers for obtaining system, if the SDK version numbers are less than preset value,
Step 209 is then performed, if the SDK version numbers are more than or equal to the preset value, performs step 210;
Step 209, the Tibetan typeface file renamed as the title identical title with system font file, and
With the Tibetan typeface file replacement system font file renamed;
Step 210, the Tibetan typeface file is added in the system font file, and with the system font
The index corresponding with the Tibetan typeface file is added in storage concordance list corresponding to file.
, it is necessary to obtain system after processing unit according to Tibetan typeface configuration parameter determines Tibetan typeface file is invalid
SDK version numbers, and updated the Tibetan typeface file of local backup into system font file according to the version number.Specifically,
If SDK version numbers are less than preset value, such as 14, then the Tibetan typeface file is renamed as the name with system font file
Claim identical title, and the Tibetan typeface file replacement system font file to rename;If SDK version numbers are more than or equal to pre-
If value, such as 14, then the Tibetan typeface file is added in the system font file, and literary with the system font
The index corresponding with the Tibetan typeface file is added in storage concordance list corresponding to part.Why different SDK versions are directed to
Number it is handled differently, is that system font file allows the operation of user because in the android system of different SDK versions
Authority is different, and user can not voluntarily change the operating right, can only carry out adding for Tibetan typeface file according to the regulation of system
Add., can be to perform the process that Tibetan language in step 203-207 inputs after execution of step 209 or 210.
In the present embodiment, by the inspection to Tibetan typeface file, with not after in inspection determination Tibetan typeface, file is invalid
Same SDK version numbers are foundation, by the renewal of Tibetan typeface file into system font file, to ensure that input Tibetan language can be correct
Input and display;By the way that numerous Tibetan language radicals is classified according to font, per select in class a basic element of character as with
The one-to-one key character of key mapping inputted in keyboard so that the input of Tibetan language is inputted according to radical so that use
Family need not recognize Tibetan language word to be entered, must recognize Tibetan language to be entered so as to avoid user in existing tone code input mode
The defects of word and larger repeated code;By setting comprising Tibetan language key character and there is similar character form structure to the Tibetan language key character
Non-key character suggestion character lists, greatly reduce input keyboard in Tibetan language input key mapping, facilitate user memory and
Use, be advantageous to improve the input efficiency of Tibetan language;By the adjustment to Tibetan language character push order in Tibetan language suggestion lists, favorably
In the transfer efficiency for further improving Tibetan language.
Fig. 3 is the schematic diagram of Tibetan language input processing device embodiment one of the present invention, as shown in figure 3, the processing unit includes:
Receiving module 11, the Tibetan language switching command sent for receiving user by Tibetan language input keyboard, is determined in system
Tibetan typeface file it is whether effective;
Transceiver module 12, if for effectively, sending input prompt to the user, and receive user and pass through the Tibetan
The Tibetan language key character that text input keyboard is sequentially input, the Tibetan language key character are true after classifying to Tibetan language radical according to font
Basic element of character in fixed each classification, and the Tibetan language key character corresponds with the key mapping in the input keyboard;
Processing module 13, for being indexed according to suggestion character storage, it is determined that corresponding with each Tibetan language key character respectively build
Character lists are discussed, and each suggestion character lists are pushed to user successively, are included respectively in each suggestion character lists described
Each Tibetan language key character and the non-key character to each Tibetan language key character with similar character form structure;
Laminating module 14, the Tibetan language character selected for receiving user successively from each suggestion character lists, according to
The Tibetan typeface file is overlapped to each Tibetan language character of selection, forms a whole word of Tibetan language.
Further, described device also includes:
Acquisition module 15, for if it is determined that the Tibetan typeface in system file is invalid, then obtain system software development work
Ju Bao SDK version numbers;
Update module 16, for the Tibetan typeface file renewal of local backup to be arrived into system word according to the SDK version numbers
In body file.
The processing unit of the present embodiment can be used for the technical scheme for performing embodiment of the method shown in Fig. 1, its realization principle
Similar with technique effect, here is omitted.
Fig. 4 is the schematic diagram of Tibetan language input processing device embodiment two of the present invention, as shown in figure 4, the processing unit is in Fig. 3
On the basis of illustrated embodiment, the receiving module 11 includes:
Acquiring unit 111, for obtaining Tibetan typeface configuration parameter from the software configuration file of system;
Determining unit 112, for whether according to the Tibetan typeface configuration parameter, determining the Tibetan typeface file in system
Effectively.
Further, the update module 16 is specifically used for:
If the SDK version numbers are less than preset value, the Tibetan typeface file is renamed to be literary with system font
The title identical title of part, and the Tibetan typeface file replacement system font file to rename;
If the SDK version numbers are more than or equal to the preset value, the Tibetan typeface file is added to the system
In font file, and addition is relative with the Tibetan typeface file in storage concordance list corresponding with the system font file
The index answered.
Further, the processing module 13 is specifically used for:
The sequential packet that each Tibetan language character suggested in character lists successively decreases by frequency of use respectively is pushed to use
Family.
Further, the processing unit also includes:
Computing module 21, for according to each number suggested character lists and used, calculating user's selection respectively
The frequency of use of Tibetan language character;
Adjusting module 22, for according to the frequency of use, the Tibetan language character for adjusting user's selection to be built corresponding
Putting in order in view character lists.
The processing unit of the present embodiment can be used for the technical scheme for performing embodiment of the method shown in Fig. 2, its realization principle
Similar with technique effect, here is omitted.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.