JPS6128148A - Text data storage device - Google Patents

Text data storage device

Info

Publication number
JPS6128148A
JPS6128148A JP14989584A JP14989584A JPS6128148A JP S6128148 A JPS6128148 A JP S6128148A JP 14989584 A JP14989584 A JP 14989584A JP 14989584 A JP14989584 A JP 14989584A JP S6128148 A JPS6128148 A JP S6128148A
Authority
JP
Japan
Prior art keywords
data
text
pointer
area
storage device
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
JP14989584A
Other languages
Japanese (ja)
Inventor
Koichi Katsuya
勝谷 光一
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 JP14989584A priority Critical patent/JPS6128148A/en
Publication of JPS6128148A publication Critical patent/JPS6128148A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To attain editing processing in a short time by rewriting only the order of a pointer in data insertion and adding data to delete only the corresponding pointer in case of data deletion. CONSTITUTION:In inserting data C between data A and B, a poiner PC of the inserted data C inputted from a keyboard 4 is set to a register 2-1 in a processor 2. On the other hand, the data C is written at the last of data on a memory 2-2. The pointer PC is written between pointers PA, PB in the memory 2-2 and edited content is displayed on a display device 4. In deleting the data B between the data A and H, the pointer PB in the memory 2-2 is set to the register 2-1. Succeedingly, a pointer PH is written at the location of the pointer PB in the memory 2-2 and the content of edition is displayed on the device 4.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、データ処理装置および補助記憶装置を有し、
テキストデータ(以後、単にデータと称する)を編集・
格納するテキストデータ記憶装置に関する。
Detailed Description of the Invention (Industrial Application Field) The present invention includes a data processing device and an auxiliary storage device,
Edit and edit text data (hereinafter simply referred to as data)
The present invention relates to a text data storage device for storing text data.

(従来の技術) 従来、この種のテキストデータ記憶装置のアクセス方法
においては、各データの後ろに読み出し順位情報となる
ポインタを附加し、第1番目のデータから第2番目のデ
ータへ七H4に読み出していくチェーン構造になってい
た。
(Prior Art) Conventionally, in the access method of this type of text data storage device, a pointer serving as read order information is added to the end of each data, and the data is accessed from the first data to the second data in 7H4. It had a chain structure that was read out.

(発明が解決しようとする問題点) 従って、データ編集で挿入あるいは削除があると、挿入
あるいは削除される個所の前後のポインタの内容をすべ
て書き直さなければならず、編集処理に時間がかかると
いう欠点があった。
(Problem to be Solved by the Invention) Therefore, when there is an insertion or deletion during data editing, all the contents of the pointers before and after the inserted or deleted part must be rewritten, and the editing process takes time. was there.

(問題点を解決するだめの手段) 本発明は、補助記憶装置内にテキスト領域およびテキス
ト索引領域をあらかじめ設けておき、補助記憶装置にデ
ータを格納する際に、テキスト領域にはデータのみを、
テキスト索引領域にはデータの格納番地情報(以後、ポ
インタと称す)のみをそれぞれ格納し、データの挿入ま
たは削除による編集処理が終了した後、その編集結果に
従ってメモリ上でポインタを並べ変え、その結果を補助
記憶装置内のテキスト索引領域に書き込み、一方、テキ
スト領域に既に記録されているデータの最後に挿入した
データを順に追加するようにしたものである。
(Means for solving the problem) The present invention provides a text area and a text index area in the auxiliary storage device in advance, and when storing data in the auxiliary storage device, only the data is stored in the text area.
Only data storage address information (hereinafter referred to as pointers) is stored in the text index area, and after the editing process by inserting or deleting data is completed, the pointers are rearranged in memory according to the editing results, and the result is is written in the text index area in the auxiliary storage device, and the data inserted at the end of the data already recorded in the text area is sequentially added.

