Character information output device, printing device, printing system, control method, and program

The character information output device optimizes the vertical writing of character strings with consecutive arithmetic numerals by converting them into combination characters based on adjacent keywords or individual numerals, improving readability and understanding.

JP7577940B2Active Publication Date: 2024-11-06CASIO COMPUTER CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020121366
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-07-15
Publication Date
2024-11-06
Estimated Expiration
2040-07-15

AI Technical Summary

Technical Problem

Existing document processing methods fail to optimize the vertical writing form of character strings containing partial character strings represented by two or more consecutive arithmetic digits, often treating them as one full-width character without considering the meaning or context.

Method used

A character information output device and printing system that converts two or more consecutive arithmetic numbers into vertical writing as one combination character if adjacent characters match a predetermined keyword, or converts each number individually if no such keyword is present, using a control method and program to manage this process.

Benefits of technology

This approach optimizes the vertical writing form of character strings, making it easier to understand the meaning of consecutive arithmetic numerals by ensuring they are arranged in an optimal format.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007577940000001
    Figure 0007577940000001
  • Figure 0007577940000002
    Figure 0007577940000002
  • Figure 0007577940000003
    Figure 0007577940000003
Patent Text Reader

Abstract

To make an optimum form of a character string including a partial character string represented by two or more consecutive arithmetic numbers in a vertical writing form.SOLUTION: A character information output apparatus includes a control unit 20 in which when an arithmetic number is included in a character string to be printed in a vertical writing form on a printing medium 13 by a printing device 1, in addition, when a character coinciding with a prescribed keyword 211 is adjacent to a front position or a back position of an arithmetic number in the character string, the arithmetic number is converted in a vertical writing form in to a form corresponding to the character coinciding with the prescribed keyword and output it to the printing device 1.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The disclosure of this specification relates to a character information output device, a printing device, a printing system, a control method, and a program. [Background technology]

[0002] Some printing devices that print on a print medium or the like are capable of selecting whether to print a character string on the print medium in horizontal or vertical writing. For example, some printing devices of this type are capable of converting a character string created in horizontal writing to vertical writing and printing it.

[0003] Some printing devices that convert a character string created in horizontal writing to vertical writing and print it are capable of converting a set of two or more consecutive Arabic numerals (numeric characters) into vertical writing as one character. For example, Patent Document 1 discloses a document processing method that converts a character string represented by two or more Arabic numerals, such as a block number and a street number, in address data used for printing on a print medium such as a postcard into vertical writing as one full-width character. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Japanese Patent Application Publication No. 7-28790 Summary of the Invention [Problem to be solved by the invention]

[0005] In the document processing method disclosed in Patent Document 1, a partial character string represented by two or more consecutive Arabic numerals is converted into vertical writing as one full-width character, regardless of the meaning of the partial character string. In such a document processing method, it is not always possible to optimize the layout of a character string including a partial character string represented by two or more consecutive Arabic numerals in vertical writing.

[0006] In consideration of the above-described situation, an object of one aspect of the present invention is to provide a technology that can optimize the vertical writing form of a character string that includes a substring expressed by two or more consecutive Arabic numerals. [Means for solving the problem]

[0007] According to one aspect of the present invention, a character information output device includes a printing device that prints a character string vertically on a print medium. Two or more consecutive Arithmetic numbers Group of and the Arabic numerals in the character string are included Group of When a character matching a predetermined keyword is adjacent to the front or back of the Arabic numerals, Group of of Arabic numerals written horizontally as one combined character Convert to vertical writing When there is no character matching a predetermined keyword adjacent to the front or back of the set of Arabic numerals, each Arabic numeral included in the set of Arabic numerals is converted into vertical writing one character at a time. and a control unit that outputs the image data to the printing device.

[0008] A printing device according to one aspect of the present invention includes a printing unit that prints on a print medium, and a character string that is printed vertically on the print medium. Two or more consecutive Arithmetic numbers Group of and the Arabic numerals in the character string are included Group of When a character matching a predetermined keyword is adjacent to the front or back of the Arabic numerals, Group of of Arabic numerals written horizontally as one combined character Convert to vertical writing If there is no character matching a predetermined keyword adjacent to the front or back of the set of Arabic numerals, each Arabic numeral included in the set of Arabic numerals is converted into vertical writing one character at a time. and a control unit for controlling the

[0009] A printing system according to one aspect of the present invention includes a printing device that prints on a print medium, and a character string that is to be printed vertically on the print medium. Two or more consecutive Arithmetic numbers Group of and the Arabic numerals in the character string are included Group of When a character matching a predetermined keyword is adjacent to the front or back of the Arabic numerals, Group of of Arabic numerals written horizontally as one combined character Convert to vertical writing If there is no character matching a predetermined keyword adjacent to the front or back of the set of Arabic numerals, each Arabic numeral included in the set of Arabic numerals is converted into vertical writing one character at a time. and a character information output device which outputs the character information to the printing device.

[0010] A control method according to one aspect of the present invention includes: Two or more consecutive Arithmetic numbers Group of and the Arabic numerals in the character string are included Group of When a character matching a predetermined keyword is adjacent to the front or back of the Arabic numerals, Group of of Arabic numerals written horizontally as one combined character Convert to vertical writing If there is no character matching a predetermined keyword adjacent to the front or back of the set of Arabic numerals, each Arabic numeral included in the set of Arabic numerals is converted into vertical writing one character at a time. The present invention is characterized by performing a process of do.

[0011] A program according to one aspect of the present invention includes a program for causing a computer to: Two or more consecutive Arithmetic numbers Group of and the Arabic numerals in the character string are included Group of When a character matching a predetermined keyword is adjacent to the front or back of the Arabic numerals, Group of of Arabic numerals written horizontally as one combined character Convert to vertical writing If there is no character matching a predetermined keyword adjacent to the front or back of the set of Arabic numerals, each Arabic numeral included in the set of Arabic numerals is converted into vertical writing one character at a time. The present invention is characterized in that the processing is executed to: Effect of the Invention

[0012] According to the above aspect, it is possible to optimize the vertical writing form of a character string that includes a subcharacter string that is expressed by two or more consecutive Arabic numerals. [Brief description of the drawings]

[0013] [Figure 1] FIG. 2 is a plan view illustrating an example of the appearance of the printing apparatus. [Diagram 2] 2 is a partially enlarged plan view of the printing device illustrated in FIG. 1 with its cover open. [Diagram 3] FIG. 1 is a block diagram illustrating an example of the configuration of a printing apparatus according to an embodiment. [Figure 4] 11A and 11B are diagrams illustrating an example of vertical writing control information. [Diagram 5] 1A and 1B are diagrams illustrating examples of horizontal printing and vertical printing by a printing device according to an embodiment. [Figure 6]10 is a flowchart illustrating an example of an operation performed by a printing device according to an embodiment. [Figure 7] 13 is a flowchart illustrating an example of a vertical writing development process. [Figure 8] 11 is a flowchart illustrating an example of a process for expanding a string of consecutive Arabic numerals into a combination character. [Figure 9] 9A to 9C are diagrams for explaining a specific example of processing according to the flowchart of FIG. 8. [Figure 10] 11A and 11B are diagrams illustrating another example of horizontal printing and vertical printing by a printing device according to an embodiment. [Figure 11] 13 is a flowchart illustrating another example of a process for expanding a string of consecutive Arabic numerals into a combination character. [Figure 12] FIG. 1 is a diagram (part 1) for explaining a first application example of vertical writing printing by a printing device according to an embodiment. [Figure 13] FIG. 2 is a diagram (part 2) for explaining a first application example of vertical writing printing by a printing device according to an embodiment. [Figure 14] 11A to 11C are diagrams illustrating a second application example of vertical writing printing by a printing device according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In the following description, a thermal printer that uses a thermal head to print on a tape-shaped print medium will be exemplified as a printing device according to the present invention. In addition, in the following description, detailed description of well-known configurations, functions, operations, etc. of the exemplified printing device will be omitted.

[0015] Fig. 1 is a plan view illustrating an example of the appearance of a printing device. Fig. 2 is a partially enlarged plan view of the printing device illustrated in Fig. 1 with the cover open. In Fig. 1 and Fig. 2, the underlined number 9 is information printed on the medium adapter 11, the tape roll 12, etc., and indicates that the width of the printing medium 13 is 9 mm.

