JP2012198613A - Output device, journal generation system, journal generation method and program - Google Patents

Output device, journal generation system, journal generation method and program Download PDF

Info

Publication number
JP2012198613A
JP2012198613A JP2011060775A JP2011060775A JP2012198613A JP 2012198613 A JP2012198613 A JP 2012198613A JP 2011060775 A JP2011060775 A JP 2011060775A JP 2011060775 A JP2011060775 A JP 2011060775A JP 2012198613 A JP2012198613 A JP 2012198613A
Authority
JP
Japan
Prior art keywords
output
data
journal
receipt
font
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.)
Withdrawn
Application number
JP2011060775A
Other languages
Japanese (ja)
Inventor
Ryuichi Oka
隆一 岡
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 Instruments Inc
Original Assignee
Seiko Instruments Inc
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 Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP2011060775A priority Critical patent/JP2012198613A/en
Publication of JP2012198613A publication Critical patent/JP2012198613A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable output of a journal with the same content as a receipt without allowing increase in the data volume required for outputting the receipt and journal.SOLUTION: A host 1 generates the output data of a receipt including, as output content, character data indicating the details of a sold commercial product, an image such as a logo, a barcode and the like. The character data indicating the details of an object to be output as a journal has font information indicating the usage of a specific font added when being output. An output device 2 outputs a journal including, as content, only character data having the font information indicating the usage of a specific font, from among the output content included in the output data of the receipt and outputs the receipt including all output content included in the output data of the receipt.

Description

本発明は、出力装置、ジャーナル生成システム、ジャーナル生成方法及びプログラムに関する。   The present invention relates to an output device, a journal generation system, a journal generation method, and a program.

店舗等のレジには、レシートを発行するためのデバイスであるPOS(Point Of Sale)プリンタが設置されている。POSプリンタは、お客様へ渡すレシートを発行すると同時に、店舗において売上等を管理するための帳票として使用されるジャーナルを発行する場合がある。POSプリンタにこれらの発行を指示するホストは、レシート用の印刷データとジャーナル用の印刷データを生成する。POSプリンタは、レシート用の印刷データとジャーナル用の印刷データをホストから受信し、それぞれを印刷する。あるいは、ホストは、レシート用の印刷データとジャーナル用の印刷データの両方を含む印刷データを生成する。この場合、POSプリンタは、印刷データに記述されているコマンドや所定の文字列を解析して印刷データをレシート用の印刷データの部分とジャーナル用の印刷データの部分とに分割し、それぞれを印刷する。   A POS (Point Of Sale) printer, which is a device for issuing a receipt, is installed at a cash register such as a store. The POS printer may issue a journal to be used as a form for managing sales and the like at a store at the same time as issuing a receipt to be delivered to a customer. The host instructing the POS printer to issue these items generates receipt print data and journal print data. The POS printer receives the print data for receipt and the print data for journal from the host and prints them. Alternatively, the host generates print data including both receipt print data and journal print data. In this case, the POS printer analyzes the command or predetermined character string described in the print data, divides the print data into a print data portion for receipt and a print data portion for journal, and prints each of them. To do.

一方、特許文献1では、印刷装置が、売上明細データと印刷スタイル情報とをホストから受信し、印刷スタイル情報内の印刷コマンドが指定する売上明細データ内の情報を、当該印刷コマンドが指定するフォーマットに従って印刷している。さらに、印刷装置は、売上明細データ内の各情報に付加されているタグが示す項目名に基づいて電子ジャーナルに必要であると判断される項目のみを抽出し、電子ジャーナルを生成している。同様に、印刷装置は、タグが示す項目名に基づいて売上明細データから電子レシートに必要であると判断される項目のみを抽出し、電子レシートを生成している。   On the other hand, in Patent Document 1, the printing apparatus receives sales specification data and print style information from the host, and the format in which the print command specifies information in the sales specification data specified by the print command in the print style information. According to the printing. Furthermore, the printing apparatus extracts only items determined to be necessary for the electronic journal based on the item name indicated by the tag added to each information in the sales detail data, and generates the electronic journal. Similarly, the printing apparatus extracts only items determined to be necessary for the electronic receipt from the sales detail data based on the item name indicated by the tag, and generates an electronic receipt.

特開2005−144994号公報JP 2005-144994 A

一般的に、ジャーナルは、レシートの内容からお店のロゴやお客様へのお知らせ、バーコードなどを除いた明細の部分であることが多い。しかし従来は、レシートとジャーナルが同一の明細を含む場合であっても、ホストは、レシート用の印刷データと、ジャーナル用の印刷データとを別々に生成していた。そのため、ホストに何らかの不具合が生じたときなどに、レシート用の印刷データが示す明細の内容と、ジャーナル用の印刷データが示す明細の内容とに不一致が発生する可能性があった。また、ホストが印刷データを正しく生成した場合であっても、印刷データの送信中に通信エラーなどが生じ、POSプリンタが受信したレシート用の印刷データとジャーナル用の印刷データとの間で明細の内容に不一致が発生する可能性があった。   In general, the journal is often the part of the details excluding the store logo, the notice to the customer, and the barcode from the contents of the receipt. However, conventionally, even if the receipt and the journal contain the same details, the host has generated the print data for the receipt and the print data for the journal separately. For this reason, when some trouble occurs in the host, there is a possibility that the details of the details indicated by the print data for receipt and the details of the details indicated by the print data for journal may occur. Even if the host correctly generates print data, a communication error or the like occurs during transmission of the print data, and there is no specification between the print data for receipt received by the POS printer and the print data for journal. There could be a discrepancy in content.

特許文献1では、ホストが、売上明細データと印刷スタイル情報を生成して印刷装置へ送信しているが、印刷スタイル情報は、レシートの印刷のみに使用される。よって、印刷装置にジャーナルを印刷させるためには、ジャーナルの印刷スタイル情報をさらに生成しなければならず、ホストと印刷装置間のデータ量が増大してしまう。また、印刷装置は、電子ジャーナルを生成する際、電子ジャーナルに用いるべき項目であるか否かを、売上明細データに含まれる各情報のタグよって判断している。よって、ホストは、全ての情報にタグを付加した売上明細データを生成しなければならない。そのため、売上明細データのデータ量が大きくなる。加えて、電子ジャーナルや電子レシートの対象となる項目が変更された場合、印刷装置の設定を変更しなければならない。   In Patent Document 1, the host generates sales specification data and print style information and transmits it to the printing apparatus. However, the print style information is used only for printing a receipt. Therefore, in order to cause the printing apparatus to print a journal, it is necessary to further generate journal printing style information, which increases the amount of data between the host and the printing apparatus. Further, when generating an electronic journal, the printing apparatus determines whether or not the item should be used for the electronic journal by using a tag of each information included in the sales detail data. Therefore, the host must generate sales details data with tags added to all information. Therefore, the data amount of sales detailed data becomes large. In addition, when an item that is the subject of an electronic journal or electronic receipt is changed, the setting of the printing apparatus must be changed.

本発明は、このような事情を考慮してなされたものであり、レシート及びジャーナルの出力のために必要なデータ量を増大させることなく、レシートと整合した内容のジャーナルを出力することができる出力装置、ジャーナル生成システム、ジャーナル生成方法及びプログラムを提供する。   The present invention has been made in consideration of such circumstances, and can output a journal having contents consistent with the receipt without increasing the amount of data necessary for the output of the receipt and the journal. An apparatus, a journal generation system, a journal generation method, and a program are provided.

本発明の一態様は、レシートの出力内容を示すデータと、文字を出力内容とする前記データに対応付けられた文字出力指示情報とを含んだ出力データから、前記文字出力指示情報が対応付けられている前記データを特定するデータ解析部と、前記データ解析部が特定した前記データにより示される出力内容を出力するジャーナル出力制御部と、前記出力データに含まれる前記データが示すレシートの出力内容を出力するレシート出力制御部と、を備えることを特徴とする出力装置である。   According to one aspect of the present invention, the character output instruction information is associated with output data including data indicating the output contents of a receipt and character output instruction information associated with the data having the output contents of characters. A data analysis unit for identifying the data, a journal output control unit for outputting an output content indicated by the data specified by the data analysis unit, and an output content of a receipt indicated by the data included in the output data An output device comprising a receipt output control unit for outputting.

本発明の一態様は、上述する出力装置であって、前記文字出力指示情報は、フォント情報を含んでおり、前記データ解析部が特定した前記データに対応付けられている前記文字出力指示情報のうち、ジャーナルとして出力する対象であることを特定する所定のフォントを示す前記フォント情報を含んだ前記文字出力情報を特定するフォント情報解析部をさらに備え、前記ジャーナル出力制御部は、前記フォント情報解析部が特定した前記文字出力情報が対応付けられている前記データにより示される出力内容を出力する、ことを特徴とする。   One aspect of the present invention is the output device described above, wherein the character output instruction information includes font information, and the character output instruction information associated with the data specified by the data analysis unit. A font information analysis unit that specifies the character output information including the font information indicating a predetermined font that is to be output as a journal, and the journal output control unit includes the font information analysis unit An output content indicated by the data associated with the character output information specified by the section is output.

