JP5234028B2 - Tape printing apparatus, program, and printing control method - Google Patents

Tape printing apparatus, program, and printing control method Download PDF

Info

Publication number
JP5234028B2
JP5234028B2 JP2010056042A JP2010056042A JP5234028B2 JP 5234028 B2 JP5234028 B2 JP 5234028B2 JP 2010056042 A JP2010056042 A JP 2010056042A JP 2010056042 A JP2010056042 A JP 2010056042A JP 5234028 B2 JP5234028 B2 JP 5234028B2
Authority
JP
Japan
Prior art keywords
image
print
line
characters
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2010056042A
Other languages
Japanese (ja)
Other versions
JP2011189561A (en
Inventor
良彦 杉村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2010056042A priority Critical patent/JP5234028B2/en
Publication of JP2011189561A publication Critical patent/JP2011189561A/en
Application granted granted Critical
Publication of JP5234028B2 publication Critical patent/JP5234028B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Record Information Processing For Printing (AREA)

Description

本発明は、長尺状の印字媒体に対する印刷画像の向きを任意に設定し、設定された向きに対応する回転角度で文字が回転した状態を表す印刷画像を印刷するテープ印刷装置に関するものである。   The present invention relates to a tape printer that arbitrarily sets the orientation of a print image with respect to a long print medium and prints a print image representing a state in which characters are rotated at a rotation angle corresponding to the set orientation. .

従来、文字を入力する文字入力手段と、文字入力手段に入力された文字を表示する表示画面と、長尺状の印字媒体に対する印刷画像の向きを任意に設定する方向設定手段と、文字入力手段により入力された文字が方向設定手段により設定された向きに対応する回転角度で回転した状態を表す印刷画像を生成する画像生成手段と、印刷画像を前記印字媒体に印刷する印刷手段と、を備えるテープ印刷装置が知られている。   Conventionally, a character input means for inputting characters, a display screen for displaying characters input to the character input means, a direction setting means for arbitrarily setting the orientation of a print image with respect to a long print medium, and a character input means An image generation unit that generates a print image representing a state in which the character input by is rotated at a rotation angle corresponding to the direction set by the direction setting unit, and a print unit that prints the print image on the print medium. Tape printers are known.

例えば特許文献1のラベルプリンタ3では、文字列画像を複数の方向に回転させた状態が各々表された画像方向選択部74を備え、これから選択された各選択ボタン74a〜74dに対応する回転画像に基づいて印刷データを作成する。そして、この印刷データに基づいてテープに設定されたラベル幅に回転画像を印刷し、ラベル排出口から排出されたテープを切断してラベルを作成する。よってユーザにとって好適な向きとなるように画像をテープに印刷できる。   For example, the label printer 3 of Patent Document 1 includes an image direction selection unit 74 that represents a state in which a character string image is rotated in a plurality of directions, and a rotated image corresponding to each selection button 74a to 74d selected from this. Create print data based on Then, based on this print data, a rotated image is printed at the label width set on the tape, and the tape discharged from the label discharge port is cut to create a label. Therefore, the image can be printed on the tape so that the orientation is suitable for the user.

特開2007−219583号公報JP 2007-219583 A

しかしながら、当該技術では、文字列のレイアウトを保持したまま、回転画像を生成する。テープ印刷装置では印字媒体の幅方向の長さは限られるため、回転画像がテープの印刷領域に納まらない場合が多く、その場合、画像を大幅に縮小したり、印刷可能な部分のみ印刷したり、印刷エラーを報知したりする必要がある。特に、ある程度長い文字列が回転した画像を印字領域に納まるように印刷しようとすると当該文字列をユーザが予め複数行に改行する必要があって不便なだけでなく、予め改行しても複数行の文字列が並列する向きが印字媒体の向きと揃わずに、見た目が悪く印字領域の無駄も生じてやはり画像を縮小しなくてはならない場合が多い。   However, in this technique, a rotated image is generated while maintaining the layout of the character string. In tape printers, the length of the print medium in the width direction is limited, so the rotated image often does not fit in the print area of the tape. In this case, the image is greatly reduced, or only the printable part is printed. It is necessary to notify a printing error. In particular, when printing an image in which a long character string is rotated so as to fit in the print area, it is not convenient for the user to break the character string into multiple lines in advance. In many cases, the direction in which the character strings are aligned is not aligned with the direction of the print medium, the appearance is poor, the print area is wasted, and the image must still be reduced.

そこで、本発明は、上述した問題点を解決するためになされたものであり、文字列が任意に設定された向きに対応する回転角度で回転した状態を表す画像を印刷する際に、文字サイズを大幅に縮小することなく印字領域に納めて印刷できると共に、見た目良く印刷できるテープ印刷装置、プログラム及び印刷制御方法を提供することを目的とする。   Accordingly, the present invention has been made to solve the above-described problems, and when printing an image representing a state in which a character string is rotated at a rotation angle corresponding to an arbitrarily set orientation, the character size is printed. An object of the present invention is to provide a tape printing apparatus, a program, and a print control method that can be printed in a print area without drastically reducing the size of the image and can be printed with good appearance.

前記目的を達成するため請求項1に係るテープ印刷装置は、文字を入力する文字入力手段と、前記文字入力手段に入力された文字を表示する表示画面と、長尺状の印字媒体に対する印刷画像の向きを任意に設定する方向設定手段と、前記文字入力手段により入力された文字が前記方向設定手段により設定された向きに対応する角度で回転した状態を表す印刷画像を生成する画像生成手段と、前記印刷画像を前記印字媒体に印刷する印刷手段と、を備えるテープ印刷装置において、前記画像生成手段は、前記文字入力手段により入力された文字列の改行位置を決定する改行位置決定手段を有し、改行位置決定手段により決定された位置で改行した各行の文字列が前記方向設定手段により設定された向きに対応する回転角度で回転すると共に前記印字媒体の長手方向に沿って並列した状態を表す第1並列画像を前記印刷画像として生成すること、を特徴とする。   In order to achieve the above object, a tape printer according to claim 1 includes a character input unit for inputting characters, a display screen for displaying characters input to the character input unit, and a print image for a long print medium. Direction setting means for arbitrarily setting the direction of the image; and image generation means for generating a print image representing a state in which the character input by the character input means is rotated at an angle corresponding to the direction set by the direction setting means; And a printing unit that prints the print image on the print medium. The image generation unit includes a line feed position determination unit that determines a line feed position of the character string input by the character input unit. The character string of each line that has been line-breaked at the position determined by the line-break position determining means rotates at a rotation angle corresponding to the direction set by the direction setting means and Generating a first parallel image representing a state in which parallel along the longitudinal direction of the shaped medium as the print image, characterized by.

また請求項2のテープ印刷装置は、請求項1に記載のテープ印刷装置において、前記改行位置決定手段は、一行の文字数を決定する文字数決定手段を備え、前記文字列を前記文字数決定手段が設定した文字数毎に改行することを決定することを特徴とする。   The tape printer according to claim 2 is the tape printer according to claim 1, wherein the line feed position determining means includes character number determining means for determining the number of characters in one line, and the character number determining means sets the character string. It is determined that a line feed is determined every number of characters.

また請求項3のテープ印刷装置は、請求項1に記載のテープ印刷装置において、前記改行位置決定手段は、形態素解析により前記文字列を形態素に分ける形態素解析手段を備え、前記形態素解析手段の解析に基づいて前記文字列の改行位置を決定することを特徴とする。   The tape printing apparatus according to claim 3 is the tape printing apparatus according to claim 1, wherein the line feed position determination means includes morpheme analysis means for dividing the character string into morphemes by morpheme analysis, and the analysis of the morpheme analysis means is performed. The line feed position of the character string is determined based on the above.

また請求項4のテープ印刷装置は、請求項3に記載のテープ印刷装置において、前記改行位置決定手段は、前記形態素解析手段が分けた形態素をまとめて文節を認定する文節認定手段と、前記文節認定手段がまとめた文節の文字数を計数する計数手段と、を有し、前記計数手段による計数結果及び前記文節認定手段の認定結果に基づき、文節毎に改行すると共に文字数が多い文節では文節内で改行するように決定することを特徴とする。   The tape printer according to claim 4 is the tape printer according to claim 3, wherein the line feed position determining unit includes a phrase recognition unit that recognizes a phrase by collecting morphemes divided by the morpheme analysis unit, and the phrase Counting means for counting the number of characters of the clauses collected by the recognition means, and based on the counting result by the counting means and the recognition result of the clause recognition means, a line break is made for each clause and in the clause with a large number of characters, It is characterized by deciding to start a new line.

また請求項5のテープ印刷装置は、請求項2乃至請求項4のいずれかに記載のテープ印刷装置において、前記改行位置決定手段が決定した改行位置を示すように前記表示画面に前記文字列を表示させる第1表示制御手段と、前記改行位置を変更指示するための指示入力手段と、を備えたことを特徴とする。   The tape printer according to claim 5 is the tape printer according to any one of claims 2 to 4, wherein the character string is displayed on the display screen so as to indicate the line feed position determined by the line feed position determining means. First display control means for displaying and instruction input means for instructing change of the line feed position are provided.

また請求項6のテープ印刷装置は、文字を入力する文字入力手段と、前記文字入力手段に入力された文字を表示する表示画面と、長尺状の印字媒体に対する印刷画像の向きを任意に設定する方向設定手段と、前記文字入力手段により入力された文字が前記方向設定手段により設定された向きに対応する回転角度で回転した状態を表す印刷画像を生成する画像生成手段と、前記印刷画像を前記印字媒体に印刷する印刷手段と、を備えるテープ印刷装置において、前記画像生成手段は、前記文字列を表す文字列画像を前記方向設定手段に設定された向きに対応する回転角度で回転させた状態で、前記印字媒体の長手方向と平行な直線により印字媒体の印字領域幅に合わせて切断して複数の画像断片を生成する画像切断手段を有し、前記画像断片を、前記印字媒体の長手方向に沿って並列させた第2並列画像を前記印刷画像として生成することを特徴とする。   According to another aspect of the tape printer of the present invention, the character input means for inputting characters, the display screen for displaying the characters input to the character input means, and the orientation of the print image with respect to the long print medium are arbitrarily set. Direction setting means, image generation means for generating a print image representing a state in which the character input by the character input means is rotated at a rotation angle corresponding to the direction set by the direction setting means, and the print image In the tape printing apparatus comprising: a printing unit that prints on the printing medium, the image generation unit rotates the character string image representing the character string at a rotation angle corresponding to the direction set in the direction setting unit. In this state, image cutting means for generating a plurality of image fragments by cutting according to a print area width of the print medium by a straight line parallel to the longitudinal direction of the print medium, And generates a second parallel image obtained by parallel along a longitudinal direction of the print medium as the print image.

また請求項7のテープ印刷装置は、請求項1乃至請求項6のいずれかに記載のテープ印刷装置において、前記印刷画像が前記印字媒体に印字されて作出されるプリントラベルを示すラベル画像を、前記方向設定手段に設定された向きとは逆方向に、当該設定された向きに対応した回転角度と同じ回転角度で回転した状態で前記表示画面に表示させる第2表示制御手段を備えることを特徴とする。   A tape printer according to claim 7 is the tape printer according to any one of claims 1 to 6, wherein a label image indicating a print label produced by printing the print image on the print medium, 2nd display control means to display on the said display screen in the state rotated by the same rotation angle as the rotation angle corresponding to the said set direction in the opposite direction to the direction set to the said direction setting means, It is characterized by the above-mentioned. And

また請求項8のプログラムは、コンピュータを前記請求項1乃至請求項7のいずれかのテープ印刷装置として機能させる。   A program according to an eighth aspect causes a computer to function as the tape printer according to any one of the first to seventh aspects.

また請求項9の印刷制御方法は、文字を入力する文字入力工程と、長尺状の印字媒体に対する印刷画像の向きを任意に設定する方向設定工程と、前記文字入力工程で入力された文字が前記方向設定工程で設定された向きに対応する回転角度で回転した状態を表す印刷画像を生成する画像生成工程と、前記印刷画像を前記印字媒体に印刷する印刷工程と、を備える印刷制御方法において、前記画像生成工程は、前記文字入力工程により入力された文字列の改行位置を決定する改行位置決定工程と、前記改行位置決定工程により決定された位置で改行した各行の文字列が、前記方向設定工程で設定された向きに対応する回転角度で回転すると共に前記印字媒体の長手方向に沿って並列した状態を表す第1並列画像を前記印刷画像として生成する並列画像作成工程と、を有すること、を特徴とする。   According to a ninth aspect of the present invention, there is provided a print control method comprising: a character input step for inputting characters; a direction setting step for arbitrarily setting the orientation of a print image with respect to a long print medium; and a character input in the character input step. In a print control method comprising: an image generation step for generating a print image representing a state rotated at a rotation angle corresponding to the direction set in the direction setting step; and a print step for printing the print image on the print medium. The image generation step includes: a line feed position determining step for determining a line feed position of the character string input by the character input step; and a character string of each line having a line break at the position determined by the line feed position determining step, A parallel image that is rotated at a rotation angle corresponding to the direction set in the setting step and that generates a first parallel image representing a state of being arranged in parallel along the longitudinal direction of the print medium as the print image. That includes an image creating step, and characterized.

請求項1のテープ印刷装置及び請求項9の印刷制御方法では、入力された文字列の改行位置が決定され、当該決定された改行位置で改行した各行の文字列が方向設定手段により設定された向きに対応する回転角度で回転すると共に印字媒体の長手方向に沿って並列した状態を表す第1並列画像が印刷画像として生成される。よって印刷画像を大幅に縮小せずに印字媒体の印刷領域に納めて印刷することが可能である。また、各行の文字列が印字媒体の長手方向に沿って並列した印刷画像が印刷されるので見た目良く印刷できると共に、幅の限られた印字領域を有効活用して文字の大きさを確保して印刷できる。   In the tape printer of claim 1 and the print control method of claim 9, the line feed position of the input character string is determined, and the character string of each line that has been broken at the determined line feed position is set by the direction setting means. A first parallel image that is rotated at a rotation angle corresponding to the direction and represents a state of being parallel along the longitudinal direction of the print medium is generated as a print image. Therefore, it is possible to print the print image by storing it in the print area of the print medium without greatly reducing it. In addition, since the print image in which the character strings of each line are arranged in parallel along the longitudinal direction of the print medium is printed, it can be printed with good appearance, and the size of the characters can be secured by effectively utilizing the print area with a limited width. Can print.

また、請求項2のテープ印刷装置では、文字数決定手段により一行の文字数が決定され、文字列を当該文字数毎に改行するよう改行位置が決定されるため、各行の文字列は、同じ文字数となり、更に見た目良い印刷結果をもたらすと共に、各行の文字数がばらつくことによる印字領域の無駄を防止して、更に大きな文字サイズで印刷することができる。   In the tape printer according to claim 2, since the number of characters in one line is determined by the character number determining means, and the line feed position is determined so that the character string is broken into lines for each number of characters, the character strings in each line have the same number of characters. Furthermore, the printing result can be improved, and the printing area can be prevented from being wasted due to the variation in the number of characters in each line, thereby enabling printing with a larger character size.

また、請求項3のテープ印刷装置では、形態素解析手段が形態素解析により文字列を形態素に分け、形態素解析手段の解析に基づいて文字列の改行位置が決定される。よって文字列を、その構成に応じた適切な位置で改行することができ、各行の意味が一目で把握しやすくユーザの望ましい印刷結果を得ることができる。   In the tape printer of claim 3, the morpheme analyzing unit divides the character string into morphemes by the morpheme analysis, and the line feed position of the character string is determined based on the analysis of the morpheme analyzing unit. Therefore, the character string can be broken at an appropriate position according to the configuration, and the meaning of each line can be easily grasped at a glance, and a desired print result of the user can be obtained.

また請求項4のテープ印刷装置では、改行位置決定手段は、形態素解析手段が分けた形態素をまとめて文節を認定する文節認定手段と、文節認定手段がまとめた文節の文字数を計数する計数手段と、を有し、計数手段による計数結果及び文節認定手段の認定結果に基づき、文節毎に改行すると共に文字数が多い文節では文節内で改行するように決定することを特徴とする。よって、請求項4のテープ印刷装置では、文字列の構成に応じた適切な位置で改行できると共に各行の文字数のばらつきを抑え、印字領域の無駄を防止して大きな文字サイズで印刷できる。   According to a fourth aspect of the present invention, the line feed position determining means includes a phrase recognition means for recognizing a phrase by collecting the morphemes divided by the morpheme analysis means, and a counting means for counting the number of characters in the phrase compiled by the phrase recognition means. , And based on the counting result of the counting means and the recognition result of the phrase recognition means, it is determined that a line break is made for each phrase and a sentence with a large number of characters is broken within the phrase. Therefore, in the tape printer according to the fourth aspect, line feed can be performed at an appropriate position according to the structure of the character string, variation in the number of characters in each line can be suppressed, printing in a large character size can be prevented, and waste of the print area can be prevented.

また請求項5のテープ印刷装置では、第1表示制御手段により、改行位置決定手段が決定した改行位置を示すように文字列が表示画面に表示され、指示入力手段により改行位置を変更指示することができる。よってユーザは表示画面の文字列を見ながら改行位置を所望の位置に変更でき、ユーザにとって更に望ましい印刷結果を得ることができる。   In the tape printer of claim 5, the first display control means displays a character string on the display screen so as to indicate the line feed position determined by the line feed position determination means, and instructs the change of the line feed position by the instruction input means. Can do. Therefore, the user can change the line feed position to a desired position while viewing the character string on the display screen, and can obtain a print result that is more desirable for the user.

請求項6のテープ印刷装置では、画像生成手段は、文字列画像を方向設定手段に設定された向きに対応する回転角度で回転させた状態で、印字媒体の長手方向と略平行な直線により印字媒体の印字領域幅に合わせて切断して複数の画像断片を生成する画像切断手段を有し、画像断片を印字媒体の長尺方向に沿って並列させた第2並列画像を印刷画像として生成する。よって回転した複数行の文字列が、印字媒体の長手方向と略平行な2直線である印字領域の幅方向両端縁で切断されたかのような印刷結果が得られ、見た目のよいデザインラベルを生成することができる。   According to another aspect of the tape printer of the present invention, the image generation means prints the character string image by a straight line substantially parallel to the longitudinal direction of the print medium in a state where the character string image is rotated at a rotation angle corresponding to the direction set in the direction setting means. Image cutting means for generating a plurality of image fragments by cutting in accordance with the print area width of the medium, and generating a second parallel image in which the image fragments are arranged in parallel along the longitudinal direction of the print medium as a print image . Therefore, a printed result is obtained as if the rotated character strings of plural lines were cut at both edges in the width direction of the print area, which are two straight lines substantially parallel to the longitudinal direction of the print medium, and a visually appealing design label is generated. be able to.

また請求項7のテープ印刷装置では、第2表示制御手段により、印刷画像が印字媒体に印字されて作出されるプリントラベルを示すラベル画像を、方向設定手段に設定された向きとは逆方向に当該設定された向きに対応した回転角度と同じ回転角度で回転させて表示画面に表示させる。よってプリントラベルをユーザが望む貼着方向に表示できて、便利である。   According to another aspect of the tape printer of the present invention, the second display control means causes the label image indicating the print label produced by printing the print image on the print medium to be in a direction opposite to the direction set by the direction setting means. It is rotated at the same rotation angle as the rotation angle corresponding to the set direction and displayed on the display screen. Therefore, the print label can be displayed in the sticking direction desired by the user, which is convenient.

第1実施形態に係るテープ印刷装置の外観斜視図である。1 is an external perspective view of a tape printer according to a first embodiment. 第1実施形態に係るテープ印刷装置の制御系を示すブロック図である。It is a block diagram which shows the control system of the tape printer which concerns on 1st Embodiment. 第1実施形態のメーン処理を示すフローチャートである。It is a flowchart which shows the main process of 1st Embodiment. 斜め印刷設定を行う際の画面遷移の様子を、画面表示が一行表示の場合について示す説明図である。It is explanatory drawing which shows the mode of the screen transition at the time of performing diagonal printing setting about the case where a screen display is one line display. 斜め印刷設定を行う際の画面遷移の様子を、画面表示が複数行表示の場合について示す説明図である。It is explanatory drawing which shows the mode of the screen transition at the time of performing diagonal printing setting about the case where a screen display is a multi-line display. 第1実施形態のイメージ計算処理を示すフローチャートである。3 is a flowchart showing image calculation processing of the first embodiment. 第1並列画像を作成する過程を表す説明図である。It is explanatory drawing showing the process which produces a 1st parallel image. 一行文字数の設定が1の場合の第1並列画像である。It is the 1st parallel picture in case the setting of the number of characters per line is 1. 表示画面において文字列の改行位置を手動で調整する様子を示す説明図である。It is explanatory drawing which shows a mode that the line feed position of a character string is adjusted manually on a display screen. プリントラベル画像上の文字列の改行位置を手動で調整する様子を示す説明図である。It is explanatory drawing which shows a mode that the line feed position of the character string on a print label image is adjusted manually. 第2実施形態のイメージ計算処理を示すフローチャートである。It is a flowchart which shows the image calculation process of 2nd Embodiment. 第2実施形態における改行例を示す説明図である。It is explanatory drawing which shows the example of a new line in 2nd Embodiment. 第3実施形態において作出されるプリントラベルの例である。It is an example of the print label produced in 3rd Embodiment. 第4実施形態におけるプリントラベル画像の表示例を示す説明図である。It is explanatory drawing which shows the example of a display of the print label image in 4th Embodiment.

以下、本発明に係るテープ印刷装置及び印刷制御方法について、具体化した4つの実施形態に基づいて図面を参照しつつ詳細に説明する。   Hereinafter, a tape printer and a printing control method according to the present invention will be described in detail with reference to the drawings based on four specific embodiments.

先ず、本実施形態に係るテープ印刷装置1の概略構成について、図1及び図2を参照しつつ説明する。
図1に示すように、本実施形態に係るテープ印刷装置1は、筐体内部に内蔵されたテープカセット(不図示)から排出される長尺状の表層テープ(不図示)に対して印刷を行う印刷装置であり、筐体上面にキーボード3と液晶ディスプレイ4を有している。また、同じく筐体上面には平面視矩形状のテープカセットを収納するカセット収納部(不図示)が収納カバー9で覆われて配設されている。また、このキーボード3の下側には、制御回路部が構成される制御基板(不図示)が配設されている。また、カセット収納部の左側面部には、印刷されたテープが排出されるテープ排出口10が形成されている。また、テープ印刷装置1の右側面部には、接続インターフェース71(図2参照)が配設されている。この接続インターフェース71は、外部機器78(例えば、パーソナルコンピュータ等)と有線または無線接続をする際に用いられる。従って、テープ印刷装置1は、外部機器78から送信された印刷画像データを印刷することも可能である。
First, a schematic configuration of the tape printer 1 according to the present embodiment will be described with reference to FIGS. 1 and 2.
As shown in FIG. 1, the tape printer 1 according to the present embodiment performs printing on a long surface tape (not shown) discharged from a tape cassette (not shown) built in the housing. This is a printing apparatus that has a keyboard 3 and a liquid crystal display 4 on the top surface of the housing. Similarly, a cassette storage portion (not shown) for storing a rectangular tape cassette in a plan view is disposed on the upper surface of the housing so as to be covered with a storage cover 9. Further, a control board (not shown) on which the control circuit unit is configured is disposed below the keyboard 3. Further, a tape discharge port 10 through which a printed tape is discharged is formed on the left side surface portion of the cassette housing portion. A connection interface 71 (see FIG. 2) is disposed on the right side surface of the tape printer 1. The connection interface 71 is used when making a wired or wireless connection with an external device 78 (for example, a personal computer). Therefore, the tape printer 1 can also print the print image data transmitted from the external device 78.

ここで、キーボード3は、文字入力キー3A、印刷キー3B、カーソルキー3C、電源キー3D、設定キー3E、リターンキー3R、プレビューキー3P等の複数種類の入力キーを備えている。文字入力キー3Aは、文書データからなるテキストを作成する際の文字入力に用いられ、後述のバックスペースキーも含む。印刷キー3Bは、作成されたテキスト等からなる印刷データの印刷実行を指令する際に用いられる。そして、カーソルキー3Cは、液晶ディスプレイ4上に表示されるカーソルを、上下左右に移動する際に用いられる。また、電源キー3Dは装置本体の電源をON又はOFFする際に用いられる。リターンキー3Rは、改行指令や各種処理の実行、選択決定を指令する際に用いられる。プレビューキー3Pは、液晶ディスプレイ4に後述する文字列の改行位置を表示させる契機となる入力を与えるものである。
図1の液晶ディスプレイ4は、キーボード3によって作成される文字列テキスト等を複数行に渡って表示する表示装置であるが、一行表示をするものであってもよい。
The keyboard 3 includes a plurality of types of input keys such as a character input key 3A, a print key 3B, a cursor key 3C, a power key 3D, a setting key 3E, a return key 3R, and a preview key 3P. The character input key 3A is used for character input when creating text composed of document data, and includes a backspace key described later. The print key 3B is used when commanding execution of printing of print data composed of created text or the like. The cursor key 3C is used when the cursor displayed on the liquid crystal display 4 is moved up, down, left and right. The power key 3D is used when turning on or off the power of the apparatus main body. The return key 3R is used when a line feed command, execution of various processes, or a selection decision is commanded. The preview key 3P gives an input that triggers the liquid crystal display 4 to display a line feed position of a character string to be described later.
The liquid crystal display 4 in FIG. 1 is a display device that displays a character string text or the like created by the keyboard 3 over a plurality of lines, but may be one line display.

図示しないが、テープ印刷装置1の内部構成を概説する。上述のように、テープ印刷装置1では内部のカセット収納部に対してテープカセットを装着可能に構成されている。また図2に示すテープ搬送モータ2、テープ搬送モータ2を駆動制御する搬送モータ駆動回路70、サーマルヘッド41及びサーマルヘッド41を駆動制御するヘッド駆動回路68からなるテープ駆動印刷機構が配設される。また図2に示す切断用モータ72、切断用モータ72を駆動制御する切断用モータ駆動回路69、切断用モータ72により駆動されるカッタからなるテープ切断機構も配設されている。
また、テープカセット内には表層テープやインクリボン、両面接着テープ等が巻回されている。テープ搬送モータ2の駆動により表層テープとインクリボンがテープカセットから引き出され、互いに重ね合わされた状態でサーマルヘッド41とプラテンローラ(不図示)との間で圧接され、その際にサーマルヘッド41に配列された多数の発熱素子が、図2の制御部60の印刷制御指令に基づいて選択的かつ間欠的に通電されることによって表層テープに印刷がなされる。印刷後の表層テープには片面に剥離紙が接着された両面接着テープのもう一方の片面が接着されて二重テープとなり、これが切断用モータ72により駆動されるカッタにより切断されてプリントラベル105が作出され、図1のテープ排出口10を介して、テープ印刷装置1の外部へ排出される。そして、当該プリントラベル105(図13参照)は、剥離紙を剥がせば、任意の場所に貼り付けることが可能である。
Although not shown, the internal configuration of the tape printer 1 will be outlined. As described above, the tape printing apparatus 1 is configured so that the tape cassette can be attached to the internal cassette housing portion. 2 is provided with a tape drive printing mechanism comprising a tape transport motor 2, a transport motor drive circuit 70 that drives and controls the tape transport motor 2, a thermal head 41, and a head drive circuit 68 that drives and controls the thermal head 41. . Further, a cutting motor 72 shown in FIG. 2, a cutting motor drive circuit 69 for driving and controlling the cutting motor 72, and a tape cutting mechanism including a cutter driven by the cutting motor 72 are also provided.
Further, a surface tape, an ink ribbon, a double-sided adhesive tape, and the like are wound around the tape cassette. When the tape transport motor 2 is driven, the surface tape and the ink ribbon are pulled out from the tape cassette and are pressed against each other between the thermal head 41 and the platen roller (not shown) while being superimposed on each other. A large number of the generated heating elements are selectively and intermittently energized based on the print control command of the control unit 60 of FIG. 2 to print on the surface tape. The surface tape after printing is bonded to the other side of a double-sided adhesive tape with release paper bonded on one side to form a double tape, which is cut by a cutter driven by a cutting motor 72, and the printed label 105 is It is produced and discharged to the outside of the tape printer 1 through the tape discharge port 10 of FIG. The print label 105 (see FIG. 13) can be attached to an arbitrary place by removing the release paper.

次に、テープ印刷装置1の制御構成について、図2を参照しつつ詳細に説明する。
テープ印刷装置1内には、制御基板(図示せず)が配設されており、この制御基板上には、制御部60、ヘッド駆動回路68、切断用モータ駆動回路69、搬送モータ駆動回路70が配設されている。
Next, the control configuration of the tape printer 1 will be described in detail with reference to FIG.
A control board (not shown) is disposed in the tape printer 1. On the control board, a control unit 60, a head drive circuit 68, a cutting motor drive circuit 69, and a transport motor drive circuit 70 are provided. Is arranged.

そして、制御部60は、CPU61、CG−ROM62、EEPROM63、ROM64、RAM66により構成されている。又、当該制御部60は、ヘッド駆動回路68、切断用モータ駆動回路69、搬送モータ駆動回路70と接続されている。更に、制御部60は、液晶ディスプレイ4、キーボード3、接続インターフェース71にも接続されている。   The control unit 60 includes a CPU 61, a CG-ROM 62, an EEPROM 63, a ROM 64, and a RAM 66. The controller 60 is connected to a head drive circuit 68, a cutting motor drive circuit 69, and a conveyance motor drive circuit 70. Further, the control unit 60 is also connected to the liquid crystal display 4, the keyboard 3, and the connection interface 71.

CG−ROM62は、印刷される文字や記号の画像データをコードデータと対応させてドットパターンで記憶するキャラクタージェネレータ用メモリである。又、EEPROM63は、記憶内容の書込・消去ができる不揮発性メモリであり、当該テープ印刷装置1における後述のユーザ設定等を示すデータを格納している。
そしてROM64には、テープ印刷装置1における各種制御プログラムやデータが格納されている。従って、後述するメーン処理、イメージ計算処理の各種プログラムは、このROM64に格納されている。
The CG-ROM 62 is a character generator memory that stores image data of characters and symbols to be printed in correspondence with code data in a dot pattern. The EEPROM 63 is a non-volatile memory in which stored contents can be written / erased, and stores data indicating user settings and the like to be described later in the tape printer 1.
The ROM 64 stores various control programs and data for the tape printer 1. Therefore, various programs for main processing and image calculation processing described later are stored in the ROM 64.

また、RAM66は、CPU61での演算結果等を一時的に格納する記憶装置である。このRAM66には、キーボード3の入力により生成された印刷画像データや、外部機器78から接続インターフェース71を介して取り込まれた印刷画像データも格納される。   The RAM 66 is a storage device that temporarily stores calculation results and the like in the CPU 61. The RAM 66 also stores print image data generated by input from the keyboard 3 and print image data captured from the external device 78 via the connection interface 71.

また、CPU61は、テープ印刷装置1における各種制御の中枢を担う中央演算処理装置である。CPU61は、文字入力キー3Aで入力された文字列情報から、発熱素子でドットを形成するための印刷画像データを生成する。具体的にはCPU61は、CG−ROM62に圧縮して格納されているドットパターンの中から、文字入力キー3Aで入力された文字に対応するドットパターンを解凍してRAM66のtmp領域(印刷バッファ)に記憶し、そのtmp領域に記憶したドットパターンをRAM66内の印字データ領域における適切な位置に配置することにより、印刷対象とする印刷画像データ(ドット単位のデータで構成されたイメージデータ)を生成する。CPU61は更にその印刷画像データを、サーマルヘッド41に列設された発熱素子で印刷される1ライン単位に分割したライン印刷データを生成し、そのライン印刷データに基づく制御信号をヘッド駆動回路68に送ることによりサーマルヘッド41が印刷画像データに基づく印刷を行う。   The CPU 61 is a central processing unit that plays a central role in various controls in the tape printer 1. The CPU 61 generates print image data for forming dots with the heat generating elements from the character string information input with the character input key 3A. Specifically, the CPU 61 decompresses the dot pattern corresponding to the character input by the character input key 3A from the dot patterns compressed and stored in the CG-ROM 62, and the tmp area (print buffer) of the RAM 66. The print image data (image data composed of dot unit data) to be printed is generated by arranging the dot pattern stored in the tmp area at an appropriate position in the print data area in the RAM 66. To do. The CPU 61 further generates line print data obtained by dividing the print image data into units of one line to be printed by the heating elements arranged in the thermal head 41, and sends a control signal based on the line print data to the head drive circuit 68. By sending, the thermal head 41 performs printing based on the print image data.

すなわち、ヘッド駆動回路68は、CPU61からの制御信号に基づいて、サーマルヘッド41に駆動信号を供給し、サーマルヘッド41の駆動態様を制御する回路である。この時、ヘッド駆動回路68は、発熱素子毎に対応付けられたストローブ番号に基づいて、各発熱素子の通電の有無を制御することで、サーマルヘッド41全体の発熱態様を制御する。
また、CPU61は、搬送モータ駆動回路70にも制御信号を送り、印刷画像データに対応したテープの搬送を行うように、テープ搬送モータ2を駆動制御させる。更にCPU61は切断用モータ駆動回路69に制御信号を送り、印刷画像データの印字位置に対応する位置でカッタが二重テープを切断するよう切断用モータ72に駆動信号を供給する。
That is, the head drive circuit 68 is a circuit that supplies a drive signal to the thermal head 41 based on a control signal from the CPU 61 and controls the drive mode of the thermal head 41. At this time, the head drive circuit 68 controls the heat generation mode of the entire thermal head 41 by controlling whether or not each heating element is energized based on the strobe number associated with each heating element.
The CPU 61 also sends a control signal to the transport motor drive circuit 70 to drive and control the tape transport motor 2 so as to transport the tape corresponding to the print image data. Further, the CPU 61 sends a control signal to the cutting motor driving circuit 69 to supply a driving signal to the cutting motor 72 so that the cutter cuts the double tape at a position corresponding to the printing position of the print image data.

次に図3に基づいて本実施形態のメーン処理について説明する。以下で説明するメーン処理及びイメージ計算処理は、ROM64に記憶された各種プログラムをCPU61が実行することにより実現されるものである。
まずメーン処理は、電源キー4Dの押下によるテープ印刷装置1の起動によって開始され、各値の初期化等がなされた後に指示待ちの状態となる。そして、キーボード3の文字入力キー3Aによる文字入力がなされることによって、ステップ(以下Sと略記する)1のテキスト編集が行われ、入力された文字列テキストがRAM66のテキストバッファ(不図示)に順次記憶されていき、当該文字列に対応するドットパターンが液晶ディスプレイ4上に表示される。
Next, the main process of this embodiment will be described with reference to FIG. The main process and the image calculation process described below are realized by the CPU 61 executing various programs stored in the ROM 64.
First, the main process is started by starting up the tape printer 1 by pressing the power key 4D, and after waiting for the instruction to be initialized, each value is initialized. Then, by inputting characters with the character input key 3A of the keyboard 3, the text editing in step (hereinafter abbreviated as S) 1 is performed, and the input character string text is stored in a text buffer (not shown) of the RAM 66. The dot pattern corresponding to the character string is displayed on the liquid crystal display 4 in sequence.

続いて設定キー4Eの押下により、S2の斜め印刷設定に進む。
なお、本実施形態において「斜め印刷」という言葉は、複数の文字列(或いは文字)が印字媒体である表層テープに対して所定角度回転して表層テープの長手方向に沿って並列した状態を表す画像を印刷することを指す。よって文字が表層テープの長手方向に対して90°、180°、270°回転して並列した画像の印刷も含まれる。
Subsequently, when the setting key 4E is pressed, the process proceeds to the oblique print setting in S2.
In the present embodiment, the term “oblique printing” represents a state in which a plurality of character strings (or characters) are rotated by a predetermined angle with respect to the surface tape as a printing medium and are arranged in parallel along the longitudinal direction of the surface tape. Refers to printing an image. Therefore, printing of images in which characters are rotated in parallel by 90 °, 180 °, and 270 ° with respect to the longitudinal direction of the surface tape is also included.

S2では液晶ディスプレイ4に、一行表示の場合は図4、複数行表示の場合は図5のような画面が表示される。図4に基づいて説明すると、まず「設定メニュー」という文字が表示され、リターンキー3Rを押下すると「文字サイズ」、「装飾」、「斜め設定」等の設定項目がカーソルキー3Cの押下によって選択可能に表示される。「文字サイズ」は文字の大きさを指定するための設定項目、「装飾」は各種デザインラベルを作成するための設定項目、斜め設定は上述の斜め印刷を行うための設定項目である。
「斜め設定」が表示された状態でリターンキー3Rを押下して「斜め設定」を選択すると、「ON/OFF設定」、「角度設定」、「1行文字数設定」、「行数設定」、「ラベル長設定」という各設定項目が選択可能に表示される。
In S2, a screen as shown in FIG. 4 is displayed on the liquid crystal display 4 in the case of single-line display, and FIG. 5 is displayed in the case of multi-line display. Referring to FIG. 4, first, the characters “setting menu” are displayed. When the return key 3R is pressed, setting items such as “character size”, “decoration”, and “diagonal setting” are selected by pressing the cursor key 3C. Displayed as possible. “Character size” is a setting item for designating the character size, “decoration” is a setting item for creating various design labels, and the diagonal setting is a setting item for performing the above-described diagonal printing.
When “slanting setting” is displayed and the return key 3R is pressed and “slanting setting” is selected, “ON / OFF setting”, “angle setting”, “single line character number setting”, “line number setting”, Each setting item “label length setting” is displayed in a selectable manner.

「ON/OFF設定」は斜め印刷を行うか否かを設定するものであり、「ON」が選択されると「角度設定」、「1行文字数設定」、「行数設定」、「ラベル長設定」等の斜め印刷に係る他の設定項目が続いて設定可能に表示され、それらの設定後、印刷キー3Dまたはプレビューキー3Fが押下されることにより、斜め印刷が行われることとなる。一方「OFF」が選択されると「設定メニュー」の表示に戻る。   “ON / OFF setting” sets whether to perform oblique printing. When “ON” is selected, “angle setting”, “single line number setting”, “line number setting”, “label length” Other setting items relating to the diagonal printing such as “setting” are displayed in a settable manner, and after the setting, the printing key 3D or the preview key 3F is pressed, and the diagonal printing is performed. On the other hand, when “OFF” is selected, the display returns to the “setting menu”.

また、「角度設定」は、文字画像の回転角度(具体的には表層テープの長手方向に対して文字を、反時計回りに回転させる回転角度)を設定するものであり、この項目を選択すると「××°」が表示され、カーソルキー3C或いは文字入力キー3Aにより数値を入力してリターンキー3Rを押下することにより決定される。「角度設定」を選択しない場合は、所定角度(例えば45°)が選択されたと判断される。
また「1行文字数設定」は、各行の文字数を所定数に設定するものであり、この項目を選択すると「×文字」と表示され、所望の文字数の入力により1行文字数を決定できる。「AUTO」の選択も可能である。
また「行数設定」は、入力された文字列テキストの行数を選択するものであり、この項目を選択すると「×行」と表示され、所望の行数を決定できる。「AUTO」の選択も可能である。
また「ラベル長設定」は、入力された文字列を印刷した際に作出されるプリントラベルの長さを設定するものであり、この項目を選択すると「×cm」と表示され、所望の長さを決定できる。「AUTO」の選択も可能である。
なお、「1行文字数設定」、「行数設定」、「ラベル長設定」が選択されなかった場合は、それぞれ「AUTO」が選択されたと判断される。
“Angle setting” is for setting the rotation angle of the character image (specifically, the rotation angle for rotating the character counterclockwise with respect to the longitudinal direction of the surface tape). “XX °” is displayed, which is determined by inputting a numerical value with the cursor key 3C or the character input key 3A and pressing the return key 3R. When “angle setting” is not selected, it is determined that a predetermined angle (for example, 45 °) is selected.
“Set number of characters per line” is to set the number of characters in each line to a predetermined number. When this item is selected, “× character” is displayed, and the number of characters per line can be determined by inputting the desired number of characters. “AUTO” can also be selected.
“Set number of lines” is used to select the number of lines of the input character string text. When this item is selected, “x lines” is displayed, and the desired number of lines can be determined. “AUTO” can also be selected.
“Label length setting” is used to set the length of the print label created when the input character string is printed. When this item is selected, “× cm” is displayed and the desired length is displayed. Can be determined. “AUTO” can also be selected.
If “one line character number setting”, “line number setting”, and “label length setting” are not selected, it is determined that “AUTO” is selected.

なお、図5のように液晶ディスプレイ4の大きさにより複数行表示が可能な場合は、「斜め設定」を選択すると、斜め印刷に関する各設定項目が複数行(図5では3行)表示で表示される。設定画面では1行目の設定項目が点滅表示され、ユーザはカーソルキー3Cの上下キーの押下により、点滅する設定項目を変更させたり、表示される設定項目を変更させたりすることができる。他は図4における説明と同様にして斜め印刷設定を行うことができる。   When multiple lines can be displayed depending on the size of the liquid crystal display 4 as shown in FIG. 5, when “diagonal setting” is selected, each setting item related to oblique printing is displayed in multiple lines (three lines in FIG. 5). Is done. On the setting screen, the setting item in the first line is displayed in a blinking manner, and the user can change the setting item that is blinking or the displayed setting item by pressing the up / down key of the cursor key 3C. Otherwise, the oblique print setting can be performed in the same manner as described with reference to FIG.

斜め印刷に係る各設定項目の設定が行われると、次にS3のイメージ計算処理(図3、図6参照)が行われる。なおイメージ計算処理は印刷キー3D又はプレビューキー3Pの押下により開始されるとしてもよい。
図6のように、まずS11においてS3の斜め印刷設定で行数が指定されたか否かが判断される。指定されたと判断された場合(S11:YES)は、当該指定行数を斜め印刷の行数としてRAM66に記憶し、S12に進む。一方、指定されていないと判断された場合(S11:NO)は、S16に進む。
S12では1行の文字数が指定されたか否かが判断される。指定されていると判断された場合(S12:YES)は当該指定文字数を斜め印刷の1行文字数としてRAM66に記憶し、S13に進む。一方、指定されていないと判断された場合は(S12:NO)、S19に進む。
When the setting items relating to the oblique printing are set, the image calculation process of S3 (see FIGS. 3 and 6) is performed. The image calculation process may be started by pressing the print key 3D or the preview key 3P.
As shown in FIG. 6, first, in S11, it is determined whether or not the number of lines is designated in the oblique print setting in S3. If it is determined that it is designated (S11: YES), the designated number of lines is stored in the RAM 66 as the number of lines for oblique printing, and the process proceeds to S12. On the other hand, if it is determined that it is not designated (S11: NO), the process proceeds to S16.
In S12, it is determined whether or not the number of characters in one line is designated. If it is determined that it is designated (S12: YES), the designated number of characters is stored in the RAM 66 as the number of one-line characters for oblique printing, and the process proceeds to S13. On the other hand, if it is determined that it is not designated (S12: NO), the process proceeds to S19.

S13では、指定行数と指定1行文字数とを掛け合わせた数がS1で入力された文字列の総文字数以上か否かが判断される。入力総文字数以上の場合(S13:YES)、S14に進む。一方、入力総文字数より少ない場合は、設定内容に矛盾があると判断して液晶ディスプレイ4にエラー表示を行ってイメージ計算処理を終了する。なお、S13では、入力総文字数≦(指定行数−1)×指定1行文字数となる場合も、エラー終了することとしても良い。
またS19では指定行数が総文字数以下かが判断され、総文字数以下の場合(S19:YES)は、S20に進み、総文字数を指定行数で割って得られた商を斜め印刷の1行文字数としてRAM66に記憶した後にS14に進む。
In S13, it is determined whether or not the number obtained by multiplying the designated number of lines by the designated number of characters per line is equal to or greater than the total number of characters in the character string input in S1. If the total number of input characters is greater than or equal to (S13: YES), the process proceeds to S14. On the other hand, if it is less than the total number of input characters, it is determined that there is a contradiction in the setting contents, an error is displayed on the liquid crystal display 4, and the image calculation process is terminated. Note that in S13, the error termination may be performed even when the total number of input characters ≦ (specified line number−1) × specified one line character number.
In S19, it is determined whether the designated number of lines is less than the total number of characters. If it is less than the total number of characters (S19: YES), the process proceeds to S20, and the quotient obtained by dividing the total number of characters by the designated number of lines is one line for oblique printing. After storing the number of characters in the RAM 66, the process proceeds to S14.

S14では、文字配置計算を行う。これは、RAM66に記憶された1行文字数の文字列がS2で設定された回転角度で回転した画像が印字領域幅に納まる文字サイズのうち最大のものを決定してRAM66に記憶するものであり、印字領域の幅と、設定された回転角度により求められる。   In S14, character arrangement calculation is performed. This is to determine the maximum character size that can be stored in the RAM 66 among the character sizes that can be stored in the print area width when the character string stored in the RAM 66 is rotated by the rotation angle set in S2. The width of the print area and the set rotation angle are obtained.

また、S16では、S2の斜め印刷設定で1行の文字数が指定されているか否かが判断される。指定されたと判断された場合には(S16:YES)、指定文字数を斜め印刷の1行文字数としてRAM66に記憶してS18に進み、指定文字数毎に改行した場合の行数を、入力総文字数を指定文字数で割り算して求める。図6ではその後S15に進むが、実際はS14に進むことが望ましい。
一方、S16で1行文字数が指定されていないと判断された場合(S16:NO)、S17に進み、S2で設定された回転角度と印字領域の幅に基づいて、最大文字サイズで印字領域の幅に納まる文字数を求め、1行文字数としてRAM66に記憶する。その後S18に進んで、S17で求めた1行文字数を入力総文字数で割り算することにより当該1行文字数毎に改行した場合の行数を算出してRAM66に記憶し、S15に進む。
In S16, it is determined whether or not the number of characters in one line is specified in the oblique print setting in S2. If it is determined that it has been designated (S16: YES), the designated number of characters is stored in the RAM 66 as the number of one-line characters for oblique printing, and the process proceeds to S18. Calculate by dividing by the specified number of characters. In FIG. 6, the process proceeds to S15 after that, but actually it is desirable to proceed to S14.
On the other hand, if it is determined in S16 that the number of characters per line is not specified (S16: NO), the process proceeds to S17, and the maximum character size of the print area is determined based on the rotation angle and the print area width set in S2. The number of characters that fit in the width is obtained and stored in the RAM 66 as the number of characters per line. Thereafter, the process proceeds to S18, and the number of lines when a line break is calculated for each one-line character number is calculated by dividing the number of one-line characters obtained in S17 by the total number of input characters, stored in the RAM 66, and the process proceeds to S15.

S15では、S2の斜め印刷設定でラベル長さ(カッタで切断されるプリントラベルの長さ)が指定されたか否かが判断される。ラベル長さが指定されていない場合(S15:無し)は、設定回転角度で回転した複数行の文字列を印字データ領域内に配置する配置位置を、RAM66で記憶された1行文字数・行数・回転角度・文字サイズに基づいて決定し、イメージ計算処理が終了される。
一方ラベル長さが指定されている場合(S15:有り)、S21に進む。S21では、入力された文字列テキストが、RAM66で記憶された文字サイズを有し、RAM66で記憶された一行文字数毎の複数行となり、設定回転角度で回転して表層テープの長手方向に沿って並列した状態で印刷される場合のラベル長さを、設定された余白長や、行間長等に基づいて算出する。そして算出したプリントラベルの長さが設定長さと比較する。算出したラベル長さが設定長さ以下の場合(S21:YES)、やはり上記の各文字列配置位置を決定し、イメージ計算処理を終了する。
In S15, it is determined whether or not the label length (the length of the print label cut by the cutter) has been designated in the oblique print setting in S2. When the label length is not specified (S15: None), the arrangement position for arranging a plurality of lines of character strings rotated at the set rotation angle in the print data area is the number of characters per line and the number of lines stored in the RAM 66. The determination is made based on the rotation angle and character size, and the image calculation process is terminated.
On the other hand, if the label length is specified (S15: present), the process proceeds to S21. In S21, the input character string text has a character size stored in the RAM 66, becomes a plurality of lines for each number of characters stored in the RAM 66, and rotates at a set rotation angle along the longitudinal direction of the surface tape. The label length when printing in a parallel state is calculated based on the set margin length, line spacing length, and the like. The calculated print label length is compared with the set length. If the calculated label length is equal to or shorter than the set length (S21: YES), the character string arrangement positions are also determined, and the image calculation process is terminated.

一方、算出したラベル長さが設定長さよりも大きい場合(S21:NO)、文字サイズを一段階縮小した場合のラベル長さを計算しなおし、設定長さと比較するという過程を、算出したラベル長さが設定長さ以下となるまで繰り返す。
算出したラベル長さが設定長さ以下となる文字サイズが見つかれば(S23:YES)、当該文字サイズ等に基づいて上記文字列配置位置を決定し、イメージ計算処理を終了する。この際、S2で行数も1行文字数も指定されていない場合には、文字サイズを縮小した分、印字領域幅に納まる1行文字数が増えるか否かを判断し、増える場合には行数を計算しなおせば、ラベル長さをより短くできる。
なお、S23において最小文字サイズから算出したラベル長さで設定長さより大きくなってしまう場合(S23:NO)、エラー表示を出して終了する。
On the other hand, when the calculated label length is larger than the set length (S21: NO), the process of recalculating the label length when the character size is reduced by one step and comparing it with the set length is the calculated label length. Repeat until is less than the set length.
If a character size is found for which the calculated label length is equal to or less than the set length (S23: YES), the character string arrangement position is determined based on the character size and the like, and the image calculation process is terminated. At this time, if neither the number of lines nor the number of characters per line is specified in S2, it is determined whether or not the number of characters per line that fits in the print area width increases as the character size is reduced. If the value is recalculated, the label length can be shortened.
If the label length calculated from the minimum character size is larger than the set length in S23 (S23: NO), an error message is displayed and the process ends.

以上のように、本実施形態の入力文字列テキストの改行は、S3のイメージ計算処理で一行文字数を決定されることにより、文字列の先頭から一行文字数毎に行われるものとして、その改行位置が決定される。ただし、上記イメージ計算処理には、例えばラベル長を短くするために、「あいうえおかきくけこさし」を「あいうえお」「かきくけこ」「さし」と改行せずに、その最終行の文字分最初の行で改行して「あい」「うえおかき」「くけこさし」としたり、その余分な2文字分を最初と最後に配置して「あ」「いうえおか」「きくけこさ」「し」としたりするような処理を加えてもよい。   As described above, the line feed of the input character string text according to the present embodiment is performed for each number of characters per line from the beginning of the character string by determining the number of characters per line in the image calculation process of S3. It is determined. However, in the above image calculation process, for example, in order to shorten the label length, “Aiueo Kakikokusashi” is not changed to “Aiueo”, “Kakikukeko”, “Sashi”, and the character of the last line In the first line, a line break is made to “Ai”, “Ueokaki”, “Kukekosashi”, and the two extra characters are placed at the beginning and end to “A”, “Iueoka”, “Kikukokosa”, “ A process such as “Shi” may be added.

上記のようにS3のイメージ計算処理が終了すると、図3のように、印刷キー3Bが押下された場合、S6において、S3のイメージ計算処理に基づく印刷画像が作成されて印刷される。S6の印刷処理について図7の例に基づいて説明する。
図7では、まず、S1で入力された文字列テキストに対応するドットパターンであるドットデータが、S3でRAM66に記憶された一行文字数毎にRAM66のtmp領域(印刷バッファ)に発生する。ドットデータはCG−ROM62に圧縮して格納されているドットパターンの中から、文字入力キー3Aで入力された文字に対応するドットパターンを解凍して発生するものである。発生した一行文字数分のドットデータ47はtmp領域において、S2で設定された回転角度分、反時計回りに回転する。そして、この回転後のドットデータ47が、イメージ計算処理で決定された配置位置により印刷データ領域56に貼付されるのである。
When the image calculation process in S3 is completed as described above, as shown in FIG. 3, when the print key 3B is pressed, a print image based on the image calculation process in S3 is created and printed in S6. The printing process of S6 will be described based on the example of FIG.
In FIG. 7, first, dot data, which is a dot pattern corresponding to the character string text input in S1, is generated in the tmp area (print buffer) of the RAM 66 for each one-line character number stored in the RAM 66 in S3. The dot data is generated by decompressing the dot pattern corresponding to the character input by the character input key 3A from the dot patterns compressed and stored in the CG-ROM 62. The generated dot data 47 corresponding to the number of one-line characters rotates counterclockwise by the rotation angle set in S2 in the tmp region. Then, the dot data 47 after the rotation is pasted on the print data area 56 according to the arrangement position determined by the image calculation process.

印刷データ領域56は、S3で決定されたラベル長さのプリントラベル105の印刷領域106に対応するドットデータである。S3のイメージ計算処理では、各行の文字列が、設定された間隔長さを保ちつつ、印字領域106の長手方向に沿って、印字領域106内に配列するように配列位置が決定される。
なお、ここで印字領域の長手方向に沿ってという言葉は、具体的には、各ドットデータ47の各下端ドット(図7では、「あ」と「え」を構成するN×Nドットのうちそれぞれ左下頂点となる2つのドット)或いは各ドットデータ47の上端ドット(図7では「う」と「か」を構成するN×Nドットのうちそれぞれ右上頂点となる2つのドット)が印字データ領域48の上端縁を構成する長辺と略平行に並ぶことを指す。
よって、貼付された回転後のドットデータ47は印字領域106の長手方向、すなわち表層テープの長手方向に沿って並列して、印刷画像データとして第1並列画像48が生成される。これを制御部60からヘッド駆動回路68に送り、サーマルヘッド4に印刷させる。
The print data area 56 is dot data corresponding to the print area 106 of the print label 105 having the label length determined in S3. In the image calculation process of S3, the arrangement positions are determined so that the character strings of each line are arranged in the print area 106 along the longitudinal direction of the print area 106 while maintaining the set interval length.
Here, the term “along the longitudinal direction of the print area” specifically refers to each lower end dot of each dot data 47 (in FIG. 7, of N × N dots constituting “A” and “E”). The two dots that are the lower left vertices) or the upper dot of each dot data 47 (in FIG. 7, two dots that are the upper right vertices of N × N dots that constitute “U” and “KA”) are the print data area. This means that the long sides constituting the upper end edge of 48 are arranged substantially parallel to each other.
Therefore, the pasted dot data 47 after rotation is juxtaposed along the longitudinal direction of the print area 106, that is, the longitudinal direction of the surface tape, and a first parallel image 48 is generated as print image data. This is sent from the control unit 60 to the head drive circuit 68 and printed on the thermal head 4.

なお、tmp領域が、一行文字数のドットデータを溜め込めるほどの大きなメモリ領域でない場合、一文字分のドットパターンずつtmp領域に発生させて一文字分のドットデータとして回転、印字データ領域56に貼付していく。貼付作業は、回転後の各ドットデータの所定方向の頂点ドットが一直線上になるようにつなげて行けば良い。
また、上記では文字画像をドットパターンとして発生させて回転させ、添付する。しかし文字に対応するアウトラインフォントデータを回転、貼付後にドットデータに変換するのでもよい。
If the tmp area is not a large memory area that can store dot data for the number of characters per line, a dot pattern for one character is generated in the tmp area, rotated as dot data for one character, and attached to the print data area 56. Go. The pasting operation may be performed by connecting the vertex dots in a predetermined direction of the respective dot data after rotation so as to be in a straight line.
In the above, a character image is generated as a dot pattern, rotated, and attached. However, outline font data corresponding to characters may be converted into dot data after rotation and pasting.

なお、一行文字数が1文字だった場合は印刷データ領域56に一文字分のドットデータ47が図8のように配列し、見た目のよいデザインラベルが作成される。   If the number of characters per line is one, dot data 47 for one character is arranged in the print data area 56 as shown in FIG. 8, and a visually attractive design label is created.

