JPH04280355A - document processing device - Google Patents

document processing device

Info

Publication number
JPH04280355A
JPH04280355A JP3067584A JP6758491A JPH04280355A JP H04280355 A JPH04280355 A JP H04280355A JP 3067584 A JP3067584 A JP 3067584A JP 6758491 A JP6758491 A JP 6758491A JP H04280355 A JPH04280355 A JP H04280355A
Authority
JP
Japan
Prior art keywords
division
area
position information
text
instruction
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
JP3067584A
Other languages
Japanese (ja)
Inventor
Masaya Goto
真哉 後藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3067584A priority Critical patent/JPH04280355A/en
Publication of JPH04280355A publication Critical patent/JPH04280355A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

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, and more particularly to a document processing apparatus capable of executing an undo function.

【0002】0002

【従来の技術】従来、この種の文書処理装置においては
、文字の削除,単語の削除,行の削除,範囲指定後の指
定範囲の削除等各削除機能実行後、削除された文章を復
帰させるアンドゥ(以下UNDOと称する)機能処理が
ある。さらに、前記UNDO機能にて文字の挿入や、1
つ前に実行されたキ−入力や機能に対して実行前の文章
状態に復帰させる装置も提案されている。
[Background Art] Conventionally, in this type of document processing device, deleted sentences are restored after each deletion function such as character deletion, word deletion, line deletion, deletion of a specified range after specifying a range, etc. There is an undo (hereinafter referred to as UNDO) function processing. Furthermore, you can use the UNDO function to insert characters and 1
A device has also been proposed that restores the state of the text before the most recently executed key input or function was executed.

【0003】0003

【発明が解決しようとする課題】しかしながら従来例で
は、サ−チ&リプレ−ス機能や、スペリング機能におけ
る正しい単語の置換機能等の、文章削除,挿入を一度に
実行する機能に対しては上記UNDO機能はなかった。 さらに、前記機能に対するUNDO機能を実行するため
には、文章情報を格納する領域以外に文章復帰用の特別
の記憶領域をあらかじめ確保する必要があり、コストア
ップとなってしまう問題点があった。
[Problem to be Solved by the Invention] However, in the conventional example, the above-mentioned functions for deleting and inserting sentences at once, such as the search and replace function and the correct word replacement function in the spelling function, are not available. There was no UNDO function. Furthermore, in order to execute the UNDO function for the above-mentioned function, it is necessary to secure in advance a special storage area for restoring text in addition to the area for storing text information, resulting in a problem of increased costs.

【0004】本発明は、上記の問題点を解決するために
なされたもので、文章情報格納領域を2分割した各分割
点に対して、各機能実行後実行前の文章に戻るための分
割点を各機能実行時に自動設定更新することにより、サ
−チ&リプレ−ス機能や、スペリング機能における正し
い単語の置換機能等の、文章削除,挿入を一度に実行す
る機能に対してもUNDO機能を実行できるとともに、
UNDO機能によって復帰された文章情報を文章の削除
,挿入が実行された状態に戻すことができる文書処理装
置を得ることを目的とする。
The present invention has been made to solve the above problems, and for each dividing point where the text information storage area is divided into two, a dividing point is set for returning to the text before execution after each function is executed. By automatically updating the settings when each function is executed, the UNDO function can also be used for functions that delete and insert sentences at once, such as the search and replace function and the correct word replacement function in the spelling function. It can be executed and
It is an object of the present invention to provide a document processing device capable of returning text information restored by an UNDO function to a state in which text deletion and insertion have been executed.

【0005】[0005]

【課題を解決するための手段】本発明に係る文書処理装
置は、文章情報に対する所定の編集開始または文章復帰
を指示する指示手段と、この指示手段による編集開始指
示に基づいてメモリ媒体の文章格納領域を分割する領域
分割手段と、指示手段による編集指示に基づいて分割さ
れた分割領域内に複数の分割位置情報を順次設定すると
ともに、指示手段による文章復帰指示に基づいて分割領
域内に設定された各分割位置情報の設定状態を更新する
更新手段とを設けたものである。
[Means for Solving the Problems] A document processing device according to the present invention includes an instructing means for instructing to start a predetermined editing of text information or returning to the text, and storing the text in a memory medium based on the editing start instruction by the instructing means. A region dividing means divides the region, and a plurality of pieces of division position information are sequentially set in the divided regions based on an editing instruction by the instruction means, and a plurality of division position information is set in the divided regions based on a text return instruction from the instruction means. and updating means for updating the setting state of each division position information.

【0006】また、更新手段は、領域分割手段により分
割された各分割領域の第1,第2の分割位置情報を分割
領域内に書込み設定する第1の分割情報設定手段と、指
示手段による所定の編集開始指示に応じて設定中の第1
,第2の分割位置情報をそれぞれ第3,第4の分割位置
情報として分割領域内に書込み設定する第2の分割情報
設定手段と、指示手段による文章復帰指示に応じて第3
,第4の分割位置情報を分割領域内の第1,第2の分割
位置情報に復帰する復帰手段とから構成したものである
The updating means also includes a first division information setting means for writing and setting first and second division position information of each divided area divided by the area dividing means into the divided area, and a first division information setting means for writing and setting the first and second division position information of each divided area divided by the area dividing means, and a predetermined information set by the instruction means. The first page being set in response to the instruction to start editing
, a second division information setting means for writing and setting the second division position information as third and fourth division position information in the divided area, respectively, and a third division information setting means for writing and setting the second division position information as third and fourth division position information, respectively, in the divided area,
, a return means for returning the fourth division position information to the first and second division position information within the division area.

【0007】さらに、指示手段による文章復帰指示に基
づいて第2の分割情報設定手段が設定した第3,第4の
分割位置情報をそれぞれ対応する第1,第2の分割位置
情報とそれぞれ分割領域に交換可能に設定する第3の分
割情報設定手段を設けたものである。
[0007] Furthermore, the third and fourth division position information set by the second division information setting means based on the text restoration instruction by the instruction means are combined with the corresponding first and second division position information and the respective division areas. A third division information setting means is provided to exchangeably set the division information.

【0008】[0008]

【作用】本発明においては、領域分割手段が指示手段に
よる編集開始指示に基づいてメモリ媒体の文章格納領域
を分割すると、更新手段が指示手段による編集指示に基
づいて分割された分割領域内に複数の分割位置情報を順
次設定するとともに、指示手段による文章復帰指示に基
づいて分割領域内に設定された各分割位置情報の設定状
態を更新し、文章復帰指示時に、削除された以前の文章
情報を復帰させることを可能とする。
[Operation] In the present invention, when the area dividing means divides the text storage area of the memory medium based on the editing start instruction from the instruction means, the updating means divides the text storage area into a plurality of divided areas based on the editing instruction from the instruction means. At the same time, the setting status of each division position information set in the divided area is updated based on the text restoration instruction by the instruction means, and when the text restoration instruction is issued, the deleted previous text information is updated. It is possible to restore it.

【0009】また、指示手段による編集指示に基づいて
第1の分割位置情報設定手段が領域分割手段により分割
されたの各分割領域の第1,第2の分割位置情報を分割
領域内に書込み設定し、第2の分割情報設定手段が指示
手段による所定の編集開始指示に応じて設定中の第1,
第2の分割位置情報をそれぞれ第3,第4の分割位置情
報として分割領域内に書込み設定して、文書格納領域内
に復帰情報を保持させる。そして、指示手段による文章
復帰指示に応じて復帰手段が第3,第4の分割位置情報
を分割領域内の第1,第2の分割位置情報に復帰させて
、削除された文章情報を復帰させることを可能とする。
[0009]Furthermore, the first division position information setting means writes and sets the first and second division position information of each divided area divided by the area division means into the divided area based on the editing instruction from the instruction means. The second division information setting means selects the first division information that is being set in response to a predetermined editing start instruction from the instruction means.
The second division position information is written and set in the division area as third and fourth division position information, respectively, and the return information is held in the document storage area. Then, in response to the text restoration instruction from the instruction means, the restoring means restores the third and fourth division position information to the first and second division position information in the divided area, thereby restoring the deleted text information. make it possible.

【0010】さらに、指示手段による文章復帰指示に基
づいて第3の分割情報設定手段が第2の分割情報設定手
段が設定した第3,第4の分割位置情報をそれぞれ対応
する第1,第2の分割位置情報とそれぞれ分割領域内で
交換設定し、削除された文章情報を復帰後、さらに削除
状態に復帰させることを可能とする。
Furthermore, based on the text restoration instruction by the instruction means, the third division information setting means sets the third and fourth division position information set by the second division information setting means to the corresponding first and second division position information, respectively. After the deleted text information is restored, it is possible to return the deleted text information to the deleted state.

【0011】[0011]

【実施例】図1は本発明の一実施例を示す文書処理装置
の外観を示す斜視図であり、(a)はキ−ボ−ド部1を
回動して表示器6面を開口した文書処理開始可能状態に
対応し、(b)はキ−ボ−ド部1を回動して表示器6面
を保護した収納状態に対応する。
[Embodiment] FIG. 1 is a perspective view showing the external appearance of a document processing device showing an embodiment of the present invention, and (a) shows a state in which the keyboard section 1 is rotated to open the display 6 side. This corresponds to a state in which document processing can be started, and (b) corresponds to a stored state in which the keyboard section 1 is rotated to protect the display 6 surface.

【0012】図において、キ−ボ−ド部1は、文字,数
字等キャラクタ入力用のキ−やコントロ−ル等のキ−群
2が配列され、非使用時にはヒンジ3を中心に回動させ
ることにより図1(b)に示すように折畳めるように構
成されている。4は装置内部のプリンタ部8にシ−ト状
記録媒体を給送するための給紙トレ−であり、同じく非
使用時には図1(b)に示すようにプリンタ部8を覆っ
て収納される。5は手動にて記憶媒体のセットや排出を
行うノブ、6は入力した文書等を文字の書体,大きさ,
アンダ−ライン付き,ボ−ルドフェイス文字等の文字修
飾情報に従って印刷物と同等に表示可能なビットマトリ
クスタイプの表示器、7は本体を可搬するための把手、
8は入力した文章を印刷するプリンタ部、9は入力した
文章情報等を格納するフロッピ−ディスク装置である。
In the figure, a keyboard section 1 has a group of keys 2 arranged thereon, such as keys for inputting characters such as letters and numbers, and keys such as controls, and is rotated around a hinge 3 when not in use. As a result, it is constructed so that it can be folded as shown in FIG. 1(b). Reference numeral 4 denotes a paper feed tray for feeding sheet-like recording media to the printer section 8 inside the device, and when not in use, it is stored covering the printer section 8 as shown in Fig. 1(b). . 5 is a knob for manually setting and ejecting the storage medium, 6 is a knob for manually setting and ejecting the storage medium, and 6 is for adjusting the input document etc. by changing the font, size, etc.
A bit matrix type display that can display character modification information such as underlined and bold face characters in the same manner as printed matter; 7 is a handle for transporting the main body;
Reference numeral 8 denotes a printer section for printing input text, and 9 a floppy disk device for storing input text information and the like.

【0013】図2は、図1に示した文書処理装置の制御
構成を説明するシステムブロック図であり、図1と同一
のものには同じ符号を付してある。
FIG. 2 is a system block diagram illustrating the control configuration of the document processing apparatus shown in FIG. 1, in which the same components as in FIG. 1 are given the same reference numerals.

【0014】図において、100はCPUで、ROM1
02に格納された処理プログラム(後述する図6〜図8
に示すフロ−チャ−トの各制御手順等を含む)に基づい
てバス108に接続される各デバイスを制御する。なお
、100aは更新手段、100bは領域分割手段である
。103はRAMで、所定容量の記憶容量を備え、後述
する作業用および文書デ−タ等が一時格納される。バス
108はアドレス信号を転送するアドレスバス,制御信
号を転送するコントロ−ルバスおよび各種デ−タを転送
するデ−タバス等から構成されている。
In the figure, 100 is a CPU, ROM1
The processing program stored in 02 (FIGS. 6 to 8, which will be described later)
Each device connected to the bus 108 is controlled based on the control procedures shown in the flowchart shown in FIG. Note that 100a is an updating means, and 100b is an area dividing means. A RAM 103 has a predetermined storage capacity and temporarily stores work data, document data, etc., which will be described later. The bus 108 is composed of an address bus for transferring address signals, a control bus for transferring control signals, a data bus for transferring various data, and the like.

【0015】このように構成された文書処理装置におい
て、領域分割手段100bが指示手段(本実施例でキ−
ボ−ド部1)による編集開始指示に基づいてメモリ媒体
(本実施例では後述するRAM103内の文章格納領域
111)の文章格納領域を分割すると、更新手段100
aが指示手段による編集指示に基づいて分割された分割
領域内に複数の分割位置情報を順次設定するとともに、
指示手段による文章復帰指示に基づいて分割領域内に設
定された各分割位置情報の設定状態を更新し、文章復帰
指示時に、削除された以前の文章情報を復帰させること
を可能とする。
In the document processing apparatus configured as described above, the area dividing means 100b is an instructing means (key in this embodiment).
When the text storage area of the memory medium (in this embodiment, the text storage area 111 in the RAM 103 described later) is divided based on an editing start instruction from the board unit 1), the updating unit 100
a sequentially sets a plurality of division position information within the division area divided based on the editing instruction by the instruction means,
The setting state of each division position information set in a divided area is updated based on a text restoration instruction by an instruction means, and it is possible to restore deleted previous text information when a text restoration instruction is given.

【0016】また、指示手段による編集指示に基づいて
第1の分割位置情報設定手段21が領域分割手段により
分割されたの各分割領域の第1,第2の分割位置情報を
分割領域内に書込み設定し、第2の分割情報設定手段2
2が指示手段による所定の編集開始指示に応じて設定中
の第1,第2の分割位置情報をそれぞれ第3,第4の分
割位置情報として分割領域内に書込み設定して、文書格
納領域内に復帰情報を保持させる。そして、指示手段に
よる文章復帰指示に応じて復帰手段23が第3,第4の
分割位置情報を分割領域内の第1,第2の分割位置情報
に復帰させて、削除された文章情報を復帰させることを
可能とする。
Furthermore, based on the editing instruction from the instruction means, the first division position information setting means 21 writes the first and second division position information of each divided area divided by the area division means into the divided area. and the second division information setting means 2
2 writes and sets the first and second division position information being set in the division area as third and fourth division position information, respectively, in response to a predetermined editing start instruction from the instruction means, and sets the information in the document storage area. to retain return information. Then, in response to the text restoration instruction from the instruction means, the restoring means 23 restores the third and fourth division position information to the first and second division position information in the divided area, and restores the deleted text information. make it possible to

【0017】さらに、指示手段による文章復帰指示に基
づいて第3の分割情報設定手段24が第2の分割情報設
定手段22が設定した第3,第4の分割位置情報をそれ
ぞれ対応する第1,第2の分割位置情報とそれぞれ分割
領域内で交換設定し、削除された文章情報を復帰後、さ
らに削除状態に復帰させる。
Further, based on the text restoration instruction from the instruction means, the third division information setting means 24 converts the third and fourth division position information set by the second division information setting means 22 to the corresponding first and fourth division information, respectively. The second division position information is set to be exchanged within each division area, and after restoring the deleted text information, the deleted text information is further restored to the deleted state.

【0018】なお、本実施例では上記各手段100a,
100b,21〜24をCPU100の機能手段として
構成する場合について示したが、各手段を独立の手段と
して構成しても同様の効果が得られる。
[0018] In this embodiment, each of the above means 100a,
Although the case where 100b, 21 to 24 are configured as functional means of the CPU 100 has been shown, the same effect can be obtained even if each means is configured as an independent means.

【0019】図3は、図2に示したキ−ボ−ド部1の各
キ−配置を示す平面図であり、文字あるいは数字の入力
キ−群,スペ−スキ−,バックスペ−スキ−,シフトキ
−その他制御キ−群等を有した公知のキ−配列で配置さ
れている。
FIG. 3 is a plan view showing the arrangement of each key on the keyboard section 1 shown in FIG. The keys are arranged in a known key arrangement including a shift key and a group of control keys.

【0020】図において、214は前画面キ−で、表示
器(LCD)6に表示されている現画面に対する前画面
を要求する際に押下される。217は次画面キ−で、表
示器(LCD)6に表示されている現画面に対する次画
面を要求する際に押下される。216は処理中の文書フ
ァイル先頭にカ−ソルを移動させるとともに、当該先頭
部分の表示を行わせるために使用させるキ−、220は
カ−ソル制御キ−群で、カ−ソル指示キ−220U(上
指示),220D(下指示),220L(左指示),2
20R(右指示)から構成されている。228はコ−ド
キ−で、このコ−ドキ−228と、例えば数値キ−「5
」とを同時に押下することにより、サ−チ&リプレ−ス
画面(図5(b)参照)を表示し、サ−チ&リプレ−ス
機能の実行を促すようにする。229はアンドゥ(UN
DO)指示キ−で、削除された文章を挿入,削除が実行
される前の文章に復帰させる際に、押下される。
In the figure, reference numeral 214 denotes a previous screen key, which is pressed when requesting the previous screen for the current screen displayed on the display (LCD) 6. Reference numeral 217 is a next screen key, which is pressed when requesting the next screen for the current screen displayed on the display (LCD) 6. 216 is a key used to move the cursor to the beginning of the document file being processed and display the beginning part; 220 is a group of cursor control keys, including a cursor instruction key 220U; (Upward direction), 220D (Downward direction), 220L (Left direction), 2
Consists of 20R (right indication). 228 is a code key, and this code key 228 and numeric key ``5''
'' at the same time, a search and replace screen (see FIG. 5(b)) is displayed, prompting execution of the search and replace function. 229 is undo (UN
DO) The instruction key is pressed to restore the deleted text to the text before insertion or deletion.

【0021】図4は、図2に示したRAM103ないの
デ−タ構造を説明する模式図である。
FIG. 4 is a schematic diagram illustrating the data structure of the RAM 103 shown in FIG.

【0022】図において、111は文章情報格納領域で
あり、現在入力中の文書やフロッピ−ディスクから読み
出した文書等,現在処理に関わる文書デ−タがここの領
域に展開される。121は2分割されて使用されている
当該領域の前半領域を示し、122は2分割されて使用
されている当該領域の後半領域を示す。123は2分割
されて使用されている当該領域の空き領域を示す。12
4は文章情報格納領域111内の第1分割点位置情報領
域113の内容が示す第1分割点を示し、125は後述
の文章情報格納領域内の第2分割点位置情報領域114
の内容が示す第2分割点を示す。112は文章情報格納
領域内カ−ソル位置情報領域であり、文章情報格納領域
111内のカ−ソル位置が示す文字が格納されている位
置情報が格納されている。115は後述の文章情報格納
領域111内の第3分割点位置情報領域で、第3分割点
位置情報が格納される。116は後述の文章情報格納領
域111内の第4分割点位置情報領域で、第4分割点位
置情報が格納される。
In the figure, reference numeral 111 is a text information storage area, and document data related to the current process, such as a document currently being input or a document read from a floppy disk, is developed in this area. 121 indicates the first half of the area that is used after being divided into two, and 122 indicates the second half of the area that is used after being divided into two. 123 indicates an empty area of the area which is divided into two and used. 12
4 indicates the first division point indicated by the contents of the first division point position information area 113 in the text information storage area 111, and 125 indicates the second division point position information area 114 in the text information storage area, which will be described later.
The second dividing point indicated by the contents of is shown. Reference numeral 112 denotes a cursor position information area within the text information storage area, which stores position information where the character indicated by the cursor position in the text information storage area 111 is stored. Reference numeral 115 denotes a third division point position information area within the text information storage area 111, which will be described later, in which third division point position information is stored. Reference numeral 116 denotes a fourth division point position information area in the text information storage area 111, which will be described later, in which fourth division point position information is stored.

【0023】以下、図5〜図8を参照しながら本発明に
係る文書処理装置におけるアンドゥ処理動作について説
明する。〔サ−チ&リプレ−ス機能処理後のアンドゥ処
理例〕図5は本発明に係る文書処理装置におけるアンド
ゥ処理推移を示す模式図である。
The undo processing operation in the document processing apparatus according to the present invention will be explained below with reference to FIGS. 5 to 8. [Example of undo processing after search and replace function processing] FIG. 5 is a schematic diagram showing the progress of undo processing in the document processing apparatus according to the present invention.

【0024】図において、(a)はサ−チ&リプレ−ス
機能起動前の表示状態を示し、61はカ−ソルを示し、
62は指定されるサ−チされる単語の位置を示すカ−ソ
ルを示す。(b)はサ−チ&リプレ−ス機能指定画面で
、63は通常表示にオ−バレイされたサ−チ&リプレ−
ス機能用画面で、操作者がサ−チに係る単語を入力する
ための部分63Aとリプレ−スに係る単語を入力するた
めの部分63Bとサ−チされたすべての単語に対してリ
プレ−スを行うか、1つ1つの単語に対して行うかを指
定するための部分63Cと前進または後退方向を指定す
るための部分63Dとから構成されている。なお、部分
63Aと部分63Bに対しては、操作者は文字キ−等を
用いて入力を行うことができ、部分63Cと部分63D
に対してはカ−ソル指示キ−220L,220Rを用い
て指定すれば良い。
In the figure, (a) shows the display state before starting the search and replace function, 61 shows the cursor,
Reference numeral 62 indicates a cursor indicating the position of the specified word to be searched. (b) is the search and replace function specification screen, and 63 is the search and replay function specification screen overlaid on the normal display.
On the screen for the search function, there is a section 63A for the operator to input a word related to the search, a section 63B for inputting the word for replacement, and a section 63B for inputting the word related to the search, and a section 63B for inputting the word related to the search. It is composed of a part 63C for specifying whether to perform a step or for each word, and a part 63D for specifying a forward or backward direction. It should be noted that the operator can enter input into the portions 63A and 63B using character keys, etc., and input into the portions 63C and 63D.
You can designate it using the cursor instruction keys 220L and 220R.

【0025】図6〜図8は本発明に係る文書処理装置に
おけるアンドゥ処理手順の一例を示すフロ−チャ−トで
ある。なお、(1)〜(41)はステップを示す。
FIGS. 6 to 8 are flowcharts showing an example of an undo processing procedure in the document processing apparatus according to the present invention. Note that (1) to (41) indicate steps.

【0026】電源が投入されると、先ず、文章情報格納
領域111を2分割する第1分割点と第2分割点の位置
情報をそれぞれ文章情報格納領域111内に第1分割点
位置情報領域113および第2分割点位置情報領域11
4に格納し(1)、カ−ソルが示す文字の位置を文章情
報格納領域111内のカ−ソル位置情報領域112に格
納する。次いで、第1分割点位置情報領域113の内容
を第3分割点位置情報領域115に格納し、第2分割点
位置情報領域114の内容を第4分割点位置情報領域1
16に格納して(2)、キ−ボ−ド部1からのキ−入力
を待機する(3)。ここで、何らかのキ−入力がなされ
た場合には、入力キ−の判別を行い(4)、サ−チ&リ
プレ−スを実行させるためのキ−(例えばCODEキ−
228と数値キ−「5」の同時押下操作)が判別された
場合には、ステップ(7)以降の処理を順次行い、アン
ドゥ機能を実行するためのアンドゥ指示キ−229が押
下入力された場合には、ステップ(5)以降の処理を行
う。
When the power is turned on, first, the position information of the first dividing point and the second dividing point that divides the text information storage area 111 into two is stored in the first dividing point position information area 113 in the text information storage area 111. and second division point position information area 11
4 (1), and stores the position of the character indicated by the cursor in the cursor position information area 112 within the text information storage area 111. Next, the contents of the first dividing point position information area 113 are stored in the third dividing point position information area 115, and the contents of the second dividing point position information area 114 are stored in the fourth dividing point position information area 1.
16 (2), and waits for a key input from the keyboard section 1 (3). Here, if any key input is made, the input key is determined (4) and a key (for example, CODE key) for executing search and replace is selected.
228 and the numeric key "5" at the same time), the processes from step (7) onwards are performed sequentially, and when the undo instruction key 229 is pressed to execute the undo function. , perform the processing from step (5) onwards.

【0027】一方、上記以外のキ−入力がなされた場合
は、図7に示すステップ(17)以降の処理を実行する
On the other hand, if a key input other than the above is made, the processing from step (17) shown in FIG. 7 is executed.

【0028】このため、ステップ(4)で判別されたキ
−がサ−チ&リプレ−スを実行させるためのキ−(例え
ばCODEキ−228と数値キ−「5」の同時押下操作
)であると判別された場合は、サ−チ&リプレ−スの単
語,すべての単語に対して行うか1つ1つの単語に対し
て行うかの指示、およびサ−チ方向の入力を行う(7)
。以下、この実施例では図5(a)に示すような文章が
表示器6に表示されていたものとして動作を説明する。
Therefore, if the key determined in step (4) is a key for executing search and replace (for example, simultaneous pressing of CODE key 228 and numeric key "5") If it is determined that there is a search and replace word, input the search direction, specify whether to search and replace for all words or for each word (7). )
. Hereinafter, in this embodiment, the operation will be described assuming that a sentence as shown in FIG. 5(a) is displayed on the display 6.

【0029】このようにして入力が終了すると、ステッ
プ(7)で入力された単語等についてカ−ソル現在位置
から指定された方向へサ−チを開始する(8)。もし、
入力された単語が検出できない場合は、ステップ(3)
に戻り、キ−入力待ちとなる。一方、入力された単語を
検出できた場合には、ステップ(9)に進む。例えば図
5(b)に示すようなサ−チ単語として「ABC」、リ
プレ−ス(置換)単語として「DEF」が、1つ1つの
単語に対して前進方向にサ−チ&リプレ−スを行うこと
が指示入力されていると、例えば図5(a)に示すカ−
ソル62で示すように単語「ABC」が存在するので、
ステップ(9)で検索された単語にカ−ソルを移動する
。図5(a)において、カ−ソル61はカ−ソル62に
移動する。ステップ(10)において、例えば図9に示
すようにカ−ソル位置で文章情報格納領域を2分割する
When the input is completed in this way, a search is started from the current cursor position in the specified direction for the word input in step (7) (8). if,
If the input word cannot be detected, proceed to step (3)
The screen returns to the screen and waits for key input. On the other hand, if the input word can be detected, the process proceeds to step (9). For example, as shown in Figure 5(b), the search word "ABC" and the replacement word "DEF" are searched and replaced one by one in the forward direction. For example, if an instruction is input to perform
Since the word "ABC" exists as shown in Sol 62,
Move the cursor to the word searched in step (9). In FIG. 5(a), cursor 61 moves to cursor 62. In FIG. In step (10), the text information storage area is divided into two at the cursor position, as shown in FIG. 9, for example.

【0030】図9は本発明に係る文書処理装置における
サ−チ&リプレ−ス機能後のUNDO機能処理状態推移
を示す模式図である。
FIG. 9 is a schematic diagram showing the transition of the UNDO function processing state after the search and replace function in the document processing apparatus according to the present invention.

【0031】図において、(a)は第2の分割情報設定
手段による設定状態を示し、文章情報格納領域111を
検索された単語「ABC」を前半領域の末尾に配置する
ように2分割した例に対応し、701は文章情報格納領
域111内に格納されるスペ−スコ−ドを示している。 702,703はそれぞれ第1分割点位置情報領域11
3,第2分割点位置情報領域114に格納された対応位
置を示してある。(b)は第2の分割情報設定手段によ
る設定状態を示し、711は第1分割点位置情報を示し
、704は第3分割点位置情報を示し、705は第2分
割点位置情報を示し、706は第4分割点位置情報を示
す。(c)は文章情報格納領域111で位置708が第
1分割点,第3分割点を示す。
In the figure, (a) shows the setting state by the second division information setting means, and is an example in which the text information storage area 111 is divided into two so that the searched word "ABC" is placed at the end of the first half area. 701 indicates a space code stored in the text information storage area 111. 702 and 703 are the first dividing point position information area 11, respectively.
3. The corresponding positions stored in the second division point position information area 114 are shown. (b) shows the setting state by the second division information setting means, 711 shows the first division point position information, 704 shows the third division point position information, 705 shows the second division point position information, 706 indicates fourth division point position information. (c) shows the text information storage area 111, and positions 708 indicate the first division point and the third division point.

【0032】ステップ(11)において2分割された前
半領域の第1分割点の位置情報を第1分割点位置情報領
域113に、後半領域の第2分割点の位置情報を第2分
割点位置情報領域114に格納する。次いで、上記ステ
ップ(2)と同様の処理を実行い、例えば図9(a)に
示す対応位置702を第3分割点位置情報領域115に
、対応位置703を第4分割点位置情報領域116に格
納する(12)。
The positional information of the first dividing point of the first half area divided into two in step (11) is stored in the first dividing point position information area 113, and the positional information of the second dividing point of the latter half area is stored as the second dividing point position information. It is stored in area 114. Next, the same process as step (2) above is executed, and for example, the corresponding position 702 shown in FIG. Store (12).

【0033】次いで、検索された単語を削除するべく文
章情報格納領域111の前半領域の末尾に配置されたサ
−チ単語を含まないように第1分割点位置情報領域11
3の内容を更新する(13)。例えば図9(b)に示す
対応位置711を新しい第1分割点とし、その位置を第
1分割点位置情報領域113に格納する。
Next, in order to delete the searched word, the first division point position information area 11 is moved so as not to include the search word placed at the end of the first half area of the text information storage area 111.
Update the contents of 3 (13). For example, the corresponding position 711 shown in FIG. 9(b) is set as a new first dividing point, and the position is stored in the first dividing point position information area 113.

【0034】次いで、リプレ−ス単語を分割された後半
領域の前方に位置するように文章情報格納領域111に
格納し(14)、第2分割点が格納されたリプレ−ス単
語の先頭文字を示すように第2分割点位置情報領域11
4の内容を更新する(15)。例えば図9(b)の対応
位置705を新しい第2分割点とし、その位置を第2分
割点位置情報領域114に格納する。次いで、新しい第
1分割点と第2分割点を2分割された領域の引き継ぎ位
置として文章を、図5(c)に示すように表示する(1
6)。
Next, the replacement word is stored in the text information storage area 111 so as to be located in front of the divided latter half area (14), and the first character of the replacement word in which the second division point is stored is stored. As shown, the second division point position information area 11
4 is updated (15). For example, the corresponding position 705 in FIG. 9(b) is set as a new second division point, and the position is stored in the second division point position information area 114. Next, the text is displayed as shown in FIG.
6).

【0035】一方、ステップ(4)で判別されたキ−が
UNDO機能起動のためのキ−である場合には、ステッ
プ(5)でUNDO機能を実行する。なお、ステップ(
5)を後述の図8に示す処理に変えても良い。
On the other hand, if the key determined in step (4) is a key for activating the UNDO function, the UNDO function is executed in step (5). Note that the step (
5) may be replaced with the process shown in FIG. 8, which will be described later.

【0036】先ず、第3分割点位置情報領域115の内
容を第1分割点位置情報領域113に格納し、第4分割
点位置情報領域116の内容を第2分割点位置情報領域
114に格納する(5)。例えば図9(c)の文章情報
格納領域111で位置708が第1分割点,第3分割点
を示し、位置710が第2分割点,第4分割点を示す。 なお、図9(c)の位置707,709はどの分割点に
も対応しない位置である。次いで、ステップ(16)と
同様にUNDO機能実行後、図5(a)に示す文章を表
示する(6)。
First, the contents of the third dividing point position information area 115 are stored in the first dividing point position information area 113, and the contents of the fourth dividing point position information area 116 are stored in the second dividing point position information area 114. (5). For example, in the text information storage area 111 of FIG. 9(c), position 708 indicates the first division point and third division point, and position 710 indicates the second division point and fourth division point. Note that positions 707 and 709 in FIG. 9(c) are positions that do not correspond to any dividing point. Next, after executing the UNDO function similarly to step (16), the text shown in FIG. 5(a) is displayed (6).

【0037】以上のように、サ−チ&リプレ−ス機能後
のアンドゥ処理例では、文章の削除,挿入を一度に行う
機能に対しても元の文章に復帰することが、文章情報領
域以外の特別の領域を持つことなく実行される。なお、
本例において削除される単語を前半領域に、挿入される
単語を後半領域に配置したが、これを逆に削除される単
語を後半領域に、挿入される単語を前半領域に配置し、
サ−チ&リプレ−ス機能実行後のリプレ−ス単語以降の
文字入力を余計な文章情報領域の分割をすることなく容
易に行わせることも可能である。
As described above, in the example of the undo process after the search and replace function, even if the function deletes and inserts sentences all at once, returning to the original sentence is possible only in areas other than the text information area. is executed without having a special area. In addition,
In this example, the word to be deleted is placed in the first half area, and the word to be inserted is placed in the second half area, but conversely, the word to be deleted is placed in the second half area, and the word to be inserted is placed in the first half area,
It is also possible to easily input characters after the replacement word after executing the search and replace function without unnecessary division of the text information area.

【0038】また、本実施例ではサ−チ&リプレ−ス機
能に限らず、スペリング機能の正しい単語に置き換える
コレクション機能やシソ−ラス機能の類義語で置き換え
る機能等で実行するように構成しても良い。 〔文字の入力後のUNDO機能処理例〕一方、図6のス
テップ(4)でのキ−判別により、入力キ−が上記以外
のキ−入力(サ−チ&リプレ−ス機能指示またはUND
Oキ−以外)の場合は、図7に示すステップ(17)以
降の処理を起動する。
Furthermore, in this embodiment, it is not limited to the search and replace function, but may also be configured to be executed by a collection function of the spelling function to replace with the correct word, a function of the thesaurus function to replace with synonyms, etc. good. [Example of UNDO function processing after character input] On the other hand, the key determination in step (4) in FIG.
(other than the O key), the process from step (17) shown in FIG. 7 is activated.

【0039】図10は本発明に係る文書処理装置におけ
る文字の入力後のUNDO機能処理状態推移を示す模式
図であり、図2,図4と同一のものには同じ符号を付し
てある。
FIG. 10 is a schematic diagram showing the transition of the UNDO function processing state after character input in the document processing apparatus according to the present invention, and the same parts as in FIGS. 2 and 4 are given the same reference numerals.

【0040】図において、(a)は文字入力前の文章表
示例を示し、(b)は文章情報格納領域111の分割例
を示し、801は文字入力が行われるカ−ソル位置を示
し、802は設定された第1分割点と第3分割点を示し
、803は設定された第2分割点と第4分割点を示す。 (c)は文字入力後の表示文書例を示し、(d)は文章
情報格納領域111の分割例を示し、805が新しい第
1分割点を示し、804は第3分割点を示し、806は
第2分割点と第4分割点を示す。(e)はUNDO機能
実行後の表示文章例示し、(f)は文章情報格納領域1
11の分割例を示し、807はUNDO機能にて更新さ
れた第1分割点と第3分割点を示し、809は第2分割
点と第4分割点を示し、808は分割点以外を示す。
In the figure, (a) shows an example of text display before character input, (b) shows an example of dividing the text information storage area 111, 801 shows the cursor position where character input is performed, and 802 803 indicates the set first and third division points, and 803 indicates the set second and fourth division points. (c) shows an example of a displayed document after characters are input, (d) shows an example of dividing the text information storage area 111, 805 shows the new first dividing point, 804 shows the third dividing point, and 806 shows the new dividing point. The second dividing point and the fourth dividing point are shown. (e) shows an example of the displayed text after executing the UNDO function, and (f) shows the text information storage area 1.
11 division examples are shown, 807 indicates the first division point and third division point updated by the UNDO function, 809 indicates the second division point and fourth division point, and 808 indicates other than the division point.

【0041】一方、ステップ(4)で判別されたキ−が
文字入力キ−である場合には、例えば図10に示すよう
にカ−ソル位置で文章情報格納領域を2分割する(17
)。次いで、2分割された前半領域の第1分割点の位置
情報を第1分割点位置情報領域113に、後半領域の第
2分割点の位置情報を第2分割点位置情報領域114に
格納する(18)。例えば図10(b)に示す第1分割
点位置情報802を第3分割点位置情報領域115と第
2分割点位置情報803を第4分割点位置情報領域11
6に格納する(19)。次いで、入力文字を分割された
前半領域の後方に位置するように文章情報格納領域11
1に格納し(20)、第1分割点が格納された入力文字
の位置を示すように第1分割点位置情報領域113の内
容を更新する(21)。これにより、図10(d)に示
す分割点805の位置を新しい第1分割点とし、その位
置を第1分割点位置情報領域113に格納する。次いで
、文字入力後の文章を表示し(22)、ステップ(3)
 に戻る。
On the other hand, if the key determined in step (4) is a character input key, the text information storage area is divided into two at the cursor position, as shown in FIG.
). Next, the position information of the first division point of the first half area divided into two is stored in the first division point position information area 113, and the position information of the second division point of the second half area is stored in the second division point position information area 114 ( 18). For example, the first dividing point position information 802 shown in FIG.
6 (19). Next, the text information storage area 11 is placed so that the input characters are located behind the divided first half area.
1 (20), and the contents of the first dividing point position information area 113 are updated to indicate the position of the input character where the first dividing point is stored (21). As a result, the position of the dividing point 805 shown in FIG. 10(d) is set as a new first dividing point, and the position is stored in the first dividing point position information area 113. Next, display the text after inputting the characters (22), and step (3)
Return to

【0042】以後、ステップ(4)でUNDOキ−の入
力が判別された場合、ステップ(5),(6)でUND
O機能処理が実行されると、図10(e)に示すように
UNDO機能処理後の文章を表示器6に表示する。
[0042] Thereafter, if it is determined in step (4) that the UNDO key has been input, the UND key is input in steps (5) and (6).
When the O function process is executed, the text after the UNDO function process is displayed on the display 6 as shown in FIG. 10(e).

【0043】以上のように、文字挿入に対して元の文章
に復帰することが分割された前半領域の分割点のみを変
更することにより実行される。なお、本実施例では文字
の挿入に対して前半領域のみの変更としたが、後半領域
のみを変更しても文字の挿入に対してUNDO機能は同
じように実行される。さらに、挿入文字を複数文字の情
報として、情報によって前半領域と後半領域に適宜分割
して配置するこによってUNDO機能を実行すれば、よ
り幅広く応用が可能となる。〔カ−ソル位置の文字削除
後のUNDO機能処理例〕図11は本発明に係る文書処
理装置におけるカ−ソル位置の文字削除後のUNDO機
能処理状態推移を示す模式図であり、図2,図4と同一
のものには同じ符号を付してある。
As described above, returning to the original text after character insertion is performed by changing only the dividing point of the divided first half area. In this embodiment, only the first half area is changed when inserting a character, but even if only the second half area is changed, the UNDO function is executed in the same way for inserting a character. Furthermore, if the UNDO function is executed by using the inserted characters as information of a plurality of characters and arranging the information by appropriately dividing the information into the first half area and the second half area, it becomes possible to apply it more widely. [Example of UNDO function processing after deleting the character at the cursor position] FIG. 11 is a schematic diagram showing the state transition of the UNDO function process after deleting the character at the cursor position in the document processing device according to the present invention. Components that are the same as those in FIG. 4 are given the same reference numerals.

【0044】図において、(a)は文字削除前の文章表
示例を示し、(b)は文章情報格納領域111の分割例
を示し、901は文字削除が行われるカ−ソル位置を示
し、902は設定された第1分割点と第3分割点を示し
、903は設定された第2分割点と第4分割点を示す。 (c)は文字削除後の表示文書例を示し、(d)は文章
情報格納領域111の分割例を示し、906が新しい第
2分割点を示し、904は第1分割点,第3分割点を示
し、905は第4分割点を示す。(e)はUNDO機能
実行後の表示文章例示し、(f)は文章情報格納領域1
11の分割例を示し、907はUNDO機能にて更新さ
れた第1分割点と第3分割点を示し、908は第2分割
点と第4分割点を示し、909は分割点以外を示す。
In the figure, (a) shows an example of text display before character deletion, (b) shows an example of dividing the text information storage area 111, 901 shows the cursor position where character deletion is performed, and 902 903 indicates the set first and third dividing points, and 903 indicates the set second and fourth dividing points. (c) shows an example of a displayed document after character deletion, (d) shows an example of dividing the text information storage area 111, 906 shows a new second dividing point, 904 shows the first dividing point, the third dividing point , and 905 indicates the fourth division point. (e) shows an example of the displayed text after executing the UNDO function, and (f) shows the text information storage area 1.
11 division examples are shown, 907 indicates the first division point and third division point updated by the UNDO function, 908 indicates the second division point and fourth division point, and 909 indicates other than the division point.

【0045】一方、ステップ(4)で判別されたキ−が
カ−ソル位置の文字を削除するキ−である場合には、図
11に示すようにカ−ソル位置で文章情報格納領域を2
分割する(23)。次いで、2分割された前半領域の第
1分割点の位置情報を第1分割点位置情報領域113に
、後半領域の第2分割点の位置情報を第2分割点位置情
報領域114に格納する(24)。例えば図11(b)
に示す第1分割点位置情報902を第3分割点位置情報
領域115と第2分割点位置情報903を第4分割点位
置情報領域116に格納する(25)。次いで、後半領
域の先頭にあるカ−ソル文字の次の文字位置を第2分割
点906が示すように第2分割点位置情報領域114の
内容を更新する(26)。以後、カ−ソル位置の文字削
除後の文章を表示し(27)、ステップ(3) に戻る
。これにより、図11(c)に示すように文字が削除さ
れた文章が表示器6に表示される。
On the other hand, if the key determined in step (4) is a key for deleting the character at the cursor position, the text information storage area is moved to 2 at the cursor position as shown in FIG.
Divide (23). Next, the position information of the first division point of the first half area divided into two is stored in the first division point position information area 113, and the position information of the second division point of the second half area is stored in the second division point position information area 114 ( 24). For example, Fig. 11(b)
The first dividing point position information 902 shown in is stored in the third dividing point position information area 115 and the second dividing point position information 903 is stored in the fourth dividing point position information area 116 (25). Next, the contents of the second dividing point position information area 114 are updated so that the second dividing point 906 indicates the character position next to the cursor character at the beginning of the second half area (26). Thereafter, the text after the character at the cursor position has been deleted is displayed (27), and the process returns to step (3). As a result, the text with the characters deleted is displayed on the display 6 as shown in FIG. 11(c).

【0046】以後、ステップ(4)でUNDOキ−の入
力が判別された場合、ステップ(5),(6)でUND
O機能処理が実行されると、図11(e)に示すように
UNDO機能処理後の文章を表示器6に表示する。
[0046] Thereafter, if it is determined in step (4) that the UNDO key has been input, the UND key is input in steps (5) and (6).
When the O function process is executed, the text after the UNDO function process is displayed on the display 6 as shown in FIG. 11(e).

【0047】以上のように、カ−ソル位置の文字の削除
に対して元の文章を復帰することが分割された後半領域
の分割点のみを変更することにより実行される。なお、
本実施例ではカ−ソル位置の文字の削除に対して後半領
域のみの変更としたが、前半領域のみを変更しても、例
えばカ−ソルの前の文字の削除に対してUNDO機能は
同じように実行される。さらに、削除文字を複数文字の
情報として、情報によって前半領域と後半領域に適宜分
割して配置する毎によってUNDO機能を実行すれば幅
広く応用が可能となる。〔ブロック範囲の移動後のUN
DO機能処理例〕図12は本発明に係る文書処理装置に
おけるブロック範囲移動後のUNDO機能処理状態推移
を示す模式図であり、図2,図4と同一のものには同じ
符号を付してある。
As described above, the restoration of the original text after deletion of the character at the cursor position is carried out by changing only the dividing point of the divided latter half area. In addition,
In this embodiment, only the second half area is changed when deleting the character at the cursor position, but even if only the first half area is changed, the UNDO function is the same for deleting the character before the cursor, for example. It is executed as follows. Furthermore, if the deletion character is information of a plurality of characters and the UNDO function is executed each time the information is divided and arranged into the first half area and the second half area, a wide range of applications becomes possible. [UN after moving block range
DO function processing example] FIG. 12 is a schematic diagram showing the UNDO function processing state transition after block range movement in the document processing apparatus according to the present invention, and the same parts as in FIGS. 2 and 4 are given the same reference numerals. be.

【0048】図において、(a)は設定されたブロック
範囲と移動先の文章表示例を示し、1001は指定文字
列ブロック範囲、例えば「ABC」を示し、1002は
前記指定文字列ブロック範囲1001の移動先としてブ
ロック範囲の後方に指定された指定されたカ−ソルを示
し、(b)はブロック範囲移動後に表示された文書例を
示し、(c)は文章情報格納領域111の分割例を示し
、1003は設定された第1分割点を示し、1004は
設定された第2分割点を示す。(d)は文章情報格納領
域111の分割例を示し、1005は設定された第3分
割点を示し、1006は設定された第1分割点を示し、
1007は設定された第4分割点を示し、1008は設
定された第2分割点を示す。
In the figure, (a) shows an example of displaying the set block range and the text to move to, 1001 shows the specified character string block range, for example "ABC", and 1002 shows the specified character string block range 1001. A specified cursor specified after the block range is shown as the movement destination, (b) shows an example of a document displayed after the block range has been moved, and (c) shows an example of division of the text information storage area 111. , 1003 indicates the set first division point, and 1004 indicates the set second division point. (d) shows an example of dividing the text information storage area 111, 1005 shows the set third dividing point, 1006 shows the set first dividing point,
1007 indicates the set fourth division point, and 1008 indicates the set second division point.

【0049】一方、ステップ(4)で判別されたキ−が
ブロック範囲を設定し、それを移動する機能を実行する
キ−である場合には、ステップ(28)以降に進み、上
記各機能処理で判別されたキ−以外のキ−(例えばフロ
ッピ−ディスクからの読出し指令入力に応じた文書情報
の展開等)であると判別された場合は、ステップ(39
)に進む。
On the other hand, if the key determined in step (4) is a key that executes the function of setting a block range and moving it, the process proceeds to step (28) and thereafter, and the above-mentioned function processing is performed. If it is determined that the key is a key other than the key determined in step (39
).

【0050】ステップ(28)において、ブロック範囲
の設定が、例えば表示器6上に表示される手順に従って
カ−ソル制御キ−群220等を使用することによって操
作者によって行われる。次いで、設定された指定文字列
ブロック範囲1001の移動先を操作者がカ−ソル10
02で指定する(29)。図12に示すようにカ−ソル
1002の位置で文章情報格納領域を2分割する(30
)。次いで、2分割された前半領域の第1分割点100
3の位置情報を第1分割点位置情報領域113に、後半
領域の第2分割点1004の位置情報を第2分割点位置
情報領域114に格納する(31)。次いで、分割され
た前半領域のブロック範囲の先頭文字から第1分割点で
示される文字を分割された後半領域の前方に位置するよ
うに複写し(32)、複写された後半領域のブロック範
囲の先頭文字位置を第4分割点1007として第4分割
点位置情報領域116に格納する(33)。次いで、複
写前の前半領域のブロック範囲の先頭文字の前の文字の
位置を第3分割点として第3分割点位置情報領域115
に格納する(34)。次いで、前半領域のブロック範囲
を削除するようにブロック範囲の最終文字の次の文字か
ら第1分割点が示す文字までをステップ(34)で設定
した第3分割点の後方に移動配置し(35)、さらに、
後方領域に移動したブロック範囲の文字列を配置した文
字列の後方に続くように複写し(36)、複写されたブ
ロック範囲の最終文字の位置を第1分割点とする第1分
割点を更新する(37)。これにより、例えば図12(
d)に示すように、第3分割点1005,第1分割点1
006,第4分割点1007,第2分割点1008が文
章情報格納領域111上にそれぞれ分割設定される。次
いで、図12図(b)に示すようにブロック範囲移動後
の文章を表示器6に表示する(38)。
In step (28), the block range is set by the operator, for example, by using the cursor control key group 220 in accordance with the procedure displayed on the display 6. Next, the operator moves the cursor 10 to the destination of the designated character string block range 1001 that has been set.
02 (29). As shown in FIG. 12, the text information storage area is divided into two at the position of the cursor 1002 (30
). Next, the first dividing point 100 of the first half area divided into two
3 is stored in the first division point position information area 113, and the position information of the second division point 1004 in the latter half area is stored in the second division point position information area 114 (31). Next, the characters indicated by the first division point from the first character of the block range of the divided first half area are copied so as to be positioned in front of the divided second half area (32), and the characters of the block range of the copied second half area are copied. The first character position is stored as the fourth division point 1007 in the fourth division point position information area 116 (33). Next, the position of the character before the first character in the block range of the first half area before copying is set as the third division point, and the third division point position information area 115
(34). Next, in order to delete the block range in the first half area, the character from the last character in the block range to the character indicated by the first division point is moved and arranged after the third division point set in step (34) (35 ),moreover,
Copy the character string in the block range moved to the rear area so that it continues after the placed character string (36), and update the first division point with the position of the last character in the copied block range as the first division point. (37). As a result, for example, FIG. 12 (
As shown in d), the third division point 1005, the first division point 1
006, a fourth dividing point 1007, and a second dividing point 1008 are set to divide the text information storage area 111, respectively. Next, as shown in FIG. 12(b), the text after the block range has been moved is displayed on the display 6 (38).

【0051】以後、ステップ(4)でUNDOキ−の入
力が判別された場合、ステップ(5),(6)でUND
O機能が実行されると、図12(b)の状態から図12
(a)に示す状態に切り換え表示される。以上のように
、ブロック範囲の移動に対しても分割された文章情報の
空き領域を有効に使用することによって文章情報領域以
外の特別な領域を持つことなく実行される。また、本実
施例は移動以外の各種のブロック操作等にも応用できる
。 〔UNDO機能による文章置換処理例〕図8に示すフロ
−チャ−トのステップ(40)で、第1分割点位置情報
領域113の値と第3分割点位置情報領域115の内容
と交換し、第2分割点位置情報領域114の内容と第4
分割点位置情報116の内容とを交換し、ステップ(4
1)でステップ(16)と同様の処理でUNDO機能実
行後の文章を表示する。これにより、例えばステップ(
40)で図9(c)に示した第1分割点707を第3分
割点、第2分割点709を第4分割点に設定することに
よって、サ−チ&リプレ−ス実行後、UNDO機能にて
復帰した図5(a)の表示画面は次のUNDO機能にて
、図5(c)に示すサ−チ&リプレ−ス実行後の画面に
再復帰される。同様にして、図10(f)に示した分割
点以外808を第3分割点とし、図11(f)に示した
分割点以外を第3分割点とし、図12(d)に示した第
1分割点1006を第3分割点とし、第2分割点100
8を第4分割点とすることによって、各実施例において
もUNDO実行後の画面を機能実行後の画面に再復帰す
ることが可能となる。
[0051] Thereafter, if it is determined in step (4) that the UNDO key has been input, the UND key is input in steps (5) and (6).
When the O function is executed, the state shown in FIG. 12(b) changes from the state shown in FIG.
The display is switched to the state shown in (a). As described above, even when moving a block range, by effectively using the free area of the divided text information, the movement can be executed without having a special area other than the text information area. Furthermore, this embodiment can be applied to various block operations other than movement. [Example of text replacement processing using UNDO function] In step (40) of the flowchart shown in FIG. 8, the value of the first dividing point position information area 113 is exchanged with the content of the third dividing point position information area 115, The contents of the second division point position information area 114 and the fourth
and the contents of the dividing point position information 116, and step (4)
In step 1), the text after the UNDO function is executed is displayed in the same process as step (16). This allows for example the step (
40), by setting the first dividing point 707 shown in FIG. 9(c) as the third dividing point and the second dividing point 709 as the fourth dividing point, the UNDO function is activated after executing the search and replace. The display screen shown in FIG. 5(a) returned in step 10 is returned to the screen shown in FIG. 5(c) after execution of search and replace by the next UNDO function. Similarly, 808 other than the dividing point shown in FIG. 10(f) is set as the third dividing point, dividing point other than the dividing point shown in FIG. 11(f) is set as the third dividing point, and the dividing point 808 shown in FIG. 12(d) is set as the third dividing point. The first dividing point 1006 is the third dividing point, and the second dividing point is 100.
By setting 8 as the fourth division point, in each embodiment as well, it is possible to return the screen after UNDO execution to the screen after function execution.

【0052】以上のように、文章情報格納領域111を
2分割して使用する文書処理装置において、2つの分割
点(第1分割点,第2分割点)のそれぞれにUNDO機
能用の分割点(第3分割点,第4分割点)をもつことに
より、様々な機能に対するUNDO機能が文章情報格納
領域以外に特別なUNDO機能用の領域を持つことなく
実行することができるようになる。
As described above, in a document processing device that divides the text information storage area 111 into two parts, each of the two division points (first division point, second division point) has a division point ( By having the third division point and fourth division point), UNDO functions for various functions can be executed without having a special area for UNDO functions other than the text information storage area.

【0053】また、追加された分割点の機能を有効に利
用することによりUNNDO機能以外の、例えばカラム
間のデ−タの並び換え等の機能にも使用することが可能
である。さらに、本実施例を適用可能な装置として、電
子タイプライタを例にして説明したが、他の文書処理装
置(例えば日本語ワ−ドプロセッサ)であっても適用可
能である。
Furthermore, by effectively utilizing the function of the added dividing point, it is possible to use it for functions other than the UNDDO function, such as rearranging data between columns. Furthermore, although an electronic typewriter has been described as an example of a device to which this embodiment can be applied, it is also applicable to other document processing devices (for example, a Japanese word processor).

【0054】[0054]

【発明の効果】以上説明したように、本発明は、文章情
報に対する所定の編集開始または文章復帰を指示する指
示手段と、この指示手段による編集開始指示に基づいて
メモリ媒体の文章格納領域を分割する領域分割手段と、
指示手段による編集指示に基づいて分割された分割領域
内に複数の分割位置情報を順次設定するとともに、指示
手段による文章復帰指示に基づいて分割領域内に設定さ
れた各分割位置情報の設定状態を更新する更新手段とを
設けたので、削除文章の復帰処理のために新たなメモリ
領域を拡張することなく、所望の編集機能に対応するア
ンドゥ処理を起動することができる。
As explained above, the present invention provides an instruction means for instructing the start of a predetermined editing of text information or text restoration, and a method for dividing the text storage area of a memory medium based on the instruction to start editing by the instruction means. an area dividing means for
Sequentially setting a plurality of pieces of division position information in the divided areas based on the editing instruction by the instruction means, and setting the setting state of each piece of division position information set in the divided areas based on the text restoration instruction by the instruction means. Since the update means for updating is provided, it is possible to start an undo process corresponding to a desired editing function without expanding a new memory area for the process of restoring the deleted text.

【0055】また、更新手段は、領域分割手段により分
割されたの各分割領域の第1,第2の分割位置情報を分
割領域内に書込み設定する第1の分割情報設定手段と、
指示手段による所定の編集開始指示に応じて設定中の第
1,第2の分割位置情報をそれぞれ第3,第4の分割位
置情報として分割領域内に書込み設定する第2の分割情
報設定手段と、指示手段による文章復帰指示に応じて第
3,第4の分割位置情報を分割領域内の第1,第2の分
割位置情報に復帰する復帰手段とから構成したもので、
アンドゥ処理に必要な情報を文章格納領域内に設定する
ことができるので、メモリ容量を拡張することなく、種
々の編集機能処理後に、アンドゥ処理を起動することが
できる。
The updating means also includes first division information setting means for writing and setting first and second division position information of each divided area divided by the area dividing means into the divided area;
a second division information setting means for writing and setting the first and second division position information being set in the divided area as third and fourth division position information, respectively, in response to a predetermined editing start instruction from the instruction means; , a return means for returning the third and fourth division position information to the first and second division position information within the divided area in response to a text return instruction from the instruction means,
Since the information necessary for the undo process can be set in the text storage area, the undo process can be activated after various editing functions have been processed without expanding the memory capacity.

【0056】さらに、指示手段による文章復帰指示に基
づいて第2の分割情報設定手段が設定した第3,第4の
分割位置情報をそれぞれ対応する第1,第2の分割位置
情報とそれぞれ分割領域に交換可能に設定する第3の分
割情報設定手段を設けたもので、アンドゥ処理起動後に
、アンドゥ処理起動前状態、すなわち種々の編集機能処
理にも復帰することができる。
Furthermore, the third and fourth division position information set by the second division information setting means based on the text restoration instruction by the instruction means are combined with the corresponding first and second division position information and the respective division areas. A third division information setting means is provided for setting exchangeable information, and after starting the undo process, it is possible to return to the state before starting the undo process, that is, to various editing function processes.

【0057】従って、限定された文章格納領域であって
も、種々の編集機能に付随するアンドゥ処理を有効に起
動できる効果を奏する。
Therefore, even if the text storage area is limited, it is possible to effectively activate undo processing associated with various editing functions.

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

【図1】本発明の一実施例を示す文書処理装置の外観を
示す斜視図である。
FIG. 1 is a perspective view showing the appearance of a document processing device according to an embodiment of the present invention.

【図2】図1に示した文書処理装置の制御構成を説明す
るシステムブロック図である。
FIG. 2 is a system block diagram illustrating a control configuration of the document processing apparatus shown in FIG. 1;

【図3】図2に示したキ−ボ−ド部の各キ−配置を示す
平面図である。
FIG. 3 is a plan view showing the arrangement of keys on the keyboard section shown in FIG. 2;

【図4】図2に示したRAMないのデ−タ構造を説明す
る模式図である。
4 is a schematic diagram illustrating the data structure of the RAM shown in FIG. 2; FIG.

【図5】本発明に係る文書処理装置におけるアンドゥ処
理推移を示す模式図である。
FIG. 5 is a schematic diagram showing the progress of undo processing in the document processing device according to the present invention.

【図6】本発明に係る文書処理装置におけるアンドゥ処
理手順の一例を示すフロ−チャ−トである。
FIG. 6 is a flowchart showing an example of an undo processing procedure in the document processing device according to the present invention.

【図7】本発明に係る文書処理装置におけるアンドゥ処
理手順の一例を示すフロ−チャ−トである。
FIG. 7 is a flowchart showing an example of an undo processing procedure in the document processing device according to the present invention.

【図8】本発明に係る文書処理装置におけるアンドゥ処
理手順の一例を示すフロ−チャ−トである。
FIG. 8 is a flowchart showing an example of an undo processing procedure in the document processing device according to the present invention.

【図9】本発明に係る文書処理装置におけるサ−チ&リ
プレ−ス機能後のUNDO機能処理状態推移を示す模式
図である。
FIG. 9 is a schematic diagram showing the transition of the UNDO function processing state after the search and replace function in the document processing apparatus according to the present invention.

【図10】本発明に係る文書処理装置における文字の入
力後のUNDO機能処理状態推移を示す模式図である。
FIG. 10 is a schematic diagram showing the UNDO function processing state transition after character input in the document processing device according to the present invention.

【図11】本発明に係る文書処理装置におけるカ−ソル
位置の文字削除後のUNDO機能処理状態推移を示す模
式図である。
FIG. 11 is a schematic diagram showing the UNDO function processing state transition after deleting a character at the cursor position in the document processing device according to the present invention.

【図12】本発明に係る文書処理装置におけるブロック
範囲移動後のUNDO機能処理状態推移を示す模式図で
ある。
FIG. 12 is a schematic diagram showing the UNDO function processing state transition after block range movement in the document processing apparatus according to the present invention.

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

1        キ−ボ−ド部 6        表示器 100    CPU 100a  更新手段 100b  領域分割手段 102    ROM 103    RAM 1 Keyboard section 6 Indicator 100 CPU 100a Update means 100b Area dividing means 102 ROM 103 RAM

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】入力された文章情報を記憶するメモリ媒体
を備えた文書処理装置において、文章情報に対する所定
の編集開始または文章復帰を指示する指示手段と、この
指示手段による編集開始指示に基づいてメモリ媒体の文
章格納領域を分割する領域分割手段と、前記指示手段に
よる編集指示に基づいて分割された前記分割領域内に複
数の分割位置情報を順次設定するとともに、前記指示手
段による文章復帰指示に基づいて前記分割領域内に設定
された各分割位置情報の設定状態を更新する更新手段と
を具備したことを特徴とする文書処理装置。
Claims: 1. A document processing device comprising a memory medium for storing input text information, comprising an instruction means for instructing to start a predetermined editing of the text information or to return to the text, and an instruction to start editing based on the instruction to start editing by the instruction means. area dividing means for dividing a text storage area of a memory medium; and sequentially setting a plurality of division position information in the divided areas based on an editing instruction by the instruction means, and in response to an instruction to restore the text by the instruction means. A document processing apparatus comprising: updating means for updating the setting state of each division position information set within the division area based on the divided area.
【請求項2】更新手段は、領域分割手段により分割され
たの各分割領域の第1,第2の分割位置情報を前記分割
領域内に書込み設定する第1の分割情報設定手段と、指
示手段による所定の編集開始指示に応じて設定中の第1
,第2の分割位置情報をそれぞれ第3,第4の分割位置
情報として前記分割領域内に書込み設定する第2の分割
情報設定手段と、前記指示手段による文章復帰指示に応
じて前記第3,第4の分割位置情報を前記分割領域内の
第1,第2の分割位置情報に復帰する復帰手段とから構
成したことを特徴とする請求項1記載の文書処理装置。
2. The updating means includes a first division information setting means for writing and setting first and second division position information of each divided area divided by the area dividing means into the divided area, and an instruction means. The first one being set in response to a predetermined editing start instruction from
, second division information setting means for writing and setting second division position information as third and fourth division position information in the divided areas, respectively; 2. The document processing apparatus according to claim 1, further comprising a return means for returning the fourth division position information to the first and second division position information within the divided area.
【請求項3】指示手段による文章復帰指示に基づいて第
2の分割情報設定手段が設定した第3,第4の分割位置
情報をそれぞれ対応する第1,第2の分割位置情報とそ
れぞれ前記分割領域に交換可能に設定する第3の分割情
報設定手段を具備したことを特徴とする請求項2記載の
文書処理装置。
3. The third and fourth division position information set by the second division information setting means based on the text restoration instruction by the instruction means are used to add the third and fourth division position information to the corresponding first and second division position information, respectively. 3. The document processing apparatus according to claim 2, further comprising third division information setting means for setting exchangeable information in the area.
JP3067584A 1991-03-08 1991-03-08 document processing device Pending JPH04280355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3067584A JPH04280355A (en) 1991-03-08 1991-03-08 document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3067584A JPH04280355A (en) 1991-03-08 1991-03-08 document processing device

Publications (1)

Publication Number Publication Date
JPH04280355A true JPH04280355A (en) 1992-10-06

Family

ID=13349116

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3067584A Pending JPH04280355A (en) 1991-03-08 1991-03-08 document processing device

Country Status (1)

Country Link
JP (1) JPH04280355A (en)

Similar Documents

Publication Publication Date Title
US7609913B2 (en) Image processing apparatus, image processing method and storage medium
JPH069045B2 (en) Word processor
JPH04280355A (en) document processing device
JPH08249319A (en) Document creation device
JP3113066B2 (en) Document processing device with long sentence editing function
JPH0268654A (en) Document processing device
JP2718121B2 (en) Data printing device and data printing method
JP2798777B2 (en) Word processor
JPS62256123A (en) Document processor
JP2751224B2 (en) Document creation device
JPH08185507A (en) Document processing device with filing function
JP3124576B2 (en) Document processing method and apparatus
JP2672548B2 (en) Document creation device
JP2870869B2 (en) Document processing apparatus and method
JP2777067B2 (en) Document processing device
JPH04369766A (en) Method and device for processing document
JPH05274307A (en) Document creating apparatus and method
JPH05250014A (en) Peripheral device for programmable controller
JPH02151960A (en) character processing device
JPH04280361A (en) document processing device
JPH0462089B2 (en)
JPH0916790A (en) Pattern editing method
JPH0764980A (en) Next page creation control method for document creation apparatus and apparatus
JPH04268957A (en) Document preparing device
O'Shea Software Reviews: Microsoft Word for the Apple Macintosh