JP2022148603A - Printing data creation program and information processing device - Google Patents

Printing data creation program and information processing device Download PDF

Info

Publication number
JP2022148603A
JP2022148603A JP2021050348A JP2021050348A JP2022148603A JP 2022148603 A JP2022148603 A JP 2022148603A JP 2021050348 A JP2021050348 A JP 2021050348A JP 2021050348 A JP2021050348 A JP 2021050348A JP 2022148603 A JP2022148603 A JP 2022148603A
Authority
JP
Japan
Prior art keywords
cell
print data
creation program
data creation
cells
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
JP2021050348A
Other languages
Japanese (ja)
Inventor
聡輝 長尾
Satoki Nagao
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 JP2021050348A priority Critical patent/JP2022148603A/en
Publication of JP2022148603A publication Critical patent/JP2022148603A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

To provide a printing data creation program capable of associating a field with an object by using an inputted text.SOLUTION: According to this disclosure, a printing data creation program makes a control part of an information processing device execute reception processing, detection processing, association processing, and printing processing. The reception processing receives an input of a text to an object. The detection processing detects candidate cells including the inputted text from a database. The association processing stores a column including specific cells selected from the candidate cells as a field corresponding to the object. The printing processing outputs printing data obtained by inserting text data of a cell of a printing object among the cells included in the field into the object to a printer.SELECTED DRAWING: Figure 10

Description

本開示は、印刷データ作成プログラム及び情報処理装置に関する。 The present disclosure relates to a print data creation program and an information processing apparatus.

テキストデータが行列状に配置されたデータベースを参照して、印刷データの作成と、印刷装置への印刷データの出力とを連続的に行う印刷データ編集装置が公知である(特許文献1参照)。 2. Description of the Related Art There is known a print data editing device that continuously creates print data and outputs the print data to a printing device by referring to a database in which text data are arranged in rows and columns (see Patent Document 1).

この装置では、データベースから表示画面のオブジェクトに挿入するフィールドを選択することで、選択されたフィールドに含まれるテキストデータがオブジェクトに挿入される。 In this device, by selecting a field to be inserted into the object on the display screen from the database, the text data contained in the selected field is inserted into the object.

特開2019-051657号公報JP 2019-051657 A

上述の装置におけるオブジェクトに対するデータベースのフィールドの対応付けでは、候補となるフィールドの表示、フィールドの選択及び決定といった操作ステップが必要である。 The mapping of database fields to objects in the devices described above requires the operational steps of displaying candidate fields, selecting fields, and determining fields.

本開示の一局面は、入力されたテキストを用いてオブジェクトへのフィールドの対応付けが可能な印刷データ作成プログラムを提供することを目的とする。 An object of one aspect of the present disclosure is to provide a print data creation program capable of associating fields with objects using input text.

本開示の一態様は、制御部と、表示部と、入力部と、テキストデータで構成されるセルの行列として記述されたデータベースが記憶された記憶部と、印刷装置と通信するように構成された通信部とを備える情報処理装置の制御部に、受付処理と、検出処理と、対応付け処理と、印刷処理と、を実行させる印刷データ作成プログラムである。 One aspect of the present disclosure is configured to communicate with a control unit, a display unit, an input unit, a storage unit storing a database described as a matrix of cells composed of text data, and a printing device. A print data creation program that causes a control unit of an information processing apparatus including a communication unit to execute reception processing, detection processing, association processing, and print processing.

受付処理では、表示部に表示されたオブジェクトに対する、入力部によるテキストの入力を受け付ける。検出処理では、データベースから、オブジェクトに入力されたテキストの少なくとも一部を含む少なくとも1つの候補セルを検出する。 In the reception process, a text input by the input unit is received for the object displayed on the display unit. The detection process detects from the database at least one candidate cell containing at least a portion of the text entered into the object.

対応付け処理では、少なくとも1つの候補セルから選択された特定セルが含まれるデータベース内の列を、オブジェクトに対応したフィールドとして記憶する。印刷処理では、フィールドに含まれるセルのうち、印刷対象のセルのテキストデータをオブジェクトにそれぞれ挿入した印刷データを印刷装置に出力する。 In the matching process, the column in the database containing the particular cell selected from the at least one candidate cell is stored as the field corresponding to the object. In the print process, print data in which the text data of the cells to be printed out of the cells included in the field are inserted into objects is output to the printer.

本開示の別の態様は、制御部と、表示部と、入力部と、テキストデータで構成されるセルの行列として記述されたデータベースが記憶された記憶部と、印刷装置と通信するように構成された通信部と、を備える情報処理装置である。制御部は、受付処理と、検出処理と、対応付け処理と、印刷処理と、を実行するように構成される。 Another aspect of the present disclosure is configured to communicate with a control unit, a display unit, an input unit, a storage unit storing a database described as a matrix of cells composed of text data, and a printing device. and a communication unit configured as an information processing apparatus. The control unit is configured to execute an acceptance process, a detection process, an association process, and a print process.

受付処理では、表示部に表示されたオブジェクトに対する、入力部によるテキストの入力を受け付ける。検出処理では、データベースから、オブジェクトに入力されたテキストの少なくとも一部を含む少なくとも1つの候補セルを検出する。 In the reception process, a text input by the input unit is received for the object displayed on the display unit. The detection process detects from the database at least one candidate cell containing at least a portion of the text entered into the object.

対応付け処理では、少なくとも1つの候補セルから選択された特定セルが含まれるデータベース内の列を、オブジェクトに対応したフィールドとして記憶する。印刷処理では、フィールドに含まれるセルのうち、印刷対象のセルのテキストデータをオブジェクトにそれぞれ挿入した印刷データを印刷装置に出力する。 In the matching process, the column in the database containing the particular cell selected from the at least one candidate cell is stored as the field corresponding to the object. In the print process, print data in which the text data of the cells to be printed out of the cells included in the field are inserted into objects is output to the printer.

これらのような構成によれば、オブジェクトに入力されたテキストに基づいたオブジェクトへのフィールドの対応付けが可能となる。そのため、印刷データ作成のステップ数の削減、テキストによるフィールドの検索機能、ユーザーに対する入力ガイド機能等の付加価値を情報処理装置に与え得ることができる。 Configurations such as these allow the association of fields to objects based on the text entered into the object. Therefore, it is possible to provide the information processing apparatus with added values such as a reduction in the number of steps for creating print data, a text field search function, and an input guide function for the user.

図1は、実施形態における画像処理システムを示す模式的な構成図である。FIG. 1 is a schematic configuration diagram showing an image processing system according to an embodiment. 図2は、実施形態におけるデータベースの一例を示す模式図である。FIG. 2 is a schematic diagram showing an example of a database in the embodiment. 図3は、図1の情報処理装置に表示されるプレビュー画面とデータベース選択画面との一例を示す模式図である。FIG. 3 is a schematic diagram showing an example of a preview screen and a database selection screen displayed on the information processing apparatus of FIG. 図4は、図1の情報処理装置に表示されるプレビュー画とデータベース表示画面との一例を示す模式図である。FIG. 4 is a schematic diagram showing an example of a preview image and a database display screen displayed on the information processing apparatus of FIG. 図5は、図1の情報処理装置に表示されるプレビュー画とデータベース表示画面との一例を示す模式図である。FIG. 5 is a schematic diagram showing an example of a preview image and a database display screen displayed on the information processing apparatus of FIG. 図6は、図1の情報処理装置に表示されるプレビュー画とデータベース表示画面との一例を示す模式図である。FIG. 6 is a schematic diagram showing an example of a preview image and a database display screen displayed on the information processing apparatus of FIG. 図7は、図1の情報処理装置に表示されるプレビュー画とデータベース表示画面との一例を示す模式図である。FIG. 7 is a schematic diagram showing an example of a preview image and a database display screen displayed on the information processing apparatus of FIG. 図8A、図8B、図8C、図8D及び図8Eは、データベース表示画面におけるセルの強調表示の一例を示す模式図である。8A, 8B, 8C, 8D, and 8E are schematic diagrams showing examples of highlighting of cells on the database display screen. 図9Aは、オフセット設定画面の一例を示す模式図であり、図9Bは、フォーム作成画面の一例を示す模式図である。FIG. 9A is a schematic diagram showing an example of an offset setting screen, and FIG. 9B is a schematic diagram showing an example of a form creation screen. 図10は、図1の情報処理装置の制御部が実行する処理を概略的に示すフロー図である。FIG. 10 is a flowchart schematically showing processing executed by a control unit of the information processing apparatus of FIG. 1; 図11A及び図11Bは、図10の処理で実行される優先セル判定処理を概略的に示すフロー図である。11A and 11B are flow diagrams schematically showing the priority cell determination process executed in the process of FIG. 10. FIG. 図12は、図10の処理で実行される特定セル選択処理を概略的に示すフロー図である。FIG. 12 is a flow diagram schematically showing specific cell selection processing executed in the processing of FIG.

[1.第1実施形態]
[1-1.構成]
図1に示す情報処理装置1は、印刷装置101と共に、画像処理システムを構成する。
[1. First Embodiment]
[1-1. Constitution]
The information processing apparatus 1 shown in FIG. 1 configures an image processing system together with the printing apparatus 101 .

<情報処理装置>
情報処理装置1は、制御部2と、表示部3と、入力部4と、記憶部5と、通信部6とを備える。
<Information processing device>
The information processing device 1 includes a control section 2 , a display section 3 , an input section 4 , a storage section 5 and a communication section 6 .

本実施形態では、スマートフォンを情報処理装置1の一例として用いる。ただし、情報処理装置1はスマートフォンに限定されず、タブレット等のスマートフォン以外の携帯端末、及びパーソナルコンピュータも情報処理装置1として使用可能である。 In this embodiment, a smart phone is used as an example of the information processing device 1 . However, the information processing device 1 is not limited to a smart phone, and a mobile terminal other than a smart phone, such as a tablet, and a personal computer can also be used as the information processing device 1 .

<制御部>
制御部2は、CPU2Aと、メモリ2Bとを有する。CPU2Aは、メモリ2Bに記憶されたプログラム及びデータに基づいて、各種の処理を行うプロセッサである。メモリ2Bは、ROM、RAM及びフラッシュメモリ等を含む。メモリ2Bには、OS(オペレーティングシステム)プログラム等が記憶されている。
<Control unit>
The control unit 2 has a CPU 2A and a memory 2B. The CPU 2A is a processor that performs various processes based on programs and data stored in the memory 2B. The memory 2B includes ROM, RAM, flash memory, and the like. The memory 2B stores an OS (operating system) program and the like.

<表示部>
表示部3は、情報処理装置1の待ち受け画面、制御部2によるアプリケーションの実行結果等を表示するディスプレイである。
<Display section>
The display unit 3 is a display that displays a standby screen of the information processing device 1, execution results of applications by the control unit 2, and the like.

<入力部>
入力部4は、ユーザーがアプリケーション等に対する入力を行うための機器で構成される。入力部4としては、例えば、表示部3と一体化されたタッチパネル、物理的キーボード、マイク等が挙げられる。
<Input section>
The input unit 4 is composed of a device for a user to input to an application or the like. Examples of the input unit 4 include a touch panel integrated with the display unit 3, a physical keyboard, a microphone, and the like.

<記憶部>
記憶部5は、アプリケーションプログラム及びアプリケーションが使用するデータを記憶する。
<Memory unit>
The storage unit 5 stores data used by application programs and applications.

具体的には、記憶部5には、印刷装置101を制御する印刷データ作成プログラムと、印刷データ作成プログラムが使用するデータベースとが記憶されている。印刷データ作成プログラムは、印刷装置101による印刷を行うための処理を制御部2に実行させるプログラムである。 Specifically, the storage unit 5 stores a print data creation program for controlling the printer 101 and a database used by the print data creation program. The print data creation program is a program that causes the control unit 2 to execute processing for printing by the printing device 101 .

図2に示すように、データベースDBは、テキストデータで構成されるセルSの行列として記述されている。データベースDBは、ヘッダHと、少なくとも1つの行と複数の列とで構成された行列本体とを含む。 As shown in FIG. 2, the database DB is described as a matrix of cells S composed of text data. The database DB includes a header H and a matrix body made up of at least one row and a plurality of columns.

ヘッダHは、データベースDBの列ごとに付された列名である。なお、図2の各セルSには1つの文字からなるテキストが例示されているが、セルSには複数の文字を含むテキストも含まれる。 The header H is a column name attached to each column of the database DB. Note that although each cell S in FIG. 2 exemplifies a text consisting of one character, the cell S also includes a text containing a plurality of characters.

データベースDBは、例えば、CSV(Comma-Separated Values)形式のデータとして、記憶部5に記憶されている。また、記憶部5には、複数のデータベースDBが記憶されてもよい。 The database DB is stored in the storage unit 5 as data in CSV (Comma-Separated Values) format, for example. Also, the storage unit 5 may store a plurality of databases DB.

<通信部>
図1に示す通信部6は、印刷装置101の通信部105と通信するように構成されている。通信部6は、無線通信又は有線通信によって、印刷装置101に印刷データを送信する。無線通信としては、例えば近距離無線通信、無線LAN等が使用される。
<Communication part>
The communication unit 6 shown in FIG. 1 is configured to communicate with the communication unit 105 of the printing device 101 . The communication unit 6 transmits print data to the printing device 101 by wireless communication or wired communication. As wireless communication, for example, short-range wireless communication, wireless LAN, and the like are used.

<印刷装置>
印刷装置101は、情報処理装置1の指令に基づいて印刷用紙、ラベル等の印刷媒体に印刷を行う。印刷装置101は、制御部102と、表示部103と、入力部104と、通信部105と、印刷部106とを備える。
<Printing device>
The printing device 101 prints on printing media such as printing paper and labels based on instructions from the information processing device 1 . The printing device 101 includes a control section 102 , a display section 103 , an input section 104 , a communication section 105 and a printing section 106 .

制御部102は、CPU102Aと、メモリ102Bとを有する。CPU102Aは、メモリ102Bに記憶されたプログラム及びデータ、並びに通信部105が受信したデータに基づいて、印刷に関する各種の処理を行う。 The control unit 102 has a CPU 102A and a memory 102B. The CPU 102A performs various processes related to printing based on the programs and data stored in the memory 102B and the data received by the communication unit 105. FIG.

表示部103は、印刷状況、通信状況等を表示する。入力部104は、印刷装置101の印刷設定等を制御部102に入力する。通信部105は、情報処理装置1の通信部6から印刷データを受信すると共に、通信部6へ印刷結果等のコードを送信する。 A display unit 103 displays the printing status, the communication status, and the like. The input unit 104 inputs print settings and the like of the printing apparatus 101 to the control unit 102 . The communication unit 105 receives print data from the communication unit 6 of the information processing apparatus 1 and transmits a code such as a print result to the communication unit 6 .

印刷部106は、印刷媒体の搬送機構と、印刷媒体への文字、図形等の印刷を行う印刷機構とを有する。印刷部106は、情報処理装置1から送信された印刷データに基づいて、印刷媒体に印刷を行う。印刷部106の印刷方式は、特に限定されず、例えば、感熱方式、インクジェット方式、インクリボン方式等が挙げられる。 The printing unit 106 has a transport mechanism for a print medium and a print mechanism for printing characters, figures, etc. on the print medium. The printing unit 106 prints on a print medium based on the print data transmitted from the information processing device 1 . The printing method of the printing unit 106 is not particularly limited, and examples thereof include a thermal method, an inkjet method, an ink ribbon method, and the like.

<制御部の処理>
情報処理装置1の制御部2は、少なくとも、起動処理、読込処理、受付処理、印刷対象選択処理、検出処理、セル選択処理、対応付け処理、オフセット設定処理、印刷処理、及びフォーム作成処理を実行する。
<Processing of control unit>
The control unit 2 of the information processing apparatus 1 executes at least start processing, read processing, reception processing, print target selection processing, detection processing, cell selection processing, association processing, offset setting processing, print processing, and form creation processing. do.

(起動処理)
制御部2は、ユーザーの操作による印刷データ作成アプリケーションの起動を受けて、起動処理を実行する。起動処理では、制御部2は、図3に示すプレビュー画面PVを表示部3に表示する。
(Start process)
The control unit 2 executes the activation process upon receiving the activation of the print data creation application by the user's operation. In the activation process, the control unit 2 displays the preview screen PV shown in FIG.

プレビュー画面PVには、印刷イメージPIが表示される。印刷イメージPIは、印刷媒体(本実施形態では帯状のラベル)に印刷される文字の大きさ、位置、色、フォント等が反映された画像である。 A print image PI is displayed on the preview screen PV. The print image PI is an image reflecting the size, position, color, font, etc. of characters printed on a print medium (in this embodiment, a band-shaped label).

図3の印刷イメージPI内には、第1オブジェクトOB1及び第2オブジェクトOB2が配置されている。第1オブジェクトOB1及び第2オブジェクトOB2は、それぞれ、ユーザーが任意のテキストを入力可能な領域である。なお、印刷イメージPI内には、1つのオブジェクトのみが配置されてもよいし、3つ以上のオブジェクトが配置されてもよい。 A first object OB1 and a second object OB2 are arranged in the print image PI of FIG. Each of the first object OB1 and the second object OB2 is an area in which the user can enter arbitrary text. In addition, only one object may be arranged in the print image PI, or three or more objects may be arranged.

