JPH0728812A - Document preparing device - Google Patents

Document preparing device

Info

Publication number
JPH0728812A
JPH0728812A JP5167790A JP16779093A JPH0728812A JP H0728812 A JPH0728812 A JP H0728812A JP 5167790 A JP5167790 A JP 5167790A JP 16779093 A JP16779093 A JP 16779093A JP H0728812 A JPH0728812 A JP H0728812A
Authority
JP
Japan
Prior art keywords
character
key
character string
cursor
protected
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
JP5167790A
Other languages
Japanese (ja)
Inventor
Hiroshi Nishida
博 西田
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 JP5167790A priority Critical patent/JPH0728812A/en
Publication of JPH0728812A publication Critical patent/JPH0728812A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To protect a character string which must not be deleted and changed and to allow the deletion and change for other character strings. CONSTITUTION:By operating a start location key 1a by setting a cursor to the head for an arbitrary character string in the document data which is already stored in an edition buffer 2a and is displayed on a display device 3 and operating a termination location key 1b by setting the cursor to the end, the protection area for the character string is designated in a protection area start and termination information buffer 2b. When a retreat key 1d, a delete key 1e and a character key 1f are operated, the operation is canceled when the cursor is located in a protection area 4. When the cursor is not located in the protection area 4, the processing by the operation is allowed and the data of the start location and the termination location of the protection area start and termination buffer 2b is corrected for maintaining the correspondence of the location of the character string after deletion and change within the edition buffer 2a and the protection area.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、日本語ワードプロセッ
サなどの文書作成装置に係り、特には文書データの保護
の技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document creation device such as a Japanese word processor, and more particularly to a technique for protecting document data.

【0002】[0002]

【従来の技術】従来の日本語ワードプロセッサなどの文
書作成装置において作成された文書データは、後退キー
や抹消キーの操作によってすでに入力されている文字等
が消去されるようになっている。また、上書きによって
も変更されるようになっている。ここで、後退とは、カ
ーソル位置の1つ直前の1文字を削除する処理であり、
抹消とは、カーソル位置における1文字を削除する処理
である。
2. Description of the Related Art In document data created by a conventional document creating apparatus such as a Japanese word processor, characters or the like that have already been input are erased by operating a backward key or a delete key. Also, it can be changed by overwriting. Here, the backward movement is a process of deleting one character immediately before the cursor position,
Erasing is a process of deleting one character at the cursor position.

【0003】[0003]

【発明が解決しようとする課題】従来の文書作成装置に
あっては、消去・変更されてもよい文字列と消去・変更
されてはならない文字列とを区別する機能が付いていな
い。キーのタイピングミスによって入力された文字列を
消去・変更したり編集において不要な文字列を消去した
り間違った文字列を変更したりする上では問題はない。
しかし、正しく入力されており消去・変更する必要がな
く消去・変更されてはならない大切な文字列であって
も、不用意なキー操作ミスによって不測に消去・変更し
てしまうおそれがあった。その原因は、消去・変更を可
とする文字列と消去・変更を不可とする文字列とを識別
する機能がなかったからである。
The conventional document creating apparatus does not have a function of distinguishing a character string that may be erased / changed from a character string that should not be erased / modified. There is no problem in deleting / changing the input character string due to a key typing error, deleting an unnecessary character string in editing, or changing an incorrect character string.
However, there is a risk that even if an important character string is entered correctly and does not need to be deleted or changed and should not be deleted or changed, it may be accidentally deleted or changed due to an inadvertent key operation mistake. The reason is that there is no function to distinguish between a character string that can be erased and changed and a character string that cannot be erased and changed.

【0004】本発明は、このような事情に鑑みて創案さ
れたものであって、ユーザーが消去・変更されてはなら
ないとしている文字列に対してたとえ操作ミスにより後
退・抹消・上書きを行ったとしても、その処理が実行さ
れずその文字列を保護することができるようにすること
を目的とする。
The present invention was devised in view of such circumstances, and a character string that a user should not delete or change is backed up, deleted, or overwritten by an operation mistake. However, the purpose is to enable the processing to be performed and protect the character string.

【0005】[0005]

【課題を解決するための手段】本発明に係る文書作成装
置は、格納済みの文書データ中の任意の文字列について
保護領域を指定する手段と、前記格納済みの文書データ
に対する文字消去・変更の操作があったときにその消去
・変更対象の文字が前記保護領域にあるか否かを判断す
る手段と、その判断の結果、消去・変更対象の文字が保
護領域にないときは文字消去・変更の処理を許容し保護
領域にあるときは文字消去・変更の操作をキャンセルす
る手段と、文字消去・変更の処理を許容したとき処理後
の保護対象文字列とそれの保護領域を決める位置情報と
の関係を修正して元通りに保持する手段とを備えたこと
を特徴とするものである。
A document creating apparatus according to the present invention includes means for designating a protected area for an arbitrary character string in stored document data and means for erasing / changing characters in the stored document data. A means for determining whether or not the character to be erased / changed is in the protection area when an operation is performed, and if the result of the determination is that the character to be erased / changed is not in the protection area, character deletion / change is performed. And the position information that determines the protected area and the protected area after the processing when the character deletion / modification processing is allowed. And a means for retaining the original relationship by correcting the relationship.

【0006】[0006]

【作用】任意の文字列について保護領域を指定し、その
保護領域以外では文字の消去・変更を許容するものの、
保護領域では文字の消去・変更の操作をキャンセルし、
消去・変更を禁止する。許容したときには、文字の消去
・変更が行われ格納位置が変わるが、保護されるべき文
字列を保護領域に指定している状態は保持される。
[Function] Although a protected area is specified for an arbitrary character string and characters other than the protected area can be erased and changed,
In the protected area, cancel the operation of deleting and changing characters,
Prohibition of deletion / change. When allowed, characters are erased / changed and the storage position is changed, but the state in which a character string to be protected is specified in the protected area is retained.

【0007】[0007]

【実施例】以下、本発明に係る文書作成装置の一実施例
を図面に基づいて詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a document creating apparatus according to the present invention will be described in detail below with reference to the drawings.

【0008】図1は文書作成装置(日本語ワードプロセ
ッサ)の概略構成を示すブロック図である。図1におい
て、1はキー入力装置(キーボード)、2は編集装置、
3は表示装置である。
FIG. 1 is a block diagram showing a schematic configuration of a document creation device (Japanese word processor). In FIG. 1, 1 is a key input device (keyboard), 2 is an editing device,
3 is a display device.

【0009】キー入力装置1は、キーが押されることに
よりキーコードを発生するものであり、保護対象の文字
列の開始位置を指定する開始位置キー1a、保護対象の
文字列の終了位置を指定する終了位置キー1b、文字入
力位置を指定したり編集する文字を指定するためのカー
ソル移動キー1c、後退キー1d、抹消キー1e、文
字,数字,記号などを入力するための文字キー1f、そ
の他各種のキーを有している。
The key input device 1 generates a key code when a key is pressed, and a start position key 1a for designating a start position of a character string to be protected and an end position of a character string to be protected. End position key 1b, cursor movement key 1c for specifying a character input position and a character to be edited, backward key 1d, delete key 1e, character key 1f for inputting characters, numbers, symbols, etc. It has various keys.

【0010】編集装置2は、CPU(中央演算処理装
置),ROM(リードオンリーメモリ),RAM(ラン
ダムアクセスメモリ),FDD(フロッピーディスクド
ライバ)やHDD(ハードディスクドライバ)などを含
む(いずれも図示せず)。そして、入力されてきた文字
列を格納するための編集バッファ2aと、保護対象の文
字列に関しての保護領域の開始位置,終了位置を格納す
るための保護領域開始・終了情報バッファ2bを有して
いる。
The editing device 2 includes a CPU (central processing unit), ROM (read only memory), RAM (random access memory), FDD (floppy disk driver), HDD (hard disk driver), etc. (all shown). No). It also has an edit buffer 2a for storing the input character string, and a protected area start / end information buffer 2b for storing the start position and end position of the protected area for the protected character string. There is.

【0011】保護領域開始・終了情報バッファ2bに格
納されるべき保護領域の開始位置および終了位置は、そ
れぞれ文書の文頭から何文字目であるかによって決定さ
れる。例えば、保護領域開始・終了情報バッファ2bに
おいて開始位置のデータとしてn1 (文字目)が格納さ
れ、終了位置のデータとしてn2 (文字目)が格納され
ているとする。このとき、編集バッファ2aに格納され
ている文書データのうち、n1 文字目からn2 文字目ま
での領域に存在する文字列が保護領域となる。
The start position and end position of the protected area to be stored in the protected area start / end information buffer 2b are determined by the number of characters from the beginning of the document. For example, the protection n 1 (character position) as the data start position in the region start and end information buffer 2b is stored, and n 2 (th character) is stored as the data end position. In this case, among the document data stored in the edit buffer 2a, a character string existing in the region from the n 1 th character to n 2 th character is the protected area.

【0012】すなわち、保護領域は、編集バッファ2a
内の文字列と保護領域開始・終了情報バッファ2b内の
位置情報によって確定されるようになっている。
That is, the protected area is the edit buffer 2a.
It is determined by the character string in and the position information in the protection area start / end information buffer 2b.

【0013】後退キー1dや抹消キー1eや文字キー1
fの操作に従って編集バッファ2aに格納されている文
書データが更新されると、そのキー操作の都度、保護領
域開始・終了情報バッファ2bの内容も更新されるよう
になっている。
Backward key 1d, erasure key 1e and character key 1
When the document data stored in the edit buffer 2a is updated according to the operation of f, the contents of the protected area start / end information buffer 2b are also updated every time the key operation is performed.

【0014】表示装置3は、CRT(ブラウン管)やL
CD(液晶表示パネル)などからなり、入力された文字
列,編集された文字列の表示を行う。
The display device 3 is a CRT (CRT) or L
It consists of a CD (liquid crystal display panel), etc., and displays the input character string and the edited character string.

【0015】次に、簡単な動作例を図2〜図5に基づい
て説明する。
Next, a simple operation example will be described with reference to FIGS.

【0016】図2の(a)に示すように、編集バッファ
2aに、特に保護を必要としないとする文字列〔a,
b,c〕と、消去・変更されてはならないとしている文
字列〔A,B,C〕が格納されているとする。4文字目
は改行データとなっている。保護すべき文字列〔A,
B,C〕は文頭から数えて5文字目〜7文字目である。
したがって、図2の(b)に示すように、保護領域開始
・終了情報バッファ2bには、開始位置のデータとして
“5”が格納され、終了位置のデータとして“7”が格
納されている。表示装置3には、図2の(c)のように
文書データが表示されている。
As shown in FIG. 2A, the edit buffer 2a is provided with a character string [a,
b, c] and a character string [A, B, C] that must not be deleted or changed are stored. The fourth character is line feed data. Character string to be protected [A,
B, C] are the fifth to seventh characters counted from the beginning of the sentence.
Therefore, as shown in FIG. 2B, in the protected area start / end information buffer 2b, "5" is stored as the start position data and "7" is stored as the end position data. Document data is displayed on the display device 3 as shown in FIG.

【0017】図2の(c)において、ハッチングで示し
た保護領域4にカーソルが位置しているとき、後退キー
1dを操作しても、抹消キー1eを操作しても、あるい
は文字キー1fを操作しても、それらの操作は無視され
る。すなわち、保護されるべき文字列〔A,B,C〕に
対しては消去・変更の処理がキャンセルされる。
In FIG. 2 (c), when the cursor is positioned in the hatched protected area 4, either the backward key 1d or the delete key 1e is operated, or the character key 1f is pressed. If you do, those operations are ignored. That is, the erase / change process is canceled for the character string [A, B, C] to be protected.

【0018】保護領域4よりも後ろで行われる消去・変
更の処理は従来通りである。保護領域4よりも前で行わ
れる後退の処理を示したのが図3であり、抹消の処理を
示したのが図4であり、文字入力の処理を示したのが図
5である。
The erasing / modifying process performed after the protected area 4 is as usual. FIG. 3 shows the backward processing performed before the protected area 4, FIG. 4 shows the erasing processing, and FIG. 5 shows the character input processing.

【0019】まず、図3(後退処理)から説明する。図
2の状態において、後退処理によって文字「a」を消去
するとする。図2の(c)の画面表示状態において、カ
ーソル移動キー1cを操作してカーソルを文字「b」の
位置に置く。次いで、後退キー1dを操作すると、文字
「a」が消去される。図3の(a)のように、編集バッ
ファ2aにおいて、残った文字列の格納位置が1つずつ
繰り上がる。1文字目の「a」が消去されたのであるか
ら、1文字目に「b」が、2文字目に「c」が、4文字
目に「A」が、5文字目に「B」が、6文字目に「C」
がそれぞれ繰り上がって格納される。そして、それに応
じて、図3の(b)のように、保護されるべき文字列
〔A,B,C〕の開始位置のデータが“5”から“4”
に、終了位置のデータが“7”から“6”に、それぞれ
1ずつ小さくされる。画面表示状態は図3の(c)のよ
うになる。
First, FIG. 3 (reverse processing) will be described. In the state of FIG. 2, it is assumed that the character "a" is erased by the backward movement process. In the screen display state of FIG. 2C, the cursor movement key 1c is operated to place the cursor at the position of the character "b". Then, when the backward key 1d is operated, the character "a" is erased. As shown in FIG. 3A, the storage positions of the remaining character strings are moved up one by one in the edit buffer 2a. Since the first character "a" has been deleted, the first character "b", the second character "c", the fourth character "A", the fifth character "B" , "C" in the 6th character
Are moved up and stored. Then, accordingly, as shown in FIG. 3B, the data of the start position of the character string [A, B, C] to be protected is changed from "5" to "4".
Then, the data at the end position is reduced by 1 from "7" to "6". The screen display state is as shown in FIG.

【0020】次に、図4(抹消処理)を説明する。図2
の状態において、抹消処理によって今度は文字「b」を
消去するとする。図2の(c)の画面表示状態におい
て、カーソル移動キー1cを操作してカーソルを文字
「b」の位置に置く。次いで、抹消キー1eを操作する
と、文字「b」が消去される。図4の(a)のように、
編集バッファ2aにおいて、残った文字列の格納位置が
1つずつ繰り上がる。1文字目の「a」はそのままであ
る。2文字目の「b」が消去されたのであるから、2文
字目に「c」が、4文字目に「A」が、5文字目に
「B」が、6文字目に「C」がそれぞれ繰り上がって格
納される。そして、それに応じて、後退の場合と同様
に、図4の(b)の如く、保護されるべき文字列〔A,
B,C〕の開始位置のデータが“5”から“4”に、終
了位置のデータが“7”から“6”に、それぞれ1ずつ
小さくされる。画面表示状態は図4の(c)のようにな
る。
Next, FIG. 4 (erasure process) will be described. Figure 2
In this state, it is assumed that the character “b” is erased this time by the erasing process. In the screen display state of FIG. 2C, the cursor movement key 1c is operated to place the cursor at the position of the character "b". Next, when the delete key 1e is operated, the character "b" is deleted. As shown in (a) of FIG.
In the edit buffer 2a, the storage positions of the remaining character strings are moved up one by one. The first character "a" remains unchanged. Since the second character "b" has been deleted, "c" is the second character, "A" is the fourth character, "B" is the fifth character, and "C" is the sixth character. They are moved up and stored. Then, accordingly, as in the case of the backward movement, as shown in FIG. 4B, the character string to be protected [A,
The data of the start position of [B, C] is reduced from “5” to “4”, and the data of the end position is reduced from “7” to “6” by one. The screen display state is as shown in FIG.

【0021】次に、図5(文字入力処理)を説明する。
図2の状態において、文字入力処理によって文字「a」
と文字「b」の間に新たに文字「d」を挿入するとす
る。図2の(c)の画面表示状態において、カーソル移
動キー1cを操作してカーソルを文字「b」の位置に置
く。次いで、文字キー1fのうち「d」のキーを操作す
ると、文字「d」が挿入される。図5の(a)のよう
に、編集バッファ2aにおいて、挿入位置より後ろの文
字列の格納位置が1つずつ繰り下がる。1文字目の
「a」はそのままである。2文字目の「d」が新たに格
納される。そして、3文字目に「b」が、4文字目に
「c」が、6文字目に「A」が、7文字目に「B」が、
8文字目に「C」がそれぞれ繰り下がって格納される。
そして、それに応じて、図5の(b)の如く、保護され
るべき文字列〔A,B,C〕の開始位置のデータが
“5”から“6”に、終了位置のデータが“7”から
“8”に、それぞれ1ずつ大きくされる。画面表示状態
は図5の(c)のようになる。
Next, FIG. 5 (character input processing) will be described.
In the state of FIG. 2, the character “a” is input by the character input process.
It is assumed that a character "d" is newly inserted between and the character "b". In the screen display state of FIG. 2C, the cursor movement key 1c is operated to place the cursor at the position of the character "b". Next, when the "d" key of the character keys 1f is operated, the character "d" is inserted. As shown in FIG. 5A, in the edit buffer 2a, the storage position of the character string after the insertion position is moved down by one. The first character "a" remains unchanged. The second character "d" is newly stored. Then, "b" is the third character, "c" is the fourth character, "A" is the sixth character, "B" is the seventh character,
"C" is rolled down and stored in the eighth character.
Then, accordingly, as shown in FIG. 5B, the data of the start position of the character string [A, B, C] to be protected is changed from "5" to "6" and the data of the end position is "7". It is increased by 1 from "" to "8". The screen display state is as shown in FIG.

【0022】次に、より詳しい動作を図6〜図8のフロ
ーチャートに基づいて説明する。
Next, a more detailed operation will be described with reference to the flowcharts of FIGS.

【0023】キー入力装置1においてキーが操作される
と、キー入力装置1は編集装置2に対して対応するキー
コードを出力する。編集装置2はキーコードを入力する
と、編集処理を行い、キーコードに対応する文字を編集
バッファ2aに格納する。さらに、編集バッファ2aに
格納されている文字列を表示装置3に表示する。
When a key is operated in the key input device 1, the key input device 1 outputs a corresponding key code to the editing device 2. When the editing device 2 inputs a key code, the editing device 2 performs an editing process and stores a character corresponding to the key code in the editing buffer 2a. Further, the character string stored in the edit buffer 2a is displayed on the display device 3.

【0024】ここで、すでに編集バッファ2aに格納さ
れている文字列を消去・変更から保護しようとする場
合、カーソル移動キー1cを操作して保護対象の文字列
の先頭にカーソルを移動する。これは、ステップS1か
らステップS2の動作に対応する。次いで、開始位置キ
ー1aを操作する。すると、ステップS3に進み、カー
ソル位置の文字が文頭から何文字目にあるかを計算し、
ステップS4で保護領域の開始位置のデータを保護領域
開始・終了情報バッファ2bに格納する。次いで、カー
ソル移動キー1cを操作して保護対象の文字列の末尾に
カーソルを移動し、終了位置キー1bを操作する。する
と、ステップS5に進み、カーソル位置の文字が文頭か
ら何文字目にあるかを計算し、ステップS6で保護領域
の終了位置のデータを保護領域開始・終了情報バッファ
2bに格納する。以上により、消去・変更から保護すべ
き保護対象の文字列の領域が確定されたことになる。
Here, when the character string already stored in the edit buffer 2a is to be protected from deletion / change, the cursor moving key 1c is operated to move the cursor to the beginning of the character string to be protected. This corresponds to the operation from step S1 to step S2. Then, the start position key 1a is operated. Then, the process proceeds to step S3, the character at the cursor position is calculated from the beginning of the sentence,
In step S4, the data at the start position of the protection area is stored in the protection area start / end information buffer 2b. Then, the cursor movement key 1c is operated to move the cursor to the end of the character string to be protected, and the end position key 1b is operated. Then, the process proceeds to step S5, the character position of the character at the cursor position from the beginning of the sentence is calculated, and the data of the end position of the protection area is stored in the protection area start / end information buffer 2b in step S6. As described above, the area of the character string to be protected, which should be protected from erasure / change, is fixed.

【0025】後退キー1dまたは抹消キー1eが操作さ
れたとき、ステップS7に進み、現在のカーソル位置に
ある文字が文頭から何文字目にあるかを計算し、ステッ
プS8で、その値と保護領域開始・終了情報バッファ2
bの内容とを比較する。その比較の結果、カーソル位置
の文頭からの何文字目かの値が保護領域の範囲に該当す
るときは、ステップS1に戻り、後退処理や抹消処理を
キャンセルする。このキャンセル処理により、保護領域
内の文字データは消去されることなく、後退処理や抹消
処理から保護されることになる。
When the backward key 1d or the delete key 1e is operated, the process proceeds to step S7, where the character at the current cursor position is calculated from the beginning of the sentence, and in step S8 the value and the protected area are calculated. Start / end information buffer 2
Compare with the contents of b. As a result of the comparison, when the value of the number of characters from the beginning of the sentence at the cursor position falls within the range of the protected area, the process returns to step S1 and the backward process and the erasing process are canceled. By this canceling process, the character data in the protected area is not erased and is protected from the backward process and the erasing process.

【0026】なお、ステップS8の判断においては、抹
消キー1eが操作されているときは、カーソル位置が文
頭から何文字目かの値が保護領域の開始位置と終了位置
との間にあるかどうかで判断し、後退キー1dが操作さ
れているときは、カーソル位置が文頭から何文字目かの
値が保護領域の開始位置に1を足した位置と終了位置に
1を足した位置との間にあるかどうかで判断するものと
する。
In the judgment of step S8, when the delete key 1e is operated, whether the value of the character position of the cursor from the beginning of the sentence is between the start position and the end position of the protected area. When the backward key 1d is operated, the value of the character position of the cursor from the beginning of the sentence is between the position where 1 is added to the start position of the protected area and the position where 1 is added to the end position. Judgment should be made based on whether or not

【0027】ステップS8の判断において保護領域の範
囲に該当しないときは、ステップS9に進み、後退処理
または抹消処理を実行して編集バッファ2aに処理後の
データを格納し直す。そして、ステップS10におい
て、保護領域開始・終了情報バッファ2bの内容につ
き、文頭から後退または抹消による文字消去位置までの
文字数より大きい値をもつものについては、換言すれ
ば、保護領域開始・終了情報バッファ2bの開始位置と
終了位置で指定されている保護領域よりも前で文字消去
が行われた場合には、図3,図4の例で示したように、
開始位置および終了位置のデータの値を1だけ小さくす
る。これにより、保護領域の前で文字の消去を行って
も、編集バッファ2aの文字列のうち保護対象となって
いる文字列とそれの領域指定のデータとの対応関係が元
通り保たれることになる。
If the judgment in step S8 does not fall within the range of the protected area, the process proceeds to step S9 to execute the backward process or the erasing process to store the processed data again in the edit buffer 2a. Then, in step S10, for the contents of the protection area start / end information buffer 2b having a value larger than the number of characters from the beginning of the sentence to the character erase position by backward or erasure, in other words, the protection area start / end information buffer When characters are erased before the protected area specified by the start position and end position of 2b, as shown in the examples of FIGS. 3 and 4,
The value of the data of the start position and the end position is decreased by 1. As a result, even if the character is erased in front of the protected area, the correspondence between the character string to be protected in the character string of the edit buffer 2a and the data for specifying the area is maintained as it is. become.

【0028】次に、文字入力の場合について説明する。
文字キー1fが操作されたとき、ステップS11に進
み、現在のカーソル位置にある文字が文頭から何文字目
にあるかを計算し、ステップS12で、その値と保護領
域開始・終了情報バッファ2bの内容とを比較する。そ
の比較の結果、カーソル位置の文頭からの何文字目かの
値が保護領域の範囲に該当するときは、ステップS1に
戻り、文字入力処理をキャンセルする。このキャンセル
処理により、保護領域内の文字データに対して新たな文
字データの挿入はなされることなく、文字入力(挿入)
から保護されることになる。
Next, the case of character input will be described.
When the character key 1f is operated, the process proceeds to step S11, where the character at the current cursor position is from the beginning of the sentence is calculated, and in step S12 the value and the protected area start / end information buffer 2b are stored. Compare with the content. As a result of the comparison, when the value of the number of characters from the beginning of the sentence at the cursor position falls within the range of the protected area, the process returns to step S1 and the character input process is canceled. By this cancellation processing, new character data is not inserted into the character data in the protected area, and character input (insertion) is performed.
Will be protected from

【0029】なお、ステップS12の判断においては、
カーソル位置が文頭から何文字目かの値が保護領域の開
始位置に1を足した位置と終了位置との間にあるかどう
かで判断するものとする。
In the judgment of step S12,
It is determined whether the value of the character position of the cursor from the beginning of the sentence is between the position obtained by adding 1 to the start position of the protected area and the end position.

【0030】ステップS12の判断において保護領域の
範囲に該当しないときは、ステップS13に進み、文字
入力処理を実行して編集バッファ2aに処理後のデータ
を格納し直す。そして、ステップS14において、保護
領域開始・終了情報バッファ2bの内容につき、文頭か
ら文字入力位置までの文字数より大きい値か等しい値を
もつものについては、換言すれば、保護領域開始・終了
情報バッファ2bの開始位置と終了位置で指定されてい
る保護領域よりも前で文字入力が行われた場合には、図
5の例で示したように、開始位置および終了位置のデー
タの値を1だけ大きくする。これにより、保護領域の前
に文字の入力を行っても、編集バッファ2aの文字列の
うち保護対象となっている文字列とそれの領域指定のデ
ータとの対応関係が元通り保たれることになる。
If the judgment in step S12 does not fall within the range of the protected area, the process proceeds to step S13, character input processing is executed, and the processed data is stored again in the edit buffer 2a. Then, in step S14, with respect to the contents of the protection area start / end information buffer 2b having a value greater than or equal to the number of characters from the beginning of the sentence to the character input position, in other words, the protection area start / end information buffer 2b. When a character is input before the protected area specified by the start position and end position of the, the data value of the start position and the end position is increased by 1 as shown in the example of FIG. To do. As a result, even if a character is input before the protected area, the correspondence relationship between the character string to be protected in the character string of the edit buffer 2a and the data for specifying the area is maintained as it is. become.

【0031】[0031]

【発明の効果】以上のように、本発明によれば、ユーザ
ーが消去・変更されてはならないとする文字列に対し
て、消去・変更の操作からの保護の処理を与えることが
でき、操作ミス等によって保護対象の文字列に消去・変
更の操作があったとしても、それをキャンセルして保護
することができる。
As described above, according to the present invention, it is possible to provide a process of protecting a character string that a user must not delete or change from the operation of deleting or changing the character string. Even if the character string to be protected has been deleted or changed due to a mistake or the like, it can be protected by canceling it.

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

【図1】本発明の一実施例に係る文書作成装置の概略構
成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a document creating apparatus according to an embodiment of the present invention.

【図2】実施例の簡単な動作例を示すバッファと表示の
初期状態の説明図である。
FIG. 2 is an explanatory diagram of a buffer and an initial state of display showing a simple operation example of the embodiment.

【図3】実施例の動作例で後退処理をしたときのバッフ
ァと表示の状態図である。
FIG. 3 is a state diagram of a buffer and a display when a backward process is performed in an operation example of the embodiment.

【図4】実施例の動作例で抹消処理をしたときのバッフ
ァと表示の状態図である。
FIG. 4 is a state diagram of a buffer and a display when erasing processing is performed in the operation example of the embodiment.

【図5】実施例の動作例で文字入力をしたときのバッフ
ァと表示の状態図である。
FIG. 5 is a state diagram of a buffer and a display when a character is input in the operation example of the embodiment.

【図6】実施例の動作説明に供するフローチャートであ
る。
FIG. 6 is a flowchart for explaining the operation of the embodiment.

【図7】実施例の動作説明に供するフローチャートであ
る。
FIG. 7 is a flowchart for explaining the operation of the embodiment.

【図8】実施例の動作説明に供するフローチャートであ
る。
FIG. 8 is a flowchart for explaining the operation of the embodiment.

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

1………キー入力装置 1a……開始位置キー 1b……終了位置キー 1c……カーソル移動キー 1d……後退キー 1e……抹消キー 1f……文字キー 2………編集装置 2a……編集バッファ 2b……保護領域開始・終了情報バッファ 3………表示装置 4………保護領域 1 --- Key input device 1a-Start position key 1b-End position key 1c-Cursor movement key 1d-Back key 1e-Erase key 1f-Character key 2 -... Editing device 2a-Edit Buffer 2b …… Protection area start / end information buffer 3 ………… Display device 4 ………… Protection area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 格納済みの文書データ中の任意の文字列
について保護領域を指定する手段と、前記格納済みの文
書データに対する文字消去・変更の操作があったときに
その消去・変更対象の文字が前記保護領域にあるか否か
を判断する手段と、その判断の結果、消去・変更対象の
文字が保護領域にないときは文字消去・変更の処理を許
容し保護領域にあるときは文字消去・変更の操作をキャ
ンセルする手段と、文字消去・変更の処理を許容したと
き処理後の保護対象文字列とそれの保護領域を決める位
置情報との関係を修正して元通りに保持する手段とを備
えたことを特徴とする文書作成装置。
1. A means for designating a protected area for an arbitrary character string in stored document data, and a character to be erased / changed when a character erase / change operation is performed on the stored document data. Means for deciding whether or not is in the protected area, and as a result of the decision, when the character to be erased / changed is not in the protected area, the character erasing / changing process is allowed, and when it is in the protected area, the character is erased・ Means for canceling the change operation and means for correcting the relationship between the character string to be protected after processing and the position information that determines the protected area of the character string when the character erasing / modifying process is permitted and holding it as it is. A document preparation device comprising:
JP5167790A 1993-07-07 1993-07-07 Document preparing device Pending JPH0728812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5167790A JPH0728812A (en) 1993-07-07 1993-07-07 Document preparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5167790A JPH0728812A (en) 1993-07-07 1993-07-07 Document preparing device

Publications (1)

Publication Number Publication Date
JPH0728812A true JPH0728812A (en) 1995-01-31

Family

ID=15856165

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5167790A Pending JPH0728812A (en) 1993-07-07 1993-07-07 Document preparing device

Country Status (1)

Country Link
JP (1) JPH0728812A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156670A (en) * 2014-08-13 2014-11-19 北京深思数盾科技有限公司 Data protection method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156670A (en) * 2014-08-13 2014-11-19 北京深思数盾科技有限公司 Data protection method and device

Similar Documents

Publication Publication Date Title
EP0650129A2 (en) Method and system for automatic formatting of user selected text
JPH0728812A (en) Document preparing device
US6593946B1 (en) Controlling terminal device to assist user operation
JPH05158778A (en) Picture information storage device
JPH07319859A (en) Retaining method for file in information processor
JPH0452859A (en) Character processor
JP2517812B2 (en) Information protection level setting method
JPS62263566A (en) Data eraser
JP2823188B2 (en) Information processing apparatus and method
JPH0581096A (en) Page deletion system for electronic filing device
US5423036A (en) System for interactive choice of either automatically using the file name for file erasure protection or a manuel-input code for file confidentially protection
JPH05189176A (en) Data editor
JPH07114563A (en) Document processor
JPH05250014A (en) Peripheral device for programmable controller
JPH07282050A (en) Document editing method and device
JPH05101059A (en) Document preparing device
JPH11154150A (en) Pen input document editor and computer readable storage medium storing pen input document editing program
JPH0520320A (en) Document editing processor
JPH03131958A (en) Document forming device provided with document recovery function
JPH09185618A (en) Character processing device
JPH0452860A (en) Character processor
JPH0581095A (en) Method for protecting file
JPS60129876A (en) Document processor
JP2003122744A (en) Character display control method
JPH0628356A (en) Data editing device