本発明の一態様は、上述する出力装置であって、前記フォント情報解析部は、前記文字出力指示情報に含まれる前記フォント情報のうち、制御コマンドに対応した所定のフォントを示す前記フォント情報を検出し、前記フォント情報解析部が制御コマンドに対応した前記所定のフォントを示す前記フォント情報を検出した場合、前記制御コマンドを実行する制御コマンド実行部をさらに備える、ことを特徴とする。   One aspect of the present invention is the above-described output device, wherein the font information analysis unit includes the font information indicating a predetermined font corresponding to a control command among the font information included in the character output instruction information. When the font information analysis unit detects and detects the font information indicating the predetermined font corresponding to the control command, the font information analysis unit further includes a control command execution unit that executes the control command.

本発明の一態様は、上述する出力装置であって、前記所定のフォントは、前記出力装置がサポートしていないフォント、あるいは、前記ジャーナル出力制御部が特定した前記文字出力情報と対応付けられている前記データの出力内容である文字の出力に使用されるフォントである、ことを特徴とする。   One aspect of the present invention is the output device described above, wherein the predetermined font is associated with a font not supported by the output device or the character output information specified by the journal output control unit. It is a font used for the output of the character which is the output content of the said data.

本発明の一態様は、ホスト装置と出力装置とを備えるジャーナル生成システムであって、前記ホスト装置は、レシートの出力内容を示すデータを生成するデータ生成部と、前記データ生成部が生成した前記データのうち、文字を出力内容とする前記データに、文字出力指示情報を付加するジャーナル出力識別情報生成部と、前記データ生成部が生成した前記データと、前記ジャーナル出力識別情報生成部が付加した前記文字出力指示情報とを含む出力データを前記出力装置へ送信する出力制御部と、を備え、前記出力装置は、前記ホスト装置から受信した前記出力データから、前記文字出力指示情報が対応付けられている前記データを特定するデータ解析部と、前記データ解析部が特定した前記データにより示される出力内容を出力するジャーナル出力制御部と、前記出力データに含まれる前記データが示すレシートの出力内容を出力するレシート出力制御部と、を備える、ことを特徴とするジャーナル生成システムである。   One aspect of the present invention is a journal generation system including a host device and an output device, wherein the host device generates data indicating the output contents of a receipt, and the data generated by the data generator Of the data, the journal output identification information generation unit for adding character output instruction information, the data generated by the data generation unit, and the journal output identification information generation unit are added to the data whose output content is characters. An output control unit that transmits output data including the character output instruction information to the output device, and the output device associates the character output instruction information with the output data received from the host device. A data analysis unit for identifying the data being output, and a jar for outputting the output content indicated by the data identified by the data analysis unit A null output controller, and a receipt output controller for outputting the output content of the receipt of the data indicates that is included in the output data, a journal generation system characterized by.

上記ジャーナル生成システムにおいて、前記ジャーナル出力識別情報生成部は、前記データ生成部が生成した前記データのうち、ジャーナルとして出力する対象となる文字を出力内容とする前記データに、ジャーナルとして出力する対象であることを特定する所定のフォントを示すフォント情報を含んだ前記文字出力指示情報を付加し、前記出力装置は、前記データ解析部が特定した前記データに対応付けられている前記文字出力指示情報のうち、ジャーナルとして出力する対象であることを特定する所定のフォントを示す前記フォント情報を含んだ前記文字出力情報を特定するフォント情報解析部をさらに備え、前記ジャーナル出力制御部は、前記フォント情報解析部が特定した前記文字出力情報が対応付けられている前記データにより示される出力内容を出力する、ようにしてもよい。   In the journal generation system, the journal output identification information generation unit is a target to be output as a journal to the data whose output content is a character to be output as a journal among the data generated by the data generation unit. The character output instruction information including font information indicating a predetermined font for specifying a certain font is added, and the output device includes the character output instruction information associated with the data specified by the data analysis unit. A font information analysis unit that specifies the character output information including the font information indicating a predetermined font that is to be output as a journal, and the journal output control unit includes the font information analysis unit Indicated by the data associated with the character output information specified by the It outputs an output content to be, may be.

本発明の一態様は、出力装置が実行するジャーナル生成方法であって、データ解析部が、レシートの出力内容を示すデータと、文字を出力内容とする前記データに対応付けられた文字出力指示情報とを含んだ出力データから、前記文字出力指示情報が対応付けられている前記データを特定するデータ解析過程と、ジャーナル出力制御部が、前記データ解析過程において特定された前記データにより示される出力内容を出力するジャーナル出力過程と、前記出力データに含まれる前記データが示すレシートの出力内容を出力するレシート出力過程と、を有することを特徴とするジャーナル生成方法である。   One aspect of the present invention is a journal generation method executed by an output device, in which a data analysis unit includes data indicating output contents of a receipt, and character output instruction information associated with the data having output contents as characters. A data analysis process for specifying the data associated with the character output instruction information from output data including the output data, and an output content indicated by the data specified by the journal output control unit in the data analysis process A journal output process, and a receipt output process for outputting the output contents of a receipt indicated by the data included in the output data.

本発明の一態様は、出力装置に用いられるコンピュータを、レシートの出力内容を示すデータと、文字を出力内容とする前記データに対応付けられた文字出力指示情報とを含んだ出力データから、前記文字出力指示情報が対応付けられている前記データを特定するデータ解析部、前記データ解析部が特定した前記データにより示される出力内容を出力するジャーナル出力制御部、前記出力データに含まれる前記データが示すレシートの出力内容を出力するレシート出力制御部、として機能させることを特徴とするプログラムである。   One aspect of the present invention relates to a computer used for an output device, from output data including data indicating the output content of a receipt and character output instruction information associated with the data having a character as output content. A data analysis unit that identifies the data associated with character output instruction information, a journal output control unit that outputs an output content indicated by the data identified by the data analysis unit, and the data included in the output data It is a program characterized by functioning as a receipt output control unit that outputs the output contents of the receipt shown.

本発明によれば、レシート及びジャーナルの出力のために必要なデータ量を増大させることなく、レシートと整合した内容のジャーナルを出力することができる。   According to the present invention, it is possible to output a journal having contents consistent with the receipt without increasing the amount of data necessary for outputting the receipt and the journal.

本発明の一実施形態によるジャーナル生成システムの構成を示すブロック図である。It is a block diagram which shows the structure of the journal production | generation system by one Embodiment of this invention. 同実施形態によるレシート及びジャーナルの出力例を示す図である。It is a figure which shows the output example of the receipt and journal by the same embodiment. 同実施形態による出力データの記述例を示す図である。It is a figure which shows the example of a description of the output data by the embodiment. 同実施形態によるフォント情報の例を示す図である。It is a figure which shows the example of the font information by the embodiment. 同実施形態によるホストの処理フローを示す図である。It is a figure which shows the processing flow of the host by the embodiment. 同実施形態によるプリンタの処理フローを示す図である。It is a figure which shows the processing flow of the printer by the embodiment. 他の実施形態によるプリンタの処理フローを示す図である。It is a figure which shows the processing flow of the printer by other embodiment. さらに他の実施形態によるレシート及びジャーナルの出力例を示す図である。It is a figure which shows the output example of the receipt and journal by other embodiment.

以下、図面を参照しながら本発明の実施形態を詳細に説明する。
本実施形態のジャーナル生成システムは、店のレジなどで使用される。本実施形態のジャーナル生成システムは、レジ担当の店員などであるPOS(Point Of Sale)オペレータが入力した内容に基づいてレシートを出力し、そのレシートの内容の一部をジャーナルとして出力する。一般的に、ジャーナルとして必要な内容は、レシートに含まれる内容のうち明細の部分であり、通常、明細は文字データで表される。文字データを出力させるには、出力装置(プリンタ)に実装されるフォント(以下、「デバイスフォント」と記載する。)を利用する。出力装置は、文字データに付加されたフォント情報によって、その文字データの出力に利用するデバイスフォントを識別する。そこで、本実施形態のジャーナル生成システムは、レシートを出力装置に出力させるための出力データを生成する際、レシートの出力内容を示すデータのうち、ジャーナルに必要な出力内容である明細を示す文字データに、特定のデバイスフォントを使用することを示すフォント情報を付加する。これにより、出力装置は、フォント情報を利用して、レシートの出力データからジャーナルの対象である文字データを抽出することができる。従って、ジャーナル生成システムは、レシートの出力データのみで、レシートの出力のみならず、ジャーナルの出力までを行うことが可能となる。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
The journal generation system of this embodiment is used at a store cash register. The journal generation system of the present embodiment outputs a receipt based on the contents input by a POS (Point Of Sale) operator such as a clerk in charge of a cash register, and outputs a part of the contents of the receipt as a journal. In general, the content necessary for a journal is a part of the details included in the receipt, and the details are usually represented by character data. In order to output character data, a font (hereinafter referred to as “device font”) mounted on an output device (printer) is used. The output device identifies a device font used for outputting the character data based on the font information added to the character data. Therefore, when the journal generation system according to the present embodiment generates output data for outputting a receipt to the output device, character data indicating details that are output contents necessary for the journal among data indicating the output contents of the receipt. In addition, font information indicating that a specific device font is used is added. As a result, the output device can extract the character data that is the subject of the journal from the output data of the receipt using the font information. Therefore, the journal generation system can perform not only the receipt output but also the journal output only with the receipt output data.

