JPH0747332B2 - Printer print correction method - Google Patents

Printer print correction method

Info

Publication number
JPH0747332B2
JPH0747332B2 JP63125219A JP12521988A JPH0747332B2 JP H0747332 B2 JPH0747332 B2 JP H0747332B2 JP 63125219 A JP63125219 A JP 63125219A JP 12521988 A JP12521988 A JP 12521988A JP H0747332 B2 JPH0747332 B2 JP H0747332B2
Authority
JP
Japan
Prior art keywords
data
character
printing
bit
blank
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
Application number
JP63125219A
Other languages
Japanese (ja)
Other versions
JPH01294055A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63125219A priority Critical patent/JPH0747332B2/en
Publication of JPH01294055A publication Critical patent/JPH01294055A/en
Publication of JPH0747332B2 publication Critical patent/JPH0747332B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、10×14ないし16×16程度のドットマトリクス
で文字を構成するプリンタのキャラクタジェネレータの
圧縮データを展開するプリンタ印字補正方法に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer print correction method for expanding compressed data of a character generator of a printer that forms a character with a dot matrix of about 10 × 14 to 16 × 16. .

従来の技術 従来は文字をドットマトリクスで構成する際、最も簡単
な文字構成は5×7のドットマトリクスで構成してお
り、キャラクタジェネレータの中も5×7のドットマト
リクスで文字データを構成していた。
2. Description of the Related Art Conventionally, when a character is composed of a dot matrix, the simplest character composition is a 5 × 7 dot matrix, and character data is also composed of a 5 × 7 dot matrix in a character generator. It was

発明が解決しようとする課題 近年、表示をドットマトリクスで行う機器は高解像度化
が進んでいる。例えばドット間ピッチが1/3mmであった
ものが1/6mmになっている。従って文字の構成も5×7
であったものは、一文字の大きさは変えずにドット密度
が上がるために10×14のドット構成になる。
Problems to be Solved by the Invention In recent years, the resolution of devices that perform display using a dot matrix is increasing. For example, the pitch between dots was 1/3 mm, but now it is 1/6 mm. Therefore, the character structure is also 5 × 7.
The former had a 10 × 14 dot configuration because the dot density increased without changing the size of one character.

ところが、キャラクタジェネレータは、解像度を上げる
ために多量のメモリを必要とすることになる。5×7の
文字構成では5バイトのメモリで良かったものが、10×
14では20バイト必要となる。キャラクタジェネレータが
160種あるものでは、メモリサイズは800バイトで良かっ
たものが3200バイトになり、4倍の領域が必要になる。
安価なシステムではROM(リード・オンリー・メモリ)
を独立して持たず1チップ・マイクロコンピュータで構
成するが、メモリサイズに制限があるために前記のよう
な3200バイトのメモリ空間はとても確保することができ
ない。このため、マルチチップを使用せざるを得なくな
り、システムのコストが高くなってきている。
However, the character generator requires a large amount of memory to increase the resolution. 5x7 was good for a 5x7 character structure, but 10x
20 bytes are required for 14 Character generator
Of the 160 types, the memory size of 800 bytes was good, but the memory size was 3200 bytes, requiring 4 times the area.
ROM (Read Only Memory) in an inexpensive system
Although it is configured by a one-chip microcomputer without independently having the above, the memory space of 3200 bytes as described above cannot be secured because of the limited memory size. For this reason, the use of multichips is unavoidable, and the cost of the system is increasing.

本発明はこのような問題を解決し、少ないメモリで高解
像度の印字コントロールを行おうというものである。
The present invention intends to solve such a problem and perform high resolution printing control with a small memory.

課題を解決するための手段 本発明では、印字結果が(2×n)×(2×m)となる
n×mの圧縮データを持つキャラクタジェネレータを設
け、実際にマトリクス状のドット印字で文字を構成する
時に、圧縮データ1個を文字データ4個に対応させ、n
×m個の圧縮データ内の個々の文字印字無発色用の空白
データ部分を、その空白データ部分の前後、左右、斜め
上下における個々の圧縮データより、個々の空白データ
部分1個に対応する前記文字データ4個の内、いずれか
を文字印字するかどうかを決定して、ドット印字を行う
ようにした構成である。
Means for Solving the Problems In the present invention, a character generator having n × m compressed data that gives a print result of (2 × n) × (2 × m) is provided, and characters are actually printed by matrix dot printing. At the time of construction, one compressed data is made to correspond to four character data, and n
The blank data portion for individual character printing non-coloring in the xm compressed data corresponds to one blank data portion based on the individual compressed data before, after, left and right, and diagonally above and below the blank data portion. In the configuration, dot printing is performed by determining which of the four character data is to be printed.

作用 本発明により、圧縮データを展開して文字データを形成
する際、圧縮データ内の個々の文字印字無発色用の空白
データ部分を、その空白データ部分の前後、左右、斜め
上下における個々の圧縮データより、個々の空白データ
部分1個に対応する前記文字データ4個の内、いずれか
を文字印字するかどうかを決定する。
Effect According to the present invention, when the compressed data is expanded to form the character data, the blank data portions for individual character printing non-coloring in the compressed data are individually compressed in the front, back, left, right, diagonally up and down of the blank data portion. From the data, it is determined whether any of the four character data corresponding to one blank data portion is to be character-printed.

これにより、圧縮データを記憶するフラグエリア等のメ
モリを用いる必要がなく、少ないメモリで高解像度の印
字が現実でき、しかも斜めのパターンを構成する部分は
なめらかになるように、文字データ4個の内、いずれか
を文字印字し、L字形パターンのコーナー部はシャープ
になるように、文字データ4個の内、いずれも文字印字
をせず、印字結果を補正することができる。
As a result, it is not necessary to use a memory such as a flag area for storing the compressed data, high-resolution printing can be realized with a small amount of memory, and the portion forming the diagonal pattern can be smoothed. It is possible to correct the printing result without character printing on any of the four character data so that one of them can be character printed and the corner of the L-shaped pattern is sharp.

実施例 本発明の具体的な内容について一実施例を上げ説明す
る。
EXAMPLE An example of the specific content of the present invention will be described.

印字結果第1図を得ようとすると、従来の方式では第4
図に示すようにキャラクタジェネレータのデータを構成
しなければならない。この結果、メモリは20バイト必要
になる。
When it is attempted to obtain the printing result shown in FIG.
The data of the character generator must be organized as shown. This requires 20 bytes of memory.

このメモリサイズを小さくするために、第3図に示すキ
ャラクタジェネレータのデータ構成で10×14の印字を構
成すると、通常1つのデータに4つのドットを構成さ
せ、第2図のような印字結果を得ることができる。
In order to reduce this memory size, if 10 × 14 printing is configured with the character generator data configuration shown in FIG. 3, normally four dots are configured in one data, and the printing result as shown in FIG. 2 is obtained. Obtainable.

しかし、第2図の印字結果は第1図と比較して で示されるドットが抜けているために、読みにくい印字
結果となっている。
However, the printed result of Fig. 2 is Since the dots indicated by are missing, the print result is difficult to read.

このため、キャワクタジェネレータでデータがない文字
印字無発色用の空白データ部分について、印字時に発色
するかしないかについての補正を行う。説明のため、第
5図のように1つの圧縮データに対応するドットをa,b,
c,dと4つの文字データに分ける。
Therefore, the white data portion for character printing and no color generation, which has no data by the power generator, is corrected as to whether or not color is generated at the time of printing. For the sake of explanation, dots corresponding to one compressed data are a, b,
Divide into c and d and 4 character data.

データ内容が印字データの“1"である時、ドットa,b,c,
dは印字され発色する。データ内容が空白データの“0"
である時、ドットa,b,c,dは周囲のデータ内容により印
字するかしないかを決める。aのドットが発色する時
は、同一ビットで1アドレス前のデータと、同一アドレ
スで1ビット低位のデータが有り、かつ1アドレス前で
1ビット低位のデータがない時である。第1図のA,C,J,
Lの点がaドットに相当するが、Aの点は第3図のよう
に、アドレスnで第1ビットのデータが“1"であり、ア
ドレスn+1で第0ビットのデータが“1"であるが、ア
ドレスnで第0ビットが1であるため発色しない。Jの
点は第3図のように、アドレスn+3で第3ビットのデ
ータが“1"であり、アドレスn+4で第2ビットのデー
タが“1"であり、かつアドレスn+3で第2ビットのデ
ータが“0"なので発色する。
When the data content is "1" of the print data, the dots a, b, c,
d is printed and color is developed. "0" with blank data
, The dots a, b, c, d decide whether to print or not depending on the surrounding data contents. When the dot a is colored, it means that there is data at the same bit one address before and data at the same address one bit lower, and there is no data at one address lower one bit. A, C, J of Figure 1
The L point corresponds to the a dot, but the A point has the 1st bit data "1" at address n and the 0th bit data "1" at address n + 1 as shown in FIG. However, since the 0th bit is 1 at the address n, no color is generated. As shown in FIG. 3, the point of J is that the data of the third bit is “1” at the address n + 3, the data of the second bit is “1” at the address n + 4, and the data of the second bit is at the address n + 3. Is "0", so the color develops.

bのドットは第1図でE,Gに相当し、同一ビットで1ア
ドレス後のデータと、同一アドレスで1ビット低位のデ
ータがあり、かつ1アドレス後で1ビット低位のデータ
がない時は発色する。
The dots of b correspond to E and G in FIG. 1, and when there is data of one address after the same bit and data of one bit lower at the same address and there is no data of one bit lower after one address. Develops color.

cのドットは第1図でI,B,K,Dに相当し、同一ビットで
1アドレス前のデータと同一アドレスで1ビット高位の
データがあり、かつ1アドレス前で1ビット高位のデー
タがない時、発色する。
The dot of c corresponds to I, B, K, and D in FIG. 1, and there is 1 bit higher data at the same address as the same bit and 1 bit higher data at the same bit, and 1 bit higher data at 1 address before. Colors when not present.

dのドットは第1図でF,Hに相当し、同一ビットで1ア
ドレス後のデータと、同一アドレスで1ビット高位のデ
ータがあり、かつ、1アドレス後で1ビット高位のデー
タがない時、発色する。
The dot of d corresponds to F and H in Fig. 1, and there is data of 1 bit after the same bit and data of 1 bit higher at the same address, and there is no data of 1 bit higher after 1 address. , Develops color.

例としてbについて更に詳しく説明する。第6図は本発
明の方法を実施するための回路の一例を示すブロック図
である。プリンタはサーマルラインヘッド1を有してい
る。サーマルラインヘッド1にはクロック端子3からの
信号に同期してデータ端子2にデータを入力する。4は
ラッチ端子である。マイクロコンピュータ5は1チップ
・マイクロコンピュータであり、内部にキャラクタジェ
ネレータを含めたROMとアキュムレータとレジスタR0〜R
7を有している。6はデータ出力端子、7はマルチプレ
クサである。
As an example, b will be described in more detail. FIG. 6 is a block diagram showing an example of a circuit for carrying out the method of the present invention. The printer has a thermal line head 1. Data is input to the data terminal 2 of the thermal line head 1 in synchronization with a signal from the clock terminal 3. Reference numeral 4 is a latch terminal. The microcomputer 5 is a one-chip microcomputer, and includes a ROM including a character generator inside, an accumulator, and registers R0 to R0.
Have 7. 6 is a data output terminal, and 7 is a multiplexer.

キャラクタジェネレータの内容は第3図に示す通りで、
基本的には第2図に示すように1データにつき2度デー
タを出力し、1行分出力すると、2行目は1行目と同じ
内容を出力する。
The contents of the character generator are as shown in Fig. 3,
Basically, as shown in FIG. 2, when one data is output twice and one line is output, the second line outputs the same contents as the first line.