更に、図3のメーン処理において、S2の斜め印刷設定の後にプレビューキー3Pが押下された場合は、S4で液晶ディスプレイ4における改行プレビュー表示が行われる。液晶ディスプレイ4の表示が一行表示の場合は、S4の改行プレビュー表示は、図9に示すように入力された文字列テキストを表す文字列画像100内に、S3で決定された改行位置が矢印102として表示される。長い文字列テキストの場合、カーソルキー3Cの操作により表示箇所を変更する。
一方、液晶ディスプレイ4が比較的大きな場合は、図10のように、S4の改行プレビュー表示は、文字列画像100を、プリントラベル105を表すラベル画像101内に、当該文字列が斜め印刷された状態として表示して行うことが可能である。このようなラベル画像101は、上述した印刷処理と同様にドットデータの回転処理と貼付処理によって作成でき、ユーザは印字後の状態を明確に把握でき、便利である。
Further, in the main process of FIG. 3, when the preview key 3P is pressed after the oblique print setting in S2, a line feed preview display on the liquid crystal display 4 is performed in S4. When the display on the liquid crystal display 4 is a single line display, the line feed preview display in S4 indicates that the line feed position determined in S3 is indicated by an arrow 102 in the character string image 100 representing the character string text input as shown in FIG. Is displayed. In the case of a long character string text, the display location is changed by operating the cursor key 3C.
On the other hand, when the liquid crystal display 4 is relatively large, as shown in FIG. 10, the line feed preview display in S4 is such that the character string image 100 is printed diagonally in the label image 101 representing the print label 105. It is possible to display it as a state. Such a label image 101 can be created by dot data rotation processing and pasting processing as in the printing processing described above, and the user can clearly grasp the state after printing, which is convenient.

続くS5では、S4で表示した改行位置が表示どおりで良いか否かを問う表示が液晶ディスプレイ4上になされる。OKの意思表示をすると(S5:YES)、S6の印刷処理を行異、メーン処理を終了する。NOの意思表示をすると(S5:NO)、液晶ディスプレイ4上でS7の改行位置の編集ができる。   In subsequent S5, a display asking whether or not the line feed position displayed in S4 may be as displayed is displayed on the liquid crystal display 4. If the intention of OK is displayed (S5: YES), the printing process of S6 is changed and the main process is terminated. When the intention of NO is displayed (S5: NO), the line feed position of S7 can be edited on the liquid crystal display 4.

図9の例では、改行位置編集は文字列画像100中の矢印102をカーソルキー3Cで移動させた後にリターンキー3Rを押下することによって行われる。図9では「なまむぎな/まごめなまた/まご隣の客/はよく柿食う/客だ」との改行が「なまむぎ/なまごめ/なまたまご/隣の客は/よく柿食う客だ」と変更されている。   In the example of FIG. 9, line feed position editing is performed by moving the arrow 102 in the character string image 100 with the cursor key 3C and then pressing the return key 3R. In FIG. 9, the line break “Namamugi / Namagome / Namagome / Namagome / Namagome / Namagome / Nagomago” / It ’s a frequent customer. ”

