JPH0247736A - File management device - Google Patents

File management device

Info

Publication number
JPH0247736A
JPH0247736A JP63199225A JP19922588A JPH0247736A JP H0247736 A JPH0247736 A JP H0247736A JP 63199225 A JP63199225 A JP 63199225A JP 19922588 A JP19922588 A JP 19922588A JP H0247736 A JPH0247736 A JP H0247736A
Authority
JP
Japan
Prior art keywords
word
file
code
registration table
register 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.)
Pending
Application number
JP63199225A
Other languages
Japanese (ja)
Inventor
Hitoshi Iwai
岩井 等
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP63199225A priority Critical patent/JPH0247736A/en
Publication of JPH0247736A publication Critical patent/JPH0247736A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To improve the compression effect of an English text by registering a word and blanks leading this word in a word register table and receiving a word code from this word register table and converting it to a substitution code to store it in a file and restoring the substitution code in accordance with the word register table at the time of displaying the word again. CONSTITUTION:A word substituting means 1 takes out continuous blanks and a word following them from file data and receives the word code from a word register table 3 and combines it with taken-out blank number information to convert it to a substitution record. The word register table 3 and the substitution record are stored in a file 7. A word restoring means 2 reads the word register table 3 from the file 7. The substitution record is read out and is decomposed to the word code and the number of blanks. The word is taken out from the word register table 3 in accordance with the word code obtained by decomposi tion. A text is restored in a text file by obtained number of blanks and word.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ファイル管理装置のファイル容量圧縮手段に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file capacity compression means for a file management device.

〔概要〕〔overview〕

本発明は、同じ単語の繰返しおよび空白の多いデータを
収容するファイルの管理手段において、データに表れる
単語とその単語に先行する空白との群に固有のコードを
ファイルに記憶し、このコードに基づき単語および空白
を復元することにより、 ファイル容量の削減を図ることができるようにしたもの
である。
The present invention is a management means for a file containing data with many repetitions of the same word and many blank spaces, in which a code unique to a group of words appearing in the data and a blank preceding the word is stored in the file, and based on this code, By restoring words and spaces, it is possible to reduce file size.

〔従来の技術〕[Conventional technology]

従来、ファイルデータに表れる文字とこの文字の繰り返
された回数とを情報にして制御コードに変換させ、ファ
イルに格納する繰り返し文字を圧縮する方式が採用され
ていた。
Conventionally, a method has been adopted in which the characters appearing in file data and the number of times the characters are repeated are converted into a control code, and the repeated characters stored in the file are compressed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このような従来例をプログラムや英文テキストなどに適
用すると、空白以外は文字数の長い単語でも同じ文字が
繰り返されることが少なく、圧縮効果が薄かった。
When such a conventional example was applied to programs or English text, the same characters were rarely repeated even in words with a long number of characters except for spaces, and the compression effect was weak.

本発明はこのような欠点を除去するもので、プログラム
や英文テキストなどに適用しても圧縮効果が顕著な圧縮
手段を有するファイル管理装置を提供することを目的と
する。
The present invention aims to eliminate such drawbacks, and aims to provide a file management device having a compression means that has a remarkable compression effect even when applied to programs, English texts, and the like.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、ファイルを収納する記憶手段に結合され、入
出力装置およびプログラムと授受するデータに基づき上
記ファイルの内容の新規作成および修正を含む処理を行
うファイル制御手段を備えたファイル管理装置において
、連続した空白およびこの空白につづく単語である単語
群とこの単語群に一対一に対応した単語コードとを組に
して登録する単語登録表と、上記ファイル制御手段で処
理したデータから連続した空白およびこの空白につづく
単語を含む単語群を抽出し、上記単語登録表を参照して
この単語群に対応する単語コードを抽出し、この単語コ
ードを上記ファイルに格納する単語置換手段と、上記入
出力装置およびプログラムからの要求に応じ、上記ファ
イルから抽出した単語コードに対応する連続した空白お
よびこの空白につづく単語を含む単語群を上記単語登録
表に基づき復元する単語復元手段とを備えたことを特徴
とする。
The present invention provides a file management device that is coupled to a storage device that stores files, and includes a file control device that performs processing including new creation and modification of the contents of the file based on data exchanged with an input/output device and a program. A word registration table that registers consecutive blanks, a word group that is a word following this blank, and a word code that corresponds one-to-one to this word group; word replacement means for extracting a word group including the word following this blank, referring to the word registration table to extract a word code corresponding to this word group, and storing this word code in the file; and a word restoring means for restoring a word group including a continuous blank corresponding to a word code extracted from the file and a word following the blank based on the word registration table in response to a request from the device and the program. Features.

〔作用〕[Effect]

ファイルの新規作成や修正などを行うファイル制御手段
が処理したデータから単語の抽出を行い、該単語とこの
単語に先行する空白とを単語登録表に登録し、該単一吾
登録表により該単語を単語コードに置換して該単語コー
ドをファイルへ格納する。
A file control means that creates or modifies a file extracts a word from the processed data, registers the word and the blank space preceding this word in a word registration table, and uses the single word registration table to extract the word. is replaced with a word code and the word code is stored in a file.

単語登録表とファイルから単語およびこの単語に先行す
る空白の復元を行う。
Recovers a word and the spaces preceding this word from the word registration table and file.

〔実施例〕〔Example〕

以下、本発明の一実施例について図面を参照して説明す
る。第1図はこの実施例の構成を表す構成図である。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the structure of this embodiment.

この実施例は、第1図に示すように、テキスト形式のフ
ァイルを処理するプログラム5および入出力装置6と、
プログラム5を格納する記憶手段10と、ファイルに対
して新規作成や修正などの処理を行うファイル制御手段
4と、単語登録表3およびファイル7を格納する記憶手
段15と、ファイル制御手段4が処理したファイルデー
タから単語を抽出し、抽出した単語を単語登録表3に登
録し、単語登録表3から単語コードに置換し、単語コー
ドをファイル7へ格納する単語置換手段1と、単語登録
表3とファイル7とから単語の復元を行う単語復元手段
2とを備える。すなわち、この実施例は、ファイル7を
収納する記憶手段15に結合され、入出力装置6および
プログラム5と授受するデータに基づきファイル7の内
容の新規作成および修正を含む処理を行うファイル制御
手段4と、連続した空白およびこの空白につづく単語で
ある単語群とこの単語群に一対一に対応した単語コード
とを組にして登録する単語登録表3と、ファイル制御手
段4で処理したデータから連続した空白およびこの空白
につづく単語を含む単語群を抽出し、単語登録表3を参
照してこの単語群に対応する単語コードを′抽出し、こ
の単語コードをファイル7に格納する単語置換手段1と
、入出力装置6およびプログラム5からの要求に応じ、
ファイル7から抽出した単語コードに対応する連続した
空白およびこの空白につづく単語を含む単語群を単語登
録表3に基づき復元する単語置換手段2とを備える。
As shown in FIG. 1, this embodiment includes a program 5 that processes a text format file, an input/output device 6,
The storage means 10 that stores the program 5, the file control means 4 that performs processing such as new creation and modification on files, the storage means 15 that stores the word registration table 3 and the file 7, and the file control means 4 perform processing. a word replacement means 1 for extracting words from file data, registering the extracted words in a word registration table 3, replacing them with word codes from the word registration table 3, and storing the word codes in a file 7; and a word restoration means 2 for restoring words from the file 7 and the file 7. That is, in this embodiment, the file control means 4 is coupled to the storage means 15 that stores the file 7, and performs processing including new creation and modification of the contents of the file 7 based on data exchanged with the input/output device 6 and the program 5. , a word registration table 3 that registers consecutive blanks, a word group that is a word following this blank, and a word code that corresponds one-to-one to this word group, and a continuous blank from the data processed by the file control means 4. Word replacement means 1 extracts a word group including a blank space and a word following this blank, refers to a word registration table 3 to extract a word code corresponding to this word group, and stores this word code in a file 7. and in response to requests from the input/output device 6 and the program 5,
A word replacement means 2 is provided for restoring a word group including a continuous blank corresponding to a word code extracted from a file 7 and a word following the blank based on a word registration table 3.

次に、この実施例の動作を第1図ないし第6図を参照し
て説明する。
Next, the operation of this embodiment will be explained with reference to FIGS. 1 to 6.

はじめに、ファイルの格納処理について述べる。First, file storage processing will be described.

ファイル制御手段4はプログラム5または入出力装置6
からの要求で発生したファイルデータを弓き取り、単語
置換手段1を起動する。単語置換手段1が起動されると
、ファイルデータから連続した空白とそれに続く単語と
を取り出す(ステップ521)。取り出された単語は単
語登録表3に置かれる(ステップ522)。単語登録表
3は、第4図に示すように、単語とその単語に一意に割
り当てられた単語コードとを組み合わせて構成され、登
録は同じ単語に対して重複して行わない。登録された単
語に対して割り当てられた単語コードを単語登録表3か
ら取り出すくステップ523)。取り出した単語コード
とステップS21で取り出された空白の文字数とから第
5図に示す置換レコードを生成する(ステップ524)
。生成された置換レコードはファイル7へ格納される(
ステップ525)。
The file control means 4 is a program 5 or an input/output device 6
The file data generated in response to the request from is captured and the word replacement means 1 is activated. When the word replacement means 1 is activated, consecutive blank spaces and the following words are extracted from the file data (step 521). The retrieved words are placed in word registration table 3 (step 522). As shown in FIG. 4, the word registration table 3 is constructed by combining words and word codes uniquely assigned to the words, and the same word is not registered twice. The word code assigned to the registered word is extracted from the word registration table 3 (step 523). A replacement record shown in FIG. 5 is generated from the extracted word code and the number of blank characters extracted in step S21 (step 524).
. The generated replacement record is stored in file 7 (
Step 525).

そして、単語登録表3はファイル7へ格納される(ステ
ップ526)。
Then, word registration table 3 is stored in file 7 (step 526).

次に、格納されたファイルの復元処理について説明する
。ファイル制御手段4はプログラム5または入出力装置
6からの要求で単語復元手段2を起動する。単語復元手
段2は起動されると、ファイル7から単語登録表3を読
みとる(ステップ531)。次に、ファイル7から置換
レコードを読みとり、第5図に示す置換レコードを取り
出すくステップ532)。次に、置換レコードを単語コ
ードと空白数とに分解する(ステップ533)。分解さ
れて得られた単語コードに基づき単語登録表3から単語
コードに対応する単語を取り出すくステップ534)。
Next, the restoration process of stored files will be explained. The file control means 4 activates the word restoration means 2 in response to a request from the program 5 or the input/output device 6. When activated, the word restoration means 2 reads the word registration table 3 from the file 7 (step 531). Next, a replacement record is read from the file 7 and the replacement record shown in FIG. 5 is retrieved (step 532). Next, the replacement record is broken down into word codes and number of spaces (step 533). Based on the word code obtained by decomposition, a word corresponding to the word code is extracted from the word registration table 3 (step 534).

ステップS33で得られた空白数とステップS34で得
られた単語とから第6図に示す復元レコードを生成する
(ステップ535)。生成された復元レコードは復元レ
コードを要求したファイル制御手段4へ渡す(ステップ
536)。以上の処理を行って格納されたファイルを復
元することができる。
A restored record shown in FIG. 6 is generated from the number of spaces obtained in step S33 and the words obtained in step S34 (step 535). The generated restoration record is passed to the file control means 4 that requested the restoration record (step 536). By performing the above processing, the stored file can be restored.

〔発明の効果〕〔Effect of the invention〕

本発明は、以上説明したように、ファイルの中に表れた
単語とその単語の前にある空白とを固有のコードに変換
できるので、記憶装置に格納するファイル容量を削減で
きる効果がある。この効果は扱うファイルの容量に比例
して顕著に現れる。
As explained above, the present invention has the effect of reducing the file capacity stored in a storage device, since words appearing in a file and spaces before the words can be converted into unique codes. This effect becomes more noticeable in proportion to the size of the files being handled.

また、同じ単言吾を繰り返し、空白の多いソースプログ
ラムや英文テキストなどに適用すれば、その効果は顕著
である。
Moreover, if you repeat the same word and apply it to a source program or English text with many spaces, the effect will be noticeable.

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

第1図は本発明実施例の構成を示すブロック構成図。 第2図は単語置換手段の処理を示す流れ図。 第3図は単語復元手段の処理を示す流れ図。 第4図は単語登録表の内容説明図。 第5図は置換レコードの内容説明図。 第6図は復元レコードの内容説明図。 1・・・単語置換手段、2・・・単語復元手段、3・・
・単語登録表、4・・・ファイル制御手段、5・・・プ
ログラム、6・・・入出力装置、7・・・ファイノペ1
0.15・・・記憶手段。
FIG. 1 is a block configuration diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a flowchart showing the processing of the word replacement means. FIG. 3 is a flowchart showing the processing of the word restoring means. FIG. 4 is an explanatory diagram of the contents of the word registration table. FIG. 5 is an explanatory diagram of the contents of a replacement record. FIG. 6 is an explanatory diagram of the contents of the restoration record. 1... Word replacement means, 2... Word restoration means, 3...
・Word registration table, 4...File control means, 5...Program, 6...I/O device, 7...Finope 1
0.15...Storage means.

Claims (1)

【特許請求の範囲】 1、ファイルを収納する記憶手段に結合され、入出力装
置およびプログラムと授受するデータに基づき上記ファ
イルの内容の新規作成および修正を含む処理を行うファ
イル制御手段を備えたファイル管理装置において、 連続した空白およびこの空白につづく単語である単語群
とこの単語群に一対一に対応した単語コードとを組にし
て登録する単語登録表と、 上記ファイル制御手段で処理したデータから連続した空
白およびこの空白につづく単語を含む単語群を抽出し、
上記単語登録表を参照してこの単語群に対応する単語コ
ードを抽出し、この単語コードを上記ファイルに格納す
る単語置換手段と、上記入出力装置およびプログラムか
らの要求に応じ、上記ファイルから抽出した単語コード
に対応する連続した空白およびこの空白につづく単語を
含む単語群を上記単語登録表に基づき復元する単語復元
手段と を備えたことを特徴とするファイル管理装置。
[Scope of Claims] 1. A file that is coupled to a storage means that stores files and that is equipped with a file control means that performs processing including new creation and modification of the contents of the file based on data exchanged with an input/output device and a program. In the management device, there is a word registration table that registers consecutive blanks, word groups that are words following these blanks, and word codes that correspond one-to-one to these word groups, and data processed by the above file control means. Extracts word groups that include consecutive spaces and words that follow these spaces,
word replacement means for extracting a word code corresponding to this word group by referring to the word registration table and storing this word code in the above file; and extracting it from the above file in response to a request from the above input/output device and the program. A file management device comprising a word restoring means for restoring a word group including a continuous blank corresponding to a word code and a word following the blank based on the word registration table.
JP63199225A 1988-08-09 1988-08-09 File management device Pending JPH0247736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63199225A JPH0247736A (en) 1988-08-09 1988-08-09 File management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63199225A JPH0247736A (en) 1988-08-09 1988-08-09 File management device

Publications (1)

Publication Number Publication Date
JPH0247736A true JPH0247736A (en) 1990-02-16

Family

ID=16404227

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63199225A Pending JPH0247736A (en) 1988-08-09 1988-08-09 File management device

Country Status (1)

Country Link
JP (1) JPH0247736A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0546357A (en) * 1991-07-15 1993-02-26 Sharp Corp Text data compression and decompression methods

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0546357A (en) * 1991-07-15 1993-02-26 Sharp Corp Text data compression and decompression methods

Similar Documents

Publication Publication Date Title
CN111291235A (en) Metadata storage method and device based on time sequence database
JPH0247736A (en) File management device
JP2518421B2 (en) Document information storage device
JPS61156473A (en) Document writing system
JPS6260027A (en) Specification system for discrimination information
JPH0264770A (en) Data compression-restoring system with dictionary
JP2770309B2 (en) Output message editing method
JPS5965347A (en) Japanese sentence forming device
JPH04241618A (en) Slip preparing device
JPS62140136A (en) data storage device
JPS63296147A (en) Data compression processing system
JPS63202476A (en) document output device
JPH03225448A (en) Converting, outputting, and updating method for information in file
JPS63176049A (en) Data compression system
JP2823292B2 (en) Tabulation device for data collection system
JPH0281103A (en) How to display NC machining program
JPH0252078A (en) Apparatus for applying postal code number
JPH03201061A (en) Conversion system for document processing control code
JPS62118432A (en) Data transferring system for computer system
JPH02208717A (en) Output equipment selecting system
JPH0325667A (en) Japanese word processing system
JPS5882763A (en) Print controller
JPH0476741A (en) Recording system for error information
JPH07334396A (en) Disk map preparing system
JPS62113227A (en) Key input method