JPH05143279A - Code converter - Google Patents

Code converter

Info

Publication number
JPH05143279A
JPH05143279A JP30139291A JP30139291A JPH05143279A JP H05143279 A JPH05143279 A JP H05143279A JP 30139291 A JP30139291 A JP 30139291A JP 30139291 A JP30139291 A JP 30139291A JP H05143279 A JPH05143279 A JP H05143279A
Authority
JP
Japan
Prior art keywords
code
conversion
converted
conversion rule
rule table
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.)
Withdrawn
Application number
JP30139291A
Other languages
Japanese (ja)
Inventor
Yoichi Goto
洋一 後藤
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.)
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Solution Innovators Ltd
Original Assignee
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Software Tohoku 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 TOHOKU NIPPON DENKI SOFTWARE KK, NEC Software Tohoku Ltd filed Critical TOHOKU NIPPON DENKI SOFTWARE KK
Priority to JP30139291A priority Critical patent/JPH05143279A/en
Publication of JPH05143279A publication Critical patent/JPH05143279A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To perform the conversion processing of a code in a short time even when a large amount of conversion rule data and a large number of codes to be converted exist by generating a second conversion rule table in which first conversion rule data is converted to second conversion rule data by a conversion rule table processing part, and performing code conversion by referring to the second conversion rule table. CONSTITUTION:The conversion rule table processing part 15 fetches the first conversion rule data in the first conversion rule table 14 sequentially, and generates the second conversion rule table 16 setting the value of the code to be converted of a first conversion code as an address. Thence, a converted code input part 11 inputs a record from an input device 2 in which plural records including the code to be converted are stored sequentially, and outputs it to a conversion processing part 12. The conversion processing part 12 refers to the second conversion rule table 16, and fetches a second conversion code from a second data storage address with the same value as that of the code to be converted included in the record, and performs the code conversion by setting on the position of the code to be converted of an inputted record.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、異ったコード体系の情
報処理システムによって作成されたデータを活用するた
め、作成側の情報処理システムのコード体系から利用側
の情報処理システムのコード体系に変換するためのコー
ド変換装置に関する。
BACKGROUND OF THE INVENTION The present invention utilizes data created by information processing systems having different code systems. Therefore, the code system of the information processing system on the creator side is changed to the code system of the information processing system on the user side. The present invention relates to a code conversion device for converting.

【0002】[0002]

【従来の技術】現在、社会には、種々のコード体系を有
する情報処理システムが数多く存在しており、データを
有効に活用するため、異ったコード体系を有する情報処
理システムで作成したデータを相互に流用するケースが
多くなってきている。このとき、作成側の情報処理シス
テムのコード体系で作成したデータを、利用側の情報処
理システムのコード体系のデータに変換しなければなら
ないが、このような目的に使用する従来のコード変換装
置は、コード変換のための変換規則情報として、被変換
コードと変換後のコード(変換コード)とを1対とし、
被変換コードの数と同数のコード対をランダムな順序に
並べた変換規則データを変換規則情報とし、この変換規
則情報の中から所望の変換コードを捜し出すため、変換
コードを何回も被変換コードと突合わせるという方法に
よって変換処理を行っている。
2. Description of the Related Art At present, there are many information processing systems having various code systems in society, and in order to effectively utilize the data, data created by the information processing systems having different code systems are used. In many cases, they are diverted from each other. At this time, the data created by the code system of the information processing system on the creation side must be converted into the data of the code system of the information processing system on the user side. Conventional code conversion devices used for such purposes are As conversion rule information for code conversion, the code to be converted and the code after conversion (conversion code) are paired,
The conversion rule data in which the same number of code pairs as the number of the converted codes are arranged in a random order is used as the conversion rule information, and a desired conversion code is searched from this conversion rule information. The conversion process is performed by the method of matching with.

【0003】[0003]

【発明が解決しようとする課題】上述したような従来の
コード変換装置は、変換規則データの数が多くなる程、
変換コードを捜し出すための時間が多くかかるという欠
点を有している。すなわち、変換規則データの数が多い
程一つのコードを変換するための時間が長くかかり、変
換すべきコードの数が大量にあると、膨大な変換処理時
間を必要とするという欠点を有している。
In the conventional code conversion device as described above, the larger the number of conversion rule data,
It has the disadvantage that it takes a lot of time to find the conversion code. That is, the larger the number of conversion rule data, the longer it takes to convert one code, and if there is a large number of codes to be converted, a huge conversion processing time is required. There is.

