Tape printing device

Abstract: A printing device (1) capable of printing a plurality of characters/symbols in a plurality of lines on a tape (5). The device determines the size of the characters/symbols to be printed on the tape based upon the number of lines to be printed and upon the number of characters/symbols to be printed within a predetermined area.

Description: The present invention relates to a printing device for printing images, such as characters/symbols, on a tape member. Conventionally, there are various proposals for a printing device for printing desired character trains ontc a tape as a recording medium having a width of about 10 mm. The present applicant proposed in United States Patent No. 5,066,152 that a printing device by which desired characters and symbols are selectively inputtec while a character selection dial is rotated, these input characters and the like are printed onto a tape with use of a thermal head in response to the operation of prin keys and the tape on which the characters and the like have been printed is adhered to a desired location of a file or the like. Further, the present applicant proposed in the United States Patent No. 07/831,971 a printing device by which the print region on print tape having a width of about 10 mm is divided into two portions along a tape width direction to provide two print lines, and input char acters are printed on a desired print line by using a dot pattern having a small character size for printing characters to the two print lines. Incidentally, it can be contemplated to prepare many kinds of print tapes having widths of, for example, 12 mm, 18 mm ... 24 mm so that these tapes can be adhered to many kinds of portions of a file, notebook and the like Further, it can be also contemplated to print characters on many lines such as 3, 4 or 5 lines. However, the printing device proposed by the present applicant In Japanese Patent Application HEI 3-91492 is arranged to print characters to 1 or 2 lines by using a relatively narrow print tape having a tape width of about 10 mm. In this case, even if a plurality of kinds of dot pattern data for characters and symbols can be provided in correspondence with a plurality of kinds of character sizes, when the size of characters to be printed is roughly aimed at and manually set in accordance with a tape width to which the size of characters to be printed is applied and the number of lines of the characters to be printed, the character size is not optimized in many cases. Thus, a problem arises in that an operation for setting an optimum character size based on a tape width and the number of lines is made complex. It is therefore an aim of the embodiment of printing device described hereinafter to automatically determine the optimum size of characters to be printed in accordance with the print conditions of the width of a tape used as a print medium and the number of lines of inputted characters. According to one aspect of the present invention, there is provided a tape printing device for printing characters/symbols on a tape member contained in a cassette when the cassette is coupled with the device, the cassette having tape width representation means for representing to the printing device the width of the tape member contained therein, the printing device comprising: sensor means for sensing the tape width representation means of a cassette, when the cassette is coupled with the device, for the determination of the width of the tape member contained in the cassette; means for inputting a length of the tape member within which length the characters/symbols are to be printed; first detecting means for detecting the number of characters/symbols to be printed in a line within said length of the tape member; second detecting means for detecting the number of lines of characters/symbols to be printed within the width of the tape member; and determining means arranged to determine the size of the characters/symbols to be printed by basing the determination upon all of: the inputted length of the tape member, the number of characters/symbols detected by said first detecting means, the width of the tape member, and the number of lines detected by said second detecting means. The determining means may be arranged to determine said size by dividing the number of dots capable of being included in the width of the tape member by the number of lines of characters/symbols to be printed within the width, and by dividing the number of dots capable of being included in a line within the inputted length of the tape member by the number of characters/symbols to be printed within the inputted length. The determining means may alternatively be arranged to determine the size of the characters/symbols to be printed by determining a first size based upon the detected number of characters/symbols and a second size based upon the detected number of lines of characters/ symbols to be printed, and thereafter to base selection of the size of characters/symbols to be printed on said first and second sizes. The determining means may be arranged to determine said first size by dividing the number of dots capable of being included in a line within said inputted length of tape member by the detected number of characters/symbols and to determine said second size by dividing the number of dots capable of being included in the width of the tape member by the detected number of lines of characters/symbols to be printed. Furthermore, a memory may be provided for storing dot data corresponding to a plurality of sizes of the characters/symbols, and wherein the determining means selects one of the plurality of sizes as the size of characters/symbols to be printed. Further optionally, there is provided means for inhibiting printing operation when the size determined by the determining means is smaller than a predetermined size. According to an embodiment of printing device of the present invention, a character size to be printed may be determined in accordance with the tape width of a tape used as a print medium and the number of lines of inputted characters, and an optimum character size based on these print conditions may be automatically determined. An embodiment of the invention will now be described, by way of example, with reference to the accompanying drawings, in which:- Fig. 1 is a plan view of a printing device embodying the present invention; Fig. 2A is a schematic plan view of a print mechanism; Fig. 2B is a side view of a cassette CS viewed from arrow II in Fig. 2A; Fig. 3 is a block diagram of the control system of the printing device; Fig. 4 is a character table showing a data arrangement composed of character sizes, the number of longitudinal dots and lateral dots; Fig. 5 is a table explaining memories provided with a RAM; Fig. 6 is a flowchart of a tape print control routine; Fig. 7 is a flowchart of a print process control routine; Fig. 8 shows an example of a printed tape, when characters are printed on one line of a print tape having a tape width of 24 mm; Fig. 9 shows an example of a printed tape when characters are printed on two lines of a similar print tape; Fig. 10 shows an example of the printed tape when characters are printed on three lines of a similar print tape; and Fig. 11 shows an example of the printed tape when characters are printed on four lines of a similar print tape. Fig. 1 is a plan view of a printing device 1 embodying the present invention. The printing device 1 is capable of printing images such as a number of characters/symbols and the like on a plurality of lines of a tape, or a tape-form printing medium in the width direction thereof. As shown in Fig. 1, a keyboard 3 is disposed on the front portion of the main body frame 2 of a printing device 1, a print mechanism PM is disposed in the main body frame 2 behind (upper direction in the figure) the keyboard 3, and further a liquid crystal display unit 22 capable of displaying characters and symbols is disposed behind (upper direction in the figure) the keyboard 3. The keyboard 3 includes character keys for inputting alphabet, or the like, numeral keys, symbol keys, a return key, non-conversion key, conversion key, print key for performing a print processing, font selection key for selecting a font of characters, tape feed key for feeding the tape 5, power supply key for tuning ON and OFF a power supply, and the like. Further, the keyboard 3 includes a character size key for setting a character size, a print length key for setting the length of the tape 5 used when characters are printed, a cursor movement key for moving a cursor in the upward and downward directions and in the right and left directions within the display unit 22, and the like. Next, the print mechanism PM will be simply described with reference to Figs. 2A and 2B. The print mechanism PM includes a rectangular tape accommodation cassette CS detachably loaded thereto. The tape accommodation cassette CS includes a tape spool 6 around which the tape 5 having a width of about 24 mm and formed of a transparent film is wound; a ribbon supply spool 8 around which an ink ribbon 7 is wound; a winding spool 9 for winding the ink ribbon 7; a supply spool 11 around which a double-sided adhesive tape 10 having the same width as that of the tape 5 is wound with the releasable paper provided facing the outside; and a adhere roller 12 for adhering the print tape 5 with the double-sided adhesive tape 10. These spools and roller are rotatably mounted to the tape accommodation cassette CS. A thermal head 13 is vertically disposed at the position where the print tape 5 is placed on the ink ribbon 7. A platen roller 14 for pressing the print tape 5 and ink ribbon 7 against the thermal head 13, and a feed roller for pressing the print tape 5 and double- sided adhesive tape 10 against the adhere roller 12 are rotatably supported by a support member 16. The thermal head 13 includes a heating element group composed of 128 heating elements aligned in the width direction of the tape 5 thereon. Therefore, when the heating element group is energized while the adhere roller 12 and winding spool 9 are driven in a predetermined rotational direction synchronously with each other in accordance with the rotation of a tape feed motor 24 (refer to Fig. 3) in a predetermined rotational direction, characters/symbols are printed onto the tape 5. Moreover, the tape 5 is fed in a tape feed direction A with being adhered with the double-sided adhesive tape 10. With respect to the detail of the print mechanism PM, refer to Japanese Patent Provisional Publication HEI 2-106555. As shown in Fig. 2A, which shows the side view of the accommodation cassette CS viewed from arrow II in Fig. 2A, a pair of projected pieces 17, 18 projecting downwardly are integrally defined to the bottom wall of the tape accommodation cassette CS so that the tape width of the tape 5 accommodated therein can be indicated by the presence or absence of these projected pieces 17, 18. More specifically, when both the projected pieces 17, 18 are provided with the tape accommodation cassette CS shown in Fig. 2, the tape 5 accommodated therein has a width of 24 mm. Although not shown, however, when only the projected piece 17 is provided with a tape accommodation cassette CS, the tape 5 has a width of 18 mm; when only the projected piece 18 is provided with a tape accommodation cassette CS, the tape 5 has a width of 12 mm; and none of the projected pieces 17, 18 is provided with a tape accommodation cassette CS, the tape 5 has a width of 6 mm. Corresponding to the projected pieces 17 and 18, first and second sensors 20, 21 composed of a photo interrupter (refer to Fig. 3) are provided in the main body frame 2 to detect the projected pieces 17, 18 when the tape accommodation cassette is loaded. Next, the control system of the printing device 1 is arranged as shown in the block diagram of Fig. 3. The key board 3, the first sensor 20, the second sensor 21, a liquid crystal display controller (LCDC) 23 having a display RAM for outputting display data to the liquid crystal display unit (LCD) 22, drive circuit 25 for driving the thermal head 13, and drive circuit 26 for driving the tape feed motor 24 are interconnected to the I/O interface 27 of a control unit C, respectively. The control unit C includes a CPU 29, the I/O interface 27 connected to the CPU 29 through a bus such as a data bus 28, ROM (Read Only Memory) 30, CGROM (Character Generator ROM) 31 and RAM 40. The ROM (as a program memory) 30 stores: a display control program for controlling the display controller 23 in correspondence with the code data of characters, numerals, symbols and the like inputted through the keyboard 3; a control program for storing the code data in a text memory 41; an image development control program for developing a dot pattern corresponding to each of the code data stored in the text memory 41 to a print buffer 51; a drive control program for controlling the drive of the thermal head 13 and tape feed motor 24 by sequentially reading data in a print buffer 34; a control program characteristic to the present application for a tape print control to be described later; a character size table 19 in which the number of longitudinal dots (T1d, T2d, T3d ... Tid) and the number of lateral dots (Y1d, Y2d, Y3d ... Yid) corresponding to each of a plurality of character sizes (S1, S2, S3 ... Si) are stored as shown in Fig. 4, and the like. Note, in the character size table 19, the character size S1 represents the maximum character size which is used when characters are printed on one line of the tape 5 having the maximum print width of 24 mm, and the character size Si represents the minimum character size which can be printed by the printing device. Further, data "Er" represents error data. The CGROM (as a pattern data memory) 31 stores dot pattern data corresponding to each of the plurality of character sizes (S1, S2, S3 ... Si) with respect to respective characters/symbols. As shown in Fig. 5, in the RAM 40, provided are: the text memory 41 for storing an input text data; a character size memory 42 for storing any of the character sizes (S1, S2, S3 ... Si) which has been set or determined based upon a calculation and used for a print processing; a memory 43 for the number of dots over a print length which stores the number of dots Ld corresponding to a set print length; a memory 44 for the number of dots over a tape width which stores the number of dots Dd corresponding to the tape width of the print tape 5 in the loaded tape accommodation cassette CS; a memory 45 which stores the number of lines M of text data; a memory 46 which stores the number of maximum characters N of the characters included in the respective lines of text data; a memory 47 which stores the number of longitudinal dots (td) determined based on a calculation; a memory 48 which stores the number of lateral dots (yd) determined based on a calculation; a longitudinal pointer 49 which stores the item number of any item of the number of dots of the number of longitudinal dots (T1d, T2d, T3d ... Tid); a lateral pointer 50 which stores the item number of any item of the number of lateral dots (Y1d, Y2d, Y3d ... Yid); the print buffer 51 having a large capacity which is capable of storing 128 bits (16 bytes) of data corresponding to 128 dots in a longitudinal direction (dot train direction), and dot pattern data for a plurality of characters in a lateral direction and stores the dot pattern data of characters to be printed at a disposal position read and indicated from the CGROM 31; and a flag memory 52 stores an automatic size mode flag AF to be set when a character size is determined in automatically. Next, a tape print control routine carried out by the control unit C of the printing device 1 will be described with reference to the flowcharts of Figs. 6 and 7, wherein numerals i (i = 10, 11, 12 ...) prefixed with "S" indicate the numbers of steps of the process. When a power supply is turned ON, this control is started. When the character key, symbol key, numeral key and the like are operated (S10:Yes; S11:Yes), a data inputting process is executed to store inputted code data in the text memory 41 as a text data. Further, a display process for displaying characters corresponding to the code data on the display unit 22 is executed (S12). If the character size key is operated (S10:Yes; S11:No; S13:Yes), a character size setting process is executed (S14). More specifically, in this setting process, first, a character size information indicating the size most often used is displayed on the display unit 22, and further four other kinds of character sizes frequently used are sequentially displayed by operating the cursor movement key, and finally the "automatic size" is displayed. A character size can be set by operating a return key when a desired character size is displayed. Note, when the "automatic size" is set as a character size, the automatic size mode flag AF is set. When the print length key is operated (S10:Yes; S11:No; S13:No; S15:Yes), a print length setting process is executed (S16). In this length setting process, first, "print length: 50 mm" is displayed, then "print length: 51 mm", "print length: 52 mm", "print length: 53 mm" ... up to "print length: 300 mm" are sequentially displayed with a pitch of 1 mm upon operating the cursor movement key. Therefore, a print length can be set by operating the return key in the state that a desired print length is displayed. When the print key is operated (S10:Yes; S11 :Yes; S13:Yes; S15:No; S17:Yes), a printing process (refer to Fig. 7) is executed (S18). When this control is started, first, the width of the tape of the loaded accommodation cassette CS is detected based on signals from the first and second sensors 20, 21, and further the dot number Dd corresponding to the tape width is determined and stored in the memory 44 (S30). Next, if the "automatic size" has been selected and thus the automatic size mode flag AF has been set (S31:Yes), the text data in the text memory 41 is searched, the number of lines M of the text data is stored in the memory 45, and the number of maximum characters N of the characters included in the respective lines is stored in the memory 46 (S32). Next, the number of longitudinal dots td of characters to be printed on each line is determined by dividing the tape width Dd by the number of lines M (S33), and further the number of lateral dots yd of the characters to be printed is determined by dividing the print length Ld by the maximum number of characters N(S34). Next, in the character size table 19, the item T1 indicating the first row of the number of longitudinal dots is set to the longitudinal pointer Tp (S35). If the number of longitudinal dots Tnd indicated by the longitudinal pointer Tp is greater than the number of longitudinal dots td determined base on the calculation (S36:No), the longitudinal pointer Tp is incremented by 1 (S37). If the longitudinal dots Tnd indicated by the longitudinal pointer Tp is not equal to the error data Er (S38:No), the steps S36 through S38 are repeated. Note that if the character size is too small, the printed character/symbol is difficult to read, or the quality of printed characters/symbols becomes quite low. For avoiding this problem, in the present embodiment, il is examined whether the number of dots is greater than a predetermined value, i.e., Er. If the number of longitudinal dots Tnd indicated by the longitudinal pointer Tp is equal to or less than the number of longitudinal dots td (S36: Yes), the value of the longitudinal pointer Tp is set to the lateral pointer Yp (S39). For example, as shown in Fig. 4, when the longitudinal pointer Tp indicates the fifth row of the table 19 in Fig. 4, in this case "5" has been set to the longitudinal pointer Tp, "5" is set to the lateral pointer Yp which indicates the row of the lateral dots in the table 19. Next, when the number of the lateral dots Ynd indicated by the lateral pointer Yp is greater than the number of lateral dots yd determined by the calculation (S40:No), the lateral pointer Yp is incremented by 1 (S41). If the number of dots indicated by the lateral pointer Yp is not error data Er (S42:No), the steps S40 through S42 are repeated. If the number of lateral dots Ynd indicated by the lateral pointer Yp is equal to or less than the number of lateral dots yd (S42:Yes), a character size Sn corresponding to the number of lateral dots indicated by the lateral pointer Yp is determined as a printing character size and stored in the character size memory 42. Next, the text data is developed to dot pattern data by using the dot pattern corresponding to the determined character size Sn in the print buffer 51 (S44), and a print processing is executed onto the tape 5 with use of the thermal head 13 based on the dot pattern data in the print buffer 51 (S45). Note, when the data indicated by the longitudinal pointer Tp is "Er" (S38:Yes) and when the data indicated by the lateral pointer Yp is "Er" (S42:Yes), an error message is displayed on the display unit 22 (S46), and the control is completed without performing printing operation. When the automatic size mode flag AF is reset (S31:No), the print processing is executed by using a set character size (S44, S45). For example, when characters are to be printed onto the tape 5 having a tape width of 24 mm on one line as shown in Fig. 8, the characters are printed at substantially the maximum character size based on the number of line "1" and tape width "24". Further, as shown in Fig. 9, when the characters are to be printed on two fines, they are printed by a character size suitable for a print on the two lines based on the number of lines "2" and tape width "24". In the same way, when the characters are to be printed on three lines, they are printed by a character size suitable for a print on the three lines (refer to Fig. 10), and when the characters are to be printed on four lines, they are printed by a character size suitable for a print on the four lines (refer to Fig. 11). As described above, since a character size to be printed is determined in accordance with the tape width of the tape 5 used as a print medium, the number of lines of input characters and a print length, an optimum character size based on these print conditions can be automatically determined. It should be noted that each dot pattern data includes the blank space between characters and lines, thereby printed characters/symbols are optimumly soaced with each other.

Claims: A tape printing device (1) for printing characters/symbols on a tape member (5) contained in a cassette (CS) when the cassette is coupled with the device, the cassette (CS) having tape width representation means (17,18) for representing to the printing device (1) the width of the tape member (5) contained therein, the printing device comprising: sensor means (20,21) for sensing the tape width representation means (17,18) of a cassette (CS), when the cassette is coupled with the device, for the determination of the width of the tape member (5) contained in the cassette; means (3) for inputting a length of the tape member (5) within which length the characters/symbols are to be printed; first detecting means for detecting the number (N) of characters/symbols to be printed in a line within said length of the tape member; second detecting means for detecting the number (M) of lines of characters/symbols to be printed within the width of the tape member; and determining means arranged to determine the size (S n ) of the characters/symbols to be printed by basing the determination upon all of: the inputted length of the tape member (5), the number of characters/symbols detected by said first detecting means, the width of the tape member, and A printing device as claimed in claim 1, wherein said determining means is arranged to determine said size (S n ) by dividing the number of dots (D d ) capable of being included in the width of the tape member (5) by the number (M) of lines of characters/symbols to be printed within the width, and by dividing the number (L d ) of dots capable of being included in a line within the inputted length of the tape member (5) by the number (N) of characters/symbols to be printed within the inputted length. A printing device as claimed in claim 1, wherein said determining means is arranged to determine the size (S n ) of the characters/symbols to be printed by determining a first size (yd) based upon the detected number (N) of characters/symbols and a second size (td) based upon the detected number (M) of lines of characters/ symbols to be printed, and thereafter to base selection of the size (S n ) of characters/symbols to be printed on said first and second sizes. A printing device as claimed in claim 3, wherein said determining means is arranged to determine said first size (yd) by dividing the number (L d ) of dots capable of being included in a line within said inputted length of tape member (5) by the detected number (N) of characters/symbols. A printing device as claimed in claim 3 or claim 4, wherein said determining means is arranged to determine said second size (td) by dividing the number (D d ) of dots capable of being included in the width of the tape member (S) by the detected number (M) of lines of characters/symbols to be printed. A printing device as claimed in any one of the preceding claims, further comprising memory means (31) for storing dot data corresponding to a plurality of different sizes (S1-Si) of characters/symbols, and wherein said determining means is arranged to select one (S n ) of said plurality of sizes as the size of characters/symbols to be printed. containing said tape member (5) and for coupling with the printing device (1), said cassette comprising said tape width representation means (17,18) for representing to the printing device the width of the tape member contained in the cassette. A printing device as claimed in any one of the preceding claims, further comprising means for inhibiting printing when the size (Er) determined by said determining means is smaller than a predetermined size (Si). A printing device as claimed in any one of the preceding claims, wherein said sensor means comprises at least one sensor (20,21) for detecting, when the cassette (CS) is coupled with the printing device (1), the existence of at least one protection (17,18) provided on a case member of the cassette, whereby to detect that the tape member contained in the cassette has a first predetermined width when the existence of said at least one projection is detected, and to detect that the tape member has a second predetermined width when the existence of said at least one projection is not detected. A combination of a printing device as claimed in any one of the preceding claims with a cassette (CS) the number of lines detected by said second detecting means. A combination as claimed in claim 9, wherein said cassette (CS) comprises a case member, and wherein said tape width representation means comprises at least one projection (17,18) on said case member for representing that the width of the tape member (5) contained in the cassette is of a predetermined width.

Inventors: NIWA AKIHIKO, NIWA, AKIHIKO, NIWA, AKIHIKO, C/O BROTHER KOGYO K.K.
Applicants: BROTHER IND LTD, BROTHER KOGYO KABUSHIKI KAISHA
Application year: 1992
Main classification: B41J2
IPC codes: B41J2, B41J3, G06F3, B41J21