JP2002278726A - Printer - Google Patents

Printer

Info

Publication number
JP2002278726A
JP2002278726A JP2001078133A JP2001078133A JP2002278726A JP 2002278726 A JP2002278726 A JP 2002278726A JP 2001078133 A JP2001078133 A JP 2001078133A JP 2001078133 A JP2001078133 A JP 2001078133A JP 2002278726 A JP2002278726 A JP 2002278726A
Authority
JP
Japan
Prior art keywords
printer
character
character code
code
assigned
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
JP2001078133A
Other languages
Japanese (ja)
Inventor
Jun Takahashi
潤 高橋
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001078133A priority Critical patent/JP2002278726A/en
Publication of JP2002278726A publication Critical patent/JP2002278726A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a printer capable of reducing transfer quantity and processing speed of data and shortening print time. SOLUTION: In a printer driver in which the printer and a PC are connected with a network, etc., and to transmit data printed from application of the PC to the printer by each of plotting objects such as images, graphics, characters, appearance frequency is calculated in a character code in character data among pieces of character data to be transmitted from the application to the printer, a character code with the small number of bits is allocated in an order from the character with high appearance frequency and a correspondence table between the allocated character code and a standardized character code such as shift JIS is transmitted to the printer.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明はプリンタ装置にお
けるプリンタドライバに関し、特にデータ転送時に文書
データの低減化を図ることのできるプリンタ装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer driver in a printer device, and more particularly to a printer device capable of reducing document data during data transfer.

【0002】[0002]

【従来の技術】従来から、複数のホストコンピュータが
1台のプリンタ装置を共有することが一般的であるが、
この場合、接続されるホストコンピュータの台数が増え
るに伴って、個々のホストコンピュータに対するプリン
ト時間(処理速度)が長くなるなどの問題が発生してい
る。このため、従来では文書データの転送時に、このデ
ータを圧縮、伸張するなどの対策を行っている。そし
て、例えば「特開平9-258920号公報」に開示されたもの
では、文字列を圧縮した後、この文字列をプリンタ内部
コードに変換して変換テーブルに登録する圧縮手段を備
えたプリントシステムによって、プリンタ側の処理負荷
を低減する技術が記載されている。
2. Description of the Related Art Conventionally, it is general that a plurality of host computers share one printer.
In this case, as the number of connected host computers increases, a problem such as a longer print time (processing speed) for each host computer occurs. For this reason, conventionally, when transferring document data, measures such as compression and decompression of the data are taken. Then, for example, in the one disclosed in Japanese Patent Application Laid-Open No. 9-258920, after a character string is compressed, the print system includes a compression unit that converts the character string into a printer internal code and registers the code in a conversion table. Describes a technique for reducing the processing load on the printer side.

【0003】[0003]

【発明が解決しようとする課題】ところが、前述した従
来技術の場合には文書などの文字の多いものを印刷する
場合、例えば文字データを1文字2バイトの固定方式に
よりプリンタ側へ送信すると、データ量が多くなるため
処理時間及び印刷時間が多くかかってしまうという問題
がある。
However, in the case of the above-mentioned prior art, when printing a document or the like having many characters, for example, when character data is transmitted to the printer by a fixed method of 2 bytes per character, data is transmitted. There is a problem that the processing time and the printing time are long because the amount is large.

【0004】そこで、この発明は、前記のような従来の
プリンタ装置のもつ問題点を解消し、データの転送量及
び処理速度を低減させると共に、印刷時間を短縮するこ
とのできるプリンタ装置を提供するにある。
Accordingly, the present invention solves the above-mentioned problems of the conventional printer device, and provides a printer device capable of reducing the data transfer amount and processing speed and shortening the printing time. It is in.

【0005】[0005]

【課題を解決するための手段】この発明は、前記のよう
な目的を達成するために、本発明は、プリンタ装置とP
Cがネットワーク等に接続され、PCのアプリから印刷
したデータをイメージ、グラフィックス、文字の各描画
オブジェクト毎にプリンタ装置に送るプリンタ装置のプ
リンタドライバにおいて、アプリからプリンタへ送る文
字データのうち、文字データ中の文字コードに出現頻度
を求め、出現頻度の高い文字から順に少ないビット数の
文字コードを割り当てて、その割り当ててた文字コード
とシフトJISなどの規格化された文字コードとの対応
表をプリンタ装置に送ることを特徴とするものである。
また、出現頻度の高い単語に少ないビット数の文字コー
ドを割り当て、その割り当てた文字コードとシフトJI
Sコードなどの規格化された文字コードの変換テーブル
をプリンタ側へ送るようにした場合には、出現頻度の高
い文字から順に少ないビット数の文字コードを割り当て
て、その割り当ててた文字コードとシフトJISなどの
規格化された文字コードとの対応表をプリンタ装置に送
るので、データ量が多くなることはなく、これによっ
て、データの転送量及び処理速度を低減させると共に、
印刷時間を短縮することができる。
According to the present invention, in order to achieve the above object, the present invention relates to a printer device and a printer.
C is connected to a network or the like and sends data printed from an application on the PC to the printer for each drawing object of image, graphics, and character. The appearance frequency is calculated for the character codes in the data, the character codes with the smaller number of bits are assigned in order from the character with the highest appearance frequency, and the correspondence table between the assigned character codes and the standardized character codes such as shift JIS is created. It is characterized in that it is sent to a printer device.
Also, a character code with a small number of bits is assigned to a word having a high frequency of appearance, and the assigned character code and shift JI
When a conversion table of standardized character codes such as S codes is sent to the printer side, character codes with a smaller number of bits are assigned in order from the character having a higher frequency of occurrence, and the assigned character code is shifted. Since the correspondence table with the character codes standardized by JIS etc. is sent to the printer device, the data amount does not increase, thereby reducing the data transfer amount and the processing speed,
Printing time can be reduced.

【0006】[0006]

【発明の実施の形態】以下、本発明のプリント装置の詳
細について図面を参照して説明する。ここで、本発明に
おける第1実施形態の特徴は、プリンタ装置とPCがネ
ットワーク等に接続され、PCのアプリから印刷したデ
ータをイメージ、グラフィックス、文字の各描画オブジ
ェクト毎にプリンタ装置に送るプリンタ装置のプリンタ
ドライバにおいて、アプリからプリンタへ送る文字デー
タのうち、文字データ中の文字コードに出現頻度を求
め、出現頻度の高い文字から順に少ないビット数の文字
コードを割り当てて、その割り当ててた文字コードとシ
フトJISなどの規格化された文字コードとの対応表を
プリンタ装置に送ることにある。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The details of a printing apparatus according to the present invention will be described below with reference to the drawings. Here, a feature of the first embodiment of the present invention is that a printer device and a PC are connected to a network or the like, and a printer that sends data printed from an application of the PC to the printer device for each image, graphics, and character drawing object. In the printer driver of the device, of the character data sent from the application to the printer, the appearance frequency is obtained for the character code in the character data, and the character code having a smaller number of bits is assigned in order from the character having the higher appearance frequency, and the assigned character is assigned. An object of the present invention is to send a correspondence table between codes and standardized character codes such as shift JIS to a printer device.

【0007】すなわち、図1のフローチャートは本発明
の第1実施形態(プリンタ装置A)を示しており、以下
のように、その制御が行われる。 (1)アプリから印刷したデータの文字データの出現頻
度を調べる。 (2)出現頻度の高い文字に少ないビット数を割り当て
る方針で、文字コードを割りあてて、符号化する(文字
コード符号化)。 (3)符号化した文字コードとシフトJISコードなどの
規格化された文字コードとの対応テーブルを作成する
(符号化対応表作成)。 (4)プリンタ側へ文字コード対応テーブルと符号化し
た文字コードを送る。
That is, the flowchart of FIG. 1 shows the first embodiment (printer A) of the present invention, and the control is performed as follows. (1) Check the appearance frequency of character data of data printed from the application. (2) Character codes are allocated and encoded in accordance with a policy of allocating a small number of bits to characters having a high appearance frequency (character code encoding). (3) Create a correspondence table between encoded character codes and standardized character codes such as Shift JIS code (encoding correspondence table creation). (4) Send the character code correspondence table and the encoded character code to the printer.

【0008】また、本発明における第2実施形態の特徴
は、割り当てた文字コードのみプリンタへ送り、プリン
タ側では、PCから送られてきた文字コードから対応す
る文字を認識して印刷することにある。
A feature of the second embodiment of the present invention is that only the assigned character code is sent to the printer, and the printer recognizes and prints the corresponding character from the character code sent from the PC. .

