JPH07168833A - Area specifying device - Google Patents

Area specifying device

Info

Publication number
JPH07168833A
JPH07168833A JP5313287A JP31328793A JPH07168833A JP H07168833 A JPH07168833 A JP H07168833A JP 5313287 A JP5313287 A JP 5313287A JP 31328793 A JP31328793 A JP 31328793A JP H07168833 A JPH07168833 A JP H07168833A
Authority
JP
Japan
Prior art keywords
area
character
word
character string
hyphen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5313287A
Other languages
Japanese (ja)
Inventor
Koichi Fujita
公一 藤田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP5313287A priority Critical patent/JPH07168833A/en
Publication of JPH07168833A publication Critical patent/JPH07168833A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To provide an area specifying device which lightens the burden on an operator by enabling an area wherein many individual words delimited with a special symbol are edited to be specified by a small number operations. CONSTITUTION:This area specifying device is provided with a cursor for specifying the position of an optional character in a character string displayed at a display part 4, a word area extracting means which extracts the area of a word including the character at the character position specified with the cursor, a special symbol deciding means which decides whether the word in the area extracted by the word area extracting means is a word including the special symbol relating characters or a word which does not include the special symbol, a special symbol character string area extracting means which extracts areas of respective character strings delimited with the special symbol when the special symbol deciding means decides that the special symbols is included, and a special symbol character string area specifying means which specifies the area of one character string among the areas of the respective character strings extracted by the special symbol character string area extracting means.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、領域指定装置に関し、
殊に、ワードプロセッサに組み込まれて、このワードプ
ロセッサ上で“領域指定”という一機能として働く領域
指定装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a region designation device,
In particular, the present invention relates to an area designation device incorporated in a word processor and serving as one function of "area designation" on the word processor.

【0002】[0002]

【従来の技術】従来、ワードプロセッサ上で辞書引き、
移動、削除、コピー等の編集処理を行う場合には、ワー
ドプロセッサのCRT上に表示されている文書の文字を
カーソルで指定し、後に前記編集処理を行う命令を入力
すると、その指定されている文字から自動的に、この文
字を含む単語の領域が抽出されて、この抽出された領域
の単語単位で、その編集処理を行うものがあった。しか
し、これでは、例えば、文字と文字とを関連付けるハイ
フン等の特殊符号で2つの単語を繋いだようなものの場
合でも、それを1単語として抽出されてしまう。そうす
ると、それら個々の単語についての辞書引き、移動、削
除、コピー等の編集処理がおこなえない等の不都合があ
った。そこで、編集処理を行う領域を任意に指定できる
領域指定装置が提供されている。
2. Description of the Related Art Conventionally, dictionary lookup on a word processor,
When performing editing processing such as moving, deleting, copying, etc., when the character of the document displayed on the CRT of the word processor is designated by the cursor and an instruction for carrying out the editing processing is subsequently inputted, the designated character There is a method in which a region of a word including this character is automatically extracted, and the editing process is performed for each word of the extracted region. However, in this case, for example, even when two words are connected by a special code such as a hyphen that associates characters with each other, it is extracted as one word. Then, there is an inconvenience that it is impossible to perform dictionary processing, moving, deleting, copying and the like for each individual word. Therefore, there is provided an area designation device capable of arbitrarily designating an area to be edited.

【0003】従来この種の領域指定装置としては、領域
の始めの文字を領域開始文字として指定操作し、その
後、領域の終わりにある文字を領域終了文字に指定操作
して、編集処理する領域の指定を行っていた。
Conventionally, in this kind of area designating apparatus, the character at the beginning of the area is designated and operated as the area starting character, and then the character at the end of the area is designated and designated as the area ending character, and the area to be edited I was making a designation.

【0004】[0004]

【発明が解決しようとする課題】しかし、文書中に特殊
符号を含んだ単語が多くあり、それら特殊符号で区切ら
れた単語個々(以下、ハイフン文字列と称する。)につ
いて編集処理を行なわねばならない場合、それらハイフ
ン文字列それぞれについて、領域開始文字の指定操作
と、領域終了文字の指定操作を行わねばならず、煩雑な
操作が必要であり、操作者に大きな負担をしいるという
不具合があった。
However, there are many words containing special codes in a document, and each word separated by these special codes (hereinafter referred to as a hyphen character string) must be edited. In that case, for each of those hyphen character strings, the operation to specify the area start character and the operation to specify the area end character must be performed, which requires complicated operation, which causes a large burden on the operator. .

【0005】本発明は、上記実情に鑑み、特殊符号で区
切られた個々の単語、即ちハイフン文字列を多く編集処
理する場合に、その領域指定を少ない操作で行えて、操
作者の負担を軽減できる領域指定装置を提供することを
目的とする。
In view of the above situation, the present invention can reduce the operator's burden because the area can be specified with a small number of operations when a large number of individual words delimited by special codes, that is, hyphen character strings, are edited. It is an object of the present invention to provide an area designating device capable of performing the same.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、本発明の領域指定装置は、表示部に表示してある文
字列の内、任意の文字の位置を指定するカーソルと、前
記カーソルが指定する文字位置の文字を含む単語の領域
を抽出する単語領域抽出手段と、前記単語領域抽出手段
が抽出する領域の単語に、文字と文字とを関連付ける特
殊符号を含む単語であるか、前記特殊符号を含まない単
語であるかを判別する特殊符号判別手段と、前記特殊符
号判別手段が特殊符号を含むと判別した場合に、その特
殊符号によって区切られた各文字列の領域を抽出する特
殊符号文字列領域抽出手段と、前記特殊符号文字列領域
抽出手段により抽出された各文字列の領域の内、一つの
文字列の領域を指定する特殊符号文字列領域指定手段
と、を備えたことを特徴とする。
In order to achieve the above object, the area designating device of the present invention comprises a cursor for designating a position of an arbitrary character in a character string displayed on a display unit, and the cursor. A word region extracting means for extracting a region of a word including a character at a designated character position; and a word in the region extracted by the word region extracting means, which is a word including a special code for associating a character with a character, or the special character A special code discriminating means for discriminating whether or not the word does not include a code, and a special code for extracting an area of each character string delimited by the special code when the special code discriminating means discriminates that the special code is included. A character string area extracting means; and a special code character string area specifying means for specifying an area of one character string among the areas of each character string extracted by the special code character string area extracting means. Special To.

