JPS581784B2 - Character processing method - Google Patents
Character processing methodInfo
- Publication number
- JPS581784B2 JPS581784B2 JP15441176A JP15441176A JPS581784B2 JP S581784 B2 JPS581784 B2 JP S581784B2 JP 15441176 A JP15441176 A JP 15441176A JP 15441176 A JP15441176 A JP 15441176A JP S581784 B2 JPS581784 B2 JP S581784B2
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- data
- memory
- character
- file
- 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
Links
Description
【発明の詳細な説明】
本発明は文字等をマトリクスで表現する文字処理装置に
関するもので、特に文字パターンを市松状に記載させ、
かかるパターンを再生する段階で不明な点(以下予測点
と称す)を周囲の状況で決定し、原パターンに近い再生
を行うようにした文字処理方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character processing device that expresses characters, etc. in a matrix.
The present invention relates to a character processing method in which unknown points (hereinafter referred to as predicted points) are determined based on surrounding conditions at the stage of reproducing such a pattern, and reproduction close to the original pattern is performed.
文字処理装置、特に漢字処理装置においては、漢字の各
々の字形を16×16,22×24,32×32等のド
ットマトリクスに分解し、各要素を“白“「0」一ドッ
トを形成しない一及び“黒“「1」一ドットを形成する
−の2値で記憶するのが一般的である。In character processing devices, especially in kanji processing devices, each character shape of a kanji is decomposed into a dot matrix of 16 x 16, 22 x 24, 32 x 32, etc., and each element is “white” or “0” without forming a single dot. Generally, it is stored in two values: 1 and "black"("1"), which forms one dot.
しかしながら漢字の特質としてパターン自体が数字、ア
ルファベット等に比較すると非常に複雑であるばかりで
なくその字種が3,000〜10,000字と非常に多
い。However, the characteristics of kanji are not only that the patterns themselves are very complex compared to numbers and alphabets, but also that there are many types of characters, ranging from 3,000 to 10,000.
又、漢字の字形について、ある程度忠実な再現性を必要
とするならばドットの数を増す、即ち32×32程度の
ドットマトリクスを必要とする。Furthermore, if a certain degree of faithful reproducibility is required for the shape of Chinese characters, the number of dots will be increased, that is, a dot matrix of approximately 32×32 will be required.
従って漢字1字当りのドット数は1024個であり、記
憶容量としては1字につき1024ビット必要となる。Therefore, the number of dots per Kanji character is 1024, and the storage capacity is 1024 bits per character.
このため、全ての漢字を表現しようとする場合記憶容量
としては3M〜10IOMビットの大容量メモリが必要
となる。Therefore, in order to express all the kanji characters, a large capacity memory of 3M to 10 IOM bits is required.
本発明は上記メモリの容量をできる限り圧縮して全ての
漢字、その他の文字を表現できるようにした文字処理方
式を提供せんとするものである。The present invention aims to provide a character processing method that can express all Chinese characters and other characters by compressing the memory capacity as much as possible.
従来、パターンメモリの圧縮はランレングス(RUN−
LENGTH)法が主流で、これは走査方向に対し、白
又は黒が何個連続するかを記憶するもので、字の複雑さ
に応じて字当りの黒、又は白のドット数が変化するため
圧縮の度合が変化する(不定長圧縮)。Traditionally, pattern memory compression is run-length (RUN-
The mainstream is the LENGTH) method, which stores the number of consecutive white or black dots in the scanning direction, and the number of black or white dots per character changes depending on the complexity of the character. The degree of compression changes (indefinite length compression).
そのため、各文字に対して割り当てられたコードと字形
情報を記憶したメモリのアドレスの間に一定の関係がな
いため、入力文字コードに対してその字が収容されてい
るアドレスを知るための別のメモリが必要である。Therefore, since there is no fixed relationship between the code assigned to each character and the address of the memory that stores the glyph information, there is a separate Memory is required.
このメモリを含めてトータルビット数を考えればメモリ
の圧縮率は80チ程度にしかならない。Considering the total number of bits including this memory, the compression ratio of the memory is only about 80 bits.
今、漢字を表現するのに32×32のドットマトリクス
を使用した場合、上述した如く1字当りのドット数は1
024個であり、この情報を全て記憶しようとすると1
024ビットの記憶容量が必要となる。Now, if we use a 32 x 32 dot matrix to represent kanji, the number of dots per character is 1 as mentioned above.
024 pieces of information, and if you try to remember all of this information, it will take 1
A storage capacity of 0.024 bits is required.
しかし、この情報には多くの冗長を含んでいる。However, this information contains a lot of redundancy.
この1024ビットの内、第1図に示す如く、1画素(
ドット)おきに且つ各行毎に互い違い、即ち市松模様状
に記憶させることにより、そのビット数が512となり
メモリの圧縮率は50係の一定となる(定長圧縮)。Of these 1024 bits, one pixel (
By storing data alternately (dots) and in each row in a checkerboard pattern, the number of bits becomes 512, and the compression ratio of the memory becomes constant at a factor of 50 (constant length compression).
従って、メモリに蓄積される情報密度は一挙に倍になる
。Therefore, the information density stored in memory doubles at once.
しかしながら、メモリから情報を取り出した後、そのま
まの状態で表現を行った場合、第1図に示す様に市松状
に表現されるのみで、原情報と同じパターンにはならず
問題を残す。However, if information is extracted from memory and then expressed as is, it will only be expressed in a checkered pattern as shown in FIG. 1, and the pattern will not be the same as the original information, leaving a problem.
市松状に記憶した際、原パターンから取り除かれた部分
(第1図で示す×印の部分)の情報を何らかの方法で再
生し全体として1024ビットの情報を得る必要がある
。When stored in a checkered pattern, it is necessary to reproduce the information of the portion removed from the original pattern (the portion marked with an x in FIG. 1) by some method to obtain 1024 bits of information as a whole.
しかし、取り除かれた部分の情報が原パターンから得る
ものでない場合、取り除かれた部分の情報を再生する方
法により、再生部の予測誤り、即ち原パターンの情報と
違った再生を行った場合のエラー率が決まる。However, if the information of the removed part is not obtained from the original pattern, the method of reproducing the information of the removed part may cause a prediction error in the reproduction unit, that is, an error if the information is reproduced differently from the information of the original pattern. The rate is determined.
そこで、本発明は上記エラー率を低下させる簡単な再生
法を提供する。Therefore, the present invention provides a simple reproduction method to reduce the above error rate.
例えば、原パターンより取り除いた部分、以下予測点と
して説明するが、この予測点の周囲の状況により、かか
る予測点の情報(白又は黒)を推察決定するようにして
再現を行うものである。For example, a portion removed from the original pattern, hereinafter referred to as a predicted point, is reproduced by inferring and determining the information (white or black) of the predicted point depending on the surrounding situation of the predicted point.
この場合、文字をいくつかの群に分類し、共通した文字
群毎に予測点の情報を推察決定するようにしたものであ
る。In this case, characters are classified into several groups, and prediction point information is inferred and determined for each common character group.
従来、ファクシミリにおいては、第1図に示す如く情報
を圧縮して伝送し、再現する段階で×印の予測点を周囲
の上下、左右の4点のサンプリング点(既知画素)の状
況に応じて黒画素「1」であるか、白画素「0」である
かを推察し決定するようにしたものがある。Conventionally, in a facsimile, information is compressed and transmitted as shown in Figure 1, and at the stage of reproduction, the predicted point marked with an x is selected according to the situation of the surrounding four sampling points (known pixels) on the upper, lower, left, and right sides. There is a method that infers and determines whether the pixel is a black pixel "1" or a white pixel "0".
しかし、扱うパターンが漢字の場合は複雑であるため、
上述の方法を利用して×印の各予測点を決定して再生す
るものでは実用にはならない。However, when the pattern to be handled is kanji, it is complicated, so
It is not practical to use the above method to determine and reproduce each predicted point marked with an x.
そこで、本発明においては、約3000字の漢字、約1
20万のケースについて、統計的調査を試みた結果第2
図で示す様に例えば周囲12ビットのサンプリング点(
図中●印)で中心の予測点(図中■印)を推察する方法
が最とも現実的で好結果が得られることが判明した。Therefore, in the present invention, about 3000 kanji, about 1
As a result of a statistical investigation of 200,000 cases, the second
As shown in the figure, for example, the surrounding 12-bit sampling point (
It was found that the method of inferring the central prediction point (marked with ■ in the figure) using the ● mark in the figure is the most realistic and yields good results.
第3図は本発明を漢字プリンタに実施した場合の構成を
示すブロック図で、この図を参照に本発明の基本となる
方式をまず説明する。FIG. 3 is a block diagram showing the configuration of a Kanji printer according to the present invention, and the basic system of the present invention will be first explained with reference to this figure.
又、予測のための周囲12ビットの取り方を第2図Cの
場合とする。Also, let us assume that the surrounding 12 bits are taken for prediction as shown in FIG. 2C.
図において、1はマイクロコンピータで構成されるLS
I素子の演算処理装置であり以下CPUと称す。In the figure, 1 is an LS consisting of a microcomputer.
This is an arithmetic processing unit for I elements, and will be referred to as a CPU hereinafter.
2は、この装置を動作させるためにこの各種インストラ
クションが書き込まれたプログラムメモリであり、上記
各種インストラクションによりプログラムが組まれてい
る。Reference numeral 2 denotes a program memory in which various instructions are written to operate this device, and a program is set up using the various instructions mentioned above.
即ち、CPU1はプログラムメモリ2のインストラクシ
ョンを順次読み出し、このインストラクションの指令に
従って処理を実行し、外部との信号のやり取りによりパ
ターン再生等の処理を実行していく。That is, the CPU 1 sequentially reads instructions from the program memory 2, executes processing according to the commands of the instructions, and executes processing such as pattern reproduction by exchanging signals with the outside.
又、図中5は印字文字等の情報が入力される外部インタ
ーフェースであり、CPU1の処理により入力されてい
る文字コードデータが取り込まれ、この文字コードに対
応するパターンデータをパターンメモリ7より読み出す
ためのアドレス信号をCPU1がプログラムメモリ2よ
りインストラクションを取り出して作る。Further, numeral 5 in the figure is an external interface to which information such as printed characters is input, and the input character code data is taken in by the processing of the CPU 1, and pattern data corresponding to this character code is read out from the pattern memory 7. The CPU 1 extracts an instruction from the program memory 2 and generates the address signal.
ここで、上記パターンメモリ7は、第1図で説明した如
く、1つのパターンを市松状に512ビットで記憶した
もので、第1図の如く1ビットおきに記憶したものでな
く、の容量で全てのパターンを記憶することができる。Here, as explained in FIG. 1, the pattern memory 7 stores one pattern in 512 bits in a checkered pattern, and is not stored in every other bit as shown in FIG. All patterns can be memorized.
更に3はパターンメモリ7より読み出された圧縮パター
ンデータを記憶するワーキングメモリである。Further, reference numeral 3 denotes a working memory for storing compressed pattern data read out from the pattern memory 7.
この場合ワーキングメモリ3にはCPUIの処理に従い
、圧縮されたパターンデータが1アドレスおきにストア
ーされる訳で、詳しくは第1図の如く市松状態でストア
ーされる。In this case, compressed pattern data is stored in the working memory 3 at every other address according to the processing of the CPUI, and in detail, it is stored in a checkered pattern as shown in FIG.
又、このワーキングメモリ3は10ビットのアドレス入
力に対し1ビットが対応するランダムアクセスメモリ(
RAM)である。Additionally, this working memory 3 is a random access memory (1 bit corresponds to 10 bit address input).
RAM).
次に現段階でワーキングメモリ3に記憶されている情報
は、市松状に512ビットの確定情報であり、残りの5
12ビットの予測点を推察し、その結果をストアーする
ことにより1字分の再生パターンが作り出される。Next, the information currently stored in the working memory 3 is 512 bits of confirmed information in a checkerboard pattern, and the remaining 5
A playback pattern for one character is created by estimating the 12-bit prediction point and storing the result.
この予測点の情報を作り出すものがファイルメモリ4で
ある。The file memory 4 creates information on this predicted point.
このファイルメモリ4は第2図Cの如く、予測点■印を
周囲12ビットのサンプリング点(●印)の状況により
、”白”又は“黒“の情報を出力するもので、サイブリ
ング点の12画素のあり方に対し累計したデータを記憶
させたリードオンリーメモリ(ROM)である。As shown in Fig. 2C, this file memory 4 outputs "white" or "black" information depending on the situation of the 12-bit sampling points (● marks) surrounding the prediction point marked ■. This is a read-only memory (ROM) that stores accumulated data for each pixel.
例えば、周囲12ビットのほとんどが黒画素である場合
、中心の予測点も、“黒“であると断定できる訳で上記
サンプリング点の12ビットのデータを入力することで
、1ビットの予測データを出力する。For example, if most of the surrounding 12 bits are black pixels, it can be determined that the center predicted point is also "black", so by inputting the 12 bits of data from the sampling point above, 1 bit of predicted data can be obtained. Output.
この予測用ファイルメモリ4より出力される予測データ
は、上述したワーキングメモリ3のアドレスされている
予測点にストアーされる。The prediction data output from this prediction file memory 4 is stored at the addressed prediction point of the working memory 3 mentioned above.
更に又、6は印字部であり、全ての予測が完了した時点
即ち、ワーキングメモリ3の予測点に全てのデータがス
トアーされると、CPU1の指令に従いワーキングメモ
リ3に貯えられたパターン情報に応じたドットパターン
を形成する。Furthermore, 6 is a printing section, and when all the predictions are completed, that is, when all the data are stored at the prediction points of the working memory 3, the printing section 6 prints the data according to the pattern information stored in the working memory 3 according to the instructions of the CPU 1. form a dot pattern.
以上の如く構成されたプリンタにおいて、関連をより詳
しく理解するために作用を説明する。In the printer configured as described above, the operation will be explained in order to understand the relationship in more detail.
まず、CPU1は外部インターフェース3を通して入力
されている。First, the CPU 1 receives input through the external interface 3.
印字文字コードデータを取り込み、そのデータに対応す
るパターン(漢字)をパターンメモリ7より読み出す。Print character code data is taken in, and a pattern (kanji) corresponding to the data is read out from the pattern memory 7.
そして、読み出されたパターンデータはC P U 1
により処理されるアドレス信号に従い、列又は行方向に
1ビットおきに順次ワーキングメモリ3にストアーされ
る。Then, the read pattern data is transferred to the CPU 1
According to the address signal processed by the address signal, the bits are sequentially stored in the working memory 3 every other bit in the column or row direction.
そこで、第4図において、今nになるアドレスの予測点
■印の値を推察決定するために参照すべき1〜12のサ
ンプル点のアドレスは第5図に示す通りである。Therefore, in FIG. 4, the addresses of sample points 1 to 12 to be referred to in order to estimate and determine the value of the predicted point marked ■ at the address that is now n are as shown in FIG.
この第5図に示すアドレスをCPU1により作り出し、
このアドレスをワーキングメモリ3に与え各1〜12の
アドレスに対する既知のデータ合計12ビットをファイ
ルメモリ4に与えnなるアドレスの予測点■印の推察結
果を得る。The address shown in FIG. 5 is created by the CPU 1,
This address is given to the working memory 3, and a total of 12 bits of known data for each of addresses 1 to 12 are given to the file memory 4, to obtain the estimation result of the predicted point marked ■ at address n.
このファイルメモリ4から得ら軌黒「1」又は白「0」
のデータをワーキングメモリ3のnアドレスにストアー
する。Obtained from this file memory 4: black "1" or white "0"
data is stored in the n address of the working memory 3.
この処理はCPU1が順次読み出すプログラムメモリ2
の情報に従い実行される。This process is performed by the CPU 1 sequentially reading out the program memory 2.
It is executed according to the information.
ここで、説明を元に戻して、nアドレスの予測画素にフ
ァイルメモリから出力されたデータ(白「0」又は黒「
1」の信号)がワーキングメモリ3にストアーされれば
、次のn+2アドレスの予測画素に移り、同じ動作を繰
り返えして順次予測画素にファイルメモリ4から出力さ
れるデータをストアーしていく。Now, returning to the original explanation, the data output from the file memory to the predicted pixel at address n (white "0" or black "0"
1'' signal) is stored in the working memory 3, the process moves to the predicted pixel at the next n+2 address and repeats the same operation to sequentially store the data output from the file memory 4 to the predicted pixel. .
この操作を各予測点に対して順次行ない(nを1,3,
5・・・・・・1023又は2,4,6・・・・・・1
024)合計512回の予測操作を実行すれば1字分の
1024ビットのパターンデータがワーキングメモリ3
に貯えられる。This operation is performed sequentially for each prediction point (n is 1, 3,
5...1023 or 2,4,6...1
024) If a total of 512 prediction operations are performed, 1024 bits of pattern data for one character will be stored in the working memory 3.
can be stored in
そしてワーキングメモリ3に貯えられたパターンデータ
を印字部6に送りドットパターンを形成する。Then, the pattern data stored in the working memory 3 is sent to the printing section 6 to form a dot pattern.
以上の方法で予測を行った場合、約3000字に対して
予測に対するエラー率、即ち、実際の画素とは違って予
測を行う率は、実験的に求めると4〜7%程度で実用域
に入っている。When prediction is performed using the above method, the error rate for prediction for approximately 3,000 characters, that is, the rate at which predictions are made that are different from the actual pixels, is experimentally determined to be around 4 to 7%, which is in the practical range. It's in.
上述の方式を基本にして、さらに発展させたのが本発明
の重要な点である。The important point of the present invention is that it is further developed based on the above-mentioned system.
上記の基本的な方式では全文字についてとったファイル
メモリで文字を再生するためある文字については、ある
12画素の状況では“黒“であるのに全体平均のファイ
ルメモリを採用したがために“白“であると判別される
状態がある。In the above basic method, characters are reproduced using the file memory taken for all characters, so even though a certain character is "black" in a certain 12-pixel situation, the overall average file memory is used. There is a state in which it is determined that the color is "white".
これを改善するためにはこのように全体平均のファイル
メモリでは誤る個所の共通した字群をまとめて、それら
について別のファイルメモリを持てばよい。In order to improve this, it is necessary to group together groups of characters that have common errors in the overall average file memory, and have separate file memories for them.
このようにすれば共通した字群ごとにファイルメモリを
持ち、それで推察決定される未知画素(予測点)はより
正確な再生ができ、エラー率が低下する。In this way, a file memory is provided for each common character group, and unknown pixels (predicted points) that are inferred and determined can be reproduced more accurately, reducing the error rate.
その例を以下に述べるが、文字群の分類を4分類とする
場合を例示する。An example will be described below, in which a case where character groups are classified into four categories will be exemplified.
又、例として第2図Cの如く予測点を決定するために周
囲の12のサンプリング点を選択するものとする。Further, as an example, it is assumed that 12 surrounding sampling points are selected in order to determine a prediction point as shown in FIG. 2C.
まず、文字群は字の複雑さに応じて分割することが一つ
の方法である。First, one method is to divide the character group according to the complexity of the characters.
字の複雑さは、画数の多さ、つまり圧縮されたメモリ情
報「1」黒画素の多さと考えてもよい。The complexity of a character can be considered to be the number of strokes, that is, the number of compressed memory information "1" black pixels.
従って、黒画素の多さに応じて、字群と4分割すれば字
群の分割は容易である。Therefore, it is easy to divide a character group into four parts depending on the number of black pixels.
この字群の分割方法は字体により変化するか各装置の持
つメモリの内容により最適な分割が可能である。The method of dividing this group of characters changes depending on the font, or the optimal division can be performed depending on the contents of the memory of each device.
この時メモリ内でアルファベット、ひらがな、数字、カ
タカナ、記号、は漢字に比らべれば明らかに字体が異な
り1つの別分類とすべきである。At this time, alphabets, hiragana, numbers, katakana, and symbols have clearly different fonts than kanji in memory and should be classified as a separate category.
従って4つの分類は漢字以外を一つのブロックとし、各
漢字の中で、黒画素の数に応じて3つブロックに分類す
るのが最も適当である。Therefore, in the four classifications, it is most appropriate to treat characters other than Kanji as one block, and classify each Kanji into three blocks according to the number of black pixels.
この様にすれば対象文字のコード信号により漢字かそれ
以外かを、又、パターンメモリ4からの読み出された圧
縮データから黒画素により漢字の中どのブロックに分類
するのを識別でき、該当するファイルを選択し、このか
かるファイルメモリを使用することにより、再生が可能
である。In this way, it is possible to identify whether the target character is a kanji character or not, based on the code signal of the target character, and to identify which block of kanji characters are classified based on the black pixels from the compressed data read from the pattern memory 4. Playback is possible by selecting a file and using this file memory.
又、パターンメモリ4に各漢字又はその他の文字毎にど
のファイルメモリを選択するかを示すデータを同時に付
加することで、黒画素をカウントする必要なく各ファイ
ルメモリを選択することができる。Furthermore, by simultaneously adding data indicating which file memory to select for each Chinese character or other character to the pattern memory 4, each file memory can be selected without having to count black pixels.
第6図は上述した本発明を実施するためのブロック図で
図には示していないが、第3図で説明したCPU1とプ
ログラムメモリ2とにより制御され、データ伝達等の処
理が実行される。FIG. 6 is a block diagram for implementing the present invention described above, and although not shown in the figure, it is controlled by the CPU 1 and program memory 2 described in FIG. 3, and processes such as data transmission are executed.
図中4は第3図で説明したパターンメモリであり、8は
パターンメモリより送られて来るパターンデータをファ
イルメモリ群12を選択するための信号と市松圧縮デー
タを分離する分離回路である。In the figure, 4 is the pattern memory explained in FIG. 3, and 8 is a separation circuit that separates the pattern data sent from the pattern memory into a signal for selecting the file memory group 12 and checkered compressed data.
つまり、圧縮データの黒画素「1」なる信号の数をカウ
ンタ等によりカウントを行いこのカウント内容をデコー
ダ9に送り、該デコーダ9よりファイルメモリ12の選
択信号が出力される。That is, the number of black pixel "1" signals in the compressed data is counted by a counter or the like, the count contents are sent to the decoder 9, and the decoder 9 outputs a selection signal for the file memory 12.
この信号はファイルメモリ群12の何れかのファイルメ
モリを選択する。This signal selects any file memory in the file memory group 12.
一方、圧縮データはスタックメモリ10に一時貯えられ
る。On the other hand, compressed data is temporarily stored in the stack memory 10.
上記ファイルメモリ群には4つのファイルメモリから成
り、夫々のファイルメモリには先に説明した如く、黒画
素の数が同−又はそれに近いものが分類してファイルさ
れており、例えば数字、アルファベット等の字群は1つ
のファイルに貯められた形となっている。The above file memory group consists of four file memories, and as explained earlier, in each file memory, items with the same or similar number of black pixels are classified and filed, such as numbers, alphabets, etc. The character group is stored in one file.
又、11は第4図に示す如く1〜12のサンプリング点
のデータをスタックメモリ10より得、このデータをア
ドレスとして今現在選択中のファイルメモリ12に入力
するための回路である。Further, 11 is a circuit for obtaining data of sampling points 1 to 12 from the stack memory 10 as shown in FIG. 4, and inputting this data as an address to the currently selected file memory 12.
13はファイルメモリ12より出力されたデータを順次
記憶する予測点のメモリであり、該メモリ13に全予測
点の予測データが貯えられると、このデータと上記圧縮
データを記憶したスタックメモリ10のデータとが交互
に出力されパターン再生メモリ14に記憶されていく。Reference numeral 13 denotes a prediction point memory that sequentially stores the data output from the file memory 12. When the prediction data of all prediction points is stored in the memory 13, the data of the stack memory 10 storing this data and the compressed data is stored. are alternately output and stored in the pattern reproduction memory 14.
次に第6図に示すブロック図のデータの流れを簡単に説
明すれば、まず、第3図で説明した如くCPU1にて外
部インターフェースを介して文字データが取り込まれ、
このデータに対応するパターンがパターンメモリ4より
読み出される。Next, to briefly explain the data flow in the block diagram shown in FIG. 6, first, as explained in FIG. 3, character data is taken in by the CPU 1 via the external interface.
A pattern corresponding to this data is read out from the pattern memory 4.
この読み出されたパターンデータは分離回路8に送られ
、黒画素の数がカウントされると共にスタックメモリ1
0に記憶される。This read pattern data is sent to the separation circuit 8, where the number of black pixels is counted and the stack memory 1
Stored as 0.
ここで、上記黒画素のカウントデータはデコーダ9に送
られ、カウント数に応じてファイルメモリ群12の何れ
かのメモリを選択する。Here, the count data of the black pixels is sent to the decoder 9, and one of the memories in the file memory group 12 is selected according to the count number.
つまりパターンメモリ4より読み出されたパターンデー
タに対応するファイルメモリが選択される。That is, the file memory corresponding to the pattern data read out from the pattern memory 4 is selected.
一方、スタックメモリ10より順次第2図Cに対応する
12のサンプリング点のデータが回路11へ送られ、こ
の12ビットのデータをアドレスとして選択中のファイ
ルメモリに入力される。On the other hand, the stack memory 10 sequentially sends data at 12 sampling points corresponding to FIG. 2C to the circuit 11, and inputs this 12-bit data as an address into the selected file memory.
そのためかかるファイルメモリより予測点の推察された
データが出力され、このデータが順次メモリ13に記憶
される。Therefore, data on which predicted points are estimated is output from the file memory, and this data is sequentially stored in the memory 13.
そして512個所の予測点の予測データが得られれば、
スタックメモリ10からのデータとメモリ13からのデ
ータが交互にパターン再生メモリに貯えられ、入力され
た文字のパターンデータが再生される。And if the prediction data of 512 prediction points is obtained,
Data from the stack memory 10 and data from the memory 13 are alternately stored in the pattern reproduction memory, and the pattern data of the input character is reproduced.
又、パターン再生メモリ14に貯えられたパターンデー
タは、CPU1の処理により印字部に送られ、ドットパ
ターンが形成される。Further, the pattern data stored in the pattern reproduction memory 14 is sent to the printing section through processing by the CPU 1, and a dot pattern is formed.
上述の如くファイルメモリを文字群毎にもつことにより
エラー率が低下し、原パターンに近い、再生パターンを
得ることができる。By having a file memory for each character group as described above, the error rate is reduced and a reproduced pattern close to the original pattern can be obtained.
又、第7図は文字群を別の分離により分けたものを実施
するためのブロック図である。FIG. 7 is a block diagram for implementing another separation of character groups.
この特徴、即ち文字群の分類は、サンプリング点の12
画素の取り方により分類する。This feature, that is, the classification of character groups, is based on 12 of the sampling points.
Classified by how pixels are taken.
ここで、ある状態においては黒が多いからそういう場合
には予測点は黒であると決定されるが、その場合に切り
すてられた白画素の個数が再現した場合のエラーの数に
なる。Here, in a certain state, there are many black pixels, so in that case, the predicted point is determined to be black, but the number of white pixels cut off in that case becomes the number of errors when reproduced.
したがって、同一文字でも第2図のaというとり方をし
た場合でのエラーの数とCというとり方をした場合のエ
ラー数とでは違いがある。Therefore, even for the same character, there is a difference between the number of errors when the character is written as a in FIG. 2 and the number of errors when the character is written as C.
このエラーの違いが文字の特徴である。This difference in errors is a characteristic of the characters.
即ち、第2図に示したa〜dの12画素のとり方により
、そのとり方に適した文字群毎に分類する。That is, depending on how the 12 pixels a to d shown in FIG. 2 are arranged, they are classified into character groups suitable for the arrangement.
次に、文字群に分けるための手段を以下に記す。Next, the means for dividing into character groups will be described below.
第2図a,b,c,dでそれぞれ全文字についてのファ
イルメモリを作る。File memories for all characters are created in Figure 2 a, b, c, and d.
ここで第2図のaは横にある画素とのつながりを必要と
した方がよいものbは縦との、Cは周囲を平等に、dは
右斜め方向の画素を必要とするものということができる
。Here, in Figure 2, a should be connected to horizontal pixels, b should be connected vertically, C should be connected equally to the surroundings, and d should be connected diagonally to the right. I can do it.
次に、それぞれのファイルメモリを用いて、各文字ごと
にエラーの数を求めそのいちばん少ないものを、集めて
分類する。Next, each file memory is used to calculate the number of errors for each character, and the ones with the fewest errors are collected and classified.
このようにして分類した文字群毎に、その群に属する文
字についてのみ第2図a = dのうち該当パターンに
ついて専用のファイルメモリを作る。For each character group classified in this way, a dedicated file memory is created for the corresponding pattern in FIG. 2 a = d only for the characters belonging to that group.
これがその各文字群についてのファイルメモリである。This is the file memory for each character group.
このようにして文字群を分類できる。Character groups can be classified in this way.
以−七のようにしてできたファイルメモリのどれを使用
するかは、パターンメモリにセレクトビットとして2ビ
ット追加することで選択できる。Which of the file memories created as described above is to be used can be selected by adding two bits as select bits to the pattern memory.
つまり、パターンメモリとしては、各文字について51
4ビット、ファイルメモリとしては212×4ビットの
メモリを用意することで原パターンと同様のパターンを
再生することができる。In other words, the pattern memory is 51 for each character.
By preparing a 212×4 bit memory as a file memory, a pattern similar to the original pattern can be reproduced.
その例として第7図のブロック図を参照して説明する。An example of this will be explained with reference to the block diagram of FIG.
この第7図は第6図のものとほぼ同様であり、図中8′
はパターンメモリ4より送られてくるパターンデータの
内、ファイルメモリ群12′を選択するための信号と市
松圧縮データを分離する分離回路である。This figure 7 is almost the same as that of figure 6, and in the figure 8'
is a separation circuit that separates the signal for selecting the file memory group 12' from the pattern data sent from the pattern memory 4 and the checkered compressed data.
この分離回路8′はパターンメモリ4から読み出された
パターンデータの内パターンデータをスタックメモリ1
0に、ファイルメモリ群を選択するセレクト信号をデコ
ーダ9′に送る。This separation circuit 8' transfers the pattern data of the pattern data read from the pattern memory 4 to the stack memory 1.
0, a select signal for selecting a file memory group is sent to the decoder 9'.
デコーダ9′に送られたセレクト信号はデコードされフ
ァイルメモリ群12′の内何れかを選択し且つ12画素
選択回路11′に入力される。The select signal sent to the decoder 9' is decoded, selects one of the file memory groups 12', and is input to the 12 pixel selection circuit 11'.
即ち、デコーダ9′からの信号はファイルメモリ群12
′の内、上記パターンデータに対応するファイルメモリ
を選択すると共に、該ファイルメモリを使用する上で、
周囲12画素の第2図a = dの内、何れかの状況を
選ぶためのものである。That is, the signal from the decoder 9' is sent to the file memory group 12.
', select the file memory corresponding to the above pattern data, and use the file memory,
This is for selecting any situation among the surrounding 12 pixels a = d in Figure 2.
そこで、スタックメモリ10からデータは12画素選択
回路11′に入力され、該ブロック11′で第2図のa
= dの何れかを選択し、例えばaに示すサンプリン
グ点の12ビットのデータがアドレスとしてファイルメ
モリ群12′の選択中であるメモリに入力される。Therefore, the data from the stack memory 10 is inputted to the 12 pixel selection circuit 11', and in this block 11', the data shown in FIG.
For example, 12-bit data at the sampling point shown in a is input as an address to the memory being selected in the file memory group 12'.
これにより、予測点の予測データが出力される。As a result, predicted data of the predicted point is output.
この出力データは予測データを順次記憶するメモリ13
に記憶される。This output data is stored in a memory 13 that sequentially stores prediction data.
is memorized.
そこで、メモリ13に512個所全ての予測点の予測デ
ータが貯えられると、このデータとスタックメモリ10
の内のデータとが交互にパターン再生メモリ14に順次
記憶させ、1つの文字を再生する。Therefore, when the prediction data of all 512 prediction points are stored in the memory 13, this data and the stack memory 10
The data in the characters are sequentially stored alternately in the pattern reproduction memory 14, and one character is reproduced.
この再生されたパターン再生メモリ14内のデータはC
PUIの処理に従い、印字部等に送られドットパターン
が形成される。This reproduced data in the pattern reproduction memory 14 is C
According to the PUI processing, the image is sent to a printing unit or the like and a dot pattern is formed.
上述の様にして市松状に取り除かれたパターンが再生さ
れる訳で、文字により、その文字に適したファイルメモ
リを用いるためエラー率が低下すると共に再生パターン
をほぼ同一となる。The pattern removed in a checkered pattern as described above is reproduced, and since a file memory suitable for the character is used depending on the character, the error rate is reduced and the reproduction pattern is almost the same.
尚、本発明においての文字の分類は一例であり、それぞ
れの字体に適した分類を行えばよい。Note that the classification of characters in the present invention is merely an example, and classification suitable for each font may be performed.
又、12画素のとり方を第2図a,b,c,dと4例示
して説明したが、このとり方は限定されたものではない
。Further, although four examples of how to take 12 pixels have been described as shown in FIG. 2 a, b, c, and d, this method is not limited to this.
たとえば32X32の明朝体文字においてこのとり方が
ベストだとしても、ゴシック体についてはあてはまらな
いであろうし、また明朝体だとしてもその形についても
多くの字形がありそれぞれに特有のパターンのとり方が
あるからである。For example, even if this method is best for 32x32 Mincho typefaces, it probably does not apply to Gothic typefaces, and even if there is a Mincho typeface, there are many types of fonts, and each type has its own unique pattern. Because there is.
またファイル群の分け数と予測画素決定のための周囲画
素のとる数は本例では12画素及び4群さしてたがこれ
は限定するものではない。Furthermore, the number of file groups to be divided and the number of surrounding pixels for determining predicted pixels are 12 pixels and 4 groups in this example, but are not limited to this.
叙上の如く本発明は文字を分離し、各文字群毎に特有の
予測用のファイルメモリを設けるようにしたものである
から、各予測点のエラーが低下し再生時のパターンは原
パターンと同一か又はほぼ同一のものとなる。As mentioned above, since the present invention separates characters and provides a unique prediction file memory for each character group, the error at each prediction point is reduced and the pattern when reproduced is similar to the original pattern. be the same or nearly the same.
又、最大の利点はパターンメモリ容量は従来のものと比
し半分ですみ、大変経済的である。Moreover, the biggest advantage is that the pattern memory capacity is only half that of the conventional one, making it very economical.
更に、本発明においては、プリンタにおいて説明したが
これに限ることなくワードプロセッサ、ディスプレイ等
の文字処理装置に利用できる。Furthermore, although the present invention has been described with respect to a printer, the present invention is not limited to this and can be applied to character processing devices such as word processors and displays.
第1図は本発明を説明するために供する図、第2図a,
b,c,dは本発明にかかる予測点に対する周囲のサン
プリング点のとり方のいくつかの例を示す図、第3図は
本発明における基本方式を漢字プリンタに実施した場合
の一例を示すプロツク図、第4図はnにるアドレスの予
測定の周囲の状況を説明するための図、第5図は第4図
における各サンプリング点におけるアドレスを示す図、
第6図は本発明における方式を説明するためのブロック
図、第7図は本発明における方式の他の一例を説明する
ためのブロック図である。
4:パターンメモリ、12,12’:ファイルメモリ群
。Figure 1 is a diagram provided to explain the present invention, Figure 2 a,
b, c, and d are diagrams showing several examples of how to take sampling points surrounding the predicted point according to the present invention, and Fig. 3 is a block diagram showing an example of the case where the basic method of the present invention is implemented in a kanji printer. , FIG. 4 is a diagram for explaining the surrounding situation of the predicted address at n, and FIG. 5 is a diagram showing the addresses at each sampling point in FIG. 4.
FIG. 6 is a block diagram for explaining the method according to the present invention, and FIG. 7 is a block diagram for explaining another example of the method according to the present invention. 4: pattern memory, 12, 12': file memory group.
Claims (1)
パターンを市松状にサンプリングした既知データを記憶
し、該既知データからサンプリングされなかった予測点
を補間して文字パターンを再生する文字処理方式におい
て、 各種の文字データに対応するところの各種文字パターン
について、夫々市松状にサンプリングしたデータを記憶
するパターンメモリと、 前記パターンメモリから取出されたサンプリングデータ
からサンプリングされなかった予測点のデータを決定す
るための参照用のファイルを複数種類分備えたファイル
メモリと、 前記各種文字パターンに関して、それらパターンデータ
の黒(又は白)画素の数に基づいて予め前記ファイルメ
モリの中の参照用ファイルの1つに対応づけられた参照
用ファイルを、再生文字パターンに応じて選択する手段
、 とを備え、与えられた文字データに対応するサンプリン
グデータをパターンメモリから取出すと共に前記文字デ
ータに対応するところのファイルメモリの内の参照用フ
ァイルを上記選択手段によって選択してサンプリングさ
れなかった予測点のデータを決定し、この決定した予測
点のデータを前記サンプリングデータに補間して文字パ
ターンを再生するようにしたことを特徴とする文字処理
方式。[Claims] 1. Expressing a character pattern with a dot matrix, storing known data obtained by sampling each character pattern in a checkered pattern, and reproducing the character pattern by interpolating predicted points that were not sampled from the known data. In the character processing method, there is a pattern memory that stores data sampled in a checkered pattern for various character patterns corresponding to various character data, and a pattern memory that stores data sampled in a checkered pattern for each character pattern corresponding to various character data, and a pattern memory that stores predicted points that are not sampled from the sampling data taken out from the pattern memory. a file memory having multiple types of reference files for determining data; and a file memory having a plurality of types of reference files for determining data; means for selecting a reference file associated with one of the files in accordance with the reproduced character pattern; and means for retrieving sampling data corresponding to given character data from the pattern memory and corresponding to the character data. However, the reference file in the file memory is selected by the selection means to determine the data of the prediction point that was not sampled, and the data of the determined prediction point is interpolated to the sampling data to reproduce the character pattern. A character processing method characterized by the following.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15441176A JPS581784B2 (en) | 1976-12-21 | 1976-12-21 | Character processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15441176A JPS581784B2 (en) | 1976-12-21 | 1976-12-21 | Character processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5377432A JPS5377432A (en) | 1978-07-08 |
| JPS581784B2 true JPS581784B2 (en) | 1983-01-12 |
Family
ID=15583555
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP15441176A Expired JPS581784B2 (en) | 1976-12-21 | 1976-12-21 | Character processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS581784B2 (en) |
-
1976
- 1976-12-21 JP JP15441176A patent/JPS581784B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5377432A (en) | 1978-07-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4881069A (en) | Font compression method and apparatus | |
| US4555191A (en) | Method of reducing character font | |
| US4750209A (en) | System for processing an image having both letter and photographic information | |
| CA1311311C (en) | Full page graphics image display data reduction | |
| US4621340A (en) | Method for construction and display of ideographic characters | |
| JPS6367218B2 (en) | ||
| US5617115A (en) | Word processing unit with document display function | |
| JPS6322310B2 (en) | ||
| US4675831A (en) | Method of processing gradation information | |
| JPH0139265B2 (en) | ||
| JP2613255B2 (en) | Character pitch processing method | |
| JP3327650B2 (en) | Recording device | |
| US5621543A (en) | System for compressing a halftone image and method therefor | |
| JPS581784B2 (en) | Character processing method | |
| JPS5840753B2 (en) | Character processing method | |
| KR950004219B1 (en) | Method and device for improving storage area of combined fonts | |
| KR960016738B1 (en) | Information processing method and device | |
| JPH08279915A (en) | Method for compressing data in page printer | |
| JP2972466B2 (en) | Dot pattern compression method and apparatus and output method and apparatus | |
| JPH0458392B2 (en) | ||
| JPS5853338B2 (en) | Dot pattern output method | |
| JP2745546B2 (en) | Printer device | |
| KR920008909B1 (en) | Gradient Printing Method in Dot Matrix Printers | |
| JPH08183208A (en) | Bitmap recording method and recording device | |
| JPH0371028B2 (en) |