JP2019020892A - Printing system and printer used in the same - Google Patents

Printing system and printer used in the same Download PDF

Info

Publication number
JP2019020892A
JP2019020892A JP2017137005A JP2017137005A JP2019020892A JP 2019020892 A JP2019020892 A JP 2019020892A JP 2017137005 A JP2017137005 A JP 2017137005A JP 2017137005 A JP2017137005 A JP 2017137005A JP 2019020892 A JP2019020892 A JP 2019020892A
Authority
JP
Japan
Prior art keywords
unit
priority
printer
command
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017137005A
Other languages
Japanese (ja)
Inventor
将太 大石
Shota Oishi
将太 大石
直美 松村
Naomi Matsumura
直美 松村
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.)
Star Micronics Co Ltd
Original Assignee
Star Micronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Star Micronics Co Ltd filed Critical Star Micronics Co Ltd
Priority to JP2017137005A priority Critical patent/JP2019020892A/en
Publication of JP2019020892A publication Critical patent/JP2019020892A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Document Processing Apparatus (AREA)

Abstract

To arbitrarily specify a font to be used for printing among a plurality of language fonts corresponding to Unicode even in a printer which does not have operation interfaces enough to designate a font.SOLUTION: A host computer 100 includes a command output part 12 for outputting a command to set a priority of font data of a plurality of languages belonging to a printer 200 to the printer 200. The printer 200 includes: a priority setting part 22 for setting a priority of font data to be used for printing according to the command; and a printing execution part 24 for performing printing by using font data of any language on the basis of the set priority. Even though the printer 200 does not have operation interfaces enough to designate a font, a priority can be set in the printer 200 by a command transmitted from the host computer 100 to the printer 200.SELECTED DRAWING: Figure 4

Description

本発明は、印刷システムおよびこれに用いるプリンタに関し、特に、複数言語の文字を共通の文字集合にて利用できるようにしたUnicodeによる文字コードをホストコンピュータからプリンタに送信するとともに、何れかの言語のフォントデータを使用して文字列の印刷を実行する印刷システムに用いて好適なものである。   The present invention relates to a printing system and a printer used therefor, and in particular, transmits a character code by Unicode that allows characters in a plurality of languages to be used in a common character set from a host computer to a printer. It is suitable for use in a printing system that executes printing of a character string using font data.

従来、ホストコンピュータとプリンタとを接続し、ホストコンピュータで作成した文書等の印刷データをプリンタに送信して印刷するようにした印刷システムが広く使われている。この種の印刷システムでは、文字を符号化した文字コードを含む印刷データをホストコンピュータからプリンタに送信するともに、使用するフォントを指定して印刷を実行するようになされている。   2. Description of the Related Art Conventionally, a printing system in which a host computer and a printer are connected and print data such as a document created by the host computer is transmitted to the printer for printing is widely used. In this type of printing system, print data including a character code obtained by encoding a character is transmitted from a host computer to a printer, and printing is executed by specifying a font to be used.

ところで、近年のグローバル化に伴って、画面表示の際に用いる文字コードとして、複数言語の文字を共通の文字集合にて利用できるようにしたUnicodeを採用するホストコンピュータが増えてきている。これに伴い、最近ではUnicodeに対応した複数言語のフォントを搭載したプリンタも使われるようになってきている。   By the way, with recent globalization, an increasing number of host computers adopt Unicode that allows characters in a plurality of languages to be used in a common character set as character codes used for screen display. Along with this, printers equipped with fonts of a plurality of languages corresponding to Unicode have recently been used.

Unicodeは、世界中の言語を対象とした100万超のコードポイントを有している。これらの中には、各国で字形・フォントの異なっている文字が、Unicode上では同じ文字コードに対応付けられているものがある。そのため、その文字コードに基づいて文字を印字する場合、どの国のフォントを使用するかを指定する必要がある。   Unicode has more than 1 million code points for languages around the world. Among these, there are those in which characters having different character shapes and fonts are associated with the same character code on Unicode. For this reason, when printing a character based on the character code, it is necessary to specify which country's font is used.

しかしながら、操作インタフェースを全く持たないプリンタや、特定の専用機能に関する少数の操作ボタンやディップスイッチ等しか持たない(キーボードまたはタッチパネル等の操作インタフェースを持たない)プリンタを用いる場合は、使用するフォントをユーザが指定することができない。そのため、このようにユーザがフォントを指定するのに十分な操作インタフェースを持たないプリンタにおいては、プリンタにあらかじめ設定された優先順位に従ってフォントを指定し、印字していた。この場合、各文字コードに対応する文字を第1優先のフォントで印字するが、第1優先のフォントに対応付けがない文字コードについては、次の優先順位のフォントで印字を行うことになる。   However, when using a printer that does not have an operation interface or a printer that has only a few operation buttons and dip switches related to specific dedicated functions (no operation interface such as a keyboard or touch panel), the font to be used is Cannot be specified. For this reason, in such a printer that does not have an operation interface sufficient for the user to specify a font, the font is specified and printed in accordance with the priority order set in advance in the printer. In this case, the character corresponding to each character code is printed in the first priority font, but the character code that is not associated with the first priority font is printed in the next priority font.

なお、表示画面に対する文字列の描画に用いる言語の優先順位に関し、ユーザが使用する言語を最優先とし、デフォルトで設定されている言語を次に優先するフォント優先リストに基づいて、文字列の描画を行うようにした情報処理装置が知られている(例えば、特許文献1参照)。   Regarding the priority order of languages used for drawing character strings on the display screen, character strings are drawn based on a font priority list in which the language used by the user is given the highest priority and the default language is given the next priority. There is known an information processing apparatus configured to perform the above (see, for example, Patent Document 1).

また、処理対象の文字が、ユニコード文字データに対応する言語固有の文字コードが1つのみの「言語特有文字」であるか否かを文字列の先頭文字から順に判定していき、最初に発見された言語特有文字の言語、または、文字列中に言語特有文字が発見されなかった場合は既定値として設定されている地域の言語に対応するフォントを指定するようになされた情報処理装置も知られている(例えば、特許文献2参照)。   In addition, the processing target character is determined from the first character of the character string in order, starting with the first character of the character string, to determine whether or not the language-specific character code corresponding to Unicode character data is only one. Also known is an information processing device designed to specify the language corresponding to the language of the selected language-specific character, or the language corresponding to the local language set as the default value if no language-specific character is found in the character string. (For example, refer to Patent Document 2).

特開2016−71668号公報Japanese Patent Laid-Open No. 2006-71668 特開2007−172387号公報JP 2007-172387 A

上記特許文献1,2に記載の技術は何れも、情報処理装置において文字列を表示する際に使用するフォントの指定方法について開示したものである。一方、プリンタで印字を実行する際に使用するフォントに関しては、上述したように、プリンタにあらかじめ設定された優先順位に従ってフォントを指定するようになされている。そのため、フォントを指定するのに十分な操作インタフェースを持たないプリンタでは、印字に使用するフォントを任意に指定することができないという問題があった。   Each of the techniques described in Patent Documents 1 and 2 discloses a font designation method used when displaying a character string in an information processing apparatus. On the other hand, as described above, the fonts used when printing with the printer are specified according to the priority order set in advance in the printer. For this reason, a printer that does not have a sufficient operation interface for designating a font has a problem that a font to be used for printing cannot be arbitrarily designated.

本発明は、このような問題を解決するために成されたものであり、ユーザがフォントを指定するのに十分な操作インタフェースを持たないプリンタであっても、Unicodeに対応した複数言語のフォントの中から、印字に使用するフォントを任意に指定することができるようにすることを目的とする。   The present invention has been made to solve such a problem. Even in a printer that does not have an operation interface sufficient for a user to specify a font, fonts of a plurality of languages corresponding to Unicode are used. It is an object to be able to arbitrarily specify a font to be used for printing from among them.

上記した課題を解決するために、本発明では、プリンタが有している複数言語のフォントデータの優先順位を設定するためのコマンドをホストコンピュータからプリンタに対して送信する。プリンタでは、ホストコンピュータから送られてくるコマンドに従って、印刷に使用するフォントデータの優先順位を設定し、設定された優先順位に基づいて何れかの言語のフォントデータを使用して、印刷データに含まれる文字コードに対応した文字を含む文書の印刷を実行するようにしている。   In order to solve the above-described problem, in the present invention, a command for setting the priority order of font data in a plurality of languages possessed by the printer is transmitted from the host computer to the printer. In the printer, the priority order of the font data used for printing is set according to the command sent from the host computer, and the font data of any language is used in the print data based on the set priority order. A document including characters corresponding to the character code to be printed is executed.

上記のように構成した本発明によれば、印刷に使用するフォントを指定するために十分な操作インタフェースをプリンタが有していなくても、ホストコンピュータからプリンタにコマンドを送信することによって、Unicodeに対応した複数言語のフォントデータの優先順位をプリンタに設定することができる。プリンタでは、以上のように設定された優先順位に従って、何れかの言語のフォントデータを使用して印刷が実行されることとなる。これにより、ユーザがフォントを指定するのに十分な操作インタフェースを持たないプリンタであっても、Unicodeに対応した複数言語のフォントの中から、印字に使用するフォントを任意に指定することができるようになる。   According to the present invention configured as described above, even if the printer does not have a sufficient operation interface for designating the font to be used for printing, the host computer can send a command to the printer to transmit the command to Unicode. It is possible to set the priority order of the font data of a plurality of languages corresponding to the printer. In the printer, printing is executed using font data of any language according to the priority order set as described above. As a result, even for a printer that does not have an operation interface sufficient for the user to specify a font, it is possible to arbitrarily specify a font to be used for printing from a plurality of fonts corresponding to Unicode. become.

本実施形態による印刷システムの構成例を示す図である。It is a figure which shows the structural example of the printing system by this embodiment. ホストコンピュータのハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of a host computer. プリンタのハードウェア構成例を示す図である。FIG. 2 is a diagram illustrating a hardware configuration example of a printer. 第1の実施形態による印刷システムの機能構成例を示す図である。It is a figure which shows the function structural example of the printing system by 1st Embodiment. 優先順位指定画面の一例を示す図である。It is a figure which shows an example of a priority order designation | designated screen. 優先順位指定画面の他の例を示す図である。It is a figure which shows the other example of a priority designation | designated screen. 印刷される文書の一例を示す図である。It is a figure which shows an example of the document printed. Unicodeと各言語のフォントとの対応関係を示す図である。It is a figure which shows the correspondence of Unicode and the font of each language. 第1の実施形態において、フォントの優先順位を設定する際の動作例を示すフローチャートである。6 is a flowchart illustrating an operation example when setting the priority order of fonts in the first embodiment. 第1の実施形態において、印刷を実行する際の動作例を示すフローチャートである。6 is a flowchart illustrating an operation example when printing is performed in the first embodiment. 第2の実施形態による印刷システムの機能構成例を示す図である。It is a figure which shows the function structural example of the printing system by 2nd Embodiment. 第2の実施形態において、印刷データ送信部がプリンタに送信するデータの一例を示す図である。FIG. 10 is a diagram illustrating an example of data transmitted from a print data transmission unit to a printer in a second embodiment. 第2の実施形態において、印刷を実行する際の動作例を示すフローチャートである。10 is a flowchart illustrating an operation example when executing printing in the second embodiment. 第3の実施形態による印刷システムの機能構成例を示す図である。It is a figure which shows the function structural example of the printing system by 3rd Embodiment. 印刷される文書の他の例を示す図である。It is a figure which shows the other example of the document printed. 第3の実施形態において、印刷を実行する際の動作例を示すフローチャートである。12 is a flowchart illustrating an operation example when printing is executed in the third embodiment. 第4の実施形態による印刷システムの機能構成例を示す図である。It is a figure which shows the function structural example of the printing system by 4th Embodiment. 第4の実施形態において、印刷を実行する際の動作例を示すフローチャートである。10 is a flowchart illustrating an operation example when printing is executed in the fourth embodiment.

(第1の実施形態)
以下、本発明の第1の実施形態を図面に基づいて説明する。図1は、第1の実施形態による印刷システムの構成例を示す図である。図1に示すように、第1の実施形態による印刷システムは、ホストコンピュータ100と、当該ホストコンピュータ100から印刷データを受信して印刷を実行するプリンタ200とを備えて構成されている。
(First embodiment)
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, a first embodiment of the invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating a configuration example of a printing system according to the first embodiment. As shown in FIG. 1, the printing system according to the first embodiment includes a host computer 100 and a printer 200 that receives print data from the host computer 100 and executes printing.

ホストコンピュータ100は、例えば据え置き型のPOS端末であり、プリンタ200との間はUSB(Universal Serial Bus)ケーブル300により接続されている。なお、ホストコンピュータ100を携帯型のPOS端末(スマートフォン、タブレット端末など)とし、プリンタ200との間を無線LANまたはブルートゥース(登録商標)等の無線ネットワークにより接続してもよい。なお、ここではホストコンピュータ100をPOS端末としているが、これに限定されるものではない。   The host computer 100 is, for example, a stationary POS terminal, and is connected to the printer 200 by a USB (Universal Serial Bus) cable 300. The host computer 100 may be a portable POS terminal (smart phone, tablet terminal, etc.), and may be connected to the printer 200 via a wireless network such as a wireless LAN or Bluetooth (registered trademark). Although the host computer 100 is a POS terminal here, the present invention is not limited to this.

本実施形態では、ホストコンピュータ100は、複数言語の文字を共通の文字集合にて利用できるようにしたUnicodeによる文字コードをプリンタ200に送信する。例えば、ホストコンピュータ100は、Unicodeに対応のアプリケーションがインストールされた端末であり、当該アプリケーションにおいてUnicodeによる文字コードを含む印刷データを生成し、当該印刷データをプリンタ200に送信する。   In the present embodiment, the host computer 100 transmits to the printer 200 a character code based on Unicode in which characters in a plurality of languages can be used in a common character set. For example, the host computer 100 is a terminal in which an application corresponding to Unicode is installed, generates print data including a character code by Unicode in the application, and transmits the print data to the printer 200.

プリンタ200は、例えば、POS端末等のホストコンピュータ100に接続してレシート等を印字するPOSプリンタである。なお、ここではプリンタ200をPOSプリンタとしているが、これに限定されるものではない。   The printer 200 is a POS printer that is connected to a host computer 100 such as a POS terminal and prints a receipt or the like. Although the printer 200 is a POS printer here, the present invention is not limited to this.