[0016] The printing device 1 illustrated in FIG. 1 and FIG. 2 includes a device housing 2 provided with an adapter housing section 201 for housing a medium adapter 11, and a lid 4 attached to the device housing 2 in such a manner that the opening of the adapter housing section 201 of the device housing 2 can be opened and closed. The medium adapter 11 is a container for housing a tape roll 12 including a tape-shaped print medium 13 to be supplied to the printing device 1. The tape roll 12 is a roll obtained by winding a long tape-shaped print medium 13, and is rotatably housed in the media adapter 11. The print medium 13 has a multi-layer structure including, for example, a tape layer having an adhesive layer and a protective layer that protects the adhesive layer in the tape layer. The tape layer of the print medium 13 that can be used for printing by a thermal printer includes, for example, a heat-sensitive recording material layer that develops or changes color when heat of a predetermined temperature or higher is applied. In addition, the adapter housing section 201 of the device housing 2 can house media adapters 11 corresponding to each of a plurality of types of print media 13 (tape rolls 12) having different widths. For example, the adapter accommodating section 201 can accommodate a media adapter that is compatible with a printing medium 13 (tape roll 12) having a tape width of 12 mm, and can also accommodate a media adapter that is compatible with a printing medium 13 having a different tape width (e.g., 18 mm).

[0017] The print medium 13 supplied from the tape roll 12 housed in the medium adapter 11 can be transported along a transport path provided in the device housing 2. In the printing device 1 illustrated in FIG. 2, the print medium 13 drawn out of the medium adapter 11 passes between the platen roller 6 and the thermal head 701 of the printing unit 7, and is sandwiched between the platen roller 6 and the thermal head 701 at least while the operation of transporting the print medium 13 is being performed. The platen roller 6 rotates in a direction to send out the print medium 13 that it is sandwiching toward the outlet 202 of the device housing 2 by power from a motor such as a DC motor. The thermal head 701 has a plurality of heating elements, and the control of whether or not each of the plurality of heating elements generates heat is performed individually based on the print data. In the printing device 1, the platen roller 6 is rotated in a direction to send out the print medium 13 toward the outlet 202 of the device housing 2, and printing is performed on the print medium 13 while transporting the print medium 13. At this time, the printing device 1 controls a combination of heating elements of the thermal head 701 that generate heat, based on the transport amount of the print medium 13 and the print data. The printing device 1 may be able to switch the rotation direction of the platen roller 6 when transporting the print medium 13 between a direction that sends the print medium 13 toward the discharge port 202 of the device housing 2 that contacts the platen roller 6, and a direction opposite to that direction.

[0018] 1 and 2 can cut the print medium 13 by the cutting unit 8. The cutting unit 8 is disposed between the position where the print medium 13 is clamped by the platen roller 6 and the thermal head 7 in the conveyance path provided in the device housing 2 and the position of the discharge port 202 of the device housing 2. The cutting unit 8 has a cutter that cuts the entire print medium 13. The cutting unit 8 may have a first cutter that cuts the entire print medium 13 and a second cutter that cuts a part of the print medium 13. The second cutter cuts the remaining layers (e.g., the entire tape layer including the adhesive layer) of the print medium 13 having a multi-layer structure so that one or more layers (e.g., a protective layer that protects the adhesive layer of the tape layer) are not completely cut in the print medium 13. The second cutter may also be a cutter that perforates the print medium 13, for example.

[0019] 1 and 2 has a keyboard area 3 provided in the device housing 2, and a display device 5 provided in the lid 4. The keyboard area 3 has a number of keys arranged therein that are used for inputting character strings to be printed on the print medium 13, selecting graphics, setting printing conditions, etc. The display device 5 displays print images of character strings, graphics, etc. to be printed on the print medium 13, and settings of printing conditions, etc.

[0020] FIG. 3 is a block diagram illustrating an example of the configuration of a printing device according to an embodiment.

[0021] As illustrated in FIG. 3, the printing device 1 of the present embodiment includes a control unit 20, a storage unit 21, an input unit 23, a display unit 24, a tape detection unit 25, a transport unit 26, a printing unit 27, and a cutting unit 28.

[0022] The control unit 20 controls the overall operation of the printing device 1. In the printing device 1, a processor such as an OS (Operating System) and a CPU (Central Processing Unit) that executes various programs including programs including the processes described below functions as the control unit 20. The storage unit 21 stores various information necessary for the operation of the printing device 1, including the various programs described above. The storage unit 21 includes a RAM (Random Access Memory) and a ROM (Read Only Memory). The printing device 1 may include, for example, a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC) that functions as part of the control unit 20 and the storage unit 21.

[0023] The control unit 20 in the printing device 1 of this embodiment includes a search unit 201, a determination unit 202, and a conversion unit 203, which are responsible for part of the control related to the arrangement of characters when a character string to be printed on the print medium 13 is printed in vertical writing (hereinafter referred to as "vertical printing"). The search unit 201 searches for and extracts Arabic numerals (Arabic numerals) in the character string to be printed on the print medium 13 (hereinafter referred to as "printed character string"). The determination unit 202 determines whether or not a predetermined keyword is adjacent to at least one of the front and rear of the Arabic numerals extracted by the search unit 201 in the printed character string. The predetermined keyword used by the determination unit 202 for the determination is stored, for example, in the vertical writing control information 211 of the storage unit 21. The conversion unit 203 converts the printed character string into vertical writing based on the search result of the search unit 201 and the determination result of the determination unit 202. For example, when the Arabic numerals extracted by the search unit 201 are a combination of two or more consecutive Arabic numerals (i.e., a numerical value of two or more digits) and a predetermined keyword is adjacent to the combination, the conversion unit 203 arranges the combination of two or more consecutive Arabic numerals in a vertically written character string as one combined character in which the Arabic numerals are written horizontally. Unless otherwise specified, in the following description, it is assumed that two or more Arabic numerals included in one combined character are written horizontally. As will be described later, the conversion unit 203 may determine whether or not the two or more consecutive Arabic numerals are to be combined characters based on a predetermined keyword adjacent to the two or more consecutive Arabic numerals.

[0024] The input unit 22 accepts various input operations for the printing device 1. In the printing device 1 illustrated in Figs. 1 and 2, a plurality of keys arranged in the keyboard area 3 of the device housing 2 function as the input unit 22. The display unit 23 displays various information such as the character string to be printed and printing condition settings. In the printing device 1 illustrated in Fig. 1, the display device 5 provided on the lid 4 functions as the display unit 23.

[0025] The tape detection unit 24 detects the width etc. of the print medium (print tape) 13 supplied to the printing device 1 by the media adapter 11. In the printing device 1, for example, a switch that detects what width of print medium 13 is associated with the media adapter 11 housed in the adapter housing section 201 of the device housing 2 functions as the tape detection unit 24.

[0026] The transport unit 25 transports the print medium 13 in accordance with a control signal from the control unit 20. In the printing device 1, a transport mechanism including the above-mentioned platen roller 6 and a motor such as a DC motor functions as the transport unit 25. The transport mechanism further includes, for example, a drive circuit that applies a current and a voltage to the motor to control the rotation direction and rotation speed of the motor, and an encoder that detects the amount of rotation of the platen roller 6 or the motor.

[0027] The printing section 26 prints on the print medium 13 in accordance with a control signal from the control section 20. In the printing device 1 illustrated in this embodiment, a printing unit (printing mechanism) 7 including a thermal head 701 functions as the printing section 26. The printing unit 7 further includes a drive circuit that applies current to heat generating elements among the multiple heat generating elements of the thermal head 701 that generate heat, a thermistor that detects the temperature around the thermal head 701, and the like.

[0028] The cutting section 27 cuts the print medium 13 according to a control signal from the control section 20. In the printing device 1, the cutting unit 8 including the cutter described above functions as the cutting section 27. The cutting unit 8 may include only a cutter that cuts the entire print medium 13, or may include a first cutter that cuts the entire print medium 13 and a second cutter that cuts only a part of the print medium 13. The cutting unit 8 further includes a motor that operates the cutter, a drive circuit that applies a voltage to the motor, and the like. The cutting unit 8 may also include an ejection mechanism that ejects the print medium 13 cut by the cutter that cuts the entire print medium 13 toward the ejection port 202 of the device housing 2.

[0029] As described above, the printing device 1 of this embodiment can perform vertical printing. Furthermore, in the printing device 1 of this embodiment, when a print character string to be printed vertically contains Arabic numerals, the determination unit 202 performs a determination using the vertical writing control information 211.

[0030] Fig. 4 is a diagram for explaining an example of vertical writing control information 211. The vertical writing control information 211 shown in Fig. 4 includes a rear keyword, a front keyword, and a numerical range.

[0031] The rear keyword is information on a character or character string adjacent to the rear of a set of consecutive Arabic numerals extracted from a printed character string, which indicates the condition for vertically writing the set of two or more Arabic numerals as one character. The rear keyword includes, for example, units of time such as year, month, and day, units of currency such as yen and dollar, units of length such as m (meter), and units of mass such as kg (kilogram).