図3は、いずれのオブジェクトにもテキストが入力されていない状態を示している。そのため、図3の第1オブジェクトOB1及び第2オブジェクトOB2には、それぞれのオブジェクト名である「Text1」及び「Text2」が表示されている。 FIG. 3 shows a state in which no text has been entered in any of the objects. Therefore, the object names "Text1" and "Text2" are displayed on the first object OB1 and the second object OB2 in FIG.

(読込処理)
読込処理では、制御部2は、検出処理の前に記憶部5からユーザー指定のデータベースを読み込む。
(Reading process)
In the reading process, the control unit 2 reads the user-specified database from the storage unit 5 before the detection process.

具体的には、制御部2は、ユーザーによるデータベース呼び出し操作に基づいて、図3に示すデータベース選択画面DSを、プレビュー画面PVの下方に設けられた作業領域WSに表示する。 Specifically, the control unit 2 displays the database selection screen DS shown in FIG. 3 in the work area WS provided below the preview screen PV based on the database call operation by the user.

データベース選択画面DSには、記憶部5に記憶されている少なくとも1つ(図3では3つ)のデータベース名DNが表示される。ユーザーは、これらのデータベース名DNの中から1つを選択する。 At least one (three in FIG. 3) database names DN stored in the storage unit 5 are displayed on the database selection screen DS. The user selects one of these database name DNs.

制御部2は、ユーザーが選択したデータベース名DNのデータベースを記憶部5から読み込んで、メモリ2Bに記憶する。読み込み完了後、制御部2は、図4に示すように読み込んだデータベースを作業領域WSにマトリックス形式で表示する。 The control unit 2 reads the database with the database name DN selected by the user from the storage unit 5 and stores it in the memory 2B. After the reading is completed, the control unit 2 displays the read database in the work area WS in a matrix form as shown in FIG.

(受付処理)
受付処理では、制御部2は、表示部3のプレビュー画面PVに表示されたオブジェクトに対する、入力部4によるテキストの入力を受け付ける。
(reception processing)
In the acceptance process, the control unit 2 accepts text input from the input unit 4 for the object displayed on the preview screen PV of the display unit 3 .

具体的には、制御部2は、ユーザーによるオブジェクトの選択に基づいて、図5に示すように、選択されたオブジェクトの表示をテキスト入力が可能なことを示す表示に切り替える。図5では、選択された第2オブジェクトOB2に、テキスト入力の対象であることを示すアンダースコアが表示されている。 Specifically, based on the user's selection of an object, the control unit 2 switches the display of the selected object to a display indicating that text input is possible, as shown in FIG. In FIG. 5, the selected second object OB2 is displayed with an underscore indicating that it is a text input target.

オブジェクトが選択された状態でユーザーがテキストを入力すると、制御部2は、図6に示すように選択されたオブジェクトに入力されたテキストを表示する。図6は、第2オブジェクトOB2に対してユーザーが「A」を入力した状態を示している。 When the user inputs text while an object is selected, the control section 2 displays the text input to the selected object as shown in FIG. FIG. 6 shows a state in which the user has entered "A" for the second object OB2.

(印刷対象選択処理)
印刷対象選択処理は、読込処理の後、印刷処理開始までの任意のタイミングで、必要に応じて実行される。
(Print target selection process)
The print target selection process is executed at any timing after the read process and before the start of the print process, if necessary.

印刷対象選択処理では、制御部2は、入力部4によってデータベース内の印刷対象となるセルを選択する。本実施形態では、制御部2は、図7に示すように、データベースの行毎に印刷対象チェックボックスCBを表示させる。印刷対象チェックボックスCBは、チェックの有無によって、データベースの各行が印刷対象に含まれるか否かを切り替える。 In the print target selection process, the control unit 2 uses the input unit 4 to select a cell to be printed in the database. In this embodiment, as shown in FIG. 7, the control unit 2 displays a print target check box CB for each row of the database. The print target check box CB switches whether or not each row of the database is included in the print target depending on whether or not it is checked.

例えば、図7のデータベースの1行目の印刷対象チェックボックスCBの状態が「印刷対象」(例えばチェックがオン)の場合は、「F1」列及び「F2」列の1行目のセル(つまり、「A」のテキスト及び「B」のテキスト)がそれぞれ印刷データに埋め込まれるテキストとして選択される。 For example, if the state of the print target check box CB in the first row of the database in FIG. , the text of "A" and the text of "B") are respectively selected as the text to be embedded in the print data.

一方、データベースの1行目の印刷対象チェックボックスCBの状態が「非印刷対象」(例えばチェックがオフ)の場合は、「A」のテキスト及び「B」のテキストはいずれも印刷されない。 On the other hand, if the state of the print target check box CB in the first row of the database is "non-print target" (eg, unchecked), neither the "A" text nor the "B" text is printed.

なお、印刷対象選択処理において、制御部2は、ユーザーに対しデータベースの行単位で印刷対象を選択させる替わりに、データベースのセル単位で印刷対象を選択させてもよい。 In the print target selection process, the control unit 2 may allow the user to select the print target in units of cells of the database instead of having the user select the print targets in units of rows of the database.

(検出処理)
検出処理では、読込処理で読み込んだデータベース(以下、「読込データベース」ともいう。)から、オブジェクトに入力されたテキストの少なくとも一部を含む、少なくとも1つの候補セルを検出する。つまり、制御部2は、読込データベースに含まれる全てのセルを検索対象として、テキストの完全一致検索、又は部分一致検索を行う。
(detection processing)
In the detection process, at least one candidate cell containing at least part of the text input to the object is detected from the database read in the read process (hereinafter also referred to as "read database"). In other words, the control unit 2 performs a complete match search or a partial match search for text with all cells included in the read database as search targets.

制御部2は、例えば、オブジェクトに入力されたテキストが「A」である場合、「AN」、「TA」等のテキストを含むセルを候補セルとして検出する。また、制御部2は、例えば、オブジェクトに入力されたテキストが「HAT」である場合、「AT」、「HA」等のテキストを含むセルを候補セルとして検出する。 For example, when the text input to the object is "A", the control unit 2 detects cells containing text such as "AN" and "TA" as candidate cells. Further, for example, when the text input to the object is "HAT", the control unit 2 detects cells containing text such as "AT" and "HA" as candidate cells.

なお、制御部2は、例えばユーザーの設定に基づいて、入力されたテキストと完全一致するテキストのみ、前方一致するテキストのみ、又は後方一致するテキストのみを含むセルを候補セルとして検出してもよい。また、制御部2は、ユーザーが設定した数(例えば2文字)以上の文字が一致するセルのみを候補セルとして検出してもよい。 Note that the control unit 2 may detect, as a candidate cell, a cell containing only text that completely matches the input text, only text that matches the beginning, or only text that matches the end, based on user settings, for example. . Alternatively, the control unit 2 may detect, as candidate cells, only cells in which at least the number of characters set by the user (for example, two characters) match.

検出処理では、制御部2は、表示部3において、候補セルについて他のセルに対する強調表示を行う。具体的には、制御部2は、図7に示すように、作業領域WSに表示された読込データベース上の候補セルをハイライト表示する。図7では、第2オブジェクトOB2に入力された「A」と一致する読込データベース上の「F1」列の第1行の「A」がハイライト表示として太字化されている。 In the detection process, the control unit 2 highlights the candidate cell with respect to other cells on the display unit 3 . Specifically, as shown in FIG. 7, the control unit 2 highlights candidate cells on the read database displayed in the work area WS. In FIG. 7, the "A" in the first row of the "F1" column on the read database that matches the "A" entered in the second object OB2 is highlighted and bolded.

ハイライト表示には、太字化に加えて、知覚し易い色への文字色変更、背景色の追加、下線の追加、及びこれらの組み合わせが含まれる。また、制御部2は、候補セルに対する強調表示として、例えば、点滅等のアニメーション、候補セルへのカーソルの移動(つまりジャンプ)等を行ってもよい。 Highlighting includes, in addition to bolding, changing the character color to a color that is easy to perceive, adding a background color, adding an underline, and a combination of these. Further, the control unit 2 may perform, for example, animation such as blinking, movement of the cursor to the candidate cell (that is, jump), etc., as the highlighting of the candidate cell.

(セル選択処理)
セル選択処理では、制御部2は、複数の候補セルが検出された場合に、候補セルの中から入力部4によって特定セルを選択する。また、制御部2は、検出処理を行ったオブジェクトと紐づけて特定セルをメモリ2Bに記憶する。
(Cell selection process)
In the cell selection process, when a plurality of candidate cells are detected, the controller 2 selects a specific cell from among the candidate cells through the input unit 4 . Further, the control unit 2 stores the specific cell in the memory 2B in association with the object that has undergone the detection process.

具体的には、ユーザーが表示部3に表示された候補セルの中から1つのセルを入力部4によって選択することで、選択された候補セルを特定セルとする。特定セルの選択は、候補セルを直接選択してもよいし、候補セルを含む列を選択してもよい。列を選択した場合は、選択された列に含まれる候補セルが特定セルとされる。 Specifically, the user selects one cell from among the candidate cells displayed on the display unit 3 using the input unit 4, and the selected candidate cell is used as the specific cell. Selection of a specific cell may be performed by directly selecting a candidate cell or by selecting a column containing a candidate cell. If a column is selected, candidate cells included in the selected column are taken as specific cells.

図7では、候補セル(つまり「F1」列の第1行のセル)を含む「F1」列に対し、「Merge」と記載された選択ボタンB1が表示されている。ユーザーが選択ボタンB1を押す(つまりタップする)ことで「F1」列が選択され、特定セルとして「F1」列の第1行のセルが選択される。 In FIG. 7, a selection button B1 labeled "Merge" is displayed for the "F1" column containing the candidate cell (that is, the cell in the first row of the "F1" column). When the user presses (that is, taps) the selection button B1, the "F1" column is selected, and the cell in the first row of the "F1" column is selected as the specific cell.

なお、図7では1つの選択ボタンB1が表示されているが、複数の候補セルが複数の列に跨って検出された場合は、複数の選択ボタンB1が作業領域WSに表示される。ユーザーは、複数の選択ボタンB1の中から1つを選択する。 Although one selection button B1 is displayed in FIG. 7, when multiple candidate cells are detected across multiple columns, multiple selection buttons B1 are displayed in the work area WS. The user selects one of the multiple selection buttons B1.

(対応付け処理)
対応付け処理では、制御部2は、少なくとも1つの候補セルから選択された特定セルが含まれるデータベース内の列を、検出処理を行ったオブジェクトに対応したフィールドとしてメモリ2Bに記憶する。
(association processing)
In the association process, the control unit 2 stores the column in the database containing the specific cell selected from at least one candidate cell in the memory 2B as the field corresponding to the object subjected to the detection process.

図7の例では、選択ボタンB1によって「F1」列が第2オブジェクトOB2に対応するフィールドとして選択される。つまり、図7の選択ボタンB1は、特定セルを選択するボタンと、フィールドを選択するボタンとを兼ねている。 In the example of FIG. 7, the "F1" column is selected as the field corresponding to the second object OB2 by the selection button B1. That is, the selection button B1 in FIG. 7 serves both as a button for selecting a specific cell and a button for selecting a field.

対応付け処理では、制御部2は、特定セルを印刷対象のセルとして自動的に設定する。例えば、制御部2は、特定セルが含まれる行の印刷対象チェックボックスCBの状態が「非印刷対象」となっていた場合、特定セルのみ又は特定セルを含む行を印刷対象に変更する。 In the association process, the control unit 2 automatically sets the specific cell as the cell to be printed. For example, when the state of the print target check box CB of the line including the specific cell is "non-print target", the control unit 2 changes only the specific cell or the line including the specific cell to the print target.

さらに、対応付け処理では、制御部2は、対応付けられたフィールドにおける印刷開始セル(つまり後述するオフセットを考慮した先頭行のセル)のテキストデータが挿入されたオブジェクトを表示部3に表示させる。 Furthermore, in the association processing, the control unit 2 causes the display unit 3 to display an object in which the text data of the print start cell (that is, the cell of the first row considering the offset described later) in the associated field is inserted.

例えば、第2オブジェクトOB2に入力されたテキストが「1」、対応付けられたフィールドにおける先頭行のセルのテキストが「A」の場合、制御部2は、入力された「1」を「A」に変更した第2オブジェクトOB2をプレビュー画面PVに表示する。 For example, if the text input to the second object OB2 is "1" and the text in the first row cell in the associated field is "A", the control unit 2 changes the input "1" to "A". is displayed on the preview screen PV.

(複数のオブジェクトに対する検出処理)
検出処理において、候補セルの検出を現在行っているオブジェクト(以下、「処理対象オブジェクト」ともいう)よりも先に検出処理及び対応付け処理が実行された(つまり、フィールドの対応付けが完了している)処理済オブジェクトが同じ印刷イメージPI内に存在する場合、制御部2は、処理対象オブジェクトにおいて強調表示を行う候補セルを第1基準、第2基準、第3基準及び第4基準のいずれかで選択する。
(Detection processing for multiple objects)
In the detection process, the detection process and the matching process were executed prior to the object for which candidate cell detection is currently being performed (hereinafter also referred to as the "process target object") (that is, the field matching has been completed). If the processed object exists in the same print image PI, the control unit 2 selects the candidate cell to be highlighted in the object to be processed from any one of the first, second, third and fourth criteria. to select.

なお、処理済みオブジェクトが存在する場合とは、例えば、第1オブジェクトOB1に対して、テキストの入力、候補セルの検出、特定セルの選択及びフィールドの対応付けが完了した後に、第2オブジェクトOB2に対する候補セルの検出が行われる場合である。 Note that the case where a processed object exists means, for example, that text input, candidate cell detection, specific cell selection, and field association are completed for the first object OB1, and then for the second object OB2 This is the case when candidate cell detection is performed.

第1基準では、制御部2は、処理済オブジェクトの処理結果(つまり、選択された特定セル及びフィールド)とは無関係に、全ての候補セルを強調表示する。図8Aは、検索対象のテキストが「A」の場合に、複数の列に含まれる「A」を含むセルがそれぞれ強調表示された例を示す。 In the first criterion, the control unit 2 highlights all candidate cells regardless of the processed object's processing result (ie the specific cell and field selected). FIG. 8A shows an example in which when the search target text is "A", cells containing "A" included in multiple columns are highlighted.

第2基準では、制御部2は、処理済オブジェクトの特定セルと同じ行に含まれるセルについて強調表示を行う。例えば、図8Bに示すように、処理済オブジェクトの特定セルが点線で囲ったセル(つまり「F1」列の1行目のセル)の場合、このセルと同じ1行目に含まれる「A」を含むセル(つまり「F3」列の1行目のセル)のみが強調表示され、他の行に含まれる「A」を含むセルは強調表示されない。 For the second criterion, the control unit 2 highlights cells included in the same row as the specific cell of the processed object. For example, as shown in FIG. 8B, if the specific cell of the processed object is the cell surrounded by the dotted line (that is, the cell in the first row of column "F1"), "A" included in the same first row as this cell (that is, the cell in the first row of column "F3") is highlighted, and the cells containing "A" in other rows are not highlighted.

ここで、図8B,8C,8Dにおいて、「MEGRED」の表記が付された列は、処理済みオブジェクトに対応付けられているフィールド(以下、「対応フィールド」ともいう。)を示す。なお、特定セルを表示する点線、及び「MEGRED」の表記は、表示部3に表示されても表示されなくてもよい。 Here, in FIGS. 8B, 8C, and 8D, columns marked with "MEGRED" indicate fields associated with processed objects (hereinafter also referred to as "corresponding fields"). Note that the dotted line indicating the specific cell and the notation “MEGRED” may or may not be displayed on the display unit 3 .

第3基準では、制御部2は、処理済オブジェクトの対応フィールドに含まれないセルについて強調表示を行う。例えば、図8Cに示すように、対応フィールドが「F1」列の場合、「F1」列に含まれる「A」を含むセル(つまり「F1」列の3行目のセル)は強調表示されず、他の列に含まれる「A」を含むセルのみが強調表示される。 For the third criterion, the control unit 2 highlights cells that are not included in the corresponding field of the processed object. For example, as shown in FIG. 8C, if the corresponding field is the "F1" column, the cell containing "A" contained in the "F1" column (that is, the cell in the third row of the "F1" column) is not highlighted. , only cells containing 'A' in other columns are highlighted.

第4基準では、制御部2は、処理済オブジェクトの対応フィールドに含まれるセルについて強調表示を行う。例えば、図8Dに示すように、対応フィールドが「F1」列の場合、「F1」列に含まれる「A」を含むセル(つまり「F1」列の3行目のセル)のみが強調表示され、他の列に含まれる「A」を含むセルは強調表示されない。 For the fourth criterion, the control unit 2 highlights cells included in the corresponding field of the processed object. For example, as shown in FIG. 8D, if the corresponding field is the "F1" column, only the cell containing "A" contained in the "F1" column (that is, the cell in the third row of the "F1" column) is highlighted. , cells containing 'A' in other columns are not highlighted.

第2基準、第3基準及び第4基準において、制御部2は、強調表示の対象となる候補セル(以下、「優先セル」ともいう。)以外の候補セルについて、優先セルよりも弱い強調表示を行ってもよい。つまり、制御部2は、(1)優先セル、(2)優先セル以外の候補セル、及び(3)その他のセルが区別される3段階の識別表示を行ってもよい。 In the second, third, and fourth criteria, the control unit 2 performs weaker highlighting than the priority cell for candidate cells other than candidate cells to be highlighted (hereinafter also referred to as “priority cells”). may be performed. That is, the control unit 2 may perform three-stage identification display that distinguishes between (1) priority cells, (2) candidate cells other than priority cells, and (3) other cells.

制御部2は、読込データベースに対し指定されたラベル方向が行方向LDの場合に第3基準の強調表示を行う。また、制御部2は、読込データベースに対し指定されたラベル方向が列方向CDの場合に第4基準の強調表示を行う。 The control unit 2 performs highlighting according to the third criterion when the label direction specified for the read database is the line direction LD. Also, when the label direction specified for the read database is the column direction CD, the control unit 2 highlights the fourth standard.

「ラベル方向」とは、1つの印刷イメージPIに同時に配置される(つまり同時に印刷される)頻度の高いテキストの、読込データベースにおける並び方向である。例えば、図8Aにおいて、データベースの2行目の「1」、「2」、「3」及び「4」が、1つの印刷イメージPIに同時に配置される頻度が高い場合は、ラベル方向は行方向LDである。 The “label direction” is the alignment direction in the read database of texts that are frequently arranged (that is, printed at the same time) in one print image PI. For example, in FIG. 8A, if "1", "2", "3" and "4" in the second row of the database are frequently arranged in one print image PI at the same time, the label direction is the row direction. It is LD.

また例えば、図8Aにおいて、「F1」列に含まれる「a」、「1」及び「A」が、1つの印刷イメージPIに同時に配置される頻度が高い場合は、ラベル方向は列方向CDである。 Also, for example, in FIG. 8A, if the frequencies of "a", "1" and "A" included in the "F1" column are arranged simultaneously in one print image PI, the label direction is the column direction CD. be.

なお、「行方向LD」は、データベースにおける行に沿った横方向を意味し、各列が並んでいる方向である。「列方向CD」は、データベースにおける列に沿った縦方向を意味し、各行が並んでいる方向である。 The "row direction LD" means the horizontal direction along the rows in the database, and is the direction in which the columns are arranged. "Column CD" means the vertical direction along the columns in the database, which is the direction in which the rows are lined up.

また、制御部2は、第2基準と、第3基準及び第4基準のいずれかとを組み合わせて強調表示を行ってもよい。 Further, the control unit 2 may combine the second criterion with any one of the third criterion and the fourth criterion to perform highlighting.

(オフセット設定処理)
オフセット設定処理は、対応付け処理の後、印刷処理開始までの任意のタイミングで、必要に応じて実行される。
(Offset setting processing)
The offset setting process is executed as necessary at any timing after the association process until the start of the print process.

オフセット設定処理では、制御部2は、印刷イメージPIに含まれるオブジェクトごとに、対応付けられたフィールドの印刷開始セル(つまり印刷開始行)を設定する。 In the offset setting process, the control unit 2 sets the print start cell (that is, print start line) of the associated field for each object included in the print image PI.

オフセット設定処理は、例えば図9Aに示すオフセット設定画面OSにおけるユーザーの入力に基づいて行われる。オフセット設定画面OSは、例えば図7のプレビュー画面PVのオフセット設定ボタンB2を押すことで呼び出される。 The offset setting process is performed, for example, based on the user's input on the offset setting screen OS shown in FIG. 9A. The offset setting screen OS is called by pressing the offset setting button B2 on the preview screen PV in FIG. 7, for example.

オフセット設定画面OSのオフセット値(Offset)は、フィールドの印刷開始行の先頭行からのずれを表す。例えば、「Text1」オブジェクトのオフセット値を「1」とした場合、「Text1」オブジェクトでは、「F1」列の2行目が印刷開始行となる。つまり、「F1」列の2行目のセルが印刷開始セルとされる。 The offset value (Offset) of the offset setting screen OS represents the deviation of the printing start line of the field from the first line. For example, when the offset value of the "Text1" object is set to "1", the second row of the "F1" column is the print start row in the "Text1" object. That is, the cell in the second row of the "F1" column is set as the print start cell.

なお、オフセット設定処理で入力されるオブジェクトごとのオフセット値は、他のオブジェクトに対する相対的なずれであってもよい。例えば、図9Aにおいて「Text2」オブジェクトのオフセット値を「1」とした場合に、「Text1」オブジェクトに「F1」列のn行目のセルが印刷されると共に、「Text2」オブジェクトに「F2」列の(n+1)行目のセルが印刷される仕様であってもよい。 Note that the offset value for each object input in the offset setting process may be a relative shift with respect to other objects. For example, in FIG. 9A, when the offset value of the "Text2" object is set to "1", the n-th cell of the "F1" column is printed in the "Text1" object, and "F2" is printed in the "Text2" object. The specification may be such that the cell in the (n+1)th row of the column is printed.

(複数のオブジェクトに対する対応付け処理)
検出処理において第4基準の強調表示を行った場合、制御部2は、対応付け処理で以下の処理を行う。
(Match processing for multiple objects)
When the fourth criterion is highlighted in the detection process, the control unit 2 performs the following process in the association process.

すなわち、制御部2は、処理済オブジェクトの対応フィールドに含まれるセルが処理対象オブジェクトの特定セルとして選択された場合に、処理対象オブジェクトに対応付けられたフィールドの印刷開始セルと、処理済オブジェクトに対応付けられたフィールドの特定セル又は先頭行のセルとの列方向のずれ値を自動的に設定する。つまり、制御部2は、処理対象オブジェクトのオフセット値を処理済オブジェクトとの関係から自動的に設定する。 That is, when a cell included in the corresponding field of the processed object is selected as the specific cell of the processing target object, the control unit 2 sets the print start cell of the field associated with the processing target object and the A column-direction deviation value from a specific cell in the associated field or a cell in the first row is automatically set. That is, the control unit 2 automatically sets the offset value of the object to be processed based on the relationship with the processed object.

例えば、図8Eに示すように「F1」列の2行目のセル(「1」)が処理済オブジェクトの特定セルであったときに、「F1」列の3行目のセル(「A」)が処理対象オブジェクトの特定セルとして選択された場合を想定する。 For example, as shown in FIG. 8E, when the cell (“1”) in the second row of column “F1” is the specific cell of the processed object, the cell (“A”) in the third row of column “F1” ) is selected as a specific cell of the object to be processed.

この場合、制御部2は、処理対象オブジェクトのフィールド(つまり「F1」列)の印刷開始セルを、処理済オブジェクトの特定セルである2行目のセルから1行下とする。つまり、制御部2は、「F1」列の3行目のセルを印刷開始セルとする。「1行」は、処理済オブジェクトの特定セルと、処理対象オブジェクトの特定セルとの列方向の相対的なずれ値である。 In this case, the control unit 2 sets the print start cell of the field of the object to be processed (that is, the "F1" column) one row below the second row cell, which is the specific cell of the processed object. That is, the control unit 2 sets the cell in the third row of the "F1" column as the print start cell. "1 row" is a relative displacement value in the column direction between a specific cell of the processed object and a specific cell of the object to be processed.

また、図8Eの場合、制御部2は、処理対象オブジェクトのフィールドの印刷開始セルを、処理済オブジェクトの先頭行のセルから2行下としてもよい。「2行」は、データベースの1行目に対する、処理対象オブジェクトの特定セルの列方向の絶対的なずれ値である。 Further, in the case of FIG. 8E, the control unit 2 may set the print start cell of the field of the object to be processed two lines below the first line cell of the processed object. “2 rows” is the absolute displacement value in the column direction of a specific cell of the object to be processed from the first row of the database.

このように、制御部2は、基準セル(つまり処理済オブジェクトに対応付けられたフィールドの特定セル又は先頭行のセル)に対する、処理対象オブジェクトの特定セルの相対的又は絶対的なずれ値に基づいて、印刷処理対象オブジェクトのフィールドにおける印刷開始セルを変更する。 In this way, the control unit 2 controls the relative or absolute shift value of the specific cell of the object to be processed with respect to the reference cell (that is, the specific cell of the field associated with the processed object or the cell of the first row). to change the print start cell in the field of the object to be printed.

(印刷処理)
印刷処理では、制御部2は、オブジェクトに対応付けられたフィールドに含まれるセルのうち、印刷対象のセルのテキストデータをオブジェクトにそれぞれ挿入した複数の印刷パターンを含む印刷データを印刷装置101に出力する。
(printing process)
In the printing process, the control unit 2 outputs to the printing device 101 print data including a plurality of print patterns in which the text data of the cells to be printed are inserted into the object, among the cells included in the field associated with the object. do.

