JP2745546B2 - Printer device - Google Patents
Printer deviceInfo
- Publication number
- JP2745546B2 JP2745546B2 JP63178575A JP17857588A JP2745546B2 JP 2745546 B2 JP2745546 B2 JP 2745546B2 JP 63178575 A JP63178575 A JP 63178575A JP 17857588 A JP17857588 A JP 17857588A JP 2745546 B2 JP2745546 B2 JP 2745546B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- image data
- data
- printing
- bit image
- 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 - Lifetime
Links
Landscapes
- Record Information Processing For Printing (AREA)
- Dot-Matrix Printers And Others (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、キャラクタとビットイメージとを、同時に
印字するプリンター装置に関する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer device for simultaneously printing a character and a bit image.
一般に、ホスト装置がプリンターに送るデータの形態
には、文書データのように印刷する文字をキャラクタコ
ードにより送る形態と、画像データのようにイメージを
そのままビットマップデータとして送る形態とがあり、
そのデータ形態が相違することから別々のシーケンスで
印字を行っている。In general, the form of data sent from the host device to the printer includes a form in which characters to be printed are transmitted by a character code, such as document data, and a form in which an image is transmitted as bitmap data as it is, such as image data.
Since the data forms are different, printing is performed in different sequences.
つまり、このような従来のプリンタでは、1行中にキ
ャラクタとビットイメージが混在するような場合には、
1行を何回にも分けて印字しなくてはならなかった。ま
た、最近よく使用されているワードプロセッサ等では、
左右揃え等の機能を実現するために文字間の空白をビッ
トイメージデータとして送り、調整していることが多
い。このため、ワードプロセッサ等で文書を印字する際
には、キャラクタデータとビットイメージデータが交互
に送られてくるために、一文字につき2回の印字処理を
行わなくてはならなかった。In other words, in such a conventional printer, when characters and bit images are mixed in one line,
One line had to be printed several times. Also, in a word processor and the like that are often used recently,
In many cases, white space between characters is sent as bit image data and adjusted to realize functions such as left-right alignment. For this reason, when printing a document with a word processor or the like, character data and bit image data are sent alternately, so that printing processing must be performed twice for each character.
本発明はこのような問題に鑑みてなされたものであっ
て、その目的とするところは、キャラクタデータとビッ
トイメージデータを同一行に混在させて印字するような
場合に、その印字を同時に行い、プリンターのスループ
ットを向上させることにある。The present invention has been made in view of such a problem, and a purpose thereof is to simultaneously perform printing when character data and bit image data are mixed and printed on the same line. It is to improve the throughput of a printer.
本発明のプリンター装置は、ホスト装置から送られて
くる文字コードデータを受信し、内蔵する指定された書
体の文字パターン格納手段から前記文字コードデータに
対応する文字パターンを読み出して記録用紙に印刷を行
うとともに、画像データ等のビットイメージデータの印
刷が可能なプリンター装置において、前記記録用紙に出
力する前記文字パターン格納手段から読み出した前記指
定された書体の文字パターンを格納するイメージバッフ
ァと、同一行に印刷する前記指定された書体の文字パタ
ーンの印刷密度と、前記ビットイメージデータの印刷密
度とを比較し、一度の走査で印刷が可能か判別する判別
手段と、前記判別手段が同時に印刷が可能であると判断
した場合に、前記ビットイメージデータを前記指定され
た書体の文字パターンの印刷密度に変換し、前記指定さ
れた書体の文字パターンとともに前記イメージバッファ
に格納する変換手段を備え、文字とビットイメージデー
タの混在する行を一度の走査で印刷可能としたことを特
徴とする。The printer device of the present invention receives character code data sent from a host device, reads a character pattern corresponding to the character code data from a built-in character pattern storage means of a designated typeface, and prints the character pattern on recording paper. And a printer device capable of printing bit image data such as image data, in the same line as an image buffer for storing a character pattern of the specified typeface read from the character pattern storage means to be output on the recording paper. Comparing the print density of the character pattern of the designated typeface to be printed with the print density of the bit image data, and determining whether printing can be performed by one scan; and the determining means can perform printing simultaneously. If the bit image data is determined to be a character pattern of the designated typeface, Conversion means for converting the print density into a print density and storing the same in the image buffer together with the character pattern of the designated typeface, so that a line in which characters and bit image data are mixed can be printed by a single scan. .
印字文字の印字ピッチと、ホスト装置より送られてき
たビットイメージデータの印字ピットとから同時に印字
が可能か判断し、可能な場合には、実質的に印字ピッチ
が同じになる様にデータを補間し、同時印字を行う。Determines whether printing is possible at the same time based on the printing pitch of printing characters and the printing pit of bit image data sent from the host device, and if possible, interpolates data so that the printing pitch is substantially the same And perform simultaneous printing.
第2図は、本発明の実施例のハード構成を示したブロ
ック図である。図中(20)はCPU、(21)はプログラム
を格納してある読み出し専用メモリ(ROM)、(22)は
ラインバッファが形成されるRAM1、(23)はイメージバ
ッファが形成されるRAM2、(24)はキャラクタの印字パ
ターンが格納されているCGROMである。FIG. 2 is a block diagram showing a hardware configuration of the embodiment of the present invention. In the figure, (20) is a CPU, (21) is a read-only memory (ROM) storing a program, (22) is a RAM1 in which a line buffer is formed, (23) is a RAM2 in which an image buffer is formed, ( 24) is a CGROM in which character print patterns are stored.
第3図は、上記ラインバッファの構造を示した図で、
1項4バイトで構成されている。FIG. 3 shows the structure of the line buffer.
Each item consists of 4 bytes.
キャラクデータの場合は、第4図に示すように第1及
び第2バイト目に各種フラグを記憶するようになってお
り、本実施例では、IMAGEフラグ、ドラフトフラグ、NLQ
フラグ、エリートフラグ、パイカフラグ、縮小フラグ、
強調フラグ、二重打フラグ、スクリプトフラグ、アンダ
ーラインフラグ、オーバーラインフラグ、拡大フラグ、
縦拡大フラグ、プロポーショナルフラグ、イタリックフ
ラグ、ダウンロードフラグ、以上の16フラグを記憶して
いる。そして第3及び第4バイト目(D2、D3)に、CGRO
M(24)上の印字対象文字のビットパターンが格納され
た先頭アドレスを記憶するようになっている。In the case of character data, various flags are stored in the first and second bytes as shown in FIG. 4. In this embodiment, the IMAGE flag, the draft flag, the NLQ
Flag, elite flag, pica flag, reduction flag,
Emphasis flag, double hit flag, script flag, underline flag, overline flag, enlargement flag,
The vertical expansion flag, the proportional flag, the italic flag, the download flag, and the above 16 flags are stored. Then, in the third and fourth bytes (D2, D3), CGRO
The head address where the bit pattern of the print target character on M (24) is stored is stored.
一方、ビットイメージデータの場合は、第5図に示す
ように、第1バイト目(アトリビュート)は、最上位ビ
ットがキャラクタかビットイメージかを判別するための
IMAGEフラグであり、0〜3ビットにデータの間に挿入
されるスペースのドット数が格納されている。そして第
2及び第3バイト目(D1、D2)には、2バイト形式でビ
ットイメージのデータの数が、更に第4バイト目(D3)
には、パターンデータが格納されている。On the other hand, in the case of bit image data, as shown in FIG. 5, the first byte (attribute) is used to determine whether the most significant bit is a character or a bit image.
This is an IMAGE flag, and the number of dots of a space inserted between data is stored in 0 to 3 bits. In the second and third bytes (D1, D2), the number of bit image data in the 2-byte format is further added to the fourth byte (D3).
Stores pattern data.
次に、このラインバッファにデータを格納するまでの
手順を第6図に沿って説明する。Next, a procedure until data is stored in the line buffer will be described with reference to FIG.
ホスト装置よりデータが入力されると、そのデータが
キャラクタかビットイメージかを判別し、キャラクタの
場合には、アトリビユートのIMAGEフラグをクリアし、
現在の各仕様からドラフトフラグ、NLQフラグ、‥‥の
各種フラグを設定し、印字対象文字のビットパターンの
格納先アドレスをD2,D3に設定する。When data is input from the host device, it is determined whether the data is a character or a bit image. If the data is a character, the attribute IMAGE flag is cleared,
Set the draft flag, NLQ flag, and various flags from the current specifications, and set the storage destination address of the bit pattern of the print target character to D2, D3.
ホスト装置からの入力がビットイメージの場合には、
キャラクタと同時に印字可能かどうかを判別するため
に、まずキャラクタとビットイメージの印字ピッチが一
致するかどうか調べる。第7図に示すようなキャラクタ
とビットイメージを同時に印字しようとした場合、両者
の印字ピッチは一致しているため印字ピッチ的には可能
になる。また第8図に示すような場合には、両者のピッ
チは一致してはいないが、ビットイメージデータの印字
ピッチがキャラクタデータの印字ピッチの2倍であるか
ら、ビットイメージデータのデータ間にスペースのデー
タを1つ挿入すれば実質的に印字ピッチを同じくするこ
とができる。この際のスペースの数がアトリビュートの
0〜3ビット目に格納される。If the input from the host device is a bit image,
In order to determine whether printing is possible at the same time as the character, it is first checked whether the printing pitch of the character and the bit image match. When the character and the bit image as shown in FIG. 7 are to be printed at the same time, the printing pitches of the two coincide with each other. In the case shown in FIG. 8, although the pitches of the two do not match, the printing pitch of the bit image data is twice the printing pitch of the character data. If one piece of data is inserted, the printing pitch can be made substantially the same. The number of spaces at this time is stored in the 0th to 3rd bits of the attribute.
次に、データのパターンについて同時に印字可能かど
うか検討する。本実施例の場合では、ビットイメージデ
ータは1バイトに圧縮してD3に格納するため、同一のパ
ターンが連続している場合にのみ同時印字が可能とな
る。Next, it is examined whether data patterns can be printed simultaneously. In the case of this embodiment, the bit image data is compressed to 1 byte and stored in D3, so that simultaneous printing is possible only when the same pattern is continuous.
以上の2点について検討し、同時印字が可能な場合に
は、アトリビュートのIMAGEフラグをセットし、D1,D2に
データ数、D3にパターンを格納する。Considering the above two points, if simultaneous printing is possible, the IMAGE flag of the attribute is set, the number of data is stored in D1 and D2, and the pattern is stored in D3.
このようにして、ラインバッファにホスト装置からの
データを中間コード化して格納した後、イメージデータ
をイメージバッファに生成する。第9図は、このイメー
ジデータを生成する過程を示すフローチャートである。In this way, after the data from the host device is intermediate-coded and stored in the line buffer, the image data is generated in the image buffer. FIG. 9 is a flowchart showing a process of generating the image data.
まず、ラインバッファより、4バイトからなる1項目
を取り出し、アトリビュートのIMAGEフラグをチェック
する。First, one item consisting of 4 bytes is extracted from the line buffer, and the IMAGE flag of the attribute is checked.
IMAGEフラグがクリアされていた場合にはキャラクタ
データであるので、D2,D3に格納されているアドレスデ
ータをもちいてCGROM(24)よりキャラクタパターンを
読み出し、アトリビュートに応じた修飾を施しイメージ
バッファにはイメージデータを格納する。IMAGEフラグ
がセットされていた場合にはビットイメージデータであ
るので、D1,D2に格納されている回数データをレジスタC
Xに、アトリビュートの下位4ビットの値をレジスタDX
に、D3に格納されているパターンデータをレジスタAに
セットし、以下フローチャートに沿った処理行って、実
質的にキャラクタの印字ピッチと同じ印字ピッチのイメ
ージデータをイメージバッファに格納する。If the IMAGE flag has been cleared, it is character data, so the character pattern is read from the CGROM (24) using the address data stored in D2 and D3, and modified according to the attributes. Stores image data. If the IMAGE flag is set, it is bit image data, so the count data stored in D1 and D2 is stored in register C.
X is the value of lower 4 bits of the attribute in the register DX
Then, the pattern data stored in D3 is set in the register A, and the processing according to the flowchart is performed to store the image data of the print pitch substantially equal to the print pitch of the character in the image buffer.
以上の処理を行うことによりイメージバッファには、
キャラクタとビットイメージが混在した印字パターンが
生成され、同時印字が可能となる。By performing the above processing, the image buffer contains
A print pattern in which characters and bit images are mixed is generated, and simultaneous printing is possible.
上記実施例では、ホスト装置よりのキャラクタ及びビ
ットイメージデータの入力を想定しているが、水平タブ
や、印字位置指定などのデータに対しても、現在位置か
ら指定場所までの間をNULLデータのビットイメージに変
換することにより、同様の動作を実行できる。この場
合、第10図に示すように、現在A点におり、タブによっ
てB点まで次の印字位置を進ませる場合には、(B−
A)/(ビットイメージピッチ)個のNULLデータのビッ
トイメージが入力されたとして扱えば良い。In the above embodiment, input of character and bit image data from the host device is assumed. However, for data such as horizontal tabs and print position designation, NULL data is sent from the current position to the designated position. By converting to a bit image, a similar operation can be performed. In this case, as shown in FIG. 10, if the user is currently at point A and the next print position is advanced to point B by a tab, (B-
A) / (Bit Image Pitch) Null data bit images may be treated as being input.
以上のように、本発明によれば、キャラクタとビット
イメージデータを同時に印字することが可能になるの
で、プリンターのスループットを向上させることができ
る。As described above, according to the present invention, character and bit image data can be printed at the same time, so that the throughput of the printer can be improved.
第1図は本発明のブロック図、第2図は実施例のハード
ウエア構成図、第3、4、5図はラインバッファの説明
図、第6、9図は実施例のフローチャート、第7、8図
は同時印字が可能なパターン例を示す図、第10図は実施
例の説明図である。FIG. 1 is a block diagram of the present invention, FIG. 2 is a hardware configuration diagram of an embodiment, FIGS. 3, 4, and 5 are explanatory diagrams of a line buffer, and FIGS. FIG. 8 is a diagram showing an example of a pattern capable of simultaneous printing, and FIG. 10 is an explanatory diagram of the embodiment.
Claims (1)
ータを受信し、内蔵する指定された書体の文字パターン
格納手段から前記文字コードデータに対応する文字パタ
ーンを読み出して記録用紙に印刷を行うとともに、画像
データ等のビットイメージデータの印刷が可能なプリン
ター装置において、 前記文字コードデータの文字パターン格納先と書体の属
性を中間コードとして格納するラインバッファと、 同一行に印刷する前記指定された書体の文字パターンの
印刷密度に、前記ビットイメージデータを変換可能か判
別する第1の判別手段と、 前記ビットイメージデータが中間コードに圧縮できる連
続したパターンであるか判別する第2の判別手段と、 前記第1の判別手段が前記指定された書体の文字パター
ンの印刷密度に変換可能と判別し、且つ、前記第2の判
別手段が中間コードに圧縮できる連続したパターンであ
ると判別した場合に、前記ビットイメージデータをビッ
トイメージデータの属性を付した中間コードに変換して
前記ラインバッファに格納する変換手段と、 印刷指令に応答して、前記ラインバッファに格納された
中間コードを基に記録用紙に印刷する印刷イメージをビ
ットマップ化して格納するイメージバッファを備え、 前記イメージバッファの前記印刷イメージを印刷手段に
出力して文字とビットイメージデータの混在する行を一
度の走査で印刷可能としたことを特徴とするプリンター
装置。And receiving character code data sent from a host device, reading a character pattern corresponding to the character code data from a built-in character pattern storage means of a designated typeface, and printing the character pattern on recording paper. A printer capable of printing bit image data such as image data, a line buffer for storing a character pattern storage location of the character code data and an attribute of a font as an intermediate code, and the designated font for printing on the same line. First determining means for determining whether the bit image data can be converted to the print density of the character pattern, and second determining means for determining whether the bit image data is a continuous pattern that can be compressed into an intermediate code. The first determining means determines that the print density of the character pattern of the designated typeface can be converted. If the second determining means determines that the pattern is a continuous pattern that can be compressed into an intermediate code, the bit image data is converted into an intermediate code with an attribute of bit image data, and is converted into the line buffer. Conversion means for storing, and an image buffer for storing, in response to a print command, a print image to be printed on recording paper based on the intermediate code stored in the line buffer in a bitmap format, wherein the printing of the image buffer is performed. A printer device wherein an image is output to a printing means so that a line in which characters and bit image data are mixed can be printed by one scanning.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63178575A JP2745546B2 (en) | 1988-07-18 | 1988-07-18 | Printer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63178575A JP2745546B2 (en) | 1988-07-18 | 1988-07-18 | Printer device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0226765A JPH0226765A (en) | 1990-01-29 |
JP2745546B2 true JP2745546B2 (en) | 1998-04-28 |
Family
ID=16050873
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63178575A Expired - Lifetime JP2745546B2 (en) | 1988-07-18 | 1988-07-18 | Printer device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2745546B2 (en) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60167569A (en) * | 1984-02-10 | 1985-08-30 | Fujitsu Ltd | Image data processing method |
JPS63182969A (en) * | 1987-01-23 | 1988-07-28 | Sharp Corp | Facsimile equipment |
-
1988
- 1988-07-18 JP JP63178575A patent/JP2745546B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPH0226765A (en) | 1990-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2861404B2 (en) | Printing device | |
JP2745546B2 (en) | Printer device | |
US4623978A (en) | Print control apparatus having line buffer | |
JP2584973B2 (en) | Recognition result output method in character recognition device | |
JP2783601B2 (en) | Information processing device | |
JP2887928B2 (en) | Image data output device | |
JP2572074B2 (en) | Character processor | |
JPS59201870A (en) | Printer | |
JPH0371028B2 (en) | ||
JP2854344B2 (en) | How to display mixed mode documents | |
JP3072428B2 (en) | Character display device | |
JPH0442193B2 (en) | ||
JPS60109888A (en) | Character processor | |
JPH06100905B2 (en) | Pattern output method | |
JP3352563B2 (en) | Character output device | |
JP2951809B2 (en) | Handwritten font printing method | |
JPS63242561A (en) | Font reducing system | |
JPH0216068A (en) | Image forming device | |
JPS5936314B2 (en) | Display device control method | |
JPS6364086A (en) | Output unit | |
JPS6189861A (en) | Printing controller | |
JP2636312B2 (en) | Printer interface device | |
JPS61175675A (en) | Character modification control system by body face size replacement | |
JPS609759A (en) | Printer | |
JPH0635190B2 (en) | Character printing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080213 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090213 Year of fee payment: 11 |
|
EXPY | Cancellation because of completion of term | ||
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090213 Year of fee payment: 11 |