【0004】本発明の目的は、上述のような従来のコー
ド変換装置の欠点を解消して、変換規則データの数およ
び変換すべきコードの数が多くても、短時間でコードの
変換処理を行うことができるコード変換装置を提供する
ことにある。
An object of the present invention is to solve the above-mentioned drawbacks of the conventional code conversion apparatus and to perform code conversion processing in a short time even if the number of conversion rule data and the number of codes to be converted are large. It is to provide a code conversion device capable of performing the above.

【0005】[0005]

【課題を解決するための手段】本発明のコード変換装置
は、被変換コードと第一変換コードとを1対とする複数
のコード対をランダムな順序に並べた第一変換規則デー
タを格納する第一変換規則テーブルと、第二変換コード
を前記被変換コードが前記第一変換規則テーブルに格納
されている番地と同じ番地に割当てた第二変換規則デー
タを格納する第二変換規則テーブルと、前記第一変換規
則データを前記第二変換規則データに変換する変換規則
テーブル処理部と、入力装置から前記被変換コードを入
力する被変換コード入力部と、前記被変換コード入力部
に入力した前記被変換コードを前記第二変換規則テーブ
ルの情報によって変換する変換処理部と、前記変換処理
部において変換したコードを出力装置に対して出力する
コード出力部とを備えている。
A code conversion device according to the present invention stores first conversion rule data in which a plurality of code pairs each including a code to be converted and a first conversion code are arranged in a random order. A first conversion rule table and a second conversion rule table storing second conversion rule data in which the converted code is assigned to the same address as the converted code is stored in the first conversion rule table, A conversion rule table processing unit for converting the first conversion rule data into the second conversion rule data, a converted code input unit for inputting the converted code from an input device, and the input to the converted code input unit. A conversion processing unit that converts the code to be converted based on the information in the second conversion rule table, and a code output unit that outputs the code converted by the conversion processing unit to an output device. Eteiru.

【0006】すなわち、本発明のコード変換装置は、被
変換コードと第一変換コードとを1対とする複数のコー
ド対をランダムな順序に並べた第一変換規則データを格
納する第一変換規則テーブルと、前記被変換コードが前
記第一変換規則テーブルに格納されている番地と同じ番
地に第二変換コードを割当てて第二変換規則データを作
成する変換規則テーブル処理部と、前記第二変換規則デ
ータを格納する第二変換規則テーブルと、入力装置から
前記被変換コードを入力する被変換コード入力部と、前
記被変換コード入力部に入力した前記被変換コードを前
記第二変換規則テーブルの情報によって変換する変換処
理部と、前記変換処理部において変換したコードを出力
装置に対して出力するコード出力部とを備えている。
That is, the code conversion apparatus of the present invention stores the first conversion rule data in which a plurality of code pairs, each of which includes the code to be converted and the first conversion code, are arranged in a random order. A table, a conversion rule table processing unit that creates a second conversion rule data by assigning a second conversion code to the same address where the code to be converted is stored in the first conversion rule table, and the second conversion A second conversion rule table for storing rule data, a converted code input section for inputting the converted code from an input device, and the converted code input to the converted code input section for the second conversion rule table. A conversion processing unit for converting according to information and a code output unit for outputting the code converted by the conversion processing unit to an output device.

【0007】[0007]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0008】図1は本発明の一実施例を示すブロック
図、図2は図1の実施例の第一変換規則テーブルの内容
を示す構成図、図3は図1の実施例の第二変換規則テー
ブルの内容を示す構成図、図4は図1の実施例の動作を
示すフローチャートである。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing the contents of a first conversion rule table of the embodiment of FIG. 1, and FIG. 3 is a second conversion of the embodiment of FIG. FIG. 4 is a block diagram showing the contents of the rule table, and FIG. 4 is a flow chart showing the operation of the embodiment of FIG.

【0009】図1において、コード変換装置1は、入力
装置2と出力装置3とを接続しており、入力装置2から
被変換コードを入力する被変換コード入力部11と、被
変換コード入力部11に入力した被変換コードを第二変
換規則テーブル16の情報によって変換する変換処理部
12と、変換処理部12において変換したコードを出力
装置3に対して出力するコード出力部13と、被変換コ
ードと第一変換コードとを1対とする複数のコード対を
ランダムな順序に並べた第一変換規則データを格納する
第一変換規則テーブル14と、第二変換コードを被変換
コードが第一変換規則テーブル14に格納されている番
地と同じ番地に割当てた第二変換規則データを格納する
第二変換規則テーブル16と、第一変換規則データを第
二変換規則データに変換する変換規則テーブル処理部1
5とを有している。
In FIG. 1, a code conversion device 1 connects an input device 2 and an output device 3, and a converted code input unit 11 for inputting a converted code from the input device 2 and a converted code input unit. A conversion processing unit 12 that converts the code to be converted input into 11 according to the information of the second conversion rule table 16; a code output unit 13 that outputs the code converted by the conversion processing unit 12 to the output device 3; A first conversion rule table 14 that stores first conversion rule data in which a plurality of code pairs each including a code and a first conversion code are arranged in a random order, and a second conversion code is a first code to be converted. The second conversion rule table 16 for storing the second conversion rule data assigned to the same address as the address stored in the conversion rule table 14, and the first conversion rule data for the second conversion rule data. Conversion conversion rule table processing unit 1
5 and.

【0010】入力装置2は、被変換コードを含む複数の
レコードを格納している装置であり、例えば、磁気ディ
スク装置や磁気テープ装置等である。出力装置3は、被
変換コードをコード変換装置1によって変換した変換後
のコード(変換コード)を格納しておく装置であり、や
はり、磁気ディスク装置や磁気テープ装置等である。
The input device 2 is a device that stores a plurality of records including a code to be converted, and is, for example, a magnetic disk device or a magnetic tape device. The output device 3 is a device for storing a converted code (conversion code) obtained by converting the code to be converted by the code conversion device 1, and is also a magnetic disk device, a magnetic tape device, or the like.

【0011】第一変換規則テーブル14は、図2に示す
ように、被変換コード23と第一の変換後のコード(第
一変換コード)24とを1対とする複数(被変換コード
の数と同数)のコード対をランダムな順序に並べた第一
変換規則データ21を変換規則情報として格納する記憶
装置である。
As shown in FIG. 2, the first conversion rule table 14 includes a plurality of converted codes 23 and a first converted code (first converted code) 24 (the number of converted codes). The storage device stores the first conversion rule data 21 in which code pairs of the same number) are arranged in a random order as the conversion rule information.

【0012】第二変換規則テーブル16は、図3に示す
ように、第二の変換後のコード(第二変換コード)22
を図2に示した被変換コード23が格納されている番地
と同じ番地に割当てた第二変換規則データを変換規則情
報として格納する記憶装置である。被変換コード23が
連続していない場合は、第二変換コード22が存在さし
ないことがある。
As shown in FIG. 3, the second conversion rule table 16 includes a second converted code (second conversion code) 22.
Is a storage device for storing, as conversion rule information, second conversion rule data assigned to the same address as the address in which the code to be converted 23 shown in FIG. 2 is stored. When the converted code 23 is not continuous, the second converted code 22 may not exist.

【0013】次に、上述のように構成したコード変換装
置の動作について、図4を参照して説明する。
Next, the operation of the code conversion device configured as described above will be described with reference to FIG.

【0014】変換規則テーブル処理部15は、第一変換
規則テーブル14の第一変換規則データ21を先頭の番
地(第一データ格納番地)に格納されているものから順
次に一つずつ取出し(ステップ31)、その第一変換コ
ードの値を第二変換規則テーブル16の同じ番号の番地
(第二データ格納番地)に格納して第二変換規則データ
とする(ステップ33)。この動作を第一変換規則デー
タ21の最後まで実行し(ステップ32)て第二変換規
則テーブル16を作成する。
The conversion rule table processing section 15 sequentially takes out the first conversion rule data 21 of the first conversion rule table 14 one by one from the one stored in the first address (first data storage address) (step 31), the value of the first conversion code is stored in the address of the same number (second data storage address) of the second conversion rule table 16 as the second conversion rule data (step 33). This operation is executed until the end of the first conversion rule data 21 (step 32) to create the second conversion rule table 16.

