[go: up one dir, main page]

JPH0452858A - Document data processor - Google Patents

Document data processor

Info

Publication number
JPH0452858A
JPH0452858A JP2155528A JP15552890A JPH0452858A JP H0452858 A JPH0452858 A JP H0452858A JP 2155528 A JP2155528 A JP 2155528A JP 15552890 A JP15552890 A JP 15552890A JP H0452858 A JPH0452858 A JP H0452858A
Authority
JP
Japan
Prior art keywords
character
data
character data
document
memory
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
JP2155528A
Other languages
Japanese (ja)
Inventor
Toru Yamakita
徹 山北
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2155528A priority Critical patent/JPH0452858A/en
Publication of JPH0452858A publication Critical patent/JPH0452858A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To read out unoverwritten character data by previously saving character data already stored in a character data writing position to a saving memory in the case of inputting character data in an overwriting mode and then writing the inputting character data. CONSTITUTION:When a cursor is displayed on the position of character data A by an input part 12 in the displayed state of document data A to E previously stored in a document memory 17a on a display part 15 e.g. and new character data 123 are inputted, the displayed data are stored in a character buffer 17c and whether character data have already be stored in a data writing position pointed out by a cursor point 17b in the document memory 17a or not is decided by a CPU 11. At the time of deciding that the character data A have already be stored in the data writing position, the character data A in the memory 17a are saved and stored to/in a position pointed out by a stack pointer S in a stack memory 17c. Then, the leading character 1 stored in the buffer 17c is written in the position pointed by the pointer 17b in the memory 17a. Thereafter, the procedure is repeated.

Description

【発明の詳細な説明】 [産業上の利用分野〕 本発明は、ワードプロセッサやパーソナルコンピュータ
等の文書データ処理装置に係わり、特に、オーバライド
(上書き)モードにおいて文字入力を行なった際に、上
書きされる以前の文字を復帰させる文字データの書込み
/読出し制御に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to document data processing devices such as word processors and personal computers, and in particular, the present invention relates to document data processing devices such as word processors and personal computers. This relates to character data write/read control that restores previous characters.

[発明の概要] 本発明の文書データ処理装置は、オーバライドモード時
における文字データの入力に際し、文書メモリの文字デ
ータ書込み位置に既に記憶されている文字データを退避
メモリに予め退避させた後、上記入力文字データの文書
メモリに対する書込みを行なうことにより、必要に応じ
上書き前の文字データを上記退避メモリから読出せるよ
うにするものである。
[Summary of the Invention] When inputting character data in an override mode, the document data processing device of the present invention saves the character data already stored in the character data writing position of the document memory to the save memory in advance, and then performs the above-mentioned process. By writing the input character data into the document memory, the character data before being overwritten can be read from the save memory as necessary.

[従来の技術] 一般に、ワードプロセッサ等の文書データ処理装置では
、文字データの入力に際し、挿入モードと上書きモード
とが選択できるようになっている。
[Prior Art] Generally, in a document data processing device such as a word processor, it is possible to select between an insert mode and an overwrite mode when inputting character data.

前者、挿入モードで文字入力を行なうと、その入力以前
にカーソル位置以降に存在した文字データが下位桁方向
にずれ、該カーソル位置に新たな入力文字が書込まれる
ことになる。また、後者、上書きモードで文字入力を行
なうと、カーソル位置に既に文字データが存在していて
も、その文字は新たな入力文字に書き替えられることに
なる。
In the former case, when a character is input in the insert mode, the character data that existed after the cursor position before the input is shifted toward the lower digits, and a new input character is written at the cursor position. Furthermore, when characters are input in the latter overwrite mode, even if character data already exists at the cursor position, that character will be replaced with a new input character.

C発明が解決しようとする課顯コ しかしながら、上記従来の文書データ処理装置では、上
書きモードにより文字入力を行なった場合、その文字入
力確定後に上書き前の文字データを読出すことができな
いため、特に、文書途中の空白部分において、多数の仮
名文字を連続入力し、−括して仮名/漢字変換を行なう
ような場合、変換後の文字数が予想以上に多くなり、そ
の結果上記文書空内部以降に予め存在した必要な文字ま
でも書き替えられてまうと、その書き替えられる以前の
文字を復帰させることができないという欠点がある。
Problems to be Solved by the Invention C However, in the conventional document data processing device described above, when a character is input in the overwrite mode, the character data before overwriting cannot be read out after the character input is confirmed. , If you enter a large number of kana characters in a row in a blank space in the middle of a document, and then perform kana/kanji conversion all at once, the number of characters after conversion will be larger than expected, and as a result, the number of characters after the blank part of the document above will be larger than expected. If even necessary characters that existed beforehand are rewritten, there is a drawback that the characters before being rewritten cannot be restored.

このような原因は、オーバライドモードにより文字入力
を行なった場合に、文書メモリ内の文字データ書込み位
置に予め存在する文字データが、新たな入力文字が書込
まれることによって消滅してしまうところにあると考え
られる。
The reason for this is that when characters are input in override mode, the character data that already exists at the character data writing position in the document memory is erased as new input characters are written. it is conceivable that.

してみれば、オーバライドモードにより新たに入力され
た文字データを文書メモリに書込む際に、その書込み位
置に予め存在している文字データを他のメモリに退避さ
せた後上記新入力文字データの書込みを行なうようにす
れば、文書書き替え後も上記能のメモリから必要に応じ
て書き替え前の文字データを読出せるようになるのは明
らかである。
When writing newly input character data to the document memory using override mode, the character data that already exists at the writing position is saved to another memory, and then the newly input character data is written to the document memory. It is clear that if writing is performed, the character data before being rewritten can be read from the memory of the above function as needed even after the document has been rewritten.

本発明の課題は、オーバライドモードにより文字入力を
行なった場合でも、書き替え以前の文字データを必要に
応じて読出すことが可能になる文書データ処理装置を提
供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document data processing device that allows character data before rewriting to be read out as necessary even when characters are input in override mode.

[課題を解決するための手段] 本発明の手段は次の通りである。[Means to solve the problem] The means of the present invention are as follows.

(1)文書データを記憶する文書記憶手段。(1) Document storage means for storing document data.

例えば、RAM等で構成された文書メモリである。ここ
で、文書データとは、1以上の文字データの集合によっ
て作成されるデータである。
For example, it is a document memory configured with RAM or the like. Here, document data is data created by a collection of one or more character data.

(2)文字データを入力する文字入力手段。(2) Character input means for inputting character data.

例えば、キーボード等の入力部に設けられた仮名文字キ
ー、英数字キー、記号キー等である。ここで、文字デー
タとは、仮名、漢字、英数字、記号の他に、罫線9図形
を含むデータである。
For example, they are kana character keys, alphanumeric keys, symbol keys, etc. provided on an input unit such as a keyboard. Here, the character data is data that includes nine ruled lines in addition to kana, kanji, alphanumeric characters, and symbols.

(3)前記文書データ記憶手段に対する文字データの書
込み位置を指定する位置指定手段。
(3) Position specifying means for specifying a writing position of character data in the document data storage means.

例えば、キーボード等の入力部に設けられたカーソルキ
ー等である。
For example, it is a cursor key provided on an input unit such as a keyboard.

(4)前記文字入力手段により入力された文字データを
前記文書記憶手段に書込む際に前記位置指定手段により
指定された文字データ書込み位置に既に文字データが記
憶されているか否かを判別する判別手段。
(4) Discrimination for determining whether or not character data is already stored at the character data writing position specified by the position specifying means when writing the character data input by the character input means into the document storage means. means.

例えば、ROMに記憶されたプログラムに従って動作す
るCPUである。
For example, it is a CPU that operates according to a program stored in a ROM.

(5)前記判別手段により前記書込み位置に既に文字デ
ータが記憶されていると判別された際に該記憶文字デー
タを退避した後に前記文字入力手段により入力された文
字データを書込むデータ退避/書込み手段。
(5) Data saving/writing in which when the determining means determines that character data is already stored in the writing position, the stored character data is saved and then the character data input by the character input means is written. means.

例えば、ROMに記憶されたプログラムに従って動作す
るCPUである。
For example, it is a CPU that operates according to a program stored in a ROM.

(6)前記データ退避/書込み手段により退避された文
字データを記憶する退避文字記憶手段。
(6) A save character storage means for storing the character data saved by the data save/write means.

例えば、RAM等で構成されたスタックメモリである。For example, it is a stack memory composed of RAM or the like.

(7)前記退避文字記憶手段に記憶された文字データを
前記位置指定手段により指定される前記文書記憶手段の
文字データ書込み位置に読出す退避文字読出し手段。
(7) Saved character reading means for reading character data stored in the saved character storage means to a character data writing position of the document storage means specified by the position specifying means.

例えば、ROMに記憶されたプログラムに従って動作す
るCPUである。
For example, it is a CPU that operates according to a program stored in a ROM.

[作用] 本発明の手段の作用は次の通りである。[Effect] The operation of the means of the invention is as follows.

文字入力手段により新たな文字データが入力されると、
位置指定手段により指定される文書記憶手段内の文字デ
ータ書込み位置に、既に文字データか記憶されているか
否かが判別手段により判別される。ここで、前記文書記
憶手段内の文字データ書込み位置に既に文字データが記
憶されていると判別されると、データ退避/書込み手段
により、その記憶文字データを退避文字記憶手段に退避
記憶させた後、前記文字入力手段により入力された新た
な文字の書込みを行なう。この後、退避文字読出し手段
により、前記退避文字記憶手段に記憶された文字データ
が前記位置指定手段により指定される前記文書記憶手段
の文字データ書込み位置に適宜読出される。
When new character data is input using the character input means,
The determining means determines whether character data has already been stored at the character data writing position within the document storage means specified by the position specifying means. Here, if it is determined that character data is already stored at the character data writing position in the document storage means, the data saving/writing means saves and stores the stored character data in the save character storage means. , writes a new character input by the character input means. Thereafter, the saved character reading means reads out the character data stored in the saved character storage means to the character data writing position of the document storage means specified by the position specifying means.

従って、オーバライドモードにより新たに入力された文
字データは、その文書メモリ上の書込み位置に予め存在
している文字データを退避メモリに退避させた後に書込
まれることになるので、文書書き替え後も、必要に応じ
て書き替え前の文字データを読出せるようになる。
Therefore, the character data newly input in the override mode is written after the character data that already exists at the writing position on the document memory is saved to the save memory, so even after the document is rewritten. , the character data before being rewritten can be read if necessary.

[実施例] 以下図面により本発明の一実施例について説明する。[Example] An embodiment of the present invention will be described below with reference to the drawings.

第1図は文書データ処理装置の構成を示すもので、同図
において、11は中央処理装置(CP U)であり、こ
の中央処理装置11には入力部12、ROM1B、辞書
メモリ14、表示部15、印字部16、そして、RAM
を使用した記憶部17が接続される。
FIG. 1 shows the configuration of a document data processing device. In the figure, 11 is a central processing unit (CPU), and this central processing unit 11 includes an input section 12, a ROM 1B, a dictionary memory 14, and a display section. 15, printing section 16, and RAM
A storage section 17 using a .

入力部12は、文書作成の際に操作される、仮名文字キ
ー、英数字キー、記号キーを始め、仮名/漢字変換キー
や入力位置の指定を行なうカーソルキー等の各種機能キ
ー、そして、オーlくライトモードにおける文字入力に
より消滅した文字データを順次復帰させる際に操作され
る呼出しキー12aを備えるもので、上記中央処理装置
11は、この入力部12から供給されるキー入力操作信
号に応じて、上記ROM13に予め記憶される制御プロ
グラムに基づき、回路各部の動作制御を行なつ〇 辞書メモリ14は、入力部12における仮名/漢字変換
キーが操作された際の、中央処理装置11による仮名/
漢字変換処理に対応する多数の漢字及び熟語データを予
め記憶するもので、この辞書メモリ14から読出された
仮名/漢字変換後の文字データは記憶部17における文
書メモリ17aに書込まれる。文書メモリ17aは、中
央処理装置11を通して順次入力される仮名/漢字変換
後の文字データを、文書データとして記憶するもので、
この文書メモリ17aにおける入力文字データの書込み
先頭位置は、カーソルポインタ17bにより指示され、
このカーソルポインタ17bにおけるポインタ指示値は
、上記入力部12におけるカーソルキーの操作に応じて
中央処理装置11を通して増減制御される。
The input unit 12 includes various function keys such as kana character keys, alphanumeric keys, and symbol keys, as well as kana/kanji conversion keys and cursor keys for specifying input positions, which are operated when creating a document. The central processing unit 11 is equipped with a call key 12a that is operated to sequentially restore character data that has disappeared due to character input in the light mode. The operation of each part of the circuit is controlled based on the control program stored in advance in the ROM 13. The dictionary memory 14 stores the kana/kanji conversion key by the central processing unit 11 when the kana/kanji conversion key in the input section 12 is operated. /
A large number of kanji and phrase data corresponding to the kanji conversion process are stored in advance, and the character data read from the dictionary memory 14 and subjected to kana/kanji conversion is written into the document memory 17a in the storage section 17. The document memory 17a stores character data after kana/kanji conversion that is sequentially input through the central processing unit 11 as document data.
The writing start position of the input character data in this document memory 17a is indicated by the cursor pointer 17b,
The pointer value indicated by the cursor pointer 17b is controlled to increase or decrease through the central processing unit 11 in accordance with the operation of the cursor keys in the input section 12.

また、上記文書データの作成に際し、入力部12におい
て仮名・漢字変換キーの操作前にキー入力される仮名文
字、英数字、記号等の文字データは、上記記憶部17に
おける文字バッファ17cに対して順次格納されるもの
で、仮名/漢字変換キーの操作により、この文字バッフ
ァ17cに格納された各文字データが中央処理装置11
に読出され、辞書メモリ14に応じて仮名/漢字変換さ
れた後、上記文書メモリ17Hに記憶される。
In addition, when creating the document data, character data such as kana characters, alphanumeric characters, symbols, etc. that are input in the input section 12 before operating the kana/kanji conversion key are stored in the character buffer 17c in the storage section 17. Each character data stored in this character buffer 17c is stored in the central processing unit 11 by operating the kana/kanji conversion key.
The document is read out, converted into kana/kanji according to the dictionary memory 14, and then stored in the document memory 17H.

さらに、記憶部17は、スタックメモリ17dを備えて
いる。このスタックメモリ17dには、上記文書メモリ
17aに対する文字データ書込みの際に、カーソルポイ
ンタ17bが指示する文字データ書込み位置に既に以前
の文書作成時において書込まれた文字データが記憶され
ていると、その前回の書込みにより記憶された文字デー
タが退避転送されて記憶されるもので、このスタックメ
モリ17dにおける退避文字データの書込みあるいは読
出し位置は、スタックポインタS。及びスタックポイン
タSに基づき指示される。ここで、スタックポインタS
。は、スタックメモリ17dにおけるスタックスタート
位置を示すもので、スタックポインタSのポインタ値は
上記スタックポインタS。を基準にして増減制御される
Furthermore, the storage unit 17 includes a stack memory 17d. When writing character data into the document memory 17a, the stack memory 17d stores character data written in a previous document creation at the character data writing position indicated by the cursor pointer 17b. The character data stored in the previous write is saved and transferred and stored, and the write or read position of the save character data in the stack memory 17d is the stack pointer S. and the stack pointer S. Here, the stack pointer S
. indicates the stack start position in the stack memory 17d, and the pointer value of the stack pointer S is the stack pointer S described above. Increase/decrease is controlled based on .

一方、表示部15は、入力部12によりキー入力される
文字データや仮名/漢字変換後の文書データ等を中央処
理装置11を通して順次表示するもので、この場合、例
えば上記キー入力文字データは文字バッファ17cに格
納された文字データに基づき表示され、文書データは上
記文書メモリ17aに記憶された文書データに基づき表
示される。また、印字部16は、入力部12における印
字機能キーの操作に応じて中央処理装置11を通し印字
動作するもので、この場合、被印字データは、上記文書
メモリ17aから読出され印字部16に転送される。
On the other hand, the display section 15 sequentially displays character data input by key input through the input section 12, document data after kana/kanji conversion, etc. through the central processing unit 11. In this case, for example, the key input character data is Display is based on the character data stored in the buffer 17c, and document data is displayed based on the document data stored in the document memory 17a. Further, the printing unit 16 performs a printing operation through the central processing unit 11 in response to the operation of a printing function key in the input unit 12. In this case, the data to be printed is read from the document memory 17a and sent to the printing unit 16. be transferred.

次に、上記構成による文書データ処理装置の動作につい
て説明する。
Next, the operation of the document data processing device having the above configuration will be explained.

第2図(A)及び(B)はそれぞれ文書メモリ17aに
おける文書データの記憶状態を示すもので、例えば同図
(A)で示すように文書メモリ17aに予め作成された
文書データrABCDE・・・」か記憶された状態で、
同図(B)に示すように該文書データrABCDE・・
・」の先頭から新たな文書データr123Jをオーバラ
イド(上書き)モードにて入力した場合のデータ書込み
処理について説明する。
2(A) and 2(B) each show the storage state of document data in the document memory 17a. For example, as shown in FIG. 2(A), document data rABCDE... ” or in a memorized state,
As shown in the same figure (B), the document data rABCDE...
The data write process when new document data r123J is input in the override mode from the beginning of "." will be explained.

第3図はスタックメモリ17dにおける退避文字データ
の記憶状態を示す図である。
FIG. 3 is a diagram showing the storage state of saved character data in the stack memory 17d.

第4図はオーバライドモードにおける新たな文書データ
の書込み処理を示すフローチャートであり、例えば表示
部15に対し文書メモリ17aに予め記憶された文書デ
ータrABCDE・・・」を表示させた状態で、入力部
12によりカーソルを文字データ「A」の位置に表示さ
せ新たな文字データr123Jを入力すると、このキー
入力文字データ「123」は文字バッファ17cに格納
されると共に、カーソルポインタ17bが示す文書メモ
リ17aのデータ書込み位置に既に文字データが記憶さ
れているか否かが中央処理装置11により判断される(
ステップSl)。このステップS1において「有」、つ
まり、カーソルポインタ17bが示す文書メモリ17a
のデータ書込み位置には既に文字データ「Aコが記憶さ
れていると判断されると、スタックポインタSがまずス
タックポインタS。を基準にして+、1される(ステッ
プS2)。
FIG. 4 is a flowchart showing the process of writing new document data in the override mode. 12, the cursor is displayed at the position of the character data "A" and new character data r123J is input. This key input character data "123" is stored in the character buffer 17c and is also stored in the document memory 17a indicated by the cursor pointer 17b. The central processing unit 11 determines whether character data is already stored at the data write position (
Step Sl). In this step S1, "present", that is, the document memory 17a indicated by the cursor pointer 17b.
When it is determined that the character data "A" has already been stored in the data write position, the stack pointer S is first incremented by 1 based on the stack pointer S (step S2).

このとき、スタックポインタS””So、つまり、スタ
ックポインタSがスタックポインタS。を基準にしてス
タックメモリ17d上を一巡した場合には、スタックポ
インタS。が+1され該スタックメモリ17d上の最も
古い退避文字データが消去される(ステップS3.S4
)。
At this time, the stack pointer S""So, that is, the stack pointer S is the stack pointer S. When one cycle is made on the stack memory 17d based on the stack pointer S. is +1 and the oldest saved character data on the stack memory 17d is erased (steps S3 and S4).
).

一方、上記ステップS3において「NO」、つまり、ス
タックポインタSは朱だS。まで−巡しないと判断され
ると、上記ステップSlの判断処理により確認されたカ
ーソルポインタ17bが示す文書メモリ17a内の文字
データrAJが、スタックメモリ17d内のスタックポ
インタSの指示位置に退避格納される(ステップS5)
。そして、文字バッファ17cに格納されている新たな
入力文字データ「123」の先頭文字「1」が文書メモ
リ17a内のカーソルポインタ17bの指示位置に書込
まれる(ステップS6)。
On the other hand, "NO" in step S3, that is, the stack pointer S is red. If it is determined that the character data rAJ in the document memory 17a indicated by the cursor pointer 17b confirmed by the determination process in step Sl is saved and stored in the position indicated by the stack pointer S in the stack memory 17d. (Step S5)
. Then, the first character "1" of the new input character data "123" stored in the character buffer 17c is written to the position indicated by the cursor pointer 17b in the document memory 17a (step S6).

ここで、中央処理袋W11で「、上記文字バッファ17
cに未だ文書メモリ17aに書込んでいない新たな入力
文字データが有るか否かが判断される(ステップS7)
。このステップS7において「文字有り」、つまり、上
記文字バッファ17cには未だ新たな入力文字データ「
23」が有ると判断されると、カーソルポインタ17b
が+1されて文書メモリ17aにおけるデータ書込み位
置が更新されると共に、文字バッファ17cにおけるデ
ータ読出し位置が上記文字データ「2」の位置に更新さ
れる(ステップS8.S9)。
Here, in the central processing bag W11, ", the above character buffer 17
It is determined whether there is new input character data in c that has not yet been written to the document memory 17a (step S7).
. In this step S7, it is determined that there is a character, that is, there is still new input character data in the character buffer 17c.
23", the cursor pointer 17b
is incremented by 1 and the data write position in the document memory 17a is updated, and the data read position in the character buffer 17c is updated to the position of the character data "2" (steps S8 and S9).

この後、ステップS1において、上記ステップS8にて
更新されたカーソルポインタ17bが示す文書メモリ1
7aのデータ書込み位置には既に文字データrBJが記
憶されていると判断されると、スタックポインタSが+
1されて該文字データrBJは上記文字データrAJに
続いてスタックメモリ17aに退避格納される(ステッ
プS2゜53−55)。すると、文書メモリ17aには
、上記予め記憶された文字データrBJに代って新たな
入力文字データ「2」が書込まれることになる(ステッ
プS6)  この後さらに、ステップS7〜S9−3l
〜S6を繰返すことで、文書メモリ17aに予め記憶さ
れた文字データ「C」がスタックメモリ17dに退避格
納され、代って文字バッファ17cに記憶されている新
たな入力文字データ「3」か書込まれる。
After that, in step S1, the document memory 1 indicated by the cursor pointer 17b updated in step S8 is
When it is determined that the character data rBJ has already been stored in the data write position 7a, the stack pointer S changes to +
1 and the character data rBJ is saved and stored in the stack memory 17a following the character data rAJ (step S253-55). Then, new input character data "2" is written in the document memory 17a in place of the previously stored character data rBJ (step S6). After this, steps S7 to S9-3l
By repeating ~S6, the character data "C" previously stored in the document memory 17a is saved and stored in the stack memory 17d, and the new input character data "3" stored in the character buffer 17c is written instead. be included.

これにより、文書メモリ17aの文書データ記憶状態は
第2図(B)に示すようになり、また、スタックメモリ
17dの退避文字データ記憶状態は第3図に示すように
なる。
As a result, the document data storage state of the document memory 17a becomes as shown in FIG. 2(B), and the saved character data storage state of the stack memory 17d becomes as shown in FIG.

第5図は退避文字データの呼出し処理を示すフローチャ
ートであり、例えば上記のように予め作成された文書デ
ータrABCDE・・・」に対し新たな文書データr1
23Jを上書きした状態で、その上書き位置に予め存在
した文字データrABcJか必要になり再度文書メモリ
17aに呼出す場合には、まず、表示部15におけるカ
ーソル位置を呼出しを行ないたい位置、例えば文字デー
タ「D」の位置にセットし呼出しキー12aを操作する
FIG. 5 is a flowchart showing the process of calling saved character data. For example, new document data r1 is
23J has been overwritten, and if you need the character data rABcJ that previously existed at the overwritten position and want to recall it to the document memory 17a again, first move the cursor position on the display section 15 to the position you want to recall, for example, the character data "rABcJ". D" position and operate the call key 12a.

すると、ます、スタックポインタ5−Soか否か、つま
り、文書メモリ17aからスタックメモリ17dに対し
文字データの退避が無かったか否かが判断される(ステ
ップAI)。このステップA1において「NO」、つま
り、スタックポインタSはS。から更新されており文書
メモリ17aからの文字データ退避処理が行なわれたと
判断されると、文書メモリ17aにおける呼出し位置以
降から改行マークまでの文字データ、この場合、文字デ
ータrDEF・・・」が1文字分ずつ右方向にシフトさ
れ、該呼出し位置に対応するメモリ領域が空き領域にセ
ットされる(ステップA2)。
Then, it is determined whether the stack pointer 5-So is reached, that is, whether or not character data has been saved from the document memory 17a to the stack memory 17d (step AI). "NO" in this step A1, that is, the stack pointer S is S. When it is determined that the character data has been saved from the document memory 17a, the character data from the calling position to the line feed mark in the document memory 17a, in this case, character data rDEF...'' is set to 1. It is shifted to the right by characters, and the memory area corresponding to the calling position is set to a free area (step A2).

このとき、文書メモリ17aにおける文書データの記憶
状態は、r123  DEF・・・」となる。
At this time, the storage state of the document data in the document memory 17a is "r123 DEF...".

すると、上記ステップA2における文書データ1文字ず
らし処理により得られたカーソルポインタ17bが指示
する文書メモリ17aの空き領域に対して、スタックポ
インタSが指示するスタックメモリ17d内の文字デー
タ「C」か呼出されて書込まれる(ステップA3)。こ
こで、スタックポインタSは【−)更新され、スタック
メモリ17d上では退避文字データrBJの位置が指示
される。(ステッ□プA4)。
Then, the character data "C" in the stack memory 17d indicated by the stack pointer S is called into the free space in the document memory 17a indicated by the cursor pointer 17b obtained by the process of shifting the document data by one character in step A2. and written (step A3). Here, the stack pointer S is updated to [-], and the position of the saved character data rBJ is indicated on the stack memory 17d. (Step □A4).

この後、さらに入力部12における呼出しキー12aを
操作すると、スタックポインタS −S 。
After this, when the call key 12a in the input unit 12 is further operated, the stack pointer S -S is activated.

になるまでステップA1〜A4の処理が繰返され、スタ
ックメモリ17dに退避記憶されている文字データが順
次rBJ  rAJと呼出され、文書メモリ17aにお
けるカーソルポインタ17bの指示位置に書込まれるよ
うになる。この場合、文書メモリ17aにおける文書デ
ータの記憶状態、及び表示部15における文書データの
表示状態は、r123ABcDE・・・」となり、上書
き前の文書データが完全に復帰されたことになる。
The processing of steps A1 to A4 is repeated until the character data saved in the stack memory 17d is sequentially called rBJ rAJ and written to the position indicated by the cursor pointer 17b in the document memory 17a. In this case, the storage state of the document data in the document memory 17a and the display state of the document data on the display unit 15 become "r123ABcDE...", meaning that the document data before overwriting has been completely restored.

したがって、上記構成の文書データ処理装置によれば、
新たな上書き処理により、予め作成された文書データが
書き替えられた場合でも、上書きにより抹消される書き
替え前の文字データをスタックメモリ17dに予め退避
させ、呼出しキー12aの操作に応じて適宜呼出すこと
ができるので、上書き入力処理により誤って必要な文書
データを失ってしまうことはない。
Therefore, according to the document data processing device having the above configuration,
Even if previously created document data is rewritten by a new overwriting process, the character data before being rewritten that will be erased by the overwriting is saved in advance in the stack memory 17d, and is called out as appropriate in accordance with the operation of the calling key 12a. Therefore, necessary document data will not be accidentally lost due to overwriting input processing.

[発明の効果] 以上のように本発明によれば、オーバライドモードによ
り文字入力を行なった場合でも、書き替え以前の文字デ
ータを必要に応じて読出すことが可能になる。
[Effects of the Invention] As described above, according to the present invention, even when characters are input in the override mode, character data before rewriting can be read out as necessary.

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

第1図は本発明の一実施例に係わる文書データ処理装置
の構成を示すブロック図、第2図(A)及び(B)はそ
れぞれ上記文書データ処理装置の文書メモリにおける文
書データの記憶状態を示す図、第3図は上記文書データ
処理装置のスタックメモリにおける退避文字データの記
憶状態を示す図、第4図は上記文書データ処理装置によ
るオーバライドモードでの文書データの書込み処理を示
すフローチャート、第5図は上記文書データ処理装置に
よる退避文字データの呼出し処理を示すフローチャート
である。 11・・・中央処理装置(CPU) 、12・・・入力
部、12a・・・呼出しキー 13・・・ROM、14
・・・辞書メモリ、15・・・表示部、16・・・印字
部、17・・・記憶部、17a・・・文書メモリ、17
b・・・カーソルポインタ、17C・・・文字バッファ
、17d・・・スタックメモリ。
FIG. 1 is a block diagram showing the configuration of a document data processing device according to an embodiment of the present invention, and FIGS. 2(A) and (B) respectively show the storage state of document data in the document memory of the document data processing device. FIG. 3 is a diagram showing the storage state of saved character data in the stack memory of the document data processing device, and FIG. 4 is a flowchart showing document data writing processing in the override mode by the document data processing device. FIG. 5 is a flowchart showing the process of calling saved character data by the document data processing device. DESCRIPTION OF SYMBOLS 11... Central processing unit (CPU), 12... Input part, 12a... Call key 13... ROM, 14
...Dictionary memory, 15...Display section, 16...Printing section, 17...Storage section, 17a...Document memory, 17
b...Cursor pointer, 17C...Character buffer, 17d...Stack memory.

Claims (1)

【特許請求の範囲】 文書データを記憶する文書記憶手段と、 文字データを入力する文字入力手段と、 上記文書データ記憶手段に対する文字データの書込み位
置を指定する位置指定手段と、 上記文字入力手段により入力された文字データを上記文
書記憶手段に書込む際に上記位置指定手段により指定さ
れた文字データ書込み位置に既に文字データが記憶され
ているか否かを判別する判別手段と、 この判別手段により上記書込み位置に既に文字データが
記憶されていると判別された際に該記憶文字データを退
避した後に上記文字入力手段により入力された文字デー
タを書込むデータ退避/書込み手段と、 このデータ退避/書込み手段により退避された文字デー
タを記憶する退避文字記憶手段と、この退避文字記憶手
段に記憶された文字データを上記位置指定手段により指
定される上記文書記憶手段の文字データ書込み位置に読
出す退避文字読出し手段と、 を具備したことを特徴とする文書データ処理装置。
[Scope of Claims] Document storage means for storing document data; character input means for inputting character data; position designation means for designating a writing position of character data in the document data storage means; and by the character input means. a determining means for determining whether or not character data is already stored at the character data writing position specified by the position specifying means when inputted character data is written into the document storage means; a data saving/writing means for saving the stored character data when it is determined that character data is already stored in the write position and then writing the character data inputted by the character input means; a save character storage means for storing the character data saved by the save character storage means; and a save character for reading the character data stored in the save character storage means to a character data writing position of the document storage means specified by the position specifying means. A document data processing device comprising: reading means;
JP2155528A 1990-06-15 1990-06-15 Document data processor Pending JPH0452858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2155528A JPH0452858A (en) 1990-06-15 1990-06-15 Document data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2155528A JPH0452858A (en) 1990-06-15 1990-06-15 Document data processor

Publications (1)

Publication Number Publication Date
JPH0452858A true JPH0452858A (en) 1992-02-20

Family

ID=15608044

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2155528A Pending JPH0452858A (en) 1990-06-15 1990-06-15 Document data processor

Country Status (1)

Country Link
JP (1) JPH0452858A (en)

Similar Documents

Publication Publication Date Title
US4912640A (en) Electronic type memo device
JPS6049425A (en) Display system for sentence processor
JPS645344B2 (en)
JPH0452858A (en) Document data processor
JPH05143575A (en) How to display input characters with enlarged characters
US4789255A (en) Correction buffer
JPH0522933B2 (en)
JPH0452859A (en) Character processor
JP2700001B2 (en) Character data output device
JP2504867B2 (en) Display method in text processing device
JPH0615317Y2 (en) Document processor
JPH0146893B2 (en)
JPH02289073A (en) Character processor
JP2606579B2 (en) Character display device
JPS6223031A (en) Variable magnification copying machine
JP3052339B2 (en) Document data processing device
JP2775728B2 (en) Document processing device
JPH0287269A (en) Data controller
JPH02120979A (en) Data control device
JP3124576B2 (en) Document processing method and apparatus
JPS6218596A (en) Work area display method
JPH03228174A (en) Character processor
JPS61151595A (en) Electronic appliance
JPS60221865A (en) Document processor
JPH0440741B2 (en)