JPH04256128A - Jis code file producing device - Google Patents

Jis code file producing device

Info

Publication number
JPH04256128A
JPH04256128A JP3017236A JP1723691A JPH04256128A JP H04256128 A JPH04256128 A JP H04256128A JP 3017236 A JP3017236 A JP 3017236A JP 1723691 A JP1723691 A JP 1723691A JP H04256128 A JPH04256128 A JP H04256128A
Authority
JP
Japan
Prior art keywords
kanji
code
ank
jis
file
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
JP3017236A
Other languages
Japanese (ja)
Inventor
Masanobu Tanaka
田中 雅信
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Software Hokuriku 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 NEC Software Hokuriku Ltd filed Critical NEC Software Hokuriku Ltd
Priority to JP3017236A priority Critical patent/JPH04256128A/en
Publication of JPH04256128A publication Critical patent/JPH04256128A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To prevent the conversion and operation mistakes by reducing the burden caused by the change of the file contents, etc. CONSTITUTION:An input file 1 and an output file 2 include the KANJI (Chinese characters) using the shift JIS codes. An analyzing means 52 decides whether the reed date is coincident with an ANK, the KANJI or a restoration code. An ANK processing means 54 processes the read data if it is coincident with the ANK, and a KANJI processing means 55 processes the reed date when it is coincident with the KANJI. Then a restoration code processing means 56 processes the reed data when it is coincident with the restoration code respectively. An ANK/KANJI designation means 58 decides the heed or the end of a KANJI string, and a conversion means 59 converts a shift JIS code into a JIS code.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はJISコードファイル作
成装置、特に、シフトJISコードからJISコードへ
変換してファイルを作成するJISコードファイル作成
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a JIS code file creation device, and more particularly to a JIS code file creation device that creates a file by converting shift JIS code into JIS code.

【0002】0002

【従来の技術】MS−DOSを用いたシステムにおいて
漢字を含むファイルを作成すると、漢字はシフトJIS
コードが使用される。このシステムにおいてデバッグ時
に必要なデータとしてJISコードを使用した漢字を含
むファイルを作成する場合、漢字コード表を参照してJ
ISコードに変換し、ファイル変換ツールを用いてファ
イルの内容を変更するものとなっていた。
[Prior Art] When a file containing kanji is created in a system using MS-DOS, the kanji are converted to Shift JIS.
code is used. When creating a file containing kanji using JIS code as data necessary for debugging in this system, refer to the kanji code table and
It was supposed to be converted to IS code and the contents of the file changed using a file conversion tool.

【0003】0003

【発明が解決しようとする課題】上述した従来の技術は
、全ての漢字についてJISコードに変換し、ファイル
の内容を変更しなければならないので、多大な時間及び
労力が必要となる欠点がある。
The above-mentioned conventional technology has the disadvantage that it requires a lot of time and effort because it requires converting all kanji characters into JIS codes and changing the contents of the files.

【0004】本発明は、エディタ等でシフトJISコー
ドによるファイルを作成しておき、シフトJISコード
からJISコードへ変換してファイルを作成することを
目的とする。
An object of the present invention is to create a file in shift JIS code using an editor or the like, and then convert the shift JIS code to JIS code to create the file.

【0005】[0005]

【課題を解決するための手段】本発明のJISコードフ
ァイル作成装置は、(A)シフトJISコードを使用し
た漢字を含む入力ファイルと、(B)JISコードを使
用した漢字を含む出力ファイルと、(C)入力ファイル
からデータを読込む入力手段と、(D)読込んだデータ
がANKか漢字か復改コードかを判断する解析手段と、
(E)読込んだデータがANKの時に処理を行うANK
処理手段と、(F)読込んだデータが漢字の時に処理を
行う漢字処理手段と、(G)読込んだデータが復改コー
ドの時に処理を行う復改コード処理手段と、(H)出力
ファイルへデータを書出す出力手段と、(I)漢字文字
列の先頭または最後を判断する為に使用されるANK・
漢字指定手段と、(J)シフトJISコードからJIS
コードへ変換する変換手段と、を含んで構成される。
[Means for Solving the Problems] A JIS code file creation device of the present invention includes (A) an input file containing kanji characters using shift JIS codes; (B) an output file containing kanji characters using JIS codes; (C) an input means for reading data from an input file; (D) an analysis means for determining whether the read data is ANK, Kanji, or a revised code;
(E) ANK to be processed when the read data is ANK
(F) a kanji processing means that performs processing when the read data is a kanji character; (G) a return code processing means that performs processing when the read data is a return code; and (H) output. An output means for writing data to a file, and (I) ANK/ANK used to determine the beginning or end of a kanji character string.
Kanji designation means and JIS from (J) shift JIS code
and conversion means for converting into code.

【0006】[0006]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の一実施例を示すブロック図、図2は
本発明の一実施例における動作を説明するフローチャー
トである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 is a flowchart explaining the operation in one embodiment of the present invention.

【0007】入力ファイル1は、漢字がシフトJISコ
ードで表わされており、1行の終りには復改コードが挿
入されデータの圧縮が行われている。また、出力ファイ
ル3は、漢字がJISコードで表わされており、漢字文
字列の先頭には漢字INコードが、漢字文字列の最後に
は漢字OUTコードが挿入されている。そしてレコード
長があらかじめ決められており、1行の終りにはレコー
ド長となるまで0が設定されている。
[0007] In the input file 1, kanji characters are represented by shift JIS codes, and a return code is inserted at the end of each line to compress the data. Furthermore, in the output file 3, Kanji characters are expressed in JIS codes, and a Kanji IN code is inserted at the beginning of the Kanji character string, and a Kanji OUT code is inserted at the end of the Kanji character string. The record length is determined in advance, and 0 is set at the end of each line until the record length is reached.

【0008】ここで、図2により動作を説明する。The operation will now be explained with reference to FIG.

【0009】1、ANK・漢字指定手段58としてフラ
グを設け、初期値として0を設定する(ステップ101
)このフラグが0の時直前に処理した文字がANK、1
の時直前に処理した文字が漢字であったことを示す。
1. A flag is provided as the ANK/kanji designation means 58, and 0 is set as the initial value (step 101
) When this flag is 0, the character processed immediately before is ANK, 1
Indicates that the most recently processed character was a kanji.

【0010】2、入力手段51は、入力ファイル1から
データを読込む(ステップ102)3、入力ファイル1
の終りならば処理を終了する(ステップ103)4、解
析手段52により、読込んだデータがANKなら処理部
53のANK処理手段54に、漢字なら漢字処理手段5
5に、復改コードなら復改コード処理手段56にそれぞ
れ進む(ステップ104)5、ANK・漢字指定手段5
8のフラグが1の時、漢字文字列の最後なので、ステッ
プ106及びステップ107を行う(ステップ105)
6、フラグを0に設定する(ステップ106)7、出力
手段57を用いて、出力ファイル3に漢字OUTコード
を書出す(ステップ107)8、読込んだデータを出力
ファイル3に書出す(ステップ108)9、フラグが0
の時漢字文字列の先頭なので、ステップ110及びステ
ップ111を行う(ステップ109)10、フラグを1
に設定する(ステップ110)11、出力ファイル3に
漢字INコードを書出す(ステップ111)12、変換
手段59を用いて、シフトJISコードをJISコード
に変換する(ステップ112)13、出力ファイル3に
JISコードを書出す(ステップ113)14、1行の
長さがレコード長となるまで0を出力ファイル3に書出
す(ステップ114)
2. Input means 51 reads data from input file 1 (step 102) 3. Input file 1
If the read data is ANK, the processing is terminated (step 103) 4. If the read data is ANK, it is sent to ANK processing means 54 of processing section 53, and if it is Kanji, it is sent to Kanji processing means 5.
5. If the code is a return code, the process proceeds to the return code processing means 56 (step 104). 5. ANK/kanji designation means 5.
When flag 8 is 1, it is the end of the kanji character string, so step 106 and step 107 are performed (step 105).
6. Set the flag to 0 (step 106) 7. Write the kanji OUT code to the output file 3 using the output means 57 (step 107) 8. Write the read data to the output file 3 (step 108) 9, flag is 0
Since it is the beginning of the kanji character string, step 110 and step 111 are performed (step 109) 10, and the flag is set to 1.
(Step 110) 11. Write the kanji IN code to the output file 3 (Step 111) 12. Convert the shift JIS code to JIS code using the conversion means 59 (Step 112) 13. Output file 3 Write the JIS code to (step 113) 14, write 0 to output file 3 until the length of one line becomes the record length (step 114)

【発明の効果】以上説明したように本発明は、MS−D
OSを用いたシステムにおいてエディタ等で入力ファイ
ルを作成しておくため、デバッグ時に必要なJSIコー
ドを使用した漢字を含むファイルを作成できるので、漢
字コード表によるJISコードへの変換,ファイル変換
ツールによるファイル内容の変更等による負担を軽減し
、変換ミス,ファイル変換ツールの操作ミス等による誤
りを防止する事ができる効果がある。
[Effects of the Invention] As explained above, the present invention provides MS-D
In a system using an OS, input files are created using an editor, etc., so files containing kanji using JSI codes necessary for debugging can be created, so conversion to JIS codes using kanji code tables and file conversion tools This has the effect of reducing the burden caused by changes to file contents, etc., and preventing errors caused by conversion mistakes, mistakes in operating the file conversion tool, etc.

【0011】また、漢字INコード、漢字OUTコード
や、レコード長等といったJISコードによるファイル
の特長を考慮する事なく、JISコードによるファイル
の作成が可能となる。
[0011]Furthermore, it is possible to create a file in JIS code without considering the characteristics of a file in JIS code, such as Kanji IN code, Kanji OUT code, record length, etc.

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

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

【図2】図1の動作を説明するためのフローチャートで
ある。
FIG. 2 is a flowchart for explaining the operation of FIG. 1;

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

1    入力ファイル 2    出力ファイル 52    解析手段 54    ANK処理手段 55    漢字処理手段 56    復改コード処理手段 58    ANK・漢字指定手段 59    変換手段 1 Input file 2 Output file 52 Analysis means 54 ANK processing means 55 Kanji processing means 56 Reversion code processing means 58      ANK/Kanji specification means 59 Conversion means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】(A)シフトJISコードを使用した漢字
を含む入力ファイルと、(B)JISコードを使用した
漢字を含む出力ファイルと、(C)入力ファイルからデ
ータを読込む入力手段と、(D)読込んだデータがAN
Kか漢字か復改コードかを判断する解析手段と、(E)
読込んだデータがANKの時に処理を行うANK処理手
段と、(F)読込んだデータが漢字の時に処理を行う漢
字処理手段と、(G)読込んだデータが復改コードの時
に処理を行う復改コード処理手段と、(H)出力ファイ
ルへデータを書出す出力手段と、(I)漢字文字列の先
頭または最後を判断する為に使用されるANK・漢字指
定手段と、(J)シフトJISコードからJISコード
へ変換する変換手段と、を含むことを特徴とするJIS
コードファイル作成装置。
Claim 1: (A) an input file containing kanji characters using shift JIS codes; (B) an output file containing kanji characters using JIS codes; and (C) input means for reading data from the input files. (D) The read data is AN
(E)
ANK processing means that processes when the read data is ANK, (F) Kanji processing means that processes when the read data is a kanji character, and (G) a kanji processing means that processes when the read data is a reformed code. (H) output means for writing data to an output file; (I) ANK/kanji designation means used to determine the beginning or end of a kanji character string; (J) A JIS system comprising: converting means for converting from a shift JIS code to a JIS code.
Code file creation device.
JP3017236A 1991-02-08 1991-02-08 Jis code file producing device Pending JPH04256128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3017236A JPH04256128A (en) 1991-02-08 1991-02-08 Jis code file producing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3017236A JPH04256128A (en) 1991-02-08 1991-02-08 Jis code file producing device

Publications (1)

Publication Number Publication Date
JPH04256128A true JPH04256128A (en) 1992-09-10

Family

ID=11938315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3017236A Pending JPH04256128A (en) 1991-02-08 1991-02-08 Jis code file producing device

Country Status (1)

Country Link
JP (1) JPH04256128A (en)

Similar Documents

Publication Publication Date Title
CN108595389B (en) Method for converting Word document into txt plain text document
US20020026632A1 (en) Universal computer code generator
CN112084748A (en) Text comparison method
JPS60164863A (en) Word processor
JPH04256128A (en) Jis code file producing device
Watson et al. NIST Special Database 29: Plain and Rolled Images from Paired Fingerprint Cards
JPS60186904A (en) Program input system
JPS6115234A (en) Analysis system for processing correlation of element item
JPH0451871B2 (en)
JPH1063492A (en) Software specification generator
JPH06314274A (en) Document preparing device and document information input method
JPH0540638A (en) Vocabulary analyzing/editing system
JPH11203279A (en) Kana-kanji conversion device, kana-kanji conversion method, and storage medium
JPS63226730A (en) Automatic program forming method
KR860002030B1 (en) Hangul(korean character)combination device of line printer
JPH08179938A (en) Device and method for generating automatic specification
CN1039492A (en) Chinese document creation device
JPH03110628A (en) Source program generating device
JPH0554177A (en) Character recognition device
JPH02211523A (en) Text-to-speech synthesis method
JPS5999538A (en) Conversion processing method of document data
JPS63156275A (en) Automatic kana and katakana name dictionary adding system
JPS629462A (en) Document editing system
JPS63278115A (en) Japanese language input processing method
JPH0344761A (en) Document processor