Abstract:
An output apparatus for outputting information in accordance with a margin position and a tab position includes a device for changing a margin position, a memory for storing a tab position, and a device for deriving a new tab position for changing the tab position stored in the memory in association with the change of the margin position by the changing device, such that a balanced output layout is obtained.

Description:
This application is a continuation, of application Ser. No. 709,608 filed March 8, 1985 now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to an output apparatus which can be connected to a sentence/image editing apparatus or the like and, more particularly, to an output apparatus provided with a uniform increasing/decreasing function of a tab interval. 
     2. Description of the Prior Art 
     Hitherto, in the case of setting a format, for example, setting a tab position in an output apparatus of a sentence/image editing apparatus, e.g., a typewriter or the like, generally, a carriage is moved to a desired position of a paper using a space key and thereafter a tab set key or the like is pressed to store the position of the carriage. 
     However, in such a conventional tab position setting apparatus, the tab setting due to a change of the margin is not considered at all. In the case of decreasing or increasing the whole tab interval due to the change of the margin, it is necessary to reset the tab interval from the beginning after all of the stored tabs are cleared. This causes the user to easily make a mistake in the tabulating operation or the like and, therefore, simplification of the operation is strongly needed. 
     SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide an output apparatus having formats with a large flexibility in consideration of the foregoing point. 
     Another object of the invention is to provide an output apparatus with a high operability in consideration of the foregoing point. 
     Still another object of the invention is to provide an output apparatus which is constituted in a manner such that an increase or decrease of the tab interval in association with the updating of the format, e.g., margin of the output apparatus is automatically performed and a new tab can be automatically set in consideration of the foregoing point. 
     Still another object of the invention is to change another output format in association with a change in output format in consideration of the foregoing point. 
     Still another object of the invention is to provide means for instructing the setting of the tab and means for newly calculating the tab position in association with a change in margin on the basis of an output of this instructing means in consideration of the foregoing point. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a perspective view of a typewriter in which the present invention is incorporated. 
     FIG. 2 is a diagram showing an operating section of the typewriter; 
     FIG. 3 is a block diagram showing an arrangement of the typewriter; 
     FIG. 4 is a block diagram for explaining the invention; 
     FIG. 5 is a flowchart for explaining the automatic changing mode of a tab position; 
     FIG. 6 is an explanatory diagram of a RAM; 
     FIG. 7 is a block diagram of a carriage section of the present invention; 
     FIG. 8 is a block diagram of different fonts that can be used with the present invention; and 
     FIG. 9 is a block diagram of a platen knob and pulse motor of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     The invention will now be described in detail hereinbelow with reference to the drawings. 
     FIG. 1 is an external perspective view of an electronic typewriter (ETW) of an embodiment according to the present invention. In the diagram, a platen knob 1 is used to manually set a paper P or to finely adjust the printing position in the longitudinal direction. When the knob 1 is pressed inwardly, it is disconnected from an internal driving pulse motor 62 as shown in FIG. 9 so that the knob 1 can be manually rotated. A paper support 2 is a guide plate for a paper P and serves to allow the printing surface to face the operator even in the case where a thin paper is used. A page end indicator 3 is a scale to indicate the length to the end line of the paper P. The operator preliminarily adjusts the indicator 3 in the vertical direction as shown by an arrow in accordance with the longitudinal length of the paper P, thereby making it possible to know the length to the last line of the paper P when the top side of the paper P which came out from about a platen 1&#39; reaches the scale position of the indicator 3. A release lever 4 is used to release the paper P from the platen 1&#39; and thereby to manually correct the gradient of the paper P. A soundproof cover 5 serves to suppress the impact sound in impact printing. Since the soundproof cover 5 is formed of transparent acrylic resin, printed characters can be seen through this cover 5. In case of changing the fonts 58, 60, as seen in FIG. 8 or exchanging a ribbon cassette 56, as seen in FIG. 7, on the typewriter ETW, a top cover 6 is opened while rotating backwardly and a type wheel 54, as seen in FIG. 7 mounted on the carriage section CR is exchanged or the ribbon cassette 56 is exchanged. This electronic typewriter ETW has four kinds of print pitches in the transverse direction: namely, 10 characters per inch (hereinafter, abbreviated as CPI); 12 CPI; 15 CPI; and proportional spacing (hereinbelow, referred to as PS) in which the print pitch varies in accordance with the size of type. A scale 8 has three kinds of scales which were written at 10-CPI pitch, 12-CPI pitch and 15-CPI pitch. In response to the pitch designated by a keyboard 10, a lamp 7 is lit, thereby indicating the position of the carriage section CR (i.e., a carriage having thereon printing means 52, as seen in FIG. 7, for printing input character information on a scale 8. The keyboard 10 consists of a character key group 10a to input and print characters and control key groups 10b and 10c arranged on both sides of the character key group 10a. A numeral 9 denotes a display such as a CRT, LCD or the like which can display one to several lines. 
     FIG. 2 is a front view of the operation panel of the electronic typewriter ETW. In the diagram, as mentioned above, a &#34;Pitch&#34; key is used to designate the number of print characters per inch. Whenever the &#34;Pitch&#34; key is pressed, a display section L1 which is constituted by lamps &#34;10&#34;, &#34;12&#34;, &#34;15&#34;, and &#34;PS&#34; such as an LED or the like regarding the pitches sequentially and cyclically flickers in accordance with the sequence of 10, 12, 15, and PS. Each unit of 10, 12 and 15 denotes the number of characters per inch; however, in case of the PS, the number of characters per inch differs depending upon the characters to be printed. A &#34;Line Space&#34; key indicates a feed amount upon line feed and a fundamental unit length 1 of the feed amount is set to 1/6 inch. In this case also, depressing of the &#34;Line Space&#34; key causes a lamp L2 to cyclically flicker similarly to the lamps &#34;10&#34;, &#34;12&#34;, &#34;15&#34;, and &#34;PS&#34; of display section L1. A &#34;KB Select&#34; key is used to give a selective meaning to a key K III by which a character cannot be selected even by use of a &#34;SHIFT&#34;  key to designate capital letters, small letters or the like, namely, a key such as K III of which a single key corresponds to three kinds of types. The state of the KB Select key is indicated by a display L3. On one hand, an &#34;RM (right margin) Control&#34; key in the right upper portion serves to indicate the function of the electronic typewriter ETW at the right margin. Whenever the &#34;RM Control&#34; key is pressed, either one of JUST, AUTO and OFF is selected. This selection is indicated by the cyclic lighting of lamps L4. When a JUST lamp is lit, a right justification function is selected. When an AUTO lamp is lit, an auto line feed is performed. OFF indicates nothing as shown by the letters. An &#34;OP Control&#34; key is used to determine the printing mode of the electronic typewriter ETW. Whenever this &#34;OP Control&#34; key is pressed, either one of lamps C, W, L, and STORE in a display L5 is lit similarly to the above, thereby indicating the printing mode. C denotes printing on a character unit basis; W shows printing on a word unit basis; L indicates printing on a line unit basis; and STORE represents registration of data into an internal storage device (text buffer TB). In case of STORE, the apparatus enters the mode of printing L on a line unit basis. A &#34;MEMORY&#34; key is used to perform an operation on a character string (sentence) and to instruct the start of operation to the storage device TB. A margin release &#34;MARREL&#34; key serves to release the state in which further character key input is blocked at the right or left margin. 
     FIG. 3 is a block diagram of the electronic typewriter (ETW), in which the same parts and components as those shown in FIG. 1 are designated by the same reference numerals and their description are omitted. 
     In the diagram, a numeral 11 denotes a central processing unit (CPU) which performs the main control of the electronic typewriter (ETW); 12 is a ROM in which a program which is executed by the CPU 11 is stored; 13 is a RAM for temporarily storing the sentence data inputted by the keys 10a, data necessary for control of the typewriter ETW, and the like and has sections 33, 35, 36, 37, a text buffer TB and a line buffer LB; 14 is a printer to print the sentence data and has a printer buffer PB; and 16 is an internal common bus of the electronic typewriter ETW for connecting each of the foregoing components to the CPU 11. The display 9 may have a display buffer DB. 
     By connecting a serial interface SR to the internal common bus 16, a data communication with another typewriter ETW or the like can be also performed. 
     Next, FIG. 4 shows a block diagram for explaining the change regarding the tab position. It will be appreciated that it is obviously possible to process such a function due to a program. In the diagram, a numeral 15 denotes a control instruction key to change the function of a tab set key 20 and to instruct the automatic setting of the tab; 20 is the tab set key; 23 is a margin set key; 24 and 27 are flip flop circuits (hereinafter, referred to as FF); 25, 26, 29, and 31 are AND gates; and 30 is an OR gate. 
     In addition, a numeral 28 indicates a carriage position tab set section to set the tab with tab set key 20 at the carriage position in accordance with an output of the AND gate 26; 22 is a tab position calculating section to calculate a new tab position in accordance with an output of the AND gate 29 as explained later; 33 is a tab RAM (random access memory) to store the tab position set by the carriage position tab set section 28 or the tab position calculated by the tab position calculating section 22; 34 is a carriage position margin set section to set the margin (LM or RM in FIG. 1) at the carriage position in accordance with an output of the AND gate 31 and to store the new margin position in a margin RAM 35 after the tab position is calculated; 35 is the margin RAM to store the margin position set by the carriage position margin set section 34; and 51 is a line to reset the flip flops 24 and 27. 
     An input terminal S 1  of the FF 24 is connected to an output terminal of the control instruction key 15. An output terminal Q 1  of the FF 24 and an output terminal of the tab set key 20 are connected to input terminals of the AND gate 25. An output terminal of the AND gate 25 is connected to an input terminal S 2  of the FF 27. The output terminal of the tab set key 20 and an output terminal Q 1  of the FF 24 are connected to input terminals of the AND gate 26. An output terminal of the margin set key 23 and an output terminal Q 2  of the FF 27 are connected to the AND gate 29. The output terminal Q 1  of of the FF 24 and an output terminal Q 2  of the FF 27 are connected to input terminals of the OR gate 30. The output terminal of the margin set key 23 and an output terminal of the OR gate 30 are connected to input terminals of the AND gate 31. 
     To update the margin position, the control instruction key 15 for instructing the change of the function of an ordinary tab set key 20 is pressed. By pressing the control instruction key 15, a high level signal is applied to the input terminal S 1  of the flip flop circuit 24. Thus, the output terminal Q 1  of the FF 24 becomes a high level and the output terminal Q 1  becomes a low level. Next, when the tab set key 20 is pressed, both input signals to the AND gate 25 become a high level, so that the output signal thereof becomes a high level. Consequently, a high level signal is applied to the input terminal S 2  of the FF 27 and its output terminal Q 2  becomes a high level and its output terminal Q 2  becomes a low level. 
     Next, depressing the margin set key 23 allows a high level signal to be supplied to the other input terminal of the AND gate 29, so that a high level signal is outputted from its output terminal. 
     This output signal of the AND gate 29 is supplied to the tab position calculating section 22. In response to the output signal of the AND gate 29, a comparing operation of the new margin which was newly set and the previous margin which has already been set in the margin RAM 35 is performed in the tab position calculating section 22. By dividing a change amount of the margin by the number of set tabs +1, the value for execution of addition or subtraction is obtained and the new tab position corresponding to each previous tab position is calculated in accordance with the value derived. 
     By replacing with this calculated value, the change of reduction or enlargement of the equal interval corresponding to the change amount of the margin set is performed with respect to the tab position stored in the tab RAM 33. This newly set tab position is the tab position in conformity with the format of the new margin which was set by the margin set key 23 and is automatically formed in response to the operation of the margin set key 23. These new tab positions stored in the tab RAM 33 are read out due to the subsequent printing operation. 
     For instance, in the case where the margin positions are set as follows 
     
         M1=10, M2=50 
    
     and the tab positions are set as follows 
     
         T1=20, T2=30, T3=40 
    
     where, a unit of numerals represents the digit number, if the margin positions are changed as follows 
     
         M1&#39;=0, M2&#39;=60, 
    
     we will have ##EQU1## where, k is an increase or decrease amount of the tab interval. Therefore, the new tab positions T1&#39;, T2&#39; and T3&#39; due to the automatic change are calculated in a manner as explained below. ##EQU2## 
     On the other hand, even in the case where the previous tab intervals are not constant, each of the previous tab intervals may be calculated using the RAM 13. 
     Further, in the case where the margin positions are set such that M1&#39;=20 and M2&#39;=40 under the same condition, k equals -5; therefore, the new tab positions are calculated in the following manner. ##EQU3## likewise, T2&#39;=30 and T3&#39;=35 are obtained. 
     In this way, according to this example, the uniform increase or decrease of the tab interval can be automatically performed in response to the change of the margin position and the new tabs are automatically set at the proper positions. 
     The output signal from the output terminal Q 1  of the FF 24 and the output signal from the tab set key 20 are transmitted to the carriage position tab set section 28 through the AND gate 26. Due to this, by pressing only the tab set key 20 instead of pressing the control instruction key 15, it is possible to accomplish an ordinary tab setting function to set the tab at the present position of the carriage section CR. 
     The foregoing automatic change of the tab position will now be further described. FIG. 5 is a flowchart and FIG. 6 is an explanatory diagram of the RAM 13. A RAM 37 for storage of a tab number is a memory having a capacity as great as two bytes and is updated whenever the tab is set and is one area in the RAM 13 in FIG. 3. A RAM 36 for a carriage position is also a memory having a capacity as great as two bytes and is one area in the RAM 13 in FIG. 3. Although the RAM 36 is not shown in FIG. 4, it serves to store the carriage position and is used with regard to the tab position calculating section 22 and carriage position margin set section 34 in FIG. 4. A numeral 35 denotes the margin RAM which is a memory having a capacity as great as two bytes and 33 is the tab RAM for storing the positions of the tab 1, tab 2, . . . . , tab n in correspondence to the tab number n in the RAM 37 for storage of the tab number. 
     In step S1 in FIG. 5, the previous and new margin positions (M1, M2, M1&#39;, M2&#39;) are calculated due to the carriage position RAM 36 and margin RAM 35. In step S2, the increase or decrease amount is calculated. When it is assumed that the increase amount is (M2&#39;-M1&#39;)-(M2-M1) and the tab positions are T1, T2, . . . . , Tn, the increase/decrease amount of the tab position of T1 becomes the increase amount/1+1. Similarly, the increase amount/n+1 regarding the tab position of Tn is calculated. Thereafter, in step S3, the new tab position is stored in the tab RAM 33. Then, the new margin is inputted to the carriage position margin set section 34 through a line 50, thereby updating the margin RAM 35 (step S4). 
     The RAM 33 for storing the positions of the tab and the like is constituted so as to update the positions, for instance, for every 24/240 inch assuming that the output mode is the 10-CPI pitch. On one hand, the tabs and the like may be stored using the margins as references. However, the distance from the leftmost end of the platen 1&#39; is always stored as the absolute amount.