JP2018018466A - Information processing device, control method for the same, and control program - Google Patents

Information processing device, control method for the same, and control program Download PDF

Info

Publication number
JP2018018466A
JP2018018466A JP2016150739A JP2016150739A JP2018018466A JP 2018018466 A JP2018018466 A JP 2018018466A JP 2016150739 A JP2016150739 A JP 2016150739A JP 2016150739 A JP2016150739 A JP 2016150739A JP 2018018466 A JP2018018466 A JP 2018018466A
Authority
JP
Japan
Prior art keywords
information
item
receipt
character string
screen
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.)
Granted
Application number
JP2016150739A
Other languages
Japanese (ja)
Other versions
JP6766503B2 (en
JP2018018466A5 (en
Inventor
英久 大宮
Hidehisa Omiya
英久 大宮
恒二 西澤
Tsuneji Nishizawa
恒二 西澤
文熙 李
Mun Hee Lee
文熙 李
亮太 下里
Ryota Shimozato
亮太 下里
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

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow a program for analyzing information to be printed to be simply generated.SOLUTION: A control server 15 includes a control server control unit 40 that acquires information including item values of a plurality of items to be printed on a printing medium, causes any one item out of the plurality of items to be selected, causes a screen in which a rule used in generating a program for acquiring an item value corresponding to the selected item from the text data can be specified to be displayed, and generates the program on the basis of the rule specified on the screen.SELECTED DRAWING: Figure 2

Description

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

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

特開2012−27633号公報JP 2012-27633 A

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

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

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

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

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

また、本発明は、前記制御部は、生成した前記プログラムの機能により前記テキストデータを分析し、分析結果を表示させる。
本発明によれば、ユーザーは、分析結果を確認することにより、生成されたプログラムの分析結果の妥当性を的確に判別できる。
In the present invention, the control unit analyzes the text data by using 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 apparatus capable of issuing a receipt, and the control unit acquires information printed on the receipt by the printing apparatus as the text data.
According to the present invention, a user can generate a program for analyzing information printed on a receipt by performing a simple operation.

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

また、本発明の情報処理装置の制御方法は、印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述されたテキストデータとして取得し、前記複数の項目のうちいずれか1つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成する。
本発明によれば、ユーザーは、画面でルールを指定するという簡易な作業を行うことにより、プログラムを生成することができる。
The information processing apparatus control method according to the present invention acquires information including item values of a plurality of items to be printed on a print medium as text data described in text, and selects any one of the plurality of items. Based on the rules specified on the screen, the user can select an item and display a screen for specifying a rule to be used when generating a program for acquiring an item value corresponding to the selected item from the text data. 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つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成させる。
本発明によれば、ユーザーは、画面でルールを指定するという簡易な作業を行うことにより、プログラムを生成することができる。
In addition, the present invention is a control program that can be executed by a control unit that controls an information processing apparatus, and information including item values of a plurality of items to be 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 that acquires as text data, selects any one of the plurality of items, and acquires an item value corresponding to the selected item from the text data A screen is displayed, and the program is generated based on the rules 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. 会計システムの各装置の機能的構成を示すブロック図。The block diagram which shows the functional structure of each apparatus of an accounting system. タブレット端末、印刷装置、制御サーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a tablet terminal, a printing apparatus, and a control server. 印刷データの一例を示す図。The figure which shows an example of print data. レシートの一例を示す図。The figure which shows an example of a receipt. レシートの一例を示す図。The figure which shows an example of a receipt. 印刷テキストデータの一例を示す図。The figure which shows an example of print text data. 印刷テキストデータの一例を示す図。The figure which shows an example of print text data. パーサー管理データベースのレコードを示す図。The figure which shows the record of a parser management database. 分析項目の説明に利用する図。The figure used for explanation of an analysis item. 分析データの一例を示す図。The figure which shows an example of analysis data. 分析データ管理データベースのレコードを示す図。The figure which shows the record of an analysis data management database. 第1ユーザーインターフェースを示す図。The figure which shows a 1st user interface. 第2ユーザーインターフェースを示す図。The figure which shows a 2nd user interface. 第3ユーザーインターフェースを示す図。The figure which shows a 3rd user interface. 印刷装置管理データベースのレコードを示す図。The figure which shows the record of a printing apparatus management database. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 図6Aの印刷テキストデータに含まれる単語を示す表。The table | surface which shows the word contained in the printing text data of FIG. 6A. 図6Bの印刷テキストデータに含まれる単語を示す表である。It is a table | surface which shows the word contained in the printing text data of FIG. 6B. 図6Bの印刷テキストデータに基づくテキストが表示されたテキスト表示画面を示す図。The figure which shows the text display screen on which the text based on the print text data of FIG. 6B was displayed. 図6Bの印刷テキストデータに基づくテキストが表示されたテキスト表示画面を示す図。The figure which shows the text display screen on which the text based on the print text data of FIG. 6B was displayed. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 制御サーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a control server. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 4th user interface. 第4ユーザーインターフェースを示す図。The figure which shows a 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, restaurants, and the like. The store only needs to be a facility where merchandise is provided and customer accounting is performed in accordance with the provision of the merchandise. In the present embodiment, “product” means not only a product delivered to a customer as an object, but also a service provided to the customer, food and drink provided to the customer, etc., and an object provided to the customer in exchange for consideration. To do.
The store system 11 has a function of performing accounting according to a product purchased by a customer, a function of issuing a receipt according to 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 store to which the store system 11 is applied is provided with a cashier counter L for a customer to pay for. The register counter L is provided with a printing device 12 having a function of printing on roll paper (print medium). In addition, the register counter L is provided with a tablet terminal 13 that is connected to the printing apparatus 12 so as to be capable of wireless communication and controls the printing apparatus 12.
At the time of payment at the cashier counter L, the cashier in charge reads the barcode attached to the product or the product packaging with the barcode reader BR connected to the printing device 12, and responds to the accounting with respect to the tablet terminal 13. Make input. The printing apparatus 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 received from the printing device 12 based on the reading of the barcode reader BR and the input corresponding to the transaction by the cashier, and causes the printing device 12 to issue a receipt. . The receipt issued by the printing apparatus 12 is delivered to the customer by the cashier.
The configuration, function, 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.
A printing device 12 is connected to the local area network LN.
A 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 function related to a modem (or ONU (Optical Network Unit)), 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 / received between devices during communication performed between a device connected to the local area network LN and a device connected to the global network GN. In FIG. 1, the communication device 14 is represented by one block, but the communication device 14 may have a plurality of devices according to 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 that can communicate with the printing device 12. That is, the control server 15 executes a predetermined calculation process with a request from the client as a trigger. The control server 15 transmits data based on the result of the arithmetic processing to the client as necessary. In FIG. 1, the control server 15 is expressed by one block, but this does not mean that the control server 15 is configured by 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 can execute various processes described later.

図2は、会計システム1が備える各装置の機能的構成を示すブロック図である。
タブレット端末13は、前面の広い領域にタッチパネル22が設けられたタブレット型の(板状の)端末である。タブレット端末13は、レジカウンターLにおける会計に際し、会計に関する各種処理を実行して印刷装置12を制御するホストコンピューターとして機能する。
図2に示すように、タブレット端末13は、タブレット端末制御部20と、タブレット端末通信部21と、タッチパネル22と、タブレット端末記憶部23と、を備える。
FIG. 2 is a block diagram illustrating 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 a 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 apparatus 12 by executing various processes related to the accounting at the time of the accounting at the checkout 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 process, and executes the process by the function installed in the ASIC, for example, and performs the signal processing in the signal processing circuit, for example. The processing is executed by hardware and software, for example, the processing is executed. A predetermined application is installed in the tablet terminal 13 in advance. The tablet terminal control unit 20 functions as the 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 apparatus 12 according to a predetermined wireless communication standard under the control of the tablet terminal control unit 20. The wireless communication standard of communication performed between the tablet terminal 13 and the printing apparatus 12 is a standard related to a wireless LAN corresponding to the ad hoc mode, a standard related to a wireless LAN corresponding to the infrastructure mode, Bluetooth (registered trademark), etc. Any standard, such as a standard for short-range wireless communication, may be used.

タッチパネル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 overlap the display panel. The display panel displays various images under the control of the tablet terminal control unit 20. The touch sensor detects a touch operation and outputs it to the tablet terminal control unit 20. The tablet terminal control unit 20 executes processing corresponding to the touch operation based on the input from the touch sensor.

タブレット端末記憶部23は、不揮発性メモリーを備え、各種データを記憶する。   The tablet terminal storage unit 23 includes a nonvolatile 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 accommodates roll paper and forms dots on the accommodated roll paper with a line-type thermal head to print an image.
Note that the printing method of the printing apparatus 12 according to the present embodiment is a thermal method, but the printing method of the printing apparatus 12 is not limited to the thermal method, and may be another printing method such as an inkjet method. Further, the print head of the printing apparatus 12 is not limited to the line type but may be a serial type.
As shown in FIG. 2, the printing apparatus 12 includes a printing apparatus control unit 30, a printing unit 31, a printing apparatus storage unit 32, a printing apparatus communication unit 33, a printing apparatus network communication unit 34, and a device communication unit 35. And comprising.

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

印刷部31は、印刷装置12の筐体に収容されたロール紙を搬送する搬送機構や、サーマルヘッドによってロール紙にドットを形成して画像を印刷する印刷機構、ロール紙を所定の位置で切断する切断機構等のロール紙への印刷に関する各種機構を備える。印刷部31は、印刷装置制御部30の制御で、搬送機構によりロール紙を搬送し、印刷機構によりロール紙にレシートに係る画像を印刷し、切断機構により所定の位置でロール紙を切断して、レシートを発行する。   The printing unit 31 is a transport mechanism that transports roll paper accommodated in the casing of the printing apparatus 12, a printing mechanism that forms dots on the roll paper with a thermal head, and prints an image. The roll paper is cut at a predetermined position. Various mechanisms relating to printing on roll paper, such as a cutting mechanism to perform. The printing unit 31 controls the printing apparatus control unit 30 to convey the roll paper by the conveyance mechanism, print the image related to the receipt on the roll paper by the printing mechanism, and cut the roll paper at a predetermined position by the cutting mechanism. And issue a receipt.

印刷装置記憶部32は、不揮発性メモリーを備え、各種データを記憶する。   The printing device storage unit 32 includes a nonvolatile 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 according to a predetermined wireless communication standard under the control of the printing device control unit 30. The wireless communication standard of communication performed between the tablet terminal 13 and the printing device 12 is a standard related to a wireless LAN corresponding to the ad hoc mode, a standard related to a wireless LAN corresponding to the infrastructure mode, or short-range wireless such as Bluetooth. Any standard such as a standard related to communication may be used.

印刷装置ネットワーク通信部34は、印刷装置制御部30の制御で、グローバルネットワークGNと接続する機器(制御サーバー15を含む。)と所定の通信規格に従って通信する。印刷装置ネットワーク通信部34が通信に用いる通信規格は、HTTPや、WebSocket等、どのような規格でもよい。   The printing device network communication unit 34 communicates with devices (including the 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 by the printing apparatus network communication unit 34 for communication 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 (such as RS232C), a port conforming to a parallel communication standard (such as IEEE 1284), and a communication standard related to a wired LAN. An interface board having a port according to (Ethernet (registered trademark), etc.) and other ports is provided. A device can be connected to each port. The device communication unit 35 communicates with a device connected to the printing apparatus 12 via a port under the control of the printing apparatus control unit 30.
The device communication unit 35 may have a wireless communication function and wirelessly communicate with the device.

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

制御サーバー制御部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 a program stored in the ROM into the RAM and executes processing, and executes processing by a function installed in, for example, the ASIC, and performs signal processing by, for example, a signal processing circuit The processing is executed by hardware and software, for example, the processing is executed.

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

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

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

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

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

図3は、レジカウンターLで会計が行われた場合のタブレット端末13、印刷装置12、及び、制御サーバー15の動作を示すフローチャートである。図3のフローチャートFAはタブレット端末13の動作を示し、フローチャートFBは印刷装置12の動作を示し、フローチャートFCは制御サーバー15の動作をそれぞれ示す。   FIG. 3 is a flowchart showing the operations of the tablet terminal 13, the printing device 12, and the control server 15 when the checkout is performed at the checkout counter L. 3 shows the operation of the tablet terminal 13, the flowchart FB shows the operation of the printing apparatus 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 an accounting process (settlement process) according to the customer's accounting, and print data based on the accounting process. Generate (step SA1).

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

図4は、印刷データの一例である印刷データDT1を示す図である。
図4の印刷データDT1に示すように、印刷データには、グラフィック画像印刷指示コマンドCM1と、文字列印刷関連コマンド群GMと、改行コマンドLFと、カットコマンドCM4とを含む。また、文字列印刷関連コマンド群GMは、文字列装飾コマンドCM2と、文字列印刷指示コマンドCM3とを含む。
FIG. 4 is a diagram illustrating print data DT1 that is an example of print data.
As shown in the print data DT1 in 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. 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 includes a dedicated instruction code and image data such as bitmap data, and is a control command for instructing printing of a graphic image based on the image data. Image data is data that holds information about the color of each dot for 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 an apparatus functioning as a host computer (in this embodiment, a tablet terminal 13). Logo information J1 to be 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 printing of a character string for one line. The character string print instruction command CM3 includes a dedicated instruction code and character string information for instructing printing (a combination of character codes of one or more 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 decoration to be applied to the character string instructed to be printed by the character string printing instruction command CM3. The decoration applied to the character string is, for example, right alignment, center alignment, left alignment, bolding, underline addition, emphasis point addition, black and white inversion, rotation, enlargement, and reduction.

ここで、印刷装置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 font data of printable characters. The printing device control unit 30 of the printing device 12 executes the following processing when printing a character string based on one character string printing related command group GM. That is, the printing apparatus control unit 30 converts each character code included in the character string printing instruction command CM3 included in the one character string printing related command group GM into corresponding font data by a predetermined unit. To do. Next, the printing apparatus control unit 30 applies decoration specified by the character string decoration command CM2 included in the one character string printing related command group GM to each font data, and develops each font data in the image buffer. . Next, the printing apparatus control unit 30 controls the printing unit 31 based on each of the font data developed 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 generating the print data in step SA1, the application execution unit 201 controls the tablet terminal communication unit 21 to transmit the generated print data to the printing apparatus 12 (step S1). 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 apparatus control unit 30 controls the printing unit 31 based on the print data received in step SB1, and issues a receipt (step SB2). The issued receipt is delivered to the customer.

ここで、店舗において印刷装置12により発行されるレシートには、以下の特徴がある。すなわち、1の印刷装置12が発行するレシートのレイアウトは、タブレット端末13にインストールされた所定のアプリケーションの変更がない限り、同じである。一方、印刷装置12と通信するタブレット端末13の違いによって、1の印刷装置12と、他の印刷装置12とでは、発行するレシートのレイアウトが、相互に異なる場合がある。   Here, the receipt issued by the printing device 12 in the store has the following characteristics. That is, the layout of a receipt issued by one printing apparatus 12 is the same unless there is a change in a predetermined application installed in the tablet terminal 13. On the other hand, depending on the difference in the tablet terminal 13 that communicates with the printing apparatus 12, the layout of issued receipts may be different between one printing apparatus 12 and another printing apparatus 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 the layout of the receipt R1 illustrated in FIG. 5A. Note that the content of information printed on the receipt R1 illustrated in FIG. 5A is identical to the content of information printed on the receipt R2 illustrated in FIG. 5B.

なお、本実施形態では、文字コードが割り当てられた対象のことを「文字」と表現する。従って、文字には、文字コードが割り当てられた記号(「@」や、「−」、「$」、「¥」等。)や、文字コードが割り当てられた空白文字(スペースや、ブランクと呼ばれる場合もある。)が含まれる。以下、空白文字を、適宜、「△」で表す。   In the present embodiment, a target to which a character code is assigned is expressed as “character”. Therefore, a character is assigned a symbol (“@”, “−”, “$”, “¥”, etc.) to which a character code is assigned, or a blank character (space or blank) to which a character code is assigned. In some cases). Hereinafter, a space 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 designed is printed at the top. 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, store address information J2 representing the store address as a character string is printed in one line. The store address information J2 is stored in a character string printing related command group GM including a character string decoration command CM2 for designating decoration related to center alignment and a character string print instruction command CM3 for instructing printing of a character string representing a 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 includes a character string printing related command group including a character string decoration command CM2 for designating decoration related to center alignment and a character string print instruction command CM3 for instructing printing of a character string representing the telephone number of the store. Printing is performed 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 phone number information J3. The first area division information SK1 is a character string in which a predetermined number of characters “-” are continuously arranged in one line.
In the receipt R1, the print area is divided by the first first area division information SK1, and the area above the first first area division information SK1 is divided. Hereinafter, an area above the first area division information SK1 in the receipt R1 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 below one line of the first first area division information SK1. The receipt identification related information J4 includes receipt identification information J42 that represents the identification information for identifying the receipt as a character string. The value of the receipt identification information J42 is different 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 information specifying that the receipt identification information J42 is identification information for identifying the receipt is a character string. The receipt identification explicit information J41 expressed by As shown in FIG. 5A, the receipt identification explicit information J41 related to the receipt R1 is information including a character string “Check #:”.
The receipt identification related information J4 is printed on the basis of a character string printing related command group GM including a character string decoration command CM2 for designating decoration related to center 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 including a character string representing the receipt identification explicit information J41, one blank character, and a character string representing the receipt identification information J42. In the receipt R1 of FIG. 5A, “a character string in which a character string representing the receipt identification explicit information J41, a blank character, and a character string representing the receipt identification information J42” is a 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 below the receipt identification related information J4. The issue date / time information J5 is a character string printing related command including a character string decoration command CM2 for designating decorations for center alignment and a character string print instruction command CM3 for instructing printing of a character string representing the date and time when a receipt is issued. Printing is performed based on the 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 below the issue date information J5.
In the receipt R1, the print area is divided by the first first area division information SK1 and the second first area division information SK1, and the area surrounded by the information is divided into areas. Hereinafter, in the receipt R1, an 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 (“2” in the example of FIG. 5A) product information J6 is printed below one line of the second first area division information SK1.
The product information J6 is information related to the product purchased by the 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 is printed. When a plurality of product information J6 is printed on the receipt R1, the plurality of product information J6 is continuously printed one line at a time on different lines.
The product information J6 includes purchase quantity information J61, product name information J62, and unit price information J63. Purchase quantity information J61, product name information J62, and 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.
The receipt R1 is printed in the order of purchase quantity information J61, product name information J62, and unit price information J63 toward the right in one line.

商品情報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 merchandise information J6 is printed based on a character string printing related command group GM including a character string decoration command CM2 for designating decorations to be left-justified and the following character string print instruction command CM3. The character string print instruction command CM3 includes a character string representing purchase quantity information J61, one blank character, a character string representing product name information J62, one or more blank characters, and a character representing unit price information J63. This is a control command for instructing printing of a character string that is continuous with a string. 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 positioned at the end of the “line”. The Of the product information J6 printed on the receipt R1 in FIG. 5A, the product information J6 printed at the top is “character string representing purchase quantity information J61, one blank character, and 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” is a 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 below one line of 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 arranged in one line.
In the receipt R1, the print area is divided by the second first area division information SK1 and the first second area division information SK2, and the area surrounded by the information is divided into areas. Hereinafter, in the receipt R1, an 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 below 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 in the same line of the subtotal information J72, and the subtotal information J71 expressing information indicating that the subtotal information J72 is information indicating a subtotal by a character string. Have As shown in FIG. 5A, the subtotal explicit information J71 related to the receipt R1 is a character string including eight uppercase alphabetic character strings “SUBTOTAL”.
The subtotal related information J7 is printed based on a character string printing related command group GM including a character string decoration command CM2 for designating a decoration for 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”. The In the receipt R1 of FIG. 5A, “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” continues is a 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」である。
In the receipt R1, the tax related information J8 is printed below the subtotal related information J7. The tax related information J8 includes 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 in the same line as the tax amount information J82, and the tax explicit information J81 that expresses information indicating that the tax amount information J82 is information indicating the tax amount by a character string. Have As shown in FIG. 5A, the tax clarification information J81 related to the receipt R1 is a character string composed of three uppercase alphabetic character strings “TAX”.
The tax related information J8 is printed based on a character string printing related command group GM including a character string decoration command CM2 for designating a left-justified decoration 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 positioned at the end of the “line”. The In the receipt R1 of FIG. 5A, “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” continues is a 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 below the tax related information J8. The total amount related information J9 has total amount information J92 that represents 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 in 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 expressed by a character string. It has total amount explicit information J91 to represent. 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 a character string printing related command group GM including a character string decoration command CM2 for designating a left-justified decoration 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 more blank characters, and a 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 positioned at the end of the “line”. Adjusted. In the receipt R1 of FIG. 5A, “a character string in which the total amount explicit information J91, one or a plurality of blank characters, and a character string representing the total amount information J92” continue is a 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がこの順番で印刷される。   Thus, 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 of area AA1, area AA2, area AA3, and area AA4 in order from the top based on these three area division information. Is done. In area AA1, logo information J1, store address information J2, and store phone number information J3 are printed in this order. In area AA2, receipt identification related information J4 and issue date information J5 are printed in this order. In the area AA3, one or a plurality of product information J6 is printed. The product information J6 is printed in the order of purchase quantity information J61, product name information J62, and unit price information J63 toward the right in one line. In the area AA4, the subtotal related information J7, the tax related information J8, and the total amount related information J9 are printed in this order.

上述したように、レシート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 indicated by the receipt R1 regardless of the contents of the products purchased by the customer.

図5Bで例示するレシートR2には、先頭に、ロゴ情報J1が印刷される。   Logo information J1 is printed at the top 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, receipt identification related information J4 is printed below the logo information J1. The receipt identification related information J4 includes receipt identification explicit information J41 and receipt identification information J42.
As shown in FIG. 5B, the receipt identification explicit information J41 related to the receipt R2 is information including the character string “CheckNO.”, And the form 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 center-aligned. In the receipt R2, one blank character is inserted between the receipt identification explicit information J41 and the receipt identification information J42.

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

レシート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 below one line of the issue date information J5.
The receipt R2 is divided into areas by dividing the area 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 (“2” in the example of FIG. 5B) product information J6 is printed continuously on different lines one line below the first area division information SK1. Is 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 toward the right within one line.

レシート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 merchandise information J6 is printed based on a character string printing related command group GM including a character string decoration command CM2 that specifies a left-justified decoration and a character string printing instruction command CM3 described below. The character string print instruction command CM3 includes a character string representing the product name information J62, one or more blank characters, a character string representing the purchased quantity information J61, one or more blank characters, and unit price information. This is a control command for instructing printing of a character string in which a character string representing J63 is continuous. The number of blank characters inserted between the character string representing the product name information J62 and the character string representing the purchased quantity information J61 is such that the position of the purchased quantity information J61 is a predetermined position in the “row”. 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 positioned at the end of the “line”. Is done. Of the product information J6 printed on the receipt R2 in 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. A character string in which a character string representing the information J61, one or more blank characters, and a character string representing the unit price information J63 ”is a character string“ BeerΔΔ... ΔΔ1ΔΔ.・ △△ 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, subtotal related information J7 is printed below one line of 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 made up of nine lowercase alphabetic characters “sub-total”. The subtotal explicit information J71 related to the receipt R1 Is different.
In the receipt R2, the subtotal related information J7 is printed based on a character string printing related command group GM including a character string decoration command CM2 for designating a left-justified decoration 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”. The In the receipt R2 of FIG. 5B, “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 is a 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」である。
In the receipt R2, the tax related information J8 is printed below the subtotal related information J7. As shown in FIG. 5B, the tax clarification information J81 related to the receipt R2 is composed of a character string composed of five lowercase alphabet “sales”, one blank character, and three lowercase alphabetic “tax”. The character string “salesΔtax” is a continuous character string, and the character string mode is different from the tax clarification information J81 related to the receipt R1.
In the receipt R2, the tax related information J8 is printed based on a character string printing related command group GM including a character string decoration command CM2 for designating decorations to be left-justified 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 positioned at the end of the “line”. The In the receipt R2 of FIG. 5B, “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 information J82” 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」とする。
In the receipt R2, the third area division information SK3 is printed below the tax-related information J8. The third area division information SK3 is a character string in which a plurality of characters “=” are continuously formed in one line.
In the receipt R2, the print area is divided by the first first area division information SK1 and the first third area division information SK3, and the area surrounded by the information is divided into areas. Hereinafter, in the receipt R2, an 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 below 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 made up of five lowercase alphabetic characters “total”, and the total amount explicit information J91 related to the receipt R1 and the character string form are Is different.
In the receipt R2, the total amount related information J9 is printed based on a character string printing related command group GM including a character string decoration command CM2 for designating a left-justified decoration 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 more blank characters, and a 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 positioned at the end of the “line”. Adjusted. In the receipt R2 of FIG. 5B, “a character string in which the total amount explicit information J91, one or more blank characters, and a character string representing the total amount information J92” are consecutive.・ △△ 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 one line below the total amount related information J9.
In the receipt R2, the print area is divided by the first third area division information SK3 and the second first area division information SK1, and the area surrounded by the information is divided into areas. Hereinafter, in the receipt R2, an area surrounded by the first third area division information SK3 and the second first area division information SK1 is referred to as “area AB3”. 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 phone 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 below the store phone number information J3. The store address information J2 is printed center-aligned.
Thus, 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 of area AB1, area AB2, area AB3, and area AB4 in order from the top by these three area division information. Is done. In the area AB1, logo information J1, receipt identification related information J4, and issue date information J5 are printed in this order. In the area AB2, one or a plurality of product information J6, subtotal related information J7, and tax related information J8 are printed in this order. In the area AB3, the total amount related information J9 is printed. In the area AB4, additional information J10, store telephone number information J3, and store address information J2 are printed in this order.

上述したように、レシート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 indicated by the receipt R2 regardless of the contents of the product purchased by the customer.

また、図5Aと、図5Bとの比較で明らかなとおり、レシートR1と、レシートR2とでは、レイアウトが異なる。
なお、レシートに印刷される情報のそれぞれが、「レシート情報」に相当する。図5AのレシートR1、及び、図5BのレシートR2で例示したように、レシートには、レシート情報が、所定のレイアウトに従って印刷される。
Further, as is clear from a comparison between FIG. 5A and FIG. 5B, the layout is different between the receipt R1 and the receipt R2.
Each piece of information printed on the receipt corresponds to “receipt information”. As illustrated in the receipt R1 in FIG. 5A and the receipt R2 in 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 apparatus 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 information to be printed as characters out of information printed on roll paper based on the print data is described as text (character code).
In step SB3, the printing apparatus control unit 30 extracts a character string print instruction command CM3 and a line feed command LF, which are control commands related to character string printing, from the print data. Next, the printing apparatus control unit 30 generates print text data in which information to be printed as characters on the receipt is described as text based on the extracted control command.
The printing apparatus control unit 30 describes the information in a state in which a line break performed in printing is reflected in the print text data. Further, the printing apparatus control unit 30 describes the information in a state where the decoration designated by the character string decoration command CM2 is not reflected in the print text data. Accordingly, even when center alignment and right alignment are instructed as decorations to be applied to the character string by the character string decoration command CM2, these decorations are not reflected when the text is described 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 illustrating 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 apparent from a comparison between FIG. 6A and FIG. 5A, 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 illustrating 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 apparent from a comparison between FIG. 6B and FIG. 5B, 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 characters printed based on the font data corresponding to the character code is not described in the print 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 generating the print text data in step SB3, the printing apparatus control unit 30 executes the serial number J11, the store identification information J12, the print data received in step SB1, and the 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 apparatus 12 at the manufacturing stage of the printing apparatus 12, and is stored in a predetermined storage area of the printing apparatus storage unit 32. In step SB4, the printing apparatus control unit 30 acquires the serial number J11 stored in a predetermined storage area of the printing apparatus storage unit 32.
The store identification information J12 is identification information for identifying the store in which the printing apparatus 12 is provided, and is stored in a predetermined storage area of the printing apparatus storage unit 32. In step SB4, the printing apparatus control unit 30 acquires the store identification information J12 stored in a predetermined storage area of the printing apparatus storage unit 32.
In step SB4, information related to communication necessary for transmitting the serial number J11 and the like (information regarding the transmission destination, protocol used for communication, format of data to be transmitted, etc.) is registered in advance in the printing apparatus 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 to transmit the serial number J11, store identification information J12, print data, The print text data is received (step SC1).

次いで、制御サーバー制御部40は、パーサー管理データベース421(後述)を参照し、ステップSC1で受信したシリアル番号J11の値と同一の値のシリアル番号J11と対応付けられたパーサーセットPSSを取得する(ステップSC2)。   Next, the control server control unit 40 refers to a parser management database 421 (described later), and acquires a 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 included 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. The parser set PSS includes 15 parser PSs, which are a first parser PS1 to a fifteenth parser PS15. The parser PS (first parser PS1 to fifteenth 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 text data analysis processing based on the acquired parser set PSS (step SC3).
The text data analysis process in step SC3 is a process of analyzing the print text data based on the parser set PSS and acquiring item values for a plurality of predetermined items or detecting that item values cannot be acquired. It is. Hereinafter, in the text data analysis process of step SC3, an item for which an item value is acquired is referred to as a “receipt item”.
In the present embodiment, there are the following 15 items as receipt items. In the following description, “property” represents a corresponding property when an item is described in data in JSON format (analysis data, response data, etc. described later). Details of the receipt item 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 information item (property “is_void”).
Member information item (property “memberships”).
Payment method information item (property “payment_methods”).
Issue date information item (property “printed_at”).
Item information item (property “products”).
Receipt identification information item (property “recept_id”).
Sales method information item (property “sale_type”).
Staff information item (property “stuff”).
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 includes a parser PS corresponding to each receipt item. The parser PS corresponding to one receipt item is a program having a function of analyzing print text data and acquiring the item value of the one receipt item or detecting that it cannot be acquired. In the present embodiment, the parser set PSS includes a first parser P1 having a function of acquiring item values of customer identification information items, a second parser P2 having a function of acquiring item values of accounting discount information items, and a customer number information item. A third parser P3 having a function of acquiring the item value, a fourth parser P4 having a function of acquiring the item value of the withdrawal presence / absence information item, a fifth parser P5 having a function of acquiring the item value of the cancellation presence / absence information item, A sixth parser P6 having a function of acquiring item values of member information items, a seventh parser P7 having a function of acquiring item values of payment method information items, and an eighth having a function of acquiring item values of issue date information items A parser P8, a ninth parser P9 having a function of acquiring item values of product information items, and a tenth component having a function of acquiring item values of receipt identification information items. Sir P10, an eleventh parser P11 having a function of acquiring item values of sales method information items, a twelfth parser P12 having a function of acquiring item values of staff information items, and a function of acquiring item values of subtotal information items A thirteenth parser P13, a fourteenth parser P14 having a function of acquiring item values of tax information items, and a fifteenth parser P15 having a function of acquiring item values of total amount information items.

なお、テキストデータ分析処理は、制御サーバー15にインストールされた制御プログラム、及び、当該制御プログラムに付随するプログラムの機能により実行される。そして、第1パーサーP1〜第15パーサーP15は、当該所定のプログラムにより呼び出し可能なプログラムであり、所定のスクリプト言語によって記述される。   The text data analysis process is executed by the function of a control program installed in the control server 15 and a program accompanying 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 in 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 the item value for each of the fifteen receipt items described above based on each of the first parser PS1 to the fifteenth parser PS15 included in the parser set PSS. 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 data in JSON format in which each of the above-described receipt items, each of the following items, and an item value are described in association with each other.
General identification information item (property “guid”).
Serial number item (property “serial_no”).
Store identification information item (property “shop_id”).

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

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

図8に示すように、店舗識別情報項目は、データ型:integerのプロパティー「shop_id」に対応する項目である。店舗識別情報項目の項目値は、店舗識別情報J12である。制御サーバー制御部40は、分析データの生成に際し、ステップSC1で受信した店舗識別情報J12を、必要に応じてデータ型をデータ型:integerに変換し、店舗識別情報項目と対応付けて分析データに記述する。
図9で例示する分析データにおいて、プロパティー「shop_id」は、領域A3に記述される。
As illustrated 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 store identification information J12. When generating the analysis data, the control server control unit 40 converts the store identification information J12 received in step SC1 into a data type: integer as necessary, and associates it with the store identification information item into the analysis data. Describe.
In the analysis data illustrated in FIG. 9, the property “shop_id” is described in the area 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”) for identifying a customer who has made a transaction.
In accounting, a customer card in which customer identification information J16 is recorded may be read, and customer identification information J16 may be printed on a receipt. In this case, the customer identification information J16 is included in the receipt information, and a 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 print text data by using the function of the first parser PS1, and acquires the customer identification information J16 or detects that it cannot be acquired. When acquiring 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 by 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 customer identification information item.
In the analysis data illustrated in FIG. 9, the property “consumer_id” is described in the area 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 the 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 discount applied to the accounting (hereinafter, “accounting discount amount information J18”).
In accounting, certain discounts may apply. In this case, accounting discount name information J17 and accounting discount amount information J18 corresponding to a predetermined discount applied to accounting may be printed on the receipt. In this case, the receipt information includes accounting discount name information J17 and accounting discount amount information J18, and the print text data includes a character string indicating accounting discount name information J17 and a character string indicating accounting discount amount information J18. 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 print 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 generates 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 by 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.
In addition, 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 when acquiring the accounting discount amount information J18 by the text data analysis process. Try. If the accounting discount amount information J18 is not information in which a character representing a number or a predetermined symbol (such as a symbol representing a decimal point) is 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 conversion of the data type 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.
In addition, when the control server control unit 40 detects that the accounting discount amount information J18 cannot be acquired by 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 analysis data illustrated in FIG. 9, the property “discounts” is described in the area 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 (hereinafter referred to as “customer number information J19”) indicating the number of customers who have performed accounting.
Detailed description of the customer number information item is omitted.
In the analysis data illustrated in FIG. 9, the property “guests” is described in a region A6.

図8に示すように、払戻有無情報項目は、データ型:booleanのプロパティー「is_refund」に対応する項目である。払戻有無情報項目は、項目値として、会計において払い戻しがあったことを示すtrue値と、会計において払い戻しがなかったことを示すfalse値とのいずれかをとる。
払戻有無情報項目に関し、制御サーバー制御部40は、後述する取消有無情報項目に関する処理と同様の処理を実行する。払戻有無情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「is_refund」は、領域A7に記述される。
As shown in FIG. 8, the payout 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, as an item value, either a true value indicating that there was a refund in accounting, or a false value indicating that there was no refund in accounting.
Regarding the refund presence / absence information item, the control server control unit 40 executes the same processing as the processing related to the cancellation presence / absence information item described later. A detailed description of the payout presence / absence information item is omitted.
In the analysis data illustrated in FIG. 9, the property “is_refund” is described in the area 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_void” of the data type: Boolean. The cancellation presence / absence information item takes, as an item value, either a true value indicating that the transaction has been canceled or a false value indicating that the transaction has not been canceled.
Accounting may be canceled. In this case, information indicating that the transaction has been canceled may be printed on the receipt. In this case, a character string representing information indicating that the transaction has been canceled is described in the print text data.
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 fifth parser PS5, and the print text data includes a character string representing 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 the 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 the item value of the cancellation presence / absence information item.
When the analysis data is generated, the control server control unit 40 describes a true value or a false value in the analysis data in association with the cancellation presence / absence information item.
In the analysis data illustrated in FIG. 9, the property “is_void” is described in the area 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 for identifying the customer in the service program to which the customer belongs (hereinafter referred to as “member identification information J21”).
Detailed description of the member information item is omitted.
In the analysis data illustrated in FIG. 9, the property “memberships” is described in the area 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. A payment method name information item and a payment amount information item belong to the payment method 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 (hereinafter referred to as “payment amount information J23”) indicating the amount of money paid by the customer with the payment method according to the payment method name information J22.
A detailed description of the payment method information item is omitted.
In the analysis data illustrated in FIG. 9, the property “payment_methods” is described in the area 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 illustrated in FIG. 8, the issue date 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 information item is issue date information J5.
In the text data analysis process of step SC3, the control server control unit 40 analyzes the print text data by using the function of the eighth parser PS8, and acquires the issue date information J5 or detects that it cannot be acquired. When the generation date of analysis data is obtained, the control server control unit 40 obtains the issue date / time information J5 in the text data analysis process. It is described in the analysis data in association with the issue date information item. When generating the analysis data, the control server control unit 40 obtains the issue date / time information J5 in the text data analysis process. If the data type conversion fails, the control server control unit 40 associates the null value with the issue date / time information item as the analysis data. Describe in. When the control server control unit 40 detects that the issue date information J5 cannot be acquired by 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 issue date information item.
In the analysis data illustrated in FIG. 9, the property “printed_at” is described in the area 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 “puroducts” 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 “purducts []. Name” of the data type: text. The item value of the product name information item is product name information J62.
The purchase quantity information item is an item corresponding to the property “purducts []. Quantity” of the data type: text. The item value of the purchase quantity information item is purchase quantity information J61.
The unit price information item is an item corresponding to the property “purducts []. Price” of the data type: text. The item value of the unit price information item is unit price information J63.

商品名情報J62、購入数量情報J61、及び、単価情報J63について、ステップSC3のテキストデータ分析処理で、制御サーバー制御部40は、第9パーサーPS9の機能により、印刷テキストデータを分析し、各情報を取得し、又は、取得できないことを検出する。商品名情報J62、購入数量情報J61、及び、単価情報J63について、制御サーバー制御部40は、分析データの生成に際し、取得できた情報については対応する項目と対応付けて分析データに記述し、取得できなかった情報については対応する項目とnull値と対応付けて分析データに記述する。
図9で例示する分析データにおいて、プロパティー「products」は、領域A12に記述される。
With respect to the product name information J62, purchase quantity information J61, and unit price information J63, the control server control unit 40 analyzes the print text data by the function of the ninth parser PS9 in the text data analysis process of step SC3, and each information Is detected or it is detected that it cannot be acquired. For the product name information J62, the purchased 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 item when generating the analysis data. Information that cannot be described is described in the analysis data in association with the corresponding item and the null value.
In the analysis data illustrated in FIG. 9, the property “products” is described in the area 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.
About the process regarding a receipt identification information item, the control server control part 40 performs the process similar to the process regarding a customer identification information item. A detailed description of the receipt identification information item is omitted.
In the analysis data illustrated in FIG. 9, the property “recept_id” is described in the area 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 (hereinafter referred to as “sales method information J24”) indicating how the product was sold. Detailed description of the sales method information item is omitted.
In the analysis data illustrated in FIG. 9, the property “sale_type” is described in the area A14.

図8に示すように、スタッフ情報項目は、データ型:textのプロパティー「staff」に対応する項目である。スタッフ情報項目の項目値は、店舗におけるスタッフの名前を示す情報、又は、スタップを識別する識別情報(以下、「スタッフ情報J25」という。)である。スタッフとは、会計を担当した者や、店舗において顧客に対するサービスの提供を担当した者である。スタッフ情報項目についての詳細な説明は省略する。
図9で例示する分析データにおいて、プロパティー「staff」は、領域A15に記述される。
As illustrated in FIG. 8, the staff information item is an item corresponding to the property “stuff” 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 a tap (hereinafter referred to as “staff information J25”). The staff is a person in charge of accounting or a person in charge of providing a service to a customer at a store. Detailed description of the staff information item is omitted.
In the analysis data illustrated in FIG. 9, the property “stuff” is described in the area 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 process as the process related to the total amount information item described later. A detailed description of the subtotal information item is omitted.
In the analysis data illustrated in FIG. 9, the property “subtotal” is described in the area 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”). The tax name information J26 may be printed on the receipt. In this case, the tax name information J26 is included in the receipt information, and a character string indicating the tax name information J26 is described in the print text data.
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.
About the process regarding a tax information item, the control server control part 40 performs the process similar to the process regarding the accounting discount information item mentioned above. Detailed description of the tax amount information item is omitted.
In the analysis data illustrated in FIG. 9, the property “taxes” is described in the area A <b> 17.

図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 total amount information J92.
In the text data analysis process of step SC3, the control server control unit 40 analyzes the print text data by using the function of the fifteenth parser PS15, and acquires the total amount information J92 or detects that it cannot be acquired.
The control server control unit 40, when generating the analysis data, when the total amount information J92 is acquired by the text data analysis process, and if the data type conversion is successful, the total amount information J92 after the conversion of the data type, It is described in the analysis data in association with the total amount information item. When the total amount information J92 is acquired in the text data analysis process when generating the analysis data, the control server control unit 40 associates the null value with the total amount information item in the analysis data when the data type conversion fails. Describe in. When the control server control unit 40 detects that the total amount information J92 cannot be acquired by 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 total amount information item.
In the analysis data illustrated in FIG. 9, the property “total” is described in the area 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 generating the analysis data 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 illustrating information included in one record in the analysis data management database 422. As illustrated in FIG.
As shown in FIG. 10, one record in the analysis data management database 422 includes general identification information J15, serial number J11, store identification information J12, issue date information J5, print data, print text data, and analysis data.
In step SC5, the control server control unit 40 includes, in the analysis data, general identification information J15, serial number J11, store identification information J12, and issue date / time information J5 described in association with the corresponding items, received print data, The record having the print 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. In response to a request from the browser of the external apparatus, the control server 15 can perform processing using the registered Web API based on the analysis data management database 422 and provide information required by the user. .
For example, the control server control unit 40 of the control server 15 provides the total amount information J92 relating to a specific receipt 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 print text data and acquires the item value of the corresponding item or cannot acquire the item value of the corresponding item by the function of the parser PS. Detect that. As described above, the receipt layout may be different for different printing devices 12. Accordingly, the parser PS that analyzes the print text data transmitted by one printing apparatus 12 is required to perform processing reflecting the layout of the one printing apparatus 12 and acquire the item value of the corresponding item.
Based on the above, the control server 15 according to the present embodiment performs the following process, so that the user can easily use the parser PS having a function of accurately acquiring item values reflecting the layout of the printing apparatus 12. Enable operation to generate.

以下、1の印刷装置12のパーサーPSのうち、以下のパーサーPSをユーザーの操作に基づいて生成する場合を例にして、制御サーバー15の処理について、説明する。
第15パーサーPS15(合計金額情報項目(プロパティー「total」)の項目値を取得するパーサーPS。)。
第5パーサーPS5(取消有無情報項目(プロパティー「is_void」)の項目値を取得するパーサーPS。)。
第9パーサーPS9(商品情報項目(プロパティー「products」)の項目値を取得するパーサーPS。)。
Hereinafter, the process 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 PSs of one printing apparatus 12.
Fifteenth parser PS15 (parser PS that acquires the item value of the total amount information item (property “total”)).
Fifth parser PS5 (parser PS that acquires the item value of the cancellation presence / absence information item (property “is_void”)).
Ninth parser PS9 (parser PS for acquiring item values of product information item (property “products”)).

なお、以下の説明では、制御サーバー15は、制御サーバー15が備える入力手段に対する操作に応じて、制御サーバー15が備える表示パネルにユーザーインターフェースを表示する。しかしながら、ユーザーが、制御サーバー15と通信可能な外部の装置に対して所定の操作を行い、制御サーバー15が、当該外部の装置からの要求に応じて、当該外部の装置にユーザーインターフェースを表示する構成でもよい。   In the following description, the control server 15 displays a user interface on a display panel provided in the control server 15 in response to an operation on an input unit provided in the control server 15. However, the user performs a predetermined operation on an external device that can communicate with the control server 15, and the control server 15 displays a 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 unit 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 according to a user instruction to display the first user interface UI1 on the display panel.

図11Aは、第1ユーザーインターフェースUI1を示す図である。
図11Aに示すように、第1ユーザーインターフェースUI1は、店舗識別情報J12を入力する入力欄N1aを有する。ユーザーは、パーサーPSを生成する対象とする印刷装置12が設けられた店舗の店舗識別情報J12を入力欄N1aに入力し、入力を確定する。
入力の確定に応じて、制御サーバー制御部40は、制御サーバー表示部43を制御して、表示パネルに第2ユーザーインターフェースUI2を表示する。
FIG. 11A shows the 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 where the printing device 12 that is the target for generating the parser PS is input in the input field N1a, and confirms the input.
In response to the confirmation of the input, the control server control unit 40 controls the control server display unit 43 to display the second user interface UI2 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 shows the second user interface UI2.
As illustrated in FIG. 11B, the second user interface UI2 displays store identification information J12 input by the user.
In addition, 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, for which acquisition of item values of essential items (described later) has not been completed. A list of serial numbers J11 is displayed for a certain printing apparatus 12. That the acquisition of the item value of one essential item is not complete means that the item value of the one essential item cannot be acquired by the function of the parser PS corresponding to the one essential item. The second user interface UI2 displays radio buttons in association with the serial numbers J11. The user can select any one of the serial numbers J11 with a radio button. The second user interface UI2 is provided with a display button B2a in association with each serial number J11. The display button B2a is a button for instructing display of the text described in the print text data received from the printing apparatus 12 having the corresponding serial number J11. Further, the second user interface UI2 is provided with a confirmation button B2b for confirming selection of the serial number J11 by the radio button.

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

第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 apparatus management database 423. The printing apparatus management database 423 has a record for each printing apparatus 12.
FIG. 12 is a diagram schematically illustrating information included in one record in the printing apparatus management database 423.
As shown in FIG. 12, one record in the printing apparatus management database 423 has a serial number J11, store identification information J12, and an acquisition completion management flag J27 (described later).
In the printing apparatus management database 423, records corresponding to one printing apparatus 12 include the serial number J11 of the one printing apparatus 12, the store identification information J12 of the store where the first printing apparatus 12 is provided, and the 1 And an acquisition completion management flag J27 corresponding to the printing apparatus 12. The acquisition completion management flag J27 corresponding to the one printing device 12 is set by the function of the parser PS corresponding to the first printing device 12 based on the print text data transmitted by the first printing device 12. Has a value indicating that, and when there is one essential 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 the second user interface UI2 is displayed, the control server control unit 40 refers to the printing device management database 423, and among the printing devices 12 provided in the store of the store identification information J12 input by the user, required items (described later). The serial number J11 of the printing apparatus 12 for which at least one item value has not been acquired is acquired and displayed in a list.
When it is detected that the button B2a of the second user interface UI2 is operated, the control server control unit 40 controls the control server display unit 43 to display the third user interface UI3 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 shows the third user interface UI3.
As shown in FIG. 11C, the third user interface UI3 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 among the print text data received from the printing apparatus 12 with the serial number J11 corresponding to the operated button B2a, 1 Get one piece of print text data. For example, the control server control unit 40 acquires print text data received from the printing apparatus 12 most recently. Next, the control server control unit 40 displays the third user interface UI3 on which the text described in the acquired print text data is displayed. Note that the control server control unit 40 may cause the user to select one print text data out of the print text data received from the printing apparatus 12 and obtain the selected print text data by a predetermined means. Good.
The user can grasp the contents of the information described in the print text data and the layout of the corresponding receipt by referring to the third user interface UI3.
The user can move the user interface from the third user interface UI3 to the second user interface UI2 by performing a predetermined operation on the third user interface UI3.

第2ユーザーインターフェースUI2の確定ボタンB2bが操作されたことを検出すると、制御サーバー制御部40は、制御サーバー表示部43を制御して、表示パネルに第4ユーザーインターフェースUI4を表示する。   When detecting that the confirm button B2b of the second user interface UI2 is operated, the control server control unit 40 controls the control server display unit 43 to display the fourth user interface UI4 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 the fourth user interface UI4.
As shown in FIG. 13, the area of the fourth user interface UI4 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 in the order of the first area A41, the third area A43, and the second area A42, and the processing of the control server control unit 40 when displaying the screen will be described.

<第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 region A41>
The first area A41 will be described.
An 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 displayed in a list so as to be selectable.
In 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. Are displayed in association with each other. Specifically, a mark M4a made up of US marks is displayed in association with the property names of “printed_at”, “products”, “receive_id”, “taxes”, and “toal”.
In addition, in the item selection screen G41, among the receipt items whose property names are displayed on the item selection screen G41, for items for which item value acquisition has not been completed, a mark indicating that 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, “X” is circled in association with property names of “consumer_id”, “discounts”, “memberships”, “payment_methods”, “products”, “sale_type”, and “subtotal”. The mark M4b is displayed. An item whose item value has not been acquired is an item in which a null value is described in association with the item in the generated analysis data when the analysis data is generated by the function of the corresponding parser PS. As described above, when generating analysis data, a null value is described in association with an item for an item for which data type conversion has failed. Such items also correspond to “items whose item values could not be acquired”.
The user selects the one item by placing the cursor on one item among the items displayed on the item selection screen G41 and performing a predetermined operation (for example, double-clicking on the mouse). be able to. For the item selected by the user, the property name is enclosed in a rectangular frame to indicate that the user has selected. Note that the user can move the cursor on the fourth user interface UI4 and other user interfaces using a mouse, a keyboard, and other input devices.

ユーザーは、項目選択画面G41を参照することにより、必須項目を簡易かつ直感的に認識することができると共に、項目値の取得ができなかった項目を簡易かつ直感的に認識することができる。   By referring to the item selection screen G41, the user can easily and intuitively recognize essential items and can easily and intuitively recognize items for which 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 with the serial number J11 selected by the user through the second user interface UI2. . At that time, when the display button B2a of the second user interface UI2 is operated, the control server control unit 40 acquires print text data to be displayed on the third user interface UI3.
Hereinafter, the printing device 12 having the serial number J11 selected by the user on the second user interface UI2 is referred to as a “selected printing device”. The acquired print text data is referred to as “processing target text data”.

次いで、制御サーバー制御部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 selected 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 for each receipt item or that the item value cannot be acquired. It should be noted that the item value of one item can be acquired in the analysis data generated based on the analysis of the processing target text data, the item value of a value other than the null value is described in association with the one item. Means that. Further, the fact that the item value of one item cannot be acquired means that a null value is described in association with the one item in the analysis data generated based on the analysis of the processing target text data.
Next, based on the determination result, 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.

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

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

ここで、本実施形態では、文字の種類として、「区切文字」と、「特殊文字」と、「普通文字」とがある。
区切文字は、空白文字、及び、改行文字である。区切文字は、後述するように、単語と、単語との区切りの判別に利用される。
特殊文字は、記号のうち、予め定められた記号である。特殊文字は、エリア分割情報等、特殊な意味を持つ情報に使用する可能性がある記号とされる。本実施形態では、特殊文字は、文字「−」、文字「〜」、文字「=」、及び、文字「:」を含む。
普通文字は、文字のうち、区切文字、及び、特殊文字を除く文字である。
Here, in the present embodiment, there are “separator character”, “special character”, and “normal character” as character types.
The delimiter characters are a space character and a line feed character. As will be described later, the delimiter character is used to determine a delimiter between words.
The special character is a predetermined symbol among the symbols. Special characters are symbols that may be used for information having a special meaning, such as area division information. In the present embodiment, the special characters include a character “-”, a character “˜”, a character “=”, and a character “:”.
An ordinary character is a character 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 composed of ordinary characters that are not separated by a delimiter (in some cases, one character. Hereinafter, one character is also expressed as a “character string” as appropriate), or (2) A character string composed of special characters that are continuous without being separated by a delimiter.
FIG. 14A is a table showing the words included in the print text data T1 of FIG.
FIG. 14B is a table showing the words included in the print text data T2 of FIG.
For example, in the case of the print 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 each separated by a delimiter character. It is a character string consisting of consecutive 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. That is, the character string “sub” is a character string composed of continuous ordinary characters without being separated by a delimiter. The character string “-” is a character string made up of special characters that are not separated by a delimiter. Further, the character string “total” is a character string composed of continuous ordinary characters without being separated by a delimiter. Therefore, the subtotal explicit information J71 is information in which three words are continuously formed.
The area division information is a character string composed of special characters that are not separated by a delimiter. Therefore, the area division information corresponds to “word”.

テキスト表示画面G43の表示に際し、制御サーバー制御部40は、処理対象テキストデータに含まれる情報を単語に分解する。次いで、制御サーバー制御部40は、分解した単語のそれぞれ、及び、空白文字のそれぞれを、キーワード(後述)の選択に際し、独立して選択可能な状態で、処理対象テキストデータに記述されたテキストを、テキスト表示画面G43に表示する。以下、詳述する。
ここで、後に明らかとなるように、本実施形態では、空白文字を、キーワードの一部として選択することができる。このことを踏まえ、以下では、空白文字は、単語に含まれるものとする。
When displaying the text display screen G43, the control server control unit 40 breaks down the information included in the processing target text data into words. Next, the control server control unit 40 selects the text described in the processing target text data in a state where each of the decomposed words and each blank character can be independently selected when selecting a keyword (described later). Is displayed on the text display screen G43. Details will be described below.
Here, as will be apparent later, in this embodiment, a blank character can be selected as a part of a keyword. Based on this, in the following, it is assumed that white space is included in a 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 a cursor CS that can be moved by the user.
When the cursor CS overlaps the word or blank character area on the text display screen G43, the control server control unit 40 sets the background color of the background of the word or blank character area to a predetermined color (in this embodiment, yellow). .) (Predetermined decoration is applied).
FIG. 15A shows a state where 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 a state in which the cursor CS overlaps the blank character 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.
Note that 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, or an emphasis point or underline may be drawn.

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

<第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 region A42>
Next, the second area A42 will be described.
In the following description, the receipt item selected by the user on the item selection screen G41 in the first area A41 is referred to as “selected receipt item”.
In the second area A42 of the fourth user interface UI4, information for generating the parser PS corresponding to the selected receipt item is input, or a screen for selecting the information is displayed.
The user can generate a parser PS corresponding to the selected receipt item by selecting information 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 fifth parser PS5 (the selected receipt item is the cancellation presence / absence information item), and the ninth parser PS9 (the selected receipt item is the product information item). ), 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 fifteenth parser PS15, the user selects the total amount information item (property “total”) on the item selection screen G41.
FIG. 16 is a diagram showing the fourth user interface UI4 when the 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 acquired item value display screen G421 shows an analysis result when analyzing the text data to be processed by the fifteenth parser PS15 associated with the serial number J11 of the selected printing device in the parser management database 421 (total amount information in the analysis data). The value described in association with the item.) Is displayed. In the example of FIG. 16, a null value is displayed on the item selection screen G41, thereby clearly indicating that the total amount information J92 cannot be acquired by the fifteenth parser PS15 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, and acquires the parser PS corresponding to the selected printing device and corresponding to the selected receipt item. The control server control unit 40 analyzes the processing target text data using the acquired parser PS, and displays the acquisition 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 out the parser PS registered in the parser management database 421. The analysis result of the parser PS corresponding to the device and corresponding to the selected receipt item is displayed. Thereby, the following effects are produced.
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 acquired item value display screen G421.
Further, the text display screen G43 in the third area A43 and the acquired item value display screen G421 in 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 by 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 acquired item value display screen G421. For example, for 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 It can be determined whether or not the parser PS that has acquired the correct total amount information J92. Further, as described above, the sales method information J24 may be printed on the receipt or may not be printed on the receipt depending on the format of the receipt. If the sales method information J24 is not printed, the analysis result of the corresponding parser PS has a null value. Thus, even if the analysis result of the corresponding parser PS is a null value, it may be correct that the value is a null value. In such a case, the user can obtain the text display screen G43, the acquired item value, By comparing with the display screen G421, the validity of the analysis result being a null value can be determined.