図1は、本発明の一実施形態によるジャーナル生成システムの構成を示すブロック図であり、本実施形態と関係する機能ブロックのみ抽出して示してある。本実施形態のジャーナル生成システムは、レシートの出力データを生成するホスト1と、レシートの出力データに基づいてレシートを出力するとともにジャーナルを生成して出力する出力装置2とを備えて構成される。   FIG. 1 is a block diagram showing a configuration of a journal generation system according to an embodiment of the present invention, in which only functional blocks related to the present embodiment are extracted and shown. The journal generation system according to this embodiment includes a host 1 that generates receipt output data, and an output device 2 that outputs a receipt based on the receipt output data, and generates and outputs a journal.

ホスト1は、例えば、POSシステムの一部を構成する装置、あるいは、POSシステムと接続される装置であり、オペレータ操作部11、データ解析部12、明細データ生成部13、ジャーナル出力識別情報生成部14、レシート付加情報生成部15、レシートコマンド生成部16及び出力制御部17を備えて構成される。   The host 1 is, for example, a device constituting a part of the POS system or a device connected to the POS system, and includes an operator operation unit 11, a data analysis unit 12, a detailed data generation unit 13, and a journal output identification information generation unit. 14, a receipt additional information generation unit 15, a receipt command generation unit 16, and an output control unit 17.

オペレータ操作部11は、POSオペレータの操作によるデータの入力を受ける。
データ解析部12は、オペレータ操作部11により入力されたデータ(以下、「入力データ」と記載する。)を解析し、明細に必要なデータを取得する。明細に必要なデータは、例えば、入力データ、入力データを用いて生成したデータ、入力データをキーにして図示しないホスト1内のメモリやホスト1に接続される他の装置から読み出したデータなどである。
明細データ生成部13は、データ解析部12が取得したデータから、明細データを生成する。明細データは、文字データであり、例えば、商品名、商品の値段、商品の販売個数などを含む。
The operator operation unit 11 receives data input by the operation of the POS operator.
The data analysis unit 12 analyzes data input by the operator operation unit 11 (hereinafter referred to as “input data”) and acquires data necessary for the specification. The data necessary for the specification is, for example, input data, data generated using the input data, data read from a memory in the host 1 (not shown) or other devices connected to the host 1 using the input data as a key, etc. is there.
The detail data generation unit 13 generates detail data from the data acquired by the data analysis unit 12. The detail data is character data, and includes, for example, a product name, a product price, and the number of products sold.

ジャーナル出力識別情報生成部14は、明細データ生成部13が生成した明細データのうち、ジャーナル出力対象となる部分の明細データに、特定フォント情報を付加する。特定フォント情報は、ジャーナル出力対象であることを特定するためのデバイスフォント(以下、「特定フォント」と記載する。)を示す。デバイスフォントは、例えば、フォントサイズ、フォント名、文字飾り(アンダーライン、太文字、斜体文字など)などの種類で特定される。特定フォントは、1種類のデバイスフォントであってもよく、複数種類のデバイスフォントの組合せであってもよい。
レシート付加情報生成部15は、明細データ以外にレシートに必要な出力内容を示す出力内容データを図示しないメモリから読み出したり、生成したりする。レシートのみに必要な出力内容は、例えば、店のロゴや、バーコードなどである。
The journal output identification information generation unit 14 adds specific font information to the detail data of the part to be journal output among the detail data generated by the detail data generation unit 13. The specific font information indicates a device font (hereinafter referred to as “specific font”) for specifying a journal output target. The device font is specified by the type of font size, font name, character decoration (underline, bold, italic, etc.), for example. The specific font may be one type of device font or a combination of a plurality of types of device fonts.
The receipt additional information generation unit 15 reads or generates output content data indicating output content necessary for the receipt in addition to the detailed data from a memory (not shown). The output content required only for the receipt is, for example, a store logo or a barcode.

レシートコマンド生成部16は、明細データ生成部13が生成した明細データが示す文字データを印刷させる印刷コマンドと、レシート付加情報生成部15が生成または取得した出力内容データが示す出力内容を印刷させる印刷コマンドを生成する。文字データを印刷する印刷コマンドには、文字データの印刷に使用するデバイスフォントを示すフォント情報が付加される。レシートコマンド生成部16は、特定フォント情報が付加された明細データについては、特定フォント情報が示す特定フォントをフォント情報に設定する。また、レシートコマンド生成部16は、特定フォント情報が付加されていない明細データについては、特定フォントとは異なるデバイスフォントをフォント情報に設定する。レシートコマンド生成部16は、生成した印刷コマンドを実行順に並べてレシートの出力データを生成する。なお、出力データには、印刷コマンドのほか、制御コマンドが含まれ得る。制御コマンドは、出力装置2に所定の動作を実行させる命令であり、例えば、印刷を行なったロール紙の切断を指示するコマンドなどがある。   The receipt command generation unit 16 prints the print command for printing the character data indicated by the detailed data generated by the detailed data generation unit 13 and the output content indicated by the output content data generated or acquired by the receipt additional information generation unit 15 Generate a command. Font information indicating a device font used for printing character data is added to a print command for printing character data. The receipt command generation unit 16 sets the specific font indicated by the specific font information in the font information for the detailed data to which the specific font information is added. Further, the receipt command generation unit 16 sets a device font different from the specific font in the font information for the detailed data to which the specific font information is not added. The receipt command generator 16 arranges the generated print commands in the order of execution and generates receipt output data. The output data can include a control command in addition to the print command. The control command is a command for causing the output device 2 to execute a predetermined operation, and includes, for example, a command for instructing cutting of the roll paper that has been printed.

出力制御部17は、レシートコマンド生成部16が生成した出力データを出力装置2に送信する。   The output control unit 17 transmits the output data generated by the receipt command generation unit 16 to the output device 2.

出力装置2(デバイス)は、プリンタであり、ジャーナルを印刷するジャーナル出力装置4と接続される。出力装置2は、記憶部20、入力制御部21、データ蓄積制御部22、データ解析部23、フォント情報解析部24、指定フォント判定部25、ジャーナル用イメージ変換部26、ジャーナル出力制御部27、レシート用イメージ変換部28、レシート出力制御部29、レシート出力装置30及び制御コマンド実行部31を備えて構成される。   The output device 2 (device) is a printer and is connected to a journal output device 4 that prints a journal. The output device 2 includes a storage unit 20, an input control unit 21, a data accumulation control unit 22, a data analysis unit 23, a font information analysis unit 24, a designated font determination unit 25, a journal image conversion unit 26, a journal output control unit 27, A receipt image conversion unit 28, a receipt output control unit 29, a receipt output device 30, and a control command execution unit 31 are configured.

記憶部20は、出力データなどの各種データを記憶するメモリである。入力制御部21は、ホスト1が送信した出力データを受信する。データ蓄積制御部22は、入力制御部21が受信した出力データを記憶部20に格納する。   The storage unit 20 is a memory that stores various data such as output data. The input control unit 21 receives output data transmitted by the host 1. The data accumulation control unit 22 stores the output data received by the input control unit 21 in the storage unit 20.

データ解析部23は、記憶部20に格納された出力データに含まれるコマンドを抽出し、コマンドの種類を解析する。データ解析部23は、抽出したコマンドが制御コマンドである場合、その制御コマンドを制御コマンド実行部31に出力する。   The data analysis unit 23 extracts commands included in the output data stored in the storage unit 20 and analyzes the types of commands. If the extracted command is a control command, the data analysis unit 23 outputs the control command to the control command execution unit 31.

フォント情報解析部24は、データ解析部23が文字データの印刷コマンドであると判断したコマンドからフォント情報を抽出し、フォント情報が示すデバイスフォントが特定フォントであるか否かを判断する。   The font information analysis unit 24 extracts font information from the command that the data analysis unit 23 determines to be a character data print command, and determines whether the device font indicated by the font information is a specific font.

指定フォント判定部25は、フォント情報解析部24により、フォント情報が示すデバイスフォントが特定フォントであると判断されたた場合、印刷コマンドをジャーナル用イメージ変換部26及びレシート用イメージ変換部28に出力する。また、フォント情報解析部24により、フォント情報が示すデバイスフォントが特定フォントとは異なると判断された場合、データ解析部23により、文字データ以外を印刷させる印刷コマンドであると判断された場合、印刷コマンドをレシート用イメージ変換部28のみに出力する。   The designated font determination unit 25 outputs a print command to the journal image conversion unit 26 and the receipt image conversion unit 28 when the font information analysis unit 24 determines that the device font indicated by the font information is a specific font. To do. Also, when the font information analysis unit 24 determines that the device font indicated by the font information is different from the specific font, the data analysis unit 23 determines that the print command is for printing data other than character data. The command is output only to the receipt image conversion unit 28.

ジャーナル用イメージ変換部26は、指定フォント判定部25から入力された文字データの印刷コマンドからイメージデータを生成する。この変換により、ジャーナルのイメージデータが生成される。イメージデータは、例えば、印刷内容をドットの単位で表したデータである。
ジャーナル出力制御部27は、ジャーナル用イメージ変換部26が生成したイメージデータをジャーナル出力装置4に出力する。
The journal image conversion unit 26 generates image data from the print command of the character data input from the designated font determination unit 25. By this conversion, journal image data is generated. The image data is, for example, data that represents print contents in dot units.
The journal output control unit 27 outputs the image data generated by the journal image conversion unit 26 to the journal output device 4.

レシート用イメージ変換部28は、データ解析部23から入力された印刷コマンド、及び、指定フォント判定部25から入力された印刷コマンドからイメージデータを生成する。この変換により、レシートのイメージデータが生成される。
レシート出力制御部29は、コマンドイメージ変換部28が生成したイメージデータをレシート出力装置30に出力し、印刷を実行させる。
レシート出力装置30は、イメージデータに従って、紙への印刷を行う。
制御コマンド実行部31は、データ解析部23から入力された制御コマンドを実行する。
The receipt image conversion unit 28 generates image data from the print command input from the data analysis unit 23 and the print command input from the designated font determination unit 25. With this conversion, receipt image data is generated.
The receipt output control unit 29 outputs the image data generated by the command image conversion unit 28 to the receipt output device 30 to execute printing.
The receipt output device 30 performs printing on paper according to the image data.
The control command execution unit 31 executes the control command input from the data analysis unit 23.

なお、上記においては、出力装置2内にレシート出力装置30を備えているが、出力装置2と接続されるプリンタをレシート出力装置30としてもよい。   In the above description, the receipt output device 30 is provided in the output device 2, but a printer connected to the output device 2 may be used as the receipt output device 30.

図2は、レシート及びジャーナルの出力例を示す図である。
同図に示すレシートの出力内容は、ロゴ、明細a、明細b及び明細cからなる。明細aには、レシート番号、日時、販売した商品のID、商品の名称、商品の単価、販売数量、割引率、商品毎の単計などの情報が含まれる。明細bには、ポイント利用により値引きした金額、支払の合計金額、支払い方法とその支払方法で支払われた金額などの情報が含まれる。明細cには、購入者が保有しているポイントの累計や、店からのお知らせなどが含まれる。一方、ジャーナルの出力内容は、レシートの出力内容のうち、明細aのみである。
この場合、ホスト1は、明細aの文字データに付加するフォント情報に、特定フォントであるデバイスフォントαを設定する。また、ホスト1は、明細bの文字データに付加するフォント情報に、特定フォントとは異なるデバイスフォントβを設定し、明細cの文字データに付加するフォント情報には、特定フォントとは異なるデバイスフォントγを設定する。
FIG. 2 is a diagram illustrating an example of output of a receipt and a journal.
The output content of the receipt shown in the figure consists of a logo, details a, details b and details c. The details a include information such as a receipt number, date and time, the ID of the sold product, the name of the product, the unit price of the product, the sales quantity, the discount rate, and the total for each product. The details b include information such as the amount discounted by using points, the total amount of payment, the payment method and the amount paid by the payment method. The statement c includes the accumulated points held by the purchaser, notifications from the store, and the like. On the other hand, the output contents of the journal are only the details a among the output contents of the receipt.
In this case, the host 1 sets the device font α, which is a specific font, in the font information added to the character data of the details a. Further, the host 1 sets a device font β different from the specific font in the font information added to the character data of the detail b, and a device font different from the specific font in the font information added to the character data of the detail c. Set γ.

図3は、出力データの記述例を示す図である。
同図に示すように、ロゴを印刷させるための印刷コマンドは、イメージ印刷コマンドと、印刷対象のイメージデータの組合せにより記述される。あるいは、出力装置2の記憶部20に記憶されているイメージデータを読み出して印刷させる場合、登録イメージ印刷コマンドにより記述される。
また、明細データを印刷させるための印刷コマンドは、文字印刷指定コマンド(文字出力指示情報)と、文字データの組合せにより記述される。文字印刷指定コマンドには、フォント情報が含まれる。文字印刷コマンドは、「1BH,21H,n」(Hは16進数であることを示す)と表され、nの部分がフォント情報である。文字データには、明細データが設定される。
なお、明細の後ろに、さらに、イメージデータやバーコードを印刷させることもできる。イメージデータの印刷は、上述したロゴデータの印刷と同様に、イメージ印刷コマンドとイメージデータの組合せ、あるいは、登録イメージ印刷コマンドにより記述される。また、バーコードの印刷は、バーコード印刷コマンドにより記述される。
FIG. 3 is a diagram illustrating a description example of output data.
As shown in the figure, a print command for printing a logo is described by a combination of an image print command and image data to be printed. Alternatively, when the image data stored in the storage unit 20 of the output device 2 is read and printed, it is described by a registered image print command.
A print command for printing detailed data is described by a combination of a character print designation command (character output instruction information) and character data. The character print designation command includes font information. The character print command is expressed as “1BH, 21H, n” (H indicates a hexadecimal number), and the portion of n is font information. Detailed data is set in the character data.
Note that image data and barcodes can also be printed after the description. Image data printing is described by a combination of an image print command and image data, or a registered image print command, as in the case of logo data printing described above. Bar code printing is described by a bar code print command.

図4は、フォント情報の例を示す。
同図に示すようにフォント情報は、8ビットからなり、それぞれのビットが各種類のフォントに対応している。例えば、図3に示すように、明細aの印刷コマンドは、文字印刷指定コマンド「1BH,21H,09H」と、明細aの内容を示す文字データの組合せにより記述されており、フォント情報は「09H」である。フォント情報「09H」は、0ビット目と3ビット目の設定値は「1」、1、2、4〜7ビット目の設定値は「0」であるためフォントBと、強調印刷の指定を示す。つまり、デバイスフォントα(特定フォント)は、フォントBと強調印刷の組合せである。一方、明細bの印刷を指示する文字印刷指定コマンドのフォント情報は「00H」であり、フォントBの指定と、修飾指定なしの組合せを示す。
FIG. 4 shows an example of font information.
As shown in the figure, the font information is composed of 8 bits, and each bit corresponds to each type of font. For example, as shown in FIG. 3, the print command for the detail a is described by a combination of a character print designation command “1BH, 21H, 09H” and character data indicating the content of the detail a, and the font information is “09H”. It is. In the font information “09H”, the setting values of the 0th and 3rd bits are “1”, and the setting values of the 1st, 2nd, 4th to 7th bits are “0”. Show. That is, the device font α (specific font) is a combination of font B and emphasis printing. On the other hand, the font information of the character print designation command for instructing printing of the details b is “00H”, which indicates a combination of designation of font B and no designation of modification.

図5は、ホスト1の処理フローを示す図である。
ホスト1のオペレータ操作部11がPOSオペレータの入力を受けると、データ解析部12は、オペレータ操作部11により入力された入力データに基づいて、明細必要なデータを取得する。例えば、入力データは、販売された商品のIDとその販売数量、顧客ID、支払方法及びその支払方法によって支払われた金額である。データ解析部12は、明細aを生成するための情報として、ホスト1に接続されている図示しないPOSシステムから商品の名称、単価及び割引率を読み出し、商品の単価、販売数量及び割引率から商品毎の購入金額を算出する。また、データ解析部12は、伝票番号を生成するとともに、現在時刻を取得する。さらに、データ解析部12は、明細b、明細cを生成するための情報を取得する。明細データ生成部13は、データ解析部12が取得した情報に基づいて、明細データを構成する文字データを一行単位で生成する(ステップS105)。
FIG. 5 is a diagram illustrating a processing flow of the host 1.
When the operator operation unit 11 of the host 1 receives an input from the POS operator, the data analysis unit 12 acquires data necessary for the details based on the input data input by the operator operation unit 11. For example, the input data is an ID of a sold product, its sales quantity, a customer ID, a payment method, and an amount paid by the payment method. The data analysis unit 12 reads the product name, unit price, and discount rate from a POS system (not shown) connected to the host 1 as information for generating the details a, and the product from the unit price, sales quantity, and discount rate of the product. Calculate the purchase price for each. In addition, the data analysis unit 12 generates a slip number and acquires the current time. Further, the data analysis unit 12 acquires information for generating the details b and details c. The detail data generation unit 13 generates character data constituting the detail data in units of one line based on the information acquired by the data analysis unit 12 (step S105).

ジャーナル出力識別情報生成部14は、明細データ生成部13が生成した文字データを順に選択する(ステップS110)。選択した文字データがジャーナル出力対象の明細データに含まれると判断した場合(ステップS115:YES)、ジャーナル出力識別情報生成部14は、文字データに特定フォント情報を付加した後(ステップS120)、まだ選択していない文字データがあるかを判断する(ステップS125)。一方、選択した文字データがジャーナル出力対象となる明細データに含まれないと判断した場合(ステップS115:NO)、ジャーナル出力識別情報生成部14は、フォントを指定する情報を付加せずに、まだ選択していない文字データがあるかを判断する(ステップS125)。   The journal output identification information generation unit 14 sequentially selects the character data generated by the detail data generation unit 13 (step S110). When it is determined that the selected character data is included in the detailed data to be output from the journal (step S115: YES), the journal output identification information generation unit 14 still adds the specific font information to the character data (step S120) and still It is determined whether there is unselected character data (step S125). On the other hand, when it is determined that the selected character data is not included in the detailed data to be journal output (step S115: NO), the journal output identification information generation unit 14 does not add the information for designating the font, but still It is determined whether there is unselected character data (step S125).

ステップS125において、ジャーナル出力識別情報生成部14は、まだ選択していない文字データがあると判断した場合(ステップS125:NO)、次の文字データを選択するステップS110からの処理を行い、全ての文字データを特定したと判断した場合(ステップS125:YES)、ステップS130の処理を行う。   In step S125, when the journal output identification information generation unit 14 determines that there is character data that has not been selected (step S125: NO), the journal output identification information generation unit 14 performs processing from step S110 for selecting the next character data. If it is determined that character data has been specified (step S125: YES), the process of step S130 is performed.

レシート付加情報生成部15は、明細以外にレシートに必要な出力内容を示す出力内容データを取得する。例えば、レシート付加情報生成部15は、出力内容データとして、ホスト1が備える図示しないメモリから店のロゴを読み出したり、バーコードとして出力すべき内容を生成したりする。レシートコマンド生成部16は、明細データ生成部13が生成した明細データと、レシート付加情報生成部15が取得した出力内容データから印刷コマンドを生成する(ステップS130)。   The receipt additional information generation part 15 acquires the output content data which shows the output content required for a receipt other than a detail. For example, the receipt additional information generation unit 15 reads out a store logo from a memory (not shown) included in the host 1 as output content data, or generates content to be output as a barcode. The receipt command generating unit 16 generates a print command from the detailed data generated by the detailed data generating unit 13 and the output content data acquired by the receipt additional information generating unit 15 (step S130).

レシートコマンド生成部16は、特定フォント情報が付加されている明細データについては、特定フォント情報が示す特定フォントを設定したフォント情報を含む文字印刷指定コマンドにより印刷コマンドを生成する。また、レシートコマンド生成部16は、特定フォント情報が付加されていない明細データについては、特定フォントとは異なるデバイスフォントを設定したフォント情報を含む文字印刷指定コマンドにより印刷コマンドを生成する。さらに、レシートコマンド生成部16は、出力内容データが示す出力内容に合わせて、イメージ印刷コマンド、登録イメージ印刷コマンド、バーコード印刷コマンドなどの印刷コマンドを生成する。レシートコマンド生成部16は、明細データの印刷コマンドと、明細以外の出力内容の印刷コマンドとを明細のフォーマットに合わせて実行順に並べ、レシートの出力データを生成する(ステップS135)。
出力制御部17は、レシートコマンド生成部16が生成した出力データを出力装置2に出力する(ステップS140)。
For the detailed data to which the specific font information is added, the receipt command generation unit 16 generates a print command by a character print designation command including font information in which the specific font indicated by the specific font information is set. Further, the receipt command generation unit 16 generates a print command for the detailed data to which the specific font information is not added by a character print designation command including font information in which a device font different from the specific font is set. Further, the receipt command generation unit 16 generates print commands such as an image print command, a registered image print command, and a barcode print command in accordance with the output content indicated by the output content data. The receipt command generation unit 16 arranges the print command for the detail data and the print command for the output content other than the detail in the order of execution according to the format of the detail, and generates the output data of the receipt (step S135).
The output control unit 17 outputs the output data generated by the receipt command generation unit 16 to the output device 2 (step S140).

図6は、出力装置2の処理フローを示す図である。
出力装置2の入力制御部21が、ホスト1から出力された出力データを受信すると、データ蓄積制御部22は、出力データを記憶部20に格納する(ステップS205)。データ解析部23は、記憶部20に格納された出力データに含まれているコマンドを読み出す(ステップS210)。なお、コマンドは実行順に出力データに記載されているため、データ解析部23は、まだ読み出していないコマンドの中で、最も実行順が早いコマンドを読み出す。
FIG. 6 is a diagram illustrating a processing flow of the output device 2.
When the input control unit 21 of the output device 2 receives the output data output from the host 1, the data accumulation control unit 22 stores the output data in the storage unit 20 (step S205). The data analysis unit 23 reads a command included in the output data stored in the storage unit 20 (step S210). Since the commands are described in the output data in the order of execution, the data analysis unit 23 reads the command with the earliest execution order among the commands that have not been read yet.

データ解析部23は、読み出したコマンドの種類を解釈し、ジャーナル用イメージ変換部26及びレシート用イメージ変換部28をコマンドの種類に応じたモードに遷移させる(ステップS215)。例えば、コマンドがイメージデータの印刷コマンドである場合、そのイメージデータの印刷終了までレシート用イメージ変換部28をイメージデータ印刷モードとし、コマンドが文字データの印刷コマンドである場合、ジャーナル用イメージ変換部26及びレシート用イメージ変換部28を文字印刷モードとする。なお、データ解析部23は、コマンドが制御コマンドである場合、制御コマンドをコマンド実行部31に出力する。制御コマンド実行部31は、データ解析部23から入力された制御コマンドに従って各種制御を行う。   The data analysis unit 23 interprets the type of the read command and shifts the journal image conversion unit 26 and the receipt image conversion unit 28 to a mode corresponding to the command type (step S215). For example, if the command is an image data print command, the receipt image conversion unit 28 is set to the image data print mode until the end of printing the image data. If the command is a character data print command, the journal image conversion unit 26 is used. The receipt image conversion unit 28 is set to the character print mode. The data analysis unit 23 outputs the control command to the command execution unit 31 when the command is a control command. The control command execution unit 31 performs various controls according to the control command input from the data analysis unit 23.

フォント情報解析部24は、ジャーナル用イメージ変換部26及びレシート用イメージ変換部28が現在文字印刷モードであると判断した場合(ステップS220:YES)、ステップS210においてデータ解析部23が読み出した印刷コマンドからフォント情報を抽出する。フォント情報解析部24は、抽出したフォント情報が、特定フォント(例えば、デバイスフォントα)を示しているか否かを判断する(ステップS225)。   When it is determined that the journal image conversion unit 26 and the receipt image conversion unit 28 are currently in the character print mode (step S220: YES), the font information analysis unit 24 reads the print command read by the data analysis unit 23 in step S210. Extract font information from. The font information analysis unit 24 determines whether or not the extracted font information indicates a specific font (for example, device font α) (step S225).

フォント情報解析部24により、フォント情報が特定フォントを示していると判断された場合(ステップS225:YES)、指定フォント判定部25は、ステップS210において読み出された印刷コマンドをジャーナル用イメージ変換部26に出力する。ジャーナル用イメージ変換部26は、印刷コマンドに含まれるフォント情報が示すデバイスフォントにより、当該印刷コマンドで指定される文字データを印刷させるためのイメージデータを生成する。ジャーナル用イメージ変換部26は、生成したイメージデータをジャーナル出力装置4に出力し、ジャーナル出力装置4は、イメージデータに従って印刷を行う(ステップS230)。   When the font information analysis unit 24 determines that the font information indicates a specific font (step S225: YES), the designated font determination unit 25 converts the print command read in step S210 into a journal image conversion unit. 26. The journal image conversion unit 26 generates image data for printing the character data specified by the print command, using the device font indicated by the font information included in the print command. The journal image conversion unit 26 outputs the generated image data to the journal output device 4, and the journal output device 4 performs printing according to the image data (step S230).

