JP2024033394A - editing program - Google Patents

editing program Download PDF

Info

Publication number
JP2024033394A
JP2024033394A JP2022136940A JP2022136940A JP2024033394A JP 2024033394 A JP2024033394 A JP 2024033394A JP 2022136940 A JP2022136940 A JP 2022136940A JP 2022136940 A JP2022136940 A JP 2022136940A JP 2024033394 A JP2024033394 A JP 2024033394A
Authority
JP
Japan
Prior art keywords
print
image
frame
printing
print image
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.)
Pending
Application number
JP2022136940A
Other languages
Japanese (ja)
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 JP2022136940A priority Critical patent/JP2024033394A/en
Publication of JP2024033394A publication Critical patent/JP2024033394A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

【課題】編集済みのデータの印刷枠と、プリンタに装着された媒体の印刷枠とが異なる場合に、データの再編集の手間を従来よりも低減した編集プログラムを提供すること。【解決手段】編集装置の制御部は、第一印刷枠内に配置されたオブジェクトを表す基準画像を印刷するためのデータを取得する(S12)。制御部は、プリンタに装着した媒体に関する媒体情報をプリンタから取得する(S13)。制御部は、媒体情報の第二印刷枠が第一印刷枠と異なる場合に(S15:NO)、第二印刷枠に対してオブジェクトを第一方法で編集した第一印刷イメージと、第二方法でオブジェクトを編集した第二印刷イメージとを生成して表示部に表示させる(S21からS29)。制御部は、第一印刷イメージ及び第二印刷イメージのうち入力部を介して選択された印刷イメージの選択印刷データをプリンタに送信する(S32)。【選択図】図2[Problem] To provide an editing program that reduces the effort required to re-edit data when the print frame of edited data differs from the print frame of a medium loaded in a printer. [Solution] A control unit of an editing device acquires data for printing a reference image representing an object arranged in a first print frame (S12). The control unit acquires medium information about the medium loaded in the printer from the printer (S13). When a second print frame of the medium information differs from the first print frame (S15: NO), the control unit generates a first print image in which an object is edited in a first method for the second print frame, and a second print image in which an object is edited in a second method, and displays them on a display unit (S21 to S29). The control unit transmits selected print data of a print image selected from the first print image and the second print image via an input unit to the printer (S32). [Selected Figure] FIG. 2

Description

本発明は、編集プログラムに関する。 The present invention relates to an editing program.

従来の印刷データ編集装置のコンピュータ装置は、表示部と、制御部とを備える。制御部は、表示部に表示されるエディタ表示画面に複数の印刷枠を設定し、設定された複数の印刷枠の各々の印刷データを、同一の編集画面で編集できる。 A computer device of a conventional print data editing device includes a display section and a control section. The control section can set a plurality of print frames on an editor display screen displayed on the display section, and edit print data for each of the plurality of set print frames on the same editing screen.

特開2007-334649号公報Japanese Patent Application Publication No. 2007-334649

従来のコンピュータ装置は、印刷枠の範囲をテーププリンタに装着されている媒体に印刷できるか否かを判断し、印刷できないと判断された場合には、印刷を実行しない。このため、印刷データ編集装置のユーザは、例えば、印刷データ編集装置のテーププリンタに装着された媒体に適した印刷枠を用いずに印刷データを編集した場合に、テーププリンタに装着されている媒体に対応する印刷枠を設定し直して、印刷データの編集をやり直す必要がある。 Conventional computer devices determine whether or not the range of the print frame can be printed on a medium attached to a tape printer, and if it is determined that the range cannot be printed, printing is not performed. Therefore, for example, when a user of a print data editing device edits print data without using a print frame suitable for the medium installed in the tape printer of the print data editing device, It is necessary to reset the print frame corresponding to the print frame and edit the print data again.

本発明の目的は、編集済みのデータの印刷枠と、プリンタに装着された媒体の印刷枠とが異なる場合に、データの再編集の手間を従来よりも低減した編集プログラムを提供することである。 An object of the present invention is to provide an editing program that reduces the effort required to re-edit data when the print frame of edited data differs from the print frame of a medium loaded in a printer. .

本発明の一態様に係る編集プログラムは、表示部と、入力部と、通信部と、制御部とを有する編集装置の前記制御部に、第一印刷枠内に配置されたオブジェクトを表す基準画像を印刷するためのデータを取得する第一取得ステップと、プリンタに装着されている媒体に関する媒体情報を、前記通信部を介して前記プリンタから取得する第二取得ステップと、前記媒体情報に対応する第二印刷枠が前記第一印刷枠と異なる場合に、前記第二印刷枠に対して前記オブジェクトを第一方法で編集して配置した第一印刷イメージと、前記第一方法とは互いに異なる第二方法で前記オブジェクトを編集して配置した第二印刷イメージとを生成して前記表示部に表示させる表示制御ステップと、前記表示部に表示された前記第一印刷イメージ及び前記第二印刷イメージのうち、前記入力部を介して選択された印刷イメージを印刷するための選択印刷データを取得し、前記通信部を介して前記選択印刷データを前記プリンタに送信する送信制御ステップとを実行させる。編集プログラムが編集装置の制御部によって実行された場合、編集装置は、第二印刷枠が第一印刷枠と異なる場合に、第一印刷イメージ及び第二印刷イメージを自動的に生成して表示部に表示する。編集装置は、ユーザにより選択された印刷イメージを印刷するための選択印刷データを取得し、プリンタに送信する。第一印刷イメージ及び第二印刷イメージの中に、所望の印刷イメージがあれば、ユーザは、データを再編集する必要が無い。故に、編集プログラムは、第一印刷イメージ及び第二印刷イメージの中から一つの印刷イメージが選択不能な場合に比べ、データの再編集の手間を省くことに貢献する。 An editing program according to one aspect of the present invention provides a reference image representing an object arranged within a first print frame in the control section of an editing device having a display section, an input section, a communication section, and a control section. a first acquisition step of acquiring data for printing, a second acquisition step of acquiring medium information regarding a medium installed in the printer from the printer via the communication unit, and a second acquisition step corresponding to the medium information. When the second print frame is different from the first print frame, a first print image in which the object is edited and arranged in the first method with respect to the second print frame, and a second print image that is different from the first method. a display control step of generating and displaying a second print image in which the object is edited and arranged using two methods, and displaying the generated second print image on the display section; Among them, a transmission control step of acquiring selected print data for printing the selected print image via the input unit and transmitting the selected print data to the printer via the communication unit. When the editing program is executed by the control unit of the editing device, the editing device automatically generates the first print image and the second print image and displays them on the display unit when the second print frame is different from the first print frame. to be displayed. The editing device acquires selected print data for printing the print image selected by the user and sends it to the printer. If the desired print image is included in the first print image and the second print image, the user does not need to edit the data again. Therefore, the editing program contributes to saving the effort of re-editing the data compared to the case where one print image cannot be selected from the first print image and the second print image.

編集装置2及びプリンタ4を備える印刷システム1の概要を示す図である。1 is a diagram showing an overview of a printing system 1 including an editing device 2 and a printer 4. FIG. メイン処理のフローチャートである。It is a flowchart of main processing. 編集画面G1及びプレビュー画面G2の説明図である。FIG. 2 is an explanatory diagram of an editing screen G1 and a preview screen G2. 基準画像F1、第二印刷イメージF3からF5の説明図である。FIG. 3 is an explanatory diagram of a reference image F1 and second print images F3 to F5. 第一印刷イメージF6及び第二印刷イメージF3を含むプレビュー画面G3の説明図である。FIG. 3 is an explanatory diagram of a preview screen G3 including a first print image F6 and a second print image F3. 第一印刷イメージF7及び第二印刷イメージF4を含むプレビュー画面G4の説明図である。FIG. 3 is an explanatory diagram of a preview screen G4 including a first print image F7 and a second print image F4. 第一印刷イメージF8及び第二印刷イメージF5を含むプレビュー画面G5の説明図である。FIG. 3 is an explanatory diagram of a preview screen G5 including a first print image F8 and a second print image F5. 第一印刷イメージF9及び第二印刷イメージF10を含むプレビュー画面G6の説明図である。It is an explanatory diagram of a preview screen G6 including a first print image F9 and a second print image F10. 第二印刷イメージF11の説明図である。It is an explanatory diagram of the second print image F11.

本発明の実施形態について、図面を参照して説明する。図1を参照し、印刷システム1の概要について説明する。印刷システム1は、プリンタ4及び編集装置2を備える。プリンタ4は、印刷媒体であるテープに対して印刷を行うテーププリンタである。テープは長尺状であり、粘着剤によって感熱紙が剥離紙に貼付されている。プリンタ4には、テープが巻回されたロールが装着される。本実施形態のプリンタ4は、感熱紙の搬送方向E1の長さと感熱紙の幅方向E2の長さとの組み合わせが互いに異なる複数種類のロールから選択された1つのロールを装着できる。プリンタ4は、装着されたロールの種類をセンサ51により機械的に検出できる。プリンタ4は、装着されたロールからテープを繰り出し、印刷ヘッド48により複数のドットをテープに形成させて印刷を実行する。プリンタ4は、印刷されたテープを切断部50のカッタを駆動して切断する。これによって、プリンタ4は、1又は複数の文字、数字、符号、記号、及び図形等のキャラクタ、並びに識別コード等(以下、「オブジェクト」という。)が印刷されたラベルを作成できる。識別コードは、例えば、一次元コード及び二次元コード等でもよい。一次元コードは、例えば、バーコードであってよい。二次元コードは、QRコード(登録商標)、VeriCode(ベリコード)、CPコード、AztecCode(アズテックコード)、及びPDF417等でもよい。 Embodiments of the present invention will be described with reference to the drawings. An overview of the printing system 1 will be described with reference to FIG. 1. The printing system 1 includes a printer 4 and an editing device 2. The printer 4 is a tape printer that prints on tape, which is a printing medium. The tape is long and has thermal paper attached to release paper using an adhesive. A roll of tape is attached to the printer 4. The printer 4 of this embodiment can be equipped with one roll selected from a plurality of rolls having different combinations of the length of the thermal paper in the transport direction E1 and the length of the thermal paper in the width direction E2. The printer 4 can mechanically detect the type of roll mounted using the sensor 51. The printer 4 unwinds the tape from the attached roll and prints by forming a plurality of dots on the tape using the print head 48. The printer 4 cuts the printed tape by driving the cutter of the cutting section 50. As a result, the printer 4 can create a label on which one or more characters such as letters, numbers, codes, symbols, and figures, as well as identification codes (hereinafter referred to as "objects") are printed. The identification code may be, for example, a one-dimensional code or a two-dimensional code. The one-dimensional code may be, for example, a barcode. The two-dimensional code may be a QR code (registered trademark), VeriCode, CP code, AztecCode, PDF417, or the like.

編集装置2は、汎用のパーソナルコンピュータである。プリンタ4及び編集装置2は、ネットワーク5を介して接続され、互いに通信を行うことができる。編集装置2は、テープに印刷するオブジェクトのレイアウトを編集する。編集装置2は、プリンタ4に印刷を実行させるための印刷データを生成し、ネットワーク5を介してプリンタ4に送信する。プリンタ4は、編集装置2から送信される印刷データに基づいて印刷を実行することによって、ラベルを作成する。 Editing device 2 is a general-purpose personal computer. The printer 4 and the editing device 2 are connected via a network 5 and can communicate with each other. Editing device 2 edits the layout of objects to be printed on tape. The editing device 2 generates print data for causing the printer 4 to execute printing, and transmits it to the printer 4 via the network 5. The printer 4 creates a label by executing printing based on the print data sent from the editing device 2.

プリンタ4の電気的構成について説明する。プリンタ4は、CPU6、RAM42、ROM43、記憶部44、通信部45、入力部46、表示部47、印刷ヘッド48、搬送部49、切断部50、及びセンサ51を備える。CPU6は、プリンタ4の制御を行う。CPU6は、RAM42、ROM43、記憶部44、通信部45、入力部46、表示部47、印刷ヘッド48、搬送部49、切断部50、及びセンサ51と電気的に接続する。RAM42は、種々の一時データを記憶する。ROM43には、CPU6がプリンタ4を制御するために実行するプログラム、及び、編集装置2から受信した印刷データが記憶される。記憶部44には、オブジェクトを印刷するための印刷用ドットパターンデータが、書体やサイズ毎に分類されて記憶される。通信部45は、編集装置2と通信を実行するためのコントローラである。入力部46は、複数のボタンを含む。表示部47は、液晶ディスプレイ(LCD)である。印刷ヘッド48は、CPU6からの信号に応じて発熱し、テープに印刷を行うサーマルヘッドである。搬送部49は、テープを送るテープ送りローラである。切断部50は、移動可能なカッタホルダに設けられたカッタを備え、オブジェクトが印刷されたテープをカッタによって切断する。 The electrical configuration of the printer 4 will be explained. The printer 4 includes a CPU 6 , a RAM 42 , a ROM 43 , a storage section 44 , a communication section 45 , an input section 46 , a display section 47 , a print head 48 , a transport section 49 , a cutting section 50 , and a sensor 51 . The CPU 6 controls the printer 4 . The CPU 6 is electrically connected to the RAM 42, ROM 43, storage section 44, communication section 45, input section 46, display section 47, print head 48, conveyance section 49, cutting section 50, and sensor 51. RAM 42 stores various temporary data. The ROM 43 stores programs executed by the CPU 6 to control the printer 4 and print data received from the editing device 2. The storage unit 44 stores printing dot pattern data for printing objects, classified by typeface and size. The communication unit 45 is a controller for communicating with the editing device 2. Input section 46 includes a plurality of buttons. The display section 47 is a liquid crystal display (LCD). The print head 48 is a thermal head that generates heat in response to a signal from the CPU 6 and prints on the tape. The conveyance unit 49 is a tape feed roller that feeds the tape. The cutting unit 50 includes a cutter provided on a movable cutter holder, and cuts the tape on which the object is printed with the cutter.

編集装置2の電気的構成について説明する。編集装置2は、CPU3、RAM22、ROM23、記憶部24、入力部25、表示部26、ドライブ装置27、及び通信部28を備える。CPU3は、編集装置2の制御を行う。CPU3は、RAM22、ROM23、記憶部24、入力部25、表示部26、ドライブ装置27、及び通信部28と電気的に接続する。RAM22は、種々の一時データを記憶する。ROM23は、BIOS等を記憶する。記憶部24には、CPU3が編集装置2を制御するために実行するプログラム、初期設定値、各種閾値、及びOSが記憶される。入力部25は、キーボード、及びマウスやタッチパッドなどのポインティングデバイスを含む。表示部26は、LCDである。ドライブ装置27は、半導体メモリや光ディスク等のコンピュータが読み取り可能な記憶媒体に記憶された情報を読み出すことができる。CPU3は、記憶媒体に記憶されたプログラムをドライブ装置27によって読み出し、記憶部24に記憶できる。通信部28は、プリンタ4と通信を実行するためのコントローラである。 The electrical configuration of the editing device 2 will be explained. The editing device 2 includes a CPU 3, a RAM 22, a ROM 23, a storage section 24, an input section 25, a display section 26, a drive device 27, and a communication section 28. The CPU 3 controls the editing device 2 . The CPU 3 is electrically connected to the RAM 22, ROM 23, storage section 24, input section 25, display section 26, drive device 27, and communication section 28. RAM 22 stores various temporary data. The ROM 23 stores BIOS and the like. The storage unit 24 stores programs executed by the CPU 3 to control the editing device 2, initial setting values, various threshold values, and the OS. The input unit 25 includes a keyboard and a pointing device such as a mouse or a touch pad. The display section 26 is an LCD. The drive device 27 can read information stored in a computer-readable storage medium such as a semiconductor memory or an optical disk. The CPU 3 can read the program stored in the storage medium using the drive device 27 and store it in the storage unit 24 . The communication unit 28 is a controller for communicating with the printer 4.

図2から図7を参照して、印刷システム1のCPU3が実行するメイン処理を説明する。以下、ステップをSと略記する。本実施形態では、一例として、図3に示すような搬送方向E1の長さが85mmで幅方向E2の長さが50mmの第一印刷枠R1が設定され、その第一印刷枠R1内にオブジェクトB1、C1、D1が配置された基準画像F1を、大きさが互いに異なる感熱紙に印刷する具体例1から4を用いる。具体例1から4の感熱紙及び感熱紙の内側に設定される印刷枠は各々、搬送方向E1に延びる二辺と、幅方向E2に延びる二辺とを有する矩形状である。具体例1は、感熱紙の内側に設定される印刷枠の搬送方向E1の長さが85mmの場合であり、印刷枠の幅方向E2が50mmの場合である。具体例2は、印刷枠の搬送方向E1の長さが60mmの場合であり、印刷枠の幅方向E2が40mmの場合である。具体例3は、印刷枠の搬送方向E1の長さが152mmの場合であり、印刷枠の幅方向E2が102mmの場合である。具体例4は、印刷枠の搬送方向E1の長さが80mmの場合であり、印刷枠の幅方向E2が115mmの場合である。編集装置2のCPU3は、電源がONにされた後、ユーザから編集を開始する開始指示を取得した場合に、記憶部24に記憶されたプログラムをRAM22に読み出す。CPU3は、RAM22に読み出されたプログラムに含まれる指示に従って、以下のステップを有するメイン処理を実行する。メイン処理の過程で得られた各種データは、適宜RAM22に記憶される。具体例1から4のメイン処理は各々互いに異なるタイミングで実行されるが、説明を簡単にするため、両者を並列に説明する。図3から図7において、図の上下方向及び左右方向は各々、搬送方向E1及び幅方向E2に対応する。図3から図7では、一次元バーコードを含むオブジェクトD1からD4の左下に表示される数字を網掛けの矩形で示す。 The main processing executed by the CPU 3 of the printing system 1 will be described with reference to FIGS. 2 to 7. Hereinafter, step will be abbreviated as S. In this embodiment, as an example, a first printing frame R1 having a length in the transport direction E1 of 85 mm and a length in the width direction E2 of 50 mm as shown in FIG. 3 is set, and an object is placed in the first printing frame R1. Specific examples 1 to 4 are used in which the reference image F1 in which B1, C1, and D1 are arranged is printed on thermal paper having different sizes. The thermal paper of Examples 1 to 4 and the printing frame set inside the thermal paper each have a rectangular shape having two sides extending in the transport direction E1 and two sides extending in the width direction E2. Specific example 1 is a case where the length of the printing frame set inside the thermal paper in the conveying direction E1 is 85 mm, and the width direction E2 of the printing frame is 50 mm. Specific example 2 is a case in which the length of the print frame in the transport direction E1 is 60 mm, and the width direction E2 of the print frame is 40 mm. Specific example 3 is a case in which the length of the print frame in the transport direction E1 is 152 mm, and the width direction E2 of the print frame is 102 mm. Specific example 4 is a case in which the length of the print frame in the transport direction E1 is 80 mm, and the width direction E2 of the print frame is 115 mm. After the power is turned on, the CPU 3 of the editing device 2 reads the program stored in the storage unit 24 into the RAM 22 when receiving a start instruction to start editing from the user. The CPU 3 executes main processing having the following steps according to instructions included in the program read into the RAM 22. Various data obtained in the course of the main processing are stored in the RAM 22 as appropriate. Although the main processing in specific examples 1 to 4 is executed at different timings, both will be explained in parallel to simplify the explanation. In FIGS. 3 to 7, the vertical direction and the horizontal direction of the figures correspond to the conveying direction E1 and the width direction E2, respectively. In FIGS. 3 to 7, numbers displayed at the lower left of objects D1 to D4 including one-dimensional barcodes are indicated by shaded rectangles.

図2に示すように、メイン処理でCPU3は、レイアウトの編集を新規に行うかを判断する(S1)。ユーザは、入力部25を介して、レイアウトの編集を新規に行うか、又は既存のデータを再編集するかを選択する指示を入力する。既存のデータは、編集可能なデータであり、印刷枠に対するオブジェクトの配置位置及びサイズなどの情報をもとに生成されたデータである。既存のデータは、例えば、プリンタ4の印刷ヘッド48の各座標のドットオンオフを指示する印刷データであってもよいし、印刷データに変換される前のデータであってもよい。レイアウトの編集を新規に行う指示が検出された場合(S1:YES)、CPU3は、ユーザによって指定された第一印刷枠を設定し、設定された第一印刷枠を含む編集画面を表示部26に表示する(S2)。第一印刷枠はユーザの指示に従って設定されてもよいし、前回の値が読み込まれてもよいし、規定値が設定されてもよい。 As shown in FIG. 2, in the main process, the CPU 3 determines whether to newly edit the layout (S1). The user inputs an instruction to select whether to newly edit the layout or re-edit existing data via the input unit 25. The existing data is editable data, and is data generated based on information such as the placement position and size of the object with respect to the print frame. The existing data may be, for example, print data that instructs dot on/off at each coordinate of the print head 48 of the printer 4, or may be data before being converted to print data. When an instruction to newly edit the layout is detected (S1: YES), the CPU 3 sets the first printing frame specified by the user, and displays an editing screen including the set first printing frame on the display unit 26. (S2). The first print frame may be set according to a user's instruction, a previous value may be read, or a predetermined value may be set.

既存のデータを再編集する指示が検出された場合(S1:NO)、CPU3は、指定されたデータを読み込んで(S3)、データによって指定された第一印刷枠R1を設定し、設定された第一印刷枠R1を含む編集画面G1を表示部26に表示する(S4)。図3に示すように編集画面G1は、基準画像F1、キーK1からK4を含む。基準画像F1は、第一印刷枠R1の形状に対応した矩形状である。基準画像F1は、第一印刷枠R1内に配置されたオブジェクトB1、C1、D1を含む。オブジェクトB1は、アルファベット文字「ABCDEFG」を表す。オブジェクトC1は、二次元コードの一種であるQRコード(登録商標)である。オブジェクトD1は、一次元バーコードである。オブジェクトD1はバーコードシンボルの左右に設定された余白部分(クワイエットゾーン)を含む。キーK1は、オブジェクトの追加を指示する。キーK2は、オブジェクトの編集を指示する。キーK3は、基準画像F1を印刷するための印刷データを生成し、プリンタ4に転送することを指示する。キーK4は、基準画像F1を表すデータを保存することを指示する。 If an instruction to re-edit existing data is detected (S1: NO), the CPU 3 reads the specified data (S3), sets the first printing frame R1 specified by the data, and prints the specified data. The editing screen G1 including the first print frame R1 is displayed on the display unit 26 (S4). As shown in FIG. 3, the editing screen G1 includes a reference image F1 and keys K1 to K4. The reference image F1 has a rectangular shape corresponding to the shape of the first printing frame R1. The reference image F1 includes objects B1, C1, and D1 arranged within the first printing frame R1. Object B1 represents alphabetic characters "ABCDEFG". The object C1 is a QR code (registered trademark), which is a type of two-dimensional code. Object D1 is a one-dimensional barcode. Object D1 includes blank areas (quiet zones) set on the left and right sides of the barcode symbol. Key K1 instructs to add an object. Key K2 instructs to edit the object. Key K3 instructs to generate print data for printing reference image F1 and transfer it to printer 4. Key K4 instructs to save data representing reference image F1.

CPU3は、オブジェクトの追加を指示されたかを判断する(S5)。キーK1の選択が検出された場合(S5:YES)、CPU3は、指定されたオブジェクトを指定された位置に追加し、編集画面G1を更新する(S6)。キーK1の選択が検出されない場合(S5:NO)、CPU3は、オブジェクトの編集を指示されたかを判断する(S7)。オブジェクトの編集は、オブジェクトの移動、拡大、縮小、回転、変形、及び削除等から選択できる。オブジェクトが、文字及び数字等のキャラクタである場合、オブジェクトの編集として、フォント、太文字、斜体、下線、及び網掛け等の変更を選択できる。キーK2の選択が検出された場合(S7:YES)、CPU3は、ユーザの指示に従って、オブジェクトを編集し、編集結果に基づき編集画面G1を更新する(S8)。S1で新規作成が選択された場合には、ユーザはS5でオブジェクトB1、C1、D1を順次追加し(S5:YES、S6)、適宜配置を調整する(S7:YES、S8)ことで、編集画面G1に示す基準画像F1を得る。 The CPU 3 determines whether an instruction to add an object has been given (S5). If selection of the key K1 is detected (S5: YES), the CPU 3 adds the specified object to the specified position and updates the editing screen G1 (S6). If selection of the key K1 is not detected (S5: NO), the CPU 3 determines whether an instruction has been given to edit the object (S7). To edit the object, you can select from among moving, enlarging, reducing, rotating, deforming, deleting, etc. the object. When the object is a character such as a letter or a number, changing the font, bold text, italicization, underlining, shading, etc. can be selected as editing of the object. If selection of the key K2 is detected (S7: YES), the CPU 3 edits the object according to the user's instructions, and updates the editing screen G1 based on the editing result (S8). If creating a new object is selected in S1, the user sequentially adds objects B1, C1, and D1 in S5 (S5: YES, S6), adjusts the arrangement as appropriate (S7: YES, S8), and then edits the object. A reference image F1 shown in screen G1 is obtained.

キーK2の選択が検出されない場合(S7:NO)、CPU3は、データの保存を指示されたかを判断する(S9)。キーK4の選択が検出された場合(S9:YES)、編集中の基準画像F1を表すデータを記憶部24に記憶する(S10)。S10の処理で記憶されたデータは、S1で選択された場合に、読み込み可能である。S6、S8、又はS10の処理の次に、CPU3は、S11の処理を行う。キーK4の選択が検出されていない場合(S9:NO)、CPU3は、データの転送を指示されたかを判断する(S11)。キーK3の選択が検出されていない場合(S11:NO)、CPU3は処理をS5に戻す。 If selection of the key K2 is not detected (S7: NO), the CPU 3 determines whether an instruction to save data has been given (S9). If selection of the key K4 is detected (S9: YES), data representing the reference image F1 being edited is stored in the storage unit 24 (S10). The data stored in the process of S10 can be read when selected in S1. After the process in S6, S8, or S10, the CPU 3 performs the process in S11. If selection of the key K4 is not detected (S9: NO), the CPU 3 determines whether data transfer is instructed (S11). If selection of the key K3 is not detected (S11: NO), the CPU 3 returns the process to S5.

キーK3の選択が検出された場合(S11:YES)、CPU3は、第一印刷枠R1内に配置されたオブジェクトを表す基準画像F1を印刷するためのデータを取得する。CPU3は、印刷データを転送するプリンタ4に、プリンタ4に装着されている媒体に関する媒体情報を通知することを求める通知指示をネットワーク5を介して送信する(S12)。プリンタ4は、通知指示を受信した場合、センサ51の出力に基づき特定されたテープの種類を表す媒体情報、編集装置2に送信する。CPU3は、通知指示に応じて、プリンタ4が送信した媒体情報を取得するまで待機する(S13:NO)。CPU3は、プリンタ4に装着されている媒体に関する媒体情報を、通信部28を介してプリンタ4から取得した場合、S13で取得された媒体情報に応じた感熱紙の印刷枠である第二印刷枠と、S2、S4、又は後述のS35で設定された第一印刷枠R1とを比較する(S14)。 If selection of the key K3 is detected (S11: YES), the CPU 3 acquires data for printing the reference image F1 representing the object placed within the first printing frame R1. The CPU 3 transmits a notification instruction via the network 5 to the printer 4 to which the print data is transferred, requesting that the printer 4 notify medium information regarding the medium installed in the printer 4 (S12). When the printer 4 receives the notification instruction, it transmits media information representing the type of tape specified based on the output of the sensor 51 to the editing device 2 . In response to the notification instruction, the CPU 3 waits until the printer 4 acquires the transmitted medium information (S13: NO). When the CPU 3 acquires medium information regarding the medium installed in the printer 4 from the printer 4 via the communication unit 28, the CPU 3 selects a second printing frame, which is a thermal paper printing frame according to the medium information acquired in S13. and the first print frame R1 set in S2, S4, or S35 described later (S14).

具体例1では、第二印刷枠と、第一印刷枠R1とが一致すると判断され(S15:YES)、CPU3は、第一印刷枠R1内にオブジェクトB1、C1、D1が配置された、基準画像F1の基準印刷イメージF2を生成し(S16)、基準印刷イメージF2を含むプレビュー画面G2を表示部26に表示する(S17)。図3に示すように、プレビュー画面G2は、基準印刷イメージF2と、キーK5とを含む。基準印刷イメージF2は、第一印刷枠R1の内側に配置されたオブジェクトB1、C1、D1の印刷イメージを表す。キーK5は、印刷データの転送を実行する場合に選択される。ユーザは、プレビュー画面G2を確認した後、キーK5を選択する。CPU3は、キーK5の選択が検出されるまで待機する(S18:NO)。キーK5の選択が検出された場合(S18:YES)、CPU3は、基準画像F1を印刷するための印刷データを生成し、生成された印刷データをプリンタ4に転送し(S19)、以上でメイン処理を終了する。CPU3は、印刷データを記憶部24に記憶した後、メイン処理を終了してもよい。編集装置2から送信されたプリンタ4は、印刷データを受信し、印刷データに従って、印刷を行う。 In specific example 1, it is determined that the second printing frame and the first printing frame R1 match (S15: YES), and the CPU 3 sets the standard in which objects B1, C1, and D1 are arranged in the first printing frame R1. A reference print image F2 of the image F1 is generated (S16), and a preview screen G2 including the reference print image F2 is displayed on the display unit 26 (S17). As shown in FIG. 3, the preview screen G2 includes a reference print image F2 and a key K5. The reference print image F2 represents a print image of objects B1, C1, and D1 arranged inside the first print frame R1. Key K5 is selected when transferring print data. After checking the preview screen G2, the user selects the key K5. The CPU 3 waits until selection of the key K5 is detected (S18: NO). If the selection of the key K5 is detected (S18: YES), the CPU 3 generates print data for printing the reference image F1, transfers the generated print data to the printer 4 (S19), and then the main Finish the process. The CPU 3 may end the main processing after storing the print data in the storage unit 24. The printer 4 receives the print data sent from the editing device 2 and performs printing according to the print data.

具体例2から4では、第二印刷枠と、第一印刷枠R1とが一致しないと判断され(S15:NO)、CPU3は、第二印刷枠に対してオブジェクトを第一方法で編集して配置した第一印刷イメージと、第一方法とは互いに異なる第二方法でオブジェクトを編集して配置した第二印刷イメージとを生成して表示部26に表示させる処理を行う(S21からS29)。具体的にはCPU3は、第二印刷枠の長手方向と、第一印刷枠R1の長手方向とが一致するかを判断する(S21)。具体例2、3では、第二印刷枠の長手方向は搬送方向E1であり、第一印刷枠R1の長手方向と一致すると判断され(S21:YES)、CPU3は、第二印刷枠に対してオブジェクトを第一方法で編集して配置した第一印刷イメージとして、オブジェクトB1、C1、D1の大きさを変更せずに、第二印刷枠に対して基準画像F1を配置したサイズ同一画像の第一印刷イメージを生成する(S22)。 In specific examples 2 to 4, it is determined that the second printing frame and the first printing frame R1 do not match (S15: NO), and the CPU 3 edits the object in the second printing frame using the first method. Processing is performed to generate the arranged first print image and a second print image in which objects are edited and arranged using a second method different from the first method, and to be displayed on the display unit 26 (S21 to S29). Specifically, the CPU 3 determines whether the longitudinal direction of the second printing frame matches the longitudinal direction of the first printing frame R1 (S21). In specific examples 2 and 3, it is determined that the longitudinal direction of the second printing frame is the transport direction E1, which coincides with the longitudinal direction of the first printing frame R1 (S21: YES), and the CPU 3 As the first print image in which the objects are edited and arranged using the first method, a second image of the same size in which the reference image F1 is placed in the second print frame without changing the sizes of objects B1, C1, and D1 is used. A print image is generated (S22).

