Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5920187B2 - Operation area creation device - Google Patents
[go: Go Back, main page]

JP5920187B2 - Operation area creation device - Google Patents

Operation area creation device Download PDF

Info

Publication number
JP5920187B2
JP5920187B2 JP2012256163A JP2012256163A JP5920187B2 JP 5920187 B2 JP5920187 B2 JP 5920187B2 JP 2012256163 A JP2012256163 A JP 2012256163A JP 2012256163 A JP2012256163 A JP 2012256163A JP 5920187 B2 JP5920187 B2 JP 5920187B2
Authority
JP
Japan
Prior art keywords
instruction
area
instruction type
type
assigned
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
JP2012256163A
Other languages
Japanese (ja)
Other versions
JP2014102793A (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 JP2012256163A priority Critical patent/JP5920187B2/en
Publication of JP2014102793A publication Critical patent/JP2014102793A/en
Application granted granted Critical
Publication of JP5920187B2 publication Critical patent/JP5920187B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Description

本発明は、操作領域と操作領域が操作された場合の指示とを対応付ける操作領域作成装置に関する。   The present invention relates to an operation region creation device that associates an operation region with an instruction when the operation region is operated.

従来、データと操作キーとを対応付ける装置が知られている。例えば、特許文献1に記載のデータ作成装置は、データ作成部で作成されたデータ(外字データ、データベース、テンプレートデータ等の種々のデータ)に、印刷装置の少なくともいずれか1つの選択キーを特定する情報(以下、割当情報という。)を割り当てる。データ作成装置は、割当情報が割り当てられたデータを印刷装置に転送する。印刷装置は、データをデータ格納部に格納し、割当情報を割当情報格納部に格納する。印刷装置の選択キーが操作されると、データ読み出し部によって、割当情報格納部に格納された割当情報のうち、操作された選択キーに対応する割当情報が把握される。そして、割当情報に関連付けられたデータが読み出される。印刷装置は、データ読み出し部によって読み出されたデータと、印刷装置において編集したデータとを合成して印刷することができる。   Conventionally, an apparatus that associates data with operation keys is known. For example, the data creation device described in Patent Literature 1 identifies at least one selection key of the printing device in the data created by the data creation unit (various data such as external character data, database, template data, etc.). Information (hereinafter referred to as allocation information) is allocated. The data creation device transfers the data to which the assignment information is assigned to the printing device. The printing apparatus stores data in the data storage unit and stores allocation information in the allocation information storage unit. When the selection key of the printing apparatus is operated, the data reading unit grasps the allocation information corresponding to the operated selection key among the allocation information stored in the allocation information storage unit. Then, data associated with the allocation information is read out. The printing apparatus can synthesize and print the data read by the data reading unit and the data edited by the printing apparatus.

特開2004−157912号公報JP 2004-157912 A

しかしながら、例えば、従来の印刷装置が10個の選択キーを備えている場合に、2つのデータが、2つの選択キーに割り当てられた場合、他の8個の選択キーには、データが割り当てられない。よって、8個の選択キーを操作しても印字等の処理は実行されない。このように、処理が行われない選択キーが存在することとなり、選択キーが配置されている領域を有効活用することができない場合があった。   However, for example, when a conventional printing apparatus has 10 selection keys, if two data are assigned to two selection keys, data is assigned to the other eight selection keys. Absent. Therefore, even if the eight selection keys are operated, processing such as printing is not executed. As described above, there are selection keys that are not processed, and there are cases where the area where the selection keys are arranged cannot be used effectively.

本発明の目的は、ユーザが操作することが可能な操作領域を有効活用することが可能な操作領域作成装置を提供することである。   An object of the present invention is to provide an operation area creation device that can effectively utilize an operation area that can be operated by a user.

本発明に係る操作領域作成装置は、操作領域に割り当てる指示の種類ごとに1又は複数指定される前記指示の種類を取得する指示種類取得手段と、前記指示種類取得手段によって取得された前記指示の種類ごとの数に応じた面積で、前記操作領域の全体を前記指示の種類ごとに分割した分割領域を設定する分割手段と、前記分割手段によって分割された前記分割領域が操作された場合に前記指示の種類に対応する処理を行う処理実行手段とを備えている。この場合、種類取得手段によって取得された指示の種類ごとの数に応じた面積で、操作領域の全体を指示の種類ごとに分割することができる。操作領域全体を分割領域に分割することができるので、操作領域全体を有効活用することができる。   The operation area creation device according to the present invention includes an instruction type acquisition unit that acquires one or more specified instruction types for each instruction type assigned to the operation area, and the instruction type acquired by the instruction type acquisition unit. A dividing unit that sets a divided region obtained by dividing the entire operation region for each type of instruction with an area corresponding to the number for each type, and when the divided region divided by the dividing unit is operated Processing execution means for performing processing corresponding to the type of instruction. In this case, the entire operation region can be divided for each type of instruction with an area corresponding to the number of each type of instruction acquired by the type acquisition unit. Since the entire operation area can be divided into divided areas, the entire operation area can be used effectively.

前記操作領域作成装置において、前記分割手段は、前記操作領域内で前記分割領域の配置位置を決定する配置手段を備えてもよい。この場合、配置手段によって決定された配置位置に分割領域を配置することができる。   In the operation area creating apparatus, the dividing unit may include an arrangement unit that determines an arrangement position of the divided area in the operation area. In this case, the divided areas can be arranged at the arrangement positions determined by the arrangement means.

前記操作領域作成装置において、前記配置手段は、前記指示種類取得手段によって取得された前記指示の種類ごとに1又は複数指定される前記指示の種類の合計の数から、前記合計の数に応じた複数の前記配置位置を決定する配置位置決定手段と、前記配置位置決定手段によって決定された前記複数の配置位置に、前記指示種類取得手段によって取得された前記指示の種類を割り当てる割当手段と、前記割当手段によって前記指示の種類が割り当てられた場合に、隣接する前記配置位置に同一の前記指示の種類が割り当てられたか否かを判断する隣接判断手段と、前記隣接判断手段によって隣接する配置位置に同一の前記指示の種類が割り当てられたと判断された場合に、同一の前記指示の種類が割り当てられた前記配置位置同士を繋げて1つの前記分割領域として決定する接続手段とを備えてもよい。この場合、接続手段によって配置位置が繋げられて分割領域が設定されるため、ユーザが分割領域を操作して正常に指示を入力できる面積が大きくなる。一方、同一の指示の種類が割当手段によって割り当てられても、隣接しなければ、接続手段によって繋げられない。このように、隣接させて繋げる場合と、隣接させずに別個の領域とする場合とを使い分けることができる。   In the operation area creation device, the arrangement unit is configured to respond to the total number from the total number of the instruction types specified by one or a plurality of the instruction types acquired by the instruction type acquisition unit. A plurality of arrangement position determining means for determining the plurality of arrangement positions; an assigning means for assigning the instruction type acquired by the instruction type acquiring means to the plurality of arrangement positions determined by the arrangement position determining means; When the instruction type is assigned by the assigning means, an adjacency determining means for determining whether or not the same instruction type is assigned to the adjacent arrangement position, and an adjoining arrangement position by the adjacency determining means. When it is determined that the same instruction type is assigned, the arrangement positions to which the same instruction type is assigned are connected to each other. And connection means for the determining, as the divided areas may be provided. In this case, the arrangement positions are connected by the connecting means and the divided areas are set, so that an area where the user can normally input an instruction by operating the divided areas is increased. On the other hand, even if the same instruction type is assigned by the assigning unit, it is not connected by the connecting unit unless it is adjacent. Thus, the case where it connects adjacently and the case where it makes it a separate area | region without adjoining can be used properly.

前記操作領域作成装置において、前記指示種類取得手段は、印字媒体上のキャラクタの印字位置が設定されたデータであるテンプレートデータであって前記指示の種類ごとに異なるテンプレートデータを取得することで、前記指示の種類ごとに1又は複数指定される前記指示の種類を取得してもよい。この場合、ユーザは、テンプレートデータの数を指示の種類ごとに調整することで、繋げられる配置位置の数を調整することができる。   In the operation area creation device, the instruction type acquisition means acquires template data that is template data that is data in which a print position of a character on a print medium is set, and that is different for each instruction type. You may acquire the said kind of instruction | indication designated one or more for every kind of instruction | indication. In this case, the user can adjust the number of arrangement positions to be connected by adjusting the number of template data for each type of instruction.

前記操作領域作成装置において、前記指示種類取得手段は、印字媒体上のキャラクタの印字位置が設定されたデータであるテンプレートデータの前記印字位置に配置する前記キャラクタであって前記指示の種類ごとに異なる前記キャラクタが登録されたデータベースを取得することで、前記指示の種類ごとに1又は複数指定される前記指示の種類を取得してもよい。この場合、ユーザは、データベースに登録するキャラクタの数を指示の種類ごとに調整することで、繋げられる配置位置の数を調整することができる。   In the operation area creation device, the instruction type acquisition means is the character arranged at the print position of the template data that is data in which the print position of the character on the print medium is set, and is different for each type of the instruction. By acquiring a database in which the character is registered, one or more types of instructions specified for each type of instruction may be acquired. In this case, the user can adjust the number of arrangement positions to be connected by adjusting the number of characters registered in the database for each type of instruction.

前記操作領域作成装置において、前記指示種類取得手段は、前記指示の種類の指定が入力される操作を検出することで、前記指示の種類ごとに1又は複数指定される前記指示の種類を取得してもよい。この場合、ユーザは、指示の種類の指定する操作の回数を調整することで、繋げられる配置位置の数を調整することができる。   In the operation area creation device, the instruction type acquisition unit acquires an instruction type specified by one or more for each instruction type by detecting an operation in which the specification of the instruction type is input. May be. In this case, the user can adjust the number of arrangement positions to be connected by adjusting the number of operations specified by the type of instruction.

印字システム1を示す図である。1 is a diagram illustrating a printing system 1. FIG. 印字システム1の電気的構成を示す図である。1 is a diagram illustrating an electrical configuration of a printing system 1. FIG. 第一実施形態でテンプレートデータ8に基づいて印字が行われる様子を示す図である。It is a figure which shows a mode that printing is performed based on the template data 8 in 1st embodiment. 座標データテーブル91のデータ構成図である。It is a data block diagram of the coordinate data table 91. テンプレートデータリスト92のデータ構成図である。It is a data block diagram of the template data list 92. メイン処理のフローチャートである。It is a flowchart of a main process. 領域リスト93のデータ構成図である。7 is a data configuration diagram of an area list 93. FIG. 領域分割処理のフローチャートである。It is a flowchart of an area | region division process. 領域データテーブル94のデータ構成の変化を示す図である。It is a figure which shows the change of the data structure of the area | region data table 94. FIG. 第二実施形態で印字が行われる様子を示す図である。It is a figure which shows a mode that printing is performed by 2nd embodiment. データベース95のデータ構成図である。It is a data block diagram of the database 95. FIG. 領域リスト96のデータ構成図である。6 is a data configuration diagram of an area list 96. FIG. 領域データテーブル97のデータ構成の変化を示す図である。It is a figure which shows the change of the data structure of the area | region data table 97. FIG.

以下、本発明を具体化した実施形態について図面を参照して説明する。まず、図1を参照して、印字システム1の構成について説明する。なお、以下の説明では、テンプレートデータ80〜82等(図3及び図10参照)について説明するが、それらを総称する場合、又はいずれかを特定しない場合、「テンプレートデータ8」という。また、シート61,62(図3及び図10参照)について説明するが、シート61,62を総称する場合、又はいずれかを特定しない場合、「シート6」という。また、分割領域751,752,753,754,755(図3及び図10参照)について説明するが、分割領域751〜755を総称する場合、又はいずれかを特定しない場合「分割領域75」という。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, embodiments of the invention will be described with reference to the drawings. First, the configuration of the printing system 1 will be described with reference to FIG. In the following description, template data 80 to 82 and the like (see FIG. 3 and FIG. 10) will be described. However, when they are collectively referred to or not specified, they are referred to as “template data 8”. Although the sheets 61 and 62 (see FIGS. 3 and 10) will be described, the sheets 61 and 62 are collectively referred to as “sheet 6” when the sheets 61 and 62 are collectively referred to or not specified. Further, the divided areas 751, 752, 753, 754, and 755 (see FIG. 3 and FIG. 10) will be described.

本実施形態では、一例として、印字システム1は、小売等の店舗に設置され、商品の値札等を印字するためのシステムであるとする。印字システム1は、入力装置2及びパーソナルコンピュータ3(以下、PC3という。)を備えている。種々のデータをPC3から入力装置2に転送する場合、入力装置2は、PC3と接続される。   In this embodiment, as an example, it is assumed that the printing system 1 is a system that is installed in a store such as a retail store and prints a price tag of a product. The printing system 1 includes an input device 2 and a personal computer 3 (hereinafter referred to as PC 3). When various data is transferred from the PC 3 to the input device 2, the input device 2 is connected to the PC 3.

入力装置2は、キャラクタ(文字、数字、及び記号等)を印字する印字装置の機能を備える。入力装置2の内部には、テープ状の印字媒体50が巻回されたテープロール(図示外)が設置される。入力装置2が印字を実行する際には、該テープロールから印字媒体50が引き出されて、印字媒体50に対して印字が行われる。そして、印字された印字媒体50が切断され、外部に排出される。   The input device 2 has a printing device function for printing characters (letters, numbers, symbols, and the like). Inside the input device 2, a tape roll (not shown) around which a tape-like print medium 50 is wound is installed. When the input device 2 performs printing, the printing medium 50 is pulled out from the tape roll, and printing is performed on the printing medium 50. Then, the printed print medium 50 is cut and discharged to the outside.

入力装置2は、上面にタッチパッド207を備える。なお、タッチパッド207の下にはディスプレイは設けられていない。タッチパッド207の上側には、シート6(図3及び図10参照)が交換可能に配置される。シート6はタッチパッド207の平面視の形状と同じ形状に形成されている。また、タッチパッド207の周囲には、タッチパッド207より上方に突出する壁部219が設けられている。シート6がタッチパッド207の上側に配置される場合には、壁部219の内側に配置される。タッチパッド207の後方には、ディスプレイ216が設けられている。ディスプレイ216には、種々の情報が表示される。   The input device 2 includes a touch pad 207 on the upper surface. Note that no display is provided under the touch pad 207. On the upper side of the touch pad 207, the sheet 6 (see FIGS. 3 and 10) is disposed so as to be replaceable. The sheet 6 is formed in the same shape as the plan view of the touch pad 207. In addition, a wall portion 219 that protrudes upward from the touch pad 207 is provided around the touch pad 207. When the sheet 6 is disposed on the upper side of the touch pad 207, the sheet 6 is disposed on the inner side of the wall portion 219. A display 216 is provided behind the touch pad 207. Various information is displayed on the display 216.

図3を参照し、タッチパッド207の操作キー7及びシート6について説明する。図3の上側、下側、右側、左側を、シート6の上側、下側、右側、左側と定義して説明する。図3は、タッチパッド207の上側にシート6が配置された状態を示している。シート6には、種々のキー5が印刷によって描かれている。タッチパッド207には、所定の範囲で複数の操作キー7が設定されている。キー5は、タッチパッド207の操作キー7に対応して印刷によってシート6に描かれている。より詳細には、キー5は、タッチパッド207の操作キー7の機能に対応する模様が描かれたものである。ユーザは、シート6に描かれたキー5を押下することで、操作キー7を操作することができる。入力装置2のCPU201(図2参照)は、操作キー7が操作されたことを検出する。   With reference to FIG. 3, the operation key 7 and the sheet 6 of the touch pad 207 will be described. The upper side, the lower side, the right side, and the left side in FIG. FIG. 3 shows a state in which the sheet 6 is disposed on the upper side of the touch pad 207. Various keys 5 are drawn on the sheet 6 by printing. A plurality of operation keys 7 are set on the touch pad 207 within a predetermined range. The key 5 is drawn on the sheet 6 by printing corresponding to the operation key 7 of the touch pad 207. More specifically, the key 5 is drawn with a pattern corresponding to the function of the operation key 7 of the touch pad 207. The user can operate the operation key 7 by pressing the key 5 drawn on the sheet 6. The CPU 201 (see FIG. 2) of the input device 2 detects that the operation key 7 has been operated.

操作キー7は、カーソルキー71、OKキー74、ESCキー73、機能設定キー72、及び分割領域75を含む。カーソルキー71は、タッチパッド207の上部中央に設けられている。カーソルキー71は、上キー711、下キー712、右キー713、左キー714を含む。機能設定キー72は、カーソルキー71の左側に設けられている。機能設定キー72は、種々の機能を設定するための機能の選択画面をディスプレイ216に表示するためのキーである。ESCキー73は、機能設定キー72の下側に設けられている。ESCキー73は、一つ前の画面に戻ったり選択したものをキャンセルしたりするキーであるである。OKキー74は、カーソルキー71の右側に設けられている。OKキー74は、印字の実行や、選択された機能の選択等を行う場合に操作されるキーである。   The operation key 7 includes a cursor key 71, an OK key 74, an ESC key 73, a function setting key 72, and a divided area 75. The cursor key 71 is provided at the upper center of the touch pad 207. The cursor key 71 includes an up key 711, a down key 712, a right key 713, and a left key 714. The function setting key 72 is provided on the left side of the cursor key 71. The function setting key 72 is a key for displaying on the display 216 a function selection screen for setting various functions. The ESC key 73 is provided below the function setting key 72. The ESC key 73 is a key for returning to the previous screen or canceling the selected one. The OK key 74 is provided on the right side of the cursor key 71. The OK key 74 is a key operated when executing printing, selecting a selected function, or the like.

カーソルキー71、OKキー74、ESCキー73、及び機能設定キー72の下側のタッチパッド上の領域を操作領域76という。操作領域76の座標(X,Y)について説明する。操作領域76では、右方向がX軸の+方向(X方向)であるとし、下方向がY軸の+方向(Y方向)であるとする。操作領域76の左上の座標は原点(0,0)である。操作領域76の右下の座標は、(75,80)である。すなわち、操作領域76は、(0,0)〜(75,80)の範囲である。   An area on the touch pad below the cursor key 71, the OK key 74, the ESC key 73, and the function setting key 72 is referred to as an operation area 76. The coordinates (X, Y) of the operation area 76 will be described. In the operation area 76, it is assumed that the right direction is the + direction (X direction) of the X axis, and the downward direction is the + direction (Y direction) of the Y axis. The upper left coordinate of the operation area 76 is the origin (0, 0). The lower right coordinates of the operation area 76 are (75, 80). That is, the operation area 76 is in the range of (0, 0) to (75, 80).

操作領域76には、後述するメイン処理(図6参照)によって分割領域75が設定される。分割領域75は、操作されることで指示が入力されるキーである。図3に示す例では、操作領域76に分割領域751,752が設定されている。分割領域751は、(0,0)〜(75,60)の範囲に設定されている。また、分割領域752は、(0,61)〜(75,80)の範囲に設定されている。   In the operation area 76, a divided area 75 is set by a main process (see FIG. 6) described later. The divided area 75 is a key for inputting an instruction when operated. In the example shown in FIG. 3, divided areas 751 and 752 are set in the operation area 76. The divided area 751 is set in the range of (0, 0) to (75, 60). The divided area 752 is set in the range of (0, 61) to (75, 80).

分割領域751に対応するシート61のキー5には、文字「Sandwich」が描かれている。また分割領域752に対応するシート61のキー5には、文字「Apple Pie」が描かれている。これらの印刷により描かれた文字は、領域データテーブル94(図9(F)参照)のテンプレート名「Sandwich」と「Apple Pie」に対応している。詳細は後述するが、分割領域751又は分割領域752が操作されると、「Sandwich」、又は、「Apple Pie」が印字された印字媒体521,522(図3参照)が作成される。   The character “Sandwich” is drawn on the key 5 of the sheet 61 corresponding to the divided area 751. In addition, the character “Apple Pie” is drawn on the key 5 of the sheet 61 corresponding to the divided area 752. These characters drawn by printing correspond to the template names “Sandwich” and “Apple Pie” in the area data table 94 (see FIG. 9F). Although details will be described later, when the divided area 751 or the divided area 752 is operated, print media 521 and 522 (see FIG. 3) on which “Sandwich” or “Apple Pie” is printed are created.

図2を参照して、印字システム1の電気的構成について説明する。図2に示すように、PC3は、PC3の制御を行うCPU301を備えている。CPU301には、ハードディスクドライブ(以下、HDD)302、RAM303、通信インターフェイス(以下、通信I/F)304、入力部305、及び出力回路306が接続されている。   The electrical configuration of the printing system 1 will be described with reference to FIG. As illustrated in FIG. 2, the PC 3 includes a CPU 301 that controls the PC 3. A hard disk drive (hereinafter referred to as HDD) 302, a RAM 303, a communication interface (hereinafter referred to as communication I / F) 304, an input unit 305, and an output circuit 306 are connected to the CPU 301.

HDD302には、PC3のCPU301が実行する各種プログラムが記憶されている。RAM303には、種々の一時データが記憶される。入力部305は、例えば、マウス、キーボード等である。出力回路306は、ディスプレイ307に接続されている。CPU301は、出力回路306を介して、ディスプレイ307に画像を表示することができる。通信I/F304は、他の機器(本実施形態では、入力装置2)とデータ通信を行うためのインターフェイスである。通信I/F304は、入力装置2の通信I/F206(後述)と接続されている。PC3のCPU301は、通信I/F304、入力装置2の通信I/F206を介して、入力装置2のCPU201と通信を行うことができる。   The HDD 302 stores various programs executed by the CPU 301 of the PC 3. The RAM 303 stores various temporary data. The input unit 305 is, for example, a mouse or a keyboard. The output circuit 306 is connected to the display 307. The CPU 301 can display an image on the display 307 via the output circuit 306. The communication I / F 304 is an interface for performing data communication with other devices (in this embodiment, the input device 2). The communication I / F 304 is connected to a communication I / F 206 (described later) of the input device 2. The CPU 301 of the PC 3 can communicate with the CPU 201 of the input device 2 via the communication I / F 304 and the communication I / F 206 of the input device 2.

入力装置2は、入力装置2の制御を行うCPU201を備えている。CPU201は、ROM202、フラッシュメモリ203、RAM204、CGROM205、通信I/F206、出力回路213、及び駆動回路209〜212に接続されている。   The input device 2 includes a CPU 201 that controls the input device 2. The CPU 201 is connected to the ROM 202, flash memory 203, RAM 204, CGROM 205, communication I / F 206, output circuit 213, and drive circuits 209 to 212.

ROM202には、入力装置2のCPU201が実行する各種プログラム(例えば、図6のメイン処理のプログラム等)が記憶されている。フラッシュメモリ203には、種々のデータ(例えば、テンプレートデータ8)等が記憶される。RAM204には、種々の一時データが記憶される。CGROM205には、種々のキャラクタ(文字、数字、及び図形等)を印字媒体50に印字するための印字用のドットパターンデータが記憶されている。   The ROM 202 stores various programs executed by the CPU 201 of the input device 2 (for example, the main processing program in FIG. 6). The flash memory 203 stores various data (for example, template data 8). The RAM 204 stores various temporary data. The CGROM 205 stores dot pattern data for printing for printing various characters (characters, numbers, figures, etc.) on the print medium 50.

駆動回路212は、タッチパッド207を駆動するための電子回路である。ユーザが、タッチパッド207上に配置されるシート6に描かれたキー5を操作(押下)すると、CPU201はタッチパッド207を介して操作された位置(座標)を検出する。これによって、CPU201は操作された操作キー7を特定する。駆動回路209は、サーマルヘッド217を駆動するための電子回路である。CPU201は、駆動回路209を介して、サーマルヘッド217を制御し、印字媒体50に印字を行うことができる。駆動回路210は、入力装置2の内部で巻回された印字媒体50を外部に搬送するためのテープ送りモータ214を駆動するための電子回路である。駆動回路211は、印字済みの印字媒体50を切断する移動刃(図示外)を動作させるカッターモータ215を駆動するための電子回路である。   The drive circuit 212 is an electronic circuit for driving the touch pad 207. When the user operates (presses) the key 5 drawn on the sheet 6 disposed on the touch pad 207, the CPU 201 detects the position (coordinates) operated via the touch pad 207. As a result, the CPU 201 identifies the operated operation key 7. The drive circuit 209 is an electronic circuit for driving the thermal head 217. The CPU 201 can print on the print medium 50 by controlling the thermal head 217 via the drive circuit 209. The drive circuit 210 is an electronic circuit for driving a tape feed motor 214 for conveying the print medium 50 wound inside the input device 2 to the outside. The drive circuit 211 is an electronic circuit for driving a cutter motor 215 that operates a moving blade (not shown) that cuts the printed print medium 50.

図3を参照して、テンプレートデータ8について説明する。テンプレートデータ8は、印字媒体50に印字されるキャラクタの配置位置が少なくとも設定されたデータである。図3に示すテンプレートデータ80は、説明を分かり易くするため、テンプレートデータ80に基づいて印字媒体50に印字した場合と同様の外形で示している。しかし、実際には、テンプレートデータ80は、キャラクタ、及びキャラクタの印字位置の座標等がデータとして記憶されているものである(テンプレートデータ81も同様)。テンプレートデータ80の場合、キャラクタ「Sandwich」及び「¥300」が配置されている。テンプレートデータ81の場合、キャラクタ「Apple Pie」及び「¥100」が配置されている。   The template data 8 will be described with reference to FIG. The template data 8 is data in which an arrangement position of characters to be printed on the print medium 50 is set at least. The template data 80 shown in FIG. 3 has the same outer shape as that printed on the print medium 50 based on the template data 80 for easy understanding. In practice, however, the template data 80 is stored with data such as the character and the coordinates of the print position of the character (the same applies to the template data 81). In the case of template data 80, characters “Sandwich” and “¥ 300” are arranged. In the case of the template data 81, characters “Apple Pie” and “¥ 100” are arranged.

図4を参照し、座標データテーブル91について説明する。座標データテーブル91は、予め入力装置2のフラッシュメモリ203に記憶されている。図4に示すように、座標データテーブル91には、合計数と配置位置とが対応付けられて記憶されている。合計数は、指示の種類(後述)の合計の数である。領域番号「A1」〜「A20」の配置位置は、操作領域76(図3参照)上の領域であり、座標で表されている。合計数と、配置位置が設定されている領域番号の数とは同一である。例えば、合計数「1」は、1つの領域番号「A1」の配置位置「(0,0)〜(75,80)」に対応付けられている。また、合計数「4」は、4つの領域番号「A1」、「A2」、「A3」、及び「A4」の配置位置「(0,0)〜(75,20)」、「(0,21)〜(75,40)」、「(0,41)〜(75,60)」、及び「(0,61)〜(75,80)」に対応付けられている。   The coordinate data table 91 will be described with reference to FIG. The coordinate data table 91 is stored in advance in the flash memory 203 of the input device 2. As shown in FIG. 4, the coordinate data table 91 stores the total number and the arrangement position in association with each other. The total number is the total number of instruction types (described later). The arrangement positions of the area numbers “A1” to “A20” are areas on the operation area 76 (see FIG. 3) and are represented by coordinates. The total number is the same as the number of area numbers for which arrangement positions are set. For example, the total number “1” is associated with the arrangement positions “(0, 0) to (75, 80)” of one area number “A1”. In addition, the total number “4” indicates the arrangement positions “(0,0) to (75,20)”, “(0,0,4)” of the four area numbers “A1”, “A2”, “A3”, and “A4”. 21) to (75, 40) "," (0, 41) to (75, 60) ", and" (0, 61) to (75, 80) ".

図5を参照して、テンプレートデータリスト92について説明する。図5に示すように、テンプレートデータリスト92には、テンプレート名、テンプレートデータ、及び領域番号が対応付けられて記憶されている。より詳細には、テンプレートデータリスト92には、テンプレート名、テンプレートデータ、及び領域番号の順に、「Sandwich」、「テンプレートデータ80」、及び「A1」が対応付けられている。同様に、「Sandwich」、「テンプレートデータ80」、及び「A2」が対応付けられ、「Sandwich」、「テンプレートデータ80」、及び「A3」が対応付けられている。「Apple Pie」、「テンプレートデータ81」、及び「A4」が対応付けられている。   The template data list 92 will be described with reference to FIG. As shown in FIG. 5, the template data list 92 stores template names, template data, and area numbers in association with each other. More specifically, “Sandwich”, “Template data 80”, and “A1” are associated with the template data list 92 in the order of template name, template data, and area number. Similarly, “Sandwich”, “Template data 80”, and “A2” are associated with each other, and “Sandwich”, “Template data 80”, and “A3” are associated with each other. “Apple Pie”, “Template data 81”, and “A4” are associated with each other.

テンプレート名は、テンプレートデータ8に付与された名称である。ユーザはPC3を使用してテンプレートデータ8を作成する際にテンプレート名も入力している。また、ユーザはPC3を使用して、テンプレートデータ8を割り当てる領域番号を指定している。   The template name is a name given to the template data 8. The user also inputs a template name when creating the template data 8 using the PC 3. Further, the user designates an area number to which the template data 8 is assigned using the PC 3.

次に、入力装置2のCPU201による処理について説明する。以下の説明では、第一実施形態及び第二実施形態について説明する。第一実施形態及び第二実施形態では、CPU201は、タッチパッド207の操作領域76に割り当てる指示の種類ごとに1又は複数指定される指示の種類を取得する(図6のS11、後述)。そして、CPU201は、指示の種類ごとの数に応じた面積で、操作領域76の全体を指示の種類に応じた分割領域75(図3参照)を設定する(図8のS31、後述)。   Next, processing by the CPU 201 of the input device 2 will be described. In the following description, the first embodiment and the second embodiment will be described. In the first embodiment and the second embodiment, the CPU 201 acquires one or more designated instruction types for each instruction type assigned to the operation area 76 of the touch pad 207 (S11 in FIG. 6, which will be described later). Then, the CPU 201 sets a divided area 75 (see FIG. 3) corresponding to the instruction type for the entire operation area 76 with an area corresponding to the number for each instruction type (S31 in FIG. 8, described later).

操作領域76に割り当てる指示の種類とは、ユーザが分割領域75を操作することで入力装置に入力可能な指示の種類である。例えば、第一実施形態では、分割領域751が操作されると、テンプレートデータ80に基づいて印字が行われる(図3参照)。すなわち、操作領域76の分割領域751に割り当てられている指示の種類とは、「テンプレートデータ80に基づいた印字の実行指示」である。また、分割領域752が操作されると、テンプレートデータ81に基づいて印字が行われる(図3参照)。すなわち、操作領域76の分割領域752に割り当てられている指示の種類とは、「テンプレートデータ81に基づいた印字の実行指示」である。第二実施形態における操作領域76に割り当てる指示の種類については後述する。   The instruction type assigned to the operation area 76 is an instruction type that can be input to the input device by the user operating the divided area 75. For example, in the first embodiment, when the divided area 751 is operated, printing is performed based on the template data 80 (see FIG. 3). That is, the type of instruction assigned to the divided area 751 of the operation area 76 is “print execution instruction based on the template data 80”. When the divided area 752 is operated, printing is performed based on the template data 81 (see FIG. 3). That is, the type of instruction assigned to the divided area 752 of the operation area 76 is “print execution instruction based on the template data 81”. The types of instructions assigned to the operation area 76 in the second embodiment will be described later.

図6を参照してCPU201によって実行されるメイン処理について説明する。メイン処理は、例えば、CPU201がPC3と接続されたことを検知した場合に開始される。図6に示すように、メイン処理では、操作領域76に割り当てる指示の種類ごとに1又は複数指定される指示の種類(第一実施形態では、テンプレートデータ8に基づいた印字の実行指示)が取得されたか否かが判断される(S11)。指示の種類が取得されていない場合(S11:NO)、S11の処理が繰り返される。   A main process executed by the CPU 201 will be described with reference to FIG. The main process is started, for example, when it is detected that the CPU 201 is connected to the PC 3. As shown in FIG. 6, in the main process, one or a plurality of instruction types designated for each instruction type assigned to the operation area 76 (in the first embodiment, a print execution instruction based on the template data 8) is acquired. It is determined whether or not it has been done (S11). If the type of instruction has not been acquired (S11: NO), the process of S11 is repeated.

ユーザはPC3を操作して、テンプレートデータ80,81(図3参照)を作成する。そして、ユーザは、「テンプレートデータ8に基づいた印字の実行指示」を割り当てる領域番号を指定する。この指定は、テンプレートデータ80又はテンプレートデータ81と領域番号とを対応付けてテンプレートデータリスト92を作成することで行われる。S11では、テンプレートデータリスト92が受信されることで、タッチパッド207に割り当てる指示の種類ごとに1又は複数指定される指示の種類が取得される。   The user operates the PC 3 to create template data 80 and 81 (see FIG. 3). Then, the user designates an area number to which “print execution instruction based on template data 8” is assigned. This designation is performed by creating the template data list 92 by associating the template data 80 or the template data 81 with the area number. In S11, by receiving the template data list 92, one or a plurality of instruction types designated for each instruction type assigned to the touch pad 207 is acquired.

指示の種類が取得された場合(S11:YES)、領域リスト93(図7参照)が作成される(S12)。図5に示すように、テンプレートデータリスト92では、ユーザによって指定された領域番号が対応付けられている。S12では、テンプレートデータリスト92に登録された領域番号とテンプレート名とが参照され、図7に示す領域リスト93が作成される。領域リスト93には、領域番号として、「A1」〜「A20」が登録されている。そして、テンプレートデータリスト92では、領域番号「A1」〜「A3」に、テンプレートデータ82のテンプレート名「Sandwich」が対応付けられ、領域番号「A4」にテンプレートデータ81のテンプレート名「Apple Pie」が対応付けられている。このため、図7に示すように、領域番号「A1」〜「A3」にテンプレート名「Sandwich」が対応付けられ、領域番号「A4」にテンプレート名「Apple Pie」が対応付けられた領域リスト93が作成される。なお、領域番号「A5」〜「A20」にはテンプレート名は対応付けられない。   When the type of instruction is acquired (S11: YES), an area list 93 (see FIG. 7) is created (S12). As shown in FIG. 5, in the template data list 92, area numbers designated by the user are associated. In S12, the region number and template name registered in the template data list 92 are referred to, and the region list 93 shown in FIG. 7 is created. In the area list 93, “A1” to “A20” are registered as area numbers. In the template data list 92, the template number “Sandwich” of the template data 82 is associated with the region numbers “A1” to “A3”, and the template name “Apple Pie” of the template data 81 is associated with the region number “A4”. It is associated. Therefore, as shown in FIG. 7, a region list 93 in which the template number “Sandwich” is associated with the region numbers “A1” to “A3”, and the template name “Apple Pie” is associated with the region number “A4”. Is created. Note that template numbers are not associated with the region numbers “A5” to “A20”.

次いで、領域分割処理が実行される(S13)。図8を参照して領域分割処理について説明する。領域分割処理は、S11で取得された指示の種類ごとの数に応じた面積で、操作領域76の全体を指示の種類(テンプレートデータ80又はテンプレートデータ81に基づいた印字の実行指示)ごとに分割した分割領域75(図3参照)を設定する処理である。   Next, an area division process is executed (S13). The area division process will be described with reference to FIG. The area dividing process divides the entire operation area 76 for each instruction type (print execution instruction based on the template data 80 or the template data 81) with an area corresponding to the number of each instruction type acquired in S11. This is a process of setting the divided area 75 (see FIG. 3).

図8に示すように、まず、S11によって取得された指示の種類ごとに1又は複数指定される指示の種類の合計の数から、合計の数に応じて、操作領域76内で複数の分割領域75の配置位置が決定される(S21)。S21では、S11で取得されたテンプレートデータリスト92に基づいて作成された領域リスト93(図7参照)と座標データテーブル91(図4参照)とが参照される。領域リスト93では、領域「A1」〜「A4」の4つのテンプレートデータ8のテンプレート名が登録されている。すなわち、S11で取得された指示の種類の合計は「4つ」である。そして、座標データテーブル91(図4参照)が参照され、合計の数「4」に対応する配置位置が決定される。すなわち、領域番号「A1」の配置位置は「(0,0)〜(75,20)」である。領域番号「A2」の配置位置は、「(0,21)〜(75,40)」である。領域番号「A3」の配置位置は、「(0,41)〜(75,60)」である。領域番号「A4」の配置位置は、「(0,61)〜(75,80)」である。   As shown in FIG. 8, first, from the total number of instruction types designated by one or more for each instruction type acquired in S11, a plurality of divided areas in the operation area 76 according to the total number. 75 arrangement positions are determined (S21). In S21, an area list 93 (see FIG. 7) and a coordinate data table 91 (see FIG. 4) created based on the template data list 92 acquired in S11 are referred to. In the area list 93, the template names of the four template data 8 of the areas “A1” to “A4” are registered. In other words, the total number of instruction types acquired in S11 is “four”. Then, the coordinate data table 91 (see FIG. 4) is referred to, and the arrangement position corresponding to the total number “4” is determined. That is, the arrangement position of the area number “A1” is “(0, 0) to (75, 20)”. The arrangement position of the area number “A2” is “(0, 21) to (75, 40)”. The arrangement position of the area number “A3” is “(0, 41) to (75, 60)”. The arrangement position of the area number “A4” is “(0, 61) to (75, 80)”.

次いで、変数Nが「1」に設定される(S22)。変数NはRAM204に記憶される。次いで、領域リスト93において領域番号AN(Nは変数)に対応付けられているテンプレート名が特定される(S23)。例えば、変数Nが「1」の場合、領域番号「A1」に対応付けられたテンプレート名「Sandwich」が特定される。   Next, the variable N is set to “1” (S22). The variable N is stored in the RAM 204. Next, the template name associated with the area number AN (N is a variable) in the area list 93 is specified (S23). For example, when the variable N is “1”, the template name “Sandwich” associated with the area number “A1” is specified.

次いで、S21で決定された配置位置に、S11で取得された指示の種類が割り当てられ、領域データテーブル94に登録される(S24)。S24では、S23で特定されたテンプレート名が、領域番号「AN」の配置位置に割り当てられることで、S11で取得された指示の種類が割り当てられる。変数Nが「1」の場合、領域番号「A1」の配置位置「(0,0)〜(75,20)」にテンプレート名「Sandwich」が割り当てられる。この場合、図9(A)に示すように、テンプレート名「Sandwich」と配置位置「(0,0)〜(75,20)」とが対応付けられた領域データテーブル94が作成される。領域データテーブル94は、フラッシュメモリ203に記憶される。   Next, the type of instruction acquired in S11 is assigned to the arrangement position determined in S21, and is registered in the area data table 94 (S24). In S24, the type of instruction acquired in S11 is assigned by assigning the template name specified in S23 to the arrangement position of the area number “AN”. When the variable N is “1”, the template name “Sandwich” is assigned to the arrangement positions “(0, 0) to (75, 20)” of the area number “A1”. In this case, as shown in FIG. 9A, an area data table 94 in which the template name “Sandwich” is associated with the placement positions “(0, 0) to (75, 20)” is created. The area data table 94 is stored in the flash memory 203.

次いで、領域データテーブル94が参照され、S24で新たに割り当てられた指示の種類と同一の指示の種類が、すでに割り当てられているか否かが判断される(S25)。図9(A)では、同一の指示の種類が割り当てられていない。このため、同一の指示の種類が割り当てられていないと判断され(S25:NO)、変数Nがインクリメントされる(S29)。次いで変数Nが、領域リスト93に登録されているテンプレート名の数より大きいか否かが判断される(S30)。変数Nが領域リスト93に登録されているテンプレート名の数より大きくない場合(S30:NO)、処理はS23に戻る。   Next, the area data table 94 is referred to, and it is determined whether or not the same instruction type as the instruction type newly assigned in S24 has already been assigned (S25). In FIG. 9A, the same instruction type is not assigned. For this reason, it is determined that the same instruction type is not assigned (S25: NO), and the variable N is incremented (S29). Next, it is determined whether or not the variable N is larger than the number of template names registered in the area list 93 (S30). When the variable N is not larger than the number of template names registered in the area list 93 (S30: NO), the process returns to S23.

変数NがS29でインクリメントされ「2」になった場合について説明する。この場合、領域番号「A2」に対応付けられたテンプレート名「Sandwich」が特定される(S23)。そして、図9(B)の領域データテーブル94に示すように、S23で特定されたテンプレート名「Sandwich」が領域番号「A2」の配置位置「(0,21)〜(75,40)」に割り当てられる(S24)。   A case where the variable N is incremented to S2 in S29 will be described. In this case, the template name “Sandwich” associated with the area number “A2” is specified (S23). Then, as shown in the area data table 94 of FIG. 9B, the template name “Sandwich” specified in S23 is placed in the arrangement positions “(0, 21) to (75, 40)” of the area number “A2”. Allocated (S24).

次いで、領域データテーブル94ではすでに、テンプレート名「Sandwich」が配置位置「(0,0)〜(75,20)」に割り当てられているので、S24で新たに割り当てられた指示の種類と同一の指示の種類が割り当てられていると判断される(S25:YES)。   Next, since the template name “Sandwich” has already been assigned to the arrangement positions “(0, 0) to (75, 20)” in the area data table 94, it is the same as the instruction type newly assigned in S24. It is determined that the type of instruction is assigned (S25: YES).

次いで、隣接する配置位置に同一の指示の種類が割り当てられたか否かが判断される(S26)。隣接する配置位置は、例えば、2つの配置位置同士の座標が連続する部分がある位置関係の配置位置である。図9(B)に示すように、同一のテンプレート名「Sandwich」が配置位置「(0,0)〜(75,20)」と「(0,21)〜(75,40)」に割り当てられている。配置位置「(0,0)〜(75,20)」と「(0,21)〜(75,40)」は、Y方向に座標が連続している。よって、隣接する配置位置に同一の指示の種類が割り当てられたと判断される(S26:YES)。次いで、同一の指示の種類が割り当てられた配置位置同士が繋げられる(S27)。S27では、図9(B)に示すテンプレート名「Sandwich」に対応付けられた2つの配置位置「(0,0)〜(75,20)」と「(0,21)〜(75,40)」とが繋げられる。このため、図9(C)に示すようにテンプレート名「Sandwich」に配置位置「(0,0)〜(75,40)」が対応付けられた状態となる。次いで、処理はS29に進み、変数Nが「3」に設定される。   Next, it is determined whether or not the same instruction type is assigned to the adjacent arrangement position (S26). The adjacent arrangement positions are, for example, arrangement positions having a positional relationship in which there are portions where the coordinates of the two arrangement positions are continuous. As shown in FIG. 9B, the same template name “Sandwich” is assigned to the arrangement positions “(0, 0) to (75, 20)” and “(0, 21) to (75, 40)”. ing. The coordinates of the arrangement positions “(0, 0) to (75, 20)” and “(0, 21) to (75, 40)” are continuous in the Y direction. Therefore, it is determined that the same instruction type is assigned to the adjacent arrangement position (S26: YES). Next, the arrangement positions to which the same instruction type is assigned are connected (S27). In S27, two arrangement positions “(0, 0) to (75, 20)” and “(0, 21) to (75, 40) associated with the template name“ Sandwich ”shown in FIG. Is connected. For this reason, as shown in FIG. 9C, the arrangement positions “(0, 0) to (75, 40)” are associated with the template name “Sandwich”. Next, the process proceeds to S29, and the variable N is set to “3”.

変数Nが「2」の場合と同様に、S23〜S27の処理が実行され、図9(D)に示すように、テンプレート名「Sandwich」が配置位置「(0,41)〜(75,60)」に割り当てられる(S24)。そして、図9(E)示すように、隣接する配置位置同士が繋げられ、テンプレート名「Sandwich」に配置位置「(0,0)〜(75,60)」が対応付けられた状態となる(S27)。そして、変数Nが「4」に設定される(S29)。図9(F)に示すように、テンプレート名「Apple Pie」が配置位置「(0,61)〜(75,80)」に割り当てられる(S24)。そして、S24で割り当てられた指示の種類と同一の指示の種類が割り当てられていないと判断され(S25:NO)、変数Nが「5」に設定される。この場合、変数N「5」が領域リスト93に登録されているテンプレート名の数「4」より大きいと判断され(S30:YES)、領域データテーブル94(図9(F)参照)に基づいて分割領域75が設定(決定)される(S31)。すなわち、ユーザが分割領域75を操作した場合に、テンプレートデータ8に基づいた印字の処理が実行される状態に設定される。これによって、図3に示すように、操作領域76における配置位置「(0,0)〜(75,60)」にテンプレート名「Sandwich」についての分割領域751が設定される。また、配置位置「(0,61)〜(75,80)」に「Apple Pie」についての分割領域752が設定される。なお、図3における分割領域751,752に記載されている「Sandwich」及び「Apple Pie」の文字は、シート61に印刷されているものである。   Similarly to the case where the variable N is “2”, the processing of S23 to S27 is executed, and the template name “Sandwich” is assigned to the arrangement positions “(0, 41) to (75, 60” as shown in FIG. ) ”(S24). Then, as shown in FIG. 9E, adjacent arrangement positions are connected to each other, and the arrangement positions “(0, 0) to (75, 60)” are associated with the template name “Sandwich” ( S27). Then, the variable N is set to “4” (S29). As shown in FIG. 9F, the template name “Apple Pie” is assigned to the arrangement positions “(0, 61) to (75, 80)” (S24). Then, it is determined that the same instruction type as that assigned in S24 is not assigned (S25: NO), and the variable N is set to “5”. In this case, it is determined that the variable N “5” is larger than the number of template names “4” registered in the area list 93 (S30: YES), and based on the area data table 94 (see FIG. 9F). A divided area 75 is set (determined) (S31). That is, when the user operates the divided area 75, the print processing based on the template data 8 is set to be executed. As a result, as shown in FIG. 3, a divided area 751 for the template name “Sandwich” is set at the arrangement positions “(0, 0) to (75, 60)” in the operation area 76. In addition, a divided area 752 for “Apple Pie” is set at the arrangement positions “(0, 61) to (75, 80)”. Note that the characters “Sandwich” and “Apple Pie” described in the divided areas 751 and 752 in FIG. 3 are printed on the sheet 61.

次いで、領域分割処理が終了され、処理はメイン処理(図6参照)に戻る。次いで、S31で設定された分割領域75が操作され、印字の指示が入力されたか否かが判断される(S14)。印字の指示が入力された場合(S14:YES)、印字が実行される(S15)。例えば、分割領域751が操作された場合、テンプレートデータ80に基づいて、「Sandwich」についての印字媒体521が作成される(図3参照)。分割領域752が操作された場合、テンプレートデータ81に基づいて、「Apple Pie」についての印字媒体522が作成される(図3参照)。このように、分割領域75が操作された場合に、指示の種類に応じた処理が行われる。次いで、処理はS14に戻る。   Next, the area division process is terminated, and the process returns to the main process (see FIG. 6). Next, it is determined whether the divided area 75 set in S31 is operated and a printing instruction is input (S14). When a printing instruction is input (S14: YES), printing is executed (S15). For example, when the divided area 751 is operated, the print medium 521 for “Sandwich” is created based on the template data 80 (see FIG. 3). When the divided area 752 is operated, the print medium 522 for “Apple Pie” is created based on the template data 81 (see FIG. 3). Thus, when the divided area 75 is operated, processing according to the type of instruction is performed. Next, the process returns to S14.

印字の指示が入力されていない場合(S15:NO)、ユーザの操作によって電源をオフする指示が入力されたか否かが判断される(S16)。電源をオフする指示が入力されていない場合(S16:NO)、処理はS14に戻る。電源をオフする指示が入力された場合(016:YES)、電源がオフされ(S17)、メイン処理が終了される。   If no print instruction is input (S15: NO), it is determined whether or not an instruction to turn off the power is input by a user operation (S16). If no instruction to turn off the power is input (S16: NO), the process returns to S14. When an instruction to turn off the power is input (016: YES), the power is turned off (S17), and the main process is terminated.

図8のS26の処理において、隣接する配置位置に同一の指示の種類が割り当てられていないと判断された場合(S26:NO)、テンプレート名が変更されて領域データテーブル94に登録される。すなわち、S27とは異なり、配置位置同士が繋げられない。例えば、テンプレートデータリスト92(図5参照)において、テンプレート名「Sandwich」、テンプレートデータ「81」、及び領域番号「A5」が登録されていたとする。この場合、領域番号「A1」〜「A3」の「Sandwich」は繋げられて1つの分割領域75に設定される。しかし、領域番号「A5」の「Sandwich」は、例えば、テンプレート名が「Sandwich(2)」等に変更されて領域データテーブル94に登録される(S28)。このため、領域番号「A1」〜「A3」の「Sandwich」とは別の分割領域75として設定される(S31)。なお、S28が実行された後、処理はS29に進む。   In the process of S26 of FIG. 8, when it is determined that the same instruction type is not assigned to the adjacent arrangement position (S26: NO), the template name is changed and registered in the area data table 94. That is, unlike S27, the arrangement positions cannot be connected. For example, assume that the template name “Sandwich”, template data “81”, and area number “A5” are registered in the template data list 92 (see FIG. 5). In this case, “Sandwich” of the region numbers “A1” to “A3” are connected and set to one divided region 75. However, “Sandwich” of the region number “A5” is registered in the region data table 94 with the template name changed to “Sandwich (2)”, for example (S28). For this reason, the area number “A1” to “A3” is set as a separate area 75 different from “Sandwich” (S31). After S28 is executed, the process proceeds to S29.

次に第二実施形態について説明する。第二実施形態では、第一実施形態の場合と異なるテンプレートデータ82(図10参照)が使用される。そして、テンプレートデータ82のキャラクタの印字位置821に、データベース95(図11参照)に登録されたキャラクタが配置されて印字が行われる。   Next, a second embodiment will be described. In the second embodiment, template data 82 (see FIG. 10) different from that in the first embodiment is used. The character registered in the database 95 (see FIG. 11) is placed at the character printing position 821 of the template data 82, and printing is performed.

図10に示すように、テンプレートデータ82では、キャラクタ「Product」(製品)、及び「Price」(値段)が配置されている。詳細は後述するが、印字媒体50への印字が行われる場合には、テンプレートデータ82の印字位置821に、データベース95(図11参照)の「Product」、及び「Price」の各項目に対応するキャラクタが配置され、印字が行われる。例えば、データベース95のレコード名「T001」に対応付けられているキャラクタ「Sandwich」及び「¥300」が印字位置821に配置されて印字されると、図10に示す印字媒体531が作成される。   As shown in FIG. 10, characters “Product” (product) and “Price” (price) are arranged in the template data 82. Although details will be described later, when printing on the print medium 50 is performed, the print position 821 of the template data 82 corresponds to the items “Product” and “Price” of the database 95 (see FIG. 11). Characters are placed and printing is performed. For example, when the characters “Sandwich” and “¥ 300” associated with the record name “T001” in the database 95 are placed at the print position 821 and printed, the print medium 531 shown in FIG. 10 is created.

図11を参照して、データベース95について説明する。図11に示すように、データベース95には、レコード名、Product、及びPriceが対応付けられて記憶されている。より詳細には、レコード名、Product、及びPriceの順に「T001」、「Sandwich」、及び「¥300」が対応付けられている。同様に、「T002」、「Sandwich」、及び「¥300」が対応付けられ、「T003」、「Sandwich」、「¥250」が対応付けられている。「T004」、「Apple Pie」、及び「¥100」が対応付けられている。   The database 95 will be described with reference to FIG. As shown in FIG. 11, the database 95 stores record names, products, and prices in association with each other. More specifically, “T001”, “Sandwich”, and “¥ 300” are associated in the order of record name, product, and price. Similarly, “T002”, “Sandwich”, and “¥ 300” are associated with each other, and “T003”, “Sandwich”, and “¥ 250” are associated with each other. “T004”, “Apple Pie”, and “¥ 100” are associated with each other.

第二実施形態におけるCPU201の処理について説明する。以下の説明では、第一実施形態と同じメイン処理(図6参照)を参照して説明するが、第一実施形態と異なる処理について説明し、第一実施形態と共通する処理については説明を省略する。   Processing of the CPU 201 in the second embodiment will be described. In the following description, the same main processing (see FIG. 6) as in the first embodiment will be described, but processing different from the first embodiment will be described, and description of processing that is common to the first embodiment will be omitted. To do.

ユーザはPC2を操作してテンプレートデータ82(図10参照)を作成する。作成されたテンプレートデータ82は、予め入力装置2に送信され、入力装置2のフラッシュメモリ203に記憶されているとする。また、操作領域76に割り当てる指示の種類が第一実施形態とは異なる。図10に示すように、第二実施形態では、分割領域753が操作されると、データベース95のキャラクタ「Sandwich」と「¥300」とが印字位置821に配置されて印字が行われる。すなわち、操作領域76の分割領域753に割り当てられている指示の種類とは、「キャラクタ「Sandwich」と「¥300」とを印字位置821に配置して印字を実行する指示」である。また、分割領域754が操作されると、データベース95のキャラクタ「Sandwich」と「¥250」とが印字位置821に配置されて印字が行われる。すなわち、操作領域76の分割領域754に割り当てられている指示の種類とは、「キャラクタ「Sandwich」と「¥250」とを印字位置821に配置して印字を実行する指示」である。この例のように、第二実施形態では、分割領域753〜755で異なるキャラクタが印字される。すなわち、第二実施形態における操作領域76に割り当てる指示の種類とは、「キャラクタを印字位置821に配置して印字を実行する指示」であり、配置されるキャラクタが分割領域753〜755で異なる。   The user operates the PC 2 to create template data 82 (see FIG. 10). It is assumed that the created template data 82 is transmitted to the input device 2 in advance and stored in the flash memory 203 of the input device 2. The type of instruction assigned to the operation area 76 is different from that in the first embodiment. As shown in FIG. 10, in the second embodiment, when the divided area 753 is operated, the characters “Sandwich” and “¥ 300” in the database 95 are arranged at the print position 821 and printing is performed. That is, the type of instruction assigned to the divided area 753 of the operation area 76 is “an instruction to execute printing by placing the characters“ Sandwich ”and“ ¥ 300 ”at the print position 821”. When the divided area 754 is operated, the characters “Sandwich” and “¥ 250” in the database 95 are arranged at the print position 821 and printing is performed. That is, the type of instruction assigned to the divided area 754 of the operation area 76 is “an instruction to execute printing by placing the characters“ Sandwich ”and“ ¥ 250 ”at the print position 821”. As in this example, in the second embodiment, different characters are printed in the divided areas 753 to 755. That is, the type of instruction assigned to the operation area 76 in the second embodiment is “an instruction to place a character at the print position 821 and execute printing”, and the arranged character differs in the divided areas 753 to 755.

ユーザは、PC3を操作して、印字位置821の配置するキャラクタをデータベース95(図11参照)に登録する。S11では、PC3から送信されるデータベース95が受信されることで、タッチパッド207に割り当てる指示の種類ごとに1又は複数指定される指示の種類が取得される。   The user operates the PC 3 to register the character arranged at the print position 821 in the database 95 (see FIG. 11). In S <b> 11, by receiving the database 95 transmitted from the PC 3, one or more designated instruction types are acquired for each instruction type assigned to the touch pad 207.

指示の種類が取得された場合(S11:YES)、領域リスト96(図12参照)が作成される(S12)。図11に示すように、データベース95では、ユーザによって指定されたレコード名が対応付けられている。S12では、データベース95に登録されたレコード名が、データベース95に登録されている順に領域番号に対応付けられる。これによって、図12に示す領域リスト96が作成される。領域リスト96では、領域番号「A1」、「A2」、「A3」、及び「A4」に、それぞれ、レコード名「T001」、「T002」、「T003」、「T004」が対応付けられる。   When the type of instruction is acquired (S11: YES), an area list 96 (see FIG. 12) is created (S12). As shown in FIG. 11, in the database 95, the record name designated by the user is associated. In S 12, the record names registered in the database 95 are associated with the area numbers in the order registered in the database 95. Thereby, the area list 96 shown in FIG. 12 is created. In the area list 96, the record numbers “T001”, “T002”, “T003”, and “T004” are associated with the area numbers “A1”, “A2”, “A3”, and “A4”, respectively.

図8に示す分割処理では、まず、S11によって取得された指示の種類ごとに1又は複数指定される指示の種類の合計の数から、合計の数に応じて、操作領域76内で複数の分割領域75の配置位置が決定される(S21)。S21では、S11でデータベース95に基づいて作成された領域リスト96(図12参照)と座標データテーブル91(図4参照)とが参照される。領域リスト96では、領域「A1」〜「A4」に、4つのレコード名が登録されている。すなわち、S11で取得された指示の種類の合計は「4つ」である。そして、座標データテーブル91(図4参照)の合計の数「4」に対応する配置位置が決定される。すなわち、領域番号「A1」の配置位置は「(0,0)〜(75,20)」である。領域番号「A2」の配置位置は、「(0,20)〜(75,40)」である。領域番号「A3」の配置位置は、「(0,40)〜(75,60)」である。領域番号「A4」の配置位置は、「(0,60)〜(75,80)」である。   In the division process shown in FIG. 8, first, a plurality of divisions are made within the operation area 76 from the total number of instruction types designated by one or more for each instruction type acquired in S11, according to the total number. The arrangement position of the region 75 is determined (S21). In S21, the area list 96 (see FIG. 12) and the coordinate data table 91 (see FIG. 4) created based on the database 95 in S11 are referred to. In the area list 96, four record names are registered in the areas “A1” to “A4”. In other words, the total number of instruction types acquired in S11 is “four”. Then, the arrangement positions corresponding to the total number “4” in the coordinate data table 91 (see FIG. 4) are determined. That is, the arrangement position of the area number “A1” is “(0, 0) to (75, 20)”. The arrangement position of the area number “A2” is “(0, 20) to (75, 40)”. The arrangement position of the area number “A3” is “(0, 40) to (75, 60)”. The arrangement position of the area number “A4” is “(0, 60) to (75, 80)”.

次いで、変数Nが「1」に設定される(S22)。次いで、領域リスト96において領域番号AN(Nは変数)に対応付けられているレコード名が特定される(S23)。例えば、変数Nが「1」の場合、領域番号「A1」に対応付けられたレコード名「T001」が特定される。   Next, the variable N is set to “1” (S22). Next, the record name associated with the area number AN (N is a variable) in the area list 96 is specified (S23). For example, when the variable N is “1”, the record name “T001” associated with the area number “A1” is specified.

