JP2013146865A - Recording device, method for controlling recording device, and program - Google Patents

Recording device, method for controlling recording device, and program Download PDF

Info

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
Application number
JP2012007084A
Other languages
Japanese (ja)
Inventor
Shingo Todaka
伸悟 戸▲高▼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2012007084A priority Critical patent/JP2013146865A/en
Publication of JP2013146865A publication Critical patent/JP2013146865A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To newly record a character based on character pattern data of a predetermined language without performing modification to a basic control program, in relation to a recording device for performing recording based on the character pattern data.SOLUTION: A printer 12 includes: a storage part 35 for storing language data 46 constituted by including character pattern data of a predetermined language, and a language-compatible program for performing a process related to recording on a recording medium corresponding to the predetermined language based on the character pattern data of the predetermined language; and a basic control part 30a for loading the language-compatible program included in the language data 46 corresponding to the predetermined language in a form callable by firmware 41 in recording a predetermined character of the predetermined language, and executing a process related to recording on the recording medium based on the character pattern data included in the language data 46 by a function of the loaded language-compatible program.

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.

特開平08−034142号公報Japanese Patent Laid-Open No. 08-034142

ところで、文字パターンデータに基づく文字の記録に際して行われる処理は、言語によって異なっている場合がある。例えば、タイ語や、インド語では、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.

本実施形態に係る記録システムの機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the recording system which concerns on this embodiment. 従来のプリンターの言語データとファームウェアとの関係を示す図。The figure which shows the relationship between the language data and firmware of the conventional printer. プリンターの言語データとファームウェアとの関係を示す図である。FIG. 3 is a diagram illustrating a relationship between printer language data and firmware. プロファイル情報データのデータ構造を模式的に示す図である。It is a figure which shows typically the data structure of profile information data. プリンターの動作を示すフローチャートである。3 is a flowchart illustrating an operation of a printer.

以下、図面を参照して本発明の実施形態について説明する。
図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 host computer 10 and a printer 12, and records an image on a thermal roll paper as a recording medium by the printer 12 under the control of the host computer 10.

ホストコンピューター10は、ホスト側制御部15と、ホスト側表示部16と、ホスト側入力部17と、インターフェイス部18(I/F)と、ホスト側記憶部19と、を備える。
ホスト側制御部15は、ホストコンピューター10の各部を中枢的に制御するものであり、演算実行部としてのCPUや、このCPUに実行される基本制御プログラムや、この基本制御プログラムに係るデータ等を不揮発的に記憶するROM、CPUに実行されるプログラムやこのプログラムに係るデータ等を一時的に記憶するRAM、その他の周辺回路等を備える。
図1に示すように、ホスト側制御部15は、プリンタードライバー実行部21を備えているが、これについては後述する。
The host computer 10 includes a host-side control unit 15, a host-side display unit 16, a host-side input unit 17, an interface unit 18 (I / F), and a host-side storage unit 19.
The host-side control unit 15 centrally controls each unit of the host computer 10 and stores a CPU as a calculation execution unit, a basic control program executed by the CPU, data related to the basic control program, and the like. A ROM that stores data in a nonvolatile manner, a program that is executed by the CPU, a RAM that temporarily stores data related to the program, and other peripheral circuits are provided.
As shown in FIG. 1, the host-side control unit 15 includes a printer driver execution unit 21, which will be described later.

ホスト側表示部16は、液晶ディスプレーパネルや、有機ELパネル等の表示パネルを備え、ホスト側制御部15の制御の下、表示パネルに各種情報を表示する。
ホスト側入力部17は、キーボードや、マウス、バーコードリーダー、カードリーダー等の入力デバイスに接続され、これら入力デバイスに対する操作を検出し、ホスト側制御部15に出力する。
インターフェイス部18(I/F)は、ホスト側制御部15の制御の下、プリンター12との間で通信規格に準拠した通信を行う。
ホスト側記憶部19は、各種データを書き換え可能に記憶する部位であり、ハードディスクや、EEPROM等の記憶装置を備える。
The host side display unit 16 includes a display panel such as a liquid crystal display panel or an organic EL panel, and displays various information on the display panel under the control of the host side control unit 15.
The host side input unit 17 is connected to input devices such as a keyboard, a mouse, a barcode reader, and a card reader, detects operations on these input devices, and outputs them to the host side control unit 15.
The interface unit 18 (I / F) performs communication based on the communication standard with the printer 12 under the control of the host-side control unit 15.
The host-side storage unit 19 is a part that stores various data in a rewritable manner, and includes a storage device such as a hard disk or an EEPROM.

一方、プリンター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 printer 12 conveys the roll of heat-sensitive roll paper by a roller-shaped platen, and heats the recording surface of the heat-sensitive roll paper by a line thermal head equipped with a heating element to form an image. It is a thermal head type printer that issues a piece of paper by recording and then cutting the thermal roll paper at a predetermined position.
As shown in FIG. 1, the printer 12 includes a control unit 30, a display unit 31, an input unit 32, a print engine 33, a storage unit 35, and an interface unit 36 (I / F).
The control unit 30 centrally controls each unit of the printer 12 and controls a CPU as an arithmetic execution unit, firmware 41 (basic control program) executed by the CPU, data related to the firmware 41, and the like. A ROM that stores data in a nonvolatile manner, a program that is executed by the CPU, a RAM that temporarily stores data related to the program, and other peripheral circuits are provided. The control unit 30 is connected to a buffer 30b described later.
The control unit 30 includes a basic control unit 30a, which will be described later.
The display unit 31 includes a display panel such as a liquid crystal panel or an organic EL panel that displays various information such as the operation state of the printer 12, and an LED, and displays various information on the display panel under the control of the control unit 30. Or, the LED is turned on / off.
The input unit 32 is connected to various operation switches provided in the printer 12, detects an operation on the operation switch, and outputs it to the control unit 30 as an operation signal.
The print engine 33 monitors the detection values of various sensors under the control of the control unit 30 and, in addition to the above-described line thermal head, a transport motor for driving a platen roller for transporting the thermal roll paper, and a cutting mechanism. The cutter driving motor for driving the cutter included in the printer is operated to record an image on the thermal roll paper, and the thermal roll paper on which the image is recorded is cut to issue a piece of paper.
The interface unit 36 (I / F) performs communication based on the communication standard with the host computer 10 under the control of the control unit 30.
The storage unit 35 includes a memory such as an EEPROM and stores various data in a rewritable manner. The storage unit 35 stores firmware 41 for controlling the operation of the printer 12 and language data 46. The language data 46 will be described later.

次に、記録システム1のホストコンピューター10と、プリンター12とが協働して感熱ロール紙に画像を記録する際の動作について説明する。
まず、ホストコンピューター10のホスト側制御部15のプリンタードライバー実行部21は、ホストコンピューター10に予めインストールされたプリンタードライバーを読み出して実行することにより、プリンター12のコマンド体系に準拠した制御コマンドであって、プリンター12に画像の記録に係る各種動作を実行させるための制御コマンドを生成し、プリンター12に送信する。
当該制御コマンドを受信したプリンター12の基本制御部30aは、制御コマンドに含まれるコマンドを順次、読み出して実行することにより、プリントエンジン33を制御して、感熱ロール紙への画像の記録に係る一連の処理を実行する。
Next, the operation when the host computer 10 of the recording system 1 and the printer 12 cooperate to record an image on the thermal roll paper will be described.
First, the printer driver execution unit 21 of the host-side control unit 15 of the host computer 10 reads out and executes a printer driver preinstalled in the host computer 10, and is a control command that conforms to the command system of the printer 12. A control command for causing the printer 12 to execute various operations related to image recording is generated and transmitted to the printer 12.
The basic control unit 30a of the printer 12 that has received the control command sequentially reads out and executes the commands included in the control command, thereby controlling the print engine 33 to perform a series of operations related to recording an image on the thermal roll paper. Execute the process.

次に、従来のプリンターが、感熱ロール紙に「文字」を記録する際の動作を簡単に説明し、従来の課題を明確にした後、本実施形態に係るプリンター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 printer 12 according to the present embodiment will record the characters. The operation will be described.
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 host computer 10 and stored in the reception buffer Q9. In this character recording instruction command, the character code (ASCII code, Unicode, etc.) of the character to be recorded is specified. The language of the character code included in the character recording instruction command is a language that matches the installed language.
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 buffer 30b is different for each language. Therefore, the firmware Q2 is modified in the program, and the image processing corresponding to the Indian language is performed in the firmware Q2. It is necessary to implement a dedicated subroutine having the function of applying However, the firmware Q2 is a program for controlling the basic operation of the printer 12 and is relatively complicated programming, and the program modification may have a great adverse effect on the subsequent operation of the printer 12. is there. For this reason, there has been a need to change the firmware Q2 as little as possible.
Based on the above, the printer 12 according to the present embodiment has a configuration in which a new installed language can be added without changing the firmware 41 (program correction or the like) by performing the following processing under the following configuration. Yes.

図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 language data 46 and the firmware 41 in order to explain the operation of the printer 12 according to the present embodiment for convenience of explanation.
In the following description, an example in which Indian language is newly added to the printer 12 as an installed language and Indian characters are recorded by the printer 12 will be described as an example.
In the printer 12 according to the present embodiment, when a new Indian language is added as the installed language, the language data 46 for the Indian language is created by a developer or the like and can be referred to by the firmware 41 in the storage unit. 35. That is, when a new language is added as the installed language, the developer or the like creates language data 46 of the new language instead of modifying the firmware 41 or developing new firmware.
As shown in FIG. 3, the language data 46 includes profile information data 50, a language correspondence program 51, and a character pattern data table 52.
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 profile information data 50.
As shown in FIG. 4, the profile information data 50 includes, as information, a font name of character pattern data stored in the character pattern data table 52, a data size (character pattern data size) of each character pattern data, and each character. It holds the number of vertical and horizontal dots (font width / height) of the pattern data.
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 profile information data 50 includes, as information, a language corresponding program 51 to be described later, the start address of the storage area where the program is stored in the storage unit 35 (start address of the language support program), and the size of the program ( Language-compatible program size).
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 profile information data 50 holds, as information, a character code range (character code range) to which the character code of the character corresponding to each character pattern in the character pattern data table 52 belongs.

言語対応プログラム51とは、文字パターンデータテーブル52の言語(本例では、インド語)の文字について、当該文字の記録を指示する文字記録指示コマンドに基づいて、当該文字の文字パターンデータを特定し、特定した文字パターンデータに当該言語に対応する画像処理を施して、バッファー30bに展開する、という一連の処理を実行させる機能(上述したサブルーチンの機能に対応する機能)を有するプログラムである。   The language corresponding program 51 specifies the character pattern data of the character based on a character recording instruction command for instructing recording of the character of the language (in this example, Indian) in the character pattern data table 52. This is a program having a function (function corresponding to the function of the subroutine described above) for executing a series of processes of performing image processing corresponding to the language on the specified character pattern data and developing it in the buffer 30b.

さて、以上のようなインド語用の言語データ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 language data 46 for Indian as described above is stored, the printer 12 according to the present embodiment performs the following processing when the power is turned on or reset.
FIG. 5 is a flowchart showing the above operation.
In the following description, the function of the basic control unit 30a is realized by the CPU reading and executing the firmware, that is, by cooperation between hardware and software.
Referring to FIG. 5, the basic control unit 30a of the control unit 30 of the printer 12 monitors whether the power is turned on or a reset is instructed (step SA1). The term “reset” refers to returning the printer 12 to the start-up state again while maintaining the power-on state when the printer 12 is on. In this embodiment, the reset is performed from the host computer 10. When a command to instruct is input, processing related to reset is started. After this reset, the same processing as after power-on is performed.
When the power is turned on or reset is instructed (step SA1: YES), the basic control unit 30a refers to the language data 46 of the designated language (step SA2). Here, in this embodiment, it is possible to store a plurality of different language language data 46 in the storage unit 35, and the user can designate in advance the language data 46 to be referred to in step SA2. It has become. The user designates the installed language (the language of characters recorded by the printer 12) in advance by a predetermined means.
After referring to the language data 46, the basic control unit 30a refers to the profile information data 50 of the language data 46, and specifies a storage area in the storage unit 35 in which the language correspondence program 51 is stored (step SA3).
Next, the basic control unit 30a acquires the language-corresponding program 51 from the specified storage area, performs compilation and other necessary processing on the acquired language-corresponding program 51, and can be called by the firmware 41, Load to main memory (step SA4).
As described above, in the present embodiment, the language data 46 of the designated language is referred to every time the power is turned on or reset, and the language corresponding program 51 included in the language data 46 is stored in the firmware. 41 is loaded in a callable manner. For this reason, it is possible to implement a function for a newly added installed language (Indic in this example) without adding a subroutine having a dedicated function for processing character pattern data of the installed language to the firmware. It becomes possible. In other words, in this embodiment, the printer 12 can be mounted with a function for processing character pattern data of a new installed language without modifying the firmware.

次に、図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 printer 12 according to the present embodiment when recording characters will be described with reference to FIG.
When recording “character”, first, a character recording instruction command for instructing character recording is input from the host computer 10 and stored in the reception buffer 60. In this character recording instruction command, the character code of the character to be recorded is specified. Further, the language of the character code included in the character recording instruction command is a language that matches the language of the character pattern data table 52 of the language data 46 referred to in step SA2.
Next, the basic control unit 30 a reads out the character recording instruction command stored in the reception buffer 60 by the function of the loaded language support program 51. Note that data is transferred from the reception buffer 60 to the loaded language-compatible program 51 using the function of the input-side common API function 61 that is an API (Application Program Interface) function having a function related to the transfer. .
Next, the basic control unit 30a refers to the character pattern data table 52 of the language data 46 by the function of the loaded language corresponding program 51, and among the character pattern data stored in the character pattern data table 52, the character recording instruction command The character pattern data corresponding to the character code included in is specified.
Data transfer between the loaded language support program 51 and the character pattern data table 52 is performed by the function of the output side common API function 62 which is an API function having a function related to the transfer. In particular, the output-side common API function 62 is configured to perform processing according to the installed language. For example, depending on the language, it may be necessary to specify a plurality of character pattern data for one character code. The output-side common API function 62 determines whether or not all corresponding character pattern data has been specified. It has the function to discriminate. Of course, such a function of the output-side common API function 62 may be implemented in the language corresponding program 51.

次いで、基本制御部30aは、ロードした言語対応プログラム51の機能により、特定した文字パターンデータに対して、搭載言語に対応した画像処理を施し、バッファー30bに展開する。
次いで、基本制御部30aは、ファームウェア41に実装された画像記録制御機能63により、バッファー30bに展開した文字パターンデータに基づいて、プリントエンジン33を制御して、感熱ロール紙への文字の記録を実行する。
Next, the basic control unit 30a performs image processing corresponding to the mounted language on the specified character pattern data by the function of the loaded language support program 51, and develops it in the buffer 30b.
Next, the basic control unit 30a controls the print engine 33 based on the character pattern data developed in the buffer 30b by the image recording control function 63 implemented in the firmware 41, and records characters on the thermal roll paper. Run.

以上説明したように、本実施形態では、記憶部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 language data 46 stored in the storage unit 35 includes the character pattern data table 52 configured to include the character pattern data of the installed language (predetermined language), and the installed language. And a language corresponding program 51 for performing processing related to recording on the thermal roll paper based on the character pattern data. The basic control unit 30a loads the language correspondence program 51 included in the language data 46 corresponding to the installed language in a manner that can be called by the firmware 41 (basic control program) when recording predetermined characters of the installed language. Then, processing related to recording on the thermal roll paper based on the character pattern data included in the language data 46 is executed by the function of the loaded language corresponding program 51.
According to this configuration, the language support program 51 is included in the language data 46 independent of the firmware 41, and the printer 12 loads the language support program 51 when recording characters in the installed language, The characters of the installed language are recorded by the function of the program. Therefore, when the printer 12 can newly record characters based on the character pattern of the installed language, the firmware 41 is not modified, but the character pattern data of the installed language and the installed language are used. What is necessary is just to memorize | store the language data 46 comprised including the corresponding language corresponding | compatible program 51 in the memory | storage part 35 in the aspect which can be referred with the firmware 41. FIG. That is, the printer 12 can newly record characters based on the character pattern data of the installed language without modifying the firmware 41.

また、本実施形態では、言語対応プログラム51は、搭載言語の所定の文字の記録に際し、言語データ46に含まれる当該所定の文字の文字パターンデータについて、当該所定の言語に対応した画像処理を施した上で、文字パターンデータ展開用のバッファー30bに展開する機能を有する。
この構成によれば、ロードした言語対応プログラム51の機能により、言語に応じた文字パターンへの画像処理を適切に行うことが可能となり、また、従来のように、プリンター12が新たに搭載言語の文字を記録できるようにする際に、当該所定の言語に対応した画像処理を行うことができるようファームウェア41を改変する必要がない。
In the present embodiment, the language support program 51 performs image processing corresponding to the predetermined language on the character pattern data of the predetermined character included in the language data 46 when recording the predetermined character of the installed language. In addition, it has a function of developing in the buffer 30b for developing character pattern data.
According to this configuration, the function of the loaded language-compatible program 51 can appropriately perform image processing on a character pattern corresponding to the language, and the printer 12 can newly install an installed language as in the past. When the characters can be recorded, there is no need to modify the firmware 41 so that image processing corresponding to the predetermined language can be performed.

また、本実施形態では、基本制御部30aは、電源投入時、又は、リセット時に、言語対応プログラム51のロードを行う。
この構成によれば、電源投入時、又は、リセット時に言語対応プログラム51のロードが行われるため、プリンター12が感熱ロール紙への記録を行える状態の間、言語対応プログラム51の機能を利用した所定の言語の文字の記録を可能な状態とすることができる。
In the present embodiment, the basic control unit 30a loads the language support program 51 when the power is turned on or reset.
According to this configuration, since the language correspondence program 51 is loaded when the power is turned on or reset, the predetermined function using the function of the language correspondence program 51 is available while the printer 12 can record on the thermal roll paper. It is possible to record characters in other languages.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、搭載言語として採用可能な言語は、上記実施形態で挙げたものに限らず、全ての言語(例えば、英語)を採用可能である。
また、図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 control unit 30 of the printer 12 may be provided in another device externally connected to the printer 12.
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.
JP2012007084A 2012-01-17 2012-01-17 Recording device, method for controlling recording device, and program Pending JP2013146865A (en)

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)

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