JP2013146865A - Recording device, method for controlling recording device, and program - Google Patents
Recording device, method for controlling recording device, and program Download PDFInfo
- Publication number
- JP2013146865A JP2013146865A JP2012007084A JP2012007084A JP2013146865A JP 2013146865 A JP2013146865 A JP 2013146865A JP 2012007084 A JP2012007084 A JP 2012007084A JP 2012007084 A JP2012007084 A JP 2012007084A JP 2013146865 A JP2013146865 A JP 2013146865A
- Authority
- JP
- Japan
- Prior art keywords
- language
- recording
- program
- predetermined
- data
- 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
Links
Images
Abstract
Description
本発明は、文字パターンデータに基づいて文字を記録する記録装置、当該記録装置の制御方法、及び、当該記録装置を制御するためのプログラムに関する。 The present invention relates to a recording apparatus that records characters based on character pattern data, a control method for the recording apparatus, and a program for controlling the recording apparatus.
従来、文字パターンデータ(フォントデータ)に基づいて文字を記録する記録装置が知られている(例えば、特許文献1参照)。一般に、文字パターンデータに基づく文字の記録は、記録装置にインストールされたファームウェア等の基本制御プログラムの機能により行われる。 Conventionally, a recording apparatus that records characters based on character pattern data (font data) is known (see, for example, Patent Document 1). In general, recording of characters based on character pattern data is performed by a function of a basic control program such as firmware installed in a recording device.
ところで、文字パターンデータに基づく文字の記録に際して行われる処理は、言語によって異なっている場合がある。例えば、タイ語や、インド語では、1つの文字が、複数の文字を所定の態様で組み合わせることによって表されている場合があり、このような場合には、対応する文字パターンデータについて、対応する画像処理を行った上で、文字の記録を行う必要がある。
そして、記録装置について、新たに、所定の言語の文字パターンデータに基づく文字の記録を行えるようにする場合、従来は、基本制御プログラムを改変し、当該基本制御プログラムに、当該所定の言語に対応する処理を実行する機能を実装させていた。しかしながら、基本制御プログラムは、記録装置の基本動作を制御するためのプログラムであり、比較的複雑なプログラミングがされており、また、書き換えが正常に行われなかった場合、記録装置の以後の動作に多大な悪影響を与えることがある。このため、ファームウェア等の基本制御プログラムに対する改変は、できるだけ行いたくないとするニーズがあった。
本発明は、上述した事情に鑑みてなされたものであり、文字パターンデータに基づいて記録する記録装置について、基本制御プログラムに対する改変を行うことなく、新たに、所定の言語の文字パターンデータに基づく文字の記録を行えるようにする。
By the way, the process performed when recording characters based on character pattern data may differ depending on the language. For example, in Thai or Indian, one character may be represented by combining a plurality of characters in a predetermined manner. In such a case, the corresponding character pattern data is supported. It is necessary to record characters after image processing.
If the recording device can newly record characters based on character pattern data in a predetermined language, conventionally, the basic control program is modified so that the basic control program corresponds to the predetermined language. The function to execute the processing to be implemented was implemented. However, the basic control program is a program for controlling the basic operation of the recording apparatus, is relatively complicated programming, and if rewriting is not normally performed, May have significant adverse effects. For this reason, there has been a need to change the basic control program such as firmware as little as possible.
The present invention has been made in view of the above-described circumstances, and a recording apparatus for recording based on character pattern data is newly based on character pattern data in a predetermined language without modifying the basic control program. Enable character recording.
上記目的を達成するために、本発明は、記録媒体に記録する記録装置であって、基本制御プログラムにより参照可能な言語データを記憶する記憶部と、前記基本制御プログラムを実行することによって各部を制御する基本制御部と、を備え、前記言語データは、所定の言語の文字パターンデータと、当該所定の言語の文字パターンデータに基づいて当該所定の言語に対応した前記記録媒体への記録に係る処理を行わせる言語対応プログラムと、を含んで構成され、前記基本制御部は、所定の言語の所定の文字の記録に際し、当該所定の言語に対応する前記言語データに含まれる前記言語対応プログラムを、前記基本制御プログラムにより呼び出し可能な態様でロードし、ロードした前記言語対応プログラムの機能により、前記言語データに含まれる前記文字パターンデータに基づく前記記録媒体への記録に係る処理を実行することを特徴とする。
この構成によれば、基本制御プログラムとは独立した言語データに、所定の言語の文字パターンデータに基づく記録媒体への記録に係る処理を行わせる言語対応プログラムが含まれており、記録装置は、所定の言語の文字を記録する際は、当該言語対応プログラムをロードし、当該プログラムの機能により、当該所定の言語の文字を記録する。このため、記録装置について、新たに、所定の言語の文字パターンに基づく文字の記録を行えるようにする場合は、基本制御プログラムを改変するのではなく、当該所定の言語の文字パターンと、当該所定の言語に対応する言語対応プログラムを含んで構成される言語データを、基本制御プログラムにより参照可能な態様で記憶部に記憶すればよい。つまり、記録装置について、基本制御プログラムに対する改変を行うことなく、新たに、所定の言語の文字パターンデータに基づく文字の記録を行えるようにできる。
In order to achieve the above object, the present invention provides a recording apparatus for recording on a recording medium, a storage unit for storing language data that can be referred to by a basic control program, and each unit by executing the basic control program. A basic control unit for controlling, and the language data relates to character pattern data of a predetermined language and recording on the recording medium corresponding to the predetermined language based on the character pattern data of the predetermined language A language-corresponding program for performing processing, wherein the basic control unit records the language-corresponding program included in the language data corresponding to the predetermined language when recording predetermined characters in the predetermined language. The language data is loaded in a mode that can be called by the basic control program, and is included in the language data by the function of the loaded language corresponding program. And executes processing relating to recording on the recording medium based on the character pattern data.
According to this configuration, the language data independent of the basic control program includes a language-compatible program that performs processing related to recording on a recording medium based on character pattern data of a predetermined language. When recording characters in a predetermined language, the language-compatible program is loaded, and the characters in the predetermined language are recorded by the function of the program. For this reason, when it is possible to newly record a character based on a character pattern of a predetermined language, the basic control program is not modified, and the character pattern of the predetermined language and the predetermined What is necessary is just to memorize | store in the memory | storage part the language data comprised including the language corresponding program corresponding to these languages in the aspect which can be referred with a basic control program. That is, the recording apparatus can newly record characters based on the character pattern data of a predetermined language without modifying the basic control program.
また、本発明は、前記言語対応プログラムは、所定の言語の所定の文字の記録に際し、前記言語データに含まれる当該所定の文字の前記文字パターンデータについて、当該所定の言語に対応した画像処理を施し、前記文字パターンデータの展開用のバッファーに展開させる機能を有することを特徴とする。
この構成によれば、ロードした言語対応プログラムの機能により、言語に応じた文字パターンへの画像処理を適切に行うことが可能となり、また、従来のように、記録装置が新たに所定の言語の文字を記録できるようにする際に、当該所定の言語に対応した画像処理を行うことができるよう基本制御プログラムを改変する必要がない。
Further, according to the present invention, the language-corresponding program performs image processing corresponding to the predetermined language for the character pattern data of the predetermined character included in the language data when recording the predetermined character in the predetermined language. And a function for developing the character pattern data in a buffer for developing the character pattern data.
According to this configuration, it is possible to appropriately perform image processing on a character pattern corresponding to the language by the function of the loaded language-compatible program, and the recording apparatus can newly add a predetermined language as in the past. When characters can be recorded, there is no need to modify the basic control program so that image processing corresponding to the predetermined language can be performed.
また、本発明は、前記基本制御部は、電源投入時、又は、リセット時に、前記言語対応プログラムのロードを行うことを特徴とする。
この構成によれば、電源投入時、又は、リセット時に言語対応プログラムのロードが行われるため、記録装置が記録媒体への記録を行える状態の間、言語対応プログラムの機能を利用した所定の言語の文字の記録を可能な状態とすることができる。
Further, the present invention is characterized in that the basic control unit loads the language-corresponding program at power-on or reset.
According to this configuration, since the language correspondence program is loaded when the power is turned on or reset, a predetermined language using the function of the language correspondence program can be used while the recording device can record to the recording medium. Characters can be recorded.
また、上記目的を達成するために、本発明は、基本制御プログラムにより参照可能であり、所定の言語の文字パターンデータと、当該所定の言語の文字パターンデータに基づいて当該所定の言語に対応した前記記録媒体への記録に係る処理を行わせる言語対応プログラムと、を含んで構成された言語データを記憶する記憶部を備える記録装置の制御方法であって、所定の言語の所定の文字の記録に際し、当該所定の言語に対応する前記言語データに含まれる前記言語対応プログラムを、前記基本制御プログラムにより呼び出し可能な態様でロードし、ロードした前記言語対応プログラムの機能により、前記言語データに含まれる前記文字パターンデータに基づく前記記録媒体への記録に係る処理を実行することを特徴とする。
この制御方法によれば、基本制御プログラムとは独立した言語データに、所定の言語の文字パターンデータに基づく記録媒体への記録に係る処理を行わせる言語対応プログラムが含まれており、記録装置は、所定の言語の文字を記録する際は、当該言語対応プログラムをロードし、当該プログラムの機能により、当該所定の言語の文字を記録する。このため、記録装置について、新たに、所定の言語の文字パターンに基づく文字の記録を行えるようにする場合は、基本制御プログラムを改変するのではなく、当該所定の言語の文字パターンと、当該所定の言語に対応する言語対応プログラムを含んで構成される言語データを、基本制御プログラムにより参照可能な態様で記憶部に記憶すればよい。つまり、記録装置について、基本制御プログラムに対する改変を行うことなく、新たに、所定の言語の文字パターンデータに基づく文字の記録を行えるようにできる。
In order to achieve the above object, the present invention can be referred to by a basic control program, and corresponds to the predetermined language based on the character pattern data of the predetermined language and the character pattern data of the predetermined language. A method for controlling a recording apparatus comprising a storage unit that stores language data configured to include a language-compatible program that performs processing related to recording on the recording medium, and recording a predetermined character in a predetermined language At this time, the language-corresponding program included in the language data corresponding to the predetermined language is loaded in a manner that can be called by the basic control program, and is included in the language data by the function of the loaded language-corresponding program. Processing related to recording on the recording medium based on the character pattern data is executed.
According to this control method, the language data independent from the basic control program includes the language corresponding program for performing processing related to recording on the recording medium based on the character pattern data of the predetermined language. When recording characters in a predetermined language, the language-compatible program is loaded, and the characters in the predetermined language are recorded by the function of the program. For this reason, when it is possible to newly record a character based on a character pattern of a predetermined language, the basic control program is not modified, and the character pattern of the predetermined language and the predetermined What is necessary is just to memorize | store in the memory | storage part the language data comprised including the language corresponding program corresponding to these languages in the aspect which can be referred with a basic control program. That is, the recording apparatus can newly record characters based on the character pattern data of a predetermined language without modifying the basic control program.
また、上記目的を達成するために、本発明は、基本制御プログラムにより参照可能であり、所定の言語の文字パターンデータと、当該所定の言語の文字パターンデータに基づいて当該所定の言語に対応した前記記録媒体への記録に係る処理を行わせる言語対応プログラムと、を含んで構成された言語データを記憶する記憶部を備える記録装置を制御する制御部により実行可能なプログラムであって、前記制御部を、前記基本制御プログラムを実行することによって各部を制御し、所定の言語の所定の文字の記録に際し、当該所定の言語に対応する前記言語データに含まれる前記言語対応プログラムを、前記基本制御プログラムにより呼び出し可能な態様でロードし、ロードした前記言語対応プログラムの機能により、前記言語データに含まれる前記文字パターンデータに基づく前記記録媒体への記録に係る処理を実行する基本制御部として機能させることを特徴とする。
このプログラムによれば、基本制御プログラムとは独立した言語データに、所定の言語の文字パターンデータに基づく記録媒体への記録に係る処理を行わせる言語対応プログラムが含まれており、記録装置は、所定の言語の文字を記録する際は、当該言語対応プログラムをロードし、当該プログラムの機能により、当該所定の言語の文字を記録する。このため、記録装置について、新たに、所定の言語の文字パターンに基づく文字の記録を行えるようにする場合は、基本制御プログラムを改変するのではなく、当該所定の言語の文字パターンと、当該所定の言語に対応する言語対応プログラムを含んで構成される言語データを、基本制御プログラムにより参照可能な態様で記憶部に記憶すればよい。つまり、記録装置について、基本制御プログラムに対する改変を行うことなく、新たに、所定の言語の文字パターンデータに基づく文字の記録を行えるようにできる。
In order to achieve the above object, the present invention can be referred to by a basic control program, and corresponds to the predetermined language based on the character pattern data of the predetermined language and the character pattern data of the predetermined language. A program that can be executed by a control unit that controls a recording device including a storage unit that stores language data configured to include a language-compatible program that performs processing related to recording on the recording medium, the control Each unit is controlled by executing the basic control program, and when recording a predetermined character in a predetermined language, the language control program included in the language data corresponding to the predetermined language is controlled by the basic control. Loaded in a form that can be called by a program, and included in the language data by the function of the loaded language-compatible program Characterized in that function as basic control unit that executes a process according to the recording on the recording medium based on the character pattern data.
According to this program, the language data independent of the basic control program includes a language-compatible program that performs processing related to recording on a recording medium based on character pattern data of a predetermined language. When recording characters in a predetermined language, the language-compatible program is loaded, and the characters in the predetermined language are recorded by the function of the program. For this reason, when it is possible to newly record a character based on a character pattern of a predetermined language, the basic control program is not modified, and the character pattern of the predetermined language and the predetermined What is necessary is just to memorize | store in the memory | storage part the language data comprised including the language corresponding program corresponding to these languages in the aspect which can be referred with a basic control program. That is, the recording apparatus can newly record characters based on the character pattern data of a predetermined language without modifying the basic control program.
本発明によれば、文字パターンデータに基づいて記録する記録装置について、基本制御プログラムに対する改変を行うことなく、新たに、所定の言語の文字パターンデータに基づく文字の記録を行えるようにできる。 According to the present invention, a recording apparatus for recording based on character pattern data can newly record characters based on character pattern data in a predetermined language without modifying the basic control program.
以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る記録システム1の機能的構成を示すブロック図である。
記録システム1は、ホストコンピューター10と、プリンター12とを備え、ホストコンピューター10の制御の下、プリンター12により記録媒体たる感熱ロール紙に画像を記録するシステムである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a functional configuration of a recording system 1 according to the present embodiment.
The recording system 1 is a system that includes a
ホストコンピューター10は、ホスト側制御部15と、ホスト側表示部16と、ホスト側入力部17と、インターフェイス部18(I/F)と、ホスト側記憶部19と、を備える。
ホスト側制御部15は、ホストコンピューター10の各部を中枢的に制御するものであり、演算実行部としてのCPUや、このCPUに実行される基本制御プログラムや、この基本制御プログラムに係るデータ等を不揮発的に記憶するROM、CPUに実行されるプログラムやこのプログラムに係るデータ等を一時的に記憶するRAM、その他の周辺回路等を備える。
図1に示すように、ホスト側制御部15は、プリンタードライバー実行部21を備えているが、これについては後述する。
The
The host-
As shown in FIG. 1, the host-
ホスト側表示部16は、液晶ディスプレーパネルや、有機ELパネル等の表示パネルを備え、ホスト側制御部15の制御の下、表示パネルに各種情報を表示する。
ホスト側入力部17は、キーボードや、マウス、バーコードリーダー、カードリーダー等の入力デバイスに接続され、これら入力デバイスに対する操作を検出し、ホスト側制御部15に出力する。
インターフェイス部18(I/F)は、ホスト側制御部15の制御の下、プリンター12との間で通信規格に準拠した通信を行う。
ホスト側記憶部19は、各種データを書き換え可能に記憶する部位であり、ハードディスクや、EEPROM等の記憶装置を備える。
The host
The host
The interface unit 18 (I / F) performs communication based on the communication standard with the
The host-
一方、プリンター12は、ロール状に巻かれた感熱ロール紙を、ローラー状のプラテンにより搬送し、この感熱ロール紙の記録面に、発熱素子を備えたラインサーマルヘッドによって熱を与えることにより画像を記録した上で、所定の位置で感熱ロール紙を切断することにより、紙片を発行するサーマルヘッド式プリンターである。
図1に示すように、プリンター12は、制御部30と、表示部31と、入力部32と、プリントエンジン33と、記憶部35と、インターフェイス部36(I/F)と、を備える。
制御部30は、プリンター12の各部を中枢的に制御するものであり、演算実行部としてのCPUや、このCPUに実行されるファームウェア41(基本制御プログラム)や、このファームウェア41に係るデータ等を不揮発的に記憶するROM、CPUに実行されるプログラムやこのプログラムに係るデータ等を一時的に記憶するRAM、その他の周辺回路等を備える。制御部30には、後述するバッファー30bが接続されている。
この制御部30は、基本制御部30aを備えているが、これについては後述する。
表示部31は、プリンター12の動作状態等の各種情報を表示する液晶パネルや有機ELパネル等の表示パネルや、LED等を備え、制御部30の制御の下、当該表示パネルに各種情報を表示し、又は、LEDの点灯/消灯する。
入力部32は、プリンター12に設けられた各種操作スイッチに接続され、操作スイッチに対する操作を検出し操作信号として制御部30に出力する。
プリントエンジン33は、制御部30の制御の下、各種センサーの検出値を監視しながら、上述したラインサーマルヘッドのほか、感熱ロール紙を搬送するプラテンローラーを駆動するための搬送モーターや、切断機構が備えるカッターを駆動するためのカッター駆動モーターを動作させて、感熱ロール紙に画像を記録し、画像を記録した感熱ロール紙を切断することにより紙片を発行する。
インターフェイス部36(I/F)は、制御部30の制御の下、ホストコンピューター10との間で通信規格に準拠した通信を行う。
記憶部35は、EEPROM等のメモリーを備え、各種データを書き換え可能に記憶する。記憶部35には、プリンター12の動作を制御するためのファームウェア41が記憶されるほか、言語データ46が記憶されている。言語データ46については、後述する。
On the other hand, the
As shown in FIG. 1, the
The
The
The
The
The print engine 33 monitors the detection values of various sensors under the control of the
The interface unit 36 (I / F) performs communication based on the communication standard with the
The
次に、記録システム1のホストコンピューター10と、プリンター12とが協働して感熱ロール紙に画像を記録する際の動作について説明する。
まず、ホストコンピューター10のホスト側制御部15のプリンタードライバー実行部21は、ホストコンピューター10に予めインストールされたプリンタードライバーを読み出して実行することにより、プリンター12のコマンド体系に準拠した制御コマンドであって、プリンター12に画像の記録に係る各種動作を実行させるための制御コマンドを生成し、プリンター12に送信する。
当該制御コマンドを受信したプリンター12の基本制御部30aは、制御コマンドに含まれるコマンドを順次、読み出して実行することにより、プリントエンジン33を制御して、感熱ロール紙への画像の記録に係る一連の処理を実行する。
Next, the operation when the
First, the printer
The
次に、従来のプリンターが、感熱ロール紙に「文字」を記録する際の動作を簡単に説明し、従来の課題を明確にした後、本実施形態に係るプリンター12が文字を記録する際の動作を説明する。
なお、本実施形態において、「文字」とは、後述する文字パターンデータに基づいて記録可能な画像の全てを含む概念である。
Next, the operation when the conventional printer records “characters” on the thermal roll paper will be briefly described, and after clarifying the conventional problems, the
In the present embodiment, “character” is a concept including all images that can be recorded based on character pattern data described later.
まず、従来のプリンターの動作を説明する。
図2は、従来のプリンターの動作を説明するため、言語データQ1と、ファームウェアQ2との関係を、模式的に示す図である。図2では、説明の便宜のため、プログラムを概念的に表した図形、及び、プログラムの機能を概念的に表した図形を、同一図面上に表示している。さらに、図2では、説明の便宜のため、各種バッファーを表す図形を、ファームウェアを表す図形の内部に表示している。
言語データQ1は、ファームウェアQ2に読み出し可能なデータであり、従来のプリンターの記憶部に記憶されている。
図2に示すように、言語データQ1は、ヘッダーデータQ3と、文字パターンデータテーブルQ4と、を含んで構成されている。
文字パターンデータテーブルQ4とは、ある特定の言語の文字のそれぞれの文字パターンデータ(いわゆるフォントデータ)を集合的に記憶するテーブルのことである。文字パターンデータとは、文字を感熱ロール紙に記録可能な態様で表現する実データ(ビットマップデータや、スケイラブルフォントデータ等)のことである。
以下の説明では、特定の言語(文字パターンデータテーブルQ4の言語)のことを、「搭載言語」という。
また、図2の例では、搭載言語が、「中国語」であるものとする。
ヘッダーデータQ3とは、文字パターンデータテーブルQ4のフォント名や、各文字パターンデータのサイズ、各文字パターンデータの縦、横のドット数等、文字パターンデータテーブルQ4に関連する情報を保持するデータである。なお、フォント名は、言語ごとに異なっており、フォント名を参照することにより、文字パターンデータテーブルQ4に対応する搭載言語が何であるかが一意に定まる。
First, the operation of a conventional printer will be described.
FIG. 2 is a diagram schematically showing the relationship between the language data Q1 and the firmware Q2 in order to explain the operation of the conventional printer. In FIG. 2, for convenience of explanation, a figure conceptually representing the program and a figure conceptually representing the function of the program are displayed on the same drawing. Further, in FIG. 2, for convenience of explanation, graphics representing various buffers are displayed inside graphics representing firmware.
The language data Q1 is data that can be read by the firmware Q2, and is stored in the storage unit of the conventional printer.
As shown in FIG. 2, the language data Q1 includes header data Q3 and a character pattern data table Q4.
The character pattern data table Q4 is a table that collectively stores character pattern data (so-called font data) of characters in a specific language. The character pattern data is actual data (bitmap data, scalable font data, etc.) that expresses characters in a form that can be recorded on thermal roll paper.
In the following description, a specific language (the language of the character pattern data table Q4) is referred to as “installed language”.
Further, in the example of FIG. 2, it is assumed that the installed language is “Chinese”.
The header data Q3 is data that holds information related to the character pattern data table Q4, such as the font name of the character pattern data table Q4, the size of each character pattern data, and the number of vertical and horizontal dots of each character pattern data. is there. Note that the font name is different for each language, and by referring to the font name, it is uniquely determined what the installed language corresponds to the character pattern data table Q4.
図2に示すように、従来のプリンターに係るファームウェアQ2には、日本語用サブルーチンQ5、中国語用サブルーチンQ6、及び、韓国語用サブルーチンQ7の3つのサブルーチンが実装されている。これらサブルーチンの機能については後述するが、ファームウェアQ2では、これら3つのサブルーチンのうち、1つのサブルーチンが選択的に実行可能な構成となっている。
そして、従来のプリンターでは、まず、ファームウェアQ2の搭載言語識別機能Q8により、上記3つのサブルーチンのうち、1つのサブルーチンが、実行されるサブルーチンとして選択される。詳述すると、ファームウェアQ2の実行部は、搭載言語識別機能Q8により、言語データQ1のヘッダーデータQ3を参照し、搭載言語を特定する。そして、ファームウェアQ2の実行部は、特定した搭載言語に対応するサブルーチンを、上記3つのサブルーチンのうち排他的に実行するサブルーチンとして選択する。すなわち、ファームウェアQ2の実行部は、特定した搭載言語が日本語である場合は日本語用サブルーチンQ5を、中国語である場合は中国語用サブルーチンQ6を、韓国語である場合は韓国語用サブルーチンQ7を、選択する。本例では、ファームウェアQ2の実行部は、中国語用サブルーチンQ6を選択する。
この選択は、文字の記録を行う前の適切なタイミングで実行される。
As shown in FIG. 2, the firmware Q2 related to the conventional printer has three subroutines, a Japanese subroutine Q5, a Chinese subroutine Q6, and a Korean subroutine Q7. The functions of these subroutines will be described later. In the firmware Q2, one of the three subroutines can be selectively executed.
In the conventional printer, first, one of the three subroutines is selected as a subroutine to be executed by the installed language identification function Q8 of the firmware Q2. More specifically, the execution unit of the firmware Q2 refers to the header data Q3 of the language data Q1 by the installed language identification function Q8, and identifies the installed language. Then, the execution unit of the firmware Q2 selects a subroutine corresponding to the specified installed language as a subroutine to be executed exclusively among the three subroutines. That is, the execution unit of the firmware Q2 executes the Japanese subroutine Q5 if the specified installed language is Japanese, the Chinese subroutine Q6 if it is Chinese, and the Korean subroutine if it is Korean. Q7 is selected. In this example, the execution unit of the firmware Q2 selects the Chinese subroutine Q6.
This selection is executed at an appropriate timing before character recording.
そして、「文字」の記録を行う場合、まず、ホストコンピューター10から文字の記録を指示する制御コマンド(以下、「文字記録指示コマンド」という。)が入力され、受信バッファーQ9に格納される。この文字記録指示コマンドでは、記録すべき文字の文字コード(アスキーコードやUnicode等)が特定されている。文字記録指示コマンドに含まれる文字コードの文字の言語は、搭載言語と一致する言語とされている。
次いで、ファームウェアQ2の実行部は、事前に選択したサブルーチン(本例では、中国語用サブルーチンQ6)の機能により、受信バッファーQ9に格納された文字記録指示コマンドを読み出す。次いで、ファームウェアQ2の実行部は、中国語用サブルーチンQ6の機能により、言語データQ1の文字パターンデータテーブルQ4を参照し、文字パターンデータテーブルQ4に格納された文字パターンデータのうち、文字記録指示コマンドに含まれる文字コードに対応する文字パターンデータを特定する。文字コードと、文字パターンデータとを対応付けする情報が事前に記憶部に記憶されており、又は、ファームウェアQ2上に定義されており、文字コードに基づく文字パターンデータの特定は、当該情報に基づいて行われる。
When recording “characters”, first, a control command for instructing character recording (hereinafter referred to as “character recording instruction command”) is input from the
Next, the execution unit of the firmware Q2 reads the character recording instruction command stored in the reception buffer Q9 by the function of the subroutine selected in advance (subroutine Q6 for Chinese in this example). Next, the execution unit of the firmware Q2 refers to the character pattern data table Q4 of the language data Q1 by the function of the Chinese subroutine Q6, and among the character pattern data stored in the character pattern data table Q4, the character recording instruction command The character pattern data corresponding to the character code included in is specified. Information that associates the character code with the character pattern data is stored in advance in the storage unit or is defined on the firmware Q2, and the character pattern data based on the character code is specified based on the information. Done.
次いで、ファームウェアQ2の実行部は、特定した文字パターンデータに対して、搭載言語(本例では中国語)に対応する画像処理を施した上で、バッファーQ11に展開する。
ここで、言語ごとに、文字パターンデータをバッファーQ11に展開する際に施すべき画像処理は異なっている。例えば、タイ語は、条件に応じて様々な記号を様々な態様で組み合わせることによって1つの文字を表す場合があるため、文字パターンデータをバッファーQ11に展開する場合は、このような場合に対応する画像処理を施した上で、展開する必要がある。
搭載言語に対応する画像処理を施した文字パターンデータをバッファーQ11に展開した後、ファームウェアQ2の実行部は、ファームウェアQ2に実装された画像記録制御機能Q10により、バッファーQ11に展開した文字パターンデータに基づいて、プリントエンジン33を制御して、感熱ロール紙への文字の記録を実行する。
Next, the execution unit of the firmware Q2 performs image processing corresponding to the installed language (Chinese in this example) on the specified character pattern data, and develops the data in the buffer Q11.
Here, the image processing to be performed when the character pattern data is expanded in the buffer Q11 is different for each language. For example, Thai may represent a single character by combining various symbols in various forms according to conditions, and this is the case when character pattern data is expanded in the buffer Q11. It is necessary to develop after image processing.
After the character pattern data subjected to image processing corresponding to the installed language is expanded in the buffer Q11, the execution unit of the firmware Q2 converts the character pattern data expanded in the buffer Q11 by the image recording control function Q10 installed in the firmware Q2. Based on this, the print engine 33 is controlled to record characters on the thermal roll paper.
以上のような従来のプリンターでは、以下のような課題があった。
すなわち、搭載言語に、新たに、インド語を追加する場合を考える。この場合、上述したように、言語ごとに、文字パターンデータをバッファー30bに展開する際に施すべき画像処理は異なっているため、ファームウェアQ2をプログラム修正し、ファームウェアQ2にインド語に対応する画像処理を施す機能を有する専用のサブルーチンを実装させる必要がある。しかしながら、ファームウェアQ2は、プリンター12の基本動作を制御するためのプログラムであり、比較的複雑なプログラミングがされており、また、プログラム修正が、プリンター12の以後の動作に多大な悪影響を与えることがある。このため、ファームウェアQ2に対する改変は、できるだけ行いたくないとするニーズがあった。
以上を踏まえ、本実施形態に係るプリンター12は、以下の構成の下、以下の処理を行い、ファームウェア41に対する改変(プログラム修正等)を行うことなく、新たに搭載言語を追加できる構成となっている。
The conventional printer as described above has the following problems.
That is, consider a case where Indian language is newly added to the installed language. In this case, as described above, the image processing to be performed when the character pattern data is expanded in the
Based on the above, the
図3は、本実施形態に係るプリンター12の動作を説明するため、言語データ46と、ファームウェア41との関係を、説明の便宜を考慮して、模式的に示す図である。
なお、以下では、プリンター12に、搭載言語として、新たに、インド語を追加し、プリンター12により、インド語の文字を記録する場合を例として説明する。
本実施形態に係るプリンター12において、搭載言語として、新たに、インド語を追加する場合、インド語用の言語データ46が、開発者等により作成され、ファームウェア41により参照可能な態様で、記憶部35に記憶される。つまり、搭載言語として新たな言語を追加する場合は、開発者等は、ファームウェア41のプログラム修正や、新たなファームウェアの開発に代えて、当該新たな言語の言語データ46を作成する。
図3に示すように、言語データ46は、プロファイル情報データ50と、言語対応プログラム51と、文字パターンデータテーブル52と、を含んで構成されている。
文字パターンデータテーブル52は、図2の文字パターンデータテーブルQ4と同様のテーブルであり、インド語の各文字の文字パターンデータを集合的に記憶している。
FIG. 3 is a diagram schematically showing the relationship between the
In the following description, an example in which Indian language is newly added to the
In the
As shown in FIG. 3, the
The character pattern data table 52 is a table similar to the character pattern data table Q4 of FIG. 2, and collectively stores character pattern data of each Indian character.
図4は、プロファイル情報データ50のデータ構造を模式的に示す図である。
図4に示すように、プロファイル情報データ50は、情報として、文字パターンデータテーブル52に格納された文字パターンデータのフォント名と、各文字パターンデータのデータサイズ(文字パターンデータサイズ)と、各文字パターンデータの縦、横のドット数(フォントの幅/高さ)と、保持している。
上述したように、フォント名は、言語ごとに異なっており、フォント名を参照することにより、文字パターンデータテーブル52の言語が何であるかが一意に定まる。
さらに、プロファイル情報データ50は、情報として、後述する言語対応プログラム51について、記憶部35において当該プログラムが記憶されている記憶領域の先頭アドレス(言語対応プログラムの先頭アドレス)と、当該プログラムのサイズ(言語対応プログラムのサイズ)と、を保持している。
先頭アドレスと、サイズとの組み合わせにより、言語対応プログラムの格納されている記憶領域の特定が可能である。
さらに、プロファイル情報データ50は、情報として、文字パターンデータテーブル52の各文字パターンに対応する文字の文字コードが属する、文字コードの範囲(文字コード範囲)を保持している。
FIG. 4 is a diagram schematically showing the data structure of the
As shown in FIG. 4, the
As described above, the font name is different for each language, and the language of the character pattern data table 52 is uniquely determined by referring to the font name.
Further, the
The storage area where the language-compatible program is stored can be specified by the combination of the start address and the size.
Further, the
言語対応プログラム51とは、文字パターンデータテーブル52の言語(本例では、インド語)の文字について、当該文字の記録を指示する文字記録指示コマンドに基づいて、当該文字の文字パターンデータを特定し、特定した文字パターンデータに当該言語に対応する画像処理を施して、バッファー30bに展開する、という一連の処理を実行させる機能(上述したサブルーチンの機能に対応する機能)を有するプログラムである。
The
さて、以上のようなインド語用の言語データ46が記憶されていることを前提として、本実施形態に係るプリンター12は、電源投入時、又は、リセット時に以下の処理を行う。
図5は、上記動作を示すフローチャートである。
以下の説明において、基本制御部30aの機能は、CPUがファームウェアを読み出して実行することにより、すなわち、ハードウェアとソフトウェアとの協働により、実現される。
図5を参照し、プリンター12の制御部30の基本制御部30aは、電源が投入されたか、又は、リセットが指示されたか否かを監視する(ステップSA1)。リセットとは、プリンター12の電源がオンの状態のときに、電源がオンの状態を維持しつつ、プリンター12を再び始動の状態に戻すことを言い、本実施形態では、ホストコンピューター10からリセットを指示するコマンドが入力されることにより、リセットに係る処理が開始される。このリセット後は、電源投入後と同様の処理が行われる。
電源が投入され、又は、リセットが指示された場合(ステップSA1:YES)、基本制御部30aは、指定された言語の言語データ46を参照する(ステップSA2)。ここで、本実施形態では、記憶部35に、複数の異なる言語の言語データ46を記憶することが可能となっており、ユーザーは、ステップSA2において参照すべき言語データ46を予め指定できる構成となっている。ユーザーは、所定の手段により、搭載言語(プリンター12によって記録させる文字の言語)を予め指定する。
言語データ46を参照後、基本制御部30aは、言語データ46のプロファイル情報データ50を参照し、記憶部35において言語対応プログラム51が記憶されている記憶領域を特定する(ステップSA3)。
次いで、基本制御部30aは、特定した記憶領域から言語対応プログラム51を取得し、取得した言語対応プログラム51に対し、コンパイル、その他の必要な処理を施して、ファームウェア41によって呼び出し可能な態様で、主記憶にロードする(ステップSA4)。
このように、本実施形態では、電源が投入される度に、又は、リセットされる度に、指定された言語の言語データ46が参照され、言語データ46に含まれる言語対応プログラム51が、ファームウェア41に呼び出し可能な態様でロードされる。このため、新たに追加する搭載言語(本例では、インド語)について、当該搭載言語の文字パターンデータを処理する専用の機能を有するサブルーチンをファームウェアに追加することなく、当該機能を実装することが可能となる。換言すれば、本実施形態では、ファームウェアへの改変を行うこと無く、新たに追加する搭載言語の文字パターンデータを処理する機能をプリンター12に実装させることができる。
Now, on the assumption that the
FIG. 5 is a flowchart showing the above operation.
In the following description, the function of the
Referring to FIG. 5, the
When the power is turned on or reset is instructed (step SA1: YES), the
After referring to the
Next, the
As described above, in the present embodiment, the
次に、図3を用いて、文字を記録する際の、本実施形態に係るプリンター12の動作について説明する。
「文字」の記録を行う場合、まず、ホストコンピューター10から文字の記録を指示する文字記録指示コマンドが入力され、受信バッファー60に格納される。この文字記録指示コマンドでは、記録すべき文字の文字コードが特定されている。また、文字記録指示コマンドに含まれる文字コードの文字の言語は、ステップSA2で参照された言語データ46の文字パターンデータテーブル52の言語と一致する言語とされている。
次いで、基本制御部30aは、ロードした言語対応プログラム51の機能により、受信バッファー60に格納された文字記録指示コマンドを読み出す。なお、受信バッファー60から、ロードした言語対応プログラム51へのデータの受け渡しは、当該受け渡しに係る機能を有するAPI(Application Program Interface)関数である入力側共通API関数61の機能を利用して行われる。
次いで、基本制御部30aは、ロードした言語対応プログラム51の機能により、言語データ46の文字パターンデータテーブル52を参照し、文字パターンデータテーブル52に格納された文字パターンデータのうち、文字記録指示コマンドに含まれる文字コードに対応する文字パターンデータを特定する。
ロードした言語対応プログラム51と、文字パターンデータテーブル52とのデータの受け渡しは、当該受け渡しに係る機能を有するAPI関数である出力側共通API関数62の機能により行われる。特に、この出力側共通API関数62は、搭載言語に応じた処理を行う構成となっている。例えば、言語によっては、1つの文字コードについて、複数の文字パターンデータを特定する必要がある場合があるが、出力側共通API関数62は、対応する全ての文字パターンデータの特定が完了したか否かを判別する機能を有している。出力側共通API関数62のこのような機能を、言語対応プログラム51に実装してもよいことは勿論である。
Next, the operation of the
When recording “character”, first, a character recording instruction command for instructing character recording is input from the
Next, the
Next, the
Data transfer between the loaded
次いで、基本制御部30aは、ロードした言語対応プログラム51の機能により、特定した文字パターンデータに対して、搭載言語に対応した画像処理を施し、バッファー30bに展開する。
次いで、基本制御部30aは、ファームウェア41に実装された画像記録制御機能63により、バッファー30bに展開した文字パターンデータに基づいて、プリントエンジン33を制御して、感熱ロール紙への文字の記録を実行する。
Next, the
Next, the
以上説明したように、本実施形態では、記憶部35に記憶された言語データ46は、搭載言語(所定の言語)の文字パターンデータを含んで構成された文字パターンデータテーブル52と、当該搭載言語の文字パターンデータに基づく感熱ロール紙への記録に係る処理を行わせる言語対応プログラム51と、を含んで構成されている。そして、基本制御部30aは、搭載言語の所定の文字の記録に際し、当該搭載言語に対応する言語データ46に含まれる言語対応プログラム51を、ファームウェア41(基本制御プログラム)により呼び出し可能な態様でロードし、ロードした言語対応プログラム51の機能により、言語データ46に含まれる文字パターンデータに基づく感熱ロール紙への記録に係る処理を実行する。
この構成によれば、ファームウェア41とは独立した言語データ46に、言語対応プログラム51が含まれており、プリンター12は、搭載言語の文字を記録する際は、当該言語対応プログラム51をロードし、当該プログラムの機能により、当該搭載言語の文字を記録する。このため、プリンター12について、新たに、搭載言語の文字パターンに基づく文字の記録を行えるようにする場合は、ファームウェア41を改変するのではなく、当該搭載言語の文字パターンデータと、当該搭載言語に対応する言語対応プログラム51を含んで構成される言語データ46を、ファームウェア41により参照可能な態様で記憶部35に記憶すればよい。つまり、プリンター12について、ファームウェア41に対する改変を行うことなく、新たに、搭載言語の文字パターンデータに基づく文字の記録を行えるようにすることができる。
As described above, in the present embodiment, the
According to this configuration, the
また、本実施形態では、言語対応プログラム51は、搭載言語の所定の文字の記録に際し、言語データ46に含まれる当該所定の文字の文字パターンデータについて、当該所定の言語に対応した画像処理を施した上で、文字パターンデータ展開用のバッファー30bに展開する機能を有する。
この構成によれば、ロードした言語対応プログラム51の機能により、言語に応じた文字パターンへの画像処理を適切に行うことが可能となり、また、従来のように、プリンター12が新たに搭載言語の文字を記録できるようにする際に、当該所定の言語に対応した画像処理を行うことができるようファームウェア41を改変する必要がない。
In the present embodiment, the
According to this configuration, the function of the loaded language-
また、本実施形態では、基本制御部30aは、電源投入時、又は、リセット時に、言語対応プログラム51のロードを行う。
この構成によれば、電源投入時、又は、リセット時に言語対応プログラム51のロードが行われるため、プリンター12が感熱ロール紙への記録を行える状態の間、言語対応プログラム51の機能を利用した所定の言語の文字の記録を可能な状態とすることができる。
In the present embodiment, the
According to this configuration, since the
なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、搭載言語として採用可能な言語は、上記実施形態で挙げたものに限らず、全ての言語(例えば、英語)を採用可能である。
また、図1に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
また例えば、プリンター12の制御部30の機能を、プリンター12に外部接続される別の装置に持たせるようにしてもよい。
また、外部接続される記憶媒体に記憶させたプログラムを実行することにより、図3、5を用いて説明した動作を実行するようにしてもよい。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
For example, the languages that can be adopted as the installed language are not limited to those described in the above embodiment, and any language (for example, English) can be adopted.
Each functional block shown in FIG. 1 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration.
Further, for example, the function of the
Further, the operation described with reference to FIGS. 3 and 5 may be executed by executing a program stored in an externally connected storage medium.
1…記録システム、10…ホストコンピューター、12…プリンター(記録装置)、30…制御部、30a…基本制御部、30b…バッファー、35…記憶部、41…ファームウェア(基本制御プログラム)、46…言語データ。 DESCRIPTION OF SYMBOLS 1 ... Recording system, 10 ... Host computer, 12 ... Printer (recording apparatus), 30 ... Control part, 30a ... Basic control part, 30b ... Buffer, 35 ... Storage part, 41 ... Firmware (basic control program), 46 ... Language data.
Claims (5)
基本制御プログラムにより参照可能な言語データを記憶する記憶部と、
前記基本制御プログラムを実行することによって各部を制御する基本制御部と、を備え、
前記言語データは、
所定の言語の文字パターンデータと、当該所定の言語の文字パターンデータに基づいて当該所定の言語に対応した前記記録媒体への記録に係る処理を行わせる言語対応プログラムと、を含んで構成され、
前記基本制御部は、
所定の言語の所定の文字の記録に際し、当該所定の言語に対応する前記言語データに含まれる前記言語対応プログラムを、前記基本制御プログラムにより呼び出し可能な態様でロードし、ロードした前記言語対応プログラムの機能により、前記言語データに含まれる前記文字パターンデータに基づく前記記録媒体への記録に係る処理を実行することを特徴とする記録装置。 A recording device for recording on a recording medium,
A storage unit for storing language data that can be referred to by the basic control program;
A basic control unit that controls each unit by executing the basic control program,
The language data is
Comprising a character pattern data of a predetermined language, and a language-corresponding program for performing processing related to recording on the recording medium corresponding to the predetermined language based on the character pattern data of the predetermined language,
The basic control unit
When recording a predetermined character in a predetermined language, the language-corresponding program included in the language data corresponding to the predetermined language is loaded in a manner that can be called by the basic control program, and the loaded language-corresponding program A recording apparatus that executes processing related to recording on the recording medium based on the character pattern data included in the language data by a function.
所定の言語の所定の文字の記録に際し、前記言語データに含まれる当該所定の文字の前記文字パターンデータについて、当該所定の言語に対応した画像処理を施し、前記文字パターンデータの展開用のバッファーに展開させる機能を有することを特徴とする請求項1に記載の記録装置。 The language-compatible program is:
When recording a predetermined character in a predetermined language, image processing corresponding to the predetermined language is performed on the character pattern data of the predetermined character included in the language data, and the character pattern data is expanded in a buffer. The recording apparatus according to claim 1, wherein the recording apparatus has a function of expanding.
電源投入時、又は、リセット時に、前記言語対応プログラムのロードを行うことを特徴とする請求項1又は2に記載の記録装置。 The basic control unit
The recording apparatus according to claim 1, wherein the language-compatible program is loaded when power is turned on or reset.
所定の言語の所定の文字の記録に際し、当該所定の言語に対応する前記言語データに含まれる前記言語対応プログラムを、前記基本制御プログラムにより呼び出し可能な態様でロードし、ロードした前記言語対応プログラムの機能により、前記言語データに含まれる前記文字パターンデータに基づく前記記録媒体への記録に係る処理を実行することを特徴とする記録装置の制御方法。 Language support that can be referred to by the basic control program, and that performs processing related to recording on the recording medium corresponding to the predetermined language based on the character pattern data of the predetermined language and the character pattern data of the predetermined language A method for controlling a recording apparatus including a storage unit that stores language data including a program,
When recording a predetermined character in a predetermined language, the language-corresponding program included in the language data corresponding to the predetermined language is loaded in a manner that can be called by the basic control program, and the loaded language-corresponding program A method for controlling a recording apparatus, comprising: performing a process related to recording on the recording medium based on the character pattern data included in the language data by a function.
前記制御部を、
前記基本制御プログラムを実行することによって各部を制御し、所定の言語の所定の文字の記録に際し、当該所定の言語に対応する前記言語データに含まれる前記言語対応プログラムを、前記基本制御プログラムにより呼び出し可能な態様でロードし、ロードした前記言語対応プログラムの機能により、前記言語データに含まれる前記文字パターンデータに基づく前記記録媒体への記録に係る処理を実行する基本制御部として機能させることを特徴とするプログラム。 Language support that can be referred to by the basic control program, and that performs processing related to recording on the recording medium corresponding to the predetermined language based on the character pattern data of the predetermined language and the character pattern data of the predetermined language A program that can be executed by a control unit that controls a recording apparatus including a storage unit that stores language data including the program,
The control unit
Each unit is controlled by executing the basic control program, and when recording a predetermined character of a predetermined language, the language control program included in the language data corresponding to the predetermined language is called by the basic control program It is loaded in a possible manner, and the function of the loaded language-compatible program is caused to function as a basic control unit that executes processing related to recording on the recording medium based on the character pattern data included in the language data. Program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012007084A JP2013146865A (en) | 2012-01-17 | 2012-01-17 | Recording device, method for controlling recording device, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012007084A JP2013146865A (en) | 2012-01-17 | 2012-01-17 | Recording device, method for controlling recording device, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013146865A true JP2013146865A (en) | 2013-08-01 |
Family
ID=49044904
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012007084A Pending JP2013146865A (en) | 2012-01-17 | 2012-01-17 | Recording device, method for controlling recording device, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013146865A (en) |
-
2012
- 2012-01-17 JP JP2012007084A patent/JP2013146865A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4785578B2 (en) | Information processing apparatus and method | |
JP5810609B2 (en) | RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM | |
US11659130B2 (en) | Information processing apparatus having multiple display regions, control method, and storage medium | |
JP2012232458A (en) | Recording device, method of controlling the same, and program | |
JP6648958B2 (en) | Device control program, device control method, and device control device | |
JP6064715B2 (en) | Print control program, print control apparatus, and print control method | |
JP5387360B2 (en) | Information processing method, program thereof, and information processing apparatus | |
JP5862045B2 (en) | RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM | |
JP2013146865A (en) | Recording device, method for controlling recording device, and program | |
JP2012216106A (en) | Recording controller, recording system, recording control method and program | |
KR100633104B1 (en) | Printing method for saving print option | |
JP5569028B2 (en) | Display control apparatus, display control method, and program | |
JP2006154954A (en) | Information processor and its control method, and program | |
JP2012123704A (en) | Control apparatus, control method of control apparatus, and program | |
US20190311234A1 (en) | Information processing apparatus, method, and storage medium | |
JP2001060196A (en) | Image processor | |
JP5891610B2 (en) | RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND IMAGE CORRECTION PROGRAM | |
JP2006209512A (en) | Information processor | |
JP5987389B2 (en) | RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM | |
JP2019104200A (en) | Printer device | |
JP2006023605A (en) | Image display apparatus and image display method | |
JP2008269260A (en) | Data processor, data processing method and program | |
JP2006228103A (en) | Information processor | |
JP5987415B2 (en) | RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM | |
JP2013114292A (en) | Control device, control method of the same and program |