Tape printers

MYPI1997000293A0Inactive Publication Date: 1997-07-29CASIO COMPUTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
MYPI1997000293
Authority / Receiving Office
MY · MY
Patent Type
Applications
Current Assignee / Owner
Priority Date
1996-01-29
Filing Date
1997-01-27
Publication Date
1997-07-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional tape printers face difficulties in performing format setting operations for combined vertical and horizontal printing, leading to uneven character sizes and poor print quality when trying to balance vertical and horizontal text on a single tape.

Method used

A tape printer with input and setting means for vertical and horizontal print modes, along with changing and control means to adjust the print mode of character string data portions, ensuring balanced and well-arranged printing by equalizing the width and length of character string data, using a tape width sensing mechanism to determine optimal print sizes within the tape width.

Benefits of technology

Enables easy format setting for combined vertical and horizontal printing, ensuring well-balanced and aesthetically pleasing output by automatically adjusting character string data portions to match the tape width, resulting in regular and well-arranged text on the tape.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

CHARACTER INPUT KEYS (2A) OF A KEY-IN UNIT (2) ARE OPERATED TO INPUT, TO A TAPE PRINTER, CHARACTER STRING DATA TO BE PRINTED ON A PRINTING TAPE (11). A FORMAT KEY (2C) IS OPERATED TO SET A VERTICAL PRINT MODE IN WHICH THE INPUT CHARACTER STRING DATA IS PRINTED VERTICALLY IN THE LENGTHWISE DIRECTION ON THE TAPE OR A HORIZONTAL PRINT MODE IN WHICH THE INPUT CHARACTER STRING DATA IS PRINTED HORIZONTALLY IN THE LENGTHWISE DIRECTION ON THE TAPE. THE INPUT CHARACTER STRING DATA IS DISPLAYED ON A DISPLAY (3).AFTER THE VERTICAL PRINT MODE IS SET BY THE OPERATION OF THE FORMAT KEY (2C),A HORIZONTAL ARRANGEMENT KEY (2G) AND A CURSOR KEY (2H) ARE OPERATED TO SPECIFY AND FIX THE RANGE OF ANY CHARACTER STRING DATA PORTION OF THE CHARACTER STRING DATA DISPLAYED ON THE DISPLAY (3) SO AS TO BE HORIZONTALLY PRINTED WIDTHWISE ON THE TAPE. THEN, WHEN A PRINT COMMAND IS GIVEN TO THE PRINTER, PRINT DATA INCLUDING VERTICAL AND HORIZONTAL PRINT DATA IS PRODUCED. IN THIS CASE, THE LENGTH OF THE PATTERN OF THE CHARACTER STRING PORTION FOR WHICH THE VERTICAL PRINT MODE IS CHANGED TO THE HORIZONTAL PRINT MODE BY THE HORIZONTAL ARRANGEMENT KEY (2G) IS EQUALIZED WITH THE WIDTH OF THE PATTERN OF THE REMAINING CHARACTER STRING DATA FOR WHICH THE VERTICAL PRINT MODE IS SET BY THE FORMAT KEY (2C), AND THE REMAINING CHARACTER STRING DATA FOR WHICH THE VERTICAL PRINT MODE IS SET AND THE CHARACTER STRING DATA PORTION FOR WHICH THE VERTICAL PRINT MODE IS CHANGED TO THE HORIZONTAL PRINT MODE ARE ARRANGED REGULARLY WITHIN THE WIDTH OF THE TAPE (11) TO BECOME PRINT DATA. THE PRINT DATA ARE THEN FED SEQUENTIALLY TO A PRINT HEAD (8) OF THE PRINTING UNIT (7) TO BE PRINTED ON THE TAPE (11).(FIG 3)
Need to check novelty before this filing date? Find Prior Art

Description

TAPE PRINTERSBACKGROUND OF THE INVENTIONThe present invention relates to tape printers which print any character string on a tape.A tape printer is conventionally used to produce a title of a video or an audio cassette. In this tape printer, when character string data to be printed is input and a print command is given to the printer, the pattern data corresponding to the print command is read from a character generator and spread as print data in a print register, and the print data is fed to a printing unit and printed lengthwise on a tape.When a vertical or a horizontal print mode is set in the conventional tape printer, the whole input character string is printed on the tape vertically or horizontally.In addition, by partially setting a vertical and a horizontal print mode in combination, vertical and horizontal print character strings can be printed in combination. More particularly, when characters should be printed vertically and horizontally on a single tape, a vertical and a horizontal print format are required to be set for the corresponding expected vertical and horizontal portions of a character string by a key-in operation and then the corresponding character string data to be printed and print sizes are keyed in. Font and character ornament data are keyed in as required.-2In the conventional printer, however, format setting for performing vertical and horizontal printing operations on a single tape is complicated and troublesome. In addition, for example, when a horizontal print character string should be combined in a vertical print character string, it is difficult to determine the size of the characters of a horizontal print character string portion well-balanced with that of a vertical print character string.As a result, the width of the vertical print character string data is not equal to the length of the horizontal print character string, which frequently fails to provide a good-looking print.SUMMARY OF THE INVENTIONIt is therefore an object of the present invention to provide a tape printer capable of easily performing a format setting operation for combined vertical and horizontal printing.Another object of the present invention is to provide a tape printer capable of arranging and printing vertical and horizontal character strings in a wellbalanced manner on a tape so as to looking print.In order to achieve the above invention provides a tape printer c input means for inputting to string data to be printed on a printVoi provide a 'goodobtapenHerta InteMc rkntdAbbKSiac-3setting means for setting, for the Input character string data, one of a vertical print mode in which the character string data input by the input means is printed vertically In a lengthwise direction on the tape and a horizontal print mode in which the character string data input by the input means is printed horizontally in a lengthwise direction on the tape; and print means for printing the input character string data on the tape in the set one of the vertical and horizontal print modes, characterized by:changing means for changing, when the vertical print mode has been set for the input character string data, the vertical print mode set for any portion of the input character string data to the horizontal print mode; and control means for equalizing the length of a pattern of the character string data portion to the width of the pattern of the remaining character string data for which the vertical print mode is set, for disposing, regularly within the width of the tape, the pattern data of the remaining character string data for which the vertical print mode is set and the character string data portion for which the vertical print mode is changed to the horizontal print mode, and for feeding, as print data, the pattern data of the remaining character string data and the character string data portion to the print means.-4According to this tape printer, the width of character string data portion for which the vertical print mode is changed to the horizontal print mode is equalized to the length of the remaining character string data portion for which the vertical print mode is set in the vertical print character string data, and the remaining character string data and the character string data portion are then printed to provide a good-looking print where the remaining vertical print character string data and the horizontal print character string data portion are arranged regularly in a well-balanced manner. Changing the vertical print mode to the horizontal print mode, or setting the horizontal print mode, for the above portion of the vertical character string is easily performed by selecting such character string data portion with the changing means.Also, in order to achieve the above objects, the present invention provides a tape printer comprising: a printer body;a printing tape accommodated in a cassette which is set in the printer body;tape width sensing means provided in said printer body for sensing the width of the tape from the shape of the cassette;input means for inputting to the printer character string data to be printed on the tape;setting means for setting, for the input character-5string data, one of a vertical print mode in which the character string data input by said input means is printed vertically in a lengthwise direction on the tape and a horizontal print mode in which the character string data input by said input means is printed horizontally in a lengthwise direction on the tape; and print means for printing the input character string data on the tape in the set one of the vertical and horizontal print modes, characterized by:changing means for changing, when the vertical print mode has been set for the input character string data, the vertical print mode set for any portion of the input character string data to the horizontal print mode;print size determining means for determining the print size of the respective character data of the character string data inputted by the input means so as to be a maximum size falling within the width of the tape sensed by the tape width sensing means; and control means for equalizing the length of a pattern of the character string data portion for which the horizontal print mode is set to the width of the pattern of the remaining character string data for which the vertical print mode is set and corresponding to the print size determined by the print size determining means, for disposing the pattern data of the remaining character string data for which the vertical print mode-6is set and the character string data portion for which the vertical print mode is changed to the horizontal print mode so that they are arranged regularly within the width of the tape, and for feeding, as print data, the pattern data of the remaining character string data and the character string data portion to the print means.According to this tape printer, the width of character string data portion of the vertical print character string for which the vertical print mode is changed to the horizontal print mode is equalized to the length of the remaining character string data for which the vertical print mode is set, a maximum possible print size accommodated in the width of a tape set in the printer is selected for the remaining character string data, and the remaining character string data and the character sting data portion are printed to provide a good-looking print in which the remaining character string data and character string data portion are arranged regularly in a well-balanced manner. Changing the vertical print mode to the horizontal print mode, or setting the horizontal print mode, for the above portion of the vertical character string data is easily performed by selecting such character string data portion with the changing means. BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a perspective view of a tape printer as-7an embodiment of the present invention;FIG. 2 illustrates the structure of a tape cassette accommodating section provided in the body of the tape printer;FIG. 3 Is a block diagram of an electronic circuit of the tape printer;FIG. 4 Illustrates the arrangement of registers provided in a RAM of the tape printer;FIG. 5 shows a one-character data structure of character string data stored as text data in an input buffer of the RAM;FIG. 6 Is a flow chart indicative of a text producing process performed by the tape printer;FIG. 7 is a flow chart indicative of a tape printing process performed by the tape printer;FIG. 8 illustrates the display state of input text data involved in the text producing process; andFIG. 9 illustrates printed text data involved in the tape printing process. DESCRIPTION OF THE PREFERRED EMBODIMENTSA preferred embodiment of a tape printer according to the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a perspective view of the tape printer. As shown in FIG. 1, a printer body 1 has on its upper surface a key-in unit 2, a liquid crystal display 3, and a tape cassette accommodating section 5 covered with an openable cover-84.The key-in unit 2 is provided with character keys 2a used to input text (character string), numeral, and symbol data; a MENU key 2b operated to display a menu select screen; a FORMAT key 2c operated to set a format in a text producing mode; a SIZE key 2d operated to display a character (print) size select screen; a FONT key 2e operated to display a font select screen; an ornament (ORN) 2f operated to display a character ornament select screen; a horizontal arrangement (H-AR) key 2g operated to specify a range of a portion of character string data input in a set vertical print mode as being printed horizontally in the transverse direction on the tape; and a cursor key 2h operated to move a cursor / to select data on the display screen.The FORMAT key 2c is used to set a vertical or a horizontal print mode in the text producing mode. The vertical print mode involves printing input character string data vertically in the lengthwise direction on the tape whereas the horizontal print mode involves printing input character string data horizontally in the lengthwise on the tape.Reference numeral 6 denotes a tape exit through which a printed tape 11 is discharged outward from the printer body.FIG. 2 shows the inside of the cassette accommodating section 5 viewed when the cover 4 of the-9printer body 1 is opened. Provided within the cassette accommodating section 5 is a printing unit 7 including a thermal printer. A tape cassette 10 which includes a printing tape 11 and a heat transfer ink ribbon 12 is insertable into the cassette accommodating section 5.The printing unit 7 is provided with a print (thermal) head 8 which is driven to produce heat depending on print data, a platen roller 9 and an ink ribbon winding shaft 14 which are rotated to carry the tape 11 and the ink ribbon 12, respectively, when the thermal head 8 is driven.The thermal head 8 is provided with a plurality of heating elements 15 arranged in a line transversely over the tape 11 and attached to a support 17 turnable around a pivot 16. In printing, the thermal head 8 turns around the pivot 16 to press the platen roller 9 and when the cover 4 is opened to change the tape cassette 10, the thermal head 8 is moved away from the platen roller 9. In printing, each time the thermal head 8 prints one line data, the platen roller 9 is rotated counterclockwise through a given angle to feed the tape 11 and the ink ribbon 12 by a predetermined length. At this time, the ink ribbon winding shaft 14 is rotated clockwise to wind the used portion of the ink ribbon 12.Rotating means for the platen roller 9 and the ink ribbon winding shaft 14 is composed of a drive source such as a stepping motor (FIG. 3), and a transmission-10mechanism 40a including a chain of gears (not shown) which reduces the rotational speed of the drive source and transmits the reduced speed to the platen roller 9 and the ink ribbon winding shaft 14, which is similar to that of the conventional tape printer.The tape cassette 10 to be set in the cassette accommodating section 5 is provided with a tape roll 18, an ink ribbon feed reel 19 with a new ink ribbon roll, and a winding roller 20 to wind a used ink ribbon. The cassette case 17 has a recess 21 in which the thermal head 8 is accommodated and also in which parts of the tape 11 and ink ribbon 12 are pulled from the cassette case 17 and set between the thermal head 8 and the platen roller 9.The printing tape 11 is composed of a synthetic resin sheet having a front surface used as a printing surface and a peelable paper sheet bonded to a back surface of the resin sheet.Printing tapes 11 are prepared which have various widths, for example, of 12, 18 and 24 mm and hence the corresponding tape cassettes 10 are prepared which contain such respective tapes. The cassette accommodating section 5 is provided with a sensor 43 (FIG. 3) to sense the shape of a tape cassette 10 set there to obtain information on the width of the tape accommodated in the tape cassette 10. The outer shape of the tape cassette 10 varies partially depending on-lithe width of the tape 11 accommodated in the tape cassette 10. The sensor 43 Is composed of a plurality of switches (not shown) which abut on the varying shape portions of the cassette 10. Thus, a combination of on / off states of the respective switches changes depending on the kind of the tape cassette 10 used to thereby provide information on the width of the tape 11 used.A cutter 22 which includes a fixed edge 23 and a movable edge 24 is provided adjacent the tape exit 6 to cut a used portion of the tape 11 by driving a motor 36 (FIG. 3) to move the movable edge 23 against the fixed edge 22.FIG. 3 is a block diagram of an electronic circuit of the inventive tape printer. The electronic circuit of the tape printer includes a controller (CPU) 30 which is responsive to a key operation signal from the key-in unit 2 to start up a system program stored in a ROM 31 to control the respective operations of the circuit elements.The controller 30 is connected to the key-in unit 2, ROM 31, RAM 32, a character generator 33, a printing unit 7 via a print control unit 34, a display 3 via a display driver 35, and a cutter driver 38 which includes the motor 36 to drive the cutter 22 and a drive circuit 37 for the motor 36.The printing unit 7 is further provided with a head-12driver 39 which drives the thermal head 8, and a tape / lnk ribbon conveyance driver 42 which includes the stepping motor 40 and a drive circuit 41 for the stepping motor 40. The rotational output of the stepping motor 40 is transmitted through the transmission mechanism 40a including a chain of gears (not shown) to the platen roller 9 and the ink ribbon winding shaft 14. Each time one line of heating elements of the thermal head 8 is driven to produce heat, the printing tape 11 and the Ink ribbon 12 are carried by a predetermined length.ROM 31 contains a system control program for the controller 30 such as a program for controlling the input of text data in various data input modes and a print control program.The character generator 33 contains display and print pattern data corresponding to all characters / symbol codes inputtable through the key-in unit 2.The controller 30 is connected to the sensor 43 which gets Information on the width of the printing tape11. As described above, the sensor 43 Is provided in the cassette accommodating section 5 and composed of the plurality of switches (shown) which are turned on / off depending on the changing outer shape of a tape cassette 10 set In the cassette accommodating section 5.When the SIZE key 2d of the key-ln unit 2 is-13operated, 40 kinds of size specifying data lxl-lx8, 2x1-2x85x1-5x8 where «1x1 represents a standard character size are displayed on a character size select screen displayed on the display 3. When the FONT key 2e is operated, font specifying data such as gothic and writing brush are displayed on a font select screen displayed on the display 3. When the ornament (ORN) key 2f is operated, character ornament specifying data such as half-tone dot meshing, underline, and framed are displayed on a character ornament select screen displayed on the display 3.FIG. 4 shows the arrangement of various registers in RAM 32 of the tape printer. RAM 32 is provided with an input buffer 32a which stores keyed-in character string data as text data; a display buffer 32b in which data for each character to be displayed on the display 3 is read from the character generator 33 and disposed and stored as bit map data; a print buffer 32c in which data for each character to be printed by the printing unit 7 is read from the character generator 33 and disposed and stored as bit map data; an operation mode flag register 32d which is set at A · 0 in the text producing mode and set at A = 1 in the print mode; a format mode flag register 32e which is set at B = 1 when a vertical print mode is set in the text producing mode, and set at B = 0 when a horizontal print mode is set in the text producing mode; a print size data memory 32f in-14whlch a print size selected and set in the print size select screen in the text producing mode is stored; a font data memory 32g in which font data selected and set on the font select screen is stored; a character ornament data memory 32h in which font ornament pattern data selected and set on the character ornament select screen is stored; a pointer register 32i in which point data P to sequentially specify the respective character data of the text data stored in the input buffer 32a in the print mode is stored; a count register 32j which stores the count C of successive character data each having a horizontal arrangement flag H = 1 set for partial horizontal printing among the character string of text data stored in the input buffer 32a in the print mode; a tape width data register 32k in which data indicative of a tape width sensed by the sensor 43 is stored; and a work memory 32m for data processing.The display 3 has a dot matrix-type display screen which is driven by the controller 30 in accordance with display data stored in the display buffer 32b of RAM 32 for displaying purposes.The printing unit 7 is of the heat transfer type which prints, by one-dot-line data, print data stored in the print buffer 32c of RAM 32 on a tape 11 fed out from the tape roll 18 by melting the ink ribbon 12 against the tape 11.FIG. 5 shows a one-character data structure of-15character string data stored as text data in the input buffer 32a. The one-character data stored in the input buffer 32a Is composed of character code data stored as code data; attribute data indicative of the kind of a font to be used, an ornament pattern, and a print size; and horizontal arrangement flag data indicative of the presence of a specified partial horizontal print mode. The print size data, font data, and character ornament data are set and stored in the corresponding memories 32f-32h. Each time character data is input as code data, the print size data, font data, and character ornament data are stored as attribute data in correspondence to the input character data. When the horizontal arrangement (H-ARR) key 2g and cursor key 2h are operated to specify, for partial horizontal printing, the range of a portion of the input character string data, the horizontal arrangement flag H = 1 is stored for the respective character data of the portion of the specified range.The operation of the inventive tape printer will be described next.FIG. 6 is a flow chart indicative of a text producing process performed by the tape printer. FIG. 7 is a flow chart indicative of a tape printing process performed by the tape printer. FIG. 8 illustrates the display of input text data involved in the text producing process. FIG. 9 illustrates printed text data-16involved in the tape printing process.When a text producing menu is selected in the state in which the menu select screen is displayed on the display 3 by the MENU key 2b of the key-in unit 2, the text producing mode flag A 0 is set in the operation mode flag register 32d of RAM 32, so that the text producing process of FIG. 6 is started up and possible data stored in the respective other registers of RAM 32 are cleared for initialization (step SI).In response to this operation, the controller 30 is placed in a key-in data waiting state. When the FORMAT key 2c of the key-in unit 2 is operated, the format select screen which requires to select one of the vertical print and horizontal print modes is displayed on the display 3 (step S2-»S3).When the vertical print mode is then selected, the vertical print flag B - 1 is set in the format mode flag register 32e of RAM 32 (step S3-»S4, S5).When horizontal print mode is then selected on the format select screen, the horizontal print flag B = 0 is set in the format mode flag register 32e (step S3->S4-»S6).When the SIZE key 2d is operated on the format select screen to set the print size, font, and ornament of a character string to be input for vertical printing in the state where the vertical print mode is set and the vertical writing flag B = 1 is set in the format-17mode flag register 32e, the character size select screen in which a total of 40 kinds of print size data; 1x11x8, 2x1-2x8,...5x1-5x8 are disposed is displayed on the display 3 (step S7-»S8). Since the sensor 43 gets information on the width of a tape set, only a print size suitable for the set tape is displayed.When any print size is selected in accordance with the displayed data on the print size select screen, the selected print size data is stored in the print size data memory 32f (step S8-»S9).Then, when the FONT key 2e is operated, a font select screen in which the kinds of font such as gothic, and writing brush are disposed is displayed on the display 3 (step S1O-»S11).When any font is selected on the font select screen, the selected font data is stored in the font data memory 32g (step S11-»S12).Further, when the ornament (ORN) key 2f is operated, a character ornament select screen in which character ornament patterns such as half-tone dot meshing, underline, and framed are disposed is displayed on the display 3 (step S13-»S14).When any ornament pattern is selected on the character ornament select screen, the corresponding selected ornament data is stored in the character ornament data memory 32h (step S14-»S15).-18When character input keys 2d of the key-in unit 2 are operated to key in, for example, A, B, C, D, E in this order in the state where attribute data (print size, font and ornament) for character data to be input as text data are set and stored, the input individual character data are stored sequentially as character code data in the input buffer 32a, and the attribute data set and stored in the print size data memory 32f, font data memory 32b and character ornament data memory 32h are added to each of the character code data and stored (step S16-»S17, S18).In this case, it is determined that the text producing mode flag A 0 is set for each input character in the operation mode flag register 32d, and control then passes to the next character input waiting state (step S19-+S16).When any character string ABODE is input and stored as text data in the input buffer 32a, font pattern data depending on the character code data and attribute data of the respective character data which compose the input text data is read from the character generator 33, and is disposed in the display buffer 32b and displayed on the display 3 (FIG. 8).If the horizontal arrangement key (H-ARR) 2g is operated when horizontal printing of any character string portion, for example, CD” is desired among the character string ABODE of the text data input and-19displayed in the set vertical print format mode, it is determined that the vertical print flag B = 1 is set in the format mode flag register 32e, so that it is then determined whether there is any input character data at the position pointed by the cursor on the display 3 (step S20-»S21-»S22).If so, it is then determined whether the range of the character string portion intended for partial horizontal printing is specified on the display (for example, by the cursor and by an enter key (not shown)) (step S22-»S23).FIG. 8 shows specifying characters CD of the character string ABCDE for partial horizontal printing. Thereafter, it is determined whether the number of characters in the specified range is not more than a predetermined number a. If so, the horizontal arrangement flag H = 1 is annexed to the individual character data C, D in the specified range (FIG. 5) and the resulting data are stored in the input buffer 32a (step S23-»S24-»S25). The predetermined number a is predetermined depending on input data having a print size stored in the print size data memory 32f, and contained in ROM 31.When it is determined that the number of characters in the specified range for partial horizontal printing exceeds the predetermined number a, an error message is displayed on the display 3 to urge the user to reset a-20range for partial horizontal printing (step S24-»S26).When the horizontal printing of any character string portion, for example, CD of the input character string ABCDE is desired in the state where the vertical print mode is set in the text producing process, the range of the appropriate character string portion CD is required to be specified by the horizontal arrangement (H-ARR) key 2g and the cursor key 2h.Then, the printing operation of the text data ABCDE produced in the text producing process will be described next.When the MENU key 2b is operated to display a menu select screen on the display 3 and the PRINT displayed on the menu select screen is selected, the print mode flag A = 1 is set in the operation mode flag register 32d to start up the printing process of FIG. 7.When the printing process is started up, the pointer register 32i and the counter register 32j of RAM 32 are cleared to 0 for initialization (step Al).Then, it is determined whether the vertical print flag B = 1 is set in the format mode flag register 32e. If so, the pointer data P in the pointer register 32i is set at 1 and the first character of the text data stored in the input buffer 32a is specified (step A2-»A3).-21In this case, when it is determined that text data ABCDE is stored in the input buffer 32a and that its first character is A, it is then determined whether the horizontal arrangement flag ”H = 1 is annexed to that character data (step A4->A5).In this case, since no horizontal arrangement flag H - 1 is annexed to the first character A of the text data, font pattern data A corresponding to the character code data specified by the pointer data P = 1” and its attribute data are read from the character generator 33 and disposed vertically in the print buffer 32c (step A5-»A6).In response to this operation, the pointer data P of the pointer register 32i is incremented by one to become 2 and a second character of the text data stored in the input buffer 32a is specified (step A7).In this case, when it is determined that there is B as a second character of the text data, it is further determined that no horizontal arrangement flag H = 1 is annexed to the second character B”. Thus, font pattern data B corresponding to the character code data specified by the pointer data P = 2 and its attribute data is read from the character generator 33 and disposed vertically in the print buffer 32c (step A8->A5-»A6).Thereafter, the pointer data P of the pointer register 32i is again incremented by one to become 3-22and a third character of the text data stored in the input buffer 32a is specified and it is then determined whether there is any input character (steps A7, A8).In this case, when it is determined that there is C as a third character of the text data, it is then determined that the horizontal arrangement flag H = 1 is annexed to the third character C. Thus, the count C of the counter register 32j is incremented by one and the number of successive characters having the horizontal arrangement flag H = 1 is set at 1 (step A8-»A5-»A9 ).In response to this operation, the pointer data P of the pointer register 321 is incremented by one to become 4 and a fourth character of the text data stored in the input buffer 32a is specified, and it then is determined whether there is any input character(steps A10, All).At step All, when it is determined that there is, for example, no fourth character of the text data, character data to which the horizontal arrangement flag H = 1 is annexed is only the third character C. Thus, subsequent to the first and second characters A and B, the pattern data representing a regular vertical print font of the third character C is read from the character generator 33 and disposed in the print buffer 32c (A11-»A6).When it is determined at step All that there is D-23as a fourth character of the text data, it is then determined that the horizontal arrangement flag H = 1 is annexed to the fourth character D. Thus, count data C of the counter register 32j is further incremented by one to become 2 and the number of successive characters each having the horizontal arrangement flag H - 1” is set at 2 (step A11-*A12-A9 ).In response to this operation, the pointer data P of the pointer register 32i is incremented by one to become 5 and a fifth character of the text data stored in the input buffer 32a is specified, and it is then determined whether there is any input character (steps A10, All).When it is determined that there is the fifth character E in the text data, it is then determined that no horizontal arrangement flag H = 1 is annexed to the fifth character E. Thus, the count data C of the counter register 32j is read and it is then determined whether the number of successive characters C = 2 each having the horizontal arrangement flag H = 1 and counted so far exceeds one (step A11-*A12->A13, A14).If it is determined at step Al4 that the number of successive characters each having the horizontal arrangement flag H = 1 and indicated, for example, by the count data C of the counter register 32j is not more-24than one, the count data C is cleared to 0 and pattern data representing character data corresponding to the count C is read as a regular vertical print font from the character generator 33 and disposed in the print buffer 32c (step A14-»A15, A6).When it is determined at step Al4 that the count data C stored in the counter register 32j is 2 and that the number of successive characters each having the horizontal arrangement flag H = 1 is two (C and D) or exceeds one, font pattern data C and D corresponding to the character code data to which the horizontal arrangement flag H = 1 is annexed are read from the character generator 33 and the font patterns of those two characters are reduced in length such that the reduced font patterns are arranged horizontally within the width of the tape 11 sensed by the sensor 43 and that the whole horizontal length L of a pattern composed of the patterns of the two horizontally arranged fonts (FIG. 9) is equal to the width W (FIG. 9) of the pattern of the vertical print character string data stored in the character size data memory 32f (step A14-+A16).In this case, the character data specified to be horizontally arranged are C and D. In order that the sum of the lengths of the two characters C and D each having an maximum size may be equal to the width W of the respective other regular vertical print fonts A, B and E, the two respective character data C-25and D to be horizontally arranged are reduced in width to one half. This processing is performed in the work memory 32m by ORing dots, which compose the font pattern having the print size read from the character generator 33, two dots at a time along each of parallel dot rows extending widthwise on the font pattern.While the above reducing process involves halving the width of the font pattern, the rate of reduction is determined depending on the number of characters to be printed horizontally. For example, if the number of characters to be printed horizontally is three, the width of the pattern of each of those characters should be reduced to one third. If the number of characters to be printed horizontally is four, the width of the pattern of each of those characters should be reduced to one fourth.While in the embodiment the width of the pattern of the font is illustrated as reduced, pattern data representing of characters of an appropriate small size may be used if they are stored previously in the character generator 33.When the pattern data specified for the horizontal printing is thus produced, the font pattern data CD is written horizontally in the print buffer 32c subsequently to pattern data representing the first and second regular vertical print fonts A and B disposed in the print buffer 32c (step A17).-26In response to this operation, since the successive character data to each of which the horizontal arrangement flag H = 1 is annexed have disappeared, the count data C in the counter register 32j is cleared to 0, and it is then determined whether there is a fifth character of the text data specified by the pointer data P - 5 in the pointer register 32i (step A18-»A8).In this case, when it is determined that there is a fifth character E of the text data, it is then determined that there is no horizontal arrangement flag H - 1 annexed to the fifth character E. Thus, font pattern data E corresponding to the character code data specified by the point data P = 5 and its attribute data is read from the character generator 33 and disposed vertically subsequent to the pattern data representing A, B, CD disposed already in the print buffer 32c of RAM 32 (step A8-»A5-»A6).In response to this operation, the pointer data P in the pointer register 32i is further incremented by one to become 6 and a sixth character of the text data stored in the input buffer 32a is specified (step A7).In this case, it is determined that there is no sixth character of the text data, so that the production of the vertical print pattern data including the horizontal print range data disposed in the print buffer 32c is completed. The print size is determined on the basis of tape width information gotten by the sensor 43,-27and the vertical and horizontal print data are arranged within the tape width. The print data is then output to and printed by the printing unit 7 on the tape 11, as shown in FIG. 9 (step A8->A19).When it is determined at step A2 that the horizontal arrangement mode flag B « 0 is set in the format mode flag register 32c, all the respective font pattern data read from the character generator 33 in correspondence to all the character code data and their attribute data of the text data stored in the input buffer 32a are disposed horizontally in the print buffer 32c, and output to and printed by the printing unit 7 on the tape 11 horizontally (step A2-»A20, A19).Thus, according to the inventive tape printer, when the horizontal arrangement H-ARR key 2g of the key-in unit 2 is operated to specify, for horizontal printing, a range of any character string portion CD of the character string data ABODE stored as text data to be printed vertically in the input buffer 32a, the horizontal arrangement flag H = 1 is annexed to each of the character data in the specified range for horizontal printing and the resulting data is stored. When a printing process is started up, the range of the character string portion for horizontal printing is determined based on the number of successive characters of the text data to each of which the horizontal arrangement flag H is annexed, the respective lengths of-28the appropriate horizontal print character patterns are reduced such that the total length L composed of the lengths of the horizontal print character patterns is equal to the width W of the other respective vertical print character patterns and the resulting pattern data are disposed in the print buffer 32c, and the text data are printed by the printing unit 7 as the vertical print text data including horizontal print character data. In summary, only by specifying a range of a portion of the input text data for horizontal printing, the fonts in the specified range are reduced automatically in length and printed horizontally on the tape subsequently to the vertical print fonts. That is, this process is very easily performed.While in the above description, character string data and print size data are illustrated as being input through the key-in unit 2, a maximum print size falling within the width of the tape 11 can be set automatically. Since information on the width of the tape 11 is obtained by the sensor 43, a maximum print size for a tape having a particular width is predetermined and stored in ROM 31. In the text producing mode, a print size is set automatically based on both the tape width information obtained from sensor 43 and the maximum print size data stored in ROM 31, and stored in print size data memory 32f. This saves the user the trouble of inputting print size data and-29provides a good-looking print in which characters are printed in maximum sizes within the width of the tape11.

Claims

1. A tape printer comprising: input means (2a) for inputting to the printer character string data to be printed on a printing tape (11); setting means (2c) for setting, for the input character string data, one of a vertical print mode in which the character string data input by the input means (2a) is printed vertically in a lengthwise direction on the tape (11) and a horizontal print mode in which the character string data input by the input means (2a) is printed horizontally in a lengthwise direction on the tape (11); and print means (7) for printing the input character string data on the tape (11) in the set one of the vertical and horizontal print modes, characterized by: changing means (2g) for changing, when the vertical print mode has been set for the input character string data, the vertical print mode set for any portion of the input character string data to the horizontal print mode; and control means (30) for equalizing the length of a pattern of the character string data portion to the width of the pattern of the remaining character string data for which the vertical print mode is set, for disposing the pattern data of the remaining character string data for which the vertical print mode is set and the character string data portion for which the vertical print mode is changed to the horizontal print mode, so as to be arranged regularly within the width of the tape (11), and for feeding, as print data, the pattern data of the remaining character string data and the character string data portion to said print means (7).

2. The tape printer according to Claim 1, wherein said control means (30) comprises: nl a '7 ( OC > pattern data storage means (33) which contains pattern data corresponding to the respective character data of the character string data inputted by the input means (2a); size changing means (A16) for receiving, from said pattern data storage means (33), pattern data corresponding to the respective character data of the character string data portion for which the vertical print mode is changed to the horizontal print mode by said changing means (A16) and for changing the size of the received pattern data such that the length of the pattern of the character string data portion for which the vertical print mode is changed to the horizontal print mode is equal to the width of the pattern of the remaining character string for which the vertical print mode is set; print data producing means (A17) for receiving from said pattern data storage means (33) pattern data corresponding to the respective character data of the remaining character string data for which the vertical print mode is set, for combining the received pattern data corresponding to the remaining character string data and the received pattern data corresponding to the character string data portion for which the vertical print mode is changed to the horizontal print mode into print data to be disposed regularly within the width of the tape (11); data feeding means (30) for feeding to said printing means (7) the print data produced by said print data producing means (A17).

3. A tape printer according to Claim 1 or 2, further comprising display means (3) for displaying the character string data input by the input means (2a), and wherein said changing means (2g) comprises key-in means (2h) for specifying on a display screen of said display means (3) any character string data portion of the input character string data for which the vertical print mode is changed to the horizontal print mode.

4. A tape printer according to Claim 1 or 2, wherein said changing means (2g) comprises input buffer means (32a) for storing the character string data portion for which the vertical print mode is changed to the horizontal print mode, in correspondence to the respective character string data input by the input means (2a).

5. A tape printer according to Claim 1, further comprising determining means (A14) for determining whether the number of character data of the character string data portion for which the vertical print mode is changed to the horizontal print mode exceeds a predetermined number; and means (A15) for invalidating the horizontal print mode to which the vertical print mode was changed for the character string data portion when the number of character data of the character string data portion exceeds the predetermined number.

6. A tape printer comprising: a printer body (1); a printing tape (11) accommodated in a cassette which is set in the printer body (1); tape width sensing means (43) provided in said printer body (1) for sensing the width of the tape (11) from the shape of the cassette (10); input means (2a) for inputting to the printer character string data to be printed on the tape (11); setting means (2c) for setting, for the input character string data, one of a vertical print mode in which the character string data input by said input means (2a) is printed vertically in a lengthwise direction on the tape (11) and a horizontal print mode in which the character string data input by said input means (2a) is printed horizontally in a lengthwise direction on the tape (11); and print means (7) for printing the input character string data on the tape (11) in the set one of the vertical and horizontal print modes, characterized by: changing means (2g) for changing, when the vertical print mode has been set for the input character string data, the vertical print mode set for any portion of the input character string data to the horizontal print mode; print size determining means (30) for determining the print size of the respective character data of the character string data inputted by said input means (2a) so as to be a maximum size falling within the width of the tape (11) sensed by said tape width sensing means (43); and control means (30) for equalizing the length of a pattern of the character string data portion for which the horizontal print mode is set to the width of the pattern of the remaining character string data for which the vertical print mode is set and corresponding to the print size determined by said print size determining means (30), for disposing, regularly within the width of the tape, the pattern data of the remaining character string data for which the vertical print mode is set and the character string data portion for which the vertical print mode is changed to the horizontal print mode, and for feeding, as print data, the pattern data of the remaining character string data and the character string data portion to said print means (7).

7. The tape printer according to Claim 6, further comprising display means (3) for displaying the character string data input by the input means (2a), and wherein said changing means (2g) comprises key-in means (2h) for specifying on a display screen of said display means (3) any character string data portion of the input character string data for which the vertical print mode is changed to the horizontal print mode.

8. The tape printer according to Claim 6, wherein said changing means comprises input buffer means (32a) for storing the character string data portion for which the horizontal print mode is set, in correspondence to the respective character string data input by the input means (2a).

9. The tape printer according to Claim 6, further comprising determining means (A14) for determining whether the number of character data of the character string data portion for which the vertical print mode is changed to the horizontal print mode exceeds a predetermined number; and 5 means (A15) for invalidating the horizontal print mode to which the vertical print mode was changed for the character string data portion when the number of character data of the character string data portion exceeds the predetermined number.