[0032] The forward keyword is information on a character or character string adjacent to the rear of a set of consecutive Arabic numerals extracted from a printed character string, indicating a condition for vertically writing a set of two or more Arabic numerals as one character. A "-" in the forward keyword indicates that there is no keyword associated with the rear keyword. In the vertical writing control information 211 of FIG. 4, examples of forward keywords associated with the rear keyword "year" include era names such as Reiwa, Heisei, and Showa, and the Gregorian calendar.

[0033] The numerical range is numerical range information used to determine whether or not Arabic numerals in a print string adjacent to a rear keyword or a front keyword should be written vertically as a single character. A "-" in the numerical range indicates that there is no numerical range associated with the rear keyword or the front keyword.

[0034] For example, the range of values ​​that can be taken by the numerical value representing the "year" following a past era name among the era names exemplified as the forward keyword is determined for each era name. For example, since "Heisei" lasts until 2031, if the numerical value expressed by Arabic numerals following "Heisei" in the print character string is 0 or 32 or more, the numerical value is highly likely not a numerical value representing the "year". For this reason, in the vertical writing control information 211 exemplified in FIG. 4, "1 to 31" is associated as a numerical range for the forward keyword "Heisei". By using the vertical writing control information 211 exemplified in FIG. 4, when "Heisei" is adjacent to the Arabic numerals in front of the Arabic numerals extracted by the search unit 201 and the extracted Arabic numerals are any of 10 to 31, the determination unit 202 can vertically write the two-digit Arabic numerals as one character. In addition, since "month" as a unit of time exemplified as the backward keyword is from January to December, in the vertical writing control information 211 exemplified in FIG. 4, "1 to 12" is associated as a numerical range for the backward keyword "month". In addition, since the unit of time “day” exemplified as the rear keyword can be from the 1st to the 31st, in the vertical writing control information 211 exemplified in FIG. 4, “1 to 31” is associated as the numerical range for the rear keyword “day.”

[0035] 4 may include information capable of determining whether or not a set of two or more consecutive Arabic numerals is to be written vertically as one Arabic numeral character written horizontally, and the format and form of the information may be changed as appropriate. For example, the vertical writing control information 211 may include two separate pieces of information, information indicating a forward keyword and information indicating a backward keyword. The vertical writing control information 211 may also be information that does not include a numerical range. Furthermore, the vertical writing control information 211 may set an upper limit on the number of digits to be written vertically as one Arabic numeral character adjacent to a backward keyword representing, for example, a unit of currency, a unit of length, or a unit of mass, based on a numerical range associated with the backward keyword.

[0036] 5 is a diagram illustrating an example of horizontal printing and vertical printing by a printing device according to an embodiment. Fig. 5 shows an example of horizontal printing and vertical printing when the print character string is "April 30, 2019".

[0037] The "transport direction" shown below the print medium 13 in Fig. 5 is the direction in which the print medium 13 moves when printing with the printer 1. That is, when printing, the relative position of the thermal head 701 with respect to the print medium 13 changes from the left edge to the right edge on the print medium 13 shown in Fig. 5. The "width direction" shown to the left of the print medium 13 in Fig. 5 is the direction of the width (tape width) of the print medium 13.

[0038] The print character string input to the printing device 1 is displayed on the display device 5 in horizontal writing, for example, as shown in Fig. 5. When printing such a print character string in horizontal writing on the tape-shaped print medium 13, the printing device 1 prints the characters in the print character string in the printing area 1301 of the print medium 13 such that the up-down direction of each character coincides with the width direction of the print medium 13, and the characters are sequentially arranged in the direction opposite to the transport direction.

[0039] On the other hand, when printing the print character string "April 30, 2019" vertically on the tape-shaped print medium 13, the printer 1 rotates each character by 90 degrees so that the left-right direction of each character coincides with the width direction of the print medium 13 in the print area 1302 of the print medium 13, and prints the characters in the print character string arranged in sequence in the opposite direction to the transport direction. At this time, the printer 1 of this embodiment uses the above-mentioned vertical writing control information 211 to rotate the two-digit Arabic numerals "31" and "30" by 90 degrees as single characters and write them vertically. Therefore, the "3" and "1" between "Heisei" and "Year" in the character string printed vertically in the print area 1302 of the print medium 13 become "31" arranged in the width direction of the print medium 13 (i.e., written horizontally). Similarly, the "3" and "0" between the "month" and "day" in the character string printed vertically in the print area 1302 of the print medium 13 become "30" lined up in the width direction of the print medium 13 (i.e., written horizontally). In this way, by converting "31" and "30," which have the meaning of two-digit Arabic numerals, into single characters each written vertically, it becomes easier to understand the meaning of the Arabic numerals.

[0040] For example, when a conventional printer prints "Heisei 31" in vertical writing, the five characters "Heisei", "Nari", "3", "1" and "Year" are printed vertically (not shown), and the two-digit number "31" is divided into "3" and "1" and arranged vertically. When printing vertically like this, if the number of digits of consecutive Arabic numerals is large, it may be difficult to understand the meaning of the Arabic numerals. On the other hand, in the document processing method of the above-mentioned Patent Document 1, when a set of consecutive Arabic numerals exists in a printed character string, the set of Arabic numerals is written vertically as one character, so that even when it is preferable to divide consecutive Arabic numerals into individual Arabic numerals and write them vertically, the consecutive Arabic numerals are written vertically as one character.

[0041] In contrast, as described above, the printing device 1 of this embodiment converts a set of two or more consecutive Arabic numerals into vertical writing as a single character only when a predetermined keyword (character or character string) is adjacent to the front or back of the set of two or more consecutive Arabic numerals. Therefore, the printing device 1 of this embodiment can arrange a character string including a partial character string represented by two or more consecutive Arabic numerals in vertical writing in an optimal arrangement that makes it easy to understand the meaning of the partial character string.

[0042] Fig. 6 is a flowchart for explaining an example of an operation performed by a printing device according to an embodiment. Fig. 6 illustrates a flowchart relating to an operation of printing on a print medium 13 based on print data including a print character string, among various operations performed by the printing device 1. When a user of the printing device 1 inputs a print character string, sets printing conditions, sets the cutting of the print medium 13, and performs an operation for printing, the printing device 1 performs processing according to the flowchart illustrated in Fig. 6.

[0043] The printer 1 first obtains the print string and the print settings (step S1), and determines whether the printing is horizontal or vertical based on the print settings (step S2). Steps S1 and S2 are performed by the control unit 20. The print settings include, for example, settings of the font (typeface and size) of the characters to be printed, settings of whether the printing is horizontal or vertical, settings of the number of copies to be printed, and other printing conditions, as well as settings related to cutting the print medium 13.

[0044] In the case of horizontal printing (step S2; horizontal writing), the printer 1 performs horizontal writing conversion to convert the print character string into a horizontal character string (step S3). The process of step S3 is performed by the control unit 20. The control unit 20 performs the same process as horizontal writing conversion in a known printer.

[0045] On the other hand, in the case of vertical printing (step S2; vertical writing), the printer 1 performs vertical writing expansion to expand the print character string into a vertically written character string using the above-mentioned vertical writing control information 211 (step S4). The process of step S4 is performed by the control unit 20. More specifically, it is performed by the search unit 201, the determination unit 202, and the conversion unit 203 of the control unit 20. The specific process content of step S4 will be described later with reference to Figs. 7 to 11.

[0046] When the horizontal writing development (step S3) or the vertical writing development (step S4) is completed, the printing device 1 prints on the print medium 13 and cuts the print medium 13 based on the horizontally or vertically developed print character string and the print settings (step S5). The process of step S5 is performed by the conveying unit 25, the printing unit 26, and the cutting unit 27 under the control of the control unit 20. If the setting regarding cutting of the print medium 13 in the print settings is set to not cut, only printing on the print medium 13 is performed in step S5. When the horizontal writing development (step S3) is performed, the printing device 1 prints the print character string horizontally in such a way that the up-down direction of the characters matches the width direction of the print medium 13 (see the example of horizontal writing in FIG. 5). When the vertical writing printing is performed, the printing device 1 prints the print character string vertically in such a way that the left-right direction of the characters matches the width direction of the print medium 13 (see the example of vertical writing in FIG. 5).

[0047] In the printing device 1 of this embodiment, in the process of expanding the print character string in vertical writing (step S4), the above-mentioned vertical writing control information 211 is used. In the printing device 1 of this embodiment, as the process of expanding the print character string in vertical writing in step S4, for example, the process follows the flowchart illustrated in FIG.

[0048] FIG. 7 is a flowchart illustrating an example of a vertical writing development process.

