Summary of the invention
For above-mentioned defect, it is an object of the invention to provide a kind of method of self-defined soft keyboard and communication terminal, it can carry out button and the key value thereof of self-defined soft keyboard flexibly according to user habit and practical application, is not only user-friendly to, and makes information input more diversified.
In order to realize above-mentioned purpose, the present invention provides a kind of method of self-defined soft keyboard, comprises step as follows:
Trigger the main vessel of display soft keyboard;
Described main vessel is divided into some pieces of containers, and described piece of container is divided into some button lattice;
Add in the button lattice that some symbols or picture are added to each described piece of container by instruction according to user;
Set up and preserve the mapping relation of described button lattice and described symbol or picture.
Method according to self-defined soft keyboard of the present invention, the described step that main vessel is divided into some pieces of containers comprises:
Some partitioning placement forms are provided;
According to the partitioning placement form that user selects, described main vessel is divided into some pieces of containers.
Method according to self-defined soft keyboard of the present invention, described add, according to user, the step that some symbols or picture add in the button lattice of each described piece of container by instruction and comprise:
Described piece of container is divided into essential symbol collection block container and self-defined symbol collection block container;
Based on context automatically some essential characters are added in described essential symbol collection block container;
Adding instruction according to described user, the self-defined symbol select user from symbol storehouse or picture add in described self-defined symbol collection block container.
Method according to self-defined soft keyboard of the present invention, described foundation the step that preserves the mapping relation of described button lattice and described symbol or picture comprise:
Set up and preserve the mapping relation between the coordinate of described button lattice and the key value of described symbol or picture;
Described foundation also comprises after preserving the step of the mapping relation of button lattice and described symbol or picture:
Mapping relation between coordinate according to described button lattice and the key value of described symbol or picture, generates preview soft keyboard;
After certain button lattice of described preview soft keyboard receive user's click commands, obtain corresponding key value according to the coordinate of described button lattice, and symbol corresponding for described key value or picture are shown in user interface.
Method according to self-defined soft keyboard of the present invention, also comprises after the described step that main vessel is divided into some pieces of containers:
Adjusting instruction according to user, shape and/or position to described piece of container adjust.
The present invention also provides a kind of communication terminal, includes:
Display module, for triggering the main vessel of display soft keyboard;
Piecemeal module, for described main vessel is divided into some pieces of containers, and is divided into some button lattice by described piece of container;
Add module, for adding in the described button lattice that some symbols or picture are added to each described piece of container by instruction according to user;
Mapping block, for setting up and preserve the mapping relation of described button lattice and described symbol or picture.
According to communication terminal of the present invention, described piecemeal module also comprises:
Form provides submodule block, for providing some partitioning placement forms;
Piecemeal implementation sub-module, for the partitioning placement form selected according to user, is divided into some pieces of containers by described main vessel.
According to communication terminal of the present invention, described interpolation module also comprises:
Block Classfication of containers submodule block, for being divided into essential symbol collection block container and self-defined symbol collection block container by described piece of container;
Based on context essential interpolation submodule block, for automatically adding in described essential symbol collection block container by some essential characters;
Self-defined interpolation submodule block, for adding instruction according to described user, the self-defined symbol select user from symbol storehouse or picture add in described self-defined symbol collection block container.
According to communication terminal of the present invention, described mapping block is for setting up and preserves the mapping relation between the coordinate of described button lattice and the key value of described symbol or picture;
Described communication terminal also comprises:
Preview keyboard generation module, for the mapping relation between the coordinate according to described button lattice and the key value of described symbol or picture, generates preview soft keyboard;
Preview keyboard operation module, for, after certain button lattice of described preview soft keyboard receive user's click commands, obtaining corresponding key value according to the coordinate of described button lattice, and symbol corresponding for described key value or picture be shown in user interface.
According to communication terminal of the present invention, described piecemeal module comprises further:
Adjustment submodule block, for adjusting instruction according to user, shape and/or position to described piece of container adjust.
The present invention is by carrying out partitioning placement to soft keyboard, the main vessel of editor's soft keyboard is divided into multiple pieces of containers, each block container comprises some button lattice, different masses container can add different classes of character or picture, such user can carry out the button of self-defined soft keyboard flexibly according to use habit or application demand, comprises key value corresponding to definition push key, content and position etc., is not only user-friendly to, and button content is abundanter, self-defining operation process is simple. Preferably, block container is divided into essential symbol collection block container and self-defined symbol collection block container by the present invention, based on context some essential characters are added in essential symbol collection block container by system automatically, arrange the necessary button of soft keyboard accurately and efficiently with assisted user; User also can select self-defined symbol or picture to add in self-defined symbol collection block container from symbol storehouse, and the self-defined symbol in this symbol storehouse or picture can be selected by user oneself completely and arrange, thus the input making information is more diversified. It is preferably to, user can shape and/or position to block container adjust at any time, thus realizes the dynamic editor to soft keyboard, to facilitate user in use to be redefined by soft keyboard.
Embodiment
In order to make the object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated. It is to be understood that specific embodiment described herein is only in order to explain the present invention, it is not intended to limit the present invention.
Fig. 2 shows the structure of communication terminal of the present invention, described communication terminal 100 can be mobile phone, PDA (PersonalDigitalAssistant, personal digital assistant), panel computer etc., and described communication terminal 100 at least comprises display module 10, piecemeal module 20, adds module 30 and mapping block 40, wherein:
Display module 10, for triggering the editing interface of soft keyboard, the main vessel of display soft keyboard, described main vessel is the carrier of soft keyboard, by gesture, click, long by etc. mode trigger editing interface, and then show the main vessel that can edit, it may also be useful to family can enter into editting function state.
Piecemeal module 20, for main vessel is divided into some pieces of containers, and is divided into some button lattice by block container, and such as block container is divided into M*N button lattice, and each button lattice can place a button, need to calculate and record the coordinate of each button lattice. Piecemeal module 20 is divided into multiple pieces of containers by nested for main vessel, and each block container can add dissimilar symbol or picture, is convenient to user and sorts out editor. Being pointed out that, button lattice also can divide by during generation main vessel automatically, but final embodiment comprises some button lattice to block container.
Add module 30, for adding in the button lattice that some symbols or picture are added to each piece of container by instruction according to user. Described symbol or picture can be the intrinsic symbols of system, it is also possible to be the self-defined symbol of user or picture.
Mapping block 40, for setting up and preserve button lattice and the mapping relation of corresponding symbol or picture.
Described button lattice and symbol or picture form button jointly, and button can comprise intrinsic button or user-defined press key. Described intrinsic button is divided into character keys, digital keys, special symbol button, function to cut several groups of button set such as button according to use habit or feature, the key value that these several groups of buttons are corresponding be system intrinsic, set that can be exhaustive. Described user-defined press key can be preset expression picture, user oneself add the picture with particular meaning, from the picture etc. of the other side's communication terminal.
Fig. 3 is the structural representation of the preferred communication terminal of the present invention, and described communication terminal 100 at least comprises display module 10, piecemeal module 20, adds module 30 and mapping block 40, wherein:
Described display module 10, for triggering the main vessel of display soft keyboard.
Described piecemeal module 20 also comprises:
Form provides submodule block 21, for providing some partitioning placement forms to select for user. Preferably, described partitioning placement form comprises edge layout format (BorderLayout), the linear layout format of vertical/horizontal (LinearLayout), relative placement's form (RelativeLayout), frame formula layout format (FrameLayout), table-layout form (TableLayout) etc., no longer exhaustive herein, but under the prerequisite not deviating from partitioning placement form proposed by the invention, any layout is all applicable to the present invention.
Piecemeal implementation sub-module 22, for the partitioning placement form selected according to user, main vessel is divided into some pieces of containers, the present invention preferably adopts edge layout format, it is divided into upper, middle and lower, left and right 5 block containers, as Fig. 4 A and Fig. 4 B lists two kinds of possible edge layout format by the main vessel of soft keyboard.
It is preferably to, described piecemeal module 20 comprises adjustment submodule block 23 further, and this adjustment submodule block 23 is for adjusting instruction according to user, and shape and/or position to block container adjust, to realize the dynamic editor to soft keyboard. As shown in Figure 5A, by long by etc. mode block container triggered into the pattern that can pull, under this pattern, representing with the block of lines frame segmentation occurs in screen, each block container shows corresponding numbering and indicates, and such as block container 1��block container 5, block container 4 can be pulled the shape and/or the position that change block container by the present invention, such as pin block container 4, when being dragged to the upper right corner, the block layout's change that will present as shown in figure Fig. 5 B, but concrete inflation method is not limit. Like this, if when user in use wants soft keyboard again layout, it is possible to trigger editing interface at any time, adjust the shape of original piece of container and/or position to realize dynamic editor, thoroughly edit the loaded down with trivial details of a soft keyboard to avoid.
Described interpolation module 30 also comprises:
Block Classfication of containers submodule block 31, for being divided into essential symbol collection block container and self-defined symbol collection block container by block container. The classification of block container artificially can be selected by user, it is also possible to automatically selectes by system.
Essential interpolation submodule block 32, for based on context automatically some essential characters being added in essential symbol collection block container, the necessary button of soft keyboard is set accurately and efficiently with assisted user, essential symbol collection container is for depositing according to some symbols that current context must occur, such as letter (English | Korean | punctuate | numeral etc. is not limited to this), numeral and operating key (such as backspace, capital and small letter conversion etc.) etc., symbol collection in this essential symbol collection container is determined by system, and can based on context automatic switch contents, if context demands is input telephone number, it it is symbol of numeral collection herein, when context demands inputs name, letter character collection then must occur. this necessity button is batch, automatically adds, and usually with nature keyboard pattern layout, to reduce user operation requirement, the position of necessary button can be adjusted by certain user according to use habit.
Self-defined interpolation submodule block 33, for adding instruction according to user, the self-defined symbol select user from symbol storehouse or picture add in self-defined symbol collection block container, and this addition manner is simple, and can also add in batches. Self-defined symbol collection block container can be used for adding emoticon and other pictures etc. When user is used as the symbol in symbol storehouse or picture after button adds self-defined symbol collection block container to, system need to automatically calculate the size of main vessel and this self-defined symbol collection block container according to the size of symbol or picture, again according to the position of the numerical value autoplacement buttons such as the defined press button gap of system, back gauge, it is also possible to carry out the size of auto zoom symbol or picture according to the size of self-defined symbol collection block container.
Being pointed out that, the shape size of the block container of the present invention can be fixed and can not also fix. When block container is when not fixed size, as highly do not fixed, it is desired to the size of block container can according to the content-adaptive change filled; When block container is when solid shape size, with increasing of button lattice, in it, button lattice diminish automatically; In addition, after the mode such as pulling block container carries out size and position adjustment, the size of its internal key lattice also will adjust change automatically.
Described mapping block 40, the mapping relation for setting up and between the key value of the coordinate preserving button lattice and corresponding symbol or picture.
It is preferably to, communication terminal 100 also includes:
Preview keyboard generation module 50, for the mapping relation between the coordinate according to button lattice and the key value of symbol or picture, generates preview soft keyboard. When user preserves editor, system generates preview soft keyboard according to the mapping relation between the coordinate of button lattice and the key value of symbol or picture and checks and debugging for user.
Preview keyboard operation module 60, for, after certain button lattice of preview soft keyboard receive user's click commands, obtaining corresponding key value according to the coordinate of button lattice, and symbol corresponding for key value or picture be shown in user interface. When user clicks certain button on soft keyboard, sending corresponding key value information, system is according in the user interface symbol of corresponding keys value or picture shown in key value to symbol storehouse.
Fig. 6 is the method flow diagram of the self-defined soft keyboard of the present invention, and it realizes by communication terminal 100 as shown in Figure 2 or Figure 3, and it is as follows that described method comprises step:
Step S601, triggers the main vessel of display soft keyboard, and this step can be realized by display module 10.
Step S602, is divided into some pieces of containers by main vessel, and block container is divided into some button lattice, and this step can be realized by piecemeal module 20.
Step S603, adds in the button lattice that some symbols or picture are added to each piece of container by instruction according to user, and this step can be realized by interpolation module 30.
Step S604, sets up and preserves the mapping relation of button lattice and symbol or picture, can complete the definition of soft keyboard, and this step can be realized by mapping block 40.
Fig. 7 is the method flow diagram of the preferred self-defined soft keyboard of the present invention, and it realizes by communication terminal 100 as shown in Figure 3, and it is as follows that described method comprises step:
Step S701, triggers editing interface, and the main vessel of display soft keyboard is to realize the editting function to soft keyboard, this step can be realized by display module 10, it should be appreciated that this step can at any time carry out, user, once triggering editing interface, just can perform the editing of soft keyboard.
Step S702, it is provided that some partitioning placement forms are selected for user, and this step can provide submodule block 21 to realize by form.
Step S703, according to the partitioning placement form that user selects, is divided into some pieces of containers by main vessel, and this step can be realized by piecemeal implementation sub-module 22, here preferred edge layout format.
Step S704, adjusts instruction according to user, and shape and/or position to block container adjust, and this step can be realized by adjustment submodule block 23.
Step S705, is divided into essential symbol collection block container and self-defined symbol collection block container by block container, and this step can be realized by block Classfication of containers submodule block 31, automatically can classify by system, it is possible to by user's manual classification.
Step S706, based on context adds in essential symbol collection block container by some essential characters automatically, and this step can be realized by essential interpolation submodule block 32.
Step S707, adds instruction according to user, and the self-defined symbol select user from symbol storehouse or picture add in self-defined symbol collection block container, and this step can be realized by self-defined interpolation submodule block 33. User oneself can safeguard a set of symbol storehouse, makes the input of information more diversified. Fig. 8 shows the preferred flow charts importing self-defined symbol or picture in symbol storehouse of the present invention, and comprising step has:
Step S801, generates or is obtained from definition symbol or picture. Symbol or picture in symbol storehouse utilize communication terminal 100 to generate by user, or add from exterior storage device, or by being obtained by the symbol in reading information or picture by extraction from mode scenes such as (in) short breath reading, chat sessions of study.
Step S802, imports symbol storehouse by described self-defined symbol or picture;
Step S803, for self-defined symbol or picture generate corresponding key value, self-defined symbol or picture not only change outside feature (symbol or picture), and its intension (key value set) can also be arranged arbitrarily, and usual key value is generated automatically by system. Such as, when often adding a pictures to symbol storehouse, the title of picture can be named by MD5 (Message-Digestalgorithm5, the message digest algorithm) information of described picture, such as pictureMD5 code be: 0bb91e38f2f123e83ae780d63ba00418, therefore definable is to should the key value of picture button be KEY_0bb91e38f2f123e83ae780d63ba00418, and now, key value and picture are formed and map relation one to one.
Step S708, sets up and preserves the relation that maps one to one between the coordinate of button lattice and the key value of symbol or picture, and this step can be realized by mapping block 40. Described key value can form mapping relation by code in ASCII (AmericanStandardCodeforinformationInterchange, the ASCII) code of this symbol or picture or machine etc. Key value such as A character may be defined as KEY_ASC_41, and wherein 41 is the ASCII code of A.
Step S709, according to the mapping relation between the coordinate of button lattice and the key value of symbol or picture, generates preview soft keyboard, so that user checks further and debugs, as shown in Figure 9, this step can be realized by preview keyboard generation module 50. The end interface that user can directly operate is for preview soft keyboard, and the operation of common soft keyboard is as good as.
Step S710, after certain button lattice of preview soft keyboard receive user's click commands, obtains corresponding key value according to the coordinate of button lattice, and symbol corresponding for key value or picture is shown in user interface, and this step can operate module 60 by preview keyboard and realize.
Step S711, closes preview soft keyboard, usually performs the action closing preview soft keyboard by user.
In sum, the present invention is by carrying out partitioning placement to soft keyboard, the main vessel of editor's soft keyboard is divided into multiple pieces of containers, each block container comprises some button lattice, and different masses container can add different classes of character or picture, and such user can carry out the button of self-defined soft keyboard flexibly according to use habit or application demand, comprise key value corresponding to definition push key, content and position etc., not only being user-friendly to, and button content is abundanter, self-defining operation process is simple. Preferably, block container is divided into essential symbol collection block container and self-defined symbol collection block container by the present invention, based on context some essential characters are added in essential symbol collection block container by system automatically, arrange the necessary button of soft keyboard accurately and efficiently with assisted user; User also can select self-defined symbol or picture to add in self-defined symbol collection block container from symbol storehouse, and the self-defined symbol in this symbol storehouse or picture can be selected by user oneself completely and arrange, thus the input making information is more diversified. It is preferably to, user can shape and/or position to block container adjust at any time, thus realizes the dynamic editor to soft keyboard, to facilitate user in use to be redefined by soft keyboard.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when can make various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.