JPS61284457A - Method for processing dot matrix data - Google Patents

Method for processing dot matrix data

Info

Publication number
JPS61284457A
JPS61284457A JP60126554A JP12655485A JPS61284457A JP S61284457 A JPS61284457 A JP S61284457A JP 60126554 A JP60126554 A JP 60126554A JP 12655485 A JP12655485 A JP 12655485A JP S61284457 A JPS61284457 A JP S61284457A
Authority
JP
Japan
Prior art keywords
data
dots
code
bits
rows
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
JP60126554A
Other languages
Japanese (ja)
Inventor
Hiroshi Matsumoto
啓 松本
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 JP60126554A priority Critical patent/JPS61284457A/en
Publication of JPS61284457A publication Critical patent/JPS61284457A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/10Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers by matrix printers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To provide a dot matrix data processing method capable of reducing the ROM capacity of a character generator to a large extent, by utilizing the characteristics possessed by a character font. CONSTITUTION:In the constitutional diagram (b) of ROM of a character font (a) constituted of longitudinal and lateral dots each consisting of 16 rows, the upper rank two bits of each longitudinal row data having 16 rows are codes showing the characteristics of the data of said rows and can show four kinds of characteristics. In this embodiment, when all of the longitudinal rows are white dots, the code of '00' is allotted and, in the same case as the previous row data, the code of '01' is allotted and, when upper and lower two dots are white dots, the code of '10' is allotted and, when upper and lower four dots are white dots, the code of '11' is allotted and data quantity is reduced in such a state that, in the cases of '00' and '01', all data of the rows thereof are omitted and, in the case of '10', upper and lower two bits are omitted and, in the case of '11', upper and lower four bits are reduced and stored in succession to each code.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、記憶容量を減少する様な形の2進符号によっ
てグラフィック情報を記憶及び再現するためのドツトマ
トリクスデータの処理方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a method for processing dot matrix data in order to store and reproduce graphic information by means of a binary code in such a way as to reduce storage capacity.

従来の技術 一般に、ドツトプリンタでは印字できるすべてめ文字フ
ォントの情報をキャラクタジェネレータ用のリード・オ
ンリー・メモリ(以下単にROMという)に記憶させて
いるが、その内部のデータの状態は1ドツトが1ビツト
に対応しており、印字品質を向上する為に1文字を構成
するドツト数を増す事はROMの大容量化を招き、製品
コストを引き上げる事になる。このような場合に文字フ
ォントのデータ量を圧縮する手段のひとつとして、シン
レングス符号化がある。これは第4図のイに示すような
ドラ・トデータの場合、そのまま記憶すれば24ビツト
要するところを同一のドツトが連続する個数を2進数化
し、実際のドツトと置き換える事によシ第4図の口に示
すように短縮化するものである。
Conventional technology In general, in a dot printer, information on all the character fonts that can be printed is stored in a read-only memory (hereinafter simply referred to as ROM) for the character generator, but the state of the internal data is such that one dot corresponds to one bit. Increasing the number of dots constituting one character in order to improve printing quality leads to an increase in the capacity of the ROM, which increases product costs. Thin-length encoding is one method for compressing the amount of character font data in such cases. This can be done by converting the number of consecutive identical dots into a binary number and replacing it with the actual dots, which would require 24 bits if stored as is, in the case of dot data as shown in Fig. 4 A. It is abbreviated as shown in the opening.

発明が解決しようとする問題点 ところが、実際の文字フォントには白ドツトと黒ドツト
の変化がひんばんなものが多く、また変化する毎に区切
シデータも必要となる為、このうンレングス符号化の方
法はROMの容量を減少するのにはあまシ効果的ではな
い。
Problems to be Solved by the Invention However, in many actual character fonts, the white dots and black dots change frequently, and delimiter data is required for each change, so it is not possible to use length encoding in this way. The method is not very effective in reducing ROM capacity.

本発明はこのような従来の問題点を解消するものであシ
、文字7オントが持つ特徴を利用する事にiシキャラク
タジエネレータのROM容量を大巾に減少する事のでき
るドツトマトリクスデータの処理方法を提供するもので
ある0 問題点を解決するための手段 本発明のドツトマトリクスデータの処理方法は、文字7
オントデータの各縦列(又は各横列)毎に着目した場合
、いくつかの共通の特徴に分類できる事を利用しその特
徴を宍わす2進コードを各縦列(又は各横列)データと
対にした形でそれぞれの文字7オントデータを構成する
ようにしたものである0 作  用 本発明のドツトマトリクスデータの処理方法は、各縦列
(又は各横列)データに対して付与されたその特徴を示
す2進コードのみでそのデータが復元できる時、又は2
進コードとすでに復元された前列データとから復元でき
る時はデータをすべて省略、あるいは2進コードとデー
タの一部とから全データが復元できる時はデータの不要
部分を削除するという方法で7オ/トデータを構成し、
キャラクタジェネレータに要するROM  の容量を従
来に比べ大巾に削減できるものである。又、そのように
処理された7オントデータから元の文字フォントを再現
する時には各列毎にその列の特徴を示す2進コードから
決定されるビット数のデータを取シ出し、あるいは場合
によってはデータを取シ出す事なしに、定められた処理
によシ本来のデータが復元できるものである。
The present invention is intended to solve these conventional problems, and is to provide dot matrix data that can greatly reduce the ROM capacity of the i-character generator by utilizing the characteristics of character 7 onts. The method for processing dot matrix data of the present invention is to provide a processing method for character 7.
When focusing on each column (or each row) of the ont data, we take advantage of the fact that it can be classified into some common characteristics, and pair each column (or each row) of data with a binary code that elucidates that characteristic. The dot matrix data processing method of the present invention is configured to configure ont data for each character in the form 2. When the data can be recovered using only the hexadecimal code, or 2
When the data can be restored from the binary code and the previously restored data in the previous row, all data is omitted, or when all the data can be restored from the binary code and part of the data, unnecessary parts of the data are deleted. /configure the data,
The ROM capacity required for the character generator can be greatly reduced compared to the conventional one. In addition, when reproducing the original character font from the 7-ont data processed in this way, data with the number of bits determined from the binary code indicating the characteristics of that column is extracted for each column, or in some cases, The original data can be restored through prescribed processing without having to extract the data.

実施例 以下、本発明の実施例について図面を参照して説明する
。第1図に縦横それぞれ16列ずつのドツトで構成した
場合の文字フォント例を示す。第2図は第1図の文字フ
ォントに・何の処理も加えない場合のキャラクタジェネ
レータのROMの状態図である。ここで((1・”は黒
ドツトに、0ゝ2は白ドッ)K対応しておシ、1文字に
つき266ビツトを必要とする。第3図は本発明による
データ量の削減を行った場合の第1図の文字7オントの
ROMの状態図であシ、112ビツトに削減されている
。第5図において、16列ある各縦列データの上部2ビ
ツトはその列のデータの特徴を示すコードであシ、4種
類の特徴を表わす事ができる。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows an example of a character font composed of 16 columns of dots in both the vertical and horizontal directions. FIG. 2 is a state diagram of the ROM of the character generator when no processing is applied to the character font shown in FIG. Here, (1.'' is a black dot, 0.2 is a white dot), 266 bits are required for each character. The state diagram of a 7-ont ROM in Figure 1 is reduced to 112 bits.In Figure 5, the upper 2 bits of each of the 16 columns of data indicate the characteristics of the data in that column. Codes can represent four types of characteristics.

この例ではその縦列がすべて白ドツトの場合ζ”o’o
”、前列データと同じ場合は@o 1FF上下2ドツト
ずつが白ドツトの場合は“10” 、上下4ドツトずつ
が白ドツトの場合は111″のコードを割当て、”00
” 、”01”の場合は、その列のデータを全て省略、
“10”の場合は上下2ピットずつを省略、t11”の
場合は上下4ビットずつを省略するという方法でデータ
量を削減し各コードに続けて記憶しである。
In this example, if all the columns are white dots, ζ”o'o
", if it is the same as the previous row data, @o. If the top and bottom two dots of 1FF are white dots, assign the code "10". If the top and bottom four dots are white dots, assign the code 111", and "00".
” , “01” means all data in that column will be omitted,
In the case of "10", the upper and lower two pits are omitted, and in the case of "t11", the upper and lower four bits are omitted, thereby reducing the amount of data and storing them successively for each code.

このように処理された文字7オ/トデータから元の文字
フォントを復元するには、まず各列データの最初の2ビ
ツトから、その列のデータの特徴を判断し、次に付随す
るデータ部分があれば続けて取υ出し、各コードに応じ
た処理を加えて元のデータを復元する事になる。これを
第3図を利用して詳細に説明すると、第1縦列及び第2
縦列の最初の2ビツトは” o o ”であるからその
列はすべて白ドツトであシ付随するデータはないから1
6個の白ドツトを発生すればよい。すなわち第1図の文
字フォントの第1縦列、第2縦列が復元できた事になる
。又、第3図の第3縦列の場合は最初の2ビツトが“1
o”であるから、付随するデータの最初と最後に白ドツ
トを2個ずつ付加したものが復元されたデータ、すなわ
ち第1図の第3縦列のデータとなる。第3図の第7縦列
の場合は最初の2ビツトが1ゝo1”であるから付随す
るデータはなく復元されるデータはすでに復元された第
6縦列と同一であシ、第1図の第7縦列のデータとなる
To restore the original character font from the character font data processed in this way, first the characteristics of the data in each column are determined from the first two bits of the data in that column, and then the accompanying data portion is If so, the data will be extracted and processed according to each code to restore the original data. To explain this in detail using Fig. 3, the first column and the second column
The first two bits of the column are "o o", so all of that column is white dots, and there is no accompanying data, so it is 1.
It is sufficient to generate 6 white dots. In other words, the first and second columns of the character font in FIG. 1 have been restored. Also, in the case of the third column in Fig. 3, the first two bits are “1”.
o”, the data obtained by adding two white dots to the beginning and end of the accompanying data becomes the restored data, that is, the data in the third column in Figure 1.The data in the seventh column in Figure 3 is In this case, since the first two bits are 1'o1'', there is no accompanying data, and the restored data is the same as the already restored data in the 6th column, and becomes the data in the 7th column in FIG.

なお・以上の実施例では特徴を示すコードを2ビツトと
して説明したが、これを3ビツトあるいは4ビツトとし
ても差しつかえなく、その場合には区分けできるデータ
の特徴の種類が増すのでよシ大きなデータ量の削減を実
現できると考えられる0発明の効果 以上のように本発明のドツトマトリクスデータの処理方
法によれば、本来のデータを後で復元可能なコードに置
換する事によシキャラクタジェネレータのROM容量を
大巾に削減する事か可能であり、ドツトプリンタ等の製
品のコストダウンに大きく寄与すると共に、同一のRO
M 容量で1文字の構成ドツト数を多くした高品位の印
字を可能とするものである。なお、このようなデータの
処理は最近のマイクロコンピュータによって制御するプ
リンタにおいてはソフトウェアにょシ容易に実現可能で
ある。
In addition, in the above embodiment, the code indicating the feature was explained as being 2 bits, but it may also be 3 bits or 4 bits, and in that case, the types of features of the data that can be classified will increase, so it will be easier to use larger data. Effects of the invention that are thought to be able to reduce the amount of data As described above, according to the dot matrix data processing method of the present invention, by replacing the original data with a code that can be restored later, the character generator can be reduced. It is possible to significantly reduce the ROM capacity, which greatly contributes to cost reduction of products such as dot printers, and also enables the same RO
This enables high-quality printing with a large number of dots constituting one character at a capacity of M. Note that such data processing can be easily realized using software in printers controlled by recent microcomputers.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は16X16の文字フォント図、第2図は第1図
の文字フォントに対応するキャラクタジェネレータのR
OM  のビット状態図、第3図は本発明により処理さ
れた第1図の文字フォノ)K対応するキャラクタジェネ
レータのROM内でのビット状態図、第4図は従来のラ
ンレングス符号化によるデータ短縮化の説明図である。 −                  e   の鞍
                   派! ?       ロ 啄
Figure 1 is a 16x16 character font diagram, Figure 2 is the character generator R corresponding to the character font in Figure 1.
OM bit state diagram; FIG. 3 is a bit state diagram in the ROM of the corresponding character generator of FIG. 1 processed by the present invention; FIG. 4 is data reduction using conventional run-length encoding. FIG. - E's saddle faction! ? Ro-Taku

Claims (1)

【特許請求の範囲】[Claims] ドットマトリクス形式で表現される図柄の各縦列(又は
各横列)毎にその、ドット並びの形態を示す2進符号と
、それぞれの形態に応じて定められた規則に従って2進
符号化されたドット並びのデータとを対にした形で図柄
全体のデータを構成し、そのデータから元の図柄のデー
タを再現する時にドット並びの形態を示す2進符号によ
り)それと対になったデータに加える処理を一義的に決
定する事を特徴とするドットマトリクスデータの処理方
法。
A binary code indicating the format of the dot arrangement for each vertical column (or each horizontal row) of a pattern expressed in a dot matrix format, and a dot arrangement that is binary encoded according to rules determined according to each format. The data for the entire pattern is constructed by pairing it with the data of A dot matrix data processing method characterized by unique determination.
JP60126554A 1985-06-11 1985-06-11 Method for processing dot matrix data Pending JPS61284457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60126554A JPS61284457A (en) 1985-06-11 1985-06-11 Method for processing dot matrix data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60126554A JPS61284457A (en) 1985-06-11 1985-06-11 Method for processing dot matrix data

Publications (1)

Publication Number Publication Date
JPS61284457A true JPS61284457A (en) 1986-12-15

Family

ID=14938041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60126554A Pending JPS61284457A (en) 1985-06-11 1985-06-11 Method for processing dot matrix data

Country Status (1)

Country Link
JP (1) JPS61284457A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991005664A1 (en) * 1989-10-17 1991-05-02 Nakajima All Precision Co., Ltd. Character data compression method and character modification method
US5471676A (en) * 1989-10-17 1995-11-28 Nakajima All Precision Co., Ltd. Character data compressing method and character modifying method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991005664A1 (en) * 1989-10-17 1991-05-02 Nakajima All Precision Co., Ltd. Character data compression method and character modification method
US5471676A (en) * 1989-10-17 1995-11-28 Nakajima All Precision Co., Ltd. Character data compressing method and character modifying method
US5566276A (en) * 1989-10-17 1996-10-15 Nakajima All Precision Co., Ltd. Character modifying method

Similar Documents

Publication Publication Date Title
CA1199413A (en) Method of editing dot pattern data for character and/or image representations
GB1489433A (en) Method for dot matrix recording
KR100428599B1 (en) A partial pixel encoding and decoding method
CA1193027A (en) Graphic data compression
JPH11187264A (en) Method and device for processing image
EP0436026A1 (en) Compression and decompression method of dot matrix character
JPS61284457A (en) Method for processing dot matrix data
JPS60157375A (en) Halftone expressing system
JP3045008B2 (en) Halftone image compression method
US5499321A (en) Printing method for use with dot printer
US7259891B2 (en) Image compression method, decompression method thereof and program therefor
US4187552A (en) Read only memory character generator system
US4633505A (en) Character compression technique
KR930009163B1 (en) Width compression control method of font data
JPS62164375A (en) Base color control system for color picture information
JPH0525673B2 (en)
KR960016738B1 (en) Method and apparatus for processing information
JPS6173990A (en) Character pattern generator
JPH114340A (en) Image processor and image processing system
JPH049149B2 (en)
JP4454831B2 (en) Image forming apparatus and image forming method
JPS6317493A (en) Processing of character font data
US5457774A (en) Bit map data generation apparatus
JPH02287739A (en) Memory access method
JPH01232076A (en) Setting method for down-load registered character