JPH07319853A - Document processor - Google Patents

Document processor

Info

Publication number
JPH07319853A
JPH07319853A JP6108820A JP10882094A JPH07319853A JP H07319853 A JPH07319853 A JP H07319853A JP 6108820 A JP6108820 A JP 6108820A JP 10882094 A JP10882094 A JP 10882094A JP H07319853 A JPH07319853 A JP H07319853A
Authority
JP
Japan
Prior art keywords
document
storage device
data
contents
document data
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
JP6108820A
Other languages
Japanese (ja)
Inventor
Hiroshi Nishida
博 西田
Hirokazu Miyatake
宏和 宮武
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP6108820A priority Critical patent/JPH07319853A/en
Publication of JPH07319853A publication Critical patent/JPH07319853A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily judge whether data conversion based upon overwriting is available or not by displaying a document stored in a storage device in order to check it when non-coincidence is detected at the time of comparing document data in a memory with the document stored in the storage device. CONSTITUTION:When the start of storing processing is commanded by a storage start key 1b, a document name is inputted from a keyboard 1 and then a storage execution key 1c is depressed, whether a document having the same document name exists in documents already stored in the storage device 4 or not is checked. When the document name of a document being edited at present does not exist, storing processing is newly executed. When the document name of the document concerned exists, the contents of the stored document are compared with the contents of an editing buffer 2a in order to execute overwriting storage. When both the contents coincide with each other, the restorage of the document is unnecessary. When both the contents are different from each other, the contents of a storing document to be overwritten are displayed on a display device 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は日本語ワードプロセッサ
の文書データの保存等テキスト・イメージなど各種デー
タを記憶更新する文書処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus for storing and updating various data such as text images such as document data stored in a Japanese word processor.

【0002】[0002]

【従来の技術】従来の日本語ワードプロセッサ等では、
文書データをすでに保存済みの文書に対して上書きで保
存する場合でも、「上書きしますか?」といった確認の
メッセージを表示する程度であって、上書きされる保存
済み文書の内容を確認するには、その文書を呼び出す必
要があり、操作が繁雑であった。また、市販されている
日本語ワードプロセッサでは、更新保存を行った際に
も、再保存する前のファイルを復活ファイルリストに登
録しておき、消去されたファイルを後から復活できるよ
うにしている。
2. Description of the Related Art In a conventional Japanese word processor,
Even if the document data is saved by overwriting the already saved document, the confirmation message such as "Are you sure you want to overwrite it?" Is displayed. To check the contents of the saved document to be overwritten , Had to call that document, the operation was cumbersome. In addition, in a commercially available Japanese word processor, even when performing an update save, the file before resave is registered in the restore file list so that the deleted file can be restored later.

【0003】特開平2−173865号公報に記載され
た技術内容は文書毎に書き換え(上書き)可能かどうか
のステータスを設定できるようにし、マスターとなる文
書にはあらかじめ書き換え禁止になるようにステータス
設定しておき、マスター文書に書き換えの指示があると
警告の表示をおこなうものである。また、特開平5−4
6339号公報に記載された技術内容は、文書更新の最
後処理の際に、オペレータに最終処理実行の再確認を行
わせるようにして、更新文書が不用意に消去されないよ
うにするものである。
The technical contents described in Japanese Patent Laid-Open No. 173865/1990 allows a status indicating whether or not rewriting (overwriting) is possible for each document to be set, and a master document is set in advance so that rewriting is prohibited. The warning is displayed when there is an instruction to rewrite the master document. In addition, JP-A-5-4
The technical content described in Japanese Patent No. 6339 is to allow an operator to reconfirm the execution of the final processing at the final processing of the document update so that the updated document is not accidentally erased.

【0004】[0004]

【発明が解決しようとする課題】従来の日本語ワードプ
ロセッサ等では、文書データをすでに保存済みの文書に
対して上書きで保存する場合でも、「上書きしますか
?」といった確認のメッセージを表示する程度であっ
た。このため、保存済みの文書が上書きによって変更さ
れてもよいかどうかが分かりにくく、オペレーターが誤
って上書きで重要な文書を変更してしまうようなことが
しばしば起こり得た。また、オペレータが上書きされる
文書の内容を確認するには、その文書の呼び出し操作を
オペレータが行わなければならず、操作が繁雑になって
いた。
[Problems to be Solved by the Invention] In a conventional Japanese word processor or the like, even when the document data is overwritten on an already saved document, a confirmation message such as "Do you want to overwrite it?" Is displayed. Met. For this reason, it is often difficult to know whether the saved document may be changed by overwriting, and the operator often accidentally changes the important document by overwriting. Further, in order for the operator to confirm the contents of the document to be overwritten, the operator has to call the document, which is complicated.