すなわち本発明によれば、データ処理装置に補助記憶装
置として接続されているディスク装置にデータを格納し
編集する場合において、テキストとして意味を持つデー
タは順次テキスト領域に格納し、そのデータのポインタ
は本来テキストとして意味をもつ順序に並べてテキスト
索引領域に格納し、データの編集処理を行なう前にあら
かじめテキスト索引領域のポインタをディスク装置から
データ処理装置に取シ込んでおき、あるデータの間に新
データが挿入されたときは、新データをディスク装置の
テキスト領域の次のデータ格納領域に格納するとともに
対応するポインタはデータ処理装置内のデータポインタ
情報の中の該当する位置に位置づけ、あるデータが削除
されたときは、それに該当するデータ処理装置内のデー
タのポインタを削除して、データの順序性を保ち、編集
処理が終了した時点でデータ処理装置内のデータのポイ
ンタを一括してディスク装置のテキスト索引領域に再格
納するテキストデータ記憶装置が得られる。
That is, according to the present invention, when data is stored and edited in a disk device connected to a data processing device as an auxiliary storage device, data having meaning as text is sequentially stored in a text area, and the pointer of the data is The text is stored in the text index area in the order that it originally has meaning, and the pointer of the text index area is transferred from the disk device to the data processing device before editing the data. When data is inserted, the new data is stored in the data storage area next to the text area of the disk device, and the corresponding pointer is positioned at the corresponding position in the data pointer information in the data processing device. When the data is deleted, the data pointers in the corresponding data processing device are deleted to maintain the order of the data, and when the editing process is completed, the data pointers in the data processing device are all deleted from the disk device. A text data storage device is obtained for restoring the data in the text index area of the text index area.

(発明の実施例) 次に、本発明の一実施例を示す図面を参照して本発明の
詳細な説明する。
(Embodiments of the Invention) Next, the present invention will be described in detail with reference to drawings showing one embodiment of the present invention.

第1図において、補助記憶装置1(たとえば、磁気ディ
スク装置)内にデータを格納するために、補助記憶装置
1内のエリアにはテキスト編集プログラムで自動的に、
任意の大きさのテキスト索引領域1−1およびテキスト
領域1−2がそれぞれ確保される。キーボード4からデ
ータを入力すると、そのデータが表示装置3に表示され
、処理装置2内のメモリ2−2に一旦蓄えられてポイン
タとデータとの対応相が処理される。その稜、補助記憶
装置1内のテキスト索引領域1−1には当該データのポ
インタが、テキスト領域1−2には当該データが順次格
納される。
In FIG. 1, in order to store data in an auxiliary storage device 1 (for example, a magnetic disk device), an area in the auxiliary storage device 1 is automatically filled with a text editing program.
A text index area 1-1 and a text area 1-2 of arbitrary sizes are respectively secured. When data is input from the keyboard 4, the data is displayed on the display device 3, and is temporarily stored in the memory 2-2 in the processing device 2, where the correspondence between the pointer and the data is processed. At that edge, a pointer to the data is sequentially stored in the text index area 1-1 in the auxiliary storage device 1, and the data is sequentially stored in the text area 1-2.

データの編集(たとえば、データの挿入または削除)を
行なうときは、まず、テキスト索引領域1−1からポイ
ンタがレジスタ2−1に読み出され、当該ポインタで指
定されたテキスト領域1−2のデータがアクセスされて
、メモリ2−2に格納されるとともに表示装置3に表示
される。
When editing data (for example, inserting or deleting data), first, a pointer is read from the text index area 1-1 to the register 2-1, and the data in the text area 1-2 specified by the pointer is read out. is accessed and stored in the memory 2-2 and displayed on the display device 3.

第2図は、データを挿入する場合を図式化したものであ
る。既に補助記憶装置1に記録されているデータA、デ
ータB、およびデータHがあシ、データAとデータBの
間に新しくデータCt−挿入しようとする場合の例が示
されている。第2図に示すPA 、FBおよびPlfは
データA、データB。
FIG. 2 is a diagram illustrating the case of inserting data. An example is shown in which data A, data B, and data H already recorded in the auxiliary storage device 1 are deleted, and new data Ct- is to be inserted between data A and data B. PA, FB and Plf shown in FIG. 2 are data A and data B.

およびデータ11の格納番地を示すポインタである。and a pointer indicating the storage address of data 11.

すなわち、データの挿入の際には、ポインタの順序のみ
が書換えられ、データCは単にっけ加えられるのみであ
る。
That is, when inserting data, only the order of pointers is rewritten, and data C is simply added.

第3図は、データを削除する場合全図式化したものであ
る。既に記録されてい、るデータA、データB、および
データHから、データBf、削除する場合の一実施例を
示す。第3図に示すPA 、 PEおよびPHはデータ
A、データB、およびデータHの格納番地を示すポイン
タである。すなわち、データの削除の際には、該当する
ポインタのみが削除され、データBはテキスト領域にそ
の寸ま残る。
FIG. 3 shows the entire diagram when deleting data. An example will be shown in which data Bf is deleted from data A, data B, and data H that have already been recorded. PA, PE and PH shown in FIG. 3 are pointers indicating the storage addresses of data A, data B and data H. That is, when deleting data, only the corresponding pointer is deleted, and data B remains in its original size in the text area.