具体例2の第二印刷枠R2は、第一印刷枠R1よりも小さい。故に、基準画像F1は、第二印刷枠R2に収まらない。CPU3は、第二印刷枠R2に対し、基準画像F1を第一所定位置に配置して、図5の第一印刷イメージF6を生成する。第一所定位置は、適宜設定されればよく、本実施形態では、基準画像F1の第一印刷枠R1の第一基準V1が、第二印刷枠R2の第二基準V2と一致する位置である。第一基準V1と第二基準V2とはユーザが設定可能であってもよいし、予め設定されたものでもよい。図5において、第一基準V1は、第一印刷枠R1の左下角部に設定され、第二基準V2は、第二印刷枠R2の左下角部に設定される。具体例3の第二印刷枠R3は、第一印刷枠R1よりも大きい。故に、基準画像F1は、第二印刷枠R3に収まる。CPU3は、第二印刷枠R3に対し、基準画像F1を第二所定位置に配置して、図6の第一印刷イメージF7を生成する。第二所定位置は、適宜設定されればよく、本実施形態では、基準画像F1の第一印刷枠R1の第一基準V1が、第二印刷枠R3の第二基準V3と一致する位置である。図6において、第二基準V3は、第二印刷枠R3の左下角部に設定される。 The second printing frame R2 of specific example 2 is smaller than the first printing frame R1. Therefore, the reference image F1 does not fit within the second printing frame R2. The CPU 3 arranges the reference image F1 at a first predetermined position with respect to the second printing frame R2, and generates the first print image F6 of FIG. 5. The first predetermined position may be set as appropriate, and in this embodiment, it is a position where the first reference V1 of the first printing frame R1 of the reference image F1 matches the second reference V2 of the second printing frame R2. . The first criterion V1 and the second criterion V2 may be settable by the user or may be set in advance. In FIG. 5, the first reference V1 is set at the lower left corner of the first printing frame R1, and the second reference V2 is set at the lower left corner of the second printing frame R2. The second printing frame R3 of specific example 3 is larger than the first printing frame R1. Therefore, the reference image F1 fits within the second printing frame R3. The CPU 3 arranges the reference image F1 at a second predetermined position with respect to the second printing frame R3, and generates the first print image F7 of FIG. 6. The second predetermined position may be set as appropriate, and in this embodiment, it is a position where the first reference V1 of the first printing frame R1 of the reference image F1 matches the second reference V3 of the second printing frame R3. . In FIG. 6, the second reference V3 is set at the lower left corner of the second printing frame R3.

CPU3は、S22で生成された第一方法とは互いに異なる第二方法で第二印刷枠に対し、基準画像F1に含まれるオブジェクトB1、C1、D1を編集して配置する(S23)。本実施形態のCPU3は、第二方法として、第一印刷枠R1を第二印刷枠に合わせて拡大又は縮小する場合の第一印刷枠R1の倍率に応じて拡大又は縮小されたオブジェクトを第二印刷枠内に配置する方法を用いる。より具体的には、CPU3は、基準画像F1のうちの第一基準V1からのオブジェクトまでの変更前距離に倍率を乗じた変更後距離だけ、第一基準V1に対応する第二基準から離れた変更後位置に、倍率に応じた大きさのオブジェクトを配置する。CPU3は、更に、オブジェクトが識別コードを含む場合に、倍率内で最大サイズになるように生成された識別コードを変更後位置に配置する。 The CPU 3 edits and arranges the objects B1, C1, and D1 included in the reference image F1 in the second print frame using a second method that is different from the first method generated in S22 (S23). As a second method, the CPU 3 of the present embodiment expands or reduces the object enlarged or reduced according to the magnification of the first printing frame R1 in accordance with the second printing frame. Use the method of placing within the print frame. More specifically, the CPU 3 determines whether the object is separated from the second reference corresponding to the first reference V1 by a post-change distance obtained by multiplying the pre-change distance to the object from the first reference V1 in the reference image F1 by a magnification. Place an object with a size according to the magnification at the changed position. Furthermore, when the object includes an identification code, the CPU 3 places the identification code generated so as to have the maximum size within the magnification at the changed position.

第一方法と同様に、本実施形態の第一基準V1は第一印刷枠R1の左下の角部に設定される。搬送方向E1の倍率は、式(1)に従って算出され、幅方向E2の倍率は、式(2)に従って算出される。搬送方向E1の変更後距離は、式(3)に従って算出され、幅方向E2の変更後距離は、式(4)に従って算出される。
搬送方向E1の倍率=(第二印刷枠の幅方向E2の長さ)/(第一印刷枠R1の幅方向E2の長さ)
・・・式(1)
幅方向E2の倍率=(第二印刷枠の搬送方向E1の長さ)/(第一印刷枠R1の搬送方向E1の長さ) ・・・式(2)
搬送方向E1の変更後距離=(搬送方向E1の変更前距離)×(搬送方向E1の倍率) ・・・式(3)
幅方向E2の変更後距離=(搬送方向E1の変更前距離)×(搬送方向E1の倍率) ・・・式(4)
Similar to the first method, the first reference V1 of this embodiment is set at the lower left corner of the first printing frame R1. The magnification in the transport direction E1 is calculated according to formula (1), and the magnification in the width direction E2 is calculated according to formula (2). The distance after change in the transport direction E1 is calculated according to equation (3), and the distance after change in the width direction E2 is calculated according to equation (4).
Magnification in the transport direction E1 = (length of the second printing frame in the width direction E2) / (length of the first printing frame R1 in the width direction E2)
...Formula (1)
Magnification in the width direction E2 = (length of the second printing frame in the conveying direction E1) / (length of the first printing frame R1 in the conveying direction E1) ...Formula (2)
Distance after change in conveyance direction E1 = (distance before change in conveyance direction E1) x (magnification of conveyance direction E1) ...Formula (3)
Distance after change in width direction E2 = (distance before change in conveyance direction E1) x (magnification in conveyance direction E1) ...Formula (4)

図4に示すように、具体例2の第二印刷枠R2の第二基準V2は、第一方法と共通であり、第二印刷枠R2の左下角部に設定される。具体例2の搬送方向E1の倍率は、0.71であり、幅方向E2の倍率は、0.80である。オブジェクトB1について、搬送方向E1の変更後距離LB3は、搬送方向E1の変更前距離LB1に倍率0.71を乗じた値であり、幅方向E2の変更後距離LB4は、幅方向E2の変更前距離LB2に倍率0.80を乗じた値とし、オブジェクトB1に対応するオブジェクトB2の大きさはオブジェクトB1を幅方向E2の倍率0.80倍した大きさとする。オブジェクトC1について、搬送方向E1の変更後距離LC3は、搬送方向E1の変更前距離LC1に倍率0.71を乗じた値であり、幅方向E2の変更後距離LC4は、幅方向E2の変更前距離LC2に倍率0.80を乗じた値であり、オブジェクトC1に対応するオブジェクトC2を幅方向E2の倍率内で最大サイズになるように生成された識別コードとする。オブジェクトD1について、搬送方向E1の変更後距離LD3は、搬送方向E1の変更前距離LD1に倍率0.71を乗じた値であり、幅方向E2の変更後距離LD4は、幅方向E2の変更前距離LD2に倍率0.80を乗じた値であり、オブジェクトD1に対応するオブジェクトD2を幅方向E2の倍率内で最大サイズになるように生成された識別コードとする。 As shown in FIG. 4, the second reference V2 of the second printing frame R2 of the second specific example is the same as the first method, and is set at the lower left corner of the second printing frame R2. In specific example 2, the magnification in the transport direction E1 is 0.71, and the magnification in the width direction E2 is 0.80. Regarding object B1, the distance LB3 after change in the transport direction E1 is the value obtained by multiplying the distance LB1 before change in the transport direction E1 by a magnification of 0.71, and the distance LB4 after change in the width direction E2 is the distance LB4 before change in the width direction E2. The distance LB2 is multiplied by a magnification of 0.80, and the size of the object B2 corresponding to the object B1 is the size of the object B1 multiplied by a magnification of 0.80 in the width direction E2. Regarding the object C1, the distance LC3 after change in the conveyance direction E1 is the value obtained by multiplying the distance LC1 before change in the conveyance direction E1 by a magnification of 0.71, and the distance LC4 after change in the width direction E2 is the distance before change in the width direction E2. It is the value obtained by multiplying the distance LC2 by a magnification of 0.80, and is an identification code generated so that the object C2 corresponding to the object C1 has the maximum size within the magnification in the width direction E2. Regarding the object D1, the distance LD3 after change in the transport direction E1 is the value obtained by multiplying the distance LD1 before change in the transport direction E1 by a magnification of 0.71, and the distance LD4 after change in the width direction E2 is the distance before change in the width direction E2. It is a value obtained by multiplying the distance LD2 by a magnification of 0.80, and is an identification code generated so that the object D2 corresponding to the object D1 has the maximum size within the magnification in the width direction E2.

同様に、具体例3の第二印刷枠R3の第二基準V3は、第一方法と共通であり、第二印刷枠R3の左下角部に設定される。具体例2の搬送方向E1の倍率は、1.79であり、幅方向E2の倍率は、2.04である。オブジェクトB1について、搬送方向E1の変更後距離LB5は、搬送方向E1の変更前距離LB1に倍率1.79を乗じた値であり、幅方向E2の変更後距離LB6は、幅方向E2の変更前距離LB2に倍率2.04を乗じた値とし、オブジェクトB1に対応するオブジェクトB3の大きさはオブジェクトB1を幅方向E2の倍率2.04倍した大きさとする。オブジェクトC1について、搬送方向E1の変更後距離LC5は、搬送方向E1の変更前距離LC1に倍率1.79を乗じた値であり、幅方向E2の変更後距離LC6は、幅方向E2の変更前距離LC2に倍率2.04を乗じた値であり、オブジェクトC1に対応するオブジェクトC3を幅方向E2の倍率内で最大サイズになるように生成された識別コードとする。オブジェクトD1について、搬送方向E1の変更後距離LD5は、搬送方向E1の変更前距離LD1に倍率1.79を乗じた値であり、幅方向E2の変更後距離LD6は、幅方向E2の変更前距離LD2に倍率2.04を乗じた値であり、オブジェクトD1に対応するオブジェクトD3を幅方向E2の倍率内で最大サイズになるように生成された識別コードとする。 Similarly, the second reference V3 of the second printing frame R3 of the third specific example is the same as the first method, and is set at the lower left corner of the second printing frame R3. In specific example 2, the magnification in the transport direction E1 is 1.79, and the magnification in the width direction E2 is 2.04. Regarding object B1, the distance LB5 after change in the transport direction E1 is the value obtained by multiplying the distance LB1 before change in the transport direction E1 by a magnification of 1.79, and the distance LB6 after change in the width direction E2 is the distance LB5 before change in the width direction E2. The distance LB2 is multiplied by a magnification of 2.04, and the size of the object B3 corresponding to the object B1 is the size of the object B1 multiplied by the magnification of 2.04 in the width direction E2. Regarding the object C1, the distance LC5 after change in the conveyance direction E1 is the value obtained by multiplying the distance LC1 before change in the conveyance direction E1 by a magnification of 1.79, and the distance LC6 after change in the width direction E2 is the value before change in the width direction E2. It is a value obtained by multiplying the distance LC2 by a magnification of 2.04, and is an identification code generated so that the object C3 corresponding to the object C1 has the maximum size within the magnification in the width direction E2. Regarding the object D1, the distance LD5 after change in the transport direction E1 is the value obtained by multiplying the distance LD1 before change in the transport direction E1 by a magnification of 1.79, and the distance LD6 after change in the width direction E2 is the distance before change in the width direction E2. It is a value obtained by multiplying the distance LD2 by a magnification of 2.04, and is an identification code generated so that the object D3 corresponding to the object D1 has the maximum size within the magnification in the width direction E2.