【0005】さらに、上記市販されている日本語ワード
プロセッサでは、オペレータの意図とは無関係にファイ
ルが作成されていくことになり、記憶装置容量の使用が
激しい。また、この方式では復活ファイルに保存された
ファイルの内容とオペレータの意思によって保存された
ファイルの内容を画面上で同時に比較することはできな
い。
Further, in the above-mentioned commercially available Japanese word processor, files are created irrespective of the operator's intention, and the storage device capacity is heavily used. Further, with this method, the contents of the file saved in the restoration file and the contents of the file saved by the operator's intention cannot be simultaneously compared on the screen.

【0006】なお、誤って上書きで重要な文書が変更さ
れることを防ぐためには、上記特開平2−173865
号公報,特開平5−46339号公報のような技術が提
案されている。前者は、マスター文書に書き換え禁止の
設定を行わなければならず、パーソナルワードプロセッ
サのような、比較的小規模のシステム構成の場合は、メ
リットに較べて操作が繁雑すぎるという問題がある。後
者では、不用意な書き換え指示に対して、再確認のメッ
セージを表示するが、書き換えられる文書の内容を同時
に表示するわけではないので、書き換えてよい文書かど
うか確認しづらいという問題があった。そこで本発明で
は、更新保存時に編集中文書と記憶装置内の文書を比較
し、不一致部分があれば両方の文書を画面に表示し、違
いを視覚的にとらえることを可能とするものである。
In order to prevent the important document from being accidentally changed by overwriting, the above-mentioned Japanese Patent Laid-Open No. 2-173865.
Techniques such as Japanese Patent Laid-Open No. 5-46339 have been proposed. In the former case, the master document must be set to prohibit rewriting, and in the case of a relatively small-scale system configuration such as a personal word processor, there is a problem that the operation is too complicated compared to the merit. In the latter case, a message for reconfirmation is displayed in response to an inadvertent rewriting instruction, but since the contents of the rewritten document are not displayed at the same time, there is a problem that it is difficult to confirm whether or not the document can be rewritten. Therefore, in the present invention, it is possible to compare the document being edited with the document in the storage device at the time of updating and saving, and if there is a mismatch, both documents are displayed on the screen to visually recognize the difference.

【0007】しかし、上記の表示方法では2つの文書が
並ぶだけで瞬間的に違いを捕らえることはできない。そ
こで本発明では2つ並んだ文書のうち、記憶装置内文書
の表示において編集中文書との不一致部分の検索を行
い、不一致部分の先頭文字以降の文字を編集中文書の文
字とは異なる形態を用いて表示を行い、不一致部分の先
頭を瞬間的にオペレータに知らしめるものである。
However, the above display method cannot catch the difference instantaneously because only two documents are lined up. Therefore, according to the present invention, in the two documents arranged side by side, when the document in the storage device is displayed, the mismatched portion with the document being edited is searched, and the characters after the first character of the mismatched portion are different from the characters in the document being edited. The display is performed by using the display so that the operator can be instantly notified of the beginning of the mismatched portion.

【0008】さらに、2つの文書の比較のためには記憶
装置内の文書を文書処理装置内のワークRAMに読み込
む必要があるが、ワークRAMの容量には制限があり、
ワークRAMの容量を超えた文書を記憶装置から一度に
読み込むことはできない。そこで本発明では、ワークR
AMの容量より大きい文書ファイルを記憶装置から読み
込む際に、記憶装置内の文書ファイルをワークRAMの
サイズで分割し、限定容量を逐次読み込み、メモリー上
の文書データと比較する動作を繰り返すことによって、
記憶装置内文書のサイズに依存することなく、編集中文
書との比較を可変とするものである。
Further, in order to compare two documents, it is necessary to read the document in the storage device into the work RAM in the document processing device, but the capacity of the work RAM is limited,
Documents exceeding the capacity of the work RAM cannot be read from the storage device at one time. Therefore, in the present invention, the work R
When reading a document file larger than the capacity of AM from the storage device, the document file in the storage device is divided by the size of the work RAM, the limited capacity is sequentially read, and the operation of comparing with the document data in the memory is repeated.
The comparison with the document being edited is variable without depending on the size of the document in the storage device.

【0009】[0009]

【課題を解決するための手段】本発明は上記のような課
題を解決するため、文書処理装置において、外部記憶装
置内にある該当文書データを消去したうえで現在編集中
の文書データを上書き保存する時に、ワークメモリー内
の文書データと該外部記憶装置内の文書を比較する文書
比較手段と、上記文書比較手段での比較により不一致が
検出された時に確認のため上記外部記憶装置内の文書を
表示する表示手段と、上書きを実行するか中止するかを
指定する指定手段と、を備えたことを特徴とするもので
ある。
In order to solve the above-mentioned problems, the present invention erases relevant document data in an external storage device and then overwrites and saves the document data currently being edited in a document processing device. When comparing, the document data in the work memory and the document in the external storage device are compared with each other, and the document in the external storage device is checked for confirmation when a mismatch is detected by the comparison in the document comparison device. It is characterized by comprising display means for displaying and designation means for designating whether to execute or cancel overwriting.

【0010】また、上記比較手段で比較され、外部記憶
装置から読み出される文書データの不一致部分を検出す
る不一致部分検出手段と、上記不一致部分検出手段で文
書の不一致が検出されると、編集中の文書データと該文
書データに対応する不一致部分の前後データを含めて各
々の文書データを比較できるように表示メモリーにイメ
ージ展開される表示制御手段と、異なりが出た文書デー
タの最初の部分以降の文書データの形態を変化させて表
示させる表示手段と、を備えたことを特徴とするもので
ある。
Further, when the non-coincidence portion detection means for detecting the non-coincidence portion of the document data which is compared by the comparison means and read out from the external storage device and the non-coincidence portion of the document is detected by the non-coincidence portion detection means, the document is being edited. Display control means for developing an image in the display memory so that the respective document data including the document data and the preceding and following data of the non-matching portion corresponding to the document data can be compared, and after the first part of the document data where the difference appears Display means for changing and displaying the form of the document data.

【0011】更にまた、上記外部記憶装置から読み出さ
れるデータファイルがワークメモリー容量にかかわらず
限定容量の文書データを逐次読み出し、該ワークメモリ
ー内の文書データとを文書比較手段で比較することを特
徴とするものである。
Further, the data file read from the external storage device sequentially reads the document data of a limited capacity regardless of the work memory capacity, and compares the document data in the work memory with the document comparison means. To do.

【0012】[0012]

【作用】請求項1に記載の構成によって、上書き保存し
ようとしたとき、記憶装置内にある上書き対象データを
文書処理装置内のワークメモリーに読み込み、テキスト
のメモリーとの比較をCPUが行い、異なりが検出され
れば記憶装置内文書を画面表示する。
According to the structure described in claim 1, when an attempt is made to overwrite and save, the data to be overwritten in the storage device is read into the work memory in the document processing device, and the CPU compares it with the text memory, and the difference is made. If is detected, the document in the storage device is displayed on the screen.

【0013】請求項2に記載の構成によって、外部に保
存されたテキストデータを編集する場合、一度データを
ワークメモリーに読み出し、文書は再編集される。そこ
で外部メモリーのテキストデータとワークメモリーのデ
ータをすべて展開せず、順次取り込んで比較し、不一致
部分が検出された場合、その不一致部分の前後データを
メモリーから取り込む。メモリーサイズは表示画面分に
ついては備えているものとする。表示メモリーの右半分
に編集中の該当部分のデータを表示させ、左半分にファ
イルから取り込んでいる該当部分のデータを表示させる
ことによって、異なりが出た文書を両方同時に表示する
ことを可能とさせる。かつ、その場合に、ファイル側か
ら読み出された比較データの不一致部分以降のデータを
網かけ表示する。
According to the structure of the second aspect, when editing the text data stored externally, the data is once read into the work memory and the document is re-edited. Therefore, the text data in the external memory and the data in the work memory are not all expanded, and are sequentially fetched and compared, and if a mismatch is detected, the data before and after the mismatch is fetched from the memory. Memory size shall be provided for the display screen. By displaying the data of the relevant part being edited on the right half of the display memory and displaying the data of the relevant part loaded from the file on the left half, it is possible to display both documents at the same time. . In that case, the data after the non-matching portion of the comparison data read from the file side is displayed in a shaded manner.

【0014】請求項3に記載の構成によって、記憶装置
内にある上書き対象データが文書処理装置のRAM容量
を越える場合、記憶装置内文書を分割してRAMに読み
込み、読み込んだ部分の比較が終われば、記憶装置内文
書の次の部分の読み込みを行う動作を繰り返し、記憶装
置内にある上書き対象データの全ての部分の比較を行
う。
According to the third aspect of the invention, when the data to be overwritten in the storage device exceeds the RAM capacity of the document processing device, the document in the storage device is divided and read into the RAM, and the comparison of the read portions is completed. For example, the operation of reading the next portion of the document in the storage device is repeated, and all the portions of the overwrite target data in the storage device are compared.

【0015】[0015]

【実施例】本発明の文書処理装置を図面と共に説明す
る。図1は、本装置のシステム構成図であり、キーボー
ド1はキー入力装置であり、キーが押されると、キーコ
ードを発生させる。キーボード1には文字として文書に
格納される文字キー1aと、保存操作を指示するための
保存開始キー1b,保存実行キー1c,処理続行キー1
dの操作キーがある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A document processing apparatus of the present invention will be described with reference to the drawings. FIG. 1 is a system configuration diagram of the present device. The keyboard 1 is a key input device, and when a key is pressed, a key code is generated. On the keyboard 1, character keys 1a stored in the document as characters, a save start key 1b for instructing a save operation, a save execution key 1c, and a process continue key 1
There is a d operation key.

【0016】編集装置2は、受け付けたキーに対応した
文字を格納する。この中には、文字列を格納する編集バ
ッファ2a,記憶装置から読み込んだ文書データを格納
するワークRAM2b,編集バッファの文字とワークR
AMの文字を比較する文字比較機構2cが存在する。表
示装置3は、表示制御部からのビットマップデータにし
たがって表示を行うことにより、編集バッファ2aの内
容やメッセージの文字等の表示を行う。
The editing device 2 stores the character corresponding to the received key. These include an edit buffer 2a for storing a character string, a work RAM 2b for storing document data read from a storage device, a character and a work R in the edit buffer.
There is a character comparison mechanism 2c for comparing AM characters. The display device 3 displays the contents of the edit buffer 2a, the characters of the message, and the like by displaying according to the bitmap data from the display control unit.

【0017】記憶装置4は編集バッファの内容を保存す
る。これは、編集バッファ2aの内容とそれに付随した
情報を1本のファイルとして書き込む記憶領域が1つ以
上存在するように構成されており、文書に対応する名前
(文書名)を書き込む文書名記憶領域4aと、編集バッ
ファ2aの内容を記憶する文書記憶領域4bが存在す
る。説明を簡単にするため、これらの記憶領域はどのフ
ァイルでも同じ大きさをもつものとする。
The storage device 4 stores the contents of the edit buffer. This is configured so that there is at least one storage area for writing the contents of the edit buffer 2a and the information accompanying it as one file, and a document name storage area for writing a name (document name) corresponding to a document. 4a and a document storage area 4b for storing the contents of the edit buffer 2a. For ease of explanation, it is assumed that these storage areas have the same size in every file.

【0018】表示制御部5は、CGデータ5aと呼ばれ
る文字コードと表示のためのビットマップデータとの対
応テーブルをもち、CPUから文字コードを受け取り表
示装置3にその文字に対応するビットマップデータを出
力する。CPU6はシステム全体の動作を制御する中央
演算処理装置である。
The display control unit 5 has a correspondence table of character codes called CG data 5a and bitmap data for display, receives the character code from the CPU, and displays the bitmap data corresponding to the character on the display device 3. Output. The CPU 6 is a central processing unit that controls the operation of the entire system.

【0019】次に、図4に示す動作フローチャートで、
請求項1に記載の構成を説明する。キーボード1でキー
が押され入力されると、編集装置2に対し、キーコード
を順次出力する。編集装置2はキーコードを受け取る
と、編集処理を行ない、キーコードに対応する文字列を
編集バッファ2aに格納する。さらに、編集バッファ2
a中の文字列を表示装置3に表示するように要求する。
ここで、編集バッファ2aの内容を記憶装置4に記憶す
るには、まず、保存開始キー1bにより保存処理開始を
指示する(S1)。そして、キーボード1から文書名を
入力する(S2)。その後、保存実行キー1cを押すと
(S3)、記憶装置4に文書名と文書(編集バッファの
内容)を保存する。例として、図2(b)の1ファイル
の構造に示すように、編集バッファ2aの内容が「12
345」、文書名は「ABC」のデータを保存した場合
の記憶装置の状態をしめす。
Next, in the operation flow chart shown in FIG.
The configuration according to claim 1 will be described. When a key is pressed on the keyboard 1 for input, key codes are sequentially output to the editing device 2. When the editing device 2 receives the key code, it performs an editing process and stores a character string corresponding to the key code in the editing buffer 2a. In addition, edit buffer 2
Request that the character string in a is displayed on the display device 3.
Here, in order to store the contents of the edit buffer 2a in the storage device 4, first, the saving start key 1b is instructed to start the saving process (S1). Then, the document name is input from the keyboard 1 (S2). After that, when the save execution key 1c is pressed (S3), the document name and the document (contents of the edit buffer) are saved in the storage device 4. As an example, as shown in the structure of one file in FIG. 2B, the content of the edit buffer 2a is "12".
345 ”and the document name indicates the state of the storage device when the data of“ ABC ”is stored.

【0020】この後、再び、編集バッファ2aの内容を
記憶装置4に保存することができるが、この処理を次の
ような手順で実施する。まず、保存開始キー1bにより
保存処理開始が指示され、文書名がキーボード1から入
力された後、保存実行キー1cが押されると、既に記憶
装置4に保存済みの文書で、同じ文書名を与えられてい
るものがあるかどうかをチェックする(S6)。
After that, the contents of the edit buffer 2a can be stored again in the storage device 4, and this processing is carried out in the following procedure. First, when the save processing key 1b is instructed to start the save processing, the document name is input from the keyboard 1, and the save execution key 1c is pressed, the same document name is given to the document already saved in the storage device 4. It is checked whether or not there is any (S6).

【0021】図2(a)の記憶装置の構造に示すよう
に、記憶装置4における文書名記憶領域は1セクタ、文
書記憶領域は10セクタなので、文書名が違う場合には
11セクタ(次のファイルの先頭まで)読み飛ばして
(S8)再び文書名のチェックを行う。この動作を繰り
返し、現在編集中の文書の文書名がなければ(S5)、
新規に保存処理を行うことになる。あれば、上書き保存
を行う必要があるため、保存済みの文書の内容と、編集
バッファ2aの内容を比較する(S6)。一致していれ
ば、再度保存する必要はない。不一致のときは、表示装
置3に、上書きされる保存文書の内容を表示する。
As shown in the structure of the storage device of FIG. 2A, the document name storage area in the storage device 4 is 1 sector and the document storage area is 10 sectors. Therefore, if the document names are different, 11 sectors ( It skips over to the beginning of the file (S8) and checks the document name again. This operation is repeated, and if there is no document name of the document currently edited (S5),
A new saving process will be performed. If there is, it is necessary to overwrite and save, so the contents of the saved document are compared with the contents of the edit buffer 2a (S6). If they match, there is no need to save again. When they do not match, the contents of the overwritten saved document are displayed on the display device 3.

【0022】これにより、編集バッファ2aの内容を、
すでに記憶装置4に保存済みの文書名で上書きで保存す
る場合に、保存済みの文書と内容が異なる場合は、上書
きされる保存文書の内容が表示される(S10)。
As a result, the contents of the edit buffer 2a are
In the case of overwriting with the document name already saved in the storage device 4, if the content is different from the saved document, the content of the overwritten saved document is displayed (S10).

【0023】次に、図5に示す動作フローチャートで、
請求項2に記載の構成を説明する。上記表示装置3に表
示されている内容は、図2(c)の表示装置への表示例
に示すように、画面左半分が記憶装置4から取り込んだ
データであり、画面右半分が編集バッファ2aにあるデ
ータである。
Next, in the operation flow chart shown in FIG.
The configuration described in claim 2 will be described. As shown in the display example on the display device of FIG. 2C, the contents displayed on the display device 3 are the data fetched from the storage device 4 on the left half of the screen and the edit buffer 2a on the right half of the screen. It is the data in.

【0024】ワークRAM2bに読み込まれた文字と編
集バッファ2a内の文字を、文字比較機構2cを用いて
1文字ずつ比較していき(S22,S23)、それらが
一致している場合には次の文字の比較を続ける。一致し
なかった場合には、最初に一致しなかった文字以降の文
字列をそれまでの文字列の表示とは形態を変化させて表
示を行う(S24)。具体的な実現方法として次の手段
がある。記憶装置4内の文書データは1文字ずつJIS
コードで記憶されている。記憶装置4内からワークRA
M2bに読み込んだ後、1文字ずつの比較を行い、不一
致が検出されれば不一致部分以降の文字を表しているJ
ISコードに、図3(a)の1文字の表示形態変更例に
示すように、表示形態変更ビットをたて、表示をかけ
る。表示制御部5ではCPU6から転送されたJISコ
ードに対し、CGデータ(各文字のJISコードとそれ
に対応する表示用ビットマップデータ)5aを参照し
て、表示装置3に表示のためのビットマップデータを転
送する。これによって、記憶装置内文書表示のうち、編
集バッファ2aと同一の部分は通常表示され、不一致部
分以降は表示形態を変更して表示される。
The characters read into the work RAM 2b and the characters in the edit buffer 2a are compared character by character using the character comparison mechanism 2c (S22, S23). Continue comparing characters. If they do not match, the character string after the first character that does not match is displayed in a different form from the display of the character strings up to that point (S24). There are the following means as a concrete realization method. Document data in the storage device 4 is JIS character by character
Remembered by code. Work RA from within storage device 4
After reading into M2b, the characters are compared character by character, and if a mismatch is detected, the characters after the mismatch are displayed.
As shown in the example of changing the one-character display form in FIG. 3A, the IS code is set with a display form change bit and displayed. The display control unit 5 refers to the CG data (the JIS code of each character and the corresponding display bitmap data) 5a for the JIS code transferred from the CPU 6, and refers to the bitmap data for display on the display device 3. To transfer. As a result, of the document display in the storage device, the same portion as the edit buffer 2a is normally displayed, and the display form is changed and displayed after the non-matching portion.

【0025】本発明においては、単純に1文字ずつ比較
していき、不一致部分以降すべてにおいて同等の表示形
態をとっているが、現在の技術レベルでは、MS−DO
SのFCコマンドや、UNIXのDIFFコマンドのよ
うに不一致部分のみを表示させる技術も確立されてい
る。
In the present invention, the characters are simply compared one by one, and the same display form is taken in all the non-coincidence portions. However, at the current technical level, MS-DO is used.
A technique for displaying only the non-matching portion such as the FC command of S and the DIFF command of UNIX has been established.

【0026】次に、図6に示す動作フローチャートで、
請求項3に記載の構成を説明する。上記記憶装置4内に
記憶されているデータをワークRAM2bに読み込むと
きに、ワークRAM2bの容量とデータファイルのサイ
ズから、1本のデータファイルすべてをワークRAM2
bに読み込むことが不可能な場合がある。そのような場
合に本発明では、データファイルをワークRAM2bの
容量で分割し、分割されたブロック毎に比較を行ってい
く。
Next, in the operation flow chart shown in FIG.
The configuration according to claim 3 will be described. When the data stored in the storage device 4 is read into the work RAM 2b, all of the one data file is read from the work RAM 2b based on the capacity of the work RAM 2b and the size of the data file.
It may not be possible to read into b. In such a case, in the present invention, the data file is divided by the capacity of the work RAM 2b, and the divided blocks are compared.

【0027】例えば、図3(b)の記憶装置内文書デー
タがワークRAM容量より大きい場合の例のように、R
AM容量をもつ文書処理装置と記憶装置内文書データが
あるとする。図1のCPU6は記憶装置4の文書記憶領
域4bから1000文字をカウントし、かつ、EOF
(ファイルの終りを示す記号)が出現しないことのチェ
ックを行いながら、文書データをワークRAMに転送す
る(S31)。記号装置内文書データが2500文字、
ワークRAM容量が1000文字分の場合、記憶装置内
からワークRAMへのデータ転送は、3回に分けて行わ
れる(S32)。
For example, as in the case where the document data in the storage device in FIG. 3B is larger than the work RAM capacity, R
It is assumed that there are document data in the storage device and the document processing device having the AM capacity. The CPU 6 of FIG. 1 counts 1000 characters from the document storage area 4b of the storage device 4, and EOF
The document data is transferred to the work RAM while checking that the (symbol indicating the end of the file) does not appear (S31). Document data in the symbol device is 2500 characters,
When the work RAM has a capacity of 1000 characters, data transfer from the storage device to the work RAM is performed three times (S32).

【0028】上記EOFがあれば(S33)、EOFフ
ラグをONにセットして(S34)、上記したワークR
AM2bに取り込んだデータと編集バッファ2aのデー
タとの比較と表示を行う(S35)。EOFフラグがO
FFの間は(S36)、処理続行キー1dが押されれば
(S37)、記憶装置内のデータファイルをワークRA
M2bの容量(この例の場合、1000文字)で分割し
てワークRAM2bに転送し(S38)、ワークRAM
2bに取り込んだデータと編集バッファ2aのデータと
の比較と表示を行う。
If the EOF is present (S33), the EOF flag is set to ON (S34), and the work R described above is set.
The data taken into the AM 2b and the data in the edit buffer 2a are compared and displayed (S35). EOF flag is O
During FF (S36), if the process continue key 1d is pressed (S37), the data file in the storage device is saved as work RA.
It is divided by the capacity of M2b (1000 characters in this example) and transferred to the work RAM 2b (S38).
The data captured in 2b and the data in the edit buffer 2a are compared and displayed.

【0029】[0029]

【発明の効果】上記請求項1に記憶の構成における本装
置によって、上書き保存する時にメモリー上の文書デー
タと記憶装置内の文書を比較し、不一致が発見されたと
きは、確認のため記憶装置内の文書を表示する。これに
より、保存済みの文書の内容が確認でき、上書きによっ
て変更されてもよいかどうかが判断しやすくなる。した
がって、オペレータが誤って上書きで重要な文書を変更
してしまうようなことが起きにくくなる。
According to the present invention having the storage structure described in claim 1, the document data in the memory is compared with the document in the storage device when overwriting and saving, and when a discrepancy is found, the storage device for confirmation. View documents in. As a result, the content of the saved document can be confirmed, and it becomes easy to determine whether or not the document may be changed by overwriting. Therefore, it is difficult for the operator to accidentally change an important document by overwriting.

【0030】上記請求項2に記載の構成における本装置
によって、記憶装置内の内容と編集中の文書が同時に表
示され、相違部分の文書はマーキングされているので変
更部分が分かりやすい。また、相違部分の文書の検出に
は、MS−DOSのFCコマンドや、UNIXのDIF
Fコマンドのように、相違部分の文書のみを表示するも
のもあるが、本発明では、最初の不一致以降すべてを表
示する。
With the present apparatus having the structure described in claim 2, the contents in the storage device and the document being edited are displayed at the same time, and the document of the different portion is marked, so that the changed portion can be easily understood. Further, to detect the document of the different portion, the MS-DOS FC command or the UNIX DIF is used.
Although there is a case of displaying only the document of the different portion like the F command, in the present invention, all the documents after the first mismatch are displayed.

【0031】上記請求項3に記憶の構成における本装置
によって、記憶装置内の上書き対象データのサイズにか
かわらず、比較が行えるので、どのようなサイズのデー
タであっても、相互データの先頭から末尾まですべてに
わたって違いをチェックできる。
Since the present apparatus having the storage configuration according to claim 3 can perform comparison regardless of the size of the data to be overwritten in the storage device, regardless of the size of the data, from the beginning of the mutual data. You can check the difference all the way to the end.

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

【図1】本発明による文書処理装置のシステム構成図で
ある。
FIG. 1 is a system configuration diagram of a document processing apparatus according to the present invention.

【図2】本発明による文書処理装置における、(a)は
記憶装置の構造,(b)は1ファイルの構造,(c)は
表示装置への表示例を示す図である。
2A and 2B are diagrams showing a structure of a storage device, a structure of one file, and a display example on a display device in the document processing apparatus according to the present invention.

【図3】本発明による文書処理装置における、(a)は
1文字の表示形態変更例,(b)は記憶装置内文書デー
タがワークRAM容量より大きい場合の例を示す図であ
る。
3A and 3B are diagrams showing an example of changing the display form of one character and an example in the case where the document data in the storage device is larger than the work RAM capacity in the document processing apparatus according to the present invention.

【図4】本装置の動作フローチャートである。FIG. 4 is an operation flowchart of the present apparatus.

【図5】本装置の他の動作フローチャートである。FIG. 5 is another operation flowchart of the present apparatus.

【図6】本装置の他の動作フローチャートである。FIG. 6 is another operation flowchart of the present apparatus.

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

1 キーボード 2 編集装置 3 表示装置 4 記憶装置 5 表示制御部 6 CPU 1 Keyboard 2 Editing Device 3 Display Device 4 Storage Device 5 Display Control Unit 6 CPU

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 外部記憶装置内にある該当文書データを
消去したうえで現在編集中の文書データを上書き保存す
る時に、ワークメモリー内の文書データと該外部記憶装
置内の文書を比較する文書比較手段と、該文書比較手段
での比較により不一致が検出された時に確認のため上記
外部記憶装置内の文書を表示する表示手段と、上書きを
実行するか中止するかを指定する指定手段とを備えたこ
とを特徴とする文書処理装置。
1. A document comparison for comparing the document data in the work memory with the document in the external storage device when overwriting and saving the document data currently being edited after erasing the corresponding document data in the external storage device. Means, display means for displaying the document in the external storage device for confirmation when a discrepancy is detected by the comparison in the document comparison means, and designating means for designating whether or not to overwrite. A document processing device characterized by the above.
【請求項2】 上記比較手段で比較され、外部記憶装置
から読み出される文書データの不一致部分を検出する不
一致部分検出手段と、該不一致部分検出手段で文書の不
一致が検出されると、編集中の文書データと該文書デー
タに対応する不一致部分の前後データを含めて各々の文
書データを比較できるように表示メモリーにイメージ展
開される表示制御手段と、異なりが出た文書データの最
初の部分以降の文書データの形態を変化させて表示させ
る表示手段とを備えたことを特徴とする、請求項1に記
載の文書処理装置。
2. A non-matching portion detecting means for detecting a non-matching portion of document data read out from an external storage device by being compared by the comparing means; and a non-matching portion of the document being detected by the non-matching portion detecting means, the document is being edited. Display control means for developing an image in the display memory so that the respective document data including the document data and the preceding and following data of the non-matching portion corresponding to the document data can be compared, and after the first part of the document data where the difference appears The document processing apparatus according to claim 1, further comprising a display unit that changes and displays the form of the document data.
【請求項3】 上記外部記憶装置から読み出されるデー
タファイルがワークメモリー容量にかかわらず限定容量
の文書データを逐次読み出し、該ワークメモリー内の文
書データとを文書比較手段で比較することを特徴とす
る、請求項1に記載の文書処理装置。
3. The data file read from the external storage device sequentially reads document data of a limited capacity regardless of the work memory capacity, and compares the document data in the work memory with the document comparison means. The document processing apparatus according to claim 1.
JP6108820A 1994-05-24 1994-05-24 Document processor Pending JPH07319853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6108820A JPH07319853A (en) 1994-05-24 1994-05-24 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6108820A JPH07319853A (en) 1994-05-24 1994-05-24 Document processor

Publications (1)

Publication Number Publication Date
JPH07319853A true JPH07319853A (en) 1995-12-08

Family

ID=14494357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6108820A Pending JPH07319853A (en) 1994-05-24 1994-05-24 Document processor

Country Status (1)

Country Link
JP (1) JPH07319853A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002297885A (en) * 2001-03-30 2002-10-11 Dentsu Public Relations Inc Publicity activity supporting method and system for realizing the method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002297885A (en) * 2001-03-30 2002-10-11 Dentsu Public Relations Inc Publicity activity supporting method and system for realizing the method

Similar Documents

Publication Publication Date Title
JP2966432B2 (en) Electronics
JPH07319853A (en) Document processor
JPH03184087A (en) Data processor
JPS6320666A (en) Document processor
JPH08137837A (en) Method and device for document processing
JP3041158B2 (en) Document information registration device of document processing device
JPH0581096A (en) Page deletion system for electronic filing device
JP3069384B2 (en) Document processing apparatus and method
JPH05233411A (en) Document processor
JPH07295978A (en) Undo processing system in data file processor
JP3009932B2 (en) Document processing apparatus and document processing method
JP2672548B2 (en) Document creation device
JPS62263566A (en) Data eraser
JPH05250014A (en) Peripheral device for programmable controller
JPH0322079A (en) Sentence processing device
JPH08235193A (en) Data retrieval device
JPH0785089A (en) Character processing device
JPH04295969A (en) Graphic redisplay device in computer system
JPH03110666A (en) Document processor
JPH0743715B2 (en) Document processor
JPS63254557A (en) Character processor
JPH05135008A (en) Method and device for processing document
JPH0218609A (en) Changing device for key operating procedure
JPH04282752A (en) Word processor
JPH05314127A (en) External reference system for document data