本実施形態のプリンタ200は、Unicodeに対応する複数言語のフォントセットのデータ(以下、「フォントデータ」または単に「フォント」という)を記憶しており、Unicodeによる文字コードを含む印刷データをホストコンピュータ100から受信して印刷を実行する。このとき、プリンタ200は、複数言語のフォントデータのうち、あらかじめ設定された優先順位に従って選択される言語のフォントデータを使用して印刷を実行する。   The printer 200 of the present embodiment stores font set data (hereinafter referred to as “font data” or simply “font”) in a plurality of languages corresponding to Unicode, and print data including character codes by Unicode is stored in a host computer. Receive from 100 and execute printing. At this time, the printer 200 executes printing using font data in a language selected according to a preset priority order from among font data in a plurality of languages.

第1の実施形態において、プリンタ200でどの言語のフォントを使用して印刷を実行するかを定めるフォントの優先順位(使用言語の優先順位)は、ホストコンピュータ100で指定し、その指定内容を含めたコマンドをプリンタ200に送信することにより、フォントの優先順位をプリンタ200に設定する。プリンタ200に対してフォントの優先順位をいったん設定すると、次にホストコンピュータ100からプリンタ200にコマンドを送信するまでの間は、優先順位の設定は変わらない。   In the first embodiment, the priority order of fonts (priority order of languages used) that determines which language fonts are used for printing in the printer 200 is designated by the host computer 100 and includes the designated contents. By sending the received command to the printer 200, the priority order of the fonts is set in the printer 200. Once the font priority order is set for the printer 200, the priority order setting does not change until the next command is sent from the host computer 100 to the printer 200.

プリンタ200は、ホストコンピュータ100から印刷データを受信する都度、当該印刷データに含まれる文字コードと、以上のように設定されたフォントの優先順位に従って選択される言語のフォントデータとに基づいて、文字コードに対応した文字を含む文書の印刷を実行する。なお、印刷データの中に、文字コード以外の情報(図形、画像など)が含まれる場合、プリンタ200は、文字の他にその図形や画像などの情報を含む文書の印刷を実行する。以下では、説明の簡略のため、文字の印刷についてのみ言及する。   Whenever the printer 200 receives print data from the host computer 100, the printer 200 uses the character code included in the print data and the font data of the language selected according to the font priority set as described above. Print the document that contains the characters corresponding to the code. When the print data includes information (graphics, images, etc.) other than the character code, the printer 200 prints a document including information such as the graphics and images in addition to the characters. Hereinafter, for the sake of simplicity, only the printing of characters will be referred to.

図2は、ホストコンピュータ100のハードウェア構成例を示す図である。図2に示すように、ホストコンピュータ100は、そのハードウェア構成として、CPU101、ROM102、RAM103、フラッシュ等の不揮発性メモリ104、ハードディスク105、USB通信部106、操作部107および表示部108を備えている。   FIG. 2 is a diagram illustrating a hardware configuration example of the host computer 100. As shown in FIG. 2, the host computer 100 includes a CPU 101, a ROM 102, a RAM 103, a non-volatile memory 104 such as a flash, a hard disk 105, a USB communication unit 106, an operation unit 107, and a display unit 108 as its hardware configuration. Yes.

CPU101は、ROM102、不揮発性メモリ104またはハードディスク105に記憶されたプログラムに従って、RAM103をワークメモリとして用いながら、ホストコンピュータ100の動作を制御する。ハードディスク105は、各種プログラムおよびデータを記憶する。ハードディスク105が記憶するデータの中には、印刷データも含まれる。   The CPU 101 controls the operation of the host computer 100 while using the RAM 103 as a work memory in accordance with a program stored in the ROM 102, the nonvolatile memory 104, or the hard disk 105. The hard disk 105 stores various programs and data. The data stored in the hard disk 105 includes print data.

USB通信部106は、プリンタ200との間でUSBケーブル300を介してデータ通信を行う。例えば、USB通信部106は、ホストコンピュータ100で生成された印刷データをプリンタ200に送信する。また、USB通信部106は、ホストコンピュータ100で指定されたフォントの優先順位をプリンタ200に設定するためのコマンドをプリンタ200に送信する。   The USB communication unit 106 performs data communication with the printer 200 via the USB cable 300. For example, the USB communication unit 106 transmits print data generated by the host computer 100 to the printer 200. In addition, the USB communication unit 106 transmits a command for setting the priority order of the font designated by the host computer 100 to the printer 200 to the printer 200.

操作部107は、印刷データの生成や印刷指示などに関する操作、フォントの優先順位の指定やプリンタ200に対する設定に関する操作をユーザが行うためのものであり、キーボードおよびマウス、またはタッチパネル等により構成される。表示部108は、印刷データに係る文書や、フォントの優先順位の指定画面などを表示するためのものであり、例えば液晶ディスプレイ、有機ELディスプレイ等により構成される。   The operation unit 107 is for a user to perform operations related to print data generation and print instructions, font priority designation, and settings for the printer 200, and includes a keyboard and mouse, a touch panel, or the like. . The display unit 108 is for displaying a document relating to print data, a font priority designation screen, and the like, and is configured by, for example, a liquid crystal display or an organic EL display.

図3は、プリンタ200のハードウェア構成例を示す図である。図3に示すように、プリンタ200は、そのハードウェア構成として、CPU201、ROM202、RAM203、フラッシュ等の不揮発性メモリ204、USB通信部205および印刷部206を備えている。プリンタ200は、ユーザがフォントを指定するための操作部や表示部を備えておらず、プリンタ200において自らフォントの優先順位を設定することはできない。   FIG. 3 is a diagram illustrating a hardware configuration example of the printer 200. As shown in FIG. 3, the printer 200 includes a CPU 201, a ROM 202, a RAM 203, a non-volatile memory 204 such as a flash, a USB communication unit 205, and a printing unit 206 as hardware configurations. The printer 200 does not include an operation unit or a display unit for a user to specify a font, and the printer 200 cannot set the priority order of fonts by itself.

CPU201は、ROM202または不揮発性メモリ204に記憶されたプログラムに従って、RAM203をワークメモリとして用いながら、プリンタ200の動作を制御する。例えば、CPU201は、ホストコンピュータ100から送信される印刷データに基づく印刷の実行を制御する。また、CPU201は、ホストコンピュータ100から送信されるコマンドに基づくフォントの優先順位の設定を実行する。   The CPU 201 controls the operation of the printer 200 while using the RAM 203 as a work memory in accordance with a program stored in the ROM 202 or the nonvolatile memory 204. For example, the CPU 201 controls execution of printing based on print data transmitted from the host computer 100. The CPU 201 also sets the priority order of fonts based on a command transmitted from the host computer 100.

USB通信部205は、ホストコンピュータ100との間でUSBケーブル300を介してデータ通信を行う。例えば、USB通信部205は、ホストコンピュータ100で生成された印刷データを受信する。また、USB通信部205は、ホストコンピュータ100で指定されたフォントの優先順位をプリンタ200に設定するためのコマンドを受信する。当該コマンドに従って設定されるフォントの優先順位に関する情報は、不揮発性メモリ204に記憶される。   The USB communication unit 205 performs data communication with the host computer 100 via the USB cable 300. For example, the USB communication unit 205 receives print data generated by the host computer 100. Further, the USB communication unit 205 receives a command for setting the priority order of the font designated by the host computer 100 to the printer 200. Information regarding the priority order of the fonts set according to the command is stored in the nonvolatile memory 204.

印刷部206は、CPU201から印刷実行の指示を受けて、印刷データに基づく印刷処理を実行する。すなわち、印刷部206は、ホストコンピュータ100から受信した印刷データに含まれる文字コードに基づいて、当該文字コードで表わされる文字列の印刷を実行する。ここで、プリンタ200は、Unicodeにより表された文字コードから成る文字列を、あらかじめ設定されたフォントの優先順位に従って選択される言語のフォントデータを使用して印刷する。   The printing unit 206 receives a print execution instruction from the CPU 201 and executes print processing based on the print data. That is, the printing unit 206 executes printing of a character string represented by the character code based on the character code included in the print data received from the host computer 100. Here, the printer 200 prints a character string composed of a character code represented by Unicode using font data of a language selected in accordance with a preset priority order of fonts.

図4は、第1の実施形態による印刷システムの機能構成例を示す図である。図4に示すように、ホストコンピュータ100は、その機能構成として、優先順位指定部11、コマンド出力部12、印刷データ生成部13および印刷データ送信部14を備えている。また、プリンタ200は、その機能構成として、コマンド入力部21、優先順位設定部22、印刷データ受信部23、印刷実行部24およびフォントデータ記憶部25を備えている。   FIG. 4 is a diagram illustrating a functional configuration example of the printing system according to the first embodiment. As shown in FIG. 4, the host computer 100 includes a priority order designation unit 11, a command output unit 12, a print data generation unit 13, and a print data transmission unit 14 as functional configurations. The printer 200 includes a command input unit 21, a priority setting unit 22, a print data receiving unit 23, a print execution unit 24, and a font data storage unit 25 as functional configurations.

ここで、ホストコンピュータ100の各機能ブロック11〜14は、図2に示したCPU101の制御に従って、ROM102、不揮発性メモリ104またはハードディスク105に記憶されたプログラムが動作することによって実現される。このプログラムは、例えば、ホストコンピュータ100にインストールされているアプリケーションプログラムの一部である。なお、優先順位指定部11およびコマンド出力部12の機能を実現するプログラムと、印刷データ生成部13および印刷データ送信部14の機能を実現するプログラムとが別に構成されていてもよい。   Here, each of the functional blocks 11 to 14 of the host computer 100 is realized by operating a program stored in the ROM 102, the nonvolatile memory 104, or the hard disk 105 in accordance with the control of the CPU 101 shown in FIG. This program is, for example, a part of an application program installed in the host computer 100. Note that a program that realizes the functions of the priority specification unit 11 and the command output unit 12 and a program that realizes the functions of the print data generation unit 13 and the print data transmission unit 14 may be configured separately.

また、プリンタ200の各機能ブロック21〜24は、図3に示したCPU201の制御に従って、ROM202または不揮発性メモリ204に記憶されたプログラムが動作することによって実現される。フォントデータ記憶部25は、図3のROM202または不揮発性メモリ204により構成される。あるいは、フォントデータ記憶部25をハードディスク等の他の記憶媒体により構成してもよい。   Each functional block 21 to 24 of the printer 200 is realized by operating a program stored in the ROM 202 or the non-volatile memory 204 according to the control of the CPU 201 shown in FIG. The font data storage unit 25 is configured by the ROM 202 or the nonvolatile memory 204 of FIG. Alternatively, the font data storage unit 25 may be configured by another storage medium such as a hard disk.

ホストコンピュータ100の優先順位指定部11は、ユーザが操作部107に対して行う操作を通じて、プリンタ200が有している複数言語のフォントデータの優先順位を指定する。どのようなユーザ操作に基づいて優先順位を指定するかは、任意である。例えば、優先順位指定部11は、指定可能な優先順位を示す複数のパターンを表示部108に画面表示させ、複数のパターンの中から何れかのパターンを指定するユーザ操作に基づいて、優先順位を指定するようにすることが可能である。   The priority order designation unit 11 of the host computer 100 designates the priority order of font data of a plurality of languages possessed by the printer 200 through an operation performed by the user on the operation unit 107. What kind of user operation is used to specify the priority order is arbitrary. For example, the priority designation unit 11 causes the display unit 108 to display a plurality of patterns indicating the priorities that can be designated on the screen, and sets the priority based on a user operation that designates one of the plurality of patterns. It is possible to specify.

例えば、プリンタ200が日本語、中国語、台湾語、韓国語の4つの言語のフォントデータをフォントデータ記憶部25に記憶しているものとする。この場合、優先順位指定部11は、当該4つの言語の優先順位を指定する。4つの言語の場合、優先順位の組み合わせは全部で24パターンある(4×3×2×1=24)。優先順位指定部11は、図5に示すように、この24パターンの優先順位の組み合わせを表示部108にリスト表示させ、何れかのパターンをユーザに選択させることにより、フォントの優先順位を指定する。   For example, it is assumed that the printer 200 stores font data in four languages, Japanese, Chinese, Taiwanese, and Korean, in the font data storage unit 25. In this case, the priority specification unit 11 specifies the priority of the four languages. In the case of four languages, there are a total of 24 combinations of priorities (4 × 3 × 2 × 1 = 24). As shown in FIG. 5, the priority order specifying unit 11 displays a list of the 24 combinations of priority orders on the display unit 108, and designates the priority order of fonts by allowing the user to select one of the patterns. .

あるいは、優先順位指定部11は、複数言語の優先順位を1つずつ指定するユーザ操作に基づいて、優先順位を指定するようにしてもよい。例えば、図6に示すように、優先順位指定部11は、第1優先から第4優先まで1つずつ言語を入力可能な入力欄を表示部108に表示させ、各入力欄に日本語、中国語、台湾語、韓国語を1つずつユーザに入力させることによって、フォントの優先順位を指定する。各入力欄には、言語をテキスト入力するようにしてもよいし、プルダウンメニューを表示させて4つの言語の中から何れか1つを選択できるようにしてもよい。   Alternatively, the priority specification unit 11 may specify the priority order based on a user operation that specifies the priority order of a plurality of languages one by one. For example, as shown in FIG. 6, the priority specification unit 11 displays on the display unit 108 input fields in which languages can be input one by one from the first priority to the fourth priority, and Japanese, Chinese are displayed in each input field. The font priority order is specified by allowing the user to input Japanese, Taiwanese, and Korean one by one. In each input field, a language may be input as text, or a pull-down menu may be displayed so that any one of four languages can be selected.

図6のように第1優先から順に1つずつ言語を指定していく場合、第4優先まで全てユーザが指定しなくてもよいようにすることも可能である。例えば、優先順位指定部11は、所定数の言語(今の例では日本語、中国語、台湾語、韓国語の4つの言語)の優先順位を指定する際に、所定数に満たない数の言語についてユーザ操作に基づいて優先順位が指定された場合、当該ユーザ操作に基づいて指定された言語の優先順位に続けて、他の言語の優先順位をデフォルト順に従って指定するようにしてもよい。   When the languages are specified one by one in order from the first priority as shown in FIG. 6, it is possible that the user does not have to specify all of them until the fourth priority. For example, when the priority order specifying unit 11 specifies the priority order of a predetermined number of languages (four languages of Japanese, Chinese, Taiwanese, and Korean in this example), the priority order specifying unit 11 does not satisfy the predetermined number. When a priority order is specified for a language based on a user operation, the priority order for another language may be specified in the default order following the priority order for the language specified based on the user operation.

例えば、デフォルトの優先順位を日本語→中国語→台湾語→韓国語のように決めておくものとする。この場合、ユーザが第1優先の言語として中国語を指定するとともに、第2優先の言語として台湾語を指定し、第3優先の言語と第4優先の言語は指定しなかったとする。この場合、優先順位指定部11は、残りの日本語と韓国語については、デフォルトの優先順位に従って第3優先を日本語、第4優先を韓国語に自動的に指定する。このようにすれば、ユーザが気にしなくてもよいフォントについては優先順位を指定する必要がないので、指定が簡便にできるというメリットを有する。   For example, the default priority order is determined as Japanese → Chinese → Taiwan → Korean. In this case, it is assumed that the user specifies Chinese as the first priority language, specifies Taiwanese as the second priority language, and does not specify the third priority language and the fourth priority language. In this case, the priority designation unit 11 automatically designates the third priority as Japanese and the fourth priority as Korean for the remaining Japanese and Korean according to the default priority. In this way, since there is no need to designate the priority order for the font that the user does not need to care about, there is an advantage that the designation can be made easily.

コマンド出力部12は、優先順位指定部11により指定された優先順位をプリンタ200に設定するためのコマンドをプリンタ200に対して出力する。例えば、図5または図6に示す優先順位指定画面においてフォントの優先順位を指定した後、画面下方の確定ボタンをユーザが操作すると、コマンド出力部12は、指定された優先順位の情報を含むコマンドを発行し、プリンタ200に対して出力する。   The command output unit 12 outputs a command for setting the priority order designated by the priority order designation unit 11 to the printer 200 to the printer 200. For example, after the font priority order is designated on the priority order designation screen shown in FIG. 5 or FIG. 6, when the user operates the confirm button at the bottom of the screen, the command output unit 12 displays a command including the information on the designated priority order. Is output to the printer 200.

第1の実施形態において、コマンド出力部12は、印刷データ送信部14が印刷データをプリンタ200に送信するタイミングとは非同期で、コマンドをプリンタ200に対してあらかじめ送信する。   In the first embodiment, the command output unit 12 transmits a command to the printer 200 in advance, asynchronously with the timing at which the print data transmission unit 14 transmits the print data to the printer 200.

印刷データ生成部13は、ユーザが操作部107に対して行う操作を通じて、任意の文字列を含む印刷データを生成する。本実施形態では、印刷データ生成部13は、文字列をUnicodeによる文字コードで表した印刷データを生成する。印刷データ送信部14は、印刷データ生成部13により生成された印刷データをプリンタ200に送信する。すなわち、印刷データ送信部14は、印刷すべき文字の文字コードを含む印刷データをプリンタ200に送信する。   The print data generation unit 13 generates print data including an arbitrary character string through an operation performed on the operation unit 107 by the user. In the present embodiment, the print data generation unit 13 generates print data in which a character string is represented by a character code by Unicode. The print data transmission unit 14 transmits the print data generated by the print data generation unit 13 to the printer 200. That is, the print data transmission unit 14 transmits print data including the character code of the character to be printed to the printer 200.

プリンタ200のフォントデータ記憶部25は、Unicodeに対応した複数言語のフォントデータを記憶する。例えば、フォントデータ記憶部25は、日本語、中国語、台湾語、韓国語の4つの言語のフォントデータを記憶する。   The font data storage unit 25 of the printer 200 stores font data in a plurality of languages corresponding to Unicode. For example, the font data storage unit 25 stores font data in four languages: Japanese, Chinese, Taiwanese, and Korean.

コマンド入力部21は、ホストコンピュータ100のコマンド出力部12により出力されたコマンドを入力する。第1の実施形態において、コマンド入力部21は、ホストコンピュータ100から送信される印刷データとは異なるタイミングにて非同期で送られてくるコマンドを入力する。   The command input unit 21 inputs a command output by the command output unit 12 of the host computer 100. In the first embodiment, the command input unit 21 inputs a command sent asynchronously at a timing different from the print data sent from the host computer 100.

優先順位設定部22は、コマンド入力部21により入力されたコマンドに従って、印刷に使用するフォントデータの言語の優先順位をプリンタ200に設定する。すなわち、優先順位設定部22は、コマンド内に含まれる優先順位の情報を不揮発性メモリ204に記憶させることにより、ホストコンピュータ100で指定されたフォントの優先順位をプリンタ200に設定する。   The priority order setting unit 22 sets the priority order of the language of the font data used for printing in the printer 200 according to the command input by the command input unit 21. In other words, the priority order setting unit 22 stores the priority order information included in the command in the nonvolatile memory 204, thereby setting the priority order of the font designated by the host computer 100 in the printer 200.

第1の実施形態において、優先順位設定部22は、コマンドに従って設定した優先順位を、コマンド入力部21が次のコマンドを入力するまで保持する。すなわち、不揮発性メモリ204に記憶された優先順位の情報は、次にコマンドがホストコンピュータ100から送られてきて優先順位設定部22により書き換えられるまでの間、維持される。   In the first embodiment, the priority order setting unit 22 holds the priority order set according to the command until the command input unit 21 inputs the next command. That is, the priority order information stored in the nonvolatile memory 204 is maintained until a command is next sent from the host computer 100 and rewritten by the priority order setting unit 22.

印刷データ受信部23は、ホストコンピュータ100の印刷データ送信部14により送信された印刷データを受信する。すなわち、印刷データ受信部23は、Unicodeによる文字コードを含む印刷データをホストコンピュータ100から受信する。   The print data receiving unit 23 receives the print data transmitted by the print data transmitting unit 14 of the host computer 100. That is, the print data receiving unit 23 receives print data including a character code by Unicode from the host computer 100.

印刷実行部24は、優先順位設定部23により設定された優先順位(不揮発性メモリ204に記憶された優先順位の情報)に基づいて、フォントデータ記憶部25に記憶されている複数言語のフォントデータのうち何れかの言語のフォントデータを使用して、印刷データ受信部23により受信された印刷データに基づいて、当該印刷データに含まれる文字コードに対応した文字を含む文書の印刷を実行する。   Based on the priority set by the priority setting unit 23 (priority information stored in the non-volatile memory 204), the print execution unit 24 stores font data of a plurality of languages stored in the font data storage unit 25. Based on the print data received by the print data receiving unit 23, the document including characters corresponding to the character code included in the print data is printed using font data of any language.

ここで、印刷実行部24は、印刷データに含まれる文字コードの1つずつについて、あらかじめ設定された優先順位に基づいて、何れかの言語のフォントデータを使用して印刷を実行する。このとき、印刷実行部24は、文字コードに対応するフォントデータが第1優先の言語に存在すれば、当該第1優先の言語のフォントデータを使用してその文字を印刷する。   Here, the print execution unit 24 executes printing for each character code included in the print data by using font data of any language based on a preset priority order. At this time, if the font data corresponding to the character code exists in the first priority language, the print execution unit 24 prints the character using the font data of the first priority language.

一方、文字コードに対応するフォントデータが第1優先の言語に存在しなければ、第2優先の言語のフォントデータを使用してその文字を印刷する。文字コードに対応するフォントデータが第2優先の言語にも存在しなければ、第3優先の言語のフォントデータを使用してその文字を印刷する。同様に、文字コードに対応するフォントデータが第3優先の言語にも存在しなければ、第4優先の言語のフォントデータを使用してその文字を印刷する。   On the other hand, if the font data corresponding to the character code does not exist in the first priority language, the character is printed using the font data of the second priority language. If the font data corresponding to the character code does not exist in the second priority language, the character is printed using the font data of the third priority language. Similarly, if the font data corresponding to the character code does not exist in the third priority language, the character is printed using the font data of the fourth priority language.

図7は、印刷される文書の一例を示す図である。また、図8は、Unicodeと各言語のフォントとの対応関係を示す図である。なお、図8中に示す「整」、「理」、「券」等の各漢字は、言語を問わずUnicodeにより統一された画面表示用のフォントによる表記を示したものであり、必ずしもプリンタ200が有するフォントにより印刷される各漢字の表記とは一致しない。   FIG. 7 is a diagram illustrating an example of a document to be printed. FIG. 8 is a diagram showing the correspondence between Unicode and fonts of each language. Note that the kanji characters such as “Sen”, “Science”, “Voucher”, etc. shown in FIG. 8 indicate notation in the font for screen display unified by Unicode regardless of the language, and are not necessarily limited to the printer 200. It does not match the notation of each kanji printed by the fonts that have.

図7(a)に示す文書の中には、「整理券」という3文字の漢字が含まれている。図8に示すように、各漢字のUnicodeによる文字コード(コードナンバー)は、「整」=U+6574、「理」=U+7406、「券」=U+5238である。日本語、中国語、台湾語、韓国語の何れのフォントデータ(プリンタ200が記憶しているフォントデータ)も、「整」、「理」、「券」のUnicodeに対応する字形を有している。よって、この場合はどの言語のフォントを第1優先に設定しても、「整理券」という文字を統一したフォントで正しく印刷することができる。   The document shown in FIG. 7A includes three kanji characters “numbered tickets”. As shown in FIG. 8, the character code (code number) of each kanji according to Unicode is “set” = U + 6574, “reason” = U + 7406, and “ticket” = U + 5238. Any font data in Japanese, Chinese, Taiwanese, or Korean (font data stored in the printer 200) has a character shape corresponding to the Unicode of "same", "reason", and "ticket". Yes. Therefore, in this case, even if the font of any language is set as the first priority, the characters “numbered ticket” can be correctly printed with the unified font.

一方、図7(b)に示す文書の中には、「▼編▲号票」という3文字の漢字が含まれている。「▼編▲」は、「編」の簡体字であることを意味している。図8に示すように、各漢字のUnicodeによる文字コード(コードナンバー)は、「▼編▲」=U+7F16、「号」=U+53F7、「票」=U+7968である。「票」に関しては、日本語、中国語、台湾語、韓国語の何れのフォントデータも、Unicodeに対応する字形を有している。しかしながら、「▼編▲」に関しては、これのUnicodeに該当する字形を有しているのは中国語のフォントだけであり、「号」に関しては、これのUnicodeに該当する字形を有しているのは日本語と中国語のフォントだけである。   On the other hand, the document shown in FIG. 7B includes three kanji characters “▼ Edition No.”. “▼ edition ▲” means a simplified form of “hen”. As shown in FIG. 8, the character code (code number) of each kanji in Unicode is “▼ Edit” = U + 7F16, “No.” = U + 53F7, “Vot” = U + 7968. Regarding “votes”, any font data in Japanese, Chinese, Taiwanese, and Korean has a character shape corresponding to Unicode. However, for “▼ edition ▲”, only Chinese fonts have a character shape corresponding to this Unicode, and “No.” has a character shape corresponding to this Unicode. Only Japanese and Chinese fonts.

したがって、図7(b)に示す文書の場合、「▼編▲号票」という3文字を全て統一したフォントで正しく印刷するためには、中国語のフォントを使用する必要がある。例えば、日本語のフォントを第1優先に設定すると、「号」の文字コード“U+53F7”および「票」の文字コード“U+7968”に関してはこれに対応する日本語の字形のフォントデータが存在するので、第1優先に設定した日本語のフォントで印刷が実行される。これに対し、「▼編▲」に関しては、その文字コード“U+7F16”に対応する日本語の字形のフォントデータが存在しないので、第2優先以降に設定されている中国語のフォントで印刷が実行される。このため、図7(b)に示す文書のように、「▼編▲」は中国語のフォント、「号票」は日本語のフォントで印刷され、フォントが統一されずアンバランスな表記となってしまう。   Therefore, in the case of the document shown in FIG. 7B, it is necessary to use a Chinese font in order to correctly print all three characters “▼ Edition No.” with a unified font. For example, if the Japanese font is set to be the first priority, the character code “U + 53F7” for “No.” and the character code “U + 7968” for “vote” have corresponding Japanese character font data. The printing is executed with the Japanese font set to the first priority. On the other hand, for “▼ edition ▲”, since there is no Japanese character font data corresponding to the character code “U + 7F16”, printing is performed with the Chinese font set after the second priority. Is done. For this reason, as in the document shown in FIG. 7B, “▼ edition ▲” is printed with a Chinese font, and “issue tag” is printed with a Japanese font, and the fonts are not unified and are unbalanced. End up.

これに対して、中国語のフォントを第1優先に設定すると、「▼編▲」、「号」、「票」の全てが中国語のフォントで印刷され、フォントが統一される。よって、ホストコンピュータ100にインストールされているアプリケーションが中国語に対応したアプリケーションである場合には、優先順位指定部11において中国語を第1優先に指定すればよい。中国語に対応したアプリケーションとは、Unicodeにおいて中国語に割り振られた文字コード群を使用するアプリケーションを意味する。なお、ホストコンピュータ100にインストールされているアプリケーションが日本語に対応したアプリケーションであれば、優先順位指定部11において日本語を第1優先に指定すればよい。   On the other hand, when the Chinese font is set to the first priority, all of “▼ Edit”, “No.”, and “Vote” are printed in the Chinese font, and the font is unified. Therefore, when the application installed in the host computer 100 is an application corresponding to Chinese, the priority order specifying unit 11 may designate Chinese as the first priority. The application corresponding to Chinese means an application that uses a character code group assigned to Chinese in Unicode. If the application installed in the host computer 100 is an application that supports Japanese, the priority designation unit 11 may designate Japanese as the first priority.

このように、第1の実施形態によれば、ユーザがフォントを指定するのに十分な操作部をプリンタ200が有しておらず、プリンタ200においてフォントの優先順位を設定できない場合であっても、アプリケーションの用途や仕様等に合わせてホストコンピュータ100でフォントの優先順位を指定し、優先順位設定のためのコマンドをホストコンピュータ100からプリンタ200に送信することによって、プリンタ200で印刷の際に使用するフォントの優先順位を自由に設定することができる。   As described above, according to the first embodiment, even when the printer 200 does not have an operation unit sufficient for the user to specify a font, and the priority order of fonts cannot be set in the printer 200. The font priority order is designated by the host computer 100 in accordance with the application and specifications of the application, and a command for setting the priority order is transmitted from the host computer 100 to the printer 200. The priority order of the fonts to be set can be freely set.

なお、ここでは、図5または図6のような優先順位指定画面を通じて、ホストコンピュータ100のユーザが、印刷に使用するフォントの優先順位を任意に指定する例について説明したが、この方法に限定されない。例えば、アプリケーションを設計・開発する業者が、そのアプリケーションの用途や仕様等に合わせてフォントの優先順位を決定し、その優先順位の情報をアプリケーションの中にあらかじめ組み込んでおくようにしてもよい。このようにすれば、アプリケーション毎に、フォントの優先順位を設定することが可能である。   Here, an example has been described in which the user of the host computer 100 arbitrarily designates the priority order of fonts used for printing through the priority order designation screen as shown in FIG. 5 or FIG. 6, but the present invention is not limited to this method. . For example, a vendor who designs and develops an application may determine the priority order of fonts in accordance with the use and specifications of the application and incorporate the priority order information in the application in advance. In this way, it is possible to set the priority order of fonts for each application.

この場合、優先順位指定部11は、例えば、優先順位の設定を指示するユーザ操作に応じて、アプリケーションに組み込まれた優先順位の情報を読み取ることによってフォントの優先順位を指定する。あるいは、アプリケーションが起動されたときに、優先順位指定部11がアプリケーションに組み込まれた優先順位の情報を読み取ることによってフォントの優先順位を自動的に指定し、コマンド出力部12がその優先順位をプリンタ200に設定するためのコマンドをプリンタ200に対して自動的に出力するようにしてもよい。   In this case, for example, the priority order specifying unit 11 specifies the priority order of the fonts by reading the priority order information incorporated in the application in response to a user operation instructing the setting of the priority order. Alternatively, when the application is started, the priority designation unit 11 automatically designates the priority order of the fonts by reading the priority order information incorporated in the application, and the command output unit 12 sets the priority order to the printer. A command for setting to 200 may be automatically output to the printer 200.

また、別の例として、ホストコンピュータ100にインストールされているアプリケーションの動作環境を設定するための環境設定画面の1つとして、図5または図6のような優先順位指定画面を表示させることにより、優先順位指定部11による優先順位の指定を行うようにしてもよい。すなわち、アプリケーションの動作環境としてフォントの優先順位をあらかじめ設定しておくようにしてもよい。このようにすれば、アプリケーションを設計・開発する業者ではなく、印刷システムを利用するユーザの操作により、アプリケーション毎にフォントの優先順位を自由に設定することが可能である。   As another example, by displaying a priority order designation screen as shown in FIG. 5 or 6 as one of the environment setting screens for setting the operating environment of the application installed in the host computer 100, The priority order may be designated by the priority order designation unit 11. In other words, the priority order of fonts may be set in advance as the operating environment of the application. In this way, it is possible to freely set the priority order of fonts for each application by the operation of the user who uses the printing system, not the company that designs and develops the application.

図9および図10は、以上のように構成した第1の実施形態による印刷システムの動作例を示すフローチャートである。図9は、フォントの優先順位を設定する際の動作例を示すフローチャートである。図10は、印刷を実行する際の動作例を示すフローチャートである。図9に示すフローチャートは、フォントの優先順位の設定の実行がユーザにより指示されたときに開始する。また、図10に示すフローチャートは、ユーザにより印刷の実行が指示されたときに開始する。   FIG. 9 and FIG. 10 are flowcharts showing an operation example of the printing system according to the first embodiment configured as described above. FIG. 9 is a flowchart showing an operation example when setting the priority order of fonts. FIG. 10 is a flowchart illustrating an operation example when executing printing. The flowchart shown in FIG. 9 starts when the user gives an instruction to set the priority order of fonts. Also, the flowchart shown in FIG. 10 is started when execution of printing is instructed by the user.

まず、図9に基づいて、フォントの優先順位を設定する際の動作を説明する。ホストコンピュータ100の優先順位指定部11は、プリンタ200が有している複数言語のフォントデータの優先順位をユーザ操作に基づいて指定する(ステップS1)。次いで、コマンド出力部12は、優先順位指定部11により指定された優先順位をプリンタ200に設定するためのコマンドをプリンタ200に対して出力する(ステップS2)。   First, the operation when setting the priority order of fonts will be described with reference to FIG. The priority order designation unit 11 of the host computer 100 designates the priority order of the font data of the plurality of languages possessed by the printer 200 based on the user operation (step S1). Next, the command output unit 12 outputs a command for setting the priority specified by the priority specifying unit 11 to the printer 200 to the printer 200 (step S2).

プリンタ200では、コマンド出力部12により出力されたコマンドをコマンド入力部21が入力すると(ステップS3)、優先順位設定部22は、当該入力されたコマンド内に含まれる優先順位の情報を不揮発性メモリ204に記憶させることにより、印刷に使用するフォントデータの言語の優先順位をプリンタ200に設定する(ステップS4)。これにより、図9に示すフローチャートの処理は終了する。   In the printer 200, when the command input unit 21 inputs the command output from the command output unit 12 (step S3), the priority order setting unit 22 stores the priority order information included in the input command in the nonvolatile memory. By storing in 204, the priority order of the language of the font data used for printing is set in the printer 200 (step S4). Thereby, the process of the flowchart shown in FIG. 9 is completed.

次に、図10に基づいて、印刷を実行する際の動作を説明する。ホストコンピュータ100の印刷データ生成部13は、ホストコンピュータ100にインストールされているアプリケーションに対するユーザ操作を通じて、任意の文字列を含む印刷データを生成する(ステップS11)。印刷データ送信部14は、印刷データ生成部13により生成された印刷データをプリンタ200に送信する(ステップS12)。   Next, an operation when printing is performed will be described with reference to FIG. The print data generation unit 13 of the host computer 100 generates print data including an arbitrary character string through a user operation on an application installed in the host computer 100 (step S11). The print data transmission unit 14 transmits the print data generated by the print data generation unit 13 to the printer 200 (step S12).

プリンタ200では、印刷データ送信部14により送信された印刷データを印刷データ受信部23が受信すると(ステップS13)、印刷実行部24は、ステップS14以降の処理によって、受信した印刷データに基づいて、文字およびその他の情報(図形、画像など)を含む文書の印刷を実行する。まず、印刷実行部24は、印刷データの先頭から情報を読み取り、読み取った情報が文字コードか否かを判定する(ステップS14)。文字コードでなければ、その他の情報の印刷を実行した後(ステップS15)、処理はステップS14に戻る。   In the printer 200, when the print data reception unit 23 receives the print data transmitted by the print data transmission unit 14 (step S13), the print execution unit 24 performs the process from step S14 on the basis of the received print data. Print a document containing text and other information (graphics, images, etc.). First, the print execution unit 24 reads information from the top of the print data, and determines whether the read information is a character code (step S14). If it is not a character code, after printing other information (step S15), the process returns to step S14.

ステップS14において、読み取った情報が文字コードであると判定された場合、印刷実行部24は、不揮発性メモリ204に記憶されている優先順位の設定情報およびフォントデータ記憶部25に記憶されているフォントデータを参照して、その文字コードに関して、第1優先に設定されている言語のフォントデータが存在するか否かを判定する(ステップS16)。第1優先に設定されている言語のフォントデータが存在する場合、印刷実行部24は、当該第1優先の言語のフォントデータを使用して、文字コードに対応する文字を印刷する(ステップS17)。   If it is determined in step S14 that the read information is a character code, the print execution unit 24 sets the priority order setting information stored in the nonvolatile memory 204 and the font stored in the font data storage unit 25. With reference to the data, it is determined whether or not there is font data of the language set with the first priority for the character code (step S16). If there is font data of the language set to the first priority, the print execution unit 24 prints the character corresponding to the character code using the font data of the first priority language (step S17). .

その後、印刷実行部24は、印刷データに基づく印刷が全て終了したか否かを判定する(ステップS18)。まだ印刷が終了していない場合、処理はステップS14に戻り、印刷データに含まれる次の情報を読み取って同様の処理を実行する。一方、印刷データに基づく印刷が全て終了した場合、図10に示すフローチャートの処理は終了する。   Thereafter, the print execution unit 24 determines whether or not printing based on the print data has been completed (step S18). If the printing has not been completed yet, the process returns to step S14 to read the next information included in the print data and execute the same process. On the other hand, when all the printing based on the print data is completed, the process of the flowchart shown in FIG. 10 ends.

一方、ステップS16において、第1優先に設定されている言語のフォントデータが存在しないと判定された場合、印刷実行部24は、参照する対象を次の優先順位の言語に切り替える(ステップS19)。この場合は、第2優先の言語に切り替える。そして、印刷実行部24は、処理対象の文字コードに関して、第2優先に設定されている言語のフォントデータが存在するか否かを判定する(ステップS20)。   On the other hand, if it is determined in step S16 that there is no font data for the language set to the first priority, the print execution unit 24 switches the reference target to the next priority language (step S19). In this case, the language is switched to the second priority language. Then, the print execution unit 24 determines whether there is font data in the language set with the second priority for the processing target character code (step S20).

ここで、第2優先に設定されている言語のフォントデータが存在する場合、印刷実行部24は、当該第2優先の言語のフォントデータを使用して、文字コードに対応する文字を印刷する(ステップS17)。一方、第2優先に設定されている言語のフォントデータも存在しないと判定された場合、印刷実行部24は、参照する対象を次の優先順位の言語に切り替える(ステップS19)。この場合は、第3優先の言語に切り替える。   Here, when there is font data of the language set to the second priority, the print execution unit 24 prints the character corresponding to the character code using the font data of the second priority language ( Step S17). On the other hand, if it is determined that there is no font data in the language set to the second priority, the print execution unit 24 switches the reference target to the next priority language (step S19). In this case, the language is switched to the third priority language.

そして、印刷実行部24は、処理対象の文字コードに関して、第3優先に設定されている言語のフォントデータが存在するか否かを判定する(ステップS20)。ここで、第3優先に設定されている言語のフォントデータが存在する場合、印刷実行部24は、当該第3優先の言語のフォントデータを使用して、文字コードに対応する文字を印刷する(ステップS17)。以下同様にして、必要に応じて第4優先の言語に切り替えて、第4優先の言語のフォントデータを使用して文字コードに対応する文字を印刷する。   Then, the print execution unit 24 determines whether there is font data in the language set with the third priority for the processing target character code (step S20). Here, when there is font data of a language set to the third priority, the print execution unit 24 prints a character corresponding to the character code using the font data of the third priority language ( Step S17). Similarly, the language corresponding to the character code is printed using the font data of the fourth priority language by switching to the fourth priority language as necessary.

その後、印刷実行部24は、印刷データに基づく印刷が全て終了したか否かを判定する(ステップS18)。まだ印刷が終了していない場合、処理はステップS14に戻り、印刷データに含まれる次の情報を読み取って同様の処理を実行する。一方、印刷データに基づく印刷が全て終了した場合、図10に示すフローチャートの処理は終了する。   Thereafter, the print execution unit 24 determines whether or not printing based on the print data has been completed (step S18). If the printing has not been completed yet, the process returns to step S14 to read the next information included in the print data and execute the same process. On the other hand, when all the printing based on the print data is completed, the process of the flowchart shown in FIG. 10 ends.

以上詳しく説明したように、第1の実施形態では、ホストコンピュータ100において、プリンタ200が有している複数言語のフォントデータの優先順位を指定し、ホストコンピュータ100からプリンタ200にコマンドを送信することによって、印刷に使用するフォントデータの優先順位をプリンタ200にあらかじめ設定する。その後、ホストコンピュータ100からプリンタ200に印刷データを送信して印刷を行うときは、あらかじめ設定された優先順位に基づいて何れかの言語のフォントデータを使用して、印刷データに含まれる文字コードに対応した文字を含む文書の印刷を行うようにしている。   As described above in detail, in the first embodiment, the host computer 100 designates the priority order of font data in a plurality of languages that the printer 200 has, and transmits a command from the host computer 100 to the printer 200. Thus, the priority order of the font data used for printing is set in the printer 200 in advance. Thereafter, when printing is performed by transmitting print data from the host computer 100 to the printer 200, the font data of any language is used based on the preset priority order, and the character code included in the print data is converted to the character code. A document including the corresponding character is printed.

このように構成した第1の実施形態によれば、印刷に使用するフォントを指定するための操作インタフェースをプリンタ200が有していなくても、Unicodeに対応した複数言語のフォントデータの優先順位をホストコンピュータ100にて指定し、ホストコンピュータ100からプリンタ200にコマンドを送信することによって優先順位をプリンタ200に設定することができる。プリンタ200では、以上のように設定された優先順位に従って、何れかの言語のフォントデータを使用して印刷が実行されることとなる。これにより、ユーザがフォントを指定するのに十分な操作インタフェースを持たないプリンタ200であっても、Unicodeに対応した複数言語のフォントの中から、印字に使用するフォントを任意に指定することができるようになる。   According to the first embodiment configured as described above, even if the printer 200 does not have an operation interface for designating a font to be used for printing, the priority order of font data in a plurality of languages corresponding to Unicode is set. The priority order can be set in the printer 200 by designating it on the host computer 100 and transmitting a command from the host computer 100 to the printer 200. In the printer 200, printing is executed using font data of any language according to the priority order set as described above. As a result, even if the printer 200 does not have an operation interface sufficient for the user to specify a font, a font to be used for printing can be arbitrarily specified from among fonts of a plurality of languages corresponding to Unicode. It becomes like this.

(第2の実施形態)
次に、本発明の第2の実施形態を図面に基づいて説明する。第2の実施形態による印刷システムの全体構成は、図1と同様である。ただし、第1の実施形態と区別するために、ホストコンピュータの符号を100A、プリンタの符号を200Aとする。また、ホストコンピュータ100Aおよびプリンタ200Aのハードウェア構成は、それぞれ図2および図3と同様である。
(Second Embodiment)
Next, a second embodiment of the present invention will be described with reference to the drawings. The overall configuration of the printing system according to the second embodiment is the same as that shown in FIG. However, in order to distinguish from the first embodiment, the code of the host computer is 100A, and the code of the printer is 200A. The hardware configurations of the host computer 100A and the printer 200A are the same as those in FIGS. 2 and 3, respectively.

