JPH0799520B2 - Document editing device - Google Patents

Document editing device

Info

Publication number
JPH0799520B2
JPH0799520B2 JP59147479A JP14747984A JPH0799520B2 JP H0799520 B2 JPH0799520 B2 JP H0799520B2 JP 59147479 A JP59147479 A JP 59147479A JP 14747984 A JP14747984 A JP 14747984A JP H0799520 B2 JPH0799520 B2 JP H0799520B2
Authority
JP
Japan
Prior art keywords
character
input
character string
word
buffer 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.)
Expired - Lifetime
Application number
JP59147479A
Other languages
Japanese (ja)
Other versions
JPS6128156A (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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP59147479A priority Critical patent/JPH0799520B2/en
Publication of JPS6128156A publication Critical patent/JPS6128156A/en
Priority to US07/853,864 priority patent/US5262948A/en
Publication of JPH0799520B2 publication Critical patent/JPH0799520B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 [技術分野] 本発明は、入力操作の省力化を図った文書編集装置に関
するものである。
Description: TECHNICAL FIELD The present invention relates to a document editing apparatus that saves labor in input operation.

更に詳述すれば、本発明は、キーボード等の文字入力手
段を用いた入力作業時において、以前に入力した「文字
列と全く同じ文字列」または「語尾等の小部分のみが異
なる文字列」を再び入力する際に、打鍵等の入力操作数
を減らすことを可能とした文書編集装置に関するもので
ある。
More specifically, according to the present invention, when inputting using a character inputting means such as a keyboard, the "character string exactly the same as the character string" or the "character string differing only in a small part such as the ending" is inputted before. The present invention relates to a document editing apparatus capable of reducing the number of input operations such as keystrokes when inputting again.

[従来技術] 汎用電子計算機またはワードプロセッサ等の計算機応用
製品を対話的に利用する際に、文字入力のための打鍵等
の入力操作数を減らし、もって利用者の負担を減少させ
るための手段が、いくつか実用化されている。例を挙げ
れば、 ワードプロセッサにおいて、頻出語・定型句の登録
及び変換を行って入力作業を省略すること; 一部のパーソナルコンピュータ用オペレーティング
システム(以下、OSという)に見られるように、コマン
ド入力時の「直前入力行」を利用した入力の省略を行う
こと(例えば、あるコマンド行中にファイル名を間違え
て入力した後に正しいコマンド行を入力し直す際、全行
を打鍵するのではなく、まず直前に入力したコマンド行
をディスプレイ上に表示させ、これを編集・訂正して正
しい入力とすることにより、入力作業を減らす); ある種メーカの製作に係るOSにおいて実施されている
ように、エスケープキーを用いて入力の省力を行うこ
と。すなわち、コマンドもしくはファイル名の入力の際
に、その先頭の数文字(他と識別するに十分な数の文
字)を打鍵後エスケープキーを押すと、OSが該当するコ
マンド名もしくはファイル名を表示するので、これを編
集・訂正して入力する; などが知られている。
[Prior Art] When interactively using a computer application product such as a general-purpose electronic computer or a word processor, a means for reducing the number of input operations such as keystrokes for inputting characters, and thus reducing the burden on the user, Some have been put to practical use. For example, in a word processor, register and convert frequently-used words / fixed phrases and omit input work; as seen in some personal computer operating systems (hereinafter referred to as OS), command input Do not use the "immediately before input line" to omit the input (for example, when inputting the correct command line after entering the wrong file name in a certain command line, instead of typing all the lines, first Display the command line that was just entered and edit / correct this to correct the input to reduce the input work.); Escape, as is done in the OS related to the manufacture of a certain manufacturer. Use keys to save input. That is, when entering a command or file name, press the escape key after typing the first few characters (a sufficient number of characters to distinguish it from others), and the OS will display the corresponding command name or file name. Therefore, edit it, correct it, and enter it; etc. are known.

しかし、上述したの方法では「登録」という負担が新
たに増加するため、多数の語句をその都度登録し、使用
することは通常行われない。
However, since the burden of "registration" is newly added in the above-described method, it is not usually performed to register and use a large number of words each time.

また、上述のおよびに示す方法はOSのコマンド言語
での利用に限定されており、文書編集などの一般の入力
作業には使用することができない。
Further, the methods shown in and are limited to use in the OS command language, and cannot be used for general input work such as document editing.

ところで、文書を入力する際に繰り返し使用される語句
を登録し利用しようとするのが上記の方法であるが、
既に入力された文書そのものから所望の語句を選択し、
これを入力として利用することができれば登録の必要は
なくなり、多数の語句に対して入力の省略化を図ること
が可能となる。
By the way, the above method is to register and use words and phrases that are used repeatedly when inputting a document.
Select a desired phrase from the already entered document itself,
If this can be used as input, it is not necessary to register, and it becomes possible to omit input for many words and phrases.

しかし、入力作業者自身が既に入力した語句の選択(す
なわち、所望の語句を捜し、どこからどこまでを入力と
するかという範囲を定めること)を行うことは、通常の
文書編集装置(例えばワードプロセッサ)に見られるよ
うに、語句の複写機能によって実行することが可能であ
る。しかも、入力作業中に語句の複写の操作を幾度も行
えば入力作業はその度毎に中断され、入力作業の能率は
著しく低下することになる。
However, it is not possible for the input operator to select a word or phrase that has already been input (that is, to search for a desired word or phrase and to define the range from where to input) by using a normal document editing device (for example, a word processor). As can be seen, it is possible to do this with the phrase copy function. Moreover, if the operation of copying the phrase is performed many times during the input work, the input work is interrupted each time, and the efficiency of the input work is significantly reduced.

従って、かかる語句の複写とは異り、入力作業を妨げな
い新規な文書編集装置が必要とされている。
Therefore, unlike the copying of such words and phrases, a new document editing device that does not interfere with the input work is required.

[目的] 本発明の目的は、既に入力した文字を簡単に別の箇所に
入力できるようにした文書編集装置を提供することにあ
る。
[Purpose] An object of the present invention is to provide a document editing device that allows a character that has already been input to be easily input to another location.

かかる目的を達成するために、本発明は、表示手段
(7)と、入力手段(50)と、制御記憶手段(60)とを
有する文書編集装置であって、制御記憶手段(60)は、
入力手段(50)から入力された文字列を記憶する文字バ
ッファメモリ(2)を有し,制御信号を入力して、文字
バッファメモリ(2)から、所定の照合文字列を決定
し、この照合文字列に相当する探索文字列を文字バッフ
ァメモリ(2)から探索し、この探索文字列を含む語、
または行を選択し、この語、または行を記憶し、表示手
段(7)は、制御記憶手段(60)により記憶された探索
文字列を含む語、または行を表示するものである。
In order to achieve such an object, the present invention is a document editing device having a display means (7), an input means (50), and a control storage means (60), wherein the control storage means (60) comprises
A character buffer memory (2) for storing the character string input from the input means (50) is provided, a control signal is input, a predetermined collation character string is determined from the character buffer memory (2), and this collation is performed. A search character string corresponding to the character string is searched from the character buffer memory (2), and a word including the search character string,
Alternatively, a line is selected, this word or line is stored, and the display means (7) displays the word or line containing the search character string stored by the control storage means (60).

以下、図面を参照して本発明を詳細に説明する。Hereinafter, the present invention will be described in detail with reference to the drawings.

[実施例] 第1図は本発明の一実施例を示すブロック図である。本
図中1はキーボード等を備えた文字入力手段、2は入力
された文字データ(以下単に「文字」という)を一定の
数以下だけ蓄える文字バッファメモリである。この文字
バッファメモリ2は、作業者が入力した文字のうち、直
前に入力された一定の数以下の文字(例えば1頁分の文
字)を保持するものとする。すなわち、文字バッファメ
モリ2に一定の数を超えて文字が入力されると、既に入
力された文字のうち最も古い文字が順次捨てられ、常に
最新の文字が一定数以下残る。
[Embodiment] FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a character input means equipped with a keyboard and the like, and 2 is a character buffer memory for storing input character data (hereinafter simply referred to as "character") by a predetermined number or less. It is assumed that the character buffer memory 2 holds a predetermined number or less of characters (e.g., characters for one page) input immediately before among characters input by the operator. That is, when a certain number of characters are input to the character buffer memory 2, the oldest characters among the already input characters are sequentially discarded, and the latest character always remains below a certain number.

3は後述する処理を指示するための指示手段(例えばい
くつかのファンクションキー、特定の制御文字を与える
キーボード上のキー等を備える)である。この指示手段
の機能は、文字入力手段1から特定の制御文字(例え
ば、JIS情報交換用符号(C−6220)におけるDC2,DC4)
を入力することにより実行させている。その他、特定の
スイッチ等を設け(図示せず)、これら制御文字の入力
に替えることも可能である。
Reference numeral 3 is an instruction means for instructing a process to be described later (for example, some function keys, keys on a keyboard for giving specific control characters, etc. are provided). The function of this instructing means is that the character inputting means 1 allows a specific control character (for example, DC2, DC4 in JIS information exchange code (C-6220)).
It is executed by inputting. Besides, it is also possible to provide a specific switch or the like (not shown) to replace the input of these control characters.

4は文字入力手段1からの入力により「照合文字列」を
決定する手段である。ここで、照合文字列とは本装置に
おいて「検索すべき一群の文字群」をいう。
Reference numeral 4 is a means for determining a "collation character string" by input from the character input means 1. Here, the collation character string means "a group of character groups to be searched" in this apparatus.

5は文字バッファメモリ2から照合文字列を検索する選
択手段であって、指定された照合文字列を含む語句等の
文字群を選択する機能を果たす。
Reference numeral 5 is a selection unit for searching the character buffer memory 2 for a matching character string, and has a function of selecting a character group such as a word or phrase including the specified matching character string.

6は選択手段5によって選択された語句等(その一部に
は、照合文字列が含まれている)を文字バッファメモリ
2に書き込む展開手段である。すなわち、文字バッファ
メモリ2に入力された照合文字列(例えば、「ind」と
する)に基づき、その照合文字列を選択された語句等
(例えば、「independence」)に置き換える。このよう
に、文字バッファメモリ2上では、特定の照合文字列が
その照合文字列を含む語句等に拡大されて置き換えられ
ることから、この動作を以後「展開する」という。
Reference numeral 6 is an expansion means for writing the word or the like selected by the selection means 5 (a collation character string is partly included) in the character buffer memory 2. That is, based on the collation character string (for example, “ind”) input to the character buffer memory 2, the collation character string is replaced with the selected word or phrase (for example, “independence”). In this way, on the character buffer memory 2, the specific collation character string is expanded and replaced by a word or the like including the collation character string, and hence this operation is hereinafter referred to as "expanding".

7は展開手段6により展開された語句等を表示するため
の表示手段であり、入力作業者に対して、その展開され
た語句等が所望の語句等であるか否かを判断させる。
Reference numeral 7 is a display means for displaying the words and the like expanded by the expanding means 6, and makes the input operator judge whether or not the expanded words and phrases are desired words and phrases.

8は上述した各手段を制御するための制御手段である。Reference numeral 8 is a control means for controlling each means described above.

9はその他の処理手段を示す。Reference numeral 9 indicates other processing means.

破線で囲んだブロック50は全体として入力手段を形成
し、ブロック60は全体として制御記憶手段を形成する。
A block 50 surrounded by a broken line forms an input means as a whole, and a block 60 forms a control storage means as a whole.

また、実線は実際のデータの入出力,破線は制御あるい
はポインタ操作等を示している。
The solid line shows the actual input / output of data, and the broken line shows the control or pointer operation.

本実施例により展開される語句等とは、 a) 照合文字列と一致する文字群で始まり、「空白,
タブ,改行文字」の1文字手前(直前)で終る文字群
(以下「語」といい、DC2により展開されるものとす
る); b) 照合文字列と一致する文字群で始まり、改行文字
の1文字手前(直前)で終る文字群(以下「行」とい
い、DC4により展開されるものとする); の2種とする。
The words and the like expanded according to the present embodiment include: a) a character group that matches the collation character string, followed by "blank,
A character group that ends (immediately before) one character before "tab, new line character" (hereinafter referred to as "word", assumed to be expanded by DC2); b) starts with a character group that matches the collation character string, Characters ending one character before (immediately before) (hereinafter referred to as "line", assumed to be expanded by DC4);

第2図は、下線を付した各語を含む文書の例を表わして
いる。本図中枠で囲んだ空白部分は空白文字を示す。ま
た、横長の枠で囲んだ各文字列については、最下行のRC
が照合文字列を、その他のものはこれと一致する探索文
字列を表わす。
FIG. 2 shows an example of a document including each word underlined. The blank portion surrounded by a frame in this figure indicates a blank character. Also, for each character string enclosed in a horizontally long frame, RC at the bottom line
Indicates the matching character string, and the others indicate the matching character string.

つぎに、第2図に示すような各々の「語」(下線部)を
含む文書を入力する場合を例に挙げて、本実施例の動作
を説明する。
Next, the operation of this embodiment will be described by taking as an example the case of inputting a document including each "word" (underlined part) as shown in FIG.

第2図示の文書を構成する各文字は文字入力手段1から
入力される。そして、制御手段8によって表示手段7に
表示されると共に文字バッファメモリ2に格納され、さ
らに、他の処理手段9にもその文字情報が入力される。
ここで、文字バッファメモリ2は前述のように最新の一
定数以下の文字を保持するので、入力された各文字は、
第3図に示すように文字バッファメモリ2の中に置かれ
る。
Each character forming the document shown in FIG. 2 is input from the character input means 1. Then, it is displayed on the display means 7 by the control means 8 and stored in the character buffer memory 2, and the character information is also input to the other processing means 9.
Here, since the character buffer memory 2 holds the latest number of characters or less as mentioned above, each input character is
It is placed in the character buffer memory 2 as shown in FIG.

第3図は文字バッファメモリの詳細な構成を示す図であ
る。本図に示した矢印は全てポインタを示してある。
FIG. 3 is a diagram showing a detailed configuration of the character buffer memory. The arrows shown in this figure all indicate pointers.

次に、各ポインタについて概説すると次の通りである。Next, an outline of each pointer is as follows.

ポインタhead…文字バッファメモリの先頭位置を示す。Pointer head ... Indicates the start position of the character buffer memory.

ポインタtail…文字バッファメモリの最後尾の位置を示
す。
Pointer tail: Indicates the tail position of the character buffer memory.

ポインタr,t…それぞれ照合文字列の先頭文字および最
終文字を示す。
Pointer r, t ... Indicates the first and last characters of the collation character string, respectively.

ポインタs,s′…検索を開始する位置を示す。Pointer s, s' ... Indicates the position to start the search.

ポインタc…照合文字列「イ」と一致する検索文字列
「ロ」を検索する時において、比較すべき文字の位置を
順次示す。
Pointer c ... Indicates the position of the character to be compared when searching for the search character string “b” that matches the collation character string “a”.

ポインタe…展開すべき文字列の最後を示す。Pointer e ... Indicates the end of the character string to be expanded.

ポインタf…展開を行うために、照合文字列の最後尾を
示す。
Pointer f ... Indicates the end of the collation character string for expansion.

また文字バッファメモリ上でhead側を前方、tail側を後
方と呼び、各々の内容はhead<tailとしてある。なお、
入力文字はtail側から次々に追加され、一定数を超えた
分はhead側から捨てられるので(リングバッファ構
成)、ポインタtailが指す文字を最新の入力文字と呼
ぶ。
The head side is called the front side and the tail side is called the rear side in the character buffer memory, and the contents of each are head <tail. In addition,
Input characters are added one after another from the tail side, and the part exceeding a certain number is discarded from the head side (ring buffer configuration), so the character pointed to by the pointer tail is called the latest input character.

いま、第2図に示すように、最下行の“ind"まで入力し
たところで「語」への展開を指示する制御文字(DC2)
を入力すると、この展開指示は(この入力に対して)初
回であるので、制御手段8は照合文字列決定手段4を呼
ぶ(図示しないフラグをセットする)。
Now, as shown in Fig. 2, when the last line "ind" is entered, a control character (DC2) that directs expansion to "word"
When this is input, since this expansion instruction is the first time (for this input), the control means 8 calls the collation character string determination means 4 (sets a flag (not shown)).

第4図に、照合文字列決定手段4の実行すべきアルゴリ
ズムを示す。
FIG. 4 shows an algorithm to be executed by the collation character string determining means 4.

本実施例では、照合文字列は“文字バッファメモリの最
後の区切り記号20(例えば、「空白,タブ,改行」の文
字)に後続する最新入力文字までの文字列(すなわち、
ポインタrからtに至るまでの文字)”としてある。従
って、第3図に示すポインタrは第4図示のアルゴリズ
ムに従って次々に“d",“n",“i",“空白",“i"の各文
字を指すように動き、片仮名イで示す“ind"が照合文字
列として決定される。
In the present embodiment, the collation character string is a character string up to the latest input character following the last delimiter 20 (for example, the character "blank, tab, newline" in the character buffer memory) (that is,
Characters from the pointer r to t) ". Therefore, the pointer r shown in FIG. 3 is successively" d "," n "," i "," blank "," i "according to the algorithm shown in FIG. It moves so as to point to each character of "," and "ind" indicated by Katakana A is determined as the collation character string.

第4図に示す各ステップは次のとおりである。The steps shown in FIG. 4 are as follows.

ステップS1:ポインタtおよびrに最新入力文字の位置
(tailの位置)を格納する。すなわちt=r=tailとす
る。
Step S1: The position of the latest input character (position of tail) is stored in the pointers t and r. That is, t = r = tail.

ステップS2:ポインタrの指す文字は区切り記号(空白S
P,タブTAB,改行文字NL)であるか否かを判断する。
Step S2: The character pointed by pointer r is a delimiter (blank S
P, tab TAB, line feed character NL).

ステップS3:ポインタrの指す文字が区切り記号でない
場合には、ポインタrの値を前方(head側)に進める。
すなわち、ポインタrを第3図の左側に1文字分だけ移
すために、r←r−1とする。
Step S3: If the character pointed to by the pointer r is not a delimiter, the value of the pointer r is moved forward (to the head side).
That is, in order to move the pointer r to the left side of FIG. 3 by one character, r ← r-1.

ステップS4:ポインタrの指示位置が文字バッファメモ
リの先頭を越えたか否かを判断し、そうでなければ再び
制御をステップS2に戻す。一方、r<headとなった場合
には、決定不能(ステップS5)となる。
Step S4: It is judged whether or not the designated position of the pointer r exceeds the head of the character buffer memory, and if not, the control is returned to step S2 again. On the other hand, when r <head, the determination cannot be made (step S5).

ステップS6:ポインタrの指す文字が区切り記号であっ
た場合(ステップS2)には、ポインタrおよびtの指す
位置が同じ(r=t?)であるか否かを判断する。換言す
れば、ポインタrの指す最初の文字が区切り記号である
場合には、決定不能(ステップS9)とする。
Step S6: When the character pointed by the pointer r is a delimiter (step S2), it is determined whether the positions pointed by the pointers r and t are the same (r = t?). In other words, if the first character pointed to by the pointer r is a delimiter, it cannot be determined (step S9).

ステップS7:ステップS6においてr=tであると判断さ
れた場合には、ポインタrの指す位置を後方(第3図の
右側)に戻す。すなわちr←r+1として、照合文字列
の決定を終了する(ステップS8)。
Step S7: When it is determined in step S6 that r = t, the position pointed by the pointer r is moved backward (to the right in FIG. 3). That is, r ← r + 1 is set and the determination of the collation character string is completed (step S8).

照合文字列が決定されると、引き続いて制御手段はこの
照合文字列を一部分として持つ語もしくは行の1つを文
字バッファメモリ2の中から選択する手段を呼ぶ。
When the collation character string is determined, the control means subsequently calls the means for selecting one of the words or lines having the collation character string as a part from the character buffer memory 2.

第5図(A)および(B)に、選択手段5が実行すべき
アルゴリズムを示す。
5 (A) and 5 (B) show an algorithm to be executed by the selection means 5.

まず、第5図(A)に示すように、選択手段5は照合文
字列「イ」の最後の文字“d"(第3図示のポインタtに
よって指される)から順に前方(すなわち、ポインタhe
ad側)へ1文字ずつ比較する文字(ポインタcによって
指される)をとり、第3図示のポインタsによって示さ
れる探索開始位置(照合文字列「イ」の前方にある区切
り記号20の直前位置を初期位置Sとする)よりも前方に
あって最初に照合文字列と一致する文字列(以下、探索
文字列という。第3図示の例では、「ロ」によって示さ
れる“ind"が探索文字列に該当する)の位置を探す。第
5図(A)に示すアルゴリズムは、このような探索機能
を果たすので、探索部とも呼ぶ。
First, as shown in FIG. 5 (A), the selection means 5 sequentially proceeds from the last character "d" (pointed by the pointer t shown in FIG. 3) of the collation character string "a" to the front (that is, the pointer he).
A character to be compared (pointed by the pointer c) is taken to the ad side), and the search start position (the position immediately before the delimiter 20 in front of the collation character string “a”) indicated by the pointer s in FIG. 3 is taken. Is the initial position S) and is the first character string that matches the collation character string (hereinafter referred to as the search character string. In the example shown in FIG. 3, "ind" indicated by "b" is the search character string). Find the position (which corresponds to the column). The algorithm shown in FIG. 5 (A) fulfills such a search function and is therefore also called a search unit.

第5図(B)に示すアルゴリズムでは、指示された展開
すべき文字群の種類(すなわち、「語」であるかあるい
は「行」であるか)に従って、展開すべき文字群の最後
部(ポインタeによって指される)を決定する。よっ
て、第5図(B)に示すアルゴリズムを第5図(A)の
探索部に対して、選択部と呼ぶ。
In the algorithm shown in FIG. 5 (B), the last part (pointer) of the character group to be expanded (pointer) according to the type of the character group to be expanded (that is, whether it is "word" or "line") is specified. pointed to by e). Therefore, the algorithm shown in FIG. 5 (B) will be referred to as a selection unit in contrast to the search unit in FIG. 5 (A).

以下、これらアルゴリズムの各ステップについて説明す
る。
Each step of these algorithms will be described below.

第5図(A)に示す探索部において、 ステップS10:比較する文字をポインタcによって指す。
そこで、まず、照合文字列(第3図に示す「イ」)の最
後の文字(本例では“d")を指定するため、ポインタc
の値としてtを用いる。
In the search unit shown in FIG. 5 (A), step S10: The character to be compared is pointed to by the pointer c.
Therefore, first, in order to specify the last character (“d” in this example) of the collation character string (“I” shown in FIG. 3), the pointer c
T is used as the value of.

ステップS11:ポインタSによって示される探索開始位置
(初期位置)から文字バッファメモリの前方(第3図の
左側)に向けて比較文字を探す。
Step S11: A comparison character is searched from the search start position (initial position) indicated by the pointer S toward the front of the character buffer memory (left side in FIG. 3).

ステップS12:比較文字の有無を判別する。比較文字が検
出されないときには、探索失敗となる(ステップS1
8)。
Step S12: Determine whether there is a comparison character. If no comparison character is detected, the search fails (step S1).
8).

ステップS13:ステップS12において比較文字が検出され
ると、ポインタcの指す位置を1文字ぶんだけ前方に進
める。すなわち、c←c−1とする。
Step S13: When the comparison character is detected in step S12, the position pointed by the pointer c is moved forward by one character. That is, c ← c-1.

ステップS14:ポインタcの指す位置がポインタrの指す
位置よりも前方(第3図の左側)にあるか(すなわち、
c<rであるか)否かを判別することにより、照合の終
了時点を判別する。
Step S14: Whether the position pointed by the pointer c is ahead of the position pointed by the pointer r (left side in FIG. 3) (that is,
By determining whether or not c <r), the end point of the collation is determined.

ステップS15:未だ照合が終了していない場合には、ポイ
ンタsの位置を前方(第3図の左側)に1文字ぶんだけ
進める。すなわちs←s−1とする。
Step S15: If the collation is not completed yet, the position of the pointer s is advanced forward (left side in FIG. 3) by one character. That is, s ← s−1.

ステップS16:ポインタsの指す位置が文字バッファメモ
リの先頭を越えたか否かを判別する。既に、その先頭位
置を越えている場合には、探索失敗となる(ステップS1
9)。
Step S16: It is determined whether or not the position pointed by the pointer s has exceeded the head of the character buffer memory. If it already exceeds the start position, the search fails (step S1).
9).

ステップS17:ポインタcおよびsの指す文字(内容)が
等しいか否かを判別する。等しくない場合には、制御を
再びステップS10に戻して、探索をやりなおす。また、
ポインタcおよびsの指す文字が等しい場合には、ステ
ップS13以下を繰り返す。
Step S17: It is determined whether or not the characters (contents) pointed to by the pointers c and s are equal. If they are not equal, the control is returned to step S10 and the search is performed again. Also,
If the characters pointed to by the pointers c and s are equal, steps S13 and thereafter are repeated.

第5図(B)に示す選択部において、 ステップS20:区切り記号を設定する。すなわち、「語」
を指示するか(SP;スペース,TAB;タブ,NL;改行文字)、
あるいは「行」(NL)のいずれかを指示する。
In the selection section shown in FIG. 5 (B), step S20: Delimiter is set. That is, "word"
Or (SP; space, TAB; tab, NL; newline),
Alternatively, specify either "line" (NL).

ステップS21:照合文字列の最後尾を指すポインタf、な
らびに、展開すべき文字群の最後尾を指すポインタeを
設定する。すなわち、 f←s+t−r e←f+1 とする。
Step S21: A pointer f pointing to the end of the collation character string and a pointer e pointing to the end of the character group to be expanded are set. That is, f ← s + t−r e ← f + 1.

ステップS22:ポインタeの指す文字が上述の区切り記号
(SP,TAB,NL)であるか否かを判別する。
Step S22: It is determined whether or not the character pointed by the pointer e is the delimiter (SP, TAB, NL) described above.

ステップS23:ステップS22において区切り記号でないと
判別された場合には、ポインタeを後方(第3図の右
側)にずらす。すなわち、e←e+1とする。
Step S23: If it is determined in step S22 that the symbol is not a delimiter, the pointer e is moved backward (to the right in FIG. 3). That is, e ← e + 1.

ステップS24:ステップS22において区切り記号であると
判別された場合には、ポインタeを前方(第3図の左
側)に戻す。すなわち、e←e−1とする。
Step S24: When it is determined that the symbol is the delimiter in step S22, the pointer e is returned to the front (left side in FIG. 3). That is, e ← e-1.

次に、制御手段8は展開手段6を呼ぶ。この展開手段
は、文字バッファメモリ2中の照合文字列を選択された
「語」もしくは「行」に置き換える。換言すれば、展開
手段6の行う処理によって、照合文字列の代わりに、選
択された文字群が入力されることになる。
Next, the control means 8 calls the expansion means 6. This expansion means replaces the collation character string in the character buffer memory 2 with the selected "word" or "row". In other words, by the processing performed by the expanding means 6, the selected character group is input instead of the collation character string.

すなわち、本例では選択手段5によって検出された探索
文字列「ロ」にひき続く部分(第3図「ハ」)が新たに
文字入力手段1から入力された場合と全く同様に表示手
段7に表示され、且つ文字バッファメモリ2に入力さ
れ、更に他の処理手段9への入力とされる。
That is, in this example, the portion following the search character string “b” detected by the selection means 5 (“c” in FIG. 3) is displayed on the display means 7 in exactly the same manner as when the character input means 1 newly inputs it ”. It is displayed, input to the character buffer memory 2, and further input to another processing means 9.

なお、処理の効率の上からは上述の語句の終りを決定す
る際に同時に展開の処理も行うことが望ましい。
From the viewpoint of processing efficiency, it is desirable to perform expansion processing at the same time when the end of the above phrase is determined.

第6図に示す展開アルゴリズムにおける各ステップは次
のとおりである。
The steps in the expansion algorithm shown in FIG. 6 are as follows.

ステップS25:ポインタfによって指される位置より1文
字ぶんだけ後方(第3図の右側)の位置を変数iの値と
する。これにより、探索文字列(第3図「ロ」参照)の
直後の位置を変数iとして設定することになる。
Step S25: The value of the variable i is set to the position one character behind (the right side in FIG. 3) the position pointed to by the pointer f. As a result, the position immediately after the search character string (see "b" in FIG. 3) is set as the variable i.

ステップS26:変数iがポインタeの後方側(第3図の右
側)を指しているか否かを判別する。
Step S26: It is determined whether or not the variable i points to the rear side of the pointer e (right side in FIG. 3).

ステップS27:変数iが示す位置の文字を、表示手段7に
表示する。
Step S27: The character at the position indicated by the variable i is displayed on the display means 7.

ステップS28:変数iが示す位置の文字を、文字バッファ
メモリ2に入力する。
Step S28: The character at the position indicated by the variable i is input to the character buffer memory 2.

ステップS29:変数iが示す位置の文字を、他の処理手段
9に入力する。
Step S29: The character at the position indicated by the variable i is input to the other processing means 9.

ステップS30:変数iの示す位置を1文字ぶんだけ後方
(第3図の右側)に移す。
Step S30: The position indicated by the variable i is moved backward by one character (on the right side in FIG. 3).

かくして、第7図(A)に示す如く「語」“independen
t"が展開されるが、かかる選択を行うためにその一部分
しか与えていないのであるから、意図しない語句が選択
されることがあり得る。
Thus, as shown in FIG. 7 (A), the word "independen"
Unexpected phrases may be selected because t "is expanded, but only part of it is given to make such a selection.

従って、この“independent"が所望の語句である場合に
は、そのまま入力作業を続ければよいことになるが、所
望の語句でない場合には引き続いて展開の指示を与える
ことにより、第7図(B)に示す如く、次の候補となる
語“independence"が展開される。
Therefore, if this "independent" is a desired word / phrase, the input work may be continued as it is. However, if it is not the desired word / phrase, by continuously giving an instruction for expansion, FIG. ), The next candidate word "independence" is expanded.

このように展開の指示が続いた場合には、制御手段8は
前回の展開による影響を取消した後(第6図ステップS2
7〜S29参照)、探索開始位置(s)を前回発見された探
索文字列「ロ」の直前の位置(即ち第3図の“s′(次
回)”の位置)として次回の探索を行う。このことによ
り、前回選択された語“independent"より前方にあり、
且つ前回と同じ照合文字列によって選択される語“inde
pendence"が展開される。
When the instruction of the expansion continues in this way, the control means 8 cancels the influence of the previous expansion (step S2 in FIG. 6).
7 to S29), the next search is performed with the search start position (s) as the position immediately before the previously found search character string "b" (that is, the position of "s'(next)" in FIG. 3). This allows us to come before the previously selected word “independent”,
And the word "inde" selected by the same collation string as before
"pendence" is expanded.

なお、本実施例では、文字バッファメモリ2には作業者
が入力した文字のうち直前に入力された一定数以下の文
字を保持するものとして説明したが、既に入力済みであ
る文書の所望の領域(すなわち、入力済みの特定編集位
置に隣接する一定範囲内の文字群)を一括複写して文字
バッファメモリ2に格納するよう構成することも可能で
ある。あるいは、当該部分を保持する文書メモリの一部
を共用するよう構成することも可能である。このように
構成することにより、既に作成された文書中の語句を利
用した入力の一部省略が可能となり、文書の修正作業を
行う際の入力操作が軽減される。
In the present embodiment, the character buffer memory 2 has been described as holding a predetermined number or less of the characters input immediately before by the operator, but a desired area of a document that has already been input. It is also possible to collectively copy (that is, a group of characters within a certain range adjacent to the input specific editing position) and store them in the character buffer memory 2. Alternatively, it is possible to share a part of the document memory that holds the part. With this configuration, it is possible to partially omit the input using the words and phrases in the already created document, and to reduce the input operation when performing the correction work of the document.

また、予め登録した語句等を保持する情報格納部(メモ
リ,ファイル等)を文字バッファメモリ2の代わりに使
用することも可能である(この場合には、読出しのみに
使用する)。
Further, it is also possible to use an information storage unit (memory, file, etc.) holding a word or the like registered in advance instead of the character buffer memory 2 (in this case, it is used only for reading).

さらに、上述の文字バッファメモリ,文書メモリの一
部,ファイル等を複数個備え、適当な探索順序で使用す
ることも可能である。例えば、少数のキーワードや予約
語を保持する第1文字バッファメモリと、入力された一
定数以下の文字を保持する第2文字バッファメモリとを
備え、これら2個のバッファメモリを順次に探索するこ
とにより、キーワードや予約語の入力の一部省略を早く
確実に(他の入力により失われてしまったりせずに)行
うよう構成することも可能である。
Further, the character buffer memory, a part of the document memory, a plurality of files, etc. described above may be provided and used in an appropriate search order. For example, a first character buffer memory that holds a small number of keywords and reserved words and a second character buffer memory that holds a certain number of input characters or less are provided, and these two buffer memories are searched sequentially. Thus, it is possible to configure so that a part of the input of the keyword or the reserved word can be omitted quickly and surely (without being lost due to other input).

また、入力された一定数以下の文字を保持する文字バッ
ファメモリと、例えば修正対象としている位置の前1頁
分の内容を記憶する文書メモリとの両者を探索対象とす
ることによって、探索・展開された語句等を文字バッフ
ァメモリにコピーすることができるので、他の位置もし
くは他の文書の修正や入力の際にも利用できるよう構成
することも可能である。
Further, by searching both the character buffer memory that holds a certain number or less of input characters and the document memory that stores the contents of the previous page at the position to be corrected, for example, search / expansion can be performed. Since the written word or the like can be copied to the character buffer memory, it can be configured so that it can be used when correcting or inputting another position or another document.

本実施例では、照合文字列決定時の区切り記号として
「空白,タブまたは改行」の文字を用いたが、これを変
更し、追加し、あるいは展開指示に引き続いて文字入力
手段から指定し得るよう構成することにより、より柔軟
な指示を与えることができる。また、選択・展開時にも
これと同様の変更を加えることにより、探索文字列に始
まる語句への展開(すなわち「前方一致」の語句への展
開)のみならず、中間部分または後方部分が照合文字列
と一致する語句への展開が可能となる。これらの変形
は、つづりが一部あやふやな語を入力する際に、一種の
検索効果をもたらす。更に、所定の照合文字列から「句
読点」までをコピーの際には、いわゆるカット・アンド
・ペースト(cut & paste)よりも簡便な手段となり得
る。
In the present embodiment, the character "blank, tab or line feed" is used as the delimiter when determining the collation character string, but this can be changed, added, or specified from the character input means following the expansion instruction. By configuring, more flexible instructions can be given. In addition, by making the same changes when selecting / expanding, not only the expansion to the words that start with the search character string (that is, the expansion to the word "prefix"), but also the matching characters It is possible to expand into words that match the columns. These variants provide a sort of search effect when entering partially spelled words. Furthermore, when copying from the predetermined collation character string to the "punctuation mark", it can be a simpler means than so-called cut and paste.

ところで、本実施例では、照合文字列をその一部分とし
て持つ語句を選択し、展開したが、実際の使用にあたっ
ては展開された語句の末尾は後尾変化等に起因してしば
しば変更される。従って、単に“最初”に選択された語
句を展開するのではなく、照合文字列を一部分として持
つ語句を2つ(もしくはそれ以上)選択し、その共通部
分を展開することも有益である。第2図示の文書例につ
いて共通部を展開した例を第8図に示す。
By the way, in the present embodiment, a word having a collation character string as a part thereof is selected and expanded, but in actual use, the end of the expanded word is often changed due to a tail change or the like. Therefore, it is also useful to select two (or more) words having a collation character string as a part and expand the common part, rather than simply expanding the word selected "first". FIG. 8 shows an example in which the common part is expanded for the document example shown in FIG.

更に、本実施例では、照合文字列を文字バッファメモリ
上にとったが、別途文字列を記憶する手段を用いて照合
文字列を保持するよう構成することも可能である。
Further, in the present embodiment, the collation character string is stored in the character buffer memory, but it is also possible to store the collation character string by using a means for storing the character string separately.

[効果] 以上説明したように、本発明によれば、事前に語句等の
登録を必要とすることなく、また煩雑な操作を伴うこと
なく文字入力作業の一部操作を省略して操作性を向上さ
せた文書編集装置を得ることができる。
[Effect] As described above, according to the present invention, it is possible to omit a part of the character input work without the need for registering a word or the like in advance and without a complicated operation, thereby improving operability. It is possible to obtain an improved document editing device.

すなわち、本発明の一実施例では既に入力された語句等
を蓄積する記憶手段(例えば約1頁分の文字を蓄える)
を設け、この中の所望の語句等を得るための方法とし
て、その一部(例えば所望の語句の先頭の数文字)を与
え、これを含む語句等を記憶手段中から探索し、利用す
るという方式を採っているので、所望の語句等を得るた
めの操作は従来例にみられた語句の複写とは異なり、入
力の一部(語句等の残りの部分)を省略することができ
る。かくして、円滑な入力操作をなすことができる。
That is, in one embodiment of the present invention, storage means for accumulating already input words and phrases (for example, accumulating characters for about one page).
As a method for obtaining a desired word or phrase or the like therein, a part of it (for example, the first few letters of the desired word or phrase) is given, and a word or phrase containing this is searched from the storage means and used. Since the system is adopted, a part of the input (the rest of the word or the like) can be omitted in the operation for obtaining the desired word or the like unlike the copying of the word or phrase seen in the conventional example. Thus, a smooth input operation can be performed.

また、記憶手段の内容の更新を自動的に行うことによ
り、予め語句を登録することなく用いることができ、コ
マンド言語等に限定されない入力の省略手段を実現する
ことができる。
Also, by automatically updating the contents of the storage means, it is possible to use without registering words in advance, and it is possible to realize an input omission means that is not limited to a command language or the like.

なお、本発明を電子タイプライター等に適用する際に
は、表示手段として例えば液晶表示器等の文字表示手段
を用いることが好適である。
When the present invention is applied to an electronic typewriter or the like, it is preferable to use a character display means such as a liquid crystal display as the display means.

また、インテリジェント端末装置または複合端末装置等
の一機能として本発明を利用することも可能である。
The present invention can also be used as one function of an intelligent terminal device or a composite terminal device.

更に、日本語ワードプロセッサに対して本発明を適用す
る場合には、仮名およびローマ字による入力の一部省略
のみならず、(本発明は任意の文字(データ)列に適用
可能であるから)適切な区切り記号を設定することによ
り、漢字等を含む日本語文書を対象とした入力の一部省
略を可能とした装置を実現することができる。
Further, when the present invention is applied to a Japanese word processor, not only is the omission of a part of the input in kana and roman letters, but it is also appropriate (since the present invention is applicable to any character (data) string). By setting the delimiter, it is possible to realize a device that can partially omit the input for a Japanese document including Chinese characters.

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

第1図は本発明の一実施例を示すブロック図、 第2図は本実施例の動作を説明するために使用する図、 第3図は本実施例において用いる文字バッファメモリの
詳細構成図、 第4図,第5図(A)および(B),第6図は本実施例
にて行われる処理のアルゴリズムを示すフローチャー
ト、 第7図(A),(B)および第8図は本実施例の表示例
を示す図である。 1……文字入力手段、 2……文字バッファメモリ、 3……指示手段、 4……照合文字列決定手段、 5……選択手段、 6……展開手段、 7……表示手段、 8……制御手段、 9……他の処理手段、 RC……照合文字列。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram used to explain the operation of this embodiment, and FIG. 3 is a detailed configuration diagram of a character buffer memory used in this embodiment, FIGS. 4, 5 (A) and (B), and FIG. 6 are flowcharts showing the algorithm of the processing performed in the present embodiment, and FIGS. 7 (A), (B) and FIG. It is a figure which shows the example of a display. 1 ... Character input means, 2 ... Character buffer memory, 3 ... Instructing means, 4 ... Collation character string determining means, 5 ... Selection means, 6 ... Expansion means, 7 ... Display means, 8 ... Control means, 9 ... Other processing means, RC ... Collation character string.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】表示手段(7)と、入力手段(50)と、制
御記憶手段(60)とを有する文書編集装置であって、 制御記憶手段(60)は、入力手段(50)から入力された
文字列を記憶する文字バッファメモリ(2)を有し、制
御信号を入力して、文字バッファメモリ(2)から、所
定の照合文字列を決定し、この照合文字列に相当する探
索文字列を文字バッファメモリ(2)から探索し、この
探索文字列を含む語、または行を選択し、この語、また
は行を記憶し、 表示手段(7)は、制御記憶手段(60)により記憶され
た探索文字列を含む語、または行を表示する 文書編集装置。
1. A document editing apparatus comprising a display means (7), an input means (50) and a control storage means (60), wherein the control storage means (60) is input from the input means (50). A character buffer memory (2) for storing the specified character string, inputting a control signal, determining a predetermined collation character string from the character buffer memory (2), and searching character corresponding to this collation character string. The column is searched from the character buffer memory (2), the word or line containing this searched character string is selected, and this word or line is stored, and the display means (7) is stored by the control storage means (60). A document editing device that displays a word or line containing a specified search string.
JP59147479A 1984-07-18 1984-07-18 Document editing device Expired - Lifetime JPH0799520B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP59147479A JPH0799520B2 (en) 1984-07-18 1984-07-18 Document editing device
US07/853,864 US5262948A (en) 1984-07-18 1992-03-20 Word processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59147479A JPH0799520B2 (en) 1984-07-18 1984-07-18 Document editing device

Publications (2)

Publication Number Publication Date
JPS6128156A JPS6128156A (en) 1986-02-07
JPH0799520B2 true JPH0799520B2 (en) 1995-10-25

Family

ID=15431320

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59147479A Expired - Lifetime JPH0799520B2 (en) 1984-07-18 1984-07-18 Document editing device

Country Status (1)

Country Link
JP (1) JPH0799520B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2715299B2 (en) * 1987-05-30 1998-02-18 松下電器産業株式会社 Method for forming Z-bottom nO film
FR2805909B1 (en) * 2000-03-02 2005-02-11 Sagem METHOD FOR MATCHING A SEIZED MOTIF AND A SENTENCE RECORDED IN A DICTIONARY

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5346652B2 (en) * 1975-03-12 1978-12-15
JPS55108075A (en) * 1979-02-09 1980-08-19 Sharp Corp Data retrieval system

Also Published As

Publication number Publication date
JPS6128156A (en) 1986-02-07

Similar Documents

Publication Publication Date Title
JP4048169B2 (en) A system to support text input by automatic space generation
JPH0762848B2 (en) Electronic dictionary
US5262948A (en) Word processor
JPH0799520B2 (en) Document editing device
GB2196454A (en) Data processing system
JPH0227701B2 (en)
JP2005044103A (en) Document creation device and method and program
JPS6365988B2 (en)
JP3749292B2 (en) Kana-kanji conversion device
JPH05282293A (en) Word processor
JPS59100941A (en) Kana (japanese syllabary)-kanji (chinese character) converter
JP3466761B2 (en) Document processing apparatus and control method thereof
JPH10177573A (en) Method and device for processing document
JPH0565898B2 (en)
JP3052339B2 (en) Document data processing device
JPH01318156A (en) Document processor
JPH07160719A (en) Device for referring to electronic dictionary
JPH0343659B2 (en)
JPH01237875A (en) Printer
JPH0721176A (en) Method and device for character correction
JPS61249167A (en) Kana-kanji converting system
JPH0638258B2 (en) Character processor
JPH1063654A (en) Method and device for substituting character string
JPH01237874A (en) Printer
JPH08329076A (en) Device and method for supporting proofreading