Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH077393B2 - Kanji code conversion method - Google Patents
[go: Go Back, main page]

JPH077393B2 - Kanji code conversion method - Google Patents

Kanji code conversion method

Info

Publication number
JPH077393B2
JPH077393B2 JP63103607A JP10360788A JPH077393B2 JP H077393 B2 JPH077393 B2 JP H077393B2 JP 63103607 A JP63103607 A JP 63103607A JP 10360788 A JP10360788 A JP 10360788A JP H077393 B2 JPH077393 B2 JP H077393B2
Authority
JP
Japan
Prior art keywords
kanji code
conversion
conversion table
code
pointer
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 - Fee Related
Application number
JP63103607A
Other languages
Japanese (ja)
Other versions
JPH01274271A (en
Inventor
昌俊 溝口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63103607A priority Critical patent/JPH077393B2/en
Publication of JPH01274271A publication Critical patent/JPH01274271A/en
Publication of JPH077393B2 publication Critical patent/JPH077393B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 〔概 要〕 本発明は漢字コード変換方式に関し、 変換テーブルのメモリ容量を削減することを目的とし、 第1のコード体系の第1の漢字コードをアドレスとして
第2のコード体系の対応する第2の漢字コードを格納し
た変換テーブルに基づき、第1の漢字コードを第2の漢
字コードに変換する漢字コード変換方式において、第1
の漢字コードの所定の上位ビットで第1の漢字コード群
が分割された複数の区のうち、指定されたそれぞれの区
の前記変換テーブルが結合された結合変換テーブルと、
前記分割された区にそれぞれ対応する領域を備え、該結
合変換テーブルにおけるそれぞれの区の変換テーブルの
ポインタ値が対応する該領域に格納されたポインタテー
ブルと、変換指示された第1の漢字コードの前記上位ビ
ットに基づきアドレスを算出して該ポインタテーブルを
検索するとともに、検出した該当ポインタ値と第1の漢
字コードのうち前記上位ビットを除く下位ビットで算出
した該当区内のオフセット値とに基づき前記結合変換テ
ーブルを検索する変換処理部と、指定された前記所定の
上位ビットならびに結合する区情報に基づき前記結合変
換テーブルを生成し、それぞれの区に対応する前記ポイ
ンタ値を算出して該ポインタテーブルを格納する変換テ
ーブル生成部とを備え、指定された区の変換テーブルを
結合して前記結合変換テーブルならびにポインタテーブ
ルを生成するとともに、該ポインタテーブルのアドレス
と前記オフセット値とを変換指示された第1の漢字コー
ドに基づき算出し、得られた該ポインタ値と該オフセッ
ト値に基づき該結合変換テーブルを検索して対応する第
2の漢字コードに変換するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to a kanji code conversion system, and an object of the present invention is to reduce the memory capacity of a conversion table. The first kanji code of the first code system is used as an address in the second kanji code. In the kanji code conversion method for converting the first kanji code into the second kanji code based on the conversion table storing the second kanji code corresponding to the code system,
A combination conversion table in which the conversion tables of the respective specified sections of the plurality of sections obtained by dividing the first Kanji code group by the predetermined high-order bits of
A pointer table is provided which has areas corresponding to the respective divided areas, and the pointer values of the conversion tables of the respective areas in the combined conversion table are stored in the corresponding areas, and the first kanji code for which conversion is instructed. An address is calculated based on the high-order bit to search the pointer table, and based on the detected corresponding pointer value and an offset value in the corresponding section calculated by the low-order bits of the first Kanji code excluding the high-order bit. A conversion processing unit that searches the combination conversion table, generates the combination conversion table based on the specified predetermined upper bit and the section information to be combined, calculates the pointer value corresponding to each section, and outputs the pointer. A conversion table generating unit for storing the table, combining the conversion tables of a specified section The conversion table and the pointer table are generated, the address of the pointer table and the offset value are calculated based on the first Kanji code instructed to be converted, and the combined conversion is performed based on the obtained pointer value and the offset value. The table is searched and configured to be converted into the corresponding second kanji code.

〔産業上の利用分野〕[Industrial application field]

本発明は漢字コード変換方式の改良に関する。 The present invention relates to improvement of a kanji code conversion system.

漢字コードはJIS(漢字)コードが設定されているが、
処理方式の相違により、JISコードを基準とした独自の
コード体系が各社で採用されている。
JIS (Kanji) code is set as the Kanji code,
Due to the difference in processing method, each company has adopted its own code system based on JIS code.

このため、コード体系の異なる機種を組み合わせたシス
テムを構築した場合、例えば異機種のホストコンピュー
タと端末との間で漢字コードをやりとりさせる場合、ホ
スト側で漢字コードの変換が行われる。
Therefore, when a system combining models of different code systems is constructed, for example, when a Kanji code is exchanged between a host computer and a terminal of different models, the Kanji code conversion is performed on the host side.

この漢字コードの変換において、相互の漢字コードを対
応させた変換テーブルを設けて変換処理を行っている
が、従来ではそのコード体系で確保されているすべての
漢字コードに対して変換テーブル領域が設けられていた
ため、そのシステムでサポートされていない漢字コード
とか未定義の漢字コード等で未使用領域が存在すると、
変換テーブルをロードするメモリ領域に無駄が生じると
いう課題があった。
In this Kanji code conversion, a conversion table that associates mutual Kanji codes is provided to perform the conversion process. Conventionally, a conversion table area is provided for all Kanji codes secured by the code system. However, if there is an unused area in a Kanji code that is not supported by the system or an undefined Kanji code,
There is a problem that the memory area for loading the conversion table is wasted.

このため、システムに対応させてメモリ量を削減し得る
漢字コード変換方式が求められている。
Therefore, there is a demand for a kanji code conversion method that can reduce the amount of memory corresponding to the system.

〔従来の技術〕[Conventional technology]

第4図は漢字コードのメモリマップを表す図、第5図は
従来の漢字コード変換方式説明図である。
FIG. 4 is a diagram showing a memory map of Kanji code, and FIG. 5 is an explanatory diagram of a conventional Kanji code conversion system.

漢字コードは2バイトで構成されており、この漢字コー
ドの上位1バイトと下位1バイトとでメモリマップを表
したものが、第4図である。
The Kanji code is composed of 2 bytes, and FIG. 4 shows the memory map with the upper 1 byte and the lower 1 byte of this Kanji code.

このうち、JISコードは、JIS第1水準、JIS第2水準,JI
S非漢字についてコードが設定されたもので、第4図で
表される領域で表される。
Among these, JIS code is JIS first level, JIS second level, JI
A code is set for non-Kanji characters and is represented by the area shown in FIG.

一方A社の漢字コードは、上記JISコードの他、ユーザ
定義領域、拡張非漢字,拡張漢字等を設けるとともに、
漢字コードをEBCIDICコードで表し、且つEBCIDICコード
の上位,下位バイトの上位1ビットをそれぞれ1とした
もので、この結果メモリマップ上第4図に示される領域
となる。
On the other hand, the Kanji code of Company A is provided with user-defined areas, extended non-Kanji, and extended Kanji in addition to the above JIS code.
The kanji code is represented by the EBCIDIC code, and the upper 1 bit of the upper byte and the lower byte of the EBCIDIC code is set to 1, respectively, and as a result, the area shown in FIG. 4 is obtained on the memory map.

同様に、B社の漢字コードも処理上の考慮が払われて独
自に設定されたもので、例えば第4図に示すようなA社
とは異なる領域に割り付けられている。
Similarly, the Kanji code of company B is also set uniquely with due consideration in processing, and is allocated to a different area from that of company A as shown in FIG. 4, for example.

以上のごとく、処理上の都合により、各社で独自に漢字
コードが設定されているため、異機種を接続する場合は
漢字コードの変換を行わなければならない。
As described above, because of the convenience of processing, each company sets its own Kanji code, so when connecting different models, you must convert the Kanji code.

第5図は、A社のホストとB社の端末とを接続した場合
におけるホスト側の漢字コードの変換方法を示したもの
である。
FIG. 5 shows a kanji code conversion method on the host side when the host of company A and the terminal of company B are connected.

ここで、13は漢字コード変換テーブルであって、A社の
漢字コード(第1の漢字コード)10をアドレスとして対
応するB社の漢字コード(第2の漢字コード)10aをそ
れぞれ格納する2バイトの領域を設けたもので、A社の
確保した漢字コード領域(例えばA414〜FEFE)のすべて
に対するテーブル領域を持ち、変換処理時には変換プロ
グラム12により主メモリに転送されて検索される。
Here, 13 is a Kanji code conversion table, which is a 2-byte data storing the Kanji code (second Kanji code) 10a of company B corresponding to the Kanji code (first Kanji code) 10 of company A as an address. Area is provided and has a table area for all of the Kanji code areas (for example, A414 to FEFE) secured by the company A, and is transferred to the main memory by the conversion program 12 for retrieval during conversion processing.

なお、端末からB社の漢字コード10aが転送されるとき
は逆変換テーブルによりA社の漢字コード10に逆変換さ
れる。
When the Kanji code 10a of Company B is transferred from the terminal, it is converted back to the Kanji code 10 of Company A by the reverse conversion table.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

以上説明したように、従来の漢字コード変換テーブルは
確保されている漢字コード領域すべてに付いてそれぞれ
2バイトのテーブル領域が設けられていたため、拡張漢
字とか、ユーザ定義文字等そのシステムで未使用のコー
ド領域、さらには例えば第2水準で未定義の領域等があ
ると、メモリに無駄が生じるという課題があった。
As described above, since the conventional kanji code conversion table has a 2-byte table area for each of the reserved kanji code areas, it is not used in the system such as extended kanji or user-defined characters. If there is a code area, for example, an area that is undefined at the second level, there is a problem that memory is wasted.

本発明は上記問題点に鑑み、そのシステムでサポートさ
れる漢字コードに柔軟に対処し、且つ変換テーブルのメ
モリ量を削減し得る漢字コード変換方式を提供すること
を目的とする。
In view of the above problems, it is an object of the present invention to provide a Kanji code conversion method capable of flexibly dealing with the Kanji code supported by the system and reducing the memory amount of the conversion table.

〔課題を解決するための手段〕[Means for Solving the Problems]

上記目的を達成するため、本発明の漢字コード変換方式
は、第1図本発明の原理図に示すように、 第1の漢字コード(10)の所定の上位ビットで第1の漢
字コード群が分割された複数の区のうち、指定されたそ
れぞれの区の第1の漢字コード(10)をアドレスとして
対応する第2の漢字コード(10a)を格納した変換テー
ブル(4a)が結合された結合変換テーブル(3)と、 前記分割された区にそれぞれ対応する領域を備え、該結
合変換テーブルにおけるそれぞれの区の変換テーブルの
ポインタ値(50a)が対応する該領域に格納されたポイ
ンタテーブル(8)と、 変換指示された第1の漢字コードの前記上位ビットに基
づきアドレス(51)を算出して該ポインタテーブル
(8)を検索するとともに、検出した該当ポインタ値
(50a)と第1の漢字コードのうち前記上位ビットを除
く下位ビットで算出した該当区内のオフセット値(50
b)とに基づき前記結合変換テーブル(3)を検索する
変換処理部(2)と、 指定された前記所定の上位ビットならびに結合する区情
報に基づき前記結合変換テーブル(3)を生成し、それ
ぞれの区に対応する前記ポインタ値(50b)を算出して
該ポインタテーブル(8)に格納する変換テーブル生成
部(9)とを備える。
In order to achieve the above object, the Kanji code conversion system of the present invention has a first Kanji code group at a predetermined upper bit of the first Kanji code (10) as shown in the principle diagram of FIG. A combination of the conversion tables (4a) storing the second Kanji code (10a) corresponding to the first Kanji code (10) of each specified section among the plurality of divided sections A conversion table (3) and areas corresponding to the divided sections, respectively, and pointer tables (8) stored in the corresponding areas of the conversion table pointer values (50a) of the sections in the combined conversion table. ), And an address (51) is calculated based on the upper bits of the first Kanji code instructed to be converted, the pointer table (8) is searched, and the detected corresponding pointer value (50a) and the first Kanji Offset value of the corresponding ward calculated in the lower bits except for the upper bits of the over-de (50
a conversion processing unit (2) for searching the combination conversion table (3) based on (b), and generating the combination conversion table (3) based on the designated predetermined upper bit and the section information to be combined, And a conversion table generation unit (9) for calculating the pointer value (50b) corresponding to the section and storing it in the pointer table (8).

〔作 用〕[Work]

変換テーブル生成部9は、変換対象の第1の漢字コード
10のすべての領域を、指定された第1の漢字コード10の
所定上位ビットに基づき、複数の領域“区"20に区分
し、指定された区の変換テーブル4aを結合して結合変換
テーブル3を作成する。
The conversion table generation unit 9 is the first Kanji code to be converted.
All 10 areas are divided into a plurality of areas "districts" 20 based on the predetermined high-order bits of the specified first kanji code 10, and the conversion tables 4a of the specified divisions are combined to combine the conversion table 3 To create.

同時に、結合変換テーブル3における各区の変換テーブ
ル4aのポインタ値(以下ポインタ)50aを算出してポイ
ンタテーブル8の所定アドレス領域に格納する。
At the same time, the pointer value (hereinafter, pointer) 50a of the conversion table 4a of each section in the combined conversion table 3 is calculated and stored in a predetermined address area of the pointer table 8.

このポインタテーブル8は、区ごとに2バイトのポイン
タ50aを格納する領域を備えたもので、それぞれの領域
は、分割に使用された上位ビットに対応したアドレス
(ポインタ)51が割り付けられる。
The pointer table 8 is provided with an area for storing a 2-byte pointer 50a for each section, and an address (pointer) 51 corresponding to the upper bit used for division is assigned to each area.

以上により、そのシステムに対応した結合変換テーブル
3が生成される。
As described above, the combined conversion table 3 corresponding to the system is generated.

上記生成された結合変換テーブル3に基づいて漢字コー
ドを変換するとき、変換処理部2は、変換指示された第
1の漢字コード10の前記所定上位ビットを2倍(ポイン
タ値が2バイトのため)してポインタテーブル8のアド
レス51を算出し該当ポインタ50aを読出すとともに、前
記上位ビットを除く下位ビットを2倍(結合変換テーブ
ル3の各領域が2バイトのため)してオフセット50bを
算出し、 ポインタ50a+オフセット50b +(結合変換テーブルのメモリ上の先頭アドレス) により結合変換テーブル3を検索する。
When converting the Kanji code based on the generated combined conversion table 3, the conversion processing unit 2 doubles the predetermined upper bit of the first Kanji code 10 instructed to be converted (since the pointer value is 2 bytes, ) To calculate the address 51 of the pointer table 8 and read the corresponding pointer 50a, and double the lower bits except the upper bit (since each area of the combined conversion table 3 is 2 bytes) to calculate the offset 50b. Then, the combination conversion table 3 is searched by the pointer 50a + the offset 50b + (the start address on the memory of the combination conversion table).

以上のごとく、不要の区の変換テーブルを削除して結合
変換テーブル3を作成するとともに、各区の結合変換テ
ーブル3におけるポインタ50aを格納したポインタテー
ブルのアドレス51と、オフセット50bとを第1の漢字コ
ード10に基づき算出して結合変換テーブル3を検索する
ことにより、第2の漢字コード10aに変換することがで
きる。
As described above, the conversion table of the unnecessary section is deleted to create the combined conversion table 3, and the address 51 of the pointer table storing the pointer 50a in the combined conversion table 3 of each section and the offset 50b are set to the first kanji. The second Kanji code 10a can be converted by calculating based on the code 10 and searching the combination conversion table 3.

〔実施例〕〔Example〕

本発明の実施例を第1図〜第3図を用いて詳細に説明す
る。
An embodiment of the present invention will be described in detail with reference to FIGS.

第1図は本発明の原理図、第2図は検索動作フローチャ
ート図、第3図は実施例の処理装置ブロック図である。
FIG. 1 is a principle diagram of the present invention, FIG. 2 is a search operation flowchart diagram, and FIG. 3 is a processing device block diagram of an embodiment.

本実施例は、第1の漢字コード10の上位1バイトで256
の区に分割した例を示す。
In this embodiment, the upper 1 byte of the first kanji code 10 is 256
The following shows an example of division into wards.

第3図は、ホストコンピュータ等、漢字コード変換を行
う処理装置の漢字変換処理部分を示したもので、図中、 2は変換処理部(漢字変換プログラム)で、主メモリ5
上の送信データ6(変換対象の漢字コード)を、後述す
る変換処理に基づき、第2の漢字コード10aに変換し、
変換データ7として主メモリ5に格納するもの、 3は、256の区のうち、指定の区2,4,n(区の番号)のそ
れぞれの変換テーブル4aが結合編集されファイルされた
結合変換テーブルで、変換処理時に主メモリ5にロード
されて検索されるもの、 4はマスタ変換テーブルで、本処理装置で使用されてい
るコード体系で確保されているすべての領域の漢字コー
ド変換テーブルがファイルされたもの、 5は主メモリで、送信データ6,変換データ7,結合変換テ
ーブル3およびポインタテーブル8がロードされて変換
処理に使用されるもの、 6は第1の漢字コード10で構成された送信データ、 7は送信データ6を第2の漢字コード10aにコード変換
した変換データで、図示省略した通信制御部を経由して
異機種の端末に送信されるもの、 8はポインタテーブルで、結合変換テーブル3とともに
ファイルされ変換処理時には主メモリ5に転送されて参
照されるもの、 9は変換テーブル生成部で、後述する生成処理によっ
て、結合変換テーブル3およびポインタテーブル8を作
成するもの、 1は各部の制御を行うプロセッサである。
FIG. 3 shows a kanji conversion processing part of a kanji code conversion processing device such as a host computer. In the figure, 2 is a conversion processing part (kanji conversion program), which is a main memory 5.
The above transmission data 6 (Kanji code to be converted) is converted into the second Kanji code 10a based on the conversion process described later,
What is stored in the main memory 5 as the conversion data 7. 3 is a combined conversion table in which the conversion tables 4a of the specified areas 2, 4, and n (area number) are combined and edited out of 256 areas. , Which is loaded and retrieved in the main memory 5 during conversion processing, 4 is a master conversion table, which stores the Kanji code conversion tables of all areas secured by the code system used in this processing device. 5 is a main memory, and the transmission data 6, the conversion data 7, the combined conversion table 3 and the pointer table 8 are loaded and used for conversion processing. 6 is the transmission composed of the first Kanji code 10. Data, 7 is conversion data obtained by converting the transmission data 6 into the second Kanji code 10a, which is transmitted to a terminal of a different model via a communication control unit (not shown), 8 is a pointer table , Which is filed together with the join conversion table 3 and transferred to the main memory 5 for reference during the conversion processing, and 9 is a conversion table generation unit which creates the connection conversion table 3 and the pointer table 8 by the generation processing described later. , 1 is a processor for controlling each unit.

マスタ変換テーブル4は、第5図に示す従来の漢字変換
テーブル13に相当するもので、すべての第1の漢字コー
ド10をアドレスとしてそれぞれ2バイトの対応する第2
の漢字コード10aを格納したものであり、外部ファイル
として提供される。
The master conversion table 4 is equivalent to the conventional Kanji conversion table 13 shown in FIG. 5, and has 2 bytes each corresponding to the first Kanji code 10 as an address.
It stores the Kanji code 10a of and is provided as an external file.

また、ポインタテーブル8は、区の変換テーブル4aのポ
インタ値50aをそれぞれ格納する2バイトの領域を、分
割された区1〜区256のすべてについて備えたもので、
全体で256×2バイトの領域(実際には前述したA社の
漢字コード例では、A1〜FE以外は除く)を持ち、各領域
は変換対象の第1の漢字コード10の上位1バイトを2倍
したアドレス(ポインタ)が割り付けられ、且つ検索さ
れる。
Further, the pointer table 8 is provided with a 2-byte area for storing the pointer value 50a of the conversion table 4a for each section for each of the divided sections 1 to 256,
It has a total area of 256 x 2 bytes (actually, except for A1 to FE in the above-mentioned Kanji code example of company A, except for A1 to FE), and each area contains the upper 1 byte of the first Kanji code 10 to be converted. The doubled address (pointer) is allocated and searched.

結合変換テーブル3は、それぞれ指定された区の変換テ
ーブル4aが結合編集されたもので、第1の漢字コード10
についてそれぞれ2バイトの対応する第2の漢字コード
10aを格納する領域を備え、ポインタ50aによって区の変
換テーブル4aの先頭アドレスが示され、また第1の漢字
コード10の下位バイトを2倍したオフセット50bによっ
て区内がアドレスされる。
The combination conversion table 3 is a combination of the conversion tables 4a of the designated sections and is edited.
Corresponding second kanji code of 2 bytes each for
An area for storing 10a is provided, the pointer 50a indicates the head address of the conversion table 4a of the section, and the inside of the section is addressed by the offset 50b obtained by doubling the lower byte of the first Kanji code 10.

以上構成の処理装置によって、以下に示す処理が行われ
る。
The following processing is performed by the processing device having the above configuration.

(結合変換テーブルの生成処理) 処理装置の各種設定時に図示省略した操作部または設定
メモリより、結合変換テーブル3を構成する区の番号、
ここでは区1,区2および区nが指定される。
(Combination Conversion Table Generation Processing) The numbers of the sections constituting the combination conversion table 3 are input from the operation unit or setting memory (not shown) at the time of various settings of the processing device,
Here, Ward 1, Ward 2 and Ward n are designated.

これにより、変換テーブル生成部9は、マスタ変換テー
ブル4より区1,区2,区nの変換テーブル4aを読込み結合
するとともに、結合変換テーブル3内における各区のポ
インタ50aを算出してポインタテーブル8の該当アドレ
ス領域(上位1バイトを2倍した値)に格納する。
As a result, the conversion table generation unit 9 reads and combines the conversion tables 4a for the sections 1, 2 and n from the master conversion table 4 and calculates the pointers 50a of the sections in the combined conversion table 3 to calculate the pointer table 8 In the corresponding address area (value obtained by doubling the upper 1 byte).

作成されたポインタテーブル8および結合変換テーブル
3はファイルされ処理装置のシステムに組み込まれる。
The created pointer table 8 and the combined conversion table 3 are filed and incorporated in the system of the processing device.

(漢字コード変換処理) 端末に送信される送信データ6は主メモリ5に転送さ
れ、変換処理部2に変換処理指示が通知される。
(Kanji code conversion processing) The transmission data 6 transmitted to the terminal is transferred to the main memory 5, and the conversion processing unit 2 is notified of the conversion processing instruction.

変換処理部2は、ポインタテーブル8と結合変換テーブ
ル3とを主メモリ5に転送せしめ、通知されたそれぞれ
のロード先の先頭アドレスを保持して、送信データ6を
順次読取りつつ以下のように変換処理を行う。
The conversion processing unit 2 transfers the pointer table 8 and the combined conversion table 3 to the main memory 5, holds the notified start addresses of the respective load destinations, and converts the transmission data 6 as follows while sequentially reading the transmission data 6. Perform processing.

(1) 第1の漢字コード(“aabb"とする)の上位バ
イトより、ポインタテーブルアドレス 〔“aa"×2+主メモリ上のポインタテーブル8の先頭
アドレス〕 を演算して、主メモリ5上のポインタテーブル8を検索
し、ポインタ値(“eeff"とする)を読み込む。
(1) The pointer table address [“aa” × 2 + start address of pointer table 8 in main memory] is calculated from the upper byte of the first kanji code (denoted as “aabb”), and stored in main memory 5. The pointer table 8 is searched and the pointer value (denoted as "eeff") is read.

(2) 第1の漢字コード10の下位1バイトより、オフ
セット〔“bb×2〕を演算し、 〔結合変換テーブル3の主メモリ上の先頭アドレス+
“eeff"+“bb"×2〕 をアドレスとして結合変換テーブル3を検索する。
(2) The offset [“bb × 2] is calculated from the lower 1 byte of the first Kanji code 10, and the [start address on the main memory of the combined conversion table 3+
“Eeff” + “bb” × 2] is used as an address to search the binding conversion table 3.

(3) この結果、対応する第2の漢字コード10aとし
て“xxyy"が読み込まれ、これを主メモリ5に変換デー
タ7として格納する。
(3) As a result, "xxyy" is read as the corresponding second Kanji code 10a and is stored in the main memory 5 as the conversion data 7.

以上のごとく、複数の区に分割し、未使用区を削除した
それぞれの区の変換テーブル4aを結合,編集するととも
に、変換対象の第1の漢字コード10よりポインタテーブ
ル8のアドレスおよび結合変換テーブル3における該当
区のオフセットを演算することにより、結合変換テーブ
ル3を容易に検索することができる。
As described above, the division tables are divided into a plurality of divisions and the unused divisions are deleted, and the conversion tables 4a of the divisions are combined and edited, and the first kanji code 10 to be converted is used as the address of the pointer table 8 and the combined conversion table. By calculating the offset of the corresponding section in 3, the join conversion table 3 can be easily searched.

このため、システムに対応した変換テーブルを任意に作
成設定することができるため、変換テーブルのためのメ
モリ量を大幅に削減することが可能となる。
Therefore, since the conversion table corresponding to the system can be arbitrarily created and set, the memory amount for the conversion table can be significantly reduced.

なお、実施例では変換処理部9がポインタ値50aを検索
したが、コード変換を指令する応用プログラム側にポイ
ンタテーブル8を持たせて、漢字コードとポインタとを
変換プログラムに渡すように構成すると、各応用プログ
ラムでそれぞれ使用する変換テーブルを管理することが
できる利点がある。
In the embodiment, the conversion processing unit 9 searches for the pointer value 50a. However, if the application table that instructs the code conversion has the pointer table 8 and the kanji code and the pointer are passed to the conversion program, There is an advantage that the conversion table used by each application program can be managed.

〔発明の効果〕〔The invention's effect〕

本発明は、漢字コードを複数の区に分割し、未使用の区
を削除した変換テーブルを作成し、且つ検索できるよう
に構成したものであるから、システムに対応して柔軟に
対応せしめることができるとともに、メモリ量を削減で
き、このため装置の価格低減効果は多大なものがある。
INDUSTRIAL APPLICABILITY According to the present invention, the kanji code is divided into a plurality of divisions, a conversion table in which unused divisions are deleted is created, and the conversion table can be searched. Therefore, it is possible to flexibly support the system. In addition to being able to do so, the amount of memory can be reduced, so that the cost reduction effect of the device is great.

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

第1図は本発明の原理図、 第2図は検索動作フローチャート図、 第3図は実施例の処理装置ブロック図、 第4図は漢字コードのメモリマップを表す図、 第5図は従来の漢字コード変換方式説明図、 である。図中、 1はプロセッサ、2は変換処理部、 3は結合変換テーブル、4はマスタ変換テーブル、 4aは区の変換テーブル、5は主メモリ、 6は送信データ、7は変換データ、 8はポインタテーブル、9は変換テーブル生成部、 50aはポインタ値、ポインタ、 50bはオフセット値、オフセット、 51はポインタテーブルのアドレス、 20は区である。 FIG. 1 is a principle diagram of the present invention, FIG. 2 is a search operation flowchart diagram, FIG. 3 is a processing device block diagram of an embodiment, FIG. 4 is a diagram showing a memory map of Kanji code, and FIG. An explanatory diagram of the kanji code conversion method. In the figure, 1 is a processor, 2 is a conversion processing unit, 3 is a combined conversion table, 4 is a master conversion table, 4a is a conversion table of a section, 5 is a main memory, 6 is transmission data, 7 is conversion data, and 8 is a pointer. A table, 9 is a conversion table generation unit, 50a is a pointer value, a pointer, 50b is an offset value, an offset, 51 is a pointer table address, and 20 is a section.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】第1のコード体系の第1の漢字コード(1
0)をアドレスとして第2のコード体系の対応する第2
の漢字コード(10a)を格納した変換テーブルに基づ
き、第1の漢字コードを第2の漢字コードに変換する漢
字コード変換方式において、 第1の漢字コードの所定の上位ビットで第1の漢字コー
ド群が分割された複数の区(20)のうち、指定されたそ
れぞれの区の前記変換テーブル(4a)が結合された結合
変換テーブル(3)と、 前記分割された区にそれぞれ対応する領域を備え、該結
合変換テーブルにおけるそれぞれの区の変換テーブルの
ポインタ値(50a)が対応する該領域に格納されたポイ
ンタテーブル(8)と、 変換指示された第1の漢字コードの前記上位ビットに基
づきアドレス(51)を算出して該ポインタテーブル
(8)を検索するとともに、検出した該当ポインタ値
(50a)と第1の漢字コードのうち前記上位ビットを除
く下位ビットで算出した該当区内のオフセット値(50
b)とに基づき前記結合変換テーブル(3)を検索する
変換処理部(2)と、 指定された前記所定の上位ビットならびに結合する区情
報に基づき前記結合変換テーブル(3)を生成し、それ
ぞれの区に対応する前記ポインタ値(50b)を算出して
該ポインタテーブル(8)に格納する変換テーブル生成
部(9)とを備え、 指定された区の変換テーブル(4a)を結合して前記結合
変換テーブル(3)ならびにポインタテーブル(8)を
生成するとともに、該ポインタテーブルのアドレス(5
1)と前記オフセット値(50b)とを変換指示された第1
の漢字コード(10)に基づき算出し、得られた該ポイン
タ値と該オフセット値に基づき該結合変換テーブル
(3)を検索して対応する第2の漢字コード(10a)に
変換することを特徴とする漢字コード変換方式。
1. A first kanji code (1) of a first code system.
0) as an address and the corresponding second of the second code system
In the kanji code conversion method for converting the first kanji code into the second kanji code based on the conversion table storing the kanji code (10a) of the first kanji code, the first kanji code is determined by a predetermined upper bit of the first kanji code. A group conversion table (3) in which the conversion table (4a) of each specified section is combined among a plurality of sections (20) into which the group is divided, and an area corresponding to each of the divided sections. A pointer table (8) stored in the area corresponding to the pointer value (50a) of the conversion table for each section in the combined conversion table, and based on the upper bits of the conversion instruction first kanji code The address (51) is calculated and the pointer table (8) is searched, and the detected corresponding pointer value (50a) and the lower bit of the first Kanji code excluding the upper bit. In the offset value of the calculated appropriate ward (50
a conversion processing unit (2) for searching the combination conversion table (3) based on (b), and generating the combination conversion table (3) based on the designated predetermined upper bit and the section information to be combined, And a conversion table generation unit (9) for calculating the pointer value (50b) corresponding to the section and storing it in the pointer table (8), combining the conversion table (4a) of the specified section The binding conversion table (3) and the pointer table (8) are generated, and the address (5
1) which is instructed to convert 1) and the offset value (50b)
It is calculated based on the Kanji code (10), and the combined conversion table (3) is searched based on the obtained pointer value and the offset value and converted into the corresponding second Kanji code (10a). Kanji code conversion method.
JP63103607A 1988-04-26 1988-04-26 Kanji code conversion method Expired - Fee Related JPH077393B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63103607A JPH077393B2 (en) 1988-04-26 1988-04-26 Kanji code conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63103607A JPH077393B2 (en) 1988-04-26 1988-04-26 Kanji code conversion method

Publications (2)

Publication Number Publication Date
JPH01274271A JPH01274271A (en) 1989-11-02
JPH077393B2 true JPH077393B2 (en) 1995-01-30

Family

ID=14358460

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63103607A Expired - Fee Related JPH077393B2 (en) 1988-04-26 1988-04-26 Kanji code conversion method

Country Status (1)

Country Link
JP (1) JPH077393B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4558546B2 (en) * 2005-03-11 2010-10-06 富士通セミコンダクター株式会社 Character code conversion apparatus, table generation method and program

Also Published As

Publication number Publication date
JPH01274271A (en) 1989-11-02

Similar Documents

Publication Publication Date Title
JPH0816536A (en) Multiprocessor system
JPH077393B2 (en) Kanji code conversion method
JPS60247732A (en) Data storage device
JPS62245467A (en) Symbolic processing system and method
JPS6150360B2 (en)
JPS6195437A (en) File access control system
JPS5918736B2 (en) Code conversion method
JPS63137348A (en) Character code conversion system
JPH0818444B2 (en) Printing equipment
JPS6349772Y2 (en)
JPS62125443A (en) Editing and output system for error information
JPS6143883B2 (en)
JPH04321169A (en) Document preparing device
JPS6255703A (en) program input device
JPH0385634A (en) Storage control device
JPS6061851A (en) Input and output processor
JPH0445861B2 (en)
JPH05119957A (en) Data converter
JPS5827231A (en) Paper tape reader
JPS60225253A (en) Information processing device
JPS6337441A (en) Expander
JPS6381507A (en) Running system of part program for other system numerical controller
JPS61175746A (en) Computer system
JPS60155099U (en) storage controller
JPS5935053B2 (en) Code conversion method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees