JP3503586B2 - Printer, printer character conversion method, and computer-readable recording medium. - Google Patents

Printer, printer character conversion method, and computer-readable recording medium.

Info

Publication number
JP3503586B2
JP3503586B2 JP2000311012A JP2000311012A JP3503586B2 JP 3503586 B2 JP3503586 B2 JP 3503586B2 JP 2000311012 A JP2000311012 A JP 2000311012A JP 2000311012 A JP2000311012 A JP 2000311012A JP 3503586 B2 JP3503586 B2 JP 3503586B2
Authority
JP
Japan
Prior art keywords
character
character code
code
printer
combination
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.)
Expired - Fee Related
Application number
JP2000311012A
Other languages
Japanese (ja)
Other versions
JP2002116900A (en
Inventor
顕一郎 小川
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 JP2000311012A priority Critical patent/JP3503586B2/en
Publication of JP2002116900A publication Critical patent/JP2002116900A/en
Application granted granted Critical
Publication of JP3503586B2 publication Critical patent/JP3503586B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、プリンタの技術に
関し、特に、ホスト装置から送信された文字コードを、
文字テーブルを参照して所定の文字に変換するための技
術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer technology, and more particularly, to a character code transmitted from a host device.
The present invention relates to a technique for converting a given character by referring to a character table.

【従来技術】ホスト装置の表示画面に所望の文字を表示
する技術や、プリンタにて所望の文字を印字する技術に
おいては、ホスト装置やプリンタ内でこれらの文字を一
定のコードに置き換えて取り扱うことが行われている。
すなわち、ホスト装置やプリンタは、文字を文字の形
(イメージ)としてではなく、文字を一定の法則でコー
ド化された文字コードに置き換えて取り扱っている。
2. Description of the Related Art In a technique for displaying desired characters on a display screen of a host device or a technique for printing desired characters by a printer, it is necessary to replace these characters with a certain code in the host device or the printer. Is being done.
That is, the host device or the printer handles the character not as the character shape (image) but by replacing the character with a character code encoded according to a certain rule.

【0002】また、ホスト装置やプリンタは、文字と文
字コードとを1対1の関係で対応づけた文字テーブルを
有しており、ホスト装置で文字を表示したり、プリンタ
が文字を印字する場合には、この文字テーブルを参照し
て文字コードを文字に変換しているのである。
Further, the host device or printer has a character table in which characters and character codes are associated in a one-to-one relationship, and when the host device displays characters or the printer prints characters. The character code is converted into characters by referring to this character table.

【0003】従って、ホスト装置は、プリンタに対して
所定の文字の印字を指示する場合には、当該文字に対応
する文字コードをプリンタに送信する。そして、プリン
タは、文字テーブルを参照することにより、受信した文
字コードを所望する形の文字に変換し、変換された文字
を印字するのである。
Therefore, when instructing the printer to print a predetermined character, the host device transmits the character code corresponding to the character to the printer. Then, the printer converts the received character code into a character having a desired shape by referring to the character table, and prints the converted character.

【発明が解決しようとする課題】しかし、上記従来の技
術においては、文字テーブルを参照して、受信した文字
コードに対応する文字に変換し、変換後の文字を印字し
た場合であっても、その言語において正しい表記ではな
い場合があるといった問題があった。
However, in the above conventional technique, even when the character table is referred to, the character corresponding to the received character code is converted, and the converted character is printed, There was a problem that it might not be the correct notation in that language.

【0004】近年、プリンタにて利用される文字コード
や文字テーブルの種類は増加している。コンピュータが
世界に普及するにつれ、各国の言語に合わせた文字コー
ドや文字テーブルが開発され採用されているからであ
る。すなわち、プリンタがより多くの国で使用されるた
めには、当該プリンタが使用される国の言語に対応する
文字テーブルが開発され、プリンタがこれらの文字テー
ブルを有することが望ましい。これにより、プリンタ
は、ホスト装置から送信される文字コードに基づいて、
当該文字コードをその国の文字に変換し印字することが
可能になるからである。
In recent years, the types of character codes and character tables used in printers are increasing. This is because with the spread of computers in the world, character codes and character tables adapted to the languages of each country have been developed and adopted. That is, in order for the printer to be used in more countries, it is desirable that the character tables corresponding to the languages of the countries in which the printer is used are developed and the printer has these character tables. As a result, the printer, based on the character code sent from the host device,
This is because it is possible to convert the character code into the character of the country and print it.

【0005】ここで、上記従来の技術によれば、文字と
文字コードとの関係は、1対1に対応づけられており、
文字テーブルには、当該対応関係に基づいて文字と文字
コードとが定義されている。そして、プリンタは、ホス
ト装置から文字コードを受信すると、この文字コードを
順番に文字に変換し、これを印字するように構成されて
いる。
Here, according to the above-mentioned conventional technique, the relationship between the character and the character code is made to correspond one to one,
In the character table, characters and character codes are defined based on the correspondence. When the printer receives the character code from the host device, the printer converts the character code into characters in order and prints the characters.

【0006】しかし、多種多様な言語のなかには、文字
の前後の組み合わせによって、個々の文字の表記が変わ
る場合がある。すなわち、文字の前後の組み合わせによ
って、指定された文字コードに対応する文字が正しい表
記である場合と、指定された文字コードに対応する文字
が正しい表記ではない場合とがあるのである。
However, in a wide variety of languages, the notation of individual characters may change depending on the combination before and after the characters. That is, depending on the combination before and after the character, there are cases where the character corresponding to the specified character code is in the correct notation and cases where the character corresponding to the specified character code is not the correct notation.

【0007】例えば、複数の要素からなるタイ語のよう
な言語においては、指定された文字コードを対応する文
字に変換し、この変換後の文字をそのまま印字すると、
文字の組合せによっては、正しい文字表記でない場合が
あるのである。
For example, in a language such as Thai consisting of a plurality of elements, a specified character code is converted into a corresponding character, and the converted character is printed as it is.
Depending on the combination of characters, it may not be the correct character notation.

【0008】文字の印字が製品価値として非常に重要で
あるプリンタにおいて、文字表記として正しくない文字
を印字してしまうことは深刻な問題である。そこで、本
発明は、多種多様な言語に対応するプリンタにおいて、
正しい文字を印字できるようにすることを課題としてい
る。
In a printer in which the printing of characters is very important as a product value, it is a serious problem to print an incorrect character as a character notation. Therefore, the present invention provides a printer that supports a wide variety of languages,
The challenge is to be able to print correct characters.

【0009】すなわち、本発明の課題は、文字コードを
文字に変換する際に、所定の文字の組合せを考慮して、
変換すべき文字を選択することができるプリンタを提供
することにある。
That is, an object of the present invention is to consider a predetermined combination of characters when converting a character code into characters,
It is to provide a printer capable of selecting characters to be converted.

【課題を解決するための手段】本発明の要旨は、プリン
タが受信した文字コードを文字データに変換する際に、
文字コードの組合せに基づいて、変換すべき文字データ
を選択できるようにすることである。
SUMMARY OF THE INVENTION The gist of the present invention is to convert a character code received by a printer into character data.
That is, the character data to be converted can be selected based on the combination of the character codes.

【0010】より具体的には、上記課題を解決するため
の本発明に係るプリンタは、文字コードと文字とを対応
づけて記憶する文字テーブルと、入力された文字コード
と前記文字テーブルとに基づいて所定の文字を生成する
生成手段と、を有するプリンタであって、前記生成手段
は、前記入力されたN番目の文字コードとN+1番目の
文字コードとの組み合わせが、予め設定された所定の組
み合わせに該当するか否かを判定する判定手段と、前記
判定手段が、前記入力されたN番目の文字コードとN+
1番目の文字コードとの組み合わせが、予め設定された
所定の組み合わせに該当すると判定した場合には、前記
N+1番目の文字コードと異なる文字コードに対応する
文字を、前記N+1番目の文字コードに対応する文字と
して前記文字テーブルから選択する選択手段とを有する
ことを特徴とする。
More specifically, a printer according to the present invention for solving the above-mentioned problems is based on a character table that stores a character code and a character in association with each other, and an input character code and the character table. And a generation unit configured to generate a predetermined character according to a predetermined combination of the input N-th character code and the N + 1-th character code. And a determination unit that determines whether or not the input N-th character code and N +
When it is determined that the combination with the first character code corresponds to a preset predetermined combination, the character corresponding to the character code different from the N + 1th character code is associated with the N + 1th character code. Selecting means for selecting from the character table as a character to be written.

【0011】また、前記選択手段は、前記判定手段が、
前記入力されたN番目の文字コードとN+1番目の文字
コードとの組み合わせが、予め設定された所定の組み合
わせに該当すると判定した場合には、前記N+1番目の
文字コードを複数の文字コードに置き換え、この置き換
えられた複数の文字コードに対応する複数の文字を、前
記N+1番目の文字コードに対応する文字として前記文
字テーブルから選択することを特徴とする。
Further, the selection means is the determination means,
When it is determined that the combination of the input Nth character code and the N + 1th character code corresponds to a predetermined combination set in advance, the N + 1th character code is replaced with a plurality of character codes, A plurality of characters corresponding to the plurality of replaced character codes are selected from the character table as a character corresponding to the N + 1th character code.

【0012】また、前記選択手段は、前記判定手段が、
前記入力されたN番目の文字コードとN+1番目の文字
コードとの組み合わせが、予め設定された所定の組み合
わせに該当すると判定した場合には、前記N番目の文字
コードと異なる文字コードに対応する文字を、前記N番
目の文字コードに対応する文字として前記文字テーブル
から選択し、前記N+1番目の文字コードと異なる文字
コードに対応する文字を、前記N+1番目の文字コード
に対応する文字として前記文字テーブルから選択するこ
とを特徴とする。
Further, the selection means is the determination means,
When it is determined that the combination of the input N-th character code and the N + 1-th character code corresponds to a preset predetermined combination, a character corresponding to a character code different from the N-th character code Is selected from the character table as a character corresponding to the Nth character code, and a character corresponding to a character code different from the N + 1th character code is defined as a character corresponding to the N + 1th character code in the character table. It is characterized by selecting from.

【0013】また、前記文字コードは、タイ語の文字コ
ードであることが望ましい。
Further, the character code is preferably a Thai character code.

【0014】さらに、上記プリンタの発明は、ホスト装
置とプリンタから構成されるプリントシステムとしての
発明や、方法の発明としても成立する。また、上記発明
は、プリンタに所定の機能を実現させるプログラムまた
はそのプログラムを記録した記録媒体としても成立す
る。
Further, the invention of the printer described above is also realized as an invention of a printing system including a host device and a printer and an invention of a method. Further, the above invention is also realized as a program for causing a printer to realize a predetermined function or a recording medium recording the program.

【0015】なお、本明細書において、手段とは、単に
物理的手段のみを意味するものではなく、その手段が有
する機能をソフトウェアによって実現する場合も含む。
また、1つの手段が有する機能が2つ以上の物理的手段
によって実現されても、2つ以上の手段の機能が1つの
物理的手段により実現されても良い。
In this specification, the term "means" does not simply mean physical means, but also includes the case where the functions of the means are realized by software.
Further, the function of one means may be realized by two or more physical means, or the functions of two or more means may be realized by one physical means.

【発明の実施の形態】次に、本発明の実施の形態につい
て、図面を参照しつつ説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described with reference to the drawings.

【0016】[第1の実施形態] (本実施形態に係るプリンタのハードウェア構成)図1
は、本実施形態に係るプリンタのハードウェア構成の一
例を示す図である。同図において、プロセッサ11は、
ROM12やRAM13に記憶された各種プログラムを
実行する。つまり、各種プログラムがプロセッサ11に
実行されることにより、プリンタに所定の機能を実現さ
せる。本実施形態では、所定の機能として、主に、通信
機能、イメージ生成機能、および印刷制御機能が実現さ
れる。
[First Embodiment] (Hardware configuration of printer according to the present embodiment) FIG.
FIG. 1 is a diagram showing an example of a hardware configuration of a printer according to this embodiment. In the figure, the processor 11 is
It executes various programs stored in the ROM 12 and the RAM 13. In other words, the various programs are executed by the processor 11 so that the printer realizes a predetermined function. In this embodiment, a communication function, an image generation function, and a print control function are mainly realized as the predetermined functions.

【0017】ハードディスク装置14は、I/F回路(イ
ンタフェース回路)15を介してホスト装置1から送ら
れるプリントジョブデータを記憶する。I/F回路15
は、ホスト装置1との間でデータの送受信を行う。
The hard disk device 14 stores print job data sent from the host device 1 via the I / F circuit (interface circuit) 15. I / F circuit 15
Sends and receives data to and from the host device 1.

【0018】イメージメモリ16は、プリントジョブデ
ータに基づいて生成されたイメージデータを記憶する。
エンジンコントローラ17は、プリントエンジン18の
動作を制御しながら、イメージメモリ16に展開された
イメージデータを読み出して、プリントエンジン18に
供給する。
The image memory 16 stores the image data generated based on the print job data.
The engine controller 17 reads the image data expanded in the image memory 16 and supplies the image data to the print engine 18 while controlling the operation of the print engine 18.

【0019】エンジンコントローラ17は、例えば、イ
メージメモリ16に所定のバンド幅のビットマップデー
タが展開された時点で、プロセッサ11から送られる印
刷実行命令によって起動される。プリントエンジン18
は、例えば、紙送り機構やプリントヘッドなどによって
構成され、紙などの印刷記録媒体に印刷を行うものであ
る。 (プリントジョブデータの受信処理と印字処理の動作の
流れ)また、上述したプリンタは、ホスト装置1と接続
され、プリントシステムを構成する。図2は、プリンタ
の機能を説明するための機能構成図である。以下に、本
実施形態に係るプリンタが、ホスト装置1からプリント
ジョブデータを受信し、印字処理を実行する場合の動作
の流れについて説明する。
The engine controller 17 is activated by a print execution command sent from the processor 11, for example, when bitmap data having a predetermined bandwidth is expanded in the image memory 16. Print engine 18
Is composed of, for example, a paper feed mechanism and a print head, and prints on a print recording medium such as paper. (Flow of Operations for Receiving Print Job Data and Printing Process) The printer described above is connected to the host device 1 to form a print system. FIG. 2 is a functional configuration diagram for explaining the functions of the printer. The flow of operation when the printer according to the present embodiment receives print job data from the host device 1 and executes print processing will be described below.

【0020】まず、ホスト装置1は、ユーザから印刷実
行指示を受け付けると、印刷対象であるアプリケーショ
ンデータをプリンタで解釈するためのプリントジョブデ
ータに変換する。そして、ホスト装置1は、変換された
プリントジョブデータを、プリンタのインタフェース部
205に送信する。なお、プリントジョブデータは、ユ
ーザが所望する文字に対応する文字コードや、文字間隔
や行間隔等を指定する制御コード等から構成されてい
る。
First, when the host device 1 receives a print execution instruction from the user, it converts the application data to be printed into print job data for interpretation by the printer. Then, the host device 1 sends the converted print job data to the interface unit 205 of the printer. The print job data is composed of a character code corresponding to a character desired by the user, a control code for designating character spacing, line spacing, and the like.

【0021】プリンタのインタフェース部205は、プ
リントジョブデータを受信すると、プリントジョブ受信
部にこれを出力し、プリントジョブ受信部は、当該プリ
ントジョブデータをスプール部207に出力する。スプ
ール部207は、プリントジョブ受信部206から送ら
れるプリントジョブデータを、イメージ生成部209に
出力する。
Upon receiving the print job data, the printer interface unit 205 outputs the print job data to the print job receiving unit, and the print job receiving unit outputs the print job data to the spool unit 207. The spool unit 207 outputs the print job data sent from the print job receiving unit 206 to the image generating unit 209.

【0022】イメージ生成部209は、スプール部20
7を介して送られるプリントジョブデータを解釈してイ
メージデータを生成し、イメージメモリに展開する。す
なわち、本実施形態においては、プリントジョブデータ
に含まれる文字コードを、文字テーブルを参照して文字
に変換し、イメージメモリに展開する。当該処理につい
ては、後に詳述する。イメージ生成部209は、イメー
ジメモリにイメージデータを展開すると、印刷制御部2
10に印刷要求を通知する。
The image generation unit 209 includes a spool unit 20.
Image data is generated by interpreting the print job data sent via 7, and expanded in the image memory. That is, in this embodiment, the character code included in the print job data is converted into a character by referring to the character table, and is expanded in the image memory. The processing will be described in detail later. When the image generation unit 209 expands the image data in the image memory, the print control unit 2
The print request is notified to 10.

【0023】印刷制御部210は、印刷要求に基づき印
刷機構部211に印刷準備を指示する。印刷制御部21
0は、印刷機構部211から印刷準備完了である旨を受
け付けると、イメージメモリに展開されたイメージデー
タを読み出して、印刷機構部211に供給する。印刷機
構部211は、供給されるイメージデータに基づいて印
刷記録媒体に対する印刷を実行する。これにより、ユー
ザの所望する文字がプリンタによって印字される。
The print control unit 210 instructs the print mechanism unit 211 to prepare for printing based on the print request. Print control unit 21
0, upon receiving from the print mechanism unit 211 that the print preparation is completed, reads the image data expanded in the image memory and supplies it to the print mechanism unit 211. The printing mechanism unit 211 executes printing on the print recording medium based on the supplied image data. As a result, the character desired by the user is printed by the printer.

【0024】(文字変換処理の流れ)次に、本実施形態
におけるイメージ生成部が実行する文字変換処理の流れ
について説明する。本発明に係るプリンタでは、ホスト
装置から送信されるN番目の文字コードを所定の文字に
変換する場合に、N+1番目の文字コードを考慮して、
当該変換処理を行うことを特徴とする。なお、本実施形
態では、文字変換の対象となる言語の一例として、タイ
語を用いて説明する。
(Flow of Character Conversion Processing) Next, the flow of character conversion processing executed by the image generation unit in this embodiment will be described. In the printer according to the present invention, when converting the Nth character code transmitted from the host device into a predetermined character, the N + 1th character code is considered,
The conversion processing is performed. In the present embodiment, Thai is used as an example of the language that is the target of character conversion.

【0025】まず、図3、図4、図5、図6、図7及び
図8は、本実施形態にて使用される文字テーブルの一例
を示す図である。イメージ生成部209は、受け取った
プリントジョブデータに含まれる文字コードを文字イメ
ージに変換する際に、これらの文字テーブルを参照可能
に構成されている。なお、本実施の形態に係るプリンタ
は、タイ語の文字テーブルの一例として、「TIS18
(図3)」、「TIS17(図4)」、「TIS16
(図5)」、「TIS13(図6)」、「TIS11
(図7)」、及び「KU42(図8)」を保持してい
る。
First, FIG. 3, FIG. 4, FIG. 5, FIG. 6, FIG. 7 and FIG. 8 are views showing an example of the character table used in this embodiment. The image generation unit 209 is configured to be able to refer to these character tables when converting the character code included in the received print job data into a character image. Note that the printer according to the present exemplary embodiment uses “TIS18” as an example of a Thai character table.
(Fig. 3) "," TIS17 (Fig. 4) "," TIS16 "
(Fig. 5) "," TIS13 (Fig. 6) "," TIS11 "
(FIG. 7) ”and“ KU42 (FIG. 8) ”.

【0026】図9は、本実施形態に係るイメージ生成部
209の動作を説明するためのフローチャートである。
イメージ生成部209は、スプール部207を介してプ
リントジョブデータを受け取ると起動されるように構成
されている。
FIG. 9 is a flow chart for explaining the operation of the image generation unit 209 according to this embodiment.
The image generation unit 209 is configured to be activated when print job data is received via the spool unit 207.

【0027】基本的に、イメージ生成部209は、ホス
ト装置1から、参照するテーブルを示すテーブルコード
を受け取ると、複数の文字テーブルの中から参照テーブ
ルを決定する。また、イメージ生成部209は、各文字
についての文字コードを順番に受け取ると、それぞれの
文字コードについて、決定した前記文字テーブルを参照
して文字コードを文字に変換する。
Basically, when the image generation unit 209 receives from the host device 1 a table code indicating a table to be referred to, it determines the reference table from a plurality of character tables. Further, when the image generation unit 209 receives the character code for each character in order, the image generation unit 209 converts the character code into a character by referring to the determined character table for each character code.

【0028】具体的には、まず、イメージ生成部209
は、受信したテーブルコードに基づいて、参照する文字
テーブルが、TIS18、TIS17及びTIS16の
いずれかに該当するか否か判断する(ステップS10
1)。本実施形態では、タイ語に関する複数の文字テー
ブルのうち、TIS18、TIS17及びTIS16の
文字テーブルについての文字変換処理について説明する
こととしている。
Specifically, first, the image generation unit 209
Determines whether the referenced character table corresponds to any of TIS18, TIS17, and TIS16 based on the received table code (step S10).
1). In the present embodiment, the character conversion processing will be described for the character tables of TIS18, TIS17, and TIS16 among the plurality of character tables related to Thai.

【0029】そして、イメージ生成部209は、参照す
る文字テーブルが、TIS18、TIS17及びTIS
16のいずれかに該当する場合には(ステップS10
1:YES)、今のコードについて、次のコードが「D
3」であるか否かを判断する(ステップS102)。以
下、「今のコード」については「N番目の文字コード」
といい、「次のコード」については、「N+1番目の文
字コード」という。
Then, the image generation unit 209 refers to the character table as TIS18, TIS17 and TIS.
If any of 16 is applicable (step S10)
1: YES), for the current code, the next code is "D
It is determined whether or not it is "3" (step S102). In the following, "N-th character code" for "current code"
The "next character code" is referred to as the "next code".

【0030】タイ語では、所定の文字については、その
前後の文字の組合せにより文字の表記が異なる。本実施
形態では、前記所定の文字に該当する文字コードは「D
3」であるため、「N+1番目の文字コード」の判断対
象となるコードに「D3」を設定している。よって、当
該コードは、対象言語や参照する文字テーブルに応じ
て、任意にこれを設定することができる。
In Thai, the notation of a given character differs depending on the combination of the characters before and after it. In this embodiment, the character code corresponding to the predetermined character is “D
Since it is "3", "D3" is set to the code to be determined as the "N + 1th character code". Therefore, the code can be arbitrarily set according to the target language and the character table to be referred to.

【0031】次に、N+1番目の文字コードが「D3」
である場合には(ステップS102:YES)、イメー
ジ生成部209は、N番目の文字コードが「A1、A2
…CE」のいずれかに該当するか否かを判断し(ステッ
プS103)、N番目の文字コードが「A1〜CE」の
いずれかに該当する場合には(ステップS103:YE
S)、N番目の文字コードを該当する文字へ変換し、イ
メージメモリに格納する(ステップS104)。
Next, the N + 1th character code is "D3".
If it is (step S102: YES), the image generation unit 209 determines that the Nth character code is “A1, A2.
.. "CE" is determined (step S103), and if the Nth character code corresponds to any of "A1 to CE" (step S103: YE
S), the Nth character code is converted into the corresponding character and stored in the image memory (step S104).

【0032】そして、イメージ生成部209は、N+1
番目の文字コードである「D3」については、これを
「ED及びD2」に置き換える。つまり、イメージ生成
部209は、コードEDを追加し、このコードEDを該
当する文字へ変換してイメージメモリに格納するととも
に(ステップS105)、D2を該当する文字へ変換し
てイメージメモリに格納する(ステップS106)。こ
れにより、文字コード「D3」は、当該文字コード「D
3」に該当する文字ではなく、文字コード「ED」と
「D2」とにそれぞれ該当する文字に変換されて、印字
される。
Then, the image generator 209 outputs N + 1
For the second character code “D3”, this is replaced with “ED and D2”. That is, the image generation unit 209 adds the code ED, converts the code ED into the corresponding character and stores it in the image memory (step S105), and converts D2 into the corresponding character and stores it in the image memory. (Step S106). As a result, the character code “D3” becomes the character code “D3”.
The characters corresponding to the character codes “ED” and “D2” are not converted into the characters corresponding to “3”, but are printed.

【0033】一方、イメージ生成部209は、上述のス
テップS103において、N番目のコードが「A1、A
2…CE」に該当しない場合には(ステップS103:
NO)、N番目のコードが、「E8、E9、EA、E
B」のいずれかに該当するか否かを判断する(ステップ
S107)。
On the other hand, the image generator 209 determines that the Nth code is "A1, A" in step S103 described above.
2 ... CE ”(step S103:
NO), the Nth code is "E8, E9, EA, E
It is determined whether or not any of "B" is satisfied (step S107).

【0034】イメージ生成部209は、N番目コード
が、「E8、E9、EA、EB」のいずれかに該当する
場合には(ステップS107:YES)、次に、現在参
照している文字テーブルを、KU42の文字テーブルに
変更する(ステップS108)。参照対象となっている
文字テーブルに、所望する文字が定義されていない場合
には、所望する文字が定義されている文字テーブルに、
参照テーブルを変更する必要があるからである。
If the N-th code corresponds to any of "E8, E9, EA, EB" (step S107: YES), the image generation unit 209 next changes the currently referenced character table. , KU42 to the character table (step S108). If the desired character is not defined in the referenced character table, the character table in which the desired character is defined is
This is because it is necessary to change the reference table.

【0035】次に、イメージ生成部209は、N番目の
コード(CHRCD)については、N番目のコードから
2をマイナスしたコード(CHRCD−2)に置き換
え、この置き換えたコード(CHRCD−2)を該当す
る文字へ変換して、イメージメモリへ格納する(ステッ
プS109)。文字コードと文字との対応づけは、文字
テーブルによって異なるため、文字テーブルTIS1
8、17、または16における文字コードを、KU42
の文字コードに置き換える必要があるからである。
Next, the image generator 209 replaces the Nth code (CHRCD) with a code (CHRCD-2) obtained by subtracting 2 from the Nth code, and replaces this replaced code (CHRCD-2). It is converted into the corresponding character and stored in the image memory (step S109). Since the correspondence between the character code and the character differs depending on the character table, the character table TIS1
The character code in 8, 17, or 16 is KU42
This is because it is necessary to replace with the character code of.

【0036】そして、イメージ生成部209は、N+1
番目のコードであるD3をCEに置き換え、コードCE
を該当する文字へ変換してイメージメモリに格納する
(ステップ110)。これにより、文字コード「D3」
は、当該文字コード「D3」に該当する文字ではなく、
文字コード「CE」に該当する文字に変換される。
Then, the image generator 209 outputs N + 1
Replace the third code, D3, with CE, code CE
Is converted into the corresponding character and stored in the image memory (step 110). As a result, the character code "D3"
Is not a character corresponding to the character code "D3",
It is converted into a character corresponding to the character code “CE”.

【0037】最後に、イメージ生成部209は、参照テ
ーブルをKU42から、元のテーブルへ戻し(ステップ
S110)て、文字変換処理を終了する。
Finally, the image generator 209 returns the reference table from the KU 42 to the original table (step S110), and ends the character conversion process.

【0038】[文字変換処理の例]上述した文字変換処
理を具体的に説明すると、受け取った文字データは、図
10に示されるように変換処理される。ここで、図10
は、変換処理の一例を示す図である。
[Example of Character Conversion Processing] The above character conversion processing will be described in detail. The received character data is converted as shown in FIG. Here, FIG.
FIG. 6 is a diagram showing an example of a conversion process.

【0039】最初に、図10のケース1について説明す
る。ケース1によれば、ホスト装置1から送信される文
字は、子音、アッパー、母音の順に構成されている。ま
た、参照テーブルはTIS18〜16のいずれかであ
り、それぞれの文字に対応するコードは、順にA1、E
8、D3である。
First, the case 1 of FIG. 10 will be described. According to Case 1, the characters transmitted from the host device 1 are composed of consonants, uppers, and vowels in this order. The reference table is one of TIS 18 to 16, and the codes corresponding to the respective characters are A1 and E in order.
8 and D3.

【0040】イメージ生成部209は、最初に送信され
る文字コードA1については、次コードが「D3」では
ないので(ステップS102:NO)、当該変換処理を
抜けて、上記TIS18〜16いずれか所定のテーブル
を参照し、A1に該当する文字にそのまま変換する。
Since the next code of the character code A1 transmitted first is not "D3" (step S102: NO), the image generation unit 209 exits the conversion process and determines one of the TISs 18-16. The table is referred to and the character corresponding to A1 is directly converted.

【0041】次に、イメージ生成部209は、文字コー
ドE8(今のコード)及びD3(次のコード)について
は、次のコードが「D3」に該当し(ステップS10
2:YES)、今のコードが「E8」に該当するので
(ステップS103:NO、ステップS107:YE
S)、テーブルをKU42に変更する(ステップS10
8)。
Next, the image generation unit 209, for the character codes E8 (current code) and D3 (next code), corresponds to the next code "D3" (step S10).
2: YES, the current code corresponds to "E8" (step S103: NO, step S107: YE).
S), change the table to KU42 (step S10)
8).

【0042】そして、イメージ生成部209は、文字コ
ードE8は文字コードE6に、文字コードD3は文字コ
ードCEに、それぞれ置き換えて変換処理を行う(ステ
ップS109、ステップS110)。
Then, the image generating unit 209 replaces the character code E8 with the character code E6 and replaces the character code D3 with the character code CE to perform the conversion process (steps S109 and S110).

【0043】次に、図10のケース2について説明す
る。ケース2においては、ホスト装置1から送信される
文字は、子音、母音の順に構成されている。また、参照
テーブルはTIS18〜16のいずれかであり、それぞ
れの文字に対応するコードは、順にA1、D3である。
Next, case 2 in FIG. 10 will be described. In case 2, the characters transmitted from the host device 1 are composed of consonants and vowels in this order. The reference table is one of TIS 18 to 16, and the codes corresponding to the respective characters are A1 and D3 in order.

