JPS6232789B2 - - Google Patents
Info
- Publication number
- JPS6232789B2 JPS6232789B2 JP3559780A JP3559780A JPS6232789B2 JP S6232789 B2 JPS6232789 B2 JP S6232789B2 JP 3559780 A JP3559780 A JP 3559780A JP 3559780 A JP3559780 A JP 3559780A JP S6232789 B2 JPS6232789 B2 JP S6232789B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- memory
- character
- character information
- content
- 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
Landscapes
- Digital Computer Display Output (AREA)
Description
【発明の詳細な説明】
本発明は、キヤラクタジエネレータに関し、特
にそのメモリ内容を圧縮して記憶する装置に関す
るものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character generator, and more particularly to a device for compressing and storing the memory contents thereof.
キヤラクタジエネレータは、大小英文字、数
字、記号、カタカナ文字などの文字情報を記憶
し、必要時にそれを出力する装置である。文字情
報は、JISコードで160文字について定義されてお
り、これらは一般に各文字ごとに9バイト(8ビ
ツト)割り当てられて記憶されている。そのため
通常メモリ容量は、160×9×8=11520ビツト
(約12Kビツト)以上必要とされた。 A character generator is a device that stores character information such as upper and lowercase English letters, numbers, symbols, and katakana characters, and outputs it when necessary. Character information is defined as 160 characters in the JIS code, and these are generally stored with 9 bytes (8 bits) allocated to each character. Therefore, a memory capacity of 160 x 9 x 8 = 11,520 bits (approximately 12 K bits) or more was usually required.
ここでまずこの関係を具体的に説明する。 First, this relationship will be specifically explained.
第1図Aは、ドツトマトリツクス方式で数字
「1」を示している。このドツトマトリツクス
は、8列9行のドツトに細分化され、ドツト総数
は8×9=72である。このドツトの位置は、同図
Bに示すように、「0」「1」で表わされ、メモリ
はその2値状態を記憶することになる。なお、こ
の2値状態は、左右4列に分割し、その各行を2
進数とみなし、16進数に変換すれば、第1図Cの
ように2列のコードとして表示できる。 FIG. 1A shows the number "1" in a dot matrix format. This dot matrix is subdivided into 8 columns and 9 rows of dots, and the total number of dots is 8×9=72. The position of this dot is represented by "0" and "1", as shown in FIG. 1B, and the memory stores its binary state. Note that this binary state is divided into 4 columns on the left and right, and each row is divided into 2 columns.
If it is treated as a base number and converted to hexadecimal, it can be displayed as a two-column code as shown in Figure 1C.
さて、第1図Bにおいて、第2、4、6、8、
9行はいずれも「0」であり、また第8列は実際
に用いられていない。同様に第2図Bの数字
「2」の場合においても、第2、4、6、8行は
すべて「0」であり、しかも第8列は用いられて
おらず意味をもたない。 Now, in Figure 1B, the 2nd, 4th, 6th, 8th,
All nine rows are "0", and the eighth column is not actually used. Similarly, in the case of the number "2" in FIG. 2B, the second, fourth, sixth, and eighth rows are all "0", and the eighth column is not used and has no meaning.
このように従来、意味をもたない部分も含めて
すべてのドツトマトリツクスについてメモリが割
当てられるため、文字情報を蓄えるためのメモリ
容量が膨大なものとなり、そのため装置中でのメ
モリ部分の価格比が高くなるという欠点がある。 Conventionally, memory was allocated for all dot matrices, including meaningless parts, resulting in an enormous memory capacity for storing character information, which caused the price of the memory part in the device to be low. The disadvantage is that it is expensive.
ここに本発明の目的は、記憶内容を圧縮化し、
記憶密度を高め、上記従来例の欠点を除去する点
にある。 Here, the purpose of the present invention is to compress storage contents,
The purpose is to increase the storage density and eliminate the drawbacks of the conventional example.
上記目的のもとに、本発明は、用いられていな
い列の部分に着目し、その列を制御コードとして
用い、この制御コードの内容にもとづいて例えば
「0」内容の行を順次挿入することにより、すべ
てが「0」内容の行をメモリ中の記憶内容から除
外し、記憶内容の圧縮を図るようにしている。 Based on the above object, the present invention focuses on an unused column part, uses that column as a control code, and sequentially inserts rows with "0" content, for example, based on the content of this control code. In this way, lines with all "0" contents are excluded from the stored contents in the memory, thereby compressing the stored contents.
以下、本発明を図に示す一実施例にもとづいて
具体的に説明する。 Hereinafter, the present invention will be specifically explained based on an embodiment shown in the drawings.
本発明では、第1図および第2図のBに示すよ
うに、すべて「0」の行が記憶内容から除去され
ている。したがつて記憶内容は、少なくとも
「1」を有する行に限られている。また第8烈目
は、制御コードとして用いられ、「1」または
「0」を記録している。この制御コードの「1」
は、つぎの行を有効とするもので、制御コード
「0」はつぎの行との間に「0」の行を挿入すべ
きことを意味づけられている。また最後の列はす
べて「1」であり、文字情報の区切りコードとし
てある。 In the present invention, all "0" rows are removed from the memory contents, as shown in FIGS. 1 and 2B. Therefore, the stored content is limited to lines having at least "1". The eighth mark is used as a control code and records "1" or "0". "1" of this control code
This indicates that the next line is valid, and the control code "0" means that a line of "0" should be inserted between the next line and the next line. The last column is all "1" and serves as a delimiter code for character information.
なお、第1図Dの第3行目は、本来すべて
「1」であるが、前記区切りコードと識別するた
めに、そのうち問題とならない部分の1つのビツ
ト例えば7列目を「0」としてある。そして第1
図および第2図のDの内容は、同図Eのような16
進コードで表わせる。このように数字「1」また
は「2」は、8×6=48ビツトで記憶できること
になる。もつとも他のいくつかの文字ではビツト
数が減少しないこともあるが、全体的にビツト数
は従来の方式に比較して少なくなつている。 Incidentally, the third row of Figure 1D is originally all "1", but in order to distinguish it from the delimiter code mentioned above, one bit of the part that does not cause any problem is set to "0", for example, the seventh column. . and the first
The content of D in the figure and Figure 2 is as shown in E of the same figure.
It can be expressed in hexadecimal code. In this way, the number "1" or "2" can be stored in 8×6=48 bits. Although the number of bits may not be reduced for some other characters, overall the number of bits is smaller than in the conventional method.
さて、第3図は、上記の圧縮方式を基礎とした
キヤラクタジエネレータの構成を示している。メ
モリ1は圧縮化された文字情報を制御コードおよ
び区切りコードとともに記憶するもので、制御装
置2はプログラムにもとづいて入出力その他の動
作を制御する部分である。レジスタ3は、1バイ
ト(1行分)の文字情報を記憶するためのもの
で、このレジスタ3の入出力端の加算点に接続さ
れた制御部4は、レジスタ3に取込まれた1バイ
ト分の一部の記憶内容を順次シフトし、1バイト
分の文字情報を所定の配列にするための制御機能
を営む。また制御コード判別部5は、1バイト分
の文字情報の中から制御コードの内容つまり
「0」「1」を判定し、「0」であつたときにコー
ド発生器6にコード発生指令を与える。このコー
ド発生器6は、所定のコードとして「00000000」
のコードを発生し、これをバツフア7に送る。こ
こでバツフア7は、メモリ1から転送されてくる
1バイト分の文字情報を順次整列した状態で一時
的に記憶し、1キヤラクタ分になつたときつまり
区切りコードを確認したとき、その1キヤラクタ
分の文字情報を出力する部分である。 Now, FIG. 3 shows the configuration of a character generator based on the above compression method. The memory 1 stores compressed character information together with control codes and delimiter codes, and the control device 2 is a part that controls input/output and other operations based on programs. Register 3 is for storing 1 byte (1 line) of character information, and the control unit 4 connected to the addition point at the input/output end of register 3 stores 1 byte (1 line) of character information. It performs a control function to sequentially shift the stored contents of a portion of the minutes and arrange one byte worth of character information in a predetermined arrangement. Further, the control code determination unit 5 determines the content of the control code, that is, "0" or "1" from 1 byte of character information, and when it is "0", gives a code generation command to the code generator 6. . This code generator 6 generates "00000000" as a predetermined code.
This code is generated and sent to the buffer 7. Here, the buffer 7 temporarily stores the 1-byte worth of character information transferred from the memory 1 in a sequentially arranged state, and when it reaches 1 character's worth, that is, when the delimiter code is checked, the 1-byte character information is This is the part that outputs character information.
つぎに第4図は、上記キヤラクタジエネレータ
の動作の流れ図を示している。これにもとづいて
動作を説明する。まず、スタート時に読み出すべ
き文字情報のアドレスが指定される。最初に先頭
アドレスが指定され、このアドレスが読み出され
る。これらのアドレスの指定、読み出しは、図示
しないアドレスレジスタの部分で行なわれる。つ
ぎにアドレス内容が読み出されてから、そのアド
レスで指定された記憶番地の内容がメモリ1から
読み出され、レジスタ3に格納される。ここで制
御部4は、記憶情報の内容から区切りコードを判
定し、区切りコードでない場合にその内容をバツ
フア7へ転送し、そこに格納する。 Next, FIG. 4 shows a flowchart of the operation of the character generator. The operation will be explained based on this. First, the address of character information to be read at the start is specified. First, the start address is specified, and this address is read. Designation and reading of these addresses is performed in an address register (not shown). Next, the contents of the address are read out, and then the contents of the storage address specified by the address are read out from the memory 1 and stored in the register 3. Here, the control unit 4 determines the delimiter code from the content of the stored information, and if it is not a delimiter code, transfers the content to the buffer 7 and stores it there.
つぎに制御コード判別部5は、読み出した文字
情報の中から制御コードの内容を判定し、「1」
でないときにアドレス内容を歩進させ、つぎのア
ドレスにもとづいて以上の動作を繰返し、1キヤ
ラクタ分の文字情報をバツフア7に出力する。こ
の読み出し過程で、制御コード判別部5は制御コ
ード「1」の内容を検出したときに、コード発生
器6にコード発生指令を発する。このためコード
発生器6は、メモリ1に代つて所定のコード
「00000000」の内容をバツフア7に出力する。こ
のためバツフア7のストア内容は、第1図または
第2図のBに相当するマトリツクスとなつてい
る。そして最後に読み出し文字情報の中から区切
りコードが現われると、1キヤラクタ分の文字情
報が読み出されたことになり、一連の読み出し動
作は終了することになる。 Next, the control code determination unit 5 determines the content of the control code from the read character information, and determines "1".
If not, the address contents are incremented, the above operation is repeated based on the next address, and character information for one character is output to the buffer 7. During this reading process, when the control code discriminator 5 detects the content of the control code "1", it issues a code generation command to the code generator 6. Therefore, the code generator 6 outputs the contents of a predetermined code "00000000" to the buffer 7 instead of the memory 1. Therefore, the contents stored in the buffer 7 are a matrix corresponding to B in FIG. 1 or 2. Finally, when a delimiter code appears from the read character information, it means that character information for one character has been read, and the series of read operations ends.
なお、以上の実施例は、ドツトマトリツクスで
の任意の行の「00000000」コードをメモリ1と別
に発生しているが、メモリ1と別なコードは、
「11111111」のコードのほか、使用頻度の高い他
の特定のコードであつてもよく、またドツトマト
リツクス上の任意の列であつてもよい。また制御
コードが2ビツト以上であれば、これに対応して
コード発生器は、複数設けることも可能となる。 In the above embodiment, the "00000000" code for any row in the dot matrix is generated separately from memory 1, but the code separate from memory 1 is
In addition to the code "11111111", it may be any other specific code that is frequently used, or it may be any column on the dot matrix. Furthermore, if the control code is 2 bits or more, a plurality of code generators can be provided correspondingly.
そしてこのキヤラクタジエネレータは、文字情
報を記憶するメモリを有する装置例えばプリン
タ、デイスプレイ装置、ワードプロセツサなどに
応用できる。 This character generator can be applied to devices having a memory for storing character information, such as printers, display devices, word processors, and the like.
本発明では、使用頻度の高い特定のコード内容
がメモリに記憶されないから、メモリの記憶容量
がJISコードで最高2/3まで圧縮でき、メモリ密度
の増大が可能となり、また従来不使用の8列目の
ビツトが制御コードとして特定コードの挿入機能
をするので、従来と同じ細分化文字情報が確実に
得られ、さらに1キヤラクタごとに区切りコード
が記憶されているから、圧縮された記憶データが
その区切りコードごとに整然と出力され、さらに
この装置がコード発生機能および制御コード判別
機能を追加することによつて容易に実施できると
いう特有の効果が得られる。 In the present invention, since specific code contents that are frequently used are not stored in memory, the memory storage capacity can be compressed by up to 2/3 of JIS code, making it possible to increase memory density. Since the second bit has the function of inserting a specific code as a control code, the same subdivided character information as before can be obtained reliably, and since a delimiter code is stored for each character, compressed stored data can be The unique effect is that each delimiter code is output in an orderly manner, and that this device can be easily implemented by adding a code generation function and a control code discrimination function.
第1図A,B,C,Dおよび第2図A,B,
C,Dはそれぞれ文字をコード変換した状態のマ
トリツクス図、第3図は本発明のキヤラクタジエ
ネレータのブロツク線図、第4図は動作順序を示
す流れ図である。
1……メモリ、2……制御装置、3……レジス
タ、4……制御部、5……制御コード判別部、6
……コード発生器、7……バツフア。
Figure 1 A, B, C, D and Figure 2 A, B,
C and D are matrix diagrams showing characters after code conversion, FIG. 3 is a block diagram of the character generator of the present invention, and FIG. 4 is a flowchart showing the order of operation. DESCRIPTION OF SYMBOLS 1...Memory, 2...Control device, 3...Register, 4...Control unit, 5...Control code determination unit, 6
...Code generator, 7...Batsuhua.
Claims (1)
コードを制御コードおよび区切りコードとともに
記憶するメモリと、このメモリの読み出し内容を
順次格納し1キヤラクタ分として出力するバツフ
アと、上記メモリから読み出した内容から制御コ
ードの内容を判定しそれにもとづいてコード発生
指令を発生する制御コード判別部と、この制御コ
ード判別部からのコード発生指令を受けたとき上
記バツフアに上記特定コードの内容を出力するコ
ード発生器とを具備することを特徴とするキヤラ
クタジエネレータ。 2 特許請求の範囲第1項記載において、文字情
報中特定のコードとして1行がすべて「0」のコ
ードを除いて記憶し、判別部からのコード発生指
令を受けたときの特定コードとして1行がすべて
「0」のコードを出力せしめてなるキヤラクタジ
エネレータ。[Scope of Claims] 1. A memory for storing codes excluding specific codes in the subdivided character information together with control codes and delimiter codes, and a buffer for sequentially storing the read contents of this memory and outputting them as one character. a control code discriminator that determines the content of the control code from the content read from the memory and generates a code generation command based on the determined content; A character generator comprising a code generator that outputs content. 2. In claim 1, a specific code in character information is stored except for a code in which one line is all "0", and one line is stored as a specific code when a code generation command is received from the discriminator. A character generator that outputs all "0" codes.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3559780A JPS56132389A (en) | 1980-03-19 | 1980-03-19 | Character generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3559780A JPS56132389A (en) | 1980-03-19 | 1980-03-19 | Character generator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS56132389A JPS56132389A (en) | 1981-10-16 |
| JPS6232789B2 true JPS6232789B2 (en) | 1987-07-16 |
Family
ID=12446210
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3559780A Granted JPS56132389A (en) | 1980-03-19 | 1980-03-19 | Character generator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS56132389A (en) |
-
1980
- 1980-03-19 JP JP3559780A patent/JPS56132389A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS56132389A (en) | 1981-10-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0083393B1 (en) | Method of compressing information and an apparatus for compressing english text | |
| US4400697A (en) | Method of line buffer loading for a symbol generator | |
| US4881180A (en) | Character image generating circuit | |
| EP0436026B1 (en) | Compression and decompression method of dot matrix character | |
| US5272768A (en) | Blank strip font compression method and device, and resulting stored, decompressible font | |
| JPS6322310B2 (en) | ||
| JPH029656A (en) | Method of containing font | |
| JPS6232789B2 (en) | ||
| US4187552A (en) | Read only memory character generator system | |
| US4413558A (en) | Line printer and type carrier for use therein | |
| JPS60159784A (en) | pattern output device | |
| JPS5856872B2 (en) | Expanded character pattern encoder | |
| JP2622121B2 (en) | Character processing apparatus and method | |
| EP0279860A1 (en) | Method of arranging ram for display | |
| JPS6339061B2 (en) | ||
| KR900007799B1 (en) | Pont data compressing method | |
| JP2674887B2 (en) | Word processor | |
| JPH0740596A (en) | Character pattern output device | |
| KR900007282B1 (en) | Method for printing a three times enlarged korea-alphabetsin dot matrix printer | |
| JPS5941193B2 (en) | character pattern generator | |
| JPH05281948A (en) | Font pattern compressing and storing method | |
| JPH0223871B2 (en) | ||
| JPS58119865A (en) | Printing mode for ruled line | |
| JPH04220765A (en) | Method for compressing data for determining font charcter | |
| JPH05323935A (en) | Method of compressing and storing font pattern |