【0009】すなわち、図2のフローチャートは本発明
の第2実施形態(プリンタ装置B)を示しており、以下
のように、その制御が行われる。 (1)アプリから印刷したデータの文字データの出現頻
度を調べる。 (2)出現頻度の高い文字に少ないビット数を割り当て
る方法で、文字コードを割り当てて符号化する。 (3)プリンタ側へ符号化した文字コードをプリンタへ
送る。 (4)プリンタ側で、符号化した文字コードをから文字
を認識する。ここで、この時の認識方法は、PCで文字
コードを符号化したアルゴリズムの逆の方法で行う(復
号化印刷)。
That is, the flowchart of FIG. 2 shows a second embodiment (printer B) of the present invention, and the control is performed as follows. (1) Check the appearance frequency of character data of data printed from the application. (2) A character code is assigned and encoded by a method of assigning a small number of bits to a character having a high appearance frequency. (3) Send the encoded character code to the printer. (4) The printer recognizes the character from the encoded character code. Here, the recognition method at this time is performed by the reverse method of the algorithm of encoding the character code by the PC (decoding printing).

【0010】また、本発明における第3実施形態の特徴
は、出現頻度の高い単語に少ないビット数の文字コード
を割り当て、その割り当てた文字コードとシフトJIS
コードなどの規格化された文字コードの変換テーブルを
プリンタ側へ送ることにある。
A feature of the third embodiment of the present invention is that a word code having a small number of bits is assigned to a word having a high appearance frequency, and the assigned character code and shift JIS are assigned.
A conversion table of a standardized character code such as a code is sent to the printer.

【0011】すなわち、図3のフローチャートは本発明
の第3実施形態(プリンタ装置C)を示しており、以下
のように、その制御が行われる。 (1)文書の文字列を最初から見ていき、辞書とマッチ
ングを図る。この時マッチングの方法は最長一致法のア
ルゴリズムで行う。ここで、上述した辞書には単語、用
語(専門用語など)の文字列データが含まれている。 (2)文書の最後まで見ていき、文字列の出現頻度を求
める。 (3)文字列の出現頻度の高い文字列あるいは文字から
順に短いビット数の文字列コードを割り当てて符号化す
る(文字列の符号化)。 (4)符号化した文字列コードから規格化されたシフト
JISなどの文字列コードとの対応テーブルである符号
化対応表を作成する。 (5)プリンタ側に符号化した文字列コードと前記
(4)で作成した対応テーブル(符号化対応表)をプリ
ンタ側へ送る。
That is, the flowchart of FIG. 3 shows a third embodiment (printer apparatus C) of the present invention, and the control is performed as follows. (1) The character string of the document is looked at from the beginning, and matching is performed with the dictionary. At this time, matching is performed by the algorithm of the longest match method. Here, the above-described dictionary includes character string data of words and terms (such as technical terms). (2) Look up to the end of the document and find the appearance frequency of the character string. (3) A character string code with a shorter bit number is assigned and encoded in order from a character string or a character having a higher appearance frequency of the character string (character string encoding). (4) Create an encoding correspondence table, which is a correspondence table between the encoded character string codes and the standardized character string codes such as shift JIS. (5) The character string code encoded on the printer side and the correspondence table (encoded correspondence table) created in (4) are sent to the printer side.

【0012】また、本発明における第4実施形態の特徴
は、文字コードの対応テーブルをプリンタ側に送信する
ことなく、プリンタ側でPC側で割り当てた文字コード
から、それに対応する規格化されたシフトJIS等の文
字コードを認識することにある。
A feature of the fourth embodiment of the present invention is that a character code correspondence table is not transmitted to the printer side, and a character code assigned on the PC side by the printer side is converted to a corresponding standardized shift code. It is to recognize a character code such as JIS.

【0013】すなわち、図4のフローチャートは本発明
の第4実施形態(プリンタ装置D)を示しており、以下
のように、その制御が行われる。 (1)文書の文字列を最初から見ていき、辞書とマッチ
ングを図る。この時マッチングの方法は最長一致法のア
ルゴリズムの方法で行う。ここで、辞書には単語、用語
(専門用語など)の文字列データが含まれる。 (2)文書の最後まで見ていき、文字列の出現頻度を求
める。 (3)文字列の出現頻度の高い文字列あるいは文字から
順に短いビット数の文字列コードを割り当てる。 (4)プリンタ側に符号化した字列列コードをプリンタ
側へ送る。 (5)プリンタ側で、PC側から送られると共に、符号
化された文字列コードを、逆のアルゴリズムで復号化し
て印刷する。
That is, the flowchart of FIG. 4 shows a fourth embodiment (printer device D) of the present invention, and the control is performed as follows. (1) The character string of the document is looked at from the beginning, and matching is performed with the dictionary. At this time, the matching is performed by the algorithm of the longest match method. Here, the dictionary includes character string data of words and terms (such as technical terms). (2) Look up to the end of the document and find the appearance frequency of the character string. (3) A character string code with a shorter bit number is assigned in order from a character string or a character having a higher appearance frequency of the character string. (4) Send the character string code coded to the printer to the printer. (5) On the printer side, the character string code sent from the PC side and encoded is decoded by the reverse algorithm and printed.

【0014】[0014]

【発明の効果】この発明は、上記のようであって、プリ
ンタ装置とPCがネットワーク等に接続され、PCのア
プリから印刷したデータをイメージ、グラフィックス、
文字の各描画オブジェクト毎にプリンタ装置に送るプリ
ンタドライバにおいて、アプリからプリンタへ送る文字
データのうち、文字データ中の文字コードに出現頻度を
求め、出現頻度の高い文字から順に少ないビット数の文
字コードを割りあてて、その割り当ててた文字コードと
シフトJISなどの規格化された文字コードとの対応表
をプリンタ装置に送るので、データ量が多くなることは
なく、これによって、データの転送量及び処理速度を低
減させると共に、印刷時間を短縮することができるとい
う効果がある。すなわち、文字列や文字の出現頻度の高
い文字に少ないビット数の文字コードを割り当てて符号
化したデータをプリンタ側に送るので、データの転送量
を減少させることができ、ホスト側での処理負担はほと
んど増加することなく印刷時間を短縮することができる
という効果がある。
According to the present invention, as described above, a printer device and a PC are connected to a network or the like, and data printed from an application of the PC is converted into an image, graphics,
In a printer driver that sends each drawing object of a character to a printer device, of character data to be sent from an application to a printer, a character code in character data is used to determine an appearance frequency, and a character code having a smaller number of bits in order from a character having a higher appearance frequency , And a correspondence table between the assigned character codes and standardized character codes such as shift JIS is sent to the printer device, so that the data amount does not increase. There is an effect that the processing speed can be reduced and the printing time can be reduced. That is, a character string or a character with a high frequency of appearance is assigned a character code with a small number of bits to a character code and transmitted to the printer side, so that the data transfer amount can be reduced, and the processing load on the host side can be reduced. Has the effect that the printing time can be shortened with little increase.

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

【図1】この発明の第1実施形態の制御動作を示すフロ
ーチャートである。
FIG. 1 is a flowchart showing a control operation according to a first embodiment of the present invention.

【図2】この発明の第2実施形態の制御動作を示すフロ
ーチャートである。
FIG. 2 is a flowchart illustrating a control operation according to a second embodiment of the present invention.

【図3】この発明の第3実施形態の制御動作を示すフロ
ーチャートである。
FIG. 3 is a flowchart showing a control operation according to a third embodiment of the present invention.

【図4】この発明の第4実施形態の制御動作を示すフロ
ーチャートである。
FIG. 4 is a flowchart showing a control operation according to a fourth embodiment of the present invention.

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

A,B,C,D プリンタ装置 A, B, C, D printer device

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プリンタ装置とPCがネットワークなど
に接続され、PCのアプリから印刷したデータをイメー
ジ、グラフィックス、文字の各描画オブジェクト毎にプ
リンタ装置に送るプリンタ装置のプリンタドライバにお
いて、アプリからプリンタへ送る文字データのうち、文
字データ中の文字コードに出現頻度を求め、出現頻度の
高い文字から順に少ないビット数の文字コードを割り当
てて、その割り当ててた文字コードとシフトJISなど
の規格化された文字コードとの対応表をプリンタ側に送
ることを特徴とするプリンタ装置。
1. A printer driver for a printer device, wherein the printer device and a PC are connected to a network or the like, and the printer driver of the printer device sends data printed from an application of the PC to the printer device for each image, graphics, and character drawing object. Of the character data in the character data to be sent, the character code with the smaller number of bits is assigned in order from the character with the highest appearance frequency, and the assigned character code is standardized by shift JIS, etc. A printer for transmitting a correspondence table of the character codes to the printer.
【請求項2】 割り当てた文字コードのみプリンタへ送
り、このプリンタ側では、PCから送られてきた文字コ
ードから対応する文字を認識して印刷することを特徴と
する請求項1に記載のプリンタ装置。
2. The printer device according to claim 1, wherein only the assigned character code is sent to the printer, and the printer recognizes and prints the corresponding character from the character code sent from the PC. .
【請求項3】 出現頻度の高い単語に少ないビット数の
文字コードを割り当て、その割り当てた文字コードとシ
フトJISコードなどの規格化された文字コードの変換
テーブルをプリンタ側へ送ることを特徴とする請求項1
または2に記載のプリンタ装置。
3. A character code having a small number of bits is assigned to a word having a high frequency of occurrence, and a conversion table of the assigned character code and a standardized character code such as a shift JIS code is sent to the printer. Claim 1
Or the printer device according to 2.
【請求項4】 文字コードの対応テーブルをプリンタ側
に送ることなく、プリンタ側のPC側で割り当てた文字
コードから、それに対応する規格化されたシフトJIS
などの文字コードを認識することを特徴とする請求項3
に記載のプリンタ装置。
4. A standardized shift JIS corresponding to a character code assigned on the PC side of the printer without transmitting the correspondence table of the character code to the printer side.
4. A character code for recognizing a character code such as
The printer device according to 1.
JP2001078133A 2001-03-19 2001-03-19 Printer Pending JP2002278726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001078133A JP2002278726A (en) 2001-03-19 2001-03-19 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001078133A JP2002278726A (en) 2001-03-19 2001-03-19 Printer

Publications (1)

Publication Number Publication Date
JP2002278726A true JP2002278726A (en) 2002-09-27

Family

ID=18934787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001078133A Pending JP2002278726A (en) 2001-03-19 2001-03-19 Printer

Country Status (1)

Country Link
JP (1) JP2002278726A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006287518A (en) * 2005-03-31 2006-10-19 Fujitsu Ltd Compression rule generation method, compression communication device, and program
JP2008140179A (en) * 2006-12-01 2008-06-19 Canon Inc Document data processing method, document data preparation device and document data processing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006287518A (en) * 2005-03-31 2006-10-19 Fujitsu Ltd Compression rule generation method, compression communication device, and program
JP4548184B2 (en) * 2005-03-31 2010-09-22 富士通株式会社 Compression rule generation method, compression communication apparatus, and program
JP2008140179A (en) * 2006-12-01 2008-06-19 Canon Inc Document data processing method, document data preparation device and document data processing system

Similar Documents

Publication Publication Date Title
US7302106B2 (en) System and method for ink or handwriting compression
CN109660527B (en) Compression transmission method for printer data
JP2000295113A (en) Huffman coded data compressor
JP4906506B2 (en) Divided run-length encoding method and apparatus
JP3278298B2 (en) Bitmap data compression method and compression apparatus
US6785424B1 (en) Encoding method and apparatus for compressing a data structure having two or more dimensions, decoding method, and storage medium
JP3106021B2 (en) Pattern data compression method and apparatus and output method and apparatus
JP2008311792A (en) Device for encoding image and control method therefor
JP3327650B2 (en) Recording device
US6721456B1 (en) Color image data and control bit compression scheme with run length encoding
US7196802B2 (en) Image processing device having compression judgement
JP2002278726A (en) Printer
US20080025620A1 (en) Data compression apparatus and data compressing program storage medium
US7010171B2 (en) Image quality processing of a compressed image
JPH07271528A (en) Print system
US7969616B2 (en) Systems and methods for efficient print job compression
JP4435586B2 (en) Data compression apparatus and data compression program
JP3514027B2 (en) Recording device, recording system, image transfer system
JP4095454B2 (en) Data decoding apparatus and data decoding method
JP2007136953A (en) Printer
JP2006128944A (en) Information processing device, information processing method, image forming device, program, storage medium, and printing system
JP3507387B2 (en) Character printing processing method by host computer and printer driver
US20020191225A1 (en) Methods and arrangements for compressing raster data
JPH09200536A (en) Coder and decoder
JP3061562B2 (en) Printing system, information processing device, information processing method, printing device, and printing method