第4図は、ポインタの構成の一実施例を示したものであ
る。テギスト格納番地41にはデータが格納されている
補助記憶装置1のセクタアドレスが記入され、テキスト
開始位置42には、データの開始番地(たとえば、セク
タ内のデータ開始位置)が記入され、またテキスト長4
3には、1テータの長さくたとえば、80バイト長)が
それぞれ記入されている。
FIG. 4 shows an example of the structure of a pointer. The sector address of the auxiliary storage device 1 where data is stored is written in the text storage address 41, the start address of the data (for example, the data start position within the sector) is written in the text start position 42, and the text Long 4
3, the length of one data (for example, 80 bytes) is written.

次に、第1図、第5図を参照して以上のよりに構成され
たデータ記憶装置の動作を詳細に説明する。テキストを
新しく作成するときは、表示装置3を見ながらキーボー
ド4からデータを入力する(ステップ65)。入力され
たデータは、処理装置2内のメモリ2−2に一旦記憶さ
れる(ステップ66)。このとき、処理装置2によって
ポインタの索引伺けが各データに対して実行され、表示
共W3に表示される(ステップ67)。入力バッファ〜
が一杯になると、メモリ2−2に記憶されティタボイン
タは、補助記憶装置1内のテキスト索引領域1−1に、
またデータは当該装置のテキスト領域1−2にそれぞれ
書き込まれる(ステップ68→ステツフ69→ステツプ
7o)。入力バッファが一杯になっていないときは、バ
ッフ了が一杯になるまでステップ65からステップ67
1でか繰り返される。また、これら一連の動作(ステッ
プ65からステップ70)は、オペレータの入力処理が
終るまで繰り返される。(ステップ71)。
Next, the operation of the data storage device configured as described above will be explained in detail with reference to FIGS. 1 and 5. When creating new text, data is input from the keyboard 4 while looking at the display device 3 (step 65). The input data is temporarily stored in the memory 2-2 in the processing device 2 (step 66). At this time, the processing device 2 executes the index search of the pointer for each data, and the display is also displayed on W3 (step 67). Input buffer ~
When it becomes full, the tita pointer stored in the memory 2-2 is stored in the text index area 1-1 in the auxiliary storage device 1.
The data is also written into the respective text areas 1-2 of the device (step 68→step 69→step 7o). If the input buffer is not full, continue from step 65 to step 67 until the input buffer is full.
1 is repeated. Further, these series of operations (steps 65 to 70) are repeated until the operator's input processing is completed. (Step 71).

次に、既に補助記憶装置l内に格納されているデータ′
fr:編集(たとえば、挿入あるいは削除)する場合の
動作について説明する(ステップ52)。
Next, the data ′ already stored in the auxiliary storage device l
fr: The operation when editing (for example, inserting or deleting) will be explained (step 52).

キ・−ボード4からオペノー夕が挿入モードあるいは削
除モードを入力すると、処理装置2によって補助記憶装
置1内にあるデータが最初から順次メモリ2−2に読み
出される(ステップ53)。この読み出しは テキスト
索引領域1−1のポインタを最初にメモリ2−2に読み
出し、読み出したポインタを索引しながら対応するデー
タをテキスト領域1−2から読み出して行なわれる。1
だ、−回に読み出されるデータの量は、入力バッフ了の
容量分である。ステップ53で読み出されたポインタお
よびデータは、メモリ2−2上に展開され、当該内容が
表示装置3に表示される(ステップ54)。
When the operator inputs the insert mode or the delete mode from the keyboard 4, the data in the auxiliary storage device 1 is sequentially read from the beginning to the memory 2-2 by the processing device 2 (step 53). This reading is performed by first reading the pointer of the text index area 1-1 into the memory 2-2, and reading the corresponding data from the text area 1-2 while indexing the read pointer. 1
The amount of data read in - times is equal to the capacity of the input buffer. The pointer and data read in step 53 are developed on the memory 2-2, and the contents are displayed on the display device 3 (step 54).

次に、第1図、第2図および第5図を参照しながら、挿
入モードでデータAとデータBの間にデータCを挿入す
る場合の動作を説明する。キーボード4から入力した挿
入データCのポインタPCは、処理装置2内のレジスタ
2−1にセットされる(ステップ55→ステツプ57)
。一方、挿入データCのデータCは、データHの後ろに
書き込まれる(ステップ58)。続いて、メモリ2−2
にあるポインタPAの次にポインタPCが書き込まれポ
インタPE、ポインタPHおよびそれ以降の各ポインタ
の格納番地が+1され(ステップ59)。表示装置4に
編集内容が表示される(ステップ60)。
Next, the operation when data C is inserted between data A and data B in the insertion mode will be described with reference to FIGS. 1, 2, and 5. The pointer PC of the insertion data C input from the keyboard 4 is set in the register 2-1 in the processing device 2 (step 55 → step 57).
. On the other hand, data C of insertion data C is written after data H (step 58). Next, memory 2-2
Pointer PC is written next to pointer PA at , and the storage addresses of pointer PE, pointer PH, and each subsequent pointer are incremented by 1 (step 59). The edited content is displayed on the display device 4 (step 60).

次に、第1図、第3図および第5図を参照しながら、削
除モードでデータAとデータHとの間にあるデータBを
削除する場合の動作を説明する。
Next, with reference to FIGS. 1, 3, and 5, the operation when deleting data B between data A and data H in the deletion mode will be described.

削除モードが指定されると、メモリ2−2にあるポイン
タPBがレジスタ2−1にセットされる(ステップ56
)。続いて、メモリ2−2上のポインタPI3の位置に
ポインタP)(が書き込まれ、ポインタPH以降の各ポ
インタの格納番地が−1され(ステップ59)、表示装
置4に編集内容が表示される(ステップ60)。一方、
データBは削除されず、テキスト領域1−2に書き込ま
れたままになっている。
When the deletion mode is designated, pointer PB in memory 2-2 is set in register 2-1 (step 56).
). Subsequently, pointer P)( is written to the position of pointer PI3 on the memory 2-2, the storage address of each pointer after pointer PH is decremented by 1 (step 59), and the edited content is displayed on the display device 4. (Step 60).Meanwhile,
Data B is not deleted and remains written in text area 1-2.

以上の各モードにおいて、オペレータが挿入または削除
したデータは一旦入力パッファにJ順次蓄えられ、バッ
ファが一杯になうたとき処理装置2を介して補助記憶装
置1に格納きれる(スフ−ツブ61)。格納のとき、メ
モリ2−2にあるポインタはテキスト索引領域】−1に
、また、データはテキスト領域]−2にそれぞれ格納さ
れる(ステップ62→ステツプ63)。以上の一連の動
作(ステップ53からステップ63)は、オペレータの
編集処理が終了するまで繰シ返される(ステップ64)
In each of the above modes, the data inserted or deleted by the operator is once stored in the input buffer in J order, and when the buffer becomes full, it is stored in the auxiliary storage device 1 via the processing device 2 (step 61). At the time of storage, the pointer in the memory 2-2 is stored in the text index area ]-1, and the data is stored in the text area]-2 (step 62→step 63). The above series of operations (steps 53 to 63) are repeated until the operator completes the editing process (step 64).
.

(発明の効果) 本発明は、以上説明したように、データ処理装置に接続
されだ補助記憶装置内のデータを編集する場合、短時間
で編集処理かでさるとともにデータの量に応じてデータ
の格納領域の大きさを自由に変えることができるため、
データアクセスを向上させる効果がある。
(Effects of the Invention) As explained above, the present invention allows editing to be performed in a short time when editing data in an auxiliary storage device connected to a data processing device, and also allows data to be edited in accordance with the amount of data. Since the size of the storage area can be changed freely,
It has the effect of improving data access.

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

第1図は本発明の一実施例のブロック図、第図および第
3図はテキスト索引領域の構成図、4図はテキストデ〜
りの格納番地情報の構成図第5図は本発明の一実施例の
動作を示す70−ヤートである。 1  補助記憶装置、1−1・・・・・テキスト索領域
、1−2 ・テキスト領域、2 ・・・処理装2−1・
・・ レジスタ、2−2 ・・メモリ、3−表示装置、
4  キーボード、41・・−・テキス格納番地、42
・・テキスト開始位置、43・・テキスト長。 第 を 月 胃、       竿 l 図 ト ぜ)データC幻申入 茶 2 回 ぜ]2テータ8ソ削沃に 第3 図 $ 4 閃
Figure 1 is a block diagram of an embodiment of the present invention, Figures 3 and 3 are configuration diagrams of a text index area, and Figure 4 is a block diagram of an embodiment of the present invention.
FIG. 5 is a 70-yard diagram showing the operation of one embodiment of the present invention. 1 Auxiliary storage device, 1-1... Text search area, 1-2 Text area, 2... Processing device 2-1...
・・Register, 2-2 ・・Memory, 3-Display device,
4 Keyboard, 41...Text storage address, 42
...Text start position, 43...Text length. The third figure is the moon stomach, the rod l figure toze) data C phantom introduction tea 2 times] 2 theta 8 so shaving the 3rd figure $ 4 flash

Claims (1)

【特許請求の範囲】[Claims] テキストとして意味を持つデータの部分を順次格納する
テキスト領域とテキストデータの格納番地情報を本来の
テキストの順序に並べて格納するテキスト索引領域とを
有する外部記憶手段と、テキストデータの編集処理を行
なう前に予め前記テキスト索引領域のテキストデータ格
納番地情報を取り込んでおき、前記テキストデータの間
に新テキストデータが挿入されたときは前記新テキスト
データを前記テキスト領域の次のテキストデータ格納番
地に格納するとともにその格納番地情報を前記テキスト
索引領域中の該当する位置に位置づけ、あるテキストデ
ータが削除されたときは前記テキスト索引領域の該当す
るテキストデータ格納番地情報のみを削除するデータ処
理手段とを有することを特徴とするテキストデータ記憶
装置。
an external storage means having a text area for sequentially storing portions of data having meaning as text and a text index area for storing storage address information of the text data arranged in the original text order; The text data storage address information of the text index area is taken in in advance, and when new text data is inserted between the text data, the new text data is stored in the next text data storage address of the text area. and data processing means for locating the storage address information at a corresponding position in the text index area, and deleting only the corresponding text data storage address information in the text index area when certain text data is deleted. A text data storage device characterized by:
JP14989584A 1984-07-19 1984-07-19 Text data storage device Pending JPS6128148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14989584A JPS6128148A (en) 1984-07-19 1984-07-19 Text data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14989584A JPS6128148A (en) 1984-07-19 1984-07-19 Text data storage device

Publications (1)

Publication Number Publication Date
JPS6128148A true JPS6128148A (en) 1986-02-07

Family

ID=15484963

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14989584A Pending JPS6128148A (en) 1984-07-19 1984-07-19 Text data storage device

Country Status (1)

Country Link
JP (1) JPS6128148A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63167961A (en) * 1986-12-29 1988-07-12 Fuji Software Kk Character-string processing system
JPH06202925A (en) * 1992-12-28 1994-07-22 Nec Corp Catalog file shifting device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63167961A (en) * 1986-12-29 1988-07-12 Fuji Software Kk Character-string processing system
JPH06202925A (en) * 1992-12-28 1994-07-22 Nec Corp Catalog file shifting device

Similar Documents

Publication Publication Date Title
JPS6128148A (en) Text data storage device
JPS58115673A (en) System and device for stored information control
JP2504024B2 (en) Programmable controller program creation support device
JPS6019251A (en) Document switch control system for document processing system
JP2822869B2 (en) Library file management device
JPS62121532A (en) Data retrieving method
JPS6259819B2 (en)
JPS6231378B2 (en)
JP2961781B2 (en) Data processing device
JPH02103626A (en) Multiple file displaying editor
JPH06223146A (en) Data storing method
JPS6117600Y2 (en)
JPS63311451A (en) Access system for low-speed access medium incapable of rewriting
JP2925137B2 (en) Word processor and control method thereof
JPH03280136A (en) Record positioning system for sequentially programmed file
JPS61204747A (en) Information reading-out/writing system for logic device
JPH06243182A (en) Drawing editing management device for cad system
JPS61145658A (en) Index order editing file device
JPH02137042A (en) Data memory for computer
JPH04220736A (en) Sharing method for binary format data file between different kind of computers
JPS62194554A (en) Memory contents control system
JPH0352880B2 (en)
JPS5841526B2 (en) Channel command word preemption buffer control method
JPH04114244A (en) File reading system
JPS6350731B2 (en)