[go: up one dir, main page]

JPS5941193B2 - character pattern generator - Google Patents

character pattern generator

Info

Publication number
JPS5941193B2
JPS5941193B2 JP8375978A JP8375978A JPS5941193B2 JP S5941193 B2 JPS5941193 B2 JP S5941193B2 JP 8375978 A JP8375978 A JP 8375978A JP 8375978 A JP8375978 A JP 8375978A JP S5941193 B2 JPS5941193 B2 JP S5941193B2
Authority
JP
Japan
Prior art keywords
pattern
code
run
character
length
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
Application number
JP8375978A
Other languages
Japanese (ja)
Other versions
JPS5510676A (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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP8375978A priority Critical patent/JPS5941193B2/en
Publication of JPS5510676A publication Critical patent/JPS5510676A/en
Publication of JPS5941193B2 publication Critical patent/JPS5941193B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)

Description

【発明の詳細な説明】 この発明はマトリクスで表現された文字パターンを発生
する装置、特に記憶容量力司、さい記憶装置の使用を可
能とする文字パターン発生装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a device for generating a character pattern expressed in a matrix, and particularly to a character pattern generating device that enables the use of a memory device having a large storage capacity.

この種の文字パターン発生装置、特に漢字パターン発生
装置においてマトリクスで表現された文字パターンをそ
のまま記憶しておくことは記憶容量が著しく大きくなり
、高価になる。
In this type of character pattern generation device, especially in a kanji pattern generation device, storing character patterns expressed in a matrix as they are requires a significantly large storage capacity and is expensive.

この点より従来においても漢字パターンを圧縮して記憶
する方式が提案されていた。この方式はmXnのマトリ
クス上で表現された漢字パターンをm’×n’(mくm
、、n’<n)のマトリクスのサブパターンに分割し、
そのサブパターンに出現頻度を考慮した可変長符号、た
とえば一・ラマンの符号を付与し、つまり出現頻度が高
いもの程、符号長が短かい符号を割付け、その符号化デ
ータを記憶する方式や、マトリクスの行方向のサブパタ
ーンの出現頻度を考慮して上述と同様の符号化を行ない
、その符号化データを記憶する方式などがあつた。これ
らの方式はマトリクスサイズの大きな、たとえば24×
24、32×32の漢字パターンにおいては圧縮率は1
/2程度になる。
From this point of view, methods for compressing and storing kanji patterns have been proposed in the past. This method converts the kanji pattern expressed on the mXn matrix to m'×n' (m x m
, , dividing the matrix into subpatterns with n'<n),
A method of assigning a variable length code, such as a 1-Raman code, to the sub-pattern in consideration of the frequency of occurrence, in other words, assigning a code with a shorter code length to a sub-pattern with a higher frequency of occurrence, and storing the encoded data. There has been a method in which encoding similar to the above is performed in consideration of the appearance frequency of sub-patterns in the row direction of the matrix, and the encoded data is stored. These methods have a large matrix size, for example, 24×
For 24, 32 x 32 kanji patterns, the compression ratio is 1.
It will be about /2.

しかし一般の陰極線管表示装置用の漢字パターンとして
使用されている18×16程度の小さなマトリクスサイ
ズのものでは、圧縮率は2/3程度にしかならない。こ
の発明の目的は、小さなマトリクスサイズのものでも、
従来よりも圧縮率が比較的大きい、従つて記憶容量が比
較的小さい記憶装置を使用することができる文字パター
ン発生装置を提供することにある。
However, in the case of a small matrix size of about 18 x 16, which is used as a Kanji pattern for general cathode ray tube display devices, the compression ratio is only about 2/3. The purpose of this invention is to
It is an object of the present invention to provide a character pattern generating device which can use a storage device which has a relatively higher compression rate than the conventional one and has a relatively small storage capacity.

この発明によればマトリクス上で表現された文字パター
ンをサブパターンに分割し、その出現頻度を考慮してサ
ブパターン毎にあらかじめ定めたビツトパターンの割付
けを行ない、そのビツトパターン列をランレングス符号
化したものを各文字について記憶しておく、得ようとす
る文字パターンに応じて、上記記憶から対応する符号を
読出し、その符号をラン符号に変換し、更に各上記割付
けられたサブパターン変換し、このサブパターンを原サ
ブパターンに変換して目的とする文字パターンを得る。
According to this invention, a character pattern expressed on a matrix is divided into sub-patterns, a predetermined bit pattern is assigned to each sub-pattern in consideration of the frequency of occurrence, and the bit pattern string is run-length encoded. According to the character pattern to be obtained, the corresponding code is read from the memory, the code is converted into a run code, and each of the allocated sub-patterns is converted, This subpattern is converted into an original subpattern to obtain the desired character pattern.

この発明の実施例を説明する前に、処理の概要を述べる
Before describing embodiments of the present invention, an outline of the processing will be described.

マトリクス上で表現された漢字パターンのラン長、つま
り同一符号が連続する長さは、第1図に示すように短い
もの程出現頻度が高い方にかたよつている。従つてこの
短かいラン長のものを短かい符号に変換しても圧縮率を
高くすることはできない。18X16のマトリクス上に
表現された漢字のサブパターン、たとえばここでは行方
向ドットパターンの出現頻度が高い、1位から10位ま
でのパターンを示すと第2図Aに示すようになつている
As shown in FIG. 1, the run length of a kanji pattern expressed on a matrix, that is, the length of consecutive identical symbols, tends to be shorter as it appears more frequently. Therefore, even if this short run length is converted into a short code, the compression ratio cannot be increased. FIG. 2A shows sub-patterns of kanji characters expressed on an 18×16 matrix, for example, patterns numbered 1 to 10 in which the line direction dot pattern appears frequently.

この図の第1、第3、第5〜第9番目の各サブパターン
から理解されるようにラン長が1の黒ランが数多く出現
していることがわかる。そこでサブパターンの出現頻度
の高いもの程ラン長が長い方にかたよるように、同一符
号長のパターンを新たに割付ける。
As can be understood from the first, third, fifth to ninth sub-patterns in this figure, many black runs with a run length of 1 appear. Therefore, new patterns with the same code length are allocated so that the run lengths of subpatterns with higher frequency of appearance tend to be longer.

その割付パターンの例を第2図Bに示す。同図Bの第1
〜第4番目は黒のラン長が符号長の半分とし、その位置
をずらしている。このように割付けたビツトパターンを
ランレングス符号化する。
An example of the layout pattern is shown in FIG. 2B. No. 1 in B of the same figure
~Fourth, the black run length is half the code length, and its position is shifted. The bit pattern thus allocated is run-length encoded.

この場合はラン長が長いものが短かい符号となり、しか
もその符号の発生頻度が多くなる。従つて圧縮率が向上
する。この発明ではこのようにして符号化された符号を
記憶装置に記憶しておき、これを読出し、その符号から
文字パターンを作り出す。第3図はこの発明装置の実施
例を示し、装置外部から発生しようとする文字パターン
に対応した文字コードが端子11に入力される。
In this case, a code with a long run length becomes a short code, and moreover, that code occurs more frequently. Therefore, the compression ratio is improved. In this invention, the code encoded in this manner is stored in a storage device, read out, and a character pattern is created from the code. FIG. 3 shows an embodiment of the device according to the invention, in which a character code corresponding to a character pattern to be generated from outside the device is input to the terminal 11.

その入力された文字コードは文字コードレジスタ12に
一時記憶される。この文字コードレジスタ12の内容に
従つてアドレス作成部13は文字パターン記憶部14に
記憶されている該当文字パターンデータの格納先頭アド
レスを作成する。読出制御部15は作成されたその格納
先頭アドレスを文字パターン記憶部14に入力して読出
す。この記憶部14には先に説明したように、第2図B
の割付サブパターンがランレングス符号化された符号が
記憶されている。文字パターン記憶部14から単位記憶
長、つまり1ワードのデータが符号分離部16に読出さ
れる。
The input character code is temporarily stored in the character code register 12. According to the contents of the character code register 12, the address creation section 13 creates the storage start address of the corresponding character pattern data stored in the character pattern storage section 14. The read control section 15 inputs the created storage start address into the character pattern storage section 14 and reads it out. As explained earlier, this storage unit 14 stores data stored in FIG.
A code obtained by run-length encoding of the layout sub-pattern is stored. Data of a unit storage length, that is, one word, is read out from the character pattern storage section 14 to the code separation section 16 .

読出された可変長符号が1単位記憶長データ内に収容さ
れてない場合には符号分離部16でこれを検出して再び
読出制御部15を制御することによつて次のアドレスが
文字パターン記憶部14に入力される。これにより次の
単位記憶長データが読出される。読出された可変長符号
列は符号分離部16によつて符号単位に分離される。分
離された符号はランパターン作成部17でランパターン
に変換される。
If the read variable length code is not accommodated in one unit storage length data, the code separator 16 detects this and controls the read controller 15 again to store the next address as a character pattern. 14. As a result, the next unit storage length data is read out. The read variable-length code string is separated into code units by the code separator 16. The separated codes are converted into a run pattern by a run pattern creation section 17.

このランパターンはビツトパターン編集部18であらか
じめ定められたビツト長のビツトパターンとして編集さ
れ、つまり、一定長の第2図Bに示した割付けサブパタ
ーンに編集される。1つのランパターンで予め定められ
たビツト長のビツトパターンが完成されない場合には編
集部18でこれを検出し、その出力により再び読出匍脚
部15を制御して次の符号を読み出す。
This run pattern is edited by the bit pattern editing section 18 as a bit pattern of a predetermined bit length, that is, edited into an assigned subpattern of a fixed length as shown in FIG. 2B. If a bit pattern of a predetermined bit length is not completed in one run pattern, the editing section 18 detects this and uses its output to control the readout leg section 15 again to read out the next code.

このように1回または複数回可変長符号を読み出すこと
によつて1つまたは複数のランパターンで予め定められ
たビツト長のビツトパターンとして編集される。
By reading the variable length code one or more times in this way, one or more run patterns are edited as a bit pattern with a predetermined bit length.

このビツトパターンはサブパターン変換部19で予め定
められた原サブパターン、即ち第2図Aに示したサブパ
ターンに変換される。この変換は例えば読出し専用メモ
リにより行うことができる。変換されたサブパターンは
パターン出力TOl卿部21を介して装置外部に端子2
2を通じて出力される。その後、装置外部で出力サブパ
ターンを読み取ると読取終了信号が出力され、その信号
が端子23に受信されると、パターン出力制御部21は
サブパターン出力回数を計数し、全サブパターンが読み
出されるまで読出制御部15に次の符号化パターンの読
出しを促し、再び前述と同様の動作を行なう。このよう
にして所望の文字パターンが出力される。第4図は第3
図に示した実施例に装置外部から入力される行番号、即
ちマトリクスで表現された文字パターンの第何行目のサ
ブパターンであるかを指定した番号を一時記憶する行番
号レジスタ24が付加された例である。
This bit pattern is converted by a subpattern conversion section 19 into a predetermined original subpattern, that is, the subpattern shown in FIG. 2A. This conversion can be performed, for example, by a read-only memory. The converted sub-pattern is sent to the outside of the device via the pattern output TOl section 21 at the terminal 2.
It is output through 2. After that, when the output sub-pattern is read outside the device, a reading end signal is output, and when that signal is received at the terminal 23, the pattern output control unit 21 counts the number of sub-pattern outputs until all sub-patterns are read out. The read control unit 15 is prompted to read the next encoded pattern, and the same operation as described above is performed again. In this way, the desired character pattern is output. Figure 4 is the third
A line number register 24 is added to the embodiment shown in the figure for temporarily storing a line number input from outside the device, that is, a number specifying which line of a subpattern in a character pattern expressed in a matrix. This is an example.

この実施例の動作は前述の第3図の実施例と同様である
が、ビツトパターン編集部18内の行番号レジスタ24
の内容で指定された行方向サブパターンに相当するビツ
トパターンをサブパターン変換部19がサブパターンに
変換し、パターン出力匍脚部21を介して装置外部に出
力する。以上の説明は行方向サブパターンを出力するも
のとして行なつてきたが、列方向サブパターンを出力す
る場合も同様に構成できる。
The operation of this embodiment is similar to that of the embodiment shown in FIG.
The sub-pattern converter 19 converts the bit pattern corresponding to the row-direction sub-pattern specified by the contents into a sub-pattern, and outputs it to the outside of the apparatus via the pattern output pedestal 21. Although the above description has been made assuming that row-direction sub-patterns are output, a similar configuration can be applied to output column-direction sub-patterns.

また文字パターンのマトリクスサイズを18X16とし
てきたが、これも24X24、32×32に変更しても
同様処理できる。以上説明したようにこの発明装置によ
ればラン長が短い性質の文字パターンデータの出現頻度
の高いサブパターンに対し、ラン長がそろい、しかもラ
ン長を長くしたピットパターンを割付けた後、ランレン
グス符号化した可変長符号を文字パターン記憶部14に
記憶するため、従来圧縮率があまり高くならなかつたマ
トリクスサイズの小さい文字パターンに対しても圧縮率
を高くすることができ、従つて文字パターン記憶部14
の記憶容量を少なくすることができる。
Further, although the matrix size of the character pattern has been set to 18x16, the same processing can be performed even if the size is changed to 24x24 or 32x32. As explained above, according to the device of the present invention, after allocating pit patterns with the same run length and longer run lengths to sub-patterns that frequently appear in character pattern data having a short run length, Since the encoded variable-length code is stored in the character pattern storage unit 14, the compression ratio can be increased even for character patterns with small matrix sizes, for which the compression ratio was not very high in the past. Part 14
storage capacity can be reduced.

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

第1図は18X16のマトリクスサイズの文字パターン
のラン長の出現率を示す図、第2図は文字パターンを構
成するサブパターンと割付けパターンとの関係の例を示
す図、第3図はこの発明による文字パターン発生装置の
実施例を示すプロツク図、第4図はその他の実施例を示
すプロツク図である。 12:文字コードレジスタ、13:アドレス作成部、1
4:文字パターン記憶部、15:続出制御部、16:符
号分離部、17:ランパターン作成部、18:ビツトパ
メーン編集部、19:サブパターン変換部、21:パタ
ーン出力制御部、24:行番号レジスタ。
Figure 1 is a diagram showing the appearance rate of the run length of a character pattern with a matrix size of 18 x 16, Figure 2 is a diagram showing an example of the relationship between subpatterns and layout patterns that make up the character pattern, and Figure 3 is a diagram showing the present invention. FIG. 4 is a block diagram showing another embodiment of the character pattern generator according to the present invention. 12: Character code register, 13: Address creation section, 1
4: Character pattern storage section, 15: Continuation control section, 16: Code separation section, 17: Run pattern creation section, 18: Bit frame editing section, 19: Sub pattern conversion section, 21: Pattern output control section, 24: Line number register.

Claims (1)

【特許請求の範囲】[Claims] 1 マトリクスで表現された文字パターンを構成するサ
ブパターンを予め定められたビットパターンに変換し、
そのビットパターン列をランレングス符号化した符号列
が各文字について記憶された文字パターン記憶部と、装
置外部から入力される文字コードを一時記憶する文字コ
ードレジスタと、そのレジスタに一時記憶された文字コ
ードを前記記憶部内の対応文字に対するランレングス符
号化された文字符号列の格納先頭アドレスに変換するア
ドレス作成部と、そのアドレス作成部からの先頭アドレ
スに従つて前記文字パターン記憶部からランレングス符
号を読み出し、その読み出されたランレングス符号が1
単位記憶長データ内に収容されてない場合は、上記読出
制御部を制御して次のアドレスに対する記憶を読み出す
読出制御部と、前記記憶部から読み出されたランレング
ス符号列を符号単位に分離する符号分離部と、その符号
分離部により分離された符号をランパターンに変換する
ランパターン作成部と、そのランパターン作成部からの
変換されたランパターンを前記ビットパターンに編集し
、その編集されたビットパターンが予め定められたビッ
ト長のビットパターンを完成していない場合は、上記読
出制御部を制御して次の符号を読み出すビットパターン
編集部と、その編集部によつて編集されたビットパター
ンを前記サブパターンに変換するサブパターン変換部と
、その変換部により変換されたサブパターンを装置外部
に出力するための制御を行なうパターン出力制御部とか
ら構成される文字パターン発生装置。
1 Convert the sub-patterns that make up the character pattern expressed in a matrix into a predetermined bit pattern,
A character pattern storage unit that stores a code string obtained by run-length encoding the bit pattern string for each character, a character code register that temporarily stores character codes input from outside the device, and characters temporarily stored in the register. an address generation section that converts a code into a storage start address of a run-length encoded character code string for a corresponding character in the storage section; and the read run length code is 1
If the data is not stored in the unit memory length data, a read control unit controls the read control unit to read the memory for the next address, and separates the run-length code string read from the memory unit into code units. a code separator that converts the code separated by the code separator into a run pattern; a run pattern generator that edits the converted run pattern from the run pattern generator into the bit pattern; If the bit pattern of the predetermined bit length is not completed, the bit pattern editing section controls the readout control section to read out the next code, and the bit edited by the editing section. A character pattern generation device comprising: a subpattern conversion section that converts a pattern into the subpattern; and a pattern output control section that performs control to output the subpattern converted by the conversion section to the outside of the device.
JP8375978A 1978-07-10 1978-07-10 character pattern generator Expired JPS5941193B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8375978A JPS5941193B2 (en) 1978-07-10 1978-07-10 character pattern generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8375978A JPS5941193B2 (en) 1978-07-10 1978-07-10 character pattern generator

Publications (2)

Publication Number Publication Date
JPS5510676A JPS5510676A (en) 1980-01-25
JPS5941193B2 true JPS5941193B2 (en) 1984-10-05

Family

ID=13811484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8375978A Expired JPS5941193B2 (en) 1978-07-10 1978-07-10 character pattern generator

Country Status (1)

Country Link
JP (1) JPS5941193B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191990U (en) * 1987-05-29 1988-12-09

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191990U (en) * 1987-05-29 1988-12-09

Also Published As

Publication number Publication date
JPS5510676A (en) 1980-01-25

Similar Documents

Publication Publication Date Title
CA1140679A (en) Complex character generator
US5832037A (en) Method of compressing and expanding data
JPH029656A (en) Method of containing font
JPH02289067A (en) Character pattern signal generating device
US4972497A (en) Image coding system
JPS63148717A (en) Data compression and restoration processor
JPS5941193B2 (en) character pattern generator
JPS594706B2 (en) Print pattern generator
JPS6024949B2 (en) character pattern generator
JPS6362151B2 (en)
JP3199292B2 (en) Run-length extraction method, Huffman code conversion method, and MH coding processing method in Huffman code coding
JP2732188B2 (en) Multistage data compression device using optimal code representation
JP2757716B2 (en) Huffman code decoding circuit
JPH07177040A (en) Variable length encoder
JPS5856872B2 (en) Expanded character pattern encoder
JP3221493B2 (en) Dot character font compression / decompression methods and their control devices
JP3009007B2 (en) Binary code decoding circuit
JPS644190B2 (en)
WO2000052937A1 (en) Method for encoding image information and method for decoding
JPS60176084A (en) Character pattern data 2-d compression
JP2972466B2 (en) Dot pattern compression method and apparatus and output method and apparatus
JP2842094B2 (en) Huffman decoding circuit
KR910000593B1 (en) A method for generating characters which are enlarged horizontally
JPS5936779B2 (en) Character pattern data transmission method
JPH06169407A (en) Encoder