[0049] When the vertical writing development process starts, the printer 1 reads one character in the print string (step S10). The process of step S10 is performed by the search unit 201. The character read in step S10 is the first character in the order of the characters in the print string that have not yet been read.

[0050] Next, the printing device 1 judges whether the read character is an Arabic numeral (step S11). The judgment in step S11 is performed by the search unit 201. If the read character is not an Arabic numeral (step S11; NO), the printing device 1 develops the read character into vertical writing (step S15). The process of step S15 is performed by the conversion unit 203. At this time, the conversion unit 23 develops the read character into vertical writing as a full-width character, for example.

[0051] On the other hand, if the read character is an Arabic numeral (step S11; YES), the printing device 1 reads an Arabic numeral string, which is a set of consecutive Arabic numerals including the read character (Arabic numeral) (step S12). The process of step S12 is performed by the search unit 201. Note that the Arabic numeral string read by the search unit 201 in step S12 may be one character (one digit number).

[0052] After the process of step S12, the printing device 1 uses the vertical writing control information 211 to determine whether the Arabic numeral string read by the search unit 201 is to be one character (combined character). This determination is made by the determination unit 202. The determination unit 202 first determines whether the character string immediately before the Arabic numeral string read by the search unit 201 in the print character string matches one of the forward keywords in the vertical writing control information 211 (step S13). The character string immediately before the Arabic numeral string is the adjacent character or character string immediately before the Arabic numeral string. If they match (step S13; YES), the determination unit 202 then determines whether the Arabic numeral string read is within the numerical range of the combined character (step S16). In the determination of step S16, which is made when the forward keyword matches, the determination unit 202 determines whether the character string is within the numerical range of the combined character based on the numerical range associated with the matching forward keyword in the vertical writing control information 211. If the number is within the numerical range associated with the matched forward keyword, or if there is no numerical range associated with the matched forward keyword (i.e., there is no restriction on the numerical range), the determination unit 202 determines that the number is within the numerical range of the combination character. If the number is within the numerical range of the combination character (step S16; YES), the printing device 1 develops the continuous Arabic numeral string into one combination character in vertical writing (step S17). The processing of step S17 is performed by the conversion unit 203. At this time, the conversion unit 203 develops, for example, the vertical dimension of one combination character into vertical writing as the dimension of a full-width character derived based on the print settings. The content of the processing of step S17 performed by the conversion unit 203 will be described later. If the number is not within the numerical range of the combination character (step S16; NO), the printing device 1 develops each of the one or more Arabic numerals included in the read Arabic numeral string into vertical writing individually, character by character (step S15).

[0053] If the character string immediately before the read Arabic numeral string does not match the front keyword (step S13; NO), the determination unit 202 next determines whether or not the character string immediately after the read Arabic numeral string matches one of the rear keywords in the vertical writing control information 211 (step S14). The character string immediately after the Arabic numeral string is the adjacent character or character string immediately after the Arabic numeral string. If they match (step S14; YES), the determination unit 202 next determines whether or not the read Arabic numeral string is within the numerical range of the combination character (step S16). In the determination of step S16, which is performed when the rear keyword matches, the determination unit 202 determines whether or not the character string is within the numerical range of the combination character based on the numerical range associated with the matched rear keyword in the vertical writing control information 211. If the character string is within the numerical range associated with the matched rear keyword, and if there is no numerical range associated with the matched rear keyword (i.e., there is no restriction on the numerical range), the determination unit 202 determines that the character string is within the numerical range of the combination character. If the numeric value is within the range of the combination character (step S16; YES), the printer 1 develops the continuous Arabic numeral string into one combination character in vertical writing (step S17). If the numeric value is not within the range of the combination character (step S16; NO), the printer 1 develops each of the one or more Arabic numerals included in the read Arabic numeral string into vertical writing individually, character by character (step S15).

[0054] After the process of step S15 or step S17, the printer 1 determines whether or not there are any characters that have not been rendered vertically (step S18). If there are any characters that have not been rendered (step S18; YES), the printer 1 performs the process of step S10 and onwards. If there are no characters that have not been rendered (step S18; NO), the printer 1 ends the vertical rendering process (step S4).

[0055] In this way, in the process of expanding a print character string into vertical writing using the vertical writing control information 211 illustrated in Fig. 4, if either the front or back character string (including the case of a single character) of a continuous Arabic numeral string matches a predetermined keyword and the Arabic numeral string is within a predetermined numerical range, the Arabic numeral string is expanded into vertical writing as one combined character. The conversion unit 203 of the printing device 1 of this embodiment performs, for example, a process according to the flowchart illustrated in Fig. 8 as the process of expanding a continuous Arabic numeral string into one combined character (step S17).

[0056] FIG. 8 is a flowchart illustrating an example of a process for expanding a string of consecutive Arabic numerals into a combination character.

[0057] In the process of developing the character into a combined character in step S17, the conversion unit 203 first sets the relative value r of the character width of one character to 1 (step S1701).

[0058] Next, the conversion unit 203 derives the number n of half-width converted characters of the combined characters (step S1702). In step S203, the conversion unit 203 derives the number n of half-width converted characters by considering one half-width Arabic numeral as one character and one full-width Arabic numeral as two characters.

[0059] Next, the conversion unit 203 judges whether the derived number of half-width converted characters n is 3 or more (step S1703). If n≧3 (step S1703; YES), the conversion unit 203 changes the relative value r of the character width to r=2 / n (step S1704), and multiplies the character width of the Arabic numerals included in the combined character by r to develop the entire combined character in vertical writing (step S1705). On the other hand, if n≦2 (step S1703; NO), the conversion unit 203 does not change the relative value r of the character width, but multiplies the character width of the Arabic numerals included in the combined character by r to develop the entire combined character in vertical writing (step S1705). The character width of the Arabic numerals before multiplying by r in step S1705 is derived based on, for example, the font of the Arabic numerals specified in the print settings (for example, the font, whether it is full-width or half-width, and the character size). Upon completing the process of step S1705, the printing device 1 ends the process of step S17.

[0060] In this way, in the process according to the flowchart illustrated in Fig. 8, consecutive Arabic numerals that make up one combined character are expanded with a character width according to the number of characters contained in the Arabic numerals. That is, in the printing device 1 of this embodiment, the printing form including the arrangement and character width of the Arabic numerals is made suitable for vertical printing. For example, when the number of consecutive Arabic numerals that make up one combined character is three or more characters converted into half-width characters, the character width of each character included in the combined character is made narrower than the character width derived based on the print settings so that the character width of the entire combined character is one full-width character.

[0061] Fig. 9 is a diagram for explaining a specific example of the process according to the flowchart of Fig. 8. Fig. 9 shows an example in which the print character string "April 30, 2019" is expanded vertically and printed on the print medium 13 having a tape width W1.

[0062] When expanding the printed character string illustrated in FIG. 9 into a vertical writing format, the search unit 201 of the printing apparatus 1 reads each character one by one in order from the first character "平" and determines whether it is a numerical character for calculation. "平" and "成" are each full-width Chinese characters and not numerical characters for calculation (step S11; NO). Therefore, the conversion unit 203 of the printing apparatus 1 rotates each character of "平" and "成" as a single full-width character in a direction where the left-right direction of the character coincides with the width direction of the printing medium 13 (step S15). At this time, the conversion unit 203 arranges them vertically so that, for example, the center in the width direction of each character of "平" and "成" coincides with the center in the width direction in the printing area 1302 of the printing medium 13.

[0063] After expanding each character of "平" and "成" into a vertical writing format, the search unit 201 reads the "3" immediately after "成". Since "3" is a numerical character for calculation (step S11; YES), the search unit 201 reads the consecutive numerical character string "31" including that "3" (step S12). When "31" is read, the determination unit 202 of the printing apparatus 1 determines whether to expand the read "31" as a single combined character in a vertical writing format using the vertical writing control information 211. "平成" is adjacent to the front of "31", and the numerical range associated with "平成" in the vertical writing control information 211 is 1 to 31. Therefore, the determination unit 202 expands "31" as a single combined character in a vertical writing format (step S17).

[0064] In the printed character string illustrated in FIG. 9, since the "3" and "1" of "31" are each half-width characters, the number of half-width converted characters n of the combined character "31" is 2 (step S1702). When n = 2 (step S1703; NO), the conversion unit 203 sets the relative value r of the character width to 1, multiplies the width for one character by r, and expands the entire combined character "31" in a vertical writing format (step S1705). Since the combined character "31" is a character formed by combining two half-width characters, the character width of the combined character "31" is equivalent to that of one full-width character.

[0065] After that, the printing device 1 unfolds each of "year", "4", "month", "30", and "day" vertically. At this time, "4" and "30" are unfolded vertically as combined characters.

[0066] When the printed string "April 30, 2019" is unfolded vertically and printed on the printing medium 13 in this way, as illustrated in FIG. 9, the printed string is printed vertically within the printing area 1302 of the printing medium 13. The width WE1 of the printing area 1302 is determined based on, for example, the width W1 of the printing medium 13 and the margins at the ends in the width direction of the printing medium 13 specified in the printing settings. Also, the combined characters "31", "4", and "30" are each unfolded vertically so that the character width of one combined character is one full-width character as described above. For this reason, as illustrated in FIG. 9, when the widths of full-width characters such as "平" and "成" printed vertically on the printing medium 13 are equal to or less than the width WE1 of the printing area 1302, the numerals 1311, 1312, and 1313 corresponding to each of the combined characters "31", "4", and "30" are also printed so as to fit within the printing area 1302.

[0067] In this way, when one combined character when unfolded vertically is one or two characters in half-width conversion, it can be unfolded and printed without changing the character width of the arithmetic numerals included in the combined character.

[0068] FIG. 10 is a diagram for explaining another example of horizontal printing and vertical printing by a printing device according to an embodiment. FIG. 10 shows an example of printing the printed string "Special price: 980 yen" horizontally and an example of unfolding it vertically and printing it vertically along the flowcharts of FIGS. 7 and 8. Further, FIG. 10 shows a modification example 1 when the printed string is unfolded vertically and printed. The three consecutive arithmetic numerals "9", "8", and "0" in the printed string illustrated in FIG. 10 are all in half-width.

[0069] When printing the character string "Special Price 980 Yen" horizontally, as shown in FIG. 10, the characters "SPECIAL", "VALUE", "9", "8", "0", and "YEN" are printed in this order in the print area 1303 of the print medium 13 so that they are aligned along the transport direction of the print medium 13 and the up-down direction of each character is aligned with the width direction of the print medium 13. In this case, the character width of each of the three consecutive Arabic numerals "9", "8", and "0" is approximately half the character width of full-width characters such as "SPECIAL" and "YEN". For this reason, the character width WC of the three-digit number "980" printed on the print medium 13 as one character is wider than the width of one full-width character.

[0070] When the printed string "Special price: 980 yen" is vertically expanded along the flowchart of FIG. 7, the three consecutive arithmetic digit strings "980" form one combined character. Therefore, as illustrated in FIG. 10, the characters "Special", "price", "980", and "yen" are arranged in this order along the conveyance direction of the printing medium 13, and are expanded so that the left - right direction of each character coincides with the width direction of the printing medium 13, and are printed in the printing area 1303 of the printing medium 13. Also, since the combined character "980" has a half - width character count n of 3, when the combined character "980" is vertically expanded along the flowchart of FIG. 8, the relative value r of the character width is set to 2 / 3 (step S1704), and the widths of the characters "9", "8", and "0" are expanded to r times (i.e., (2 / 3) times the character width derived based on the printing settings). In this way, when the printed string is vertically expanded along the flowcharts of FIGS. 7 and 8, the width of the combined character "980" becomes (2 / 3) times the character width WC based on the printing settings described in the example of horizontal printing. Specifically, the number 1314 corresponding to the combined character "980" printed within the printing area 1304 with width WE1 (<WC) is changed from the character width for three half - width characters to the character width for two half - width characters (i.e., the character width for one full - width character). Therefore, even when the width WE1 of the printing area 1304 of the printing medium 13 is narrower than the character width WC of "980" based on the printing settings, the character width of "980" can be made to match the character widths of other full - width characters, and the vertically expanded printed string can be printed within the printing area 1304. Thus, in the printing apparatus 1 of the present embodiment, the arithmetic digits included in the string to be printed vertically on the printing medium 13 can be converted into a form (arrangement and character width) suitable for vertical printing.

[0071] Note that, as described above, the printing apparatus 1 of the present embodiment can use a plurality of types of printing media 13 with different widths, and by replacing the media adapter 11 housed in the adapter housing portion 201, for example, it is also possible to print on the printing media 13 with a width W2 (>W1). FIG. 10 shows, as a first modification example of vertical writing printing, an example of vertical writing printing on a printing media 13 in which the width WE2 of the printing area 1305 is wider than the character width WC of the combined character "980" based on the printing settings. Since the character width WC of the combined character "980" based on the printing settings is the width of three half-width characters, it is wider than the character width of one full-width character. Therefore, when the width WE2 of the printing area 1305 is wider than the character width WC of the combined character "980" based on the printing settings as in the first modification example, the characters "特", "価", "980", and "円" that are expanded in vertical writing can be expanded and printed without making the character widths narrower than the widths based on the printing settings. Therefore, the process of expanding a continuous arithmetic digit sequence as a combined character string in vertical writing (step S17) is not limited to the process according to the flowchart illustrated in FIG. 8, and may be, for example, a process according to the flowchart illustrated in FIG. 11.

[0072] FIG. 11 is a flowchart for explaining another example of the process of expanding a continuous arithmetic digit sequence as a combined character.

[0073] Also in the process of expanding as a combined character in step S17 described with reference to FIG. 11, the conversion unit 203 of the printing apparatus 1 first sets the relative value r of the character width for one character to 1 (step S1711). Next, the conversion unit 203 derives the number of half-width converted characters n of the combined character (step S1712).

[0074] Next, the conversion unit 203 derives the print width WC of the combined character based on the print settings (step S1713). In step S1713, the conversion unit 203 derives the print width WC of the entire combined character when, for example, Arabic numerals included in the combined character are printed horizontally based on the print settings. When the font of the characters in the print settings is a monospaced font, the conversion unit 203 may derive the print width WC based on, for example, the character width of one half-width character derived based on the print settings and the number of half-width converted characters n of the combined character.

[0075] Next, the conversion unit 203 derives the effective print width WE of the print medium 13 (step S1714). In step S1714, the conversion unit 203 derives the effective print width WE based on, for example, the width of the print medium 13 detected by the tape detection unit 24 or the width of the print medium 13 set in the print settings, and the width dimension of the margin area set at the end of the print medium 13 in the width direction.

[0076] Next, the conversion unit 203 judges whether the magnitude relationship between the derived print width WC and the derived effective print width WE is WC>WE (step S1715). If WC>WE (step S1715; YES), the conversion unit 203 changes the relative value r of the character width to WE / WC (step S1716), multiplies the width of one character by r, and develops the entire combined character into vertical writing (step S1717). On the other hand, if WC≦WE (step S1715; NO), the conversion unit 203 does not change the relative value r of the character width (i.e., r=1), and multiplies the width of one character by r, and develops the entire combined character into vertical writing (step S1717). After completing the process of step S1717, the printing device 1 ends the process of step S17.

[0077] In the process according to the flowchart exemplified in FIG. 11, the character width of the Arabic numerals included in the combined characters is narrowed only when the relationship between the effective print width WE of the print medium 13 and the print width WC of the combined characters based on the print settings is WC>WE. Therefore, when WC≦WE, the Arabic numerals included in the combined characters can be printed in vertical writing without narrowing their character width. Therefore, when printing a combined character with a half-width converted character count n of 3 or more in vertical writing, the combined character can be printed with an optimal character width that effectively utilizes the entire print area specified based on the effective print width WE. This makes it possible to prevent, for example, the Arabic numerals included in the combined characters from becoming elongated and difficult to read due to unnecessary character width reduction.

[0078] In the above description with reference to Figs. 9 and 10, an example is given in which consecutive half-width Arabic numerals are expanded vertically as a combined character, but the Arabic numerals to be combined may be full-width. When consecutive Arabic numerals in a printed character string are read, the consecutive Arabic numerals may include, for example, a digit separator ", (comma)" or a decimal point ". (period)". For example, when a printed character string "1,000 yen" is expanded vertically, "1,000" including a digit separator may be expanded vertically as one combined character. For example, when a printed character string "10.5 kg" is expanded vertically, "10.5" including a decimal point may be expanded vertically as one combined character. Furthermore, when a printed character string including Arabic numerals and non-Arabic numerals is expanded vertically, the vertical dimensions of each character and the spacing between characters can be changed as appropriate.

[0079] Fig. 12 is a diagram (part 1) for explaining a first application example of vertical writing printing by a printing device according to an embodiment. Fig. 13 is a diagram (part 2) for explaining a first application example of vertical writing printing by a printing device according to an embodiment.

[0080] FIG. 12(a1) shows an example of a print character string "April 30, 2019" printed horizontally on a print medium 13 of width W1. In this example of horizontal printing, the height (vertical dimension) HC of the characters printed in the print area 1301 is shorter than the width (effective print width) WE1 of the print area 1301, resulting in blank spaces at the top and bottom ends of the print area 1301. In addition, between the "year" and "month" in the print character string "April 30, 2019" is a single half-width Arabic numeral "4". The character width WC1 of the half-width Arabic numeral "4" is approximately half the character width WC2 of full-width characters such as "month". For this reason, when a print string "April 30, 2019", whose half-width converted character count n is 15, is printed horizontally on the print medium 13, the length LP1 of the print area 1301 in the transport direction is approximately 15 half-width characters (in other words, 7.5 full-width characters). When creating a label by printing on the print medium 13, margins may be provided on both sides of the print area 1301 in the transport direction. When margins are provided, the length LL1 of the created label is the length LP1 of the print area 1301 in the transport direction plus the length of the margins provided in the transport direction.

[0081] 12(a2) shows a first example of a case where a print character string "April 30, 2019" is printed vertically on a print medium 13 of width W1. In this first example of vertical printing, when each of the characters "Heisei", "Nari", "31", "Year", "4", "Month", "30", and "Day" is laid out vertically (i.e., lined up vertically), the spacing between each character is set to correspond to the character height HC. In this case, the length of the print area 1302 in the transport direction is approximately eight full-width characters, and is therefore longer by ΔL1 than the length LP1 of the print area 1301 when printed horizontally.

[0082] In the printing device 1 of this embodiment, for example, it is possible to perform a process of printing a print character string such as "April 30, 2019" horizontally on a print medium 13 having a width W1, and a process of printing the print character string vertically in succession. When a process of printing horizontally and a process of printing vertically are performed in succession, for example, it may be desired to make the length of a label created by printing horizontally the same as the length of a label created by printing vertically. For this reason, when printing vertically, for example, as in the second example of vertical printing shown in (a3) ​​of FIG. 12, the length in the conveying direction of the print area 1306 in which the print character string developed vertically is printed may be set to the length LP1 in the conveying direction of the print area 1301 in the case of printing horizontally, and the height HCa of each character may be made smaller than the height HC exemplified in (a2) to reduce the spacing between characters so that all characters of the print character string are printed within the print area 1306.

[0083] In this way, when the process of expanding the printed character string into vertical writing (step S17) includes a process of expanding one half-width Arabic numeral as one combined character, the spacing between each character is reduced so that the length of the print area in the transport direction in vertical printing is the same as the length of the print area in the transport direction in horizontal printing, thereby preventing the label created by printing vertically from being longer than the label created by printing horizontally. This makes it possible to prevent, for example, the label from protruding when the label created by printing vertically is affixed to an item. In addition, since it is possible to prevent the label created by printing vertically from being longer than the label created by printing horizontally, it is possible to prevent, for example, an increase in consumption of the print medium 13 due to vertical printing.

[0084] In Fig. 13(b1), an example is shown where the printed string "Special price: 980 yen" is printed horizontally on the printing medium 13 with a width of W1. In this example of horizontal printing, the height (vertical dimension) HC of the characters printed within the printing area 1301 is shorter than the width (effective printing width) WE1 of the printing area 1301, and there are margins at the upper and lower ends within the printing area 1301. Also, between "price" and "yen" in the printed string "Special price: 980 yen" is the half-width three-digit arithmetic number "980". The character width WC of this arithmetic number "980" is larger than the character width of full-width characters such as "yen". Therefore, when the printed string "Special price: 980 yen" with a half-width equivalent character count n of 9 is printed horizontally on the printing medium 13, the length LP2 in the conveyance direction of the printing area 1301 is approximately equivalent to 9 half-width characters (in other words, 4.5 full-width characters). Also, when creating a label by printing on the printing medium 13, margins may be provided on both sides in the conveyance direction of the printing area 1301. When margins are provided, the length LL2 of the created label is the length obtained by adding the length of the margins in the conveyance direction to the length LP1 in the conveyance direction of the printing area 1301.

[0085] Fig. 13(b2) shows a first example of the case where the printed string "Special price: 980 yen" is printed vertically on the printing medium 13 with a width of W1. In this first example of vertical printing, when expanding each character of "Special", "price", "980", and "yen" vertically (i.e., arranging them vertically), the interval between each character is made an interval corresponding to the character height HC. In this case, since the length in the conveyance direction of the printing area 1304 is approximately equivalent to 4 full-width characters, it is shorter than the length LP2 of the printing area 1301 in the case of horizontal printing by ΔL2.

[0086] In this way, if the length in the transport direction of the print area 1304 when vertically printed is shorter than the length LP2 of the print area 1301 when horizontally printed, for example, when the entire print medium 13 is cut after printing, the cut print medium 13 may not be discharged from the discharge port 202 of the printer 1 due to an insufficient length. For this reason, for example, as in the second example of vertical printing shown in (b3) of FIG. 13, the length in the transport direction of the print area 1309 in which the vertically expanded print character string is printed may be set to the length LP1 in the transport direction of the print area 1301 in the horizontally printed state, so that all characters of the print character string are printed within the print area 1309. In this case, for example, margins 1307 and 1308 are provided on both sides of the transport direction within the print area 1309 so that the length in the transport direction of the area in which the print character string is printed within the print area 1309 becomes the length when the print character string is expanded vertically. The dimension L1 of the first margin 1307 and the dimension L2 of the second margin 1308 shown in (b3) may be the same or different.

[0087] When the process of expanding the print character string into vertical writing (step S17) includes a process of expanding three or more Arabic numerals into one combined character, adding each margin so that the length of the print area in the transport direction in vertical printing is the same as the length of the print area in the transport direction in horizontal printing, prevents the label created by printing vertically from being shorter than the label created by printing horizontally. This makes it possible to prevent, for example, a situation in which a label created by printing vertically on the print medium 13 and cutting it is not ejected from the printer 1.

[0088] As described with reference to Figures 12 and 13, the printing device 1 of this embodiment can control not only the Arabic numerals contained in a string of characters printed vertically on the printing medium 13, but also the printing form of the entire string of characters (character arrangement, character width, character spacing, etc.).

[0089] In the above embodiment, the Arabic numerals in the printed character string are one of the combination characters. However, the characters to be combined may include a predetermined character string other than the Arabic numerals.

[0090] 14 is a diagram illustrating a second application example of vertical writing printing by a printing device according to an embodiment. FIG. 14 illustrates an application example in which a print character string "April 30, 2019" is printed vertically.

[0091] A character string indicating an era name such as "Heisei" in the example printed character string may be easier to read if it is printed as a single combined character "Heisei" rather than printing "Hei" and "Nari" vertically. For this reason, for example, when a leading keyword indicating an era name is adjacent to the beginning of a continuous string of Arabic numerals, the character string indicating the era name may also be made into a combined character, and each character of "Heisei", "31", "Year", "4", "Month", "30", and "Day" may be developed vertically and printed in the printing area 1320 of the print medium 13 as shown in FIG. 14. In addition, although not shown, when a unit of length or a unit of mass expressed by two or more letters of alphabet, such as "km (kilometer)", "mm (millimeter)", and "kg (kilogram)", is included, the meaning of the Arabic numerals printed on the label may be easily understood by making these units into a combined character.

[0092] The above-described embodiment is a specific example shown to facilitate understanding of the invention, and the present invention is not limited to the above-described embodiment. The printing device, the control method, and the program can be modified and changed in various ways without departing from the scope of the claims.

[0093] For example, the vertical writing control information 211 used to determine whether or not one character or two or more consecutive Arabic numerals included in a print character string should be expanded vertically as a combined character is not limited to the format illustrated in Fig. 4 and can be modified as appropriate. For example, the vertical writing control information 211 may not include information indicating a numerical range for the combined character. Also, for example, the vertical writing control information 211 may include two separate pieces of information: information in which a backward keyword is stored and information in which a forward keyword is stored. Furthermore, the vertical writing control information 211 may allow, for example, a user of the printing device 1 to add or delete information such as a forward keyword and a backward keyword.

[0094] In addition, the program executed by the processor of the printer 1 when printing on the print medium 13 is not limited to the program that executes the processes according to the flowcharts illustrated in Fig. 6 and Fig. 7 in the illustrated order, and can be modified as appropriate. For example, the process of step S4 of developing the print character string into vertical writing may omit the judgment of step S16 illustrated in the flowchart of Fig. 7. In addition, when a character string indicating the era name, a unit of length or a unit of mass other than a unit of time such as a year, month, and day is included in the rear keyword, a set of two or more Arabic numerals adjacent to a unit of length or a unit of mass may be a set of consecutive Arabic numerals including at least one of a digit separator and a decimal point symbol. When a unit of length or a unit of mass, etc., is adjacent to a set of consecutive Arabic numerals including a decimal point symbol, the entire set of consecutive Arabic numerals including the decimal point symbol may be converted into vertical writing as one combined character. In addition, when a set of consecutive Arabic numerals including a decimal point symbol is followed by a unit of length or a unit of mass, the set of consecutive Arabic numerals including the decimal point symbol may be converted to vertical writing with the Arabic numerals before the decimal point symbol as a first combined character and the Arabic numerals after the decimal point symbol as a second combined character. In addition, when Arabic numerals adjacent to a unit of length or a unit of mass are included in the printed characters, the upper limit of the number of digits of Arabic numerals to be combined into a combined character (i.e., the number of consecutive Arabic numerals) may be changed depending on, for example, the effective print WE on the print medium 13. Furthermore, the process of step S17 shown in the flowchart of FIG. 7 may be a process different from the process described with reference to FIG. 8 and the process described with reference to FIG. 11.

[0095] In the above embodiment, an example is shown in which, when an Arabic numeral and a front keyword or a rear keyword are adjacent to each other, the Arabic numeral is converted to vertical writing in a form corresponding to the adjacent front keyword or rear keyword. However, the present invention is not limited to this. When an Arabic numeral and a front keyword or a rear keyword are adjacent to each other, in other words, when the number of characters between the Arabic numeral and the front keyword or the rear keyword is less than a predetermined number of characters (including the case where it is 0), the Arabic numeral may be converted to vertical writing in a form corresponding to the adjacent front keyword or rear keyword. The predetermined number of characters is, for example, one character or two characters. When the predetermined number of characters is one character, for example, "12" in "12 months" included in a character string to be printed vertically on a print medium is regarded as an Arabic numeral adjacent to the rear keyword "month" and converted to vertical writing as one combined character. Such a process can be implemented, for example, by changing steps S13 and S14 in the vertical writing development process described above with reference to FIG. 7 to a process of determining whether or not a predetermined keyword is present within the range of the number of characters considered to be adjacent.

[0096] The printing device 1 is not limited to a thermal printer that prints on the print medium 13 including the above-mentioned thermal recording material layer, but may be a thermal transfer type thermal printer that heats the ink components of an ink ribbon and transfers them to the print medium 13. The printing device 1 is not limited to a thermal printer, but may be any other type of printing device. The printing device 1 may be, for example, a printing device that can use paper as the print medium. Furthermore, the printing device 1 may be capable of printing on a print medium that can be attached to a cloth product or the like by heating it with an iron or the like, or a print medium that includes a print layer and a magnet layer. The printing device 1 may be one that does not include the cutting unit 8, or one that has a cutting unit 8 that includes a manual cutter.

[0097] The printing device 1 can communicate with external devices such as a smartphone or other computers, and may be one in which the keyboard area 3 of the device housing 2 is omitted. This type of printing device 1 performs printing on the print medium 13 by receiving print data created by executing an application program that controls the operation of the printing device 1 on the external device from the external device. That is, the search unit 201, the determination unit 202, and the conversion unit 203 described as part of the functions of the control unit 20 of the printing device 1 in the above embodiment may be included in the external device that executes the application program that controls the operation of the printing device 1. Vertical writing control information 211 is stored in the storage unit of the external device that includes the search unit 201, the determination unit 202, and the conversion unit 203. Thus, the present invention includes an external device (character information output device) that converts Arabic numerals into vertical writing in a form corresponding to the characters that match a predetermined keyword and outputs the Arabic numerals to the printing device 1 when Arabic numerals are included in a character string that is to be printed vertically on the print medium by the printing device 1 and a character that matches a predetermined keyword is adjacent to the front or rear of the Arabic numerals in the character string. The present invention also includes a printing system comprising a printing device that prints on a print medium, and an external device (character information output device) that, when Arabic numerals are included in a string of characters to be printed vertically on the print medium and a character matching a specified keyword is adjacent to the front or back of the Arabic numerals in the string, converts the Arabic numerals to vertical writing in a form corresponding to the characters matching the specified keyword and outputs the converted Arabic numerals to the printing device.

[0098] The invention as described in the claims of the original application is set forth below. [Appendix 1] A control unit that, when Arabic numerals are included in a character string to be printed vertically on a print medium by a printing device and a character matching a predetermined keyword is adjacent to the Arabic numerals in front of or behind the Arabic numerals in the character string, converts the Arabic numerals into vertical writing in a form corresponding to the character matching the predetermined keyword and outputs the converted Arabic numerals to the printing device. A character information output device comprising: [Appendix 2] In the character information output device of appendix 1, When the character matching the predetermined keyword is adjacent to the front or back of a set of two or more consecutive Arabic numerals, the control unit converts the adjacent set of two or more Arabic numerals into one combined character in which Arabic numerals are written horizontally into vertical writing, and when the character matching the predetermined keyword is not adjacent, converts each Arabic numeral included in the set of two or more consecutive Arabic numerals into vertical writing one character at a time. 1. A character information output device comprising: [Appendix 3] In the character information output device of appendix 1, The predetermined keyword includes one or more of a character string indicating an era name, a year, a month, and a day, When a character string indicating the era name is adjacent to the front of the pair of two consecutive Arabic numerals, or when any of the year, the month, and the day is adjacent to the rear of the pair of two consecutive Arabic numerals, the control unit converts the pair of two consecutive Arabic numerals into one combined character with the Arabic numerals written horizontally, into vertical writing. 1. A character information output device comprising: [Appendix 4] In the character information output device of appendix 3, The control unit determines whether or not to make the set of two consecutive Arabic numerals into the combined character based on any one of the character string indicating the era, the year, the month, and the day adjacent to the set of two consecutive Arabic numerals, and a numerical value represented by the set of two consecutive Arabic numerals. 1. A character information output device comprising: [Appendix 5] In the character information output device of appendix 4, When a two-digit number represented by the set of two consecutive Arabic numerals adjacent to the character string indicating the imperial era name is outside a numerical range associated with the imperial era name, when a two-digit number represented by the set of two consecutive Arabic numerals adjacent to the month is 13 or more, or when a two-digit number represented by the set of two consecutive Arabic numerals adjacent to the day is 32 or more, the control unit converts each of the two consecutive Arabic numerals into vertical writing, character by character. 1. A character information output device comprising: [Appendix 6] In the character information output device according to claim 2 or 3, The control unit converts the combination character into a full-width character written vertically. 1. A character information output device comprising: [Appendix 7] In the character information output device according to claim 2 or 3, The control unit determines a width of the combination character based on a dimension in a width direction of the combination character of a print area of ​​a print medium on which the combination character is printed by the printing device. 1. A character information output device comprising: [Appendix 8] In the character information output device according to claim 2 or 3, The predetermined keyword includes a unit other than a unit of time. 1. A character information output device comprising: [Appendix 9] In the character information output device of appendix 8, When two or more consecutive Arabic numerals including at least one of a digit separator and a decimal point symbol are adjacent to a unit other than the unit of time, the control unit converts the set of two or more consecutive Arabic numerals into one combined character and writes the set vertically. 1. A character information output device comprising: [Appendix 10] In the character information output device of appendix 8, When two or more consecutive Arabic numerals including a decimal point symbol are adjacent to a unit other than the unit of time, the control unit converts the two or more consecutive Arabic numerals into vertical writing by treating the Arabic numerals before the decimal point symbol as a first combination character and the Arabic numerals after the decimal point symbol as a second combination character. 1. A character information output device comprising: [Appendix 11] In the character information output device of appendix 1, The control unit converts the character string into vertical writing so that a dimension of a character arrangement direction in a print area when the character string converted into vertical writing is printed on a print medium by the printing device becomes a dimension of a character arrangement direction in a print area when the character string is printed in horizontal writing on the print medium by the printing device. 1. A character information output device comprising: [Appendix 12] In the character information output device of Appendix 11, When the character string converted to vertical writing is printed on the print medium by the printing device, the dimension of the character arrangement direction in the print area is larger than the dimension of the character arrangement direction in the print area when the character string is printed on the print medium by the printing device in horizontal writing, at least one of the vertical dimension of the characters and the spacing between the characters is reduced. 1. A character information output device comprising: [Appendix 13] In the character information output device of Appendix 11, If the dimension of the character arrangement direction in the print area when the character string converted to vertical writing is printed on the print medium by the printing device is smaller than the dimension of the character arrangement direction in the print area when the character string is printed on the print medium by the printing device in horizontal writing, a margin is added to the end of the character arrangement direction in the print area. 1. A character information output device comprising: [Appendix 14] In any one of the character information output devices according to claims 1 to 13, The control unit determines that the Arabic numerals and the characters matching the predetermined keyword are adjacent to each other when the number of characters between the Arabic numerals and the characters matching the predetermined keyword is equal to or less than a predetermined number of characters. 1. A character information output device comprising: [Appendix 15] A printing unit that prints on a print medium; a control unit that, when an Arabic numeral is included in a character string to be printed vertically on the print medium and a character matching a predetermined keyword is adjacent to the Arabic numeral in front of or behind the Arabic numeral in the character string, converts the Arabic numeral into vertical writing in a form corresponding to the character matching the predetermined keyword; A printing device comprising: [Appendix 16] A printing device for printing on a print medium; a character information output device that, when Arabic numerals are included in a character string to be printed vertically on a print medium and a character matching a predetermined keyword is adjacent to the Arabic numerals in front of or behind the Arabic numerals in the character string, converts the Arabic numerals into vertical writing in a form corresponding to the character matching the predetermined keyword and outputs the converted Arabic numerals to the printing device; A printing system comprising: [Appendix 17] The computer When Arabic numerals are included in a character string to be printed vertically on a print medium and a character matching a predetermined keyword is adjacent to the Arabic numerals in front of or behind the Arabic numerals in the character string, the Arabic numerals are converted to vertical writing in a form corresponding to the character matching the predetermined keyword. A control method comprising: executing a process. [Appendix 18] On the computer, When Arabic numerals are included in a character string to be printed vertically on a print medium and a character matching a predetermined keyword is adjacent to the Arabic numerals in front of or behind the Arabic numerals in the character string, the Arabic numerals are converted to vertical writing in a form corresponding to the character matching the predetermined keyword. A program characterized by executing a process. [Explanation of symbols]

[0099] 1 Printing device 2. Equipment casing 201 Media storage section 202 Outlet 3 Keyboard area 4 Lid 5 Display device 6 Platen roller 7 Printing unit 701 Thermal head 8 Cutting Unit 11 Media Adapter 12 Tape rolls 13 Printing media 20 Control section 201 Search Department 202 Judgment section 203 Conversion unit 21 Memory section 211 Vertical writing control information 22 Input section 23 Display section 24 Tape detection unit 25 Conveyor 26 Printing Department 27 Cutting section 1301,1302,1303,1304,1305,1306 Print area 1307,1308 Margin 1309,1320 Print area 1311,1312,1313,1314,1315 numbers

Claims

1. A control unit that converts the set of Arabic numerals into a single combination character in which Arabic numerals are written horizontally into vertical writing when a character string to be printed vertically on a print medium by a printing device includes a set of two or more consecutive Arabic numerals and when a character matching a predetermined keyword is adjacent to the front or back of the set of Arabic numerals in the character string, and converts each Arabic numeral included in the set of Arabic numerals into vertical writing one character at a time and outputs the converted character to the printing device when a character matching a predetermined keyword is not adjacent to the front or back of the set of Arabic numerals. A character information output device comprising:

2. A control unit which, when a character string to be printed vertically on a print medium by a printing device contains two or more consecutive sets of Arabic numerals, and when a character matching a predetermined keyword including one or more of a character string indicating an era name, a year, a month, and a day is adjacent to or before or after the set of Arabic numerals in the character string, determines whether or not to convert the set of Arabic numerals into a single combined character in which the Arabic numerals are written horizontally, based on any of the character string indicating the era name, the year, the month, and the day that is adjacent to the set of Arabic numerals, and the numerical value represented by the set of Arabic numerals, and converts the set of Arabic numerals into the combined character written vertically based on the determination, and outputs the result to the printing device. A character information output device comprising:

3. 3. The character information output device according to claim 2, When a two-digit number represented by the set of Arabic numerals adjacent to the character string indicating the era name is outside a numerical range associated with the era name, when a two-digit number represented by the set of Arabic numerals adjacent to the month is 13 or more, or when a two-digit number represented by the set of Arabic numerals adjacent to the day is 32 or more, the control unit converts each of the Arabic numerals included in the set of Arabic numerals into vertical writing, character by character.

1. A character information output device comprising:

4. 3. The character information output device according to claim 1, The control unit converts the combination character into a full-width character written vertically.

1. A character information output device comprising:

5. 3. The character information output device according to claim 1, The control unit determines a width of the combination character based on a dimension in a width direction of the combination character of a print area of ​​a print medium on which the combination character is printed by the printing device.

1. A character information output device comprising:

6. 3. The character information output device according to claim 1, The predetermined keyword includes a unit other than a unit of time.

1. A character information output device comprising:

7. 7. The character information output device according to claim 6, When two or more consecutive Arabic numerals including at least one of a digit separator and a decimal point symbol are adjacent to a unit other than the unit of time, the control unit converts a set of the two or more consecutive Arabic numerals into one combined character and writes the set vertically.

1. A character information output device comprising:

8. 7. The character information output device according to claim 6, When two or more consecutive Arabic numerals including a decimal point symbol are adjacent to a unit other than the unit of time, the control unit converts the two or more consecutive Arabic numerals into vertical writing by treating the Arabic numerals before the decimal point symbol as a first combination character and treating the Arabic numerals after the decimal point symbol as a second combination character.

1. A character information output device comprising:

9. 2. The character information output device according to claim 1, The control unit converts the character string into vertical writing so that a dimension of a character arrangement direction in a print area when the character string converted into vertical writing is printed on a print medium by the printing device becomes a dimension of a character arrangement direction in a print area when the character string is printed in horizontal writing on the print medium by the printing device.

1. A character information output device comprising:

10. 10. The character information output device according to claim 9, When the character string converted to vertical writing is printed on the print medium by the printing device, the dimension of the character arrangement direction in the print area is larger than the dimension of the character arrangement direction in the print area when the character string is printed on the print medium by the printing device in horizontal writing, at least one of the vertical dimension of the characters and the spacing between the characters is reduced.

1. A character information output device comprising:

11. 10. The character information output device according to claim 9, If the dimension of the character arrangement direction in the print area when the character string converted to vertical writing is printed on the print medium by the printing device is smaller than the dimension of the character arrangement direction in the print area when the character string is printed on the print medium by the printing device in horizontal writing, a margin is added to the end of the character arrangement direction in the print area.

1. A character information output device comprising:

12. The character information output device according to any one of claims 1 to 11, The control unit determines that the set of Arabic numerals and the character matching the predetermined keyword are adjacent when the number of characters between the set of Arabic numerals and the character matching the predetermined keyword is equal to or less than a predetermined number of characters.

1. A character information output device comprising:

13. A printing unit that prints on a print medium; a control unit which converts the set of Arabic numerals into a single combined character in which Arabic numerals are written horizontally into vertical writing when a character string to be printed vertically on the print medium includes a set of two or more consecutive Arabic numerals and when a character matching a predetermined keyword is adjacent to the front or back of the set of Arabic numerals in the character string, and converts each Arabic numeral included in the set of Arabic numerals into vertical writing one character at a time when a character matching a predetermined keyword is not adjacent to the front or back of the set of Arabic numerals; A printing device comprising:

14. A printing device for printing on a print medium; a character information output device which, when a character string to be printed vertically on a print medium includes a set of two or more consecutive Arabic numerals and a character matching a predetermined keyword is adjacent to the front or back of the set of Arabic numerals in the character string, converts the set of Arabic numerals into vertical writing as one combined character in which the Arabic numerals are written horizontally, and, when a character matching a predetermined keyword is not adjacent to the front or back of the set of Arabic numerals, converts each Arabic numeral included in the set of Arabic numerals into vertical writing one character at a time and outputs the converted Arabic numerals to the printing device; A printing system comprising:

15. The computer When a character string to be printed vertically on a print medium includes a set of two or more consecutive Arabic numerals, and when a character matching a predetermined keyword is adjacent to the front or back of the set of Arabic numerals in the character string, the set of Arabic numerals is converted to vertical writing as one combined character in which the Arabic numerals are written horizontally, and when a character matching a predetermined keyword is not adjacent to the front or back of the set of Arabic numerals, each Arabic numeral included in the set of Arabic numerals is converted to vertical writing one character at a time. A control method comprising: executing a process.

16. On the computer, When a character string to be printed vertically on a print medium includes a set of two or more consecutive Arabic numerals, and when a character matching a predetermined keyword is adjacent to the front or back of the set of Arabic numerals in the character string, the set of Arabic numerals is converted to vertical writing as one combined character in which the Arabic numerals are written horizontally, and when a character matching a predetermined keyword is not adjacent to the front or back of the set of Arabic numerals, each Arabic numeral included in the set of Arabic numerals is converted to vertical writing one character at a time. A program characterized by executing a process.

Citation Information

Patent Citations

  • Method and device for document processing

    JP1995028790A

  • Address notation conversion and check method

    JP1998078953A

  • Document processor and medium storing document processor control program

    JP1999066054A

  • Apparatus and method for processing character information and computer readable recording medium

    JP2000318252A

  • Display device, display method, and printer

    JP2004272004A