JP3082977B2 - Character processing method and apparatus - Google Patents

Character processing method and apparatus

Info

Publication number
JP3082977B2
JP3082977B2 JP03295658A JP29565891A JP3082977B2 JP 3082977 B2 JP3082977 B2 JP 3082977B2 JP 03295658 A JP03295658 A JP 03295658A JP 29565891 A JP29565891 A JP 29565891A JP 3082977 B2 JP3082977 B2 JP 3082977B2
Authority
JP
Japan
Prior art keywords
character
cursor
type
detected
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP03295658A
Other languages
Japanese (ja)
Other versions
JPH05135047A (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 JP03295658A priority Critical patent/JP3082977B2/en
Publication of JPH05135047A publication Critical patent/JPH05135047A/en
Application granted granted Critical
Publication of JP3082977B2 publication Critical patent/JP3082977B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は文字列を処理する文字処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character processing apparatus for processing a character string.

【0002】[0002]

【従来の技術】文章を入力編集する文字処理装置におい
ては、既に入力が完了した文章を推敲の目的で読み直す
場合がしばしば発生する。このような場合、文の先頭位
置をサーチする機能があると、文章全体の大まかな流れ
を読み取ることができ便利なのだが、従来の文字処理装
置においてはそのような機能はなかった。従来装置にお
いて上記のようなことをしたい場合には、特定の文字を
サーチする機能を流用することになる。例えば、句点を
サーチするようにする。そうすれば、カーソルは文末を
移動することになるので、ほぼ目的を達成できる。
2. Description of the Related Art In a character processing apparatus for inputting and editing a sentence, a sentence in which input has already been completed is often reread for the purpose of elaboration. In such a case, it is convenient to have a function of searching for the head position of a sentence because it is possible to read a rough flow of the entire sentence, but there is no such function in a conventional character processing apparatus. If it is desired to do the above in the conventional device, the function of searching for a specific character is used. For example, search for a period. Then, since the cursor moves to the end of the sentence, almost the purpose can be achieved.

【0003】[0003]

【発明が解決しようとしている課題】ところが、このよ
うな従来装置の句点サーチの方法では、新しいカーソル
位置は句点の位置に移動する。そのため、推敲の結果、
新たな1文を追加したくなった場合は、カーソルを一文
字右に移動してから新しい文を入力する必要があった。
すなわち、句点サーチの方法では、カーソルは文末を移
動することになり、そのままでは即座に新しい文を入力
することができないという欠点があった。この欠点を回
避するためには文の先頭をサーチする必要があるが、通
常、文の先頭は任意の文字で始まり、特定の記号は存在
しないので、従来装置では文先頭を移動することができ
なかった。
However, in such a method of searching for a period in the conventional apparatus, the new cursor position is moved to the position of the period. As a result,
To add a new sentence, it was necessary to move the cursor one character to the right before inputting a new sentence.
That is, the method of searching for a period has a drawback that the cursor moves to the end of the sentence, and a new sentence cannot be input immediately as it is. To avoid this drawback, it is necessary to search the beginning of the sentence. However, since the beginning of the sentence usually starts with an arbitrary character and there is no specific symbol, the conventional device can move the beginning of the sentence. Did not.

【0004】[0004]

【課題を解決するための手段】上記課題を解決するため
に、本発明に係る文字処理装置は、文字列を記憶する文
書記憶手段と、前記文字列中の次の入力位置を規定する
カーソルを表示するカーソル表示手段と、カーソル位置
以降の文頭へカーソルを移動するように指示する指示手
段と、該指示手段の指示を受けて、現カーソル上の文字
の種類を判別する判別手段と、該判別手段により判別さ
れた文字が特定の種類であれば、所定の位置にカーソル
を移動する第1のカーソル移動手段と、前記判別手段に
より判別された文字が特定の種類でなければ、現カーソ
ル位置以降の前記文字列をサーチして、第1または第2
の種類の文字を検出する検出手段と、該検出手段により
第1の種類の文字が検出された場合に、当該検出された
文字の位置にカーソルを移動し、前記検出手段により第
2の種類の文字が検出された場合に、当該検出された文
字の位置より1文字だけ文書末尾側の文字位置にカーソ
ルを移動する第2のカーソル移動手段とを具える。ま
た、本発明の他の態様に係る文字処理装置は、文字列を
記憶する文書記憶手段と、前記文字列中の次の入力位置
を規定するカーソルを表示するカーソル表示手段と、カ
ーソル位置以前の文頭へカーソルを移動するように指示
する指示手段と、該指示手段の指示を受けて、現カーソ
ル位置より1文字だけ文書先頭側の文字の種類を判別す
る判別手段と、該判別手段により判別された文字が特定
の種類であれば、所定の位置にカーソルを移動する第1
のカーソル移動手段と、前記判別手段により判別された
文字が特定の種類でなければ、現カーソル位置以前の前
記文字列をサーチして、第1または第2の種類の文字を
検出する検出手段と、該検出手段により第1の種類の文
字が検出された場合に、当該検出された文字の位置にカ
ーソルを移動し、前記検出手段により第2の種類の文字
が検出された場合に、当該検出された文字の位置より1
文字だけ文書末尾側の文字位置にカーソルを移動するカ
ーソル移動手段とを具える。
In order to solve the above-mentioned problems, a character processing apparatus according to the present invention comprises a document storage means for storing a character string and a cursor for defining a next input position in the character string. Cursor displaying means for displaying, indicating means for instructing to move the cursor to the beginning of the sentence after the cursor position, determining means for determining the type of character on the current cursor in response to the instruction from the indicating means; A first cursor moving unit for moving a cursor to a predetermined position if the character determined by the unit is a specific type; and a current cursor position after the current cursor position if the character determined by the determining unit is not a specific type. Search for the first or second character string
Detecting means for detecting the first type of character, and when the first type of character is detected by the detecting means, moving the cursor to the position of the detected character, and detecting the second type of character by the detecting means. A second cursor moving means for moving a cursor to a character position on the document end side by one character from the position of the detected character when a character is detected. A character processing device according to another aspect of the present invention includes a document storage unit that stores a character string, a cursor display unit that displays a cursor that defines a next input position in the character string, Instructing means for instructing to move the cursor to the beginning of the sentence, determining means for receiving the instruction from the instructing means, and determining the type of the character at the head of the document by one character from the current cursor position, If the typed character is a specific type, move the cursor to a predetermined position.
Cursor moving means, and detecting means for searching the character string before the current cursor position and detecting a first or second type of character if the character determined by the determining means is not a specific type. When the first type of character is detected by the detection unit, the cursor is moved to the position of the detected character, and when the second type of character is detected by the detection unit, the detection is performed. 1 from the position of the character
Cursor moving means for moving the cursor to a character position at the end of the document by only characters.

【0005】また、本発明に係る文字処理方法によれ
ば、記憶した文字列を表示し、表示された文字列中の次
の入力位置を規定するカーソルを表示する文字処理装置
において、カーソル位置以降の文頭へカーソルを移動す
るように指示することにより、当該指示を受けて、現カ
ーソル上の文字の種類を判別し、当該判別された文字が
特定の種類であれば、所定の位置にカーソルを移動し、
前記判別された文字が特定の種類でなければ、現カーソ
ル位置以降の前記文字列をサーチして、第1または第2
の種類の文字を検出し、前記第1の種類の文字が検出さ
れた場合に、当該検出された文字の位置にカーソルを移
動し、前記第2の種類の文字が検出された場合に、当該
検出された文字の位置より1文字だけ文書末尾側の文字
位置にカーソルを移動する。また、本発明の他の態様に
係る文字処理方法によれば、記憶した文字列を表示し、
表示された文字列中の次の入力位置を規定するカーソル
を表示する文字処理装置において、カーソル位置以前の
文頭へカーソルを移動するように指示することにより、
当該指示を受けて、現カーソル位置より1文字だけ文書
先頭側の文字の種類を判別し、当該判別された文字が特
定の種類であれば、所定の位置にカーソルを移動し、前
記判別された文字が特定の種類でなければ、現カーソル
位置以前の前記文字列をサーチして、第1または第2の
種類の文字を検出し、前記第1の種類の文字が検出され
た場合に、当該検出された文字の位置にカーソルを移動
し、前記第2の種類の文字が検出された場合に、当該検
出された文字の位置より1文字だけ文書末尾側の文字位
置にカーソルを移動する。
According to the character processing method of the present invention, in a character processing apparatus for displaying a stored character string and displaying a cursor defining a next input position in the displayed character string, In response to the instruction, the type of the character on the current cursor is determined, and if the determined character is a specific type, the cursor is moved to a predetermined position. Move,
If the determined character is not a specific type, the character string after the current cursor position is searched, and the first or second character string is searched.
Type of character is detected, and when the first type of character is detected, a cursor is moved to the position of the detected character, and when the second type of character is detected, The cursor is moved by one character from the detected character position to the character position at the end of the document. Also, according to the character processing method according to another aspect of the present invention, the stored character string is displayed,
In a character processing device that displays a cursor that defines the next input position in the displayed character string, by instructing the cursor to move to the beginning of the sentence before the cursor position,
In response to the instruction, the type of the character at the head of the document is determined by one character from the current cursor position, and if the determined character is a specific type, the cursor is moved to a predetermined position and the character is determined. If the character is not a specific type, the character string before the current cursor position is searched to detect a first or second type of character, and if the first type of character is detected, The cursor is moved to the position of the detected character, and when the second type of character is detected, the cursor is moved to a character position closer to the end of the document by one character from the position of the detected character.

【0006】[0006]

【0007】[0007]

【実施例】以下に添付図面を参照して、本発明に係る好
適な一実施例を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment according to the present invention will be described below in detail with reference to the accompanying drawings.

【0008】〈第1の実施例〉図1は本発明に係る文字
処理装置の第1の実施例を示すブロック図である。同図
において、CPUは、マイクロプロセッサであり、文字
処理のための演算、論理判断等を行ない、アドレスバス
AB、コントロールバスCB、データバスDBを介し
て、それらのバスに接続された各構成要素を制御する。
<First Embodiment> FIG. 1 is a block diagram showing a first embodiment of a character processing device according to the present invention. In FIG. 1, a CPU is a microprocessor, which performs calculations for character processing, logical judgment, and the like, and is connected to each component via an address bus AB, a control bus CB, and a data bus DB. Control.

【0009】アドレスバスABはマイクロプロセッサC
PUの制御の対象とする構成要素を指示するアドレス信
号を転送する。コントロールバスCBはマイクロプロセ
ッサCPUの制御の対象とする各構成要素のコントロー
ル信号を転送して印加する。データバスDBは各構成機
器相互間のデータの転送を行なう。
The address bus AB is connected to the microprocessor C
An address signal indicating a component to be controlled by the PU is transferred. The control bus CB transfers and applies a control signal of each component to be controlled by the microprocessor CPU. The data bus DB transfers data between the components.

【0010】DICは辞書であり、仮名漢字変換を行な
う際に参照する。
DIC is a dictionary, which is referred to when performing kana-kanji conversion.

【0011】つぎにROMは、読出し専用の固定メモリ
であり、図4〜図6につき後述するマイクロプロセッサ
CPUによる制御の手順を記憶する。
The ROM is a fixed read-only memory, and stores a control procedure by a microprocessor CPU which will be described later with reference to FIGS.

【0012】また、RAMは、1ワード16ビットの構
成の書込み可能のランダムアクセスメモリであって、各
構成要素からの各種データの一時記憶に用いる。
The RAM is a writable random access memory having a structure of 16 bits per word, and is used for temporarily storing various data from each component.

【0013】KBはキーボードであって、アルファベッ
トキー、ひらかなキー、カタカナキー等の文字記号入力
キー、及び、サーチキー、逆サーチキー等の本文字処理
装置に対する各種機能を指示するための各種のファンク
ションキーを備えている。
A keyboard KB is a character symbol input key such as an alphabet key, a hiragana key, or a katakana key, and various keys such as a search key and an inverse search key for instructing various functions to the character processing apparatus. Has function keys.

【0014】DISKは文書データを記憶するためのF
D等の外部記憶である。テキストバッファ上に作成され
た文書は、このDISKに保管される。保管された文書
はキーボードの指示により、必要な時呼び出される。
DISK is an F for storing document data.
D or other external storage. Documents created on the text buffer are stored in this DISK. The stored documents are called up as needed by keyboard instructions.

【0015】CRはカーソルレジスタである。CPUに
より、カーソルレジスタの内容を読み書きできる。後述
するCRTコントローラCRTCは、ここに蓄えられた
アドレスに対応する表示装置CRT上の位置にカーソル
を表示する。
CR is a cursor register. The CPU can read and write the contents of the cursor register. A CRT controller CRTC described later displays a cursor at a position on the display device CRT corresponding to the address stored here.

【0016】DBUFは表示用バッファメモリで、表示
すべきデータを蓄える。
DBUF is a display buffer memory for storing data to be displayed.

【0017】CRTCはカーソルレジスタCR及びバッ
ファDBUFに蓄えられた内容を表示器CRTに表示す
る役割を担う。
The CRTC plays a role of displaying the contents stored in the cursor register CR and the buffer DBUF on the display CRT.

【0018】またCRTは陰極線管等を用いた表示装置
であり、その表示装置CRTにおけるドット構成の表示
パターンおよびカーソルの表示をCRTコントローラで
制御する。
A CRT is a display device using a cathode ray tube or the like, and a display pattern of a dot configuration and a display of a cursor on the display device CRT are controlled by a CRT controller.

【0019】さらに、CGはキャラクタジェネレータで
あって、表示装置CRTに表示する文字、記号のパター
ンを記憶するものである。
Further, CG is a character generator for storing character and symbol patterns to be displayed on the display device CRT.

【0020】またPRTは印字装置であり、キーボード
からの指示に応じてテキストバッファ上の文書を印字す
る。
A printing device PRT prints a document on a text buffer in response to an instruction from a keyboard.

【0021】かかる各構成要素からなる本発明文字処理
装置においては、キーボードKBからの各種の入力に応
じて作動するものであって、キーボードKBからの入力
が供給されると、まず、インタラプト信号がマイクロプ
ロセッサCPUに送られ、そのマイクロプロセッサCP
UがROM内に記憶してある各種の制御信号を読出し、
それらの制御信号に従って各種の制御が行なわれる。
The character processing apparatus according to the present invention comprising the above components operates according to various inputs from the keyboard KB. When an input from the keyboard KB is supplied, first, an interrupt signal is generated. Sent to the microprocessor CPU and the microprocessor CP
U reads various control signals stored in the ROM,
Various controls are performed according to the control signals.

【0022】図2は、第1の実施例による文頭サーチの
操作例を示した図である。
FIG. 2 is a diagram showing an operation example of the head-of-sentence search according to the first embodiment.

【0023】2−1は文書が入力された状態を示す画面
例である。図中、カーソルはメッシュで表現され、改行
コードは曲がった矢印で表現されている。また「・」は
白紙コードと呼ばれ、その位置に文字が何も存在しない
ことを意味する。
2-1 is an example of a screen showing a state in which a document has been input. In the figure, the cursor is represented by a mesh, and the line feed code is represented by a curved arrow. Also, “•” is called a blank paper code, which means that no character exists at that position.

【0024】この状態でサーチキーを打鍵するとカーソ
ルが次の文の先頭に移動する。この場合、句点の次が文
の先頭であると解釈され、画面2−2のようにカーソル
が1行目の「段落」の「段」の位置に移動する。更に、
サーチキーを打鍵すると、同様に画面2−3のように、
次の文の先頭にカーソルが移動する。
When the search key is pressed in this state, the cursor moves to the head of the next sentence. In this case, the next of the punctuation is interpreted as the head of the sentence, and the cursor moves to the position of the “column” of the “paragraph” on the first line as in the screen 2-2. Furthermore,
When the search key is pressed, similarly, as shown in screen 2-3,
The cursor moves to the beginning of the next statement.

【0025】次いで、サーチキーを打鍵すると、画面2
−4となり、今度は改行コードの上にカーソルが移動す
る。改行コード自体は文先頭ではないが、段落末に新規
の文を入力する場合もあるので、いったん改行コード上
でカーソルが止まるようになっている。
Next, when the search key is pressed, the screen 2
-4, and the cursor moves to the line feed code. The line feed code itself is not at the beginning of the sentence, but since a new sentence may be entered at the end of a paragraph, the cursor stops once on the line feed code.

【0026】更にサーチキーを打鍵すると画面2−5と
なり、前回のカーソル位置から改行した位置にカーソル
が移動する。
When the search key is further pressed, a screen 2-5 is displayed, and the cursor is moved to a position where a line feed is performed from the previous cursor position.

【0027】図3は、第1の実施例による文頭逆サーチ
の操作例を示した図である。文頭逆サーチは、概ね文頭
サーチの逆にカーソルが移動する。
FIG. 3 is a diagram showing an operation example of the head-of-sentence reverse search according to the first embodiment. In the head-of-sentence reverse search, the cursor moves generally in the reverse direction of the head-of-head search.

【0028】3−1は文書が入力された状態を示す画面
例である。この状態で逆サーチキーを打鍵すると、まず
改行コードが見つかるので、そこにカーソルが移動する
(画面3−2)。
3-1 is an example of a screen showing a state in which a document has been input. When the reverse search key is depressed in this state, a line feed code is first found, and the cursor is moved there (screen 3-2).

【0029】次いで、逆サーチキーを打鍵すると次にカ
ーソルが手前の文の先頭に移動する。この場合、句点の
次が文頭であると解釈され、画面3−3のようにカーソ
ルが2行目の「段落」の「段」の位置に移動する。更
に、逆サーチキーを打鍵すると、同様に画面3−4のよ
うにカーソルが移動する。
Next, when the reverse search key is pressed, the next cursor moves to the head of the previous sentence. In this case, the beginning of the sentence is interpreted as the beginning of the sentence, and the cursor moves to the position of the “column” of the “paragraph” on the second line as in the screen 3-3. Further, when the reverse search key is pressed, the cursor similarly moves as shown in a screen 3-4.

【0030】次に上述の動作をフローに従って説明す
る。
Next, the above operation will be described according to a flow.

【0031】図4は第1の実施例によるキー入力を取り
込み、処理を行なう動作を説明するフローチャートであ
る。
FIG. 4 is a flow chart for explaining the operation of taking in a key input and performing processing according to the first embodiment.

【0032】ステップS4−1において、キーボードか
ら打鍵されるキーデータを取り込む。
In step S4-1, key data to be entered from a keyboard is fetched.

【0033】ステップS4−2において、取り込まれた
キーの種別を判定し、判定結果を出力する。その判定結
果に応じて、各キーの処理ルーチンに分岐する。
In step S4-2, the type of the fetched key is determined, and the determination result is output. The process branches to a processing routine for each key according to the determination result.

【0034】サーチキーであったときはステップS4−
3に分岐し、ステップS4−3において、図5に詳述す
るようにサーチ処理を行なう。
If it is a search key, step S4--
In step S4-3, a search process is performed as described in detail in FIG.

【0035】逆サーチキーのときは、ステップS4−4
に分岐し、ステップS4−4において、図6に詳述する
ように逆サーチ処理を行なう。
If it is the reverse search key, step S4-4
Then, in step S4-4, an inverse search process is performed as described in detail in FIG.

【0036】その他のキーのときはステップS4−5に
分岐し、挿入、削除、記号入力等の通常の文字処理装置
において行なわれるその他の処理を行なう。
In the case of another key, the process branches to step S4-5 to perform other processes such as insertion, deletion, symbol input, etc. which are performed in a normal character processing device.

【0037】各処理が終了するとステップS4−1に分
岐する。
Upon completion of each process, the flow branches to step S4-1.

【0038】図5は第1の実施例によるステップS4−
3の「サーチ処理」を詳細に説明するフローチャートで
ある。
FIG. 5 shows a step S4--according to the first embodiment.
3 is a flowchart for explaining in detail a “search process”.

【0039】ステップS5−1において、現在のカーソ
ル位置のアドレスをポインタ変数pに代入する。
In step S5-1, the address of the current cursor position is assigned to a pointer variable p.

【0040】ステップS5−2において、pの示す位置
が白紙コードであるかどうか判定する。白紙コードの時
はステップS5−8に分岐する。ステップS5−8にお
いてポインタpを文末方向に1文字進めステップS5−
9において白紙コード以外が見つかるまでステップS5
−8、ステップS5−9をループする。ステップS5−
9において白紙コード以外が見つかった時はステップS
5−12に分岐する。ステップS5−2において白紙コ
ードでない時はステップS5−3に進む。
In step S5-2, it is determined whether or not the position indicated by p is a blank page code. If it is a blank sheet code, the flow branches to step S5-8. In step S5-8, the pointer p is advanced by one character toward the end of the sentence.
Step S5 until a non-blank code is found in 9
-8, loop the step S5-9. Step S5-
If a blank code other than the blank code is found in step 9, step S
Branch to 5-12. If it is not a blank sheet code in step S5-2, the process proceeds to step S5-3.

【0041】ステップS5−3において、pの示す位置
が改行コードであるかどうか判定する。改行コードの時
はステップS5−10に分岐し、pの示す位置の改行位
置のアドレスを求めpに代入する。その後、ステップS
5−12に分岐する。ステップS5−3においてpの示
す位置が改行コードでなかった時はステップS5−4に
分岐する。
In step S5-3, it is determined whether or not the position indicated by p is a line feed code. If it is a line feed code, the flow branches to step S5-10, and the address of the line feed position indicated by p is obtained and substituted into p. Then, step S
Branch to 5-12. If the position indicated by p is not a line feed code in step S5-3, the flow branches to step S5-4.

【0042】ステップS5−4においてポインタpを文
末方向に1文字進める。
In step S5-4, the pointer p is advanced by one character toward the end of the sentence.

【0043】ステップS5−5においてpの示す位置が
句点(あるいはピリオドなどの文末尾を示す記号)であ
るかどうか判定し、句点であれば、ステップS5−11
に分岐し、ポインタpを文末方向に1文字進めステップ
S5−12に分岐する。
In step S5-5, it is determined whether or not the position indicated by p is a punctuation mark (or a symbol indicating the end of a sentence such as a period).
And the pointer p is advanced by one character toward the end of the sentence, and the process branches to step S5-12.

【0044】ステップS5−6においてpの示す位置が
白紙コードであるかどうか判定し、白紙コードであれば
ステップS5−12に分岐する。
In step S5-6, it is determined whether or not the position indicated by p is a blank page code, and if it is a blank page code, the flow branches to step S5-12.

【0045】ステップS5−7においてpの示す位置が
改行コードであるかどうか判定し、改行コードであれ
ば、ステップS5−12に分岐する。改行コードでなけ
ればステップS5−4にループし、文末方向へのサーチ
を繰り返す。
In step S5-7, it is determined whether the position indicated by p is a line feed code, and if it is a line feed code, the flow branches to step S5-12. If it is not a line feed code, the process loops to step S5-4 and repeats the search toward the end of the sentence.

【0046】ステップS5−12においてポインタ変数
pの示す位置を新しいカーソル位置として設定し、リタ
ーンする。
In step S5-12, the position indicated by the pointer variable p is set as a new cursor position, and the routine returns.

【0047】図6は第1の実施例によるステップS4−
4の「逆サーチ処理」を詳細に説明するフローチャート
である。
FIG. 6 shows a step S4--according to the first embodiment.
6 is a flowchart for explaining in detail an “inverse search process” of No. 4;

【0048】ステップS6−1において、現在のカーソ
ル位置の1文字左側(文頭側)のアドレスをポインタ変
数pに代入する。
In step S6-1, the address one character to the left of the current cursor position (the beginning of the sentence) is assigned to the pointer variable p.

【0049】ステップS6−2において、pの示す位置
が白紙コードであるかどうか判定する。白紙コードの時
はステップS6−7に分岐する。ステップS6−7にお
いてポインタpを文頭方向に1文字進めステップS6−
8において白紙コード以外が見つかるまでステップS6
−7、ステップS6−8をループする。ステップS6−
8において白紙コード以外が見つかった時はステップS
6−9に分岐する。ステップS6−2において白紙コー
ドでない時はステップS6−3に進む。
In step S6-2, it is determined whether or not the position indicated by p is a blank page code. If the code is a blank paper code, the flow branches to step S6-7. In step S6-7, the pointer p is advanced by one character toward the beginning of the sentence.
Until a blank code is found in step S8, step S6
-7, Step S6-8 is looped. Step S6-
If a code other than a blank code is found in step 8, the process proceeds to step S
Branch to 6-9. If it is not a blank sheet code in step S6-2, the process proceeds to step S6-3.

【0050】ステップS6−3においてポインタpを文
頭方向に1文字進める。
In step S6-3, the pointer p is advanced by one character toward the beginning of the sentence.

【0051】ステップS6−4においてpの示す位置が
白紙コードであるかどうか判定し、白紙コードであれば
ステップS6−9に分岐する。
In step S6-4, it is determined whether or not the position indicated by p is a blank page code, and if it is a blank page code, the flow branches to step S6-9.

【0052】ステップS6−5においてpの示す位置が
句点(あるいはピリオドなどの文末尾を示す記号)であ
るかどうか判定し、句点であれば、ステップS6−9に
分岐する。
In step S6-5, it is determined whether or not the position indicated by p is a punctuation mark (or a symbol indicating the end of a sentence such as a period). If it is a punctuation mark, the flow branches to step S6-9.

【0053】ステップS6−6においてpの示す位置が
改行コードであるかどうか判定し、改行コードであれ
ば、ステップS6−10に分岐する。改行コードでなけ
ればステップS6−3にループし、文頭方向へのサーチ
を繰り返す。
In step S6-6, it is determined whether the position indicated by p is a line feed code, and if it is a line feed code, the flow branches to step S6-10. If it is not a line feed code, the process loops to step S6-3 and repeats the search in the head of sentence.

【0054】ステップS6−9においてポインタpを文
末方向に1文字進める。
In step S6-9, the pointer p is advanced by one character toward the end of the sentence.

【0055】ステップS6−10においてポインタ変数
pの示す位置を新しいカーソル位置として設定し、リタ
ーンする。
In step S6-10, the position indicated by the pointer variable p is set as a new cursor position, and the routine returns.

【0056】以上説明したように、本実施例によれば、
文の先頭を文書先頭方向にサーチする機能、文書末尾方
向に逆サーチする機能があるので、文章の推敲とそれに
ともなう挿入が容易にできるので、操作性の高い、快適
な文字処理装置を実現することができる。
As described above, according to the present embodiment,
There is a function to search the beginning of the sentence toward the beginning of the document, and a function to search backward from the end of the document. This makes it easy to revise the sentence and insert it accordingly. be able to.

【0057】また、本発明は、単体の装置に限らず、複
数の装置からなるシステムにも適用可能であり、更に、
装置またはシステムに、ソフトウェアを提供することに
よっても、実現可能であることは、言うまでもない。
The present invention can be applied not only to a single device but also to a system including a plurality of devices.
Needless to say, the present invention can be realized by providing software to a device or a system.

【0058】[0058]

【発明の効果】以上説明したように、本発明によれば、
カーソル位置以前または以降の文頭へカーソルを移動す
るように指示すると、現カーソル位置もしくはその前の
文字が特定の種類であれば、その種類に応じた所定の位
置にある文頭へカーソルを移動でき、特定の種類でなけ
れば、現カーソル位置から指定された方向より文の切れ
目を表す複数の文字のいずれかを検出して、その検出さ
れた文字の種類に応じてその文字の位置またはその次の
文字の位置となる文頭の位置にカーソルが移動できるの
で、文章の推敲やそれにともなう挿入が容易になるとい
う効果がある。
As described above, according to the present invention,
If the instruction to move the cursor to the beginning of the text before or after the cursor position is given, if the current cursor position or the character before it is of a particular type, the cursor can be moved to the beginning of the sentence at a predetermined position according to the type, If it is not a specific type, one of a plurality of characters representing a break in the sentence is detected from the current cursor position in the specified direction, and the position of the character or the next character is detected according to the type of the detected character. Since the cursor can be moved to the position of the beginning of the sentence, which is the position of the character, there is an effect that the editing of the sentence and the accompanying insertion become easy.

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

【図1】本発明に係る文字処理装置の第1の実施例を示
すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a character processing device according to the present invention.

【図2】実施例による文頭サーチの操作例を示した図で
ある。
FIG. 2 is a diagram showing an operation example of a sentence head search according to an embodiment.

【図3】実施例による文頭逆サーチの操作例を示した図
である。
FIG. 3 is a diagram showing an operation example of a sentence reverse search according to the embodiment.

【図4】実施例によるキー入力を取り込み処理を行なう
動作を説明するフローチャートである。
FIG. 4 is a flowchart illustrating an operation of performing a key input capture process according to the embodiment.

【図5】実施例によるサーチ処理を、詳細に説明するフ
ローチャートである。
FIG. 5 is a flowchart illustrating a search process according to the embodiment in detail.

【図6】実施例での逆サーチ処理を、詳細に説明するフ
ローチャートである。
FIG. 6 is a flowchart illustrating in detail a reverse search process in the embodiment.

【符号の説明】 CPU マイクロプロセッサ DIC 仮名漢字変換用辞書 ROM 読出し専用メモリ RAM ランダムアクセスメモリ DISK 外部記憶 PRT 印字装置 KB キーボード CR カーソルレジスタ DBUF 表示用バッファメモリ CRTC CRTコントローラ CRT 表示装置 CG キャラクタジェネレータ[Description of Signs] CPU Microprocessor DIC Kana-Kanji conversion dictionary ROM Read only memory RAM Random access memory DISK External storage PRT Printing device KB Keyboard CR Cursor register DBUF Display buffer memory CRTC CRT controller CRT Display device CG Character generator

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 17/24 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 17/24

Claims (18)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 文字列を記憶する文書記憶手段と、 前記文字列中の次の入力位置を規定するカーソルを表示
するカーソル表示手段と、 カーソル位置以降の文頭へカーソルを移動するように指
示する指示手段と、 該指示手段の指示を受けて、現カーソル上の文字の種類
を判別する判別手段と、 該判別手段により判別された文字が特定の種類であれ
ば、所定の位置にカーソルを移動する第1のカーソル移
動手段と、 前記判別手段により判別された文字が特定の種類でなけ
れば、現カーソル位置以降の前記文字列をサーチして、
第1または第2の種類の文字を検出する検出手段と、 該検出手段により第1の種類の文字が検出された場合
に、当該検出された文字の位置にカーソルを移動し、前
記検出手段により第2の種類の文字が検出された場合
に、当該検出された文字の位置より1文字だけ文書末尾
側の文字位置にカーソルを移動する第2のカーソル移動
手段とを具備することを特徴とする文字処理装置。
1. A document storage means for storing a character string; a cursor display means for displaying a cursor defining a next input position in the character string; and an instruction to move a cursor to the beginning of a sentence after the cursor position. Instructing means; determining means for determining the type of character on the current cursor in response to the instruction from the instructing means; if the character determined by the determining means is a specific type, moving the cursor to a predetermined position A first cursor moving means, and if the character determined by the determining means is not a specific type, searching for the character string after the current cursor position,
Detecting means for detecting a first or second type of character; and, when the first type of character is detected by the detecting means, moving a cursor to a position of the detected character, and A second cursor moving means for moving a cursor to a character position on the document end side by one character from a position of the detected character when a second type of character is detected; Character processor.
【請求項2】 前記第1の種類の文字が改行コードまた
は白紙コードを含むことを特徴とする請求項1に記載の
文字処理装置。
2. The character processing apparatus according to claim 1, wherein the first type of character includes a line feed code or a blank page code.
【請求項3】 前記第2の種類の文字が句点を含むこと
を特徴とする請求項1に記載の文字処理装置。
3. The character processing device according to claim 1, wherein the second type of character includes a period.
【請求項4】 前記特定の種類の文字が白紙コードを含
み、前記判別手段により判別された文字が白紙コードで
あれば、前記第1のカーソル移動手段が、現カーソル位
置以降の前記文字列をサーチして白紙コード以外の文字
を検出し、当該検出された文字の位置にカーソルを移動
することを特徴とする請求項1に記載の文字処理装置。
4. If the character of the specific type includes a blank page code and the character determined by the determining section is a blank page code, the first cursor moving section replaces the character string after the current cursor position with the blank. 2. The character processing apparatus according to claim 1, wherein a character other than a blank code is detected by searching, and a cursor is moved to a position of the detected character.
【請求項5】 前記特定の種類の文字が改行コードを含
み、前記判別手段により判別された文字が改行コードで
あれば、前記第1のカーソル移動手段が、当該改行コー
ドによって改行された位置にカーソルを移動することを
特徴とする請求項1に記載の文字処理装置。
5. If the character of the specific type includes a line feed code and the character determined by the determination unit is a line feed code, the first cursor moving unit moves the cursor to a position where a line feed is performed by the line feed code. The character processing device according to claim 1, wherein the cursor is moved.
【請求項6】 文字列を記憶する文書記憶手段と、 前記文字列中の次の入力位置を規定するカーソルを表示
するカーソル表示手段と、 カーソル位置以前の文頭へカーソルを移動するように指
示する指示手段と、 該指示手段の指示を受けて、現カーソル位置より1文字
だけ文書先頭側の文字の種類を判別する判別手段と、 該判別手段により判別された文字が特定の種類であれ
ば、所定の位置にカーソルを移動する第1のカーソル移
動手段と、 前記判別手段により判別された文字が特定の種類でなけ
れば、現カーソル位置以前の前記文字列をサーチして、
第1または第2の種類の文字を検出する検出手段と、 該検出手段により第1の種類の文字が検出された場合
に、当該検出された文字の位置にカーソルを移動し、前
記検出手段により第2の種類の文字が検出された場合
に、当該検出された文字の位置より1文字だけ文書末尾
側の文字位置にカーソルを移動するカーソル移動手段と
を具備することを特徴とする文字処理装置。
6. A document storage means for storing a character string; a cursor display means for displaying a cursor defining a next input position in the character string; and an instruction to move the cursor to the beginning of the sentence before the cursor position. Indicating means, receiving the instruction from the indicating means, determining means for determining the type of the character at the head of the document by one character from the current cursor position, and if the character determined by the determining means is a specific type, First cursor moving means for moving a cursor to a predetermined position, if the character determined by the determining means is not a specific type, searching for the character string before the current cursor position,
Detecting means for detecting a first or second type of character; and, when the first type of character is detected by the detecting means, moving a cursor to a position of the detected character, and A character processing apparatus comprising: a cursor moving unit that, when a second type of character is detected, moves a cursor to a character position closer to the end of the document by one character from the position of the detected character. .
【請求項7】 前記第1の種類の文字が改行コードを含
むことを特徴とする請求項6に記載の文字処理装置。
7. The character processing device according to claim 6, wherein the first type of character includes a line feed code.
【請求項8】 前記第2の種類の文字が句点または白紙
コードを含むことを特徴とする請求項6に記載の文字処
理装置。
8. The character processing apparatus according to claim 6, wherein the second type of character includes a period or a blank page code.
【請求項9】 前記特定の種類の文字が白紙コードを含
み、前記判別手段により判別された文字が白紙コードで
あれば、前記第1のカーソル移動手段が、現カーソル位
置以前の前記文字列をサーチして白紙コード以外の文字
を検出し、当該検出された文字の位置より1文字だけ文
書末尾側の文字位置にカーソルを移動することを特徴と
する請求項に記載の文字処理装置。
9. The method according to claim 8, wherein the specific type of character includes a blank page code, and the character determined by the determining section is a blank page code. 7. The character processing apparatus according to claim 6 , wherein a character other than the blank code is detected by performing a search, and a cursor is moved to a character position on the document end side by one character from the position of the detected character.
【請求項10】 記憶した文字列を表示し、表示された
文字列中の次の入力位置を規定するカーソルを表示する
文字処理装置において、 カーソル位置以降の文頭へカーソルを移動するように指
示することにより、 当該指示を受けて、現カーソル上の文字の種類を判別
し、 当該判別された文字が特定の種類であれば、所定の位置
にカーソルを移動し、 前記判別された文字が特定の種類でなければ、現カーソ
ル位置以降の前記文字列をサーチして、第1または第2
の種類の文字を検出し、 前記第1の種類の文字が検出された場合に、当該検出さ
れた文字の位置にカーソルを移動し、前記第2の種類の
文字が検出された場合に、当該検出された文字の位置よ
り1文字だけ文書末尾側の文字位置にカーソルを移動す
ることを特徴とする文字処理方法。
10. A character processing apparatus for displaying a stored character string and displaying a cursor for defining a next input position in the displayed character string, wherein an instruction is given to move the cursor to the beginning of a sentence after the cursor position. By receiving the instruction, the type of the character on the current cursor is determined, and if the determined character is a specific type, the cursor is moved to a predetermined position, and the determined character is determined to be a specific type. If not, the character string after the current cursor position is searched and the first or second character string is searched.
When the first type of character is detected, a cursor is moved to the position of the detected character, and when the second type of character is detected, A character processing method characterized by moving a cursor to a character position on the document end side by one character from a detected character position.
【請求項11】 前記第1の種類の文字が改行コードま
たは白紙コードを含むことを特徴とする請求項10に記
載の文字処理方法。
11. The character processing method according to claim 10, wherein the first type of character includes a line feed code or a blank sheet code.
【請求項12】 前記第2の種類の文字が句点を含むこ
とを特徴とする請求項10に記載の文字処理方法。
12. The character processing method according to claim 10, wherein the second type of character includes a period.
【請求項13】 前記特定の種類の文字が白紙コードを
含み、前記判別された文字が白紙コードであれば、現カ
ーソル位置以降の前記文字列をサーチして白紙コード以
外の文字を検出し、当該検出された文字の位置にカーソ
ルを移動することを特徴とする請求項10に記載の文字
処理方法。
13. When the specific type of character includes a blank code and the determined character is a blank code, the character string after the current cursor position is searched to detect a character other than the blank code. 11. The character processing method according to claim 10, wherein a cursor is moved to a position of the detected character.
【請求項14】 前記特定の種類の文字が改行コードを
含み、前記判別された文字が改行コードであれば、当該
改行コードによって改行された位置にカーソルを移動す
ることを特徴とする請求項10に記載の文字処理方法。
14. The method according to claim 10, wherein the specific type of character includes a line feed code, and if the determined character is a line feed code, a cursor is moved to a position where a line feed is performed by the line feed code. Character processing method described in.
【請求項15】 記憶した文字列を表示し、表示された
文字列中の次の入力位置を規定するカーソルを表示する
文字処理装置において、 カーソル位置以前の文頭へカーソルを移動するように指
示することにより、 当該指示を受けて、現カーソル位置より1文字だけ文書
先頭側の文字の種類を判別し、 当該判別された文字が特定の種類であれば、所定の位置
にカーソルを移動し、 前記判別された文字が特定の種類でなければ、現カーソ
ル位置以前の前記文字列をサーチして、第1または第2
の種類の文字を検出し、 前記第1の種類の文字が検出された場合に、当該検出さ
れた文字の位置にカーソルを移動し、前記第2の種類の
文字が検出された場合に、当該検出された文字の位置よ
り1文字だけ文書末尾側の文字位置にカーソルを移動す
ることを特徴とする文字処理方法。
15. A character processing apparatus for displaying a stored character string and displaying a cursor defining a next input position in the displayed character string, wherein an instruction is given to move the cursor to the beginning of the sentence before the cursor position. Thus, in response to the instruction, the type of the character at the head of the document is determined by one character from the current cursor position, and if the determined character is a specific type, the cursor is moved to a predetermined position; If the determined character is not a specific type, the character string before the current cursor position is searched, and the first or second character string is searched.
When the first type of character is detected, a cursor is moved to the position of the detected character, and when the second type of character is detected, A character processing method characterized by moving a cursor to a character position on the document end side by one character from a detected character position.
【請求項16】 前記第1の種類の文字が改行コードを
含むことを特徴とする請求項15に記載の文字処理方
法。
16. The character processing method according to claim 15, wherein the first type of character includes a line feed code.
【請求項17】 前記第2の種類の文字が句点または白
紙コードを含むことを特徴とする請求項15に記載の文
字処理方法。
17. The character processing method according to claim 15, wherein the second type of character includes a period or a blank page code.
【請求項18】 前記特定の種類の文字が白紙コードを
含み、前記判別された文字が白紙コードであれば、現カ
ーソル位置以前の前記文字列をサーチして白紙コード以
外の文字を検出し、当該検出された文字の位置より1文
字だけ文書末尾側の文字位置にカーソルを移動すること
を特徴とする請求項15に記載の文字処理方法。
18. If the specific type of character includes a blank code and the determined character is a blank code, the character string before the current cursor position is searched to detect a character other than the blank code. 16. The character processing method according to claim 15, wherein the cursor is moved to a character position on the document end side by one character from the detected character position.
JP03295658A 1991-11-12 1991-11-12 Character processing method and apparatus Expired - Fee Related JP3082977B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03295658A JP3082977B2 (en) 1991-11-12 1991-11-12 Character processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03295658A JP3082977B2 (en) 1991-11-12 1991-11-12 Character processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH05135047A JPH05135047A (en) 1993-06-01
JP3082977B2 true JP3082977B2 (en) 2000-09-04

Family

ID=17823499

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03295658A Expired - Fee Related JP3082977B2 (en) 1991-11-12 1991-11-12 Character processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3082977B2 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Richard Stallman(著)/竹内郁雄(訳).「bit別冊 GNU Emacs マニュアル」.昭和63年2月15日,共立出版(株)発行.(第105−107頁.)

Also Published As

Publication number Publication date
JPH05135047A (en) 1993-06-01

Similar Documents

Publication Publication Date Title
JP3082977B2 (en) Character processing method and apparatus
JP2723109B2 (en) Image processing method
JPH0823744B2 (en) Character string processor
JP2993034B2 (en) Document processor with help information display function
JP2561000B2 (en) String output method
JPH08161143A (en) Handwriting input device
JP3167081B2 (en) Information processing method and apparatus
JP3016949B2 (en) Information processing device
JP3404770B2 (en) Document processing device
JP3058181B2 (en) Character processing apparatus and method
JP2675782B2 (en) Character processor
JP3371435B2 (en) Input mode automatic setting method or input mode automatic setting device
JPH04282755A (en) Word processor
JP3311024B2 (en) Document processing method and apparatus
JPH0447448A (en) Word processor
JPS62125422A (en) Input system for character attribute code
JPH04111158A (en) Character processor
JPH0831097B2 (en) Document input processor
JPH02242423A (en) Data processor
JPH0721157A (en) Word processor provided with document information reducing function
JPH0241557A (en) Format set processing system of layout display
JPH01216393A (en) Display controller for document generating device
JPS63262751A (en) Display control system for data processor having character string transforming function
JPH05143053A (en) Word processor provided with enlarging and smoothing function
JPS59117621A (en) Document editing and proofreading system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990706

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000613

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070630

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080630

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080630

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090630

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees