JPS62250485A - Character compression system - Google Patents

Character compression system

Info

Publication number
JPS62250485A
JPS62250485A JP61093903A JP9390386A JPS62250485A JP S62250485 A JPS62250485 A JP S62250485A JP 61093903 A JP61093903 A JP 61093903A JP 9390386 A JP9390386 A JP 9390386A JP S62250485 A JPS62250485 A JP S62250485A
Authority
JP
Japan
Prior art keywords
character
common
characters
flag
vertical
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
JP61093903A
Other languages
Japanese (ja)
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP61093903A priority Critical patent/JPS62250485A/en
Publication of JPS62250485A publication Critical patent/JPS62250485A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [発明の技術分野] 本発明は、日本語ワードプロセッサあるいは日本語処理
1111.を備えた電子計算機等の情報処理装置に用い
られるキャラクタ発生器における文字キItラクタの圧
縮方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a Japanese word processor or Japanese processing 1111. The present invention relates to a compression method for character characters in a character generator used in an information processing device such as an electronic computer equipped with a character generator.

[従来技術とその問題点] 日本語ワードプロセッサあるいは日本1iii処理機能
を備えた電子it譚機等の情報処理装置においては、表
示用文字あるいは印字用文字の文字パターンを発生させ
るためにキャラクタ発生器を備えている。このキャラク
タ発生器は、一般にROMにより構成されているが、従
来ではJISに定められた各文字に対応する文字パター
ンを記憶するようにしているので、RO〜1の言句が非
常に大きくなる。例えば1文字をr32X32ドツト」
と構成とした場合、1文字でr32x32−1024ビ
ツト」、約1Mビット必要とし、3000字を記憶する
には 32X32x3000〜3Mビット 必要とする。上記のように従来のキャラクタ発生方法で
は、キャラクタ発生器のROM11mが非常に大きくな
り、小型化する場合に問題となると共にコストも非常に
高くなる。
[Prior art and its problems] In information processing devices such as Japanese word processors or electronic IT machines equipped with Japanese 1III processing functions, character generators are used to generate character patterns for display characters or printing characters. We are prepared. This character generator is generally constituted by a ROM, but conventionally it stores character patterns corresponding to each character defined by JIS, so the wording of RO~1 becomes very large. For example, one character is r32 x 32 dots.
In this case, one character requires 32x32-1024 bits, or approximately 1M bits, and 32x32x3000-3M bits are required to store 3000 characters. As described above, in the conventional character generation method, the ROM 11m of the character generator becomes extremely large, which poses a problem when miniaturizing the character generator, and also increases the cost.

[発明の目的] 本発明は上記の点に鑑みてなされたもので、キャラクタ
発生器のメモリ(ROM)容」を非常に少なくでき、情
報処理機器の小型化に有利であると共にコストの低下を
図り得る文字キャラクタの圧縮方式を提供することを目
的とする。
[Object of the Invention] The present invention has been made in view of the above points, and it is possible to significantly reduce the memory (ROM) capacity of a character generator, which is advantageous in downsizing information processing equipment and reducing costs. The purpose of this invention is to provide a method for compressing text characters.

[発明の要点] 漢字等の字体を部首別に分離すると共に上記部首を含む
字体を共通部に分離して共通キャラクタを構成し、かつ
、この共通キャラクタに対して縦フラグエリア及び横フ
ラグエリアを設けてキャラクタメモリに記憶させ、上記
共通キャラクタにおいて縦列、横列に同じ状態のキャラ
クタが続く場合に同じキャラクタを省略して縦棒、横線
を圧縮すると共に、この圧縮により省略されたビット数
に応じて省略数フラグを上記対応するフラグエリアに記
憶することにより、文字キャラクタを圧縮するようにし
たものである。
[Key Points of the Invention] A common character is constructed by separating fonts such as kanji into radicals and separating fonts including the radicals into common parts, and for this common character, a vertical flag area and a horizontal flag area are created. is provided and stored in the character memory, and when characters in the same state continue in the vertical and horizontal columns of the above common characters, the same characters are omitted and the vertical bars and horizontal lines are compressed, and the number of bits omitted by this compression is By storing the omitted number flag in the corresponding flag area, the characters are compressed.

[発明の実施例] 以下、図面を参照して本発明の一実施例を説明する。ま
ず、第1図により全体の回路構成について説明する。第
1図において、11は基準タイミング信号を発生する発
振回路である。また、12はプログラムカウンタで、R
OMアドレススタックレジスタ13の記憶アドレス及び
回路の動作条件等を参照してプログラムROM14のア
ドレスを指定する。このプログラムROM14は、各種
制御命令を記憶しており、プログラムカウンタ12から
のアドレス指定に従って動作し、制御命令をパスライン
BLIを介してインストラクションデコーダ15に出力
すると共に、第lRAM16に対するアドレスをパスラ
インBL2を介してアドレスカウンタ17に出力する。
[Embodiment of the Invention] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. First, the overall circuit configuration will be explained with reference to FIG. In FIG. 1, 11 is an oscillation circuit that generates a reference timing signal. Also, 12 is a program counter, R
The address of the program ROM 14 is designated by referring to the storage address of the OM address stack register 13 and the operating conditions of the circuit. This program ROM 14 stores various control instructions, operates according to the address designation from the program counter 12, outputs the control instructions to the instruction decoder 15 via the pass line BLI, and also outputs the address for the first RAM 16 to the pass line BL2. It is output to the address counter 17 via the address counter 17.

また、プログラムROM14は、パスラインBL3を介
して自己アドレスをプログラムカウンタ12に出力する
と共に、第2RAM18に対するアドレスをアドレスカ
ウンタ19に出力し、更にその他のデータをパスライン
BL3を介してアンド回路21、比較回路22、演算回
路23、デコーダ24に出力する。上記第lRAM16
及び第2RAM18は、例えば40X 40ビツトの容
量を有し、第2図(a)、(b)に示すように構成され
ている。すなわち、第lRAM16は、第2図(a)に
示スヨうに38X38ビツトがキャラクタエリア16a
で、その上側の2×40ビツト及び左側の2×40ピツ
トがフラグエリア16bとなっている。また、第2RA
M18は、32X32ビツトが再生エリア18a、その
他のエリアが記憶エリア18bとなっている。そして、
上記第lRAM16及び第2RAM18から読出される
データがそれぞれアンド回路25.26を介してパスラ
インBL4に出力されると共に、アンド回路21の出力
がパスライン814に出力される。
Further, the program ROM 14 outputs its own address to the program counter 12 via the pass line BL3, outputs the address for the second RAM 18 to the address counter 19, and further outputs other data to the AND circuit 21, via the pass line BL3. It is output to the comparison circuit 22, the calculation circuit 23, and the decoder 24. The above first RAM 16
The second RAM 18 has a capacity of, for example, 40×40 bits, and is configured as shown in FIGS. 2(a) and 2(b). That is, as shown in FIG. 2(a), the first RAM 16 has 38x38 bits in the character area 16a.
The 2×40 bits on the upper side and the 2×40 pits on the left side are the flag area 16b. Also, the 2nd RA
In M18, 32×32 bits is a reproduction area 18a, and other areas are a storage area 18b. and,
The data read from the first RAM 16 and the second RAM 18 are output to the pass line BL4 via AND circuits 25 and 26, respectively, and the output of the AND circuit 21 is output to the pass line 814.

このパスラインBL4に出力されたデータは、上記第l
RAM16、第2RAM18、比較回路22、演算回路
23に入力されると共に、アドレスカウンタ27、レジ
スタ28.8ビツト構成のスタックレジスタ298〜2
9dに入力される。上記アドレスカウンタ27は、その
カウント値によってキャラクタメモリ、すなわちキャラ
クタROM31のアドレスを指定する。このキャラクタ
ROM31は、第3図に示すように共通キャラクタ部3
1a及び共通キャラクタ指示メモリ部31bからなり、
詳細を後述するように各キャラクタに対する共通部分を
分離し、補正、圧縮、等の処理を行なったキャラクタデ
ータを記憶するようになっている。そして、上記キャラ
クタROM31から読出されるキャラクタデータは、ア
ンド回路32を介してパスラインBL4に出力され、レ
ジスタ28の保持データはアンド回路33を介してパス
ラインBL4に出力される。また、比較回路22の比較
出力はアンド回路34を介してプログラムカウンタ12
へ送られる。しかして、上記インストラクションデコー
ダ15は、プログラムROM14からの制御命令をデコ
ードしてアドレスカウンタ17.19.27にそれぞれ
セット信@Set及び「+1」信号、第lRAM16及
び第2 RA M18に書込み信号W、レジスタ28に
自込み信号W及び読出し信号Rを与える。また、インス
トラクションデコーダ15は、演韓回路23に演算指令
、デコーダ24にクロックパルス、アンド回路21.2
5.26.32.33.34にゲート制御信号を与える
。上記デコーダ24は、プログラムROM14からのデ
ータをデコードしてスタックレジスタ29a〜29dの
何れかを選択し、インストラクションデコーダ15から
のクロックパルスを与える。スタックレジスタ29a〜
29dは、パスラインBL4を介して送られてくるデー
タをデコーダ24からのクロックパルスに同期して読込
み、32ビツトの文字データとして表示部(図示せず)
へ出力する。
The data output to this pass line BL4 is
It is input to the RAM 16, the second RAM 18, the comparator circuit 22, and the arithmetic circuit 23, as well as the address counter 27 and the stack registers 298 to 2 with an 8-bit configuration.
9d. The address counter 27 specifies the address of the character memory, that is, the character ROM 31, based on its count value. This character ROM 31 has a common character section 3 as shown in FIG.
1a and a common character instruction memory section 31b,
As will be described in detail later, common parts for each character are separated and character data that has been subjected to correction, compression, etc. processing is stored. The character data read from the character ROM 31 is output to the pass line BL4 via the AND circuit 32, and the data held in the register 28 is output to the pass line BL4 via the AND circuit 33. Further, the comparison output of the comparison circuit 22 is sent to the program counter 12 via an AND circuit 34.
sent to. The instruction decoder 15 decodes the control command from the program ROM 14 and sends a set signal @Set and a "+1" signal to the address counters 17, 19, and 27, respectively, and a write signal W to the first RAM 16 and the second RAM 18. A built-in signal W and a read signal R are given to the register 28. In addition, the instruction decoder 15 sends an operation command to the performance circuit 23, a clock pulse to the decoder 24, and an AND circuit 21.2.
Provide gate control signals to 5.26.32.33.34. The decoder 24 decodes data from the program ROM 14, selects one of the stack registers 29a to 29d, and provides a clock pulse from the instruction decoder 15. Stack register 29a~
29d reads the data sent via the pass line BL4 in synchronization with the clock pulse from the decoder 24, and displays it as 32-bit character data on a display section (not shown).
Output to.

本発明は、漢字等の字体を部首に分離すると共に、字体
(部首を含む)を共通部に分離し、この分離した部首及
び共通部のキャラクタを分離した状態でキャラクタRO
M31に記憶するもので、以下、キャラクタROM31
にキャラクタデータを記憶する際のキャラクタ共通部分
の分離、補正、圧縮、等の処理について説明する。第4
図は、「木」「禾」 「本」という部首を共通部に分離
した場合の例について示したものである。第4図(a>
では32x32ビツトの「木」という文字を上下に部分
して、CI 、C2の共通キャラクタとしている。
The present invention separates a font such as a kanji into radicals, separates the font (including the radical) into a common part, and creates a character RO in a state where the separated radicals and characters in the common part are separated.
This is stored in M31, hereinafter referred to as character ROM31.
Processing such as separation, correction, compression, etc. of common parts of characters when storing character data will be explained. Fourth
The figure shows an example where the radicals ``木'', ``禾'', and ``hon'' are separated into common parts. Figure 4 (a>
In this case, the 32x32-bit character ``tree'' is divided into upper and lower parts and is used as a common character for CI and C2.

第4図(b)では「禾」という文字を上下に部分して、
上側のキャラクタをC3としているが、下側のキャラク
タは上記「木」の文字におけるキャラクタC2が共通に
使用される。第4図(C)では、「本」という文字を上
下に部分して下側のキャラクタをC4としているが、上
側のキャラクタは上記「木」の文字におけるC1キャラ
クタが共通に使用される。上記のようにして各文字は、
共通部が分離される。
In Figure 4(b), the character ``禾'' is divided into upper and lower parts,
The upper character is C3, but the lower character is commonly the character C2 in the character for "tree". In FIG. 4(C), the character "hon" is divided into upper and lower parts, and the lower character is C4, but the upper character is the C1 character of the character "tree". As above, each character is
Common parts are separated.

上記のようにして各文字の共通部を分離して共通キャラ
クタを作成した侵、第5図に示すようにキャラクタの補
正及び圧縮処理を行なう。字体には、線の初め及び終り
の部分に、あるルールに従った形がある。本発明では、
このルールに従った形については共通キャラクタの記憶
部に記憶させず、キャラクタ発生時に補正を行なってい
る。そして、字体キャラクタの縦列及び横列に同じ状態
のキャラクタが続く場合に、同じキャラクタを省略して
圧縮する。第5図(a)は、共通キャラクタC1につい
て縦線及び横線の補正を行なって補正キャラクタC21
とし、更にIGX 16ビツトに縦横圧縮して圧縮キャ
ラクタC31としている。この場合、圧縮キャラクタC
31は、14X 14ビツトをキャラクタエリア41と
し、上側の2ビツトを縦フラグエリアVF、左側の2ピ
ツトを横フラグエリアHFとし、圧縮部分に対応させて
省略数7ラグーを立て、圧縮した位置及び敗を示す。そ
して、キャラクタ発生時にフラグ数によって正しい形を
再現する。第5図(b)は共通エリアC2を補正して補
正キャラクタC22とし、その後、キャラクタピッI・
及びビット間隔を2段階で圧縮して圧縮キャラクタC3
2、C42としている。第5図(C)は共通キャラクタ
C3の補正、圧縮例を示したもので、第5図(1))と
同様の補正、圧縮を行なっている。
After the common characters are created by separating the common parts of each character as described above, the characters are corrected and compressed as shown in FIG. Fonts have shapes that follow certain rules at the beginning and end of the lines. In the present invention,
The shape according to this rule is not stored in the common character storage section, but is corrected when the character is generated. Then, when characters in the same state continue in the vertical and horizontal columns of the font characters, the same characters are omitted and compressed. FIG. 5(a) shows a corrected character C21 obtained by correcting vertical lines and horizontal lines for the common character C1.
The character is then vertically and horizontally compressed to IGX 16 bits to form a compressed character C31. In this case, the compressed character C
31, the character area 41 is 14 x 14 bits, the upper 2 bits are the vertical flag area VF, the 2 pits on the left are the horizontal flag area HF, and 7 lags are set up corresponding to the compressed part, and the compressed position and Show defeat. Then, when a character is generated, the correct shape is reproduced depending on the number of flags. FIG. 5(b) shows that the common area C2 is corrected to become a corrected character C22, and then the character pitch I.
and the bit interval is compressed in two stages to create a compressed character C3.
2, C42. FIG. 5(C) shows an example of correction and compression of the common character C3, in which the same correction and compression as in FIG. 5(1)) is performed.

第5図(d)は共通キャラクタC4を補正して補正キャ
ラクタC24とした後、圧縮時に時計方向に90’回転
し、16x 20ビツトの圧縮キャラクタC34として
いる。字体分離後の共通キャラクタの形状は、色々な形
状になるが、この共通キャラクタを両方向に規制すると
共通キャラクタの基本サイズが大きくなるので、共通キ
ャラクタを一方向(縦あるいは横)のみMIllシ、キ
ャラクタ長を可変できるようにすると、メモリの使用効
率が良くなる。
In FIG. 5(d), the common character C4 is corrected to become a corrected character C24, and then rotated 90' clockwise during compression, resulting in a compressed character C34 of 16 x 20 bits. The shape of the common character after font separation becomes various shapes, but if the common character is restricted in both directions, the basic size of the common character will increase, so if the common character is restricted in only one direction (vertically or horizontally), Making the length variable improves memory usage efficiency.

但し、キャラクタメモリとして効率は良いが、縦方向あ
るいは横方向に長いキャラクタが有り、全体(、全共通
キャラクタ)を記憶する場合にメモリ空間の使用効率が
非常に悪くなる。そこで、本発明ではメモリ空r1の使
用効率を良くするため、規ill L、た方向に合わせ
るよう、他方向に長い共通キャラクタを90°回転([
1、横交換)させ、メモリ空lの使用効率を上げている
。このとき回転したキャラクタの判別は、共通キャラク
タ内に持つ方法と、共通キャラクタの組合わせにより字
体を形成する文字の構成メモリに持つ方法がある。本実
施例では、回転キャラクタの判別を構成メモリに持つ場
合について示しである。
However, although it is efficient as a character memory, there are characters that are long in the vertical or horizontal direction, and when storing the entire character (all common characters), the memory space usage efficiency becomes very poor. Therefore, in the present invention, in order to improve the usage efficiency of the memory space r1, common characters that are long in the other direction are rotated by 90 degrees ([
1. Horizontal exchange) to increase the efficiency of memory usage. At this time, the rotated character can be determined by storing the rotated character in a common character, or storing the rotated character in a character configuration memory that forms a font by a combination of common characters. In this embodiment, a case is shown in which the configuration memory stores the rotation character identification information.

第6図は補正キャラクタ例を示したもので、縦線、横線
、コーナーにおいて補正が行なわれる。
FIG. 6 shows an example of a corrected character, in which vertical lines, horizontal lines, and corners are corrected.

縦線補正は、頭部及び終部において行なわれ、黒丸印で
示すように頭部では側方に突出た1ビツトが省略され、
終部では左右のビットが対称となるように1ビツト付加
される。横線は、「とめ」の部分が省略されるもので、
「とめ」の部分の横線が5ビツト以上では3補正、横線
が4ビツトの場合あるいは間隔が2ビツトでは2補正、
横線が3ビツトでは1補正が行なわれる。コーナーでは
、頭部において突出ている1ビツト分が省略され、終部
では1ビツト不足部分が追加される。
Vertical line correction is performed at the head and end, and one bit that protrudes to the side is omitted at the head, as shown by the black circle.
At the end, one bit is added so that the left and right bits are symmetrical. The horizontal line is the one where the "stop" part is omitted,
If the horizontal line at the "stop" part is 5 bits or more, 3 corrections are made, and if the horizontal line is 4 bits or the interval is 2 bits, 2 corrections are made.
If the horizontal line has 3 bits, 1 correction is performed. At the corner, the one bit that stands out at the head is omitted, and at the end, the missing one bit is added.

第7図は、縦、横圧縮例を示したもので、斜線部分が圧
縮部分である。第8図は、左斜め、右斜めの斜め圧縮(
縦斜めのみ)の例を示したもので、矢印方向が圧縮方向
を示している。第9図は、二重圧縮の例で「亜」という
部首について示したものである。「亜」という文字を再
現する場合は、縦及び横の再現を行ない、「悪」という
文字を再現する場合は、横のみ再現し、他の共通キャラ
クタ「心」と組合わけて「悪」の文字を形成する。
FIG. 7 shows an example of vertical and horizontal compression, and the diagonally shaded area is the compressed area. Figure 8 shows diagonal compression (left diagonal and right diagonal).
(Only vertical and diagonal) is shown, and the direction of the arrow indicates the compression direction. FIG. 9 shows an example of double compression for the radical "a". When reproducing the character ``A'', it is reproduced vertically and horizontally; when reproducing the character ``Aku'', only the horizontal is reproduced, and combined with another common character ``Kokoro'', the character ``Evil'' is reproduced. form letters.

字体分離の中には、同じキャラクタの縦、横の大きさの
みが異なるものが多くあり、これらをそれぞれの共通キ
ャラクタで持たず、二Iff縮により効率を上げること
ができる。
Among font separations, there are many cases in which the same character differs only in vertical and horizontal sizes, and these can be eliminated from each common character, and efficiency can be improved by two-Iff compression.

第10図は、センタリング圧縮の例を示したものである
。文字の大きさは、同じ枠(32X32ドツト)を設定
しても第10図に示すように文字によって異なり、枠内
にスペースができる字体もある。
FIG. 10 shows an example of centering compression. Even if the same frame (32×32 dots) is set, the size of the characters differs depending on the character as shown in FIG. 10, and some fonts have spaces within the frame.

これらの字体の共通キャラクタは、−辺によせて共通キ
ャラクタを圧縮しくドツトのない刊行を省略)、再生時
に自動センタリングする。
The common characters of these fonts are automatically centered during playback (by compressing the common characters along the edges and omitting dotless publications).

次に上記共通キャラクタの圧縮処理の詳細について説明
する。圧縮キャラクタには、第11図に示すようにキャ
ラクタエリア41に上側に2ビツトの縦フラグエリアV
F、左側に2ビツトの横7ラグエリアHFが設けられる
。そして、上記縦フラグエリアVFには、第1列目にV
ll、 V12゜・・・V 1n、・・・ビット、第2
列目にV21. V22゜・・・V 2n、・・・ビッ
トが立てられ、横フラグエリアHFには、第1列目にH
11,H12,−HIn、 ・・・ビット、第2列目に
)121. H22,・・・H2n、・・・ビットが立
てられる。また、樅フラグエリアVFと横フラグエリア
HFとの共通エリアには、Fl 、F2、F3 、F4
の4ビツトのフラグが設けられる。
Next, details of the above common character compression processing will be explained. The compressed character has a 2-bit vertical flag area V on the upper side of the character area 41 as shown in FIG.
F, a 2-bit horizontal 7-lag area HF is provided on the left side. Then, in the vertical flag area VF, V
ll, V12゜...V 1n,...bit, second
V21 in the row. V22゜...V2n,...bit is set, and H is set in the first column in the horizontal flag area HF.
11, H12, -HIn, ... bit, in the second column) 121. H22, . . . H2n, . . . bits are set. In addition, the common areas of the fir flag area VF and the horizontal flag area HF include Fl, F2, F3, F4.
A 4-bit flag is provided.

F4フラグは、第12図(a)に示すように縦フラグと
横フラグとの組合わせによりビット省略数(r)を示し
、F3フラグは、同図(b)に示すように「0」が縦、
横の圧縮、Njが斜め圧縮を示している。また、Fl 
、F2フラグは、第12図(C)に示すようにその組合
わせにより、縦長ビットの数を示している。
The F4 flag indicates the number of bits omitted (r) by a combination of the vertical flag and the horizontal flag, as shown in FIG. vertical,
Horizontal compression, Nj indicates diagonal compression. Also, Fl
, F2 flags indicate the number of vertically long bits by their combination as shown in FIG. 12(C).

しかして、上記キャラクタROM31の共通キャラクタ
指示メモリ部31bには、第13図に示すようにBθ〜
815の16ビツトの共通キャラクタ指示データが記憶
される。この指示データは、BO〜BIOビットに共通
キャラクタ部31aのアドレス(共通キャラクタの種類
が2000の場合)、Bitピットに回転フラグ、81
2ビツトに二重フラグ、313〜B15ビツトに共通キ
ャラクタ@/′位置フラグが書込まれる。この1313
〜B15ビツトと共通キャラクタ数との関係(共通キャ
ラクタ指示メモリ部31bの1番目)を第14図に、3
13〜315ビツトに対する位置フラグの内容(共通キ
ャラクタ指示メモリ部31bの2番目以降)を第15図
に示す。また、311ビツト及びフラグFl 、F2と
それに対応する型との関係を第16図(a)、(b)に
示す。更に311ビツト及びFl、F2フラグと圧縮キ
ャラクタのx、yビット数との関係を第17図に示す。
Therefore, the common character instruction memory section 31b of the character ROM 31 has information such as Bθ to
815 16-bit common character designation data is stored. This instruction data includes the address of the common character section 31a in the BO to BIO bits (if the common character type is 2000), the rotation flag in the Bit pit, and the 81
A double flag is written in 2 bits, and a common character @/' position flag is written in 313 to B15 bits. This 1313
The relationship between ~B15 bits and the number of common characters (first in the common character instruction memory section 31b) is shown in FIG.
The contents of the position flags for bits 13 to 315 (second and subsequent bits in the common character designation memory section 31b) are shown in FIG. Furthermore, the relationship between the 311 bits, flags Fl and F2, and their corresponding types is shown in FIGS. 16(a) and 16(b). Further, FIG. 17 shows the relationship between the 311 bits, the Fl and F2 flags, and the number of x and y bits of the compressed character.

次に上記実施例の動作をフローチャートを参照して説明
する。まず、文字を再生する場合の全体の概略動作を第
18図により説明する。文字を再生する場合、プログラ
ムROM14は、最初にステップS1に示すように第2
RAM18をクリアする。
Next, the operation of the above embodiment will be explained with reference to a flowchart. First, the overall general operation when reproducing characters will be explained with reference to FIG. When reproducing characters, the program ROM 14 first reads the second
Clear RAM18.

次いでステップS2においてキャラクタROM31から
共通キャラクタ指示メモリ部31bの内容を第2RAM
18に読出す。今例えば「禾」という文字を再生するも
のとすれば、そのアドレスデータをアドレスカウンタ2
7にセットして共通キャラクタ指示メモリ部31bから
第19図に示すように「禾」に対するデータを第2RA
M18に読出す。次いでステップS3において第lRA
M1Gをクリアした後ステップS4に進み、第2RAM
18に読出した共通キャラクタ指示データに応じて共通
キャラクタ部31aにおける「禾」に関する共通キャラ
クタを第19図(b)に示すように第lRAM+6に読
出す。そして、ステップS5に示すように縦フラグエリ
アVF及び横フラグエリアl−I Fのフラグデータか
ら共通キャラクタの大きざを調べる。次いでステップS
6においてF3フラグを比較回路22に読出して“0”
か否かを判断し、“°O″であればステップS7に進ん
で第19図(C)に示すように第lRAM16に記憶し
ている共通キャラクタに対し、横フラグに応じて横圧縮
再生処理を実行する。また、F3フラグが°0゛でない
場合は、ステップS8に進んで縦フラグ及び横フラグに
応じて斜め圧縮再生処理を実行する。上記ステップS7
あるいはステップS8の処理を終了するとステップS9
に進んで第2RAM18に記憶している共通キャラクタ
指示データの812ビツトに17ラグ)を比較回路22
に読出して1°゛であるが否かを判断し、“°1パであ
ればステップ310に進/Vで第19図(d)に示すよ
うに縦フラグに応じて縦圧縮再生処理を実行する。この
ステップ810の処理を終了した場合、あるいは上記ス
テップs9で812ビツトが°゛1′°でないと判断さ
れた場合は、ステップ811に示す補正キャラクタの再
生処理を実行する。その後、ステップS12に進み、第
19図(e)に示すように第lRAM16の共通キャラ
クタから縦フラグ及び横フラグを除去する。次いでステ
ップ313aに進み、共通キャラクタ指示データの81
3〜815ビツト(共通キャラクタ数/位置フラグ)に
より第lRAM1Gの共通キャラクタを第19図(f)
に示すように第2RAM18に1込む。そして、ステッ
プ814において第2RAM18内の共通キャラクタを
第19図(0)に示すようにセンタリング処理し、その
後、ステップs15に進んでその共通キャラクタをスタ
ックレジスタ29a〜29dに読出し、このスタックレ
ジスタ29a〜29dから32ピツトのキャラクタデー
タとして順次表示部へ出力する。
Next, in step S2, the contents of the common character instruction memory section 31b are transferred from the character ROM 31 to the second RAM.
Read on 18th. For example, if we want to reproduce the character ``禾'', the address data will be input to address counter 2.
7, and the data for "禾" is transferred from the common character instruction memory section 31b to the second RA as shown in FIG.
Read to M18. Then, in step S3, the first RA
After clearing M1G, proceed to step S4 and clear the second RAM.
In accordance with the common character instruction data read out in step 18, the common character related to "禾" in the common character section 31a is read out to the 1st RAM+6 as shown in FIG. 19(b). Then, as shown in step S5, the size of the common character is checked from the flag data of the vertical flag area VF and the horizontal flag area l-IF. Then step S
6, the F3 flag is read to the comparison circuit 22 and set to “0”.
If it is "°O", the process proceeds to step S7, and as shown in FIG. Execute. Further, if the F3 flag is not 0, the process proceeds to step S8, and diagonal compression reproduction processing is executed in accordance with the vertical flag and the horizontal flag. Above step S7
Alternatively, when the process of step S8 is finished, step S9
Then, the comparison circuit 22 compares the 812 bits (17 lag) of the common character instruction data stored in the second RAM 18.
If it is 1 degree, the process advances to step 310 and executes the vertical compression playback process according to the vertical flag as shown in FIG. 19(d) at step 310. When the process of step 810 is completed, or when it is determined in step s9 that the 812 bits are not 1'°, the correction character reproduction process shown in step 811 is executed.Then, in step S12 19(e), the vertical flag and the horizontal flag are removed from the common character in the first RAM 16.Then, the process proceeds to step 313a, where 81 of the common character instruction data is removed.
The common characters of the first RAM 1G are set using 3 to 815 bits (number of common characters/position flag) as shown in Fig. 19(f).
1 is loaded into the second RAM 18 as shown in FIG. Then, in step 814, the common characters in the second RAM 18 are subjected to centering processing as shown in FIG. The character data from 29d to 32 pits are sequentially output to the display section.

次に上記第18図のフローチャートにおける主要ステッ
プの詳細を説明する。第20図は、ステップ$4の詳細
について示したものである。まず、ステップ841にお
いて第2RAM18に記憶している共通キャラクタアド
レス(80〜B10)で指定される共通キャラクタ部3
1aの内容(指定アドレスの1行目)をチェックする。
Next, details of the main steps in the flowchart of FIG. 18 will be explained. FIG. 20 shows details of step $4. First, in step 841, the common character section 3 specified by the common character address (80 to B10) stored in the second RAM 18
Check the contents of 1a (first line of the specified address).

そして、ステップ842に示すようにその上位2ビツト
(Fl 、F2 )と811ビットの回転フラグを見て
共通キャラクタの型を決める。例えば共通キャラクタ指
示データカr0110010001110100 J 
(7)312合、BO〜B10ビットの共通キャラクタ
アドレスr 0110010001JにJ:り共通キャ
ラクタ部31aがアドレス指定され、その1行目のデー
タが例えばr 10011000Jであったとすれば、
その上位2ピッ+−(Fl 、F2 )と811の回転
フラグから「B11、Fl 、 F2−110」となる
。B11、Fl 、F2がrlloJの場合、第16図
(a)の関係から共通キャラクタの型は、D型であると
判断される。そして、第20図のステップ343に示す
ように第1RA〜116に対し、左上から下へという順
番で型(この例ではD型)に従い、指定された共通キャ
ラクタ部31aの内容を8行ずつ書込む。
Then, as shown in step 842, the type of common character is determined by looking at the upper two bits (Fl, F2) and the rotation flag of 811 bits. For example, common character instruction data card r0110010001110100 J
(7) In case 312, the common character address r 0110010001J of BO to B10 bits specifies the common character part 31a as J:, and the data in the first line is, for example, r 10011000J.
"B11, Fl, F2-110" is obtained from the top two pips +-(Fl, F2) and the rotation flag of 811. When B11, Fl, and F2 are rlloJ, it is determined that the common character type is D type from the relationship shown in FIG. 16(a). Then, as shown in step 343 in FIG. 20, the contents of the designated common character section 31a are written in eight lines each in accordance with the type (in this example, type D) from the top left to the bottom for the first RA to 116. It's crowded.

その後、第21図に詳細を示すステップs5の処理を実
行する。まず、ステップ851において上記縦長可変フ
ラグF1 、F2と回転フラグBi1により、第17図
の関係から共通キャラクタの大きさくx、y)を判断す
る。例えば1311−0. Fl−1、F2 =Oの場
合、共通キャラクタの大きさは、(X、l−(16,2
0)となる。次いでステップ852に進み、第lRAM
16に記憶している共通キャラクタの縦フラグエリアV
Fと倍長フラグF4とにより、第12図(a)に示す関
係からその省略ピット数を加算して再生後の横幅の増大
量ΔXを求める。その後、ステップs53において、「
X+Δx−2」の演算を演算回路23により行なって再
生後の新たなXを求める。例えば、横幅の増大量ΔXが
12ビツトであるとすれば、析たな×はrx−16+1
2−2−264となる。
Thereafter, the process of step s5 whose details are shown in FIG. 21 is executed. First, in step 851, the size (x, y) of the common character is determined from the relationship shown in FIG. 17 using the vertically variable flags F1 and F2 and the rotation flag Bi1. For example, 1311-0. When Fl-1, F2 = O, the size of the common character is (X, l-(16, 2
0). Next, the process proceeds to step 852, where the first RAM
Vertical flag area V of common characters stored in 16
Using F and the double-length flag F4, the number of omitted pits is added based on the relationship shown in FIG. 12(a) to determine the amount of increase in width ΔX after reproduction. After that, in step s53, "
The arithmetic circuit 23 performs the calculation ``X+Δx-2'' to obtain a new X after reproduction. For example, if the width increase amount ΔX is 12 bits, the analysis value x is rx-16+1
It becomes 2-2-264.

続いてステップ854において横7ラグエリア1−IF
と倍長フラグF4により、第12図(a)に示す関係か
らその省略ビット数を加算して再生後の横幅の増大−Δ
yを求める。その後、ステップS55において、「y+
Δy−2」の演算を演算回路23により行なって再生後
の新たなyを求める。例えば、縦幅の増大量Δyが4ピ
ツトであるとすれば、新たなyはry−20+4−2−
22Jとなる。
Next, in step 854, the horizontal 7 lag area 1-IF
and the double length flag F4, the number of omitted bits is added from the relationship shown in FIG. 12(a), and the width increase after reproduction -Δ
Find y. After that, in step S55, “y+
The arithmetic circuit 23 calculates .DELTA.y-2" to obtain a new y after reproduction. For example, if the vertical width increase amount Δy is 4 pits, the new y is ry-20+4-2-
It becomes 22J.

その後、上記した判断ステップS6を経て横圧縮再生ス
テップS7に進む。
Thereafter, the process proceeds to the horizontal compression reproduction step S7 via the above-described determination step S6.

上記ステップS1は、第22図に詳細を示すようにステ
ップ871〜879からなり、ステップ871〜15で
横圧縮再生の行なわれる列を捜すと共に処理の終了を判
断し、ステップ57(3〜S79で横圧縮再生を行なっ
ている。しかして、先ずステップ371において共通キ
ャラクタの列位置を示す値λとして「3」をセットする
。次いでステップS72に進み、第lRAM16の2列
目にある縦フラグV1n−2、V2ffi−2、コ(1
)場合1.:4.tVll、V 21ヲ読出す。そして
、ステップS73に示すようにrVl β−2,V2 
N−2=O,OJか否かを判断し、ro、OJであれば
ステップ874に進んでaの値を「+1」する。その後
、ステップS75において2の値が「35」に達したか
否か、つまり、キャラクタエリア41の最後の列を過ぎ
たか否かを判断し、℃が「35」に達していなければス
テップS72に戻る。以下、同様の処理を繰返し、第2
3図(a)に示すように℃の値が「6」の時に縦フラグ
V24の“°1″′が検出されると、ステップS73の
判断結果がNOとなり、ステップ87Gに進んで倍長フ
ラグF4と4列目の縦フラグにより第12図(a)の関
係から再生最rを求める。例えば第23図(a)に示す
ようにR=6において、Vln−O,V2n −1、F
4−0、の場合には、r=2となる。そして、ステップ
877において、まず、第lRAM16の33列目のデ
ータを34列目に畠き、以下m列目のデータをm+1列
目に書き、2列目をa+1列目に霞いて終わる。次いで
ステップ878において2の値をr+IJ、再生ff1
rをr−IJした後、ステップ879に進んで再生11
rが「0」か否か判断し、「0」でなければステップ3
77に戻る。例えば第23図(a)の6列目のDall
を再生する場合には、上記のステップS77の処理によ
り第23図(b)に示すようにF部が9列目、EsB′
tfia列目、D部が7列目に書かれる。
The above step S1 consists of steps 871 to 879, as shown in detail in FIG. Horizontal compression playback is being performed. First, in step 371, "3" is set as the value λ indicating the column position of the common character.Next, the process advances to step S72, and the vertical flag V1n- in the second column of the first RAM 16 is set. 2, V2ffi-2, Ko(1
) Case 1. :4. Read tVll, V 21. Then, as shown in step S73, rVl β-2,V2
It is determined whether N-2=O, OJ or not. If ro, OJ, the process proceeds to step 874 and the value of a is incremented by "+1". Thereafter, in step S75, it is determined whether the value of 2 has reached "35", that is, whether or not the last column of the character area 41 has been passed, and if the temperature has not reached "35", the process proceeds to step S72. return. Hereafter, the same process is repeated and the second
As shown in FIG. 3(a), when "°1"' of the vertical flag V24 is detected when the value of °C is "6", the judgment result in step S73 becomes NO, and the process proceeds to step 87G to set the double length flag. Using F4 and the vertical flag in the fourth column, the reproduction maximum r is determined from the relationship shown in FIG. 12(a). For example, as shown in FIG. 23(a), when R=6, Vln-O, V2n -1, F
In the case of 4-0, r=2. Then, in step 877, first, the data in the 33rd column of the first RAM 16 is written in the 34th column, then the data in the mth column is written in the m+1 column, and the second column is written in the a+1 column. Next, in step 878, the value of 2 is r+IJ, and the reproduction ff1
After performing r-IJ on r, proceed to step 879 and playback 11
Determine whether r is "0" or not, and if it is not "0", step 3
Return to 77. For example, the Dall in the 6th row in Fig. 23(a)
23(b), the F part is in the 9th column and EsB' is reproduced.
tfia column, D section is written in the 7th column.

この場合、縦フラグも一緒に書かれる。そして、ステッ
プ378の処理により、r℃−7、r−1」となる。r
r−IJの場合には、ステップ879を経てステップ8
77に戻り、上記と同様の処理が行なわれ、その結果、
共通キャラクタ、第23図(b)の状態から同図(C)
に示すように再生され、「β−8、r−OJとなる。再
生fllrが「0」になると、上記り部の再生処理が終
了し、ステップ379からステップ872に戻って次に
横圧縮再生を行なう列を4列目、この場合には8列目か
らサーチする。そして、上記の動作の繰返しにより、縦
フラグの立っている列に対する全ての横圧縮再生を終了
し、2の閤が「35」に達すると次のステップS8に進
んで斜め圧縮再生処理を行なう。
In this case, the vertical flag is also written. Then, through the process of step 378, the values become "r°C-7, r-1". r
In the case of r-IJ, step 879 is followed by step 8.
77, the same processing as above is performed, and as a result,
Common character, from the state shown in Fig. 23 (b) to the same figure (C)
It is reproduced as shown in FIG. The search is made for the column in which this is to be performed, starting from the fourth column, in this case the eighth column. Then, by repeating the above operation, all the horizontal compression and reproduction for the columns in which the vertical flag is set are completed, and when the number of columns of 2 reaches "35", the process advances to the next step S8 and diagonal compression and reproduction processing is performed.

この斜め圧縮再生の処理は、詳細を第24図(a)に示
すようにステップ881〜S85により再生を行なう列
をサーチし、ステップ386以降において再生を行なう
部分をサーチする。まず、ステップ881においてλの
値を「3」にセットした後、ステップS82において第
lRAM16の4列目にある縦フラグV1ffi−2、
V2fi−2、この場合にはVll、V21を読出す。
In this diagonal compression reproduction process, as shown in detail in FIG. 24(a), a column to be reproduced is searched for in steps 881 to S85, and a portion to be reproduced is searched for in steps 386 and thereafter. First, after setting the value of λ to "3" in step 881, in step S82, the vertical flag V1ffi-2 in the fourth column of the first RAM 16,
Read V2fi-2, in this case Vll and V21.

そして、ステップS83に示すようにrVl 、9−2
.V2℃−2−0,OJか否かを判断し、rO,0」で
あればステップ384に進んでβの罐を「+1Jする。
Then, as shown in step S83, rVl, 9-2
.. It is determined whether or not V2 DEG C.-2-0, OJ. If rO, 0", the process proceeds to step 384 and the can of .beta. is increased by "+1J.

その後、ステップS85において2の埴が「35」に達
したか否が、つまり、キャラクタエリア41の最後の列
を過ぎたか否かを判断し、βが「35」に達してぃな(
プればステップ882に戻る。以下、同様の処理を繰返
し、例えば第25図に示すように2の値が「6」の時に
縦フラグV14の゛1パが検出されると、ステップ88
3の判断結果がNoとなり、ステップ38Bに進んでr
 i−1、m(1)−3Jにセットする。次にステップ
887において第1RAMIGの4列m(i)行目の値
(Z)を読出し、ステップ888においてrZ−OJか
否かを判断する。「Z−OJであれば、ステップ889
に進んでm(i)の値を「+」シ、その後、ステップ8
89においてrm (i )−35Jになったか否かを
判断し、rm (i )−35Jに達していなければス
テップS87に戻る。そして、このステップS87にお
いて第lRAM16の2列m(i)行目の値(Z)を読
出してチェックし、rZ−OJでなければステップ58
11へ進んでm(1)の値を「+1」した後n(1)に
入力する。その債、ステップ5812に進んで第lRA
M113のa列n(i)行目の値(Z)を読出し、ステ
ップ5813においてrZ=OJか否かを判断する。r
Z−OJでなければステップ5814に進んでn(i)
の値をri1JL、ステップ5812に戻る。そして、
上記ステップ5813においてrZ=OJであると判断
されると、ステップ5815に進んでn(1)の値をr
−IJL、次いでステップ8816においてiの値を「
+1」する。更にステップ5811においてn(+−1
)の埴をri1JL、た後、ステップ887に戻る。今
、第25図に示すように6列目1=6)に注目している
とすると、m(i)、n (i)は「1」の始まる行(
斜め圧縮再生の開始行)及び「1」の終わる行(斜め圧
縮再生の終了行)を表わしている。以下、同様の処理を
繰返し、ステップ5810においてrm (i )=3
54になったと判断されると、第24図(b)に示すス
テップ8818以下の処理を実行する。
After that, in step S85, it is determined whether or not the number of hani of No. 2 has reached "35", that is, whether or not it has passed the last column of the character area 41, and if β has not reached "35" (
If the button is pressed, the process returns to step 882. Thereafter, the same process is repeated. For example, as shown in FIG.
The judgment result in step 3 is No, and the process proceeds to step 38B.
Set i-1, m(1)-3J. Next, in step 887, the value (Z) of the 4th column and m(i)th row of the first RAMIG is read, and in step 888, it is determined whether or not rZ-OJ. “If it is Z-OJ, step 889
Go to step 8 and change the value of m(i) to "+", then step 8
In step S89, it is determined whether rm (i)-35J has been reached, and if rm (i)-35J has not been reached, the process returns to step S87. Then, in this step S87, the value (Z) of the second column m(i)th row of the first RAM 16 is read and checked, and if it is not rZ-OJ, step 58
Proceed to step 11, add "+1" to the value of m(1), and then input it to n(1). For that bond, proceed to step 5812 to
The value (Z) in column a and n(i)th row of M113 is read, and in step 5813 it is determined whether rZ=OJ. r
If it is not Z-OJ, proceed to step 5814 and use n(i)
Set the value of ri1JL and return to step 5812. and,
If it is determined in step 5813 that rZ=OJ, the process advances to step 5815 and the value of n(1) is set to r
-IJL, then in step 8816 set the value of i to “
+1". Further, in step 5811, n(+-1
), the process returns to step 887. Now, as shown in Figure 25, if we are paying attention to the 6th column (1=6), then m(i), n(i) are the rows where "1" starts (
The starting line of diagonal compression playback) and the ending line of "1" (the end line of diagonal compression playback) are shown. Thereafter, similar processing is repeated, and in step 5810 rm (i) = 3
If it is determined that the number has reached 54, the processing from step 8818 shown in FIG. 24(b) is executed.

まず、ステップ8818において「j」の値を「1」に
設定した後、ステップ5819に進んで第25図(b)
に示すように第lRAM16のm(j)、n (j)行
目の点の回りの点、すなわち■〜■の点を調べる。但し
、上記の点がフラグエリアVF18Fにある場合は「0
」とする。そして、ステップ5820において再生の方
向α(j)を判断し、次いでステップ5821で「j」
の端を「+1」する。その後、ステップ5822に道み
、「i」が「j」に等しくなったか否かを判断し、等し
くなければステップ5819に戻る。以下、ri−jJ
になるまで同様の動作を繰返し、再生の方向α(j>を
順次判断する。この再生の方向α(j)の判断は、第2
6図(a)〜(d)に示すようにして判断する。すなわ
ち、第26図(a)に示すように■〜■でA、8.C1
第26図(b)に示すように■〜■でり、E、Fを決め
、更に第26図(c)に示すようにA、B、Cとり、E
First, in step 8818, the value of "j" is set to "1", and then the process proceeds to step 5819, as shown in FIG. 25(b).
As shown in the figure, the points around the m(j) and n(j)th rows of the first RAM 16, that is, the points ① to ① are examined. However, if the above point is in flag area VF18F, "0" will be displayed.
”. Then, in step 5820, the playback direction α(j) is determined, and then in step 5821, "j"
Add "+1" to the end of Thereafter, the process proceeds to step 5822, where it is determined whether "i" is equal to "j", and if not, the process returns to step 5819. Below, ri-jJ
The same operation is repeated until the reproduction direction α(j>
The determination is made as shown in FIGS. 6(a) to (d). That is, as shown in FIG. 26(a), A for ■ to ■, 8. C1
As shown in Fig. 26(b), take ■~■, decide E and F, and then take A, B, C and E as shown in Fig. 26(c).
.

Fの組合わせでα(j)を判断する。この場合、α(j
)のIr0.1.24とその方向との関係は、第26図
(d)に示すように設定されている。
α(j) is determined based on the combination of F. In this case, α(j
) The relationship between Ir0.1.24 and its direction is set as shown in FIG. 26(d).

しかして、上記ステップ5822でri−jJになった
と判断されるとステップ5823に進み、2列目の横圧
縮再生を行なう。この横圧縮再生は、第27図(a)に
示すように前記したステップS7と同様にして行なわれ
る。なお、上記第27図(a)において、Aエリアは再
生により生じた範囲であり、Bエリアは再生に伴い移動
する範囲である。次いでステップ5824に進んで「j
」の値を「1」に設定した後、ステップ5825におい
て「α(j )−04か否かを判断する。「α(j)−
0」でなければステップ8826に進み、斜めへの再生
に伴い位置の変わる範囲、すなわち、繋がっている範囲
を、Aエリア、Bエリアに分けて確認する。以下、第2
4図(C)のステップ5827以降の処理を実行する。
If it is determined in step 5822 that ri-jJ has been reached, the process proceeds to step 5823, where horizontal compression reproduction of the second column is performed. This horizontal compression reproduction is performed in the same manner as step S7 described above, as shown in FIG. 27(a). Note that in FIG. 27(a), area A is the range generated by playback, and area B is the range that moves with playback. Next, the process advances to step 5824, where "j
After setting the value of ``1'' to ``1'', it is determined in step 5825 whether ``α(j)-04''.
0'', the process advances to step 8826, and the range in which the position changes due to diagonal playback, that is, the connected range, is divided into area A and area B and confirmed. Below, the second
The process from step 5827 in FIG. 4(C) is executed.

また、上記ステップ5825において「α(j)−0J
であると判断された場合は、第24図(C)のステップ
5839に進む。
Also, in step 5825 above, “α(j)−0J
If it is determined that this is the case, the process advances to step 5839 in FIG. 24(C).

しかして、第24図(C)のステップ5827において
は、例えば第27図(b)に示すようにA工IJ 7を
C1〜Q2列目(1<422 ) 、BIIJアを、も
しあれば23〜β4列目(C3くC4)とする。次いで
ステップ8828において「α(j>−1」であるか否
かを判断し、「α(j)−1Jでなければステップ58
29に進んで「α(j)−2」の場合の再生を行なう。
Therefore, in step 5827 of FIG. 24(C), for example, as shown in FIG. 27(b), A-engine IJ 7 is assigned to columns C1 to Q2 (1<422), and BIIJA is assigned 23 if any. ~β4th column (C3-C4). Next, in step 8828, it is determined whether "α(j>-1"), and if "α(j)-1J" is not satisfied, step 58
Proceeding to step 29, reproduction in the case of "α(j)-2" is performed.

[α(j>=1Jの場合は、ステップ8828からステ
ップS 830に進んでreJの値を「1」とし、その
後、ステップ5831において第27図(C)に示すよ
うにAエリアのC1列目をfeJだけ落とず。そして、
ステップ5832に示すように「21」の値を「+1J
した侵、ステップ5833において「21〉22」か否
かを判断する。rl >l Jでないと判断された場合
は、ステップ5834でreJの値をr+IJした後ス
テップ5831に戻り、AIエリア次の列をreJだけ
、この場合には「2」つ落とす。そして、ステップ58
33において「Ql〉C2」になったと判断されると、
ステップ5835に進んでBエリアが有るか否かを判断
し、Bエリアが有る場合はステップ8836に示すよう
に8エリアのC1列目をreJだけ落とす。次いでステ
ップ$837おいて21の値をr+IJL、た後、ステ
ップ8838に進んで「β1>[4Jか否かを判断し、
rl >@4 J”?−なケレハステッフ8836に戻
ってBエリアの次の列をreJだけ落とす。
[α (If j>=1J, the process proceeds from step 8828 to step S830, where the value of reJ is set to “1,” and then, in step 5831, as shown in FIG. 27(C), the C1 column of area A is Don't just drop feJ.And,
As shown in step 5832, the value of “21” is changed to “+1J”.
In step 5833, it is determined whether "21>22". If it is determined that rl > l J, the value of reJ is increased by r+IJ in step 5834, and the process returns to step 5831, and the next column of the AI area is dropped by reJ, in this case "2". And step 58
When it is determined that “Ql>C2” is reached in 33,
Proceeding to step 5835, it is determined whether or not there is an area B. If there is an area B, the C1 column of the 8 areas is dropped by reJ as shown in step 8836. Next, in step $837, after setting the value of 21 to r+IJL, the process proceeds to step 8838, where it is determined whether β1>[4J or not.
rl > @4 J”?- Return to Kerehasteff 8836 and drop the next row in area B by reJ.

すなわち、第271iQ(c)に示すようにAエリアで
は列が進む毎に落ち方が大きくなるが、Bエリアでは各
列とも落ち方が一定となる。そして、ステップ8838
において[1>QA Jになったと判断されると、ステ
ップ5839に進んで「j」の値を「+1コする。この
ステップ5839は、上記ステップ5825あるいはス
テップ5829の処理を終了した場合も実行される。次
いでステップ5840においてrj==iJになったか
否か判断され、「j−1」でなければ第24図(b)の
ステップ5825に戻る。また、ステップ5840にお
いてrj=iJになったと判断された場合は、ステップ
5841においてβ1の値が「+1」され、その後、第
24図(a)のステップ882に戻る。上記のようにし
て第lRAM16内のキャラクタデータが34列(R−
34)まで斜め圧縮の再生処理が行なわれ、ステップ8
85においてrR−35Jになったと判断されると、ス
テップS8の処理を終了して次のステップS9に進む。
That is, as shown in 271iQ(c), in area A, the falling direction increases as the rows advance, but in area B, the falling direction is constant for each row. And step 8838
If it is determined that [1>QA J is reached, the process proceeds to step 5839 and increments the value of "j" by "+1." Next, in step 5840, it is determined whether rj==iJ, and if it is not "j-1", the process returns to step 5825 in FIG. 24(b). If it is determined in step 5840 that rj=iJ, the value of β1 is incremented by "+1" in step 5841, and then the process returns to step 882 in FIG. 24(a). As described above, the character data in the first RAM 16 is stored in 34 columns (R-
The diagonal compression playback process is performed up to step 34), and step 8
If it is determined in step 85 that the temperature has reached rR-35J, the process of step S8 is ended and the process proceeds to the next step S9.

次にステップ811の補正キャラクタの再生処理につい
て第28図のフローチャートに従って説明する。この補
正キャラクタの再生処理では、ステップ$111〜51
15の処理により補正を受け1qる列を侵しており、ス
テップ811B以降の処理により補正を受は得る場所を
捜している。まず、ステップ5111において「λ」の
値を「3」に設定した後、ステップ5112に進んで第
lRAM16の2列目にある縦フラグ(Vl ℃−2、
V2I2−2)を見る。そして、ステップ5113にお
いて「■1β−2、V2 ff1−2−0. OJか否
かを判断し、その判断結果がYESであればステップ5
114に進んで「2」の値を「+1」する。その債、ス
テップ5115においてr N −35Jか否かを判断
し、その判断結果がYESであれば次のステップ312
に進むが、Noであればステップ5112に戻る。そし
て、上記ステップ8111〜5115の処理により補正
を受は得る列が見つかると、つまり、ステップ5113
の判断結果がNoとなると、ステップ8116に進んで
倍長フラグと縦フラグにより再生層(r)を決定する。
Next, the reproduction process of the corrected character in step 811 will be explained according to the flowchart of FIG. 28. In this correction character reproduction process, steps $111 to $51
The process of step 811B and subsequent steps is searching for a location where the correction can be obtained. First, after setting the value of "λ" to "3" in step 5111, the process proceeds to step 5112, where the vertical flag (Vl °C-2,
See V2I2-2). Then, in step 5113, it is determined whether "■1β-2, V2 ff1-2-0.OJ", and if the determination result is YES, step 5
Proceeding to step 114, the value of "2" is incremented by "+1". In step 5115, it is determined whether the bond is r N -35J, and if the determination result is YES, the next step 312
However, if No, the process returns to step 5112. Then, when a column that receives correction is found through the processing of steps 8111 to 5115, that is, step 5113
If the result of the determination is No, the process proceeds to step 8116, where the reproduction layer (r) is determined based on the double length flag and the vertical flag.

次いでステップ5117においてrsJに「0」、rm
Jに「3」を霞込んだ後、ステップ8118に進んで第
lRAM16の2列m行目の点のl1l(V)を見る。
Next, in step 5117, rsJ is set to “0”, rm
After adding "3" to J, the process proceeds to step 8118 and the point l1l(V) of the second column and mth row of the first RAM 16 is checked.

そして、ステップ5119において[v−sJか否かを
判断し、l”v=sJであればステップ51110に進
んでrmJの値を「+1」する。そして、ステップ83
6において「m−364か否かを判断し、rmJが「3
6」に達していなければステップ8118に戻る。そし
て、上記ステップ5119においてrv=sJであると
判断されると第29図に詳細を示すサブルーチン5UB
11の処理を実行する。このサブルーチン5tJB11
は、補正するか否か、補正するとしたらその型を判断し
て補正する。
Then, in step 5119, it is determined whether [v-sJ or not, and if l''v=sJ, the process proceeds to step 51110, where the value of rmJ is incremented by "+1". And step 83
6, it is determined whether rmJ is “m-364” and rmJ is
6'' has not been reached, the process returns to step 8118. If it is determined in step 5119 that rv=sJ, subroutine 5UB whose details are shown in FIG.
11 is executed. This subroutine 5tJB11
If so, determine whether or not to correct it, and if so, the type of correction.

そして、このサブルーチンS LJ B 11の処理を
終了すると、ステップ、91112で「v」の値をrs
Jにセットシた後、ステップ81110に戻る。以下、
同様の動作を繰返して行なうが、ステップ81111に
おいてrm−36Jになったと判断されると、ステップ
51111からステップ81113に進んで「2←β十
r+1」の加算処理を行なった後、ステップ5115に
進む。そして、このステップ5115においてrN−3
5Jであると判断されると、ステップ811の処理を終
了してステップS12に進む。
When the processing of this subroutine S LJ B 11 is completed, the value of "v" is set to rs in step 91112.
After setting to J, the process returns to step 81110. below,
The same operation is repeated, but if it is determined in step 81111 that rm-36J has been reached, the process proceeds from step 51111 to step 81113, where the addition process of "2←β0r+1" is performed, and then the process proceeds to step 5115. . Then, in this step 5115, rN-3
If it is determined that it is 5J, the process of step 811 is ended and the process proceeds to step S12.

しかして、第29図に詳細を示すサブルーチンS U 
B 11では、まず、ステップA1において、第30図
に示すように第lRAM16の℃列m行目を点A、i+
r)列「n行目を点Bとする。第30図は、「2=5、
m=4、(r=1)Jとした時の点A1点Bの位置を示
したものである。次いでステップA2に進んでA%Bの
回りを5点づつ見る。第30図の例では、■−〇1■−
〇、■−〇、■−〇、・・・どなる。この場合フラグエ
リアVF、HF内は、全て「0」とする。そして、再生
firと調べた10点により第31図(a)に示す関係
から補正型(1)を見る。そして、ステップA4おいて
補正型(1)がrl、2.3.5.J、rOJ、「4」
の何れであるかを判断し、[1゜2.3.5.Jの場合
にはステップA5に進んで第31図(b)に示すように
して補正する。但し、四角で囲まれた点はA、Bにあた
る。その侵、ステップ811のメインルーチンにリター
ンする。また、ステップA4において補正型(1)が「
0」であると判断された場合は、そのままメインルーチ
ンにリターンし、rt−4Jであると判断された場合は
、rBJから同じ行を右へ調べ最後に「1」なる点を「
C」とする。そして、ステップAIにおいてrBJとr
CJが何点離れているかをチェックし、ステップ八8に
おいて4点以上離れていると判断された場合は、そのま
まメインルーチンにリターンする。しかし、ステップ八
8において、rBJと「C」が4点以上離れていないと
判断された場合は、ステップ八〇に進んで「C」の周り
の点を調べる。すなわち、ステップA10〜A13によ
りFC」の周りが(1)、(11)、(iii )、(
階)の何れの条件であるかを調べる。
Therefore, the subroutine S U whose details are shown in FIG.
In step B11, first, in step A1, as shown in FIG.
r) Column ``Set the nth row as point B.'' In Figure 30, ``2=5,
This figure shows the positions of points A and B when m=4 and (r=1)J. Next, proceed to step A2 and look at five points around A%B. In the example in Figure 30, ■−〇1■−
〇、■-〇、■-〇、... yell. In this case, all flag areas VF and HF are set to "0". Then, correction type (1) is determined from the relationship shown in FIG. 31(a) using the reproduction fir and the 10 points examined. Then, in step A4, correction type (1) is rl, 2.3.5. J, rOJ, “4”
[1゜2.3.5. In the case of J, the process proceeds to step A5 and correction is made as shown in FIG. 31(b). However, the points surrounded by squares correspond to A and B. After that, the process returns to the main routine at step 811. Also, in step A4, the correction type (1) is “
If it is determined that it is 0, it returns to the main routine, and if it is determined that it is rt-4J, it searches the same line from rBJ to the right and finally finds the point that is "1".
C”. Then, in step AI, rBJ and r
It is checked how many points are away from CJ, and if it is determined in step 88 that the distance is 4 points or more, the process returns to the main routine. However, if it is determined in step 88 that rBJ and "C" are not separated by 4 points or more, the process proceeds to step 80 to check the points around "C". That is, in steps A10 to A13, the area around FC is (1), (11), (iii), (
Find out which condition is applicable (floor).

上記(1)1.(ii)、(iii )、(1v)は、
「C」を中心に第32図(a)に示す条件を備えたもの
であることを意味している。この第32図(a)におい
て、斜線部は既に決まっているエリアであるので考慮は
しない。また、この場合もフラグエリアは全て「0」と
みなす。そして、rCJを中心として第32図(b)に
示すようにして補正が行なわれる。しかして、上記ステ
ップAIOにおいて(1)の条件を満たしていないと判
断された場合はそのままメインルーチンに戻る。そして
、(1)の条件は満たすが(11)の条件を満たしてい
ない場合は、ステップA11からステップA14に進ん
で第32図(b)におけるrIJの補正を行ない、その
後、メインルーチンに戻る。また、(1)、(11)の
条件は満たすが(ii+ )の条件を満たしていない場
合は、あるいは(1)、(ii)。
Above (1)1. (ii), (iii), (1v) are
It means that the conditions shown in FIG. 32(a) are met, centering on "C". In FIG. 32(a), the shaded area is an area that has already been determined, so it will not be considered. Also in this case, all flag areas are considered to be "0". Then, correction is performed as shown in FIG. 32(b) centering around rCJ. If it is determined in step AIO that the condition (1) is not satisfied, the process directly returns to the main routine. If the condition (1) is satisfied but the condition (11) is not satisfied, the process advances from step A11 to step A14 to correct rIJ as shown in FIG. 32(b), and then returns to the main routine. If the conditions (1) and (11) are satisfied but the condition (ii+) is not satisfied, or (1) and (ii).

(+ii )の条件は満たすが(!■)の条件を満たし
ていない場合は、ステップA12またはステップA13
からステップA15に進んでrBJと「C」が3点離れ
ているか否かを判断し、3点離れていない場合はステッ
プA16に進んで第32図(b)におけるrI[Jの補
正を行ない、その後、メインルーチンにリターンする。
If the condition (+ii) is satisfied but the condition (!■) is not satisfied, step A12 or step A13
Proceeding to step A15, it is determined whether or not rBJ and "C" are separated by 3 points. If they are not separated by 3 points, the process proceeds to step A16, where rI[J in FIG. 32(b) is corrected, Then, return to the main routine.

上記ステップA15においてrBJと「C」が3点離れ
ていると判断された場合は、令兄ている補正フラグ(縦
フラグ)の位置と補正rlIJの位置が一致しない場合
であるので、そのままメインルーチンにリターンする。
If it is determined in step A15 that rBJ and "C" are 3 points apart, this means that the position of the older correction flag (vertical flag) does not match the position of correction rlIJ, so the main routine continues. Return to.

更に上記(り〜(!V)の条件を全て満たす場合は、ス
テップA17に進んで第32図(b)におけるN1の補
正を行ない、その後、メインルーチンにリターンする。
Furthermore, if all of the above conditions (!V) are satisfied, the process advances to step A17 to correct N1 in FIG. 32(b), and then returns to the main routine.

次に上記ステップ813の詳細について第33図に従っ
て説明する。まず、第33図(a)のステップ5131
においてrK−OJか否かを判断する。
Next, details of step 813 will be explained with reference to FIG. 33. First, step 5131 in FIG. 33(a)
It is determined whether or not it is rK-OJ.

最初はrK−OJであり、ステップ5132に進/υで
「a」 (列情報)及び「b」 (行情報)の値を「1
」にセットする。次いでステップ5133においてrh
Jに813.314.815で表わされる数(共通キャ
ラクタ数−1)を入れる。上記813.814.815
は、1つ目の共通キャラクタを見ている場合(K=O)
 、共通キャラクタ数を表わしている。その後、ステッ
プ5134において、第34図に示すように第1RAM
IGの1〜X列目、1〜y列目を第2RAM18の「a
〜a+x列目」。
The first is rK-OJ, and the process advances to step 5132/υ to set the values of “a” (column information) and “b” (row information) to “1”.
”. Then in step 5133 rh
Enter the number represented by 813.314.815 (number of common characters - 1) into J. Above 813.814.815
is when looking at the first common character (K=O)
, represents the number of common characters. Thereafter, in step 5134, the first RAM
The 1st to X columns and 1st to y columns of IG are
~Column a+x”.

「b−b+y列目」にオアをとりながら磨く。この場合
、第34図に示すように第lRAM1Gで再生された(
k+1)番目の共通キャラクタを第2RA M 1Bに
書く際、P点の情報をa、bで与え(P点はa列、b行
目にある)、再生された共通キャラクタの大きさをX、
yで与える。そして、ステップ5135においてrb+
y+1Jの値をrbJとしてセントすると共に、rK+
IJの値をrKJとしてセットし、次のraJ rbJ
を決める準備をする。その後、ステップ8136におい
て[a+x+1>Clか否かを判断し、その判断結果が
YESの場合はステップ5131に進んで「a+x+1
」をrcJとしてセットする。このステップ5137の
処理が終了、あるいはステップ8136の判断結果がN
oの場合はステップ8138に進んでrh−に−−IJ
か否かを判断する。このステップ5138において、そ
の判断結果がN。
Polish while checking the OR on "b-b+y column". In this case, as shown in FIG.
When writing the k+1)th common character to the second RAM 1B, give the information of point P as a and b (point P is in column a and row b), and set the size of the reproduced common character as X,
Give in y. Then, in step 5135, rb+
Cent the value of y+1J as rbJ, and rK+
Set the value of IJ as rKJ and set the next raJ rbJ
Prepare to decide. Thereafter, in step 8136, it is determined whether [a+x+1>Cl.
" is set as rcJ. The process of step 5137 is completed, or the judgment result of step 8136 is N.
If o, proceed to step 8138 to rh---IJ
Determine whether or not. In this step 5138, the determination result is N.

の場合はステップS3に戻り、YESの場合は次のステ
ップS14に進んでセンタリング処理を行なう。
In the case of YES, the process returns to step S3, and in the case of YES, the process proceeds to the next step S14 to perform centering processing.

しかして、上記ステップ5131において、「K−OJ
ではないと判断された場合は、第33図(b)のステッ
プ5139に進んで共通キャラクタの位置関係を表わす
B13、B14.815をチェックする。この場合、上
記313、B14、B15は、他の共通キャラクタとの
位置関係を表わす位置フラグであり、rK+lJ番目の
共通キャラクタ指示メモリ部31bに記憶されているデ
ータを見ている。
Therefore, in step 5131, “K-OJ
If it is determined that this is not the case, the process advances to step 5139 in FIG. 33(b) and checks B13 and B14.815, which represent the positional relationship of the common characters. In this case, the above 313, B14, and B15 are position flags representing the positional relationship with other common characters, and the data stored in the rK+lJth common character instruction memory section 31b is being looked at.

そして、ステップ31310において、rB13=1j
、または[B14.B15−0.OJか否かを判断し、
その判断結果がYESの場合は、ステップS 1311
に進んでrb+y>32Jか否かを判断する。このステ
ップ31311の判断結果がYESの場合は、ステップ
31312においてrbJの1を「0」、raJの値を
rCJとした後ステップ31313に進む。また、上記
ステップ$1310及び31311でNOと判断された
場合もステップS 1313に進む。上記ステップ51
310〜31312では、第34図(b)に示すように
第2RAM18の再生エリア18a(32列X32行)
に収まるか否かを見ており、共通キ1tラクタが再生エ
リア18aの下からはみ出したら右上へ位置を移す処理
を行なっている。ぞして、上記ステップS 1313で
は、rB14,815−0.OJか否の判断を行ない、
YESの場合はステップ5134へ戻り、NOの場合は
ステップS 1314に進んでr B 13− OJか
否かを判断する。このステップ31314の判断結果が
Noの場合は、ステップ51315において左側との位
置関係を考えてraJrbJを決め、その後、ステップ
5134に戻る。
Then, in step 31310, rB13=1j
, or [B14. B15-0. Determine whether it is OJ or not,
If the judgment result is YES, step S1311
Then, it is determined whether rb+y>32J. If the determination result in step 31311 is YES, in step 31312 rbJ is set to 1 and raJ is set to rCJ, and the process proceeds to step 31313. Also, if NO is determined in steps $1310 and 31311, the process proceeds to step S1313. Step 51 above
310 to 31312, the playback area 18a (32 columns x 32 rows) of the second RAM 18 as shown in FIG. 34(b)
If the common character protrudes from the bottom of the reproduction area 18a, the process moves the position to the upper right. Therefore, in step S1313, rB14,815-0. Judging whether it is OJ or not,
If YES, the process returns to step S1334; if NO, the process proceeds to step S1314, where it is determined whether or not r B 13-OJ. If the determination result in step 31314 is No, raJrbJ is determined in step 51315 considering the positional relationship with the left side, and then the process returns to step 5134.

また、ステップS 1314においてr B 13− 
OJであると判断された場合は、ステップ81316に
進んで「mO」の値をrb−IJ、「ml」の値をrO
Jにセットした後ステップ81317に進み、第2RA
 M 18のmO行目が「a〜32」列目までrOJか
否かを見る。上記ステップ51316.31317では
、共通キャラクタを付けるときのことを考えており、第
2RAM18の何行目まで実際に共通キャラクタが存在
するかを見ている。第34図(C)に示すように共通キ
ャラクタが余白を持っている場合、その余白の幅をml
としてrbJを決める際に考慮する。そして、上記ステ
ップS 1318において、第2RAM18のmO行目
が「a〜32」列目まで全てrOJであると判断された
場合は、ステップ31319ニ進み、「mO」の値を「
−1」、「ml」の値をr+1JL、た侵、ステップS
 1317に戻る。
Furthermore, in step S 1314 r B 13-
If it is determined that the
After setting it to J, proceed to step 81317, and set the second RA.
Check whether the mO row of M18 is rOJ from the "a to 32" columns. In steps 51316 and 31317, consideration is given to adding a common character, and it is checked up to which row of the second RAM 18 the common character actually exists. If the common character has a margin as shown in Figure 34 (C), the width of the margin should be set in ml.
This is taken into account when determining rbJ. Then, in step S1318, if it is determined that the mO rows of the second RAM 18 and columns "a to 32" are all rOJ, the process proceeds to step S1319 and the value of "mO" is set to "
-1", the value of "ml" is r+1JL, step S
Return to 1317.

以下、同様の処理を繰返し、ステップ31318の判断
結果がNoになると、第33図(C)のステップ813
2Gに進み、「mO」の値を「1」、「第2」の値を「
0」にセットする。そして、ステップ31321におい
て第lRAM16の第1行目が全て「0」か否かをチェ
ックし、ステップ51322において全てrOJか否か
判断する。全て「0」であると判断された場合は、ステ
ップS 1323に進んで「mO」の値及び「第2」の
値をr+IJL、た後、ステップ81321に戻る。上
記ステップ31321−81323では、共通キャラク
タを付ける時のことを考え、第34図(d)に示すよう
に第lRAM16が上部に回行の余白(第2)を持って
いるか見ている。そして、上記ステップS 1322に
おいて第1RA〜11GのmO行目が全て「0」でない
と判断された場合は、ステップS 1324に進んで[
b−ml−第2 JをrbJとしてセットする。そして
、ステップS 1325において、1 B 14. B
 15Jが「1゜0」、ro、1J、N、IJの何れで
あるかを判断し、N、OJであればステップ5134へ
戻る。また、ステップS 1325において、「131
4゜B15」がro、1Jであると判断された場合はス
テップ51326においてrbJの値をr−IJした後
ステップ5134へ戻り、「1314. B15Jが「
1゜1」であると判断された場合はステップ31327
においてrbJの値をr−2」した後ステップ5134
へ戻る。上記ステップS 1325〜51327では、
共通キャラクタを更に重ねることを考慮している。
Thereafter, the same process is repeated, and if the determination result in step 31318 is No, step 813 in FIG. 33(C)
Proceed to 2G, set the "mO" value to "1" and the "2nd" value to "
0”. Then, in step 31321, it is checked whether the first row of the first RAM 16 is all "0", and in step 51322, it is determined whether all the rows are rOJ. If it is determined that they are all "0", the process advances to step S1323, where the value of "mO" and the "second" value are calculated by r+IJL, and then the process returns to step S81321. In the above steps 31321-81323, in consideration of adding a common character, it is checked whether the first RAM 16 has a margin (second) at the top, as shown in FIG. 34(d). If it is determined in step S1322 that the mO rows of the first RA to 11G are not all "0", the process proceeds to step S1324 and [
Set b-ml-2nd J as rbJ. Then, in step S1325, 1B14. B
It is determined whether 15J is "1°0", ro, 1J, N, or IJ, and if it is N or OJ, the process returns to step 5134. Further, in step S1325, “131
If it is determined that "1314.
1゜1'', step 31327
After setting the value of rbJ to r−2, step 5134
Return to In steps S 1325 to 51327 above,
We are considering further layering of common characters.

例えばrB14,815−1.OJの場合、第35図(
a)に示す第2RAM18の共通キャラクタに対し、同
図(b)に示す第lRAM16の共通キャラクタを腫ね
ると、同図(C)に示すようになる。
For example rB14,815-1. In the case of OJ, Fig. 35 (
When the common character of the second RAM 18 shown in a) is expanded to the common character of the first RAM 16 shown in FIG.

本来、「b」は前の共通キャラクタの最終行の次の行を
指しているが、ml 、m2  (814,815も含
む)を考慮し、「b」を変え、位置を決めている。
Originally, "b" refers to the line following the last line of the previous common character, but the position of "b" is determined by taking into account ml and m2 (including 814 and 815).

次にステップ814の詳細について第36図のフローチ
ャートに従って説明する。まず、ステップ5141 ニ
オイr r nJ (7)Iを「32」、raJの値を
rOJにセットする。次いでステップ5142に進み、
第lRAM16の2列目が1〜32行目まで全て「0」
かどうかチェックし、ステップ5143において全てr
OJと判断された場合はステップ5144に進み、「j
2」の値をr−1JL、、raJの値をr+1 JL、
、その後、ステップ5142に戻る。すなわち、上記ス
テップ5141〜5144の処理により、何列文字をず
らせば文字が中央にくるかを見ている。そして、上記ス
テップ8142〜5144の処理を繰返し実行し、その
後、ステップ5143の判断結果がNoとなった場合は
ステップ5145に進み、raJにra/2Jより小さ
くない最小の整数を入れる。次いでステップ5146に
おいて第37図に示すように文字全体をa列右へ移す。
Next, details of step 814 will be explained according to the flowchart of FIG. 36. First, in step 5141, odor r r nJ (7) I is set to "32" and the value of raJ is set to rOJ. Then proceed to step 5142;
The 2nd column of the 1st RAM 16 is all “0” from 1st to 32nd rows.
In step 5143, all r
If it is determined that the
2'' value is r-1JL, raJ value is r+1JL,
, and then returns to step 5142. That is, through the processing in steps 5141 to 5144, it is determined how many rows of characters need to be shifted to bring the characters to the center. Then, the processes of steps 8142 to 5144 are repeatedly executed, and then, if the determination result of step 5143 is No, the process proceeds to step 5145, and the minimum integer not smaller than ra/2J is entered in raJ. Next, in step 5146, the entire character is moved to the right in column a, as shown in FIG.

このとき移してくる列データがない列は、rOJを右に
移す。以上でステップ314のセンタリング処理を終了
し、次のステップ815に進む。このステップ815で
は、上記のようにして第2RAM18に再生したキャラ
クタデータをスタックレジスタ29a〜29dに書込み
、このスタックレジスタ298〜29dより32ビツト
のキャラクタデータとして表示部へ順次出力する。
At this time, for columns for which there is no column data to be moved, rOJ is moved to the right. This completes the centering process in step 314 and proceeds to the next step 815. In step 815, the character data reproduced in the second RAM 18 as described above is written into the stack registers 29a-29d, and sequentially output from the stack registers 298-29d to the display section as 32-bit character data.

[発明の効果コ 以上詳記したように本発明によれば、漢字等の字体を部
首別に分離すると共に上記部首を含む字体を共通部に分
離して共通キャラクタを構成し、かつ、この共通キャラ
クタに対して縦フラグエリア及び槓フラグエリアを設け
てキャラクタメモリに記憶させ、上記共通キャラクタに
おいて縦列、横列に同じ状態のキャラクタが続く場合に
同じキャラクタを省略して縦線、横線を圧縮すると共に
、この圧縮により省略されたビット数に応じて省略数フ
ラグを上記対応するフラグエリアに記憶することにより
、文字キャラクタを圧縮するようにしたので、キャラク
タROMの容量を著しく少なくすることができ、情報処
理機器の小型化に有利であると共にコストの低下を図り
得るものである。
[Effects of the Invention] As detailed above, according to the present invention, fonts such as Chinese characters are separated by radical, and fonts including the radicals are separated into common parts to form a common character, and A vertical flag area and a horizontal flag area are provided for the common character and stored in the character memory, and when characters in the same state continue in vertical and horizontal columns of the common character, the same character is omitted and the vertical line and horizontal line are compressed. At the same time, character characters are compressed by storing an omitted number flag in the corresponding flag area according to the number of bits omitted due to this compression, so the capacity of the character ROM can be significantly reduced. This is advantageous for downsizing information processing equipment and can reduce costs.

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

回向は本発明の一実施例を示すもので、第1図は全体の
回路構成を示すブロック図、第2図は第1図における第
1 RAM及び第2RAMの記憶構成を示す図、第3図
は第1図におけるキャラクタROMの記憶構成を示す図
、第4図は文字を分離して共通キャラクタを構成する場
合の概念を示す図、第5図は共通キャラクタを補正して
圧縮する場合の概略動作を示す図、第6図は共通キャラ
クタを補正して構成した補正キャラクタ例を示す図、第
7図は縦横圧縮例を示す図、第8図は斜め圧縮方法を示
す図、第9図は二重圧縮例を示す図、第10図はセンタ
リング圧縮例を示す図、第11図はキャラクタROMの
共通キャラクタ部におけるキャラクタエリアとフラグエ
リアとの関係を示す図、第12図(a)〜(C)は各種
フラグとその機能との関係を示す図、第13図はキャラ
クタROMにおける共通キャラクタ指示データのビット
構成を示す図、第14図は上記共通キャラクタ指示デー
タ(813,1314,815)と共通キャラクタ数と
の関係を示す図、第15図は上記共通キャラクタ指示デ
ータ(913,314,B15)と位置フラグ内容との
関係を示す図、第16図は共通キャラクタの型の判断動
作を示す図、第17図は1I7I艮可変フラグ及び回転
フラグと共通キャラクタの大きさくX、V>との関係を
示す図、第18図は文字キャラクタ再生時の全体の処理
動作を示すフローチャート、第19図は第18図の主要
ステップに対する文字再生の状態を示す図、第20図は
第18図におけるステップS5の詳細を示すフローチャ
ート、第21図は第18図におけるステップS4の詳細
を示すフローチャート、第22図は第18図におけるス
テップS1の詳細を示す70−チャート、第23図は第
22図における横圧縮再生の例を示す図、第24図(a
)〜(C)は第18図におけるステップS8の詳細を示
すフローチャート、第25図(a)(b)はステップS
8の動作を説明するための第1 RAM及び第2RAM
のデータ記憶状態例を示す図、第26図はステップS8
におけるα(j)の判断基準及びその判断結果に基づく
方向を示す図、第27図(a)〜(C)はステップS8
中の横圧縮再生動作を示す図、第28図はステップS1
1の詳細を示すフローチャート、第29図におけるサブ
ルーチンS LJ B 11の詳細を示すフローチャー
ト、第30図は上記ステップS11の動作を説明するた
めの第lRAMに対するデータチェック状態を示す図、
第31図(a)はチェック点及び再生量と補正型との関
係を示す図、第310(b)は上記補正型の詳細を示す
図、第32図は補正の方法を示す図、第33図(a)〜
(C)は第18図におけるステップ813の詳細を示す
フローチャート、第34図(a) 〜(d)及び第35
 (a) 〜(c)lt第lRAM及び第2RAMにお
ける文字キャラクタ再生状態を示す図、第36図は第1
8図におけるステップ814の詳細を示すフローチャー
ト、第37図は第1 RAMにおける文字キャラクタの
センタリング動作を示す図である。 11・・・発振回路、12・・・プログラムカウンタ、
13・・・ROMアドレススタックレジスタ、14・・
・プログラムROM115・・・インストラクションデ
コーダ、1G・・・第lRAM、17.27・・・アド
レスカウンタ、18・・・第2RAM、22・・・比較
回路、23・・・演算回路、24・・・デコーダ、29
a〜29d・・・スタックレジスタ、31・・・キャラ
クタROM。 特許出願人 カシオ計n機株式会社 (a)               (b)第2図 キャラクタメモリ (ROM) 第3図 圧縮部 共通キャリア (a) タテ、ヨコ圧縮例 第7図 タテ、ヨコ圧縮キャリア (b) M8図 横7ラグエリア 第11図 回転フラグ m 15図 第16図 第17図 ステップ5丁 横圧縮再生 第231:’(+ 竿2ム r;5(b) 第25図(Q) 第25図(b) ((1)         (b) (C) 第26図 第27図 第 32図 ステノブ5I3 (CI) 第33図 第33図 (c) 第34図(C1) 第34図(b) 第34図    (d) B10.81s−1+Oの場合 9″″””7 (RAMB)     RAMA再生エ
リア 第35図 会てO全てO 第37図
Figure 1 is a block diagram showing the overall circuit configuration, Figure 2 is a diagram showing the storage configuration of the first RAM and second RAM in Figure 1, and Figure 3 is a diagram showing one embodiment of the present invention. The figure shows the storage structure of the character ROM in Fig. 1, Fig. 4 shows the concept of separating characters to form common characters, and Fig. 5 shows the concept of correcting and compressing common characters. 6 is a diagram showing an example of a corrected character configured by correcting a common character. FIG. 7 is a diagram showing an example of vertical and horizontal compression. FIG. 8 is a diagram showing a diagonal compression method. FIG. 9 is a diagram showing an example of double compression, FIG. 10 is a diagram showing an example of centering compression, FIG. 11 is a diagram showing the relationship between the character area and flag area in the common character section of the character ROM, and FIGS. (C) is a diagram showing the relationship between various flags and their functions, FIG. 13 is a diagram showing the bit configuration of common character instruction data in the character ROM, and FIG. 14 is a diagram showing the common character instruction data (813, 1314, 815). FIG. 15 is a diagram showing the relationship between the common character instruction data (913, 314, B15) and the position flag contents, and FIG. 16 is a diagram showing the common character type determination operation. FIG. 17 is a diagram showing the relationship between the 1I7I variable flag and rotation flag and common character sizes 20 is a flowchart showing details of step S5 in FIG. 18, FIG. 21 is a flowchart showing details of step S4 in FIG. 22 is a 70-chart showing details of step S1 in FIG. 18, FIG. 23 is a diagram showing an example of horizontal compression playback in FIG. 22, and FIG.
) to (C) are flowcharts showing details of step S8 in FIG. 18, and FIGS. 25(a) and (b) are flow charts showing details of step S8 in FIG.
1st RAM and 2nd RAM for explaining the operation of 8.
FIG. 26 is a diagram showing an example of the data storage state of step S8.
FIGS. 27(a) to 27(C) are diagrams showing the judgment criteria for α(j) in and the direction based on the judgment results in step S8.
FIG. 28 is a diagram showing the horizontal compression playback operation in step S1.
29 is a flowchart showing details of the subroutine S LJ B 11 in FIG. 29; FIG. 30 is a diagram showing the data check state for the first RAM to explain the operation of step S11;
FIG. 31(a) is a diagram showing the relationship between check points, regeneration amount, and correction type, FIG. 310(b) is a diagram showing details of the above-mentioned correction type, FIG. 32 is a diagram showing the correction method, and FIG. Figure (a) ~
(C) is a flowchart showing details of step 813 in FIG. 18, FIGS. 34(a) to (d) and 35.
(a) to (c) Diagrams showing character reproduction states in the first RAM and the second RAM, FIG.
FIG. 37 is a flowchart showing the details of step 814 in FIG. 8, and FIG. 37 is a diagram showing the character centering operation in the first RAM. 11... Oscillation circuit, 12... Program counter,
13...ROM address stack register, 14...
・Program ROM115...Instruction decoder, 1G...1st RAM, 17.27...Address counter, 18...2nd RAM, 22...Comparison circuit, 23...Arithmetic circuit, 24... decoder, 29
a to 29d...Stack register, 31...Character ROM. Patent applicant Casio Kei nki Co., Ltd. (a) (b) Figure 2 Character memory (ROM) Figure 3 Compression section common carrier (a) Example of vertical and horizontal compression Figure 7 Vertical and horizontal compression carrier (b) M8 Figure horizontal 7 lag area Figure 11 Rotation flag m Figure 15 Figure 16 Figure 17 Step 5 horizontal compression playback 231:' (+ Rod 2 mm r; 5 (b) Figure 25 (Q) Figure 25 (b) ) ((1) (b) (C) Fig. 26 Fig. 27 Fig. 32 Stenob 5I3 (CI) Fig. 33 Fig. 33 (c) Fig. 34 (C1) Fig. 34 (b) Fig. 34 ( d) For B10.81s-1+O 9''''''7 (RAMB) RAM playback area Figure 35 All O Figure 37

Claims (2)

【特許請求の範囲】[Claims] (1)漢字等の字体を部首別に分離すると共に上記部首
を含む字体を共通部に分離して共通キャラクタを構成す
る手段と、上記共通キャラクタの縦列及び横列にそれぞ
れそれぞれ対応して設けられる縦フラグエリア及び横フ
ラグエリアと、上記共通キャラクタを縦及び横のフラグ
エリアと共に記憶させてなるキャラクタメモリと、上記
共通キャラクタにおいて縦列、横列に同じ状態のキャラ
クタが続く場合に同じキャラクタを省略して縦線、横線
を圧縮する圧縮手段と、この圧縮手段により省略された
ビット数に応じて省略数フラグを上記対応するフラグエ
リアに記憶する手段とを具備したことを特徴とする文字
キャラクタの圧縮方式。
(1) A means for composing a common character by separating fonts such as kanji into radicals and separating fonts including the radicals into common parts, and a means provided corresponding to the vertical and horizontal columns of the common characters, respectively. A vertical flag area, a horizontal flag area, a character memory in which the above-mentioned common character is stored together with the vertical and horizontal flag areas, and a character memory for omitting the same character when characters in the same state continue in vertical and horizontal columns in the above-mentioned common character. A character compression method characterized by comprising: compression means for compressing vertical lines and horizontal lines; and means for storing an omitted number flag in the corresponding flag area according to the number of bits omitted by the compression means. .
(2)上記共通キャラクタを圧縮する際、字体の線の初
め、終り、角部分のキャラクタを所定のルールに従った
形に補正することを特徴とするとする特許請求の範囲第
1項記載の文字キャラクタの圧縮方式。
(2) Characters according to claim 1, characterized in that when compressing the common characters, characters at the beginning, end, and corners of the lines of the font are corrected to a shape according to a predetermined rule. Character compression method.
JP61093903A 1986-04-23 1986-04-23 Character compression system Pending JPS62250485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61093903A JPS62250485A (en) 1986-04-23 1986-04-23 Character compression system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61093903A JPS62250485A (en) 1986-04-23 1986-04-23 Character compression system

Publications (1)

Publication Number Publication Date
JPS62250485A true JPS62250485A (en) 1987-10-31

Family

ID=14095439

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61093903A Pending JPS62250485A (en) 1986-04-23 1986-04-23 Character compression system

Country Status (1)

Country Link
JP (1) JPS62250485A (en)

Similar Documents

Publication Publication Date Title
JPS62250485A (en) Character compression system
JPS60110056A (en) Dynamic changing method for memory address generation of data processing system
JPS62250085A (en) Method for regenerating letter character
JPS62250487A (en) Character compression system
JPS62250489A (en) Character compression system
JPS62250488A (en) Character compression system
JPS62250483A (en) Character compression system
JPS62250491A (en) Character reproduction system
JPS62250486A (en) Character reproduction system
JPS58211186A (en) Slit screen display control system
JPS62250484A (en) Character compression system
JPS62250490A (en) Character reproduction system
JP3014749B2 (en) Image memory device
JPS5862686A (en) Image memory unit
JPS6230053A (en) Dot type face enlargement and reduction system
JP3123545B2 (en) Data processing device
JPH0398119A (en) Storage device
JP3021697B2 (en) Exception handling in programming languages
JPS61260290A (en) Dot pattern expansion processing system
JPS629953B2 (en)
JPH01149134A (en) Program counter circuit for microcomputer
JPH0668254A (en) Histogram arithmetic unit
JPS6229814B2 (en)
JPS62157099A (en) Automatic rhythm performer
JPH0516451A (en) Printer