CPU3は、S23で第二印刷枠内に配置されたオブジェクトを印刷するための第二印刷イメージを生成する(S24)。具体例2では、CPU3は、第二印刷イメージF3が生成され、具体例3では、CPU3は、第二印刷イメージF4が生成される。第二印刷イメージF3、F4は、式(3)、式(4)で算出された倍率に応じて拡大又は縮小されたオブジェクトが第二印刷枠内に配置された倍率変更画像である。 The CPU 3 generates a second print image for printing the object placed within the second print frame in S23 (S24). In the second specific example, the CPU 3 generates the second print image F3, and in the third specific example, the CPU 3 generates the second print image F4. The second print images F3 and F4 are magnification-changed images in which objects enlarged or reduced according to the magnification calculated by equations (3) and (4) are arranged within the second print frame.

CPU3は、S22で生成された第一印刷イメージと、S24で生成された第二印刷イメージとを含むプレビュー画面を表示部26に表示する(S25)。具体例2のプレビュー画面G3は、第一印刷イメージF6、第二印刷イメージF3、ラジオボタンJ1、J2、及びキーK6、K7を含む。ラジオボタンJ1、J2は、印刷イメージを選択するのに使用される。ラジオボタンJ1は、第一印刷イメージF6が選択される場合に、選択される。ラジオボタンJ2は、第二印刷イメージF3が選択される場合に、選択される。キーK6は、ラジオボタンJ1又はラジオボタンJ2で選択された印刷イメージを印刷するための印刷データをプリンタ4に転送することを指示する場合に選択される。キーK7は、ラジオボタンJ1又はラジオボタンJ2で選択された印刷イメージを再編集することを指示する場合に選択される。同様に具体例3のプレビュー画面G4は、第一印刷イメージF7、第二印刷イメージF4、ラジオボタンJ1、J2、及びキーK6、K7を含む。ラジオボタンJ1は、第一印刷イメージF7が選択される場合に、選択される。ラジオボタンJ2は、第二印刷イメージF4が選択される場合に、選択される。 The CPU 3 displays a preview screen including the first print image generated in S22 and the second print image generated in S24 on the display unit 26 (S25). The preview screen G3 of specific example 2 includes a first print image F6, a second print image F3, radio buttons J1 and J2, and keys K6 and K7. Radio buttons J1 and J2 are used to select print images. Radio button J1 is selected when first print image F6 is selected. Radio button J2 is selected when second print image F3 is selected. Key K6 is selected when instructing to transfer print data for printing the print image selected by radio button J1 or radio button J2 to printer 4. Key K7 is selected when instructing to re-edit the print image selected with radio button J1 or radio button J2. Similarly, the preview screen G4 of specific example 3 includes a first print image F7, a second print image F4, radio buttons J1 and J2, and keys K6 and K7. Radio button J1 is selected when first print image F7 is selected. Radio button J2 is selected when second print image F4 is selected.

CPU3は、印刷データを転送する指示が検出されたかを判断する(S31)。キーK6の選択が検出された場合(S31:YES)、CPU3は、ラジオボタンJ1又はラジオボタンJ2で選択された印刷イメージを印刷するための選択印刷データを生成して取得し、ネットワーク5を介して、取得された選択印刷データをプリンタ4に転送する(S32)。CPU3は以上でメイン処理を終了する。キーK6の選択が検出されない場合(S31:NO)、CPU3は、選択中の印刷イメージを再編集する指示が検出されたかを判断する(S33)。キーK7の選択が検出された場合(S33:YES)、CPU3は、ラジオボタンJ1又はラジオボタンJ2で選択された印刷イメージを読み込み(S34)、読み込まれた印刷イメージの印刷枠を第一印刷枠として設定する(S35)。CPU3は、処理をS5に戻す。キーK7の選択が検出されない場合(S33:NO)、CPU3は、処理をS31に戻す。 The CPU 3 determines whether an instruction to transfer print data has been detected (S31). If selection of key K6 is detected (S31: YES), CPU 3 generates and acquires selected print data for printing the print image selected with radio button J1 or radio button J2, and prints the selected print data via network 5. Then, the acquired selected print data is transferred to the printer 4 (S32). The CPU 3 then ends the main processing. If selection of the key K6 is not detected (S31: NO), the CPU 3 determines whether an instruction to re-edit the selected print image has been detected (S33). If selection of key K7 is detected (S33: YES), CPU 3 reads the print image selected with radio button J1 or radio button J2 (S34), and sets the print frame of the read print image to the first print frame. (S35). The CPU 3 returns the process to S5. If selection of the key K7 is not detected (S33: NO), the CPU 3 returns the process to S31.

具体例4では、第二印刷枠R4の長手方向は幅方向E2であり、第一印刷枠R1の長手方向と一致しないと判断され(S21:NO)、CPU3は、S22と同様に第一方法で、オブジェクトB1、C1、D1の大きさを変更せずに、第二印刷枠内に基準画像F1を配置したサイズ同一画像を印刷するための第一印刷イメージF8を生成する(S26)。CPU3は、第二印刷枠R4に対し、基準画像F1を第一所定位置に配置して、図7の第一印刷イメージF8を生成する。具体例4の第二基準V4は、第二印刷枠R4の左下角部である。CPU3は、S26で生成された第一方法とは互いに異なる第二方法で第二印刷枠R4内に、基準画像F1に対応する基準画像F12を、第二印刷枠R4の長手方向及び短手方向のうちの一方の、一端側、他端側、及び中央の順に複数配置する(S27)。具体例4では、CPU3は、二個の基準画像F12を、幅方向E2の一端側と、他端側との各々に第二印刷枠R4内に配置する。基準画像F12は、基準画像F1と同一の画像であってもよいし、式(1)に従って算出された搬送方向E1の倍率に応じて、基準画像F1を拡大又は縮小した画像でもよい。各基準画像F12は、オブジェクトB1に対応するオブジェクトB4、オブジェクトC1に対応するオブジェクトC4、及びオブジェクトD1に対応するオブジェクトD4を含む。CPU3は、S27で配置結果を表す第二印刷イメージF5を生成する(S28)。 In specific example 4, it is determined that the longitudinal direction of the second printing frame R4 is the width direction E2, which does not match the longitudinal direction of the first printing frame R1 (S21: NO), and the CPU 3 executes the first method as in S22. Then, without changing the sizes of objects B1, C1, and D1, a first print image F8 is generated for printing an image of the same size in which the reference image F1 is placed within the second print frame (S26). The CPU 3 arranges the reference image F1 at a first predetermined position with respect to the second printing frame R4, and generates the first print image F8 of FIG. 7. The second reference V4 in specific example 4 is the lower left corner of the second printing frame R4. The CPU 3 generates the reference image F12 corresponding to the reference image F1 in the second printing frame R4 in the longitudinal and lateral directions of the second printing frame R4 using a second method different from the first method generated in S26. A plurality of them are arranged in the order of one end side, the other end side, and the center (S27). In specific example 4, the CPU 3 arranges the two reference images F12 within the second printing frame R4 at one end and the other end in the width direction E2. The reference image F12 may be the same image as the reference image F1, or may be an image obtained by enlarging or reducing the reference image F1 according to the magnification in the transport direction E1 calculated according to equation (1). Each reference image F12 includes an object B4 corresponding to the object B1, an object C4 corresponding to the object C1, and an object D4 corresponding to the object D1. The CPU 3 generates a second print image F5 representing the placement result in S27 (S28).

CPU3は、S26で生成された第一印刷イメージF8と、S28で生成された第二印刷イメージF5とを含むプレビュー画面G5を表示部26に表示する(S29)。具体例2のプレビュー画面G5は、第一印刷イメージF8、第二印刷イメージF5、ラジオボタンJ1、J2、及びキーK6、K7を含む。ラジオボタンJ1は、第一印刷イメージF8が選択される場合に、選択される。ラジオボタンJ2は、第二印刷イメージF5が選択される場合に、選択される。以降の処理は、具体例2、3の場合と同じである。 The CPU 3 displays a preview screen G5 including the first print image F8 generated in S26 and the second print image F5 generated in S28 on the display unit 26 (S29). The preview screen G5 of the second specific example includes a first print image F8, a second print image F5, radio buttons J1 and J2, and keys K6 and K7. Radio button J1 is selected when first print image F8 is selected. Radio button J2 is selected when second print image F5 is selected. The subsequent processing is the same as in the second and third specific examples.

上記実施形態において、S26からS29の処理は、適宜変更されてよい。具体例5として、図8に示す感熱紙の印刷枠R5の搬送方向E1の長さが102mmの場合であり、印刷枠R5の幅方向E2が152mmの場合について説明する。具体例5の感熱紙の印刷枠R5は、具体例3の印刷枠R3の搬送方向E1の長さと幅方向E2の長さとが入れ替えられた長さを有する。CPU3は、S26で、基準画像F1を時計回りに90度回転して、具体例5の第二印刷枠R5内に基準画像F1を配置して、第一印刷イメージF9を生成する(S26)。CPU3は、第二印刷枠R5に対し、時計回りに90度回転された基準画像F1を第三所定位置に配置して、図8の第一印刷イメージF9を生成する。本実施形態の第三所定位置は一例として、時計回りに90度回転された基準画像F1の第一印刷枠R1の第一基準V1が、第二印刷枠R4の第二基準V5と一致する位置である。第二基準V5は、第二印刷枠R5の左上角部である。 In the above embodiment, the processes from S26 to S29 may be changed as appropriate. As a specific example 5, a case will be described in which the length of the print frame R5 of thermal paper shown in FIG. 8 in the conveyance direction E1 is 102 mm, and the width direction E2 of the print frame R5 is 152 mm. The thermal paper printing frame R5 of the fifth specific example has a length in which the length of the printing frame R3 of the third specific example in the transport direction E1 and the length in the width direction E2 are swapped. In S26, the CPU 3 rotates the reference image F1 by 90 degrees clockwise, arranges the reference image F1 within the second print frame R5 of specific example 5, and generates the first print image F9 (S26). The CPU 3 arranges the reference image F1 rotated 90 degrees clockwise with respect to the second printing frame R5 at a third predetermined position, and generates the first print image F9 in FIG. 8 . The third predetermined position in this embodiment is, for example, a position where the first reference V1 of the first printing frame R1 of the reference image F1 rotated 90 degrees clockwise matches the second reference V5 of the second printing frame R4. It is. The second reference V5 is the upper left corner of the second printing frame R5.

