JP3052339B2 - Document data processing device - Google Patents

Document data processing device

Info

Publication number
JP3052339B2
JP3052339B2 JP2155529A JP15552990A JP3052339B2 JP 3052339 B2 JP3052339 B2 JP 3052339B2 JP 2155529 A JP2155529 A JP 2155529A JP 15552990 A JP15552990 A JP 15552990A JP 3052339 B2 JP3052339 B2 JP 3052339B2
Authority
JP
Japan
Prior art keywords
character
character string
corrected
data
document
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.)
Expired - Fee Related
Application number
JP2155529A
Other languages
Japanese (ja)
Other versions
JPH0452854A (en
Inventor
徹 山北
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 JP2155529A priority Critical patent/JP3052339B2/en
Publication of JPH0452854A publication Critical patent/JPH0452854A/en
Application granted granted Critical
Publication of JP3052339B2 publication Critical patent/JP3052339B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ワードプロセッサやパーソナルコンピュー
タ等の文書データ処理装置に係わり、特に、文書データ
内の任意の文字列を訂正する際の文字列置き換え制御に
関する。
The present invention relates to a document data processing device such as a word processor or a personal computer, and in particular, to character string replacement control when correcting an arbitrary character string in document data. About.

[発明の概要] 本発明の文書データ処理装置は、文書データ内の任意
の文字列を訂正する際に、訂正したい文字列内の先頭文
字を指示し、新たに入力された訂正文字列の末尾文字と
上記訂正したい文字列内の各文字との一致をその先頭文
字から順次検索すると共に、上記被訂正文字列の先頭文
字から上記一致検索文字までを上記訂正文字列に置き換
えることにより、文書データ文字列の訂正を簡単且つ正
確に行なえるようにするものである。
[Summary of the Invention] When correcting an arbitrary character string in document data, the document data processing apparatus of the present invention specifies the first character in the character string to be corrected and ends the newly input corrected character string. By sequentially searching for a match between a character and each of the characters in the character string to be corrected from the first character, and replacing the first character of the corrected character string to the matching search character with the corrected character string, The purpose of the present invention is to make it possible to easily and accurately correct a character string.

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

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

ところで、予め作成された文書データ中のある文字列
を訂正したい場合がある。
By the way, there is a case where it is desired to correct a certain character string in the document data created in advance.

第4図(A)〜(C)はそれぞれ上記上書きモードに
おける文字列訂正手順を示すもので、例えば文書データ
中の「当社は」を「弊社において」と訂正したい場合に
は、まず、同図(A)で示すように被訂正文字列「当社
は」の先頭文字「当」にカーソルを合わせ、同図(B)
で示すようにスペースデータを3文字分挿入して「当社
は」を含む被訂正文字列の文字数を訂正文字列「弊社に
おいて」の文字数に合わせる。この後、同図(C)で示
すように訂正文字列「弊社において」を入力することに
より、スペースデータを含む被訂正文字列「当社は」の
文書位置に訂正文字列「弊社において」が上書きされ訂
正が行なわれたことになる。
FIGS. 4 (A) to 4 (C) each show a character string correction procedure in the overwrite mode. For example, when it is desired to correct "our company" in the document data as "our company", FIG. As shown in (A), the cursor is placed on the first character "this" of the corrected character string "Our company", and FIG.
As shown by, three characters of space data are inserted, and the number of characters of the corrected character string including "we are" is adjusted to the number of characters of the corrected character string "at our company". Thereafter, as shown in FIG. 10C, by inputting the corrected character string "at our company", the corrected character string "at our company" overwrites the document position of the corrected character string "our company" including space data. This means that the correction has been made.

第5図は上記挿入モードにおける文字列訂正手順を示
すもので、まず、カーソルキーを被訂正文字列「当社
は」の先頭文字「当」に合わせ削除キーを3回操作する
ことにより、同図で示すように被訂正文字列「当社は」
を予め削除する。この後、訂正文字列「弊社において」
を入力することにより、上記被訂正文字列「当社は」を
削除した部分に訂正文字列「弊社において」が挿入され
訂正が行なわれたことになる。
FIG. 5 shows the character string correction procedure in the above insertion mode. First, the cursor key is set to the first character of the character string to be corrected "Our company" and the delete key is operated three times. As shown in the character string to be corrected
Is deleted in advance. After this, the correction string "at our company"
By inputting, the corrected character string "at our company" is inserted into the portion where the corrected character string "we are" is deleted, and the correction is performed.

[発明が解決しようとする課題] しかしながら、上記従来の文書データ処理装置で文字
列訂正を行なう場合、上書きモードあるいは挿入モード
の何れにおいても、訂正文字列の文字数等を考慮しなが
ら挿入や削除処理を行なわなければならず、そのための
キー操作が非常に多くなり繁雑で面倒であるばかりか、
誤操作によって必要な文字までも削除してしまう恐れが
ある。
[Problems to be Solved by the Invention] However, when performing the character string correction in the above-described conventional document data processing apparatus, in either the overwriting mode or the insertion mode, the insertion or deletion processing is performed in consideration of the number of characters of the corrected character string. Must be performed, the key operation for it becomes very large, it is complicated and troublesome,
Erroneous operation may delete necessary characters.

このような原因は、訂正文字列を入力した際に、上書
きモードでは該訂正文字列が単に上書きされ、挿入モー
ドでは該訂正文字列が単に挿入されるだけで、被訂正文
字列の処置を別途操作により行なわねばならないところ
にあると考えられる。
Such a cause is that when the correction character string is input, the correction character string is simply overwritten in the overwrite mode, and the correction character string is simply inserted in the insertion mode. It is thought that the operation must be performed.

してみれば、訂正文字列の入力に際し、該訂正文字列
と被訂正文字列とが自動的に入れ代るようにすれば、繁
雑なキー操作を行なうことなく、正確な文字列訂正を簡
単に行なえるようになるのは明らかである。
If the corrected character string is automatically replaced with the corrected character string when the corrected character string is input, accurate character string correction can be easily performed without complicated key operations. Obviously, you will be able to

本発明の課題は、被訂正文字列や訂正文字列の文字数
を考慮する必要なく、文字列の訂正作業を簡単且つ正確
に行なうことが可能になる文書データ処理装置を提供す
ることにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document data processing apparatus capable of easily and accurately correcting a character string without having to consider the number of characters in the corrected character string and the corrected character string.

[課題を解決するための手段] 本発明の手段は次の通りである。[Means for Solving the Problems] 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 composed of a RAM or the like. Here, the document data is data created by a set of one or more character data.

(2)前記文書記憶手段に記憶されている文書データ内
の任意の文字データを指示する指示手段。
(2) Instruction means for instructing arbitrary character data in the document data stored in the document storage means.

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

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

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

(4)前記文字入力手段により入力された文字列の末尾
の文字データと一致する文字データを前記指示手段によ
り指示された文書データ内の文字データから文書末尾方
向へ順次検索する文字検索手段。
(4) A character search means for sequentially searching character data in the document data designated by the instruction means from the character data in the document data designated by the instruction means in the document end direction, for character data matching the character data at the end of the character string input by the character input means.

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

(5)前記文書記憶手段に記憶されている文書データの
前記指示手段により指示された文字データから前記文字
検索手段により一致検索された文字データまでを前記文
字入力手段により入力された文字列に置き換える置き換
え手段。
(5) Replace the character data of the document data stored in the document storage means from the character data designated by the designation means to the character data matched and searched by the character search means with the character string inputted by the character input means. Replacement means.

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

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

文書記憶手段に予め記憶されている文書データの被訂
正文字列の先頭文字を指示手段により指示すると共に、
文字入力手段により訂正文字列を入力すると、この訂正
文字列の末尾の文字データと一致する文字データが文字
検索手段により前記指示手段で指示された被訂正文字列
の先頭の文字データから順次検索される。この後、前記
指示手段により指示された文書データの被訂正文字列の
先頭文字から前記文字検索手段により一致検索された文
字データまでが前記文字入力手段により入力された文字
列に置き換えられる。
Instructing the first character of the corrected character string of the document data previously stored in the document storage means by the instructing means,
When the corrected character string is input by the character input means, character data matching the character data at the end of the corrected character string is sequentially searched by the character search means from the leading character data of the corrected character string designated by the instruction means. You. Then, the character string input from the character input means is replaced from the first character of the corrected character string of the document data specified by the specifying means to the character data matched and searched by the character search means.

従って、予め作成された文書データ内の被訂正文字列
は、訂正文字列の入力に際し、自動的に置き換えられる
ことになるので、必要な文字列まで消去されることもな
く、正確で操作簡単な文字列訂正が行なえるようにな
る。
Therefore, the corrected character string in the document data created in advance is automatically replaced when the corrected character string is input, so that the required character string is not erased, and accurate and easy to operate. Character strings can be corrected.

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

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

入力部12は、文書作成の際に操作される、仮名文字キ
ー,英数字キー,記号キー,スペースキーを始め、仮名
/漢字変換キーや入力位置の指定を行なうカーソルキ
ー,実行キー等の各種機能キー、そして、文書データ内
の文字列訂正に際して操作される訂正キー12aを備える
もので、上記中央処理装置11は、この入力部12から供給
されるキー入力操作信号に応じて、上記ROM13に予め記
憶される制御プログラムに基づき、回路各部の動作制御
を行なう。
The input unit 12 includes various keys such as a kana character key, an alphanumeric key, a symbol key, a space key, a kana / kanji conversion key, a cursor key for designating an input position, an execution key, etc. A function key, and a correction key 12a operated when correcting a character string in the document data.The central processing unit 11 stores the function key in the ROM 13 according to a key input operation signal supplied from the input unit 12. The operation of each part of the circuit is controlled based on a control program stored in advance.

辞書メモリ14は、入力部12における仮名/漢字変換キ
ーが操作された際の、中央処理装置11による仮名/漢字
変換処理に対応する多数の漢字及び熟語データを予め記
憶するもので、この辞書メモリ14から読出された仮名/
漢字変換後の文字データは記憶部17における文書メモリ
17aに書込まれる。文書メモリ17aは、中央処理装置11を
通して順次入力される仮名/漢字変換後の文字データ
を、文書データとして記憶するもので、この文書メモリ
17aにおける入力文字データの書込み先頭位置は、カー
ソルポインタ17bにより指示され、このカーソルポイン
タ17bにおけるポインタ指示値は、上記入力部12におけ
るカーソルキーの操作に応じて中央処理装置11を通して
増減制御される。
The dictionary memory 14 previously stores a large number of kanji and idiom data corresponding to the kana / kanji conversion processing by the central processing unit 11 when the kana / kanji conversion key in the input section 12 is operated. Kana read from 14 /
The character data after the kanji conversion is stored in the document memory in the storage unit 17.
Written on 17a. The document memory 17a stores, as document data, kana / kanji converted character data sequentially input through the central processing unit 11.
The writing start position of the input character data in 17a is indicated by the cursor pointer 17b, and the pointer indicated value in the cursor pointer 17b is controlled to increase or decrease through the central processing unit 11 according to the operation of the cursor key in the input unit 12.

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

さらに、記憶部17は、訂正文字列バッファ17dを備え
ている。この訂正文字列バッファ17dには、上記入力部1
2における訂正キー12aの操作の際に入力され仮名/漢字
変換される文字データが順次訂正文字列として格納され
るもので、この訂正文字列バッファ17dに訂正文字列が
格納され実行キーが操作されると、この訂正文字列の末
尾文字は、カーソルポインタ17bが示す文書メモリ17a上
の文字データを先頭にして順次その一致/不一致が中央
処理装置11を通して検索判断される。ここで、訂征文字
列の末尾文字とカーソルポインタ17bが指示する指示文
字以降の文書データ内文字データとの一致が検索された
場合には、そのカーソルにより指示される文字データか
ら一致が検索された文字データまでの文書データ内文字
列が、上記中央処理装置11の制御により上記訂正文字列
に置き換えられることになる。
Further, the storage unit 17 includes a correction character string buffer 17d. The correction character string buffer 17d has the input unit 1
The character data that is input at the time of operation of the correction key 12a in 2 and is converted into kana / kanji is sequentially stored as a corrected character string. Then, with the character at the end of the corrected character string on the document memory 17a indicated by the cursor pointer 17b as the head, the match / mismatch is sequentially searched and determined through the central processing unit 11. Here, when a match between the last character of the correction character string and the character data in the document data after the designated character indicated by the cursor pointer 17b is found, a match is found from the character data designated by the cursor. The character string in the document data up to the input character data is replaced with the corrected character string under the control of the central processing unit 11.

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

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

第2図は(A)〜(D)はそれぞれこの文書データ処
理装置による文字列訂正手順を示すもので、例えば予め
作成され文書メモリ17aに記憶された文書データ内の
「当社は」を被訂正文字列とし、これを「弊社におい
て」と訂正するには、まず、同図(A)で示すように、
入力部12におけるカーソルキーを操作してカーソルによ
り被訂正文字列「当社は」の先頭文字「当」を指示させ
る。
FIGS. 2A to 2D each show a character string correction procedure by the document data processing apparatus. For example, "Our company" in the document data created in advance and stored in the document memory 17a is corrected. To correct the character string as “at our company”, first, as shown in FIG.
By operating a cursor key in the input unit 12, the first character "this" of the character string to be corrected "this company" is indicated by the cursor.

ここで、入力部12における訂正キー12aを操作する
と、第2図(B)で示すように、上記カーソル(カーソ
ルポインタ17b)により指示される被訂正文字列の先頭
文字「当」が反転表示されると共に、この被訂正文字列
が存在する行の次の行が1行分スクロールされ、代って
訂正文字列入力用の入力表示枠fが上記被訂正文字列に
対応して表示される。そして、第2図(C)で示すよう
に、上記入力表示枠fに対して被訂正文字列に続く先頭
の共通文字(この場合「、」)を含んで訂正文字列「弊
社において、」を入力し仮名/漢字変換させると、この
訂正文字列「弊社において、」は訂正文字列バッファ17
dに格納される。
Here, when the correction key 12a in the input section 12 is operated, as shown in FIG. 2 (B), the first character "this" of the corrected character string indicated by the cursor (cursor pointer 17b) is highlighted. At the same time, the next line after the line in which the corrected character string exists is scrolled by one line, and an input display frame f for inputting the corrected character string is displayed corresponding to the corrected character string. Then, as shown in FIG. 2 (C), the corrected character string “at our company” is input to the input display frame f including the first common character (in this case, “,”) following the character string to be corrected. When inputting and converting kana / kanji, this corrected character string "at our company"
Stored in d.

なお、上記入力表示枠fは、入力文字数に応じて拡大
される。
The input display frame f is enlarged according to the number of input characters.

第3図はこの文書データ処理装置による文字列訂正処
理を示すフローチャートであり、上記のように被訂正文
字列「当社は」に対応して訂正文字列「弊社におい
て、」を入力表示させた状態で、入力部12における実行
キー12aを操作すると、まず、文書データ内で反転表示
されている被訂正文字列の先頭文字「当」がカーソルポ
インタ17bの文字データ指示位置に基づき文書メモリ17a
から読出され、中央処理装置11において、訂正文字列バ
ッファ17dに格納されている訂正文字列の末尾文
字「、」と比較され、その一致/不一致が検索される
(ステソプS1,S2)。このステップS2において「不一
致」、つまり、訂正文字列の末尾文字「、」と被訂正文
字列の先頭文字「当」とは一致しないと判断されると、
その不一致文字(この場合「当」)が句点コード「。」
またはスペースコード「 」または改行コード「CR」の
何れかに一致するか否かが判断される(ステップS3)。
このステップS3において「NO」、つまり、上記ステップ
S2において不一致判断された被訂正文字「当」は「。」
「 」「CR」の何れにも一致しないと判断されると、被
訂正文字列の次の文字「社」が文書メモリ17aから読出
される(ステップS4)。そして、上記ステップS2に戻っ
て訂正文字列末尾文字「、」との一致検索処理が実行さ
れる。
FIG. 3 is a flow chart showing a character string correction process by this document data processing apparatus, in which the corrected character string "at our company" is input and displayed corresponding to the character string to be corrected "our company" as described above. When the execution key 12a of the input unit 12 is operated, first, the first character "this" of the corrected character string which is highlighted in the document data is stored in the document memory 17a based on the character data designated position of the cursor pointer 17b.
Are compared with the last character "," of the corrected character string stored in the corrected character string buffer 17d in the central processing unit 11, and a match / mismatch thereof is searched (steps S1, S2). In this step S2, if it is determined that "mismatch", that is, the last character "," of the corrected character string does not match the first character "this" of the corrected character string,
The mismatched character (in this case, “this”) is the period code “.”
Alternatively, it is determined whether or not it matches either the space code "" or the line feed code "CR" (step S3).
"NO" in step S3, that is,
The corrected character "this" determined to be mismatched in S2 is "."
If it is determined that the character string does not match any of "" and "CR", the character "sha" next to the character string to be corrected is read from the document memory 17a (step S4). Then, the process returns to the step S2 to execute a matching search process with the corrected character string end character “,”.

こうして、ステップS2〜S4における判断処理を繰返す
ことで、訂正文字列末尾文字「、」と被訂正文字列先頭
文字「当」からの一致検索処理が順次繰返され、該ステ
ップS2において「一致」、つまり、被訂正文字列「当社
は」に続く最初の文字「、」が上記訂正文字列の末尾文
字「、」に一致したことが検索されると、文書メモリ17
aにおける被訂正文字列の先頭文字「当」から上記ステ
ップS2において一致判断された文字「、」までの文字列
「当社は、」が、訂正文字列バッファ17dに予め格納さ
れた訂正文字列「弊社において、」に置き換えられる
(ステップS5)。すると、第2図(D)で示すように、
入力表示枠のスクロール表示が解除されると共に、文書
データ内の「当社は」が「弊社において」と訂正表示さ
れるようになる(ステップS6)。
Thus, by repeating the determination processing in steps S2 to S4, the matching search processing from the corrected character string end character “,” and the corrected character string head character “this” is sequentially repeated, and in step S2, “match” That is, when it is found that the first character “,” following the corrected character string “Our company” matches the last character “,” of the corrected character string, the document memory 17
The character string `` Our company '' from the first character `` this '' of the corrected character string in a to the character ``, '' determined to match in the above step S2 is the corrected character string `` stored in the corrected character string buffer 17d in advance. In our company, it is replaced with "" (step S5). Then, as shown in FIG. 2 (D),
The scroll display of the input display frame is released, and “Our company” in the document data is corrected and displayed as “At our company” (step S6).

一方、上記ステップS2において、訂正文字列末尾文字
と被訂正文字列先頭文字からの一致検索が成されない状
態で、ステップS3において「YES」、つまり、上記被訂
正文字列先頭文字からの文字と句点コード「。」または
スペースコード「 」または改行コード「CR」の何れか
の文字との一致判断が成されると、文書メモリ17aにお
ける被訂正文字列先頭文字の前に訂正文字列バッファ17
dに予め格納される訂正文字列が挿入され、表示部15上
に表示される(ステップS7→S6)。
On the other hand, in step S2, in a state where the matching search from the last character of the corrected character string and the first character of the corrected character string is not performed, in step S3, "YES", that is, the character and the period When a match with any of the characters of the code ".", The space code "", or the line feed code "CR" is determined, the corrected character string buffer 17 is placed before the first character of the corrected character string in the document memory 17a.
The corrected character string stored in advance in d is inserted and displayed on the display unit 15 (step S7 → S6).

したがって、上記構成の文書データ処理装置によれ
ば、文書データ内の任意の文字列を訂正する際に、訂正
したい文字列内の先頭文字を指示し、新たに入力された
訂正文字列の末尾文字と上記訂正したい文字列内の各文
字との一致をその先頭文字から順次検索させると共に、
上記被訂正文字列の先頭文字から上記一致検索文字まで
を上記訂正文字列に置き換えるようにしたので、実質オ
ペレータは、被訂正文字列先頭文字の指示操作及び訂正
文字列の入力操作を行なうだけで、文書データ文字列の
訂正を簡単に行なうことができる。この場合、被訂正文
字列はそれ自体訂正文字列に置き換えられるので、上書
きや挿入後の削除により誤って必要な文字までも消して
しまうことはない。
Therefore, according to the document data processing apparatus having the above configuration, when correcting an arbitrary character string in the document data, the first character in the character string to be corrected is designated, and the last character of the newly input corrected character string is corrected. And the characters in the character string to be corrected are searched sequentially from the first character.
Since the characters from the first character of the corrected character string to the matching search character are replaced with the corrected character string, the operator can simply perform the operation of specifying the first character of the corrected character string and the operation of inputting the corrected character string. Thus, the correction of the document data character string can be easily performed. In this case, the corrected character string itself is replaced with the corrected character string, so that even a necessary character is not accidentally erased by overwriting or deletion after insertion.

尚、上記実施例における文字列訂正処理では、訂正文
字列末尾文字に対する被訂正文字列先頭文字からの一致
検索時において、該被訂正文字と句点コード「。」また
はスペースコード「 」または改行コード「CR」の何れ
かの文字との一致判断が成された場合には、被訂正文字
列の訂正範囲が確定できなかったものとみなして文書デ
ータ上の被訂正文字列の前に訂正文字列を挿入するよう
処理したが、例えば、上記実施例と同様にして被訂正
文字列の先頭文字から上記一致文字「。」または「 」
または「CR」までを訂正文字列バッファ17dに格納され
た訂正文字列に置き換えるか、該訂正文字列を被訂正
文字列の先頭文字位置から上書きするか、あるいは、
上書き/挿入の指定入力モードに応じて訂正文字列を上
書きまたは挿入処理するかの何れであってもよい。
In the character string correction process in the above-described embodiment, at the time of a match search from the corrected character string first character to the corrected character string end character, the corrected character and the punctuation code “.” Or the space code “” or the line feed code “ If a match with any of the characters "CR" is determined, it is assumed that the correction range of the corrected character string could not be determined, and the corrected character string is placed before the corrected character string on the document data. Although the processing for insertion is performed, for example, in the same manner as in the above embodiment, the matching character "."
Or, replace up to "CR" with the corrected character string stored in the corrected character string buffer 17d, overwrite the corrected character string from the first character position of the corrected character string, or
Either overwriting or inserting a corrected character string may be performed in accordance with the overwriting / inserting designation input mode.

[発明の効果] 以上のように本発明によれば、被訂正文字列や訂正文
字列の文字数を考慮する必要なく、文字列の訂正作業を
簡単且つ正確に行なうことが可能になる。
[Effects of the Invention] As described above, according to the present invention, it is possible to easily and accurately correct a character string without having to consider the number of characters in the corrected character string and the corrected character string.

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

第1図は本発明の一実施例に係わる文書データ処理装置
の構成を示すブロック図、第2図(A)〜(D)はそれ
ぞれ上記文書データ処理装置による文字列訂正手順を示
す図、第3図は上記文書データ処理装置による文字列訂
正処理を示すフローチャート、第4図(A)〜(C)は
それぞれ上書きモードにおける従来の文字列訂正手順を
示す図、第5図は挿入モードにおける従来の文字列訂正
手順を示す図である。 11…中央処理装置(CPU)、12…入力部、12a…訂正キ
ー、13…ROM、14…辞書メモリ、15…表示部、16…印字
部、17…記憶部、17a…文書メモリ、17b…カーソルポイ
ンタ、17c…文字バッファ、17d…訂正文字列バッファ。
FIG. 1 is a block diagram showing a configuration of a document data processing apparatus according to an embodiment of the present invention, and FIGS. 2 (A) to 2 (D) are diagrams showing a character string correction procedure by the document data processing apparatus, respectively. 3 is a flowchart showing a character string correction process by the above document data processing apparatus, FIGS. 4 (A) to 4 (C) each show a conventional character string correction procedure in the overwrite mode, and FIG. It is a figure which shows the character string correction procedure. 11 central processing unit (CPU), 12 input unit, 12a correction key, 13 ROM, 14 dictionary memory, 15 display unit, 16 printing unit, 17 storage unit, 17a document memory, 17b Cursor pointer, 17c: Character buffer, 17d: Correction character string buffer.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】文書データを記憶する文書記憶手段と、 この文書記憶手段に記憶されている文書データ内の任意
の文字データを指示する指示手段と、 文字データを入力する文字入力手段と、 この文字入力手段により入力された文字列の末尾の文字
データと一致する文字データを上記指示手段により指示
された文書データ内の文字データから文書末尾方向へ順
次検索する文字検索手段と、 上記文書記憶手段に記憶されている文書データの上記指
示手段により指示された文字データから上記文字検索手
段により一致検索された文字データまでを上記文字入力
手段により入力された文字列に置き換える置き換え手段
と、 を具備したことを特徴とする文書データ処理装置。
1. A document storage means for storing document data; an instruction means for designating arbitrary character data in the document data stored in the document storage means; a character input means for inputting character data; Character search means for sequentially searching character data in the document data designated by the instruction means in the direction of the document end for character data matching the character data at the end of the character string input by the character input means; Replacing the character data of the document data stored in the storage device from the character data designated by the designation means to the character data matched and searched by the character search means with a character string input by the character input means. A document data processing device characterized by the above-mentioned.
JP2155529A 1990-06-15 1990-06-15 Document data processing device Expired - Fee Related JP3052339B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2155529A JP3052339B2 (en) 1990-06-15 1990-06-15 Document data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2155529A JP3052339B2 (en) 1990-06-15 1990-06-15 Document data processing device

Publications (2)

Publication Number Publication Date
JPH0452854A JPH0452854A (en) 1992-02-20
JP3052339B2 true JP3052339B2 (en) 2000-06-12

Family

ID=15608066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2155529A Expired - Fee Related JP3052339B2 (en) 1990-06-15 1990-06-15 Document data processing device

Country Status (1)

Country Link
JP (1) JP3052339B2 (en)

Also Published As

Publication number Publication date
JPH0452854A (en) 1992-02-20

Similar Documents

Publication Publication Date Title
JPS5913771B2 (en) Editing display method of display device
JPH11328166A (en) Character input device and computer-readable recording medium where character input processing program is recorded
JP3052339B2 (en) Document data processing device
JP2959473B2 (en) Document processing device
JPS59132029A (en) Kana-kanji converting device
JP2833650B2 (en) Document processing device
JPS61175854A (en) Kana to kanji converting device
JPH0716192Y2 (en) Text processor
JPH0697455B2 (en) Kana-Kanji conversion device
JP2995630B2 (en) Document data processing device
JPS59142630A (en) Character processing device
JPH0666066B2 (en) Document processor with furigana addition function
JPS5969831A (en) Device for documentation
JP2593433B2 (en) Character processor
JP2688651B2 (en) String converter
JPH0656844U (en) Kana-Kanji conversion processor
JPS6142307B2 (en)
JPH0656843U (en) Kana-Kanji conversion device
JPS63265360A (en) Sentence conversion processor
JPS62171068A (en) Document preparing device
JPH06203031A (en) Character input device
JPS63257862A (en) Character processor
JPH0415744A (en) Character processor
JPH06214986A (en) Document preparing device
JPS62119665A (en) Word processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees