JPH0488425A - Editing generation control system of text editor - Google Patents
Editing generation control system of text editorInfo
- Publication number
- JPH0488425A JPH0488425A JP19713390A JP19713390A JPH0488425A JP H0488425 A JPH0488425 A JP H0488425A JP 19713390 A JP19713390 A JP 19713390A JP 19713390 A JP19713390 A JP 19713390A JP H0488425 A JPH0488425 A JP H0488425A
- Authority
- JP
- Japan
- Prior art keywords
- text
- storage area
- input
- file
- display
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はTSSシステムで最も長時間使用されるテキス
トエディタの実行方式に関し、特にテキストエディタに
よりテキストがどのように編集されたかを管理する、テ
キストエディタにおける編集世代管理方式に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an execution method of a text editor, which is used for the longest time in a TSS system, and particularly relates to a method for executing a text editor, which is used for a long time in a TSS system, and in particular, a text editor that manages how text is edited by a text editor. Concerning an editing generation management method in an editor.
従来、この種のテキストエディタにおける編集世代管理
方式は、各行の先頭に世代管理手段を付加して行単位に
管理する方式となっていた。Conventionally, the editing generation management method in this type of text editor has been a method in which a generation management means is added to the beginning of each line and management is performed on a line-by-line basis.
上述した従来の編集世代管理方式は、行単位の管理とな
っているので、どの行が編集されたかは分かっても、ど
の文字列が編集されたかは黙視で新旧のレコードを比較
しなければならない、さらに1行内の1文字を変更した
だけでも1行分の領域が必要になるなどの欠点がある。The conventional edit generation management method described above manages line by line, so even if you know which line has been edited, you have to silently compare old and new records to see which string has been edited. Furthermore, there is a drawback that even if only one character in one line is changed, an area for one line is required.
本発明のテキストエディタにおける編集世代管理方式は
、端末からのキー入力を受け取る入力手段と、入力手段
からキー情報を受け取り、種別と文字列から構成される
更新情報を作成し世代管理手段に渡すテキスト編集手段
と、テキスト編集手段から渡された更新情報をテキスト
記憶域内の各レコードに付加する機能とテキスト記憶域
内の更新情報を参照する機能を持つ世代管理手段と、テ
キスト記憶域内のテキストを更新する機能と参照する機
能を持つテキスト管理手段と、テキスト管理手段を使用
してテキストを参照し世代管理手段を使用して変更箇所
を元のテキストと区別できる形式で端末に表示する表示
手段と、テキストファイルからテキストを入力してテキ
スト管理手段を使用してテキスト記憶域に格納する機能
とテキスト管理手段によりテキスト記憶域から取り出し
たテキストを世代管理手段により取り出した更新情報で
更新し編集後のテキストをファイルに書き出す機能を持
つファイル入出力手段とを有している。The editing generation management method in the text editor of the present invention includes an input means that receives key input from a terminal, and a text that receives key information from the input means, creates update information consisting of a type and a character string, and sends it to the generation management means. an editing means; a generation management means having a function of adding updated information passed from the text editing means to each record in the text storage area; and a function of referencing the updated information in the text storage area; and updating text in the text storage area. a text management means that uses the text management means to refer to the text and uses a generation management means to display changed parts on a terminal in a format that can be distinguished from the original text; A function that inputs text from a file and stores it in a text storage area using a text management means, and updates the text retrieved from the text storage area by the text management means with update information retrieved by a generation management means, and outputs the edited text. It has a file input/output means with a function of writing to a file.
次に本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図は本発明の一実施例を示す。第1図において本発
明の一実施例であるテキストエディタにおける編集世代
管理方式は、入力手段2、表示手段3、世代管理手段4
、テキスト記憶域5、テキスト編集手段6、テキスト管
理手段7およびファイル入出力手段8からなるテキスト
エディタ9と、端末1と、テキストファイル10とから
構成されている。FIG. 1 shows an embodiment of the invention. In FIG. 1, an editing generation management system in a text editor which is an embodiment of the present invention includes an input means 2, a display means 3, a generation management means 4
, a text editor 9 consisting of a text storage area 5, a text editing means 6, a text management means 7, and a file input/output means 8, a terminal 1, and a text file 10.
第2図は本テキストエディタにおける編集世代管理方式
を採用したテキストエディタの全体の動作を説明するた
めの流れ図である。第2図において、テキストの入力処
理(ステップ21)は、テキストファイル10をファイ
ル入出力手段8により入力しテキスト管理手段7を経由
してテキスト記憶域5に格納する。テキスト記憶域5に
格納されているテキストの表示(ステップ22)は、表
示手段3がテキスト管理手段7を使用してテキストを入
力して表示する。表示テキスト更新(ステップ23)は
、入力手段2により端末1から入力された情報をテキス
ト編集手段6が蓄積し更新情報として世代管理手段4を
使用してテキスト記憶域5に格納することで行われる。FIG. 2 is a flowchart for explaining the overall operation of the text editor that employs the editing generation management method. In FIG. 2, in the text input process (step 21), a text file 10 is input by the file input/output means 8 and stored in the text storage area 5 via the text management means 7. To display the text stored in the text storage area 5 (step 22), the display means 3 uses the text management means 7 to input and display the text. The display text is updated (step 23) by the text editing means 6 accumulating the information input from the terminal 1 through the input means 2 and storing it as update information in the text storage area 5 using the generation management means 4. .
更新済みのテキストを表示する処理(ステップ24)は
、表示手段3かテキスト管理手段7を使用してテキスト
を入力し、そのテキストに世代管理手段4を使用して入
力した更新情報で更新して表示する。テキスト記憶域5
の更新済みテキストをファイルに出力する処理(ステッ
プ25)は、ファイル入出力手段8がテキスト管理手段
7を使用してテキストを入力し、そのテキストに世代管
理手段4を使用して入力した更新情報で更新しその結果
をファイルに出力することで行われる。The process of displaying the updated text (step 24) involves inputting text using the display means 3 or text management means 7, and updating the text with update information input using the generation management means 4. indicate. text storage area 5
The process of outputting the updated text to a file (step 25) involves the file input/output means 8 inputting a text using the text management means 7, and inputting the update information input into the text using the generation management means 4. This is done by updating the file and outputting the result to a file.
第3図はテキスト記憶域5に格納されているレコードの
形式を示している。第3図において、各レコードはその
先頭に元のテキストの長さ31とそのテキストイメージ
32を持ち、そのレコードが更新されていたなら更新情
報33がその後方に付加される。更新情報33は、その
更新の種別34が挿入(I)、置換(R)、削除(D)
かと、更新が行われた桁位置35と長さ36と削除を除
いて更新文字列のイメージ37で構成される。FIG. 3 shows the format of records stored in the text storage area 5. In FIG. 3, each record has the original text length 31 and its text image 32 at the beginning, and if the record has been updated, update information 33 is added at the end. The update information 33 has an update type 34 of insertion (I), replacement (R), and deletion (D).
It is composed of the digit position 35 where the update was performed, the length 36, and an image 37 of the updated character string excluding deletions.
第4図は更新済みのテキストを表示する場合の表示手段
3の処理を示す流れ図である。第4図において、テキス
ト管理手段7を使用して元のテキストを入力して色を緑
に設定する(ステップ41)。世代管理手段4を使用し
て更新情報の入力をする(ステップ42)。更新情報の
編集種別が■の場合(ステップ44)は、その編集桁位
置以降のテキストを編集長分ずらせ、そこに更新文字列
を入れその部分の色を青とする(ステップ45)。置換
の場合(ステップ46)は、元のテキストを更新文字列
で上書きしその部分の色を黄色とする(ステップ47)
。削除の場合(ステップ47)は、編集桁位置以降のテ
キストを編集長分前にずらせて一桁分色を赤とする(ス
テップ49)0以上の処理を更新処理が無くなるまで繰
り返す(ステップ43)、更新情報が無くなればそのテ
キスト全体を画面に表示する(ステップ50)。表示手
段3は以上の処理を画面の行数回繰り返すことにより、
一画面のテキストを更新した部分を見やすく色分けして
表示できるだけでなく、指示された部分を容易に元の状
態に復元することができる。FIG. 4 is a flowchart showing the processing of the display means 3 when displaying updated text. In FIG. 4, the text management means 7 is used to enter the original text and set the color to green (step 41). Update information is input using the generation management means 4 (step 42). If the edit type of the update information is ■ (step 44), the text after the edit column position is shifted by the editor length, the updated character string is inserted there, and the color of that part is set to blue (step 45). In the case of replacement (step 46), overwrite the original text with the updated string and change the color of that part to yellow (step 47).
. In the case of deletion (step 47), the text after the editing digit position is shifted forward by the editor length and the color is set to red by one digit (step 49). Processing of 0 or more is repeated until there is no update processing (step 43). , if there is no more updated information, the entire text is displayed on the screen (step 50). By repeating the above process several times on the screen, the display means 3 displays the
Not only can the updated text on a screen be displayed in different colors for easy viewing, but also the specified part can be easily restored to its original state.
以上説明したように本発明は、テキストエディタに文字
列単位に編集されたかどうかの判定が可能な編集世代管
理方式を採用することにより、編集された箇所を文字列
単位で明示することができる、と同時に世代情報も行単
位の管理に比べて少なくできる効果がある。As explained above, the present invention employs an editing generation management method in a text editor that can determine whether or not each character string has been edited, thereby making it possible to clearly identify edited parts in each character string. At the same time, generation information can also be reduced compared to row-by-row management.
第1図は本発明のテキストエディタにおける編集世代管
理方式の一実施例を示す構成図、第2図はテキストエデ
ィタの全体の動作を示す流れ図、第3図はテキスト記憶
域のレコード形式を示す図、第4図は表示手段の動作を
示す流れ図。
1・・・端末、2・・・入力手段、3・・・表示手段、
4・・・世代管理手段、5・・・テキスト記憶域、6・
・・テキスト編集手段、7・・・テキスト管理手段、8
・・・ファイル入出力手段、9・・・テキストエディタ
、10・・・テキストファイ、ル。Fig. 1 is a block diagram showing an example of the editing generation management method in the text editor of the present invention, Fig. 2 is a flow chart showing the overall operation of the text editor, and Fig. 3 is a diagram showing the record format of the text storage area. , FIG. 4 is a flowchart showing the operation of the display means. 1...Terminal, 2...Input means, 3...Display means,
4... Generation management means, 5... Text storage area, 6.
...Text editing means, 7...Text management means, 8
. . . File input/output means, 9. Text editor, 10. Text file.
Claims (1)
からキー情報を受け取り、種別と文字列から構成される
更新情報を作成し世代管理手段に渡すテキスト編集手段
と、 テキスト編集手段から渡された更新情報をテキスト記憶
域内の各レコードに付加する機能とテキスト記憶域内の
更新情報を参照する機能を持つ世代管理手段と、 テキスト記憶域内のテキストを更新する機能と参照する
機能を持つテキスト管理手段と、テキスト管理手段を使
用してテキストを参照し世代管理手段を使用して変更箇
所を元のテキストと区別できる形式で端末に表示する表
示手段と、テキストファイルからテキストを入力してテ
キスト管理手段を使用してテキスト記憶域に格納する機
能とテキスト管理手段によりテキスト記憶域から取り出
したテキストを世代管理手段により取り出した更新情報
で更新し編集後のテキストをファイルに書き出す機能を
持つファイル入出力手段を有するテキストエディタにお
ける編集世代管理方式。[Scope of Claims] An input means for receiving key input from a terminal; a text editing means for receiving key information from the input means, creating update information consisting of a type and a character string, and passing the same to a generation management means; A generation management means that has the function of adding updated information passed from the means to each record in the text storage area and the function of referencing the updated information in the text storage area, and the function of updating and referencing the text in the text storage area. A display means that uses the text management means to refer to the text and uses the generation management means to display changed parts on a terminal in a format that can be distinguished from the original text, and a display means that inputs text from a text file. It has the function of storing the text in the text storage area using the text management means and the function of updating the text retrieved from the text storage area using the text management means with update information retrieved by the generation management means and writing the edited text to a file. An editing generation management method in a text editor having file input/output means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19713390A JPH0488425A (en) | 1990-07-25 | 1990-07-25 | Editing generation control system of text editor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19713390A JPH0488425A (en) | 1990-07-25 | 1990-07-25 | Editing generation control system of text editor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0488425A true JPH0488425A (en) | 1992-03-23 |
Family
ID=16369304
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19713390A Pending JPH0488425A (en) | 1990-07-25 | 1990-07-25 | Editing generation control system of text editor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0488425A (en) |
-
1990
- 1990-07-25 JP JP19713390A patent/JPH0488425A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2993528B2 (en) | Text management and restoration method | |
| US20110258546A1 (en) | Edited information provision device, edited information provision method, program, and recording medium | |
| JPH0488425A (en) | Editing generation control system of text editor | |
| JPS5836905B2 (en) | Character display device editing method | |
| JP7386740B2 (en) | Engineering data management device | |
| JP2706558B2 (en) | Ladder program editing method | |
| JPS6330931A (en) | Document format stipulating system | |
| JPH0594295A (en) | Editing device for plural sub files | |
| JPH04147370A (en) | Document preparing device | |
| JPH0457155A (en) | Text edit processing device | |
| JPH09266562A (en) | Mpeg file pseudo editing system | |
| JPH056371A (en) | Text group inserting processing system in text editor | |
| JPH07191716A (en) | Control device | |
| JPH02224155A (en) | History data reproducing system for information processing system | |
| JPH04338822A (en) | Control system for updated row of program | |
| JPH04168569A (en) | Generation managing system for document file | |
| JPH06149776A (en) | Simulation device based upon petri net | |
| JPH04118728A (en) | Data file updating system | |
| JP2000082278A (en) | Moving image editing method | |
| JPH05298207A (en) | Communication system for decentralized editor | |
| JPH06236371A (en) | Coupling device | |
| JPH04160535A (en) | Control information creation method | |
| JPH02300948A (en) | File reference/update system | |
| JPH04268636A (en) | Data correcting method | |
| JPH0486922A (en) | Knowledge editter |