次いで、S21で決定された配置位置に、S11で取得された指示の種類が割り当てられ、領域データテーブル97(図13参照)に登録される(S24)。第二実施形態のS24では、S23で特定されたレコード名が参照され、データベース95におけるレコード名に対応付けられたキャラクタを組み合わせた項目名が作成される。そして、作成された項目名が、領域番号「AN」の配置位置に割り当てられることで、S11で取得された指示の種類が割り当てられる。例えば、データベース95におけるレコード名「T001」に対応付けられたProduct「Sandwich」とPrice「¥300」とが組み合わせられ、項目名「Sandwich_¥300」が作成される。そして、領域番号「A1」の配置位置「(0,0)〜(75,20)」に項目名「Sandwich_¥300」が割り当てられる。この場合、図13(A)に示すように、項目名「Sandwich_¥300」と配置位置「(0,0)〜(75,20)」とが対応付けられた領域データテーブル97が作成される。領域データテーブル97は、フラッシュメモリ203に記憶される。   Next, the type of instruction acquired in S11 is assigned to the arrangement position determined in S21, and is registered in the area data table 97 (see FIG. 13) (S24). In S24 of the second embodiment, the record name specified in S23 is referred to, and an item name combining characters associated with the record name in the database 95 is created. Then, the created item name is assigned to the arrangement position of the area number “AN”, whereby the instruction type acquired in S11 is assigned. For example, the product “Sandwich” and Price “¥ 300” associated with the record name “T001” in the database 95 are combined to create the item name “Sandwich_ ¥ 300”. Then, the item name “Sandwich_ ¥ 300” is assigned to the arrangement position “(0, 0) to (75, 20)” of the area number “A1”. In this case, as shown in FIG. 13A, the area data table 97 in which the item name “Sandwich_ ¥ 300” is associated with the arrangement positions “(0, 0) to (75, 20)” is created. . The area data table 97 is stored in the flash memory 203.

次いで、領域データテーブル97が参照され、S24で新たに割り当てられた指示の種類と同一の指示の種類が、すでに割り当てられているか否かが判断される(S25)。図13(A)の場合、同一の指示の種類が割り当てられていない。このため、同一の指示の種類が割り当てられていないと判断され(S26:NO)、変数Nがインクリメントされる(S29)。次いで。第二実施形態のS30では、変数Nが領域リスト96(図12参照)に登録されているレコード名の数より大きいか否かが判断される(S30)。変数Nが領域リスト96に登録されているレコード名より大きくない場合(S30:NO)、処理はS23に戻る。   Next, the area data table 97 is referred to, and it is determined whether or not the same instruction type as the instruction type newly assigned in S24 has already been assigned (S25). In the case of FIG. 13A, the same instruction type is not assigned. Therefore, it is determined that the same instruction type is not assigned (S26: NO), and the variable N is incremented (S29). Then. In S30 of the second embodiment, it is determined whether or not the variable N is larger than the number of record names registered in the area list 96 (see FIG. 12) (S30). If the variable N is not larger than the record name registered in the area list 96 (S30: NO), the process returns to S23.

変数NがS29でインクリメントされ、「2」になった場合について説明する。この場合、領域番号「A2」に対応付けられたレコード名「T002」が特定される(S23)。そして、図13(B)の領域データテーブル97に示すように、項目名「Sandwich_¥300」が領域番号「A2」の配置位置「(0,21)〜(75,40)」に割り当てられる(S24)。   A case where the variable N is incremented in S29 and becomes “2” will be described. In this case, the record name “T002” associated with the area number “A2” is specified (S23). Then, as shown in the area data table 97 of FIG. 13B, the item name “Sandwich_ ¥ 300” is assigned to the arrangement positions “(0, 21) to (75, 40)” of the area number “A2” ( S24).

次いで、領域データテーブル97ではすでに、項目名「Sandwich_¥300」が配置位置「(0,0)〜(75,20)」割り当てられているので、S24で新たに割り当てられた指示の種類と同一の指示の種類が割り当てられていると判断される(S25:YES)。図13(B)に示すように、同一の項目名「Sandwich_¥300」が配置位置「(0,0)〜(75,20)」と「(0,21)〜(75,40)」とに割り当てられている。すなわち、隣接する配置位置に同一の指示の種類が割り当てられている。よって、隣接する配置位置に同一の指示の種類が割り当てられたと判断される(S26:YES)。   Next, in the area data table 97, since the item name “Sandwich_ ¥ 300” has already been allocated to the arrangement positions “(0, 0) to (75, 20)”, it is the same as the type of instruction newly allocated in S24. Is determined to be assigned (S25: YES). As shown in FIG. 13B, the same item name “Sandwich_ ¥ 300” has the arrangement positions “(0, 0) to (75, 20)” and “(0, 21) to (75, 40)”. Assigned to. That is, the same instruction type is assigned to adjacent arrangement positions. Therefore, it is determined that the same instruction type is assigned to the adjacent arrangement position (S26: YES).

次いで、図13(B)に示す項目名「Sandwich_¥300」に対応付けられた2つの配置位置「(0,0)〜(75,20)」と「(0,21)〜(75,40)」とが繋げられる(S27)。これによって、図13(C)に示すように項目名「Sandwich_¥300」に配置位置「(0,0)〜(75,40)」が対応付けられた状態となる。次いで、処理はS29に進み、変数Nが「3」に設定される。   Next, two arrangement positions “(0, 0) to (75, 20)” and “(0, 21) to (75, 40) associated with the item name“ Sandwich_ ¥ 300 ”shown in FIG. ) ”Is connected (S27). As a result, as shown in FIG. 13C, the arrangement position “(0, 0) to (75, 40)” is associated with the item name “Sandwich_ ¥ 300”. Next, the process proceeds to S29, and the variable N is set to “3”.

変数Nが「3」の場合」、領域番号「A3」に対応付けられたレコード名「T003」が特定される(S23)。そして、図13(D)の領域データテーブル97に示すように、項目名「Sandwich_¥250」が領域番号「A3」の配置位置「(0,41)〜(75,60)」に割り当てられる(S24)。   When the variable N is “3”, the record name “T003” associated with the area number “A3” is specified (S23). Then, as shown in the area data table 97 of FIG. 13D, the item name “Sandwich_ ¥ 250” is assigned to the arrangement positions “(0, 41) to (75, 60)” of the area number “A3” ( S24).

次いで、領域データテーブル97では、項目名「Sandwich_¥250」は割り当てられていないので、S24で新たに割り当てられた指示の種類と同一の指示の種類が割り当てられていないと判断される(S25:NO)。次いで、変数Nが「4」に設定される(S29)。図13(E)に示すように、項目名「Apple Pie_100」が配置位置「(0,61)〜(75,80)」に割り当てられる(S24)。そして、S24で割り当てられた指示の種類と同一の指示の種類が割り当てられていないと判断され(S25:NO)、変数Nが「5」に設定される。この場合、変数N「5」が領域リスト96に登録されているレコード名の数より大きいと判断され(S30:YES)、領域データテーブル97(図13(E)参照)に基づいて分割領域75が設定(決定)される(S31)。これによって、ユーザが分割領域75を操作した場合に、項目名に対応するデータベース95のキャラクタがテンプレートデータ82の印字位置821に配置されて印字の処理が実行される状態に設定される。   Next, in the area data table 97, since the item name “Sandwich_ ¥ 250” is not assigned, it is determined that the same instruction type as the instruction type newly assigned in S24 is not assigned (S25: NO). Next, the variable N is set to “4” (S29). As shown in FIG. 13E, the item name “Apple Pie_100” is assigned to the arrangement positions “(0, 61) to (75, 80)” (S24). Then, it is determined that the same instruction type as that assigned in S24 is not assigned (S25: NO), and the variable N is set to “5”. In this case, it is determined that the variable N “5” is larger than the number of record names registered in the area list 96 (S30: YES), and the divided area 75 is based on the area data table 97 (see FIG. 13E). Is set (determined) (S31). Thus, when the user operates the divided area 75, the character of the database 95 corresponding to the item name is placed at the print position 821 of the template data 82, and the print process is executed.

第二実施形態の場合、図10に示すように、操作領域76における配置位置「(0,0)〜(75,40)」に項目名「Sandwich_¥300」についての分割領域753が設定される。また、配置位置「(0,41)〜(75,60)」に項目名「Sandwich_¥250」についての分割領域754が設定される。また、配置位置「(0,61)〜(75,80)」に「Apple Pie」についての分割領域755が設定される。なお、S28が実行される場合、項目名が変更される。   In the case of the second embodiment, as shown in FIG. 10, a divided area 753 for the item name “Sandwich_ ¥ 300” is set at the arrangement positions “(0, 0) to (75, 40)” in the operation area 76. . In addition, a divided region 754 for the item name “Sandwich_ ¥ 250” is set at the arrangement positions “(0, 41) to (75, 60)”. In addition, a divided area 755 for “Apple Pie” is set at the arrangement positions “(0, 61) to (75, 80)”. When S28 is executed, the item name is changed.

次いで、領域分割処理が終了され、処理はメイン処理に戻る。S31で設定された分割領域75が操作され、印字の指示が入力された場合(S14:YES)、印字が実行される(S15)。S15では、テンプレートデータ82の印字位置821に、データベース95に登録されているキャラクタが配置されて印字が行われる。例えば、分割領域753が操作された場合、テンプレートデータ82の印字位置821のProductに「Sandwich」が配置され、Priceに「¥300」が配置された印字媒体531が作成される。また、分割領域754が操作された場合、テンプレートデータ82の印字位置821のProductに「Sandwich」が配置され、Priceに「¥250」が配置された印字媒体532が作成される。また、分割領域755が操作された場合、テンプレートデータ82の印字位置821のProductに「Apple Pie」が配置され、Priceに「¥100」が配置された印字媒体533が作成される。このように、分割領域75が操作された場合に、指示の種類に応じた処理が行われる。   Next, the area division process is terminated, and the process returns to the main process. When the divided area 75 set in S31 is operated and a printing instruction is input (S14: YES), printing is executed (S15). In S15, the character registered in the database 95 is arranged at the printing position 821 of the template data 82 and printing is performed. For example, when the divided area 753 is operated, the print medium 531 in which “Sandwich” is arranged in the product of the print position 821 of the template data 82 and “¥ 300” is arranged in the price is created. Further, when the divided area 754 is operated, a print medium 532 in which “Sandwich” is arranged in the product of the print position 821 of the template data 82 and “¥ 250” is arranged in the price is created. Further, when the divided area 755 is operated, a print medium 533 in which “Apple Pie” is arranged in the product of the print position 821 of the template data 82 and “¥ 100” is arranged in the price is created. Thus, when the divided area 75 is operated, processing according to the type of instruction is performed.

以上のように、第一、第二実施形態における処理が行われる。第一、第二実施形態では、S11によって取得された指示の種類ごとの数に応じた面積で、操作領域76の全体を指示の種類ごとに分割することができる(図3及び図10参照)。操作領域76全体を分割領域75に分割することができるので、操作領域76全体を有効活用することができる。   As described above, the processing in the first and second embodiments is performed. In the first and second embodiments, the entire operation region 76 can be divided for each type of instruction with an area corresponding to the number for each type of instruction acquired in S11 (see FIGS. 3 and 10). . Since the entire operation area 76 can be divided into divided areas 75, the entire operation area 76 can be used effectively.

第一、第二実施形態では、S21、S24、S26、S27、及びS31によって、操作領域76内で分割領域75の配置位置を決定できる。ここで、例えば、S27で配置位置が繋げられない場合、隣接する配置位置に同一の指示の種類が割り当てられても、隣接する配置位置が別個の分割領域75に設定される。この場合、隣接する分割領域75の境界部分をユーザが操作することで、隣接する分割領域75の両方が同時に操作される場合がある。この場合、2つの分割領域75が同時に操作されるので、例えば、CPU201は、操作をキャンセルするか、同じ指示の種類が2回入力されたとみなして2回の処理を行う場合がある。すなわち、ユーザは、隣接する分割領域75の境界部分では正常に指示を入力できない。   In the first and second embodiments, the arrangement position of the divided area 75 can be determined in the operation area 76 by S21, S24, S26, S27, and S31. Here, for example, when the arrangement positions are not connected in S <b> 27, the adjacent arrangement positions are set to separate divided regions 75 even if the same instruction type is assigned to the adjacent arrangement positions. In this case, when the user operates the boundary portion between the adjacent divided regions 75, both of the adjacent divided regions 75 may be operated simultaneously. In this case, since the two divided areas 75 are operated at the same time, for example, the CPU 201 may cancel the operation or perform the process twice assuming that the same instruction type is input twice. That is, the user cannot normally input an instruction at the boundary portion between the adjacent divided regions 75.

第一、第二実施形態では、隣接する配置位置に同一の指示の種類が割り当てられた場合、隣接する配置位置が繋げられ(S27)、分割領域27が設定される(S31)。このため、前記境界部分が無くなり、ユーザは、境界部分であった部分を操作して正常に指示を入力することできるようになる。すなわち、ユーザが分割領域75を操作して正常に指示を入力できる面積を大きくすることができる。   In the first and second embodiments, when the same instruction type is assigned to the adjacent arrangement position, the adjacent arrangement positions are connected (S27), and the divided region 27 is set (S31). For this reason, the boundary portion disappears, and the user can input a normal instruction by operating the portion that was the boundary portion. That is, an area where the user can normally input an instruction by operating the divided region 75 can be increased.

また、同一の指示の種類がS24で割り当てられても、隣接しなければ、S27は実行されず、配置位置が繋げられない(S26:NO)。このように、ユーザは指示の種類を隣接させて繋げる場合と、隣接させずに別個の領域とする場合とを使い分けることができる。   Even if the same instruction type is assigned in S24, if it is not adjacent, S27 is not executed and the arrangement position is not connected (S26: NO). In this way, the user can selectively use the case where the types of instructions are connected adjacent to each other and the case where the types of instructions are not adjacent to each other and are separated.

第一実施形態では、ユーザがテンプレートデータリスト92(図5参照)で指定したテンプレートデータ8が取得され(S11:YES)、分割領域75が設定されている。ユーザは、指示の種類ごとに異なるテンプレートデータ80,81を作成し、テンプレートデータリスト92にテンプレートデータ80,81を登録する。このとき、ユーザはテンプレートデータリスト92に登録するテンプレートデータ80の数をテンプレートデータ81の数より多くする。これによって、テンプレートデータ80に基づく印字を実行するための分割領域751(図3参照)が大きくなるように調整している。このように、ユーザは、テンプレートデータ8の数を指示の種類ごとに調整することで、繋げられる配置位置の数を調整することができる。また、3つの配置位置を繋げて分割領域751が設定されるので、3つの分割領域75が設定される場合に比べて、分割領域751を操作して正常に指示を入力できる面積が大きくなる。よって、ユーザは分割領域751を操作し易くなる。   In the first embodiment, the template data 8 specified by the user in the template data list 92 (see FIG. 5) is acquired (S11: YES), and the divided area 75 is set. The user creates different template data 80 and 81 for each type of instruction, and registers the template data 80 and 81 in the template data list 92. At this time, the user makes the number of template data 80 registered in the template data list 92 larger than the number of template data 81. Thus, adjustment is made so that the divided area 751 (see FIG. 3) for executing printing based on the template data 80 becomes larger. Thus, the user can adjust the number of arrangement positions to be connected by adjusting the number of template data 8 for each type of instruction. In addition, since the divided area 751 is set by connecting the three arrangement positions, the area where the instruction can be normally input by operating the divided area 751 is larger than in the case where the three divided areas 75 are set. Therefore, the user can easily operate the divided area 751.

第二実施形態では、ユーザがデータベース95で指定したキャラクタが取得され(S11:YSE)、分割領域75が設定されている。ユーザは、指示の種類ごとに異なるキャラクタが登録されたキャラクタをデータベース95に登録する。このとき、ユーザは、データベース95に登録するキャラクタ「Sandwich」及び「¥300」の組み合わせの数を、他のキャラクタの組み合わせの数より多くする。これによって、キャラクタ「Sandwich」及び「¥300」を印字位置821に配置して印字を実行するための分割領域753(図10参照)が大きくなるように調整している。このように、ユーザは、データベース95に登録するキャラクタの数を指示の種類ごとに調整することで、繋げられる配置位置の数を調整することができる。また、2つの配置位置を繋げて分割領域753が設定されるので、2つの分割領域75が設定される場合に比べて、分割領域753を操作して正常に指示を入力できる面積が大きくなる。よって、ユーザは分割領域753を操作し易くなる。   In the second embodiment, the character specified by the user in the database 95 is acquired (S11: YSE), and the divided area 75 is set. The user registers in the database 95 a character in which a different character is registered for each type of instruction. At this time, the user increases the number of combinations of the characters “Sandwich” and “¥ 300” registered in the database 95 more than the number of combinations of other characters. As a result, the character “Sandwich” and “¥ 300” are arranged at the print position 821 and the divided area 753 (see FIG. 10) for executing printing is adjusted to be large. Thus, the user can adjust the number of arrangement positions to be connected by adjusting the number of characters registered in the database 95 for each type of instruction. In addition, since the divided area 753 is set by connecting two arrangement positions, the area where the instruction can be normally input by operating the divided area 753 is larger than in the case where the two divided areas 75 are set. Therefore, the user can easily operate the divided area 753.

また、図3及び図10に示すように、設定された分割領域75と同じ面積になるように、シート6にキーを描けば、繋げられた分割領域751(図3参照)と、分割領域753(図10参照)とに対応するキーが大きくなる。よって、キー5の視認性が向上し、ユーザはさらに分割領域753を操作し易くなる。   Further, as shown in FIGS. 3 and 10, if a key is drawn on the sheet 6 so as to have the same area as the set divided area 75, a connected divided area 751 (see FIG. 3) and a divided area 753 are drawn. The key corresponding to (see FIG. 10) becomes larger. Therefore, the visibility of the key 5 is improved, and the user can more easily operate the divided area 753.

上記実施形態において、入力装置2が本発明の「操作領域作成装置」に相当する。S11の処理を行うCPU201が本発明の「指示種類取得手段」に相当する。S13の処理を行うCPU201が本発明の「分割手段」に相当する。S15の処理を行うCPU201が本発明の「処理実行手段」に相当する。S21の処理を行うCPU201が本発明の「配置位置決定手段」に相当する。S24の処理を行うCPU201が本発明の「割当手段」に相当する。S26の処理を行うCPU201が本発明の「隣接判断手段」に相当する。S27及びS31の処理を行うCPU201が本発明の「接続手段」に相当する。S21、S24、S26、S27、及びS31の処理を行うCPU201が本発明の「配置手段」に相当する。   In the above embodiment, the input device 2 corresponds to the “operation area creation device” of the present invention. The CPU 201 that performs the processing of S11 corresponds to the “instruction type acquisition unit” of the present invention. The CPU 201 that performs the process of S13 corresponds to the “dividing means” of the present invention. The CPU 201 that performs the process of S15 corresponds to the “process execution unit” of the present invention. The CPU 201 that performs the process of S21 corresponds to the “arrangement position determining means” of the present invention. The CPU 201 that performs the process of S24 corresponds to the “assignment unit” of the present invention. The CPU 201 that performs the process of S26 corresponds to the “adjacent determination unit” of the present invention. The CPU 201 that performs the processes of S27 and S31 corresponds to the “connection unit” of the present invention. The CPU 201 that performs the processes of S21, S24, S26, S27, and S31 corresponds to the “arranging unit” of the present invention.

なお、本発明は上記の実施形態に限定されるものではなく、種々の変更が可能である。例えば、隣接する配置位置は、2つの配置位置同士の座標が連続する部分がある位置関係の配置位置であったが、これに限定されない。例えば、2つの配置位置同士の間に隙間(操作しても反応しない領域)が設けられている場合もある。この場合には、1つの配置位置と、1つの配置位置から隙間を跨いでX方向側にある配置位置とを、隣接する配置位置としてもよい。また、1つの配置位置と、1つの配置位置から隙間を跨いでY方向側にある配置位置とを、隣接する配置位置としてもよい。この例の場合、S27で同一の指示の種類が割り当てられた隣接する配置位置同士が繋げられると、隣接する配置位置同士の間にある隙間(操作しても反応しない領域)がなくなり、指示の種類が割り当てられた分割領域75の面積が大きくなる。よって、ユーザが分割領域75を操作して正常に指示を入力できる面積がさらに大きくなる。   In addition, this invention is not limited to said embodiment, A various change is possible. For example, the adjacent arrangement position is an arrangement position having a positional relationship in which there is a portion where the coordinates of the two arrangement positions are continuous, but is not limited thereto. For example, a gap (a region that does not react even if operated) may be provided between two arrangement positions. In this case, one arrangement position and an arrangement position on the X direction side across the gap from one arrangement position may be set as adjacent arrangement positions. One arrangement position and an arrangement position on the Y direction side across a gap from one arrangement position may be set as adjacent arrangement positions. In the case of this example, when adjacent arrangement positions to which the same instruction type is assigned in S27 are connected, there is no gap (an area that does not react even if operated) between the adjacent arrangement positions. The area of the divided region 75 to which the type is assigned increases. Therefore, the area where the user can normally input an instruction by operating the divided area 75 is further increased.

第一実施形態では、テンプレートデータリスト92がPC3から送信されて、S11で取得されていたが、これに限定されない。例えば、テンプレートデータ8をリスト状にしなくてもよい。この場合、テンプレート名、テンプレートデータ、及び領域番号を組み合わせた個々のデータを複数回に分けてPC3から入力装置2に送信してもよい。同様に、第二実施形態において、キャラクタをデータベース95に登録しなくてもよい。個々のキャラクタを複数回に分けてPC3から入力装置2に送信してもよい。   In the first embodiment, the template data list 92 is transmitted from the PC 3 and acquired in S11. However, the present invention is not limited to this. For example, the template data 8 need not be in a list form. In this case, individual data combining the template name, template data, and area number may be divided into a plurality of times and transmitted from the PC 3 to the input device 2. Similarly, in the second embodiment, the character need not be registered in the database 95. Each character may be divided into a plurality of times and transmitted from the PC 3 to the input device 2.

また、S11で指示の種類の指定が入力される操作を検出することで、指示の種類ごとに1又は複数指定される指示の種類が取得されてもよい。例えば、入力装置2はテンプレートデータ80とテンプレートデータ81とを予めフラッシュメモリ203に記憶しておく。PC3のディスプレイ307には、テンプレートデータ80をマウスのクリック操作で指定するための画像(以下、第一画像という。)と、テンプレートデータ81をマウスのクリック操作で指定するための画像(以下、第二画像という。)とが表示される。例えば、ユーザが、第一画像を3回クリック操作し、第二画像を1回クリック操作したとする。PC3はクリック操作される度に、第一画像と第二画像とのどちらがクリック操作されたのかを示す情報(以下、クリック操作情報という)を入力装置2に送信する。入力装置2は、クリック操作情報を受信することで、指示の種類の指定が入力されたクリック操作を検出することができる。(S11)。   Further, by detecting an operation in which the designation of the instruction type is input in S11, one or a plurality of instruction types designated for each instruction type may be acquired. For example, the input device 2 stores template data 80 and template data 81 in the flash memory 203 in advance. On the display 307 of the PC 3, an image for designating the template data 80 by a mouse click operation (hereinafter referred to as a first image) and an image for designating the template data 81 by a mouse click operation (hereinafter referred to as a first image). Are called two images). For example, it is assumed that the user clicks the first image three times and clicks the second image once. Each time the PC 3 performs a click operation, the PC 3 transmits information indicating which of the first image and the second image is clicked (hereinafter referred to as click operation information) to the input device 2. By receiving the click operation information, the input device 2 can detect the click operation in which the designation of the instruction type is input. (S11).

そして、クリック操作がされた順番で領域リストを作成する(S12)。第一画像が3回クリック操作され、第二画像が1回クリック操作されているため、図7の領域リスト93が作成される。そして、領域リスト93と、フラッシュメモリ203に記憶されているテンプレートデータ80,81とに基づいて、分割領域が設定される(S31)。この変形例の場合、ユーザは指示の種類を指定する操作の回数(第一画像と第二画像とをクリック操作する回数)を調整することで、分割領域75の面積を調整することができる。   Then, an area list is created in the order in which the click operation is performed (S12). Since the first image is clicked three times and the second image is clicked once, the area list 93 of FIG. 7 is created. Then, based on the area list 93 and the template data 80 and 81 stored in the flash memory 203, a divided area is set (S31). In the case of this modification, the user can adjust the area of the divided region 75 by adjusting the number of operations for specifying the type of instruction (the number of click operations for the first image and the second image).

また、入力装置2は印字を実行するための構成を備え、指示の種類は「印字の実行」であったが、これに限定されない。例えば、入力装置2はカーナビゲーション装置であってもよい。この場合、指示の種類は「行き先設定」、「音楽再生」、及び「周辺施設検索」等であってもよい。この場合でも、ユーザは指定する指示の種類の数を調整することで、「行き先設定」、「音楽再生」、及び「周辺施設検索」の分割領域の面積を調整することができる。   The input device 2 has a configuration for executing printing, and the type of instruction is “execution of printing”, but is not limited thereto. For example, the input device 2 may be a car navigation device. In this case, the type of instruction may be “destination setting”, “music playback”, “surrounding facility search”, and the like. Even in this case, the user can adjust the area of the divided areas of “destination setting”, “music playback”, and “surrounding facility search” by adjusting the number of types of instructions to be designated.

また、タッチパッド207に操作領域76が設定され、分割領域75が作成されていたが、これに限定されない。例えば、操作領域76は、キーボード上の複数並んだキーでもよい。そして、S11で取得される指示の種類ごとの数に応じた面積になるようにキーボード上のキーを分割領域75に割り当ててもよい。例えば、キーボードは、上下方向に4個、左右方向に5個の合計20のキーを備えているとする。そして、図5に示すテンプレートデータリスト92が取得されたとする(S11:YES)。この場合、S31で設定される分割領域は、上側3個分、左右方向に5個分のキーを「テンプレートデータ80に基づく印字の実行指示」を行う分割領域に設定し、下側1個分、左右方向の5個分のキーを「テンプレートデータ81に基づく印字の実行指示」を行う分割領域に設定してもよい。   Further, although the operation area 76 is set on the touch pad 207 and the divided area 75 is created, the present invention is not limited to this. For example, the operation area 76 may be a plurality of keys arranged on the keyboard. Then, the keys on the keyboard may be assigned to the divided area 75 so that the area corresponds to the number of the types of instructions acquired in S11. For example, it is assumed that the keyboard has a total of 20 keys, four in the vertical direction and five in the horizontal direction. Then, it is assumed that the template data list 92 shown in FIG. 5 is acquired (S11: YES). In this case, the divided area set in S31 is set to the divided area for performing the “print execution instruction based on the template data 80” for the upper three keys and the five keys in the left-right direction. Alternatively, five keys in the left-right direction may be set in a divided area where “print execution instruction based on template data 81” is performed.

また、S28でテンプレート名又は項目名が変更されていたが、これに限定されない。例えば、テンプレート名又は項目名は変更されなくてもよい。また、隣接する配置位置に同一の指示の種類が割り当てられたと判断された場合に(S26:YES)、同一の指示の種類が割り当てられた配置位置同士が繋げられていたが(S27)、これに限定されない。例えば、隣接しなくても、同一の指示の種類が割り当てられた場合は、配置位置をより大きい面積にして、分割領域75をより大きくしてもよい。   Moreover, although the template name or the item name was changed in S28, it is not limited to this. For example, the template name or the item name may not be changed. Further, when it is determined that the same instruction type is assigned to the adjacent arrangement position (S26: YES), the arrangement positions to which the same instruction type is assigned are connected (S27). It is not limited to. For example, if the same instruction type is assigned even if they are not adjacent to each other, the arrangement position may be set to a larger area, and the divided region 75 may be made larger.

2 入力装置
8,80〜82 テンプレートデータ
50,521,522,531,532,533 印字媒体
75 分割領域
76,751〜755 操作領域
92 テンプレートデータリスト
95 データベース
821 印字位置
2 Input device 8, 80-82 Template data 50, 521, 522, 531, 532, 533 Print medium 75 Divided area 76, 751-755 Operation area 92 Template data list 95 Database 821 Print position

Claims (6)

操作領域に割り当てる指示の種類ごとに1又は複数指定される前記指示の種類を取得する指示種類取得手段と、
前記指示種類取得手段によって取得された前記指示の種類ごとの数に応じた面積で、前記操作領域の全体を前記指示の種類ごとに分割した分割領域を設定する分割手段と、
前記分割手段によって分割された前記分割領域が操作された場合に前記指示の種類に対応する処理を行う処理実行手段と
を備えたことを特徴とする操作領域作成装置。
An instruction type acquisition means for acquiring one or more specified instruction types for each instruction type assigned to the operation area;
A dividing unit configured to set a divided region obtained by dividing the entire operation region for each type of instruction with an area corresponding to the number of each type of instruction acquired by the instruction type acquiring unit;
An operation area creating apparatus comprising: a process executing unit that performs a process corresponding to the type of instruction when the divided area divided by the dividing unit is operated.
前記分割手段は、前記操作領域内で前記分割領域の配置位置を決定する配置手段を備えることを特徴とする請求項1に記載の操作領域作成装置。   The operation area creating apparatus according to claim 1, wherein the dividing unit includes an arrangement unit that determines an arrangement position of the divided area in the operation area. 前記配置手段は、
前記指示種類取得手段によって取得された前記指示の種類ごとに1又は複数指定される前記指示の種類の合計の数から、前記合計の数に応じた複数の前記配置位置を決定する配置位置決定手段と、
前記配置位置決定手段によって決定された前記複数の配置位置に、前記指示種類取得手段によって取得された前記指示の種類を割り当てる割当手段と、
前記割当手段によって前記指示の種類が割り当てられた場合に、隣接する前記配置位置に同一の前記指示の種類が割り当てられたか否かを判断する隣接判断手段と、
前記隣接判断手段によって隣接する配置位置に同一の前記指示の種類が割り当てられたと判断された場合に、同一の前記指示の種類が割り当てられた前記配置位置同士を繋げて1つの前記分割領域として決定する接続手段と
を備えたことを特徴とする請求項2に記載の操作領域作成装置。
The arrangement means includes
Arrangement position determining means for determining a plurality of arrangement positions according to the total number from the total number of the instruction types designated by one or a plurality for each instruction type acquired by the instruction type acquisition means. When,
Allocating means for allocating the instruction type acquired by the instruction type acquiring means to the plurality of arrangement positions determined by the arrangement position determining means;
Adjacency determination means for determining whether or not the same instruction type is assigned to the adjacent arrangement position when the instruction type is assigned by the assignment means;
When it is determined by the adjacency determination means that the same instruction type is assigned to adjacent arrangement positions, the arrangement positions to which the same instruction type is assigned are connected to be determined as one divided region. The operation area creating apparatus according to claim 2, further comprising a connection unit configured to connect.
前記指示種類取得手段は、印字媒体上のキャラクタの印字位置が設定されたデータであるテンプレートデータであって前記指示の種類ごとに異なるテンプレートデータを取得することで、前記指示の種類ごとに1又は複数指定される前記指示の種類を取得することを特徴とする請求項1から3のいずれかに記載の操作領域作成装置。   The instruction type obtaining means obtains template data that is data in which a character print position on a print medium is set and is different for each instruction type, so that one or more of each instruction type is obtained. The operation area creating apparatus according to claim 1, wherein a plurality of types of instructions designated are acquired. 前記指示種類取得手段は、印字媒体上のキャラクタの印字位置が設定されたデータであるテンプレートデータの前記印字位置に配置する前記キャラクタであって前記指示の種類ごとに異なる前記キャラクタが登録されたデータベースを取得することで、前記指示の種類ごとに1又は複数指定される前記指示の種類を取得することを特徴とする請求項1から3のいずれかに記載の操作領域作成装置。   The instruction type acquisition means is a database in which the character that is arranged at the print position of template data, which is data in which the print position of the character on the print medium is set, is registered for each of the instruction types. The operation region creating apparatus according to claim 1, wherein one or a plurality of instruction types specified for each instruction type is acquired. 前記指示種類取得手段は、前記指示の種類の指定が入力される操作を検出することで、前記指示の種類ごとに1又は複数指定される前記指示の種類を取得することを特徴とする請求項1から3のいずれかに記載の操作領域作成装置。   The instruction type acquisition unit acquires one or more specified instruction types for each instruction type by detecting an operation in which the instruction type specification is input. The operation region creation device according to any one of 1 to 3.
JP2012256163A 2012-11-22 2012-11-22 Operation area creation device Active JP5920187B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012256163A JP5920187B2 (en) 2012-11-22 2012-11-22 Operation area creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012256163A JP5920187B2 (en) 2012-11-22 2012-11-22 Operation area creation device

Publications (2)

Publication Number Publication Date
JP2014102793A JP2014102793A (en) 2014-06-05
JP5920187B2 true JP5920187B2 (en) 2016-05-18

Family

ID=51025221

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012256163A Active JP5920187B2 (en) 2012-11-22 2012-11-22 Operation area creation device

Country Status (1)

Country Link
JP (1) JP5920187B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6565621B2 (en) * 2015-11-13 2019-08-28 コニカミノルタ株式会社 Image forming apparatus, image forming system, and image forming method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2601942B2 (en) * 1990-10-31 1997-04-23 株式会社 寺岡精工 Sales registration device
JP3932819B2 (en) * 2001-03-28 2007-06-20 カシオ計算機株式会社 Sales data processing device, sales data processing method, and program
JP3969284B2 (en) * 2002-11-08 2007-09-05 ブラザー工業株式会社 Printing system, data creation device, printing device, program, and recording medium for recording the program
JP4037378B2 (en) * 2004-03-26 2008-01-23 シャープ株式会社 Information processing apparatus, image output apparatus, information processing program, and recording medium
JP4609242B2 (en) * 2005-08-30 2011-01-12 株式会社デンソー Operation control device
JP2009244925A (en) * 2008-03-28 2009-10-22 Fujitsu Ltd Pointing device function setting device and its method
JP5323512B2 (en) * 2009-01-28 2013-10-23 京セラ株式会社 Input device
JPWO2011145276A1 (en) * 2010-05-20 2013-07-22 パナソニック株式会社 Operating device, operating method, program, recording medium, and integrated circuit

Also Published As

Publication number Publication date
JP2014102793A (en) 2014-06-05

Similar Documents

Publication Publication Date Title
JP2013545157A (en) Method for configuring a graphical user interface
JP2010165300A (en) Item setting device, and control method and control program therefor
JP5967376B2 (en) Display device, image forming apparatus, and display control program
JP2002214972A (en) Display device, display method and image forming device
JP2017091328A (en) Information processing apparatus and information processing program
WO2011125642A1 (en) Image display device, image display method, and image display program
JP5920187B2 (en) Operation area creation device
JP2017204209A (en) Selection program and selection apparatus
JP5954135B2 (en) Print data creation device
JP2017174248A (en) Information processing apparatus and information processing program
JP6070104B2 (en) Print data creation device
JP2020135378A (en) Control program and information processing device
JP2000020829A (en) Label issuing machine
JP5627915B2 (en) Computer program for producing a product using multiple devices
JP6544224B2 (en) Layout data creation apparatus, layout data creation method and layout data creation program
JP2018006937A (en) Image forming apparatus
JP7089220B2 (en) Control programs and information processing equipment
JP2009187218A (en) Input display device.
JP6702031B2 (en) Information processing system and information processing program
JP2016040678A (en) Display device and display program
JP7456427B2 (en) Print data creation method, information processing device, and program
WO2014047031A2 (en) System for creating and/or editing a code
JP6565145B2 (en) Processing method, processing apparatus, and program
US10168970B2 (en) Print layout generating device, and non-transitory storage medium storing computer-readable instructions to generate print layout
JP2021133551A (en) Printing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150320

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150513

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160217

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: 20160315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160328

R150 Certificate of patent or registration of utility model

Ref document number: 5920187

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150