例えば、図8Aの「F1」列が第1オブジェクトOB1に対応付けられ、「F2」列が第2オブジェクトOB2に対応付けられている場合、制御部2は、印刷対象チェックボックスCBがチェックされた行に含まれる「F1」列のセル及び「F2」列のセルのテキストが第1オブジェクトOB1及び第2オブジェクトOB2にそれぞれ挿入された複数の印刷イメージPIを反映した印刷パターンを作成する。 For example, when the "F1" column in FIG. 8A is associated with the first object OB1 and the "F2" column is associated with the second object OB2, the control unit 2 determines that the print target check box CB is checked. A print pattern is created that reflects a plurality of print images PI in which the texts of the cells of the "F1" column and the "F2" column included in the row are inserted into the first object OB1 and the second object OB2, respectively.

また、制御部2は、オフセット値が設定されたオブジェクトに対して、印刷イメージPIに挿入されるセルの行を、オフセット値に基づいて先頭行又は他のオブジェクトの行からずらす。 In addition, the control unit 2 shifts the row of cells inserted in the print image PI to the top row or the row of another object based on the offset value for the object for which the offset value is set.

(フォーム作成処理)
フォーム作成処理は、読込処理の後、印刷処理開始までの任意のタイミングで、必要に応じて実行される。
(form creation process)
The form creation process is executed at any timing after the read process and before the start of the print process, if necessary.

フォーム作成処理では、制御部2は、読込データベースに含まれる複数の列を連結したフォームを作成し、オブジェクトに挿入する。 In the form creation process, the control section 2 creates a form in which a plurality of columns included in the read database are linked, and inserts it into the object.

フォーム作成処理は、例えば図9Bに示すフォーム作成画面FMにおけるユーザーの入力に基づいて行われる。フォーム作成画面FMは、例えば図7のプレビュー画面PVのメニューボタンB3を押すことで表示されるメニューから「フォーム作成」を選択することで呼び出される。 The form creation process is performed, for example, based on the user's input on the form creation screen FM shown in FIG. 9B. The form creation screen FM is called, for example, by selecting "form creation" from the menu displayed by pressing the menu button B3 on the preview screen PV in FIG.

フォーム作成画面FMでは、入力枠IWにユーザーが任意のフィールド及び任意の文字を入力する。フィールドの入力は、フォーム作成画面FMの下部に表示される列名を選択することで行われる。フォーム作成画面FMの完了ボタンB4を押すことで、作成されたフォームが新たな「列」として、候補セルの検出対象に加えられる。 In the form creation screen FM, the user inputs arbitrary fields and arbitrary characters in the input box IW. Field input is performed by selecting a column name displayed at the bottom of the form creation screen FM. By pressing the completion button B4 on the form creation screen FM, the created form is added as a new "column" to the candidate cell detection targets.

図9Bにおいて、例えば「F1」列の先頭行のセルが「A」、「F2」列の先頭行のセルが「B」であるとすると、「[F1]:::[F2]」のフォームが対応付けられたオブジェクトには「A:::B」のテキストが挿入される。制御部2は、印刷処理において、「A:::B」における「A」及び「B」を順次「F1」列及び「F2」列に含まれるセルに置き換えた複数の印刷イメージPIを印刷パターンとして作成する。 In FIG. 9B, for example, if the cell in the first row of the "F1" column is "A" and the cell in the first row of the "F2" column is "B", then the form "[F1]:::[F2]" The text "A:::B" is inserted into the object associated with . In the printing process, the control unit 2 converts a plurality of print images PI into a print pattern in which "A" and "B" in "A::B" are sequentially replaced with cells included in the "F1" column and the "F2" column. Create as

[1-2.処理]
以下、図10を参照しつつ、オブジェクトにフィールドを対応付けるために制御部102が実行する処理の一例について説明する。
[1-2. process]
An example of processing executed by the control unit 102 to associate a field with an object will be described below with reference to FIG. 10 .

制御部102は、プレビュー画面PVを表示した状態でオブジェクトに対するテキストの入力を受け付け(ステップS110)、オブジェクトにおけるテキストの変更(つまり入力又は削除)の有無を判定する(ステップS120)。 The control unit 102 receives input of text for the object while the preview screen PV is displayed (step S110), and determines whether or not the text of the object is changed (that is, input or deleted) (step S120).

テキストの変更が有った場合(S120:YES)、制御部2は、入力されたテキストに基づいてデータベースから候補セルを検出し(ステップS130)、候補セルの有無を判定する(ステップS140)。 If the text has been changed (S120: YES), the control unit 2 detects candidate cells from the database based on the input text (step S130), and determines the presence or absence of candidate cells (step S140).

候補セルが無かった場合(S140:NO)、制御部2は、テキストの入力待ち(S110)に戻る。一方、少なくとも1つの候補セルが有った場合(S140:YES)、制御部2は、候補セルが複数か否か判定する(ステップS150)。 If there is no candidate cell (S140: NO), the control unit 2 returns to waiting for text input (S110). On the other hand, if there is at least one candidate cell (S140: YES), the control unit 2 determines whether or not there are a plurality of candidate cells (step S150).

候補セルが1つの場合(S150:NO)、制御部2は、この候補セルを強調表示する(ステップS160)。一方、候補セルが複数の場合(S150:YES)、制御部2は、メモリ2Bの記録から、2回目以降のオブジェクトに対するフィールドの対応付けか(つまり、フィールドが対応付けされた処理済みオブジェクトが既に存在するか)否かを判定する(ステップS170)。 If there is one candidate cell (S150: NO), the control unit 2 highlights this candidate cell (step S160). On the other hand, if there are a plurality of candidate cells (S150: YES), the control unit 2 determines from the records in the memory 2B whether the second and subsequent field associations with the object (that is, the processed object associated with the field has already been exists) or not (step S170).

処理済みオブジェクトが存在しない場合(S170:NO)、制御部2は、全ての候補セルを強調表示する(ステップS180)。一方、処理済みオブジェクトが存在する場合(S170:YES)、制御部2は、優先セル判定処理を実行する(ステップS190)。ここで制御部2は、ユーザーの設定等により、図11Aに示す優先セル判定処理、及び図11Bに示す優先セル判定処理のいずれかを実行する。 If no processed object exists (S170: NO), the control unit 2 highlights all candidate cells (step S180). On the other hand, if a processed object exists (S170: YES), the control unit 2 executes priority cell determination processing (step S190). Here, the control unit 2 executes either the priority cell determination process shown in FIG. 11A or the priority cell determination process shown in FIG. 11B according to user settings or the like.

図11Aの優先セル判定処理では、制御部2は、処理済みオブジェクトの特定セルをメモリ2Bから取得し(ステップS410)、処理済みオブジェクトの特定セルと同じ行に含まれる候補セルを優先セルとする(ステップS420)。 In the priority cell determination process of FIG. 11A, the control unit 2 acquires the specific cell of the processed object from the memory 2B (step S410), and sets the candidate cell included in the same row as the specific cell of the processed object as the priority cell. (Step S420).

図11Bの優先セル判定処理では、制御部2は、まず、メモリ2Bからフィールドとオブジェクトとの対応関係(つまり、処理済みオブジェクトに対応付けられたフィールド名)を取得する(ステップS510)。 In the priority cell determination process of FIG. 11B, the control unit 2 first acquires the correspondence between fields and objects (that is, field names associated with processed objects) from the memory 2B (step S510).

次に、制御部2は、データベースのラベル方向が自動判定であるか否か判定する(ステップS520)。データベースのラベル方向が自動判定である場合(ステップS520:YES)、制御部2は、データベースのサイズからラベル方向を決定する(ステップS530)。例えば、データベースの行数が列数よりも大きい場合、制御部2は、ラベル方向を行方向とする。 Next, the control unit 2 determines whether or not the label direction of the database is automatically determined (step S520). If the label orientation of the database is determined automatically (step S520: YES), the control section 2 determines the label orientation from the size of the database (step S530). For example, when the number of rows in the database is greater than the number of columns, the control unit 2 sets the label direction as the row direction.

一方、データベースのラベル方向が自動判定でない場合(ステップS520:NO)、制御部2は、ユーザーが設定したラベル方向をデータベースのラベル方向として決定する(ステップS540)。 On the other hand, if the label orientation of the database is not determined automatically (step S520: NO), the control unit 2 determines the label orientation set by the user as the label orientation of the database (step S540).

ラベル方向の決定後、制御部2は、ラベル方向が行方向であるか否か判定する(ステップS550)。ラベル方向が行方向である場合(S550:YES)、制御部2は、処理済みオブジェクトに対応付けられたフィールドに含まれない候補セルを優先セルとする(ステップS560)。 After determining the label direction, the control section 2 determines whether or not the label direction is the line direction (step S550). If the label direction is the row direction (S550: YES), the control unit 2 sets the candidate cell not included in the field associated with the processed object as the priority cell (step S560).

一方、ラベル方向が列方向である場合(S550:NO)、制御部2は、処理済みオブジェクトに対応付けられたフィールドに含まれる候補セルを優先セルとする(ステップS570)。 On the other hand, if the label direction is the column direction (S550: NO), the control section 2 sets the candidate cell included in the field associated with the processed object as the priority cell (step S570).

優先セル判定処理の後、制御部2は、判定された優先セルに対し強調表示を行う(ステップS200)。 After the priority cell determination process, the control unit 2 highlights the determined priority cell (step S200).

候補セルの強調表示(S160、S180又はS200)の後、制御部2は、図12の特定セル選択処理を実行する(ステップS210)。 After highlighting the candidate cell (S160, S180 or S200), the control unit 2 executes the specific cell selection process of FIG. 12 (step S210).

特定セル選択処理では、制御部2は、ユーザーによる特定セルの選択を受け付け(ステップS710)、特定セルの選択の有無を判定する(ステップS720)。特定セルの選択が有った場合(S720:YES)、制御部2は、特定セルが含まれるフィールドをオブジェクトに対応したフィールドとして記憶すると共に(ステップS730)、特定セル自体も記憶する(ステップS740)。 In the specific cell selection process, the control unit 2 accepts the user's selection of a specific cell (step S710), and determines whether or not the specific cell is selected (step S720). If a specific cell has been selected (S720: YES), the control unit 2 stores the field containing the specific cell as a field corresponding to the object (step S730) and also stores the specific cell itself (step S740). ).

特定セル選択処理の後、制御部2は、対応付けしたフィールドにおける印刷対象セルを設定し(ステップS220)、フィールドにおける印刷開始セルのテキストデータが挿入されたオブジェクトを表示させる(ステップS230)。 After the specific cell selection process, the control unit 2 sets the print target cell in the associated field (step S220), and displays the object in which the text data of the print start cell in the field is inserted (step S230).

[1-3.効果]
以上詳述した実施形態によれば、以下の効果が得られる。
(1a)制御部2の処理により、オブジェクトに入力されたテキストに基づいたオブジェクトへのフィールドの対応付けが可能となる。そのため、印刷データ作成のステップ数の削減、テキストによるフィールドの検索機能、ユーザーに対する入力ガイド機能等の付加価値を情報処理装置1に与え得ることができる。
[1-3. effect]
According to the embodiment detailed above, the following effects are obtained.
(1a) Through the processing of the control unit 2, it is possible to associate a field with an object based on the text input to the object. Therefore, it is possible to provide the information processing apparatus 1 with added values such as a reduction in the number of steps for creating print data, a text field search function, and an input guide function for the user.

(1b)候補セルの強調表示により、UI(ユーザーインターフェース)の操作性を向上させることができる。 (1b) By highlighting candidate cells, it is possible to improve the operability of the UI (user interface).

(1c)先に対応付け処理がされた処理済みオブジェクトの特定セル又は対応付けられたフィールドに基づいて、次のオブジェクトの候補セルが強調表示されることで、オブジェクト間の関連性に基づいたフィールドの選択をユーザーに提案することができる。 (1c) Fields based on relationships between objects by highlighting candidate cells of the next object based on specific cells or associated fields of previously associated processed objects can be suggested to the user.

(1d)データベースに指定されたラベル方向に基づいて強調表示を行う優先セルが決定されることで、データベースの特徴や使用状況に合わせて強調表示されるセルの数を絞ることができる。そのため、フィールド選択の操作性を高めることができる。 (1d) By determining the priority cells to be highlighted based on the label direction specified in the database, it is possible to narrow down the number of cells to be highlighted according to the features and usage of the database. Therefore, the operability of field selection can be improved.

(1e)処理済みオブジェクトのフィールドと、処理対象オブジェクトの特定セルとの関係に基づいて、印刷開始セルが先頭行のセルから自動的に変更されることで、ユーザーによるオフセット値入力の手間を低減できる。 (1e) Based on the relationship between the fields of the processed object and the specific cells of the object to be processed, the print start cell is automatically changed from the cell in the top row, thereby reducing the user's effort of inputting the offset value. can.

(1f)特定セルが印刷対象のセルとして自動的に設定されることで、ユーザーによる印刷対象セルの選択の手間を低減できる。 (1f) By automatically setting a specific cell as a cell to be printed, it is possible to reduce the user's trouble of selecting a cell to be printed.

(1g)フィールドにおける印刷開始セルのテキストデータが挿入されたオブジェクトが表示部3に表示されることで、フィールド選択後のユーザーによる印刷イメージPIの確認が容易となる。 (1g) By displaying the object in which the text data of the print start cell in the field is inserted on the display unit 3, the user can easily confirm the print image PI after selecting the field.

[2.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は、上記実施形態に限定されることなく、種々の形態を採り得ることは言うまでもない。
[2. Other embodiments]
Although the embodiments of the present disclosure have been described above, it is needless to say that the present disclosure is not limited to the above embodiments and can take various forms.

(2a)上記実施形態の印刷データ作成プログラム及び情報処理装置において、候補セルの強調表示は必ずしも行われなくてもよい。
(2b)上記実施形態の印刷データ作成プログラム及び情報処理装置において、特定セルは必ずしも印刷対象のセルとして自動的に設定されなくてもよい。
(2a) In the print data creation program and the information processing apparatus of the above embodiments, the candidate cells do not necessarily have to be highlighted.
(2b) In the print data creation program and the information processing apparatus of the above embodiments, the specific cell does not necessarily have to be automatically set as the cell to be printed.

(2c)上記実施形態の印刷データ作成プログラム及び情報処理装置において、表示部に表示される各画面のレイアウト及び意匠は一例であり、これらは上述のものに限定されない。 (2c) In the print data creation program and the information processing apparatus of the above embodiments, the layout and design of each screen displayed on the display unit are examples, and are not limited to those described above.

(2d)上記実施形態における1つの構成要素が有する機能を複数の構成要素として分散させたり、複数の構成要素が有する機能を1つの構成要素に統合したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加、置換等してもよい。なお、特許請求の範囲に記載の文言から特定される技術思想に含まれるあらゆる態様が本開示の実施形態である。 (2d) The function of one component in the above embodiments may be distributed as multiple components, or the functions of multiple components may be integrated into one component. Also, part of the configuration of the above embodiment may be omitted. Also, at least a part of the configuration of the above embodiment may be added, replaced, etc. with respect to the configuration of the other above embodiment. It should be noted that all aspects included in the technical idea specified by the wording in the claims are embodiments of the present disclosure.

1…情報処理装置、2…制御部、2A…CPU、2B…メモリ、3…表示部、
4…入力部、5…記憶部、6…通信部、101…印刷装置、102…制御部、
102A…CPU、102B…メモリ、103…表示部、104…入力部、
105…通信部、106…印刷部。
DESCRIPTION OF SYMBOLS 1... Information processing apparatus, 2... Control part, 2A... CPU, 2B... Memory, 3... Display part,
4 input unit 5 storage unit 6 communication unit 101 printing device 102 control unit
102A...CPU, 102B...Memory, 103...Display unit, 104...Input unit,
105... communication section, 106... printing section.

Claims (14)

制御部と、表示部と、入力部と、テキストデータで構成されるセルの行列として記述されたデータベースが記憶された記憶部と、印刷装置と通信するように構成された通信部とを備える情報処理装置の前記制御部に、
前記表示部に表示されたオブジェクトに対する、前記入力部によるテキストの入力を受け付ける受付処理と、
前記データベースから、前記オブジェクトに入力された前記テキストの少なくとも一部を含む少なくとも1つの候補セルを検出する検出処理と、
前記少なくとも1つの候補セルから選択された特定セルが含まれる前記データベース内の列を、前記オブジェクトに対応したフィールドとして記憶する対応付け処理と、
前記フィールドに含まれるセルのうち、印刷対象のセルのテキストデータを前記オブジェクトにそれぞれ挿入した印刷データを前記印刷装置に出力する印刷処理と、
を実行させる、印刷データ作成プログラム。
Information comprising a control unit, a display unit, an input unit, a storage unit storing a database described as a matrix of cells composed of text data, and a communication unit configured to communicate with a printing device. In the control unit of the processing device,
a reception process for receiving text input by the input unit for the object displayed on the display unit;
a detection process for detecting from the database at least one candidate cell containing at least a portion of the text entered into the object;
an association process of storing a column in the database containing a specific cell selected from the at least one candidate cell as a field corresponding to the object;
a printing process for outputting to the printing device print data obtained by inserting text data of cells to be printed out of the cells included in the field into the objects;
A print data creation program that executes
請求項1に記載の印刷データ作成プログラムであって、
前記検出処理の前に前記データベースを読み込む読込処理を前記制御部に実行させる、印刷データ作成プログラム。
The print data creation program according to claim 1,
A print data creation program causing the control unit to execute a reading process of reading the database before the detection process.
請求項1又は請求項2に記載の印刷データ作成プログラムであって、
前記少なくとも1つの候補セルとして複数の候補セルが検出された場合に、前記入力部によって前記特定セルを選択するセル選択処理を前記制御部に実行させる、印刷データ作成プログラム。
The print data creation program according to claim 1 or claim 2,
A print data creation program for causing the control unit to execute a cell selection process of selecting the specific cell by the input unit when a plurality of candidate cells are detected as the at least one candidate cell.
請求項1から請求項3のいずれか1項に記載の印刷データ作成プログラムであって、
前記検出処理では、前記表示部において、前記少なくとも1つの候補セルについて他のセルに対する強調表示を行う、印刷データ作成プログラム。
The print data creation program according to any one of claims 1 to 3,
The print data creation program, wherein in the detection process, the at least one candidate cell is highlighted with respect to other cells on the display unit.
請求項4に記載の印刷データ作成プログラムであって、
前記強調表示は、ハイライト表示である、印刷データ作成プログラム。
The print data creation program according to claim 4,
The print data creation program, wherein the highlighting is highlighting.
請求項4又は請求項5に記載の印刷データ作成プログラムであって、
前記検出処理では、前記表示部において、前記少なくとも1つの候補セルのうち、前記オブジェクトよりも先に前記検出処理及び前記対応付け処理が実行された処理済オブジェクトの前記特定セルと同じ行に含まれるセルについて前記強調表示を行う、印刷データ作成プログラム。
The print data creation program according to claim 4 or claim 5,
In the detection process, in the display unit, among the at least one candidate cell, the target cell is included in the same row as the specific cell of the processed object for which the detection process and the association process have been performed before the object. A print data creation program for performing the above highlighting for a cell.
請求項4から請求項6のいずれか1項に記載の印刷データ作成プログラムであって、
前記検出処理では、前記表示部において、前記少なくとも1つの候補セルのうち、前記オブジェクトよりも先に前記検出処理及び前記対応付け処理が実行された処理済オブジェクトに対応付けられた前記フィールドに含まれないセルについて前記強調表示を行う、印刷データ作成プログラム。
The print data creation program according to any one of claims 4 to 6,
In the detection process, in the display unit, the at least one candidate cell included in the field associated with the processed object for which the detection process and the association process were performed prior to the object. A print data creation program for performing the highlighting for cells that do not exist.
請求項7に記載の印刷データ作成プログラムであって、
前記検出処理では、前記データベースに対し指定されたラベル方向が行方向の場合に、前記処理済オブジェクトに対応付けられた前記フィールドに含まれないセルについて前記強調表示を行う、印刷データ作成プログラム。
The print data creation program according to claim 7,
The print data creation program, wherein in the detection process, when the label direction specified for the database is the row direction, the cells not included in the field associated with the processed object are highlighted.
請求項4から請求項6のいずれか1項に記載の印刷データ作成プログラムであって、
前記検出処理では、前記表示部において、前記少なくとも1つの候補セルのうち、前記オブジェクトよりも先に前記検出処理及び前記対応付け処理が実行された処理済オブジェクトに対応付けられた前記フィールドに含まれるセルについて前記強調表示を行う、印刷データ作成プログラム。
The print data creation program according to any one of claims 4 to 6,
In the detection process, in the display unit, among the at least one candidate cell, included in the field associated with the processed object for which the detection process and the association process were performed prior to the object. A print data creation program for performing the above highlighting for a cell.
請求項9に記載の印刷データ作成プログラムであって、
前記検出処理では、前記データベースに対し指定されたラベル方向が列方向の場合に、前記処理済オブジェクトに対応付けられた前記フィールドに含まれるセルについて前記強調表示を行う、印刷データ作成プログラム。
The print data creation program according to claim 9,
The print data creation program, wherein in the detection process, when the label direction specified for the database is the column direction, the cells included in the field associated with the processed object are highlighted.
請求項9又は請求項10に記載の印刷データ作成プログラムであって、
前記対応付け処理では、前記処理済オブジェクトに対応付けられた前記フィールドに含まれるセルが処理対象の前記オブジェクトの前記特定セルとして選択された場合に、処理対象の前記オブジェクトに対応付けられた前記フィールドの印刷開始セルと、前記処理済オブジェクトに対応付けられた前記フィールドの前記特定セル又は先頭行のセルとの列方向のずれ値を自動的に設定する、印刷データ作成プログラム。
The print data creation program according to claim 9 or 10,
In the association processing, when a cell included in the field associated with the processed object is selected as the specific cell of the object to be processed, the field associated with the object to be processed and the specified cell or the first row cell of the field associated with the processed object.
請求項1から請求項11のいずれか1項に記載の印刷データ作成プログラムであって、
前記対応付け処理では、前記特定セルを印刷対象のセルとして自動的に設定する、印刷データ作成プログラム。
The print data creation program according to any one of claims 1 to 11,
A print data creation program for automatically setting the specific cell as a cell to be printed in the association processing.
請求項12に記載の印刷データ作成プログラムであって、
前記対応付け処理では、前記フィールドにおける印刷開始セルのテキストデータが挿入された前記オブジェクトを前記表示部に表示させる、印刷データ作成プログラム。
The print data creation program according to claim 12,
The print data creation program, wherein in the association process, the object into which the text data of the print start cell in the field is inserted is displayed on the display unit.
制御部と、
表示部と、
入力部と、
テキストデータで構成されるセルの行列として記述されたデータベースが記憶された記憶部と、
印刷装置と通信するように構成された通信部と、
を備え、
前記制御部は、
前記表示部に表示されたオブジェクトに対する、前記入力部によるテキストの入力を受け付ける受付処理と、
前記データベースから、前記オブジェクトに入力された前記テキストの少なくとも一部を含む少なくとも1つの候補セルを検出する検出処理と、
前記少なくとも1つの候補セルから選択された特定セルが含まれる前記データベース内の列を、前記オブジェクトに対応したフィールドとして記憶する対応付け処理と、
前記フィールドに含まれるセルのうち、印刷対象のセルのテキストデータを前記オブジェクトにそれぞれ挿入した印刷データを前記印刷装置に出力する印刷処理と、
を実行するように構成される、情報処理装置。
a control unit;
a display unit;
an input unit;
a storage unit storing a database described as a matrix of cells composed of text data;
a communication unit configured to communicate with a printing device;
with
The control unit
a reception process for receiving text input by the input unit for the object displayed on the display unit;
a detection process for detecting from the database at least one candidate cell containing at least a portion of the text entered into the object;
an association process of storing a column in the database containing a specific cell selected from the at least one candidate cell as a field corresponding to the object;
a printing process for outputting to the printing device print data obtained by inserting text data of cells to be printed out of the cells included in the field into the objects;
An information processing device configured to perform
JP2021050348A 2021-03-24 2021-03-24 Printing data creation program and information processing device Pending JP2022148603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021050348A JP2022148603A (en) 2021-03-24 2021-03-24 Printing data creation program and information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021050348A JP2022148603A (en) 2021-03-24 2021-03-24 Printing data creation program and information processing device

Publications (1)

Publication Number Publication Date
JP2022148603A true JP2022148603A (en) 2022-10-06

Family

ID=83463063

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021050348A Pending JP2022148603A (en) 2021-03-24 2021-03-24 Printing data creation program and information processing device

Country Status (1)

Country Link
JP (1) JP2022148603A (en)

Similar Documents

Publication Publication Date Title
JP5766607B2 (en) Label printer
JP5299011B2 (en) Tape printer, control method and program for tape printer
EP1788476B1 (en) Document processing apparatus
JP7103495B2 (en) Print data processing equipment, printing system and printing data processing method
EP1347362B1 (en) Entering text into an electronic communications device
JP2013015949A (en) Display device, portable terminal, control method of display device and program
JP5360488B2 (en) Printing device, creation method for creating printed matter, and computer-readable storage medium
US5331337A (en) Data processing apparatus with self-repeat function
US9218337B2 (en) Text editing apparatus and storage medium
JP2022148603A (en) Printing data creation program and information processing device
US5444828A (en) Document processing device and method
US8345270B2 (en) Print data generation apparatus and computer-readable medium storing print data generation program
JP6266421B2 (en) Image forming apparatus
CN111142683A (en) Input support program, input support method, and input support device
US20210303227A1 (en) Template processing device, print system, processing method of template processing device, and non-transitory computer-readable storage medium storing program
JP2008077615A (en) Information display control device and information display control program
US4934851A (en) Text processing system including plural text and corresponding memories
CN110297883B (en) Information display device, information display method, and recording medium
EP0930559B1 (en) Character entry method and device
JP5532936B2 (en) Electronic device and information display program
JP6695604B1 (en) Character input method, character input device
JP7310864B2 (en) Print data editing method and print data editing program
JP2006129268A (en) Information processing apparatus, article selling data processing apparatus, character input method, character input computer software program, and character input computer software program storage medium
JP2017200121A (en) Image processing apparatus
JP2023081021A (en) Label editing program, label editing method, and smart phone

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240305