ステップS220において、フォント情報解析部24が、ジャーナル用イメージ変換部26は文字印刷モードではないと判断した場合(ステップS220:NO)、ステップS225において、フォント情報解析部24が、フォント情報は特定フォントを示していないと判断した場合(ステップS225:NO)、あるいは、ステップS230の処理の後、指定フォント判定部25は、ステップS210において読み出された印刷コマンドをレシート用イメージ変換部28に出力する(ステップS235)。   In step S220, when the font information analysis unit 24 determines that the journal image conversion unit 26 is not in the character print mode (step S220: NO), in step S225, the font information analysis unit 24 determines that the font information is a specific font. If it is determined that it does not indicate (step S225: NO), or after the processing of step S230, the designated font determination unit 25 outputs the print command read in step S210 to the receipt image conversion unit 28. (Step S235).

レシート用イメージ変換部28は、現在文字印刷モードである場合、指定フォント判定部25から入力された印刷コマンドのフォント情報が示すデバイスフォントにより、当該印刷コマンドで指定される文字データを印刷させるためのイメージデータを生成する。レシート出力制御部29は、レシート用イメージ変換部28が生成したイメージデータに従ってレシート出力装置30にレシートを印刷させる。一方、現在文字印刷モードではなく、印刷コマンドがイメージの印刷である場合、レシート用イメージ変換部28は、印刷コマンドで指定されたイメージデータをレシート出力制御部29に出力し、レシート出力制御部29はイメージデータに従ってレシート出力装置30にレシートを印刷させる。また、レシート出力制御部29は、印刷コマンドがバーコード印刷コマンドである場合、印刷コマンドで指定された情報をバーコードにより印刷させるためのイメージデータを生成してレシート出力制御部29に出力し、レシート出力制御部29は、イメージデータに従ってレシート出力装置30にレシートを印刷させる(ステップS235)。   When the receipt image conversion unit 28 is currently in the character print mode, the receipt image conversion unit 28 uses the device font indicated by the font information of the print command input from the specified font determination unit 25 to print the character data specified by the print command. Generate image data. The receipt output control unit 29 causes the receipt output device 30 to print a receipt according to the image data generated by the receipt image conversion unit 28. On the other hand, if the current print mode is not the print mode and the print command is image printing, the receipt image conversion unit 28 outputs the image data specified by the print command to the receipt output control unit 29, and the receipt output control unit 29. Causes the receipt output device 30 to print the receipt according to the image data. Further, when the print command is a barcode print command, the receipt output control unit 29 generates image data for printing the information specified by the print command with the barcode, and outputs the image data to the receipt output control unit 29. The receipt output control unit 29 causes the receipt output device 30 to print a receipt according to the image data (step S235).

データ解析部23は、出力データにまだ読み出していないコマンドがある場合(ステップS240:あり)、ステップS210からの処理を繰り返し、出力データに含まれる全てのコマンドを読み出したと判断した場合(ステップS240:なし)、処理を終了する。   If there is a command that has not yet been read in the output data (step S240: present), the data analysis unit 23 repeats the processing from step S210 and determines that all the commands included in the output data have been read (step S240: None), the process ends.

上記においては、出力装置2がレシートを印刷し、ジャーナル出力装置4がジャーナルを印刷しているが、出力装置2がジャーナルも印刷するようにしてもよい。   In the above description, the output device 2 prints a receipt and the journal output device 4 prints a journal. However, the output device 2 may also print a journal.

図7は、出力装置2においてレシート及びジャーナルを印刷する場合の処理フローを示す。同図において、図6に示す処理と同じ処理には同じ符号を付している。以下では、図6に示す処理との差分について説明する。   FIG. 7 shows a processing flow when printing a receipt and a journal in the output device 2. In the figure, the same processes as those shown in FIG. Below, the difference with the process shown in FIG. 6 is demonstrated.

ステップS225において、フォント情報解析部24は、フォント情報が特定フォントを示していると判断した場合(ステップS225:YES)、ステップS210において読み出された印刷コマンドを記憶部20に書き込む(ステップS305)。ステップS305の処理の後、出力装置2は、ステップS235からの処理を行う。   In step S225, when the font information analysis unit 24 determines that the font information indicates a specific font (step S225: YES), the print command read in step S210 is written in the storage unit 20 (step S305). . After the process of step S305, the output device 2 performs the process from step S235.

また、ステップS240において、データ解析部23が出力データに含まれる全てのコマンドを読み出したと判断した場合(ステップS240:なし)、ジャーナル用イメージ変換部26は、ステップS305において記憶部20に書き込まれた印刷コマンドを順に読み出す。ジャーナル用イメージ変換部26は、読み出した印刷コマンドに含まれるフォント情報が示すデバイスフォントにより、当該印刷コマンドで指定される文字データを印刷させるためのイメージデータを生成する。ジャーナル出力制御部27は、ジャーナル用イメージ変換部26が生成したイメージデータに従ってレシート出力装置30にジャーナルを印刷させる(ステップS310)。   If it is determined in step S240 that the data analysis unit 23 has read all the commands included in the output data (step S240: none), the journal image conversion unit 26 is written in the storage unit 20 in step S305. Read print commands in order. The journal image conversion unit 26 generates image data for printing the character data specified by the print command, using the device font indicated by the font information included in the read print command. The journal output control unit 27 causes the receipt output device 30 to print the journal according to the image data generated by the journal image conversion unit 26 (step S310).

上記実施形態では、ジャーナルとして出力する対象が、レシートデータに含まれる文字データの一部である場合について説明した。つまり、上記実施形態では、プリンタは、文字データに付加されたフォント情報が特定フォントを示す場合、その文字データをレシートの出力とジャーナルの出力の両方に用い、フォント情報が所定のフォントとは異なるフォントを示す場合、その文字データをレシートの出力のみに使用している。
しかし、ジャーナルとして出力する対象を、レシートデータから店のロゴや宣伝などのイメージ、バーコードなどを除いた文字データ全てとしてもよい。
In the above embodiment, the case where the target to be output as a journal is a part of the character data included in the receipt data has been described. That is, in the above embodiment, when the font information added to the character data indicates a specific font, the printer uses the character data for both receipt output and journal output, and the font information is different from the predetermined font. When a font is indicated, the character data is used only for receipt output.
However, the object to be output as a journal may be all character data excluding images such as store logos and advertisements and barcodes from the receipt data.

図8は、ジャーナルの対象が文字データ全てである場合のレシートとジャーナルの出力イメージを示す。
同図に示すように、レシートの出力内容は、イメージ印刷コマンドにより印刷されるロゴの部分と、文字データの印刷コマンドにより印刷される明細の部分と、バーコード印刷コマンドにより印刷されるバーコードの部分からなる。
データ解析部23は、印刷コマンドにフォント情報が付加されていれば、つまり、文字データを印刷される印刷コマンドであれば、ジャーナルとして出力する対象であると判断してコマンドイメージ変換部26に出力する。ジャーナル用イメージ変換部26は、データ解析部23から入力された印刷コマンドからイメージデータを生成する。この場合、フォント情報には、任意のデバイスフォントを設定することができる。
一方、出力装置2のレシート用イメージ変換部28は、出力データ内の全ての印刷コマンドに従ってイメージデータを取得または生成する。これにより、レシート出力装置30は、文字データ、バーコードを含んだレシートを印刷する。
FIG. 8 shows a receipt and an output image of the journal when the target of the journal is all character data.
As shown in the figure, the output content of the receipt includes a logo portion printed by the image print command, a specification portion printed by the character data print command, and a barcode printed by the barcode print command. It consists of parts.
If the font information is added to the print command, that is, if the print command prints character data, the data analysis unit 23 determines that it is a target to be output as a journal and outputs it to the command image conversion unit 26. To do. The journal image conversion unit 26 generates image data from the print command input from the data analysis unit 23. In this case, an arbitrary device font can be set in the font information.
On the other hand, the receipt image conversion unit 28 of the output device 2 acquires or generates image data according to all print commands in the output data. As a result, the receipt output device 30 prints a receipt including character data and a barcode.

なお、ジャーナル用イメージ変換部26は、印刷コマンドからイメージデータを生成する代わりに、印刷コマンドに含まれる明細データ(文字データ)から電子ジャーナルを生成してもよい。電子ジャーナルは、例えば、ジャーナルを画像データなどコンピュータが表示できる形式で表したデータや、ジャーナルを帳票管理等に用いる計算用のソフトウェアなどが利用可能なデータ形式で表したデータである。この場合、ジャーナル出力制御部27は、ジャーナル用イメージ変換部26が生成した電子ジャーナルのデータを記憶部20または出力装置2と接続される記憶装置に書き込む。   Note that the journal image conversion unit 26 may generate an electronic journal from detailed data (character data) included in the print command instead of generating image data from the print command. The electronic journal is, for example, data representing a journal in a format that can be displayed by a computer, such as image data, or data representing a data format that can be used by calculation software that uses the journal for form management. In this case, the journal output control unit 27 writes the electronic journal data generated by the journal image conversion unit 26 in the storage unit 20 or a storage device connected to the output device 2.

