The present application is based on, and claims priority from JP Application Serial Number 2022-209032, filed Dec. 26, 2022, the disclosure of which is hereby incorporated by reference herein in its entirety.
The present disclosure relates to a print data generation apparatus, a control method of a print data generation apparatus, and a non-transitory computer-readable storage medium storing a program.
As disclosed in JP-A-11-020249, an apparatus is known, which has a center arrangement function of arranging an object at a center of a tape in a tape feeding direction. By setting the center arrangement function, a user can arrange the object on the tape with good appearance. In addition, an apparatus is also known, which can select any one of a tape length fixing function of deciding a tape length to be a fixed length designated by the user, and a tape length automatic function of automatically setting the tape length in accordance with a rear end position of the object arranged on the tape. By selecting the tape length automatic function, the user can reduce the tape consumption as much as possible.
The apparatus in the related art can receive the setting of the center arrangement function when the tape length fixing function is selected, but cannot receive the setting of the center arrangement function when the tape length automatic function is selected. Therefore, when the tape length automatic function is selected, the user cannot obtain a print result utilizing both functions of the tape length automatic function and the center arrangement function.
The present disclosure is a print data generation apparatus that generates print data for causing a tape printing apparatus to print an object on a tape fed in a first direction, the print data generation apparatus including a reception section that receives selection of any one of a tape length fixing function of deciding a tape length to be a fixed length designated by a user and a tape length automatic function of deciding the tape length by setting, as a tape rear end position, a position separated by a margin length in a second direction opposite to the first direction from an object rear end position, which is a position of an end portion of the object in the second direction, and setting, for the object, of a center arrangement function of arranging the object at a center of the tape in the first direction, and a generation section that generates the print data, in which the generation section arranges, when the center arrangement function is set for the object in a case in which the tape length fixing function is selected, the object for which the center arrangement function is set at the center of the tape in the first direction while maintaining the fixed length, and decides, when the center arrangement function is set for the object in a case in which the tape length automatic function is selected, the tape length such that a position separated by the margin length in the first direction from an object front end position, which is a position of an end portion of the object for which the center arrangement function is set in the first direction, is a tape front end position and a position separated by the margin length in the second direction from the object rear end position of the object for which the center arrangement function is set is the tape rear end position, to generate the print data such that the object for which the center arrangement function is set is arranged at the center of the tape in the first direction.
The present disclosure is a control method of a print data generation apparatus that generates print data for causing a tape printing apparatus to print an object on a tape fed in a first direction, the control method including causing the print data generation apparatus to execute a reception step of receiving selection of any one of a tape length fixing function of deciding a tape length to be a fixed length designated by a user and a tape length automatic function of deciding the tape length by setting, as a tape rear end position, a position separated by a margin length in a second direction opposite to the first direction from an object rear end position, which is a position of an end portion of the object in the second direction, and setting, for the object, of a center arrangement function of arranging the object at a center of the tape in the first direction, and a generation step of generating the print data, in which in the generation step, when the center arrangement function is set for the object in a case in which the tape length fixing function is selected, the object for which the center arrangement function is set is arranged at the center of the tape in the first direction while maintaining the fixed length, and when the center arrangement function is set for the object in a case in which the tape length automatic function is selected, the tape length is decided such that a position separated by the margin length in the first direction from an object front end position, which is a position of an end portion of the object for which the center arrangement function is set in the first direction, is a tape front end position and a position separated by the margin length in the second direction from the object rear end position of the object for which the center arrangement function is set is the tape rear end position, to generate the print data such that the object for which the center arrangement function is set is arranged at the center of the tape in the first direction.
The present disclosure is a non-transitory computer-readable storage medium storing a program, the program causing a print data generation apparatus that generates print data for causing a tape printing apparatus to print an object on a tape fed in a first direction, to execute a reception step of receiving selection of any one of a tape length fixing function of deciding a tape length to be a fixed length designated by a user and a tape length automatic function of deciding the tape length by setting, as a tape rear end position, a position separated by a margin length in a second direction opposite to the first direction from an object rear end position, which is a position of an end portion of the object in the second direction, and setting, for the object, of a center arrangement function of arranging the object at a center of the tape in the first direction, and a generation step of generating the print data, in which in the generation step, when the center arrangement function is set for the object in a case in which the tape length fixing function is selected, the object for which the center arrangement function is set is arranged at the center of the tape in the first direction while maintaining the fixed length, and when the center arrangement function is set for the object in a case in which the tape length automatic function is selected, the tape length is decided such that a position separated by the margin length in the first direction from an object front end position, which is a position of an end portion of the object for which the center arrangement function is set in the first direction, is a tape front end position and a position separated by the margin length in the second direction from the object rear end position of the object for which the center arrangement function is set is the tape rear end position, to generate the print data such that the object for which the center arrangement function is set is arranged at the center of the tape in the first direction.
A of the table data of
Hereinafter, a print data generation apparatus, a control method of a print data generation apparatus, and a non-transitory computer-readable storage medium storing a program will be described with reference to the accompanying drawings. It should be noted that the description will be made by using directions based on an XYZ orthogonal coordinate system or an X coordinate system in a part of drawings. However, these directions are merely for convenience of description and do not limit the following embodiments in any way.
As illustrated in
As illustrated in
The operation key group 21 receives various operations of the user related to the printing of the tape T. The printing apparatus-side display 22 displays various information. It should be noted that the user can also perform the editing operation of the object OJ by using the operation key group 21 and the printing apparatus-side display 22, but in the present embodiment, the editing operation is performed by the PC 1. In addition, the tape printing apparatus 2 receives an editing result of the object OJ by the PC 1 as the print data and performs the printing based on the received print data.
The tape cartridge C is detachably mounted on the cartridge mounting section 23. The tape cartridge C accommodates the tape T and an ink ribbon R in a case thereof. In addition, the tape cartridge C is provided with a platen roller 17 that feeds the tape T.
A platen drive shaft 25 and a thermal head 26 are provided in the cartridge mounting section 23. The platen drive shaft 25 is engaged with the platen roller 17 in a state in which the tape cartridge C is mounted on the cartridge mounting section 23. The platen roller 17 feeds the tape T in a −X direction.
The thermal head 26 is provided at a position facing the platen roller 17 in a state in which the tape cartridge C is mounted on the cartridge mounting section 23. The thermal head 26 is driven to generate heat in accordance with the print data transmitted from the PC 1. As a result, an ink of the ink ribbon R is transferred to the tape T, and the object OJ based on the print data is printed on the tape T.
The tape T on which the printing is performed is discharged from the tape discharge port 24. A cutter 27 is provided between the cartridge mounting section 23 and the tape discharge port 24. The cutter 27 cuts the tape T in a Z axis direction. As a result, a printed portion of the tape T is cut away.
The print area A is an area in the X axis direction from a position separated by a first margin length XL in the +X direction from an end portion of the tape T in the −X direction to a position separated by the first margin length XL in the −X direction from an end portion of the tape T in the +X direction. The first margin length XL is an example of a “margin length”. In addition, the print area A is an area in the Z axis direction from a position separated by a second margin length ZL in a −Z direction from an end portion of the tape T in a +Z direction to a position separated by the second margin length ZL in the +Z direction from an end portion of the tape T in the −Z direction.
In the following description, the first margin length XL and the second margin length ZL are fixed lengths. These first margin length XL and second margin length ZL may be predetermined lengths, may be lengths that can be optionally set by the user, or may be lengths uniformly set in accordance with a tape width.
In addition, in the following description, the position of the end portion of the tape T in the −X direction is referred to as a “tape front end position”, and the position of the end portion of the tape T in the +X direction is referred to as a “tape rear end position”. In addition, the position of the end portion of the print area A in the −X direction is referred to as a “print area front end position”, and the position of the end portion of the print area A in the +X direction is referred to as a “print area rear end position”. In addition, the position of the end portion of the object area OE in the −X direction is referred to as an “object front end position”, and the position of the end portion of the object area OE in the +X direction is referred to as an “object rear end position”. In addition, the length of the tape T in the X axis direction is referred to as a “tape length”, and the length of the tape T in the Z axis direction is referred to as a “tape width”.
The PC-side display 11 displays various information, such as the editing area 50. The operation section 12 includes a mouse 12a and a keyboard 12b. The mouse 12a has, for example, a left button and a right button. The keyboard 12b includes a character key or a number key.
The PC-side communication section 13 communicates with the tape printing apparatus 2 via the cable 5. For example, the PC-side communication section 13 transmits the print data to the tape printing apparatus 2, and receives, from the tape printing apparatus 2, cartridge information indicating a type of the tape cartridge C mounted on the tape printing apparatus 2.
The PC-side control section 14 includes a PC-side central processing unit (CPU) 14a, a PC-side read only memory (ROM) 14b, and a PC-side random access memory (RAM) 14c.
The PC-side CPU 14a performs various controls by loading and executing various programs stored in the PC-side ROM 14b or a storage section 15 described later on the PC-side RAM 14c. It should be noted that the PC-side control section 14 may use a hardware circuit, such as an application specific integrated circuit (ASIC), as a processor instead of the PC-side CPU 14a. The processor may have a configuration in which one or more CPUs and the hardware circuit, such as the ASIC, operate in cooperation with each other.
The PC-side ROM 14b stores a control program or control data that does not have to be rewritten. In addition, the PC-side RAM 14c is used as a work area for the PC-side CPU 14a to perform various controls.
The storage section 15 is, for example, a hard disk drive, and stores a tape printing application 30. The tape printing application 30 is an example of a “program”. The tape printing application 30 is an application program for performing display control of the editing area 50, generation of the print data, communication with the tape printing apparatus 2, and the like.
The tape printing apparatus 2 includes a printing apparatus-side communication section 41, a cartridge information readout section 42, a printing section 43, and a printing apparatus-side control section 44.
The printing apparatus-side communication section 41 communicates with the PC 1 via the cable 5.
The cartridge information readout section 42 optically reads a code image attached as a label to the tape cartridge C mounted on the cartridge mounting section 23, or reads out the cartridge information from a circuit substrate having a memory element provided in the tape cartridge C. Information indicating the tape width of the tape T accommodated in the tape cartridge C is included in the cartridge information.
The printing section 43 is a mechanism for performing the printing on the tape T, and includes the thermal head 26, a feed motor 43a, and a cutter motor 43b. The thermal head 26 includes a plurality of heat generating elements, and performs the printing by thermally transferring the ink from the ink ribbon R to the tape T. The feed motor 43a is a drive source that feeds the tape T. The cutter motor 43b is a drive source that drives the cutter 27.
The printing apparatus-side control section 44 includes a printing apparatus-side CPU 44a, a printing apparatus-side ROM 44b, and a printing apparatus-side RAM 44c.
The printing apparatus-side CPU 44a performs various controls by loading and executing the control program, such as firmware, stored in the printing apparatus-side ROM 44b on the printing apparatus-side RAM 44c. It should be noted that the printing apparatus-side control section 44 may use a hardware circuit, such as an ASIC, as a processor instead of the printing apparatus-side CPU 44a. The processor may have a configuration in which one or more CPUs and the hardware circuit, such as the ASIC, operate in cooperation with each other.
The printing apparatus-side CPU 44a performs the printing on the tape T fed out from the tape cartridge C based on the print data transmitted from the PC 1 by using the control program stored in the printing apparatus-side ROM 44b. In addition, when the printing apparatus-side CPU 44a receives a cartridge information request signal from the PC 1, the printing apparatus-side CPU 44a acquires the cartridge information via the cartridge information readout section 42 and transmits the acquired cartridge information to the PC 1.
A functional configuration of the PC 1 will be described with reference to
The reception section 110 receives selection of any one of a tape length fixing function of deciding the tape length to be the fixed length designated by the user and a tape length automatic function of deciding the tape length by setting, as the tape rear end position, a position separated by the first margin length XL in the +X direction from the object rear end position, which is the position of the end portion of the object OJ in the +X direction. That is, the tape length automatic function is a function of deciding the tape length by using the object rear end position as the print area rear end position.
In addition, the reception section 110 receives the setting, for the object OJ, of a center arrangement function of arranging the object OJ at the center of the tape T in the X axis direction. The X axis direction is an example of a “first direction”. It should be noted that the reception section 110 receives various selections or various settings by acquiring an operation signal when the user operates the mouse 12a or the keyboard 12b to select or set various functions. It should be noted that a step in which the reception section 110 receives the selection of any one of the tape length fixing function and the tape length automatic function and the setting of the center arrangement function is an example of a “reception step”.
The generation section 120 generates the print data. In addition, when the center arrangement function is set for the object OJ in a case in which the tape length fixing function is selected, the generation section 120 arranges the object OJ for which the center arrangement function is set at the center of the tape T in the X axis direction while maintaining the fixed length. In addition, when the center arrangement function is set for the object OJ in a case in which the tape length automatic function is selected, the generation section 120 sets, as the tape front end position, a position separated by the first margin length XL in the −X direction from the object front end position, which is the position of the end portion of the object OJ for which the center arrangement function is set in the −X direction. Further, the generation section 120 decides the tape length such that a position separated by the first margin length XL in the +X direction from the object rear end position of the object OJ for which the center arrangement function is set is the tape rear end position. That is, when the center arrangement function is set for the object OJ in a case in which the tape length automatic function is selected, the generation section 120 decides the tape length such that the object front end position of the object OJ for which the center arrangement function is set is the print area front end position and the object rear end position of the object OJ for which the center arrangement function is set is the print area rear end position. In addition, by deciding the tape length in this way, the generation section 120 generates the print data such that the object OJ for which the center arrangement function is set is arranged at the center of the tape T in the X axis direction.
It should be noted that, when the center arrangement function is set, the generation section 120 changes the arrangement of the object OJ in the X axis direction and does not change the arrangement in the Z axis direction.
In addition, when the center arrangement function is set for a plurality of objects OJ in a case in which the tape length automatic function is selected, the generation section 120 decides the tape length as follows. It should be noted that, in the following description, among the objects OJ printed on the tape T, the object OJ having a longest length in the X axis direction is referred to as a “longest object”. The generation section 120 performs the center position alignment in the X axis direction on the plurality of objects OJ, and decides the tape length such that a position separated by the first margin length XL in the −X direction from the object front end position of the longest object among the plurality of objects OJ is the tape front end position and a position separated by the first margin length XL in the +X direction from the object rear end position of the longest object is the tape rear end position. That is, when the center arrangement function is set for the plurality of objects OJ in a case in which the tape length automatic function is selected, the generation section 120 decides the tape length such that the object front end position of the longest object is the print area front end position and the object rear end position of the longest object is the print area rear end position.
It should be noted that the “center position alignment” means that the center positions of the objects OJ in the X axis direction are aligned, and does not mean that the object OJ is arranged at the center of the tape T in the X axis direction.
In addition, when the center arrangement function is set in a state in which the object OJ is selected, and a center arrangement attribute is not assigned to the selected object OJ, the generation section 120 assigns the center arrangement attribute to the selected object OJ. In addition, when the center arrangement function is set, the generation section 120 arranges the selected object OJ and the object OJ which is not selected but assigned in advance with the center arrangement attribute at the center of the tape T in the X axis direction.
In addition, when a specific operation including at least one of movement and size change is performed on the object OJ assigned with the center arrangement attribute, the generation section 120 cancels the center arrangement attribute. In the present embodiment, the specific operation includes character editing and figure editing in addition to the movement and the size change. The character editing means font change, character decoration, or the like performed when the object OJ is the character. In addition, the edited figure means enlargement, reduction, shape change, or the like performed when the object OJ is the figure.
In addition, when the editing setting of the object OJ is changed from the tape length automatic function to the tape length fixing function, the generation section 120 cancels the center arrangement attribute for all the objects OJ being edited in the editing area 50. That is, the operation of changing the editing setting from the tape length automatic function to the tape length fixing function is also one of the specific operations.
In addition, when the center arrangement function is set for a first object OJ and the center arrangement function is not set for a second object OJ in a case in which the tape length automatic function is selected, the generation section 120 does not change the position of the second object OJ with respect to the tape front end position and decides the tape length as follows. When a position separated by a total length of the first margin length XL and the length of the first object OJ in the +X direction from the tape front end position is located in the +X direction with respect to the object rear end position of the second object OJ, the generation section 120 decides the tape length such that a position separated by the first margin length XL in the +X direction from the object rear end position of the first object OJ is the tape rear end position. In addition, when a position separated by the total length of the first margin length XL and the length of the first object OJ in the +X direction from the tape front end position is not located in the +X direction with respect to the object rear end position of the second object OJ, the generation section 120 decides the tape length such that a position separated by the first margin length XL in the +X direction from the object rear end position of the second object OJ is the tape rear end position.
In the following description, when the center arrangement function is set, the object OJ that is a setting target of the center arrangement function, such as the first object OJ, is referred to as a “target object”, and the object OJ that is not the setting target of the center arrangement function, such as the second object OJ, is referred to as a “non-target object”. In other words, when the center arrangement function is set, the selected object OJ and the object OJ that is not selected but assigned in advance with the center arrangement attribute are referred to as the “target objects”, and the object OJ that is not selected and not assigned with the center arrangement attribute is referred to as the “non-target object”. It should be noted that a step of realizing the functions described above in the generation section 120 is an example of a “generation step”.
A tape length decision process executed by the PC 1 will be described with reference to
In step S01, the PC 1 determines whether or not the center arrangement function is set. When the PC 1 determines that the center arrangement function is set, the PC 1 proceeds to step S02. In addition, when the PC 1 determines that the center arrangement function is not set, the PC 1 repeats the determination in step S01.
In step S02, the PC 1 determines whether or not the selected object OJ is present. As illustrated in
In step S03, the PC 1 determines whether or not the center arrangement attribute is assigned in advance to the selected object OJ. When the PC 1 determines that the center arrangement attribute is assigned in advance to the selected object OJ, the PC 1 proceeds to step S05. In addition, when the PC 1 determines that the center arrangement attribute is not assigned in advance to the selected object OJ, the PC 1 proceeds to step S04.
In step S04, the PC 1 assigns the center arrangement attribute to the selected object OJ.
In step S05, the PC 1 determines whether or not the tape length automatic function is selected as the editing setting of the object OJ. When the PC 1 determines that the tape length automatic function is selected, the PC 1 proceeds to step S06. In addition, when the PC 1 determines that the tape length automatic function is not selected, that is, when PC 1 determines that the tape length fixing function is selected, the PC 1 proceeds to step S07 of
In step S06, the PC 1 sets the tape length as the fixed length. After step S06, the PC 1 terminates the tape length decision process.
In step S07 of
In step S08, as illustrated in
In step S09, as illustrated in
In step S10, the PC 1 decides a temporary tape length by changing the tape rear end position from the arrangement indicated by the second arrangement data D2 such that a position separated by the first margin length XL in the +X direction from the object rear end position of the longest target object is the tape rear end position.
In step S11, the PC 1 determines whether or not the non-target object is present. Here, the PC 1 determines whether or not the object OJ to which the center arrangement attribute is not assigned is present. As illustrated in
In step S12, the PC 1 sets the temporary tape length decided in step S10 as the tape length.
In step S13, the PC 1 determines whether or not a position separated by a total length of the first margin length XL and the length of the longest target object in the +X direction from the tape front end position is located in the +X direction with respect to the object rear end position of the non-target object. When a plurality of non-target objects are present, the PC 1 determines the object rear end position of the non-target object of which the object rear end position is located most in the +X direction among the plurality of non-target objects, as the object rear end position of the non-target object. When the PC 1 determines that a position separated by the total length of the first margin length XL and the length of the longest target object in the +X direction from the tape front end position is located in the +X direction with respect to the object rear end position of the non-target object, the PC 1 proceeds to step S12. In addition, when the PC 1 determines that a position separated by the total length of the first margin length XL and the length of the longest target object in the +X direction from the tape front end position is not located in the +X direction with respect to the object rear end position of the non-target object, the PC 1 proceeds to step S14.
In step S14, the PC 1 decides the tape length such that a position separated by the first margin length XL in the +X direction from the object rear end position of the non-target object is the tape rear end position.
With reference to
As described above, since the print preview PP indicates the print result of the tape T, the tape image TI, the object image OI, and the print area image AI displayed in the editing area 50 correspond to the tape T, the object OJ, and the print area A, respectively. Therefore, in the description of the editing area 50, the direction is also indicated by using the X axis illustrated in
In addition, in the X axis direction, a length between the front end position of the tape image TI and the front end position of the print area image AI, and a length between the rear end position of the tape image TI and the rear end position of the print area image AI correspond to the first margin length XL, and hereinafter referred to as a “margin image length IL”.
In the example of
Next, a process when the center arrangement function is set in a case in which the tape length fixing function is selected will be described. For example, when the center arrangement function is set in the state illustrated in
Next, a process when the center arrangement function is set in a case in which the tape length automatic function is selected will be described. Each of the examples illustrated below is the process when the center arrangement function is set in a case in which the tape length automatic function is selected.
When the center arrangement function is set in the state illustrated in
Incidentally, corresponding to steps S08 and S09 in
When the center arrangement function is set in the state illustrated in
Next, the PC 1 generates the second arrangement data D2 based on the first arrangement data D1, as illustrated in
Thereafter, the PC 1 displays the editing area 50 illustrated in
Next, a process when the object image OI of the target object and the object image OI of the non-target object are arranged on the tape image TI will be described.
In the example of
In the example of
The PC 1 displays the editing area 50 illustrated in
Next, a second example of the process when the object image OI of the target object and the object image OI of the non-target object are arranged on the tape image TI will be described.
In the example of
In addition, in the example of
The PC 1 displays the editing area 50 illustrated in
As described above, when the center arrangement function is set for the object OJ in a case in which the tape length automatic function is selected, the PC 1 according to the present embodiment decides the tape length such that a position separated by the first margin length XL in the −X direction from the object front end position that is the position of the end portion of the object OJ in the −X direction is the tape front end position and a position separated by the first margin length XL in the +X direction from the object rear end position is the tape rear end position. As a result, when the tape length automatic function is selected, the user can obtain the print result in which the object OJ is arranged with good appearance on the tape T and the tape consumption is reduced as much as possible.
In addition, since the PC 1 assigns the center arrangement attribute to the object OJ for which the center arrangement function is set, the setting management of the center arrangement function can be easily performed. In addition, when the specific operation, such as the movement or the size change, is performed on the object OJ to which the center arrangement attribute is assigned, the PC 1 cancels the center arrangement attribute, and thus an editing result unintended by the user can be suppressed.
In addition, when the object image OI of the target object and the object image OI of the non-target object are arranged on the tape image TI in a case in which the tape length automatic function is selected, the PC 1 decides the tape length as illustrated in
A second embodiment of the present disclosure will be described. In the present embodiment, a case in which merge printing using table data 70 is performed will be described. In the present embodiment, the same components as components in the first embodiment are designated by the same reference numerals, and the detailed description thereof will be omitted.
The merge printing means that the table data 70 including a plurality of row data is acquired, and the plurality of objects OJ corresponding to the respective row data are printed on the tape T based on the acquired table data 70. The table data 70 is, for example, CSV data or data created by table calculation software. In addition, the row data is data included in one row of the table data 70. The user can efficiently perform the editing operation for continuously printing a large number of tapes T by creating the table data 70 in advance and performing the merge printing using the table data 70. In addition, by performing the merge printing, the user can cause the tape printing apparatus 2 to print the plurality of tapes T by only performing a print instruction operation once on the PC 1.
A hardware configuration of the PC 1 and the tape printing apparatus 2 according to the present embodiment is the same as the hardware configuration according to the first embodiment illustrated in
It should be noted that, in the following description, the object OJ and the object image OI corresponding to cell data of row 1, column A of the table data 70 are referred to as the first object OJ1 and the first object image OI1. In addition, the object OJ and the object image OI corresponding to cell data of row 1, column B of the table data 70 are referred to as the second object OJ2 and the second object image OI2. In addition, the object OJ and the object image OI corresponding to cell data of row 2, column A of the table data 70 are referred to as the third object OJ3 and the third object image OI3. In addition, the object OJ and the object image OI corresponding to cell data of row 2, column B of the table data 70 are referred to as a fourth object OJ4 and a fourth object image OI4.
The PC 1 displays the editing area 50 illustrated in
It should be noted that, when the center arrangement function is set and the center arrangement attribute is assigned to the object OJ corresponding to any cell data in the merge printing, the PC 1 handles the object OJ corresponding to the cell data of another row belonging to the same row as the column as the any cell data assuming the center arrangement attribute is also assigned thereto. For example, when the center arrangement function is set for the first object OJ1 corresponding to the cell data of row 1, column A, the third object OJ3 corresponding to the cell data of row 2, column A is handled assuming that the center arrangement attribute is also assigned thereto.
Next, a process when the merge printing is performed and the specific operation is performed on the merged object OJ will be described.
Next, a process when the object OJ that is the target of merge printing is the non-target object and the object OJ that is not the target of the merge printing is the target object will be described.
In the example of
In this way, the PC 1 changes the length of the tape image TI based on the merged row data even when the object OJ that is the target of the merge printing is the non-target object. Further, the PC 1 also changes the arrangement of the object OJ for which the center arrangement function is set on the tape image TI.
As described above, even in the merge printing, when the center arrangement function is set in a case in which the tape length automatic function is selected, the PC 1 according to the second embodiment can generate the print data that obtains the print result utilizing both functions.
Two embodiments are described above, but the following modification examples can be adopted instead of these embodiments.
In the embodiments described above, a case in which tape landscape orientation is selected as the editing setting of the object OJ, that is, a case in which the character object OJ is horizontally written is described, but the embodiments described above can be applied even when tape portrait orientation is selected, that is a case in which the character object OJ is vertically written.
It should be noted that, when the editing setting of the object OJ is changed from the tape landscape orientation to the tape portrait orientation, it is preferable that the PC 1 cancels the center arrangement attribute for all of the objects OJ being edited in the editing area 50. In this case, the operation of changing the editing setting between the tape landscape orientation and the tape portrait orientation is an example of a “specific operation”.
The embodiments described above may be applied to the tape printing apparatus 2. That is, the tape printing apparatus 2 may realize each of the functions illustrated in
The “print data generation apparatus” may be an information processing terminal, such as a smartphone, instead of the PC 1. In addition, the tape printing application 30 may be provided to a customer as a program. In addition, a storage medium on which the tape printing application 30 is recorded may be provided to the customer. Other configurations can be appropriately changed without departing from the gist of the present disclosure.
Hereinafter, the print data generation apparatus, the control method of the print data generation apparatus, and the non-transitory computer-readable storage medium storing the program will be additionally noted.
A PC 1 generates print data for causing a tape printing apparatus 2 to print an object OJ on a tape T fed in a first direction, the PC 1 including a reception section 110 that receives selection of any one of a tape length fixing function of deciding a tape length to be a fixed length designated by a user and a tape length automatic function of deciding the tape length by setting, as a tape rear end position, a position separated by a first margin length XL in a second direction opposite to the first direction from an object rear end position, which is a position of an end portion of the object OJ in the second direction, and setting, for the object OJ, of a center arrangement function of arranging the object OJ at a center of the tape T in the first direction, and a generation section 120 that generates the print data, in which the generation section 120 arranges, when the center arrangement function is set for the object OJ in a case in which the tape length fixing function is selected, the object OJ for which the center arrangement function is set at the center of the tape T in the first direction while maintaining the fixed length, and decides, when the center arrangement function is set for the object OJ in a case in which the tape length automatic function is selected, the tape length such that a position separated by the first margin length XL in the first direction from an object front end position, which is a position of an end portion of the object OJ for which the center arrangement function is set in the first direction, is a tape front end position and a position separated by the first margin length XL in the second direction from the object rear end position of the object OJ for which the center arrangement function is set is the tape rear end position, to generate the print data such that the object OJ for which the center arrangement function is set is arranged at the center of the tape T in the first direction.
A control method of a PC 1 that generates print data for causing a tape printing apparatus 2 to print an object OJ on a tape T fed in a first direction includes causing the PC 1 to execute a reception step of receiving selection of any one of a tape length fixing function of deciding a tape length to be a fixed length designated by a user and a tape length automatic function of deciding the tape length by setting, as a tape rear end position, a position separated by a first margin length XL in a second direction opposite to the first direction from an object rear end position, which is a position of an end portion of the object OJ in the second direction, and setting, for the object OJ, of a center arrangement function of arranging the object OJ at a center of the tape T in the first direction, and a generation step of generating the print data, in which in the generation step, when the center arrangement function is set for the object OJ in a case in which the tape length fixing function is selected, the object OJ for which the center arrangement function is set is arranged at the center of the tape T in the first direction while maintaining the fixed length, and when the center arrangement function is set for the object OJ in a case in which the tape length automatic function is selected, the tape length is decided such that a position separated by the first margin length XL in the first direction from an object front end position, which is a position of an end portion of the object OJ for which the center arrangement function is set in the first direction, is a tape front end position and a position separated by the first margin length XL in the second direction from the object rear end position of the object OJ for which the center arrangement function is set is the tape rear end position, to generate the print data such that the object OJ for which the center arrangement function is set is arranged at the center of the tape T in the first direction.
A tape printing application 30 is a program causing the PC 1 that generates print data for causing a tape printing apparatus 2 to print an object OJ on a tape T fed in a first direction, to execute a reception step of receiving selection of any one of a tape length fixing function of deciding a tape length to be a fixed length designated by a user and a tape length automatic function of deciding the tape length by setting, as a tape rear end position, a position separated by a first margin length XL in a second direction opposite to the first direction from an object rear end position, which is a position of an end portion of the object OJ in the second direction, and setting, for the object OJ, of a center arrangement function of arranging the object OJ at a center of the tape T in the first direction, and a generation step of generating the print data, in which in the generation step, when the center arrangement function is set for the object OJ in a case in which the tape length fixing function is selected, the object OJ for which the center arrangement function is set is arranged at the center of the tape T in the first direction while maintaining the fixed length, and when the center arrangement function is set for the object OJ in a case in which the tape length automatic function is selected, the tape length is decided such that a position separated by the first margin length XL in the first direction from an object front end position, which is a position of an end portion of the object OJ for which the center arrangement function is set in the first direction, is a tape front end position and a position separated by the first margin length XL in the second direction from the object rear end position of the object OJ for which the center arrangement function is set is the tape rear end position, to generate the print data such that the object OJ for which the center arrangement function is set is arranged at the center of the tape T in the first direction.
With this configuration, when the center arrangement function is set for the object OJ in a case in which the tape length automatic function is selected, the PC 1 can generate the print data that obtains the print result utilizing both functions. As a result, when the tape length automatic function is selected, the user can obtain the print result in which the object OJ is arranged with good appearance on the tape T and the tape consumption is reduced as much as possible.
It is preferable that, in the PC 1 described above, when the center arrangement function is set for a plurality of the objects OJ in a case in which the tape length automatic function is selected, the generation section 120 performs center position alignment in the first direction on the plurality of objects OJ for which the center arrangement function is set, and decides the tape length such that a position separated by the first margin length XL in the first direction from the object front end position of a longest object, which is the object OJ having a longest length in the first direction among the plurality of objects OJ for which the center arrangement function is set is the tape front end position and a position separated by the first margin length XL in the second direction from the object rear end position of the longest object is the tape rear end position.
With this configuration, even when the center arrangement function is set for the plurality of objects OJ in a case in which the tape length automatic function is selected, the PC 1 can generate the print data that obtains the print result utilizing both functions.
It is preferable that, in the PC 1 described above, when the center arrangement function is set for the plurality of objects OJ for which the center arrangement function is set in a case in which the tape length automatic function is selected, the generation section 120 generates first arrangement data D1 indicating arrangement in which the center position alignment in the first direction is performed on the plurality of objects OJ on the tape T, generates second arrangement data D2 indicating arrangement in which the plurality of objects OJ on which the center position alignment is performed are moved from the arrangement indicated by the first arrangement data D1 such that the object front end position of the longest object is a position separated by the first margin length XL in the second direction from the tape front end position, and decides the tape length by changing the tape rear end position from the arrangement indicated by the second arrangement data D2 such that the position separated by the first margin length XL in the second direction from the object rear end position of the longest object is the tape rear end position.
With this configuration, even when the center arrangement function is set for the plurality of objects OJ arranged on the tape T in a case in which the tape length automatic function is selected, the PC 1 can generate the print data that obtains the print result utilizing both functions by reliable steps.
It is preferable that, in the PC 1 described above, the generation section 120 acquires table data 70 and generates, based on a plurality of row data included in the acquired table data 70, the print data such that a plurality of the objects OJ corresponding to the respective row data are printed, and generates, when the center arrangement function is set for the object OJ corresponding to any one of the row data included in the table data 70, the print data assuming that the center arrangement function is also set for the object OJ corresponding to another row data included in the table data 70.
With this configuration, even in the merge printing, when the center arrangement function is set in a case in which the tape length automatic function is selected, the PC 1 can generate the print data that obtains the print result utilizing both functions.
It is preferable that, in the PC 1 described above, the generation section 120 assigns, when the center arrangement function is set in a state in which the object OJ is selected, and a center arrangement attribute is not assigned to the selected object OJ, the center arrangement attribute to the selected object OJ, and arranges, when the center arrangement function is set, the selected object OJ and the object OJ which is not selected but assigned in advance with the center arrangement attribute at the center of the tape T in the first direction.
With this configuration, the PC 1 can easily perform the setting management of the center arrangement function by using the center arrangement attribute.
It is preferable that, in the PC 1 described above, when a specific operation including at least one of movement and size change is performed on the object OJ assigned with the center arrangement attribute, the generation section 120 cancels the center arrangement attribute.
With this configuration, when the movement or the size change is performed on the object OJ to which the center arrangement attribute is assigned, the PC 1 cancels the center arrangement attribute, and thus an editing result unintended by the user can be suppressed.
It is preferable that, in the PC 1 described above, the generation section 120 does not change, when the center arrangement function is set for a first object OJ and the center arrangement function is not set for a second object OJ when the tape length automatic function is selected, a position of the second object OJ with respect to the tape front end position, and decides the tape length such that a position separated by the first margin length XL in the second direction from the object rear end position of the first object OJ is the tape rear end position when a position separated by a total length of the first margin length XL and a length of the first object OJ in the second direction from the tape front end position is located in the second direction with respect to the object rear end position of the second object OJ, and a position separated by the first margin length XL in the second direction from the object rear end position of the second object OJ is the tape rear end position when the position separated by the total length of the first margin length XL and the length of the first object OJ in the second direction from the tape front end position is not located in the second direction with respect to the object rear end position of the second object OJ.
With this configuration, even when there are the object OJ that is the target of the center arrangement function and an object OJ that is not the target of the center arrangement function in a case in which the tape length automatic function is selected, the PC 1 can generate the print data that obtains the print result utilizing both functions and the arrangement of the object OJ for which the center arrangement function is not set.
Number | Date | Country | Kind |
---|---|---|---|
2022-209032 | Dec 2022 | JP | national |