図10の表示例におけるS7の改行位置編集だが、改行位置の変更は、通常の文章編集ソフトで行うものと同様に行えると便利である。すなわち、一つの行の先頭位置にカーソル103が存在する状態でバックスペースキーを押下すると、その行は一つ前の行の最終文字に後続して表示される。新たな改行は改行したい箇所にカーソル103がある状態でリターンキー3Rを押下することにより可能である。図10の例では改行位置の編集によって、当初表示されていたラベル画像101の長さに文字列画像100が納まらなくなるが、文字サイズを変更せずに必要なプリントラベル105の長さを再計算して、ラベル長さを伸ばして再表示している。
その後、印刷キー3Bが押下されるとS6の印刷処理を行い、メーン処理を終了する。
Although the line feed position is edited in S7 in the display example of FIG. 10, it is convenient that the line feed position can be changed in the same manner as that performed by ordinary text editing software. That is, when the backspace key is pressed while the cursor 103 is present at the head position of one line, the line is displayed following the last character of the previous line. A new line feed can be made by pressing the return key 3R in a state where the cursor 103 is at the position where the line break is desired. In the example of FIG. 10, the character string image 100 does not fit within the length of the label image 101 initially displayed by editing the line feed position, but the length of the necessary print label 105 is recalculated without changing the character size. Then, the label length is extended and redisplayed.
Thereafter, when the print key 3B is pressed, the printing process of S6 is performed, and the main process is terminated.

なお、S4の改行プレビュー表示は、例えば液晶ディスプレイ4の表示が複数行表示の場合に文字列画像が、
「なまむぎな
まごめなまた
まご隣の客
はよく柿食う
客だ」
というように複数行に表示されることにより改行位置を表示するものであってもよい。
The line feed preview display in S4 is, for example, when the display on the liquid crystal display 4 is a multi-line display,
“The customers next to the eggs are often beggars.”
Thus, the line feed position may be displayed by being displayed on a plurality of lines.

ここで、文字入力キー3A、リターンキー3Rは文字入力手段の一例である。また液晶ディスプレイ4は表示画面の一例である。キーボード3、液晶ディスプレイ4及び制御部6は方向設定手段の一例である。制御部60が改行位置決定手段、画像生成手段、文字数決定手段及び第1表示制御手段を構成する。ヘッド駆動回路68、サーマルヘッド41、搬送モータ駆動回路70、テープ搬送モータ2等により実現される印刷搬送機構が印刷手段を構成する。またカーソルキー3C、リターンキー3Rは指示入力手段の一例である。   Here, the character input key 3A and the return key 3R are examples of character input means. The liquid crystal display 4 is an example of a display screen. The keyboard 3, the liquid crystal display 4, and the control unit 6 are examples of direction setting means. The control unit 60 constitutes a line feed position determining unit, an image generating unit, a character number determining unit, and a first display control unit. A print transport mechanism realized by the head drive circuit 68, the thermal head 41, the transport motor drive circuit 70, the tape transport motor 2 and the like constitutes a printing unit. The cursor key 3C and the return key 3R are examples of instruction input means.

よって第1実施形態のテープ印刷装置1では、S3のイメージ計算処理を制御部60が実行することにより文字入力キー3Aにより入力された文字列の改行位置が決定され、S6の印刷処理では、決定された改行位置で改行した各行の文字列がS2の斜め印刷設定で設定された回転角度で回転すると共に表層テープの長手方向に沿って並列した状態を表す第1並列画像48が制御部60によって印刷画像として生成される。よって入力された文字列を表す画像を大幅に縮小せずにプリントラベル105の印刷領域106に納めて印刷することが可能である。また、各行の文字列が表層テープの長手方向に沿って並列した印刷画像が印刷されるので見た目良く印刷できると共に、幅の限られた印字領域106を最大限有効活用して、更に大きな文字サイズで印刷できる。   Therefore, in the tape printer 1 according to the first embodiment, the line break position of the character string input by the character input key 3A is determined by the control unit 60 executing the image calculation process of S3. A first parallel image 48 representing a state in which the character string of each line that has been line-breaked at the line-breaking position rotated at the rotation angle set in the oblique print setting of S2 and aligned in the longitudinal direction of the surface tape is displayed by the control unit 60. Generated as a printed image. Therefore, it is possible to print the image representing the input character string by placing it in the print area 106 of the print label 105 without significantly reducing the image. In addition, since a print image in which the character strings of each line are arranged in parallel along the longitudinal direction of the surface tape is printed, it can be printed with good appearance, and the print area 106 with a limited width can be used to the maximum extent to further increase the character size. Can be printed.

またテープ印刷装置1では、S3のイメージ計算処理を制御部60が実行することにより一行の文字数が決定され、文字列を当該文字数毎に改行するよう改行位置が決定されるため、各行の文字列は、同じ文字数となり、更に見た目良い印刷結果をもたらすと共に、各行の文字数がばらつくことによる印字領域106の無駄を防止して、大きな文字サイズで印刷することができる。   Further, in the tape printer 1, since the control unit 60 executes the image calculation process of S3, the number of characters in one line is determined, and the line break position is determined so that the character string is broken for each character number. Can be printed with a large character size by preventing the waste of the print area 106 due to variations in the number of characters in each line.

またテープ印刷装置1では、S3のイメージ計算処理により決定された改行位置を示すよう入力された文字列が文字列画像100として液晶ディスプレイ4上に表示され、カーソルキー3Cとリターンキー3R、バックスペースキーにより改行位置を変更指示することができる。よってユーザは液晶ディスプレイ4上の文字列画像100を見ながら改行位置を所望の位置に変更でき、ユーザにとって更に望ましい印刷結果を得ることができる。   In the tape printer 1, the character string input to indicate the line feed position determined by the image calculation process of S3 is displayed on the liquid crystal display 4 as the character string image 100, and the cursor key 3C, the return key 3R, and the backspace are displayed. The line feed position can be instructed to change with the key. Therefore, the user can change the line feed position to a desired position while viewing the character string image 100 on the liquid crystal display 4, and can obtain a print result that is more desirable for the user.

次に図11及び図12に基づいて、第2実施形態のテープ印刷装置について説明する。なお、以下第2〜第4実施形態のテープ印刷装置において第1実施形態と同一・相等する構成については、第1実施形態と同じ符号を付して説明を省略する。
第2実施形態のテープ印刷装置は斜め印刷に当たり、形態素解析により文字列の改行位置を決定するものである。よってROM64には、単語の見出しや品詞など形態素解析に必要な情報を含んだ解析用辞書と、解析用辞書の見出しを基に入力された文字列テキストを形態素に分割する解析用プログラムのほか、動詞と助動詞が連続していれば1文節とする等の、文節を認定するための規則を表す文節認定規則テーブル、分割された形態素から、文節認定規則テーブルに記憶された規則に基づいて文節を認定するための文節認定用プログラム、解析された各形態素の文字数及び認定された文節の文字数をそれぞれ計数するためのプログラムがそれぞれ記憶されている。
Next, a tape printer according to a second embodiment will be described with reference to FIGS. In the following, in the tape printers of the second to fourth embodiments, the same or similar configurations as those of the first embodiment are denoted by the same reference numerals as those of the first embodiment and description thereof is omitted.
The tape printer according to the second embodiment determines a line feed position of a character string by morphological analysis in oblique printing. Therefore, the ROM 64 includes an analysis dictionary including information necessary for morphological analysis such as a word headline and part of speech, an analysis program for dividing a character string text input based on the analysis dictionary heading into morphemes, If the verb and auxiliary verbs are consecutive, the phrase recognition rule table showing the rules for certifying the phrase, such as one phrase, and the clauses based on the rules stored in the phrase recognition rule table from the divided morphemes A phrase recognition program for recognition, and a program for counting the number of characters of each analyzed morpheme and the number of characters of the recognized phrase are stored.

第2実施形態では第1実施形態と同様のメーン処理を行うが、S3のイメージ計算処理は第2実施形態と異なるので以下で説明する。
図11のように、第2実施形態のイメージ計算処理において第1実施形態と異なるのは、S31で行数指定がされなかったと判断され(S31:NO)、S33で一行の文字数指定も行われていないと判断された(S33:NO)の場合に、S40に進み、形態素解析に基づく改行位置を決定する点である。
In the second embodiment, the same main process as in the first embodiment is performed, but the image calculation process in S3 is different from that in the second embodiment and will be described below.
As shown in FIG. 11, the image calculation process of the second embodiment differs from the first embodiment in that it is determined that the number of lines is not specified in S31 (S31: NO), and the number of characters in one line is also specified in S33. If it is determined that it is not (S33: NO), the process proceeds to S40 to determine a line feed position based on morphological analysis.

図12は、形態素解析に基づいて、文節毎に改行位置を決定する例である。
上述した解析用プログラムをCPU61が実行することにより、S1で入力された文字列テキストが単語に分割される。例えば「太郎とワインを飲んだ」という入力テキストは、「太郎」「と」「ワイン」「を」「飲ん」「だ」と単語に解析される。その後、上記の文節認定用プログラムをCPU61が実行することにより各単語は「太郎と」「ワインを」「飲んだ」と文節ごとにまとめられて、CPU61は各文節直後の位置を改行位置と決定することができる。図12に、このように改行位置が決定された場合の改行プレビュー表示(図3のS4参照)を示す。
FIG. 12 is an example in which a line feed position is determined for each phrase based on morphological analysis.
When the CPU 61 executes the analysis program described above, the character string text input in S1 is divided into words. For example, an input text “Taro and wine drank” is analyzed into words “Taro” “to” “wine” “to” “drink” “da”. Thereafter, the CPU 61 executes the above phrase recognition program, whereby each word is grouped into phrases such as “Taro and” “wine” and “drinked”, and the CPU 61 determines the position immediately after each phrase as the line feed position. can do. FIG. 12 shows a line feed preview display (see S4 in FIG. 3) when the line feed position is determined in this way.

ただし単純に文節毎に分けると、各行の文字数がばらつく可能性が高いので、CPU61が各文節の文字数を計数するプログラムを実行し、計数した文節の文字数が所定の文字数よりも多い場合には、例えば自立語とそれ以外の語とを分けるなど、文節内における形態素解析の結果に基づいて、当該文字数の多い文節内で適切な改行位置を決定することが望ましい。   However, since the number of characters in each line is likely to vary if it is simply divided into clauses, the CPU 61 executes a program for counting the number of characters in each clause, and when the counted number of characters in the clause is larger than the predetermined number of characters, For example, it is desirable to determine an appropriate line feed position in a clause with a large number of characters based on the result of morphological analysis in the clause, such as separating independent words from other words.

逆に、各形態素の文字数を計数するプログラムをCPU61が実行し、文字数が所定数以上の形態素の直後では改行すると共に、一の形態素(例えば形態素A)の文字数が所定数以下の場合に、形態素Aと文節を形成する前後の形態素Bを特定して形態素Aと形態素Bとの間には改行をせずに、その部分だけ文節にまとめた状態で改行するのもよい。   Conversely, when the CPU 61 executes a program that counts the number of characters in each morpheme and starts a line feed immediately after a morpheme having a predetermined number of characters or more, and the number of characters in one morpheme (for example, morpheme A) is less than or equal to the predetermined number, It is also possible to specify a morpheme B before and after forming a phrase with A and not to make a line break between the morpheme A and the morpheme B, but to make a line break in a state where only that part is grouped into a phrase.

その後、S41に進み、S40で決定した改行位置により改行した場合、各行のうち最多文字数の行が最大文字サイズで印刷された場合に印字領域幅に納まるか否かが判断される。印字領域幅に納まると判断されれば(S41:YES)、S44に進み、第1実施形態のS15以降と同じ処理がなされる。一方、印字領域幅に納まらないと判断されれば(S41:NO)、S42に進み、一段階文字サイズを下げて最多文字数が印字領域105の幅に納まるか否かの判断が再度行われ、印字領域幅に納まる文字サイズまで繰り返される。そしてS43で印字領域幅に納まったと判断された場合(S43:YES)、S44に進み、第1実施形態のS15以降と同じ処理がなされる。一方最小文字サイズでも印字領域幅に納まっていないと判断された場合(S43:NO)、エラーを表示して終了する。   Thereafter, the process proceeds to S41, and when a line break is made at the line break position determined in S40, it is determined whether or not the line with the largest number of characters out of each line fits within the print area width. If it is determined that it falls within the print area width (S41: YES), the process proceeds to S44, and the same processing as S15 and after in the first embodiment is performed. On the other hand, if it is determined that it does not fit within the print area width (S41: NO), the process proceeds to S42, where the determination of whether or not the maximum number of characters fits within the width of the print area 105 by reducing the one-step character size is performed again. Repeat until the character size fits in the print area width. If it is determined in S43 that the print area is within the print area width (S43: YES), the process proceeds to S44, and the same processing as S15 and subsequent steps in the first embodiment is performed. On the other hand, when it is determined that the minimum character size is not within the print area width (S43: NO), an error is displayed and the process ends.

ここで、形態素解析手段及び文節認定手段、計数手段は制御部60により構成される。   Here, the morphological analysis means, the phrase recognition means, and the counting means are configured by the control unit 60.

以上、第2実施形態のテープ印刷装置では、形態素解析により文字列を形態素に分け、当該解析に基づいて文字列の改行位置が決定される。よって文字列を、その構成に応じた適切な位置で改行することができ、各行の意味が一目で把握しやすくユーザの望ましい印刷結果を得ることができる。   As described above, in the tape printer according to the second embodiment, a character string is divided into morphemes by morphological analysis, and a line feed position of the character string is determined based on the analysis. Therefore, the character string can be broken at an appropriate position according to the configuration, and the meaning of each line can be easily grasped at a glance, and a desired print result of the user can be obtained.

また第2実施形態のテープ印刷装置では、制御部により、解析後の形態素がまとめられて文節が認定され、当該文節の文字数が計数される。そして改行位置は、その計数結果及び文節認定結果に基づき、文節毎に改行すると共に文字数が多い文節では文節内で改行するように決定される。よって、第2実施形態のテープ印刷装置では、文字列の構成に応じた適切な位置で改行できると共に各行の文字数のばらつきを抑え、印字領域106の無駄を防止して大きな文字サイズで印刷できる。   In the tape printer of the second embodiment, the control unit collects the morphemes after analysis, recognizes the phrase, and counts the number of characters in the phrase. The line feed position is determined based on the counting result and the clause recognition result so that a line break is made for each clause and a clause having a large number of characters is broken within the clause. Therefore, in the tape printer of the second embodiment, line feed can be performed at an appropriate position according to the configuration of the character string, variation in the number of characters in each line can be suppressed, printing in the print area 106 can be prevented, and printing can be performed with a large character size.

次に、第3実施形態のテープ印刷装置について説明する。第3実施形態のテープ印刷装置から生成されるプリントラベル105は、図13に示すデザインラベルである。図13では、文字列が斜めを向くと共に、印字領域106の上端縁と下端縁で切断されたように見られる。図13では「あいうえおかきく」という斜めの文字列が印字領域の上端縁で切断され、その隣の行の「きくけこさしすせそたち」も印字領域の下端縁と上端縁で切断されているように見られる。また「きくけこさしすせそたち」の切断された下端部は、「あいうえおきく」の切断された上端部と連続しているように見える。   Next, a tape printer according to a third embodiment will be described. A print label 105 generated from the tape printer of the third embodiment is a design label shown in FIG. In FIG. 13, the character string looks oblique and appears to have been cut at the upper and lower edges of the print area 106. In FIG. 13, an oblique character string “Aiue Okakiku” is cut at the upper edge of the print area, and “Kikukokusashisose” on the next line is also cut at the lower edge and the upper edge of the print area. Seen in. Also, the cut lower end portion of “Kikukoku Sashisose Sotachi” seems to be continuous with the cut upper end portion of “Aiue Okiku”.

上記のデザインラベルを作出するテープ印刷装置では、例えば、S2の斜め印刷設定の際に、「斜めデザイン」という設定項目を選択できる。そしてこの「斜めデザイン」が選択され、印刷キー3Bが押下されると、次の印刷処理がなされる。図示しないが、第3実施形態の印刷処理では、RAM66の印刷バッファにおいて、入力された文字列に対応するドットパターンであるドットデータが生成され、そのドットデータは、設定された回転角度による回転処理を受けた後に、切断処理を受ける。
切断処理とは、文字列を表す回転後のドットデータを、印刷データ領域56の長さ方向に沿って分割して各画像断片とすることである。この分割位置は、各画像断片における印刷データ領域56の幅方向のドット数が、印刷データ領域56の幅と同数となる位置とされる。よって、切断処理後の各画像断片は、印刷データ領域56の長手方向に沿って並列するように貼付処理されると、各画像断片の切断された下端が印刷データ領域56の下端縁に位置し、各画像断片の切断された上端が印刷データ領域56の上端縁に位置する第2並列画像が生成される。この印刷画像データが印刷されると、図13のようなプリントラベル15が出来上がるわけである。
In the tape printer that creates the above design label, for example, the setting item “oblique design” can be selected in the oblique print setting of S2. When this “oblique design” is selected and the print key 3B is pressed, the next printing process is performed. Although not shown, in the printing process of the third embodiment, dot data that is a dot pattern corresponding to the input character string is generated in the print buffer of the RAM 66, and the dot data is rotated by the set rotation angle. After receiving, it receives a cutting process.
The cutting process is to divide the rotated dot data representing the character string along the length direction of the print data area 56 into each image fragment. This division position is a position where the number of dots in the width direction of the print data area 56 in each image fragment is the same as the width of the print data area 56. Therefore, when the image fragments after the cutting process are pasted so as to be arranged in parallel along the longitudinal direction of the print data area 56, the cut lower end of each image fragment is positioned at the lower end edge of the print data area 56. A second parallel image is generated in which the cut upper end of each image fragment is located at the upper end edge of the print data area 56. When this print image data is printed, a print label 15 as shown in FIG. 13 is completed.

ここで画像切断手段は制御部60により構成される。   Here, the image cutting means is configured by the control unit 60.

以上詳細に説明したように、第3実施形態のテープ印刷装置では、文字入力キー3Aによる入力された文字列を表す文字列画像を設定された回転角度で回転させた状態で、印刷データ領域56の長手方向と、すなわち表層テープの長手方向と平行な直線により印刷データ領域56の幅、すなわち表層テープの印字領域106の幅に合わせて切断して複数の画像断片を生成し、それら画像断片を印刷データ領域56の下端縁に沿って、すなわち表層テープの長手方向に沿って並列させた第2並列画像を印刷画像として生成する。よって回転した複数行の文字列が印字領域の幅方向の両端縁を成す2つの直線で切断されたかのような印刷結果が得られ、見た目のよいデザインラベルを生成することができる。   As described above in detail, in the tape printer of the third embodiment, the print data area 56 is displayed in a state where the character string image representing the character string input by the character input key 3A is rotated at the set rotation angle. A plurality of image fragments are generated by cutting in accordance with the width of the print data area 56, that is, the width of the print area 106 of the surface tape, by a straight line parallel to the longitudinal direction of the surface tape, that is, the longitudinal direction of the surface tape. A second parallel image arranged in parallel along the lower end edge of the print data area 56, that is, along the longitudinal direction of the surface tape is generated as a print image. Therefore, a printed result can be obtained as if the rotated character strings of a plurality of lines were cut by two straight lines forming both edges in the width direction of the print area, and a design label having a good appearance can be generated.

次に、図14に基づいて第4実施形態のテープ印刷装置について説明する。第4実施形態では、メーン処理におけるS4の改行プレビュー表示(図3参照)を、図10のように仮想のプリントラベルであるラベル画像101上に印刷した状態の文字列画像100を表示した場合の表示態様が、第1実施形態と異なる。第4実施形態では、図14のようにラベル画像101をS2で設定された回転角度分、S6の回転処理とは逆方向に(本実施形態では時計回りに)回転させた状態で液晶ディスプレイ4上に表示させるのである。よって、表示される文字は正立となる。   Next, a tape printer according to a fourth embodiment will be described with reference to FIG. In the fourth embodiment, the line feed preview display (see FIG. 3) in S4 in the main process is displayed when the character string image 100 is displayed on the label image 101 that is a virtual print label as shown in FIG. The display mode is different from the first embodiment. In the fourth embodiment, as shown in FIG. 14, the liquid crystal display 4 is rotated while the label image 101 is rotated by the rotation angle set in S2 in the direction opposite to the rotation process in S6 (clockwise in this embodiment). It is displayed on the top. Therefore, the displayed characters are upright.

具体的にこのラベル画像101の作成する際には、ラベル枠の画像をS6の回転処理と逆方向に回転させると共に、回転後のラベル枠画像のラベル枠に沿うように、改行した状態の文字列画像100を配列させてもよい。
または、S6の印刷処理と同様な文字列画像100の回転・並列処理によりラベル画像101を作成してその後、逆向きにラベル画像101を回転させて表示させてもよい。
Specifically, when creating the label image 101, the label frame image is rotated in the opposite direction to the rotation processing of S6, and the line-breaked characters are aligned along the label frame of the rotated label frame image. The row image 100 may be arranged.
Alternatively, the label image 101 may be generated by rotating / parallelizing the character string image 100 in the same manner as the printing process of S6, and then the label image 101 may be rotated and displayed in the reverse direction.

また、図14に示すように、第4実施形態の改行プレビュー表示では、プレビューキーPを押下するとラベル画像101は液晶ディスプレイ4上で斜め方向に変動しながら表示される。例えば図14のようにラベル画像101が液晶ディスプレイ4の長手方向に対して時計回りに約20°回転した状態で表示されている場合、ラベル画像101は液晶ディスプレイ4の右下から、左上方向に表示される。改行位置編集の際にはラベル画像101はユーザの指示による変動以外、変動しない。
このようにすると、ユーザに斜め印刷を行うことを強く印象付け、ラベル画像101の表示に楽しい印象を持たせることができる。また、ラベル画像101の変動方向がラベル画像101の向きとほぼ同方向或いはラベル画像101の向きと近い方向を向いていると、ラベル画像101がある程度長い場合、上下方向あるいは左右方向に変動するよりも、その全体が把握しやすい。このためユーザはラベル画像101の全体を把握する際に、カーソルキー4Cを操作する必要がないと共に、非常に容易にラベル画像の全体を把握することができる。
なお、ラベル画像101の変動方向は、ラベル画像101の向きとほぼ同方向或いは近い方向に限定されるものではない。
Further, as shown in FIG. 14, in the line feed preview display of the fourth embodiment, when the preview key P is pressed, the label image 101 is displayed on the liquid crystal display 4 while changing in an oblique direction. For example, as shown in FIG. 14, when the label image 101 is displayed in a state where the label image 101 is rotated about 20 ° clockwise with respect to the longitudinal direction of the liquid crystal display 4, the label image 101 is moved from the lower right of the liquid crystal display 4 to the upper left. Is displayed. When editing the line feed position, the label image 101 does not change except for a change by a user instruction.
In this way, it is possible to give a strong impression to the user that the oblique printing is performed and to give a pleasant impression to the display of the label image 101. Further, when the direction of change of the label image 101 is substantially the same as the direction of the label image 101 or the direction close to the direction of the label image 101, if the label image 101 is long to some extent, it changes from the vertical direction or the horizontal direction. But the whole is easy to grasp. Therefore, the user does not need to operate the cursor key 4C when grasping the entire label image 101, and can grasp the entire label image very easily.
Note that the variation direction of the label image 101 is not limited to the direction substantially the same as or close to the direction of the label image 101.

ここで制御部60は第2表示制御手段を構成する。   Here, the control unit 60 constitutes a second display control means.

以上、第4実施形態のテープ印刷装置では、印刷画像が印字媒体に印字されて作出されるプリントラベルを示すラベル画像を、設定された向きとは逆方向に当該設定された回転角度と同じ回転角度で回転した状態で表示画面に表示させる。よってラベル画像上の文字を正立に表示できると共に、プリントラベルをユーザが望む貼着方向に貼着させた状態を表示できて便利である。   As described above, in the tape printer according to the fourth embodiment, the label image indicating the print label produced by printing the print image on the print medium is rotated in the direction opposite to the set direction with the same rotation angle as the set rotation angle. Display on the display screen while rotating at an angle. Therefore, the characters on the label image can be displayed upright, and the state in which the print label is stuck in the sticking direction desired by the user can be displayed conveniently.

尚、本発明は前記実施形態に限定されることはなく、本発明の要旨を逸脱しない範囲内で種々の改良、変形が可能であることは勿論である。例えば、第1実施形態のイメージ計算処理は一つの文字列テキストを全て同じ文字サイズで印刷することを前提に説明したが、複数の文字サイズを有する文字列テキストの場合は、文字数は一定とせずに、各行が同程度の長さとなるように改行位置を決定するのでもよい。   In addition, this invention is not limited to the said embodiment, Of course, various improvement and deformation | transformation are possible within the range which does not deviate from the summary of this invention. For example, the image calculation process according to the first embodiment has been described on the assumption that one character string text is printed with the same character size. However, in the case of a character string text having a plurality of character sizes, the number of characters is not constant. In addition, the line feed position may be determined so that each line has the same length.

1 テープ印刷装置
4 液晶ディスプレイ
47 一行文字列分のドットデータ
48 第1並列画像
56 RAM内の印刷データ領域
100 表示画面に表示される文字列画像
101 ラベル画像
102 矢印
103 カーソル
105 プリントラベル
106 プリントラベル上の印字領域
DESCRIPTION OF SYMBOLS 1 Tape printer 4 Liquid crystal display 47 Dot data for one line character string 48 First parallel image 56 Print data area in RAM 100 Character string image displayed on display screen 101 Label image 102 Arrow 103 Cursor 105 Print label
106 Print area on the print label

Claims (9)

文字を入力する文字入力手段と、前記文字入力手段に入力された文字を表示する表示画面と、長尺状の印字媒体に対する印刷画像の向きを任意に設定する方向設定手段と、前記文字入力手段により入力された文字が前記方向設定手段により設定された向きに対応する角度で回転した状態を表す印刷画像を生成する画像生成手段と、前記印刷画像を前記印字媒体に印刷する印刷手段と、を備えるテープ印刷装置において、
前記画像生成手段は、前記文字入力手段により入力された文字列の改行位置を決定する改行位置決定手段を有し、改行位置決定手段により決定された位置で改行した各行の文字列が前記方向設定手段により設定された向きに対応する回転角度で回転すると共に前記印字媒体の長手方向に沿って並列した状態を表す第1並列画像を前記印刷画像として生成すること、を特徴とするテープ印刷装置。
Character input means for inputting characters, a display screen for displaying characters input to the character input means, direction setting means for arbitrarily setting the orientation of a print image with respect to a long print medium, and the character input means An image generating unit that generates a print image representing a state in which the characters input by the user are rotated at an angle corresponding to the direction set by the direction setting unit; and a printing unit that prints the print image on the print medium. In the tape printer provided,
The image generating means includes a line feed position determining means for determining a line feed position of the character string input by the character input means, and the character string of each line that has been broken at the position determined by the line feed position determining means is set in the direction setting. A tape printer that rotates at a rotation angle corresponding to the direction set by the means and generates a first parallel image representing a state of being parallel along the longitudinal direction of the print medium as the print image.
前記改行位置決定手段は、一行の文字数を決定する文字数決定手段を備え、前記文字列を前記文字数決定手段が設定した文字数毎に改行することを決定することを特徴とする請求項1に記載のテープ印刷装置。   The line feed position determining unit includes a character number determining unit that determines the number of characters in one line, and determines that the character string is to be broken for each number of characters set by the character number determining unit. Tape printer. 前記改行位置決定手段は、形態素解析により前記文字列を形態素に分ける形態素解析手段を備え、前記形態素解析手段の解析に基づいて前記文字列の改行位置を決定することを特徴とする請求項1に記載のテープ印刷装置。   The line feed position determination means includes morpheme analysis means for dividing the character string into morphemes by morpheme analysis, and determines a line feed position of the character string based on the analysis of the morpheme analysis means. The tape printer as described. 前記改行位置決定手段は、前記形態素解析手段が分けた形態素をまとめて文節を認定する文節認定手段と、
前記文節認定手段がまとめた文節の文字数を計数する計数手段と、を有し、
前記計数手段による計数結果及び前記文節認定手段の認定結果に基づき、文節毎に改行すると共に文字数が多い文節では文節内で改行するように決定することを特徴とする請求項3に記載のテープ印刷装置。
The line feed position determination means includes a phrase recognition means that collects morphemes divided by the morpheme analysis means and recognizes a phrase;
Counting means for counting the number of characters in the phrase compiled by the phrase recognition means,
4. The tape printing according to claim 3, wherein, based on the counting result by the counting means and the recognition result of the phrase recognition means, it is determined to start a new line for each phrase and to start a new line in the phrase for a phrase having a large number of characters. apparatus.
前記改行位置決定手段が決定した改行位置を示すように前記表示画面に前記文字列を表示させる第1表示制御手段と、
前記改行位置を変更指示するための指示入力手段と、を備えたことを特徴とする請求項2乃至請求項4のいずれかに記載のテープ印刷装置。
First display control means for displaying the character string on the display screen to indicate the line feed position determined by the line feed position determining means;
5. The tape printer according to claim 2, further comprising an instruction input unit for instructing to change the line feed position.
文字を入力する文字入力手段と、前記文字入力手段に入力された文字を表示する表示画面と、長尺状の印字媒体に対する印刷画像の向きを任意に設定する方向設定手段と、前記文字入力手段により入力された文字が前記方向設定手段により設定された向きに対応する回転角度で回転した状態を表す印刷画像を生成する画像生成手段と、前記印刷画像を前記印字媒体に印刷する印刷手段と、を備えるテープ印刷装置において、
前記画像生成手段は、前記文字列を表す文字列画像を前記方向設定手段に設定された向きに対応する回転角度で回転させた状態で、前記印字媒体の長手方向と平行な直線により印字媒体の印字領域幅に合わせて切断して複数の画像断片を生成する画像切断手段を有し、
前記画像断片を、前記印字媒体の長手方向に沿って並列させた第2並列画像を前記印刷画像として生成することを特徴とするテープ印刷装置。
Character input means for inputting characters, a display screen for displaying characters input to the character input means, direction setting means for arbitrarily setting the orientation of a print image with respect to a long print medium, and the character input means An image generation unit that generates a print image representing a state in which the characters input by the user are rotated at a rotation angle corresponding to the direction set by the direction setting unit; and a print unit that prints the print image on the print medium; In a tape printer comprising:
The image generation means rotates the character string image representing the character string at a rotation angle corresponding to the direction set in the direction setting means, and makes a straight line parallel to the longitudinal direction of the print medium. It has an image cutting means for generating a plurality of image fragments by cutting according to the print area width,
A tape printing apparatus, wherein a second parallel image in which the image fragments are arranged in parallel along a longitudinal direction of the print medium is generated as the print image.
前記印刷画像が前記印字媒体に印字されて作出されるプリントラベルを示すラベル画像を、前記方向設定手段に設定された向きとは逆方向に、当該設定された向きに対応した回転角度と同じ回転角度で回転した状態で前記表示画面に表示させる第2表示制御手段を備えることを特徴とする請求項1乃至請求項6のいずれかに記載のテープ印刷装置。   A label image indicating a print label produced by printing the print image on the print medium is rotated in the direction opposite to the direction set in the direction setting unit, and the same rotation angle as the rotation direction corresponding to the set direction. The tape printing apparatus according to claim 1, further comprising a second display control unit configured to display the display screen in a state of being rotated at an angle. コンピュータを前記請求項1乃至請求項7のいずれかのテープ印刷装置として機能させるためのプログラム。   A program for causing a computer to function as the tape printer according to any one of claims 1 to 7. 文字を入力する文字入力工程と、長尺状の印字媒体に対する印刷画像の向きを任意に設定する方向設定工程と、前記文字入力工程で入力された文字が前記方向設定工程で設定された向きに対応する回転角度で回転した状態を表す印刷画像を生成する画像生成工程と、前記印刷画像を前記印字媒体に印刷する印刷工程と、を備える印刷制御方法において、
前記画像生成工程は、前記文字入力工程により入力された文字列の改行位置を決定する改行位置決定工程と、
前記改行位置決定工程により決定された位置で改行した各行の文字列が、前記方向設定工程で設定された向きに対応する回転角度で回転すると共に前記印字媒体の長手方向に沿って並列した状態を表す第1並列画像を前記印刷画像として生成する並列画像作成工程と、を有すること、を特徴とする印刷制御方法。

A character input step for inputting characters, a direction setting step for arbitrarily setting the orientation of a print image with respect to a long print medium, and a character input in the character input step in a direction set in the direction setting step In a print control method comprising: an image generation step for generating a print image representing a state rotated at a corresponding rotation angle; and a print step for printing the print image on the print medium.
The image generation step includes a line feed position determination step for determining a line feed position of the character string input by the character input step;
A state in which the character string of each line that has been line-breaked at the position determined by the line-break position determining step rotates at a rotation angle corresponding to the direction set in the direction setting step and is aligned along the longitudinal direction of the print medium. A parallel image creation step of generating a first parallel image to be represented as the print image.

JP2010056042A 2010-03-12 2010-03-12 Tape printing apparatus, program, and printing control method Active JP5234028B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010056042A JP5234028B2 (en) 2010-03-12 2010-03-12 Tape printing apparatus, program, and printing control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010056042A JP5234028B2 (en) 2010-03-12 2010-03-12 Tape printing apparatus, program, and printing control method

Publications (2)

Publication Number Publication Date
JP2011189561A JP2011189561A (en) 2011-09-29
JP5234028B2 true JP5234028B2 (en) 2013-07-10

Family

ID=44794995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010056042A Active JP5234028B2 (en) 2010-03-12 2010-03-12 Tape printing apparatus, program, and printing control method

Country Status (1)

Country Link
JP (1) JP5234028B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2587614A2 (en) 2011-08-31 2013-05-01 Sony Corporation Electric storage apparatus, electronic device, electric vehicle, and electric power system
JP5907386B2 (en) * 2012-09-11 2016-04-26 カシオ計算機株式会社 Printing apparatus, printing method and program by printing apparatus
JP6365354B2 (en) * 2015-03-06 2018-08-01 ブラザー工業株式会社 Printing device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3212039B2 (en) * 1992-02-21 2001-09-25 ブラザー工業株式会社 Tape printer
TW415889B (en) * 1998-02-06 2000-12-21 Casio Computer Co Ltd Tape printing apparatus
JP2006159490A (en) * 2004-12-03 2006-06-22 Brother Ind Ltd Tape preparing device
JP4985433B2 (en) * 2008-01-29 2012-07-25 ブラザー工業株式会社 Label printer

Also Published As

Publication number Publication date
JP2011189561A (en) 2011-09-29

Similar Documents

Publication Publication Date Title
JP3207860B2 (en) Tape printing apparatus and method
WO2006035559A1 (en) Label creation device and program
JP2008021248A (en) Tape printer and tape printing program
TWI435810B (en) Tape printer, and method for controlling tape printer
JP5234028B2 (en) Tape printing apparatus, program, and printing control method
JP5907387B2 (en) Printing apparatus and printing method
JP2008162236A (en) Tape printing system
JP3224699B2 (en) Tape printer
JP5300442B2 (en) Display device and printing device
JPH07156500A (en) Tape printer
JP3547407B2 (en) Tape printer
JPH07214860A (en) Document processing equipment
JP5907386B2 (en) Printing apparatus, printing method and program by printing apparatus
JP2004042645A (en) Tape printer
JPH09188053A (en) Character information processing and device therefor
JP2914473B2 (en) Document processing device
JP3063544B2 (en) Tape printer
JP2560650B2 (en) Tape printer
TW200532566A (en) System, method, and program for generating barcode data
JPH07172010A (en) Label producing device
JPH0830603A (en) Document processor
JP2004009569A (en) Electronic apparatus, printing device, method for displaying video screen of electronic apparatus, program, and storage medium
JPH08108578A (en) Apparatus for forming tape type label
JP3213154B2 (en) Tape printer
JP2011140236A (en) Print image forming method, print image forming apparatus, program, and printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120221

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130226

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130311

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5234028

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160405

Year of fee payment: 3