図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 selected printing device and starts to generate a parser that instructs to start processing for generating a parser PS corresponding to the selected receipt item. Button QB is displayed.
When it is detected that the parser generation start button QB is operated, the control server control unit 40 displays the frame selection screen G422 while maintaining the acquired item value display screen G421 in the second area A42. To do.

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

ここで、レシートに係るレイアウトには、合計金額情報J92と共に合計金額明示情報J91が印刷され、かつ、合計金額明示情報J91と合計金額情報J92とは所定の位置関係にある、という特性がある。これを踏まえ、合計金額情報項目(プロパティー「total」)については、フレームとして、第1合計金額情報フレーム、及び、第2合計金額情報フレームが、選択可能である。
第1合計金額情報フレームは、合計金額情報J92が、キーワードとしての合計金額明示情報J91と同一行において、合計金額明示情報J91の1つ右に位置するか、又は、当該同一行の末尾に位置することを指定する検索ルールに対応するフレームである。
「1の項目値が、キーワードと同一行において、当該キーワードの1つ右に位置する」とは、当該1の項目値が、当該キーワードに対して、1又は複数の空白文字を介して右方に位置することを意味する。また、「1の項目値が、キーワードと同一行の末尾に位置する」とは、当該1の項目値が、当該同一行の右端部に位置し、当該1の項目値の次の文字が改行文字であることを意味する。
Here, the layout relating 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 are in 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 positioned at the right of the total amount explicit information J91 in the same line as the total amount explicit information J91 as a keyword, or at the end of the same line. It is a frame corresponding to a search rule that specifies that the
“One item value is located to the right of the keyword in the same line as the keyword” means that the one item value is to the right of the keyword via one or more blank characters. Means to be located in Also, “1 item value is located at the end of the same line as the keyword” means that the 1 item value is located at the right end of the same line and the next character of the 1 item value is a line feed Means a letter.

第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 determined by the positional relationship between the total amount explicit information J91 and the total amount information J92 as keywords. 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へ遷移する。
The frame selection screen G422 in FIG. 17 displays a list of frame information JH17a for explaining the first total amount information frame and frame information JH17b for explaining the second total amount information frame. Radio information is displayed in association with each piece of information related to the frame information JH17a and the frame information JH17b. The user can select either the first total amount information frame or the second total amount information frame by using a 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 an appropriate frame as an applied frame among the first total amount information frame and the second total amount information frame, An appropriate frame can be selected based on the recognition.
As shown in FIG. 17, the frame selection screen G422 displays a frame confirmation button XB for confirming frame selection. When the control server control unit 40 detects that the frame confirmation button XB has been operated, the frame selection screen G422 transitions to the step corresponding screen G423.

以下の説明では、ユーザーが選択したフレームを「選択フレーム」という。   In the following description, the frame selected by the user is referred to as a “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 selecting a search rule by selecting information related to a search rule corresponding to a frame or inputting the information. Then, one or a plurality of step corresponding screens G423 are prepared corresponding to one or a plurality of steps corresponding to the frame. In some cases, the position of the item value in the print text data can be specified based on a plurality of search rules. In such a case, a plurality of step corresponding screens G423 are prepared for one frame.
As will become clear later, the user selects the frame and performs the operation of inputting information into one or a plurality of step correspondence screens G423, thereby retrieving the item value 1 necessary for retrieving the item value corresponding to the selected receipt item. Or 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を示す図である。
<First total amount information frame>
FIG. 18 is a diagram showing a step corresponding 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 in FIG. (1) Rule information indicating a search rule that specifies that the total amount information J92 (item value) is positioned one right of the keyword in the same line as the keyword that appears first (uppermost) in the print 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 appears first (upward) in the print text data. The two rule information are displayed in association with radio buttons, and one of the rule information can be selected with the radio buttons. The user specifies a search rule by selecting any 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 corresponding screen G423, and corresponds to the rule information JH18a. Appropriate information is selected 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 a character string “‘ Text1 ’”. A region A18a in which the word selected as the keyword is displayed is formed below the region A18b. As will be apparent later, the keyword may be configured as a combination of a plurality of words (including blank characters). In the area A18a, the character string “Text1” is displayed, 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 using the text display screen G43 in the third area A43 by the following method.
Hereinafter, in the state where the fourth user interface UI4 shown in FIG. 18 is displayed, the user operation is exemplified by a case where the user selects a combination of the word “TOTAL” and the word “:” as keywords. And the process of the control server control part 40 is demonstrated. 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」が選択の候補となった様子を示す。
In the text display screen G43, the user places the cursor on a word (including a blank character as described above) to be included in the keyword. As described above, the background color of the word on which the cursor overlaps is yellow, which clearly indicates that it is a candidate for selection.
FIG. 19 shows a state where the word “TOTAL” is a candidate for selection.

ユーザーは、単語にカーソルを重ねた状態で所定の操作(例えば、ダブルクリック。)を行い、単語の選択を確定する。制御サーバー制御部40は、ユーザーにより所定の操作が行われ、単語の選択が確定したことを検出すると、選択された単語を、領域A18aに表示する。ユーザーは、領域A18aを参照することにより、選択した単語を確認できる。
図20は、単語「TOTAL」の選択が確定し、領域A18aに、単語「TOTAL」が表示された様子を示す。
The user performs a predetermined operation (for example, double-click) with the cursor placed on the word to confirm the selection of the word. When the control server control unit 40 detects that a predetermined operation is performed by the user and the selection of the word is confirmed, the control server control unit 40 displays the selected word 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 that is adjacent to the word and located to the right of the word in the same line as the word that 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 a word “:” adjacent to the word “TOTAL” selectable, and underlines the word “:”.
FIG. 21 shows a state where the word “:” is selectable and the word “:” is underlined.
The user can easily and intuitively recognize the selectable word by referring to the underline drawn in the 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 where the word “:” is selected after the word “TOTAL”, and the word “TOTAL” and the word “:” are successively displayed as keywords in the area A18c.

このように、制御サーバー制御部40は、テキスト表示画面G43に、印刷テキストデータに記述されたテキストを、単語(空白文字を含む。)を選択可能な状態で表示する。そして、制御サーバー制御部40は、ユーザーにより選択された単語、又は、単語群をキーワードとして設定する。これにより、ユーザーがキーボードで文字を入力することによってキーワードを設定する場合に生じ得る入力ミスを確実に防止し、ユーザーに的確な単語、又は、単語群をキーワードとして選択させることができる。   In this manner, the control server control unit 40 displays the text described in the print text data on the text display screen G43 in a state where words (including blank characters) can be selected. And the control server control part 40 sets the word or word group selected by the user as a keyword. Accordingly, it is possible to reliably prevent an input error 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 a keyword.

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

図18〜図22に示すステップ対応画面G423は、ステップ確定ボタンSBと、コンファームボタンCBとを有する。
ステップ確定ボタンSBは、そのステップ確定ボタンSBが表示されたステップ対応画面G423への入力を確定する際の操作されるボタンである。
The step corresponding screen G423 shown in FIGS. 18 to 22 includes a step confirmation button SB and a confirm button CB.
The step confirmation button SB is a button operated when confirming the input to the step corresponding 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 among one or a plurality of step correspondence screens G423 corresponding to the selected frame. The confirm button CB can be selected on the last step corresponding screen G423 in the following cases. That is, when necessary information is selected and inputted for the last step correspondence screen G423, the confirm button CB can be selected. When the confirm button CB is operated on the last step correspondence screen G423, the specification of the search rule is completed in all steps corresponding to the selected frame.
The confirm button CB executes a process of acquiring item values from the print text data based on the search rule specified in all step corresponding screens G423 corresponding to the selected frame (all steps corresponding to the selected frame). This is a button for instructing generation of a 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 detecting that the confirm button CB has been operated, the control server control unit 40 executes the following processing.
A flowchart FD in FIG. 23 is a flowchart illustrating an operation of the control server 15 when it is detected that the confirm button CB is operated.
As shown in the flowchart FD of FIG. 23, the control server control unit 40 acquires the search rules specified on all the step corresponding screens G423 corresponding to the selected frame (step SD1).
Next, the control server control unit 40 generates a parser PS that executes processing for acquiring the item value of the selected receipt item based on each of the acquired search rules (step SD2). Here, the control server 15 receives a parser PS having a function of executing a process of retrieving and acquiring an item value according to one or more input search rules, using one or more search rules as input. An engine that is generated 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, in the same line as the keyword that appears first (uppermost) in the print text data (in this example, the keyword “TOTAL:”) is one right of the keyword. A parser PS that implements a function for acquiring information located in the field as an item value is generated.

特に、パーサーPSは、項目値を、印刷テキストデータにおけるキーワードと項目値との位置関係に基づいて検索する場合、以下の処理を行う。すなわち、まず、パーサーPSは、文字列検索により、印刷テキストデータにおけるキーワードの位置を特定する。なお、後述するように、キーワードに対応する文字列が、複数、印刷テキストデータに記述された状態の場合は、処理のルールに従って、項目値の検索に使用すべきキーワードを特定する。次いで、パーサーPSは、位置を特定したキーワードと、キーワード及び項目値の位置関係とに基づいて、項目値の位置を特定する(項目値を検索する。)。
このように、パーサーPSは、文字列検索を利用して印刷テキストデータにおけるキーワードの位置を特定する。このため、キーワードは、印刷テキストデータに記述される文字列と正確に同一であることが求められる。本実施形態では、上述したように、ユーザーは、簡易な作業で、印刷テキストデータに記述される文字列と正確に同一なキーワードを指定できる。
In particular, the parser PS performs the following processing when searching for item values based on the positional relationship between keywords and item values in print text data. That is, first, the parser PS specifies the position of the keyword in the print text data by character string search. As will be described later, when a plurality of character strings corresponding to the keyword are described in the print text data, the keyword to be used for the item value search is specified according to the processing rule. Next, the parser PS identifies the position of the item value based on the keyword whose position has been identified and the positional relationship between the keyword and the item value (searches the item value).
As described above, the parser PS specifies the position of the keyword in the print text data by using the character string search. For this reason, the keyword is required to be exactly the same as the character string described in the print text data. In the present embodiment, as described above, the user can specify a keyword exactly the same as the character string described in the print text data with 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 processing target text data by using the newly generated parser PS function, and displays the analysis result on the analysis result confirmation screen G424 in 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 UI4 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 in the third area A43, recognizes the correct item value to be acquired by the parser PS, and determines the validity of the analysis result of the parser PS newly generated based on the recognition. I can confirm. When the correct item value is displayed on the analysis result confirmation screen G424, the user determines that the analysis result of the parser PS is valid, and when a value other than the correct item value is displayed, It is determined that the analysis result is not valid.
As shown in FIG. 24, the analysis result confirmation screen G424 includes an overwrite button UB for instructing application of the newly generated parser PS, and a cancel button CC for canceling application of the newly generated parser PS. Have The user confirms the contents of the analysis result confirmation screen G424, determines whether or not the analysis result of the newly generated parser PS is valid, operates the overwrite button UB if valid, and cancels if 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 is operated. At the same time (step SD5), it is monitored whether the overwrite button UB has been 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 selected receipt item associated with the serial number J11 of the selected printing device in the database. Overwrite and update with 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 selected printing apparatus, the process for acquiring the item value for the selected receipt item is performed 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 proceeds to step SD8 without updating the parser management database 421, and the analysis result The confirmation screen G424 is closed.

なお、1の印刷装置12について、パーサー管理データベース421にレコードが登録される場合、当該1の印刷装置12のシリアル番号J11と対応付けられるパーサーPSのそれぞれは、予め用意されたデフォルトのパーサーPSとされる。   When a record is registered in the parser management database 421 for one printing apparatus 12, each of the parser PSs associated with the serial number J11 of the one printing apparatus 12 is a default parser PS prepared in advance. Is 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 correspondence screen G423 that is transitioned 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.
In the step corresponding screen G423 of FIG. 25, it is possible to input a keyword used when searching for the item value (total amount information J92 in this example) of the selected receipt item (in this example, the total amount information item). Is possible. The user uses the text display screen G43 to select a word or a word group as a keyword by the method described above. Thereby, the user designates a search rule that the keyword is a predetermined word or a word group.

図25のステップ対応画面G423は、次に遷移可能なステップ対応画面G423が存在する。これを踏まえ、図25のステップ対応画面G423には、コンファームボタンCBが表示されず、次のステップ対応画面G423への遷移を指示する遷移ボタンNBが表示される。
遷移ボタンNBが操作されたことを検出した場合、制御サーバー制御部40は、次のステップ対応画面G423へ遷移する。
The step corresponding screen G423 in FIG. 25 includes a step corresponding screen G423 that can be transited to next. Based on this, the confirm button CB is not displayed on the step corresponding screen G423 in FIG. 25, and a transition button NB for instructing a transition to the next step corresponding screen G423 is displayed.
When it is detected that the transition button NB is operated, the control server control unit 40 transitions to the next step corresponding 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 that is displayed instead 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.
In the step correspondence screen G423 of FIG. 26, seven rule information JH26a to rule information JH26g are displayed in a selectable list 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 rule information corresponding to an 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行目において、最後の単語でもある。
Hereinafter, the rule information JH26c among the rule information JH26a to the rule information JH26g will be described.
The 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 (N is a positive integer) word from the left in the same line as the keyword. . The Nth word in one “line” means the following. In other words, the Nth word in one “line” is the word that is Nth from the left when the words described in the one “line” are counted in order from the left, excluding blank characters. Means. For example, in the fourth line of the print text data T2 in FIG. 6B, the words are described in the order of the word “Beer”, the word “1”, and the word “10.00”, excluding the blank character. 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 print 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.
As shown in FIG. 27, when the rule information JH26c is selected, a number display area BA is formed at the bottom of the step corresponding screen G423. The number display area BA is an area for displaying the Nth value selected by the user while allowing the user to select the Nth value when the search rule selected by the user requires the Nth information. . In FIG. 27, the number value displayed so as to be selectable in the number display area BA may be a value corresponding to the number of words existing in one line.
As described above, when the search rule requires the Nth information, the control server control unit 40 causes the user to select the Nth and forms the 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. In the input field N27a, the Nth value can be input 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 this embodiment, the user can select “last” and “second from the end” in addition to the first to fifth as the Nth value. This is based on the fact that the predetermined item value may be described as “last” or “second from the end” in a predetermined “row”.

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

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

図28は、図27のステップ対応画面G423において、ルール情報JH26cに対応する検索ルールが選択され、N番目の値として「最後」が選択された後、遷移ボタンNBが操作された場合に、図27のステップ対応画面G423に代えて表示されるステップ対応画面G423を示す図である。
図28のステップ対応画面G423は、ユーザーが設定したキーワードが印刷テキストデータに、複数、記述される場合に、項目値の検索に使用するキーワードが、印刷テキストデータにおいてN番目に出現することを示す検索ルールを指定する画面である。
ここで、印刷テキストデータには、キーワードとして用いる文字列が、複数、記述される場合がある。例えば、文字列「TOTAL」をキーワードとして用いる場合において、小計明示情報J71、及び、合計金額明示情報J91が、共に、文字列「TOTAL」を含み、これに起因して、印刷テキストデータに、文字列「TOTAL」が、複数、記述される場合がある。このような場合であっても、キーワードとして使用可能な文字列は、レシートのレイアウトに対応するルールに従って記述されるため、キーワードがN番目に出現することを指定することにより、所望のキーワードを特定可能である。
FIG. 28 is a diagram when the transition button NB is operated after the search rule corresponding to the rule information JH26c is selected on the step correspondence screen G423 in FIG. 27 and “last” is selected as the Nth value. It is a figure which shows the step corresponding | compatible screen G423 displayed instead of 27 step corresponding | compatible screen G423.
The step corresponding 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 for the item value appears Nth in the print text data. This is a screen for specifying a search rule.
Here, a plurality of character strings used as keywords may be described in the print text data. 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”. A plurality of columns “TOTAL” may be described. Even in such a case, the character string that can be used as a keyword is described according to the rule corresponding to the layout of the receipt. Therefore, by specifying that the keyword appears Nth, the desired keyword can be specified. 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 corresponding screen G423 in FIG. 28 has an input field N28a. In the input field N28a, the Nth value can be input 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 this embodiment, the user can select “last” and “second from the end” in addition to the first to fifth as the Nth value. This originates from the fact that the position of a predetermined keyword may be appropriately identified by specifying that it appears “last” or “second from the end”. In FIG. 28, the number value displayed in the number display area BA so as to be selectable may be a value corresponding to the number of words corresponding to the keyword appearing in the print text data.
The step corresponding screen G423 shown in FIG. 28 is the last step corresponding screen G423 among the step corresponding screens G423 corresponding to the selected frame (in this example, the second total amount information frame). On the step corresponding screen G423 shown in FIG. 28, the user inputs the Nth value in the input field N28a using the pull-down menu. After the input to 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 simplify the character string specified as the keyword based on the characteristic that a plurality of character strings may be described in the print text data according to the rule corresponding to the layout of the receipt. You can work and specify search rules that correspond to these 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_void”) on the item selection screen G41.
The property “is_void” (cancellation 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. In this case, the print text data based on the receipt issued for accounting (hereinafter referred to as “cancellation explicit information J28”) indicates that the cancellation has been performed. ) 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 is 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 for a receipt item corresponding to a Boolean property At this 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 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 information item. It is a figure which shows the frame selection screen G422.
For the cancellation presence / absence information item, the number of corresponding frames is one. The user confirms the selection of the frame by operating the frame confirmation button XB displayed on the frame selection screen G422 related to the cancellation presence / absence information item. When detecting that the frame confirmation button XB is operated, the control server control unit 40 transitions the frame selection screen G422 to the step corresponding 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 that is transitioned from the frame selection screen G422 of FIG. The frame related to the cancellation presence / absence information item has one step.
In the step corresponding screen G423 in FIG. 30, it is possible to input a keyword 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 cancellation explicit information J28.
The user designates a search rule that the keyword is a predetermined word or a word group on the step correspondence screen G423 in FIG.
When the cancellation clarification information J28 is described in the processing target text data whose 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 clarification information J28 is not described in the processing target text data whose text is displayed on the text display screen G43, the user designates a search rule by the following method. When the account 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 using a keyboard or the like.
The keyword input by the user is displayed in a predetermined area of the step corresponding screen G423.

