JPS5936266B2 - How to store kanji dot patterns in memory - Google Patents
How to store kanji dot patterns in memoryInfo
- Publication number
- JPS5936266B2 JPS5936266B2 JP4686680A JP4686680A JPS5936266B2 JP S5936266 B2 JPS5936266 B2 JP S5936266B2 JP 4686680 A JP4686680 A JP 4686680A JP 4686680 A JP4686680 A JP 4686680A JP S5936266 B2 JPS5936266 B2 JP S5936266B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- kanji
- dot
- dot patterns
- terms
- 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
- 238000000034 method Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 230000005055 memory storage Effects 0.000 description 2
- 101100496114 Caenorhabditis elegans clc-2 gene Proteins 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
Landscapes
- Digital Computer Display Output (AREA)
Description
【発明の詳細な説明】
本発明は、漢字のドットパターンのアクセス速度を向上
するためのドットパターンメモリの格納方法に関するも
のである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a dot pattern memory storage method for improving the access speed of dot patterns of Chinese characters.
JIS制定のC6226の漢字は約6000字種あり、
そのコード体系は1文字2バイトで表現されており、第
1バイト目は区、第2バイト目を点に名付けられ、区は
第1区より第94区、点は第1点より第94点とし、コ
ードがそれぞれ16進表示で21〜7E(010、00
01)〜(111、1110)に割り当てられている。There are approximately 6000 types of kanji in C6226 established by JIS.
The code system is expressed in 2 bytes per character, the 1st byte is the ward, the 2nd byte is the dot, the ku is the 94th ward from the 1st ward, and the dot is the 94th point from the 1st point. and the codes are 21 to 7E (010, 00
01) to (111, 1110).
漢字プリンタ、漢字ディスプレイ装置等に漢字をドット
マトリクス方式によりドット文字により出力する際、ド
ットパターンをそれの格納された記憶装置(以後メモリ
と称する)より、漢字の2バイトコードから換算された
アドレスをアクセスすることにより取り出し、印字駆動
部に渡す。When outputting kanji as dot characters to a kanji printer, kanji display device, etc. using the dot matrix method, the address converted from the 2-byte code of the kanji is transferred from the storage device in which the dot pattern is stored (hereinafter referred to as memory). When accessed, it is taken out and passed to the print drive unit.
この文字発生速度は、漢字コードよりドットパターンメ
モリの該当漢字のアドレスを計算する時間が1つの要因
となつている。従来のドットパターンメモリは漢字コー
ドからアドレスヘの変換が比較的容易な方法として漢字
コードの順序にドットパターンが格納されている。この
場合、漢字コードC1C2(C1二区のコード、C2二
点のコード)なる漢字のドットパターンメモリ内の先頭
アドレスの計算式は(C1×94+C2−n)×B ・
・・・・・・・・(ハとなる。One factor in this character generation speed is the time required to calculate the address of the corresponding kanji in the dot pattern memory from the kanji code. In the conventional dot pattern memory, dot patterns are stored in the order of the Kanji code as a method for relatively easy conversion from the Kanji code to an address. In this case, the formula for calculating the start address in the dot pattern memory of the kanji code C1C2 (code for two wards of C1, code for two points of C2) is (C1 x 94 + C2 - n) x B.
・・・・・・・・・(Ha)
但し、nは定数、Bは1文字のドツトパターンの構成バ
イト数(32×32ドツトパターンの場合はB=128
、又は16×18ドツトパターンの場合はB=36とな
る)である。(1)式を計算する時、Bとカツコ内の数
とのかけ算はBが2のべき乗または2のべき乗の数の1
、又は2項の和(128=27,36=25+22とし
て表わされ、文字発生速度への影響は少ない。しかし、
C1と94とのかけ算については、94を2のべき乗の
項の和で表現すると、94=26+24+23+22+
21であり5項の和であられされることから、ソフトウ
エアで実現した場合、シフト演算回数が多く文字発生速
度が遅くなる。また、ハードウエアで実現した場合、そ
の素子数が多くなり、文字発生部の小形、低価格化がは
かれない。従つて本発明は従来の技術の上記欠点を改善
するもので、その目的は漢字コードよりパターンメモリ
の該当漢字パターンのアドレスへの変換を高速化した漢
字ドツトパターンのメモリ格納方法を提供することにあ
り、その特徴は、漢字コードを区(C1)と点(C2)
なる2バイトであられし、各漢字のドツトパターンを予
め定められる語数ずつ順次メモリに格納するごとき漢字
ドツトパターンのメモリ格納方法において、メモリに各
区毎の最終の点の後に空きエリアをもうけ、該空きエリ
アをふくめた各区毎の点の数Aが空きエリアをふくめな
い点の数A5より大きなA!に近い値で、かつ、A及び
A5を2のべき乗の項の和で表現したとき、Aの項の数
がA′の項の数より小となるごとく前記空きエリアの数
を定めるごとき漢字ドツトパターンのメモリ格納方法に
ある。However, n is a constant, and B is the number of bytes that make up the dot pattern for one character (in the case of a 32 x 32 dot pattern, B = 128
, or B=36 for a 16×18 dot pattern). When calculating formula (1), multiplying B by the number in the box means that B is a power of 2 or 1 of a number that is a power of 2.
, or the sum of two terms (expressed as 128=27, 36=25+22, which has little effect on the character generation speed. However,
Regarding the multiplication of C1 and 94, if 94 is expressed as the sum of terms of powers of 2, then 94=26+24+23+22+
21, which is the sum of five terms, so if it is realized by software, the number of shift operations will be large and the character generation speed will be slow. Furthermore, if it is implemented using hardware, the number of elements will increase, making it difficult to make the character generating section smaller and lower in price. SUMMARY OF THE INVENTION Therefore, the present invention aims to improve the above-mentioned drawbacks of the prior art, and its purpose is to provide a method for storing Kanji dot patterns in memory, which speeds up the conversion of Kanji patterns into addresses in pattern memory from Kanji codes. Yes, the feature is that the kanji code is ku (C1) and dot (C2).
In a memory storage method for kanji dot patterns, in which a predetermined number of words for each kanji dot pattern are sequentially stored in memory, an empty area is created after the last point of each ward in the memory, and the empty area is The number A of points in each ward including the area is greater than the number A5 of points excluding vacant areas! , and when A and A5 are expressed as the sum of terms that are powers of 2, the number of vacant areas is determined such that the number of terms in A is smaller than the number of terms in A'. It's in the way patterns are stored in memory.
好ましくはA′=94のとき、空きエリア数を2として
A−94+2=96とする。第1図は本発明に用いた漢
字コード表で、第95点、96点を付加して一区を96
点としたものである。Preferably, when A'=94, the number of free areas is 2, and A-94+2=96. Figure 1 is the kanji code table used in the present invention, with the 95th and 96th points added to make one ward 96.
This is a dot.
又第2図はパターンメモリマツプ(B=36)を示す。
本コード表にもとづいてドツトパターンをメモリへ格納
した場合、漢字コードClC2なる漢字のドツトパター
ンメモリ内の先頭アドレスの計算式は、\VlllVν
V4−一′o
となる。FIG. 2 also shows a pattern memory map (B=36).
When dot patterns are stored in memory based on this code table, the formula for calculating the start address in the dot pattern memory of the kanji code ClC2 is \VllllVν
V4-1'o.
但し、n′は定数、Bは(1)式と同じである。ここで
C1と96とのかけ算については、96::26+25
であることから、(1)式に比ベシフト演算回数が少く
なり、ソフトウエアで実験した場合、演算時間は約2/
3に短縮できる。第1図及び第2図において、点95及
び点96(図の斜線部)は空きスペースであり、これら
の空きスペースの存在は本発明の特徴のひとつである。However, n' is a constant and B is the same as in equation (1). Here, for the multiplication of C1 and 96, 96::26+25
Therefore, the number of comparative shift calculations in equation (1) is reduced, and when experimented with software, the calculation time is approximately 2/
It can be shortened to 3. In FIGS. 1 and 2, points 95 and 96 (shaded areas in the figures) are empty spaces, and the existence of these empty spaces is one of the features of the present invention.
第3図は従来の漢字コード表により式(1)のカツコ内
の演算をハードウエアで実現した場合のプロツク構成図
であり、第4図は95点、96点を付加した漢字コード
表により式(2)のカツコ内の演算をハードウエアで実
現した場合のブ田ンク構成図である。Figure 3 is a block configuration diagram when the calculations in the brackets of equation (1) are realized in hardware using the conventional kanji code table, and Figure 4 shows the block diagram of the block diagram using the kanji code table with 95 points and 96 points added. FIG. 2 is a block diagram showing the structure of a block when the calculations in the box (2) are realized by hardware.
第3図、第4図はそれぞれ1は入力された漢字の2バイ
トコード、2はシフトレジスタ、3は加算器、4は減算
器を示す。なお点線で囲つた部分はC1×94+C2、
又はC1×96+C2の演算を行なう。本発明の方法は
従来の方法に比べ、シフトレジスタの数が少なく、回路
構成も小規模となり、小形低価格化が期待される。In FIGS. 3 and 4, 1 indicates a 2-byte code of the input Chinese character, 2 indicates a shift register, 3 indicates an adder, and 4 indicates a subtracter. The part surrounded by the dotted line is C1×94+C2,
Or perform the calculation C1×96+C2. Compared to the conventional method, the method of the present invention requires fewer shift registers and has a smaller circuit configuration, and is expected to be smaller and lower in price.
また、第4図の機能をソフトウエアで実現する場合は乗
算速度が早くなり、文字発生速度が向上することから、
中高速プリンタ、デイスプレイ装置の漢字ドツトパター
ンメモリとしての応用が可能となる。以上説明したよう
に、本発明によるJISC6226漢字のドツトパター
ンのメモリへの格納方法は、コードからメモリのアドレ
スへの変換が従来の方法に比べ高速になり、多種な滑字
出力装置および表示装置への応用が可能となる。Additionally, if the function shown in Figure 4 is implemented using software, the multiplication speed will be faster and the character generation speed will be improved.
It can be applied as a kanji dot pattern memory for medium-high speed printers and display devices. As explained above, the method of storing JISC6226 kanji dot patterns in memory according to the present invention enables faster conversion from codes to memory addresses than conventional methods, and can be used in a variety of smooth character output devices and display devices. It becomes possible to apply
またハードウエアによる実現も、素子数の削減がはかれ
、コンパクト化・低価格化が達成できる利点がある。Also, implementation using hardware has the advantage of reducing the number of elements, making it more compact and lower in price.
第1図は本発明による漢字ドツトパターンのメモリ格納
方法に適用される漢字コードを示す図、第2図は本発明
によるパターンメモリマツプを示す図、第3図は従来の
技術によりパターンメモリのアドレスを計算する回路、
第4図は本発明によりパターンメモリのアドレスを計算
する回路である。
1;漢字の2バイトコード、2;シフトレジスタ、3;
加算器、4;減算器。FIG. 1 is a diagram showing kanji codes applied to the method of storing kanji dot patterns in memory according to the present invention, FIG. 2 is a diagram illustrating a pattern memory map according to the present invention, and FIG. A circuit that calculates
FIG. 4 is a circuit for calculating addresses of a pattern memory according to the present invention. 1; Kanji 2-byte code, 2; Shift register, 3;
Adder, 4; subtractor.
Claims (1)
イトであらわし、各漢字のドットパターンを予め定めら
れる語数ずつ順次メモリに格納するごとき漢字ドットパ
ターンのメモリ格納方法において、メモリに各区毎の最
終の点の後に空きエリアをもうけ、該空きエリアをふく
めた各区毎の点の数Aが空きエリアをふくめない点の数
A′より大きなA′に近い値で、かつ、A及びA′を2
のべき乗の項の和で表現したとき、Aの項の数がA′の
項の数より小となるごとく前記空きエリアの数を定める
ことを特徴とする漢字ドットパターンのメモリ格納方法
。 2 A′=94(=2^6+2^4+2^3+2^2+
2^1)でありA=96(=2^6+2^5)であるご
とき特許請求の範囲第1項の、漢字ドットパターンのメ
モリ格納方法。[Claims] 1. A method for storing kanji dot patterns in memory, in which a kanji code is represented by two bytes consisting of a ward (C_1) and a dot (C_2), and the dot pattern of each kanji is sequentially stored in a memory in units of a predetermined number of words. , an empty area is created in the memory after the last point of each area, and the number A of points in each area including the empty area is a value close to A' that is larger than the number A' of points not including the empty area, and , A and A' as 2
A method for storing Kanji dot patterns in a memory, characterized in that the number of free areas is determined such that the number of terms of A is smaller than the number of terms of A' when expressed as the sum of terms of powers of . 2 A'=94 (=2^6+2^4+2^3+2^2+
2^1) and A=96 (=2^6+2^5).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4686680A JPS5936266B2 (en) | 1980-04-11 | 1980-04-11 | How to store kanji dot patterns in memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4686680A JPS5936266B2 (en) | 1980-04-11 | 1980-04-11 | How to store kanji dot patterns in memory |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS56143487A JPS56143487A (en) | 1981-11-09 |
| JPS5936266B2 true JPS5936266B2 (en) | 1984-09-03 |
Family
ID=12759255
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4686680A Expired JPS5936266B2 (en) | 1980-04-11 | 1980-04-11 | How to store kanji dot patterns in memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5936266B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003151471A (en) | 2001-10-31 | 2003-05-23 | Lg Philips Displays Korea Co Ltd | Color flat display element |
-
1980
- 1980-04-11 JP JP4686680A patent/JPS5936266B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS56143487A (en) | 1981-11-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS5936266B2 (en) | How to store kanji dot patterns in memory | |
| JPS5556245A (en) | Correction system for expanded character pattern | |
| JP2935189B2 (en) | Outline font processor | |
| JPS59180583A (en) | character pattern generator | |
| JP2819931B2 (en) | Microprocessor | |
| JPS54146932A (en) | Address converter | |
| KR20020070106A (en) | Method of controlling the display of a character based on a dynamic code generation | |
| JP3139384B2 (en) | Image processing device | |
| JP3074910B2 (en) | Division device | |
| JPS5840769B2 (en) | random number generator | |
| JPS60183177A (en) | Serial-type electronic printer | |
| JPS58132785A (en) | Graphic japanese character pattern generator | |
| CN116861143A (en) | Method for realizing convolution of small input diagram and small weight | |
| JP2000293144A (en) | Liquid crystal drive circuit with built-in memory and liquid crystal display device | |
| JPS6163884A (en) | Graphic/character pattern generator | |
| JPS60235191A (en) | Character formation device using stroke composition | |
| JPH02164562A (en) | Character processor | |
| JPS63202476A (en) | document output device | |
| JPS63178292A (en) | character pattern generator | |
| JP3007396B2 (en) | Character processing device and character processing method | |
| JPH0511733A (en) | Character generator | |
| JPH0325667A (en) | Japanese word processing system | |
| JPH04186292A (en) | Character pattern creation device | |
| JPH0223871B2 (en) | ||
| JPS61289380A (en) | Document generator |