JPH0454558A - Text control system - Google Patents
Text control systemInfo
- Publication number
- JPH0454558A JPH0454558A JP2163890A JP16389090A JPH0454558A JP H0454558 A JPH0454558 A JP H0454558A JP 2163890 A JP2163890 A JP 2163890A JP 16389090 A JP16389090 A JP 16389090A JP H0454558 A JPH0454558 A JP H0454558A
- Authority
- JP
- Japan
- Prior art keywords
- text
- edited
- difference
- storage area
- original
- 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
- 238000000605 extraction Methods 0.000 abstract description 11
- 238000007726 management method Methods 0.000 description 14
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 241000046053 Betta Species 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Document Processing Apparatus (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はテキスト管理方式に関し、特にテキスト格納フ
ァイルからテキストを読み込みテキストを編集した後に
編集されたテキストを元のテキスト格納ファイルに格納
して管理するテキスト管理方式に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a text management method, and in particular, a method for reading text from a text storage file, editing the text, and then storing and managing the edited text in the original text storage file. Concerning text management methods.
従来、この種のテキスト管理方式では、テキスト格納フ
ァイル上のテキストをテキス)W集用のバッファに読み
込み、バッファ上で編集した後に、編集済みテキストを
元のテキスト格納ファイルのテキストと一括して置換す
る方法が一般的であった。Conventionally, in this type of text management method, the text in the text storage file is read into a buffer for the text collection, edited on the buffer, and then the edited text is replaced with the text in the original text storage file all at once. The common method was to
上述した従来のテキスト管理方式では、テキスト格納フ
ァイル上のテキストをテキスト編集用のバッファに読み
込みバッファ上で編集した後に編集済みテキストを元の
テキスト格納ファイルのテキストと一括してW換する方
法が一般的であったので、複数の利用者が同一のテキス
トを更新する場合に、例えば利用者Aがテキストの編集
中に利用者Bも同じテキストを編集しテキスト格納ファ
イル上のテキストと置換した後に利用者Aが編集を終わ
ってテキストの置換を行うと利用者Bが行った編集がテ
キストに反映されなくなってしまうという欠点がある。In the conventional text management method described above, the general method is to read the text in the text storage file into a text editing buffer, edit it on the buffer, and then convert the edited text with the text in the original text storage file all at once. Therefore, when multiple users update the same text, for example, while user A is editing the text, user B also edits the same text and replaces it with the text in the text storage file before using it. There is a drawback that when user A finishes editing and replaces the text, the edits made by user B are no longer reflected in the text.
また、このような欠点を補うために、同一のテキストに
対しては同時に複数の利用者による編集を許さないとい
う方法もあるが、この方法では複数の利用者が同時にテ
キストを編集できないという欠点がある。Also, to compensate for this drawback, there is a method that does not allow multiple users to edit the same text at the same time, but this method has the drawback that multiple users cannot edit the text at the same time. be.
本発明の目的は、上述の点に鑑み、テキストの置換時に
最初にテキストを読み込んだ後に他の利用者がテキスト
を書き換えていた場合には、最初に読み込んでいたとき
のテキストと各利用者の編集済みテキストとの差分をマ
ージし、各利用者の編集が反映された編集済み最終テキ
ストを作成してからテキストを置換することにより、複
数の利用者が同一のテキストを同時に編集することがで
きるようにしたテキスト管理方式を提供することにある
。In view of the above-mentioned points, an object of the present invention is to replace the text that was originally read and the text of each user when another user has rewritten the text after the text was first read when replacing text. Multiple users can edit the same text at the same time by merging the differences with the edited text, creating a final edited text that reflects each user's edits, and then replacing the text. The object of the present invention is to provide a text management method that allows for
本発明によるテキスト管理方式は、テキスト格納ファイ
ルからテキストを読み込みテキストを編集した後に編集
されたテキストを元のテキスト格納ファイルに格納して
管理するテキスト管理方式において、テキストとテキス
トの同一性を識別するためのリビジョン番号や更新日時
等を含むテキスト識別子とを格納するテキスト格納ファ
イルと、このテキスト格納ファイルからテキストを編集
テキスト格納領域および族テキスト格納領域に読み込む
とともにテキスト識別子をテキスト識別子格納領域に格
納するテキスト入力手段と、前記編集テキスト格納領域
上のテキストを編集して編集済みテキストとするテキス
ト編集手段と、前記原テキスト格納領域上の原テキスト
と前記編集テキスト格納領域および前記テキスト格納フ
ァイル上の編集済みテキストとの差分を抽出する差分抽
出手段と、この差分抽出手段により抽出された両差分同
士をマージして差分マージ結果を得る差分マージ手段と
、前記原テキスト格納領域上の原テキストと前記差分マ
ージ結果とをマージして編集済み最終テキストを前記編
集テキスト格納領域に作成するテキストマージ手段と、
前記テキスト識別子格納領域上のテキスト識別子と前記
テキスト格納ファイル上のテキスト識別子とを比較して
同一であれば前記編集テキスト格納領域上の編集済みテ
キストを前記テキスト格納ファイルに格納し、同一でな
ければ前記差分抽出手段を用いて前記原テキスト格納領
域上の原テキストと前記編集テキスト格納領域上の編集
済みテキストとの差分と前記原テキスト格納領域上の原
テキストと前記テキスト格納ファイル上の編集済みテキ
ストとの差分を抽出し、前記差分マージ手段を用いて両
差分同士をマージして差分マージ結果を得た後に前記テ
キストマージ手段を用いて前記原テキスト格納領域上の
環テキストと前記差分マージ結果とをマージして編集済
み最終テキストを前記編集テキスト格納頭載上に作成し
、前記編集テキスト格納領域上の編集済み最終テキスト
を新しいテキストa別子とともに前記テキスト格納ファ
イルに書き込むテキスト出力手段とを有する。The text management method according to the present invention identifies the identity of texts in a text management method that reads text from a text storage file, edits the text, and then stores and manages the edited text in the original text storage file. A text storage file that stores a text identifier including a revision number, update date and time, etc., and reads text from this text storage file into the edit text storage area and family text storage area, and stores the text identifier in the text identifier storage area. a text input means; a text editing means for editing the text in the edited text storage area into edited text; and the original text in the original text storage area and the edited text in the edited text storage area and the text storage file. a difference extraction means for extracting the difference between the two, a difference merging means for merging the two differences extracted by the difference extraction means to obtain a difference merging result, and a difference merging means for extracting the difference between the original text in the original text storage area and the difference merging result. text merging means for merging and creating an edited final text in the edited text storage area;
Compare the text identifier in the text identifier storage area and the text identifier in the text storage file, and if they are the same, store the edited text in the edited text storage area in the text storage file; Using the difference extraction means, the difference between the original text in the original text storage area and the edited text in the edited text storage area and the difference between the original text in the original text storage area and the edited text in the text storage file are determined. After extracting and merging both differences using the difference merging means to obtain a difference merging result, merging the ring text on the original text storage area and the difference merging result using the text merging means. and text output means for creating an edited final text on the edited text storage header and writing the edited final text on the edited text storage area together with a new text a identifier into the text storage file.
本発明のテキスト管理方式では、テキスト格納ファイル
がテキストとテキストの同一性を識別するためのリビジ
ョン番号や更新日時等を含むテキスト識別子とを格納し
、テキスト入力手段がテキスト格納ファイルからテキス
トを編集テキスト格納領域および原テキスト格納碩域に
読み込むとともにテキスト識別子をテキスト識別子格納
領域に格納し、テキストW集手段が編集テキスト格納領
域上のテキストを編集して編集済みテキストとし、差分
抽出手段が原テキスト格納領域上の環テキストと編集テ
キスト格納領域およびテキスト格納ファイル上の編集済
みテキストとの差分を抽出し、差分マージ手段が差分抽
出手段により抽出された両差分同士をマージして差分マ
ージ結果を得、テキストマージ手段が原テキスト格納領
域上の環テキストと差分マージ結果とをマージして編集
済み最終テキストを編集テキスト格納領域に作成し、テ
キスト出力手段がテキスト識別子格納領域上のテキスト
識別子とテキスト格納ファイル上のテキスト識別子とを
比較して同一であれば編集テキスト格納領域上の編集済
みテキストをテキスト格納ファイルに格納し、同一でな
ければ差分抽出手段を用いて原テキスト格納領域上の環
テキストと編集テキスト格納領域上の編集済みテキスト
との差分と原テキスト格納領域上の環テキストとテキス
ト格納ファイル上の編集済みテキストとの差分を抽出し
、差分マージ手段を用いて両差分同士をマージして差分
マージ結果を得た後にテキストマージ手段を用いて原テ
キスト格納領域上の環テキストと差分マージ結果とをマ
ージして編集済み最終テキストを編集テキスト格納領域
上に作成し、編集テキスト格納領域上の編集済み最終テ
キストを新しいテキスト識別子とともにテキスト格納フ
ァイルに書き込む。In the text management method of the present invention, a text storage file stores text and a text identifier including a revision number, update date and time, etc. for identifying the identity of the text, and a text input means edits text from the text storage file. The text identifier is read into the storage area and the original text storage area, and the text identifier is stored in the text identifier storage area, the text W collection means edits the text in the edited text storage area as an edited text, and the difference extraction means stores the original text. extracting the difference between the ring text on the area and the edited text on the edited text storage area and the text storage file, the difference merging means merging both the differences extracted by the difference extraction means to obtain a difference merging result, The text merging means merges the ring text in the original text storage area and the differential merging result to create an edited final text in the edited text storage area, and the text output means merges the ring text in the original text storage area with the difference merge result, and the text output means merges the text identifier in the text identifier storage area and the text storage file. Compare the above text identifiers, and if they are the same, store the edited text in the edited text storage area in the text storage file, and if they are not the same, use the difference extraction means to edit the text with the ring text in the original text storage area. Extract the difference between the edited text in the text storage area and the ring text in the original text storage area and the edited text in the text storage file, and merge the two differences using a difference merging method to create a difference. After obtaining the merge result, use the text merging means to merge the ring text on the original text storage area and the difference merge result to create an edited final text on the edited text storage area, and then edit the edited text on the edited text storage area. Writes the final text to a text storage file with a new text identifier.
次に、本発明について図面を参照しながら詳細に説明す
る。Next, the present invention will be explained in detail with reference to the drawings.
第1図は、本発明の一実施例に係るテキスト管理方式の
構成を示すブロック図である。本実施例のテキスト管理
方式は、テキスト入力手段1と、テキス)W集手段2と
、テキスト出力手段3と、原テキスト格納領域4と、テ
キスト識別子格納領域5と、編集テキスト格納領域6と
、差分抽出手段7と、差分マージ手段8と、テキストマ
ージ手段9と、テキスト格納ファイル10とから構成さ
れている。FIG. 1 is a block diagram showing the configuration of a text management system according to an embodiment of the present invention. The text management system of this embodiment includes a text input means 1, a text collection means 2, a text output means 3, an original text storage area 4, a text identifier storage area 5, an edited text storage area 6, It is composed of a difference extracting means 7, a difference merging means 8, a text merging means 9, and a text storage file 10.
第2図は、本実施例のテキスト管理方式の説明で使用す
る原テキスト格納領域4上の環テキスト202と、編集
テキスト格納領域6上の編集済みテキストA201と、
テキスト格納ファイル10上の編集済みテキス1−B2
O3と、原テキスト格納領域4上の環テキスト202と
編集テキスト格納領域6上の編集済みテキス)A201
との差分A204と、原テキスト格納領域4上の環テキ
スト202とテキスト格納ファイル10上の編集済みテ
キストB2O3との差分B206と、差分A204と差
分B206との差分マージ結果207と、最終的にテキ
スト格納ファイル10に格納される編集済み最終テキス
ト205との関係の一例を示す図である。なお、第2図
中の“$ALTERm”は環テキスト202のm行目の
前にそれに続くテキストを挿入することを示し、“SA
LTERm、n”は環テキスト202のm行目からn行
目までを削除し、次に続くテキストと置換することを示
している(次に続くテキストがない場合には、削除する
ことのみを示している)。FIG. 2 shows a ring text 202 on the original text storage area 4, an edited text A 201 on the edited text storage area 6, which will be used to explain the text management method of this embodiment.
Edited text 1-B2 on text storage file 10
O3, the ring text 202 on the original text storage area 4, and the edited text on the edited text storage area 6) A201
, the difference B206 between the ring text 202 on the original text storage area 4 and the edited text B2O3 on the text storage file 10, the difference merge result 207 between the difference A204 and the difference B206, and finally the text 3 is a diagram showing an example of the relationship with the edited final text 205 stored in the storage file 10. FIG. Note that “$ALTERm” in FIG. 2 indicates that the following text is to be inserted before the mth line of the ring text 202, and “SA
LTERm,n'' indicates that lines m to n of the ring text 202 are to be deleted and replaced with the following text (if there is no subsequent text, it only indicates deletion. ing).
第3図を参照すると、テキスト出力手段3の処理は、テ
キスト書込み要求受取りステップ301と、テキス)l
k別壬子比較ステップ302、差分取得ステップ303
と、差分取得ステップ304と、差分マージステップ3
05と、原テキストと差分マージ結果とのマージステッ
プ306と、編集済み最終テキスト書込みステップ30
7とからなる。Referring to FIG. 3, the processing of the text output means 3 includes a text writing request receiving step 301 and a text writing request receiving step 301.
K-by-Miko comparison step 302, difference acquisition step 303
, difference acquisition step 304, and difference merge step 3
05, a merging step 306 of the original text and the difference merging result, and a step 30 of writing the edited final text.
It consists of 7.
次に、このように構成された本実施例のテキスト管理方
式の動作について説明する。なお、ここでは、利用者A
が原テキスト202の編集中に利用者Bも同じテキスト
を編集しテキスト格納ファイル10上の編集済みテキス
)B203に置換した後に利用者Aが編集を終わってテ
キストの置換を行う場合を例にとって説明する。Next, the operation of the text management system of this embodiment configured as described above will be explained. In addition, here, user A
An example will be explained in which, while user A is editing the original text 202, user B also edits the same text and replaces it with the edited text B203 in the text storage file 10, and then user A finishes editing and replaces the text. do.
テキスト編集手段2は、利用者の要求により起動され、
まずテキスト入力手段1を起動する。The text editing means 2 is started at the request of the user,
First, the text input means 1 is activated.
テキスト入力手段1は、テキスト編集手段2から起動さ
れると、テキスト格納ファイル10からテキストとテキ
ストの同一性を識別するためのリビジョン番号や更新日
時等を含むテキスト識別子とを読み込み、テキストを原
テキスト格納領域4および編集テキスト格納領域6に記
憶するとともに、テキスト識別子をテキストm割子格納
領域5に記憶する。When activated by the text editing means 2, the text input means 1 reads the text from the text storage file 10 and a text identifier including a revision number, update date and time, etc. for identifying the identity of the text, and converts the text into the original text. The text identifier is stored in the storage area 4 and the edited text storage area 6, and the text identifier is stored in the text m-warrant storage area 5.
次に、テキストa集手段2は、利用者Aの指示により編
集テキスト格納領域6上のテキストの編集を行い、編集
が終了して編集テキスト格納領域6上に編集済みテキス
)A201が得られると、利用者Aの指示によりテキス
ト出力手段3を起動する。Next, the text a collection means 2 edits the text on the edited text storage area 6 according to the instructions of the user A, and when the editing is completed and the edited text A201 is obtained on the edited text storage area 6. , the text output means 3 is activated in response to an instruction from user A.
テキスト出力手段3は、テキスト編集手段2から書込み
要求を受は取ると(ステップ301)、テキスト識別子
格納領域5のテキスト識別子とテキスト格納ファイル1
0上のテキスト識別子とを比較する(ステップ302)
。テキスト識別子が等しいと判定された場合には、テキ
スト出力手段3は、編集テキスト格納領域6上の編集済
みテキストA201を新しいテキスト識別子とともにテ
キスト格納ファイル10に書き込み(ステップ307)
、処理を終了する。When the text output means 3 receives a write request from the text editing means 2 (step 301), the text output means 3 outputs the text identifier in the text identifier storage area 5 and the text storage file 1.
Compare with the text identifier on 0 (step 302)
. If it is determined that the text identifiers are equal, the text output means 3 writes the edited text A201 on the edited text storage area 6 to the text storage file 10 together with the new text identifier (step 307).
, ends the process.
ところで、利用者Aが原テキスト202の編集中に利用
者Bも同じテキストを編集しテキスト格納ファイルlO
上のテキストと置換した後であると、テキスト格納フナ
イル10上のテキストが編集済みテキストB2O3に変
わっているので、ステップ302の判定でテキスト格納
ファイル10上のテキスト識別子のリビジョン番号、更
新日時等が変化していてテキスト識別子が等しくないと
判定される。したがって、この場合には、テキスト出力
手段3は、編集テキスト格納領域6上の編集済みテキス
トA201をテキスト格納ファイルlO上の編集済みテ
キス)B203と直接置き換えることはできないので、
まず差分抽出手段7を起動し、原テキスト202と編集
済みテキストB2O3との差分B206を得る(ステッ
プ303)、すなわち、差分抽出手段7は、原テキスト
格納領域4上の原テキスト202とテキスト格納ファイ
ル10上の編集済みテキストB2O3との差分B206
を抽出する。By the way, while user A is editing the original text 202, user B also edits the same text and creates a text storage file lO.
After replacing the above text, the text on the text storage file 10 has changed to the edited text B2O3, so the revision number, update date and time, etc. of the text identifier on the text storage file 10 are determined in step 302. have changed and the text identifiers are determined to be unequal. Therefore, in this case, the text output means 3 cannot directly replace the edited text A201 in the edited text storage area 6 with the edited text B203 in the text storage file IO,
First, the difference extraction means 7 is activated to obtain the difference B206 between the original text 202 and the edited text B2O3 (step 303). Difference with edited text B2O3 B206
Extract.
次に、テキスト出力手段3は、再び差分抽出手段7を起
動し、原テキスト202と編集済みテキストA201と
の差分A204を得る(ステップ304)、すなわち、
差分抽出手段7は、原テキスト格納領域4上の原テキス
ト202と編集テキスト格納領域6上の編集済みテキス
トA201との差分A204を抽出する。Next, the text output means 3 activates the difference extraction means 7 again and obtains the difference A204 between the original text 202 and the edited text A201 (step 304), that is,
The difference extraction means 7 extracts the difference A204 between the original text 202 on the original text storage area 4 and the edited text A201 on the edited text storage area 6.
次に、テキスト出力手段3は、ステップ303で得られ
た差分B206の方が時期的に前に行われた編集に関す
るものであるので優先度を高くして差分マージ手段8を
起動し、差分A204と差分B206とのマージを行う
(ステップ305)。Next, the text output means 3 activates the difference merging means 8 with a higher priority since the difference B206 obtained in step 303 relates to an earlier edit, and the difference A204 is and the difference B206 are merged (step 305).
詳しくは、差分マージ手段8は、差分A204と差分B
206とを入力してマージした結果を、差分マージ結果
207として出力する。このとき、差分マージ手段8は
、マージする差分A204と差分B206とに重複して
いる部分がある場合(例えば、差分A204の“$AL
TER6,6”と差分B206の“$ALTER6,6
”とのような場合や、また例えば“$ALTER5゜l
O“と“$ALTER9,12″とが存在する場合等)
には、優先度の高い方(編集時期が前の方)の差分B2
06の部分を差分マージ結果207中に出力し、差分マ
ージ結果207に反映されなかった差分A204の部分
があった場合には反映されなかった差分A204の部分
を利用者に警告メツセージとして出力する。このように
、テキストを読み込んだ後に同一の部分を別の利用者B
が更新していた場合には実更新を行わずに警告を発する
ようにしたことにより、先に編集を終えていた利用者B
の編集が無駄にならない。Specifically, the difference merging means 8 merges the difference A204 and the difference B.
206 is input and merged, and the result is output as a differential merge result 207. At this time, if the difference merging means 8 has an overlapping part between the difference A204 and the difference B206 to be merged (for example, the "$AL" of the difference A204
TER6,6” and the difference B206 “$ALTER6,6
”, or for example, “$ALTER5゜l
O” and “$ALTER9,12” exist, etc.)
, the difference B2 with higher priority (the one edited earlier)
06 is output in the difference merge result 207, and if there is a part of the difference A204 that is not reflected in the difference merge result 207, the part of the difference A204 that is not reflected is output as a warning message to the user. In this way, after reading the text, the same part can be read by another user B.
User B, who had finished editing earlier, issues a warning without actually updating the file if it has been updated.
Editing is not wasted.
次に、テキスト出力手段3は、テキストマージ手段9を
起動し、原テキスト格納頭載4の原テキスト202とス
テップ305で得られた差分マージ結果207とをマー
ジして、編集済み最終テキスト205を編集テキスト格
納領域6に作成させる(ステップ306)、すなわち、
テキストマージ手段9は、差分マージ手段8により作成
された差分マージ結果207と原テキスト202とをマ
ージし、編集済み最終テキスト205を編集テキスト格
納領域6に格納する。Next, the text output means 3 activates the text merging means 9, merges the original text 202 of the original text storage header 4 and the differential merge result 207 obtained in step 305, and creates the edited final text 205. Create it in the edit text storage area 6 (step 306), that is,
The text merging means 9 merges the difference merging result 207 created by the difference merging means 8 and the original text 202, and stores the edited final text 205 in the edited text storage area 6.
最後に、テキスト出力手段3は、編集テキスト格納領域
6上の編集済み最終テキスト205を新しいテキスト識
別子とともにテキスト格納ファイル10に書き込み(ス
テ・7プ307)、処理を終了する。Finally, the text output means 3 writes the edited final text 205 on the edited text storage area 6 to the text storage file 10 together with a new text identifier (step 7 307), and ends the process.
以上説明したように本発明は、テキストの置換時に最初
にテキストを読み込んだ後に他の利用者がテキストを書
き換えていた場合には、最初に読み込んでいたときのテ
キストと各利用者の編集済みテキストとの差分をマージ
し、各利用者の編集が反映された編集済み最終テキスト
を作成してからテキストを置換することにより、複数の
利用者が同一のテキスト格納ファイルに格納されている
同一のテキストを同時に編集するときには、テキストの
別の部分を更新する限りにおいては同時に編集を行って
も矛盾なく編集を行えるという効果がある。As explained above, when replacing text, if another user has rewritten the text after the text was first read, the present invention can replace the text that was originally read and the edited text of each user. By merging the differences between the When editing the text at the same time, there is an effect that the editing can be done without any contradiction as long as different parts of the text are updated.
また、テキストを読み込んだ後に同一の部分を別の利用
者が更新していた場合には実更新を行わずに警告が発せ
られるので、先に編集を終えていた利用者の編集が無駄
にならないという効果があAlso, if another user has updated the same part after reading the text, a warning will be issued without actually updating, so the edits of the user who finished editing first will not be wasted. There is an effect that
第1図は本発明の一実施例に係るテキスト管理方式の構
成を示すブロック図、
第2図は本実施例のテキスト管理方式の説明で使用する
各種テキスト、差分等の関係の一例を示す図、
第3図は第1図中のテキスト出力手段の処理を示す流れ
図である。
図において、
1・・・テキスト入力手段、
2・・・テキスト編集手段、
3・・・テキスト出力手段、
4・・・環テキスト格納領域、
5・・・テキス)1a別子格納領域、
6・・・編集テキスト格納領域、
7・・・差分抽出手段、
8・・・差分マージ手段、
9・・・テキストマージ手段、
10・・テキスト格納ファイル、
201・編集済みテキストA、
202・原テキスト、
203・編集済みテキストB、
204・差分A。
205・編集済み最終テキスト、
206・差分B1
207・差分マージ結果である。FIG. 1 is a block diagram showing the configuration of a text management system according to an embodiment of the present invention. FIG. 2 is a diagram showing an example of the relationship between various texts, differences, etc. used in explaining the text management system of this embodiment. , FIG. 3 is a flowchart showing the processing of the text output means in FIG. In the figure, 1...Text input means, 2...Text editing means, 3...Text output means, 4...Ring text storage area, 5...Text) 1a betta storage area, 6. ...Edited text storage area, 7.Difference extraction means, 8.Difference merging means, 9.Text merging means, 10.Text storage file, 201.Edited text A, 202.Original text, 203・Edited text B, 204・Difference A. 205 - Edited final text, 206 - Difference B1 207 - Difference merge result.
Claims (1)
トを編集した後に編集されたテキストを元のテキスト格
納ファイルに格納して管理するテキスト管理方式におい
て、 テキストとテキストの同一性を識別するためのリビジョ
ン番号や更新日時等を含むテキスト識別子とを格納する
テキスト格納ファイルと、 このテキスト格納ファイルからテキストを編集テキスト
格納領域および原テキスト格納領域に読み込むとともに
テキスト識別子をテキスト識別子格納領域に格納するテ
キスト入力手段と、 前記編集テキスト格納領域上のテキストを編集して編集
済みテキストとするテキスト編集手段と、前記原テキス
ト格納領域上の原テキストと前記編集テキスト格納領域
および前記テキスト格納ファイル上の編集済みテキスト
との差分を抽出する差分抽出手段と、 この差分抽出手段により抽出された両差分同士をマージ
して差分マージ結果を得る差分マージ手段と、 前記原テキスト格納領域上の原テキストと前記差分マー
ジ結果とをマージして編集済み最終テキストを前記編集
テキスト格納領域に作成するテキストマージ手段と、 前記テキスト識別子格納領域上のテキスト識別子と前記
テキスト格納ファイル上のテキスト識別子とを比較して
同一であれば前記編集テキスト格納領域上の編集済みテ
キストを前記テキスト格納ファイルに格納し、同一でな
ければ前記差分抽出手段を用いて前記原テキスト格納領
域上の原テキストと前記編集テキスト格納領域上の編集
済みテキストとの差分と前記原テキスト格納領域上の原
テキストと前記テキスト格納ファイル上の編集済みテキ
ストとの差分を抽出し、前記差分マージ手段を用いて両
差分同士をマージして差分マージ結果を得た後に前記テ
キストマージ手段を用いて前記原テキスト格納領域上の
原テキストと前記差分マージ結果とをマージして編集済
み最終テキストを前記編集テキスト格納領域上に作成し
、前記編集テキスト格納領域上の編集済み最終テキスト
を新しいテキスト識別子とともに前記テキスト格納ファ
イルに書き込むテキスト出力手段と を有することを特徴とするテキスト管理方式。[Claims] In a text management method that reads text from a text storage file, edits the text, and then stores and manages the edited text in the original text storage file, A text storage file that stores a text identifier including a revision number, update date and time, etc., and a text input that reads text from this text storage file into the edit text storage area and original text storage area, and stores the text identifier in the text identifier storage area. means for editing the text in the edited text storage area to produce edited text; and a text editing unit for editing the text in the edited text storage area and the edited text in the original text storage area and the edited text storage area and the text storage file. a difference extracting means for extracting a difference; a difference merging means for merging both differences extracted by the difference extracting means to obtain a difference merging result; and merging the original text in the original text storage area and the difference merging result. text merging means for creating an edited final text in the edited text storage area; comparing the text identifier in the text identifier storage area and the text identifier in the text storage file; The edited text on the area is stored in the text storage file, and if the text is not the same, the difference extraction means is used to extract the difference between the original text on the original text storage area and the edited text on the edited text storage area and the original text. Extracting the difference between the original text on the text storage area and the edited text on the text storage file, merging both differences using the difference merging means to obtain a difference merging result, and then using the text merging means The original text on the original text storage area and the difference merging result are merged to create an edited final text on the edited text storage area, and the edited final text on the edited text storage area is merged with the new text identifier into the text. 1. A text management method comprising: a text output means for writing to a storage file.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2163890A JPH0454558A (en) | 1990-06-21 | 1990-06-21 | Text control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2163890A JPH0454558A (en) | 1990-06-21 | 1990-06-21 | Text control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0454558A true JPH0454558A (en) | 1992-02-21 |
Family
ID=15782748
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2163890A Pending JPH0454558A (en) | 1990-06-21 | 1990-06-21 | Text control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0454558A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8201094B2 (en) | 2009-09-25 | 2012-06-12 | Nokia Corporation | Method and apparatus for collaborative graphical creation |
| US8826224B2 (en) | 2007-04-18 | 2014-09-02 | International Business Machines Corporation | Apparatus and method for supporting model-driven development |
-
1990
- 1990-06-21 JP JP2163890A patent/JPH0454558A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8826224B2 (en) | 2007-04-18 | 2014-09-02 | International Business Machines Corporation | Apparatus and method for supporting model-driven development |
| US8201094B2 (en) | 2009-09-25 | 2012-06-12 | Nokia Corporation | Method and apparatus for collaborative graphical creation |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2002342316A (en) | Document structure conversion method, document structure conversion device, and program | |
| JPH10228402A (en) | Document sharing management method | |
| JPH0863342A (en) | Program management method and apparatus | |
| JPH0454558A (en) | Text control system | |
| JP3484775B2 (en) | Document processing apparatus and method | |
| JP2001167120A (en) | System for supporting preparation of conference material | |
| JPH039426A (en) | Software development environment storing system | |
| JPH0512087A (en) | System for outputting pre-updating journal | |
| JPH056272A (en) | Software designing device | |
| JPH04195556A (en) | File group management system | |
| US20090070393A1 (en) | Method for operating databases | |
| JPH022598A (en) | Method and device for data editing | |
| JPS63304338A (en) | Logical file access system | |
| CN115223674A (en) | A medical data service platform suitable for clinical research | |
| JPH03212730A (en) | Device for forming system model information | |
| JP2699572B2 (en) | Data definition information quoting method in data definition | |
| JPS62137646A (en) | Back-up file preparing system | |
| JPH01112425A (en) | Program source filing maintaining system at time of editing by editor | |
| JPH10232816A (en) | Database support device | |
| JPH03240838A (en) | Back-up device for correction of conversion result | |
| JPH03282940A (en) | Title forming processing system for formed object | |
| JPH01246643A (en) | Error message output system | |
| JPH01293438A (en) | Overlay segment information output system | |
| JPH06131343A (en) | Multiple document processing system | |
| JPH04314129A (en) | File managing system |