図30に示すステップ対応画面G423について、ユーザーは、キーワードを入力した後、ステップ確定ボタンSB、又は、コンファームボタンCBを操作する。これらボタンの何れかが操作された場合の制御サーバー制御部40の処理は、上述したとおりである。   On the step correspondence screen G423 shown in FIG. 30, after the user inputs a keyword, 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.

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

<第9パーサーPS9>
第9パーサーPS9を生成する場合について説明する。
第9パーサーPS9を生成する場合、ユーザーは、項目選択画面G41において、商品情報項目(プロパティー「products」。)を選択する。
上述したように、商品情報項目には、商品名情報項目、購入数量情報項目、及び、単価情報項目が属する。
第9パーサーPS9は、購入数量情報項目、商品名情報項目、及び、単価情報項目のそれぞれの項目値を取得する処理を実行する機能を有するパーサーPSである。
<9th Parser PS9>
A case where the ninth parser PS9 is generated 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 name information item, the purchase quantity information item, and the unit price information item belong to the product information item.
The ninth parser PS9 is a parser PS having a function of executing processing for acquiring item values of a purchase quantity information item, a product name information item, and a 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 the purchase quantity information item), product name information J62 (item value of the product information item), and unit price information J63 (unit price information). Item value) has the following characteristics.
The purchase quantity information J61, the product name information J62, and the unit price information J63 are characterized in that the description in the print text data may not be described in association with any specific information. In this case, the position of these information cannot be specified by the positional relationship with the keyword.
The purchase quantity information J61, the product name information J62, and the unit price information J63 related to one type of product may be printed in one line regardless of the receipt layout. . This is because it is essential information to be printed on a receipt, and by printing these information on the same line, it is clearly shown that these information are information related to one type of product. Because it is done. Further, by printing these information on the same line, when a plurality (= multiple lines) of product information J6 is printed on a receipt, the purchase quantity information J61, product name information J62, and unit price information J63 This is because the correspondence 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 an area sandwiched between one specific character string and another specific character string in the receipt. There is a feature that there is a case. In this case, these pieces of information are described in an area sandwiched between one specific character string and another specific character string in the print text data.
Based on these characteristics, when generating the ninth parser PS9, the control server control unit 40 executes the following processing.

図31は、項目選択画面G41で商品情報項目が選択され、商品情報項目に係る取得項目値表示画面G421でパーサー生成開始ボタンQBが操作された場合に、第2領域A42に表示されるフレーム選択画面G422を示す図である。
商品情報項目について、対応するフレームの個数は、第1商品情報フレーム、第2商品情報フレームの2つである。図31に示すフレーム選択画面G422には、第1商品情報フレームを説明するフレーム情報JH31a、及び、第2商品情報フレームを説明するフレーム情報JH31bが一覧表示される。また、フレーム情報のそれぞれにはラジオボタンが対応付けて表示され、ユーザーは、ラジオボタンにより、フレームを選択できる。
FIG. 31 shows the frame selection displayed in the second area A42 when the 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 screen G422.
For the product information item, the number of corresponding frames is two, that is, the first product information frame and the second product information frame. A frame selection screen G422 shown in FIG. 31 displays a list of frame information JH31a for explaining the first product information frame and frame information JH31b for explaining the second product information frame. Each frame information is displayed in association with a radio button, and the user can select a frame with the radio button.

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

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

<第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 arrangement order of these 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, in the step correspondence screen G423 of FIG. 32, 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 designating printing with the second pattern, rule information JH32c indicating a search rule designating printing with the third pattern, and search designating printing with the fourth pattern A list of rule information JH32d indicating a rule, rule information JH32e indicating a search rule designating printing with the fifth pattern, and rule information JH32f indicating a search rule designating printing with the sixth pattern is displayed. The Each of these rule information is displayed in association with a radio button, and any rule information can be selected by the radio button. The user specifies a search rule by selecting any rule information.

図32に示すステップ対応画面G423について、ユーザーは、検索ルールを指定した後、ステップ確定ボタンSB、又は、コンファームボタンCBを操作する。これらボタンの何れかが操作された場合の制御サーバー制御部40の処理は、上述したとおりである。すなわち、制御サーバー制御部40は、選択フレームに対応する全てのステップ対応画面G423で指定された検索ルールを取得する。次いで、制御サーバー制御部40は、取得した検索ルールのそれぞれに基づいて選択レシート項目の項目値を取得する処理を実行するパーサーPS(本例では、第9パーサーPS)を生成する。以下、1つの行において情報が出現するパターンによって、第9パーサーPSが項目値を特定する方法について、具体例を挙げて説明する。   On the step correspondence screen G423 shown in FIG. 32, the user operates the step confirmation button SB or the confirm button CB after designating a 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 corresponding screens G423 corresponding to the selected frame. Next, the control server control unit 40 generates a parser PS (in this example, a 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 for specifying the item value by the ninth parser PS according to a pattern in which information appears in one row will be described with a specific example.

ここで、第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 the case where the process 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. In other words, the characters constituting the character string representing the purchase quantity information J61 are characterized in that characters representing numbers and specific characters can be used, and other characters are not used. The specific character that can be used for the characters constituting the character string representing the purchase quantity information J61 is, for example, the character “@” that is generally used when representing the number per unit. Hereinafter, information represented by a character string composed of these characters is referred to as “number-type information”.
The character string representing the unit price information J63 has the following characteristics. That is, characters constituting the character string representing the unit price information J63 include characters representing numbers, characters representing decimal points, currency symbols (“¥”, “$”, etc.), plus symbols (“+”), minus symbols. (“-”) Can be used, and other characters are not used. Hereinafter, information represented by a character string composed of these characters is referred to as “numeric information”.
Hereinafter, information that is not piece-type information and not numeric 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 manner in the “row” 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, the ninth parser PS9 describes three pieces of information in the “line” in the text data to be processed, and each piece of information is directed to the right, the number type information, the arbitrary type information, One or a plurality of “lines” described in the order of numerical information is specified. Next, the ninth parser PS9 specifies the information described at the beginning as the purchase quantity information J61 (number-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 unit price information J63 (numeric information).

第1商品情報フレームは、購入数量情報J61、商品名情報J62、及び、単価情報J63が記述される「行」以外の「行」に、個数型の情報、任意型の情報、数値型の情報が所定の順番で並ぶ「行」が存在しない場合に、有効である。   In the first product information frame, number-type information, arbitrary-type information, and numerical-type information are displayed in “rows” other than “row” in which purchase quantity information J61, product name information J62, and unit price information J63 are described. This is effective when there are no “rows” that are 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.
FIG. 33 displays a list of the rule information JH32a to rule information JH32f described above. Each of these rule information is displayed in association with a radio button, and any rule information can be selected by the radio button. The user specifies a search rule by selecting any rule information.

図33に示すステップ対応画面G423について、ユーザーは、検索ルールを指定した後、遷移ボタンNBを操作する。遷移ボタンNBが操作されたことを検出した場合、制御サーバー制御部40は、図33のステップ対応画面G423を、次のステップ対応画面G423へ遷移させる。   For 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 is operated, the control server control unit 40 causes the step corresponding screen G423 in FIG. 33 to transition to the next step corresponding 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 instead 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 in accordance with a rule that it is described in an 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 upper character string is referred to as “area first character string”, and the lower character string is referred to as “area end character string”. . Then, in the step corresponding screen G423 in FIG. 34, it is possible to input the area head character string.
The user designates a search rule that the area leading character string is a predetermined word or word group on the step correspondence screen G423 of FIG.
Using the text based on the processing target text data displayed on the text display screen G43, the user selects a word or a word group as a keyword by the method described above.
The word or word group related to the region start character string input by the user is displayed in a predetermined region of the step corresponding screen G423. FIG. 34 shows a state in which a word group related to the area head character string is displayed in a predetermined area of the step correspondence screen G423.

図34に示すステップ対応画面G423について、ユーザーは、領域先頭文字列を入力した後、遷移ボタンNBを操作する。遷移ボタンNBが操作されたことを検出した場合、制御サーバー制御部40は、図34のステップ対応画面G423を、次のステップ対応画面G423へ遷移させる。   On the step correspondence screen G423 shown in FIG. 34, the user operates the transition button NB after inputting the region leading character string. When it is detected that the transition button NB is operated, the control server control unit 40 causes the step corresponding screen G423 in FIG. 34 to transition to the next step corresponding 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 instead of the step correspondence screen G423 in FIG. 34 when the transition button NB of the step correspondence screen G423 in FIG. 34 is operated.
In the step corresponding screen G423 of FIG. 35, it is possible to input the region end character string.
The user designates a search rule that the region end character string is a predetermined word or a word group on the step correspondence screen G423 in FIG.
Using the text based on the processing target text data displayed on the text display screen G43, the user selects a word or a word group as a keyword by the method described above.
The word or word group related to the region end character string input by the user is displayed in a predetermined region of the step corresponding screen G423. FIG. 35 shows a state in which the word or word group related to the region end character string is displayed in a predetermined region of the step correspondence screen G423.

図35に示すステップ対応画面G423について、ユーザーは、キーワードを入力した後、ステップ確定ボタンSB、又は、コンファームボタンCBを操作する。これらボタンの何れかが操作された場合の制御サーバー制御部40の処理は、上述したとおりである。   With respect to the step corresponding 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 region start character string and the region end character string input by the user when searching for the purchase quantity information J61, the product name information J62, and the unit price information J63. Identify the areas that will be Next, the ninth parser PS9 specifies the positions of these information from the specified area by the method described above. For example, when executing processing based on the search rule according to the first pattern, the control server control unit 40 executes the following processing. With the function of the ninth parser PS9, the control server control unit 40 describes three pieces of information in the “line” in the processing target text data within the specified area, and each piece of information is directed to the right. One or more “rows” described in the order of number-type information, arbitrary-type information, and numerical-type information are specified. Next, the ninth parser PS9 specifies the information described at the beginning as the purchase quantity information J61 (number-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 unit price information J63 (numeric type).

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

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

また、本実施形態では、制御サーバー制御部40は、表示した単語のうち、選択の候補となっている単語に対して、所定の装飾を施す。
この構成によれば、ユーザーは、単語が、選択の候補となったことを的確に認識した上で、所望の単語を的確にキーワードとして選択できる。
In the present embodiment, the control server control unit 40 applies a predetermined decoration to the words that are candidates for selection among the displayed words.
According to this configuration, the user can accurately select a desired word as a keyword after accurately recognizing that the word is 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 in the same line as the one word.
According to this configuration, when selecting a plurality of words as a keyword, the user can select a word as a keyword without error in a situation where words that are consecutive in the same row can be selected.

また、本実施形態では、制御サーバー15は、レシートを発行可能な印刷装置12に接続される。制御サーバー制御部40は、レシートに印刷された情報がテキストとして記述された印刷テキストデータを取得する。
この構成によれば、制御サーバー15は、ユーザーは、簡易な作業を行うことにより、レシートに印刷される情報を分析するプログラム(パーサーPS)を生成できる。すなわち、制御サーバー15によるレシートに対応する印刷テキストデータの分析に際し、ユーザーが行う操作が簡易化する。
In the present embodiment, the control server 15 is connected to the printing apparatus 12 that can issue a receipt. The control server control unit 40 acquires print text data in which 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 information printed on a receipt by the user performing a simple operation. That is, when the control server 15 analyzes the print 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) print text data in which information including item values of a plurality of items to be printed on a print medium is described in text. When acquiring from the print text data the first area A41 (first area) that is acquired as (text data) and from which a plurality of items can be selected, and the item value corresponding to the item selected in the first area A41 The second area A42 in 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 specifying a rule corresponding to the selected item in the second area. That is, when the control server 15 analyzes the print text data, the operation performed by the user is simplified.

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

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

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

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

また、本実施形態では、制御サーバー15は、レシートを発行可能な印刷装置12に接続される。制御サーバー制御部40は、レシートに印刷された情報がテキストとして記述された印刷テキストデータを取得する。
この構成によれば、ユーザーは、簡易な作業を行うことにより、レシートに印刷される情報を分析するプログラム(パーサーPS)を生成できる。すなわち、制御サーバー15よるレシートに対応する印刷テキストデータの分析に際し、ユーザーが行う操作が簡易化する。
In the present embodiment, the control server 15 is connected to the printing apparatus 12 that can issue a receipt. The control server control unit 40 acquires print text data in which information printed on the receipt is described as text.
According to this configuration, the user can generate a program (parser PS) for analyzing information printed on a receipt by performing a simple operation. That is, when the control server 15 analyzes the print 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 regarding the subtotal in accounting when the receipt is issued (subtotal information J72), information regarding the total (total amount information J92), or purchase. Information (product information J6) regarding the selected product.
According to this configuration, the user generates a program (parser PS) that executes processing for obtaining subtotal information J72, total amount information J92, and product information J6 printed on the receipt by performing a simple operation. it can.

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

また、本実施形態では、制御サーバー制御部40は、選択された項目について、選択された項目の項目値を取得する処理を実行するときに使用するフレーム(ルールの種類)を選択させ、フレームに応じて、選択された項目に対応するルールを指定するための情報を入力させるステップ対応画面G423を表示する。
この構成によれば、ユーザーは、フレームに対応するステップ対応画面G423に情報を入力するという簡易な作業を行うことにより、フレームに対応するパーサーPSを生成することができる。
Further, in the present embodiment, the control server control unit 40 selects a frame (rule type) to be used when executing processing for acquiring the item value of the selected item for the selected item, and makes the frame In response, a step corresponding screen G423 for inputting information for designating a 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 to the step corresponding screen G423 corresponding to the frame.

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

また、本実施形態では、ステップ対応画面G423は、コンファームボタンCB(所定のボタン。)を有する。制御サーバー制御部40は、コンファームボタンCBが操作されたことを検出した場合、ステップ対応画面G423に入力された情報に基づいてパーサーPSを生成し、生成したパーサーPSの機能により印刷テキストデータを分析し、分析結果を表示する。
この構成によれば、ユーザーは、分析結果を確認することにより、生成されたパーサーPSの分析結果の妥当性を的確に判別できる。
In the present embodiment, the step correspondence screen G423 includes a confirm button CB (predetermined button). When the control server control unit 40 detects that the confirm button CB has been operated, the control server control unit 40 generates a parser PS based on the information input on the step correspondence screen G423, and generates print text data by using 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 confirming the analysis result.

また、本実施形態では、制御サーバー15は、レシートを発行可能な印刷装置12に接続される。制御サーバー制御部40は、レシートに印刷された情報がテキストとして記述された印刷テキストデータを取得する。
この構成によれば、ユーザーは、簡易な作業を行うことにより、レシートに印刷される情報を分析するプログラム(パーサーPS)を生成できる。
In the present embodiment, the control server 15 is connected to the printing apparatus 12 that can issue a receipt. The control server control unit 40 acquires print text data in which information printed on the receipt is described as text.
According to this configuration, the user can generate a program (parser PS) for analyzing information printed on a 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 regarding the subtotal in accounting when the receipt is issued (subtotal information J72), information regarding the total (total amount information J92), or purchase. Information (product information J6) regarding the selected product.
According to this configuration, the user generates a program (parser PS) that executes processing for obtaining subtotal information J72, total amount information J92, and 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のように、タブレット型の装置に限らず、例えば、据え置き型の装置でもよい。
また、図を用いて説明した各機能ブロックはハードウェアとソフトウェアにより任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
For example, when the control method of the control server 15 (control method of the information processing apparatus) described above is realized using a computer included in the control server 15 or an external device connected to the control server 15, the present invention is It is also possible to configure in the form of a program executed by a computer to realize the method, a recording medium in which the program is recorded so as to be 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 disk, HDD (Hard Disk Drive), CD-ROM (Compact Disk Read Only Memory), DVD (Digital Versatile Disk), Blu-ray (registered trademark) Disc, magneto-optical disk, flash memory, card Examples thereof include portable or fixed recording media such as mold recording media. In addition, the recording medium may be a non-volatile storage device such as a random access memory (RAM), a read only memory (ROM), or an HDD that is an internal storage device included in the control server 15 or an external device connected to the control server 15. Good.
For example, in the above-described embodiment, the printing apparatus 12 generates print text data based on the print data in accordance with the transaction. However, the control server 15 may receive print data from the printing device 12 and generate print text data based on the received print data. That is, the main body 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 apparatus 12 and the tablet terminal 13 that functions as a host computer are configured to perform wireless communication. However, the printing apparatus 12 and the host computer are not limited to wireless communication, and may be configured to perform wired communication according to 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 a tablet-type device, such as the tablet terminal 13, and may be a stationary device, for example.
Each functional block described with reference to the drawings 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…自動釣銭機。   DESCRIPTION OF SYMBOLS 1 ... Accounting system, 12 ... Printing apparatus, 13 ... Tablet terminal, 15 ... Control server, 20 ... Tablet terminal control part, 21 ... Tablet terminal communication part, 22 ... Touch panel, 23 ... Tablet terminal memory | storage part, 30 ... Printing apparatus control , 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)

印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述されたテキストデータとして取得し、前記複数の項目のうちいずれか1つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成する、制御部を備える情報処理装置。   Information including item values of a plurality of items to be printed on a print medium is acquired as text data described in text, and one of the plurality of items is selected, and an item corresponding to the selected item An information processing apparatus comprising a control unit that displays a screen on which a rule used when generating a program for obtaining a value from the text data can be specified, and generates the program based on the rule specified on the screen . 前記制御部は、
選択された項目について、選択された項目の項目値を取得する際に使用する前記ルールの種類を選択させ、前記ルールの種類に応じて、選択された項目に対応する前記ルールを指定可能な前記画面を表示する請求項1に記載の情報処理装置
The controller is
For the selected item, the type of the rule used when acquiring the item value of the selected item is selected, and the rule corresponding to the selected item can be specified according to the type of the rule The information processing apparatus according to claim 1, wherein the information processing apparatus displays a screen.
前記制御部は、
選択された項目について、選択された項目の項目値を取得する際に使用する前記ルールが複数ある場合は、前記ルールを指定可能な複数の前記画面を順番に表示し、それぞれの前記画面で指定された前記ルールに基づいて、前記プログラムを生成する請求項1又は2に記載の情報処理装置。
The controller is
For a selected item, when there are a plurality of the rules to be used when acquiring the item value of the selected item, a plurality of the screens on which the rule can be specified are displayed in order and designated on each of the screens The information processing apparatus according to claim 1, wherein the program is generated based on the rule that has been set.
前記画面は、所定のボタンを有し、
前記制御部は、
前記所定のボタンが操作されたことを検出した場合、前記画面で指定された前記ルールに基づいて前記プログラムを生成する請求項1から3のいずれか一項に記載の情報処理装置。
The screen has predetermined buttons,
The controller is
The information processing apparatus according to any one of claims 1 to 3, wherein when the operation of the predetermined button is detected, the program is generated based on the rule specified on the screen.
前記制御部は、
生成した前記プログラムの機能により前記テキストデータを分析し、分析結果を表示させる請求項4に記載の情報処理装置。
The controller is
The information processing apparatus according to claim 4, wherein the text data is analyzed by a function of the generated program and an analysis result is displayed.
レシートを発行可能な印刷装置に接続され、
前記制御部は、
前記印刷装置によって前記レシートに印刷された情報を前記テキストデータとして取得する請求項1から5のいずれか一項に記載の情報処理装置。
Connected to a printing device capable of issuing receipts,
The controller is
The information processing apparatus according to any one of claims 1 to 5, wherein information printed on the receipt by the printing apparatus is acquired as the text data.
前記項目値は、小計、合計、又は、商品に関する情報のいずれかに対応する情報である請求項6に記載の情報処理装置。   The information processing apparatus according to claim 6, wherein the item value is information corresponding to any of subtotal, total, or information related to a product. 印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述されたテキストデータとして取得し、前記複数の項目のうちいずれか1つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成する、情報処理装置の制御方法。   Information including item values of a plurality of items to be printed on a print medium is acquired as text data described in text, and one of the plurality of items is selected, and an item corresponding to the selected item A method for controlling an information processing apparatus, comprising: displaying a screen on which a rule used when generating a program for obtaining a value from the text data can be specified; and generating the program based on the rule specified on the screen. 情報処理装置を制御する制御部により実行可能な制御プログラムであって、
前記制御部に、
印刷媒体に印刷される複数の項目の項目値を含む情報をテキストで記述されたテキストデータとして取得させ、前記複数の項目のうちいずれか1つの項目を選択させ、選択された項目に対応する項目値を前記テキストデータから取得するプログラムを生成する際に使用するルールを指定可能な画面を表示させ、前記画面で指定された前記ルールに基づいて前記プログラムを生成させる制御プログラム。
A control program that can be executed by a control unit that controls the information processing apparatus,
In the control unit,
Items including item values of a plurality of items printed on a print medium are acquired as text data described in text, and one of the plurality of items is selected, and an item corresponding to the selected item A control program for displaying a screen on which a rule used when generating a program for obtaining a value from the text data can be specified, and generating the program based on the rule specified on the screen.
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 true JP2018018466A (en) 2018-02-01
JP2018018466A5 JP2018018466A5 (en) 2019-08-22
JP6766503B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10674020B2 (en) 2017-09-29 2020-06-02 Seiko Epson Corporation Information processing device configured for a search process, and control method of an information processing device configured for a search process

Citations (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
KR20110103264A (en) * 2010-03-12 2011-09-20 에스케이마케팅앤컴퍼니 주식회사 Automatic data gathering system using by reading receipt and method thereof
JP2012185635A (en) * 2011-03-04 2012-09-27 Seiko Epson Corp Sales analytical program using print data, sales information acquisition device and sales information acquisition method
JP2012226402A (en) * 2011-04-15 2012-11-15 Fujitsu Marketing Ltd Receipt data recognition device and program therefor
WO2014103251A1 (en) * 2012-12-28 2014-07-03 セイコーエプソン株式会社 Data conversion system, data conversion device, and data conversion method

Patent Citations (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
KR20110103264A (en) * 2010-03-12 2011-09-20 에스케이마케팅앤컴퍼니 주식회사 Automatic data gathering system using by reading receipt and method thereof
JP2012185635A (en) * 2011-03-04 2012-09-27 Seiko Epson Corp Sales analytical program using print data, sales information acquisition device and sales information acquisition method
JP2012226402A (en) * 2011-04-15 2012-11-15 Fujitsu Marketing Ltd Receipt data recognition device and program therefor
WO2014103251A1 (en) * 2012-12-28 2014-07-03 セイコーエプソン株式会社 Data conversion system, data conversion device, and data conversion method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10674020B2 (en) 2017-09-29 2020-06-02 Seiko Epson Corporation Information processing device configured for a search process, and control method of an information processing device configured for a search process

Also Published As

Publication number Publication date
JP6766503B2 (en) 2020-10-14

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
US20170103623A1 (en) Server and point-of-sale terminal configured for higher throughput processing of returned merchandise
US20180032483A1 (en) Information processing device, control method of an information processing device, and storage medium
JP2009031919A (en) Commodity sales data processor
JP6657945B2 (en) Control server, information processing system, and control server control method
JP6379960B2 (en) Information processing apparatus, accounting system, and recording apparatus
JP6766503B2 (en) Information processing device, control method of information processing device, and control program
JP6772636B2 (en) Information processing device, control method of information processing device, and control program
US10984298B2 (en) Acquiring item values from printers based on notation form settings
JP7193596B2 (en) Merchandise sales data processor and input control program
US20180158041A1 (en) Checkout system, registration device, settlement device, and control method
JP7006096B2 (en) Information processing device and control method of information processing device
US10990861B2 (en) Printer communication using formatted printing information and alteration or deletion of formatted printing information
JP6756102B2 (en) Information processing device, information processing method of information processing device, and information processing system
JP2013210914A (en) Label issuing machine for field crop direct-sales site
JP2013114339A (en) Commodity sales data processor and program
JP7205178B2 (en) Information processing device and control method for information processing device
JP5502838B2 (en) Product sales data processing apparatus and program
JP2012216043A (en) Settlement processor, program and settlement processing system
JP5663517B2 (en) Product information processing apparatus and program thereof
US20240119811A1 (en) Sales data processing apparatus and method
JP2019067040A (en) Information processing apparatus and control method thereof
JP2024015275A (en) Product sales data processing device and control program
JP2009245460A (en) Merchandise sales data processor

Legal Events

Date Code Title Description
A521 Request for written amendment filed

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