【0007】[0007]

【作用】上記構成によれば、操作者がカーソルにより、
表示部に表示してある文字列の内、編集処理したい所望
の単語の文字を指定すると、単語領域抽出手段が前記カ
ーソルが指定する文字位置の文字を含む単語の領域を抽
出し、特殊符号判別手段が前記単語領域抽出手段が抽出
する領域の単語に、文字と文字とを関連付ける特殊符号
を含む単語であるか、前記特殊符号を含まない単語であ
るかを判別し、特殊符号文字列領域抽出手段が前記特殊
符号判別手段が特殊符号を含むと判別した場合に、その
特殊符号によって区切られた各文字列の領域を抽出す
る。そして、操作者が特殊符号文字列領域指定手段によ
り、前記特殊符号文字列領域抽出手段により抽出された
各文字列の領域の内、所望の一つの文字列の領域を指定
することができる。
According to the above construction, the operator can move the cursor with
When the character of the desired word to be edited is designated from the character strings displayed on the display unit, the word area extracting means extracts the area of the word including the character at the character position designated by the cursor, and determines the special code. The means determines whether the word in the area extracted by the word area extracting means is a word including a special code that associates characters with each other or a word not including the special code, and extracts a special code character string area. When the means determines that the special code includes the special code, the area of each character string delimited by the special code is extracted. Then, the operator can use the special code character string area designating unit to specify a desired one character string area among the areas of the respective character strings extracted by the special code character string area extracting unit.

【0008】[0008]

【実施例】以下、本発明の領域指定装置の一実施例を図
面を用いて説明する。この領域指定装置は、ワードプロ
セッサに代表される文書作成装置内に組み込まれている
のもので図1に構成図を示す。この領域指定装置は、入
力部1、コンピュータ本体2、バッファ3、出力部4、
からなる。入力部1は、モードを選択するモードキーと
各モードで使われる常用キーから成り、モードキーは、
カーソル5が指定している文字を含む単語(以下、カー
ソル指定単語と称する。)の領域を抽出するためのモー
ド(以下、単語領域抽出モードと称する。)にする単語
領域抽出モードキー6と、ハイフン符号“−”を含む単
語の、ハイフン符号“−”で区切られた各文字列(以
下、ハイフン文字列と称する。)を抽出するためのモー
ド(以下、ハイフン文字列抽出モードと称する。)にす
るハイフン文字列抽出モードキー7とからなり、常用キ
ーは、出力部のCRT上のカーソルの移動を行わせる前
方向キー8及び後方向キー9、カーソル5が指し示す文
字を指定文字として入力することや、前述の各モードに
おける処理の実行を指示する命令を入力する実行キー1
0、を備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the area designating apparatus of the present invention will be described below with reference to the drawings. This area designating device is incorporated in a document creating device represented by a word processor, and its configuration is shown in FIG. This area designating device includes an input unit 1, a computer main body 2, a buffer 3, an output unit 4,
Consists of. The input section 1 is composed of a mode key for selecting a mode and a regular key used in each mode.
A word area extraction mode key 6 for setting a mode (hereinafter, referred to as word area extraction mode) for extracting an area of a word (hereinafter, referred to as a cursor designated word) including a character designated by the cursor 5; A mode (hereinafter, referred to as a hyphen character string extraction mode) for extracting each character string (hereinafter, referred to as a hyphen character string) delimited by the hyphen code "-" in a word including the hyphen code "-". The hyphen character string extraction mode key 7 and the normal key is used to input the character pointed by the forward direction key 8 and the backward direction key 9 and the cursor 5 for moving the cursor on the CRT of the output section as the designated character. And an execution key 1 for inputting an instruction to execute the processing in each mode described above.
It has 0.

【0009】コンピュータ本体2は主記憶部11と中央
処理部(CPU)12からなる。主記憶部11は、英語
の文書データ13、出力部4に備えているCRT14上
のカーソル5の位置情報データ15、前記カーソル指定
単語の領域及びハイフン文字列の領域を抽出するプログ
ラム16を記憶している。中央処理部12は、前記単語
領域抽出モードが選択されていることを示す第1のモー
ドレジスタ17、前記ハイフン文字列抽出モードが選択
されていることを示す第2のモードレジスタ18、カー
ソル指定単語からこの単語を構成する各ハイフン文字列
を抽出する場合に用いられるレジスタa、レジスタb及
びレジスタcを備えていると共に、入力部1からの指示
にしたがい前記プログラム16を読み出し実行するもの
である。
The computer main body 2 comprises a main memory unit 11 and a central processing unit (CPU) 12. The main storage unit 11 stores the English document data 13, the position information data 15 of the cursor 5 on the CRT 14 provided in the output unit 4, the program 16 for extracting the area of the cursor designated word and the area of the hyphen character string. ing. The central processing unit 12 includes a first mode register 17 indicating that the word area extraction mode is selected, a second mode register 18 indicating that the hyphen character string extraction mode is selected, and a cursor designation word. It is provided with a register a, a register b, and a register c used when extracting each hyphen character string constituting this word from, and reads out and executes the program 16 according to an instruction from the input unit 1.

