JP6766503B2 - Information processing device, control method of information processing device, and control program - Google Patents

Information processing device, control method of information processing device, and control program Download PDF

Info

Publication number
JP6766503B2
JP6766503B2 JP2016150739A JP2016150739A JP6766503B2 JP 6766503 B2 JP6766503 B2 JP 6766503B2 JP 2016150739 A JP2016150739 A JP 2016150739A JP 2016150739 A JP2016150739 A JP 2016150739A JP 6766503 B2 JP6766503 B2 JP 6766503B2
Authority
JP
Japan
Prior art keywords
information
item
receipt
character string
control unit
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
JP2016150739A
Other languages
Japanese (ja)
Other versions
JP2018018466A (en
JP2018018466A5 (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2016150739A priority Critical patent/JP6766503B2/en
Priority to US15/663,108 priority patent/US20180032483A1/en
Publication of JP2018018466A publication Critical patent/JP2018018466A/en
Publication of JP2018018466A5 publication Critical patent/JP2018018466A5/ja
Application granted granted Critical
Publication of JP6766503B2 publication Critical patent/JP6766503B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、情報処理装置、情報処理装置の制御方法、及び、制御プログラムに関する。 The present invention relates to an information processing device, a control method for the information processing device, and a control program.

従来、POS端末内の会計処理部から出力された出力データを、外部装置が解釈可能な形式のデータに変換し、変換したデータを外部装置に送信し、送信したデータを外部装置で管理する技術が知られる(例えば、特許文献1参照)。 Conventionally, a technique of converting output data output from an accounting processing unit in a POS terminal into data in a format that can be interpreted by an external device, transmitting the converted data to an external device, and managing the transmitted data with the external device. Is known (see, for example, Patent Document 1).

特開2012−27633号公報Japanese Unexamined Patent Publication No. 2012-27633

ここで、上述した特許文献1に係るPOS端末のように会計に基づく処理を実行するPOS端末では、会計に応じて、POS端末が、又は、POS端末に接続された印刷装置が、レシートを発行する。レシートには、会計に関する情報等の様々な情報が印刷される。
そして、レシートに印刷される情報のように、印刷媒体に印刷される情報は、後に活用可能な有益な情報が含まれる場合がある。これを踏まえ、印刷媒体に印刷される情報を分析するプログラムを生成し、プログラムによって情報を分析することが行われている。このようなプログラムについては、できるだけ、ユーザーが簡易な操作を行って生成できるようにし、ユーザーの負担を軽減したいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、印刷される情報を分析するプログラムを簡易に生成できるようにすることを目的とする。
Here, in a POS terminal that executes processing based on accounting like the POS terminal according to Patent Document 1 described above, the POS terminal or the printing device connected to the POS terminal issues a receipt according to the accounting. To do. Various information such as accounting information is printed on the receipt.
Then, the information printed on the print medium, such as the information printed on the receipt, may include useful information that can be utilized later. Based on this, a program for analyzing the information printed on the print medium is generated, and the information is analyzed by the program. There is a need to reduce the burden on the user by allowing the user to generate such a program by performing a simple operation as much as possible.
The present invention has been made in view of the above circumstances, and an object of the present invention is to make it possible to easily generate a program for analyzing printed information.

上記課題を解決するために、本発明の情報処理装置は、印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述されたテキストデータとして取得し、前記複数の項目のうちいずれか1つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成する、制御部を備える。
本発明によれば、ユーザーは、画面でルールを指定するという簡易な作業を行うことにより、プログラムを生成することができる。
In order to solve the above problems, the information processing apparatus of the present invention acquires information including item values of a plurality of items printed on a print medium as text data described in text, and any of the plurality of items. Display a screen on which one item can be selected and a rule can be specified to be used when generating a program for acquiring the item value corresponding to the selected item from the text data, and the rule specified on the screen is displayed. It is provided with a control unit that generates the program based on the above.
According to the present invention, a user can generate a program by performing a simple operation of specifying a rule on a screen.

また、本発明は、前記制御部は、選択された項目について、選択された項目の項目値を取得する際に使用する前記ルールの種類を選択させ、前記ルールの種類に応じて、選択された項目に対応する前記ルールを指定可能な前記画面を表示する。
本発明によれば、ユーザーは、ルールの種類に対応する画面でルールを指定するという簡易な作業を行うことにより、ルールの種類に対応するプログラムを生成することができる。
Further, in the present invention, the control unit causes the selected item to select the type of the rule to be used when acquiring the item value of the selected item, and is selected according to the type of the rule. Display the screen on which the rule corresponding to the item can be specified.
According to the present invention, the user can generate a program corresponding to the rule type by performing a simple operation of specifying the rule on the screen corresponding to the rule type.

また、本発明は、前記制御部は、選択された項目について、選択された項目の項目値を取得する際に使用する前記ルールが複数ある場合は、前記ルールを指定可能な複数の前記画面を順番に表示し、それぞれの前記画面で指定された前記ルールに基づいて、前記プログラムを生成する。
本発明の構成によれば、ユーザーは画面で、順次、ルールを指定する、という簡易な作業を行うことにより、複数のルールに基づいて項目値を取得する処理を実行するプログラムを生成できる。
Further, in the present invention, when the control unit has a plurality of the rules used when acquiring the item value of the selected item for the selected item, the control unit displays a plurality of the screens on which the rule can be specified. The programs are displayed in order, and the program is generated based on the rules specified on the respective screens.
According to the configuration of the present invention, the user can generate a program that executes a process of acquiring an item value based on a plurality of rules by performing a simple operation of sequentially specifying rules on the screen.

また、本発明は、前記画面は、所定のボタンを有し、前記制御部は、前記所定のボタンが操作されたことを検出した場合、前記画面で指定された前記ルールに基づいて前記プログラムを生成する。
本発明によれば、ユーザーは、所定のボタンを操作して、プログラムを生成させることができる。
Further, in the present invention, the screen has a predetermined button, and when the control unit detects that the predetermined button has been operated, the program is executed based on the rule specified on the screen. Generate.
According to the present invention, a user can operate a predetermined button to generate a program.

また、本発明は、前記制御部は、生成した前記プログラムの機能により前記テキストデータを分析し、分析結果を表示させる。
本発明によれば、ユーザーは、分析結果を確認することにより、生成されたプログラムの分析結果の妥当性を的確に判別できる。
Further, in the present invention, the control unit analyzes the text data by the function of the generated program and displays the analysis result.
According to the present invention, the user can accurately determine the validity of the analysis result of the generated program by confirming the analysis result.

また、本発明は、レシートを発行可能な印刷装置に接続され、前記制御部は、前記印刷装置によって前記レシートに印刷された情報を前記テキストデータとして取得する。
本発明によれば、ユーザーは、簡易な作業を行うことにより、レシートに印刷される情報を分析するプログラムを生成できる。
Further, the present invention is connected to a printing device capable of issuing a receipt, and the control unit acquires the information printed on the receipt by the printing device as the text data.
According to the present invention, the user can generate a program for analyzing the information printed on the receipt by performing a simple operation.

また、本発明は、前記項目値は、小計、合計、又は、商品に関する情報のいずれかに対応する情報である。
本発明によれば、ユーザーは、簡易な作業を行うことにより、レシートに印刷される小計、合計、及び、商品に関する情報を取得する処理を実行するプログラムを生成できる。
Further, in the present invention, the item value is information corresponding to any of a subtotal, a total, or information regarding a product.
According to the present invention, a user can generate a program that executes a process of acquiring information about subtotals, totals, and products printed on a receipt by performing a simple operation.

また、本発明の情報処理装置の制御方法は、印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述されたテキストデータとして取得し、前記複数の項目のうちいずれか1つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成する。
本発明によれば、ユーザーは、画面でルールを指定するという簡易な作業を行うことにより、プログラムを生成することができる。
Further, the control method of the information processing apparatus of the present invention acquires information including item values of a plurality of items printed on a print medium as text data described in text, and any one of the plurality of items. Display a screen that allows you to specify a rule to be used when selecting an item and generating a program that acquires the item value corresponding to the selected item from the text data, and based on the rule specified on the screen. Generate the program.
According to the present invention, a user can generate a program by performing a simple operation of specifying a rule on a screen.

また、本発明は、情報処理装置を制御する制御部により実行可能な制御プログラムであって、前記制御部に、印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述されたテキストデータとして取得させ、前記複数の項目のうちいずれか1つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成させる。
本発明によれば、ユーザーは、画面でルールを指定するという簡易な作業を行うことにより、プログラムを生成することができる。
Further, the present invention is a control program that can be executed by a control unit that controls an information processing apparatus, in which information including item values of a plurality of items printed on a print medium is described in text in the control unit. It is possible to specify a rule to be used when generating a program for acquiring as text data, selecting any one of the plurality of items, and acquiring the item value corresponding to the selected item from the text data. The screen is displayed, and the program is generated based on the rule specified on the screen.
According to the present invention, a user can generate a program by performing a simple operation of specifying a rule on a screen.

本実施形態に係る会計システムの構成を示す図。The figure which shows the structure of the accounting system which concerns on this embodiment. 会計システムの各装置の機能的構成を示すブロック図。A block diagram showing the functional configuration of each device in the accounting system. タブレット端末、印刷装置、制御サーバーの動作を示すフローチャート。A flowchart showing the operation of a tablet terminal, a printing device, and a control server. 印刷データの一例を示す図。The figure which shows an example of print data. レシートの一例を示す図。The figure which shows an example of the receipt. レシートの一例を示す図。The figure which shows an example of the receipt. 印刷テキストデータの一例を示す図。The figure which shows an example of print text data. 印刷テキストデータの一例を示す図。The figure which shows an example of print text data. パーサー管理データベースのレコードを示す図。Diagram showing records in the parser management database. 分析項目の説明に利用する図。The figure used to explain the analysis item. 分析データの一例を示す図。The figure which shows an example of the analysis data. 分析データ管理データベースのレコードを示す図。A diagram showing records in an analytical data management database. 第1ユーザーインターフェースを示す図。The figure which shows the 1st user interface. 第2ユーザーインターフェースを示す図。The figure which shows the 2nd user interface. 第3ユーザーインターフェースを示す図。The figure which shows the 3rd user interface. 印刷装置管理データベースのレコードを示す図。The figure which shows the record of the printer management database. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 図6Aの印刷テキストデータに含まれる単語を示す表。A table showing words included in the printed text data of FIG. 6A. 図6Bの印刷テキストデータに含まれる単語を示す表である。6 is a table showing words included in the printed text data of FIG. 6B. 図6Bの印刷テキストデータに基づくテキストが表示されたテキスト表示画面を示す図。The figure which shows the text display screen which displayed the text based on the print text data of FIG. 6B. 図6Bの印刷テキストデータに基づくテキストが表示されたテキスト表示画面を示す図。The figure which shows the text display screen which displayed the text based on the print text data of FIG. 6B. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 制御サーバーの動作を示すフローチャート。A flowchart showing the operation of the control server. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows the 4th user interface.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る会計システム1(情報処理システム)の構成を示す図である。
図1に示すように、会計システム1は、複数の店舗システム11を備える。店舗システム11は、スーパーマーケットや、コンビニエンスストア、デパート、飲食店等の店舗に用いられるシステムである。店舗は、商品の提供が行われ、商品の提供に応じて、顧客による会計が行われる施設であればよい。本実施形態において、「商品」は、物体として顧客に引き渡される商品だけでなく、顧客に提供されるサービスや、顧客に提供される飲食物等、対価と引き換えに顧客に提供される対象を意味する。
店舗システム11は、顧客が購入した商品に応じた会計を行う機能、会計に応じてレシートを発行する機能等を備える。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing a configuration of an accounting system 1 (information processing system) according to the present embodiment.
As shown in FIG. 1, the accounting system 1 includes a plurality of store systems 11. The store system 11 is a system used in stores such as supermarkets, convenience stores, department stores, and restaurants. The store may be a facility where products are provided and the customer pays for the products. In the present embodiment, the "product" means not only a product delivered to a customer as an object but also an object provided to the customer in exchange for consideration such as a service provided to the customer and food and drink provided to the customer. To do.
The store system 11 includes a function of accounting according to the product purchased by the customer, a function of issuing a receipt according to the accounting, and the like.

店舗システム11が適用される店舗には、顧客が会計を行なうレジカウンターLが設けられる。レジカウンターLには、ロール紙(印刷媒体)に印刷する機能を有する印刷装置12が設けられる。また、レジカウンターLには、印刷装置12と無線通信可能に接続され、印刷装置12を制御するタブレット端末13が設けられる。
レジカウンターLにおける会計に際し、レジ担当者は、印刷装置12に接続されたバーコードリーダーBRで商品や商品の包装に付されたバーコードを読み取り、また、タブレット端末13に対して会計に対応する入力を行う。印刷装置12は、バーコードリーダーBRによる読み取りに基づくデータを、タブレット端末13に送信する。タブレット端末13は、印刷装置12から受信したバーコードリーダーBRの読み取りに基づくデータや、レジ担当者による会計に対応する入力に基づいて、印刷装置12を制御し、印刷装置12にレシートを発行させる。印刷装置12により発行されたレシートは、レジ担当者により顧客に引き渡される。
印刷装置12、及び、タブレット端末13の構成、機能、及び、機能に基づく処理については後述する。
A cashier counter L for customers to make payments is provided at a store to which the store system 11 is applied. The cashier counter L is provided with a printing device 12 having a function of printing on roll paper (printing medium). Further, the cashier counter L is provided with a tablet terminal 13 that is wirelessly connected to the printing device 12 and controls the printing device 12.
At the time of checkout at the checkout counter L, the cashier person reads the bar code attached to the product or the packaging of the product with the bar code reader BR connected to the printing device 12, and also handles the checkout for the tablet terminal 13. Make an input. The printing device 12 transmits data based on reading by the barcode reader BR to the tablet terminal 13. The tablet terminal 13 controls the printing device 12 based on the data based on the reading of the barcode reader BR received from the printing device 12 and the input corresponding to the accounting by the cashier, and causes the printing device 12 to issue a receipt. .. The receipt issued by the printing device 12 is delivered to the customer by the cashier.
The configuration, functions, and processing based on the functions of the printing device 12 and the tablet terminal 13 will be described later.

店舗システム11は、ローカルエリアネットワークLNを備える。
ローカルエリアネットワークLNには、印刷装置12が接続される。
また、ローカルエリアネットワークLNには、通信装置14が接続される。通信装置14は、ローカルエリアネットワークLNと、インターネット、電話網、その他の通信網を含むグローバルネットワークGNとを接続するインターフェース装置である。通信装置14は、モデム(又は、ONU(Optical Network Unit))に係る機能、ルーター機能、NAT(Network Address Translation)機能、及び、DHCP(Dynamic Host Configuration Protocol)サーバー機能等を有する。通信装置14は、ローカルエリアネットワークLNに接続された機器と、グローバルネットワークGNに接続された機器との間で行われる通信に際し、機器間で送受信されるデータを転送する。なお、図1では、通信装置14を1つのブロックで表現するが、通信装置14は、機能に応じた複数の装置を有する構成でもよい。
印刷装置12は、通信装置14を介して、グローバルネットワークGNにアクセス可能である。
The store system 11 includes a local area network LN.
The printing device 12 is connected to the local area network LN.
Further, the communication device 14 is connected to the local area network LN. The communication device 14 is an interface device that connects the local area network LN and the global network GN including the Internet, a telephone network, and other communication networks. The communication device 14 has a modem (or ONU (Optical Network Unit)) function, a router function, a NAT (Network Address Translation) function, a DHCP (Dynamic Host Configuration Protocol) server function, and the like. The communication device 14 transfers data transmitted and received between the devices in the communication performed between the devices connected to the local area network LNN and the devices connected to the global network GN. Although the communication device 14 is represented by one block in FIG. 1, the communication device 14 may have a configuration having a plurality of devices according to the functions.
The printing device 12 can access the global network GN via the communication device 14.

グローバルネットワークGNには、制御サーバー15(情報処理装置)が接続される。制御サーバー15は、印刷装置12と通信可能なサーバー装置である。すなわち、制御サーバー15は、クライアントからの要求等をトリガーとして、所定の演算処理を実行する。制御サーバー15は、必要に応じて、演算処理の結果に基づくデータを、クライアントに送信する。なお、図1では、制御サーバー15を、1つのブロックによって表現するが、これは制御サーバー15が単一のサーバー装置により構成されることを意味するものではない。例えば、制御サーバー15は、複数のサーバー装置を含んで構成されたものでもよい。すなわち、制御サーバー15は、後述する各種処理を実行可能な構成であれば、その形態を問わない。 A control server 15 (information processing device) is connected to the global network GN. The control server 15 is a server device capable of communicating with the printing device 12. That is, the control server 15 executes a predetermined arithmetic process by using a request from a client or the like as a trigger. The control server 15 transmits data based on the result of the arithmetic processing to the client, if necessary. In FIG. 1, the control server 15 is represented by one block, but this does not mean that the control server 15 is composed of a single server device. For example, the control server 15 may be configured to include a plurality of server devices. That is, the control server 15 may be in any form as long as it has a configuration capable of executing various processes described later.

図2は、会計システム1が備える各装置の機能的構成を示すブロック図である。
タブレット端末13は、前面の広い領域にタッチパネル22が設けられたタブレット型の(板状の)端末である。タブレット端末13は、レジカウンターLにおける会計に際し、会計に関する各種処理を実行して印刷装置12を制御するホストコンピューターとして機能する。
図2に示すように、タブレット端末13は、タブレット端末制御部20と、タブレット端末通信部21と、タッチパネル22と、タブレット端末記憶部23と、を備える。
FIG. 2 is a block diagram showing a functional configuration of each device included in the accounting system 1.
The tablet terminal 13 is a tablet-type (plate-shaped) terminal in which the touch panel 22 is provided in a wide area on the front surface. The tablet terminal 13 functions as a host computer that controls the printing device 12 by executing various processes related to accounting at the time of accounting at the cashier counter L.
As shown in FIG. 2, the tablet terminal 13 includes a tablet terminal control unit 20, a tablet terminal communication unit 21, a touch panel 22, and a tablet terminal storage unit 23.

タブレット端末制御部20は、CPUや、ROM、RAM、ASIC、信号処理回路等を備え、タブレット端末13の各部を制御する。タブレット端末制御部20は、例えばCPUが、ROMに記憶されたプログラムをRAMに読み出して処理を実行し、また例えばASICに実装された機能により処理を実行し、また例えば信号処理回路で信号処理を行って処理を実行する等、ハードウェア及びソフトウェアにより処理を実行する。タブレット端末13には、所定のアプリケーションが事前にインストールされる。タブレット端末制御部20は、当該所定のアプリケーション、当該所定のアプリケーションに付随するプログラム(OSや、API、プラグイン等。)、その他のプログラムを読み出して実行することにより、アプリケーション実行部201として機能する。 The tablet terminal control unit 20 includes a CPU, ROM, RAM, ASIC, signal processing circuit, and the like, and controls each unit of the tablet terminal 13. In the tablet terminal control unit 20, for example, the CPU reads the program stored in the ROM into the RAM and executes the processing, executes the processing by the function implemented in the ASIC, for example, and performs the signal processing in the signal processing circuit, for example. Perform processing by hardware and software, such as performing processing. A predetermined application is pre-installed on the tablet terminal 13. The tablet terminal control unit 20 functions as an application execution unit 201 by reading and executing the predetermined application, a program (OS, API, plug-in, etc.) associated with the predetermined application, and other programs. ..

タブレット端末通信部21は、タブレット端末制御部20の制御で、所定の無線通信の規格に従って、印刷装置12と通信する。タブレット端末13と印刷装置12との間で行われる通信の無線通信規格は、アドホックモードに対応する無線LANに係る規格や、インフラストラクチャーモードに対応する無線LANに係る規格、Bluetooth(登録商標)等の近距離無線通信に係る規格等、どのような規格でもよい。 The tablet terminal communication unit 21 communicates with the printing device 12 under the control of the tablet terminal control unit 20 according to a predetermined wireless communication standard. The wireless communication standards for communication between the tablet terminal 13 and the printing device 12 include standards related to wireless LAN corresponding to ad hoc mode, standards related to wireless LAN corresponding to infrastructure mode, Bluetooth (registered trademark), etc. Any standard may be used, such as a standard related to short-range wireless communication.

タッチパネル22は、液晶表示パネル等の表示パネルと、表示パネルに重ねて設けられたタッチセンサーとを備える。表示パネルは、タブレット端末制御部20の制御で、各種画像を表示する。タッチセンサーは、タッチ操作を検出し、タブレット端末制御部20に出力する。タブレット端末制御部20は、タッチセンサーからの入力に基づいて、タッチ操作に対応する処理を実行する。 The touch panel 22 includes a display panel such as a liquid crystal display panel, and a touch sensor provided so as to be superimposed on the display panel. The display panel displays various images under the control of the tablet terminal control unit 20. The touch sensor detects the touch operation and outputs it to the tablet terminal control unit 20. The tablet terminal control unit 20 executes a process corresponding to the touch operation based on the input from the touch sensor.

タブレット端末記憶部23は、不揮発性メモリーを備え、各種データを記憶する。 The tablet terminal storage unit 23 includes a non-volatile memory and stores various data.

印刷装置12は、ロール紙を収容し、収容したロール紙にライン型のサーマルヘッドでドットを形成して画像を印刷するサーマルプリンターである。
なお、本実施形態に係る印刷装置12の印刷方式はサーマル方式であるが、印刷装置12の印刷方式は、サーマル方式に限らず、インクジェット方式等の他の印刷方式でもよい。また、印刷装置12の印刷ヘッドは、ライン型に限らず、シリアル型でもよい。
図2に示すように、印刷装置12は、印刷装置制御部30と、印刷部31と、印刷装置記憶部32と、印刷装置通信部33と、印刷装置ネットワーク通信部34と、デバイス通信部35と、を備える。
The printing device 12 is a thermal printer that stores roll paper, forms dots on the stored roll paper with a line-type thermal head, and prints an image.
The printing method of the printing device 12 according to the present embodiment is a thermal method, but the printing method of the printing device 12 is not limited to the thermal method, and other printing methods such as an inkjet method may be used. Further, the print head of the printing apparatus 12 is not limited to the line type, and may be a serial type.
As shown in FIG. 2, the printing device 12 includes a printing device control unit 30, a printing unit 31, a printing device storage unit 32, a printing device communication unit 33, a printing device network communication unit 34, and a device communication unit 35. And.

印刷装置制御部30は、CPUや、ROM、RAM、ASIC、信号処理回路等を備え、印刷装置12の各部を制御する。印刷装置制御部30は、例えばCPUが、ROMに記憶されたプログラムをRAMに読み出して処理を実行し、また例えばASICに実装された機能により処理を実行し、また例えば信号処理回路で信号処理を行って処理を実行する等、ハードウェア及びソフトウェアにより処理を実行する。 The printing device control unit 30 includes a CPU, ROM, RAM, ASIC, signal processing circuit, and the like, and controls each part of the printing device 12. In the printing device control unit 30, for example, the CPU reads the program stored in the ROM into the RAM and executes the processing, executes the processing by the function implemented in the ASIC, for example, and performs the signal processing in the signal processing circuit, for example. Perform processing by hardware and software, such as performing processing.

印刷部31は、印刷装置12の筐体に収容されたロール紙を搬送する搬送機構や、サーマルヘッドによってロール紙にドットを形成して画像を印刷する印刷機構、ロール紙を所定の位置で切断する切断機構等のロール紙への印刷に関する各種機構を備える。印刷部31は、印刷装置制御部30の制御で、搬送機構によりロール紙を搬送し、印刷機構によりロール紙にレシートに係る画像を印刷し、切断機構により所定の位置でロール紙を切断して、レシートを発行する。 The printing unit 31 cuts the roll paper at a predetermined position, such as a transport mechanism for transporting the roll paper housed in the housing of the printing device 12, a printing mechanism for forming dots on the roll paper with a thermal head to print an image, and a roll paper. It is equipped with various mechanisms related to printing on roll paper, such as a cutting mechanism. Under the control of the printing device control unit 30, the printing unit 31 conveys the roll paper by the conveying mechanism, prints an image related to the receipt on the roll paper by the printing mechanism, and cuts the roll paper at a predetermined position by the cutting mechanism. , Issue a receipt.

印刷装置記憶部32は、不揮発性メモリーを備え、各種データを記憶する。 The printing device storage unit 32 includes a non-volatile memory and stores various data.

印刷装置通信部33は、印刷装置制御部30の制御で、タブレット端末13と所定の無線通信規格に従って通信する。タブレット端末13と印刷装置12との間で行われる通信の無線通信規格は、アドホックモードに対応する無線LANに係る規格や、インフラストラクチャーモードに対応する無線LANに係る規格、Bluetooth等の近距離無線通信に係る規格等、どのような規格でもよい。 The printing device communication unit 33 communicates with the tablet terminal 13 in accordance with a predetermined wireless communication standard under the control of the printing device control unit 30. The wireless communication standards for communication between the tablet terminal 13 and the printing device 12 are standards related to wireless LAN corresponding to ad hoc mode, standards related to wireless LAN corresponding to infrastructure mode, and short-range wireless such as Bluetooth. Any standard such as a communication standard may be used.

印刷装置ネットワーク通信部34は、印刷装置制御部30の制御で、グローバルネットワークGNと接続する機器(制御サーバー15を含む。)と所定の通信規格に従って通信する。印刷装置ネットワーク通信部34が通信に用いる通信規格は、HTTPや、WebSocket等、どのような規格でもよい。 The printing device network communication unit 34 communicates with a device (including a control server 15) connected to the global network GN according to a predetermined communication standard under the control of the printing device control unit 30. The communication standard used for communication by the printing device network communication unit 34 may be any standard such as HTTP or WebSocket.

デバイス通信部35は、USBの規格に従ったポートや、USB以外のシリアル通信規格(RS232C等。)に従ったポート、パラレル通信規格(IEEE1284等。)に従ったポート、有線LANに係る通信規格(イーサネット(登録商標)等。)に従ったポート、その他ポートを有するインターフェースボードを備える。各ポートには、デバイスが接続可能である。デバイス通信部35は、印刷装置制御部30の制御で、ポートを介して印刷装置12に接続されたデバイスと通信する。
なお、デバイス通信部35が、無線通信機能を備え、デバイスと無線通信する構成でもよい。
The device communication unit 35 includes a port conforming to a USB standard, a port conforming to a serial communication standard other than USB (RS232C, etc.), a port conforming to a parallel communication standard (IEEE1284, etc.), and a communication standard related to a wired LAN. It is provided with an interface board having a port according to (Ethernet (registered trademark), etc.) and other ports. A device can be connected to each port. The device communication unit 35 communicates with the device connected to the printing device 12 via the port under the control of the printing device control unit 30.
The device communication unit 35 may have a wireless communication function and may be configured to wirelessly communicate with the device.

印刷装置12には、デバイスとして、バーコードリーダーBR、カスタマーディスプレーCD、及び、自動釣銭機JTが接続される。
バーコードリーダーBRは、商品や、商品の包装等に付されたバーコードを読み取り、読取結果を示すデータをデバイス通信部35に出力する。デバイス通信部35は、バーコードリーダーBRから入力されたデータを、印刷装置制御部30に出力する。
カスタマーディスプレーCDは、印刷装置制御部30の制御で、会計に関する情報を表示する。カスタマーディスプレーCDに表示された情報は、レジカウンターLで会計を行う顧客が視認できる。
自動釣銭機JTは、顧客から受け取った貨幣を投入する貨幣受取口と、釣銭に係る貨幣を排出する釣銭排出口とを備え、印刷装置制御部30の制御で、貨幣受取口を介して貨幣が投入された場合、対応する釣銭を釣銭排出口から排出する。
A barcode reader BR, a customer display CD, and an automatic change machine JT are connected to the printing device 12 as devices.
The barcode reader BR reads the barcode attached to the product, the packaging of the product, or the like, and outputs data indicating the reading result to the device communication unit 35. The device communication unit 35 outputs the data input from the barcode reader BR to the printing device control unit 30.
The customer display CD displays information related to accounting under the control of the printing device control unit 30. The information displayed on the customer display CD can be visually recognized by the customer who makes the payment at the cashier counter L.
The automatic change machine JT is provided with a money receiving port for inserting the money received from the customer and a change discharging port for discharging the money related to the change, and the money is sent through the money receiving port under the control of the printing device control unit 30. When it is thrown in, the corresponding change is discharged from the change outlet.

制御サーバー15は、サーバー装置である。
図2に示すように、制御サーバー15は、制御サーバー制御部40(制御部)と、制御サーバーネットワーク通信部41と、制御サーバー記憶部42と、制御サーバー表示部43と、制御サーバー入力部44とを備える。
The control server 15 is a server device.
As shown in FIG. 2, the control server 15 includes a control server control unit 40 (control unit), a control server network communication unit 41, a control server storage unit 42, a control server display unit 43, and a control server input unit 44. And.

制御サーバー制御部40は、CPUや、ROM、RAM、ASIC、信号処理回路等を備え、制御サーバー15の各部を制御する。制御サーバー制御部40は、例えばCPUが、ROMに記憶されたプログラムをRAMに読み出して処理を実行し、また例えばASICに実装された機能により処理を実行し、また例えば信号処理回路で信号処理を行って処理を実行する等、ハードウェア及びソフトウェアにより処理を実行する。 The control server control unit 40 includes a CPU, ROM, RAM, ASIC, signal processing circuit, and the like, and controls each unit of the control server 15. In the control server control unit 40, for example, the CPU reads the program stored in the ROM into the RAM and executes the processing, executes the processing by the function implemented in the ASIC, for example, and performs the signal processing in the signal processing circuit, for example. Perform processing by hardware and software, such as performing processing.

制御サーバーネットワーク通信部41は、制御サーバー制御部40の制御で、グローバルネットワークGNと接続する機器(印刷装置12を含む。)と所定の通信規格に従って通信する。制御サーバーネットワーク通信部41が通信に用いる通信規格は、HTTPや、WebSocket等、どのような規格でもよい。 The control server network communication unit 41 communicates with a device (including a printing device 12) connected to the global network GN according to a predetermined communication standard under the control of the control server control unit 40. The communication standard used by the control server network communication unit 41 for communication may be any standard such as HTTP or WebSocket.

制御サーバー記憶部42は、不揮発性メモリーを備え、各種データを記憶する。制御サーバー記憶部42は、パーサー管理データベース421と、分析データ管理データベース422と、印刷装置管理データベース423とを記憶する。これらデータベースについては後述する。 The control server storage unit 42 includes a non-volatile memory and stores various data. The control server storage unit 42 stores the parser management database 421, the analysis data management database 422, and the printing device management database 423. These databases will be described later.

制御サーバー表示部43は、表示パネルを備え、制御サーバー制御部40の制御で、表示パネルに各種情報を表示する。 The control server display unit 43 includes a display panel, and under the control of the control server control unit 40, various information is displayed on the display panel.

制御サーバー入力部44は、キーボード、マウス、その他の入力手段を備え、入力手段に対するユーザーの操作を検出し、制御サーバー制御部40に出力する。制御サーバー制御部40は、制御サーバー入力部44からの入力に基づいて、入力手段に対するユーザーの操作に対応する処理を実行する。 The control server input unit 44 includes a keyboard, a mouse, and other input means, detects a user's operation on the input means, and outputs the input to the control server control unit 40. The control server control unit 40 executes a process corresponding to the user's operation on the input means based on the input from the control server input unit 44.

次に、レジカウンターLで顧客の会計が行われた場合の、タブレット端末13、印刷装置12、及び、制御サーバー15の動作について説明する。 Next, the operations of the tablet terminal 13, the printing device 12, and the control server 15 when the customer is accounted for at the cashier counter L will be described.

図3は、レジカウンターLで会計が行われた場合のタブレット端末13、印刷装置12、及び、制御サーバー15の動作を示すフローチャートである。図3のフローチャートFAはタブレット端末13の動作を示し、フローチャートFBは印刷装置12の動作を示し、フローチャートFCは制御サーバー15の動作をそれぞれ示す。 FIG. 3 is a flowchart showing the operation of the tablet terminal 13, the printing device 12, and the control server 15 when the checkout is performed at the cashier counter L. The flowchart FA of FIG. 3 shows the operation of the tablet terminal 13, the flowchart FB shows the operation of the printing device 12, and the flowchart FC shows the operation of the control server 15.

図3のフローチャートFAに示すように、タブレット端末13のタブレット端末制御部20のアプリケーション実行部201は、顧客の会計に応じて会計処理(決済処理)を実行し、会計処理に基づいて印刷データを生成する(ステップSA1)。 As shown in the flowchart FA of FIG. 3, the application execution unit 201 of the tablet terminal control unit 20 of the tablet terminal 13 executes accounting processing (settlement processing) according to the customer's accounting, and prints data based on the accounting processing. Generate (step SA1).

ステップSA1の処理について詳述すると、アプリケーション実行部201は、タッチパネル22に、会計に対応する入力が可能なユーザーインターフェースを表示させる。アプリケーション実行部201は、タッチパネル22に対するレジ担当者の入力や、顧客の会計に伴う印刷装置12からの入力に応じて、レシート情報を生成する。レシート情報とは、印刷装置12に発行させるレシートに印刷される情報である。レシート情報の具体的な内容については、後に、例を挙げて説明する。
次いで、アプリケーション実行部201は、生成したレシート情報に基づいて、印刷データを生成する。印刷データは、所定のレイアウトでレシート情報が印刷されたレシートの発行を指示するデータである。印刷データは、印刷装置12のコマンド体系に従った複数の制御コマンドを含んで構成される。
To elaborate on the processing of step SA1, the application execution unit 201 causes the touch panel 22 to display a user interface capable of input corresponding to accounting. The application execution unit 201 generates receipt information in response to the input of the cashier on the touch panel 22 and the input from the printing device 12 accompanying the customer's accounting. The receipt information is information printed on a receipt issued by the printing apparatus 12. The specific content of the receipt information will be described later with an example.
Next, the application execution unit 201 generates print data based on the generated receipt information. The print data is data that instructs the issuance of a receipt on which the receipt information is printed in a predetermined layout. The print data is configured to include a plurality of control commands according to the command system of the printing device 12.

図4は、印刷データの一例である印刷データDT1を示す図である。
図4の印刷データDT1に示すように、印刷データには、グラフィック画像印刷指示コマンドCM1と、文字列印刷関連コマンド群GMと、改行コマンドLFと、カットコマンドCM4とを含む。また、文字列印刷関連コマンド群GMは、文字列装飾コマンドCM2と、文字列印刷指示コマンドCM3とを含む。
FIG. 4 is a diagram showing print data DT1 which is an example of print data.
As shown in the print data DT1 of FIG. 4, the print data includes a graphic image print instruction command CM1, a character string print-related command group GM, a line feed command LF, and a cut command CM4. Further, the character string printing-related command group GM includes a character string decoration command CM2 and a character string printing instruction command CM3.

グラフィック画像印刷指示コマンドCM1は、専用の命令コードと、ビットマップデータ等のイメージデータとを含み、イメージデータに基づくグラフィック画像の印刷を指示する制御コマンドである。イメージデータとは、ドットマトリックス状に配置されたドットについて、各ドットの色に関する情報を保持するデータである。グラフィック画像は、フォントデータに基づいて印刷される画像ではなく、ホストコンピューターとして機能する装置(本実施形態では、タブレット端末13。)から受信したイメージデータに基づいて印刷される画像である。後述するロゴ情報J1は、グラフィック画像に相当する。 The graphic image print instruction command CM1 is a control command that includes a dedicated instruction code and image data such as bitmap data, and instructs printing of a graphic image based on the image data. The image data is data that holds information about the color of each dot of the dots arranged in a dot matrix. The graphic image is not an image printed based on font data, but an image printed based on image data received from a device (tablet terminal 13 in this embodiment) that functions as a host computer. The logo information J1 described later corresponds to a graphic image.

文字列印刷関連コマンド群GMに含まれる文字列印刷指示コマンドCM3は、1行分の文字列の印刷を指示する制御コマンドである。文字列印刷指示コマンドCM3は、専用の命令コードと、印刷を指示する文字列の情報(文字列を構成する1又は複数の文字の文字コードの組み合わせ。)と、を含む。
文字列印刷関連コマンド群GMに含まれる文字列装飾コマンドCM2は、文字列印刷指示コマンドCM3によって印刷が指示された文字列に施す装飾を指定する制御コマンドである。文字列に施す装飾は、例えば、右寄せ、中央寄せ、左寄せ、太字化、アンダーラインの付加、強調点の付加、白黒の反転、回転、拡大、縮小である。
The character string printing instruction command CM3 included in the character string printing related command group GM is a control command for instructing the printing of a character string for one line. The character string printing instruction command CM3 includes a dedicated instruction code and information on a character string instructing printing (a combination of character codes of one or a plurality of characters constituting the character string).
The character string decoration command CM2 included in the character string printing-related command group GM is a control command for designating the decoration to be applied to the character string whose printing is instructed by the character string printing instruction command CM3. The decorations applied to the character string are, for example, right-aligned, center-aligned, left-aligned, bold, underlined, emphasized, black-and-white inverted, rotated, enlarged, and reduced.

ここで、印刷装置12の印刷装置記憶部32は、印刷可能な文字のそれぞれのフォントデータを記憶する。印刷装置12の印刷装置制御部30は、1の文字列印刷関連コマンド群GMに基づいて文字列を印刷する場合、以下の処理を実行する。すなわち、印刷装置制御部30は、所定の手段で、当該1の文字列印刷関連コマンド群GMに含まれる文字列印刷指示コマンドCM3に含まれる文字コードのそれぞれを、対応するフォントデータのそれぞれに変換する。次いで、印刷装置制御部30は、フォントデータのそれぞれに、当該1の文字列印刷関連コマンド群GMに含まれる文字列装飾コマンドCM2が指定する装飾を施し、フォントデータのそれぞれを画像バッファーに展開する。次いで、印刷装置制御部30は、画像バッファーに展開したフォントデータのそれぞれに基づいて印刷部31を制御し、1行分の文字列を印刷する。 Here, the printing device storage unit 32 of the printing device 12 stores the font data of each printable character. When printing a character string based on the character string printing-related command group GM of 1, the printing device control unit 30 of the printing device 12 executes the following processing. That is, the printing device control unit 30 converts each of the character codes included in the character string printing instruction command CM3 included in the character string printing related command group GM of the one into each of the corresponding font data by a predetermined means. To do. Next, the printing device control unit 30 decorates each of the font data with the decoration specified by the character string decoration command CM2 included in the character string printing-related command group GM of 1, and expands each of the font data into the image buffer. .. Next, the printing device control unit 30 controls the printing unit 31 based on each of the font data expanded in the image buffer, and prints a character string for one line.

改行コマンドLFは、改行を指示するコマンドである。 The line feed command LF is a command for instructing a line feed.

カットコマンドCM4は、ロール紙の切断を指示するコマンドである。 The cut command CM4 is a command for instructing cutting of the roll paper.

図3のフローチャートFAに示すように、ステップSA1で印刷データを生成した後、アプリケーション実行部201は、タブレット端末通信部21を制御して、生成した印刷データを、印刷装置12に送信する(ステップSA2)。 As shown in the flowchart FA of FIG. 3, after the print data is generated in step SA1, the application execution unit 201 controls the tablet terminal communication unit 21 to transmit the generated print data to the printing device 12 (step). SA2).

図3のフローチャートFBに示すように、印刷装置12の印刷装置制御部30は、印刷装置通信部33を制御して、印刷データを受信する(ステップSB1)。 As shown in the flowchart FB of FIG. 3, the printing device control unit 30 of the printing device 12 controls the printing device communication unit 33 to receive print data (step SB1).

次いで、印刷装置制御部30は、ステップSB1で受信した印刷データに基づいて、印刷部31を制御して、レシートを発行する(ステップSB2)。発行されたレシートは、顧客に引き渡される。 Next, the printing device control unit 30 controls the printing unit 31 based on the print data received in step SB1 to issue a receipt (step SB2). The issued receipt is handed over to the customer.

ここで、店舗において印刷装置12により発行されるレシートには、以下の特徴がある。すなわち、1の印刷装置12が発行するレシートのレイアウトは、タブレット端末13にインストールされた所定のアプリケーションの変更がない限り、同じである。一方、印刷装置12と通信するタブレット端末13の違いによって、1の印刷装置12と、他の印刷装置12とでは、発行するレシートのレイアウトが、相互に異なる場合がある。 Here, the receipt issued by the printing apparatus 12 in the store has the following features. That is, the layout of the receipt issued by the printing device 12 of 1 is the same as long as the predetermined application installed on the tablet terminal 13 is not changed. On the other hand, due to the difference in the tablet terminal 13 that communicates with the printing device 12, the layout of the receipt to be issued may be different between the printing device 12 of 1 and the other printing device 12.

図5Aは印刷データに基づいて印刷装置12により発行されるレシートの一例であるレシートR1を示す。図5Bは、図5Aで例示するレシートR1のレイアウトとは異なるレイアウトのレシートR2を示す。なお、図5Aで例示するレシートR1に印刷された情報の内容と、図5Bで例示するレシートR2に印刷された情報の内容とは、同一性を有する。 FIG. 5A shows a receipt R1 which is an example of a receipt issued by the printing apparatus 12 based on the print data. FIG. 5B shows a receipt R2 having a layout different from that of the receipt R1 illustrated in FIG. 5A. The content of the information printed on the receipt R1 illustrated in FIG. 5A and the content of the information printed on the receipt R2 exemplified in FIG. 5B have the same identity.

なお、本実施形態では、文字コードが割り当てられた対象のことを「文字」と表現する。従って、文字には、文字コードが割り当てられた記号(「@」や、「−」、「$」、「¥」等。)や、文字コードが割り当てられた空白文字(スペースや、ブランクと呼ばれる場合もある。)が含まれる。以下、空白文字を、適宜、「△」で表す。 In this embodiment, the object to which the character code is assigned is expressed as "character". Therefore, the character is called a symbol to which a character code is assigned ("@", "-", "$", "\", etc.) or a blank character to which a character code is assigned (a space or a blank). In some cases.) Is included. Hereinafter, the blank character is appropriately represented by "Δ".

図5Aで例示するレシートR1には、先頭に、店舗の名称を図案化したロゴ情報J1が印刷される。ロゴ情報J1は、上述したグラフィック画像印刷指示コマンドCM1に基づいて印刷される。 On the receipt R1 illustrated in FIG. 5A, logo information J1 in which the name of the store is stylized is printed at the head. The logo information J1 is printed based on the graphic image print instruction command CM1 described above.

レシートR1において、ロゴ情報J1の下方は、店舗の住所を文字列で表す店舗住所情報J2が一行で印刷される。店舗住所情報J2は、中央寄せに係る装飾を指定する文字列装飾コマンドCM2と、店舗の住所を表す文字列の印刷を指示する文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。
レシートR1において、店舗住所情報J2の一行下には、店舗の電話番号を文字列で表す店舗電話番号情報J3が一行で印刷される。店舗電話番号情報J3は、中央寄せに係る装飾を指定する文字列装飾コマンドCM2と、店舗の電話番号を表す文字列の印刷を指示する文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。
In the receipt R1, below the logo information J1, the store address information J2 representing the store address as a character string is printed in one line. The store address information J2 is used in the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to centering and the character string printing instruction command CM3 for instructing the printing of the character string representing the store address. Printed based on.
In the receipt R1, the store telephone number information J3 representing the store telephone number as a character string is printed in one line below the store address information J2. The store telephone number information J3 is a character string printing-related command group including a character string decoration command CM2 for designating decoration related to centering and a character string printing instruction command CM3 for instructing printing of a character string representing a store telephone number. Printed based on GM.

レシートR1において、店舗電話番号情報J3の一行下には、第1エリア分割情報SK1が印刷される。第1エリア分割情報SK1は、文字「−」が一行内で、所定の個数、連続して構成された文字列である。
レシートR1は、1つ目の第1エリア分割情報SK1によって印刷領域が区切られ、1つ目の第1エリア分割情報SK1よりも上方がエリア分けされる。以下、レシートR1において、第1エリア分割情報SK1よりも上方のエリアを「エリアAA1」とする。
In the receipt R1, the first area division information SK1 is printed under one line of the store telephone number information J3. The first area division information SK1 is a character string in which a predetermined number of characters "-" are continuously composed in one line.
The print area of the receipt R1 is divided by the first first area division information SK1, and the area above the first first area division information SK1 is divided into areas. Hereinafter, in the receipt R1, the area above the first area division information SK1 is referred to as "area AA1".

レシートR1において、1つ目の第1エリア分割情報SK1の一行下には、レシート識別関連情報J4が印刷される。レシート識別関連情報J4は、レシートを識別する識別情報を文字列で表すレシート識別情報J42を有する。レシート識別情報J42の値は、レシートごとに異なる。また、レシート識別関連情報J4は、レシート識別情報J42の同一行において、レシート識別情報J42の左方に印刷され、レシート識別情報J42がレシートを識別する識別情報であることを明示する情報を文字列で表すレシート識別明示情報J41を有する。図5Aに示すように、レシートR1に係るレシート識別明示情報J41は、文字列「Check♯:」からなる情報である。
レシート識別関連情報J4は、中央寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、レシート識別明示情報J41を表す文字列と、1つの空白文字と、レシート識別情報J42を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。図5AのレシートR1では、「レシート識別明示情報J41を表す文字列と、空白文字と、レシート識別情報J42を表す文字列とが連続する文字列」は、文字列「Check♯:△C0001」である。
In the receipt R1, the receipt identification-related information J4 is printed under one line of the first first area division information SK1. The receipt identification-related information J4 has receipt identification information J42 that represents identification information for identifying the receipt as a character string. The value of the receipt identification information J42 differs for each receipt. Further, the receipt identification related information J4 is printed on the left side of the receipt identification information J42 in the same line of the receipt identification information J42, and is a character string of information clearly indicating that the receipt identification information J42 is the identification information for identifying the receipt. It has the receipt identification explicit information J41 represented by. As shown in FIG. 5A, the receipt identification explicit information J41 related to the receipt R1 is information composed of the character string “Check #:”.
The receipt identification-related information J4 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to centering and the following character string printing instruction command CM3. The character string print instruction command CM3 is a control command for instructing printing of a character string in which a character string representing the receipt identification explicit information J41, one blank character, and a character string representing the receipt identification information J42 are continuous. In the receipt R1 of FIG. 5A, the "character string in which the character string representing the receipt identification explicit information J41, the blank character, and the character string representing the receipt identification information J42 are continuous" is the character string "Check #: ΔC0001". is there.

レシートR1において、レシート識別関連情報J4の一行下には、レシートが発行された日時を文字列で表す発行日時情報J5が印刷される。発行日時情報J5は、中央寄せに係る装飾を指定する文字列装飾コマンドCM2と、レシートが発行された日時を表す文字列の印刷を指示する文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。 In the receipt R1, issuance date / time information J5 representing the date and time when the receipt was issued as a character string is printed under one line of the receipt identification related information J4. The issue date / time information J5 is a character string print-related command including a character string decoration command CM2 for designating decoration related to centering and a character string print instruction command CM3 for instructing printing of a character string indicating the date and time when the receipt was issued. Printed based on group GM.

発行日時情報J5の一行下には、第1エリア分割情報SK1が印刷される。
レシートR1は、1つ目の第1エリア分割情報SK1と、2つ目の第1エリア分割情報SK1とによって印刷領域が区切られ、これら情報で囲まれた領域がエリア分けされる。以下、レシートR1において、1つ目の第1エリア分割情報SK1と、2つ目の第1エリア分割情報SK1とで囲まれたエリアを「エリアAA2」とする。
The first area division information SK1 is printed one line below the issue date / time information J5.
The print area of the receipt R1 is divided by the first first area division information SK1 and the second first area division information SK1, and the area surrounded by these information is divided into areas. Hereinafter, in the receipt R1, the area surrounded by the first first area division information SK1 and the second first area division information SK1 is referred to as "area AA2".

レシートR1において、2つ目の第1エリア分割情報SK1の一行下には、1又は複数(図5Aの例では「2個」。)の商品情報J6が印刷される。
商品情報J6は、顧客が購入した商品に関する情報である。商品情報J6は、顧客が購入した商品の種類ごとに、レシートR1に印刷される。従って、例えば、顧客が購入した商品の種類が3つである場合は、3つの種類の商品のそれぞれに対応する3つの商品情報J6が印刷される。レシートR1に複数の商品情報J6が印刷される場合、複数の商品情報J6は、異なる行に、1行ずつ連続して印刷される。
商品情報J6は、購入数量情報J61と、商品名情報J62と、単価情報J63とを有する。購入数量情報J61、商品名情報J62、及び、単価情報J63は、同一行に印刷される。購入数量情報J61は、対応する商品の購入数量を文字列で表す情報である。商品名情報J62は、対応する商品の名称を文字列で表す情報である。単価情報J63は、対応する商品の単価を文字列で表す情報である。
レシートR1では、1行内で、右へ向かって購入数量情報J61、商品名情報J62、及び、単価情報J63の順番で印刷される。
In the receipt R1, one or more product information J6 (“2 pieces” in the example of FIG. 5A) is printed under one line of the second first area division information SK1.
Product information J6 is information about a product purchased by a customer. The product information J6 is printed on the receipt R1 for each type of product purchased by the customer. Therefore, for example, when there are three types of products purchased by the customer, three product information J6 corresponding to each of the three types of products are printed. When a plurality of product information J6s are printed on the receipt R1, the plurality of product information J6s are continuously printed one by one on different lines.
The product information J6 has purchase quantity information J61, product name information J62, and unit price information J63. The purchase quantity information J61, the product name information J62, and the unit price information J63 are printed on the same line. The purchase quantity information J61 is information representing the purchase quantity of the corresponding product as a character string. The product name information J62 is information representing the name of the corresponding product as a character string. The unit price information J63 is information representing the unit price of the corresponding product as a character string.
In the receipt R1, the purchase quantity information J61, the product name information J62, and the unit price information J63 are printed in this order in one line from the right.

商品情報J6は、左寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、購入数量情報J61を表す文字列と、1つの空白文字と、商品名情報J62を表す文字列と、1個又は複数個の空白文字と、単価情報J63を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。商品名情報J62を表す文字列と、単価情報J63を表す文字列との間に挿入される空白文字の個数は、単価情報J63の位置が、「行」の末尾に位置するように、調整される。図5AのレシートR1に印刷される商品情報J6のうち、最上部に印刷される商品情報J6については、「購入数量情報J61を表す文字列と、1つの空白文字と、商品名情報J62を表す文字列と、1個又は複数個の空白文字と、単価情報J63を表す文字列とが連続する文字列」は、文字列「1△Beer△△・・・△△10.00」である。 The product information J6 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to left alignment and the following character string printing instruction command CM3. The character string print instruction command CM3 is a character string representing the purchase quantity information J61, one blank character, a character string representing the product name information J62, one or more blank characters, and a character representing the unit price information J63. This is a control command that instructs printing of a character string that is continuous with the column. The number of blank characters inserted between the character string representing the product name information J62 and the character string representing the unit price information J63 is adjusted so that the position of the unit price information J63 is located at the end of the "line". To. Of the product information J6 printed on the receipt R1 of FIG. 5A, the product information J6 printed at the top represents "a character string representing the purchase quantity information J61, one blank character, and the product name information J62. The "character string in which the character string, one or more blank characters, and the character string representing the unit price information J63 are continuous" is the character string "1 △ Beer △△ ... △△ 10.00".

レシートR1において、最下部に印刷される商品情報J6の一行下には、第2エリア分割情報SK2が印刷される。第2エリア分割情報SK2は、文字「〜」が一行内で複数連続して構成された文字列である。
レシートR1は、2つ目の第1エリア分割情報SK1と、1つ目の第2エリア分割情報SK2とによって印刷領域が区切られ、これら情報で囲まれた領域がエリア分けされる。以下、レシートR1において、2つ目の第1エリア分割情報SK1と、1つ目の第2エリア分割情報SK2とで囲まれたエリアを「エリアAA3」とする。
In the receipt R1, the second area division information SK2 is printed one line below the product information J6 printed at the bottom. The second area division information SK2 is a character string in which a plurality of characters "~" are continuously formed in one line.
The print area of the receipt R1 is divided by the second first area division information SK1 and the first second area division information SK2, and the area surrounded by these information is divided into areas. Hereinafter, in the receipt R1, the area surrounded by the second first area division information SK1 and the first second area division information SK2 is referred to as "area AA3".

レシートR1において、1つ目の第2エリア分割情報SK2の一行下には、小計関連情報J7が印刷される。小計関連情報J7は、小計を文字列で表す小計情報J72を有する。また、小計関連情報J7は、小計情報J72の同一行において、小計情報J72の左方に印刷され、小計情報J72が小計を示す情報であることを明示する情報を文字列によって表す小計明示情報J71を有する。図5Aに示すように、レシートR1に係る小計明示情報J71は、8個の大文字のアルファベットの文字列「SUBTOTAL」からなる文字列である。
小計関連情報J7は、左寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、小計明示情報J71を表す文字列と、1個又は複数個の空白文字と、小計情報J72を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。小計明示情報J71を表す文字列と、小計情報J72を表す文字列との間に挿入される空白文字の個数は、小計情報J72の位置が、「行」の末尾に位置するように、調整される。図5AのレシートR1では、「小計明示情報J71を表す文字列と、1個又は複数個の空白文字と、小計情報J72を表す文字列とが連続する文字列」は、文字列「SUBTOTAL△△・・・△△70.00」である。
In the receipt R1, the subtotal-related information J7 is printed under one line of the first second area division information SK2. The subtotal-related information J7 has subtotal information J72 that represents the subtotal as a character string. Further, the subtotal-related information J7 is printed on the left side of the subtotal information J72 on the same line of the subtotal information J72, and the subtotal information J71 represents information indicating that the subtotal information J72 is the information indicating the subtotal by a character string. Has. As shown in FIG. 5A, the subtotal explicit information J71 related to the receipt R1 is a character string composed of eight uppercase alphabetic character strings "SUBTOTAL".
The subtotal-related information J7 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to left alignment and the following character string printing instruction command CM3. The character string print instruction command CM3 is a control command for instructing printing of a character string in which a character string representing the subtotal explicit information J71, one or more blank characters, and a character string representing the subtotal information J72 are continuous. .. The number of blank characters inserted between the character string representing the subtotal explicit information J71 and the character string representing the subtotal information J72 is adjusted so that the position of the subtotal information J72 is located at the end of the "line". To. In the receipt R1 of FIG. 5A, the “character string in which the character string representing the subtotal explicit information J71, one or more blank characters, and the character string representing the subtotal information J72 are continuous” is the character string “SUBTOTAL △△”. ... △△ 70.00 ”.

レシートR1において、小計関連情報J7の一行下には、税関連情報J8が印刷される。税関連情報J8は、税額を文字列で表す税額情報J82を有する。また、税関連情報J8は、税額情報J82の同一行において、税額情報J82の左方に印刷され、税額情報J82が税額を示す情報であることを明示する情報を文字列によって表す税明示情報J81を有する。図5Aに示すように、レシートR1に係る税明示情報J81は、3個の大文字のアルファベットの文字列「TAX」からなる文字列である。
税関連情報J8は、左寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、税明示情報J81を表す文字列と、1個又は複数個の空白文字と、税額情報J82を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。税明示情報J81を表す文字列と、税額情報J82を表す文字列との間に挿入される空白文字の個数は、税額情報J82の位置が、「行」の末尾に位置するように、調整される。図5AのレシートR1では、「税明示情報J81を表す文字列と、1個又は複数個の空白文字と、税額情報J82を表す文字列とが連続する文字列」は、文字列「TAX△△・・・△△6.13」である。
On receipt R1, tax-related information J8 is printed under one line of subtotal-related information J7. The tax-related information J8 has tax amount information J82 that represents the tax amount as a character string. Further, the tax-related information J8 is printed on the left side of the tax amount information J82 on the same line of the tax amount information J82, and the tax explicit information J81 representing the information clearly indicating that the tax amount information J82 is the information indicating the tax amount by a character string. Has. As shown in FIG. 5A, the tax explicit information J81 relating to the receipt R1 is a character string composed of the character string "TAX" of the three uppercase alphabets.
The tax-related information J8 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to left justification and the following character string printing instruction command CM3. The character string print instruction command CM3 is a control command for instructing printing of a character string in which a character string representing the tax explicit information J81, one or more blank characters, and a character string representing the tax amount information J82 are continuous. .. The number of blank characters inserted between the character string representing the tax explicit information J81 and the character string representing the tax amount information J82 is adjusted so that the position of the tax amount information J82 is located at the end of the "line". To. In the receipt R1 of FIG. 5A, the "character string in which the character string representing the tax explicit information J81, one or more blank characters, and the character string representing the tax amount information J82 are continuous" is the character string "TAX △△". ... △△ 6.13 ”.

レシートR1において、税関連情報J8の一行下には、合計金額関連情報J9が印刷される。合計金額関連情報J9は、合計金額を文字列で表す合計金額情報J92を有する。また、合計金額関連情報J9は、合計金額情報J92の同一行において、合計金額情報J92の左方に印刷され、合計金額情報J92が合計金額を示す情報であることを明示する情報を文字列によって表す合計金額明示情報J91を有する。図5Aに示すように、レシートR1に係る合計金額明示情報J91は、5個の大文字のアルファベットの文字列「TOTAL」からなる文字列である。
合計金額関連情報J9は、左寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、合計金額明示情報J91と、1個又は複数個の空白文字と、合計金額情報J92を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。合計金額明示情報J91を表す文字列と、合計金額情報J92を表す文字列との間に挿入される空白文字の個数は、合計金額情報J92の位置が、「行」の末尾に位置するように、調整される。図5AのレシートR1では、「合計金額明示情報J91と、1個又は複数個の空白文字と、合計金額情報J92を表す文字列とが連続する文字列」は、文字列「TOTAL△△・・・△△76.13」である。
In the receipt R1, the total amount-related information J9 is printed under one line of the tax-related information J8. The total amount-related information J9 has total amount information J92 representing the total amount as a character string. Further, the total amount-related information J9 is printed on the left side of the total amount information J92 on the same line of the total amount information J92, and information indicating that the total amount information J92 is information indicating the total amount is written as a character string. It has the total amount explicit information J91 to be represented. As shown in FIG. 5A, the total amount explicit information J91 related to the receipt R1 is a character string composed of five uppercase alphabetic character strings "TOTAL".
The total amount-related information J9 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to left justification and the following character string printing instruction command CM3. The character string print instruction command CM3 is a control command for instructing printing of a character string in which the total amount explicit information J91, one or a plurality of blank characters, and the character string representing the total amount information J92 are continuous. The number of blank characters inserted between the character string representing the total amount explicit information J91 and the character string representing the total amount information J92 is such that the position of the total amount information J92 is located at the end of the "line". , Adjusted. In the receipt R1 of FIG. 5A, the "character string in which the total amount explicit information J91, one or more blank characters, and the character string representing the total amount information J92 are continuous" is the character string "TOTAL △△ ...・ △△ 76.13 ”.

以下の説明において、第1エリア分割情報SK1、第2エリア分割情報SK2、及び、後述する第3エリア分割情報SK3を、区別せずに表示する場合、「エリア分割情報」という。 In the following description, when the first area division information SK1, the second area division information SK2, and the third area division information SK3 described later are displayed without distinction, they are referred to as "area division information".

このように、レシートR1は、以下のレイアウトで情報が印刷される。すなわち、印刷領域に3つのエリア分割情報が印刷され、これら3つのエリア分割情報により、印刷領域が、上から順番に、エリアAA1、エリアAA2、エリアAA3、及び、エリアAA4の4つのエリアに区分けされる。エリアAA1には、ロゴ情報J1、店舗住所情報J2、及び、店舗電話番号情報J3がこの順番で印刷される。エリアAA2には、レシート識別関連情報J4、及び、発行日時情報J5がこの順番で印刷される。エリアAA3には、1又は複数の商品情報J6が印刷される。また、商品情報J6は、1行内で、右へ向かって購入数量情報J61、商品名情報J62、及び単価情報J63の順番で印刷される。エリアAA4には、小計関連情報J7、税関連情報J8、及び、合計金額関連情報J9がこの順番で印刷される。 In this way, information is printed on the receipt R1 in the following layout. That is, three area division information is printed in the print area, and the print area is divided into four areas, area AA1, area AA2, area AA3, and area AA4, in order from the top, based on the three area division information. Will be printed. Logo information J1, store address information J2, and store telephone number information J3 are printed in this order in area AA1. Receipt identification-related information J4 and issue date / time information J5 are printed in this order in area AA2. One or more product information J6 is printed in the area AA3. Further, the product information J6 is printed in the order of purchase quantity information J61, product name information J62, and unit price information J63 in one line from the right. Subtotal-related information J7, tax-related information J8, and total amount-related information J9 are printed in this order in area AA4.

上述したように、レシートR1に係る印刷装置12が発行するレシートのレイアウトは、顧客が購入した商品の内容にかかわらず、レシートR1で示すレイアウトと同様である。 As described above, the layout of the receipt issued by the printing apparatus 12 related to the receipt R1 is the same as the layout shown by the receipt R1 regardless of the content of the product purchased by the customer.

図5Bで例示するレシートR2には、先頭に、ロゴ情報J1が印刷される。 The logo information J1 is printed at the head of the receipt R2 illustrated in FIG. 5B.

レシートR2において、ロゴ情報J1の下方には、レシート識別関連情報J4が印刷される。レシート識別関連情報J4は、レシート識別明示情報J41と、レシート識別情報J42とを有する。
図5Bに示すように、レシートR2に係るレシート識別明示情報J41は、文字列「CheckNO.」からなる情報であり、レシートR1に係るレシート識別明示情報J41と文字列の態様が相違する。
レシートR2において、レシート識別関連情報J4は、中央寄せで印字される。また、レシートR2において、レシート識別明示情報J41と、レシート識別情報J42との間には、1つの空白文字が挿入される。
In the receipt R2, the receipt identification-related information J4 is printed below the logo information J1. The receipt identification related information J4 has the receipt identification explicit information J41 and the receipt identification information J42.
As shown in FIG. 5B, the receipt identification explicit information J41 related to the receipt R2 is information composed of the character string "CheckNO.", And the mode of the character string is different from the receipt identification explicit information J41 related to the receipt R1.
In the receipt R2, the receipt identification related information J4 is printed centered. Further, in the receipt R2, one blank character is inserted between the receipt identification information J41 and the receipt identification information J42.

レシートR2において、レシート識別関連情報J4の一行下には、発行日時情報J5が印刷される。発行日時情報J5は、中央寄せで印刷される。 In the receipt R2, the issue date / time information J5 is printed under one line of the receipt identification related information J4. The issue date / time information J5 is printed centered.

レシートR2において、発行日時情報J5の一行下には、第1エリア分割情報SK1が印刷される。
レシートR2は、1つ目の第1エリア分割情報SK1によって、第1エリア分割情報SK1より上方と、下方とが区切られ、エリア分けされる。以下、レシートR2において、第1エリア分割情報SK1よりも上方の情報のエリアを「エリアAB1」とする。
In the receipt R2, the first area division information SK1 is printed one line below the issue date / time information J5.
The receipt R2 is divided into areas above and below the first area division information SK1 by the first first area division information SK1. Hereinafter, in the receipt R2, the area of information above the first area division information SK1 is referred to as "area AB1".

レシートR2において、第1エリア分割情報SK1の一行下には、1個又は複数個(図5Bの例では「2個」。)の商品情報J6が、異なる行に、1行ずつ連続して印刷される。
レシートR2において、商品情報J6に含まれる購入数量情報J61、商品名情報J62、及び、単価情報J63は、1行内で、右へ向かってこの順番で印刷される。
In the receipt R2, one or more product information J6 (“2” in the example of FIG. 5B) is continuously printed one by one on different lines under one line of the first area division information SK1. Will be done.
In the receipt R2, the purchase quantity information J61, the product name information J62, and the unit price information J63 included in the product information J6 are printed in this order in one line from the right.

レシートR2において、商品情報J6は、左寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、商品名情報J62を表す文字列と、1個又は複数個の空白文字と、購入数量情報J61を表す文字列と、1個又は複数個の空白文字と、単価情報J63を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。商品名情報J62を表す文字列と、購入数量情報J61を表す文字列との間に挿入される空白文字の個数は、購入数量情報J61の位置が、「行」における所定の位置となるように調整される。また、購入数量情報J61を表す文字列と、単価情報J63を表す文字列との間に挿入される空白文字の個数は、単価情報J63の位置が、「行」の末尾に位置するように調整される。図5BのレシートR2に印刷される商品情報J6のうち、最上部に印刷される商品情報J6については、「商品名情報J62を表す文字列と、1個又は複数個の空白文字と、購入数量情報J61を表す文字列と、1個又は複数個の空白文字と、単価情報J63を表す文字列とが連続する文字列」は、文字列「Beer△△・・・△△1△△・・・△△10.00」である。 In the receipt R2, the product information J6 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to left alignment and the following character string printing instruction command CM3. The character string print instruction command CM3 is a character string representing the product name information J62, one or more blank characters, a character string representing the purchase quantity information J61, one or more blank characters, and unit price information. This is a control command that instructs printing of a character string that is continuous with the character string representing J63. The number of blank characters inserted between the character string representing the product name information J62 and the character string representing the purchase quantity information J61 is such that the position of the purchase quantity information J61 becomes a predetermined position in the "line". Be adjusted. Further, the number of blank characters inserted between the character string representing the purchase quantity information J61 and the character string representing the unit price information J63 is adjusted so that the position of the unit price information J63 is located at the end of the "line". Will be done. Of the product information J6 printed on the receipt R2 of FIG. 5B, the product information J6 printed at the top is "a character string representing the product name information J62, one or more blank characters, and the purchase quantity. The character string "Beer △△ ・ ・ ・ △△ 1 △△ ..." is a character string in which a character string representing information J61, one or more blank characters, and a character string representing unit price information J63 are continuous.・ △△ 10.00 ”.

レシートR2において、最下部に印刷される商品情報J6の一行下には、小計関連情報J7が印刷される。図5Bに示すように、レシートR2に係る小計明示情報J71は、9個の小文字のアルファベットの「sub−total」からなる文字列であり、レシートR1に係る小計明示情報J71と文字列の態様が相違する。
レシートR2において、小計関連情報J7は、左寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、小計明示情報J71を表す文字列と、1個又は複数個の空白文字と、小計情報J72を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。小計明示情報J71を表す文字列と、小計情報J72を表す文字列との間に挿入される空白文字の個数は、小計情報J72の位置が、「行」の末尾に位置するように、調整される。図5BのレシートR2では、「小計明示情報J71を表す文字列と、1個又は複数個の空白文字と、小計情報J72を表す文字列とが連続する文字列」は、文字列「sub−total△△・・・△△70.00」である。
In the receipt R2, the subtotal-related information J7 is printed one line below the product information J6 printed at the bottom. As shown in FIG. 5B, the subtotal explicit information J71 related to the receipt R2 is a character string composed of nine lowercase alphabetic "sub-total", and the mode of the subtotal explicit information J71 and the character string related to the receipt R1 is It's different.
In the receipt R2, the subtotal-related information J7 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to left alignment and the following character string printing instruction command CM3. The character string print instruction command CM3 is a control command for instructing printing of a character string in which a character string representing the subtotal explicit information J71, one or more blank characters, and a character string representing the subtotal information J72 are continuous. .. The number of blank characters inserted between the character string representing the subtotal explicit information J71 and the character string representing the subtotal information J72 is adjusted so that the position of the subtotal information J72 is located at the end of the "line". To. In the receipt R2 of FIG. 5B, the "character string in which the character string representing the subtotal explicit information J71, one or more blank characters, and the character string representing the subtotal information J72 are continuous" is the character string "sub-total". △△ ・ ・ ・ △△ 70.00 ”.

レシートR2において、小計関連情報J7の一行下には、税関連情報J8が印刷される。図5Bに示すように、レシートR2に係る税明示情報J81は、5個の小文字のアルファベットの「sales」からなる文字列と、1つの空白文字と、3個の小文字のアルファベットの「tax」からなる文字列とが連続する文字列「sales△tax」であり、レシートR1に係る税明示情報J81と文字列の態様が相違する。
レシートR2において、税関連情報J8は、左寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、税明示情報J81を表す文字列と、1個又は複数個の空白文字と、税額情報J82を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。税明示情報J81を表す文字列と、税額情報J82を表す文字列との間に挿入される空白文字の個数は、税額情報J82の位置が、「行」の末尾に位置するように、調整される。図5BのレシートR2では、「税明示情報J81を表す文字列と、1個又は複数個の空白文字と、税額情報J82を表す文字列とが連続する文字列」は、文字列「sales△tax△△・・・△△6.13」である。
On the receipt R2, the tax-related information J8 is printed under one line of the subtotal-related information J7. As shown in FIG. 5B, the tax explicit information J81 relating to the receipt R2 is composed of a character string consisting of five lower alphabet "sales", one blank character, and three lower alphabet "tax". Is a continuous character string "sale's Δtax", and the mode of the character string is different from that of the tax explicit information J81 related to the receipt R1.
In the receipt R2, the tax-related information J8 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to left alignment and the following character string printing instruction command CM3. The character string print instruction command CM3 is a control command for instructing printing of a character string in which a character string representing the tax explicit information J81, one or more blank characters, and a character string representing the tax amount information J82 are continuous. .. The number of blank characters inserted between the character string representing the tax explicit information J81 and the character string representing the tax amount information J82 is adjusted so that the position of the tax amount information J82 is located at the end of the "line". To. In the receipt R2 of FIG. 5B, the “character string in which the character string representing the tax explicit information J81, one or more blank characters, and the character string representing the tax amount information J82 are continuous” is the character string “sales △ tax”. △△ ・ ・ ・ △△ 6.13 ”.

レシートR2において、税関連情報J8の一行下には、第3エリア分割情報SK3が印刷される。第3エリア分割情報SK3は、文字「=」が一行内で複数連続して構成された文字列である。
レシートR2は、1つ目の第1エリア分割情報SK1と、1つ目の第3エリア分割情報SK3とによって印刷領域が区切られ、これら情報で囲まれた領域がエリア分けされる。以下、レシートR2において、1つ目の第1エリア分割情報SK1と、1つ目の第3エリア分割情報SK3とで囲まれたエリアを「エリアAB2」とする。
On the receipt R2, the third area division information SK3 is printed under one line of the tax-related information J8. The third area division information SK3 is a character string in which a plurality of consecutive characters "=" are formed in one line.
The print area of the receipt R2 is divided by the first first area division information SK1 and the first third area division information SK3, and the area surrounded by these information is divided into areas. Hereinafter, in the receipt R2, the area surrounded by the first first area division information SK1 and the first third area division information SK3 is referred to as “area AB2”.

レシートR2において、第3エリア分割情報SK3の一行下には、合計金額関連情報J9が印刷される。図5Bに示すように、レシートR2に係る合計金額明示情報J91は、5個の小文字のアルファベットの「total」からなる文字列であり、レシートR1に係る合計金額明示情報J91と文字列の態様が相違する。
レシートR2において、合計金額関連情報J9は、左寄せに係る装飾を指定する文字列装飾コマンドCM2と、以下の文字列印刷指示コマンドCM3とを含む文字列印刷関連コマンド群GMに基づいて印刷される。文字列印刷指示コマンドCM3は、合計金額明示情報J91と、1個又は複数個の空白文字と、合計金額情報J92を表す文字列とが連続する文字列の印刷を指示する制御コマンドである。合計金額明示情報J91を表す文字列と、合計金額情報J92を表す文字列との間に挿入される空白文字の個数は、合計金額情報J92の位置が、「行」の末尾に位置するように、調整される。図5BのレシートR2では、「合計金額明示情報J91と、1個又は複数個の空白文字と、合計金額情報J92を表す文字列とが連続する文字列」は、文字列「total△△・・・△△76.13」である。
In the receipt R2, the total amount-related information J9 is printed under one line of the third area division information SK3. As shown in FIG. 5B, the total amount explicit information J91 related to the receipt R2 is a character string composed of five lowercase alphabetic "total", and the mode of the total amount explicit information J91 related to the receipt R1 and the character string is It's different.
In the receipt R2, the total amount-related information J9 is printed based on the character string printing-related command group GM including the character string decoration command CM2 for designating the decoration related to left alignment and the following character string printing instruction command CM3. The character string print instruction command CM3 is a control command for instructing printing of a character string in which the total amount explicit information J91, one or a plurality of blank characters, and the character string representing the total amount information J92 are continuous. The number of blank characters inserted between the character string representing the total amount explicit information J91 and the character string representing the total amount information J92 is such that the position of the total amount information J92 is located at the end of the "line". , Adjusted. In the receipt R2 of FIG. 5B, the "character string in which the total amount explicit information J91, one or more blank characters, and the character string representing the total amount information J92 are continuous" is the character string "total △△ ...・ △△ 76.13 ”.

レシートR2において、合計金額関連情報J9の一行下には、2つ目の第1エリア分割情報SK1が印刷される。
レシートR2は、1つ目の第3エリア分割情報SK3と、2つ目の第1エリア分割情報SK1とによって印刷領域が区切られ、これら情報で囲まれた領域がエリア分けされる。以下、レシートR2において、1つ目の第3エリア分割情報SK3と、2つ目の第1エリア分割情報SK1とで囲まれたエリアを「エリアAB3」とする。また、2つ目の第1エリア分割情報SK1より下方のエリアを「エリアAB4」とする。
In the receipt R2, the second first area division information SK1 is printed under one line of the total amount related information J9.
The print area of the receipt R2 is divided by the first third area division information SK3 and the second first area division information SK1, and the area surrounded by these information is divided into areas. Hereinafter, in the receipt R2, the area surrounded by the first third area division information SK3 and the second first area division information SK1 is referred to as “area AB3”. Further, the area below the second first area division information SK1 is referred to as "area AB4".

レシートR2において、2つ目の第1エリア分割情報SK1の一行下には、店舗電話番号情報J3が印刷される。店舗電話番号情報J3は、中央寄せで印刷される。 In the receipt R2, the store telephone number information J3 is printed under one line of the second first area division information SK1. The store telephone number information J3 is printed centered.

レシートR2において、店舗電話番号情報J3の一行下には、店舗住所情報J2が印刷される。店舗住所情報J2は、中央寄せで印刷される。
このように、レシートR2は、以下のレイアウトで情報が印刷される。すなわち、印刷領域に3つのエリア分割情報が印刷され、これら3つのエリア分割情報により、印刷領域が、上から順番に、エリアAB1、エリアAB2、エリアAB3、及び、エリアAB4の4つのエリアに区分けされる。エリアAB1には、ロゴ情報J1、レシート識別関連情報J4、及び、発行日時情報J5がこの順番で印刷される。エリアAB2には、1又は複数の商品情報J6、小計関連情報J7、及び、税関連情報J8がこの順番で印刷される。エリアAB3には、合計金額関連情報J9が印刷される。エリアAB4には、付加情報J10、店舗電話番号情報J3、及び、店舗住所情報J2がこの順番で印刷される。
In the receipt R2, the store address information J2 is printed under one line of the store telephone number information J3. The store address information J2 is printed centered.
In this way, information is printed on the receipt R2 in the following layout. That is, three area division information is printed in the print area, and the print area is divided into four areas, area AB1, area AB2, area AB3, and area AB4, in order from the top, based on the three area division information. Will be printed. Logo information J1, receipt identification-related information J4, and issue date / time information J5 are printed in this order in area AB1. One or more product information J6, subtotal-related information J7, and tax-related information J8 are printed in this order in the area AB2. The total amount-related information J9 is printed in the area AB3. Additional information J10, store telephone number information J3, and store address information J2 are printed in this order in area AB4.

上述したように、レシートR2に係る印刷装置12が発行するレシートのレイアウトは、顧客が購入した商品の内容にかかわらず、レシートR2で示すレイアウトと同様である。 As described above, the layout of the receipt issued by the printing apparatus 12 related to the receipt R2 is the same as the layout shown by the receipt R2 regardless of the content of the product purchased by the customer.

また、図5Aと、図5Bとの比較で明らかなとおり、レシートR1と、レシートR2とでは、レイアウトが異なる。
なお、レシートに印刷される情報のそれぞれが、「レシート情報」に相当する。図5AのレシートR1、及び、図5BのレシートR2で例示したように、レシートには、レシート情報が、所定のレイアウトに従って印刷される。
Further, as is clear from the comparison between FIG. 5A and FIG. 5B, the layouts of the receipt R1 and the receipt R2 are different.
Each piece of information printed on the receipt corresponds to "receipt information". As illustrated in receipt R1 of FIG. 5A and receipt R2 of FIG. 5B, receipt information is printed on the receipt according to a predetermined layout.

図3のフローチャートFBに示すように、ステップSB2でレシートを発行した後、印刷装置制御部30は、印刷データに基づいて、印刷テキストデータ(テキストデータ)を生成する(ステップSB3)。以下、ステップSB3の処理について詳述する。 As shown in the flowchart FB of FIG. 3, after issuing the receipt in step SB2, the printing device control unit 30 generates print text data (text data) based on the print data (step SB3). Hereinafter, the process of step SB3 will be described in detail.

印刷テキストデータは、印刷データに基づいてロール紙に印刷される情報のうち、文字として印刷される情報が、テキスト(文字コード)として記述されたテキストデータである。
ステップSB3において、印刷装置制御部30は、印刷データから、文字列の印刷に関する制御コマンドである文字列印刷指示コマンドCM3、及び、改行コマンドLFを抽出する。次いで、印刷装置制御部30は、抽出した制御コマンドに基づいて、レシートに文字として印刷される情報がテキストとして記述された印刷テキストデータを生成する。
印刷装置制御部30は、印刷テキストデータに、印刷で行われる改行が反映された状態で情報を記述する。また、印刷装置制御部30は、印刷テキストデータに、文字列装飾コマンドCM2で指定された装飾を反映しない状態で情報を記述する。従って、文字列装飾コマンドCM2によって、文字列に施す装飾として、中央寄せ、右寄せが指示された場合でも、印刷テキストデータへのテキストの記述に際し、これら装飾は反映されない。
The print text data is text data in which the information printed as characters among the information printed on the roll paper based on the print data is described as text (character code).
In step SB3, the printing device control unit 30 extracts the character string printing instruction command CM3 and the line feed command LF, which are control commands related to printing the character string, from the print data. Next, the printing device control unit 30 generates print text data in which the information to be printed as characters on the receipt is described as text based on the extracted control command.
The printing device control unit 30 describes the information in the print text data in a state where the line breaks performed in printing are reflected. Further, the printing device control unit 30 describes the information in the print text data in a state where the decoration specified by the character string decoration command CM2 is not reflected. Therefore, even if center alignment or right alignment is instructed as decoration to be applied to the character string by the character string decoration command CM2, these decorations are not reflected in the description of the text in the print text data.

図6Aは、図5Aで例示したレシートR1に係る印刷データに基づいて生成される印刷テキストデータである印刷テキストデータT1の内容を示す図である。図6Aと、図5Aとの比較で明らかなとおり、印刷テキストデータT1には、レシートR1に文字として印刷される情報が、印刷における順番、及び、印刷における改行を反映した状態で記述される。
図6Bは、図5Bで例示したレシートR2に係る印刷データに基づいて生成される印刷テキストデータである印刷テキストデータT2の内容を示す図である。図6Bと、図5Bとの比較で明らかなとおり、印刷テキストデータT2には、レシートR2に文字として印刷される情報が、印刷における順番、及び、印刷における改行を反映した状態で記述される。
なお、ロゴ情報J1は、グラフィック画像であるため、印刷テキストデータには、記述されない。すなわち、図6A、及び、図6Bに示すように、文字コードに対応するフォントデータに基づいて印刷される文字以外の情報は、印刷テキストデータには記述されない。
FIG. 6A is a diagram showing the contents of print text data T1, which is print text data generated based on the print data related to the receipt R1 illustrated in FIG. 5A. As is clear from the comparison between FIG. 6A and FIG. 5A, the information to be printed as characters on the receipt R1 is described in the print text data T1 in a state reflecting the order in printing and the line feed in printing.
FIG. 6B is a diagram showing the contents of print text data T2, which is print text data generated based on the print data related to the receipt R2 illustrated in FIG. 5B. As is clear from the comparison between FIG. 6B and FIG. 5B, the information to be printed as characters on the receipt R2 is described in the print text data T2 in a state reflecting the order in printing and the line feed in printing.
Since the logo information J1 is a graphic image, it is not described in the print text data. That is, as shown in FIGS. 6A and 6B, information other than the characters printed based on the font data corresponding to the character code is not described in the printed text data.

図3のフローチャートFBに示すように、ステップSB3で印刷テキストデータを生成した後、印刷装置制御部30は、シリアル番号J11、店舗識別情報J12、ステップSB1で受信した印刷データ、及び、ステップSB3で生成した印刷テキストデータを、制御サーバー15に送信する(ステップSB4)。
シリアル番号J11は、印刷装置12の製造段階で、印刷装置12に一意に割り当てられる識別情報であり、印刷装置記憶部32の所定の記憶領域に記憶される。ステップSB4において、印刷装置制御部30は、印刷装置記憶部32の所定の記憶領域に記憶されたシリアル番号J11を取得する。
店舗識別情報J12は、印刷装置12が設けられた店舗を識別する識別情報であり、印刷装置記憶部32の所定の記憶領域に記憶される。ステップSB4において、印刷装置制御部30は、印刷装置記憶部32の所定の記憶領域に記憶された店舗識別情報J12を取得する。
なお、ステップSB4において、シリアル番号J11等を送信するのに必要な通信に関する情報(送信先に関する情報や、通信に用いるプロトコル、送信するデータのフォーマット等)は、印刷装置12に事前に登録される。
As shown in the flowchart FB of FIG. 3, after the print text data is generated in step SB3, the printing device control unit 30 uses the serial number J11, the store identification information J12, the print data received in step SB1, and step SB3. The generated print text data is transmitted to the control server 15 (step SB4).
The serial number J11 is identification information uniquely assigned to the printing device 12 at the manufacturing stage of the printing device 12, and is stored in a predetermined storage area of the printing device storage unit 32. In step SB4, the printing device control unit 30 acquires the serial number J11 stored in the predetermined storage area of the printing device storage unit 32.
The store identification information J12 is identification information for identifying a store in which the printing device 12 is provided, and is stored in a predetermined storage area of the printing device storage unit 32. In step SB4, the printing device control unit 30 acquires the store identification information J12 stored in the predetermined storage area of the printing device storage unit 32.
In step SB4, information related to communication (information about the destination, protocol used for communication, format of data to be transmitted, etc.) necessary for transmitting the serial number J11 or the like is registered in advance in the printing device 12. ..

図3のフローチャートFCに示すように、制御サーバー15の制御サーバー制御部40は、制御サーバーネットワーク通信部41を制御して、印刷装置12が送信したシリアル番号J11、店舗識別情報J12、印刷データ、及び、印刷テキストデータを受信する(ステップSC1)。 As shown in the flowchart FC of FIG. 3, the control server control unit 40 of the control server 15 controls the control server network communication unit 41, and the serial number J11, the store identification information J12, and the print data transmitted by the printing device 12 are used. And, the print text data is received (step SC1).

次いで、制御サーバー制御部40は、パーサー管理データベース421(後述)を参照し、ステップSC1で受信したシリアル番号J11の値と同一の値のシリアル番号J11と対応付けられたパーサーセットPSSを取得する(ステップSC2)。 Next, the control server control unit 40 refers to the parser management database 421 (described later), and acquires the parser set PSS associated with the serial number J11 having the same value as the serial number J11 received in step SC1 (). Step SC2).

図7は、パーサー管理データベース421の1件のレコードが有する情報を模式的に示す図である。
図7に示すように、パーサー管理データベース421の1件のレコードは、シリアル番号J11と、パーサーセットPSSとを有する。また、パーサーセットPSSは、第1パーサーPS1〜第15パーサーPS15の15個のパーサーPSを有する。パーサーPS(第1パーサーPS1〜第15パーサーPS15。)については後述する。
FIG. 7 is a diagram schematically showing information contained in one record of the parser management database 421.
As shown in FIG. 7, one record in the parser management database 421 has a serial number J11 and a parser set PSS. Further, the parser set PSS has 15 parser PSs of the first parser PS1 to the fifteenth parser PS15. The parser PS (first parser PS1 to 15th parser PS15) will be described later.

次いで、制御サーバー制御部40は、取得したパーサーセットPSSに基づいてテキストデータ分析処理を実行する(ステップSC3)。
ステップSC3のテキストデータ分析処理は、パーサーセットPSSに基づいて、印刷テキストデータを分析し、予め定められた複数の項目について、項目値を取得し、又は、項目値を取得できないことを検出する処理である。以下、ステップSC3のテキストデータ分析処理において、項目値を取得する対象の項目を「レシート項目」という。
本実施形態では、レシート項目として、以下の15個の項目がある。なお、以下の説明において、「プロパティー」とは、JSON形式のデータ(後述する分析データや、応答データ等。)に項目が記述される場合の、対応するプロパティーを表す。なお、レシート項目の詳細については、後述する。
顧客識別情報項目(プロパティー「consumer_id」)。
会計割引情報項目(プロパティー「discounts」)。
顧客人数情報項目(プロパティー「guests」)。
払戻有無情報項目(プロパティー「is_refund」)。
取消有無情報項目(プロパティー「is_void」)。
会員情報項目(プロパティー「memberships」)。
支払方法情報項目(プロパティー「payment_methods」)。
発行日時情報項目(プロパティー「printed_at」)。
商品情報項目(プロパティー「products」)。
レシート識別情報項目(プロパティー「receipt_id」)。
販売方法情報項目(プロパティー「sale_type」)。
スタッフ情報項目(プロパティー「staff」)。
小計情報項目(プロパティー「subtotal」)。
税情報項目(プロパティー「taxes」)。
合計金額情報項目(プロパティー「total」)。
Next, the control server control unit 40 executes the text data analysis process based on the acquired parser set PSS (step SC3).
The text data analysis process of step SC3 analyzes the printed text data based on the parser set PSS, acquires item values for a plurality of predetermined items, or detects that the item values cannot be acquired. Is. Hereinafter, in the text data analysis process of step SC3, the item for which the item value is acquired is referred to as a “receipt item”.
In this embodiment, there are the following 15 items as receipt items. In the following description, the "property" represents a corresponding property when an item is described in JSON format data (analysis data, response data, etc. described later). The details of the receipt items will be described later.
Customer identification information item (property "consumer_id").
Accounting discount information item (property "discounts").
Customer number information item (property "guests").
Refund presence / absence information item (property "is_refund").
Cancellation presence / absence information item (property "is_voice").
Member information item (property "memberships").
Payment method information item (property "payment_methods").
Issue date and time information item (property "printed_at").
Product information item (property "products").
Receipt identification information item (property "recept_id").
Sales method information item (property "sale_type").
Staff information item (property "staff").
Subtotal information item (property "subtotal").
Tax information item (property "taxes").
Total amount information item (property "total").

パーサーセットPSSは、レシート項目のそれぞれに対応するパーサーPSを含んで構成される。1のレシート項目に対応するパーサーPSとは、印刷テキストデータを分析し、当該1のレシート項目の項目値を取得し、又は、取得できないことを検出する機能を有するプログラムである。本実施形態では、パーサーセットPSSは、顧客識別情報項目の項目値を取得する機能を有する第1パーサーP1、会計割引情報項目の項目値を取得する機能を有する第2パーサーP2、顧客人数情報項目の項目値を取得する機能を有する第3パーサーP3、払戻有無情報項目の項目値を取得する機能を有する第4パーサーP4、取消有無情報項目の項目値を取得する機能を有する第5パーサーP5、会員情報項目の項目値を取得する機能を有する第6パーサーP6、支払方法情報項目の項目値を取得する機能を有する第7パーサーP7、発行日時情報項目の項目値を取得する機能を有する第8パーサーP8、商品情報項目の項目値を取得する機能を有する第9パーサーP9、レシート識別情報項目の項目値を取得する機能を有する第10パーサーP10、販売方法情報項目の項目値を取得する機能を有する第11パーサーP11、スタッフ情報項目の項目値を取得する機能を有する第12パーサーP12、小計情報項目の項目値を取得する機能を有する第13パーサーP13、税情報項目の項目値を取得する機能を有する第14パーサーP14、及び、合計金額情報項目の項目値を取得する機能を有する第15パーサーP15を含んで構成される。 The parser set PSS is configured to include a parser PS corresponding to each of the receipt items. The parser PS corresponding to the receipt item of 1 is a program having a function of analyzing the printed text data and acquiring the item value of the receipt item of 1 or detecting that the item value cannot be acquired. In the present embodiment, the parser set PSS has a first parser P1 having a function of acquiring an item value of a customer identification information item, a second parser P2 having a function of acquiring an item value of an accounting discount information item, and a customer number information item. A third parser P3 having a function of acquiring the item value of the item, a fourth parser P4 having a function of acquiring the item value of the refund presence / absence information item, a fifth parser P5 having a function of acquiring the item value of the cancellation presence / absence information item, The sixth parser P6 having the function of acquiring the item value of the member information item, the seventh parser P7 having the function of acquiring the item value of the payment method information item, and the eighth parser P7 having the function of acquiring the item value of the issue date / time information item. Parser P8, 9th parser P9 having a function to acquire the item value of the product information item, 10th parser P10 having a function to acquire the item value of the receipt identification information item, and a function to acquire the item value of the sales method information item. 11th parser P11 having, 12th parser P12 having a function to acquire the item value of the staff information item, 13th parser P13 having a function to acquire the item value of the subtotal information item, a function to acquire the item value of the tax information item It is configured to include a 14th parser P14 having a function and a 15th parser P15 having a function of acquiring an item value of a total amount information item.

なお、テキストデータ分析処理は、制御サーバー15にインストールされた制御プログラム、及び、当該制御プログラムに付随するプログラムの機能により実行される。そして、第1パーサーP1〜第15パーサーP15は、当該所定のプログラムにより呼び出し可能なプログラムであり、所定のスクリプト言語によって記述される。 The text data analysis process is executed by the functions of the control program installed in the control server 15 and the program attached to the control program. The first parser P1 to the fifteenth parser P15 are programs that can be called by the predetermined program, and are described by a predetermined script language.

ステップSC3のテキストデータ分析処理において、制御サーバー制御部40は、パーサーセットPSSに含まれる第1パーサーPS1〜第15パーサーPS15のそれぞれに基づいて、上述した15個のレシート項目のそれぞれについて、項目値を取得し、又は、項目値が取得できないことを検出する。 In the text data analysis process of step SC3, the control server control unit 40 sets an item value for each of the 15 receipt items described above based on each of the first parser PS1 to the fifteenth parser PS15 included in the parser set PSS. Is acquired, or it is detected that the item value cannot be acquired.

次いで、制御サーバー制御部40は、ステップSC3のテキストデータ分析処理の処理結果に基づいて分析データを生成する(ステップSC4)。
分析データは、上述したレシート項目のそれぞれ、及び、以下の項目のそれぞれと、項目値とが対応付けて記述されたJSON形式のデータである。
統括識別情報項目(プロパティー「guid」)。
シリアル番号項目(プロパティー「serial_no」)。
店舗識別情報項目(プロパティー「shop_id」)。
Next, the control server control unit 40 generates analysis data based on the processing result of the text data analysis process in step SC3 (step SC4).
The analysis data is JSON format data in which each of the above-mentioned receipt items and each of the following items is described in association with the item value.
General identification information item (property "guid").
Serial number item (property "serial_no").
Store identification information item (property "shop_id").

以下、分析データに、プロパティーとして記述される項目(以下、「分析項目」という。)について詳述する。
図8は、分析項目のそれぞれの説明に利用する図である。
図9は、分析データの一例を示す図である。
Hereinafter, the items described as properties (hereinafter referred to as “analysis items”) in the analysis data will be described in detail.
FIG. 8 is a diagram used for explaining each of the analysis items.
FIG. 9 is a diagram showing an example of analysis data.

図8に示すように、統括識別情報項目は、データ型:textのプロパティー「guid」に対応する項目である。統括識別情報項目の項目値は、分析データを一意に識別する識別情報(以下、「統括識別情報J15」という。)である。制御サーバー制御部40は、分析データの生成に際し、所定のルールに従って、データ型:textの統括識別情報J15を生成し、統括識別情報項目と対応付けて分析データに記述する。
図9で例示する分析データにおいて、プロパティー「guid」は、領域A1に記述される。
As shown in FIG. 8, the general identification information item is an item corresponding to the property “guid” of the data type: text. The item value of the general identification information item is identification information that uniquely identifies the analysis data (hereinafter, referred to as "general identification information J15"). When generating the analysis data, the control server control unit 40 generates the general identification information J15 of the data type: text according to a predetermined rule, and describes it in the analysis data in association with the general identification information item.
In the analytical data illustrated in FIG. 9, the property "guid" is described in region A1.

図8に示すように、シリアル番号項目は、データ型:textのプロパティー「seirial_no」に対応する項目である。シリアル番号項目の項目値は、シリアル番号J11である。制御サーバー制御部40は、分析データの生成に際し、ステップSC1で受信したシリアル番号J11を、必要に応じてデータ型をデータ型:textに変換し、シリアル番号項目と対応付けて分析データに記述する。
図9で例示する分析データにおいて、プロパティー「seirial_no」は、領域A2に記述される。
As shown in FIG. 8, the serial number item is an item corresponding to the property “sirial_no” of the data type: text. The item value of the serial number item is the serial number J11. When generating the analysis data, the control server control unit 40 converts the data type of the serial number J11 received in step SC1 into the data type: text as necessary, and describes the serial number J11 in the analysis data in association with the serial number item. ..
In the analytical data illustrated in FIG. 9, the property "sialial_no" is described in region A2.

図8に示すように、店舗識別情報項目は、データ型:integerのプロパティー「shop_id」に対応する項目である。店舗識別情報項目の項目値は、店舗識別情報J12である。制御サーバー制御部40は、分析データの生成に際し、ステップSC1で受信した店舗識別情報J12を、必要に応じてデータ型をデータ型:integerに変換し、店舗識別情報項目と対応付けて分析データに記述する。
図9で例示する分析データにおいて、プロパティー「shop_id」は、領域A3に記述される。
As shown in FIG. 8, the store identification information item is an item corresponding to the property “shop_id” of the data type: integer. The item value of the store identification information item is the store identification information J12. When generating the analysis data, the control server control unit 40 converts the data type of the store identification information J12 received in step SC1 into a data type: integer as necessary, and converts the data type into the analysis data in association with the store identification information item. Describe.
In the analytical data illustrated in FIG. 9, the property "shop_id" is described in region A3.

図8に示すように、顧客識別情報項目は、データ型:textのプロパティー「consumer_id」に対応する項目である。顧客識別情報項目の項目値は、会計を行った顧客を識別する識別情報(以下、「顧客識別情報J16」という。)である。
会計において、顧客識別情報J16が記録された顧客カードが読み取られ、レシートに顧客識別情報J16が印刷される場合がある。この場合、レシート情報に顧客識別情報J16が含まれ、印刷テキストデータに顧客識別情報J16を示す文字列が記述される。
ステップSC3のテキストデータ分析処理において、制御サーバー制御部40は、第1パーサーPS1の機能により、印刷テキストデータを分析し、顧客識別情報J16を取得し、又は、取得できないことを検出する。制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で顧客識別情報J16を取得した場合、取得した顧客識別情報J16を、顧客識別情報項目と対応付けて分析データに記述する。制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で顧客識別情報J16を取得できないことを検出した場合、顧客識別情報項目と対応付けてnull値を分析データに記述する。
図9で例示する分析データにおいて、プロパティー「consumer_id」は、領域A4に記述される。
As shown in FIG. 8, the customer identification information item is an item corresponding to the property “consumer_id” of the data type: text. The item value of the customer identification information item is identification information (hereinafter, referred to as "customer identification information J16") that identifies the customer who has performed the accounting.
In accounting, the customer card on which the customer identification information J16 is recorded may be read, and the customer identification information J16 may be printed on the receipt. In this case, the customer identification information J16 is included in the receipt information, and the character string indicating the customer identification information J16 is described in the print text data.
In the text data analysis process of step SC3, the control server control unit 40 analyzes the printed text data by the function of the first parser PS1 and detects that the customer identification information J16 is acquired or cannot be acquired. When the control server control unit 40 acquires the customer identification information J16 in the text data analysis process when generating the analysis data, the control server control unit 40 describes the acquired customer identification information J16 in the analysis data in association with the customer identification information item. When the control server control unit 40 detects that the customer identification information J16 cannot be acquired in the text data analysis process when generating the analysis data, it describes the null value in the analysis data in association with the customer identification information item.
In the analytical data illustrated in FIG. 9, the property "consumer_id" is described in region A4.

図8に示すように、会計割引情報項目は、データ型:arrayのプロパティー「discounts」に対応する項目である。会計割引情報項目には、会計割引名称情報項目と、会計割引額情報項目とが属する。
会計割引名称情報項目は、データ型:textのプロパティー「discounts[].name」に対応する項目である。会計割引名称情報項目の項目値は、会計に適用された割引の名称を示す情報(以下、「会計割引名称情報J17」という。)である。
会計割引額情報項目は、データ型:floatのプロパティー「discounts[].value」に対応する項目である。会計割引額情報項目の項目値は、会計に適用された割引の金額を示す情報(以下、「会計割引額情報J18」)である。
会計では、所定の割引が適用される場合がある。この場合において、レシートに、会計に適用された所定の割引に対応する会計割引名称情報J17、及び、会計割引額情報J18がレシートに印刷される場合がある。この場合、レシート情報に会計割引名称情報J17、及び、会計割引額情報J18が含まれ、印刷テキストデータに、会計割引名称情報J17を示す文字列、及び、会計割引額情報J18を示す文字列が記述される。
As shown in FIG. 8, the accounting discount information item is an item corresponding to the property “discounts” of the data type: array. The accounting discount information item includes an accounting discount name information item and an accounting discount amount information item.
The accounting discount name information item is an item corresponding to the property "discounts []. Name" of the data type: text. The item value of the accounting discount name information item is information indicating the name of the discount applied to accounting (hereinafter, referred to as "accounting discount name information J17").
The accounting discount amount information item is an item corresponding to the property "discounts [] .value" of the data type: float. The item value of the accounting discount amount information item is information indicating the amount of the discount applied to the accounting (hereinafter, "accounting discount amount information J18").
In accounting, certain discounts may be applied. In this case, the accounting discount name information J17 and the accounting discount amount information J18 corresponding to the predetermined discount applied to the accounting may be printed on the receipt. In this case, the receipt information includes the accounting discount name information J17 and the accounting discount amount information J18, and the printed text data contains the character string indicating the accounting discount name information J17 and the character string indicating the accounting discount amount information J18. Will be described.

ステップSC3のテキストデータ分析処理において、制御サーバー制御部40は、第2パーサーPS2の機能により、印刷テキストデータを分析し、会計割引名称情報J17、及び、会計割引額情報J18を取得し、又は、取得できないことを検出する。
制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で会計割引名称情報J17を取得した場合、取得した会計割引名称情報J17を、会計割引名称情報項目と対応付けて分析データに記述する。制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で会計割引名称情報J17を取得できないことを検出した場合、会計割引名称情報項目と対応付けてnull値を分析データに記述する。
また、制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で会計割引額情報J18を取得した場合、取得した会計割引額情報J18のデータ型をデータ型:floatに変換することを試みる。会計割引額情報J18が、数字を表す文字や、所定の記号(小数点を表す記号等。)が所定の態様で組み合わされた情報ではない場合、データ型をデータ型:floatに変換することができない。制御サーバー制御部40は、データ型を変換することができた場合、データ型を変換した後の会計割引額情報J18を会計割引額情報項目と対応付けて分析データに記述する。制御サーバー制御部40は、データ型を変換することができなかった場合、会計割引額情報項目と対応付けてnull値を分析データに記述する。
また、制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で会計割引額情報J18を取得できないことを検出した場合、会計割引名称情報項目と対応付けてnull値を分析データに記述する。
図9で例示する分析データにおいて、プロパティー「discounts」は、領域A5に記述される。
In the text data analysis process of step SC3, the control server control unit 40 analyzes the printed text data by the function of the second parser PS2 and acquires the accounting discount name information J17 and the accounting discount amount information J18, or Detect that it cannot be obtained.
When the control server control unit 40 acquires the accounting discount name information J17 in the text data analysis process when generating the analysis data, the control server control unit 40 describes the acquired accounting discount name information J17 in the analysis data in association with the accounting discount name information item. To do. When the control server control unit 40 detects that the accounting discount name information J17 cannot be acquired in the text data analysis process when generating the analysis data, the control server control unit 40 describes the null value in the analysis data in association with the accounting discount name information item.
Further, when the control server control unit 40 acquires the accounting discount amount information J18 in the text data analysis process when generating the analysis data, the control server control unit 40 converts the data type of the acquired accounting discount amount information J18 into the data type: float. Try. If the accounting discount amount information J18 is not information in which characters representing numbers or predetermined symbols (symbols representing decimal points, etc.) are combined in a predetermined manner, the data type cannot be converted to the data type: float. .. When the data type can be converted, the control server control unit 40 describes the accounting discount amount information J18 after the data type is converted in the analysis data in association with the accounting discount amount information item. When the data type cannot be converted, the control server control unit 40 describes the null value in the analysis data in association with the accounting discount amount information item.
Further, when the control server control unit 40 detects that the accounting discount amount information J18 cannot be acquired in the text data analysis process when generating the analysis data, the control server control unit 40 describes the null value in the analysis data in association with the accounting discount name information item. To do.
In the analytical data illustrated in FIG. 9, the property "discounts" is described in region A5.

図8に示すように、顧客人数情報項目は、データ型:integerのプロパティー「guests」に対応する項目である。顧客人数情報項目の項目値は、会計を行った顧客の人数を示す情報(以下、「顧客人数情報J19」という。)である。
顧客人数情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「guests」は、領域A6に記述される。
As shown in FIG. 8, the customer number information item is an item corresponding to the property “guests” of the data type: integer. The item value of the customer number information item is information indicating the number of customers who have made an account (hereinafter, referred to as "customer number information J19").
A detailed description of the customer number information item will be omitted.
In the analytical data illustrated in FIG. 9, the property "guests" is described in region A6.

図8に示すように、払戻有無情報項目は、データ型:booleanのプロパティー「is_refund」に対応する項目である。払戻有無情報項目は、項目値として、会計において払い戻しがあったことを示すtrue値と、会計において払い戻しがなかったことを示すfalse値とのいずれかをとる。
払戻有無情報項目に関し、制御サーバー制御部40は、後述する取消有無情報項目に関する処理と同様の処理を実行する。払戻有無情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「is_refund」は、領域A7に記述される。
As shown in FIG. 8, the refund presence / absence information item is an item corresponding to the property “is_refund” of the data type: Boolean. The refund presence / absence information item takes either a true value indicating that there was a refund in accounting and a false value indicating that there was no refund in accounting as an item value.
Regarding the refund presence / absence information item, the control server control unit 40 executes the same processing as the processing regarding the cancellation presence / absence information item described later. A detailed description of the refund presence / absence information item will be omitted.
In the analytical data illustrated in FIG. 9, the property "is_refund" is described in region A7.

図8に示すように、取消有無情報項目は、データ型:booleanのプロパティー「is_void」に対応する項目である。取消有無情報項目は、項目値として、会計が取り消されたことを示すtrue値と、会計が取り消されていないことを示すfalse値とのいずれかをとる。
会計は、取り消される場合がある。この場合において、レシートに、会計が取り消されたことを示す情報が印刷される場合がある。この場合、印刷テキストデータに、会計が取り消されたことを示す情報を表す文字列が記述される。
ステップSC3のテキストデータ分析処理において、制御サーバー制御部40は、第5パーサーPS5の機能により、印刷テキストデータを分析し、印刷テキストデータに、会計が取り消されたことを示す情報を表す文字列が記述されているか否かを判別する。当該文字列が記述されている場合、制御サーバー制御部40は、取消有無情報項目の項目値として、true値を取得する。当該文字列が記述されていない場合、制御サーバー制御部40は、取消有無情報項目の項目値として、false値を取得する。
制御サーバー制御部40は、分析データの生成に際し、取消有無情報項目と対応付けてtrue値、又は、false値を分析データに記述する。
図9で例示する分析データにおいて、プロパティー「is_void」は、領域A8に記述される。
As shown in FIG. 8, the cancellation presence / absence information item is an item corresponding to the property “is_voice” of the data type: Boolean. The cancellation presence / absence information item takes either a true value indicating that the accounting has been canceled and a false value indicating that the accounting has not been canceled as the item value.
Accounting may be canceled. In this case, the receipt may be printed with information indicating that the accounting has been cancelled. In this case, a character string representing information indicating that the accounting has been canceled is described in the printed text data.
In the text data analysis process of step SC3, the control server control unit 40 analyzes the printed text data by the function of the fifth parser PS5, and the printed text data contains a character string indicating information indicating that the accounting has been canceled. Determine if it is described. When the character string is described, the control server control unit 40 acquires a true value as an item value of the cancellation presence / absence information item. When the character string is not described, the control server control unit 40 acquires a false value as an item value of the cancellation presence / absence information item.
When generating the analysis data, the control server control unit 40 describes the true value or the false value in the analysis data in association with the cancellation presence / absence information item.
In the analytical data illustrated in FIG. 9, the property "is_voice" is described in region A8.

図8に示すように、会員情報項目は、データ型:arrayのプロパティー「memberships」に対応する項目である。会員情報項目には、会員所属情報項目と、会員識別情報項目とが属する。
会員所属情報項目は、データ型:textのプロパティー「memberships[].name」に対応する項目である。会員所属情報項目の項目値は、顧客が所属するサービスプログラムの名称を示す情報(以下、「会員所属情報J20」という。)である。
会員識別情報項目は、データ型:textのプロパティー「memberships[].account.no」に対応する項目である。会員識別情報項目の項目値は、顧客が所属するサービスプログラムにおいて顧客を識別する識別情報(以下、「会員識別情報J21」という。)である。
会員情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「memberships」は、領域A9に記述される。
As shown in FIG. 8, the member information item is an item corresponding to the property “memberships” of the data type: array. The member information item includes a member affiliation information item and a member identification information item.
The member affiliation information item is an item corresponding to the property "memberships []. name" of the data type: text. The item value of the member affiliation information item is information indicating the name of the service program to which the customer belongs (hereinafter, referred to as "member affiliation information J20").
The member identification information item is an item corresponding to the property "memberships [] .account.no" of the data type: text. The item value of the member identification information item is identification information (hereinafter, referred to as "member identification information J21") that identifies the customer in the service program to which the customer belongs.
Detailed explanation of member information items will be omitted.
In the analytical data illustrated in FIG. 9, the property "memberships" is described in region A9.

図8に示すように、支払方法情報項目は、データ型:arrayのプロパティー「payment_methods」に対応する項目である。支払方法情報項目には、支払方法名称情報項目と、支払額情報項目とが属する。
支払方法名称情報項目は、データ型:textのプロパティー「payment_methods[].name」に対応する項目である。支払方法名称情報項目の項目値は、支払い方法の名称を示す情報(以下、「支払方法名称情報J22」という。)である。
支払額情報項目は、データ型:floatのプロパティー「payment_methods[].value」に対応する項目である。支払額情報項目の項目値は、支払方法名称情報J22に係る支払い方法で顧客が支払った金銭の額を示す情報(以下、「支払額情報J23」という。)である。
支払方法情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「payment_methods」は、領域A10に記述される。
As shown in FIG. 8, the payment method information item is an item corresponding to the property “payment_methods” of the data type: array. The payment method information item includes a payment method name information item and a payment amount information item.
The payment method name information item is an item corresponding to the property "payment_methods []. name" of the data type: text. The item value of the payment method name information item is information indicating the name of the payment method (hereinafter, referred to as "payment method name information J22").
The payment amount information item is an item corresponding to the property "payment_methods []. Value" of the data type: float. The item value of the payment amount information item is information indicating the amount of money paid by the customer by the payment method according to the payment method name information J22 (hereinafter, referred to as "payment amount information J23").
A detailed description of the payment method information item will be omitted.
In the analytical data illustrated in FIG. 9, the property "payment_methods" is described in region A10.

図8に示すように、発行日時情報項目は、データ型:datetime(フォーマットは、「YYYY−MM−DD」。)のプロパティー「printed_at」に対応する項目である。発行日時情報項目の項目値は、発行日時情報J5である。
ステップSC3のテキストデータ分析処理において、制御サーバー制御部40は、第8パーサーPS8の機能により、印刷テキストデータを分析し、発行日時情報J5を取得し、又は、取得できないことを検出する。制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で発行日時情報J5を取得した場合において、データ型の変換が成功した場合、データ型を変換した後の発行日時情報J5を、発行日時情報項目と対応付けて分析データに記述する。制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で発行日時情報J5を取得した場合において、データ型の変換が失敗した場合、発行日時情報項目と対応付けてnull値を分析データに記述する。制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で発行日時情報J5を取得できないことを検出した場合、発行日時情報項目と対応付けてnull値を分析データに記述する。
図9で例示する分析データにおいて、プロパティー「printed_at」は、領域A11に記述される。
As shown in FIG. 8, the issue date / time information item is an item corresponding to the property “printed_at” of the data type: datetime (format is “YYYY-MM-DD”). The item value of the issue date / time information item is the issue date / time information J5.
In the text data analysis process of step SC3, the control server control unit 40 analyzes the print text data by the function of the eighth parser PS8, and acquires or cannot acquire the issue date / time information J5. When the control server control unit 40 acquires the issue date / time information J5 in the text data analysis process when generating the analysis data, if the data type conversion is successful, the control server control unit 40 uses the issue date / time information J5 after the data type conversion. Describe in the analysis data in association with the issue date / time information item. The control server control unit 40 analyzes the null value in association with the issue date / time information item when the data type conversion fails when the issue date / time information J5 is acquired in the text data analysis process when generating the analysis data. Describe in. When the control server control unit 40 detects that the issue date / time information J5 cannot be acquired in the text data analysis process when generating the analysis data, it describes the null value in the analysis data in association with the issue date / time information item.
In the analytical data illustrated in FIG. 9, the property "printed_at" is described in region A11.

図8に示すように、商品情報項目は、データ型:arrayのプロパティー「puroducts」に対応する項目である。商品情報項目には、商品名情報項目と、購入数量情報項目と、単価情報項目とが属する。
商品名情報項目は、データ型:textのプロパティー「puroducts[].name」に対応する項目である。商品名情報項目の項目値は、商品名情報J62である。
購入数量情報項目は、データ型:textのプロパティー「puroducts[].quantity」に対応する項目である。購入数量情報項目の項目値は、購入数量情報J61である。
単価情報項目は、データ型:textのプロパティー「puroducts[].price」に対応する項目である。単価情報項目の項目値は、単価情報J63である。
As shown in FIG. 8, the product information item is an item corresponding to the property “puroduts” of the data type: array. The product information item includes a product name information item, a purchase quantity information item, and a unit price information item.
The product name information item is an item corresponding to the property "puroducts []. Name" of the data type: text. The item value of the product name information item is the product name information J62.
The purchase quantity information item is an item corresponding to the property "puroducts [] .quantity" of the data type: text. The item value of the purchase quantity information item is the purchase quantity information J61.
The unit price information item is an item corresponding to the property "puroducts []. Price" of the data type: text. The item value of the unit price information item is the unit price information J63.

商品名情報J62、購入数量情報J61、及び、単価情報J63について、ステップSC3のテキストデータ分析処理で、制御サーバー制御部40は、第9パーサーPS9の機能により、印刷テキストデータを分析し、各情報を取得し、又は、取得できないことを検出する。商品名情報J62、購入数量情報J61、及び、単価情報J63について、制御サーバー制御部40は、分析データの生成に際し、取得できた情報については対応する項目と対応付けて分析データに記述し、取得できなかった情報については対応する項目とnull値と対応付けて分析データに記述する。
図9で例示する分析データにおいて、プロパティー「products」は、領域A12に記述される。
Regarding the product name information J62, the purchase quantity information J61, and the unit price information J63, in the text data analysis process of step SC3, the control server control unit 40 analyzes the printed text data by the function of the ninth parser PS9, and each information. Or detect that it cannot be obtained. Regarding the product name information J62, the purchase quantity information J61, and the unit price information J63, the control server control unit 40 describes the acquired information in the analysis data in association with the corresponding items when generating the analysis data, and acquires the information. The information that could not be described is described in the analysis data in association with the corresponding item and the null value.
In the analytical data illustrated in FIG. 9, the property "products" is described in region A12.

図8に示すように、レシート識別情報項目は、データ型:textのプロパティー「receipt_id」に対応する項目である。レシート識別情報項目の項目値は、レシート識別情報J42である。
レシート識別情報項目に関する処理について、制御サーバー制御部40は、顧客識別情報項目に関する処理と同様の処理を実行する。レシート識別情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「receipt_id」は、領域A13に記述される。
As shown in FIG. 8, the receipt identification information item is an item corresponding to the property “recept_id” of the data type: text. The item value of the receipt identification information item is the receipt identification information J42.
Regarding the process related to the receipt identification information item, the control server control unit 40 executes the same process as the process related to the customer identification information item. Detailed description of the receipt identification information item will be omitted.
In the analytical data illustrated in FIG. 9, the property "recept_id" is described in region A13.

図8に示すように、販売方法情報項目は、データ型:textのプロパティー「sale_type」に対応する項目である。販売方法情報項目の項目値は、商品の販売がどのような方法で行われたかを示す情報(以下、「販売方法情報J24」という。)である。販売方法情報項目の詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「sale_type」は、領域A14に記述される。
As shown in FIG. 8, the sales method information item is an item corresponding to the property “sale_type” of the data type: text. The item value of the sales method information item is information indicating how the product was sold (hereinafter, referred to as "sales method information J24"). The detailed explanation of the sales method information item is omitted.
In the analytical data illustrated in FIG. 9, the property "sale_type" is described in region A14.

図8に示すように、スタッフ情報項目は、データ型:textのプロパティー「staff」に対応する項目である。スタッフ情報項目の項目値は、店舗におけるスタッフの名前を示す情報、又は、スタップを識別する識別情報(以下、「スタッフ情報J25」という。)である。スタッフとは、会計を担当した者や、店舗において顧客に対するサービスの提供を担当した者である。スタッフ情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「staff」は、領域A15に記述される。
As shown in FIG. 8, the staff information item is an item corresponding to the property “staff” of the data type: text. The item value of the staff information item is information indicating the name of the staff in the store or identification information for identifying the stap (hereinafter referred to as "staff information J25"). The staff is the person in charge of accounting and the person in charge of providing services to customers at the store. Detailed explanation of staff information items is omitted.
In the analytical data illustrated in FIG. 9, the property "staff" is described in region A15.

図8に示すように、小計情報項目は、データ型:floatのプロパティー「subtotal」に対応する項目である。小計情報項目の項目値は、小計情報J72である。
小計情報項目に関し、制御サーバー制御部40は、後述する合計金額情報項目に関する処理と同様の処理を実行する。小計情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「subtotal」は、領域A16に記述される。
As shown in FIG. 8, the subtotal information item is an item corresponding to the property “subtotal” of the data type: float. The item value of the subtotal information item is subtotal information J72.
Regarding the subtotal information item, the control server control unit 40 executes the same processing as the processing related to the total amount information item described later. A detailed description of the subtotal information item will be omitted.
In the analytical data illustrated in FIG. 9, the property "subtotal" is described in region A16.

図8に示すように、税情報項目は、データ型:arrayのプロパティー「taxes」に対応する項目である。税情報項目には、税名称情報項目と、税額情報項目とが属する。
税名称情報項目は、データ型:textのプロパティー「taxes[].name」に対応する項目である。税名称情報項目の項目値は、税の名称を示す情報(以下、「税名称情報J26」という。)である。レシートには、税名称情報J26が印刷される場合がある。この場合、レシート情報に税名称情報J26が含まれ、印刷テキストデータに税名称情報J26を示す文字列が記述される。
税額情報項目は、データ型:floatのプロパティー「taxes.value」に対応する項目である。税額情報項目の項目値は、税額情報J82である。
税情報項目に関する処理について、制御サーバー制御部40は、上述した会計割引情報項目に関する処理と同様の処理を実行する。税額情報項目の詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「taxes」は、領域A17に記述される。
As shown in FIG. 8, the tax information item is an item corresponding to the property “taxes” of the data type: array. The tax information item includes a tax name information item and a tax amount information item.
The tax name information item is an item corresponding to the property "taxes []. Name" of the data type: text. The item value of the tax name information item is information indicating the name of the tax (hereinafter, referred to as "tax name information J26"). Tax name information J26 may be printed on the receipt. In this case, the receipt information includes the tax name information J26, and the print text data describes a character string indicating the tax name information J26.
The tax amount information item is an item corresponding to the property "taxes.value" of the data type: float. The item value of the tax amount information item is tax amount information J82.
Regarding the processing related to the tax information item, the control server control unit 40 executes the same processing as the processing related to the accounting discount information item described above. Detailed explanation of tax amount information items will be omitted.
In the analytical data illustrated in FIG. 9, the property "taxes" is described in region A17.

図8に示すように、合計金額情報項目は、データ型:floatのプロパティー「total」に対応する項目である。合計金額情報項目の項目値は、合計金額情報J92である。
ステップSC3のテキストデータ分析処理において、制御サーバー制御部40は、第15パーサーPS15の機能により、印刷テキストデータを分析し、合計金額情報J92を取得し、又は、取得できないことを検出する。
制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で合計金額情報J92を取得した場合において、データ型の変換が成功した場合、データ型を変換した後の合計金額情報J92を、合計金額情報項目と対応付けて分析データに記述する。制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で合計金額情報J92を取得した場合において、データ型の変換が失敗した場合、合計金額情報項目と対応付けてnull値を分析データに記述する。制御サーバー制御部40は、分析データの生成に際し、テキストデータ分析処理で合計金額情報J92を取得できないことを検出した場合、合計金額情報項目と対応付けてnull値を分析データに記述する。
図9で例示する分析データにおいて、プロパティー「total」は、領域A18に記述される。
As shown in FIG. 8, the total amount information item is an item corresponding to the property “total” of the data type: float. The item value of the total amount information item is the total amount information J92.
In the text data analysis process of step SC3, the control server control unit 40 analyzes the printed text data by the function of the 15th parser PS15, and acquires or cannot acquire the total amount information J92.
When the control server control unit 40 acquires the total amount information J92 in the text data analysis process when generating the analysis data, if the data type conversion is successful, the control server control unit 40 uses the total amount information J92 after the data type conversion. Describe in the analysis data in association with the total amount information item. When the control server control unit 40 acquires the total amount information J92 in the text data analysis process when generating the analysis data, if the data type conversion fails, the control server control unit 40 analyzes the null value in association with the total amount information item. Describe in. When the control server control unit 40 detects that the total amount information J92 cannot be acquired in the text data analysis process when generating the analysis data, it describes the null value in the analysis data in association with the total amount information item.
In the analytical data illustrated in FIG. 9, the property "total" is described in region A18.

図3のフローチャートFCに示すように、ステップSC4で分析データを生成した後、制御サーバー制御部40は、分析データ管理データベース422に1件のレコードを登録する(ステップSC5)。
図10は、分析データ管理データベース422の1件のレコードが有する情報を模式的に示す図である。
図10に示すように、分析データ管理データベース422の1件のレコードは、統括識別情報J15、シリアル番号J11、店舗識別情報J12、発行日時情報J5、印刷データ、印刷テキストデータ、分析データを有する。
ステップSC5において、制御サーバー制御部40は、分析データに、対応する項目と対応付けて記述した統括識別情報J15、シリアル番号J11、店舗識別情報J12、及び発行日時情報J5と、受信した印刷データ、及び印刷テキストデータと、生成した分析データとを有するレコードを、分析データ管理データベース422に登録する。
As shown in the flowchart FC of FIG. 3, after the analysis data is generated in step SC4, the control server control unit 40 registers one record in the analysis data management database 422 (step SC5).
FIG. 10 is a diagram schematically showing information contained in one record of the analysis data management database 422.
As shown in FIG. 10, one record of the analysis data management database 422 has general identification information J15, serial number J11, store identification information J12, issue date / time information J5, print data, print text data, and analysis data.
In step SC5, the control server control unit 40 describes the analysis data in association with the corresponding items, the general identification information J15, the serial number J11, the store identification information J12, the issue date / time information J5, and the received print data. And the record having the printed text data and the generated analysis data is registered in the analysis data management database 422.

ここで、制御サーバー15には、複数のWebAPI(Application Programming Interface)が登録される。そして、制御サーバー15は、外部の装置のブラウザーからの要求に応じて、分析データ管理データベース422に基づいて、登録されたWebAPIにより処理を行って、ユーザーが必要とする情報を提供することができる。
例えば、制御サーバー15の制御サーバー制御部40は、外部の装置のブラウザーからの要求に応じて、分析データ管理データベース422の分析データを用いて、特定のレシートに係る合計金額情報J92を提供する。
Here, a plurality of Web APIs (Application Programming Interfaces) are registered in the control server 15. Then, the control server 15 can provide the information required by the user by performing processing by the registered WebAPI based on the analysis data management database 422 in response to the request from the browser of the external device. ..
For example, the control server control unit 40 of the control server 15 provides total amount information J92 related to a specific receipt by using the analysis data of the analysis data management database 422 in response to a request from a browser of an external device.

以上のように、制御サーバー15の制御サーバー制御部40は、パーサーPSの機能により、印刷テキストデータを分析し、対応する項目の項目値を取得し、又は、対応する項目の項目値が取得できないことを検出する。上述したように、レシートのレイアウトは、印刷装置12が異なると、異なる可能性がある。従って、1の印刷装置12が送信した印刷テキストデータを分析するパーサーPSは、当該1の印刷装置12のレイアウトを反映した処理を行って、対応する項目の項目値を取得することが求められる。
以上を踏まえ、本実施形態に係る制御サーバー15は、以下の処理を実行することにより、印刷装置12のレイアウトを反映して的確に項目値を取得する機能を有するパーサーPSを、ユーザーが簡易な操作を行って生成できるようにする。
As described above, the control server control unit 40 of the control server 15 analyzes the printed text data by the function of the parser PS and cannot acquire the item value of the corresponding item or the item value of the corresponding item. Detect that. As mentioned above, the layout of the receipt may be different for different printing devices 12. Therefore, the parser PS that analyzes the print text data transmitted by the printing device 12 of 1 is required to perform processing that reflects the layout of the printing device 12 of 1 and acquire the item value of the corresponding item.
Based on the above, the control server 15 according to the present embodiment can easily provide a parser PS having a function of accurately acquiring item values by reflecting the layout of the printing device 12 by executing the following processing. Operate to be able to generate.

以下、1の印刷装置12のパーサーPSのうち、以下のパーサーPSをユーザーの操作に基づいて生成する場合を例にして、制御サーバー15の処理について、説明する。
第15パーサーPS15(合計金額情報項目(プロパティー「total」)の項目値を取得するパーサーPS。)。
第5パーサーPS5(取消有無情報項目(プロパティー「is_void」)の項目値を取得するパーサーPS。)。
第9パーサーPS9(商品情報項目(プロパティー「products」)の項目値を取得するパーサーPS。)。
Hereinafter, the processing of the control server 15 will be described by taking as an example the case where the following parser PS is generated based on the user's operation among the parser PS of the printing device 12 of 1.
Fifteenth parser PS15 (Parser PS for acquiring the item value of the total amount information item (property "total")).
Fifth parser PS5 (Parser PS for acquiring the item value of the cancellation presence / absence information item (property "is_voice")).
Ninth parser PS9 (Parser PS for acquiring the item value of the product information item (property "products")).

なお、以下の説明では、制御サーバー15は、制御サーバー15が備える入力手段に対する操作に応じて、制御サーバー15が備える表示パネルにユーザーインターフェースを表示する。しかしながら、ユーザーが、制御サーバー15と通信可能な外部の装置に対して所定の操作を行い、制御サーバー15が、当該外部の装置からの要求に応じて、当該外部の装置にユーザーインターフェースを表示する構成でもよい。 In the following description, the control server 15 displays the user interface on the display panel included in the control server 15 in response to an operation on the input means included in the control server 15. However, the user performs a predetermined operation on an external device capable of communicating with the control server 15, and the control server 15 displays the user interface on the external device in response to a request from the external device. It may be configured.

まず、パーサーPSを生成する場合、ユーザーは、制御サーバー15の入力手段を操作して、第1ユーザーインターフェースUI1の表示を指示する。制御サーバー制御部40は、ユーザーの指示に応じて、制御サーバー表示部43を制御して、表示パネルに第1ユーザーインターフェースUI1を表示する。 First, when generating the parser PS, the user operates the input means of the control server 15 to instruct the display of the first user interface UI1. The control server control unit 40 controls the control server display unit 43 in response to a user's instruction to display the first user interface UI 1 on the display panel.

図11Aは、第1ユーザーインターフェースUI1を示す図である。
図11Aに示すように、第1ユーザーインターフェースUI1は、店舗識別情報J12を入力する入力欄N1aを有する。ユーザーは、パーサーPSを生成する対象とする印刷装置12が設けられた店舗の店舗識別情報J12を入力欄N1aに入力し、入力を確定する。
入力の確定に応じて、制御サーバー制御部40は、制御サーバー表示部43を制御して、表示パネルに第2ユーザーインターフェースUI2を表示する。
FIG. 11A is a diagram showing a first user interface UI1.
As shown in FIG. 11A, the first user interface UI1 has an input field N1a for inputting the store identification information J12. The user inputs the store identification information J12 of the store provided with the printing device 12 for generating the parser PS into the input field N1a, and confirms the input.
Upon confirmation of the input, the control server control unit 40 controls the control server display unit 43 to display the second user interface UI 2 on the display panel.

図11Bは、第2ユーザーインターフェースUI2を示す図である。
図11Bに示すように、第2ユーザーインターフェースUI2には、ユーザーが入力した店舗識別情報J12が表示される。
また、第2ユーザーインターフェースUI2には、ユーザーが入力した店舗識別情報J12の店舗に設けられた印刷装置12のうち、必須項目(後述)の項目値の取得が完了していないものが1つでもある印刷装置12について、シリアル番号J11が一覧表示される。1の必須項目の項目値の取得が完了していないとは、当該1の必須項目に対応するパーサーPSの機能によって、当該1の必須項目の項目値が取得できないことを意味する。また、第2ユーザーインターフェースUI2には、シリアル番号J11のそれぞれと対応付けて、ラジオボタンが表示される。ユーザーは、ラジオボタンにより、いずれか1つのシリアル番号J11を選択することができる。また、第2ユーザーインターフェースUI2には、シリアル番号J11のそれぞれと対応付けて、表示ボタンB2aが設けられる。表示ボタンB2aは、対応するシリアル番号J11の印刷装置12から受信した印刷テキストデータに記述されたテキストの表示を指示するボタンである。また、第2ユーザーインターフェースUI2には、ラジオボタンによるシリアル番号J11の選択を確定する確定ボタンB2bが設けられる。
FIG. 11B is a diagram showing a second user interface UI2.
As shown in FIG. 11B, the store identification information J12 input by the user is displayed on the second user interface UI2.
Further, in the second user interface UI2, even one of the printing devices 12 provided in the store of the store identification information J12 input by the user has not completed the acquisition of the item values of the required items (described later). A list of serial numbers J11 is displayed for a certain printing device 12. The fact that the acquisition of the item value of the required item of 1 is not completed means that the item value of the required item of 1 cannot be acquired by the function of the parser PS corresponding to the required item of 1. Further, in the second user interface UI2, a radio button is displayed in association with each of the serial numbers J11. The user can select any one of the serial numbers J11 by the radio button. Further, the second user interface UI 2 is provided with a display button B2a in association with each of the serial numbers J11. The display button B2a is a button for instructing the display of the text described in the print text data received from the printing device 12 having the corresponding serial number J11. Further, the second user interface UI2 is provided with a confirmation button B2b for confirming the selection of the serial number J11 by the radio button.

ここで、必須項目とは、レシート項目のうち、パーサーPSの機能により取得することが求められる項目のことである。すなわち、必須項目とは、印刷テキストデータに基づいて生成される分析データにおいて、null値ではない項目値が対応付けて記述されることが求められる項目である。本実施形態では、発行日時情報項目(プロパティー「printed_at」。)、商品情報項目(プロパティー「products」。)、レシート識別情報項目(プロパティー「receipt_id」。)、税情報項目(プロパティー「taxes」。)、及び、合計金額情報項目(プロパティー「toal」。)が、必須項目である。
必須項目は、レシート情報のうち、レシートの発行に際して行われた会計を分析するときに重要か否かという観点から選択される。
Here, the required items are the items that are required to be acquired by the function of the parser PS among the receipt items. That is, the required item is an item that is required to be described in association with an item value that is not a null value in the analysis data generated based on the printed text data. In the present embodiment, an issue date / time information item (property "printed_at"), a product information item (property "products"), a receipt identification information item (property "recept_id"), and a tax information item (property "taxes"). , And the total amount information item (property "toal") is a required item.
Required items are selected from the viewpoint of whether or not the receipt information is important when analyzing the accounting performed at the time of issuing the receipt.

第2ユーザーインターフェースUI2の表示に際し、制御サーバー制御部40は、印刷装置管理データベース423を参照する。印刷装置管理データベース423は、印刷装置12ごとに、レコードを有する。
図12は、印刷装置管理データベース423の1件のレコードが有する情報を模式的に示す図である。
図12に示すように、印刷装置管理データベース423の1件のレコードは、シリアル番号J11と、店舗識別情報J12と、取得完了管理フラグJ27(後述)とを有する。
印刷装置管理データベース423において、1の印刷装置12に対応するレコードは、当該1の印刷装置12のシリアル番号J11と、当該1の印刷装置12が設けられた店舗の店舗識別情報J12と、当該1の印刷装置12に対応する取得完了管理フラグJ27とを有する。当該1の印刷装置12に対応する取得完了管理フラグJ27は、当該1の印刷装置12に対応するパーサーPSの機能により、当該1の印刷装置12が送信する印刷テキストデータに基づいて全ての必須項目が取得可能な状態の場合、そのことを示す値を有し、1つでも取得できない必須項目がある場合、そのことを示す値を有する。
制御サーバー制御部40は、全ての必須項目が取得可能な状態か否かに応じて、所定の手段により、適宜、取得完了管理フラグJ27の値を書き換える。取得完了管理フラグJ27の値をユーザーが書き換える構成でもよい。
When displaying the second user interface UI2, the control server control unit 40 refers to the printing device management database 423. The printing device management database 423 has a record for each printing device 12.
FIG. 12 is a diagram schematically showing information contained in one record of the printing apparatus management database 423.
As shown in FIG. 12, one record of the printing apparatus management database 423 has a serial number J11, a store identification information J12, and an acquisition completion management flag J27 (described later).
In the printing device management database 423, the records corresponding to the printing device 12 are the serial number J11 of the printing device 12, the store identification information J12 of the store in which the printing device 12 is provided, and the 1 It has an acquisition completion management flag J27 corresponding to the printing device 12 of the above. The acquisition completion management flag J27 corresponding to the printing device 12 of 1 is all required items based on the print text data transmitted by the printing device 12 of 1 by the function of the parser PS corresponding to the printing device 12 of 1. If is in an acquireable state, it has a value indicating that, and if there is even one required item that cannot be acquired, it has a value indicating that.
The control server control unit 40 appropriately rewrites the value of the acquisition completion management flag J27 by a predetermined means depending on whether or not all the essential items can be acquired. The user may rewrite the value of the acquisition completion management flag J27.

第2ユーザーインターフェースUI2の表示に際し、制御サーバー制御部40は、印刷装置管理データベース423を参照し、ユーザーが入力した店舗識別情報J12の店舗に設けられた印刷装置12のうち、必須項目(後述)の項目値の取得が完了していないものが1つでもある印刷装置12のシリアル番号J11を取得し、一覧表示する。
また、第2ユーザーインターフェースUI2のボタンB2aが操作されたことを検出した場合、制御サーバー制御部40は、制御サーバー表示部43を制御して、表示パネルに第3ユーザーインターフェースUI3を表示する。
When displaying the second user interface UI2, the control server control unit 40 refers to the printing device management database 423, and is an essential item (described later) among the printing devices 12 provided in the store of the store identification information J12 entered by the user. The serial number J11 of the printing apparatus 12, which has not completed the acquisition of the item values of, is acquired and displayed in a list.
When it is detected that the button B2a of the second user interface UI 2 has been operated, the control server control unit 40 controls the control server display unit 43 to display the third user interface UI 3 on the display panel.

図11Cは、第3ユーザーインターフェースUI3を示す図である。
図11Cに示すように、第3ユーザーインターフェースUI3は、印刷テキストデータに基づくテキストが表示される。
第3ユーザーインターフェースUI3の表示に際し、制御サーバー制御部40は、分析データ管理データベース422を参照し、操作されたボタンB2aに対応するシリアル番号J11の印刷装置12から受信した印刷テキストデータのうち、1つの印刷テキストデータを取得する。例えば、制御サーバー制御部40は、直近で、印刷装置12から受信した印刷テキストデータを取得する。次いで、制御サーバー制御部40は、取得した印刷テキストデータに記述されたテキストが表示された第3ユーザーインターフェースUI3を表示する。なお、制御サーバー制御部40が、所定の手段で、印刷装置12から受信した印刷テキストデータのうち、1つの印刷テキストデータをユーザーに選択させ、ユーザーに選択された印刷テキストデータを取得する構成でもよい。
ユーザーは、第3ユーザーインターフェースUI3を参照することにより、印刷テキストデータに記述された情報の内容、及び、対応するレシートのレイアウトを把握することができる。
ユーザーは、第3ユーザーインターフェースUI3に対して所定の操作を行うことにより、ユーザーインターフェースを第3ユーザーインターフェースUI3から第2ユーザーインターフェースUI2へ移行できる。
FIG. 11C is a diagram showing a third user interface UI3.
As shown in FIG. 11C, the third user interface UI 3 displays text based on the print text data.
When displaying the third user interface UI3, the control server control unit 40 refers to the analysis data management database 422, and one of the print text data received from the printing device 12 having the serial number J11 corresponding to the operated button B2a. Get one print text data. For example, the control server control unit 40 acquires the print text data received from the printing device 12 most recently. Next, the control server control unit 40 displays the third user interface UI 3 in which the text described in the acquired print text data is displayed. In addition, the control server control unit 40 may have the user select one print text data among the print text data received from the printing device 12 by a predetermined means, and acquire the print text data selected by the user. Good.
By referring to the third user interface UI3, the user can grasp the content of the information described in the print text data and the layout of the corresponding receipt.
The user can shift the user interface from the third user interface UI 3 to the second user interface UI 2 by performing a predetermined operation on the third user interface UI 3.

第2ユーザーインターフェースUI2の確定ボタンB2bが操作されたことを検出すると、制御サーバー制御部40は、制御サーバー表示部43を制御して、表示パネルに第4ユーザーインターフェースUI4を表示する。 When it is detected that the confirmation button B2b of the second user interface UI2 has been operated, the control server control unit 40 controls the control server display unit 43 to display the fourth user interface UI 4 on the display panel.

図13は、第4ユーザーインターフェースUI4を示す図である。
図13に示すように、第4ユーザーインターフェースUI4は、その領域が、第1領域A41、第2領域A42、及び第3領域A43の3つに分かれる。
以下、第1領域A41、第3領域A43、第2領域A42の順番で、各領域に表示される画面、及び、画面を表示する際の制御サーバー制御部40の処理について説明する。
FIG. 13 is a diagram showing a fourth user interface UI 4.
As shown in FIG. 13, the area of the fourth user interface UI 4 is divided into three areas: a first area A41, a second area A42, and a third area A43.
Hereinafter, the screen displayed in each area and the processing of the control server control unit 40 when displaying the screen will be described in the order of the first area A41, the third area A43, and the second area A42.

<第1領域A41>
第1領域A41について説明する。
第4ユーザーインターフェースUI4の第1領域A41には、項目選択画面G41が表示される。
図13に示すように、項目選択画面G41は、上述した15個のレシート項目のそれぞれのプロパティー名が、選択可能に一覧表示される。
項目選択画面G41において、項目選択画面G41にプロパティー名が表示されたレシート項目のうち、必須項目については、レシート項目が必須項目であることを示すマークM4a(第1の付加情報)が、プロパティー名と対応付けて表示される。具体的には、「printed_at」、「products」、「receipt_id」、「taxes」、及び、「toal」のプロパティー名と対応付けて、米印からなるマークM4aが表示される。
また、項目選択画面G41において、項目選択画面G41にプロパティー名が表示されたレシート項目のうち、項目値の取得が完了していない項目については、項目値の取得が完了していないことを示すマークM4b(第2の付加情報)が、プロパティー名と対応付けて表示される。図13の例では、「consumer_id」、「discounts」、「memberships」、「payment_methods」、「products」、「sale_type」、及び、「subtotal」のプロパティー名と対応付けて、×印が丸で囲まれたマークM4bが表示される。項目値の取得が完了していない項目とは、対応するパーサーPSの機能により分析データを生成した場合に、生成した分析データにおいて、項目と対応付けてnull値が記述される項目である。なお、上述したように、分析データの生成に際し、データ型の変換に失敗した項目については、項目と対応付けてnull値が記述される。このような項目についても、「項目値の取得ができなかった項目」に該当する。
なお、ユーザーは、項目選択画面G41に表示された項目のうち、1の項目にカーソルを重ねて、所定の操作(例えば、マウスに対するダブルクリック。)を行うことにより、当該1の項目を選択することができる。ユーザーが選択した項目については、プロパティー名が矩形の枠で囲まれ、ユーザーが選択したことが明示される。なお、ユーザーは、マウス、キーボード、その他の入力デバイスを利用して、第4ユーザーインターフェースUI4、その他のユーザーインターフェース上で、カーソルを動かすことができる。
<First area A41>
The first region A41 will be described.
The item selection screen G41 is displayed in the first area A41 of the fourth user interface UI4.
As shown in FIG. 13, on the item selection screen G41, the property names of the 15 receipt items described above are listed in a selectable manner.
On the item selection screen G41, among the receipt items whose property names are displayed on the item selection screen G41, for the required items, the mark M4a (first additional information) indicating that the receipt item is a required item is the property name. Is displayed in association with. Specifically, the mark M4a consisting of a rice mark is displayed in association with the property names of "printed_at", "produces", "recept_id", "taxes", and "toal".
Further, on the item selection screen G41, among the receipt items whose property names are displayed on the item selection screen G41, the mark indicating that the item value acquisition has not been completed for the item for which the item value acquisition has not been completed. M4b (second additional information) is displayed in association with the property name. In the example of FIG. 13, a cross is circled in association with the property names of "consumer_id", "discounts", "memberships", "payment_methods", "products", "sale_type", and "subtotal". The mark M4b is displayed. The item for which the acquisition of the item value has not been completed is an item in which the null value is described in association with the item in the generated analysis data when the analysis data is generated by the corresponding parser PS function. As described above, when the analysis data is generated, the null value is described in association with the item for the item for which the data type conversion has failed. Such items also correspond to "items for which item values could not be obtained".
The user selects one item among the items displayed on the item selection screen G41 by hovering the cursor over one item and performing a predetermined operation (for example, double-clicking on the mouse). be able to. For items selected by the user, the property name is enclosed in a rectangular frame to clearly indicate that the user has selected. The user can move the cursor on the fourth user interface UI4 and other user interfaces by using a mouse, keyboard, and other input devices.

ユーザーは、項目選択画面G41を参照することにより、必須項目を簡易かつ直感的に認識することができると共に、項目値の取得ができなかった項目を簡易かつ直感的に認識することができる。 By referring to the item selection screen G41, the user can easily and intuitively recognize the required items, and can easily and intuitively recognize the items for which the item values could not be acquired.

項目選択画面G41の表示に際し、制御サーバー制御部40は、分析データ管理データベース422を参照し、第2ユーザーインターフェースUI2でユーザーが選択したシリアル番号J11の印刷装置12から受信した印刷テキストデータを取得する。その際、制御サーバー制御部40は、第2ユーザーインターフェースUI2の表示ボタンB2aが操作された場合に、第3ユーザーインターフェースUI3にテキストを表示する対象とする印刷テキストデータを取得する。
以下、第2ユーザーインターフェースUI2でユーザーが選択したシリアル番号J11の印刷装置12を、「選択印刷装置」という。また、取得した印刷テキストデータを、「処理対象テキストデータ」という。
When displaying the item selection screen G41, the control server control unit 40 refers to the analysis data management database 422 and acquires the print text data received from the printing device 12 of the serial number J11 selected by the user in the second user interface UI2. .. At that time, the control server control unit 40 acquires the print text data to be displayed on the third user interface UI 3 when the display button B2a of the second user interface UI 2 is operated.
Hereinafter, the printing device 12 having the serial number J11 selected by the user in the second user interface UI 2 is referred to as a "selective printing device". Further, the acquired print text data is referred to as "text data to be processed".

次いで、制御サーバー制御部40は、パーサー管理データベース421を参照し、選択印刷装置のパーサーセットPSSを取得する。次いで、制御サーバー制御部40は、取得したパーサーセットPSSの機能により、処理対象テキストデータを分析し、レシート項目のそれぞれについて、項目値が取得できること、又は、項目値が取得できないことを判別する。なお、1の項目の項目値が取得できるとは、処理対象テキストデータの分析に基づいて生成される分析データにおいて、当該1の項目と対応付けてnull値以外の値の項目値が記述されることを意味する。また、1の項目の項目値が取得できないとは、処理対象テキストデータの分析に基づいて生成される分析データにおいて、当該1の項目と対応付けてnull値が記述されることを意味する。
次いで、制御サーバー制御部40は、判別結果に基づいて、適切な位置にマークM4bが表示された項目選択画面G41を、第1領域A41に表示する。
Next, the control server control unit 40 refers to the parser management database 421 and acquires the parser set PSS of the selective printing apparatus. Next, the control server control unit 40 analyzes the text data to be processed by the function of the acquired parser set PSS, and determines that the item value can be acquired or the item value cannot be acquired for each of the receipt items. Note that the item value of one item can be acquired means that in the analysis data generated based on the analysis of the text data to be processed, the item value of a value other than the null value is described in association with the item of 1. Means that. Further, the fact that the item value of one item cannot be acquired means that the null value is described in association with the item 1 in the analysis data generated based on the analysis of the text data to be processed.
Next, the control server control unit 40 displays the item selection screen G41 in which the mark M4b is displayed at an appropriate position in the first area A41 based on the determination result.

<第3領域A43>
次いで、第3領域A43について説明する。
第4ユーザーインターフェースUI4の第3領域A43には、テキスト表示画面G43が表示される。テキスト表示画面G43は、処理対象テキストデータに記述されたテキストが表示される画面である。
上述したように、処理対象テキストデータ(印刷テキストデータ)は、レシートに文字として印刷される情報が、印刷における順番、及び、印刷における改行を反映した状態で記述されたテキストデータである。従って、テキスト表示画面G43に表示されるテキストには、情報が、レシートのレイアウトに従って配置される。ユーザーは、テキスト表示画面G43を参照することにより、処理対象テキストデータに記述された情報の内容、及び、対応するレシートのレイアウトを簡易かつ直感的に把握することができる。
<Third area A43>
Next, the third region A43 will be described.
The text display screen G43 is displayed in the third area A43 of the fourth user interface UI4. The text display screen G43 is a screen on which the text described in the text data to be processed is displayed.
As described above, the text data to be processed (printed text data) is text data in which the information printed as characters on the receipt is described in a state in which the order in printing and the line feed in printing are reflected. Therefore, information is arranged in the text displayed on the text display screen G43 according to the layout of the receipt. By referring to the text display screen G43, the user can easily and intuitively grasp the content of the information described in the text data to be processed and the layout of the corresponding receipt.

また、テキスト表示画面G43において、処理対象テキストデータに基づくテキストは、「単語」(後述)が、キーワード(後述)として選択可能な状態で表示される。
以下、「単語」について詳述する。なお、以下の説明において、改行を表す文字コードを「改行文字」と表現する。
Further, on the text display screen G43, the text based on the text data to be processed is displayed in a state in which "word" (described later) can be selected as a keyword (described later).
Hereinafter, "words" will be described in detail. In the following description, the character code representing a line feed is expressed as a "line feed character".

ここで、本実施形態では、文字の種類として、「区切文字」と、「特殊文字」と、「普通文字」とがある。
区切文字は、空白文字、及び、改行文字である。区切文字は、後述するように、単語と、単語との区切りの判別に利用される。
特殊文字は、記号のうち、予め定められた記号である。特殊文字は、エリア分割情報等、特殊な意味を持つ情報に使用する可能性がある記号とされる。本実施形態では、特殊文字は、文字「−」、文字「〜」、文字「=」、及び、文字「:」を含む。
普通文字は、文字のうち、区切文字、及び、特殊文字を除く文字である。
Here, in the present embodiment, there are "separator characters", "special characters", and "ordinary characters" as character types.
The delimiter character is a white space character and a line feed character. The delimiter is used to determine the delimiter between words, as will be described later.
The special character is a predetermined symbol among the symbols. Special characters are symbols that may be used for information with special meanings such as area division information. In the present embodiment, the special character includes the character "-", the character "~", the character "=", and the character ":".
Ordinary characters are characters excluding delimiters and special characters.

単語とは、(1)区切文字で区切られることなく連続する普通文字からなる文字列(1文字の場合もある。以下、1文字も、適宜、「文字列」と表現する。)、又は、(2)区切文字で区切られることなく連続する特殊文字からなる文字列である。
図14Aは、図6Aの印刷テキストデータT1に含まれる単語を、「行」を明示して示す表である。
図14Bは、図6Bの印刷テキストデータT2に含まれる単語を、「行」を明示して示す表である。
例えば、図6Bの印刷テキストデータT2の場合、レシート識別明示情報J41に対応する文字列「CheckNO.」、及び、レシート識別情報J42に対応する文字列「C0001」は、それぞれ、区切文字で区切られることなく連続する普通文字からなる文字列である。従って、これら文字列は、「単語」に該当する。
また例えば、図6Bの印刷テキストデータT2の場合、小計明示情報J71を構成する文字列「sub」、文字列「−」、文字列「total」は、それぞれ、単語に相当する。すなわち、文字列「sub」は、区切文字で区切られることなく連続する普通文字からなる文字列である。また、文字列「−」は、区切文字で区切られることなく連続する特殊文字からなる文字列である。また、文字列「total」は、区切文字で区切られることなく連続する普通文字からなる文字列である。従って、小計明示情報J71は、3つの単語が連続して構成された情報である。
また、エリア分割情報は、区切文字で区切られることなく連続する特殊文字からなる文字列である。従って、エリア分割情報は、「単語」に該当する。
A word is (1) a character string consisting of consecutive ordinary characters without being separated by a delimiter character (may be one character. Hereinafter, one character is also appropriately expressed as a "character string"), or. (2) A character string consisting of consecutive special characters without being separated by a delimiter character.
FIG. 14A is a table showing the words included in the print text data T1 of FIG. 6A with “lines” clearly indicated.
FIG. 14B is a table showing the words included in the print text data T2 of FIG. 6B with “lines” clearly indicated.
For example, in the case of the printed text data T2 of FIG. 6B, the character string "CheckNO." Corresponding to the receipt identification explicit information J41 and the character string "C0001" corresponding to the receipt identification information J42 are separated by delimiters, respectively. It is a character string consisting of continuous ordinary characters. Therefore, these character strings correspond to "words".
Further, for example, in the case of the print text data T2 of FIG. 6B, the character string “sub”, the character string “−”, and the character string “total” constituting the subtotal explicit information J71 correspond to words, respectively. That is, the character string "sub" is a character string composed of continuous ordinary characters without being separated by a delimiter character. Further, the character string "-" is a character string composed of consecutive special characters without being separated by a delimiter character. Further, the character string "total" is a character string composed of continuous ordinary characters without being separated by a delimiter character. Therefore, the subtotal explicit information J71 is information in which three words are continuously composed.
Further, the area division information is a character string composed of consecutive special characters without being separated by a delimiter character. Therefore, the area division information corresponds to a "word".

テキスト表示画面G43の表示に際し、制御サーバー制御部40は、処理対象テキストデータに含まれる情報を単語に分解する。次いで、制御サーバー制御部40は、分解した単語のそれぞれ、及び、空白文字のそれぞれを、キーワード(後述)の選択に際し、独立して選択可能な状態で、処理対象テキストデータに記述されたテキストを、テキスト表示画面G43に表示する。以下、詳述する。
ここで、後に明らかとなるように、本実施形態では、空白文字を、キーワードの一部として選択することができる。このことを踏まえ、以下では、空白文字は、単語に含まれるものとする。
When displaying the text display screen G43, the control server control unit 40 decomposes the information included in the text data to be processed into words. Next, the control server control unit 40 sets the text described in the text data to be processed in a state in which each of the decomposed words and each of the blank characters can be independently selected when selecting a keyword (described later). , Displayed on the text display screen G43. The details will be described below.
Here, as will become clear later, in this embodiment, a blank character can be selected as a part of the keyword. Based on this, in the following, whitespace characters are assumed to be included in the word.

図15A、及び、図15Bは、テキスト表示画面G43の一例を、ユーザーが動かすことが可能なカーソルCSと共に示す図である。
制御サーバー制御部40は、テキスト表示画面G43において、単語又は空白文字の領域にカーソルCSが重なると、その単語又は空白文字の領域の背景の背景色を、所定の色(本実施形態では、黄色。)に変換する(所定の装飾を施す。)。
図15Aは、単語「SUB」の領域にカーソルCSが重なった様子を示す。図15Aに示すように、単語「SUB」の領域にカーソルCSが重なった場合、当該領域の背景色が黄色へと変化する。
図15Bは、単語「SUB」と、単語「TOTAL」との間の、空白文字の領域にカーソルCSが重なった様子を示す。図15Bに示すように、空白文字の領域にカーソルCSが重なった場合、当該領域の背景色が黄色へと変化する。
なお、カーソルCSが重なった単語(選択の候補となった単語。)に施される装飾は、背景色を変化させる装飾に限らない。単語に対応する文字列を太字化してもよく、強調点や、アンダーラインを引いてもよい。
15A and 15B are diagrams showing an example of the text display screen G43 together with the cursor CS that can be moved by the user.
When the cursor CS overlaps the area of a word or a blank character on the text display screen G43, the control server control unit 40 sets the background color of the background of the area of the word or the blank character to a predetermined color (yellow in the present embodiment). ) (Apply the prescribed decoration).
FIG. 15A shows how the cursor CS overlaps the area of the word “SUB”. As shown in FIG. 15A, when the cursor CS overlaps the area of the word "SUB", the background color of the area changes to yellow.
FIG. 15B shows how the cursor CS overlaps the whitespace area between the word “SUB” and the word “TOTAL”. As shown in FIG. 15B, when the cursor CS overlaps the blank character area, the background color of the area changes to yellow.
The decoration applied to the word on which the cursor CS overlaps (the word that is a candidate for selection) is not limited to the decoration that changes the background color. The character string corresponding to the word may be bolded, emphasized, or underlined.

ここで、カーソルが重なった単語、又は、空白文字は、後述するキーワード(又は、後述するように、キーワードの一部。)の選択にあたり、キーワードとして選択する候補となった状態の単語、又は、空白文字である。ユーザーは、所望の単語、又は、空白文字にカーソルを重ねて、所望の単語、又は、空白文字の背景色が黄色となったことを確認することにより、単語又は空白文字がキーワードとして選択する候補となったことを確認した上で、選択を指示する所定の操作(例えば、マウスに対するダブルクリック。)を行うことで、所望の単語、又は、空白文字を確実に、キーワードとして選択できる。 Here, the word on which the cursor overlaps or the blank character is a word or a word in a state where it is a candidate to be selected as a keyword when selecting a keyword (or a part of the keyword as described later) described later. It is a white space character. The user can hover over the desired word or whitespace character and confirm that the background color of the desired word or whitespace character is yellow so that the word or whitespace character can be selected as a keyword. By performing a predetermined operation (for example, double-clicking on the mouse) to instruct selection after confirming that, a desired word or a blank character can be surely selected as a keyword.

<第2領域A42>
次いで、第2領域A42について説明する。
以下の説明では、第1領域A41の項目選択画面G41においてユーザーに選択されたレシート項目を、「選択レシート項目」という。
第4ユーザーインターフェースUI4の第2領域A42には、選択レシート項目に対応するパーサーPSを生成するための情報を入力し、又は、当該情報を選択する画面が表示される。
ユーザーは、第2領域A42に表示された画面に対して、情報を選択し、又は、情報を入力することによって、選択レシート項目に対応するパーサーPSを生成できる。
以下、第15パーサーPS15(選択レシート項目が、合計金額情報項目。)、第5パーサーPS5(選択レシート項目が、取消有無情報項目。)、第9パーサーPS9(選択レシート項目が、商品情報項目。)の場合を例にして、第2領域A42に表示される画面、及び、制御サーバー15の処理について説明する。
<Second area A42>
Next, the second region A42 will be described.
In the following description, the receipt item selected by the user on the item selection screen G41 of the first area A41 is referred to as a "selected receipt item".
In the second area A42 of the fourth user interface UI4, a screen for inputting information for generating a parser PS corresponding to the selected receipt item or selecting the information is displayed.
The user can generate a parser PS corresponding to the selected receipt item by selecting or inputting information on the screen displayed in the second area A42.
Hereinafter, the 15th parser PS15 (the selected receipt item is the total amount information item), the 5th parser PS5 (the selected receipt item is the cancellation presence / absence information item), and the 9th parser PS9 (the selected receipt item is the product information item). ) As an example, the screen displayed in the second area A42 and the processing of the control server 15 will be described.

<第15パーサーPS15>
第15パーサーPS15を生成する場合、ユーザーは、項目選択画面G41において、合計金額情報項目(プロパティー「total」。)を選択する。
図16は、項目選択画面G41で合計金額情報項目が選択された場合の第4ユーザーインターフェースUI4を示す図である。
図16に示すように、項目選択画面G41で合計金額情報項目が選択された場合、第2領域A42には、取得項目値表示画面G421が表示される。取得項目値表示画面G421には、パーサー管理データベース421において選択印刷装置のシリアル番号J11と対応付けられた第15パーサーPS15で、処理対象テキストデータを分析したときの分析結果(分析データにおいて合計金額情報項目に対応付けて記述される値。)が表示される。図16の例では、項目選択画面G41には、null値が表示され、これにより、現時点では、第15パーサーPS15によって、合計金額情報J92の取得ができない状態であることが明示される。
取得項目値表示画面G421の表示に際し、制御サーバー制御部40は、パーサー管理データベース421を参照し、選択印刷装置に対応し、選択レシート項目に対応するパーサーPSを取得する。制御サーバー制御部40は、取得したパーサーPSにより、処理対象テキストデータを分析し、分析結果に基づいて、取得項目値表示画面G421を表示する。
<15th Parser PS15>
When generating the 15th parser PS15, the user selects the total amount information item (property "total") on the item selection screen G41.
FIG. 16 is a diagram showing a fourth user interface UI 4 when a total amount information item is selected on the item selection screen G41.
As shown in FIG. 16, when the total amount information item is selected on the item selection screen G41, the acquisition item value display screen G421 is displayed in the second area A42. The acquisition item value display screen G421 shows the analysis result (total amount information in the analysis data) when the text data to be processed is analyzed by the 15th parser PS15 associated with the serial number J11 of the selective printing device in the parser management database 421. The value described in association with the item.) Is displayed. In the example of FIG. 16, the null value is displayed on the item selection screen G41, which clearly indicates that the 15th parser PS15 cannot acquire the total amount information J92 at this time.
When displaying the acquired item value display screen G421, the control server control unit 40 refers to the parser management database 421, corresponds to the selective printing device, and acquires the parser PS corresponding to the selected receipt item. The control server control unit 40 analyzes the text data to be processed by the acquired parser PS, and displays the acquired item value display screen G421 based on the analysis result.

本実施形態では、選択レシート項目にかかわらず、制御サーバー制御部40は、第2領域A42に、取得項目値表示画面G421を表示し、パーサー管理データベース421に登録されたパーサーPSのうち、選択印刷装置に対応し、選択レシート項目に対応するパーサーPSの分析結果が表示される。これにより、以下の効果を奏する。
すなわち、ユーザーは、取得項目値表示画面G421を参照することにより、選択レシート項目に対応するパーサーPSの分析結果を簡易、かつ、直感的に認識できる。
さらに、第3領域A43のテキスト表示画面G43と、第2領域A42の取得項目値表示画面G421とが、同一のユーザーインターフェースで同時に表示される。このため、ユーザーは、テキスト表示画面G43と、取得項目値表示画面G421とを比較しながら参照することができる。このため、ユーザーは、テキスト表示画面G43と、取得項目値表示画面G421とを比較することにより、選択レシート項目に対応するパーサーPSの分析結果の妥当性を判別できる。例えば、合計金額情報項目(プロパティー「total」)について、ユーザーは、取得項目値表示画面G421に表示された値と、テキスト表示画面G43に表示された合計金額情報J92の値とを比較し、対応するパーサーPSが、正しい合計金額情報J92を取得できたか否かを判別できる。また、上述したように、販売方法情報J24は、レシートのフォーマットによって、レシートに印刷される場合もあれば、レシートに印刷されない場合もある。そして、販売方法情報J24が印刷されないフォーマットの場合、対応するパーサーPSの分析結果は、null値が正しい。このように、対応するパーサーPSの分析結果がnull値の場合であっても、null値であることが正しい場合があり、このような場合に、ユーザーは、テキスト表示画面G43と、取得項目値表示画面G421とを比較することにより、分析結果がnull値であることの妥当性を判別できる。
In the present embodiment, regardless of the selected receipt item, the control server control unit 40 displays the acquired item value display screen G421 in the second area A42, and selects and prints the parser PS registered in the parser management database 421. The analysis result of the parser PS corresponding to the device and the selected receipt item is displayed. This has the following effects.
That is, the user can easily and intuitively recognize the analysis result of the parser PS corresponding to the selected receipt item by referring to the acquisition item value display screen G421.
Further, the text display screen G43 of the third area A43 and the acquisition item value display screen G421 of the second area A42 are simultaneously displayed on the same user interface. Therefore, the user can refer to the text display screen G43 and the acquired item value display screen G421 while comparing them. Therefore, the user can determine the validity of the analysis result of the parser PS corresponding to the selected receipt item by comparing the text display screen G43 and the acquisition item value display screen G421. For example, regarding the total amount information item (property "total"), the user compares the value displayed on the acquisition item value display screen G421 with the value of the total amount information J92 displayed on the text display screen G43, and responds. It is possible to determine whether or not the parser PS can acquire the correct total amount information J92. Further, as described above, the sales method information J24 may or may not be printed on the receipt depending on the format of the receipt. Then, in the case of the format in which the sales method information J24 is not printed, the null value is correct in the analysis result of the corresponding parser PS. In this way, even if the analysis result of the corresponding parser PS is a null value, it may be correct that it is a null value. In such a case, the user can use the text display screen G43 and the acquired item value. By comparing with the display screen G421, it is possible to determine the validity that the analysis result is a null value.

図16に示すように、第2領域A42の取得項目値表示画面G421には、選択印刷装置に対応し、選択レシート項目に対応するパーサーPSの生成のための処理の開始を指示するパーサー生成開始ボタンQBが表示される。
パーサー生成開始ボタンQBが操作されたことを検出した場合、制御サーバー制御部40は、第2領域A42に、取得項目値表示画面G421が表示された状態を維持して、フレーム選択画面G422を表示する。
As shown in FIG. 16, the acquisition item value display screen G421 of the second area A42 corresponds to the selective printing device and starts parser generation instructing the start of processing for generating the parser PS corresponding to the selected receipt item. Button QB is displayed.
When it is detected that the parser generation start button QB has been operated, the control server control unit 40 maintains the state in which the acquisition item value display screen G421 is displayed in the second area A42 and displays the frame selection screen G422. To do.

図17は、第2領域A42にフレーム選択画面G422が表示された第4ユーザーインターフェースUI4を示す図である。
フレーム選択画面G422は、選択レシート項目に対応する項目値について、印刷テキストデータにおける位置を特定するときのルールの種類を選択する画面である。
上述したように、レシートには、レシートのレイアウトに従って情報が印刷される。従って、印刷テキストデータには、1の項目の項目値に対応する情報が、レシートのレイアウトを反映した当該1の項目に対応するルールに従って記述される。このため、1の項目の項目値の印刷テキストデータにおける位置は、当該1の項目に対応するルールに基づいて特定することができる。
以下、印刷テキストデータにおける項目値の位置を特定するときに使用するルールを「検索ルール」という。
そして、検索ルールは、項目値の位置を特定する方法によって、複数の種類が存在する。例えば、1の項目の項目値が、所定のキーワードと同一行の右方に位置する場合は、検索ルールは、当該所定のキーワードの右方に項目値が位置することを指定する種類のルールである。一方、1の項目の項目値が、所定のキーワードと同一行の左方に位置する場合は、検索ルールは、当該所定のキーワードの左方に項目値が位置することを指定する種類のルールである。
本実施形態では、検索ルールの種類を「フレーム」という概念を使って管理する。従って、フレーム選択画面G422には、選択レシート項目に対応する1又は複数の検索ルールの種類に応じて、1又は複数のフレームが選択可能に表示される。
FIG. 17 is a diagram showing a fourth user interface UI 4 in which the frame selection screen G422 is displayed in the second area A42.
The frame selection screen G422 is a screen for selecting the type of rule for specifying the position in the print text data for the item value corresponding to the selected receipt item.
As described above, information is printed on the receipt according to the layout of the receipt. Therefore, in the print text data, the information corresponding to the item value of one item is described according to the rule corresponding to the one item reflecting the layout of the receipt. Therefore, the position of the item value of one item in the printed text data can be specified based on the rule corresponding to the one item.
Hereinafter, the rule used when specifying the position of the item value in the printed text data is referred to as a "search rule".
Then, there are a plurality of types of search rules depending on the method of specifying the position of the item value. For example, if the item value of one item is located to the right of the same line as the predetermined keyword, the search rule is a type of rule that specifies that the item value is located to the right of the predetermined keyword. is there. On the other hand, if the item value of one item is located to the left of the same line as the predetermined keyword, the search rule is a type of rule that specifies that the item value is located to the left of the predetermined keyword. is there.
In this embodiment, the types of search rules are managed using the concept of "frame". Therefore, on the frame selection screen G422, one or a plurality of frames are selectably displayed according to the type of one or a plurality of search rules corresponding to the selection receipt item.

ここで、レシートに係るレイアウトには、合計金額情報J92と共に合計金額明示情報J91が印刷され、かつ、合計金額明示情報J91と合計金額情報J92とは所定の位置関係にある、という特性がある。これを踏まえ、合計金額情報項目(プロパティー「total」)については、フレームとして、第1合計金額情報フレーム、及び、第2合計金額情報フレームが、選択可能である。
第1合計金額情報フレームは、合計金額情報J92が、キーワードとしての合計金額明示情報J91と同一行において、合計金額明示情報J91の1つ右に位置するか、又は、当該同一行の末尾に位置することを指定する検索ルールに対応するフレームである。
「1の項目値が、キーワードと同一行において、当該キーワードの1つ右に位置する」とは、当該1の項目値が、当該キーワードに対して、1又は複数の空白文字を介して右方に位置することを意味する。また、「1の項目値が、キーワードと同一行の末尾に位置する」とは、当該1の項目値が、当該同一行の右端部に位置し、当該1の項目値の次の文字が改行文字であることを意味する。
Here, the layout related to the receipt has a characteristic that the total amount explicit information J91 is printed together with the total amount information J92, and the total amount explicit information J91 and the total amount information J92 have a predetermined positional relationship. Based on this, for the total amount information item (property "total"), the first total amount information frame and the second total amount information frame can be selected as frames.
In the first total amount information frame, the total amount information J92 is located on the same line as the total amount explicit information J91 as a keyword, one to the right of the total amount explicit information J91, or is located at the end of the same line. It is a frame corresponding to the search rule that specifies to do.
"The item value of 1 is located one line to the right of the keyword on the same line as the keyword" means that the item value of 1 is to the right of the keyword via one or more whitespace characters. Means to be located in. In addition, "the item value of 1 is located at the end of the same line as the keyword" means that the item value of 1 is located at the right end of the same line, and the character next to the item value of 1 is a line break. It means that it is a character.

第2合計金額情報フレームは、上述した第1合計金額情報フレームに係る検索ルール以外の検索ルールであって、キーワードとしての合計金額明示情報J91と合計金額情報J92との位置関係により、合計金額情報J92の位置を指定する検索ルールに対応するフレームである。 The second total amount information frame is a search rule other than the search rule related to the first total amount information frame described above, and the total amount information is based on the positional relationship between the total amount explicit information J91 as a keyword and the total amount information J92. This is a frame corresponding to a search rule that specifies the position of J92.

図17のフレーム選択画面G422には、第1合計金額情報フレームを説明するフレーム情報JH17a、及び、第2合計金額情報フレームを説明するフレーム情報JH17bが一覧表示される。フレーム情報JH17a、及び、フレーム情報JH17bに係る情報のそれぞれには、ラジオボタンが対応付けて表示される。ユーザーは、ラジオボタンにより、第1合計金額情報フレームと第2合計金額情報フレームとのいずれかを選択できる。ユーザーは、フレーム選択画面G422と同時に表示されるテキスト表示画面G43を参照することにより、第1合計金額情報フレームと、第2合計金額情報フレームのうち、適用するフレームとして適切なフレームを認識でき、当該認識に基づいて、適切なフレームを選択できる。
図17に示すように、フレーム選択画面G422には、フレームの選択を確定するフレーム確定ボタンXBが表示される。制御サーバー制御部40は、フレーム確定ボタンXBが操作されたことを検出すると、フレーム選択画面G422を、ステップ対応画面G423へ遷移する。
On the frame selection screen G422 of FIG. 17, frame information JH17a explaining the first total amount information frame and frame information JH17b explaining the second total amount information frame are displayed in a list. Radio buttons are displayed in association with each of the frame information JH17a and the information related to the frame information JH17b. The user can select either the first total amount information frame or the second total amount information frame by using the radio button. By referring to the text display screen G43 displayed at the same time as the frame selection screen G422, the user can recognize the first total amount information frame and the second total amount information frame, which are appropriate frames to be applied. Based on this recognition, an appropriate frame can be selected.
As shown in FIG. 17, on the frame selection screen G422, a frame confirmation button XB for confirming the frame selection is displayed. When the control server control unit 40 detects that the frame confirmation button XB has been operated, the control server control unit 40 transitions the frame selection screen G422 to the step correspondence screen G423.

以下の説明では、ユーザーが選択したフレームを「選択フレーム」という。 In the following description, the frame selected by the user is referred to as "selected frame".

フレームごとに、1又は複数のステップが事前に用意される。ステップとは、フレームに対応する検索ルールに関する情報を選択し、又は、当該情報を入力することによって、検索ルールを指定する手順のことである。そして、フレームに対応する1又は複数のステップに対応して、1又は複数のステップ対応画面G423が用意される。なお、印刷テキストデータにおける項目値の位置は、複数の検索ルールに基づいて、特定可能な場合がある。このような場合、1つのフレームについて、複数のステップ対応画面G423が用意される。
後に明らかとなる通り、ユーザーは、フレームを選択した、1又は複数のステップ対応画面G423に情報を入力するという作業を行うことにより、選択レシート項目に対応する項目値を検索するために必要な1又は複数の検索ルールを指定できる。
以下、選択フレームが第1合計金額情報フレームと、選択フレームが第2合計金額情報フレームとの場合について、順次、説明する。
One or more steps are prepared in advance for each frame. A step is a procedure for designating a search rule by selecting information about the search rule corresponding to the frame or by inputting the information. Then, one or a plurality of step correspondence screens G423 are prepared corresponding to one or a plurality of steps corresponding to the frame. The position of the item value in the printed text data may be identifiable based on a plurality of search rules. In such a case, a plurality of step-compatible screens G423 are prepared for one frame.
As will become clear later, the user needs to search for the item value corresponding to the selected receipt item by performing the work of selecting the frame and inputting the information on the one or more step correspondence screen G423. Alternatively, multiple search rules can be specified.
Hereinafter, the case where the selection frame is the first total amount information frame and the selection frame is the second total amount information frame will be sequentially described.

<第1合計金額情報フレーム>
図18は、図17のフレーム選択画面G422で第1合計金額情報フレームが選択された場合に、フレーム選択画面G422に代えて第2領域A42に表示されるステップ対応画面G423を示す図である。
<1st total amount information frame>
FIG. 18 is a diagram showing a step correspondence screen G423 displayed in the second area A42 instead of the frame selection screen G422 when the first total amount information frame is selected on the frame selection screen G422 of FIG.

図18のステップ対応画面G423には、以下の2つの情報が表示される。(1)合計金額情報J92(項目値)が、印刷テキストデータで最初に(最も上方に)出現するキーワードと同一行において、キーワードの1つ右に位置することを指定する検索ルールを示すルール情報JH18a。(2)合計金額情報J92(項目値)が、印刷テキストデータで最初に(最も上方に)出現するキーワードと同一行の末尾に位置することを指定する検索ルールを示すルール情報JH18b。また、2つのルール情報には、ラジオボタンが対応付けて表示され、ラジオボタンにより、いずれかのルール情報を選択できる。ユーザーは、いずれかのルール情報を選択することにより、検索ルールを指定する。
ユーザーは、ステップ対応画面G423と同時に表示されるテキスト表示画面G43を参照することにより、合計金額情報J92と、キーワード(合計金額明示情報J91)との位置関係を認識し、ルール情報JH18aに対応する検索ルールと、ルール情報JH18bに対応する検索ルールのうち、適切な情報を選択する。
The following two pieces of information are displayed on the step correspondence screen G423 of FIG. (1) Rule information indicating a search rule that specifies that the total amount information J92 (item value) is located one to the right of the keyword in the same line as the keyword that first appears (uppermost) in the printed text data. JH18a. (2) Rule information JH18b indicating a search rule that specifies that the total amount information J92 (item value) is located at the end of the same line as the keyword that first appears (uppermost) in the printed text data. Further, a radio button is displayed in association with the two rule information, and one of the rule information can be selected by the radio button. The user specifies a search rule by selecting one of the rule information.
The user recognizes the positional relationship between the total amount information J92 and the keyword (total amount explicit information J91) by referring to the text display screen G43 displayed at the same time as the step correspondence screen G423, and corresponds to the rule information JH18a. Select appropriate information from the search rule and the search rule corresponding to the rule information JH18b.

ルール情報JH18a、及び、ルール情報JH18bでは、キーワードが、文字列「‘Text1’」によって表現される。そして、領域A18bの下方には、キーワードとして選択された単語が表示される領域A18aが形成される。後に明らかとなるとおり、キーワードは、複数の単語(空白文字を含む。)の組み合わせとして構成される場合がある。領域A18aには、文字列「‘Text1’」が表示され、当該領域にキーワードとして選択された単語が表示されることが明示される。 In the rule information JH18a and the rule information JH18b, the keyword is expressed by the character string "'Text1'". Then, below the region A18b, a region A18a in which the word selected as a keyword is displayed is formed. As will become clear later, a keyword may be composed of a combination of multiple words (including whitespace characters). The character string "'Text1'" is displayed in the area A18a, and it is clearly shown that the word selected as the keyword is displayed in the area.

ユーザーは、第3領域A43のテキスト表示画面G43を用いて、以下の方法でキーワードとする1又は複数の単語を選択できる。
以下、図18に示す第4ユーザーインターフェースUI4が表示されている状態で、ユーザーが、キーワードとして、単語「TOTAL」と、単語「:」との組み合わせを選択する場合を例にして、ユーザーの操作、及び、制御サーバー制御部40の処理について説明する。なお、キーワード「TOTAL:」は、合計金額明示情報J91に相当する。
以下の説明において、複数の単語の組み合わせを、適宜、「単語群」という。
The user can select one or more words as keywords by the following method using the text display screen G43 of the third area A43.
Hereinafter, in the state where the fourth user interface UI4 shown in FIG. 18 is displayed, the user operates by taking as an example a case where the user selects a combination of the word "TOTAL" and the word ":" as a keyword. , And the processing of the control server control unit 40 will be described. The keyword "TOTAL:" corresponds to the total amount explicit information J91.
In the following description, a combination of a plurality of words is appropriately referred to as a "word group".

ユーザーは、テキスト表示画面G43において、キーワードに含める単語(上述したように、空白文字を含む。)にカーソルを重ねる。上述したように、カーソルが重なった単語の背景色は、黄色になり、選択の候補となったことが明示される。
図19は、単語「TOTAL」が選択の候補となった様子を示す。
On the text display screen G43, the user puts the cursor on a word to be included in the keyword (including a blank character as described above). As mentioned above, the background color of the word on which the cursor is placed becomes yellow, clearly indicating that it is a candidate for selection.
FIG. 19 shows how the word “TOTAL” is a candidate for selection.

ユーザーは、単語にカーソルを重ねた状態で所定の操作(例えば、ダブルクリック。)を行い、単語の選択を確定する。制御サーバー制御部40は、ユーザーにより所定の操作が行われ、単語の選択が確定したことを検出すると、選択された単語を、領域A18aに表示する。ユーザーは、領域A18aを参照することにより、選択した単語を確認できる。
図20は、単語「TOTAL」の選択が確定し、領域A18aに、単語「TOTAL」が表示された様子を示す。
The user performs a predetermined operation (for example, double-clicking) while hovering the cursor over the word to confirm the word selection. When the control server control unit 40 detects that a predetermined operation is performed by the user and the word selection is confirmed, the selected word is displayed in the area A18a. The user can confirm the selected word by referring to the area A18a.
FIG. 20 shows a state in which the selection of the word “TOTAL” is confirmed and the word “TOTAL” is displayed in the area A18a.

単語「TOTAL」の選択が確定した後、制御サーバー制御部40は、さらに、以下の処理を実行する。すなわち、制御サーバー制御部40は、直近で選択が確定した単語(本例では、単語「TOTAL」。)と同一行において、当該単語に隣接し、当該単語の右方に位置する単語のみを選択可能な状態とし、選択可能な単語にアンダーラインを引く。図18の例では、制御サーバー制御部40は、単語「TOTAL」に隣接する単語「:」のみを選択可能な状態とし、単語「:」にアンダーラインを引く。
図21は、単語「:」が選択可能な状態とされ、単語「:」にアンダーラインが引かれた様子を示す。
ユーザーは、単語に引かれたアンダーラインを参照することにより、選択可能な単語を、簡易かつ直感的に認識することができる。
ユーザーは、単語「:」が選択可能であることを認識したうえで、単語「TOTAL」と同様の手順で、単語「:」を選択する。
図22は、単語「TOTAL」に続いて、単語「:」が選択され、領域A18cに、キーワードとして、単語「TOTAL」、及び、単語「:」が連続して表示された様子を示す。
After the selection of the word "TOTAL" is confirmed, the control server control unit 40 further executes the following processing. That is, the control server control unit 40 selects only the word adjacent to the word and located to the right of the word on the same line as the word whose selection has been confirmed most recently (in this example, the word "TOTAL"). Make it possible and underline the selectable words. In the example of FIG. 18, the control server control unit 40 makes only the word “:” adjacent to the word “TOTAL” selectable, and underlines the word “:”.
FIG. 21 shows a state in which the word “:” is selectable and the word “:” is underlined.
The user can easily and intuitively recognize the selectable word by referring to the underlined word.
The user recognizes that the word ":" can be selected, and then selects the word ":" in the same procedure as the word "TOTAL".
FIG. 22 shows a state in which the word “:” is selected following the word “TOTAL”, and the word “TOTAL” and the word “:” are continuously displayed in the area A18c as keywords.

このように、制御サーバー制御部40は、テキスト表示画面G43に、印刷テキストデータに記述されたテキストを、単語(空白文字を含む。)を選択可能な状態で表示する。そして、制御サーバー制御部40は、ユーザーにより選択された単語、又は、単語群をキーワードとして設定する。これにより、ユーザーがキーボードで文字を入力することによってキーワードを設定する場合に生じ得る入力ミスを確実に防止し、ユーザーに的確な単語、又は、単語群をキーワードとして選択させることができる。 In this way, the control server control unit 40 displays the text described in the print text data on the text display screen G43 in a state in which words (including blank characters) can be selected. Then, the control server control unit 40 sets a word or a word group selected by the user as a keyword. As a result, it is possible to surely prevent typos that may occur when the user sets a keyword by inputting characters with the keyboard, and to allow the user to select an accurate word or word group as the keyword.

また、制御サーバー制御部40は、キーワードの選択に際し、1の単語の選択が確定した後、当該1の単語に隣接し、当該1の単語の右方に位置する単語のみを選択可能な状態とする。これにより以下の効果を奏する。すなわち、レシートには、キーワードとして用いることが可能な単語群は、1行において連続する1又は複数の単語の組み合わせからなる、という特性がある。これを踏まえ、制御サーバー制御部40が上述した処理を実行することにより、ユーザーが、キーワードとして単語群を選択する場合、1行において連続する単語を、順次、選択させることができる。特に、図6Bの印刷テキストデータT2の税明示情報J81は、文字列「sales△tax」であり、単語「sales」と、空白文字と、単語「tax」の組み合わせにより構成される。そして、税明示情報J81をキーワードとして選択する場合、空白文字もキーワードに含める必要があるが、空白文字については、ユーザーが、キーワードに含める必要があることを認識していない場合もあると想定される。このように、空白文字を含む単語群をキーワードとして選択する場合であっても、制御サーバー制御部40が上述した処理を行うことにより、確実に、ユーザーに、キーワードの一部として空白文字を選択させることができる。 Further, when selecting a keyword, the control server control unit 40 can select only a word adjacent to the one word and located to the right of the one word after the selection of one word is confirmed. To do. This has the following effects. That is, the receipt has a characteristic that the word group that can be used as a keyword consists of a combination of one or a plurality of consecutive words in one line. Based on this, when the control server control unit 40 executes the above-described processing, when the user selects a word group as a keyword, it is possible to sequentially select consecutive words in one line. In particular, the tax explicit information J81 of the printed text data T2 of FIG. 6B is a character string "sales Δtax", and is composed of a combination of the word "sales", a blank character, and the word "tax". When selecting the tax explicit information J81 as a keyword, it is necessary to include a white space character in the keyword, but it is assumed that the user may not recognize that the white space character needs to be included in the keyword. To. In this way, even when a word group including a blank character is selected as a keyword, the control server control unit 40 performs the above-described processing to ensure that the user selects the blank character as a part of the keyword. Can be made to.

図18〜図22に示すステップ対応画面G423は、ステップ確定ボタンSBと、コンファームボタンCBとを有する。
ステップ確定ボタンSBは、そのステップ確定ボタンSBが表示されたステップ対応画面G423への入力を確定する際の操作されるボタンである。
The step correspondence screen G423 shown in FIGS. 18 to 22 has a step confirmation button SB and a confirm button CB.
The step confirmation button SB is a button to be operated when confirming the input to the step correspondence screen G423 on which the step confirmation button SB is displayed.

コンファームボタンCBは、選択フレームに対応する1又は複数のステップ対応画面G423のうち、最後のステップ対応画面G423に表示される。コンファームボタンCBは、最後のステップ対応画面G423において、以下の場合に選択可能となる。すなわち、最後のステップ対応画面G423について必要な情報が選択され、入力された場合に、コンファームボタンCBは選択可能となる。なお、最後のステップ対応画面G423でコンファームボタンCBが操作されると、選択フレームに対応する全てのステップにおいて、検索ルールの指定が完了する。
コンファームボタンCBは、選択フレームに対応する全てのステップ対応画面G423(選択フレームに対応する全てのステップ)で指定された検索ルールに基づいて、印刷テキストデータから項目値を取得する処理を実行するパーサーPSの生成を指示するボタンである。
The confirm button CB is displayed on the last step correspondence screen G423 of the one or more step correspondence screens G423 corresponding to the selected frame. The confirm button CB can be selected in the following cases on the final step correspondence screen G423. That is, when the necessary information about the last step correspondence screen G423 is selected and input, the confirm button CB can be selected. When the confirm button CB is operated on the final step correspondence screen G423, the specification of the search rule is completed in all the steps corresponding to the selected frame.
The confirm button CB executes a process of acquiring an item value from the print text data based on the search rule specified on the screen G423 (all steps corresponding to the selected frame) corresponding to all steps corresponding to the selected frame. It is a button instructing the generation of the parser PS.

制御サーバー制御部40は、コンファームボタンCBが操作されたことを検出すると、以下の処理を実行する。
図23のフローチャートFDは、コンファームボタンCBが操作されたことを検出したときの制御サーバー15の動作を示すフローチャートである。
図23のフローチャートFDに示すように、制御サーバー制御部40は、選択フレームに対応する全てのステップ対応画面G423で指定された検索ルールを取得する(ステップSD1)。
次いで、制御サーバー制御部40は、取得した検索ルールのそれぞれに基づいて選択レシート項目の項目値を取得する処理を実行するパーサーPSを生成する(ステップSD2)。ここで、制御サーバー15には、1又は複数の検索ルールを入力とし、入力された1又は複数の検索ルールに従って項目値を検索し、取得する処理を実行する機能が実装されたパーサーPSを、入力された1又は複数の検索ルールに基づいて生成し、生成したパーサーPSを出力するエンジンがインストールされる。ステップSD2において、制御サーバー制御部40は、当該エンジンの機能により、パーサーPSを生成する。
例えば、ステップSD1で取得した検索ルールが、ルール情報JH18aに対応する検索ルールであったとする。この場合、ステップSD2において、制御サーバー制御部40は、印刷テキストデータで最初に(最も上方に)出現するキーワード(本例では、キーワード「TOTAL:」。)と同一行において、キーワードの1つ右に位置する情報を、項目値として取得する機能が実装されたパーサーPSを生成する。
When the control server control unit 40 detects that the confirm button CB has been operated, the control server control unit 40 executes the following processing.
The flowchart FD of FIG. 23 is a flowchart showing the operation of the control server 15 when it is detected that the confirm button CB has been operated.
As shown in the flowchart FD of FIG. 23, the control server control unit 40 acquires the search rule specified on all the step correspondence screens G423 corresponding to the selected frame (step SD1).
Next, the control server control unit 40 generates a parser PS that executes a process of acquiring the item value of the selected receipt item based on each of the acquired search rules (step SD2). Here, the control server 15 is provided with a parser PS equipped with a function of inputting one or a plurality of search rules, searching for an item value according to the input one or a plurality of search rules, and executing a process of acquiring the value. An engine that generates based on one or more input search rules and outputs the generated parser PS is installed. In step SD2, the control server control unit 40 generates a parser PS by the function of the engine.
For example, it is assumed that the search rule acquired in step SD1 is a search rule corresponding to the rule information JH18a. In this case, in step SD2, the control server control unit 40 is one line to the right of the keyword (in this example, the keyword "TOTAL:") that appears first (uppermost) in the printed text data. Generates a parser PS equipped with a function to acquire the information located in as an item value.

特に、パーサーPSは、項目値を、印刷テキストデータにおけるキーワードと項目値との位置関係に基づいて検索する場合、以下の処理を行う。すなわち、まず、パーサーPSは、文字列検索により、印刷テキストデータにおけるキーワードの位置を特定する。なお、後述するように、キーワードに対応する文字列が、複数、印刷テキストデータに記述された状態の場合は、処理のルールに従って、項目値の検索に使用すべきキーワードを特定する。次いで、パーサーPSは、位置を特定したキーワードと、キーワード及び項目値の位置関係とに基づいて、項目値の位置を特定する(項目値を検索する。)。
このように、パーサーPSは、文字列検索を利用して印刷テキストデータにおけるキーワードの位置を特定する。このため、キーワードは、印刷テキストデータに記述される文字列と正確に同一であることが求められる。本実施形態では、上述したように、ユーザーは、簡易な作業で、印刷テキストデータに記述される文字列と正確に同一なキーワードを指定できる。
In particular, the parser PS performs the following processing when searching for an item value based on the positional relationship between the keyword and the item value in the printed text data. That is, first, the parser PS identifies the position of the keyword in the printed text data by the character string search. As will be described later, when a plurality of character strings corresponding to the keywords are described in the print text data, the keywords to be used for searching the item values are specified according to the processing rules. Next, the parser PS specifies the position of the item value (searches for the item value) based on the keyword whose position is specified and the positional relationship between the keyword and the item value.
In this way, the parser PS uses the character string search to specify the position of the keyword in the printed text data. Therefore, the keyword is required to be exactly the same as the character string described in the printed text data. In the present embodiment, as described above, the user can specify a keyword that is exactly the same as the character string described in the print text data by a simple operation.

次いで、制御サーバー制御部40は、第2領域A42に、分析結果確認画面G424を表示する(ステップSD3)。
次いで、制御サーバー制御部40は、新たに生成したパーサーPSの機能により、処理対象テキストデータを分析し、分析結果を第2領域A42の分析結果確認画面G424に表示する(ステップSD4)。
Next, the control server control unit 40 displays the analysis result confirmation screen G424 in the second area A42 (step SD3).
Next, the control server control unit 40 analyzes the text data to be processed by the function of the newly generated parser PS, and displays the analysis result on the analysis result confirmation screen G424 of the second area A42 (step SD4).

図24は、第2領域A42に分析結果確認画面G424が表示された状態の第4ユーザーインターフェースUI4を示す。
ユーザーは、分析結果確認画面G424の内容を確認することにより、新たに生成されたパーサーPSの分析結果の妥当性を確認できる。すなわち、ユーザーは、第3領域A43のテキスト表示画面G43を参照し、パーサーPSが取得すべき正しい項目値を認識し、当該認識に基づいて新たに生成されたパーサーPSの分析結果の妥当性を確認できる。ユーザーは、分析結果確認画面G424に正しい項目値が表示されている場合は、パーサーPSの分析結果が妥当であると判別し、正しい項目値以外の値が表示されている場合は、パーサーPSの分析結果が妥当でないと判別する。
図24に示すように、分析結果確認画面G424は、新たに生成されたパーサーPSを適用することを指示する上書ボタンUBと、新たに生成されたパーサーPSの適用をキャンセルするキャンセルボタンCCとを有する。ユーザーは、分析結果確認画面G424の内容を確認し、新たに生成されたパーサーPSの分析結果が妥当かどうかを判別し、妥当であれば上書ボタンUBを操作し、妥当でない場合はキャンセルボタンCCを操作する。
FIG. 24 shows the fourth user interface UI 4 in a state where the analysis result confirmation screen G424 is displayed in the second area A42.
The user can confirm the validity of the analysis result of the newly generated parser PS by confirming the content of the analysis result confirmation screen G424. That is, the user refers to the text display screen G43 of the third area A43, recognizes the correct item value to be acquired by the parser PS, and validates the analysis result of the parser PS newly generated based on the recognition. You can check it. The user determines that the analysis result of the parser PS is valid when the correct item value is displayed on the analysis result confirmation screen G424, and when the value other than the correct item value is displayed, the parser PS Determine that the analysis result is not valid.
As shown in FIG. 24, the analysis result confirmation screen G424 includes an overwriting button UB instructing the application of the newly generated parser PS and a cancel button CC for canceling the application of the newly generated parser PS. Has. The user confirms the contents of the analysis result confirmation screen G424, determines whether the analysis result of the newly generated parser PS is valid, operates the overwrite button UB if it is valid, and cancels the button if it is not valid. Operate CC.

図23のフローチャートFDに示すように、分析結果確認画面G424に、新たに生成したパーサーPSの分析結果を表示した後、制御サーバー制御部40は、キャンセルボタンCCが操作されたか否かを監視すると共に(ステップSD5)、上書ボタンUBが操作されたか否かを監視する(ステップSD6)。
上書ボタンUBが操作されたことを検出した場合(ステップSD6:YES)、制御サーバー制御部40は、以下の処理を実行する(ステップSD7)。すなわち、ステップSD7において、制御サーバー制御部40は、パーサー管理データベース421を参照し、当該データベースにおいて、選択印刷装置のシリアル番号J11と対応付けられた選択レシート項目に対応するパーサーPSを、新たに生成したパーサーPSにより、上書き更新する。
ステップSD7の処理の結果、制御サーバー制御部40は、選択印刷装置から印刷テキストデータを受信した場合、選択レシート項目については、項目値を取得する処理を、新たに生成したパーサーPSの機能に基づいて実行する。
次いで、制御サーバー制御部40は、分析結果確認画面G424を閉じる(ステップSD8)。
As shown in the flowchart FD of FIG. 23, after displaying the analysis result of the newly generated parser PS on the analysis result confirmation screen G424, the control server control unit 40 monitors whether or not the cancel button CC has been operated. At the same time (step SD5), it is monitored whether or not the overwrite button UB is operated (step SD6).
When it is detected that the overwrite button UB has been operated (step SD6: YES), the control server control unit 40 executes the following processing (step SD7). That is, in step SD7, the control server control unit 40 refers to the parser management database 421, and newly generates a parser PS corresponding to the selection receipt item associated with the serial number J11 of the selection printing device in the database. It is overwritten and updated by the parser PS.
As a result of the process of step SD7, when the control server control unit 40 receives the print text data from the selective printing device, the process of acquiring the item value for the selected receipt item is based on the function of the newly generated parser PS. And execute.
Next, the control server control unit 40 closes the analysis result confirmation screen G424 (step SD8).

一方、キャンセルボタンCCが操作されたことを検出した場合(ステップSD5:YES)、制御サーバー制御部40は、パーサー管理データベース421の更新を行うことなく、処理手順をステップSD8へ移行し、分析結果確認画面G424を閉じる。 On the other hand, when it is detected that the cancel button CC has been operated (step SD5: YES), the control server control unit 40 shifts the processing procedure to step SD8 without updating the parser management database 421, and the analysis result. Close the confirmation screen G424.

なお、1の印刷装置12について、パーサー管理データベース421にレコードが登録される場合、当該1の印刷装置12のシリアル番号J11と対応付けられるパーサーPSのそれぞれは、予め用意されたデフォルトのパーサーPSとされる。 When a record is registered in the parser management database 421 for the printing device 12, each of the parser PSs associated with the serial number J11 of the printing device 12 is the default parser PS prepared in advance. Will be done.

<第2合計金額情報フレーム>
図25は、図17のフレーム選択画面G422において、第2合計金額情報フレームが選択された後に、フレーム選択画面G422から遷移するステップ対応画面G423を示す図である。第2合計金額情報フレームは、複数のステップを有する。
図25のステップ対応画面G423では、選択レシート項目(本例では、合計金額情報項目。)の項目値(本例では、合計金額情報J92。)を検索する場合に使用するキーワードを入力することが可能である。ユーザーは、テキスト表示画面G43を用いて、上述した方法で、キーワードとなる単語、又は、単語群を選択する。これにより、ユーザーは、キーワードが所定の単語、又は、単語群である、という検索ルールを指定する。
<Second total amount information frame>
FIG. 25 is a diagram showing a step-corresponding screen G423 that transitions from the frame selection screen G422 after the second total amount information frame is selected on the frame selection screen G422 of FIG. The second total amount information frame has a plurality of steps.
On the step correspondence screen G423 of FIG. 25, it is possible to input a keyword used when searching the item value (total amount information J92 in this example) of the selected receipt item (total amount information item in this example). It is possible. The user uses the text display screen G43 to select a keyword word or word group by the method described above. As a result, the user specifies a search rule that the keyword is a predetermined word or word group.

図25のステップ対応画面G423は、次に遷移可能なステップ対応画面G423が存在する。これを踏まえ、図25のステップ対応画面G423には、コンファームボタンCBが表示されず、次のステップ対応画面G423への遷移を指示する遷移ボタンNBが表示される。
遷移ボタンNBが操作されたことを検出した場合、制御サーバー制御部40は、次のステップ対応画面G423へ遷移する。
The step correspondence screen G423 of FIG. 25 includes a step correspondence screen G423 that can be transitioned next. Based on this, the confirmation button CB is not displayed on the step correspondence screen G423 of FIG. 25, and the transition button NB instructing the transition to the next step correspondence screen G423 is displayed.
When it is detected that the transition button NB has been operated, the control server control unit 40 transitions to the next step correspondence screen G423.

図26は、図25のステップ対応画面G423の遷移ボタンNBが操作された場合に、図25のステップ対応画面G423に代えて表示されるステップ対応画面G423を示す図である。
図26のステップ対応画面G423では、キーワードと、検索対象の項目値との位置関係に応じて、7個のルール情報JH26a〜ルール情報JH26gが選択可能に一覧表示される。ユーザーは、テキスト表示画面G43を参照し、ルール情報JH26a〜ルール情報JH26gのうち、適切な検索ルールに対応するルール情報を選択する。
FIG. 26 is a diagram showing a step correspondence screen G423 displayed in place of the step correspondence screen G423 of FIG. 25 when the transition button NB of the step correspondence screen G423 of FIG. 25 is operated.
On the step correspondence screen G423 of FIG. 26, seven rule information JH26a to rule information JH26g are displayed in a list that can be selected according to the positional relationship between the keyword and the item value to be searched. The user refers to the text display screen G43 and selects the rule information corresponding to the appropriate search rule from the rule information JH26a to the rule information JH26g.

以下、ルール情報JH26a〜ルール情報JH26gのうち、ルール情報JH26cについて説明する。
ルール情報JH26cは、選択レシート項目に対応する項目値が、キーワードと同一行において、左からN番目(Nは、正の整数。)の単語であることを指定する検索ルールを示すルール情報である。1の「行」におけるN番目の単語とは、以下のことを意味する。すなわち、1の「行」におけるN番目の単語とは、当該1の「行」に記述された単語を、空白文字を除いて左から順番に数えたときに、左からN番目に位置する単語を意味する。例えば、図6Bの印刷テキストデータT2の4行目には、空白文字を除き、単語が、単語「Beer」、単語「1」、単語「10.00」の順番で記述される。この場合、単語「Beer」は1番目の単語であり、単語「1」は2番目の単語であり、単語「10.00」は3番目の単語である。また、単語「10.00」は、印刷テキストデータT2の4行目において、最後の単語でもある。
Of the rule information JH26a to the rule information JH26g, the rule information JH26c will be described below.
Rule information JH26c is rule information indicating a search rule that specifies that the item value corresponding to the selected receipt item is the Nth word from the left (N is a positive integer) in the same line as the keyword. .. The Nth word in the "line" of 1 means the following. That is, the Nth word in the "line" of 1 is the word located in the Nth position from the left when the words described in the "line" of 1 are counted in order from the left excluding whitespace characters. Means. For example, in the fourth line of the printed text data T2 of FIG. 6B, words are described in the order of the word "Beer", the word "1", and the word "10.00" except for whitespace characters. In this case, the word "Beer" is the first word, the word "1" is the second word, and the word "10.00" is the third word. The word "10.00" is also the last word in the fourth line of the printed text data T2.

図27は、図26のステップ対応画面G423において、ラジオボタンにより、ルール情報JH26cに対応する検索ルールが選択された場合のステップ対応画面G423を示す図である。
図27に示すように、ルール情報JH26cが選択された場合、ステップ対応画面G423の下部に、番号表示領域BAが形成される。番号表示領域BAは、ユーザーが選択した検索ルールが、N番目という情報を必要とする場合に、ユーザーにN番目の値を選択させると共に、ユーザーが選択したN番目の値を表示する領域である。図27において、番号表示領域BAに選択可能に表示される番号の値を、1つの行に存在する単語の数に対応させた値としてもよい。
このように、制御サーバー制御部40は、検索ルールが、N番目という情報を必要とする場合、ユーザーにN番目を選択させ、選択されたN番目の値を表示する番号表示領域BAを形成する。
FIG. 27 is a diagram showing a step correspondence screen G423 when a search rule corresponding to the rule information JH26c is selected by a radio button on the step correspondence screen G423 of FIG. 26.
As shown in FIG. 27, when the rule information JH26c is selected, the number display area BA is formed at the lower part of the step correspondence screen G423. The number display area BA is an area that allows the user to select the Nth value and displays the Nth value selected by the user when the search rule selected by the user requires the information of the Nth. .. In FIG. 27, the value of the number selectively displayed in the number display area BA may be a value corresponding to the number of words existing in one line.
In this way, when the search rule requires the information of the Nth, the control server control unit 40 causes the user to select the Nth and forms a number display area BA for displaying the selected Nth value. ..

図27に示すように、番号表示領域BAは、入力欄N27aを有する。入力欄N27aには、プルダウンメニューからN番目の値を選択することによって、N番目の値を入力できる。ユーザーは、入力欄N27aに対応するプルダウンメニューから、適切な値を選択することによって、入力欄N27aに、N番目の値を入力する。
図27に示すように、本実施形態では、ユーザーは、N番目の値として、1番目〜5番目のほか、「最後」、及び、「最後から2番目」を選択可能である。これは、所定の項目値は、所定の「行」において、「最後」、又は、「最後から2番目」に記述される場合があることに基づくものである。
As shown in FIG. 27, the number display area BA has an input field N27a. The Nth value can be input to the input field N27a by selecting the Nth value from the pull-down menu. The user inputs the Nth value in the input field N27a by selecting an appropriate value from the pull-down menu corresponding to the input field N27a.
As shown in FIG. 27, in the present embodiment, the user can select "last" and "second from last" as the Nth value in addition to the first to fifth values. This is based on the fact that a predetermined item value may be described as "last" or "second from last" in a predetermined "line".

このように、本実施形態では、所定の項目値は、所定の「行」においてN番目に位置するというルールに従って印刷テキストデータに記述される場合がある、という特性を踏まえ、ユーザーが、簡易な作業を行って、このようなルールに対応する検索ルールを指定できる。 As described above, in the present embodiment, the user can easily describe the predetermined item value in the printed text data according to the rule that the predetermined item value is located at the Nth position in the predetermined "line". You can work and specify search rules that correspond to such rules.

図27に示すステップ対応画面G423について、ユーザーは、7個のルール情報JH26a〜ルール情報JH26gに対応する検索ルールから1つの検索ルールを選択し、必要に応じて番号表示領域BAを用いてN番目の値を選択した上で、遷移ボタンNBを操作して、検索ルールの指定を確定する。遷移ボタンNBが操作されたことを検出した場合、制御サーバー制御部40は、次のステップ対応画面G423へ遷移する。 Regarding the step correspondence screen G423 shown in FIG. 27, the user selects one search rule from the search rules corresponding to the seven rule information JH26a to the rule information JH26g, and uses the number display area BA as necessary to be the Nth. After selecting the value of, operate the transition button NB to confirm the specification of the search rule. When it is detected that the transition button NB has been operated, the control server control unit 40 transitions to the next step correspondence screen G423.

図28は、図27のステップ対応画面G423において、ルール情報JH26cに対応する検索ルールが選択され、N番目の値として「最後」が選択された後、遷移ボタンNBが操作された場合に、図27のステップ対応画面G423に代えて表示されるステップ対応画面G423を示す図である。
図28のステップ対応画面G423は、ユーザーが設定したキーワードが印刷テキストデータに、複数、記述される場合に、項目値の検索に使用するキーワードが、印刷テキストデータにおいてN番目に出現することを示す検索ルールを指定する画面である。
ここで、印刷テキストデータには、キーワードとして用いる文字列が、複数、記述される場合がある。例えば、文字列「TOTAL」をキーワードとして用いる場合において、小計明示情報J71、及び、合計金額明示情報J91が、共に、文字列「TOTAL」を含み、これに起因して、印刷テキストデータに、文字列「TOTAL」が、複数、記述される場合がある。このような場合であっても、キーワードとして使用可能な文字列は、レシートのレイアウトに対応するルールに従って記述されるため、キーワードがN番目に出現することを指定することにより、所望のキーワードを特定可能である。
FIG. 28 shows the case where the transition button NB is operated after the search rule corresponding to the rule information JH26c is selected and "last" is selected as the Nth value on the step correspondence screen G423 of FIG. 27. It is a figure which shows the step correspondence screen G423 which is displayed instead of the step correspondence screen G423 of 27.
The step correspondence screen G423 of FIG. 28 shows that when a plurality of keywords set by the user are described in the print text data, the keyword used for searching the item value appears at the Nth position in the print text data. This is the screen for specifying search rules.
Here, in the printed text data, a plurality of character strings used as keywords may be described. For example, when the character string "TOTAL" is used as a keyword, the subtotal explicit information J71 and the total amount explicit information J91 both include the character string "TOTAL", and as a result, the characters are included in the printed text data. A plurality of columns "TOTAL" may be described. Even in such a case, since the character string that can be used as a keyword is described according to the rule corresponding to the layout of the receipt, the desired keyword can be specified by specifying that the keyword appears Nth. It is possible.

図28のステップ対応画面G423は、入力欄N28aを有する。入力欄N28aには、プルダウンメニューからN番目の値を選択することによって、N番目の値を入力できる。ユーザーは、入力欄N28aに対応するプルダウンメニューから、適切な値を選択することによって、入力欄N28aに、N番目の値を入力する。
図28に示すように、本実施形態では、ユーザーは、N番目の値として、1番目〜5番目のほか、「最後」、及び、「最後から2番目」を選択可能である。これは、所定のキーワードの位置については、「最後」、又は、「最後から2番目」に出現することを指定することによって、適切に特定できる場合があることに由来する。図28において、番号表示領域BAに選択可能に表示される番号の値を、印刷テキストデータに出現するキーワードに対応する単語の数に対応させた値としてもよい。
図28に示すステップ対応画面G423は、選択フレーム(本例では、第2合計金額情報フレーム。)に対応するステップ対応画面G423のうち、最後のステップ対応画面G423である。図28に示すステップ対応画面G423について、ユーザーは、プルダウンメニューを利用して、入力欄N28aに、N番目の値を入力する。入力欄N28aへの入力後、ユーザーは、ステップ確定ボタンSB、又は、コンファームボタンCBを操作する。これらボタンの何れかが操作された場合の制御サーバー制御部40の処理は、上述したとおりである。
The step correspondence screen G423 of FIG. 28 has an input field N28a. The Nth value can be input to the input field N28a by selecting the Nth value from the pull-down menu. The user inputs the Nth value in the input field N28a by selecting an appropriate value from the pull-down menu corresponding to the input field N28a.
As shown in FIG. 28, in the present embodiment, the user can select "last" and "second from last" as the Nth value in addition to the first to fifth values. This is because the position of a predetermined keyword may be appropriately specified by specifying that it appears "last" or "second from last". In FIG. 28, the value of the number selectively displayed in the number display area BA may be a value corresponding to the number of words corresponding to the keywords appearing in the printed text data.
The step-corresponding screen G423 shown in FIG. 28 is the last step-corresponding screen G423 of the step-corresponding screens G423 corresponding to the selection frame (in this example, the second total amount information frame). Regarding the step correspondence screen G423 shown in FIG. 28, the user inputs the Nth value in the input field N28a by using the pull-down menu. After inputting into the input field N28a, the user operates the step confirmation button SB or the confirm button CB. The processing of the control server control unit 40 when any of these buttons is operated is as described above.

このように、本実施形態では、キーワードとして指定する文字列は、レシートのレイアウトに対応するルールに従って、印刷テキストデータに、複数、記述される場合がある、という特性を踏まえ、ユーザーが、簡易な作業を行って、このようなルールに対応する検索ルールを指定できる。 As described above, in the present embodiment, the user can easily describe a plurality of character strings specified as keywords in the printed text data according to the rules corresponding to the layout of the receipt. You can work and specify search rules that correspond to such rules.

<第5パーサーPS5>
第5パーサーPS5を生成する場合について説明する。
第5パーサーPS5を生成する場合、ユーザーは、項目選択画面G41において、取消有無情報項目(プロパティー「is_void」。)を選択する。
プロパティー「is_void」(取消有無情報項目)は、データ型:booleanのプロパティーであり、その点で、プロパティー「total」(合計金額情報項目)と異なる。
上述したように、会計は取り消される場合があり、その場合、会計で発行されるレシートに基づく印刷テキストデータには、取り消しが行われたことを示す情報(以下、「取消明示情報J28」という。)が記述される。そして、取消明示情報J28が印刷テキストデータに記述されている場合、取消有無情報項目の項目値は、true値となり、取消明示情報J28が記述されていない場合、取消有無情報項目の項目値は、false値となる。
印刷テキストデータに所定の情報が記述されているか否かに応じてtrue値、又は、false値のいずれかをとるデータ型:booleanのプロパティーに対応するレシート項目を検索する機能を有するパーサーPSの生成に際し、制御サーバー制御部40は、以下の処理を実行する。
<5th parser PS5>
A case where the fifth parser PS5 is generated will be described.
When generating the fifth parser PS5, the user selects a cancellation presence / absence information item (property "is_voice") on the item selection screen G41.
The property "is_voice" (cancellation presence / absence information item) is a property of data type: boolean, and is different from the property "total" (total amount information item) in that respect.
As described above, the accounting may be canceled, and in that case, the printed text data based on the receipt issued by the accounting is referred to as information indicating that the cancellation has been made (hereinafter, "cancellation explicit information J28". ) Is described. When the cancellation explicit information J28 is described in the print text data, the item value of the cancellation presence / absence information item becomes a true value, and when the cancellation explicit information J28 is not described, the item value of the cancellation presence / absence information item is It becomes a false value.
Data type that takes either a true value or a false value depending on whether or not predetermined information is described in the print text data: Generation of a parser PS having a function of searching a receipt item corresponding to a Boolean property. At that time, the control server control unit 40 executes the following processing.

図29は、項目選択画面G41で取消有無情報項目が選択され、取消有無情報項目に係る取得項目値表示画面G421でパーサー生成開始ボタンQBが操作された場合に、第2領域A42に表示されるフレーム選択画面G422を示す図である。
取消有無情報項目について、対応するフレームの個数は、1つである。ユーザーは、取消有無情報項目に係るフレーム選択画面G422に表示されたフレーム確定ボタンXBを操作することにより、フレームの選択を確定する。フレーム確定ボタンXBが操作されたことを検出すると、制御サーバー制御部40は、フレーム選択画面G422を、ステップ対応画面G423に遷移する。
FIG. 29 is displayed in the second area A42 when the cancellation presence / absence information item is selected on the item selection screen G41 and the parser generation start button QB is operated on the acquisition item value display screen G421 related to the cancellation presence / absence information item. It is a figure which shows the frame selection screen G422.
Regarding the cancellation presence / absence information item, the number of corresponding frames is one. The user confirms the frame selection by operating the frame confirmation button XB displayed on the frame selection screen G422 related to the cancellation presence / absence information item. When it is detected that the frame confirmation button XB has been operated, the control server control unit 40 transitions the frame selection screen G422 to the step correspondence screen G423.

図30は、図29のフレーム選択画面G422から遷移するステップ対応画面G423を示す図である。取消有無情報項目に係るフレームは、1つのステップを有する。
図30のステップ対応画面G423では、選択レシート項目(本例では、取消有無情報項目。)の項目値を取得する場合に使用するキーワードを入力することが可能である。取消有無情報項目の場合、キーワードは、取消明示情報J28である。
ユーザーは、図30のステップ対応画面G423により、キーワードが所定の単語、又は、単語群である、という検索ルールを指定する。
ユーザーは、テキスト表示画面G43にテキストが表示された処理対象テキストデータに、取消明示情報J28が記述されている場合、上述した方法で、キーワードとなる単語、又は、単語群を選択する。
一方、ユーザーは、テキスト表示画面G43にテキストが表示された処理対象テキストデータに、取消明示情報J28が記述されてない場合、以下の方法で、検索ルールを指定する。ユーザーは、会計の取り消しが行われた場合に、レシートに印刷される取消明示情報J28を所定の手段で認識し、取消明示情報J28を表す文字列を、キーボード等を利用して入力する。
ユーザーにより入力されたキーワードは、ステップ対応画面G423の所定の領域に表示される。
FIG. 30 is a diagram showing a step correspondence screen G423 transitioning from the frame selection screen G422 of FIG. 29. The frame related to the cancellation presence / absence information item has one step.
On the step correspondence screen G423 of FIG. 30, it is possible to input a keyword to be used when acquiring the item value of the selected receipt item (in this example, the cancellation presence / absence information item). In the case of the cancellation presence / absence information item, the keyword is the cancellation explicit information J28.
The user specifies a search rule that the keyword is a predetermined word or word group by the step correspondence screen G423 of FIG. 30.
When the cancellation explicit information J28 is described in the processing target text data in which the text is displayed on the text display screen G43, the user selects a word or a word group as a keyword by the method described above.
On the other hand, when the cancellation explicit information J28 is not described in the processing target text data in which the text is displayed on the text display screen G43, the user specifies the search rule by the following method. When the accounting is canceled, the user recognizes the cancellation explicit information J28 printed on the receipt by a predetermined means, and inputs a character string representing the cancellation explicit information J28 by using a keyboard or the like.
The keyword input by the user is displayed in a predetermined area of the step correspondence screen G423.

図30に示すステップ対応画面G423について、ユーザーは、キーワードを入力した後、ステップ確定ボタンSB、又は、コンファームボタンCBを操作する。これらボタンの何れかが操作された場合の制御サーバー制御部40の処理は、上述したとおりである。 With respect to the step correspondence screen G423 shown in FIG. 30, the user operates the step confirmation button SB or the confirm button CB after inputting a keyword. The processing of the control server control unit 40 when any of these buttons is operated is as described above.

このように、本実施形態では、データ型:booleanのプロパティーに対応するレシート項目の項目値を取得するパーサーPSについて、ユーザーが、簡易な作業を行って、パーサーPSを生成させることができる。 As described above, in the present embodiment, the user can perform a simple operation on the parser PS for acquiring the item value of the receipt item corresponding to the property of the data type: Boolean, and generate the parser PS.

<第9パーサーPS9>
第9パーサーPS9を生成する場合について説明する。
第9パーサーPS9を生成する場合、ユーザーは、項目選択画面G41において、商品情報項目(プロパティー「products」。)を選択する。
上述したように、商品情報項目には、商品名情報項目、購入数量情報項目、及び、単価情報項目が属する。
第9パーサーPS9は、購入数量情報項目、商品名情報項目、及び、単価情報項目のそれぞれの項目値を取得する処理を実行する機能を有するパーサーPSである。
<9th Parser PS9>
A case of generating the ninth parser PS9 will be described.
When generating the ninth parser PS9, the user selects a product information item (property "products") on the item selection screen G41.
As described above, the product information item includes the product name information item, the purchase quantity information item, and the unit price information item.
The ninth parser PS9 is a parser PS having a function of executing a process of acquiring the item values of the purchase quantity information item, the product name information item, and the unit price information item.

ここで、印刷テキストデータへの情報の記述に関し、購入数量情報J61(購入数量情報項目の項目値。)、商品名情報J62(商品情報項目の項目値。)、及び、単価情報J63(単価情報項目の項目値)には、以下の特徴がある。
購入数量情報J61、商品名情報J62、及び、単価情報J63は、印刷テキストデータへの記述に関し、何らかの特定の情報と対応付けて記述されない場合がある、という特徴がある。この場合、キーワードとの位置関係で、これら情報の位置を特定することはできない。
また、1の種類の商品に係る購入数量情報J61、商品名情報J62、及び、単価情報J63について、これら情報は、レシートのレイアウトにかかわらず、一行内に印刷される場合があるという特徴がある。これら情報は、レシートに印刷されることが必須の情報であるからであり、また、これら情報を同一行に印刷することにより、これら情報が1つの種類の商品に関連する情報であることが明示されるからである。また、これら情報を同一行に印刷することにより、商品情報J6が、複数個(=複数行)、レシートに印刷された場合に、購入数量情報J61、商品名情報J62、及び、単価情報J63の対応関係が明確になるからである。
また、購入数量情報J61、商品名情報J62、及び、単価情報J63を含む商品情報J6は、レシートにおいて、1の特定の文字列と、他の特定の文字列とで挟まれた領域に印刷される場合があるという特徴がある。この場合、これら情報は、印刷テキストデータにおいて、1の特定の文字列と、他の特定の文字列とで挟まれた領域に記述される。
これら特徴を踏まえ、第9パーサーPS9の生成に際し、制御サーバー制御部40は、以下の処理を実行する。
Here, regarding the description of information in the print text data, purchase quantity information J61 (item value of purchase quantity information item), product name information J62 (item value of product information item), and unit price information J63 (unit price information). The item value of the item) has the following characteristics.
The purchase quantity information J61, the product name information J62, and the unit price information J63 are characterized in that they may not be described in association with some specific information regarding the description in the print text data. In this case, the position of this information cannot be specified by the positional relationship with the keyword.
Further, regarding the purchase quantity information J61, the product name information J62, and the unit price information J63 related to one type of product, these information may be printed in one line regardless of the layout of the receipt. .. This is because these information are essential information to be printed on the receipt, and by printing the information on the same line, it is clearly shown that the information is related to one type of product. Because it is done. Further, by printing these information on the same line, when a plurality of product information J6 (= multiple lines) are printed on the receipt, the purchase quantity information J61, the product name information J62, and the unit price information J63 can be printed. This is because the correspondence relationship becomes clear.
Further, the product information J6 including the purchase quantity information J61, the product name information J62, and the unit price information J63 is printed in the area sandwiched between the specific character string 1 and the other specific character string on the receipt. There is a feature that it may occur. In this case, these information are described in the printed text data in an area sandwiched between one specific character string and another specific character string.
Based on these characteristics, the control server control unit 40 executes the following processing when generating the ninth parser PS9.

図31は、項目選択画面G41で商品情報項目が選択され、商品情報項目に係る取得項目値表示画面G421でパーサー生成開始ボタンQBが操作された場合に、第2領域A42に表示されるフレーム選択画面G422を示す図である。
商品情報項目について、対応するフレームの個数は、第1商品情報フレーム、第2商品情報フレームの2つである。図31に示すフレーム選択画面G422には、第1商品情報フレームを説明するフレーム情報JH31a、及び、第2商品情報フレームを説明するフレーム情報JH31bが一覧表示される。また、フレーム情報のそれぞれにはラジオボタンが対応付けて表示され、ユーザーは、ラジオボタンにより、フレームを選択できる。
FIG. 31 shows a frame selection displayed in the second area A42 when a product information item is selected on the item selection screen G41 and the parser generation start button QB is operated on the acquisition item value display screen G421 related to the product information item. It is a figure which shows the screen G422.
Regarding the product information item, the number of corresponding frames is two, the first product information frame and the second product information frame. On the frame selection screen G422 shown in FIG. 31, frame information JH31a for explaining the first product information frame and frame information JH31b for explaining the second product information frame are listed. In addition, a radio button is displayed in association with each of the frame information, and the user can select a frame by the radio button.

第1商品情報フレームは、購入数量情報J61、商品名情報J62、及び、単価情報J63の1行における並び順(1行における出現形式。)に基づいて、これら情報の印刷テキストデータにおける位置を特定することを指定する検索ルールに対応するフレームである。
第2商品情報フレームは、購入数量情報J61、商品名情報J62、及び、単価情報J63の1行における並び順、及び、これら情報が記述される領域に基づいて、これら情報の印刷テキストデータにおける位置を特定することを指定する検索ルールに対応するフレームである。
The first product information frame specifies the position of these information in the printed text data based on the order in which the purchase quantity information J61, the product name information J62, and the unit price information J63 are arranged in one line (appearance format in one line). It is a frame corresponding to the search rule that specifies to do.
The second product information frame is the position in the printed text data of the purchase quantity information J61, the product name information J62, and the unit price information J63 based on the order in one line and the area in which the information is described. It is a frame corresponding to the search rule that specifies to specify.

ユーザーは、ラジオボタンによりフレームを選択した上で、商品情報項目に係るフレーム選択画面G422に表示されたフレーム確定ボタンXBを操作することにより、フレームの選択を確定する。フレーム確定ボタンXBが操作されたことを検出すると、制御サーバー制御部40は、フレーム選択画面G422を、ステップ対応画面G423に遷移する。
以下、選択フレームが第1商品情報フレームの場合と、選択フレームが第2商品情報フレームの場合とについて、順次、説明する。
After selecting a frame with the radio button, the user confirms the frame selection by operating the frame confirmation button XB displayed on the frame selection screen G422 related to the product information item. When it is detected that the frame confirmation button XB has been operated, the control server control unit 40 transitions the frame selection screen G422 to the step correspondence screen G423.
Hereinafter, the case where the selection frame is the first product information frame and the case where the selection frame is the second product information frame will be sequentially described.

<第1商品情報フレーム>
図32は、第1商品情報フレームが選択された場合に、図31のフレーム選択画面G422から遷移するステップ対応画面G423を示す図である。第1商品情報フレームは、1つのステップを有する。
ここで、購入数量情報J61、商品名情報J62、及び、単価情報J63が同一行に印刷される場合において、これら情報の並び順は、右に向かって以下の6パターンある。
第1パターン:購入数量情報J61、商品名情報J62、単価情報J63。
第2パターン:購入数量情報J61、単価情報J63、商品名情報J62。
第3パターン:商品名情報J62、購入数量情報J61、単価情報J63。
第4パターン:商品名情報J62、単価情報J63、購入数量情報J61。
第5パターン:単価情報J63、購入数量情報J61、商品名情報J62。
第6パターン:単価情報J63、商品名情報J62、購入数量情報J61。
<First product information frame>
FIG. 32 is a diagram showing a step-corresponding screen G423 that transitions from the frame selection screen G422 of FIG. 31 when the first product information frame is selected. The first product information frame has one step.
Here, when the purchase quantity information J61, the product name information J62, and the unit price information J63 are printed on the same line, the order of the information is the following six patterns toward the right.
First pattern: purchase quantity information J61, product name information J62, unit price information J63.
Second pattern: purchase quantity information J61, unit price information J63, product name information J62.
Third pattern: Product name information J62, purchase quantity information J61, unit price information J63.
Fourth pattern: Product name information J62, unit price information J63, purchase quantity information J61.
Fifth pattern: unit price information J63, purchase quantity information J61, product name information J62.
Sixth pattern: unit price information J63, product name information J62, purchase quantity information J61.

これを踏まえ、図32のステップ対応画面G423には、購入数量情報J61、商品名情報J62、及び、単価情報J63が、第1パターンで印刷されることを指定する検索ルールを示すルール情報JH32a、第2パターンで印刷されることを指定する検索ルールを示すルール情報JH32b、第3パターンで印刷されることを指定する検索ルールを示すルール情報JH32c、第4パターンで印刷されることを指定する検索ルールを示すルール情報JH32d、第5パターンで印刷されることを指定する検索ルールを示すルール情報JH32e、及び、第6パターンで印刷されることを指定する検索ルールを示すルール情報JH32fが一覧表示される。これらルール情報のそれぞれには、ラジオボタンが対応付けて表示され、ラジオボタンにより、いずれかのルール情報を選択できる。ユーザーは、いずれかのルール情報を選択することにより、検索ルールを指定する。 Based on this, on the step correspondence screen G423 of FIG. 32, the rule information JH32a indicating a search rule that specifies that the purchase quantity information J61, the product name information J62, and the unit price information J63 are printed in the first pattern, Rule information JH32b indicating a search rule that specifies to be printed in the second pattern, rule information JH32c indicating a search rule that specifies to be printed in the third pattern, and a search that specifies to be printed in the fourth pattern. Rule information JH32d indicating a rule, rule information JH32e indicating a search rule specifying printing in the fifth pattern, and rule information JH32f indicating a search rule specifying printing in the sixth pattern are displayed in a list. To print. A radio button is displayed in association with each of these rule information, and one of the rule information can be selected by the radio button. The user specifies a search rule by selecting one of the rule information.

図32に示すステップ対応画面G423について、ユーザーは、検索ルールを指定した後、ステップ確定ボタンSB、又は、コンファームボタンCBを操作する。これらボタンの何れかが操作された場合の制御サーバー制御部40の処理は、上述したとおりである。すなわち、制御サーバー制御部40は、選択フレームに対応する全てのステップ対応画面G423で指定された検索ルールを取得する。次いで、制御サーバー制御部40は、取得した検索ルールのそれぞれに基づいて選択レシート項目の項目値を取得する処理を実行するパーサーPS(本例では、第9パーサーPS)を生成する。以下、1つの行において情報が出現するパターンによって、第9パーサーPSが項目値を特定する方法について、具体例を挙げて説明する。 With respect to the step correspondence screen G423 shown in FIG. 32, the user operates the step confirmation button SB or the confirm button CB after specifying the search rule. The processing of the control server control unit 40 when any of these buttons is operated is as described above. That is, the control server control unit 40 acquires the search rule specified on all the step correspondence screens G423 corresponding to the selected frame. Next, the control server control unit 40 generates a parser PS (in this example, the ninth parser PS) that executes a process of acquiring the item value of the selected receipt item based on each of the acquired search rules. Hereinafter, a method in which the ninth parser PS specifies an item value according to a pattern in which information appears in one line will be described with specific examples.

ここで、第1商品情報フレームに係る第9パーサーPS9の機能について、第1パターンに係る検索ルールに基づいて処理を実行する場合を例にして説明する。
購入数量情報J61を表す文字列には、以下の特徴がある。すなわち、購入数量情報J61を表す文字列を構成する文字には、数字を表す文字、及び、特定の文字が使用可能であり、他の文字が使用されないという特徴がある。購入数量情報J61を表す文字列を構成する文字に使用可能な、特定の文字とは、例えば、単位当たりの個数を表すときに一般的に用いられる文字「@」である。以下、これらの文字により構成される文字列で表される情報を、「個数型の情報」という。
また、単価情報J63を表す文字列には、以下の特徴がある。すなわち、単価情報J63を表す文字列を構成する文字には、数字を表す文字、小数点を表す文字、通貨記号(「¥」、「$」等。)、プラス記号(「+」)、マイナス記号(「−」)が使用可能であり、他の文字が使用されないという特徴がある。以下、これらの文字により構成される文字列で表される情報を、「数値型の情報」という。
以下、個数型の情報ではなく、かつ、数値型の情報ではない情報を、「任意型の情報」という。
これらのことを踏まえ、第1パターンの場合、購入数量情報J61、商品名情報J62、及び、単価情報J63が記述された「行」には、情報が以下の態様で記述される。すなわち、情報が3つ存在し、各情報が、右に向かって、個数型の情報、任意型の情報、数値型の情報の順番で記述される。
このことを踏まえ、第9パーサーPS9は、処理対象テキストデータにおける「行」のうち、3つの情報が記述されると共に、各情報が、右に向かって、個数型の情報、任意型の情報、数値型の情報の順番で記述された1又は複数の「行」を特定する。次いで、第9パーサーPS9は、特定した「行」において、先頭に記述された情報を購入数量情報J61(個数型の情報)として特定し、次に記述された情報を商品名情報J62(任意型の情報)として特定し、その次に記述された情報を単価情報J63(数値型の情報)として特定する。
Here, the function of the ninth parser PS9 related to the first product information frame will be described by taking as an example a case where processing is executed based on the search rule related to the first pattern.
The character string representing the purchase quantity information J61 has the following characteristics. That is, as the characters constituting the character string representing the purchase quantity information J61, a character representing a number and a specific character can be used, and other characters are not used. The specific character that can be used as the character that constitutes the character string representing the purchase quantity information J61 is, for example, the character "@" that is generally used to represent the number of pieces per unit. Hereinafter, the information represented by the character string composed of these characters is referred to as "number type information".
Further, the character string representing the unit price information J63 has the following characteristics. That is, the characters constituting the character string representing the unit price information J63 include a character representing a number, a character representing a decimal point, a currency symbol ("\", "$", etc.), a plus sign ("+"), and a minus sign. ("-") Can be used, and other characters are not used. Hereinafter, the information represented by the character string composed of these characters is referred to as "numerical type information".
Hereinafter, information that is not number type information and is not numerical type information is referred to as "arbitrary type information".
Based on these facts, in the case of the first pattern, the information is described in the following aspects in the "line" in which the purchase quantity information J61, the product name information J62, and the unit price information J63 are described. That is, there are three pieces of information, and each piece of information is described in the order of number type information, arbitrary type information, and numerical type information toward the right.
Based on this, in the 9th parser PS9, three pieces of information among the "lines" in the text data to be processed are described, and each piece of information is, toward the right, a number type information, an arbitrary type information, Identify one or more "lines" described in the order of numeric type information. Next, the ninth parser PS9 specifies the information described at the beginning as the purchase quantity information J61 (quantity type information) in the specified "line", and the information described next is the product name information J62 (arbitrary type). Information), and the information described next is specified as unit price information J63 (numerical type information).

第1商品情報フレームは、購入数量情報J61、商品名情報J62、及び、単価情報J63が記述される「行」以外の「行」に、個数型の情報、任意型の情報、数値型の情報が所定の順番で並ぶ「行」が存在しない場合に、有効である。 In the first product information frame, the number type information, the arbitrary type information, and the numerical type information are set in the "row" other than the "line" in which the purchase quantity information J61, the product name information J62, and the unit price information J63 are described. It is effective when there is no "row" in which is arranged in a predetermined order.

<第2商品情報フレーム>
図33は、第2商品情報フレームが選択された場合に、図31のフレーム選択画面G422から遷移するステップ対応画面G423を示す図である。
図33には、上述したルール情報JH32a〜ルール情報JH32fが一覧表示される。これらルール情報のそれぞれには、ラジオボタンが対応付けて表示され、ラジオボタンにより、いずれかのルール情報を選択できる。ユーザーは、いずれかのルール情報を選択することにより、検索ルールを指定する。
<Second product information frame>
FIG. 33 is a diagram showing a step-corresponding screen G423 that transitions from the frame selection screen G422 of FIG. 31 when the second product information frame is selected.
In FIG. 33, the above-mentioned rule information JH32a to rule information JH32f are listed. A radio button is displayed in association with each of these rule information, and one of the rule information can be selected by the radio button. The user specifies a search rule by selecting one of the rule information.

図33に示すステップ対応画面G423について、ユーザーは、検索ルールを指定した後、遷移ボタンNBを操作する。遷移ボタンNBが操作されたことを検出した場合、制御サーバー制御部40は、図33のステップ対応画面G423を、次のステップ対応画面G423へ遷移させる。 With respect to the step correspondence screen G423 shown in FIG. 33, the user operates the transition button NB after specifying the search rule. When it is detected that the transition button NB has been operated, the control server control unit 40 shifts the step correspondence screen G423 of FIG. 33 to the next step correspondence screen G423.

図34は、図33のステップ対応画面G423の遷移ボタンNBが操作された場合に、図33のステップ対応画面G423に代えて表示されるステップ対応画面G423を示す図である。
上述したように、商品情報J6は、1の特定の文字列と、他の特定の文字列とで挟まれた領域に記述されるというルールに従って、印刷テキストデータに記述される場合がある。以下、商品情報J6が記述される領域を規定する特定の文字列のうち、上方に位置する文字列を「領域先頭文字列」といい、下方に位置する文字列を「領域末尾文字列」という。そして、図34のステップ対応画面G423では、領域先頭文字列を入力することが可能である。
ユーザーは、図34のステップ対応画面G423により、領域先頭文字列が所定の単語、又は、単語群である、という検索ルールを指定する。
ユーザーは、テキスト表示画面G43に表示された処理対象テキストデータに基づくテキストを利用して、上述した方法で、キーワードとなる単語、又は、単語群を選択する。
ユーザーにより入力された領域先頭文字列に係る単語、又は、単語群は、ステップ対応画面G423の所定の領域に表示される。図34では、領域先頭文字列に係る単語群がステップ対応画面G423の所定の領域に表示された様子を示す。
FIG. 34 is a diagram showing a step correspondence screen G423 displayed in place of the step correspondence screen G423 of FIG. 33 when the transition button NB of the step correspondence screen G423 of FIG. 33 is operated.
As described above, the product information J6 may be described in the print text data according to the rule that the product information J6 is described in the area sandwiched between one specific character string and another specific character string. Hereinafter, among the specific character strings that define the area in which the product information J6 is described, the character string located above is referred to as "area start character string", and the character string located below is referred to as "area end character string". .. Then, on the step correspondence screen G423 of FIG. 34, it is possible to input the area start character string.
The user specifies a search rule that the area first character string is a predetermined word or word group by the step correspondence screen G423 of FIG. 34.
The user selects a word or a word group as a keyword by the method described above by using the text based on the text data to be processed displayed on the text display screen G43.
The word or word group related to the area first character string input by the user is displayed in a predetermined area of the step correspondence screen G423. FIG. 34 shows how the word group related to the area start character string is displayed in a predetermined area of the step correspondence screen G423.

図34に示すステップ対応画面G423について、ユーザーは、領域先頭文字列を入力した後、遷移ボタンNBを操作する。遷移ボタンNBが操作されたことを検出した場合、制御サーバー制御部40は、図34のステップ対応画面G423を、次のステップ対応画面G423へ遷移させる。 Regarding the step correspondence screen G423 shown in FIG. 34, the user operates the transition button NB after inputting the area start character string. When it is detected that the transition button NB has been operated, the control server control unit 40 shifts the step correspondence screen G423 of FIG. 34 to the next step correspondence screen G423.

図35は、図34のステップ対応画面G423の遷移ボタンNBが操作された場合に、図34のステップ対応画面G423に代えて表示されるステップ対応画面G423を示す図である。
図35のステップ対応画面G423では、領域末尾文字列を入力することが可能である。
ユーザーは、図35のステップ対応画面G423により、領域末尾文字列が所定の単語、又は、単語群である、という検索ルールを指定する。
ユーザーは、テキスト表示画面G43に表示された処理対象テキストデータに基づくテキストを利用して、上述した方法で、キーワードとなる単語、又は、単語群を選択する。
ユーザーにより入力された領域末尾文字列に係る単語、又は、単語群は、ステップ対応画面G423の所定の領域に表示される。図35では、領域末尾文字列に係る単語、又は、単語群がステップ対応画面G423の所定の領域に表示された様子を示す。
FIG. 35 is a diagram showing a step correspondence screen G423 displayed in place of the step correspondence screen G423 of FIG. 34 when the transition button NB of the step correspondence screen G423 of FIG. 34 is operated.
On the step correspondence screen G423 of FIG. 35, it is possible to input the character string at the end of the area.
The user specifies a search rule that the character string at the end of the area is a predetermined word or word group by the step correspondence screen G423 of FIG. 35.
The user selects a word or a word group as a keyword by the method described above by using the text based on the text data to be processed displayed on the text display screen G43.
The word or word group related to the character string at the end of the area input by the user is displayed in a predetermined area of the step correspondence screen G423. FIG. 35 shows how the word or word group related to the character string at the end of the area is displayed in a predetermined area of the step correspondence screen G423.

図35に示すステップ対応画面G423について、ユーザーは、キーワードを入力した後、ステップ確定ボタンSB、又は、コンファームボタンCBを操作する。これらボタンの何れかが操作された場合の制御サーバー制御部40の処理は、上述したとおりである。 With respect to the step correspondence screen G423 shown in FIG. 35, the user operates the step confirmation button SB or the confirm button CB after inputting a keyword. The processing of the control server control unit 40 when any of these buttons is operated is as described above.

第2商品情報フレームに係る第9パーサーPS9は、購入数量情報J61、商品名情報J62、及び、単価情報J63の検索に際し、ユーザーに入力された領域先頭文字列と、領域末尾文字列とで挟まれる領域を特定する。次いで、第9パーサーPS9は、特定した領域から、上述した方法で、これら情報の位置を特定する。例えば、第1パターンに係る検索ルールに基づいて処理を実行する場合、制御サーバー制御部40は、以下の処理を実行する。制御サーバー制御部40は、第9パーサーPS9の機能により、特定した領域内で、処理対象テキストデータにおける「行」のうち、3つの情報が記述されると共に、各情報が、右に向かって、個数型の情報、任意型の情報、数値型の情報の順番で記述された1又は複数の「行」を特定する。次いで、第9パーサーPS9は、特定した「行」において、先頭に記述された情報を購入数量情報J61(個数型の情報)として特定し、次に記述された情報を商品名情報J62(任意型の情報)として特定し、その次に記述された情報を単価情報J63(数値型の)として特定する。 The ninth parser PS9 related to the second product information frame is sandwiched between the area start character string and the area end character string input to the user when searching for the purchase quantity information J61, the product name information J62, and the unit price information J63. Identify the area to be affected. The ninth parser PS9 then identifies the location of this information from the identified region by the method described above. For example, when the process is executed based on the search rule related to the first pattern, the control server control unit 40 executes the following process. The control server control unit 40 describes three pieces of "lines" in the text data to be processed in the specified area by the function of the ninth parser PS9, and each information is moved to the right. Specify one or more "rows" described in the order of number type information, arbitrary type information, and numeric type information. Next, the ninth parser PS9 specifies the information described at the beginning as the purchase quantity information J61 (quantity type information) in the specified "line", and the information described next is the product name information J62 (arbitrary type). The information described next is specified as the unit price information J63 (numerical type).

以上説明したように、本実施形態によれば、制御サーバー制御部40(制御部)は、印刷媒体に印刷される情報をテキストで記述された印刷テキストデータ(テキストデータ)として取得し、取得した印刷テキストデータに記述されたテキストを単語に分解し、選択可能な状態で表示させ、選択された1又は複数の単語に基づいて、印刷テキストデータを分析する。
この構成によれば、ユーザーは、印刷テキストデータに基づくテキストを参照しつつ、1又は複数の単語を選択する、という簡易な作業を行って、パーサーPSの生成に必要なキーワードを入力でき、簡易にパーサーPSを生成することが可能となる。すなわち、制御サーバー15による印刷テキストデータの分析に際し、ユーザーが行う操作が簡易化する。
As described above, according to the present embodiment, the control server control unit 40 (control unit) acquires and acquires the information to be printed on the print medium as print text data (text data) described in text. The text described in the printed text data is decomposed into words, displayed in a selectable state, and the printed text data is analyzed based on one or more selected words.
According to this configuration, the user can easily input the keywords necessary for generating the parser PS by performing a simple task of selecting one or more words while referring to the text based on the printed text data. It is possible to generate a parser PS. That is, when the control server 15 analyzes the printed text data, the operation performed by the user is simplified.

また、本実施形態では、印刷テキストデータには、印刷媒体に情報が印刷されるレイアウトに準じてテキストが配置されており、制御サーバー制御部40は、レイアウトに準じた状態で、単語に分解したテキストを表示させる。
この構成によれば、ユーザーは、印刷テキストデータに記述された情報の内容、及び、対応するレイアウトを簡易かつ直感的に把握することができ、的確に、キーワードとする1又は複数の単語を選択できる。
Further, in the present embodiment, the text is arranged in the print text data according to the layout in which the information is printed on the print medium, and the control server control unit 40 decomposes it into words in the state according to the layout. Display the text.
According to this configuration, the user can easily and intuitively grasp the content of the information described in the printed text data and the corresponding layout, and accurately select one or a plurality of words as keywords. it can.

また、本実施形態では、制御サーバー制御部40は、表示した単語のうち、選択の候補となっている単語に対して、所定の装飾を施す。
この構成によれば、ユーザーは、単語が、選択の候補となったことを的確に認識した上で、所望の単語を的確にキーワードとして選択できる。
Further, in the present embodiment, the control server control unit 40 applies a predetermined decoration to the displayed words that are candidates for selection.
According to this configuration, the user can accurately select a desired word as a keyword after accurately recognizing that the word has become a candidate for selection.

また、本実施形態では、制御サーバー制御部40は、1の単語が選択された場合、当該1の単語と同一行において、当該1の単語と連続する単語をキーワードとして選択可能な状態とする。
この構成によれば、キーワードとして複数の単語を選択する場合、同一行で連続する単語を選択可能な状況下において、ユーザーに、誤りなくキーワードとする単語を選択させることができる。
Further, in the present embodiment, when one word is selected, the control server control unit 40 makes it possible to select a word continuous with the one word as a keyword on the same line as the one word.
According to this configuration, when a plurality of words are selected as keywords, the user can be made to select the words as keywords without error in a situation where consecutive words can be selected on the same line.

また、本実施形態では、制御サーバー15は、レシートを発行可能な印刷装置12に接続される。制御サーバー制御部40は、レシートに印刷された情報がテキストとして記述された印刷テキストデータを取得する。
この構成によれば、制御サーバー15は、ユーザーは、簡易な作業を行うことにより、レシートに印刷される情報を分析するプログラム(パーサーPS)を生成できる。すなわち、制御サーバー15によるレシートに対応する印刷テキストデータの分析に際し、ユーザーが行う操作が簡易化する。
Further, in the present embodiment, the control server 15 is connected to a printing device 12 capable of issuing a receipt. The control server control unit 40 acquires the print text data in which the information printed on the receipt is described as text.
According to this configuration, the control server 15 can generate a program (parser PS) for analyzing the information printed on the receipt by the user by performing a simple operation. That is, when the control server 15 analyzes the printed text data corresponding to the receipt, the operation performed by the user is simplified.

また、以上説明したように、本実施形態によれば、制御サーバー制御部40(制御部)は、印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述された印刷テキストデータ(テキストデータ)として取得し記複数の項目を選択可能な第1領域A41(第1の領域)、および、第1領域A41で選択された項目に対応する項目値を印刷テキストデータから取得する際に使用するルールを指定可能な第2領域A42を表示させ、第2領域A42で指定されたルールに基づいて印刷テキストデータを分析し、分析対象となる項目に対応する項目値を取得する。
この構成によれば、第1領域A41で項目を選択し、第2領域で、選択した項目に対応するルールを指定するという簡易な作業を行って、パーサーPSを生成することができる。すなわち、制御サーバー15による印刷テキストデータの分析に際し、ユーザーが行う操作が簡易化する。
Further, as described above, according to the present embodiment, the control server control unit 40 (control unit) is print text data in which information including item values of a plurality of items printed on a print medium is described in text. Acquired as (text data) When acquiring the item values corresponding to the items selected in the first area A41 (first area) in which a plurality of items can be selected and the items selected in the first area A41 from the printed text data. The second area A42 to which the rule to be used can be specified is displayed, the print text data is analyzed based on the rule specified in the second area A42, and the item value corresponding to the item to be analyzed is acquired.
According to this configuration, the parser PS can be generated by performing a simple operation of selecting an item in the first area A41 and designating a rule corresponding to the selected item in the second area. That is, when the control server 15 analyzes the printed text data, the operation performed by the user is simplified.

また、本実施形態では、制御サーバー制御部40は、第1領域A41において、複数の項目のうち、項目に対応するルールに従って項目値を取得する処理を実行した場合に、項目値を取得できる状態とすることが求められる項目については、そのことを示すマークM4a(第1の付加情報)を対応付けて表示する。
この構成によれば、ユーザーは、項目値を取得できる状態とすることが求められる項目について、的確に認識できる。
Further, in the present embodiment, the control server control unit 40 can acquire the item value in the first area A41 when the process of acquiring the item value is executed according to the rule corresponding to the item among the plurality of items. For the items that are required to be, the mark M4a (first additional information) indicating that is displayed in association with each other.
According to this configuration, the user can accurately recognize the item that is required to be in a state where the item value can be acquired.

また、本実施形態では、制御サーバー制御部40は、第1領域A41において、複数の項目のうち、項目に対応するルールに従って項目値を取得する処理を実行した場合に、項目値が取得できないことが検出される項目については、そのことを示すマークM4b(第2の付加情報)を対応付けて表示する。
この構成によれば、ユーザーは、現時点で、項目値が取得できない状態の項目について、的確に認識できる。
Further, in the present embodiment, when the control server control unit 40 executes the process of acquiring the item value according to the rule corresponding to the item among the plurality of items in the first area A41, the item value cannot be acquired. The item in which is detected is displayed in association with the mark M4b (second additional information) indicating that.
According to this configuration, the user can accurately recognize the item in which the item value cannot be acquired at this time.

また、本実施形態では、第4ユーザーインターフェースUI4は、印刷テキストデータに基づくテキストが表示された第3領域A43をさらに有する。
この構成によれば、ユーザーは、印刷テキストデータに基づくテキストを参照しつつ、的確に、第2領域A42への入力を行うことができる。
Further, in the present embodiment, the fourth user interface UI 4 further includes a third area A43 in which a text based on the printed text data is displayed.
According to this configuration, the user can accurately input to the second area A42 while referring to the text based on the printed text data.

また、本実施形態では、印刷テキストデータには、印刷媒体に情報が印刷されるレイアウトに準じてテキストが配置されており、制御サーバー制御部40は、第3領域A43に、レイアウトに準じた状態で、印刷テキストデータに基づくテキストを表示させる。
この構成によれば、ユーザーは、印刷テキストデータに記述された情報の内容、及び、対応するレイアウトを簡易かつ直感的に把握できる。
Further, in the present embodiment, the text is arranged in the print text data according to the layout in which the information is printed on the print medium, and the control server control unit 40 is in the third area A43 in the state according to the layout. To display the text based on the print text data.
According to this configuration, the user can easily and intuitively grasp the content of the information described in the print text data and the corresponding layout.

また、本実施形態では、制御サーバー15は、レシートを発行可能な印刷装置12に接続される。制御サーバー制御部40は、レシートに印刷された情報がテキストとして記述された印刷テキストデータを取得する。
この構成によれば、ユーザーは、簡易な作業を行うことにより、レシートに印刷される情報を分析するプログラム(パーサーPS)を生成できる。すなわち、制御サーバー15よるレシートに対応する印刷テキストデータの分析に際し、ユーザーが行う操作が簡易化する。
Further, in the present embodiment, the control server 15 is connected to a printing device 12 capable of issuing a receipt. The control server control unit 40 acquires the print text data in which the information printed on the receipt is described as text.
According to this configuration, the user can generate a program (parser PS) that analyzes the information printed on the receipt by performing a simple operation. That is, when the control server 15 analyzes the printed text data corresponding to the receipt, the operation performed by the user is simplified.

また、本実施形態では、パーサーPSにより取得する対象とする項目値は、レシートが発行されたときの会計における小計に関する情報(小計情報J72)、合計に関する情報(合計金額情報J92)、又は、購入された商品に関する情報(商品情報J6)を含む。
この構成によれば、ユーザーは、簡易な作業を行うことにより、レシートに印刷される小計情報J72、合計金額情報J92、及び、商品情報J6を取得する処理を実行するプログラム(パーサーPS)を生成できる。
Further, in the present embodiment, the item value to be acquired by the parser PS is information on the subtotal in accounting when the receipt is issued (subtotal information J72), information on the total (total amount information J92), or purchase. Includes information about the product (product information J6).
According to this configuration, the user generates a program (parser PS) that executes a process of acquiring the subtotal information J72, the total amount information J92, and the product information J6 printed on the receipt by performing a simple operation. it can.

また、以上説明したように、本実施形態では、制御サーバー制御部40(制御部)は、印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述されたテキストデータとして取得し、前記複数の項目のうちいずれか1つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成する。
この構成によれば、ユーザーは、ステップ対応画面G423に情報を入力するという簡易な作業を行うことにより、パーサーPSを生成することができる。
Further, as described above, in the present embodiment, the control server control unit 40 (control unit) acquires information including item values of a plurality of items printed on the print medium as text data described in text. , Display one screen in which one of the plurality of items can be selected and a rule can be specified to be used when generating a program for acquiring the item value corresponding to the selected item from the text data. The program is generated based on the rule specified on the screen.
According to this configuration, the user can generate the parser PS by performing a simple operation of inputting information on the step correspondence screen G423.

また、本実施形態では、制御サーバー制御部40は、選択された項目について、選択された項目の項目値を取得する処理を実行するときに使用するフレーム(ルールの種類)を選択させ、フレームに応じて、選択された項目に対応するルールを指定するための情報を入力させるステップ対応画面G423を表示する。
この構成によれば、ユーザーは、フレームに対応するステップ対応画面G423に情報を入力するという簡易な作業を行うことにより、フレームに対応するパーサーPSを生成することができる。
Further, in the present embodiment, the control server control unit 40 causes the selected item to select a frame (rule type) to be used when executing the process of acquiring the item value of the selected item, and causes the frame to be selected. Correspondingly, the step correspondence screen G423 for inputting the information for designating the rule corresponding to the selected item is displayed.
According to this configuration, the user can generate the parser PS corresponding to the frame by performing a simple operation of inputting information on the step corresponding screen G423 corresponding to the frame.

また、本実施形態では、制御サーバー制御部40は、選択された項目について、選択された項目の項目値を取得する処理を実行するときに使用するルールが複数ある場合は、各ルールを指定するための情報を入力させるステップ対応画面G423を順番に表示し、ステップ対応画面G423のそれぞれに入力された情報に基づいて、複数のルールを取得し、取得した複数のルールに基づいてパーサーPSを生成する。
この構成によれば、ユーザーはステップ対応画面G423に、順次、情報を入力する、という簡易な作業を行うことにより、複数のルールに基づいて項目値を取得する処理を実行するパーサーPSを生成できる。
Further, in the present embodiment, the control server control unit 40 specifies each rule for the selected item when there are a plurality of rules to be used when executing the process of acquiring the item value of the selected item. The step correspondence screen G423 for inputting the information for is displayed in order, a plurality of rules are acquired based on the information input to each of the step correspondence screen G423, and the parser PS is generated based on the acquired plurality of rules. To do.
According to this configuration, the user can generate a parser PS that executes a process of acquiring an item value based on a plurality of rules by performing a simple operation of sequentially inputting information on the step correspondence screen G423. ..

また、本実施形態では、ステップ対応画面G423は、コンファームボタンCB(所定のボタン。)を有する。制御サーバー制御部40は、コンファームボタンCBが操作されたことを検出した場合、ステップ対応画面G423に入力された情報に基づいてパーサーPSを生成し、生成したパーサーPSの機能により印刷テキストデータを分析し、分析結果を表示する。
この構成によれば、ユーザーは、分析結果を確認することにより、生成されたパーサーPSの分析結果の妥当性を的確に判別できる。
Further, in the present embodiment, the step correspondence screen G423 has a confirm button CB (a predetermined button). When the control server control unit 40 detects that the confirm button CB has been operated, it generates a parser PS based on the information input to the step correspondence screen G423, and prints text data by the function of the generated parser PS. Analyze and display the analysis results.
According to this configuration, the user can accurately determine the validity of the analysis result of the generated parser PS by checking the analysis result.

また、本実施形態では、制御サーバー15は、レシートを発行可能な印刷装置12に接続される。制御サーバー制御部40は、レシートに印刷された情報がテキストとして記述された印刷テキストデータを取得する。
この構成によれば、ユーザーは、簡易な作業を行うことにより、レシートに印刷される情報を分析するプログラム(パーサーPS)を生成できる。
Further, in the present embodiment, the control server 15 is connected to a printing device 12 capable of issuing a receipt. The control server control unit 40 acquires the print text data in which the information printed on the receipt is described as text.
According to this configuration, the user can generate a program (parser PS) that analyzes the information printed on the receipt by performing a simple operation.

また、本実施形態では、パーサーPSにより取得する対象とする項目値は、レシートが発行されたときの会計における小計に関する情報(小計情報J72)、合計に関する情報(合計金額情報J92)、又は、購入された商品に関する情報(商品情報J6)を含む。
この構成によれば、ユーザーは、簡易な作業を行うことにより、レシートに印刷される小計情報J72、合計金額情報J92、及び、商品情報J6を取得する処理を実行するプログラム(パーサーPS)を生成できる。
Further, in the present embodiment, the item value to be acquired by the parser PS is information on the subtotal in accounting when the receipt is issued (subtotal information J72), information on the total (total amount information J92), or purchase. Includes information about the product (product information J6).
According to this configuration, the user generates a program (parser PS) that executes a process of acquiring the subtotal information J72, the total amount information J92, and the product information J6 printed on the receipt by performing a simple operation. it can.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
また例えば、上述した制御サーバー15の制御方法(情報処理装置の制御方法)が、制御サーバー15が備えるコンピューター、又は、制御サーバー15に接続される外部装置を用いて実現される場合、本発明を、当該方法を実現するためにコンピューターが実行するプログラム、このプログラムをコンピューターで読み取り可能に記録した記録媒体、或いは、このプログラムを伝送する伝送媒体の態様で構成することも可能である。上記記録媒体としては、磁気的、光学的記録媒体又は半導体メモリーデバイスを用いることができる。具体的には、フレキシブルディスク、HDD(Hard Disk Drive)、CD−ROM(Compact Disk Read Only Memory)、DVD(Digital Versatile Disk)、Blu−ray(登録商標)Disc、光磁気ディスク、フラッシュメモリー、カード型記録媒体等の可搬型の、或いは固定式の記録媒体が挙げられる。また、上記記録媒体は、制御サーバー15や、制御サーバー15に接続された外部装置が備える内部記憶装置であるRAM(Random Access Memory)、ROM(Read Only Memory)、HDD等の不揮発性記憶装置でもよい。
また例えば、上述した実施形態では、会計に応じて、印刷装置12が印刷データに基づいて印刷テキストデータを生成した。しかしながら、制御サーバー15が、印刷装置12から印刷データを受信し、受信した印刷データに基づいて印刷テキストデータを生成する構成でもよい。すなわち、印刷テキストデータ(テキストデータ)を生成する主体は、印刷装置12に限らず、何でもよい。
また例えば、上述した実施形態では、印刷装置12と、ホストコンピューターとして機能するタブレット端末13とは、無線通信する構成であった。しかしながら、印刷装置12とホストコンピューターとは、無線通信に限らず、有線LANに係る通信規格や、USB、USB以外のシリアル通信に係る通信規格、パラレル通信に係る規格に従って有線通信する構成でもよい。また、ホストコンピューターは、タブレット端末13のように、タブレット型の装置に限らず、例えば、据え置き型の装置でもよい。
また、図を用いて説明した各機能ブロックはハードウェアとソフトウェアにより任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
It should be noted that the above-described embodiment shows only one aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
Further, for example, when the control method of the control server 15 (control method of the information processing device) described above is realized by using a computer included in the control server 15 or an external device connected to the control server 15, the present invention is defined. It can also be configured in the form of a program executed by a computer to realize the method, a recording medium in which the program is readable by the computer, or a transmission medium for transmitting the program. As the recording medium, a magnetic or optical recording medium or a semiconductor memory device can be used. Specifically, flexible disks, HDDs (Hard Disk Drives), CD-ROMs (Compact Disk Read Only Memory), DVDs (Digital Versatile Disks), Blu-ray (registered trademark) Discs, magneto-optical disks, flash memories, cards. Examples thereof include a portable or fixed recording medium such as a type recording medium. The recording medium may also be a control server 15 or a non-volatile storage device such as a RAM (Random Access Memory), a ROM (Read Only Memory), or an HDD, which is an internal storage device included in the external device connected to the control server 15. Good.
Further, for example, in the above-described embodiment, the printing device 12 generates print text data based on the print data according to the accounting. However, the control server 15 may be configured to receive print data from the printing device 12 and generate print text data based on the received print data. That is, the subject that generates the print text data (text data) is not limited to the printing device 12, and may be anything.
Further, for example, in the above-described embodiment, the printing device 12 and the tablet terminal 13 functioning as a host computer are configured to wirelessly communicate with each other. However, the printing device 12 and the host computer are not limited to wireless communication, and may be configured to perform wired communication in accordance with a communication standard related to a wired LAN, a communication standard related to serial communication other than USB and USB, and a standard related to parallel communication. Further, the host computer is not limited to the tablet-type device such as the tablet terminal 13, and may be, for example, a stationary device.
In addition, each functional block described with reference to the figure can be arbitrarily realized by hardware and software, and does not suggest a specific hardware configuration.

1…会計システム、12…印刷装置、13…タブレット端末、15…制御サーバー、20…タブレット端末制御部、21…タブレット端末通信部、22…タッチパネル、23…タブレット端末記憶部、30…印刷装置制御部、31…印刷部、32…印刷装置記憶部、33…印刷装置通信部、34…印刷装置ネットワーク通信部、35…デバイス通信部、40…制御サーバー制御部、41…制御サーバーネットワーク通信部、42…制御サーバー記憶部、43…制御サーバー表示部、44…制御サーバー入力部、201…アプリケーション実行部、421…パーサー管理データベース、422…分析データ管理データベース、423…印刷装置管理データベース、BR…バーコードリーダー、CD…カスタマーディスプレー、JT…自動釣銭機。 1 ... Accounting system, 12 ... Printing device, 13 ... Tablet terminal, 15 ... Control server, 20 ... Tablet terminal control unit, 21 ... Tablet terminal communication unit, 22 ... Touch panel, 23 ... Tablet terminal storage unit, 30 ... Printing device control Unit, 31 ... Printing unit, 32 ... Printing device storage unit, 33 ... Printing device communication unit, 34 ... Printing device network communication unit, 35 ... Device communication unit, 40 ... Control server control unit, 41 ... Control server network communication unit, 42 ... Control server storage unit, 43 ... Control server display unit, 44 ... Control server input unit, 201 ... Application execution unit, 421 ... Parser management database, 422 ... Analysis data management database, 423 ... Printing device management database, BR ... Bar Code reader, CD ... Customer display, JT ... Automatic change machine.

Claims (9)

表示部と、制御部とを備えた情報処理装置であって、
前記制御部は、
項目、及び、前記項目に対応する項目値を複数含む印刷データ、文字コードで記述たテキストデータとして取得し、
数の前記項目を選択可能な状態で前記表示部に表示する制御を行い
選択を受けた前記項目に関するルールを指定可能な状態で前記表示部に表示する制御を行い
を受けた前記ルールを含むプログラムを生成する、報処理装置。
An information processing device including a display unit and a control unit.
The control unit
The item and the print data including a plurality of item values corresponding to the item are acquired as text data described by the character code .
Performs control to display on the display unit of the item of multiple in a selectable state,
Control is performed to display the selected rule related to the item on the display unit in a state where it can be specified.
Generating a program including the rule which received a specified, information processing apparatus.
前記制御部は、
選択を受けた前記項目について、記ルールの種類を選択可能な状態で表示する制御を行い
指定を受けた前記ルールの種類に応じて、選択を受けた前記項目に関する前記ルールを指定可能な状態で表示する請求項1に記載の情報処理装置
The control unit
For the items that have undergone selection, it performs a control to display the type of pre-Symbol rules in a selectable state,
Depending on the type of the rule has been designated, it is displayed in a specifiable condition the rules related to the item that received selection information processing apparatus according to claim 1.
前記制御部は、
選択を受けた前記項目について、複数の前記ルールがる場合
複数の前記ルールを指定可能な状態で表示する制御を行い
を受けた前記ルールを含む前記プログラムを生成する請求項1又は2に記載の情報処理装置。
The control unit
For the items that have undergone selection, if more than one of the rules is Ru Oh,
Control to display a plurality of the above rules in a specifiable state ,
Generating the program including the rule which received a specified information processing apparatus according to claim 1 or 2.
前記表示部は、所定のボタンを表示可能であり
前記制御部は、
前記所定のボタンへの操作検出した場合、を受けた前記ルールを含む前記プログラムを生成する請求項1から3のいずれか一項に記載の情報処理装置。
The display unit can display a predetermined button and can display a predetermined button.
The control unit
When detecting the operation to the predetermined button, to generate the program including the rule which received a specified information processing apparatus according to any one of claims 1 to 3.
前記制御部は、
生成した前記プログラムの機能により前記テキストデータを分析し、分析結果を表示する制御を行う、請求項4に記載の情報処理装置。
The control unit
The information processing apparatus according to claim 4, wherein the text data is analyzed by the function of the generated program and control is performed to display the analysis result.
レシートを発行可能な印刷装置接続可能であり
前記制御部は、
記レシートに関する前記印刷データを前記テキストデータとして取得する請求項1から5のいずれか一項に記載の情報処理装置。
Can be connected to issue a printing apparatus a receipt,
The control unit
Acquiring the print data about the previous SL receipt as the text data, the information processing apparatus according to any one of claims 1 to 5.
前記項目値は、小計、合計、又は、商品に関する情報のいずれかに対応する情報である請求項6に記載の情報処理装置。 The field values, subtotals, total, or is information corresponding to one of information about a product, the information processing apparatus according to claim 6. 表示部を備えた情報処理装置の制御方法であって、
、及び、前記項目に対応する項目値を複数含む印刷データ、文字コードで記述たテキストデータとして取得し、
数の前記項目を選択可能な状態で表示し、
選択を受けた前記項目に関するルールを指定可能な状態で表示
定を受けた前記ルールを含むプログラムを生成する、情報処理装置の制御方法。
A control method for an information processing device equipped with a display unit.
Item, and, the print data including a plurality of field values corresponding to the item, acquired as text data describing the character code,
Displays the items in multiple in a selectable state,
The rules for the selected item are displayed in a specifiable state .
Generating a program including the rule which received a specified method of controlling an information processing apparatus.
情報処理装置を制御する制御部により実行可能な制御プログラムであって、
前記制御部に、
、及び、前記項目に対応する項目値を複数含む印刷データ、文字コードで記述たテキストデータとして取得する工程と
数の前記項目を選択可能な状態で表示する工程と、
選択を受けた前記項目に関するルールを指定可能な状態で表示する工程と
定を受けた前記ルールを含むプログラムを生成する工程と、を実行させる制御プログラム。
A control program that can be executed by a control unit that controls an information processing device.
In the control unit
Item, and, a step of acquiring the print data including a plurality of field values corresponding to the item, as text data describing the character code,
A step of displaying the items of several in a selectable state,
The process of displaying the rules related to the selected item in a specifiable state, and
Control program to be executed generating a program including the rule which received a specified, a.
JP2016150739A 2016-07-29 2016-07-29 Information processing device, control method of information processing device, and control program Active JP6766503B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016150739A JP6766503B2 (en) 2016-07-29 2016-07-29 Information processing device, control method of information processing device, and control program
US15/663,108 US20180032483A1 (en) 2016-07-29 2017-07-28 Information processing device, control method of an information processing device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016150739A JP6766503B2 (en) 2016-07-29 2016-07-29 Information processing device, control method of information processing device, and control program

Publications (3)

Publication Number Publication Date
JP2018018466A JP2018018466A (en) 2018-02-01
JP2018018466A5 JP2018018466A5 (en) 2019-08-22
JP6766503B2 true JP6766503B2 (en) 2020-10-14

Family

ID=61075282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016150739A Active JP6766503B2 (en) 2016-07-29 2016-07-29 Information processing device, control method of information processing device, and control program

Country Status (1)

Country Link
JP (1) JP6766503B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7006096B2 (en) 2017-09-29 2022-01-24 セイコーエプソン株式会社 Information processing device and control method of information processing device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006023968A (en) * 2004-07-08 2006-01-26 Hitachi Ltd Unique expression extracting method and device and program to be used for the same
KR101139801B1 (en) * 2010-03-12 2012-04-30 에스케이마케팅앤컴퍼니 주식회사 Automatic data gathering system using by reading receipt and method thereof
JP5736851B2 (en) * 2011-03-04 2015-06-17 セイコーエプソン株式会社 Sales analysis program using print data, sales information acquisition device, and sales information acquisition method
JP5216890B2 (en) * 2011-04-15 2013-06-19 株式会社富士通マーケティング Receipt data recognition device and program thereof
JP6337778B2 (en) * 2012-12-28 2018-06-06 セイコーエプソン株式会社 Data conversion system, data conversion device, and data conversion method

Also Published As

Publication number Publication date
JP2018018466A (en) 2018-02-01

Similar Documents

Publication Publication Date Title
JP6759817B2 (en) Information processing device, control method of information processing device, and control program
EP3489816B1 (en) Information processing device, control method of information processing device, and storage medium
US20090066996A1 (en) Printing System, POS System, Connection Device, Control Method of Printing System, and Program Therefor
US20180032483A1 (en) Information processing device, control method of an information processing device, and storage medium
JP6657945B2 (en) Control server, information processing system, and control server control method
JP2005275686A (en) Cash registering device, cash registering system, display control program for cash registering device, and computer-readable recording medium recording this program
JP6766503B2 (en) Information processing device, control method of information processing device, and control program
JP6949596B2 (en) Product data processing device and product data processing program
JP6772636B2 (en) Information processing device, control method of information processing device, and control program
JP2016076158A (en) Information processing device, accounting system, and recording medium
US10078829B2 (en) Information processing device, transaction processing system, and recording device
US10984298B2 (en) Acquiring item values from printers based on notation form settings
US10990861B2 (en) Printer communication using formatted printing information and alteration or deletion of formatted printing information
JP7006096B2 (en) Information processing device and control method of information processing device
JP6756102B2 (en) Information processing device, information processing method of information processing device, and information processing system
JP2021184317A (en) Commodity sales data processing apparatus and input control program
JP2013210914A (en) Label issuing machine for field crop direct-sales site
JP7205178B2 (en) Information processing device and control method for information processing device
JP7183718B2 (en) PRINTING DEVICE AND INFORMATION PROCESSING SYSTEM
JP6452582B2 (en) Tax exemption processing system, information processing apparatus and program thereof
JP2014167830A (en) Commercial transaction processor and receipt detail retrieval program
JP5502838B2 (en) Product sales data processing apparatus and program
JP2024015275A (en) Product sales data processing device and control program
JP2019067040A (en) Information processing apparatus and control method thereof
JP6138198B2 (en) Commerce processing apparatus and receipt details search program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190710

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190710

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200527

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200831

R150 Certificate of patent or registration of utility model

Ref document number: 6766503

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150