【0015】第二変換規則テーブル16を作成が完了す
ると、被変換コード入力部11は、被変換コードを含む
複数のレコードを格納している入力装置2からその先頭
レコードを入力し(ステップ34)、それを変換処理部
12に渡す。変換処理部12は、レコードの終りか否か
を判断(ステップ35)し、レコードがまだある場合
は、第二変換規則テーブル16を参照してそのレコード
に含まれている被変換コードの格納番地と同じ番地の第
二データ格納番地から第二変換コードを取出し、入力し
たレコードの被変換コードの位置にセットすることによ
ってコード変換を行う(ステップ36)。この変換した
レコードは、コード出力部13に渡され、コード出力部
13は、それを出力装置3に出力する(ステップ3
6)。
When the second conversion rule table 16 is completed, the converted code input section 11 inputs the first record from the input device 2 which stores a plurality of records including the converted code (step 34). , And passes it to the conversion processing unit 12. The conversion processing unit 12 determines whether or not the end of the record (step 35), and if there is a record, refers to the second conversion rule table 16 and stores the storage address of the code to be converted included in the record. The second conversion code is taken out from the second data storage address of the same address as and is set in the position of the converted code of the input record to perform the code conversion (step 36). This converted record is passed to the code output unit 13, and the code output unit 13 outputs it to the output device 3 (step 3).
6).

【0016】以上の動作を入力装置2から入力したレコ
ードが無くなるまで繰返えすことによってコード変換を
行う。
Code conversion is performed by repeating the above operation until there are no more records input from the input device 2.

【0017】なお、同じ変換規則で何回もコード変換を
行う場合は、第二変換規則テーブル16の作成は、一度
だけ行えばよい。
When the code conversion is performed many times with the same conversion rule, the second conversion rule table 16 needs to be created only once.

【0018】[0018]

【発明の効果】以上説明したように、本発明のコード変
換装置は、変換規則テーブル処理部によって第一変換規
則データを第二変換規則データに変換した第二変換規則
テーブルを作成しておき、その第二変換規則テーブルを
参照してコード変換を行うようにすることにより、被変
換コードと突合わせを行わずにコード変換を行ことが可
能になるという効果があり、従って変換規則データの数
および変換すべきコードの数が多くても、短時間でコー
ドの変換処理を行うことができるという効果があり、特
に、漢字コードのように、数千以上のコードがある場合
に有効である。
As described above, the code conversion apparatus of the present invention creates the second conversion rule table in which the first conversion rule data is converted into the second conversion rule data by the conversion rule table processing section. By performing the code conversion by referring to the second conversion rule table, there is an effect that the code conversion can be performed without matching with the code to be converted. Therefore, the number of conversion rule data Also, even if the number of codes to be converted is large, there is an effect that the code conversion processing can be performed in a short time, and it is particularly effective when there are thousands or more codes such as Kanji codes.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1の実施例の第一変換規則テーブルの内容を
示す構成図である。
FIG. 2 is a configuration diagram showing the contents of a first conversion rule table of the embodiment of FIG.

【図3】図1の実施例の第二変換規則テーブルの内容を
示す構成図である。
FIG. 3 is a configuration diagram showing the contents of a second conversion rule table of the embodiment of FIG.

【図4】図1の実施例の動作を示すフローチャートであ
る。
FIG. 4 is a flowchart showing the operation of the embodiment of FIG.

【符号の説明】[Explanation of symbols]

1 コード変換装置 2 入力装置 3 出力装置 11 被変換コード入力部 12 変換処理部 13 コード出力部 14 第一変換規則テーブル 15 変換規則テーブル処理部 16 第二変換規則テーブル 21 第一変換規則データ 22 第二変換コード 23 被変換コード 24 第一変換コード 31〜37 ステップ DESCRIPTION OF SYMBOLS 1 code conversion device 2 input device 3 output device 11 converted code input unit 12 conversion processing unit 13 code output unit 14 first conversion rule table 15 conversion rule table processing unit 16 second conversion rule table 21 first conversion rule data 22 Second conversion code 23 Converted code 24 First conversion code 31 to 37 steps

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 被変換コードと第一変換コードとを1対
とする複数のコード対をランダムな順序に並べた第一変
換規則データを格納する第一変換規則テーブルと、第二
変換コードを前記被変換コードが前記第一変換規則テー
ブルに格納されている番地と同じ番地に割当てた第二変
換規則データを格納する第二変換規則テーブルと、前記
第一変換規則データを前記第二変換規則データに変換す
る変換規則テーブル処理部と、入力装置から前記被変換
コードを入力する被変換コード入力部と、前記被変換コ
ード入力部に入力した前記被変換コードを前記第二変換
規則テーブルの情報によって変換する変換処理部と、前
記変換処理部において変換したコードを出力装置に対し
て出力するコード出力部とを備えることを特徴とするコ
ード変換装置。
1. A first conversion rule table that stores first conversion rule data in which a plurality of code pairs, each of which includes a code to be converted and a first conversion code, are arranged in a random order, and a second conversion code. A second conversion rule table that stores second conversion rule data in which the code to be converted is assigned to the same address as the address stored in the first conversion rule table, and the first conversion rule data is the second conversion rule. Information of the conversion rule table processing unit for converting into data, a converted code input unit for inputting the converted code from an input device, and the converted code input to the converted code input unit of the second conversion rule table A code conversion device comprising: a conversion processing unit for converting by the conversion processing unit; and a code output unit for outputting the code converted by the conversion processing unit to an output device.
【請求項2】 被変換コードと第一変換コードとを1対
とする複数のコード対をランダムな順序に並べた第一変
換規則データを格納する第一変換規則テーブルと、前記
被変換コードが前記第一変換規則テーブルに格納されて
いる番地と同じ番地に第二変換コードを割当てて第二変
換規則データを作成する変換規則テーブル処理部と、前
記第二変換規則データを格納する第二変換規則テーブル
と、入力装置から前記被変換コードを入力する被変換コ
ード入力部と、前記被変換コード入力部に入力した前記
被変換コードを前記第二変換規則テーブルの情報によっ
て変換する変換処理部と、前記変換処理部において変換
したコードを出力装置に対して出力するコード出力部と
を備えることを特徴とするコード変換装置。
2. A first conversion rule table that stores first conversion rule data in which a plurality of code pairs, each pair including a code to be converted and a first conversion code, are arranged in a random order, and the code to be converted. A conversion rule table processing unit that assigns a second conversion code to the same address as the address stored in the first conversion rule table to create second conversion rule data, and a second conversion that stores the second conversion rule data. A rule table, a converted code input section for inputting the converted code from an input device, and a conversion processing section for converting the converted code input to the converted code input section according to information of the second conversion rule table. And a code output unit that outputs the code converted by the conversion processing unit to an output device.
JP30139291A 1991-11-18 1991-11-18 Code converter Withdrawn JPH05143279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30139291A JPH05143279A (en) 1991-11-18 1991-11-18 Code converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30139291A JPH05143279A (en) 1991-11-18 1991-11-18 Code converter

Publications (1)

Publication Number Publication Date
JPH05143279A true JPH05143279A (en) 1993-06-11

Family

ID=17896322

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30139291A Withdrawn JPH05143279A (en) 1991-11-18 1991-11-18 Code converter

Country Status (1)

Country Link
JP (1) JPH05143279A (en)

Similar Documents

Publication Publication Date Title
KR950704736A (en) Rule generation apparatus and method
JPH0793186A (en) Reusing method for existing test program
JPH024026B2 (en)
JPH05143279A (en) Code converter
US3274563A (en) Sorter system
JPS6024631A (en) Registering and retrieving system of information
JPH04280295A (en) Character pattern processing device
JPS6261427A (en) Coding system
JP2757716B2 (en) Huffman code decoding circuit
JPH02306725A (en) Method and apparatus for code conversion
JPH05128154A (en) Database retrieval system
JPH03216730A (en) Electronic computer
JPH05108303A (en) Data compression system
JPH02208717A (en) Output equipment selecting system
JPS63286930A (en) Character string retrieving device
JPS6346537A (en) Method for deciding retrieving condition of retrieving processor
JPH0797311B2 (en) Data sorter
JPS63314974A (en) Decoding device
JPH05210723A (en) Command selecting system in interactive system
JPH04218858A (en) Operating rule table converter
JPH0388005A (en) Numerical controller
JPH0836587A (en) Device and method for displaying image data
JPH0531790B2 (en)
JPH02294729A (en) Sort processing system
JPH0667843A (en) Sorting processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990204