本発明の例として第1図の8列目のEを印字補正する場
合について説明する。キャラクタジェネレータの内容は
第3図に示す内容で、注目点はアドレスn+3とn+4
の処理である。
As an example of the present invention, a case where print correction is performed on E in the eighth column in FIG. 1 will be described. The contents of the character generator are shown in FIG. 3, and the points of interest are addresses n + 3 and n + 4.
Processing.

まず第7図のフローチャートに示すように本来のデータ
があるかどうか判断し、データがあれば出力する。デー
タがないとき、現在のデータ位置が第5図で示す部分の
a,b,c,dのどの部分か判断する。第1図のE点は、4ド
ットで表わした第5図のb部分に相当する。b部分の処
理は前回データがあり、今回データのない部分を選び、
1ビット高位へシフトした結果と、今回データがある部
分の論理積により得られたデータを出力する。第7図の
最終結果、第1ビットと第4ビットが有と判断する部分
であり、第1図のEとGにそれぞれ相当する。
First, as shown in the flowchart of FIG. 7, it is judged whether or not there is original data, and if there is data, it is output. When there is no data, the current data position is
Determine which part of a, b, c, d. Point E in FIG. 1 corresponds to part b in FIG. 5 represented by 4 dots. For the processing of part b, select the part that has the previous data and no data this time,
The data obtained by the logical product of the result of shifting to the 1-bit high order and the part where the current data exists is output. The final result of FIG. 7 is a portion where the first bit and the fourth bit are determined to be present, and correspond to E and G of FIG. 1, respectively.

発明の効果 以上のように本発明によれば、圧縮データを展開して文
字データを形成する際、圧縮データ内の個々の文字印字
無発色用の空白データ部分を、その空白データ部分の前
後、左右、斜め上下における個々の圧縮データより、個
々の空白データ部分1個に対応する文字データ4個の
内、いずれかを文字印字するかどうかを決定する。
As described above, according to the present invention, when the compressed data is expanded to form the character data, the blank data portion for individual character printing non-coloring in the compressed data is provided before and after the blank data portion. Based on the individual compressed data on the left, right, diagonally up and down, it is determined which of the four character data corresponding to one blank data portion is to be printed.

これにより、圧縮データを記憶するクラグメモリ等のメ
モリを必要とせず、少ないメモリで高解像度の印字が実
現でき、しかも斜めのパターンを構成する部分はなめら
かになるように、文字データ4個の内、いずれかを文字
印字し、L字形パターンのコーナー部はシャープになる
ように、文字データ4個の内、いずれも文字印字をせ
ず、印字結果を補正することができるものである。
As a result, it is possible to realize high-resolution printing with a small amount of memory without using a memory such as a crag memory for storing compressed data, and to make the portion forming the diagonal pattern smooth, of the four character data, Characters are printed on one of the four character data so that the corners of the L-shaped pattern are sharpened, and the printing result can be corrected without character printing.

特に、文字印字におけるドット数が、少なくても多くて
も解像度の違いによる差が現れにくい、アルファベット
や数字等の印字を行う場合は、有効にメモリ容量の省略
化を図ることができるものである。
In particular, when the number of dots in character printing is small or large, a difference due to the difference in resolution is unlikely to appear, and when printing alphabets or numbers, the memory capacity can be effectively omitted. .

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

第1図は本発明一実施例による印字結果を示す説明図、
第2図は本発明の方法を用いない場合の印字結果を示す
説明図、第3図は本発明の方法におけるキャラクタジェ
ネレータの内容を示す説明図、第4図は従来の方法での
キャラクタジェネレータの内容を示す説明図、第5図は
本発明において、1データに対するドットの割付状態を
示す説明図、第6図は本発明の方法を実行するためのブ
ロック回路図、第7図は本発明の方法のフローチャート
である。
FIG. 1 is an explanatory view showing a printing result according to an embodiment of the present invention,
FIG. 2 is an explanatory view showing a print result when the method of the present invention is not used, FIG. 3 is an explanatory view showing contents of a character generator in the method of the present invention, and FIG. 4 is a character generator in a conventional method. FIG. 5 is an explanatory diagram showing the contents, FIG. 5 is an explanatory diagram showing a dot allocation state for one data in the present invention, FIG. 6 is a block circuit diagram for executing the method of the present invention, and FIG. 3 is a flowchart of a method.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数のマトリクス状のドット印字により、
(2×n)×(2×m)ドットの文字印字を行うための
文字データを、前記文字データを圧縮したn×m個の圧
縮データを有したキャラクタジェネレータから展開し
て、前記文字データを得る方法において、前記圧縮デー
タ1個を前記文字データ4個に対応させ、n×m個の圧
縮データ内の個々の文字印字無発色用の空白データ部分
を、前記空白データ部分の前後、左右、斜め上下におけ
る個々の圧縮データより、前記個々の空白データ部分1
個に対応する前記文字データ4個の内、いずれかを文字
印字するかどうかを決定し、印字結果における斜めのパ
ターンを構成する部分およびL字形パターンのコーナ部
分の印字を補正することを特徴とするプリンタ印字補正
方法。
1. A plurality of matrix-shaped dot prints,
Character data for performing character printing of (2 × n) × (2 × m) dots is expanded from a character generator having n × m compressed data obtained by compressing the character data to generate the character data. In the method for obtaining, the one compressed data is made to correspond to the four character data, and the blank data portion for individual character printing non-coloring in the n × m compressed data is arranged before, after, left and right of the blank data portion. Based on the individual compressed data in the diagonally upper and lower parts, the individual blank data part 1
One of the four character data corresponding to each character is determined to be character-printed, and the printing of the portion forming the oblique pattern and the corner portion of the L-shaped pattern in the printing result is corrected. Printer printing correction method.
JP63125219A 1988-05-23 1988-05-23 Printer print correction method Expired - Lifetime JPH0747332B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63125219A JPH0747332B2 (en) 1988-05-23 1988-05-23 Printer print correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63125219A JPH0747332B2 (en) 1988-05-23 1988-05-23 Printer print correction method

Publications (2)

Publication Number Publication Date
JPH01294055A JPH01294055A (en) 1989-11-28
JPH0747332B2 true JPH0747332B2 (en) 1995-05-24

Family

ID=14904802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63125219A Expired - Lifetime JPH0747332B2 (en) 1988-05-23 1988-05-23 Printer print correction method

Country Status (1)

Country Link
JP (1) JPH0747332B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5324146B2 (en) * 1973-05-28 1978-07-19
JPS5068620A (en) * 1973-10-22 1975-06-09
JPS62250085A (en) * 1986-04-23 1987-10-30 Casio Comput Co Ltd Method for regenerating letter character

Also Published As

Publication number Publication date
JPH01294055A (en) 1989-11-28

Similar Documents

Publication Publication Date Title
JPS63205257A (en) Printing control system
US4953104A (en) Page buffer for an electronic gray-scale color printer
JPS60157375A (en) Halftone expressing system
EP0091124B1 (en) Video signal generating circuit
AU603830B2 (en) Printer character generator
JPH0747332B2 (en) Printer print correction method
JPS6346429B2 (en)
JPS6223316B2 (en)
JP2846357B2 (en) Font memory device
JPS5853338B2 (en) Dot pattern output method
JP2715077B2 (en) Printing equipment
JP2541221B2 (en) Decorative pattern output method
JPS6173990A (en) Character pattern generator
JP2570755B2 (en) Pattern generator
JP2903517B2 (en) Image generator for printing devices
JPH08230252A (en) Printer
JPH0570856B2 (en)
JPH0876739A (en) Reduced screen display method and reduced screen display device of bit map font
JPS60192985A (en) Halftone system
JPS6216432B2 (en)
JPH03192294A (en) Display controller
JPH0341496A (en) Font generating device with gradation
JPS60172549A (en) Printer
JPS6063172A (en) Print controller
JPS62162557A (en) Script character generation