【0044】イメージ生成部209は、まず、最初に送
信される文字コードA1について処理を行う。イメージ
生成部209は、次コードが「D3」に該当し(ステッ
プS102:YES)、今のコードが「A1〜CE」の
いずれかに該当するので(ステップS103:YE
S)、上記TIS18〜16いずれか所定のテーブルを
参照して、文字コードA1を、当該文字コードに該当す
る文字にそのまま変換する(ステップS104)。
The image generator 209 first processes the character code A1 transmitted first. Since the next code corresponds to “D3” (step S102: YES) and the current code corresponds to any of “A1 to CE” (step S103: YE).
S), referring to a predetermined table of any of TIS 18 to 16 above, the character code A1 is directly converted into a character corresponding to the character code (step S104).

【0045】次に、イメージ生成部209は、文字コー
ドD3については、当該文字コードをコードED及びD
2とに置き換えて、それぞれ該当する文字に変換する
(ステップS105、ステップS106)。
Next, for the character code D3, the image generator 209 sets the character code to the codes ED and D.
It is replaced with 2 and converted into a corresponding character (steps S105 and S106).

【0046】以上によれば、ケース1及びケース2に示
すように、本発明に係るプリンタは、ホスト装置から送
信された文字コードに基づいて、正しい文字表記のかた
ちでタイ語を印字することができるのである。
According to the above, as shown in Case 1 and Case 2, the printer according to the present invention can print Thai in the correct character notation based on the character code transmitted from the host device. You can do it.

【0047】(文字変換処理を行った場合と行わなかっ
た場合との比較)ここで、イメージ生成部209で文字
変換処理されたタイ文字と、文字変換処理されなかった
タイ文字との比較を行う。図11は、本実施形態にて文
字変換されたタイ文字と、文字変換されなかったタイ文
字の一例を示す図である。なお、図11では、図10に
て説明したケース1及びケース2の文字コードを用いて
いる。
(Comparison between the case where character conversion processing is performed and the case where character conversion processing is not performed) Here, the Thai character subjected to the character conversion processing in the image generation unit 209 is compared with the Thai character not subjected to the character conversion processing. . FIG. 11 is a diagram showing an example of Thai characters that are character-converted and Thai characters that are not character-converted in the present embodiment. In FIG. 11, the character codes of Case 1 and Case 2 described in FIG. 10 are used.

【0048】図11において、「TIS18、TIS1
7、及びTIS16」についてのタイ文字は、正しい表
記でタイ文字が印字されている例である。これに対し、
「TIS11、TIS13」についてのタイ文字は、誤
った表記でタイ文字が印字されている例である。
In FIG. 11, "TIS18, TIS1"
7 and TIS16 ”are examples in which the Thai characters are printed in correct notation. In contrast,
The Thai characters for "TIS11, TIS13" are examples in which the Thai characters are printed in incorrect notation.

【0049】具体的には、各テーブル名の下に表記され
ているタイ文字のうち、左から1番目の文字は、図10
のケース1の文字変換処理の例を示している。また、左
から5番目の文字は、図10のケース2の文字変換処理
の例を示している。
Specifically, the first character from the left among the Thai characters written under each table name is shown in FIG.
The example of the character conversion process of the case 1 of is shown. Further, the fifth character from the left shows an example of the character conversion process of case 2 in FIG.

【0050】すなわち、文字テーブル「TIS18、T
IS17、及びTIS16」における左から1番目の文
字については、図10のケース1における文字変換後の
文字と同じ文字が表されている。また、左から5番目の
文字については、図10のケース1における文字変換後
の文字と同じ文字が表されている。
That is, the character table "TIS18, T
Regarding the first character from the left in "IS17 and TIS16", the same character as the character after character conversion in case 1 of FIG. 10 is represented. The fifth character from the left is the same as the character after character conversion in case 1 of FIG.

【0051】このように、本発明によれば、タイ語のよ
うな表記体系をもつ場合であっても、図11に示すよう
に、正しい文字が得られることがわかる。
As described above, according to the present invention, it is understood that correct characters can be obtained as shown in FIG. 11 even when the writing system such as Thai is used.

【発明の効果】本発明によれば、ホスト装置から送信さ
れる文字コードを所定の文字に変換する際に、N番目の
文字コードとN+1番目の文字コードとの組合せに基づ
いて文字の変換処理を行うこととしたので、当該文字コ
ードを正しい表記に沿った文字に変換して出力すること
が可能になる。
According to the present invention, when converting a character code transmitted from a host device into a predetermined character, character conversion processing is performed based on a combination of the Nth character code and the N + 1th character code. Since it is decided to perform, the character code can be converted into a character according to the correct notation and output.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明に係るプリンタのハードウェア構成の
一例を示す図である。
FIG. 1 is a diagram showing an example of a hardware configuration of a printer according to the present invention.

【図2】 本発明に係るプリントシステムの概要を説明
するためのブロックダイアグラムである。
FIG. 2 is a block diagram for explaining an outline of a printing system according to the present invention.

【図3】 文字テーブルの一例を示す図である。FIG. 3 is a diagram showing an example of a character table.

【図4】 文字テーブルの一例を示す図である。FIG. 4 is a diagram showing an example of a character table.

【図5】 文字テーブルの一例を示す図である。FIG. 5 is a diagram showing an example of a character table.

【図6】 文字テーブルの一例を示す図である。FIG. 6 is a diagram showing an example of a character table.

【図7】 文字テーブルの一例を示す図である。FIG. 7 is a diagram showing an example of a character table.

【図8】 文字テーブルの一例を示す図である。FIG. 8 is a diagram showing an example of a character table.

【図9】 イメージ生成部209の動作を説明するため
のフローチャートである。
FIG. 9 is a flowchart for explaining the operation of the image generation unit 209.

【図10】 文字変換処理の一例を示す図である。FIG. 10 is a diagram illustrating an example of character conversion processing.

【図11】 文字変換処理を行った場合の文字と行わな
かった場合の文字とを比較するための図である。
FIG. 11 is a diagram for comparing a character when character conversion processing is performed and a character when character conversion processing is not performed.

【符号の説明】[Explanation of symbols]

1…ホスト装置 205…I/F回路 206…プリントジョブ受信部 207…スプール部 209…イメージ生成部 210…印刷制御部 211…印刷機構部 1 ... Host device 205 ... I / F circuit 206 ... Print job receiving unit 207 ... Spool section 209 ... Image generation unit 210 ... Print control unit 211 ... Printing mechanism section

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 文字コードと文字とを対応づけて記憶す
る文字テーブルと、入力された文字コードと前記文字テ
ーブルとに基づいて所定の文字を生成する生成手段と、
を有するプリンタであって、 前記生成手段は、 前記入力されたN番目の文字コードとN+1番目の文字
コードとの組み合わせが、予め設定された所定の組み合
わせに該当するか否かを判定する判定手段と、 前記判定手段が、前記入力されたN番目の文字コードと
N+1番目の文字コードとの組み合わせが、予め設定さ
れた所定の組み合わせに該当すると判定した場合には、
前記N+1番目の文字コードと異なる文字コードに対応
する文字を、前記N+1番目の文字コードに対応する文
字として前記文字テーブルから選択する選択手段とを有
することを特徴とするプリンタ。
1. A character table that stores a character code and a character in association with each other, and a generating unit that generates a predetermined character based on the input character code and the character table.
A printer having a determination unit that determines whether the combination of the input N-th character code and the N + 1-th character code corresponds to a predetermined combination that is set in advance. When the determination unit determines that the combination of the input N-th character code and the N + 1-th character code corresponds to a preset predetermined combination,
A printer comprising: a selection unit that selects a character corresponding to a character code different from the N + 1th character code from the character table as a character corresponding to the N + 1th character code.
【請求項2】 前記選択手段は、 前記判定手段が、前記入力されたN番目の文字コードと
N+1番目の文字コードとの組み合わせが、予め設定さ
れた所定の組み合わせに該当すると判定した場合には、 前記N+1番目の文字コードを複数の文字コードに置き
換え、この置き換えられた複数の文字コードに対応する
複数の文字を、前記N+1番目の文字コードに対応する
文字として前記文字テーブルから選択することを特徴と
する請求項1記載のプリンタ。
2. The selecting means, when the determining means determines that the combination of the input N-th character code and the N + 1-th character code corresponds to a predetermined combination set in advance. Replacing the N + 1th character code with a plurality of character codes and selecting a plurality of characters corresponding to the replaced plurality of character codes from the character table as a character corresponding to the N + 1th character code. The printer according to claim 1, wherein the printer is a printer.
【請求項3】 前記選択手段は、 前記判定手段が、前記入力されたN番目の文字コードと
N+1番目の文字コードとの組み合わせが、予め設定さ
れた所定の組み合わせに該当すると判定した場合には、 前記N番目の文字コードと異なる文字コードに対応する
文字を、前記N番目の文字コードに対応する文字として
前記文字テーブルから選択し、前記N+1番目の文字コ
ードと異なる文字コードに対応する文字を、前記N+1
番目の文字コードに対応する文字として前記文字テーブ
ルから選択することを特徴とする請求項1または2記載
のプリンタ。
3. The selecting means, when the determining means determines that the combination of the input N-th character code and the N + 1-th character code corresponds to a preset predetermined combination. , A character corresponding to a character code different from the Nth character code is selected from the character table as a character corresponding to the Nth character code, and a character corresponding to a character code different from the N + 1th character code is selected. , Said N + 1
The printer according to claim 1, wherein the character corresponding to the th character code is selected from the character table.
【請求項4】 文字コードと文字とを対応づけて記憶す
る文字テーブルと、入力された文字コードと前記文字テ
ーブルとに基づいて所定の文字を生成する生成ステップ
と、を有するプリンタの文字の変換方法であって、 前記生成ステップは、 前記入力されたN番目の文字コードとN+1番目の文字
コードとの組み合わせが、予め設定された所定の組み合
わせに該当するか否かを判定する判定ステップと、 前記判定ステップが、前記入力されたN番目の文字コー
ドとN+1番目の文字コードとの組み合わせが、予め設
定された所定の組み合わせに該当すると判定した場合に
は、前記N+1番目の文字コードと異なる文字コードに
対応する文字を、前記N+1番目の文字コードに対応す
る文字として前記文字テーブルから選択する選択ステッ
プとを有することを特徴とするプリンタの文字の変換方
法。
4. A character conversion of a printer, comprising: a character table for storing a character code and a character in association with each other; and a generating step for generating a predetermined character based on the input character code and the character table. A method, wherein the generating step includes a determining step of determining whether or not the combination of the input N-th character code and the N + 1-th character code corresponds to a predetermined combination set in advance, When the determining step determines that the combination of the input N-th character code and the N + 1-th character code corresponds to a preset predetermined combination, a character different from the N + 1-th character code A selecting step of selecting a character corresponding to the code from the character table as a character corresponding to the N + 1th character code; A character conversion method for a printer, comprising:
【請求項5】 前記選択ステップは、 前記判定ステップが、前記入力されたN番目の文字コー
ドとN+1番目の文字コードとの組み合わせが、予め設
定された所定の組み合わせに該当すると判定した場合に
は、前記N+1番目の文字コードを複数の文字コードに
置き換え、この置き換えられた複数の文字コードに対応
する複数の文字を、前記N+1番目の文字コードに対応
する文字として前記文字テーブルから選択することを特
徴とする請求項4記載のプリンタの文字の変換方法。
5. The selecting step, if the determining step determines that the combination of the input N-th character code and the N + 1-th character code corresponds to a preset predetermined combination. Replacing the N + 1th character code with a plurality of character codes and selecting a plurality of characters corresponding to the replaced plurality of character codes from the character table as a character corresponding to the N + 1th character code. The character conversion method according to claim 4, wherein the character conversion is performed by the printer.
【請求項6】 前記選択ステップは、 前記判定ステップが、前記入力されたN番目の文字コー
ドとN+1番目の文字コードとの組み合わせが、予め設
定された所定の組み合わせに該当すると判定した場合に
は、前記N番目の文字コードと異なる文字コードに対応
する文字を、前記N番目の文字コードに対応する文字と
して前記文字テーブルから選択し、前記N+1番目の文
字コードと異なる文字コードに対応する文字を、前記N
+1番目の文字コードに対応する文字として前記文字テ
ーブルから選択することを特徴とする請求項4または5
記載のプリンタの文字の変換方法。
6. The selecting step, if the determining step determines that the combination of the input N-th character code and N + 1-th character code corresponds to a predetermined combination set in advance. , A character corresponding to a character code different from the Nth character code is selected from the character table as a character corresponding to the Nth character code, and a character corresponding to a character code different from the N + 1th character code is selected. , Said N
6. The character corresponding to the + 1st character code is selected from the character table, and the character table is selected.
How to convert characters on the listed printers.
【請求項7】 前記文字コードは、タイ語の文字コード
であることを特徴とする請求項1から6記載のプリンタ
又はプリンタの文字の変換方法。
7. The printer or the character conversion method for a printer according to claim 1, wherein the character code is a Thai character code.
【請求項8】 印刷要求をプリンタに対して送信するホ
スト装置と、前記印刷要求を入力し印刷処理を実行する
プリンタと、を有するプリントシステムであって、 前記ホスト装置は、 文字コードを前記プリンタに送信する送信手段を有し、 前記プリンタは、ホスト装置から送信される前記文字コ
ードを受信する受信手段と、文字コードと文字とを対応
づけて記憶する文字テーブルと、前記受信手段が受信し
た文字コードと前記文字テーブルとに基づいて所定の文
字を生成する生成手段と、を有し、 前記生成手段は、 前記受信手段が受信したN番目の文字コードとN+1番
目の文字コードとの組み合わせが、予め設定された所定
の組み合わせに該当するか否かを判定する判定手段と、 前記判定手段が、前記受信手段が受信したN番目の文字
コードとN+1番目の文字コードとの組み合わせが、予
め設定された所定の組み合わせに該当すると判定した場
合には、前記N+1番目の文字コードと異なる文字コー
ドに対応する文字を、前記N+1番目の文字コードに対
応する文字として前記文字テーブルから選択する選択手
段とを有することを特徴とするプリントシステム。
8. A printing system comprising: a host device that sends a print request to a printer; and a printer that inputs the print request and executes a printing process, wherein the host device sends a character code to the printer. The printer receives the character code transmitted from the host device, a character table storing the character code and the character in association with each other, and the receiving unit receives the character code. Generating means for generating a predetermined character based on a character code and the character table, wherein the generating means is a combination of the Nth character code and the (N + 1) th character code received by the receiving means. , A judgment means for judging whether or not a predetermined combination is set, and the judgment means for judging whether the N-th character code received by the reception means. When it is determined that the combination of the character code and the N + 1th character code corresponds to a preset predetermined combination, the character corresponding to a character code different from the N + 1th character code is set to the N + 1th character code. A printing system comprising: a selecting unit that selects from the character table as a character corresponding to a code.
【請求項9】 請求項4から6いずれか記載のプリンタ
の文字の変換方法をコンピュータで実行させるためのプ
ログラムを格納したコンピュータ読み取り可能な記録媒
体。
9. A computer-readable recording medium storing a program for causing a computer to execute the printer character conversion method according to claim 4.
JP2000311012A 2000-10-11 2000-10-11 Printer, printer character conversion method, and computer-readable recording medium. Expired - Fee Related JP3503586B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000311012A JP3503586B2 (en) 2000-10-11 2000-10-11 Printer, printer character conversion method, and computer-readable recording medium.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000311012A JP3503586B2 (en) 2000-10-11 2000-10-11 Printer, printer character conversion method, and computer-readable recording medium.

Publications (2)

Publication Number Publication Date
JP2002116900A JP2002116900A (en) 2002-04-19
JP3503586B2 true JP3503586B2 (en) 2004-03-08

Family

ID=18790858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000311012A Expired - Fee Related JP3503586B2 (en) 2000-10-11 2000-10-11 Printer, printer character conversion method, and computer-readable recording medium.

Country Status (1)

Country Link
JP (1) JP3503586B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4427597B1 (en) * 2008-09-30 2010-03-10 株式会社東芝 Digital television broadcast receiver

Also Published As

Publication number Publication date
JP2002116900A (en) 2002-04-19

Similar Documents

Publication Publication Date Title
US5268993A (en) Printer
JP3900700B2 (en) Printing control apparatus and method, and recording medium
JPH10124272A (en) Print controller and its method
JP2844575B2 (en) Printing equipment
JP2005301987A (en) Printer driver, print control unit, print system, and print control method
JP3503586B2 (en) Printer, printer character conversion method, and computer-readable recording medium.
JPH06286229A (en) Printer
JPH01196096A (en) Output device
JP3850057B2 (en) Character information processing device
JP4670627B2 (en) Printer control apparatus, system, method, program, and recording medium
KR100555765B1 (en) Method for changing font information by a printer driver
JP4134496B2 (en) Character printing method
JP2010204856A (en) Information processing apparatus and conversion information change program
JP2003044240A (en) Printer driver, information processor, printing system, printing device and storage medium
JP2940914B2 (en) Output device
US20060140700A1 (en) Image forming device, computer system, and printing control and printing data processing methods using the same
JP2001138595A (en) Printing system and printer
JPH07271780A (en) Document processor and its starting method
JP2003256169A (en) Printer driver
JPH08132684A (en) Braille block copy output system and braille block copy outputting method
JP2000311075A (en) Printer device
JPH04268959A (en) Document preparing device
JPH0876950A (en) Information processor and method for print control of the processor
JPH0442322A (en) Document output device
JP2000172472A (en) Print system

Legal Events

Date Code Title Description
A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20031201

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081219

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091219

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101219

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101219

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111219

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees