JP3225891B2 - Printer with error detection function - Google Patents

Printer with error detection function

Info

Publication number
JP3225891B2
JP3225891B2 JP15691897A JP15691897A JP3225891B2 JP 3225891 B2 JP3225891 B2 JP 3225891B2 JP 15691897 A JP15691897 A JP 15691897A JP 15691897 A JP15691897 A JP 15691897A JP 3225891 B2 JP3225891 B2 JP 3225891B2
Authority
JP
Japan
Prior art keywords
error
printer
data
error detection
character
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
JP15691897A
Other languages
Japanese (ja)
Other versions
JPH113193A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP15691897A priority Critical patent/JP3225891B2/en
Publication of JPH113193A publication Critical patent/JPH113193A/en
Application granted granted Critical
Publication of JP3225891B2 publication Critical patent/JP3225891B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プリンタに関し、
特にページ記述言語のインタプリタを内蔵し、エラー検
出機能を備えるプリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer,
In particular, the present invention relates to a printer having a built-in page description language interpreter and having an error detection function.

【0002】[0002]

【従来の技術】図4に、従来のページプリンタの処理の
流れを示すブロック図を示す。同図において、PC(ホ
ストコンピュータ)402から送られてきた印刷命令及
び各コマンド、データはプリンタコントローラ401に
よって処理される。プリンタコントローラ401では、
PC402から送られてきたデータ等は、受信部403
で受信された後、解析部・編集部404で解析され、解
析された命令は、それぞれ文字描画、イメージ描画、図
形描画に分類される。分類された文字描画はアウトライ
ンフォントデータを格納するアウトラインフォントデー
タ部405とデータの授受を行う文字描画部406でビ
ットマップフォントデータ部407を用いて処理され、
また、イメージ描画はイメージ描画部408にて、図形
描画は図形描画部409にてそれぞれ処理される。処理
された命令はビデオデータに変換され、フレームバッフ
ァ410で各データを構成し、1ページ分の印刷イメー
ジを生成した後、プリンタエンジン411へ送られ、印
字される。
2. Description of the Related Art FIG. 4 is a block diagram showing a processing flow of a conventional page printer. In the figure, a print command, each command, and data sent from a PC (host computer) 402 are processed by a printer controller 401. In the printer controller 401,
Data and the like sent from the PC 402 are received by the receiving unit 403.
After receiving the command, the command is analyzed by the analysis unit / editing unit 404, and the analyzed commands are classified into character drawing, image drawing, and graphic drawing. The classified character drawing is processed using an outline font data unit 405 for storing outline font data and a character drawing unit 406 for transmitting and receiving data using a bitmap font data unit 407.
The image drawing is processed by the image drawing unit 408, and the graphic drawing is processed by the graphic drawing unit 409. The processed command is converted into video data, each data is composed by the frame buffer 410, a print image for one page is generated, and then sent to the printer engine 411 for printing.

【0003】このようなページプリンタでは言語エラー
が発生したときは、実行中のデータが捨てられ、アイド
ル状態に戻るのみであった。この問題点を解決するた
め、印字命令の処理中にエラーが発生した際に、これを
検知し、エラー発生を表示するプリンタが特開平2−3
07762号公報で提案されている。
In such a page printer, when a language error occurs, data being executed is discarded, and the page printer simply returns to an idle state. In order to solve this problem, a printer that detects an error during processing of a print command and displays the occurrence of the error has been disclosed in Japanese Patent Laid-Open Publication No. 2-3-3.
No. 07762 is proposed.

【0004】図5に、この公報に開示されているプリン
タの一実施例のブロック図を示す。このプリンタ501
は、ページ記述言語インタプリタ502と言語エラーを
表示する表示手段503を内蔵する。
FIG. 5 is a block diagram showing an embodiment of the printer disclosed in this publication. This printer 501
Incorporates a page description language interpreter 502 and a display means 503 for displaying a language error.

【0005】インターフェイス504より入力されたペ
ージ記述言語で書かれたデータは、ページ記述言語イン
タプリタ502により解釈され、実行される。
Data written in a page description language input from an interface 504 is interpreted and executed by a page description language interpreter 502.

【0006】ページ記述言語インタプリタ502がイン
ターフェイス504より入力されたデータに言語エラー
を認知すると、プリンタ501の表面に取り付けられた
表示手段503に信号を送り、言語エラーを表示する。
使用者はこの表示により言語エラーを知ることができ
る。なお、この発明では、表示手段503を設ける代わ
りに、言語エラーの認知を音声出力装置による音声で示
したり、印字出力して示すようにすることもできる。
When the page description language interpreter 502 recognizes a language error in the data input from the interface 504, it sends a signal to a display means 503 attached to the surface of the printer 501 to display the language error.
The user can know the language error from this display. According to the present invention, instead of providing the display means 503, the recognition of the language error may be indicated by voice using a voice output device or printed out.

【0007】このように、前記公報で提案されているプ
リンタは、言語エラーを検知した場合に、エラー発生を
表示する。
As described above, the printer proposed in the above publication displays an error occurrence when a language error is detected.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、例え
ば、使用者がホストコンピュータ上において誤ったプリ
ンタドライバを選択して印字したなどの理由により、イ
メージを印字すべき命令が、文字を印字する命令に置き
換わって送られてきた場合、イメージデータが文字コー
ドとして解釈され、意味をなさない文字列を印字してし
まう。この場合の文字列は大量に印刷されることが多
く、大量の紙が無駄になる上、印字が停止されるまで使
用者は無駄な時間を費やしてしまうという問題がある。
However, the instruction to print an image is replaced by the instruction to print characters because, for example, the user has selected and printed an incorrect printer driver on the host computer. If sent, the image data will be interpreted as a character code, and a meaningless character string will be printed. In this case, the character string is often printed in a large amount, so that a large amount of paper is wasted, and a user wastes time until the printing is stopped.

【0009】前記公報で提案されているプリンタでは、
この種のエラーを検出することができない。
In the printer proposed in the above publication,
This type of error cannot be detected.

【0010】本発明は上記問題点にかんがみてなされた
ものであり、意味をなさない文字列が大量に印字されて
しまうことを防止することができるエラー検出機能付き
プリンタの提供を目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to provide a printer with an error detection function capable of preventing a large amount of meaningless character strings from being printed.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載のエラー検出機能付きプリンタは、
ージ記述言語の言語エラーを認知できるプリンタであっ
て、前記ページ記述言語の中の印刷すべき文字コード
の目的とする言語とそれ以外の言語の割合をチェックし
てエラーを検出するエラー検出手段を備えた構成として
ある。
To achieve the above object, according to an aspect of the error detection function printer of claim 1, wherein the pair
Printer that can recognize language errors in the page description language.
An error detecting means for detecting an error by checking a ratio of a target language in a character code to be printed in the page description language and a language other than the target language.

【0012】請求項2記載のエラー検出機能付きプリン
タは、ページ記述言語の言語エラーを認知できるプリン
タであって、前記ページ記述言語の中の印刷すべき文字
コード中の目的とする言語以外の言語が一定数以上連続
した場合、これを検出してエラーとして処理するエラー
検出手段を備えた構成としてある。
A pudding with an error detection function according to claim 2.
Is a printer that can recognize page description language language errors.
Data to be printed in the page description language
More than a certain number of languages other than the target language in the code
Error, it detects this and treats it as an error
The configuration includes a detection unit.

【0013】このような構成の発明によれば、印刷する
文字コードをチェックするので、プリンタドライバを誤
って選択した場合でも、意味をなさない大量の文字列を
検出でき、これをエラーとして処理できるため、意味を
なさない大量の文字列を印字することを防止できる。
According to the invention having such a configuration, printing is performed.
Check the character code.
If you select a large number of strings that do not make sense
Can be detected and treated as an error,
It is possible to prevent a large amount of character strings from being printed.

