Intelligent electronic word processor with plural print wheels and tables used to identify displayed characters supported by designated print wheels5200892Abstract An electronic word processor comprises a memory storing print data, a print wheel, and a check circuit for checking whether the type of the print wheel is suitable for printing out the print data. In the second form, the processor may store word data accompanied with hyphenate data in a selected group of words. In the third form, the processor may comprise a message memory for storing message sentences, and a modification circuit for modifying the message data. In the fourth form, the processor may comprise a control circuit featured in that one or more specific letters can be retrieved and replaced by one or more new letters in the unit of chapter. Claims What is claimed is: Description BACKGROUND OF THE INVENTION
TABLE I
______________________________________
Character
Data
______________________________________
A 00001
B 00010
C 00011
D 00100
E 00101
G 00111
H 01000
I 01001
J 01010
K 01011
L 01100
M 01101
N 01110
O 01111
P 10000
Q 10001
R 10010
S 10011
T 10100
U 10101
V 10110
W 10111
X 11000
Y 11001
Z 11010
' 11011
______________________________________
(The last term is an apostrophe.)
It is assumed that the following 8 words in TABLE II are stored.
TABLE II
______________________________________
No. Word
______________________________________
1 AM
2 AN
3 ALL
4 ARM
5 PLAN
6 PLAY
7 DELICATE
8 DELIVERY
______________________________________
The following letter or letters are to be stored in the dictionary. "AM": M "AN": N "ALL": LL "ARM": RM "PLAN": LAN "PLAY": LAY "DELICATE": ELICATE "DELIVERY": ELIVERY To satisfy the correspondence of the memory capacity of 1 byte=8 bits, dummy data (bit off) "X" are added as follows: M.fwdarw.01101XXX.fwdarw.68H(Hexadecimal) N.fwdarw.01110XXX.fwdarw.70H LL.fwdarw.0110001100XXXXXX.fwdarw.6300H RM.fwdarw.1001001101XXXXXX.fwdarw.9340H LAN.fwdarw.011000000101110X.fwdarw.605CH LAY.fwdarw.011000000111001X.fwdarw.6072H ELICATE.fwdarw.00101011000100100011000011010000101001100XXXXXXX.fwdarw.2B12 30D0A600 ELIVERY.fwdarw.00101011000100110110001011001011001010010XXXXXXX.fwdarw.2B13 62CB2900 In the above words, six or more letters are included within "DELICATE" and "DELIVERY". According to the second preferred embodiment of the present invention, the hyphenate information is annexed at the end of the data for the letters, together, in the unit of bit. If the word has letters to be hyphenated, "1" is provided while no hyphenate information is required, "0" stands. Further, in the second preferred embodiment, in a word, no hyphen is inserted before the first letter and the last letter. Therefore, the hyphenate information corresponds to the bits defined by "the number of all the letters minus 2". For example, while all of the lettes in a word "DELICATE" are "D E L I C A T E", "DEL-I-CATE" can be hyphenated. The following hyphenate information is provided. D.smallcircle.E.smallcircle.L I C.largecircle.A.largecircle.TE Where white dot designates that no hyphen is provided while the black dot designates that a hyphen is provided. Therefore, the hyphenate information of "001100" is defined. (It is to be noted that "001100" of six bit information precedes "XXXXXXX" in the memory bit for "ELICATE".) A word "DELIVERY" contains letters of "D E L I V E R Y". The following locations can be hyphenated. DE-LIV-ER-Y The hyphenate informaiton should be added as follows: D.smallcircle.E L.smallcircle.I.smallcircle.V E.smallcircle.RY: 010010 (It is also to be noted that the information "010010" is the six bit information prior to "XXXXXXX" in the memory bit for "ELIVERY".) Here, FIG. 16 shows a structure of the index dictionary storing the words in TABLE II. FIG. 17 shows a structure of the data memory. Of course, it may be possible that the hyphenate information is provided with each of all the letters forming the word. Such a system is disadvantageous because it takes long to detect the hyphenate information when two words have some of identical high-significant letters, but they are hyphenated at the different position as in the case of "DELICATE" and "DELIVERY". Therefore, according to the second preferred embodiment of the present invention, after all the spelling data are first detected, the hyphenate information is detected. Further, the hyphenate information is annexed to the end of the spelling data, together. If the hyphenate information is inserted between the letters, it may be difficult to quickly check the spelling of the words. Further, according to this second preferred embodiment, while each of the letters is converted in 5 bits, the checking of its spelling is conducted in the unit of byte, so that rapid checking speed can be expected rather than the case of checking in the unit of bit. For this purpose, within the word data, some dummy data are inserted. In the second preferred embodiment, since the hyphenate information is added only to the selected group of words, preferably, six or more letters, memory data can be compressed. Further attention is directed to a third preferred embodiment of the present invention in which a message sentence as provided by a word processor asking for the system operation or instruction can be modified by the operator. FIG. 18 is a block diagram of a word processor according to the third preferred embodiment of the present invention. The circuit of FIG. 18 comprises an input device 21, a memory 22, a message information memory 23, an output device 24, and a controller 25. The input device 21 is provided for spelling information and numerical information into the memory 22. The memory 22 stores the input information and menu message information. The menu message information is used to operate the application software in the message information memory 23. The memory 22 provides and edits the information to be outputted and printed out by the output device 14. The controller 25 is provided for controlling these elements. According to the third preferred embodiment, the menu message is "Prompt Message", "System Message", "Error Message", and "Utility Message". Normally, a plurality of "Prompt Messages" are not displayed in the CRT display. They designate some special control codes so that if the cursor is positioned at the corresponding position, they become displayed. Examples of "Prompt Message": Begin Keep, End Keep, Begin Und, End Und, Begin D-Und, End D-Und, Begin Bold, and End Bold. A plurality of "System Messages" store letters which are normally displayed in the menu picture in the CRT display. Examples of them: Task Selection, ID ITEM, Create Document Task, Revise Document Task, Paginate Task, Request (Print) Task, Create Format File, Revise Format File, and Create Glossary File. A plurality of "Error Messages" are to advise the operator that the system of the word processor detects some error condition. Examples of "Error Message": Invalid Key, Adjust Line Ending=No For This Line, Cannot Remove File End, Character Cannot Be Corrected Using Bksp., Characters Not Found, Characters Not Specified, Cursor Cannot Move, and Invalid Choices, Type Or Change Choices. A plurality of "Utility Messages" are provided to display when the program for the utility is executed. Examples of "Utility Message" are: Task Selection, ID ITEM, Create Document Task, Revise Document Task, Paginate Task, Request (Print) Task, Create Format File, Revise Format File, Create Glossary File, Revise Glossary File, Change Base Format, and Circular Letter Task. Unless "Utility Message" and "System Message" are operated simultaneously, the same locations can be used for them. FIGS. 19(A) and 19(B) show the structure of the message data used for the third preferred embodiment. As apparent from FIGS. 19(A) and 19(B), the message data are classified into an index portion and main portions. In the index portion, the data as shown in FIG. 20 are stored as follows: A location: the total byte number to be used in the index portion is stored. B location: a relative address number is stored which indicates how far the "Prompt Message" is from the main portions. C location: the number of the "Prompt Messages" is registered. D location: a relative address number is inputted which indicates how far the "System Message" is from the main portions. E location: the number of "System Message" to be registered is inputted. F location: a relative address number is inputted which indicates how far "Utility Message" is from the main portions. G location: the number of "Utility Messages" registered is inputted. H location: a relative address number is inputted which represents how far "Error Message" is from the main portion. I location: the number of "Error Messages" registered is inputted. As shown in FIG. 21, "K" stores the value of the messages in the first item. In conformance with the contents of "K", "L" stores the letters of the messages sentence. "M" contains a message end code. "N" and "N" include picture information in which the corresponding message information is displayed. "O" stores a final end code for the first record. "P" stores the volume of the next message of the second item. FIG. 22 shows locations for the picture infomation. The locations of FIG. 22 are provided for storing all the picture information to be displayed by the present system as follows: Q location: the number of the messages to be displayed in a single picture display is stored. The number of the messages indicates what number of items of the message information is used, including only the normally displayed messages and excluding the urgent ones. R location: Coordinate information is stored representing where to display "S" (the message sentence of FIG. 21) in the picture display. S location: the numerical information is stored representing both which group of "System Message", "Prompt Message", "Utility Message", and "Error Message" the current message belongs to, and what serial number of the message group the current message is positioned. "R" and "S" are repeated by times as defined by the information of "Q". T location: a separation code is stored, indicating the divisions of the messages in the single picture display. U location: the message information to be used in the next picture is stored. If "FF" (Hexadecimal) is stored, it represents that the whole control should end. The third preferred embodiment of the present invention will be described in terms of exemplary data. To provide the picture as indicated in FIG. 23, it is necessary to input the data of FIG. 24 into the tenth picture location in the picture locations of FIG. 22. "12" of FIG. 24 indicates that 12 types of messages are used in the picture. "02" in "02120073" at the second item of FIG. 24 indicates the second line and "12" indicates that 12th colon and the susequent colon(s) display the following messages in the picture display. "073" of "02120073" represents that a message "Change Page Format" is stored in a picture location numbered as "073". The message of "ID ITEM" is stored in the location of "0001" in the third item. FIG. 27 shows a structure of conditions that the specific messages are stored into the memory of FIG. 23. As apparent from FIG. 27, some correlated data are modified in such a manner that the message itself is modified as indicated in FIG. 27, the picture use information in the picture is changed, and that the position information or the serial number registration information are altered as indicated in FIG. 24. The operator can freely handle the message information. The modification, addition, deletion of the message sentence are carried out as follows as explained with reference to FIGS. 25(A) through 25(C). A message modification mode is first selected so that a zero-numbered message of "00-00" in the system is displayed as shown in FIG. 25(A). A SKIP key is operated to subsequently address and display the heads of group messages. Two CURSOR movement keys are operated to subsequently display the message data. As shown in FIG. 25(B), to change "Change Format (Page)" to "Change Page Format", an ENTER key is operated. Then, as shown in FIG. 25(C), a message enter-available region of an elongated box is displayed under the current message, so that a new message is inputted. In response to the operation of the ENTER key, the replacement of the message is completed. To add some new messages, during displaying "REST XXXX BYTE", the CURSOR movement keys are operated to shift the cursor in no-entered regions, so that the ENTER key is actuated to input some new data. To alter the picture use information number, a CHANGE key is operated to display the data enter-possible region under the current picture use information number. Displayed messages can be deleted by operating a DELETE key and the ENTER key. The system checks the correlation of the data so that if any error is detected, the condition is displayed. To change the menu data of FIG. 23 to those of FIG. 26, the messages of FIG. 27 are changed to those of FIG. 28 in order to complete the menu sentences. As shown in FIG. 29, the message sentences in English are changed to those in German so that the menu messages in German can be formed as shown in FIG. 30. When a plurality of message files are provided, in response to the actuation of some switch in starting power supply or some parameter in the base format information, any message can be automatically accessed in which messages written in multilanguages can be presented. In such a case, the modification mode menu of FIG. 31 should be processed. To change the menu sentence, the conventional operation in the English word processor is carried out so that when the system displays the corresponding message, the CHANGE key is operated to move the corresponding message. The ENTER key is actuated in which the menu messages of FIG. 25(C) are formed by modification. After the modification, the previous picture is recovered. In this method, "Prompt message" and "Error Message" cannot be modified, though. Further attention is now directed to a fourth preferred embodiment of the present invention for improving a search and replacement function. This function is referred to as an operation in which one or more specific letters in a specific region are searched and replaced by new one or more letters in a word processor. The following controls are used for the search and replacement function in the fourth preferred embodiment of the present invention: (1) Each time corresponding letter or letters are detected, the operator instruction is awaited. (2) After a sentence region for searching and replacing one or more specific letters is defined, the search and replacement function is carried out totally once over this region. (2)-(i) The region is defined in terms of page number. (2)-(ii) The region is defined by moving the cursor defining the region for starting and stopping the search and replacement function. (2)-(iii) the number of repeating to search and replace the one or more letters by new ones is defined. (2)-(iv) When one or more specific letters are reached in searching, the searching and replacement function is stopped. The word processor of the fourth preferred embodiment of the present invention has a sentence file characterized in that the sentence data are each stored in the unit of page as shown in FIG. 32. The sentence data are separated by several chapters and paragraphs as shown in FIG. 33. In the printed-out data are headed by running head titles H as shown in FIG. 34. The footnotes may be also provided in pages. The positions of having the running head titles (or footnotes) are stored as shown in FIG. 35 in which heads b1, b2, b3, and b4 of pages 1, 2, 3, and 4. "a" of the data of FIG. 35 stores format information. The format information defines the following items: (a) Page Size (vertical and horizontal) (b) First Typing Line (a line of staring the typing) (c) Last Typing Line (a line of ending the typing) (d) Line/inch (an inch spacing for a single line: 8 inch, 6 inch etc.) (e) The Right and Left Margins (f) Line Space (the number of changing the line or lines by using the Return key) (g) Space Pitch: 10, 12, and 15 pitch or Proportional Spacing (PS) (h) Tab Position (i) Auto Hyphenation YES or NO (j) Style Information (k) Auto Wraparound YES, or NO (l) Justification YES, or NO Normally, these data are set at the head of the sentence file. They are effective unless changed. Since the sentence file is modified, changed, added, and deleted, the paging of the sentence file should be added and changed accordingly. Conventionally, it is difficult for the word processor to store each page number of starting the corresponding chapter in the sentence file. To conduct the search and replacement function in the unit of chapter, conventionally, the cursor must be moved at the desired positions, so that it is rather troublesome. According to the fourth preferred embodiment of the present invention, an improved search and replacement function for searching and replacing one or more letters in the unit of chapter. FIG. 36 shows a flow chart of the operation for the search and replacement function according to the fourth preferred embodiment of the present invention. The word processor of this preferred embodiment comprises a control circuit operating the following steps: Step S1: The cursor is positioned at the program start position to start the search and replacement function. Step S2: The instruction of starting the search and replacement function is inputted. Step S3: One or more letters to be retrieved are inputted. Step S4: One or more letters are inputted which replace the retrieved one or more letters. Step S5: Inputted one or more letters are confirmed to detect whether other one or more letters to be retrieved are present or not. Steps S61 and S71: The page number is inputted and selected to conduct the operation of operation (2)-(i). Steps S62 and S72: The stop position is inputted to conduct operation (2)-(ii). Steps S63 and S73: The replacement number is inputted to conduct operation (2)-(iii). Steps S64 and S74: One or more letters are inputted to conduct operation (2)-(vi). Step S65: The one or more letters are retrieved according to operation (1). Till the retrieval stop instruction, the retrieval continues. Steps S66 and S76: The running head titles and footnotes forming the sentence data are inputted to define a retieval region. When these running heads and the footnotes are detected, the replacement is stopped. Step S8: Within the defined region, the search and replacement operation is conducted. According to the fourth preferred embodiment of the present invention, the head title "Sorting" is selected as shown in FIG. 33, the search and replacement function is carried out over pages 1-379. When the head "Optimum Sorting" is selected, the search and replacement function is carried out over pages 181-246. Meanwhile, even when the format information is changed and the page number of FIG. 33 is changed, no change in paging can be required according to this preferred embodiment of the present invention. Thus, according to the fourth preferred embodiment, the sentence region for the search and replacement function is defined using the running head title and the footnotes, the sentence can be edited speedy in the unit of chapter. While only certain embodiments of the present invention have been described, it will be apparent to those skilled in the art that various changes and modifications may be made therein without departing from the sprit and scope of the present invention as claimed.
|
Same subclass Same class Consider this |
||||||||||