【0010】バッファ3は、カーソル指定単語の位置情
報を記憶する単語領域記憶部21と、このカーソル指定
単語を構成する各ハイフン文字列それぞれの位置情報を
記憶するハイフン文字列記憶部22を備えている。出力
部4は、前述しているようにCRT14を備えており、
主記憶部11に記憶されている文書データにしたがう英
語の文書、カーソルの位置情報データ15にしたがうカ
ーソル、バッファ3に記憶している位置情報にしたがう
カーソル指定単語及びハイフン文字列の領域をCRT1
4上に枠取りで表示する。
The buffer 3 is provided with a word area storage unit 21 for storing position information of a cursor designated word and a hyphen character string storage unit 22 for storing position information of each hyphen character string constituting the cursor designated word. There is. The output unit 4 includes the CRT 14 as described above,
An area of the English document according to the document data stored in the main storage unit 11, the cursor according to the position information data 15 of the cursor, the cursor designated word and the hyphen character string according to the position information stored in the buffer 3 is displayed on the CRT 1
The frame is displayed on the top of 4.

【0011】主記憶部11の前記文書データ13は、C
RT14の画面上の位置を2次の座標で表し、この座標
と文書の文字を対応した状態で記憶させてある。図2に
主記憶部11に記憶している文書データ13を示し、図
3に図2に示している文書データ13をCRT14上に
表示した状態を示している。図2に示すように、文書デ
ータ13は、左側を座標欄にし、右側を英文字格納欄に
した表にしてあり、同じ段に収容してある座標と英文字
とを対応させてある。即ち、英文字格納欄の1段目の
“T”は、同段の座標(0,0)と対応しているもの
で、図3では、CRT14上の左上端の画面の始まりに
配置されている。同様に、英文字格納欄の5段目の
“U”は、同段の座標(0,4)と対応しているもの
で、CRT14上の前記“T”の位置から2つの文字と
1つスペースを挟んで配置されている。カーソルの位置
情報データ15は、座標で示されている。図4にその一
例を示す。この座標データ(0,41)に従って、カー
ソルが図3の文書内の位置に存する。
The document data 13 in the main memory 11 is C
The position of the RT 14 on the screen is represented by secondary coordinates, and the coordinates and the characters of the document are stored in a corresponding state. 2 shows the document data 13 stored in the main storage unit 11, and FIG. 3 shows a state in which the document data 13 shown in FIG. 2 is displayed on the CRT 14. As shown in FIG. 2, the document data 13 has a table in which the left side is a coordinate field and the right side is an English character storage field, and the coordinates and the English characters accommodated in the same row are associated with each other. That is, the "T" in the first row of the English character storage column corresponds to the coordinate (0, 0) in the same row, and is placed at the beginning of the screen at the upper left corner on the CRT 14 in FIG. There is. Similarly, the "U" in the fifth row of the English character storage column corresponds to the coordinate (0, 4) in the same row, and two characters and one from the position of the "T" on the CRT14. It is placed across a space. The cursor position information data 15 is indicated by coordinates. FIG. 4 shows an example thereof. According to this coordinate data (0, 41), the cursor is located at the position in the document shown in FIG.

【0012】前記バッファの単語領域記憶部21及びハ
イフン文字列記憶部22の一例を図5に示す。単語領域
記憶部21は、上下2段に分けた記憶場所を備えてお
り、上段には、カーソル指定単語の始めの文字の位置情
報データ(以下、始め文字座標と称する。)を格納し、
下段には、その単語の終わりの文字の位置情報データ
(以下、終わり文字座標と称する。)を格納する。ハイ
フン文字列記憶部22は上下2段に分けた記憶場所を複
数設けてあり、各記憶場所にカーソル指定単語を構成す
る各ハイフン文字列の位置情報を格納するようにしてあ
る。各記憶場所の上段には、ハイフン文字列の始めの文
字の位置情報データを格納し、下段には、そのハイフン
文字列の終わりの文字の位置情報データを格納する。ま
た各記憶場所には左から右へ順に大きくなるインデック
ス番号を付してあるが、この番号は、カーソル指定単語
を構成する複数のハイフン文字列の並んでいる順番に対
応させたもので、1番先頭にあるハイフン文字列の位置
情報は、インデックス番号1の記憶場所に格納し、その
次にくるハイフン文字列の位置情報は、インデックス番
号2の記憶場所に格納する。以後も同様にハイフン文字
列を、それが表れる順番にあったインデックス番号の記
憶場所に格納する。
An example of the word area storage unit 21 and the hyphen character string storage unit 22 of the buffer is shown in FIG. The word area storage unit 21 is provided with storage locations divided into upper and lower stages, and in the upper stage, position information data (hereinafter, referred to as start character coordinates) of the first character of the cursor designated word is stored.
Position information data (hereinafter referred to as end character coordinates) of the character at the end of the word is stored in the lower row. The hyphen character string storage unit 22 is provided with a plurality of upper and lower storage locations, and the location information of each hyphen character string forming a cursor-designated word is stored in each storage location. The position information data of the first character of the hyphen character string is stored in the upper part of each storage location, and the position information data of the end character of the hyphen character string is stored in the lower part. In addition, each memory location is given an index number that increases from left to right. This number corresponds to the order in which a plurality of hyphen character strings forming the cursor-specified word are arranged. The position information of the hyphen character string at the beginning of the number is stored in the storage location of index number 1, and the position information of the hyphen character string that follows is stored in the storage location of index number 2. After that, similarly, the hyphen character string is stored in the memory location of the index number in the order in which it appears.

【0013】カーソル指定単語及びハイフン文字列の領
域を抽出するプログラム16は、単語領域抽出プログラ
ムとハイフン文字列抽出プログラムを備えている。単語
領域プログラムはカーソル5に指示されている文字か
ら、周知の手順によりその文字を含む単語(カーソル指
定単語)を認識し、その領域を抽出するもので、即ち、
カーソル5の位置を中心にして前後にある区切り文字を
検索して見つけだし、この見つけだした区切り文字間の
文字列が1つの単語であると認識する。その後は、この
位置情報を読み出し、前記バッファ3の単語領域記億部
21に格納する。なお、ここでいう区切り文字とは、空
白、疑問符、感嘆符、終止符、コロン、セミコロン等を
示すものをいい、単語間の区切りに表れるものである。
The program 16 for extracting the cursor designated word and the hyphen character string area includes a word area extracting program and a hyphen character string extracting program. The word area program recognizes a word (cursor designated word) including the character from the character pointed to by the cursor 5 by a well-known procedure and extracts the area, that is,
The delimiters located before and after the position of the cursor 5 are searched and found, and the character string between the found delimiters is recognized as one word. After that, this position information is read out and stored in the word area storage section 21 of the buffer 3. The term delimiter as used herein refers to a term indicating a space, a question mark, an exclamation mark, a terminator, a colon, a semicolon, or the like, which appears as a delimiter between words.

【0014】ハイフン文字列抽出プログラムは、単語領
域プログラムが抽出した単語領域にハイフン符号“−”
を含むかどうか判別し、ハイフン符号“−”があれば、
これにより区切られた各文字列の領域を抽出し、前記バ
ッファ3のハイフン文字列記憶部22に、それらの位置
情報を記憶させる。以下に、中央処理部12の制御動作
を、以下に示す例とフローチャートとを使って説明す
る。この例は、図3に示したカーソルが示している文字
を含む単語(カーソル指定単語)“peace−kee
ping”を先ず辞書引きするために領域指定し、その
後、この単語の内、ハイフン符号“−”の前のハイフン
文字列“peace”を辞書引きするために領域指定す
る。更に、ハイフン符号“−”の後のハイフン文字列
“keeping”を辞書引きするために領域指定し直
すことを行うものである。フローチャートは、図6〜図
8に示し、図6は、中央処理部12の制御動作のメイン
フローチャート、図7、図8は、図6に示すメインフロ
ーチャートの1処理工程を示すもので、図7は、単語領
域抽出処理のフローチャート、図8は、ハイフン文字列
抽出処理のフローチャートをそれぞれ示す。
The hyphen character string extraction program adds a hyphen code "-" to the word area extracted by the word area program.
If the hyphen code "-" is found,
The area of each character string delimited by this is extracted, and the position information thereof is stored in the hyphen character string storage unit 22 of the buffer 3. The control operation of the central processing unit 12 will be described below with reference to the following example and flowchart. In this example, a word (cursor designated word) "peace-kee" including the character indicated by the cursor shown in FIG.
First, an area is designated for dictionary lookup of "ping", and then an area is designated for dictionary lookup of the hyphen character string "peace" before the hyphen code "-" in this word. The area of the hyphen character string "keeping" after "is re-specified for dictionary lookup. The flowcharts are shown in FIGS. 6 to 8, and FIG. 6 shows the control operation of the central processing unit 12. The main flowchart, FIGS. 7 and 8 show one processing step of the main flowchart shown in FIG. 6, FIG. 7 shows a flowchart of the word area extracting process, and FIG. 8 shows a flowchart of the hyphen character string extracting process. .

【0015】先ず、入力部1の単語領域抽出モードキー
6を操作して、モードを通常のワープロを行う処理モー
ドではなく単語領域抽出モードにする(S100)。そ
うすると、先ず単語領域抽出プログラムが読み出され図
7に示すフローチャートにしたがってカーソル指定単語
の領域が抽出される(S200〜S202)。この領域
の抽出は先ず、主記憶部11のカーソル位置情報データ
15である座標を読み出しこの座標を基準座標として、
この座標より1つ前の座標の文字を主記憶部11の文書
データ13より読み出し、これと区切り文字それぞれと
を照合して、一致するかどうか判別する。一致しなけれ
ば、更に1つ前の文字を文書データ13から読み出し、
上述と同様に照合し、一致するかどうかを判別する。こ
の処理を一致するまで行い、一致すれば、その文字の1
つ後ろの座標を単語領域記億部21の上段に格納する
(S200)。今の場合は、基準座標は図4に示してあ
る(0,41)であり、この座標から前に読み出し照合
を進めていくと図2にから明らかなように、座標データ
(0,37)に対応する文字が空白を示し、これが区切
り文字と一致する。したがって、この座標データ(0,
37)の1つ後の座標データ(0,38)を単語領域記
憶部の上段に格納する。
First, the word area extraction mode key 6 of the input unit 1 is operated to set the mode to the word area extraction mode instead of the normal processing mode for word processing (S100). Then, first, the word area extraction program is read and the area of the cursor designated word is extracted according to the flowchart shown in FIG. 7 (S200 to S202). To extract this area, first, the coordinates that are the cursor position information data 15 in the main storage unit 11 are read, and these coordinates are used as the reference coordinates.
The character at the coordinate one before this coordinate is read from the document data 13 in the main storage unit 11, and this is compared with each delimiter to determine whether they match. If they do not match, the previous character is read from the document data 13,
Collation is performed in the same manner as described above to determine whether they match. This process is repeated until they match, and if they match, 1 of the character
The next coordinate is stored in the upper part of the word area storage 21 (S200). In the present case, the reference coordinates are (0, 41) shown in FIG. 4, and when reading and proceeding from this coordinate forward, it is clear from FIG. 2 that the coordinate data (0, 37). The character corresponding to indicates a space, which matches the delimiter. Therefore, this coordinate data (0,
The coordinate data (0, 38) immediately after 37) is stored in the upper part of the word area storage unit.

【0016】次に前記基準座標より後ろの座標について
上述と同様に読み出し及び照合処理し、一致すればその
文字の座標1つ前の座標を単語領域記憶部21の下段に
格納する(S201)。今の場合は、図2から明らかな
ように座標(0,51)に対応する文字が空白を示しこ
れが区切り文字と一致するから、この座標の1つ前の座
標(0,50)が単語領域記憶部21の下段に格納され
ることになる。図9に上記座標を格納した単語領域記憶
部21の状態を示す。この後は、出力部4が単語領域記
憶部21に格納された座標にしたがってCRT14上に
領域指定を示す枠取りを表示する。今の場合において、
図11に示すように、文書中の“peace−keep
ing”が枠取られることになる。
Next, the coordinates after the reference coordinates are read and collated in the same manner as described above, and if they match, the coordinates immediately before the coordinates of the character are stored in the lower part of the word area storage unit 21 (S201). In this case, as is clear from FIG. 2, the character corresponding to the coordinate (0,51) indicates a blank space and matches the delimiter, so the coordinate (0,50) immediately before this coordinate is the word region. It is stored in the lower part of the storage unit 21. FIG. 9 shows the state of the word area storage unit 21 storing the above coordinates. After that, the output unit 4 displays a framed frame indicating the area designation on the CRT 14 according to the coordinates stored in the word area storage unit 21. In the present case,
As shown in FIG. 11, "peace-keep" in the document
"ing" will be framed.

【0017】次に、図6に示すように先のS100で選
択したモードがハイフン文字列抽出モードか単語領域抽
出モードかで手順が変わってくる。ハイフン文字列抽出
モードを選択した場合は、ハイフン文字列を抽出し、そ
の抽出したハイフン文字列で辞書引き、移動、削除、コ
ピー等の編集処理を行うもので、図6に示すS103〜
S109の手順にしたがって実行される。一方、単語領
域抽出モードを選択した場合は、先に抽出されたカーソ
ル指定単語の領域単位で、前述の編集処理が行われ(S
110)、その後、ハイフン文字列抽出モードの選択を
行って、前述のS103〜S109の手順にしたがい実
行されるか、あるいは単語領域抽出モードを終了する
(S112)。今の場合は、S100で単語領域抽出モ
ードを選択しているから先ず、前述したように“pea
ce−keeping”を1つの領域として指定されて
いるもので、この領域で辞書引きが行える。この辞書引
きを行った後は、ハイフン文字列モードキーを操作して
モードを単語領域抽出モードからハイフン文字列モード
に変更する。
Next, as shown in FIG. 6, the procedure changes depending on whether the mode selected in S100 is a hyphen character string extraction mode or a word area extraction mode. When the hyphen character string extraction mode is selected, a hyphen character string is extracted, and the extracted hyphen character string is used to perform dictionary edit, move, delete, copy, and other editing processing.
It is executed according to the procedure of S109. On the other hand, when the word area extraction mode is selected, the above-described editing processing is performed for each area of the previously specified cursor-specified word (S).
110), after that, the hyphen character string extraction mode is selected and executed according to the procedure of S103 to S109 described above, or the word area extraction mode is ended (S112). In this case, since the word area extraction mode is selected in S100, first, as described above, "pea
"ce-keeping" is designated as one area, and dictionary lookup can be performed in this area. After performing this dictionary lookup, operate the hyphen character string mode key to change the mode from the word area extraction mode to the hyphen. Change to string mode.

【0018】そうすると、前述したようにS103〜S
109にしたがい処理れされていく。即ち、先ず、ハイ
フン文字列抽出プログラムが読み出され図8のフローチ
ャートにしたがいハイフン文字列の処理が行われる。先
ず、カーソル指定単語にハイフン符号“−”を含むかど
うか調べ出し、ハイフン符号“−”がなければ、ハイフ
ン符号“−”を含まない単語としてレジスタcに0を記
憶させてその処理を終了する。一致するものがあればS
302に進む。ハイフン符号“−”の有無の調べだし
は、先ずバッファ3の単語領域記億部21の始め文字座
標及び終わり文字座標を読み出し、始め文字座標から終
わり文字座標の範囲内で、これら座標に存する文字を文
書データ3から読み出し、これら読み出し毎にハイフン
符号“−”と照合し、一致するかどうか判別して行う。
今の場合は、照合を行う座標の範囲は図9から(0,3
8)〜(0,50)で図2から明らかなように、座標
(0,43)にハイフン符号“−”が存する。したがっ
て、S302に進み、先ずハイフン符号“−”を含む単
語としてレジスタcに1を記憶させ、後にS303〜S
309で各ハイフン文字列の位置情報を調べ出し、バッ
ファ3のハイフン文字列記憶部に格納する。即ち、先
ず、レジスタaに初期値として0を記憶させる(S30
3)。次に、前記レジスタaに記憶させて数値に1を加
算して再びレジスタaに記憶させる(S304)。そし
て、バッファ3の単語領域記億部21から始め文字座標
と終わり文字座標を読み出し、この始め文字座標から終
わり文字座標に向かって1つづつ座標に対応する文字を
主記憶部11の文書データ13から読み出し、その読み
出し毎にハイフン符号“−”と照合する(S305)。
終わり文字座標までの範囲で、一致するまでその照合を
繰り返す。一致すれば(S306)、レジスタbにその
座標を記憶させる。そして、前記レジスタaの数値を読
み出し、これと同じ数値のインデックス番号を持つハイ
フン文字列記憶部22の記憶場所の下段に、この一致し
た文字の1つ前の座標を格納すると共に、前記始まり文
字座標をその上段に格納する(S307)。なお、この
場合は最初の処理であるからレジスタaは1であり、前
記座標はインデックス番号1の記憶場所に格納される。
Then, as described above, S103 to S103
It is processed according to 109. That is, first, the hyphen character string extraction program is read, and the hyphen character string is processed according to the flowchart of FIG. First, it is determined whether the hyphen code "-" is included in the word designated by the cursor. If there is no hyphen code "-", 0 is stored in the register c as a word not including the hyphen code "-", and the processing is terminated. . S if there is a match
Proceed to 302. The search for the presence or absence of the hyphen code "-" is performed by first reading the start character coordinate and the end character coordinate of the word area storage section 21 of the buffer 3, and within the range from the start character coordinate to the end character coordinate. Is read from the document data 3, and a hyphen code "-" is collated for each reading to determine whether or not they match.
In this case, the range of coordinates to be collated is (0, 3) from FIG.
As is clear from FIG. 2 in 8) to (0, 50), the hyphen code "-" exists at the coordinate (0, 43). Therefore, the procedure proceeds to S302, where 1 is first stored in the register c as a word including the hyphen code "-", and later, S303 to S
At 309, the position information of each hyphen character string is searched and stored in the hyphen character string storage unit of the buffer 3. That is, first, 0 is stored in the register a as an initial value (S30
3). Next, it is stored in the register a, 1 is added to the numerical value, and stored again in the register a (S304). Then, the starting character coordinates and the ending character coordinates are read from the word area storage section 21 of the buffer 3, and the characters corresponding to the coordinates one by one from the starting character coordinates to the ending character coordinates are read in the document data 13 of the main storage unit 11. Is read out, and a hyphen code "-" is collated for each reading (S305).
The matching is repeated until a match is made within the range up to the end character coordinate. If they match (S306), the coordinates are stored in the register b. Then, the numerical value of the register a is read out, and the coordinate immediately before the matched character is stored in the lower part of the storage location of the hyphen character string storage unit 22 having the same index number as the starting character. The coordinates are stored in the upper row (S307). In this case, since the process is the first process, the register a is 1, and the coordinates are stored in the storage location of index number 1.

【0019】次に、レジスタaの数値に1を加算し格納
する。そして前記レジスタbを読み出し、この座標の1
つ後ろの座標の文字を前述の始め文字座標の同じ様に文
字の読み出し照合を行う出発文字として(S308)、
前述同様にこの座標から終わり文字座標に向かって1つ
づつ座標に対応する文字を主記憶部11から読み出しハ
イフン符号“−”と照合する。終わり文字座標までの範
囲で、一致するのもがあれば、前述と同様この一致した
文字の1つ前の座標をレジスタbに記憶させるととも
に、前記レジスタaを読み出しその数値のインデックス
番号の下段にこの一致した座標の前の座標を格納し、そ
の上段には、前記出発文字とした座標を格納する。以
後、終わり文字座標に到る範囲でハイフン符号“−”と
一致する文字がなくなるまで、上述のレジスタaの変
更、レジスタbの読み出し変更及びシフト文字記憶場所
への座標の格納を行う(S304〜S308)。次に、
終わり文字座標に到る範囲でハイフン符号“−”と一致
する文字がなければ、レジスタaを読み出しこれに記憶
したある数値と同じ数値のインデックス番号の記憶場所
の下段に、終わり文字の座標を格納する(S309)。
その上段にこの場合の出発文字座標を格納し、その後は
ハイフン文字列を全て抽出したものとしてこの処理を終
える。
Next, 1 is added to the numerical value of the register a and stored. Then, the register b is read, and 1 of this coordinate is read.
The character of the second coordinate is used as a starting character for reading and collating the character in the same manner as the above-mentioned start character coordinate (S308),
Similarly to the above, the characters corresponding to the coordinates are read from the coordinates toward the end character coordinates one by one from the main storage unit 11 and collated with the hyphen code "-". If there is a match in the range up to the end character coordinate, the previous coordinate of the matched character is stored in the register b as described above, and the register a is read out to the lower part of the index number of the numerical value. The coordinates before the matched coordinates are stored, and the coordinates used as the starting character are stored in the upper row. After that, until there is no character matching the hyphen code "-" in the range up to the end character coordinate, the above-mentioned register a is changed, the read-out of the register b is changed, and the coordinate is stored in the shift character storage location (S304-). S308). next,
If there is no character that matches the hyphen code "-" within the range to the end character coordinates, the register a is read and the end character coordinates are stored in the lower part of the memory location of the index number of the same numerical value stored in this register a. Yes (S309).
The starting character coordinates in this case are stored in the upper row, and thereafter, this processing is finished assuming that all hyphen character strings have been extracted.

【0020】今の場合、始め文字座標及び終わり文字座
標は図9に示すように、(0,38)〜(0,50)で
あり、先ず(0,38)から始め(0,39)、(0,
40)・・・とそれぞれの文字が読み出されハイフン符
号“−”と照合される。図2から明らかなように座標デ
ータ(0,43)に一致するハイフン符号“−”が存す
る。この座標(0,43)をレジスタbに記憶させ、そ
して、インデックス番号1の記憶場所の下段にこの一致
した座標の1つ前の座標(0,42)を格納し、その上
段に始め文字座標(0,38)を格納する。次に、レジ
スタbを読み出しこの座標以降についてハイフン符号
“−”があるかどうか探索するが、図2から明らかなよ
うに、ハイフン符号“−“は存在しない。したがって、
終わり文字座標(0,49)をインデックス番号2の記
憶場所の下段に格納し、この場合の出発文字座標(0,
44)を、その上段に格納してその処理を終了する。図
10に上記ハイフン文字列記憶部に座標を格納している
状態を示している。
In the present case, the start character coordinate and the end character coordinate are (0,38) to (0,50) as shown in FIG. 9, and the first (0,38) starts (0,39), (0,
40) ... And each character is read and collated with a hyphen code "-". As is clear from FIG. 2, there is a hyphen code "-" that matches the coordinate data (0,43). The coordinate (0, 43) is stored in the register b, and the coordinate (0, 42) immediately before the matched coordinate is stored in the lower row of the storage location of the index number 1, and the start character coordinate is stored in the upper row. It stores (0, 38). Next, the register b is read to search whether or not there is a hyphen code "-" after this coordinate, but as is apparent from FIG. 2, the hyphen code "-" does not exist. Therefore,
The ending character coordinate (0, 49) is stored in the lower part of the storage location of index number 2, and the starting character coordinate (0, 49) in this case is stored.
44) is stored in the upper row, and the processing ends. FIG. 10 shows a state in which coordinates are stored in the hyphen character string storage unit.

【0021】次に、図6のS105で示すように、領域
指定されたカーソル指定単語がハイフン符号“−”を含
むかどうかを判別する。これは中央処理部12のレジス
タcを読み出し、0であれば、ハイフンを含まないと判
別し、1であればハイフン符号を含むと判別する。含ま
ないと判別されると“分割できる単語無し“を表示して
このハイフン文字列抽出モードを終了し、含むと判別S
されるとS106に進む。今の場合はレジスタcには1
が記憶されていて、S106に進む。
Next, as shown in S105 of FIG. 6, it is determined whether or not the area-specified cursor-designated word includes a hyphen code "-". This reads the register c of the central processing unit 12, and if it is 0, it is determined that the hyphen is not included, and if it is 1, it is determined that the hyphen code is included. If it is determined that it is not included, “No word that can be divided” is displayed and this hyphen character string extraction mode is terminated, and it is determined that it is included S
Then, the process proceeds to S106. In this case, register c has 1
Is stored, and the process proceeds to S106.

【0022】S106では、ハイフン符号“−”の前の
文字列か後ろの文字列かの選択指示を受け付けると、出
力部4はその指示にしたがいハイフン文字列記憶部22
のインデックス番号1の記憶場所に格納されている座標
を読み出し、枠取りとしてCRT14上に表示する(S
107)。今の場合は、入力部1の後方向キー9が操作
される。そうすると出力部4がインデックス番号2の記
憶場所に格納されている座標間を枠取りし、この座標間
が領域指定されていることを示す。図12に後方向キー
が操作されたときのこのCRT14の状態を示す。更
に、ハイフン文字列の変更指示を受け付けると(S10
8)、その受け付けた方向に従ったインデックス番号の
記憶場所の座標をCRT14上に表示する(S10
7)。以後終了指示を受け付ける(S109)までこの
処理を繰り返す。 今の場合は、入力部1の前方向キー
8を操作する。そうするとインデックス番号1の記憶場
所に格納されている座標間を枠取りする。この指定され
た領域で編集処理を行えるようにできている。図13に
前方向キーが操作されたときのこのCRT14の状態を
示す。以上に示したように、この実施例では、前方向キ
ー8あるいは後方向キー9の操作だけでハイフン符号
“−”の前あるいは後ろの文字列を自在に指定を行えて
いる。
In S106, when the instruction to select the character string before or after the hyphen code "-" is accepted, the output unit 4 follows the instruction and selects the hyphen character string storage unit 22.
The coordinates stored in the storage location of the index number 1 are read out and displayed on the CRT 14 as a frame (S
107). In this case, the backward key 9 of the input unit 1 is operated. Then, the output unit 4 draws a frame between the coordinates stored in the storage location of the index number 2 and indicates that the area between the coordinates is designated. FIG. 12 shows the state of the CRT 14 when the backward key is operated. Furthermore, if an instruction to change the hyphen character string is received (S10
8), the coordinates of the storage location of the index number according to the received direction are displayed on the CRT 14 (S10).
7). Thereafter, this process is repeated until the end instruction is accepted (S109). In this case, the forward key 8 of the input unit 1 is operated. Then, a frame is drawn between the coordinates stored in the memory location of index number 1. The editing process can be performed in this designated area. FIG. 13 shows the state of the CRT 14 when the forward key is operated. As described above, in this embodiment, the character string before or after the hyphen code "-" can be freely designated only by operating the forward key 8 or the backward key 9.

【0023】尚、文書として英語を取り上げたが、本発
明はこれに限定されるものではなく、例えば、ドイツ
語、フランス語、スペイン語、ロシア語あるいは日本語
等であってもよい。また、なお、日本語のように単語が
スペース等の区切り文字で区切られていない言語を取り
上げる場合は、予めその言語を単語に分割しておくこと
によって、この日本語の文書を本実施例の英語の文書の
様に扱える。
Although English is taken as the document, the present invention is not limited to this, and may be, for example, German, French, Spanish, Russian or Japanese. Further, when taking up a language in which words are not separated by delimiters such as spaces such as Japanese, by dividing the language into words in advance, this Japanese document is It can be treated like an English document.

【0024】[0024]

【発明の効果】以上のように、本発明の領域指定装置を
用いると、特殊符号で区切られた単語個々について、そ
の領域指定を行なわねばならない場合、その操作数を少
なく抑えることができ、操作者の操作における負担の軽
減を行える。
As described above, when the area designating apparatus of the present invention is used, when the area designation must be performed for each word delimited by the special code, the number of operations can be suppressed to a small number. It is possible to reduce the burden on the user's operation.

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

【図1】本発明に係る領域指定装置の構成図を示す。FIG. 1 shows a block diagram of an area designating apparatus according to the present invention.

【図2】文書データを示す。FIG. 2 shows document data.

【図3】図2に示している文書データをCRT上に表示
した状態を示している。
FIG. 3 shows a state in which the document data shown in FIG. 2 is displayed on a CRT.

【図4】カーソルの位置情報データを示す。FIG. 4 shows cursor position information data.

【図5】バッファの記憶内容を示す。FIG. 5 shows the stored contents of a buffer.

【図6】中央処理部の制御動作のフローチャートを示
す。
FIG. 6 shows a flowchart of a control operation of a central processing unit.

【図7】単語領域抽出処理のフローチャートを示す。FIG. 7 shows a flowchart of word region extraction processing.

【図8】ハイフン文字列抽出処理のフローチャートを示
す。
FIG. 8 shows a flowchart of hyphen character string extraction processing.

【図9】バッファの単語領域記憶部を示す。FIG. 9 shows a word area storage unit of a buffer.

【図10】文書データの座標をハイフン文字列記憶部に
格納している状態を示す。
FIG. 10 shows a state in which coordinates of document data are stored in a hyphen character string storage unit.

【図11】CRTの状態を示す。FIG. 11 shows a state of a CRT.

【図12】CRTの状態を示す。FIG. 12 shows a state of a CRT.

【図13】CRTの状態を示す。FIG. 13 shows a state of a CRT.

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

1 入力部 2 コンピュータ本体 3 バッファ 4 出力部 11 主記憶部 12 中央処理部 1 Input Section 2 Computer Main Body 3 Buffer 4 Output Section 11 Main Memory Section 12 Central Processing Section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 表示部に表示してある文字列の内、任意
の文字の位置を指定するカーソルと、 前記カーソルが指定する文字位置の文字を含む単語の領
域を抽出する単語領域抽出手段と、 前記単語領域抽出手段が抽出する領域の単語に、文字と
文字とを関連付ける特殊符号を含む単語であるか、前記
特殊符号を含まない単語であるかを判別する特殊符号判
別手段と、 前記特殊符号判別手段が特殊符号を含むと判別した場合
に、その特殊符号によって区切られた各文字列の領域を
抽出する特殊符号文字列領域抽出手段と、 前記特殊符号文字列領域抽出手段により抽出された各文
字列の領域の内、一つの文字列の領域を指定する特殊符
号文字列領域指定手段と、を備えたことを特徴とする領
域指定装置。
1. A cursor for designating an arbitrary character position in a character string displayed on a display unit, and a word region extracting means for extracting a region of a word including a character at a character position designated by the cursor. A word in the area extracted by the word area extracting means, a special code determining means for determining whether the word includes a special code that associates a character with a character or a word that does not include the special code; When the code determination means determines that the special code is included, the special code character string area extraction means for extracting the area of each character string delimited by the special code, and the special code character string area extraction means An area designating apparatus comprising: a special code character string area designating unit for designating one character string area out of each character string area.
【請求項2】 前記特殊符号がハイフンである請求項1
に記載の領域指定装置。
2. The special code is a hyphen.
Area designation device described in.
JP5313287A 1993-12-14 1993-12-14 Area specifying device Pending JPH07168833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5313287A JPH07168833A (en) 1993-12-14 1993-12-14 Area specifying device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5313287A JPH07168833A (en) 1993-12-14 1993-12-14 Area specifying device

Publications (1)

Publication Number Publication Date
JPH07168833A true JPH07168833A (en) 1995-07-04

Family

ID=18039403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5313287A Pending JPH07168833A (en) 1993-12-14 1993-12-14 Area specifying device

Country Status (1)

Country Link
JP (1) JPH07168833A (en)

Similar Documents

Publication Publication Date Title
JP3792755B2 (en) Character recognition method and apparatus
JPH04281559A (en) Document retrieving device
JPH04281566A (en) Document retrieving device
JPH07168833A (en) Area specifying device
JPH05324645A (en) Document processing method and device
JPS63182769A (en) Kanji input device
JP3266755B2 (en) Chinese information processing device
JP3498635B2 (en) Information retrieval method and apparatus, and computer-readable recording medium
JPH05181912A (en) Document retrieving device
JP3056810B2 (en) Document search method and apparatus
JP2005044103A (en) Document creation device and method and program
JP3375701B2 (en) Electronic dictionary lookup device
JPH0991311A (en) Information storage and retrieval device and its control method
JP2815911B2 (en) Electronic dictionary
JP3237709B2 (en) Document processing apparatus and document processing method
JP3166995B2 (en) Comment giving method and document processing device
JPH08305713A (en) Electronic filing device
JPH04148370A (en) Document processor
JPS62229366A (en) Character processor
JP2002041509A (en) Character input device
JPH06266487A (en) Information processor and help information presenting method
JPH0799520B2 (en) Document editing device
JPS63157265A (en) Document processor
JPS63201766A (en) Document processor
JPH08185401A (en) Document retrieving device