【0014】特に、請求項1の発明によれば、エラーを
検出する方法として、印字する文字の中の目的の言語の
割合をチェックすることにより、意味をなさない大量の
文字を検出でき、この印刷を防止することができる。
In particular, according to the first aspect of the invention, as a method of detecting an error, a large number of meaningless characters can be detected by checking a ratio of a target language in characters to be printed. Printing can be prevented.

【0015】[0015]

【0016】また、特に、請求項2の発明によれば、
ラーを検出する方法として、印字する文字の中の目的の
言語以外の言語が一定数以上連続することを検出するこ
とにより、意味をなさない大量の文字を検出し、この印
刷を防止することができる。
In particular, according to the second aspect of the present invention, as a method of detecting an error, the meaning is detected by detecting that a certain number of languages other than the target language in the characters to be printed continue for a certain number or more. A large number of characters not to be detected can be detected and this printing can be prevented.

【0017】請求項記載のエラー検出機能付きプリン
タは、前記エラー検出手段を制御し、印刷すべき文字コ
ードをチェックするか否かを切り替えることができるエ
ラー検出機能制御手段を備える構成としてある。
According to a third aspect of the present invention, there is provided a printer having an error detection function, comprising an error detection function control means capable of controlling the error detection means and switching whether or not to check a character code to be printed.

【0018】このような構成の発明によれば、エラーチ
ェック機能をオフさせる手段を設けているので、これに
より、例えばダンプリストを印刷する場合のように、も
ともと意味をなさない文字列を印刷する目的にも対応す
ることができる。
According to the invention having such a configuration, since the means for turning off the error check function is provided, a character string which originally has no meaning is printed, for example, when a dump list is printed. It can respond to the purpose.

【0019】[0019]

【発明の実施の形態】以下、本発明のエラー検出機能付
きプリンタの実施形態について、図面を参照しながら説
明するが、本発明は下記の実施の形態に限定されるもの
ではない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of a printer with an error detection function according to the present invention will be described with reference to the drawings, but the present invention is not limited to the following embodiment.

【0020】図1は、本実施形態にかかるプリンタコン
トローラの処理の流れを示すブロック図である。図1に
おいて、本実施形態にかかるプリンタコントローラ10
1は、PC(ホストコンピュータ)102とプリンタエ
ンジン112間に接続され、PC102との間でデータ
の授受を行い、PC102からの印刷データを処理して
プリンタエンジン112にドットデータを送り出して印
刷するように接続されている。
FIG. 1 is a block diagram showing a processing flow of the printer controller according to the present embodiment. In FIG. 1, a printer controller 10 according to the present embodiment
1 is connected between a PC (host computer) 102 and the printer engine 112, exchanges data with the PC 102, processes print data from the PC 102, sends dot data to the printer engine 112, and performs printing. It is connected to the.

【0021】プリンタコントローラ101の構成につい
て説明する。プリンタコントローラ101は、PC10
2から送られてきた印刷命令やデータを受信する受信部
103を有し、受信部103は解析部・編集部104に
受信したデータを送り、解析部・編集部104はこのデ
ータを解析して文字データ、イメージデータ、図形デー
タに分類する。そして、解析部・編集部104は文字デ
ータをエラー検出部120を介して文字描画部106
に、イメージデータをイメージ描画部107に、図形デ
ータを図形描画部108にそれぞれ送る。
The configuration of the printer controller 101 will be described. The printer controller 101 is connected to the PC 10
2 has a receiving unit 103 for receiving a print command and data sent from the receiving unit 2. The receiving unit 103 sends the received data to the analyzing unit / editing unit 104, and the analyzing unit / editing unit 104 analyzes the data. Classify into character data, image data and graphic data. Then, the analyzing / editing unit 104 sends the character data to the character drawing unit 106 via the error detecting unit 120.
Then, the image data is sent to the image drawing unit 107, and the graphic data is sent to the graphic drawing unit 108.

【0022】文字描画部106は、アウトラインフォン
トのデータが入っているアウトラインフォントデータ部
109とデータの授受を行い、また、ビットマップフォ
ントのデータが入っているビットマップフォントデータ
部110からデータを受け、文字データから文字のビデ
オデータを構成する。イメージ描画部107はイメージ
データからイメージのビデオデータを構成し、図形描画
部108は図形データから図形のビデオデータを構成す
る。
Character drawing section 106 exchanges data with outline font data section 109 containing outline font data, and receives data from bitmap font data section 110 containing bitmap font data. , Character video data from the character data. The image drawing unit 107 forms video data of an image from the image data, and the figure drawing unit 108 forms video data of a figure from the figure data.

【0023】これらの文字描画部106、イメージ描画
部107、図形描画部108は、これらで構成されたそ
れぞれ文字、イメージ、図形で構成されたビデオデータ
をフレームバッファ111に送り、フレームバッファ1
11は、これらのビデオデータから印刷するページのビ
デオデータを構成するとともに、プリンタエンジン11
2へ送る前に一時記憶する。フレームバッファ111
は、一ページのビデオデータをプリンタエンジン112
に送り、印刷が行われる。
The character drawing unit 106, the image drawing unit 107, and the graphic drawing unit 108 send the video data composed of characters, images, and graphics, respectively, to the frame buffer 111, and
The printer engine 11 forms video data of a page to be printed from the video data.
Store it temporarily before sending to 2. Frame buffer 111
Transmits one page of video data to the printer engine 112.
And printing is performed.

【0024】上記エラー検出部120は、エラーを検出
するかどうかの切り替えや、エラーを検出する基準を制
御するエラー検出機能制御部121とデータの授受を行
う。また、エラー検出部120は、検出したエラーのデ
ータをエラー表示を行うオペレータパネル122に送る
とともに、PC102にエラーデータを送る。
The error detection unit 120 switches whether or not to detect an error, and exchanges data with an error detection function control unit 121 that controls a criterion for detecting the error. Further, the error detection unit 120 sends the data of the detected error to the operator panel 122 for displaying an error, and sends the error data to the PC 102.

【0025】次に、このようなプリンタコントローラの
機能について説明する。PC102より入力されたペー
ジ記述言語で記述された印刷命令やイメージデータ等
は、受信部103で受信され、この受信されたデータは
解析・編集部104に送られ、ここで解釈され、文字デ
ータ、イメージデータ、図形データとに分類される。文
字データは、エラー検出部120に送られ、エラー検出
機能制御部121で設定された基準に基づいてエラー検
出部120で、命令が正しく解釈され、処理されている
か否かが判断される。エラー検出部120で文字コード
の内容がチェックされた文字データは、文字描画部10
6に送られる。文字描画部106では、アウトラインフ
ォントデータ部に格納されている各種類の文字の輪郭線
の形状であるアウトラインフォントに基づいて文字デー
タからドットデータであるビデオデータを構成し、ま
た、ビットマップフォントデータ部110に格納されて
いるビットマップフォントに基づいて文字データからド
ットデータであるビデオデータを構成する。
Next, the function of such a printer controller will be described. A print command, image data, and the like described in a page description language input from the PC 102 are received by the receiving unit 103, and the received data is sent to the analyzing / editing unit 104, where the data is interpreted, and character data, It is classified into image data and graphic data. The character data is sent to the error detection unit 120, and based on the criteria set by the error detection function control unit 121, the error detection unit 120 determines whether the command is correctly interpreted and processed. The character data whose character code has been checked by the error detection unit 120 is stored in the character drawing unit 10.
Sent to 6. The character drawing section 106 forms video data which is dot data from the character data based on the outline font which is the shape of the outline of each type of character stored in the outline font data section. Video data which is dot data is formed from character data based on the bitmap font stored in the unit 110.

【0026】一方、解析部・編集部104で分類された
イメージデータは、イメージ描画部107に送られ、こ
こでイメージデータからイメージデータの中間色を表現
するための階調処理を行ってドットデータであるビデオ
データが構成される。また、解析部・編集部104で、
分類された図形データは図形描画部108に送られ、こ
こで円等の図形の描画や塗りつぶしを行って図形データ
からドットデータであるビデオデータが構成される。こ
れらの文字、イメージ、図形それぞれのビデオデータは
フレームバッファ111に送られ、フレームバッファ1
11でこれらから構成される印刷すべき1ページの画像
情報のビデオデータが構成されるとともに、このページ
のビデオデータを一時的に記憶する。そして、フレーム
バッファ111に記憶されているビデオデータは、順次
プリンタエンジン112に転送されて印刷される。
On the other hand, the image data classified by the analyzing / editing unit 104 is sent to the image drawing unit 107, where the image data is subjected to gradation processing for expressing an intermediate color of the image data, and converted into dot data. Certain video data is configured. In the analysis unit / editing unit 104,
The classified figure data is sent to the figure drawing unit 108, where a figure such as a circle is drawn or painted to form video data as dot data from the figure data. The video data of each of these characters, images, and graphics is sent to the frame buffer 111 and the frame buffer 1
At 11, the video data of the image information of one page to be printed composed of these is formed, and the video data of this page is temporarily stored. Then, the video data stored in the frame buffer 111 is sequentially transferred to the printer engine 112 and printed.

【0027】上記エラー検出部120では、解析部・編
集部で分類された文字コードをチェックしてエラーを検
出する。例えば、もし、使用者がPC上で誤ったプリン
タドライバを選択した場合、イメージを印字すべき命令
が文字を命令する命令に置き換わり、イメージデータが
文字データとして解釈され、意味をなさない大量の文字
コードがエラー検出部120に送られる。従来では、こ
の意味をなさない大量の文字コードがそのまま印刷され
てしまっていた。
The error detecting section 120 detects an error by checking the character codes classified by the analyzing section / editing section. For example, if the user selects the wrong printer driver on the PC, the command to print the image is replaced by the command to command the characters, the image data is interpreted as character data, and a large number of meaningless characters are used. The code is sent to the error detection unit 120. Conventionally, a large amount of character codes that do not make sense are printed as they are.

【0028】本発明にかかるプリンタでは、エラー検出
部120で文字コードをチェックし、それが文章として
意味をなすかどうかを判断することにより、エラーをチ
ェックする。
In the printer according to the present invention, the error detection unit 120 checks the character code and determines whether the character code is meaningful as a sentence, thereby checking the error.

【0029】エラーであるか否かの判断の基準の一例
を、図2のフローチャートを参照しながら説明する。こ
の例では、対象となる言語(図2は日本語)とそれ以外
の言語の割合を検出する方法である。
An example of a criterion for determining whether an error has occurred will be described with reference to the flowchart of FIG. In this example, a method of detecting a ratio between a target language (Japanese in FIG. 2) and other languages is used.

【0030】まず、ステップ201にて一ページ中の文
字コード列を順次読み込み、次にステップ202にて日
本語が含まれているか否かを判断する。文字列に日本語
を検出したときは、ステップ203にて日本語文字数の
カウントアップを行い、ステップ204にて全体の文字
数に日本語の文字数を加える。一方、文字コードが日本
語でない場合は、ステップ204にて全体の文字数に非
日本語の文字数を加える。この操作を文字列が終了する
まで行う(ステップ205)。一ページ中に含まれる文
字列が終了したときは、ステップ206にてエラー検出
機能制御部121の設定に基づき、日本語の割合が例え
ば50%以下であるか否かを判断する。日本語の割合が
50%以下であるときは、文章として意味をなさないも
のとみなしてエラーが発生したと判断し、ステップ20
7にてエラー処理を行う。
First, in step 201, character code strings in one page are sequentially read, and then, in step 202, it is determined whether Japanese is included. When Japanese is detected in the character string, the number of Japanese characters is counted up in step 203, and the number of Japanese characters is added to the total number of characters in step 204. On the other hand, if the character code is not Japanese, in step 204, the number of non-Japanese characters is added to the total number of characters. This operation is performed until the character string ends (step 205). When the character string included in one page ends, it is determined in step 206 whether or not the percentage of Japanese is, for example, 50% or less based on the setting of the error detection function control unit 121. If the percentage of Japanese is 50% or less, it is determined that an error has occurred because it is regarded as meaningless as a sentence, and step 20 is performed.
At step 7, error processing is performed.

【0031】一方、日本語の割合が文字列中の50%を
超えれば、文章として意味をなすものとみなしてそのま
ま印字処理を行う。
On the other hand, if the percentage of Japanese exceeds 50% of the character string, it is regarded as meaningful as a sentence and printing processing is performed as it is.

【0032】エラー処理は、例えばエラー通知や印刷命
令の再送要求をPC102に対して行い、同時にオペレ
ータパネル122にエラー信号を送り、エラーを表示さ
せ、エラーの発生を使用者へ伝える。また、音声により
エラーが発生したことを警告するようにしてもよい。こ
れにより、大量の意味をなさない文字列を印刷してしま
うことを防止でき、無駄な印刷を防ぎ、紙の消費量を抑
えることができ、使用者も無駄な時間を費やさなくても
すむ。なお、印刷を中止するかどうかの判断を、なんら
かの入力手段からの信号で使用者に行わせるようにする
こともできる。
In the error processing, for example, an error notification or a print command resend request is sent to the PC 102, and at the same time, an error signal is sent to the operator panel 122 to display the error and notify the user of the occurrence of the error. Alternatively, a warning that an error has occurred may be issued by voice. As a result, it is possible to prevent a large amount of meaningless character strings from being printed, to prevent useless printing, to reduce paper consumption, and to save the user from wasting time. It should be noted that the user can determine whether or not to cancel printing by using a signal from some input means.

【0033】なお、この例では日本語の割合が50%を
もって文章が意味をなすか否かの基準としたが、エラー
検出機能制御部121の設定を変えることにより、文章
にあわせて日本語の割合の基準を変えることができる。
また、英語の文章が対象の場合は、文字がアルファベッ
トの文字コードかどうかをチェックし、全体の文字に占
めるアルファベットの割合が一定の基準を超えるか否か
で判断することができる。
In this example, the standard of whether or not a sentence makes sense when the percentage of Japanese is 50% is used as a criterion. The percentage criterion can be changed.
In the case of English text, it is possible to check whether the character is a character code of an alphabet and determine whether the ratio of the alphabet to the whole character exceeds a certain standard.

【0034】次に、エラーであるか否かの判断の基準の
他の例を、図3を参照しながら説明する。この例は、例
えば日本語以外の文字列が長く続いた場合にエラー処理
を行う方法である。まず、ステップ301にて一ページ
中の文字列の読み込みを順次行い、次に、ステップ30
2にて文字が日本語であるか否かを判断する。文字が日
本語でなければ、ステップ303にて順次非日本語の文
字数をカウントアップする。一方、日本語の文字コード
を検出したときは、ステップ304にて非日本語の文字
数のカウントをクリアして、最初から非日本語の文字数
をカウントアップする。ステップ305にて、エラー検
出機能制御121の設定に基づいて、非日本語の文字列
が例えば80文字以上連続した場合は、文章として意味
をなさないものと判断し、ステップ306にて上記エラ
ー処理を行う。
Next, another example of a criterion for determining whether or not an error has occurred will be described with reference to FIG. This example is a method of performing error processing when a character string other than Japanese continues for a long time, for example. First, in step 301, character strings in one page are sequentially read.
At 2, it is determined whether the character is Japanese. If the character is not Japanese, the number of non-Japanese characters is sequentially counted up in step 303. On the other hand, when a Japanese character code is detected, the count of the number of non-Japanese characters is cleared in step 304, and the number of non-Japanese characters is counted up from the beginning. In step 305, based on the setting of the error detection function control 121, if a non-Japanese character string continues, for example, 80 characters or more, it is determined that it does not make sense as a sentence. I do.

【0035】一方、非日本語の文字列が80文字以上連
続しなかった場合は、ステップ307にて文字列の読み
込みを再度行い、一ページ中に含まれる文字列が終了す
るまで非日本語文字列が80文字以上連続するかどうか
をチェックする。一ページ中に非日本語文字列が80文
字以上連続しなかった場合は、エラーがないものと判断
してそのまま印刷を行う。
On the other hand, if the non-Japanese character string does not continue for more than 80 characters, the character string is read again in step 307, and the non-Japanese character string is read until the character string included in one page ends. Check if the sequence is more than 80 characters long. If the non-Japanese character string does not continue for more than 80 characters in one page, it is determined that there is no error and printing is performed as it is.

【0036】なお、ここでは非日本語の文字が80語連
続した場合を例にとって説明しているが、この基準はエ
ラー検出機能制御部121の設定を変えることで変更が
可能である。また、上記と同様に、アルファベットを対
象とすることにより、アルファベット以外の文字が長く
続いたときにエラーとして検出することもでき、英語に
対応が可能である。
Although the case where the non-Japanese characters are consecutive 80 words is described here as an example, this criterion can be changed by changing the setting of the error detection function control unit 121. Similarly to the above, by targeting alphabets, it is possible to detect an error when a character other than alphabets continues for a long time, and it is possible to correspond to English.

【0037】ただし、バイナリファイルのダンプリスト
を印刷するときなどは、文章でない文字列を印刷するも
のであるから、このときはエラー検出をしないように、
エラー検出機能制御部121でエラー検出部のエラーチ
ェック機能をオフにする。
However, when printing a dump list of a binary file, for example, a character string that is not a text is printed.
The error detection function control unit 121 turns off the error check function of the error detection unit.

【0038】[0038]

【発明の効果】以上のように、本発明のエラー検出機能
付きプリンタによれば、イメージデータなどが誤って文
字データとして解釈された場合、これを検出でき、エラ
ーが発生したことを使用者に知らせたり、印刷を停止さ
せたりすることで、無駄な印刷を防ぎ、紙の無駄な消費
を抑制することができる。
As described above, according to the printer with an error detection function of the present invention, when image data or the like is erroneously interpreted as character data, this can be detected and the user is notified that an error has occurred. By notifying or stopping printing, useless printing can be prevented and useless consumption of paper can be suppressed.

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

【図1】本発明にかかるプリンタのプリンタコントロー
ラの処理の流れを示すブロック図である。
FIG. 1 is a block diagram showing a processing flow of a printer controller of a printer according to the present invention.

【図2】本発明にかかるプリンタのプリンタコントロー
ラのエラー検出部におけるエラー検出処理の流れを示す
フローチャートである。
FIG. 2 is a flowchart illustrating a flow of an error detection process in an error detection unit of a printer controller of the printer according to the present invention.

【図3】本発明にかかるプリンタのプリンタコントロー
ラのエラー検出部におけるエラー検出の処理の別の流れ
を示すフローチャートである。
FIG. 3 is a flowchart illustrating another flow of an error detection process in the error detection unit of the printer controller of the printer according to the present invention.

【図4】従来のプリンタのプリンタコントローラのブロ
ック図である。
FIG. 4 is a block diagram of a printer controller of a conventional printer.

【図5】特開平4−179572号公報に開示されてい
るプリンタのブロック図である。
FIG. 5 is a block diagram of a printer disclosed in Japanese Patent Application Laid-Open No. 4-179572.

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

101 プリンタコントローラ 102 ホストコンピュータ 103 受信部 104 解析部・編集部 106 文字描画部 107 イメージ描画部 108 図形描画部 111 フレームバッファ 112 プリンタドライバ 120 エラー検出部 121 エラー検出機能制御部 122 オペレータパネル Reference Signs List 101 printer controller 102 host computer 103 reception unit 104 analysis unit / editing unit 106 character drawing unit 107 image drawing unit 108 graphic drawing unit 111 frame buffer 112 printer driver 120 error detection unit 121 error detection function control unit 122 operator panel

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ページ記述言語の言語エラーを認知でき
るプリンタであって、 前記ページ記述言語の中の印刷すべき文字コード中の目
的とする言語とそれ以外の言語の割合をチェックしてエ
ラーを検出するエラー検出手段を備えたことを特徴とし
たエラー検出機能付きプリンタ。
1. A method for recognizing a language error of a page description language.
Printer in the character code to be printed in the page description language.
Check the ratio of target language to other language
Error detection means for detecting errors
Printer with error detection function.
【請求項2】 ページ記述言語の言語エラーを認知でき
るプリンタであって、 前記ページ記述言語の中の印刷すべき文字コード 中の目
的とする言語以外の言語が一定数以上連続した場合、こ
れを検出してエラーとして処理するエラー検出手段を備
えたことを特徴としたエラー検出機能付きプリンタ。
2. It is possible to recognize a language error of a page description language.
A printer that, when the language other than the language of interest in the character code to be printed in said page description language are continuously more than a predetermined number, Bei error detection means for processing detects this as an error
Printer with an error detection function.
【請求項3】 前記エラー検出手段を制御し、印刷すべ
き文字コードをチェックするか否かを切り替えることが
できるエラー検出機能制御手段を備えることとした請求
1又は2に記載のエラー検出機能付きプリンタ。
Wherein controlling the error detection means, the error detection function according to claim 1 or 2 was further comprising an error detection function control means capable of switching whether to check a character code to be printed With printer.
JP15691897A 1997-06-13 1997-06-13 Printer with error detection function Expired - Fee Related JP3225891B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15691897A JP3225891B2 (en) 1997-06-13 1997-06-13 Printer with error detection function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15691897A JP3225891B2 (en) 1997-06-13 1997-06-13 Printer with error detection function

Publications (2)

Publication Number Publication Date
JPH113193A JPH113193A (en) 1999-01-06
JP3225891B2 true JP3225891B2 (en) 2001-11-05

Family

ID=15638229

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15691897A Expired - Fee Related JP3225891B2 (en) 1997-06-13 1997-06-13 Printer with error detection function

Country Status (1)

Country Link
JP (1) JP3225891B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005149124A (en) * 2003-11-14 2005-06-09 Advanced Telecommunication Research Institute International Electronic message filter system and computer program
US7656548B2 (en) 2005-09-12 2010-02-02 Kabushiki Kaisha Toshiba Printer and printing method
JP2007199779A (en) * 2006-01-23 2007-08-09 Canon Inc Printing device and printing control method and printing system
GB2531564B (en) 2014-10-22 2017-02-01 Dyson Technology Ltd Apparatus for separating particles from an airflow
JP7151477B2 (en) 2018-12-28 2022-10-12 京セラドキュメントソリューションズ株式会社 image forming device

Also Published As

Publication number Publication date
JPH113193A (en) 1999-01-06

Similar Documents

Publication Publication Date Title
JP3274517B2 (en) Printer that automatically determines the data stream language
US6476938B1 (en) Print control system and method
EP0862109A2 (en) Information output apparatus and method
JP3225891B2 (en) Printer with error detection function
JPH0664249A (en) Printing equipment having automatic emulation changeover function
JPH0263763A (en) Printing apparatus
US6052204A (en) Output apparatus and output method
JP2004330688A (en) Printer equipped with automatic distinction capability of page description language and character-encoding scheme
KR100529330B1 (en) Printing method and apparatus being capable of recovering error, computer-readable recording media for storing computer program
EP1022651A2 (en) Output control method and apparatus
JP3714827B2 (en) Character input device
US5727133A (en) Output apparatus with selection of externally stored control programs from input data
JPH09188039A (en) Image forming device and control method therefor
JP3049685B2 (en) Information output device and information output method
JP2001216121A (en) Printer and printing method
JP2744025B2 (en) Printing control device
JP3046483B2 (en) Print control device and print control method
JPH071771A (en) Printer
JPH0553739A (en) Method and device for selecting emulation
JPH09309247A (en) Method and apparatus for control of printing
JP2001175443A (en) Printing device and printing method and recording medium with printing control program
KR100306752B1 (en) Method for managing print error in printer
JP3714941B2 (en) Character input device
JPH01308674A (en) Electronic typewriter
KR0155258B1 (en) Method of buffer memory release in page printer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070831

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080831

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080831

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100831

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110831

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110831

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120831

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130831

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees