CN1121657C - Device for automatically making characters sustitution processing and method thereof - Google Patents
Device for automatically making characters sustitution processing and method thereof Download PDFInfo
- Publication number
- CN1121657C CN1121657C CN 98104232 CN98104232A CN1121657C CN 1121657 C CN1121657 C CN 1121657C CN 98104232 CN98104232 CN 98104232 CN 98104232 A CN98104232 A CN 98104232A CN 1121657 C CN1121657 C CN 1121657C
- Authority
- CN
- China
- Prior art keywords
- literal
- input
- replaced
- input device
- writing system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The present invention relates to a device and a method for automatically replacing a word, of a word processor. The device for automatically replacing a word comprises an input device, a displaying and outputting device, a processing device and an interface device, wherein the input device is used for inputting the replacement word; the displaying and outputting device displays a replacement word list; the processing device processes the word replacement operation; the interface device is used as a communication interface. The word processor comprises an interface device, a replacement device and a processing device, wherein the interface device is used as a communication interface; the replacement device generates replacement control instructions; the processing device executes actual replacement operation. After the replacement word is input, the language version of the word processor is about to be determined in order that a required deletion instruction is computed and executed, an instruction input by a keyboard is simulated, and the replacement word is input into the word processor through a keyboard insertion instruction.
Description
Technical field
The present invention relates to automatic writing system alternative and the method for a kind of word processor (Word processor), be particularly related to and do not destroy the scrapbook content, and can produce an Application Programming Interface (API) automatically, mode with prediction provides may importing for you to choose of user, the user must not carry out literal via the mode that indicates and replace, and can carry out the apparatus and method that literal is replaced.
Background technology
Present computing machine and electronic correlation product are applied in various industries and the daily life widely, yet prosperity along with Information technology and traffic, the information contact in the whole world is also day by day frequent, be flooded with word processor miscellaneous in the life, to handle the required affairs of daily file contact.
Though the function of these word processors is quite powerful, such as functions such as various editors, mosaic and phonetic inspection, object embeddings, have more the compatibility except making man-computer interface, more can be according to people's demand to produce lively file.Yet, aspect the literal input, need selected scope by the user more, to carry out the relevant treatment of literal, replace or processing such as mosaic and phonetic inspection such as synonymous conversion, literal.Replace with literal, utilization cuts (Cut), duplicates (Copy), with the mode of sticking (Paste), when reaching the purpose of replacement via scrapbook, the content that just must destroy scrapbook just is accomplished, and must utilization manually can carry out, so cause inconvenience in the use.
In view of above-mentioned background of invention, known word processor is carrying out literal when replacing, and needs to utilize manually and the content that must destroy scrapbook just is accomplished, so cause the inconvenience in the use more.The present invention is promptly at the shortcoming of known word processor, provide a kind of can be in word processor, the apparatus and method that automatic writing system is replaced are in order to overcome the predicament that known word processor faces.
Summary of the invention
According to above-described purpose, the invention provides a kind of automatic writing system alternative and method of word processor, can produce an input interface automatically, provide may importing for you to choose of user with simulated mode, the user must not carry out literal via the mode that indicates and replace.What this automatic writing system alternative comprised at least that described input interface contains one shows that in order to the input media, of importing this Alternate text the demonstration output unit, of Alternate text tabulation handles the treating apparatus and of Alternate text operation as the interface arrangement of linking up the interface; And be included in the word processor as the alternative of the interface arrangement of linking up the interface, a generation replacement steering order and the treating apparatus of the actual replacement operation of an execution.Each device that this automatic writing system alternative comprised is corresponding module.After Alternate text is transfused to, will determine the language version of word processor earlier, to calculate and to carry out required delete instruction, then simulating keyboard inserts instruction, and this Alternate text is input in the word processor to insert instruction.Described automatic writing system replacement method comprises following steps at least: import an Alternate text via this input interface; Obtain the length that will be replaced literal; Obtain cursor and be currently located at the position that is replaced in the literal; Test the language version of this input device; Be currently located at this position that is replaced literal, produce the keyboard delete instruction according to this this length, this cursor that is replaced literal with this language version; Send this keyboard delete instruction to this input device and be replaced literal to delete this; Length, this cursor according to this Alternate text are currently located at this position that is replaced literal, produce keyboard insertion instruction with this language version; Send this keyboard insert instruction to this literal input processing device to insert this Alternate text.Also available in the method this keyboard that utilizes is deleted and the insertion instruction, this Alternate text is inserted in replace last three steps in the preceding method in the input device.
Description of drawings
Preferred embodiment of the present invention will and be aided with accompanying drawing in following comment and do more detailed elaboration:
Fig. 1 describes to be used in the word processor, carries out the structure calcspar of automatic writing system alternative;
Fig. 2 describes to utilize input interface input Alternate text, to carry out the operational flowchart that literal is replaced at word processor;
Fig. 3 is depicted among Fig. 2, calls and replaces module to carry out the detail flowchart that literal is replaced;
Fig. 4 A is depicted in the Word word processor that Microsoft (Microsoft) produced, and carries out the situation of English words input; And
Fig. 4 B is depicted among Fig. 4 A, in input one space, input ' plan ' back, the variation situation of form interface institute content.
Embodiment
Fig. 1 describes and is used in the word processor, carries out the structure calcspar of automatic writing system alternative.When word processor 12 during at input characters, input interface 11 can be according to word processor 12 current cursor positions, automatically show that a form interface is to point out the present input situation literal that institute may form, the literal that the user can select institute's desire to import in this form interface.When the user when this form interface is selected input characters, the instruction of being imported such as Move Volumes moving axis (Scroll) or cursor operations such as (Cursor), to import module 113 via input interface receives, and handle the processing of module 112 via inputting interface after, again the result is outputed to demonstration output module 114 to show.When the user selected literal, dependent instruction was still imported the reception of module 113 via input interface, and handle the processing of module 112 via inputting interface after, by interface module 111 Alternate text is sent to word processor 12 again.Word processor 12 is after receiving this Alternate text, replace the simulation that module 122 is carried out keyboard operation with calling, such as simulation required deletion and insertion instruction manipulation, after carrying out actual literal replacement by word processor control and treatment module 123 again, will replace the result by showing that output module 125 is to be shown to the user.124 usefulness that are used for the normal words input of word processor input module.
Fig. 2 describes when input interface input Alternate text, to carry out the operational flowchart that literal is replaced at word processor.When replacement instruction by input interface input when replacing (step 201 and 202), the content of this Alternate text will be transferred into word processor and be stored (step 203), and take from the word processor, be about to import in the literal shelves of this Alternate text, the position that cursor is present, and with the length (step 204) of Alternate text, then calculate the position of cursor in Alternate text, to determine to simulate the keyboard deletion and insertion instruction (step 205) of how much quantity, call again and replace the actual back (step 206 and 207) that replaces it of module execution, get back to step 201 to carry out follow-up literal replacement operation.
Fig. 3 is depicted in the step 206 of Fig. 2, calls and replaces module to carry out the detail flowchart that literal is replaced.At first need test the language version that this word processor is supported, with the deletion of the required keyboard of definite Alternate text and command byte (Byte) number (step 301) of input.This step is necessary, because with the word processor of Chinese edition and English edition, each Chinese words is to take two bytes, but each English alphabet only takies a byte.Next according to language version, be replaced literal, with cursor position to calculate (step 302) after the required keyboard delete instruction number, produce keyboard delete instruction (step 303) earlier, send the literal (step 304) that the deletion sequence is replaced with deletion institute desire to word processor again.Then, according to produce language version, Alternate text, when inserting number of instructions to calculate required keyboard (step 305) with cursor position, also insert instruction back (step 306), send insetion sequence to insert Alternate text (step 307) to word processor again in producing keyboard.
Fig. 4 A and Fig. 4 B are depicted in the situation of carrying out the English words input in the Word word processor that Microsoft (Microsoft) produced, and the present file shelves of importing of literal are TEST.DOC401.In Fig. 4 A, be after ' I ' word, to import one ' plan ', and cursor 403 promptly stop at ' n ' afterwards, the input interface of this moment will produce a form interface 402 in the file shelves.When the scroll bar on scrolling form interface 402 right sides, can see more Alternate text tabulation, for example be shown in comprising in the form interface 402 ' plan ' and Alternate texts such as ' plant '; And when pressing the button 405 of form interface 402 tops, can see the textual list of deriving of present input characters ' plan ', such as ' planning ' and words such as ' planned ' (not showing among Fig. 4 A).Fig. 4 B then describes when the user imports a space 404 and since each English words be with two spaces being separated with other literal, so form interface 402 will change its content automatically, to show the synonym tabulation of this present input characters.Same, after pressing the button 406, this form interface 402 also will show selected at present synonymous derivative tabulation (not showing) in Fig. 4 B.
The present invention also provides a kind of automatic writing system replacement method of input device, can produce an input interface automatically, in need not destroying scrapbook (Clipboard), hold, mode with prediction provides possible input characters for you to choose, and this automatic writing system replacement method comprises the following step at least:
Import an Alternate text via this input interface;
Obtain the length that will be replaced literal;
Calculate cursor and be currently located at the position that is replaced in the literal;
Test the language version of this input device;
Be currently located at the position that is replaced in the literal, produce keyboard deletion and insert instruction according to this this length, this cursor that is replaced literal with this language version; And
Utilize this keyboard deletion and insert instruction, this Alternate text is inserted in the input device.
This method and preceding method difference are that this method has been used the keyboard deletion and inserted instruction, and this Alternate text is inserted in the input device, substitutes last three steps in the preceding method, because technology contents is basic identical, so no longer describe in detail here.
Be example with Fig. 4 A and Fig. 4 B now, further specifying the operation of Alternate text among Fig. 3, and hypothesis Fig. 4 A is the Word of English edition with word processor among Fig. 4 B, and the user selects ' intend ' with replacement ' plan ' in form interface 402.With the current position of cursor at TEST.DOC 401, replace module and will formerly produce five delete instructions, behind deletion ' plan ' and space 404, then produce six and insert instruction to insert ' intend ' in literal shelves TEST.DOC 401, to finish the required literal replacement operation of user.
In addition, disclosed automatic writing system alternative of the present invention and method, do not limit in the word processors such as being used in Word and Word Pefect, literal substitute mode between the different application (Application), need the device of literal input such as CCmail etc., in order to reduce user's input operation.
Comprehensive the above, the automatic writing system alternative and the method for the disclosed word processor of the present invention, can produce an input interface automatically, to simulate and must not destroy the mode of scrapbook content, may importing for you to choose of user is provided, and the user must not carry out literal via the mode that indicates and replace.
The above is preferred embodiment of the present invention only, is not in order to limit claim of the present invention; All being equal to of not breaking away from that disclosed spirit finishes, change or modify, and all should comprise within the scope of the claims.
Claims (8)
1. the automatic writing system replacement method of an input device can produce an input interface automatically, holds need not destroying in the scrapbook, provides possible input characters for you to choose in the mode of prediction, and this automatic writing system replacement method comprises the following step at least:
Import an Alternate text via this input interface;
Obtain the length that will be replaced literal;
Obtain cursor and be currently located at the position that is replaced in the literal;
Test the language version of this input device;
Be currently located at the position that is replaced in the literal, produce keyboard delete instruction according to this this length, this cursor that is replaced literal with this language version;
Send this keyboard delete instruction to this input device and be replaced literal to delete this;
Be currently located at the position that is replaced in the literal, produce keyboard with this language version and insert instruction according to length, this cursor of this Alternate text;
Send this keyboard insert instruction to this literal input processing device to insert this Alternate text.
2. all possible literal that automatic writing system replacement method as claimed in claim 1, wherein said Alternate text comprise the current institute of this input device input characters changes.
3. automatic writing system replacement method as claimed in claim 2, wherein said literal changes the derivative that also comprises current this literal imported of this input device.
4. automatic writing system replacement method as claimed in claim 1, wherein said input device are word processors.
5. the automatic writing system replacement method of an input device can produce an input interface automatically, holds need not destroying in the scrapbook, provides possible input characters for you to choose in the mode of prediction, and this automatic writing system replacement method comprises the following step at least:
Import an Alternate text via this input interface;
Obtain the length that will be replaced literal;
Obtain cursor and be currently located at the position that is replaced in the literal;
Test the language version of this input device;
Be currently located at the position that is replaced in the literal, produce keyboard deletion and insert instruction according to this this length, this cursor that is replaced literal with this language version; And
Utilize this keyboard deletion and insert instruction, this Alternate text is inserted in the input device.
6. all possible literal that automatic writing system replacement method as claimed in claim 5, wherein said Alternate text comprise the current institute of this input device input characters changes.
7. automatic writing system replacement method as claimed in claim 6, wherein said literal changes the derivative that also comprises current this literal imported of this input device.
8. automatic writing system replacement method as claimed in claim 5, wherein said input device are word processors.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 98104232 CN1121657C (en) | 1998-01-14 | 1998-01-14 | Device for automatically making characters sustitution processing and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 98104232 CN1121657C (en) | 1998-01-14 | 1998-01-14 | Device for automatically making characters sustitution processing and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1190762A CN1190762A (en) | 1998-08-19 |
CN1121657C true CN1121657C (en) | 2003-09-17 |
Family
ID=5218196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 98104232 Expired - Fee Related CN1121657C (en) | 1998-01-14 | 1998-01-14 | Device for automatically making characters sustitution processing and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1121657C (en) |
-
1998
- 1998-01-14 CN CN 98104232 patent/CN1121657C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1190762A (en) | 1998-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6092068A (en) | Marked document tutor | |
Carletta et al. | The NITE XML toolkit: flexible annotation for multimodal language data | |
US20010039552A1 (en) | Method of reducing the size of a file and a data processing system readable medium for performing the method | |
EP0914637A1 (en) | Document producing support system | |
WO2006003485A2 (en) | Automatic guide for data analysis | |
JPH1083289A (en) | Programming aid | |
Meyrowitz et al. | Interactive editing systems: Part II | |
JP2009217665A (en) | Text editing apparatus | |
Phillips | An interpersonal multimedia visualization system | |
Smith et al. | MathScribe: A user interface for computer algebra systems | |
WO2005098663A1 (en) | Information management device | |
CN1121657C (en) | Device for automatically making characters sustitution processing and method thereof | |
Bracewell Rob et al. | Extending design rationale to capture an integrated design information space | |
JP2000250908A (en) | Support device for production of electronic book | |
JPS63109578A (en) | Processing system for logic diagram outline display | |
CN116340685B (en) | Webpage generating method and system based on voice | |
JP2575665B2 (en) | Logical diagram outline description conversion processing method | |
JPS6383861A (en) | Automatic processing system for numerical formula | |
Ramalho et al. | Document Semantics: two approaches | |
JPH0528428B2 (en) | ||
JPH0310368A (en) | Attended data display processing system | |
CN113961188A (en) | Instant rendering editing method based on Web page | |
JP3508868B2 (en) | Document editing device | |
JPH08194706A (en) | Structural sentence generation device | |
Smith et al. | Computer Research Laboratory Tektronix, Inc. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20030917 Termination date: 20110114 |