JPH0452854A - Document data processor - Google Patents

Document data processor

Info

Publication number
JPH0452854A
JPH0452854A JP2155529A JP15552990A JPH0452854A JP H0452854 A JPH0452854 A JP H0452854A JP 2155529 A JP2155529 A JP 2155529A JP 15552990 A JP15552990 A JP 15552990A JP H0452854 A JPH0452854 A JP H0452854A
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.)
Granted
Application number
JP2155529A
Other languages
Japanese (ja)
Other versions
JP3052339B2 (en
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 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

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To simply and accurately correct a character string by successively retrieving coincidence between the final character of a corrected character string and respective characters in a character string to be corrected from its leading character and substituting the corrected character string for a character string from the leading character of the character string to be corrected up to its coincidence retrieved character. CONSTITUTION:When an execution key 12a is depressed in the inputted and displayed state of a corrected character string 'HEISHA NI OITE', (Japanese character string means 'in our company') corresponding to a character string 'TOSHA WA' (means 'our company is') to be corrected, the leading character block 'TO' of the reversely displayed character string to be corrected is read out from a document memory 17a based upon the pointed position of a cursor pointer 17b and compared with the final character ',' of the corrected character string stored in a corrected character string buffer 17d, their coincidence/discrepancy is retrieved and the discrepancy is decided. When the coincidence of a character ',' following the character string 'TOSHA WA' to be corrected with the final character ',' of the corrected character string is retrieved, the corrected character string previously stored in the buffer 17d is substituted for the character string to be corrected stored in the document memory 17a.

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, to character string replacement control when correcting arbitrary character strings in document data. Regarding.

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

[従来の技術] 一般に、ワードプロセッサ等の文書データ処理装置では
、文字データの入力に際し、挿入モードと上書きモード
とが選択できるようになっている。
[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 block that existed after the cursor position before the input moves in the direction of 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.

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

第4図(A)〜(C)はそれぞれ上記上書きモードにお
ける文字列訂正手順を示すもので、例えば文書データ中
の「当社は」を「弊社において」と訂正したい場合には
、まず、同図(A)で示すように被訂正文字列「当社は
」の先頭文字「当」にカーソルを合わせ、同図(B)で
示すようにスペースデータを3文字分挿入して「当社は
」を含む被訂正文字列の文字数を訂正文字列「弊社にお
いて」の文字数に合わせる。この後、同図(C)で示す
ように訂正文字列「弊社において」を入力することによ
り、スペースデータを含む被訂正文字列「当社は」の文
書位置に訂正文字列「弊社において」か上書きされ訂正
が行なわれたことになる。
Figures 4 (A) to (C) respectively show the character string correction procedure in the above-mentioned overwrite mode. For example, if you want to correct "our company" in document data to "at our company," first, As shown in (A), place the cursor on the first character "to" of the character string to be corrected, "Our company is", and insert three space data to include "Our company" as shown in (B) of the same figure. Match the number of characters in the corrected character string to the number of characters in the corrected character string "At our company". After that, as shown in Figure (C), by inputting the corrected character string "At our company", the corrected character string "At our company" or overwrites the document position of the corrected character string "At our company" including space data. This means that corrections have been made.

第5図は上記挿入モードにおける文字列訂正手順を示す
もので、まず、カーソルキーを被訂正文字列「当社は」
の先頭文字「当」に合わせ削除キーを3回操作すること
により、同図で示すように被訂正文字列「当社は」を予
め削除する。この後、訂正文字列「弊社において」を入
力することにより、上記被訂正文字列「当社は」を削除
した部分に訂正文字列「弊社において」が挿入され訂正
が行なわれたことになる。
Figure 5 shows the character string correction procedure in the above insert mode. First, move the cursor key to the character string to be corrected,
By operating the deletion key three times in line with the first character "to", the corrected character string "Our company wa" is deleted in advance as shown in the figure. Thereafter, by inputting the corrected character string "At our company", the corrected character string "At our company" is inserted into the part where the corrected character string "At our company" has been deleted, and the correction has been made.

[発明が解決しようとする課題] しかしながら、上記従来の文書データ処理装置で文字列
訂正を行なう場合、上書きモードあるいは挿入モードの
何れにおいても、訂正文字列の文字数等を考慮しながら
挿入や削除処理を行なわなければならず、そのためのキ
ー操作が非常に多くなり繁雑で面倒であるばかりか、誤
操作によって必要な文字までも削除してしまう恐れがあ
る。
[Problems to be Solved by the Invention] However, when correcting a character string using the conventional document data processing device described above, in either the overwrite mode or the insert mode, the insertion or deletion process is performed while taking into account the number of characters in the corrected character string. This requires an extremely large number of key operations, which is complicated and troublesome, and there is a risk that even necessary characters may be deleted due to an erroneous operation.

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

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

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

[課題を解決するための手段] 本発明の手段は次の通りである。[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)前記文書記憶手段に記憶されて0る文書ブタ内の
任意の文字データを指示する指示手段。
(2) Instructing means for instructing arbitrary character data in the document tab 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.

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

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

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

(5)前記文書記憶手段に記憶されて(する文書データ
の前記指示手段により指示された文字データから前記文
字検索手段により一致検索された文字データまでを前記
文字入力手段により入力された文字列に置き換える置き
換え手段。
(5) The character data stored in the document storage means (from the character data instructed by the instruction means to the character data searched for a match by the character search means) is converted into a character string input by the character input means. replacement means.

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

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

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

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

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

第1図は文書データ処理装置の構成を示すもので、同図
において、11は中央処理装置t(CPU)であり、こ
の中央処理装置11には入力部12、ROM13、辞書
メモリ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 t (CPU), and this central processing unit 11 includes an input section 12, a ROM 13, a dictionary memory 14, and a display section. 15, printing section 16, and RAM
A storage section 17 using a .

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

辞書メモリ14は、入力部12における仮名/漢字変換
キーか操作された際の、中央処理装置11による仮名/
漢字変換処理に対応する多数の漢字及び熟語データを予
め記憶するもので、この辞書メモリ14から読出された
仮名/漢字変換後の文字データは記憶部17における文
書メモリ17gに書込まれる。文書メモリ17aは、中
央処理装置11を通して順次入力される仮名/漢字変換
後の文字データを、文書データとして記憶するもので、
この文書メモリ17aにおける入力文字データの書込み
先頭位置は、カーソルポインタ17bにより指示され、
このカーソルポインタ17bにおけるポインタ指示値は
、上記入力部12におけるカーソルキーの操作に応じて
中央処理装置11を通して増減制御される。
The dictionary memory 14 stores kana/kanji conversion keys by the central processing unit 11 when the kana/kanji conversion key in the input unit 12 is operated.
A large number of kanji and phrase data corresponding to the kanji conversion process is 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 17g 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に応じて仮名/漢字変換さ
れた後、上記文書メモリ17aに記憶される。
In addition, when creating the document data, character data such as kana characters, alphanumeric characters, symbols, etc. that are entered manually 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 17a.

さらに、記憶部17は、訂正文字列バッファ17dを備
えている。この訂正文字列バッファ17dには、上記入
力部12における訂正キー12aの操作の際に入力され
仮名/漢字変換される文字データが順次訂正文字列とし
て格納されるもので、この訂正文字列バッファ17dに
訂正文字列が格納され実行キーが操作されると、この訂
正文字列の末尾文字は、カーソルポインタ17bが示す
文書メモリ17a上の文字データを先頭にして順次その
一致/不一致が中央処理装置11を通して検索判断され
る。ここで、訂正文字列の末尾文字とカーソルポインタ
17bが指示する指示文字以降の文書データ内文字デー
タとの一致が検索された場合には、そのカーソルにより
指示される文字データから一致が検索された文字データ
までの文書デー名山文字列が、上記中央処理装置11の
制御により上記訂正文字列に置き換えられることになる
Furthermore, the storage unit 17 includes a corrected character string buffer 17d. In this corrected character string buffer 17d, character data inputted when operating the correction key 12a in the input section 12 and converted into kana/kanji is sequentially stored as a corrected character string, and this corrected character string buffer 17d When a corrected character string is stored in , and the execution key is operated, the last character of this corrected character string is sequentially checked by the central processing unit 11, starting with the character data in the document memory 17a indicated by the cursor pointer 17b. Search is determined through. Here, if a match is found between the last character of the corrected character string and the character data in the document data after the indicated character indicated by the cursor pointer 17b, a match is found from the character data indicated by the cursor. The document data name mountain character string up to the 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 section 15 sequentially displays character data manually entered by the input section 12, document data after kana/kanji conversion, etc. through the central processing unit 11. In this case, for example, the key manually entered 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)〜(D)はそれぞれこの文書データ処理
装置による文字列訂正手順を示すもので、例えば予め作
成され文書メモリ17aに記憶された文書データ内の「
当社は」を被訂正文字列とし、これを「弊社において」
と訂正するには、まず、同図(A)で示すように、入力
部12におけるカーソルキーを操作してカーソルにより
被訂正文字列「当社は」の先頭文字「当」を指示させる
In FIG. 2, (A) to (D) respectively show the character string correction procedure performed by this document data processing device.
” is the character string to be corrected, and this is “at our company”.
To correct this, first, as shown in FIG. 3A, the cursor key on the input unit 12 is operated to point the cursor to the first character ``tou'' of the character string to be corrected ``our company wa''.

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

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

第3図はこの文書データ処理装置による文字列訂正処理
を示すフローチャートであり、上記のように被訂正文字
列「当社は」に対応して訂正文字列「弊社において、」
を入力表示させた状態で、人力部12における実行キー
12aを操作すると、まず、文書データ内で反転表示さ
れている被訂正文字列の先頭文字「当」がカーソルポイ
ンタ17bの文字データ指示位置に基づき文書メモリ1
7aから読出され、中央処理装置11において、訂正文
字列バッファ17dに格納されている訂正文字列の末尾
文字「、」と比較され、その一致/不一致が検索される
(ステップSl、S2)。このステップS2において「
不一致」、つまり、訂正文字列の末尾文字「、」と被訂
正文字列の先頭文字F当」とは一致しないと判断される
と、その不一致文字(この場合「当」)が句点コード「
。」またはスペースコード「 」または改行コードr 
CRJの何れかに一致するか否かが判断される(ステッ
プS3)。このステップS3においてrNOj 、つま
り、上記ステップS2において不一致判断された被訂正
文字「当」は「。」「」r CRJの何れにも一致しな
いと判断されると、被訂正文字列の次の文字「社」が文
書メモリ17aから読出される(ステップS4)。そし
て、上記ステップS2に戻って訂正文字列末尾文字「、
」との一致検索処理が実行される。
FIG. 3 is a flowchart showing the character string correction process performed by this document data processing device.
When the execution key 12a in the human power section 12 is operated with input and displayed, the first character "to" of the character string to be corrected that is highlighted in the document data is moved to the character data indicated position of the cursor pointer 17b. Based on document memory 1
7a, the central processing unit 11 compares it with the last character "," of the corrected character string stored in the corrected character string buffer 17d, and searches for a match/mismatch (steps Sl, S2). In this step S2, “
If it is determined that there is a mismatch between the last character "," of the corrected character string and the first character "F" of the corrected character string, the mismatched character (in this case "to") will be assigned the period code ",".
. ” or space code “ ” or line feed code r
It is determined whether or not it matches any CRJ (step S3). In this step S3, rNOj, that is, the character to be corrected that was determined to be a mismatch in step S2 is determined to not match any of the following characters: "Shi" is read from the document memory 17a (step S4). Then, the process returns to step S2 and the last character of the corrected character string ",
” is executed.

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

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

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

尚、上記実施例における文字列訂正処理では、訂正文字
列末尾文字に対する被訂正文字列先頭文字からの一致検
索時において、該被訂正文字と句点コード「。」または
スペースコード「」マたは改行コードr CRJの何れ
かの文字との一致判断が成された場合には、被訂正文字
列の訂正範囲が確定できなかったものとみなして文書デ
ータ上の被訂正文字列の前に訂正文字列を挿入するよう
処理したが、例えば、■上記実施例と同様にして被訂正
文字列の先頭文字から上記一致文字「。」または「 」
またはr CRJまでを訂正文字列バッファ17dに格
納された訂正文字列に置き換えるか、■該訂正文字列を
被訂正文字列の先頭文字位置から上書きするか、あるい
は、■上書き/挿入の指定入力モードに応して訂正文字
列を上書きまたは挿入処理するかの何れであってもよい
In addition, in the character string correction processing in the above embodiment, when searching for a match from the first character of the corrected character string to the last character of the corrected character string, the character to be corrected and the period code "." or the space code "" or line break If a match is made with any character in code r CRJ, it is assumed that the correction range of the character string to be corrected has not been determined, and the corrected character string is placed before the character string to be corrected in the document data. However, for example, ■ In the same way as in the above example, the matching character "." or "" is inserted from the first character of the character string to be corrected.
or r Replace up to CRJ 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 ■ Overwrite/insert specified input mode The corrected character string may be overwritten or inserted depending on the situation.

[発明の効果コ 以上のように本発明によれば、被訂正文字列や訂正文字
列の文字数を考慮する必要なく、文字列の訂正作業を簡
単且つ正確に行なうことが可能になる。
[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 character string to be corrected or the number of characters in the corrected character string.

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

第1図は本発明の一実施例に係わる文書データ処理装置
の構成を示すブロック図、第2図(A)〜(D)はそれ
ぞれ上記文書データ処理装置による文字列訂正手順を示
す図、第3図は上記文書データ処理装置による文字列訂
正処理を示すフローチャート、第4図(A)〜(C)は
それぞれ上書きモードにおける従来の文字列訂正手順を
示す図、第5図は挿入モードにおける従来の文字列訂正
手順を示す図である。 11・・・中央処理装置(CPU)、12・・・入力部
、12a・・・訂正キー 13・・・ROM、14・・
・辞書メモリ、15・・・表示部、16・・・印字部、
17・・・記憶部、17a・・・文書メモリ、17b・
・・カーソルポインタ、17c・・・文字バッファ、1
7d・・・訂正文字列バッファ。
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. 2A to 2D are diagrams showing a character string correction procedure by the document data processing device, respectively. FIG. 3 is a flowchart showing the character string correction process performed by the document data processing device, FIGS. 4A to 4C are diagrams showing the conventional character string correction procedure in overwrite mode, and FIG. It is a figure which shows the character string correction procedure of. DESCRIPTION OF SYMBOLS 11... Central processing unit (CPU), 12... Input part, 12a... Correction key 13... ROM, 14...
・Dictionary memory, 15...display section, 16...printing section,
17...Storage unit, 17a...Document memory, 17b.
...Cursor pointer, 17c...Character buffer, 1
7d...Corrected character string buffer.

Claims (1)

【特許請求の範囲】 文書データを記憶する文書記憶手段と、 この文書記憶手段に記憶されている文書データ内の任意
の文字データを指示する指示手段と、文字データを入力
する文字入力手段と、 この文字入力手段により入力された文字列の末尾の文字
データと一致する文字データを上記指示手段により指示
された文書データ内の文字データから文書末尾方向へ順
次検索する文字検索手段と、上記文書記憶手段に記憶さ
れている文書データの上記指示手段により指示された文
字データから上記文字検索手段により一致検索された文
字データまでを上記文字入力手段により入力された文字
列に置き換える置き換え手段と、 を具備したことを特徴とする文書データ処理装置。
[Scope of Claims] Document storage means for storing document data; instruction means for instructing arbitrary character data in the document data stored in the document storage means; character input means for inputting character data; a character search means for sequentially searching character data in the document data instructed by the instruction means toward the end of the document for character data that matches the character data at the end of the character string input by the character input means; Replacement means for replacing the character data specified by the instruction means of the document data stored in the means to the character data searched for a match by the character search means with the character string input by the character input means; A document data processing device characterized by:
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 true JPH0452854A (en) 1992-02-20
JP3052339B2 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
JP3052339B2 (en) 2000-06-12

Similar Documents

Publication Publication Date Title
US4894779A (en) Translating apparatus
JPS5913771B2 (en) Editing display method of display device
JPS59132029A (en) Kana-kanji converting device
JPH0452854A (en) Document data processor
JPH0697455B2 (en) Kana-Kanji conversion device
JPS61175855A (en) Kana to kanji converting device
JPH0343659B2 (en)
JPS61175854A (en) Kana to kanji converting device
JP2846655B2 (en) Character correction method
JPH0716192Y2 (en) Text processor
JPH061470B2 (en) Text processor
JPS63257862A (en) character processing device
JPS61249167A (en) Kana-kanji converting system
JPS6142307B2 (en)
JPH0351958A (en) Electronic dictionary
JPS63284639A (en) Retrieving device
JPH02304671A (en) Document processor
JPH0415744A (en) Character processor
JPH028956A (en) Document processor
JPH07168839A (en) Electronic dictionary device
JPS58195943A (en) Word processor
JPH03229359A (en) Japanese sentence correcting device
JPH02297105A (en) Document generation device
JPH07325844A (en) Electronic dictionary search device
JPH01309168A (en) document creation device

Legal Events

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