JPS6332194B2 - - Google Patents

Info

Publication number
JPS6332194B2
JPS6332194B2 JP55065389A JP6538980A JPS6332194B2 JP S6332194 B2 JPS6332194 B2 JP S6332194B2 JP 55065389 A JP55065389 A JP 55065389A JP 6538980 A JP6538980 A JP 6538980A JP S6332194 B2 JPS6332194 B2 JP S6332194B2
Authority
JP
Japan
Prior art keywords
character
code
kanji
character pattern
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP55065389A
Other languages
Japanese (ja)
Other versions
JPS56161587A (en
Inventor
Yoshihiko Ootsuka
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP6538980A priority Critical patent/JPS56161587A/en
Publication of JPS56161587A publication Critical patent/JPS56161587A/en
Publication of JPS6332194B2 publication Critical patent/JPS6332194B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】 本発明は、文字コードを受信してそれに対応す
る文字パターンを表示または印刷する端末装置等
に関し、特に文字コードをその文字パターンが登
録されている文字発生器のアドレスに変換するた
めの文字コード変換方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a terminal device etc. that receives a character code and displays or prints a character pattern corresponding to the received character code. Concerning character code conversion method for conversion.

文字コードとして、JISC―6226「情報交換用漢
字符号系」に規定されている漢字コードを例にと
つて以下に説明する。
The following explanation uses the Kanji code specified in JISC-6226 "Kanji code system for information exchange" as an example of the character code.

従来、上記の漢字コードを処理する端末装置等
では、コード変換用メモリを参照して漢字コード
を文字発生器(CGと略記する)アドレスに変換
する方式を採用している。かかる文字コード変換
方式の代表的な2例を第1図と第2図によつて簡
単に説明する。
Conventionally, terminal devices and the like that process the above-mentioned Kanji codes have adopted a method of converting Kanji codes into character generator (abbreviated as CG) addresses by referring to a code conversion memory. Two typical examples of such character code conversion methods will be briefly explained with reference to FIGS. 1 and 2.

第1図の方式は、コード変換用のメモリ2,3
を用いるものである。メモリ2には漢字コードが
0番地から順番に格納されており、またメモリ3
にはメモリ2の対応アドレス内の漢字コードに対
するCGアドレスが0番地から順番に格納されて
いる。コード変換すべき漢字コードをレジスタ4
にセツトしたのち、アドレスカウンタ1をゼロか
らインクリメントさせながら、メモリ2,3の各
番地の内容をレジスタ6,7に順次読出す。比較
回路5はレジスタ6に読出された漢字コードとレ
ジスタ4内の漢字コードを比較し、一致がとれた
時に一致信号8を出す。この一致信号8が出る
と、レジスタ7の内容つまり目的としているCG
アドレスを送出し、またアドレスカウンタ1をリ
セツトする。アドレスカウンタ1がメモリ2,3
の最終番地までカウントアツプした時点でも一致
信号8が出ない場合は、当該漢字コードはCG内
に未登録のいわゆる外字であり、外字処理が行な
われる。つまり、デイスプレイ画面上に特定の文
字パターンを表示したり、その外字の漢字コード
を中央に送つて対応文字パターンを取込む等の処
理を行なう。
The method shown in Fig. 1 uses memory 2 and 3 for code conversion.
is used. Kanji codes are stored in memory 2 in order starting from address 0, and memory 3
The CG addresses for the kanji codes in the corresponding addresses of the memory 2 are stored in order from address 0. Register 4 the kanji code to be converted.
Then, while incrementing address counter 1 from zero, the contents of each address in memories 2 and 3 are sequentially read into registers 6 and 7. Comparison circuit 5 compares the Kanji code read into register 6 and the Kanji code in register 4, and outputs a match signal 8 when a match is found. When this match signal 8 is output, the contents of register 7, that is, the target CG
Sends the address and also resets address counter 1. Address counter 1 is memory 2, 3
If the match signal 8 is not output even after counting up to the final address, the Kanji code in question is a so-called non-registered character that has not been registered in the CG, and non-standard character processing is performed. In other words, processes such as displaying a specific character pattern on the display screen, sending the Kanji code of the external character to the center, and importing the corresponding character pattern, are performed.

以上に述べた方式は、コード変換用にそれ程大
容量のメモリを必要としない利点はあるが、メモ
リの参照回数が多いため変換速度が自ずと制限さ
れるという欠点がある。
The method described above has the advantage that it does not require a very large capacity memory for code conversion, but has the disadvantage that the conversion speed is naturally limited because the memory is referenced many times.

第2図の方式は、コード変換用メモリ10を漢
字コードで直接アドレス指定してアクセスするも
のである。すなわち、アドレスレジスタ9に変換
すべき漢字コードをセツトすると、メモリ10の
当該漢字コードで指定されたアドレスから対応す
るCGアドレスがレジスタ11に読出される。CG
に未登録の文字パターンに対する漢字コード(外
字)については、未定義コードがメモリ10から
読出される。この場合は、前述したような外字処
理が行なわれる。
In the method shown in FIG. 2, the code conversion memory 10 is accessed by directly specifying an address using a Kanji code. That is, when the Kanji code to be converted is set in the address register 9, the corresponding CG address is read into the register 11 from the address designated by the Kanji code in the memory 10. CG
Regarding kanji codes (external characters) for character patterns that have not been registered, undefined codes are read from the memory 10. In this case, the external character processing described above is performed.

この方式は1回のメモリアクセスでコード変換
できるので、変換速度は速い。しかしメモリ10
には外字に対しても1つのアドレスを割当ててお
く必要があるため、2バイトの漢字コードを変換
するためには65K語ものメモリ容量が必要とな
り、コスト上に問題がある。
This method allows code conversion with one memory access, so the conversion speed is fast. But memory 10
Since it is necessary to allocate one address to a non-standard character, a memory capacity of 65K words is required to convert a 2-byte kanji code, which poses a cost problem.

したがつて本発明の目的は、高速でかつ低コス
トの文字コード変換方式を提供することにある。
Therefore, an object of the present invention is to provide a high-speed and low-cost character code conversion method.

しかして本発明による文字コード変換方式の基
本的特徴は、文字コードがコード空間内のどのエ
リア(後述)に属するかを予め判定し、その結果
に応じて文字コードを従来のようなコード変換用
メモリを用いて変換するか、あるいは一定の演算
式にしたがつて変換するかを選択することがあ
る。
However, the basic feature of the character code conversion method according to the present invention is to determine in advance which area (described later) in the code space the character code belongs to, and to convert the character code into a conventional code conversion method according to the result. There may be a choice between converting using memory or converting according to a certain arithmetic expression.

以下、図面にしたがつて本発明を具体的に説明
する。
The present invention will be specifically described below with reference to the drawings.

前述した2バイトの漢字コードの体系は、第3
図の文字コード空間で表わすことができる。縦軸
は漢字コードの第1バイト(7ビツト)、横軸は
第2バイト(7ビツト)である。
The 2-byte kanji code system mentioned above is the third
It can be expressed in the character code space shown in the figure. The vertical axis is the first byte (7 bits) of the Kanji code, and the horizontal axis is the second byte (7 bits).

第1バイト(N)16が(21)16〜(2F)16で第2バ
イト(M)16が(21)16〜(7E)16のエリアA3は定
義されたコードと未定義のコードが不規則に混在
するエリアである。(N)16=(30)16〜(73)16
(M)16=(21)16〜(7E)16のエリアA2は、定義さ
れたコードが規則性をもつて配列されたエリアで
ある。(N)16=(74)16〜(7F)16、(M)16=(21
16
〜(7E)16のエリアA1、および上記エリアA1,
A2,A3を除くエリアA0は未定義コードのエ
リアである。
1st byte (N) 16 is (21) 16 ~ (2F) 16 is 2nd byte (M) 16 is (21) 16 ~ (7E) Area A3 of 16 contains defined codes and undefined codes. This is an area where the rules are mixed. (N) 16 = (30) 16 ~ (73) 16 ,
(M) 16 = (21) 16 to (7E) Area A2 of 16 is an area where defined codes are arranged with regularity. (N) 16 = (74) 16 ~ (7F) 16 , (M) 16 = (21
) 16
~(7E) 16 area A1, and area A1 above,
Area A0 excluding A2 and A3 is an area of undefined codes.

本発明によれば、上記の定義エリアA2に属す
る漢字コードは、演算によりCGアドレスを求め、
定義・未定義混在エリアA3に属する漢字コード
についてはコード変換用メモリを用いてCGアド
レスを求める。
According to the present invention, the CG address of the kanji code belonging to the definition area A2 is obtained by calculation,
For kanji codes belonging to the defined/undefined mixed area A3, the CG address is obtained using the code conversion memory.

第4図は本発明の一実施例を示すブロツク図で
あり、第5図はその処理フロー図である。
FIG. 4 is a block diagram showing one embodiment of the present invention, and FIG. 5 is a processing flow diagram thereof.

処理装置等よりデータ線20を通じて与えられ
る漢字コードはレジスタ21に一旦ラツチされ
る。判定回路22は第5図の処理フロー図に示す
ような定数との大小比較によつて、レジスタ21
内の漢字コードがどのエリアA0〜A3に属する
かを高速で判定し、未定義エリアA0,A1に属
する場合は信号線33に信号を出す。定義エリア
A2に属すると判定された場合は信号線23に信
号が出る。また定義・未定義エリアA3に属する
と判定された場合は信号線24に信号が出る。
The kanji code supplied from a processing device or the like through a data line 20 is once latched in a register 21. The determination circuit 22 compares the register 21 with a constant as shown in the processing flow diagram of FIG.
It is determined at high speed to which area A0 to A3 the kanji code within belongs to, and if it belongs to undefined areas A0 or A1, a signal is output to the signal line 33. If it is determined that it belongs to the defined area A2, a signal is output to the signal line 23. Further, if it is determined that the area belongs to the defined/undefined area A3, a signal is output to the signal line 24.

信号線23に信号が出た場合、レジスタ21内
の漢字コードが演算回路25が取込まれる。演算
回路25は、一定の演算式を実行してCG29の
アドレスを求め、アドレスレジスタ27にセツト
する。CG29は定義エリアA2に属する漢字コ
ードに対する文字パターンを内蔵しており、その
登録順序は漢字コードの第1バイト(N)16と第
2バイト(M)16を組合せたコードの若い順番と
なつている。したがつて上記の演算は、第1バイ
トと第2バイトを組合せたコードの最若番がゼロ
となるような演算式(1)にしたがつて行なわれる。
When a signal is output to the signal line 23, the kanji code in the register 21 is taken into the arithmetic circuit 25. The arithmetic circuit 25 executes a certain arithmetic expression to obtain the address of the CG 29 and sets it in the address register 27. CG29 has a built-in character pattern for the kanji code belonging to definition area A2, and the registration order is in ascending order of the code that is a combination of the first byte (N) 16 and the second byte (M) 16 of the kanji code. There is. Therefore, the above calculation is performed according to the calculation formula (1) such that the smallest number of the code obtained by combining the first byte and the second byte is zero.

CGアドレス={(N)16−(30)16} ×(5E)16+(M)16 …(1)式 演算回路25によつて求められアドレスレジス
タ27にセツトされたCGアドレスでCG29が読
出され、求められた文字パターンはオア回路31
を介して出力線32に出力される。
CG address = {(N) 16 - (30) 16 } × (5E) 16 + (M) 16 ... (1) Equation CG 29 is read with the CG address determined by the arithmetic circuit 25 and set in the address register 27. The obtained character pattern is OR circuit 31
It is output to the output line 32 via.

一方、判定回路22から信号線24に信号が出
された場合は、レジスタ21内の漢字コードがコ
ード変換回路26に10ビツトに圧縮されて入力さ
れる(第1バイトの上位3ビツトが捨てられる)。
コード変換回路26はメモリを参照する方式、例
えば第1図に示したメモリ順次サーチ方式あるい
は第2図に示した漢字コードによるメモリ直接ア
クセス方式のものでよいので、特に具体例は示さ
ない。コード変換回路26で求められたCGアド
レスはCG30のアドレスレジスタ28にセツト
される。アドレスレジスタ28内のCGアドレス
CG30から文字パターンが読出され、オア回路
31を介して出力線32に出力される。
On the other hand, when a signal is output from the determination circuit 22 to the signal line 24, the kanji code in the register 21 is compressed to 10 bits and input to the code conversion circuit 26 (the upper 3 bits of the first byte are discarded). ).
The code conversion circuit 26 may be of a memory referencing type, for example, the memory sequential search type shown in FIG. 1 or the memory direct access type using Kanji codes shown in FIG. 2, so no specific example will be shown. The CG address obtained by the code conversion circuit 26 is set in the address register 28 of the CG 30. CG address in address register 28
A character pattern is read from the CG 30 and output to the output line 32 via the OR circuit 31.

尚、コード変換回路26は定義・未定義混在エ
リアA3内の漢字コードを扱うから、漢字コード
が未定義コードとして判定されることがある。そ
の場合、該当漢字コードに対しては前述の一般的
な外字処理を行なうことになる。例えばコード変
換回路26を第2図の構成にした場合は、アドレ
スレジスタ28の後段にコード変換回路26から
出される未定義コードを検出するデコーダを設
け、このデコーダの出力線を前記判定回路22の
信号線33とオアすればよい。またコード変換回
路26を第1図の構成にした場合は、一致信号8
(第1図)とアドレスカウンタ1(第1図)から
未定義コード検出信号を作成し、それを判定回路
22の信号線33とオアすればよい。
Incidentally, since the code conversion circuit 26 handles the Kanji codes in the defined/undefined mixed area A3, the Kanji codes may be determined as undefined codes. In that case, the above-mentioned general external character processing will be performed on the corresponding Kanji code. For example, if the code conversion circuit 26 has the configuration shown in FIG. All you have to do is OR it with the signal line 33. Further, when the code conversion circuit 26 has the configuration shown in FIG.
(FIG. 1) and the address counter 1 (FIG. 1), an undefined code detection signal may be created and ORed with the signal line 33 of the determination circuit 22.

ここでさらに付言すれば、コード変換回路26
は定義・未定義エリアA3内の漢字コードだけを
取扱かうので、第1図または第2図の構成を採用
しても必要なメモリアクセス回数やメモリ容量は
大幅に減少するため、コード変換速度やコストは
実際上問題にならない。
To add more here, the code conversion circuit 26
handles only the kanji codes in the defined/undefined area A3, so even if the configuration shown in Figure 1 or 2 is adopted, the number of memory accesses and memory capacity required will be greatly reduced, so the code conversion speed and Cost is not really an issue.

以上に詳細に述べたように、本発明にあつて
は、コード変換に先立つて文字コードを例えば定
数と大小比較することによりその文字コードが文
字コード空間内のどのエリアに属するか判定し、
未定義エリアに属する文字コードに対する無駄な
コード変換動作を行なわない。また定義されたコ
ードが規則的に配列されている定義エリアに属す
る文字コードについては、簡単な演算によつて高
速のコード変換を行なう。そして定義・未定義混
在エリアに属する文字コードについてだけ、コー
ド変換用メモリを用いたコード変換を行なう。し
たがつて、コード変換を全体として高速化でき、
またコード変換用メモリの容量を大幅に減らせる
ためコスト面での改善も達成できる。
As described in detail above, in the present invention, prior to code conversion, it is determined to which area in the character code space the character code belongs by comparing the character code with, for example, a constant;
To avoid unnecessary code conversion operations for character codes belonging to an undefined area. Furthermore, for character codes belonging to a defined area in which defined codes are regularly arranged, high-speed code conversion is performed by simple calculations. Then, code conversion using the code conversion memory is performed only for character codes belonging to the defined/undefined mixed area. Therefore, code conversion can be speeded up as a whole,
Furthermore, since the memory capacity for code conversion can be significantly reduced, cost improvements can also be achieved.

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

第1図および第2図はそれぞれ従来の文字コー
ド変換方式のブロツク図、第3図はJISC―6226
で規定されている漢字コードの体系を示す図、第
4図は本発明の一実施例を示すブロツク図、第5
図は同上実施例の処理フロー図である。 21…漢字コード、レジスタ、22…判定回
路、25…演算回路、26…コード変換回路、2
7,28…アドレスレジスタ、29,30…文字
発生器(CG)、31…オア回路。
Figures 1 and 2 are block diagrams of conventional character code conversion methods, and Figure 3 is JISC-6226.
Figure 4 is a block diagram showing an embodiment of the present invention, Figure 5 is a diagram showing the system of kanji codes defined in
The figure is a processing flow diagram of the same embodiment. 21... Kanji code, register, 22... Judgment circuit, 25... Arithmetic circuit, 26... Code conversion circuit, 2
7, 28... Address register, 29, 30... Character generator (CG), 31... OR circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 文字コードに対応する文字パターンを発生す
る文字パターン発生器を有する装置において、前
記文字パターン発生器に規則的に配列され登録さ
れた文字パターンに対応する第1の文字コード群
と、前記文字パターン発生器に登録された文字パ
ターンと未登録の文字パターンに対応する文字コ
ードが不規則に混在する第2の文字コード群と、
前記文字パターン発生器に未登録の文字パターン
に対応する第3の文字コード群とを判定する手段
と、前記判定手段がある文字コードを前記第1の
文字コード群に属するものと判定することに応じ
て所定の演算式の実行によつてコード変換して前
記文字パターン発生器から文字パターンを発生せ
しめ、前記第2の文字コード群に属するものと判
定することに応じてコード変換用メモリを参照し
てコード変換し前記文字パターン発生器から文字
パターンを発生せしめ、またコード変換できない
ものは外字処理により文字パターンを発生せし
め、前記第3の文字コード群に属するものと判定
することに応じて、外字処理により文字パターン
を発生せしめる手段を有することを特徴とする文
字コード変換方式。
1. In an apparatus having a character pattern generator that generates a character pattern corresponding to a character code, a first character code group corresponding to a character pattern regularly arranged and registered in the character pattern generator, and the character pattern a second character code group in which character codes corresponding to character patterns registered in the generator and character patterns not registered are mixed irregularly;
means for determining a third character code group corresponding to a character pattern not registered in the character pattern generator; and determining that the character code with the determination means belongs to the first character code group. Accordingly, code conversion is performed by executing a predetermined arithmetic expression to generate a character pattern from the character pattern generator, and the code conversion memory is referred to in response to determining that the character pattern belongs to the second character code group. In response to determining that the character pattern belongs to the third character code group, A character code conversion method characterized by having means for generating a character pattern by processing non-standard characters.
JP6538980A 1980-05-19 1980-05-19 Character code converting system Granted JPS56161587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6538980A JPS56161587A (en) 1980-05-19 1980-05-19 Character code converting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6538980A JPS56161587A (en) 1980-05-19 1980-05-19 Character code converting system

Publications (2)

Publication Number Publication Date
JPS56161587A JPS56161587A (en) 1981-12-11
JPS6332194B2 true JPS6332194B2 (en) 1988-06-28

Family

ID=13285577

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6538980A Granted JPS56161587A (en) 1980-05-19 1980-05-19 Character code converting system

Country Status (1)

Country Link
JP (1) JPS56161587A (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59184941A (en) * 1983-04-05 1984-10-20 Fuji Xerox Co Ltd Kanji code converting method
JPS59184942A (en) * 1983-04-05 1984-10-20 Fuji Xerox Co Ltd Kanji code converting method
JPS61128282A (en) * 1984-11-27 1986-06-16 沖電気工業株式会社 Character generator
JPS62108293A (en) * 1985-11-06 1987-05-19 株式会社日立製作所 Data processing terminal
JPS62171231A (en) * 1986-01-23 1987-07-28 Toyota Motor Corp Decoder
JPS62177588A (en) * 1986-01-31 1987-08-04 株式会社東芝 Code table information reader
JPS6314230A (en) * 1986-07-04 1988-01-21 Nec Corp Data converter
JPH084232B2 (en) * 1986-07-26 1996-01-17 キヤノン株式会社 Difference information data conversion method
JPS63156228A (en) * 1986-12-20 1988-06-29 Fujitsu Ltd Code conversion system
JPH02120891A (en) * 1988-10-31 1990-05-08 Nec Corp Character generator

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5348420A (en) * 1976-09-25 1978-05-01 Fujitsu Ltd Table conversion method of scattered code

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5348420A (en) * 1976-09-25 1978-05-01 Fujitsu Ltd Table conversion method of scattered code

Also Published As

Publication number Publication date
JPS56161587A (en) 1981-12-11

Similar Documents

Publication Publication Date Title
JPS6332194B2 (en)
JP3034465B2 (en) Character input method using numeric keys
JPS5971564A (en) Picture data memory control system
JP3896683B2 (en) User-defined character management device and storage medium
SU822171A1 (en) Information input-output arrangement
SU362323A1 (en) USSR Academy of Sciences
JP2000048188A (en) Device for converting image data
JPH082712Y2 (en) Display controller
JP2576805Y2 (en) LSI for musical tone generation
JPS61117657A (en) Retrieving system of kanji reading information
JPS59184942A (en) Kanji code converting method
JPS6327730B2 (en)
JPS6041360B2 (en) Cursor display method
JPS59146343A (en) Information processing device
JPS6237439B2 (en)
JPS58220567A (en) Picture data compressing system
JPS61224731A (en) Changing point detection system
JPH04180093A (en) Character display system
JPH06325098A (en) Map information processor
JPS6140110B2 (en)
JPH04280331A (en) Access system to read-only list
JPH09297771A (en) Method and device for character string retrieval and method and device for character string retrieval information generation
JPS61153776A (en) Displaying device
JPH03189889A (en) Dictionary memory accessing method
JPS6349890A (en) Character image processing system