また、ジャーナル用イメージ変換部26は、印刷コマンドから、イメージデータと電子ジャーナルの両方を生成してもよい。ジャーナル用イメージ変換部26は、生成したイメージデータを、ジャーナル出力装置4に出力し、電子ジャーナルを記憶部20または出力装置2と接続される記憶装置に書き込む。   Further, the journal image conversion unit 26 may generate both image data and an electronic journal from a print command. The journal image conversion unit 26 outputs the generated image data to the journal output device 4 and writes the electronic journal to the storage unit 20 or the storage device connected to the output device 2.

また、レシート用イメージ変換部28は、イメージデータに代えて、あるいは、イメージデータに加えて、印刷コマンドから電子レシートを生成してもよい。電子レシートは、例えば、レシートを画像データなどコンピュータが表示できる形式で表したデータや、レシートを計算用のソフトウェアなどが利用可能なデータ形式で表したデータである。レシート用イメージ変換部28は、生成した電子レシートを記憶部20または出力装置2と接続される記憶装置に書き込む。   In addition, the receipt image conversion unit 28 may generate an electronic receipt from a print command instead of or in addition to the image data. The electronic receipt is, for example, data representing a receipt in a format that can be displayed by a computer, such as image data, or data representing a receipt in a data format that can be used by calculation software. The receipt image conversion unit 28 writes the generated electronic receipt in the storage unit 20 or a storage device connected to the output device 2.

また、出力装置2のフォント情報解析部24は、文字データを印刷させる印刷コマンドに含まれるフォント情報が特定フォントを示していると判断した場合、その特定フォントに対応して予め決められた制御コマンド、例えば、レジスターのキャッシュドロワのオープンを指示する制御コマンドに変換し、変換した制御コードを制御コマンド実行部31に出力してもよい。制御コマンド実行部31は、フォント情報解析部24により変換された制御コマンドを実行する。   When the font information analysis unit 24 of the output device 2 determines that the font information included in the print command for printing the character data indicates a specific font, a control command determined in advance corresponding to the specific font For example, the control command may be converted into a control command for instructing opening of the cash drawer of the register, and the converted control code may be output to the control command execution unit 31. The control command execution unit 31 executes the control command converted by the font information analysis unit 24.

なお、特定フォントは、出力装置2がサポートしていないデバイスフォントであってもよい。この場合、出力装置2は、フォント情報で示されるデバイスフォントのうち、サポートしているデバイスフォントのみを用いて、明細データを印刷させる。出力装置2がサポートしていないデバイスフォントを、ジャーナルとして出力する対象であることを示すデバイスフォントとすることにより、レシートとして印刷される文字に影響なく、ジャーナルとして出力する対象の明細(文字データ)を指定することができる。あるいは、出力装置2がサポートしていないデバイスフォントを一部に含んだデバイスフォントの組合せを特定フォントとすることによって、ジャーナルとして出力する対象の文字データと、ジャーナルの対象ではない文字データとを同じデバイスフォントによって印刷させることができる。   The specific font may be a device font that is not supported by the output device 2. In this case, the output device 2 causes the detailed data to be printed using only supported device fonts among the device fonts indicated by the font information. By setting a device font that is not supported by the output device 2 to be a device font that is to be output as a journal, details (character data) to be output as a journal without affecting the characters printed as a receipt. Can be specified. Alternatively, a combination of device fonts partially including device fonts not supported by the output device 2 is used as a specific font, so that the character data to be output as a journal is the same as the character data that is not the target of the journal. Can be printed by device font.

上述した実施形態によれば、ホストはレシートの出力データのみを生成し、出力装置(プリンタ)は、出力データからフォント情報に従ってジャーナルとして出力(印刷)すべき文字データを抽出する。従って、ホストはレシートの出力データを生成するのみで、出力装置にレシートの出力のみならず、ジャーナルの出力までを実行させることが可能となる。よって、ホスト側のエラーやデータ通信時のエラーなどによって、レシートとジャーナルの内容に不一致が発生する可能性がなくなるとともに、ホストから出力装置へ送信するデータのデータ量が減少する。また、ジャーナルとして出力する対象に変更があったとしても、出力装置の設定変更は不要である。
また、文字データに付加されたフォント情報を利用して、所定の制御コマンドをプリンタに実行させることも可能である。
According to the above-described embodiment, the host generates only the receipt output data, and the output device (printer) extracts the character data to be output (printed) as a journal from the output data according to the font information. Therefore, the host can generate not only the receipt output but also the journal output only by generating the receipt output data. Therefore, there is no possibility of a mismatch between the contents of the receipt and the journal due to an error on the host side or an error during data communication, and the amount of data transmitted from the host to the output device is reduced. Also, even if the target to be output as a journal is changed, it is not necessary to change the setting of the output device.
It is also possible to cause the printer to execute a predetermined control command using font information added to the character data.

なお、ホスト1のデータ解析部12、明細データ生成部13、ジャーナル出力識別情報生成部14、レシート付加情報生成部15、レシートコマンド生成部16及び出力制御部17、ならびに、出力装置2のデータ蓄積制御部22、データ解析部23、フォント情報解析部24、指定フォント判定部25、ジャーナル用イメージ変換部26、ジャーナル出力制御部27、レシートイメージ変換部28及びレシート出力制御部29はメモリおよびCPU(中央処理装置)等により構成される。そして、上述したホスト1のデータ解析部12、明細データ生成部13、ジャーナル出力識別情報生成部14、レシート付加情報生成部15及びレシートコマンド生成部16、ならびに、出力装置2のデータ蓄積制御部22、データ解析部23、フォント情報解析部24、指定フォント判定部25、ジャーナル用イメージ変換部26及びレシートイメージ変換部28の処理過程を実現するためのプログラム(図示せず)を、これを記録している不揮発性のメモリ、磁気ディスク等から、上記メモリにロードして実行することによりその機能が実現されるものとする。   The data analysis unit 12, detailed data generation unit 13, journal output identification information generation unit 14, receipt additional information generation unit 15, receipt command generation unit 16 and output control unit 17 of the host 1, and data storage of the output device 2 The control unit 22, the data analysis unit 23, the font information analysis unit 24, the designated font determination unit 25, the journal image conversion unit 26, the journal output control unit 27, the receipt image conversion unit 28, and the receipt output control unit 29 are a memory and a CPU ( Central processing unit). The data analysis unit 12, detailed data generation unit 13, journal output identification information generation unit 14, receipt additional information generation unit 15, receipt command generation unit 16, and data accumulation control unit 22 of the output device 2 are described above. , A data analysis unit 23, a font information analysis unit 24, a designated font determination unit 25, a journal image conversion unit 26, and a program (not shown) for realizing the processing steps of the receipt image conversion unit 28 are recorded. It is assumed that the function is realized by loading the memory from a non-volatile memory, a magnetic disk or the like and executing it.

1…ホスト
11…オペレータ操作部
12…データ解析部
13…明細データ生成部(データ生成部)
14…ジャーナル出力識別情報生成部
15…レシート付加情報生成部(データ生成部)
16…レシートコマンド生成部
17…出力制御部
2…出力装置
20…記憶部
21…入力制御部
22…データ蓄積制御部
23…データ解析部
24…フォント情報解析部
25…指定フォント判定部
26…ジャーナル用イメージ変換部
27…ジャーナル出力制御部
28…レシート用イメージ変換部
29…レシート出力制御部
30…レシート出力装置
31…制御コマンド実行部
4…ジャーナル出力装置
DESCRIPTION OF SYMBOLS 1 ... Host 11 ... Operator operation part 12 ... Data analysis part 13 ... Detail data generation part (data generation part)
14 ... Journal output identification information generation unit 15 ... Receipt additional information generation unit (data generation unit)
16 ... Receipt command generation unit 17 ... Output control unit 2 ... Output device 20 ... Storage unit 21 ... Input control unit 22 ... Data accumulation control unit 23 ... Data analysis unit 24 ... Font information analysis unit 25 ... Designated font determination unit 26 ... Journal Image conversion unit 27 ... journal output control unit 28 ... receipt image conversion unit 29 ... receipt output control unit 30 ... receipt output device 31 ... control command execution unit 4 ... journal output device

Claims (7)

レシートの出力内容を示すデータと、文字を出力内容とする前記データに対応付けられた文字出力指示情報とを含んだ出力データから、前記文字出力指示情報が対応付けられている前記データを特定するデータ解析部と、
前記データ解析部が特定した前記データにより示される出力内容を出力するジャーナル出力制御部と、
前記出力データに含まれる前記データが示すレシートの出力内容を出力するレシート出力制御部と、
を備えることを特徴とする出力装置。
The data associated with the character output instruction information is identified from output data including data indicating the output contents of the receipt and character output instruction information associated with the data having the output contents of characters. A data analysis unit;
A journal output control unit that outputs an output content indicated by the data specified by the data analysis unit;
A receipt output control unit for outputting the output content of the receipt indicated by the data included in the output data;
An output device comprising:
前記文字出力指示情報は、フォント情報を含んでおり、
前記データ解析部が特定した前記データに対応付けられている前記文字出力指示情報のうち、ジャーナルとして出力する対象であることを特定する所定のフォントを示す前記フォント情報を含んだ前記文字出力情報を特定するフォント情報解析部をさらに備え、
前記ジャーナル出力制御部は、前記フォント情報解析部が特定した前記文字出力情報が対応付けられている前記データにより示される出力内容を出力する、
ことを特徴とする請求項1に記載の出力装置。
The character output instruction information includes font information,
Among the character output instruction information associated with the data specified by the data analysis unit, the character output information including the font information indicating a predetermined font that specifies a target to be output as a journal. A font information analysis unit for identifying
The journal output control unit outputs an output content indicated by the data associated with the character output information specified by the font information analysis unit;
The output device according to claim 1.
前記フォント情報解析部は、前記文字出力指示情報に含まれる前記フォント情報のうち、制御コマンドに対応した所定のフォントを示す前記フォント情報を検出し、
前記フォント情報解析部が制御コマンドに対応した前記所定のフォントを示す前記フォント情報を検出した場合、前記制御コマンドを実行する制御コマンド実行部をさらに備える、
ことを特徴とする請求項2に記載の出力装置。
The font information analysis unit detects the font information indicating a predetermined font corresponding to a control command from the font information included in the character output instruction information;
A control command execution unit for executing the control command when the font information analysis unit detects the font information indicating the predetermined font corresponding to the control command;
The output device according to claim 2.
前記所定のフォントは、前記出力装置がサポートしていないフォント、あるいは、前記ジャーナル出力制御部が特定した前記文字出力情報と対応付けられている前記データの出力内容である文字の出力に使用されるフォントである、
ことを特徴とする請求項2または請求項3に記載の出力装置。
The predetermined font is used to output a font that is not supported by the output device or a character that is an output content of the data associated with the character output information specified by the journal output control unit. Is a font,
The output device according to claim 2 or claim 3, wherein
ホスト装置と出力装置とを備えるジャーナル生成システムであって、
前記ホスト装置は、
レシートの出力内容を示すデータを生成するデータ生成部と、
前記データ生成部が生成した前記データのうち、文字を出力内容とする前記データに、文字出力指示情報を付加するジャーナル出力識別情報生成部と、
前記データ生成部が生成した前記データと、前記ジャーナル出力識別情報生成部が付加した前記文字出力指示情報とを含む出力データを前記出力装置へ送信する出力制御部と、
を備え、
前記出力装置は、
前記ホスト装置から受信した前記出力データから、前記文字出力指示情報が対応付けられている前記データを特定するデータ解析部と、
前記データ解析部が特定した前記データにより示される出力内容を出力するジャーナル出力制御部と、
前記出力データに含まれる前記データが示すレシートの出力内容を出力するレシート出力制御部と、
を備える、
ことを特徴とするジャーナル生成システム。
A journal generation system comprising a host device and an output device,
The host device is
A data generation unit for generating data indicating the output contents of the receipt;
Among the data generated by the data generation unit, a journal output identification information generation unit that adds character output instruction information to the data that includes characters as output contents;
An output control unit for transmitting output data including the data generated by the data generation unit and the character output instruction information added by the journal output identification information generation unit to the output device;
With
The output device is
A data analysis unit that identifies the data associated with the character output instruction information from the output data received from the host device;
A journal output control unit that outputs an output content indicated by the data specified by the data analysis unit;
A receipt output control unit for outputting the output content of the receipt indicated by the data included in the output data;
Comprising
A journal generation system characterized by that.
出力装置が実行するジャーナル生成方法であって、
データ解析部が、レシートの出力内容を示すデータと、文字を出力内容とする前記データに対応付けられた文字出力指示情報とを含んだ出力データから、前記文字出力指示情報が対応付けられている前記データを特定するデータ解析過程と、
ジャーナル出力制御部が、前記データ解析過程において特定された前記データにより示される出力内容を出力するジャーナル出力過程と、
前記出力データに含まれる前記データが示すレシートの出力内容を出力するレシート出力過程と、
を有することを特徴とするジャーナル生成方法。
A journal generation method executed by an output device,
The data analysis unit associates the character output instruction information from output data including data indicating the output contents of the receipt and character output instruction information associated with the data having the output contents of characters. A data analysis process for identifying the data;
A journal output control unit that outputs an output content indicated by the data identified in the data analysis process;
A receipt output process for outputting the output content of the receipt indicated by the data included in the output data;
A journal generation method characterized by comprising:
出力装置に用いられるコンピュータを、
レシートの出力内容を示すデータと、文字を出力内容とする前記データに対応付けられた文字出力指示情報とを含んだ出力データから、前記文字出力指示情報が対応付けられている前記データを特定するデータ解析部、
前記データ解析部が特定した前記データにより示される出力内容を出力するジャーナル出力制御部、
前記出力データに含まれる前記データが示すレシートの出力内容を出力するレシート出力制御部、
として機能させることを特徴とするプログラム。
The computer used for the output device
The data associated with the character output instruction information is identified from output data including data indicating the output contents of the receipt and character output instruction information associated with the data having the output contents of characters. Data analysis department,
A journal output control unit that outputs the output content indicated by the data specified by the data analysis unit;
A receipt output control unit for outputting the output content of the receipt indicated by the data included in the output data;
A program characterized by functioning as
JP2011060775A 2011-03-18 2011-03-18 Output device, journal generation system, journal generation method and program Withdrawn JP2012198613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011060775A JP2012198613A (en) 2011-03-18 2011-03-18 Output device, journal generation system, journal generation method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011060775A JP2012198613A (en) 2011-03-18 2011-03-18 Output device, journal generation system, journal generation method and program

Publications (1)

Publication Number Publication Date
JP2012198613A true JP2012198613A (en) 2012-10-18

Family

ID=47180798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011060775A Withdrawn JP2012198613A (en) 2011-03-18 2011-03-18 Output device, journal generation system, journal generation method and program

Country Status (1)

Country Link
JP (1) JP2012198613A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014215865A (en) * 2013-04-26 2014-11-17 セイコーエプソン株式会社 Control device, control system, control method of control device, and program
JPWO2014103251A1 (en) * 2012-12-28 2017-01-12 セイコーエプソン株式会社 Data conversion system, data conversion device, and data conversion method
US9898691B2 (en) 2013-04-26 2018-02-20 Seiko Epson Corporation Control device, control system, and control method of a control device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2014103251A1 (en) * 2012-12-28 2017-01-12 セイコーエプソン株式会社 Data conversion system, data conversion device, and data conversion method
JP2014215865A (en) * 2013-04-26 2014-11-17 セイコーエプソン株式会社 Control device, control system, control method of control device, and program
US9898691B2 (en) 2013-04-26 2018-02-20 Seiko Epson Corporation Control device, control system, and control method of a control device

Similar Documents

Publication Publication Date Title
JP5810609B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
EP2942706B1 (en) Data conversion system, data conversion device, and data conversion method
US9058139B2 (en) Function expansion method using print data, and function expansion device
US10430697B2 (en) Printer and method for processing string information
JP2005056143A (en) Electronic receipt issuing method, program, electronic receipt issuing device, printer and pos system
US10102457B2 (en) Host device, printing system, and data processing method
US9898691B2 (en) Control device, control system, and control method of a control device
US9224275B2 (en) Media processing method using multiple processing units for performing multiple processes
JP6155808B2 (en) CONTROL DEVICE, CONTROL SYSTEM, AND CONTROL DEVICE CONTROL METHOD
JP2012198613A (en) Output device, journal generation system, journal generation method and program
US9591078B2 (en) Media processing device and POS system
US10048901B2 (en) Control device, control method of a control device, and storage medium
JP5862045B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP6186846B2 (en) CONTROL DEVICE, CONTROL SYSTEM, AND CONTROL DEVICE CONTROL METHOD
EP3142086B1 (en) Print data processing device, print data processing method, program, and printing system
EP3667657B1 (en) Display control device and display control method
JP2010067121A (en) Printing information generating device, printing device, printing system, and method for controlling the printing information generating device
JP5906620B2 (en) Control device control method
JP2017111466A (en) Printer and printer control method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140603