具体例5の感熱紙の印刷枠R5は、具体例3の感熱紙の印刷枠R3の搬送方向E1の長さと幅方向E2の長さとが入れ替えられた長さを有するので、CPU3は、第二方法として、具体例3と同様に第二印刷イメージF4を生成後、90度回転した画像を設定する(S27)。CPU3は、S27で配置が設定された第二印刷イメージF10を生成する(S28)。CPU3は、S26で生成された第一印刷イメージF9と、S28で生成された第二印刷イメージF10とを含むプレビュー画面G6を表示部26に表示する(S25)。具体例2のプレビュー画面G6は、第一印刷イメージF9、第二印刷イメージF10、ラジオボタンJ3、J4、及びキーK6、K7を含む。ラジオボタンJ3は、第一印刷イメージF9が選択される場合に、選択される。ラジオボタンJ4は、第二印刷イメージF10が選択される場合に、選択される。変形例において、第一印刷イメージF9及び第二印刷イメージF10は何れも、第一印刷枠R1を第二印刷枠R5に合わせて回転する場合の第一印刷枠R1の回転角度に応じて回転されたオブジェクトが第二印刷枠R5に対して配置された回転画像である。 The thermal paper printing frame R5 of specific example 5 has a length in which the length in the transport direction E1 and the length in the width direction E2 of the thermal paper printing frame R3 in specific example 3 are swapped. As a method, after generating the second print image F4 as in Example 3, an image rotated by 90 degrees is set (S27). The CPU 3 generates a second print image F10 whose layout has been set in S27 (S28). The CPU 3 displays a preview screen G6 including the first print image F9 generated in S26 and the second print image F10 generated in S28 on the display unit 26 (S25). The preview screen G6 of the second specific example includes a first print image F9, a second print image F10, radio buttons J3 and J4, and keys K6 and K7. Radio button J3 is selected when first print image F9 is selected. Radio button J4 is selected when second print image F10 is selected. In the modified example, both the first print image F9 and the second print image F10 are rotated according to the rotation angle of the first print frame R1 when the first print frame R1 is rotated in accordance with the second print frame R5. This is a rotated image in which the object is placed with respect to the second print frame R5.

上記実施形態において、S26からS29の処理は、図9に示すように第二印刷枠R6内に、基準画像F1に対応する画像13が三つ含まれてもよい。具体例6として、感熱紙の印刷枠の搬送方向E1の長さが60mmの場合であり、印刷枠の幅方向E2が130mmの場合について説明する。この場合、CPU3は、基準画像F1に対応する基準画像F13を具体例6の第二印刷枠R6の長手方向及び短手方向のうちの一方の、一端側、他端側、及び中央の順に複数配置すればいい。図9の例では、CPU3は、第二印刷枠R6の長手方向である幅方向E2の、一端側、他端側、及び中央の順に三つ画像13を配置し、第二印刷イメージF11を生成する(S28)。基準画像F13は、オブジェクトB1に対応するオブジェクトB5、オブジェクトC5に対応するC5、オブジェクトD1に対応するオブジェクトD5を含む。基準画像F13は、第一印刷枠R1に対応する第一印刷枠R7の少なくとも一部を示す図形Z1からZ4を含む。図形Z1からZ4は各々第一印刷枠R7の左上角部、右上角部、右下角部、及び左下角部を表す図形である。 In the above embodiment, in the processing from S26 to S29, three images 13 corresponding to the reference image F1 may be included in the second print frame R6, as shown in FIG. As a specific example 6, a case will be described in which the length of the printing frame of thermal paper in the conveying direction E1 is 60 mm, and the width direction E2 of the printing frame is 130 mm. In this case, the CPU 3 prints a plurality of reference images F13 corresponding to the reference image F1 in the order of one end, the other end, and the center of the longitudinal direction and the transverse direction of the second printing frame R6 of the specific example 6. Just place it. In the example of FIG. 9, the CPU 3 arranges three images 13 in the order of one end side, the other end side, and the center in the width direction E2, which is the longitudinal direction of the second printing frame R6, and generates the second print image F11. (S28). The reference image F13 includes an object B5 corresponding to the object B1, an object C5 corresponding to the object C5, and an object D5 corresponding to the object D1. The reference image F13 includes graphics Z1 to Z4 indicating at least a portion of the first printing frame R7 corresponding to the first printing frame R1. Graphics Z1 to Z4 represent the upper left corner, upper right corner, lower right corner, and lower left corner of the first printing frame R7, respectively.

上記実施形態において、編集装置2、CPU3、プリンタ4、入力部25、表示部26、及び通信部28は各々、本発明の編集装置、制御部、プリンタ、入力部、表示部、及び通信部の一例である。S12の処理は、本発明の第一取得ステップの一例である。S13の処理は、本発明の第二取得ステップの一例である。S16、S17、S21からS29の処理は、本発明の表示制御ステップの一例である。S19、S32の処理は、本発明の送信制御ステップの一例である。 In the above embodiment, the editing device 2, CPU 3, printer 4, input section 25, display section 26, and communication section 28 are the editing device, control section, printer, input section, display section, and communication section of the present invention, respectively. This is an example. The process of S12 is an example of the first acquisition step of the present invention. The process of S13 is an example of the second acquisition step of the present invention. The processes of S16, S17, and S21 to S29 are examples of display control steps of the present invention. The processing in S19 and S32 is an example of the transmission control step of the present invention.

上記実施形態の編集装置2は、表示部26と、入力部25と、通信部28と、CPU3とを有する。CPU3は、第一印刷枠R1内に配置されたオブジェクトを表す基準画像F1を印刷するためのデータを取得する(S12)。CPU3は、プリンタ4に装着されている媒体に関する媒体情報を、通信部28を介してプリンタ4から取得する(S13)。CPU3は、媒体情報に対応する第二印刷枠が第一印刷枠R1と異なる場合に(S15:NO)、第二印刷枠に対してオブジェクトを第一方法で編集して配置した第一印刷イメージと、第一方法とは互いに異なる第二方法でオブジェクトを編集して配置した第二印刷イメージとを生成して表示部26に表示させる(S21からS29)。CPU3は、表示部26に表示された第一印刷イメージ及び第二印刷イメージのうち、入力部25を介して選択された印刷イメージを印刷するための選択印刷データを取得し、通信部28を介して選択印刷データをプリンタ4に送信する(S32)。このように、編集装置2は、第二印刷枠が第一印刷枠R1と異なる場合に(S15:NO)、第一印刷イメージと、第二印刷イメージとを自動的に生成して表示部26に表示する。編集装置2は、ユーザにより選択された印刷イメージを印刷するための選択印刷データを取得し、プリンタ4に送信する(S32)。第一印刷イメージ、第二印刷イメージの中に、所望の印刷イメージがあれば、ユーザは、データを再編集する必要が無い。故に、編集装置2は、第一印刷イメージと、第二印刷イメージとの中から一つの印刷イメージが選択不能な場合に比べ、データの再編集の手間を省くことに貢献する。 The editing device 2 of the above embodiment includes a display section 26, an input section 25, a communication section 28, and a CPU 3. The CPU 3 acquires data for printing the reference image F1 representing the object placed within the first printing frame R1 (S12). The CPU 3 acquires medium information regarding the medium installed in the printer 4 from the printer 4 via the communication unit 28 (S13). If the second print frame corresponding to the medium information is different from the first print frame R1 (S15: NO), the CPU 3 prints a first print image in which the object is edited and arranged in the first method with respect to the second print frame. and a second print image in which objects are edited and arranged using a second method that is different from the first method, and are displayed on the display unit 26 (S21 to S29). The CPU 3 acquires selected print data for printing the print image selected via the input unit 25 from among the first print image and the second print image displayed on the display unit 26 and prints the selected print data via the communication unit 28. The selected print data is sent to the printer 4 (S32). In this way, when the second print frame is different from the first print frame R1 (S15: NO), the editing device 2 automatically generates the first print image and the second print image and displays them on the display unit 26. to be displayed. The editing device 2 acquires selected print data for printing the print image selected by the user, and transmits it to the printer 4 (S32). If the desired print image is included in the first print image and the second print image, the user does not need to edit the data again. Therefore, the editing device 2 contributes to saving the effort of re-editing data compared to the case where one print image cannot be selected from the first print image and the second print image.

図8の変形例において、第一印刷イメージF9及び第二印刷イメージF10は、第一印刷枠R1の長手方向と、第二印刷枠の長手方向とが互いに異なる場合に、第一印刷枠R1を第二印刷枠R5に合わせて回転する場合の第一印刷枠R1の回転角度に応じて回転されたオブジェクトが第二印刷枠に対して配置された回転画像の印刷イメージである。編集装置2は、第一印刷枠R1の長手方向と、第二印刷枠の長手方向とが互いに異なる場合に(S21:NO)、第一印刷イメージF9及び第二印刷イメージF10を自動で生成できる。編集装置2は、第一印刷イメージF9及び第二印刷イメージF10を生成不能な場合に比べ、基準画像F1に近い印刷イメージを生成する可能性を高めることに貢献する。 In the modification of FIG. 8, the first printing image F9 and the second printing image F10 are different from each other when the longitudinal direction of the first printing frame R1 and the longitudinal direction of the second printing frame are different from each other. This is a print image of a rotated image in which an object rotated according to the rotation angle of the first printing frame R1 when rotated in accordance with the second printing frame R5 is arranged with respect to the second printing frame. The editing device 2 can automatically generate the first print image F9 and the second print image F10 when the longitudinal direction of the first printing frame R1 and the longitudinal direction of the second printing frame are different from each other (S21: NO). . The editing device 2 contributes to increasing the possibility of generating a print image close to the reference image F1 compared to a case where the first print image F9 and the second print image F10 cannot be generated.

図3に示す上記実施形態の具体例1において、CPU3は、第二印刷枠が第一印刷枠R1と同じである場合に(S15:YES)、基準画像F1の基準印刷イメージF2を含むプレビュー画面G2を表示部26に表示させる(S17)。編集装置2のユーザは、表示部26に表示された印刷イメージに基づき、事前に印刷結果を把握できる。 In specific example 1 of the embodiment shown in FIG. 3, when the second print frame is the same as the first print frame R1 (S15: YES), the CPU 3 displays a preview screen including the reference print image F2 of the reference image F1. G2 is displayed on the display section 26 (S17). The user of the editing device 2 can grasp the print result in advance based on the print image displayed on the display unit 26.

CPU3は、S11で入力部25を介して指示が検出されたことに応じて(S11:YES)、S21からS29の処理を実行する。編集装置2は、指示が検出されたことに応じて、ユーザが指定するタイミングで、第一印刷イメージと、第二印刷イメージとを表示部26に表示させる処理を実行させることができる。 In response to the instruction being detected via the input unit 25 in S11 (S11: YES), the CPU 3 executes the processes from S21 to S29. In response to the detection of the instruction, the editing device 2 can cause the display unit 26 to display the first print image and the second print image at a timing specified by the user.

上記実施形態の具体例2において、図5の第二印刷イメージF3は、第一印刷枠R1を第二印刷枠R2に合わせて縮小する場合の第一印刷枠R1の倍率に応じて縮小されたオブジェクトが第二印刷枠R2内に配置された倍率変更画像の印刷イメージである(S23、S24)。同様に具体例3において、図6の第二印刷イメージF4は、第一印刷枠R1を第二印刷枠R3に合わせて拡大する場合の第一印刷枠R1の倍率に応じて拡大されたオブジェクトが第二印刷枠R3内に配置された倍率変更画像の印刷イメージである(S23、S24)。このように編集装置2は、倍率変更画像の印刷イメージを表示部26に表示する。編集装置2は、ユーザが第二印刷枠に合わせてオブジェクトを拡大又は縮小して、データを編集し直す手間を省くことに貢献する。 In the second specific example of the above embodiment, the second print image F3 in FIG. 5 is reduced according to the magnification of the first print frame R1 when the first print frame R1 is reduced to match the second print frame R2. This is a print image of a magnification change image in which the object is placed within the second print frame R2 (S23, S24). Similarly, in specific example 3, the second print image F4 in FIG. This is a print image of a magnification change image placed within the second print frame R3 (S23, S24). In this way, the editing device 2 displays the print image of the magnification-changed image on the display unit 26. The editing device 2 contributes to saving the user the trouble of re-editing the data by enlarging or reducing the object to fit the second print frame.