図11は、第2の実施形態による印刷システムの機能構成例を示すブロック図である。なお、この図11において、図4に示した符号と同一の符号を付したものは同一の機能を有するものであるので、ここでは重複する説明を省略する。図11に示すように、ホストコンピュータ100Aは、その機能構成として、優先順位指定部11、コマンド出力部12A、印刷データ生成部13および印刷データ送信部14Aを備えている。また、プリンタ200Aは、その機能構成として、コマンド入力部21A、優先順位設定部22A、印刷データ受信部23A、印刷実行部24およびフォントデータ記憶部25を備えている。   FIG. 11 is a block diagram illustrating a functional configuration example of the printing system according to the second embodiment. Note that in FIG. 11, those given the same reference numerals as those shown in FIG. 4 have the same functions, and thus redundant description is omitted here. As shown in FIG. 11, the host computer 100A includes a priority specification unit 11, a command output unit 12A, a print data generation unit 13, and a print data transmission unit 14A as functional configurations. The printer 200A includes a command input unit 21A, a priority order setting unit 22A, a print data receiving unit 23A, a print execution unit 24, and a font data storage unit 25 as its functional configuration.

ホストコンピュータ100Aのコマンド出力部12Aは、印刷データ送信部14Aが印刷データをプリンタ200Aに送信する際に、印刷データにコマンドを1つ付与する態様で、コマンドをプリンタ200Aに対して出力する。すなわち、コマンド出力部12Aは、優先順位指定部11により指定された優先順位の情報を含むコマンドを発行し、当該コマンドを印刷データ送信部14Aに供給する。印刷データ送信部14Aは、印刷データ生成部13により生成された印刷データと共に、コマンド出力部12Aより供給されたコマンドをプリンタ200Aに送信する。   When the print data transmission unit 14A transmits print data to the printer 200A, the command output unit 12A of the host computer 100A outputs a command to the printer 200A in a mode in which one command is added to the print data. That is, the command output unit 12A issues a command including information on the priority specified by the priority specification unit 11, and supplies the command to the print data transmission unit 14A. The print data transmission unit 14A transmits the command supplied from the command output unit 12A to the printer 200A together with the print data generated by the print data generation unit 13.

なお、優先順位指定部11による優先順位の指定は、例えば、印刷データ送信部14Aにより印刷データを送信する際に、ホストコンピュータ100にインストールされているプリンタドライバのプロパティ画面として図5または図6のような優先順位指定画面を表示させて行うようにしてもよい。このようにすれば、印刷を行う文書毎に、フォントの優先順位を指定することが可能である。なお、プリンタドライバのプロパティ画面を通じて指定した優先順位の情報は、プリンタドライバの印刷環境設定情報として保持し、次に設定を変えるまで維持するようにしてもよい。   Note that the priority order designation by the priority order designation unit 11 is, for example, the property screen of the printer driver installed in the host computer 100 when the print data transmission unit 14A transmits print data, as shown in FIG. Such priority order designation screen may be displayed. In this way, it is possible to specify the priority order of fonts for each document to be printed. The priority order information specified through the printer driver property screen may be held as the print environment setting information of the printer driver and maintained until the setting is changed next time.

別の例として、第1の実施形態で説明したように、フォントの優先順位の情報をアプリケーションの中にあらかじめ組み込んでおくようにしてもよい。この場合は、印刷データ送信部14Aにより印刷データを送信する際に、アプリケーションに組み込まれた優先順位の情報を優先順位指定部11が読み取ることによってフォントの優先順位を指定する。   As another example, as described in the first embodiment, font priority information may be incorporated in an application in advance. In this case, when the print data is transmitted by the print data transmitting unit 14A, the priority order specifying unit 11 reads the priority order information incorporated in the application, thereby specifying the priority order of the fonts.

図12は、印刷データ送信部14Aがプリンタ200Aに送信するデータの一例を示す図である。図12に示すように、印刷データ送信部14Aは、印刷データ生成部13により生成された印刷データの先頭に、優先順位指定部11により指定された優先順位に基づいてコマンド出力部12Aにより発行されたコマンドを付加する。そして、印刷データ送信部14Aは、先頭にコマンドが付加された印刷データをプリンタ200Aに送信する。   FIG. 12 is a diagram illustrating an example of data transmitted from the print data transmission unit 14A to the printer 200A. As shown in FIG. 12, the print data transmission unit 14A is issued by the command output unit 12A at the head of the print data generated by the print data generation unit 13 based on the priority specified by the priority specification unit 11. Append commands. Then, the print data transmission unit 14A transmits the print data with the command added to the head to the printer 200A.

印刷データ受信部23Aは、先頭にコマンドが付加された印刷データを受信する。コマンド入力部21Aは、ホストコンピュータ100Aから送信された印刷データの先頭に1つ付与する態様で送られてくるコマンドを、印刷データ受信部23Aを介して入力する。すなわち、コマンド入力部21Aは、印刷データ受信部23Aが受信した印刷データの先頭に付加されているコマンドを取得する。このように、第2の実施形態では、ホストコンピュータ100Aのコマンド出力部12Aは、印刷データ送信部14Aを介してコマンドをプリンタ200Aに出力し、プリンタ200Aのコマンド入力部21Aは、印刷データ受信部23Aを介してコマンドを入力する。   The print data receiving unit 23A receives print data with a command added to the head. The command input unit 21A inputs, via the print data receiving unit 23A, a command sent in such a manner that one is added to the head of the print data transmitted from the host computer 100A. That is, the command input unit 21A acquires a command added to the head of the print data received by the print data receiving unit 23A. As described above, in the second embodiment, the command output unit 12A of the host computer 100A outputs a command to the printer 200A via the print data transmission unit 14A, and the command input unit 21A of the printer 200A receives the print data reception unit. A command is input via 23A.

優先順位設定部22Aは、コマンド入力部21Aが印刷データ受信部23Aを介して入力したコマンド、すなわち、印刷データ受信部23Aが受信した印刷データに付与されているコマンドに従って、印刷データ受信部23Aが受信した印刷データに基づいて印刷実行部24が文書の印刷を実行する都度、当該印刷に使用するフォントデータの優先順位を設定する。すなわち、優先順位設定部22Aは、コマンド入力部21Aが印刷データの先頭から取得したコマンド内に含まれる優先順位の情報を不揮発性メモリ204に記憶させることにより、ホストコンピュータ100Aで指定されたフォントの使用言語の優先順位をプリンタ200Aに設定する。なお、第2の実施形態では、不揮発性メモリ204に代えてRAM203に優先順位の情報を記憶させるようにしてもよい。   The priority order setting unit 22A is configured so that the print data receiving unit 23A can execute the command input unit 21A via the print data receiving unit 23A, that is, according to the command given to the print data received by the print data receiving unit 23A. Each time the print execution unit 24 prints a document based on the received print data, the priority order of font data used for the print is set. In other words, the priority order setting unit 22A stores the priority order information included in the command acquired from the head of the print data by the command input unit 21A in the nonvolatile memory 204, so that the font specified by the host computer 100A is stored. The priority order of the language used is set in the printer 200A. In the second embodiment, priority information may be stored in the RAM 203 instead of the nonvolatile memory 204.

図13は、以上のように構成した第2の実施形態による印刷システムの動作例を示すフローチャートである。この図13は、印刷を実行する際の動作例を示すものである。なお、図13において、図10に示したステップ番号と同じ番号を付したものは同一の処理を実行するものであるので、ここでは重複する説明を省略する。この図13に示すフローチャートは、ユーザにより印刷の実行が指示されたときに開始する。ここでは、アプリケーションの動作環境またはプリンタドライバの印刷環境として、印刷に使用するフォントの優先順位が優先順位指定部11により既に設定されているものとする。   FIG. 13 is a flowchart showing an operation example of the printing system according to the second embodiment configured as described above. FIG. 13 shows an operation example when printing is executed. In FIG. 13, the same number as the step number shown in FIG. 10 executes the same process, and therefore, a duplicate description is omitted here. The flowchart shown in FIG. 13 is started when the execution of printing is instructed by the user. Here, it is assumed that the priority order of fonts used for printing has already been set by the priority order specifying unit 11 as the operating environment of the application or the printing environment of the printer driver.

まず、ホストコンピュータ100Aの印刷データ生成部13は、ホストコンピュータ100Aにインストールされているアプリケーションに対するユーザ操作を通じて、任意の文字列を含む印刷データを生成する(ステップS21)。次に、コマンド出力部12Aは、アプリケーションの動作環境またはプリンタドライバの印刷環境としてあらかじめ設定された優先順位の情報を含むコマンドを発行し、当該コマンドを印刷データ送信部14Aに供給する。印刷データ送信部14Aは、印刷データ生成部13により生成された印刷データの先頭にコマンドを付加する(ステップS22)。そして、印刷データ送信部14Aは、先頭にコマンドが付加された印刷データをプリンタ200Aに送信する(ステップS23)。   First, the print data generation unit 13 of the host computer 100A generates print data including an arbitrary character string through a user operation on an application installed in the host computer 100A (step S21). Next, the command output unit 12A issues a command including information on the priority set in advance as the application operating environment or the printer driver printing environment, and supplies the command to the print data transmitting unit 14A. The print data transmission unit 14A adds a command to the head of the print data generated by the print data generation unit 13 (step S22). Then, the print data transmission unit 14A transmits the print data with the command added to the head to the printer 200A (step S23).

プリンタ200Aでは、印刷データ送信部14Aにより送信されたコマンド付きの印刷データを印刷データ受信部23Aが受信すると(ステップS24)、コマンド入力部21Aは、印刷データ受信部23Aが受信した印刷データに付与されているコマンドを取得する(ステップS25)。   In the printer 200A, when the print data receiving unit 23A receives the print data with the command transmitted by the print data transmitting unit 14A (step S24), the command input unit 21A adds the print data received by the print data receiving unit 23A. The command that has been executed is acquired (step S25).

そして、優先順位設定部22Aは、コマンド入力部21Aにより取得されたコマンド内に含まれる優先順位の情報を不揮発性メモリ204に記憶させることにより、今回の印刷に使用するフォントデータの優先順位を設定する(ステップS26)。その後、印刷実行部24は、図10で説明したステップS14以降と同様の処理によって、ホストコンピュータ100Aから受信した印刷データに基づいて文書の印刷を実行する。   Then, the priority order setting unit 22A stores the priority order information included in the command acquired by the command input unit 21A in the nonvolatile memory 204, thereby setting the priority order of the font data used for the current printing. (Step S26). Thereafter, the print execution unit 24 executes document printing based on the print data received from the host computer 100A by the same processing as step S14 and subsequent steps described in FIG.

以上詳しく説明したように、第2の実施形態では、ホストコンピュータ100Aからプリンタ200Aに印刷データを送信する際に、その印刷データに付加する態様でコマンドを送信することによって、印刷に使用するフォントデータの優先順位を印刷の都度プリンタ200Aに設定する。そして、設定した優先順位に基づいて何れかの言語のフォントデータを使用して、印刷データに含まれる文字コードに対応した文字を含む文書の印刷を行うようにしている。   As described above in detail, in the second embodiment, when print data is transmitted from the host computer 100A to the printer 200A, the font data used for printing is transmitted by transmitting a command in a mode added to the print data. Is set to the printer 200A each time printing is performed. A document including characters corresponding to the character code included in the print data is printed using the font data of any language based on the set priority.

このように構成した第2の実施形態によれば、印刷に使用するフォントを指定するために十分な操作インタフェースをプリンタ200Aが有していなくても、ホストコンピュータ100Aからプリンタ200Aにコマンドを送信することによって優先順位をプリンタ200Aに設定することができる。特に、第2の実施形態では、例えばプリンタドライバのプロパティ画面で印刷の都度フォントの優先順位を指定することにより、プリンタ200Aで印刷を実行する文書毎に、印刷に使用するフォントの優先順位を自由に設定することもできる。これにより、Unicodeに対応した複数言語のフォントの中から、印字に使用するフォントを任意に指定することの自由度が大きくなるというメリットを有する。   According to the second embodiment configured as described above, a command is transmitted from the host computer 100A to the printer 200A even if the printer 200A does not have a sufficient operation interface for designating a font to be used for printing. Thus, the priority order can be set for the printer 200A. In particular, in the second embodiment, the priority order of fonts used for printing can be freely set for each document to be printed by the printer 200A, for example, by specifying the priority order of fonts each time printing is performed on the property screen of the printer driver. Can also be set. Accordingly, there is an advantage that the degree of freedom for arbitrarily designating a font to be used for printing from among a plurality of languages corresponding to Unicode is increased.

(第3の実施形態)
次に、本発明の第3の実施形態を図面に基づいて説明する。第3の実施形態による印刷システムの全体構成は、図1と同様である。ただし、第1の実施形態と区別するために、ホストコンピュータの符号を100B、プリンタの符号を200Bとする。また、ホストコンピュータ100Bおよびプリンタ200Bのハードウェア構成は、それぞれ図2および図3と同様である。
(Third embodiment)
Next, a third embodiment of the present invention will be described with reference to the drawings. The overall configuration of the printing system according to the third embodiment is the same as that shown in FIG. However, in order to distinguish from the first embodiment, the host computer code is 100B, and the printer code is 200B. The hardware configurations of the host computer 100B and the printer 200B are the same as those in FIGS. 2 and 3, respectively.

図14は、第3の実施形態による印刷システムの機能構成例を示すブロック図である。なお、この図14において、図4に示した符号と同一の符号を付したものは同一の機能を有するものであるので、ここでは重複する説明を省略する。図14に示すように、ホストコンピュータ100Bは、その機能構成として、優先順位指定部11B、印刷データ生成部13Bおよび印刷データ送信部14Bを備えている。また、プリンタ200Bは、その機能構成として、印刷データ受信部23B、印刷実行部24Bおよびフォントデータ記憶部25を備えている。   FIG. 14 is a block diagram illustrating a functional configuration example of the printing system according to the third embodiment. In FIG. 14, the same reference numerals as those shown in FIG. 4 have the same functions, and therefore redundant description is omitted here. As shown in FIG. 14, the host computer 100B includes a priority designation unit 11B, a print data generation unit 13B, and a print data transmission unit 14B as functional configurations. The printer 200B includes a print data receiving unit 23B, a print execution unit 24B, and a font data storage unit 25 as functional configurations.

第3の実施形態では、1つの文書内に含まれる複数の文字を、複数の言語のフォントデータを使用して印刷することができるようにする。例えば、図15に示すように、日本語と中国語の2ヵ国語に対応した文書を印刷することを想定する。図15に示す文書は、同じ意味を表す日本語の「整理券」と中国語の「▼編▲号票」とを含んでいる。第3の実施形態は、このような文書について、「整理券」を日本語のフォントで印刷し、「▼編▲号票」を中国語のフォントで印刷できるようにするものである。   In the third embodiment, a plurality of characters included in one document can be printed using font data of a plurality of languages. For example, as shown in FIG. 15, it is assumed that a document corresponding to two languages, Japanese and Chinese, is printed. The document shown in FIG. 15 includes a Japanese “numbered ticket” and a Chinese “▼ edition ▲ number vote” representing the same meaning. In the third embodiment, for such a document, “numbered ticket” can be printed in Japanese font, and “▼ edition ▲ ticket” can be printed in Chinese font.

ホストコンピュータ100Bの優先順位指定部11Bは、印刷対象の文書上の1つ以上の任意の位置において、文字の印刷に使用するフォントの優先順位を指定する。例えば、印刷対象の文書を表示部108の画面上に表示させ、ユーザが優先順位を指定したい文字列の先頭位置にカーソルを合わせた状態で、図5または図6のような優先順位指定画面を表示させることによって、文書上の任意の位置において優先順位を指定する。   The priority order specifying unit 11B of the host computer 100B specifies the priority order of fonts used for printing characters at one or more arbitrary positions on the document to be printed. For example, in a state where the document to be printed is displayed on the screen of the display unit 108 and the user moves the cursor to the first position of the character string for which the priority order is to be designated, the priority order designation screen as shown in FIG. By displaying, the priority order is specified at an arbitrary position on the document.

印刷データ生成部13Bは、印刷データを生成する際に、優先順位指定部11Bにより指定された位置に対応して、複数の文字コードの間に1つ以上のコマンドを付与する態様で、印刷データを生成する。例えば、図15に示す文書の例において、文書の先頭において第1優先の言語として日本語を指定したコマンドを付加し、「券」の文字コードと「▼編▲」の文字コードとの間に第1優先の言語として中国語を指定したコマンドを付加し、「票」の文字コードの直後に第1優先の言語として日本語を指定したコマンドを再び付加する。   The print data generation unit 13B is configured to provide one or more commands between a plurality of character codes corresponding to the position specified by the priority order specification unit 11B when generating the print data. Is generated. For example, in the example of the document shown in FIG. 15, a command specifying Japanese as the first priority language is added at the beginning of the document, and the character code of “ticket” and the character code of “▼ hen ▲” are added. A command specifying Chinese as the first priority language is added, and a command specifying Japanese as the first priority language is added again immediately after the character code of “vote”.

印刷データ送信部14Bは、コマンドが埋め込まれた印刷データをプリンタ200Bに送信する。第3の実施形態において、印刷データ送信部14Bは、コマンド出力部の機能を備えている。すなわち、印刷データ送信部14Bは、プリンタ200Bに送信する印刷データに含まれる複数の文字コードの間に1つ以上のコマンドを付与する態様で、コマンドをプリンタ200Bに対して出力する。   The print data transmission unit 14B transmits the print data in which the command is embedded to the printer 200B. In the third embodiment, the print data transmission unit 14B has a function of a command output unit. That is, the print data transmission unit 14B outputs a command to the printer 200B in such a manner that one or more commands are assigned between a plurality of character codes included in the print data transmitted to the printer 200B.

なお、図15に示すような整理券の文書の場合、これを何枚印刷しても、「整理券」および「▼編▲号票」の文字は固定で、常に変わらない。そして、「整理券」を日本語のフォントで印刷し、「▼編▲号票」を中国語のフォントで印刷することも固定で、常に変わらない。よって、ホストコンピュータ100Bにインストールして使用するアプリケーションを設計・開発する業者が、印刷データの生成時に上述した各位置にコマンドが自動的に組み込まれるように、アプリケーションを作成するようにしてもよい。   In the case of a numbered ticket document as shown in FIG. 15, the characters “numbered ticket” and “▼ edition ▲ vote” are fixed and do not always change no matter how many sheets are printed. And “numbered ticket” is printed in Japanese font, and “▼ edition ▲ vote” is printed in Chinese font. Therefore, a trader who designs and develops an application to be installed and used on the host computer 100B may create an application so that a command is automatically incorporated at each position described above when print data is generated.

この場合、印刷データ内におけるコマンドの組み込み位置だけをアプリケーションの機能によってあらかじめ決めておいて、フォントの優先順位についてはユーザ操作に基づいて任意に指定できるようにすることが可能である。あるいは、コマンドの組み込み位置に加え、それぞれの位置で指定するフォントの優先順位も含めて、業者があらかじめアプリケーションの機能として定義しておくようにしてもよい。後者の場合、印刷データ生成部13Bが印刷データを生成する際に、優先順位指定部11Bがアプリケーションに組み込まれた優先順位の情報を読み取ることによってフォントの優先順位を自動的に指定する。   In this case, only the command installation position in the print data is determined in advance by the function of the application, and the priority order of the fonts can be arbitrarily designated based on the user operation. Or, in addition to the command installation position, the priority of fonts specified at each position may also be defined in advance as a function of the application by the contractor. In the latter case, when the print data generating unit 13B generates the print data, the priority specifying unit 11B automatically specifies the font priority by reading the priority information incorporated in the application.

プリンタ200Bの印刷データ受信部23Bは、複数の文字コードの間に1つ以上のコマンドが付与された印刷データを受信する。このように、第3の実施形態において、印刷データ受信部23Bは、コマンド入力部の機能を備えている。すなわち、印刷データ受信部23Bは、ホストコンピュータ100Bから送信された印刷データに含まれる複数の文字コードの間に1つ以上付与する態様で送られてくるコマンドを入力する。   The print data receiving unit 23B of the printer 200B receives print data in which one or more commands are assigned between a plurality of character codes. As described above, in the third embodiment, the print data receiving unit 23B has the function of the command input unit. That is, the print data receiving unit 23B inputs a command that is sent in such a manner that one or more character codes are added between a plurality of character codes included in the print data transmitted from the host computer 100B.

印刷実行部24Bは、印刷データ受信部23Bにより受信された印刷データに基づいて文書の印刷を実行する際に、印刷データに付与されているコマンドに従って、コマンドが現れる都度、当該印刷に使用するフォントデータの優先順位を設定しながら、印刷を実行する。このように、第3の実施形態において、印刷実行部24Bは、優先順位設定部の機能を備えている。   When the print execution unit 24B executes printing of a document based on the print data received by the print data reception unit 23B, each time a command appears according to the command assigned to the print data, the font used for the print Execute printing while setting the priority of data. Thus, in the third embodiment, the print execution unit 24B has the function of the priority order setting unit.

例えば、図15に示す文書の例において、上述したように、文書の先頭において第1優先の言語として日本語を指定したコマンドが付加され、「券」の文字コードと「▼編▲」の文字コードとの間に第1優先の言語として中国語を指定したコマンドが付加され、「票」の文字コードの直後に第1優先の言語として日本語を指定したコマンドが付加されている場合、「▼編▲号票」の3文字のみが中国語のフォントを第1優先として印刷され、その他の文字が日本語のフォントを第1優先として印刷されることになる。   For example, in the example of the document shown in FIG. 15, as described above, a command specifying Japanese as the first priority language is added at the beginning of the document, and the character code of “ticket” and the character of “▼ hen ▲” are added. If a command specifying Chinese as the first priority language is added to the code and a command specifying Japanese is added as the first priority language immediately after the character code of “vote” Only the three characters “▼ Edition No.” are printed with the Chinese font as the first priority, and the other characters are printed with the Japanese font as the first priority.

図16は、以上のように構成した第3の実施形態による印刷システムの動作例を示すフローチャートである。この図16は、印刷を実行する際の動作例を示すものである。なお、図16において、図10に示したステップ番号と同じ番号を付したものは同一の処理を実行するものであるので、ここでは重複する説明を省略する。この図16に示すフローチャートは、ユーザにより印刷の実行が指示されたときに開始する。ここでは、アプリケーションに組み込まれた機能によって、印刷データ中の所定の位置に、所定の優先順位を指定するためのコマンドを付加することがあらかじめ決まっているものとする。   FIG. 16 is a flowchart showing an operation example of the printing system according to the third embodiment configured as described above. FIG. 16 shows an operation example when printing is executed. In FIG. 16, the same reference numbers as the step numbers shown in FIG. 10 execute the same processing, and thus the duplicate description is omitted here. The flowchart shown in FIG. 16 is started when the execution of printing is instructed by the user. Here, it is assumed that a command for designating a predetermined priority is added to a predetermined position in the print data by a function incorporated in the application.

まず、ホストコンピュータ100Bの印刷データ生成部13Bは、ホストコンピュータ100Bにインストールされているアプリケーションに対するユーザ操作を通じて、任意の文字列を含む印刷データを生成する(ステップS31)。また、印刷データ生成部13Bは、印刷データ中の所定の位置に、所定の優先順位を指定するためのコマンドを付加する(ステップS32)。そして、印刷データ送信部14Bは、1つ以上のコマンドが付加された印刷データをプリンタ200Bに送信する(ステップS33)。   First, the print data generation unit 13B of the host computer 100B generates print data including an arbitrary character string through a user operation on an application installed in the host computer 100B (step S31). Further, the print data generating unit 13B adds a command for designating a predetermined priority order to a predetermined position in the print data (step S32). Then, the print data transmission unit 14B transmits the print data to which one or more commands are added to the printer 200B (step S33).

プリンタ200Bでは、印刷データ送信部14Bにより送信されたコマンド付きの印刷データを印刷データ受信部23Bが受信すると(ステップS34)、印刷実行部24Bは、印刷データの先頭から情報を読み取り、読み取った情報がコマンドか否かを判定する(ステップS35)。読み取った情報がコマンドの場合、印刷実行部24Bは、そのコマンド内に含まれる優先順位の情報を不揮発性メモリ204に記憶させることにより、文字の印刷に使用するフォントの優先順位を設定する(ステップS36)。一方、読み取った情報がコマンドではない場合、ステップS36の処理は行わない。   In the printer 200B, when the print data receiving unit 23B receives the print data with the command transmitted from the print data transmitting unit 14B (step S34), the print executing unit 24B reads the information from the head of the print data and reads the read information. Is a command (step S35). If the read information is a command, the print execution unit 24B stores the priority order information included in the command in the nonvolatile memory 204, thereby setting the priority order of the fonts used for printing the characters (step) S36). On the other hand, when the read information is not a command, the process of step S36 is not performed.

なお、印刷データの先頭から情報を読み取ったときに、その先頭の情報が、所定の優先順位を指定するためのコマンドではなかった場合、コマンドを読み取るまでに処理される文字コードの印刷に係る優先順位は、別の方法で設定する。例えば、同じプリンタ200Bで以前に印刷を実行した際に最後に設定された優先順位を保存しておき、その保存した優先順位を設定することが可能である。または、プリンタ200Bにデフォルトの優先順位を設定しておき、そのデフォルトの優先順位を用いるようにしてもよい。   Note that when reading information from the beginning of the print data, if the information at the beginning is not a command for designating a predetermined priority, priority is given to printing of character codes that are processed before the command is read. The order is set by another method. For example, it is possible to save the priority order that was last set when printing was previously performed with the same printer 200B, and set the saved priority order. Alternatively, a default priority order may be set for the printer 200B, and the default priority order may be used.

その後、印刷実行部24Bは、図10で説明したステップS14以降と同様の処理によって、1つの文字コードまたはその他の情報の印刷を実行する。1つの文字コードまたはその他の情報の印刷が終了すると、処理はステップS35に戻り、以上の同様の処理を実行する。これにより、印刷データ中からコマンドを読み取る都度、そのコマンドに従ってフォントの優先順位を設定しながら、印刷データに基づいて文書の印刷を実行する。   Thereafter, the print execution unit 24B executes the printing of one character code or other information by the same processing as that after step S14 described in FIG. When printing of one character code or other information is completed, the process returns to step S35, and the same process as described above is executed. Thus, each time a command is read from the print data, the document is printed based on the print data while setting the priority order of the fonts according to the command.

以上詳しく説明したように、第3の実施形態では、ホストコンピュータ100Bからプリンタ200Bに送信する印刷データの中に含まれる複数の文字コードの間に1つ以上のコマンドを付与する態様で、コマンドをプリンタ200Bに対して出力することにより、印刷に使用するフォントデータの優先順位を文書内の指定位置毎に設定する。そして、設定した優先順位に基づいて何れかの言語のフォントデータを使用して、印刷データに含まれる文字コードに対応した文字を含む文書の印刷を行うようにしている。   As described above in detail, in the third embodiment, one or more commands are assigned between a plurality of character codes included in print data transmitted from the host computer 100B to the printer 200B. By outputting to the printer 200B, the priority order of the font data used for printing is set for each designated position in the document. A document including characters corresponding to the character code included in the print data is printed using the font data of any language based on the set priority.

このように構成した第3の実施形態によれば、印刷に使用するフォントを指定するために十分な操作インタフェースをプリンタ200Bが有していなくても、ホストコンピュータ100Bからプリンタ200Bにコマンドを送信することによって優先順位をプリンタ200Bに設定することができる。特に、第3の実施形態では、文書内の指定位置毎に、印刷に使用するフォントの優先順位を設定することができる。これにより、1つの文書内に含まれる複数の文字を、複数の言語のフォントデータを使用して印刷することができる。   According to the third embodiment configured as described above, a command is transmitted from the host computer 100B to the printer 200B even if the printer 200B does not have a sufficient operation interface for designating a font to be used for printing. Thus, the priority order can be set for the printer 200B. In particular, in the third embodiment, the priority order of fonts used for printing can be set for each designated position in a document. Accordingly, a plurality of characters included in one document can be printed using font data of a plurality of languages.

(第4の実施形態)
次に、本発明の第4の実施形態を図面に基づいて説明する。第4の実施形態による印刷システムの全体構成は、図1と同様である。ただし、第1の実施形態と区別するために、プリンタの符号を200Cとする。また、ホストコンピュータ100およびプリンタ200Cのハードウェア構成は、それぞれ図2および図3と同様である。
(Fourth embodiment)
Next, a fourth embodiment of the present invention will be described with reference to the drawings. The overall configuration of the printing system according to the fourth embodiment is the same as that shown in FIG. However, in order to distinguish from the first embodiment, the code of the printer is 200C. The hardware configurations of the host computer 100 and the printer 200C are the same as those in FIGS. 2 and 3, respectively.

図17は、第4の実施形態による印刷システムの機能構成例を示すブロック図である。なお、この図17において、図4に示した符号と同一の符号を付したものは同一の機能を有するものであるので、ここでは重複する説明を省略する。図17に示すように、ホストコンピュータ100は、図4と同様の機能構成を有している。また、プリンタ200Cは、その機能構成として、区切り判定部26を更に備えるとともに、印刷実行部24に代えて印刷実行部24Cを備えている。   FIG. 17 is a block diagram illustrating a functional configuration example of the printing system according to the fourth embodiment. In FIG. 17, components having the same reference numerals as those shown in FIG. 4 have the same functions, and thus redundant description is omitted here. As shown in FIG. 17, the host computer 100 has the same functional configuration as that of FIG. The printer 200 </ b> C further includes a delimiter determination unit 26 as a functional configuration thereof, and includes a print execution unit 24 </ b> C instead of the print execution unit 24.

第4の実施形態においても第3の実施形態と同様に、1つの文書内に含まれる複数の文字を、複数の言語のフォントデータを使用して印刷することができるようにするものである。例えば、図15に示す文書において、「整理券」を日本語のフォントで印刷し、「▼編▲号票」を中国語のフォントで印刷できるようにするものである。   In the fourth embodiment, as in the third embodiment, a plurality of characters included in one document can be printed using font data of a plurality of languages. For example, in the document shown in FIG. 15, “numbered ticket” can be printed in Japanese font, and “▼ edition ▲ ticket” can be printed in Chinese font.

区切り判定部26は、印刷データ受信部23により受信された印刷データに含まれる複数の文字コードの並びに基づいて、文書内に含まれる文字列の区切りを判定する。例えば、区切り判定部26は、スペースの文字コードがある位置を、文書内に含まれる文字列の区切りと判定する。例えば、図15に示す文書の場合、「整理券」の文字列と「▼編▲号票」の文字列との間にスペースがある。区切り判定部26は、このスペースの位置を文字列の区切りと判定する。また、「▼編▲号票」と「114」との間にもスペースがある。区切り判定部26は、このスペースの位置も文字列の区切りと判定する。   The delimiter determining unit 26 determines the delimiter of the character string included in the document based on the arrangement of the plurality of character codes included in the print data received by the print data receiving unit 23. For example, the delimiter determining unit 26 determines that a position where a space character code is present is a delimiter of a character string included in the document. For example, in the case of the document shown in FIG. 15, there is a space between the character string of “numbered ticket” and the character string of “▼ hen ▲ issue vote”. The delimiter determination unit 26 determines the position of this space as a delimiter of the character string. There is also a space between “▼ Edition No.” and “114”. The delimiter determination unit 26 determines that the position of the space is also a character string delimiter.

印刷実行部24Cは、優先順位設定部22により設定された優先順位(不揮発性メモリ204に記憶された優先順位)に基づいて、区切り判定部26により判定される文字列の区切り毎に、印刷に使用する言語のフォントデータを決定する。そして、一の文字列の先頭で決定した言語のフォントデータを、当該一の文字列の末尾まで使用して印刷を実行する。   The print execution unit 24C performs printing for each character string delimiter determined by the delimiter determination unit 26 based on the priority (priority stored in the non-volatile memory 204) set by the priority setting unit 22. Determine the font data for the language to be used. Then, printing is executed using the font data of the language determined at the beginning of one character string up to the end of the one character string.

すなわち、印刷実行部24Cは、まず「整理券」の文字列の先頭で、優先順位に基づいて印刷に使用する言語のフォントデータを決定し、当該決定した言語のフォントデータを使用して、「整理券」の文字列の末尾まで印刷を実行する。その後、スペースの存在によって区切り判定部26により区切りと判定された次の「▼編▲号票」の文字列の先頭で、再び優先順位に基づいて印刷に使用する言語のフォントデータを決定し、当該決定した言語のフォントデータを使用して、「▼編▲号票」の文字列の末尾まで印刷を実行する。以下同様である。   That is, the print execution unit 24C first determines font data of a language to be used for printing based on the priority order at the head of the character string of “numbered ticket”, and uses the font data of the determined language to Execute printing until the end of the "numbered ticket" character string. After that, the font data of the language to be used for printing is again determined based on the priority order at the head of the character string of the next “▼ Edition No.” determined to be delimited by the delimiter determining unit 26 due to the presence of a space, Using the font data of the determined language, printing is executed up to the end of the character string “▼ Edition No.”. The same applies hereinafter.

ここで、優先順位設定部22により第1優先のフォントの言語として日本語が設定されていたとする。この場合、上述した第1の実施形態を適用して図15に示す文書を印刷すると、図7を用いて説明したように、「整理券」は日本語のフォントで統一して印刷されるが、「▼編▲号票」は「▼編▲」のみが中国語のフォントで印刷され、「号票」が日本語のフォントで印刷されてしまう。「▼編▲」に関しては、その文字コードに対応する日本語の字形のフォントデータが存在しないので、第2優先以降に設定されている中国語のフォントで印刷が実行されるのに対し、「号票」に関しては、その文字コードに対応する日本語の字形のフォントデータが存在するので、第1優先に設定されている日本語のフォントで印刷が実行されるからである。   Here, it is assumed that Japanese is set as the language of the first priority font by the priority order setting unit 22. In this case, when the document shown in FIG. 15 is printed by applying the first embodiment described above, the “numbered ticket” is printed in a unified Japanese font as described with reference to FIG. As for “▼ edition ▲ vote”, only “▼ edition ▲” is printed in a Chinese font, and “issue” is printed in a Japanese font. As for “▼ Edit”, since there is no Japanese character font data corresponding to the character code, printing is executed with the Chinese font set after the second priority. This is because there is Japanese character-shaped font data corresponding to the character code of “No. form”, and printing is executed with the Japanese font set to the first priority.

これに対し、第4の実施形態によれば、「整理券」の文字列を印刷する際に、その先頭の文字「整」に対して、第1優先に設定された日本語のフォントデータを使用することが決定され、当該決定した日本語のフォントデータを使用して、「整理券」の文字列の末尾まで印刷が実行される。一方、「▼編▲号票」の文字列を印刷する際には、その先頭の文字「▼編▲」について、第1優先に設定された日本語のフォントデータが存在しないため、第2優先以降に設定された中国語のフォントデータを使用することが決定され、当該決定した中国語のフォントデータを使用して、「▼編▲号票」の文字列の末尾まで印刷が実行される。   On the other hand, according to the fourth embodiment, when the character string of “numbered ticket” is printed, the Japanese font data set with the first priority for the first character “alignment” is displayed. Using the determined Japanese font data, printing is executed up to the end of the “numbered ticket” character string. On the other hand, when the character string “▼ Edition” is printed, there is no Japanese font data set to the first priority for the first character “▼ Edit ▲”, so the second priority. Thereafter, it is determined that the Chinese font data set is used, and printing is executed up to the end of the character string “▼ Edition No.” using the determined Chinese font data.

図18は、以上のように構成した第4の実施形態による印刷システムの動作例を示すフローチャートである。図18は、印刷を実行する際の動作例を示すフローチャートである。なお、フォントの優先順位を設定する際の動作例は、図9に示したフローチャートと同様である。また、図18において、図10に示したステップ番号と同一の番号を付したものは同一の処理を実行するものであるので、ここでは重複する説明を省略する。図18に示すフローチャートは、ユーザにより印刷の実行が指示されたときに開始する。   FIG. 18 is a flowchart showing an operation example of the printing system according to the fourth embodiment configured as described above. FIG. 18 is a flowchart illustrating an operation example when executing printing. An example of the operation when setting the priority order of fonts is the same as the flowchart shown in FIG. Further, in FIG. 18, those given the same number as the step number shown in FIG. 10 execute the same process, and thus the duplicated explanation is omitted here. The flowchart shown in FIG. 18 starts when the execution of printing is instructed by the user.

図18に示すフローチャートにおいて、ステップS17で1つの文字コードに対応する文字を印刷した後、区切り判定部26は、次の文字コードがスペースか否かを判定する(ステップS41)。次の文字コードがスペースでない場合は、文字列がまだ続いているということなので、ステップS17に戻り、ステップS16,S19,S20のループで決定された言語のフォントデータをそのまま使用して、次の文字コードに関する印刷を実行する。   In the flowchart shown in FIG. 18, after printing a character corresponding to one character code in step S17, the delimiter determining unit 26 determines whether or not the next character code is a space (step S41). If the next character code is not a space, it means that the character string is still continued. Therefore, the process returns to step S17, and the font data of the language determined in the loop of steps S16, S19, S20 is used as it is. Executes printing related to character codes.

一方、ステップS41において、次の文字コードがスペースであると判定された場合は、文字列が末尾まで終了したということなので、処理はステップS18に進む。ここで、印刷実行部24は、印刷データに基づく印刷が全て終了したか否かを判定する。まだ印刷が終了していない場合、処理はステップS14に戻り、印刷データに含まれる次の情報を読み取って同様の処理を実行する。一方、印刷データに基づく印刷が全て終了した場合、図18に示すフローチャートの処理は終了する。   On the other hand, if it is determined in step S41 that the next character code is a space, it means that the character string has been completed to the end, and the process proceeds to step S18. Here, the print execution unit 24 determines whether or not printing based on the print data has been completed. If the printing has not been completed yet, the process returns to step S14 to read the next information included in the print data and execute the same process. On the other hand, when all the printing based on the print data is finished, the process of the flowchart shown in FIG. 18 is finished.

以上のように構成した第4の実施形態によれば、第3の実施形態のように印刷データの中に含まれる複数の文字コードの間に1以上のコマンドを付与しなくても、1つの文書内に含まれる複数の文字列を、複数の言語のフォントデータを使用して印刷することができる。しかも、文字列毎にフォントの優先順位を指定していないにもかかわらず、1つの文字列については1つのフォントで統一して印刷を行うことができる。   According to the fourth embodiment configured as described above, a single command can be provided without providing one or more commands between a plurality of character codes included in print data as in the third embodiment. A plurality of character strings included in a document can be printed using font data of a plurality of languages. In addition, although the priority order of fonts is not designated for each character string, one character string can be printed with a single font.

なお、上記第4の実施形態では、第1の実施形態で示した構成をもとに、プリンタ200Cの構成を変形する例について説明したが、第2の実施形態で示したプリンタ200Aの構成において、区切り判定部26を更に設けるとともに、印刷実行部24に代えて印刷実行部24Cを備えるようにしてもよい。   In the fourth embodiment, the example in which the configuration of the printer 200C is modified based on the configuration shown in the first embodiment has been described. However, the configuration of the printer 200A shown in the second embodiment is described. In addition, a break determination unit 26 may be further provided, and a print execution unit 24C may be provided instead of the print execution unit 24.

なお、上記第1〜第4の実施形態では、所定数の言語(日本語、中国語、台湾語、韓国語の4つの言語)の優先順位を全て設定する例について説明したが、本発明はこれに限定されない。例えば、所定数に満たない数だけ優先順位を設定し、残りは「非対応」を設定するようにしてもよい。この場合、印刷実行部24,24B,24Cは、優先順位が設定された言語のフォントデータが何れもフォントデータ記憶部25に記憶されていない文字コードについては、印刷を実行しない。あるいは、他の文字コードに置き換えた上で、優先順位に基づいて何れかの言語のフォントデータを使用して印刷を実行するようにしてもよい。置き換える他の文字コードは、例えば、「・」または「□」とする。このようにすれば、ユーザが希望する言語のフォントがない場合には、印刷しないまたは別の文字でダミー印刷するという選択をすることが可能となる。   In the first to fourth embodiments, the example in which all the priorities of a predetermined number of languages (four languages, Japanese, Chinese, Taiwanese, and Korean) are set has been described. It is not limited to this. For example, the priority order may be set to a number less than a predetermined number, and “non-corresponding” may be set for the rest. In this case, the print execution units 24, 24B, and 24C do not execute printing for character codes in which none of the font data of the languages for which priority is set is stored in the font data storage unit 25. Alternatively, after replacing with another character code, printing may be executed using font data of any language based on the priority order. Another character code to be replaced is, for example, “·” or “□”. In this way, when there is no font in the language desired by the user, it is possible to select not to print or to perform dummy printing with another character.

その他、上記第1〜第4の実施形態は、何れも本発明を実施するにあたっての具体化の一例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその要旨、またはその主要な特徴から逸脱することなく、様々な形で実施することができる。   In addition, the above-described first to fourth embodiments are merely examples of specific embodiments for carrying out the present invention, and the technical scope of the present invention should not be construed as being limited thereto. It will not be. That is, the present invention can be implemented in various forms without departing from the gist or the main features thereof.

11,11B 優先順位指定部
12,12A コマンド出力部
13,13B 印刷データ生成部
14,14A,14B 印刷データ送信部
21,21A コマンド入力部
22,22A 優先順位設定部
23,23A,23B 印刷データ受信部
24,24B,24C 印刷実行部
25 フォントデータ記憶部
26 区切り判定部
100,100A,100B ホストコンピュータ
200,200A,200B,200C プリンタ
11, 11B Priority designation unit 12, 12A Command output unit 13, 13B Print data generation unit 14, 14A, 14B Print data transmission unit 21, 21A Command input unit 22, 22A Priority setting unit 23, 23A, 23B Receive print data Unit 24, 24B, 24C Print execution unit 25 Font data storage unit 26 Separation determination unit 100, 100A, 100B Host computer 200, 200A, 200B, 200C Printer

Claims (16)

複数言語の文字を共通の文字集合にて利用できるようにしたUnicodeによる文字コードを送信するホストコンピュータと、当該ホストコンピュータから上記文字コードを受信して印刷を実行するプリンタとを備えた印刷システムであって、
上記ホストコンピュータは、
上記プリンタが有している複数言語のフォントデータの優先順位を上記プリンタに設定するためのコマンドを上記プリンタに対して出力するコマンド出力部と、
上記プリンタに対し、印刷すべき文字の上記文字コードを含む印刷データを送信する印刷データ送信部とを備え、
上記プリンタは、
上記Unicodeに対応した複数言語のフォントデータを記憶したフォントデータ記憶部と、
上記コマンド出力部により出力された上記コマンドに従って、印刷に使用するフォントデータの言語の優先順位を設定する優先順位設定部と、
上記優先順位設定部により設定された優先順位に基づいて何れかの言語のフォントデータを使用して、上記印刷データ送信部により送信された上記印刷データに基づいて、当該印刷データに含まれる上記文字コードに対応した文字を含む文書の印刷を実行する印刷実行部とを備えたことを特徴とする印刷システム。
A printing system comprising: a host computer that transmits a character code by Unicode that allows characters of a plurality of languages to be used in a common character set; and a printer that receives the character code from the host computer and executes printing. There,
The host computer
A command output unit that outputs to the printer a command for setting the priority order of the font data of a plurality of languages possessed by the printer to the printer;
A print data transmission unit that transmits print data including the character code of the character to be printed to the printer;
The printer
A font data storage unit storing font data of a plurality of languages corresponding to the Unicode;
A priority setting unit that sets the priority order of the language of the font data used for printing in accordance with the command output by the command output unit;
The character included in the print data based on the print data transmitted by the print data transmission unit using the font data of any language based on the priority set by the priority setting unit A printing system comprising: a print execution unit that executes printing of a document including characters corresponding to a code.
上記コマンド出力部は、上記印刷データ送信部が上記印刷データを上記プリンタに送信するタイミングとは非同期で、上記コマンドを上記プリンタに対してあらかじめ出力し、
上記優先順位設定部は、上記コマンドに従って設定した優先順位を、次に上記コマンドが送られてくるまで保持することを特徴とする請求項1に記載の印刷システム。
The command output unit outputs the command to the printer in advance, asynchronously with the timing at which the print data transmission unit transmits the print data to the printer,
The printing system according to claim 1, wherein the priority order setting unit holds the priority order set according to the command until the next command is sent.
上記コマンド出力部は、上記印刷データ送信部が上記印刷データを上記プリンタに送信する際に、上記印刷データに上記コマンドを1つ付与する態様で、上記コマンドを上記プリンタに対して出力し、
上記優先順位設定部は、上記印刷データに付与されている上記コマンドに従って、上記印刷実行部が上記文書の印刷を実行する都度、当該印刷に使用するフォントデータの言語の優先順位を設定することを特徴とする請求項1に記載の印刷システム。
The command output unit outputs the command to the printer in a mode in which one command is given to the print data when the print data transmission unit transmits the print data to the printer.
The priority order setting unit sets the priority order of the language of the font data used for the printing each time the print execution unit executes the printing of the document according to the command given to the print data. The printing system according to claim 1, wherein:
上記コマンド出力部は、上記印刷データ送信部が送信する上記印刷データに含まれる複数の上記文字コードの間に1つ以上の上記コマンドを付与する態様で、上記コマンドを上記プリンタに対して出力し、
上記優先順位設定部は、上記印刷実行部が上記文書の印刷を実行する際に、上記印刷データに付与されている上記コマンドに従って、上記コマンドが現れる都度、当該印刷に使用するフォントデータの言語の優先順位を設定することを特徴とする請求項1に記載の印刷システム。
The command output unit outputs the command to the printer in a mode in which one or more of the commands are added between a plurality of the character codes included in the print data transmitted by the print data transmission unit. ,
Whenever the command appears according to the command given to the print data when the print execution unit executes printing of the document, the priority order setting unit sets the language of the font data used for the printing. The printing system according to claim 1, wherein a priority order is set.
上記プリンタは、上記印刷データ送信部により送信された上記印刷データに含まれる複数の上記文字コードの並びに基づいて、上記文書内に含まれる文字列の区切りを判定する区切り判定部を更に備え、
上記印刷実行部は、上記優先順位設定部により設定された優先順位に基づいて、上記区切り判定部により判定される上記文字列の区切り毎に、印刷に使用する言語のフォントデータを決定し、一の文字列の先頭で決定した言語のフォントデータを上記一の文字列の末尾まで使用して印刷を実行することを特徴とする請求項2または3に記載の印刷システム。
The printer further includes a delimiter determining unit that determines a delimiter of a character string included in the document based on a sequence of the plurality of character codes included in the print data transmitted by the print data transmitting unit,
The print execution unit determines font data of a language to be used for printing for each delimiter of the character string determined by the delimiter determination unit based on the priority set by the priority setting unit. 4. The printing system according to claim 2, wherein printing is performed using font data of a language determined at the beginning of the character string up to the end of the one character string. 5.
上記印刷実行部は、上記優先順位設定部により優先順位が設定された言語のフォントデータが何れも上記フォントデータ記憶部に記憶されていない文字コードについては、他の文字コードに置き換えた上で、上記優先順位設定部により設定された優先順位に基づいて何れかの言語のフォントデータを使用して印刷を実行することを特徴とする請求項1〜5の何れか1項に記載の印刷システム。   The print execution unit replaces the character code in which none of the font data of the languages set with the priority by the priority setting unit is stored in the font data storage unit with another character code. The printing system according to claim 1, wherein printing is performed using font data of any language based on the priority set by the priority setting unit. 上記ホストコンピュータは、
上記プリンタが有している複数言語のフォントデータの優先順位をユーザ操作に基づいて指定するための優先順位指定部を更に備え、
上記コマンド出力部は、上記優先順位指定部により指定された優先順位を上記プリンタに設定するためのコマンドを上記プリンタに対して出力することを特徴とする請求項1〜6の何れか1項に記載の印刷システム。
The host computer
A priority order designating unit for designating the priority order of font data in a plurality of languages possessed by the printer based on a user operation;
7. The command output unit according to claim 1, wherein the command output unit outputs a command for setting the priority level designated by the priority level designation unit to the printer. The printing system described.
上記優先順位指定部は、指定可能な優先順位を示す複数のパターンを画面表示させ、上記複数のパターンの中から何れかのパターンを指定するユーザ操作に基づいて、上記優先順位を指定することを特徴とする請求項7に記載の印刷システム。   The priority order designating unit displays a plurality of patterns indicating the priority order that can be designated, and designates the priority order based on a user operation for designating any one of the plurality of patterns. The printing system according to claim 7, wherein: 上記優先順位指定部は、複数言語の優先順位を1つずつ指定するユーザ操作に基づいて、上記優先順位を指定することを特徴とする請求項7に記載の印刷システム。   The printing system according to claim 7, wherein the priority order designation unit designates the priority order based on a user operation for designating a priority order of a plurality of languages one by one. 上記優先順位指定部は、所定数の言語の優先順位を指定する際に、上記所定数に満たない数の言語についてユーザ操作に基づいて優先順位が指定された場合、当該ユーザ操作に基づいて指定された言語の優先順位に続けて、他の言語の優先順位をデフォルト順に従って指定することを特徴とする請求項9に記載の印刷システム。   When the priority order is specified based on the user operation for the number of languages less than the predetermined number when specifying the priority order of the predetermined number of languages, the priority order specifying unit is specified based on the user operation The printing system according to claim 9, wherein the priority order of the other languages is designated in accordance with a default order following the priority order of the selected languages. 複数言語の文字を共通の文字集合にて利用できるようにしたUnicodeによる文字コードをホストコンピュータから入力して印刷を実行するプリンタであって、
上記Unicodeに対応した複数言語のフォントデータを記憶したフォントデータ記憶部と、
上記複数言語のフォントデータの優先順位を設定するためのコマンドを上記ホストコンピュータから入力するコマンド入力部と、
上記コマンド入力部により入力された上記コマンドに従って、印刷に使用するフォントデータの言語の優先順位を設定する優先順位設定部と、
上記優先順位設定部により設定された優先順位に基づいて何れかの言語のフォントデータを使用して、上記ホストコンピュータから送信された印刷データに基づいて、当該印刷データに含まれる上記文字コードに対応した文字を含む文書の印刷を実行する印刷実行部とを備えたことを特徴とするプリンタ。
A printer that executes printing by inputting a character code by Unicode from a host computer, which enables use of characters in a plurality of languages in a common character set,
A font data storage unit storing font data of a plurality of languages corresponding to the Unicode;
A command input unit for inputting a command for setting the priority order of the font data of the plurality of languages from the host computer;
A priority setting unit that sets the priority order of the language of the font data used for printing in accordance with the command input by the command input unit;
Corresponding to the character code included in the print data based on the print data transmitted from the host computer using the font data of any language based on the priority set by the priority setting unit A printer comprising: a print execution unit that executes printing of a document including a written character.
上記コマンド入力部は、上記ホストコンピュータから送信される上記印刷データとは異なるタイミングにて非同期で送られてくる上記コマンドを入力し、
上記優先順位設定部は、上記コマンドに従って設定した優先順位を、上記コマンド入力部が次のコマンドを入力するまで保持することを特徴とする請求項11に記載のプリンタ。
The command input unit inputs the command sent asynchronously at a timing different from the print data sent from the host computer,
12. The printer according to claim 11, wherein the priority setting unit holds the priority set according to the command until the command input unit inputs a next command.
上記コマンド入力部は、上記ホストコンピュータから送信される上記印刷データに1つ付与する態様で送られてくる上記コマンドを入力し、
上記優先順位設定部は、上記印刷データに付与されている上記コマンドに従って、上記印刷実行部が上記文書の印刷を実行する都度、当該印刷に使用するフォントデータの言語の優先順位を設定することを特徴とする請求項11に記載のプリンタ。
The command input unit inputs the command sent in a manner to give one to the print data transmitted from the host computer,
The priority order setting unit sets the priority order of the language of the font data used for the printing each time the print execution unit executes the printing of the document according to the command given to the print data. The printer according to claim 11, wherein
上記コマンド入力部は、上記ホストコンピュータから送信される上記印刷データに含まれる複数の上記文字コードの間に1つ以上付与する態様で送られてくる上記コマンドを入力し、
上記優先順位設定部は、上記印刷実行部が上記文書の印刷を実行する際に、上記印刷データに付与されている上記コマンドに従って、上記コマンドが現れる都度、当該印刷に使用するフォントデータの言語の優先順位を設定することを特徴とする請求項11に記載のプリンタ。
The command input unit inputs the command sent in a mode in which one or more character codes are added between the plurality of character codes included in the print data transmitted from the host computer,
Whenever the command appears according to the command given to the print data when the print execution unit executes printing of the document, the priority order setting unit sets the language of the font data used for the printing. 12. The printer according to claim 11, wherein priority is set.
上記ホストコンピュータから送信される上記印刷データに含まれる複数の上記文字コードの並びに基づいて、上記文書内に含まれる文字列の区切りを判定する区切り判定部を更に備え、
上記印刷実行部は、上記優先順位設定部により設定された優先順位に基づいて、上記区切り判定部により判定される上記文字列の区切り毎に、印刷に使用する言語のフォントデータを決定し、一の文字列の先頭で決定した言語のフォントデータを上記一の文字列の末尾まで使用して印刷を実行することを特徴とする請求項12または13に記載のプリンタ。
A delimiter determining unit that determines a delimiter of a character string included in the document based on a sequence of the plurality of character codes included in the print data transmitted from the host computer;
The print execution unit determines font data of a language to be used for printing for each delimiter of the character string determined by the delimiter determination unit based on the priority set by the priority setting unit. 14. The printer according to claim 12, wherein printing is performed using font data of a language determined at the beginning of the character string up to the end of the one character string.
上記印刷実行部は、上記優先順位設定部により優先順位が設定された言語のフォントデータが何れも上記フォントデータ記憶部に記憶されていない文字コードについては、他の文字コードに置き換えた上で、上記優先順位設定部により設定された優先順位に基づいて何れかの言語のフォントデータを使用して印刷を実行することを特徴とする請求項11〜15の何れか1項に記載のプリンタ。   The print execution unit replaces the character code in which none of the font data of the languages set with the priority by the priority setting unit is stored in the font data storage unit with another character code. 16. The printer according to claim 11, wherein printing is executed using font data of any language based on the priority set by the priority setting unit.
JP2017137005A 2017-07-13 2017-07-13 Printing system and printer used in the same Pending JP2019020892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017137005A JP2019020892A (en) 2017-07-13 2017-07-13 Printing system and printer used in the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017137005A JP2019020892A (en) 2017-07-13 2017-07-13 Printing system and printer used in the same

Publications (1)

Publication Number Publication Date
JP2019020892A true JP2019020892A (en) 2019-02-07

Family

ID=65354758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017137005A Pending JP2019020892A (en) 2017-07-13 2017-07-13 Printing system and printer used in the same

Country Status (1)

Country Link
JP (1) JP2019020892A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113119609A (en) * 2020-01-15 2021-07-16 精工爱普生株式会社 Printing apparatus and control method of printing apparatus
CN113173010A (en) * 2020-01-08 2021-07-27 精工爱普生株式会社 Printing apparatus and control method of printing apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113173010A (en) * 2020-01-08 2021-07-27 精工爱普生株式会社 Printing apparatus and control method of printing apparatus
CN113119609A (en) * 2020-01-15 2021-07-16 精工爱普生株式会社 Printing apparatus and control method of printing apparatus
JP2021109421A (en) * 2020-01-15 2021-08-02 セイコーエプソン株式会社 Printing device and printing device control method
CN113119609B (en) * 2020-01-15 2022-12-02 精工爱普生株式会社 Printing apparatus and control method of printing apparatus
US11531853B2 (en) 2020-01-15 2022-12-20 Seiko Epson Corporation Printing device and control method for printing device
JP7400481B2 (en) 2020-01-15 2023-12-19 セイコーエプソン株式会社 Printing device and method of controlling the printing device

Similar Documents

Publication Publication Date Title
JP5924992B2 (en) Information processing apparatus, information processing method and program
JP4963663B2 (en) Information processing apparatus, information processing method, storage medium, and program
JP6340994B2 (en) Printer, printing system, and printing control method
JP6578851B2 (en) Information processing apparatus and program
JP4812093B2 (en) Information processing apparatus, information processing apparatus control method, information processing method, program, and storage medium
CN106168944B (en) Document conversion method
CN109976681B (en) Information processing apparatus, image forming apparatus, and computer-readable recording medium
JP4696938B2 (en) Virtual device name change program
EP2230630B1 (en) Printer, and program for its operation screen.
JP2019020892A (en) Printing system and printer used in the same
JP2017033052A (en) Control device and program in image forming apparatus
US10976894B2 (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
US20110252074A1 (en) Resource data management apparatus and resource data management method
US11366587B2 (en) Electronic device, electronic device control method, and recording medium
JP5727067B2 (en) System and method for introducing runtime programming code into a printing device
JP5494561B2 (en) Information processing apparatus, image forming apparatus, program, and information processing method
US20210342106A1 (en) Program, method, and device for generating job data
JP2006178622A (en) Document conversion method, document conversion apparatus, and program
JP2018067856A (en) Program run by information processing terminal and information processing terminal
JP2008217433A (en) Information processor, information processing method, program, and storage medium
JP6265177B2 (en) Printer driver and information processing apparatus
JP2005276173A (en) Information processor, method for enhancing print function, computer-readable method for enhancing print function, printer, print control method, and print system
US20100229087A1 (en) Computer readable medium, information processing device and image processing method
WO2016031266A1 (en) Printer, printing system, and method for controlling printing of ambiguous character
JP2006228103A (en) Information processor