Summary of the invention
When focus window changed, the content of importing in order to ensure the user still can send in the desired editor of user like clockwork, and the embodiment of the invention provides a kind of method and apparatus of graphical handwriting input, and described technical scheme is as follows:
On the one hand, provide a kind of method of graphical handwriting input, when the user carried out handwriting input, described method comprised:
Input interface receives the character of user's input, discerns the content of text of the random length of user's input according to the motion track of character on soft keyboard of described input:
With the mutually integrated buffer of described input interface the content of text of described identification is carried out buffer memory and show;
Described buffer receives the transmission signal that the user triggers behind the intended target window, the content of text of described demonstration is sent to the target window of described user's appointment;
Described buffer is preserved the content of text of described transmission, and the content of text of described preservation is used for the follow-up of user and searches and send once more.
Wherein, described content of text with described identification carries out after buffer memory and the demonstration, and when the user need make amendment to the content of text that shows, described method also comprised:
Described buffer receives the modification signal that described user triggers;
According to the described modification signal that receives, the content of text to be revised of described demonstration is made amendment.
Wherein, the described step that the content of text to be revised of described demonstration is made amendment specifically comprises:
Obtain the position of the current cursor of user's input;
Inquire about the reference position and the end position of the content of text of described demonstration;
According to described reference position and end position, obtain the full text content of described demonstration;
Position and described full text content according to described current cursor obtain content of text to be revised;
Use the content of text of described user expectation to replace content of text described to be revised.
Wherein, content of text described to be revised is revised as the step of the content of text of user expectation, specifically comprises:
According to content of text described to be revised, obtain to wait to revise the related candidate's content of text of content of text with described;
From candidate's content of text of described association, obtain the content of text of user expectation;
Content of text described to be revised is revised as the content of text of user expectation.
Wherein, the described step that the content of text of described transmission is preserved specifically comprises:
The content of text of described demonstration is preserved with the form of file;
And the filename of described file is preserved according to time sequencing.
Further, described method also comprises:
Described buffer receives the extraction signal that described user triggers;
According to the filename of described extraction signal and described file, extract the content of text of the desired extraction of described user.
Further, described method also comprises:
Described buffer is made amendment to the content of text of described extraction, and/or, the content of text of described extraction is sent.
When the content of text that shows in the described buffer was sky, the signal that described user is triggered was sent to current focus window.
Wherein, described target window is one or a plurality of in succession.
Again on the one hand, provide a kind of device of graphical handwriting input, described device comprises: input interface and buffer;
Described input interface comprises:
Receiver module is used to receive the character that the user imports;
Identification module is used for the content of text of the random length of the motion track identification user input of character on soft keyboard according to described input;
Described buffer comprises:
Cache module is used for the content of text of described identification is carried out buffer memory;
Display module is used for the content of text of described identification is shown;
Sending module is used to receive the transmission signal that the user triggers behind the intended target window, the content of text of described demonstration is sent to the target window of described user's appointment
Preserve module, be used for the content of text of described transmission is preserved, the content of text of described preservation is used for the follow-up of user and searches and send once more.
Further, described buffer also comprises:
Modified module is used to receive the modification signal that is triggered when the user need make amendment to the content of text that shows, and according to described modification signal, the content of text to be revised of described demonstration is made amendment.
Wherein, described modified module specifically comprises:
First module is used to receive the modification signal that triggers when the user need make amendment to the content of text that shows;
Unit second is used to obtain the position of the current cursor of user's input;
Unit the 3rd is used to inquire about the reference position and the end position of the content of text of described demonstration;
Unit the 4th is used for according to described reference position and end position, obtains the full text content of described demonstration;
Unit the 5th is used for position and described full text content according to described current cursor, obtains content of text to be revised;
Unit the 6th is used for content of text described to be revised is revised as the content of text of user expectation.
Wherein, described Unit the 6th specifically comprises:
First subelement is used for according to content of text described to be revised, and obtains to wait to revise the related candidate's content of text of content of text with described;
Second subelement is used for the candidate's content of text from described association, obtains the content of text of user expectation;
The 3rd subelement is used for content of text described to be revised is revised as the content of text of user expectation.
Wherein, described preservation module specifically comprises:
First preserves the unit, is used for the content of text of described transmission is preserved with the form of file;
Second preserves the unit, is used for the filename of described file is preserved according to time sequencing.
Further, described buffer also comprises:
Extraction module is used to receive the extraction signal that described user triggers, and preserves the filename that file is preserved in the unit according to described extraction signal and described second, preserves the content of text that extracts the desired extraction of described user the unit from described first.
Beneficial effect:
The embodiment of the invention is by providing a special buffer for input interface, when input interface receives and identifies user's input text content, input text is content-targeted to buffer, this buffer carries out buffer memory with the content of text of user's input, and be presented in its display module, treat that the user confirms to send to after errorless the target window of user's appointment.This method makes the user whole notices can be concentrated on and uses with the hand-writing input method of speech as unit carries out on the input interface of handwriting input, needn't notice constantly which current focus window is, needn't worry that content of text can be sent on the wrong program; And this method can also overcome the problem that the content of text of user's handwriting input is easily lost, and has guaranteed that the content of text of user's input can send in the desired window of user like clockwork, has improved user's experience.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment 1
When focus window changed, the content of importing in order to ensure the user still can send in the desired editor of user like clockwork, and referring to Fig. 1, the embodiment of the invention provides a kind of method of graphical handwriting input, comprising:
Step 101: input interface receives and identifies the content of text of the random length that the user imports on soft keyboard;
Wherein, during this step specific implementation, it is the input of the input method realization content of text of unit with the speech that the user can utilize existing, and promptly the user utilizes ShapeWriter or realizations such as Swype or SlideIT to reach the input of content of text by soft keyboard.
Step 102: the buffer mutually integrated with input interface carries out buffer memory and demonstration with the content of text of discerning;
Wherein, during this step specific implementation, can have the buffer realization of Presentation Function by setting, promptly behind the content of text that identifies user's input, buffer carries out buffer memory with text content, and the content of text behind the buffer memory is shown, browses affirmation for the user.
Step 103: buffer sends to the content of text that shows the target window of user's appointment according to the transmission signal from the user that receives;
Wherein, browse the content of text of above-mentioned demonstration as the user, after confirming that the content of text of importing is accurate, then can select the desired send window of this user (for convenience of explanation, the present embodiment send window that this user is desired is called target window), after the user selects target window, then can send the transmission signal, this transmission signal is used to confirm to send the content of text that has editted.
Step 104: the content of text that sends is preserved;
What wherein, the content of text of preservation was used for the user follow-uply searches and sends once more.
The method of the graphical handwriting input that the embodiment of the invention provides, at first carry out buffer memory and demonstration by content of text with user's input, make in the process of user input text content, buffer is always as focus window, then the user just can carry out under the situation of handwriting input as the input method of unit using with speech, notice concentrates in the zone of a restriction, effectively avoided the dispersed problem of user's notice, when focus window changes, only receive user's transmission signal, just the content of text of buffer memory can be sent, thereby guarantee that the content that the user imports still can send in the desired target window of user like clockwork; Improve input efficiency, and improved user's experience.
For the method that the embodiment of the invention is provided is elaborated, see also following embodiment:
Embodiment 2
When focus window changes, content in order to ensure user's input still can send in the desired editor of user like clockwork, and in order to realize that foregoing is before sending, the user can revise timely to institute's content edited, the embodiment of the invention 2 provides a kind of method of graphical handwriting input, specifically to be applied to ShapeWriter with this method be that example describes to present embodiment for convenience of explanation, and referring to Fig. 2, this method thes contents are as follows:
Step 201: utilize the character of input interface (as soft keyboard) reception user handwriting input, identify the content of text of user's input according to the line of user inputs character;
Wherein, the content of text of user's input includes but not limited to: word, sign of operation, numeral, special symbol etc.Present embodiment is example with the word, and then the user can utilize finger or felt pen etc. to import word in the mode of shapewriting on soft keyboard.
Correspondingly, be used for discerning the identification module (Recognizer) of importing content and the word that receives carried out the sampling identification (promptly each alphabetical central point of word being coupled together is exactly the standard line) of standard line.Need to prove, the standard line that may have a plurality of words is mutually the same or similar, correspondingly, RCO can provide a plurality of possible word candidate for the user according to the standard line that the user imports word, and it is last for user's selection that a plurality of possible word candidate are presented at AUI (Auxiliary User Interface, secondary user interface).Present embodiment only is that example describes with ShapeWriter, and alternatively, the user also can use input modes such as Swype to carry out handwriting input, and method is similar, repeats no more.
Step 202: the content of text that the user is selected to import is directed in the default buffer;
Wherein, if on secondary user interface AUI,, then in can be in this AUI shown a plurality of word candidate of user,, select the word of oneself expectation input by the click of hand or felt pen for the user provides a plurality of word candidate.
Alternatively, in order to save user's workload, improve user's input efficiency, then can be provided with: in (as 3 seconds or other) at the appointed time, do not select action if receive the click that the user sends, then with the word candidate of above-mentioned first position that is arranged in a plurality of word candidate acquiescently as this user's selection.The embodiment of the invention does not limit above-mentioned acquiescence and selects the stipulated time of word and the position of the word that acquiescence is selected.
No matter be the selection that the user initiatively carries out, perhaps Mo Ren selection, in case chosen a word candidate, promptly can choose action the content of text of selecting to be directed to trigger pip in the special buffer with this as one, when input interface (as soft keyboard) is received this trigger pip, then directly the content of text of selecting is directed in the default buffer.
Step 203: buffer receives the content of text that is directed to self, text content is carried out buffer memory, and show in display module, carries out preview for the user;
Wherein, the buffer that the embodiment of the invention the provides content of text of receiving that can achieve a butt joint carries out buffer memory and Presentation Function, and wherein, Presentation Function can be realized by default display module.
Further, for the experience of use is provided for the user better, the buffer that the embodiment of the invention provided can also be a kind of have multirow show, can be vertically, the display module of direction automatic rolling such as level, have editting function (as cursor follow automatically, content of text duplicates stickup etc.) and can to receive with the speech be the buffer of unit of text content, this buffer can be well integrates with user's input interface (as soft keyboard).
Once import one or more snippets of content of text of random length for the user, the length that the display module of buffer can show only is confined to the max number of characters that buffer can hold.Therefore the user can organize the structure of content of text according to the wish of oneself on the basis that hardware allows.
Wherein, buffer can carry out buffer memory with the content of text that receives, and this buffer memory can utilize the memory size of buffer itself, also can utilize the memory size of local computer.Owing to be temporary transient storage, therefore the memory size that needs is very little, can not influence the operate as normal of buffer or computing machine.
Step 204:, the content of text to be revised that shows in the display module is made amendment according to the user's who receives modification signal;
Wherein, when the user in input process, can carry out preview to the content of text of being imported by display module, when if the user wishes the content of text that shows made amendment, then can send the modification signal, correspondingly, the method that the embodiment of the invention provides, can treat the content of text of modification and make amendment according to the user's who receives modification signal.Wherein, described modification can be that the active of user under the errorless situation of content of text revise, also can be for the user finds the modification carried out after the Error Text content, for convenience of explanation, it is that example describes that the embodiment of the invention is revised wrong this paper with user's desire, sees for details as follows:
For example, when finding the content of text that shows in the display module of buffer, the user has mistake, for example: the user imports word " fun " with the mode of shape writing, owing to reasons such as user misoperation, identification module RCO has returned " fin " (supposing the word that " fin " ratio " fun " is more write on soft keyboard near the user), and being directed to buffer, the display module of buffer shows " fin ".When the user finds that this is wrong, the user can move to cursor the position of " fin " in the display module, at this moment, ShapeWriter can collect the word at cursor place, in the ideal case, ShapeWriter can recall to a plurality of word candidate (comprising " fun ") corresponding to " fin ", and word candidate is presented at AUI goes up and to select for the user, the user only need click " fun ", just " fin " can be changed to " fun ".
Referring to Fig. 3, concrete modification process can be shown in following step:
204-1: after buffer receives the modification signal of user's transmission, obtain the position of current cursor;
Wherein, the modification signal that sends of user can but be not limited to comprise: the user is with cursor moves on the wrong content of text, user click is default modification button etc.
Wherein, the definite of the position of cursor can determine that so-called reference position is meant first character present position of this Edit Text content by current cursor with respect to the reference position of whole videotex content, and it is 0 that reference position is set usually.
204-2: buffer is inquired about the reference position and the end position of this editor's shown whole content of text;
Wherein, so-called end position is meant last character present position of this Edit Text content.If do not show any content of text, reference position is identical with end position so.
204-3:, obtain the full content of the content of text of current demonstration in the buffer according to reference position and the end position that inquiry obtains;
204-4: the full content of the content of text of current demonstration in the buffer that cursor position that is obtained according to step 204-1 and step 204-3 are obtained obtains user's word to be revised;
Wherein, use the cursor position index in content of text that obtains among the 204-1,, scan backward from cursor position simultaneously from the cursor position line scanning of marching forward, till scanning terminating character (as space, comma, fullstop etc.), just obtained word to be revised like this.
204-5:, provide the word candidate tabulation of this word according to the word to be revised that obtains among the step 204-4;
Wherein, word to be replaced to the cursor place that obtains carries out the sampling identification of standard line, promptly each alphabetical central point in the word is coupled together the identification of sampling of standard line that the back forms, and will provide out as candidate list with the akin word of standard line (promptly with the related word of word to be revised).Because the sampling of standard line is identified as prior art, present embodiment is no longer done and is given unnecessary details.
204-6:, treat the word of modification and make amendment according to the word candidate tabulation of this word that provides.
By above-mentioned steps 204-1 to step 204-6, realized that the content of text for the treatment of modification carries out time update, thereby can provide more senior editor's function for the user,, improve user's input efficiency greatly and shortened input time of user for the user has brought favorable experience.Be that example is described in detail said process below with Fig. 4:
As shown in Figure 4, imported " Advanced technology usindistinguishable from magic " when the user uses the mode of line after, then the display module by buffer has demonstrated " Advancedtechnology us indistinguishable from magic ", the content of user by checking that this display module is shown, find to exist a misspelling, promptly " us " in the content of text of this demonstration locates, the actual desired input of user be " is ".Then the user can at first move to cursor on " us ", and buffer obtains the current position of cursor; By the initial position of inquiring about whole videotex content is 0, and end position was 52 (wherein the content of text of current demonstration comprises 47 letters and 5 spaces altogether); Reference position according to current whole videotex content.With end position 52, obtain the full content " Advanced technology us indistinguishablefrom magic " of the content of text of current demonstration in the buffer; Use cursor position (can be 20,21 or 22) index in content of text " Advanced technology usindistinguishable from magic ", from the cursor position line scanning of marching forward, scan backward from cursor position simultaneously, till scanning terminating character (as space, comma, fullstop etc.), just obtained word to be revised " us " like this; The word candidate tabulation " us ides is ids ISS its " of this word " us " is provided in AUI as shown in Figure 5; The user can realize that " is " selects, and correspondingly, then replaces to user-selected " is " with " us " automatically, thereby realized the modify feature of content of text by hand or felt pen.
Step 205:, the content of text that shows in the display module is sent to the target window of user's appointment according to the user's who receives transmission signal;
Wherein, after the user confirms that the content of text of importing is accurate, then can select the desired target window of this user, after the user selects target window, then can send the transmission signal, this transmission signal is used to confirm to send the content of text that has editted.After buffer receives user's transmission signal, the content of text that shows in the display module is sent to the target window of user's appointment.Wherein, send signal can but be not limited to comprise: as shown in Figure 4, the user clicks " Send " button that buffer offers the user, and this action can be buffered device and be identified as the transmission signal.
Wherein, above-mentioned target window is specified by the user, and the mode of appointment can include but not limited to: the user directly from the editor of current demonstration, selects one as target window; In addition, the method that the embodiment of the invention provides, can also provide the window selective listing for the user, then correspondingly, the user can be according to the window selective listing that provides, from this tabulation, select target window (this target window can for one or more), during specific implementation, can realize by the dialogue thick stick that carries the window selective listing in ejection for the user, correspondingly, be used for selecting at least one target window according to this dialog box, after the user confirmed to select, then this target window changed to focus window.
Step 206: after the content of text that shows in display module sent to the target window of user's appointment, buffer was preserved the content of text of the current demonstration of display module;
Concrete, when the user receives the transmission signal, the content of text of the finishing input form with file can be kept on the local computer, filename can according to the time of preserving walk justice, also can be by the user from walking justice, the file of each preservation can show in the display module of buffer with the form of the page.
Further, when buffer receives the newly-built input page signal that the user sends when (as clicking " next " button or " new " button etc.), also can before the content of text imported be kept on the local computer with the form of file;
Further, when buffer receives the preservation signal that the user sends when (as clicking " save " button), also the content of text of the input form with file can be kept on the local computer.
As shown in Figure 4, for convenience the content of text preserved of user inquiring is provided with in the buffer and preserves a page stack, and each in this page stack all is character strings, the filename that corresponding local computer is preserved.This page stack has max cap., the maximum quantity of the page that expression can be preserved.When the page number of preserving as the user was equal to or greater than the max cap. of page stack, the war pointer can be reinitialized, and the character string of entering the school is the earliest covered, and the pairing file of the pairing filename of the character string that is capped can be deleted falls.When not preserving any character string in the page stack, page stack is empty.When having the character string of preserving, push into this page stack according to the character string of time sequencing with the representation file name of preservation.
Need to prove that when the user wished that same content of text successively sent to different target windows, it is particularly important that the function of this preservation page just seems.
Step 207: according to the user's who receives extraction signal, the content of text after buffer will be preserved extracts;
Wherein, when the user wishes to check the content of text that sends before, because the hold function that the embodiment of the invention provides, then can satisfy the demand that the user checks the content of text that has sent, by above-mentioned page stack shown in Figure 4, for the content of text of each preservation has distributed the corresponding file name, then correspondingly, the user extracts signal by sending, can extract corresponding content of text, specific implementation can be as follows: the user is by clicking " pre " button of buffer, real. it is right to extract. the purpose of content of text, be that the user can check the content of text of having preserved by extracting this mode, every " pre " button of clicking, the pointer of page stack moves forward a unit, and (what present to the user can be that each page has been turned over one page forward as leaf through a book, perhaps other animation effect all can), promptly moved forward a file of having preserved, further, when the user gets access to the page of desired extraction, can make amendment to the file of having preserved referring to the step in the step 204, the target window of user's appointment can be preserved or be sent to the amended page with the form of new file.
Need to prove that when not having content of text in the display module of buffer, whole Action Buttons described in the present embodiment and number order (as backspace key, enter key, duplicate, shearing etc.) all can act on focus window.Otherwise when having content of text in the display module of buffer, these Action Buttons and order directly act on the content of text in the buffer.Further, the whole Action Buttons mentioned in embodiments of the present invention and order can also be finished its function by the mode of handwriting input by the user.For example, when the user wishes to carry out replicate run, can begin since a special function key that is used for directive command (CMD key), slip over special function keys (CMD key), C uninterruptedly, O finishes the input on soft keyboard after the P, Y, owing to be the input that begins with the CMD key, " copy " can be identified as " copy command " like this.
The method of the graphical handwriting input that the embodiment of the invention provides, at first be directed in the middle of the special buffer by content of text user input, the content of text of the user being imported by buffer carries out buffer memory and demonstration, make that in the process of user input text content, buffer is always as focus window.Like this, the user just can carry out under the situation of handwriting input as the input method of unit using with speech, and notice concentrates in the zone of a restriction, rather than on the window of all external applications, having solved user's notice can dispersed problem., when focus window changes, only receive user's transmission signal, just the content of text of buffer memory can be sent, thereby guarantee that the content that the user imports still can send in the desired target window of user like clockwork; And the method that the embodiment of the invention provides is also supported function that the content of text that shows is made amendment and preserved, thereby has improved input efficiency further, and has improved user's experience.
Embodiment 3
When focus window changes, content in order to ensure user's input still can send in the desired editor of user like clockwork, referring to Fig. 6, the embodiment of the invention 3 provides a kind of device of graphical handwriting input, and this device comprises: input interface 601 and buffer 602;
Input interface 601 comprises:
Receiver module is used to receive the character that the user imports;
Identification module is used for the content of text according to the random length of the motion track identification user input of the character of importing on soft keyboard;
Buffer 602 is a kind of editting functions that have, and can receive with the Multiline Edit buffer as the unit of text content such as word, and this buffer can be mutually integrated with input interface well.This buffer can be system GUI (Graphical User Interface, the graphical user interface) control of standard, also can be from the adopted control etc. of walking.
Need to prove that buffer 602 just the present invention is introduced scheme for convenience and is the title that functional module is given, in the art, any function and buffer 602 same or analogous functional modules are all within protection scope of the present invention.
Referring to Fig. 7, buffer 602 comprises:
Cache module 602A is used for the content of text of identification is carried out buffer memory;
Display module 602B is used for the content of text of identification is shown;
Sending module 602C is used to receive the transmission signal that the user triggers behind the intended target window, the content of text that shows is sent to the target window of user's appointment;
Preserve module 602D, be used for the content of text that sends is preserved, the content of text of this preservation is used for the follow-up of user and searches and send once more.
Here need to prove that the attribute of display module 602B is adjustable, for example display module 602B can for the user provide about, left-right scroll bar, make the content of the user's input acquire in display module 602B, carry out the editor and the demonstration of multirow; Display module 602B can also provide different selections for the user, and for example the user can change font, size, color of background color, the demonstration of display module 602B or the like by the click function button; The attribute that any those skilled in the art can not expect by performing creative labour all within the protection domain of this programme, is not done detailed description here.
Further, in order to realize foregoing before sending, the user can revise timely to institute's content edited, and referring to Fig. 8, buffer 602 also comprises:
Modified module 602E is used to receive the modification signal that triggers when the user need make amendment to the content of text that shows, and according to revising signal, the content of text to be revised that shows is made amendment.Wherein, modified module 602E specifically comprises:
First module is used to receive the modification signal that triggers when the user need make amendment to the content of text that shows;
Unit second is used to obtain the position of the current cursor of user's input;
Unit the 3rd is used for the reference position and the end position of the content of text of query display;
Unit the 4th is used for according to reference position and end position, obtains the full text content that shows;
Unit the 5th is used for position and full text content according to current cursor, obtains content of text to be revised;
Unit the 6th is used for revising the content of text that content of text is revised as user expectation with holding.Wherein, Unit the 6th specifically comprises:
First subelement is used for obtaining to wait to revise the related text content of content of text according to content of text to be revised;
Second subelement is used for selecting the content of text of user expectation from the related text content;
Second subelement is used for content of text to be revised is revised as the content of text of user expectation.
Wherein, preserving module 602D specifically comprises:
First preserves the unit, and the content of text that is used for showing is preserved with the form of file;
Second preserves the unit, is used for the filename of file is preserved according to time sequencing.
Further, referring to Fig. 9, buffer 602 also comprises:
Extraction module 602F is used to receive the extraction signal that the user sends, and according to the filename that extracts signal and file, extracts the content of text of the desired extraction of user.The device of the graphical handwriting input that the embodiment of the invention provides, at first be directed in the middle of the special buffer by content of text user input, the content of text of the user being imported by buffer carries out buffer memory and demonstration, make in the process of user input text content, buffer is always as focus window, and this function specifically can realize by computer program.Like this, the user just can carry out under the situation of handwriting input as the input method of unit using with speech, and notice concentrates in the zone of a restriction, rather than on the window of all external applications, having solved user's notice can dispersed problem.
The embodiment of the invention is by introducing buffer, from the man-machine interaction aspect, some common problems that the user runs into have been solved in input process, as the text that notice in user's input process is disperseed, imported easily lose, making a mistake in the input process is difficult for revising etc., has improved satisfaction of users.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware not finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (RandomAccessMemory, RAM) etc.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.