上記実施形態の具体例2、3において、倍率変更画像は、基準画像F1のうちの第一基準V1からのオブジェクトB1、C1、D1までの変更前距離に倍率を乗じた変更後距離だけ、倍率変更画像のうちの、第一基準V1に対応する第二基準V2から離れた変更後位置に、倍率に応じた大きさのオブジェクトが配置された画像である。編集装置2は、第一印刷枠R1に対する第二印刷枠の大きさに応じて、基準画像F1を一律に拡大又は縮小して倍率変更画像を生成する場合に比べ、オブジェクトB1、C1、D1の情報を保持した倍率変更画像を生成しやすい。 In specific examples 2 and 3 of the above-described embodiment, the magnification-changed image has a magnification of only the post-change distance obtained by multiplying the pre-change distance from the first reference V1 of the reference image F1 to the objects B1, C1, and D1 by the magnification. This is an image in which an object having a size according to the magnification is placed at a changed position away from the second reference V2 corresponding to the first reference V1 in the changed image. Compared to the case where the reference image F1 is uniformly enlarged or reduced according to the size of the second printing frame relative to the first printing frame R1 to generate a magnification-changed image, the editing device 2 is configured to reduce the size of the objects B1, C1, and D1. It is easy to generate magnification-changed images that retain information.

上記実施形態の具体例2、3において、倍率変更画像は、オブジェクトが識別コードを含む場合に、倍率内で最大サイズになるように生成された識別コードを変更後位置に配置した画像である。識別コードの大きさは、バーコードリーダー等の読取装置で読取性を考慮して設定される必要がある。これに対し、編集装置2で実行された場合、編集装置2は、読取装置での読み取り可能な識別コードを含む倍率変更画像を生成することに貢献する。 In specific examples 2 and 3 of the above-described embodiments, when the object includes an identification code, the magnification-changed image is an image in which the identification code generated to have the maximum size within the magnification is placed at the changed position. The size of the identification code needs to be set in consideration of readability with a reading device such as a barcode reader. On the other hand, when executed by the editing device 2, the editing device 2 contributes to generating a magnification-changed image including an identification code readable by a reading device.

上記実施形態の具体例2において、図5の第一印刷イメージF6は、オブジェクトB1、C1、D1の大きさを変更せずに、第二印刷枠R2に対して基準画像F1を配置したサイズ同一画像の印刷イメージである。具体例3において、図6の第一印刷イメージF7は、オブジェクトB1、C1、D1の大きさを変更せずに、第二印刷枠R3に対して基準画像F1を配置したサイズ同一画像の印刷イメージである。編集装置2は、第一印刷イメージとして、サイズ同一画像を自動で生成できる。編集装置2は、サイズ同一画像を生成不能な場合に比べ、ユーザが意図する印刷イメージを生成する可能性を高めることに貢献する。 In the second specific example of the above embodiment, the first print image F6 in FIG. 5 has the same size as the reference image F1 arranged in the second print frame R2 without changing the sizes of the objects B1, C1, and D1. This is a printed image of the image. In specific example 3, the first print image F7 in FIG. 6 is a print image of the same size image in which the reference image F1 is placed in the second print frame R3 without changing the sizes of the objects B1, C1, and D1. It is. The editing device 2 can automatically generate an image of the same size as the first print image. The editing device 2 contributes to increasing the possibility of generating a print image that the user intends, compared to a case where images of the same size cannot be generated.

図9の変形例の第二印刷イメージF11は、オブジェクトB5、C5、D5に対する第一印刷枠R7の少なくとも一部を示す図形Z1からZ4を含む。編集装置2は、ユーザが図形Z1からZ4を目印として、印刷後の感熱紙を切断することで、第一印刷枠R7内に基準画像F13を印刷した場合と同様な印刷結果を得ることに貢献する。 The second print image F11 in the modified example of FIG. 9 includes graphics Z1 to Z4 that represent at least a portion of the first print frame R7 for objects B5, C5, and D5. The editing device 2 helps the user to cut the printed thermal paper using the shapes Z1 to Z4 as marks, thereby obtaining the same print result as when the reference image F13 is printed within the first print frame R7. do.

図9の変形例の第二印刷イメージF11は、第二印刷枠R6内に、拡大又は縮小された基準画像F1及び基準画像F1の何れかが、第二印刷枠の長手方向及び短手方向のうちの一方の、一端側、他端側、及び中央の順に複数配置された複数画像の印刷イメージである。編集装置2は、所定の規則に従って、複数の画像13を自動で第二印刷枠R6内に配置できる。編集装置2は、ユーザが、複数の基準画像F13を第二印刷枠R6内に配置する手間を省くことができる。CPU3は、同一の画像を複数印刷する場合、又は同じレイアウトで連番の数字を印刷する場合等に、印刷媒体の内の印刷されない部分を有効活用できる。 In the second printing image F11 of the modified example of FIG. 9, either the enlarged or reduced reference image F1 or the reference image F1 is placed within the second printing frame R6 in the longitudinal direction and the lateral direction of the second printing frame. This is a print image of a plurality of images arranged in the order of one end, the other end, and the center. The editing device 2 can automatically arrange the plurality of images 13 within the second print frame R6 according to predetermined rules. The editing device 2 can save the user the trouble of arranging the plurality of reference images F13 within the second print frame R6. The CPU 3 can effectively utilize the unprinted portion of the print medium when printing multiple identical images or when printing serial numbers in the same layout.

本発明の編集プログラムは、上記した実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更が加えられてもよい。例えば、以下の変形が適宜加えられてもよい。 The editing program of the present invention is not limited to the embodiments described above, and various changes may be made without departing from the gist of the present invention. For example, the following modifications may be added as appropriate.

本発明は種々の態様で実行可能であり、例えば、編集プログラムを記憶した非一時的コンピュータ可読媒体、編集装置、編集方法、並びに、編集装置及びプリンタを備える印刷システム等の形態で実現されてもよい。 The present invention can be implemented in various ways, such as a non-transitory computer readable medium storing an editing program, an editing device, an editing method, and a printing system including an editing device and a printer. good.

(A)編集装置2及び編集装置2が通信可能なプリンタ4の構成は適宜変更されてよい。編集装置2は、スマートフォン、携帯端末等であってもよい。編集装置2の表示部26は、画像を表示可能であればよく、例えば、有機ELディスプレイ、プラズマディスプレイ、プラズマチューブアレイディスプレイ、電気泳動等を利用した電子ペーパーディスプレイ等でもよい。編集装置2の入力部25は、キーボード、マウスの他、タッチスクリーン及びジョイスティック等でもよい。通信部28は、プリンタ4と有線で接続してもよいし、無線で接続してもよい。プリンタ4は、切断部50を備えなくてもよい。印刷ヘッド48は、インクジェットヘッド等のサーマルヘッド以外の構成でもよい。 (A) The configuration of the editing device 2 and the printer 4 with which the editing device 2 can communicate may be changed as appropriate. The editing device 2 may be a smartphone, a mobile terminal, or the like. The display unit 26 of the editing device 2 only needs to be capable of displaying images, and may be, for example, an organic EL display, a plasma display, a plasma tube array display, an electronic paper display using electrophoresis, or the like. The input unit 25 of the editing device 2 may be a keyboard, a mouse, a touch screen, a joystick, or the like. The communication unit 28 may be connected to the printer 4 by wire or wirelessly. The printer 4 does not need to include the cutting section 50. The print head 48 may have a configuration other than a thermal head such as an inkjet head.

(B)図2のメイン処理を実行させるための指令を含むプログラムは、編集装置2が有するCPU3が、プログラムを実行するまでに、記憶部24に記憶されればよい。したがって、プログラムの取得方法、取得経路及びプログラムを記憶する機器の各々は、適宜変更してもよい。各装置が実行するプログラムは、ケーブル又は無線通信を介して、他の装置から受信し、記憶部等の記憶装置に記憶されてもよい。他の装置は、例えば、PC、及びネットワーク網を介して接続されるサーバを含む。 (B) The program including the instructions for executing the main process shown in FIG. 2 may be stored in the storage unit 24 before the CPU 3 of the editing device 2 executes the program. Therefore, each of the program acquisition method, acquisition route, and device that stores the program may be changed as appropriate. The program executed by each device may be received from another device via a cable or wireless communication, and may be stored in a storage device such as a storage unit. Other devices include, for example, a PC and a server connected via a network.

(C)メイン処理の各ステップは、CPU3によって実行される例に限定されず、一部又は全部が他の電子機器(例えば、ASIC)によって実行されてもよい。メイン処理の各ステップは、複数の電子機器(例えば、複数のCPU)によって分散処理されてもよい。メイン処理の各ステップは、必要に応じて順序の変更、ステップの省略、及び追加が可能である。メイン処理に、以下の変更が適宜加えられてもよい。 (C) Each step of the main process is not limited to the example executed by the CPU 3, and may be partially or entirely executed by another electronic device (for example, ASIC). Each step of the main processing may be distributed and processed by multiple electronic devices (eg, multiple CPUs). The order of each step of the main processing can be changed, steps can be omitted, and additions can be made as necessary. The following changes may be made to the main process as appropriate.

媒体はプリンタ4の構成に応じて適宜変更されてよく、ファンフォール紙等であってもよい。印刷枠の形状は、矩形に限定されず、媒体に応じて適宜変更されてよい。編集画面の構成は適宜変更されてよい。編集画面はプレビュー画像を表示部26に表示させるためのキーを備え、CPU3は当該キーの選択が検出されたことに応じて、S21からS29のプレビュー画像を表示部26に表示させてもよい。第一印刷枠R1と、第二印刷枠とが一致しない場合に表示されるプレビュー画面には、第一印刷イメージと、第二印刷イメージに加え、第一方法及び第二方法とは互いに異なる第三方法でオブジェクトを編集して配置した第三印刷イメージを含んでいてもよい。プレビュー画面内の第一印刷イメージと第二印刷イメージとのレイアウトは適宜変更されてもよい。 The medium may be changed as appropriate depending on the configuration of the printer 4, and may be fanfold paper or the like. The shape of the print frame is not limited to a rectangle, and may be changed as appropriate depending on the medium. The configuration of the editing screen may be changed as appropriate. The editing screen includes a key for displaying a preview image on the display section 26, and the CPU 3 may display the preview images from S21 to S29 on the display section 26 in response to detection of selection of the key. In addition to the first print image and the second print image, the preview screen that is displayed when the first print frame R1 and the second print frame do not match each other includes the first print image and the second print image that are different from each other. It may also include a third print image in which objects are edited and arranged in three ways. The layout of the first print image and the second print image within the preview screen may be changed as appropriate.

第一方法及び第二方法は各々、上記実施形態及び変形例で説明した方法に限定されず、適宜変更されてよい。第一基準及び第二基準は、第一方法と、第二方法とで互いに異なってもよい。CPU3は、第一基準及び第二基準のみが異なる方法を第一方法及び第二方法として採用してもよい。第二方法において、回転画像の第一印刷イメージを生成する場合、回転方向は、時計回りに90度であってもよいし、反時計回りに90度であってもよい。第一方法及び第二方法の少なくとも何れかは、ユーザが指定した方法であってもよい。倍率変更画像の第二印刷イメージを生成する場合、CPU3は、式(1)で算出された搬送方向E1の倍率と、式(2)で算出された幅方向E2の倍率の何れかを用いて、基準画像F1を搬送方向E1及び幅方向E2に拡大又縮小してもよい。CPU3は、識別コード等のオブジェクトの種類に依らず、すべてのオブジェクトを同一の編集方法を適用してもよい。図9の変形例において、図形Z1からZ4の少なくとも何れかは省略されてもよいし、第一印刷枠R7の一部であれば他の形状の図形でもよい。また、CPU3は、他の具体例(例えば、具体例4における図7の第一印刷イメージF8や第二印刷イメージF5)において、第一印刷枠に対応する位置に図形Z1からZ4を含ませてもよい。基準画像に含まれるオブジェクトの種類及び数は適宜変更されてよい。上記変形例は矛盾の内範囲で適宜組み合わされてもよい。 The first method and the second method are not limited to the methods described in the above embodiments and modified examples, and may be modified as appropriate. The first criterion and the second criterion may be different between the first method and the second method. The CPU 3 may employ methods that differ only in the first and second criteria as the first method and the second method. In the second method, when generating the first print image of the rotated image, the rotation direction may be 90 degrees clockwise or 90 degrees counterclockwise. At least one of the first method and the second method may be a method designated by the user. When generating the second print image of the magnification-changed image, the CPU 3 uses either the magnification in the transport direction E1 calculated by formula (1) or the magnification in the width direction E2 calculated by formula (2). , the reference image F1 may be enlarged or reduced in the transport direction E1 and the width direction E2. The CPU 3 may apply the same editing method to all objects, regardless of the type of object such as the identification code. In the modification of FIG. 9, at least one of the figures Z1 to Z4 may be omitted, or a figure of another shape may be used as long as it is part of the first printing frame R7. Further, in other specific examples (for example, the first print image F8 and the second print image F5 in FIG. 7 in specific example 4), the CPU 3 includes graphics Z1 to Z4 at the position corresponding to the first print frame. Good too. The type and number of objects included in the reference image may be changed as appropriate. The above modifications may be combined as appropriate within the scope of contradiction.

2:編集装置、3:CPU、4:プリンタ、25:入力部、26:表示部、28:通信部 2: Editing device, 3: CPU, 4: Printer, 25: Input section, 26: Display section, 28: Communication section

Claims (10)

表示部と、入力部と、通信部と、制御部とを有する編集装置の前記制御部に、
第一印刷枠内に配置されたオブジェクトを表す基準画像を印刷するためのデータを取得する第一取得ステップと
プリンタに装着されている媒体に関する媒体情報を、前記通信部を介して前記プリンタから取得する第二取得ステップと、
前記媒体情報に対応する第二印刷枠が前記第一印刷枠と異なる場合に、前記第二印刷枠に対して前記オブジェクトを第一方法で編集して配置した第一印刷イメージと、前記第一方法とは互いに異なる第二方法で前記オブジェクトを編集して配置した第二印刷イメージとを生成して前記表示部に表示させる表示制御ステップと、
前記表示部に表示された前記第一印刷イメージ及び前記第二印刷イメージのうち、前記入力部を介して選択された印刷イメージを印刷するための選択印刷データを取得し、前記通信部を介して前記選択印刷データを前記プリンタに送信する送信制御ステップと
を実行させるための編集プログラム。
The control section of the editing device includes a display section, an input section, a communication section, and a control section,
a first acquisition step of acquiring data for printing a reference image representing an object placed within a first print frame; and acquiring medium information regarding a medium installed in the printer from the printer via the communication unit. a second acquisition step to
If the second print frame corresponding to the medium information is different from the first print frame, a first print image in which the object is edited and arranged in the first method with respect to the second print frame; a display control step of generating a second print image in which the object is edited and arranged using a second method different from the first method, and displaying the second print image on the display unit;
Obtaining selected print data for printing a print image selected through the input unit among the first print image and the second print image displayed on the display unit, and transmitting the selected print data through the communication unit. an editing program for causing execution of a transmission control step of transmitting the selected print data to the printer;
前記第二印刷イメージは、前記第一印刷枠の長手方向と、前記第二印刷枠の長手方向とが互いに異なる場合に、前記第一印刷枠を前記第二印刷枠に合わせて回転する場合の前記第一印刷枠の回転角度に応じて回転された前記オブジェクトが前記第二印刷枠に対して配置された回転画像の印刷イメージであることを特徴とする請求項1に記載の編集プログラム。 The second printing image is generated when the first printing frame is rotated in accordance with the second printing frame when the longitudinal direction of the first printing frame and the longitudinal direction of the second printing frame are different from each other. 2. The editing program according to claim 1, wherein the object rotated according to the rotation angle of the first printing frame is a printed image of a rotated image placed with respect to the second printing frame. 前記表示制御ステップで、前記制御部に、前記第二印刷枠が前記第一印刷枠と同じである場合に、前記基準画像の基準印刷イメージを前記表示部に表示させることを特徴とする請求項1に記載の編集プログラム。 2. The display control step causes the control unit to display a reference print image of the reference image on the display unit when the second print frame is the same as the first print frame. The editing program described in 1. 前記表示制御ステップは、前記入力部を介して指示が検出されたことに応じて実行されることを特徴とする請求項1に記載の編集プログラム。 The editing program according to claim 1, wherein the display control step is executed in response to an instruction being detected via the input unit. 前記第二印刷イメージは、前記第一印刷枠を前記第二印刷枠に合わせて拡大又は縮小する場合の前記第一印刷枠の倍率に応じて拡大又は縮小された前記オブジェクトが前記第二印刷枠内に配置された倍率変更画像の印刷イメージであることを特徴とする請求項1に記載の編集プログラム。 In the second print image, when the first print frame is enlarged or reduced according to the second print frame, the object is enlarged or reduced according to the magnification of the first print frame in the second print frame. 2. The editing program according to claim 1, wherein the editing program is a print image of a magnification-changed image placed within the image. 前記倍率変更画像は、前記基準画像のうちの第一基準からの前記オブジェクトまでの変更前距離に前記倍率を乗じた変更後距離だけ、前記倍率変更画像のうちの、前記第一基準に対応する第二基準から離れた変更後位置に、前記倍率に応じた大きさの前記オブジェクトが配置された画像であることを特徴とする請求項5に記載の編集プログラム。 The magnification-changed image corresponds to the first standard of the magnification-changed images by a post-change distance obtained by multiplying the pre-change distance from the first standard of the reference images to the object by the magnification. 6. The editing program according to claim 5, wherein the image is an image in which the object having a size corresponding to the magnification is placed at a changed position away from the second reference. 前記倍率変更画像は、前記オブジェクトが識別コードを含む場合に、前記倍率内で最大サイズになるように生成された前記識別コードを前記変更後位置に配置した画像であることを特徴とする請求項6に記載の編集プログラム。 2. The magnification-changed image is an image in which, when the object includes an identification code, the identification code generated to have a maximum size within the magnification is placed at the changed position. The editing program described in 6. 前記第一印刷イメージは、前記オブジェクトの大きさを変更せずに、前記第二印刷枠に対して前記基準画像を配置したサイズ同一画像の印刷イメージであることを特徴とする請求項1に記載の編集プログラム。 2. The first print image is a print image of the same size in which the reference image is arranged with respect to the second print frame without changing the size of the object. editing program. 前記サイズ同一画像は、前記オブジェクトに対する前記第一印刷枠の少なくとも一部を示す図形を含むことを特徴とする請求項8に記載の編集プログラム。 9. The editing program according to claim 8, wherein the same-sized image includes a graphic representing at least a part of the first printing frame for the object. 前記第二印刷イメージは、前記第二印刷枠内に、拡大又は縮小された前記基準画像及び前記基準画像の何れかが、前記第二印刷枠の長手方向及び短手方向のうちの一方の、一端側、他端側、及び中央の順に複数配置された複数画像の印刷イメージであることを特徴とする請求項1に記載の編集プログラム。 The second print image is such that either the enlarged or reduced reference image or the reference image is placed within the second print frame in one of the longitudinal direction and the transverse direction of the second print frame. The editing program according to claim 1, wherein the editing program is a print image of a plurality of images arranged in the order of one end side, the other end side, and the center.
JP2022136940A 2022-08-30 2022-08-30 editing program Pending JP2024033394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022136940A JP2024033394A (en) 2022-08-30 2022-08-30 editing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022136940A JP2024033394A (en) 2022-08-30 2022-08-30 editing program

Publications (1)

Publication Number Publication Date
JP2024033394A true JP2024033394A (en) 2024-03-13

Family

ID=90193362

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022136940A Pending JP2024033394A (en) 2022-08-30 2022-08-30 editing program

Country Status (1)

Country Link
JP (1) JP2024033394A (en)

Similar Documents

Publication Publication Date Title
JP2013015949A (en) Display device, portable terminal, control method of display device and program
US20120206736A1 (en) Printer that prints with increased visibility, printing method and storage medium
JP2024033394A (en) editing program
JPH05305748A (en) Printer
JP2019016015A (en) Display controller, printer, control method of display controller and program thereof
CN101544133B (en) Print data generation apparatus and method for generating print data
JP2009298036A (en) Thermal printer, method for determining printing speed and program for determining printing speed
JP2016119015A (en) Print data creation program and print data creation device
US11144264B2 (en) Non-transitory computer-readable recording medium storing instructions for receiving an edit instruction and a print instruction for a template image
JP4407340B2 (en) Tape printer
JP2005103929A (en) Apparatus for forming small printed matter, method for forming small printed matter and program for forming small printed matter
US9740969B2 (en) Printer device
JP6682865B2 (en) Printing apparatus and printing apparatus control method
JPH05334296A (en) Document processor
JP2005138556A (en) Printing apparatus and printing method
JP3095046B2 (en) Dot pattern data creation device for registration of tape printer
JPH05185654A (en) Tape printing apparatus
JPH06198962A (en) Preparing device for registration dot pattern data of tape printer
US10708453B2 (en) Display apparatus, non-transitory storage medium storing instructions readable by the display apparatus, method of displaying print image on display of the display apparatus
JP3632214B2 (en) Bar code input device and bar code input method
JP2002254715A (en) Printer for tape-like printing medium
JP4661660B2 (en) Printing apparatus and printing method
JPH07285244A (en) Printing device
JP2021163075A (en) Editing device, printing system, and editing method
JPH0752496A (en) Printer