JPS61175762A - Sentence processor - Google Patents

Sentence processor

Info

Publication number
JPS61175762A
JPS61175762A JP60015440A JP1544085A JPS61175762A JP S61175762 A JPS61175762 A JP S61175762A JP 60015440 A JP60015440 A JP 60015440A JP 1544085 A JP1544085 A JP 1544085A JP S61175762 A JPS61175762 A JP S61175762A
Authority
JP
Japan
Prior art keywords
character
word
text
input
register
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
JP60015440A
Other languages
Japanese (ja)
Inventor
Kazuhiro Nakamura
和弘 中村
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 JP60015440A priority Critical patent/JPS61175762A/en
Publication of JPS61175762A publication Critical patent/JPS61175762A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To select the quantity of information to be deleted in accordance with the purpose of deletion and to reduce the operating quantity, by selecting automatically the contents of word deleting function in response to the ON/OFF state of a set character input mode and then executing the selected contents. CONSTITUTION:An insertion flag register in a RAM3 is set or not in response to the ON/OFF state of a set known character input mode, e.g., an insertion mode. Then an editing job is carried out in an insertion mode. In this case, a space serving as the word punctuation is left. Then this space is also deleted in case the editing job is carried out in an insertion OFF mode, and the contents of a word deleting function are selected automatically and executed. Thus automatic processing is possible in response to the editing purpose and based on the character input mode set by an operator.

Description

【発明の詳細な説明】 り技術分野」 本発明は入力される文章情報の指定位置より特定キャラ
クタ位置までの文章情報を一括削除可能な手段を備えた
文章処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field: The present invention relates to a text processing device that is equipped with a means for collectively deleting text information from a specified position of input text information to a specific character position.

[従来技術] 従来、この種の文章処理装置における単語単位の文字列
一括削除機能、すなわちワードデリート機能は、単語の
区切りとされるスペース、あるいは特定文字(たとえば
カンマ:“、”など)にて囲まれた文字列に対し、現在
のカーソルポジションからそれ以降に検出されるスペー
スあるいは特定文字までを一括削除するか、もしくはス
ペースあるいは特定文字の直前までの文字列を一括削除
するというどちらか一方のみが可能な文字列削除Ia能
を有するのみであった。一般に、ワードデリートを使用
する目的として次の2つがある。第1は指定された単語
をただ単に削除することであり、第2は指定された単語
を他の単語に置換する一過程に使用することである。
[Prior Art] Conventionally, in this type of text processing device, a function for deleting character strings in units of words, that is, a word delete function, has been used to delete characters at once at spaces that separate words or at specific characters (for example, commas: ",", etc.). For the enclosed string, you can either delete everything from the current cursor position up to a space or a specific character detected after that, or delete all the characters up to the space or a specific character. It only had a character string deletion Ia function that could be used to delete strings. Generally, there are two purposes for using word delete: The first is to simply delete the specified word, and the second is to use it as part of the process of replacing the specified word with another word.

しかし、上述どちらか一方の方式のみが可能なワードデ
リート機能のみしか有していない装置によると、両者の
使用目的を同時に満足させることはできない。
However, with a device having only a word delete function that allows only one of the above methods, it is not possible to simultaneously satisfy both purposes.

たとえば、現在のカーソルポジション以降、スペース直
前までを削除するワードデリート機能によれば、指定さ
れた単語の先頭からスペース直前までを削除した場合、
削除後に当該削除単語前後のスペースが連続して2つ残
るため、単語削除のみを目的とした場合にはさらに残っ
たスペースのうち1つのスペースを削除する必要があり
、余分な操作が避けられなかった・ 一方、現カーソルポジション以降、スペースを含む位置
まで削除するワードデリート機能によれば、指定した単
語の先頭からスペースまでを削除した場合、削除後スペ
ースは1つのみ残すため。
For example, according to the word delete function that deletes from the current cursor position to just before the space, if you delete from the beginning of the specified word to just before the space,
After deletion, two consecutive spaces remain before and after the deleted word, so if the purpose is only to delete a word, it is necessary to delete one of the remaining spaces, and extra operations are unavoidable. On the other hand, according to the word delete function that deletes from the current cursor position to the position including spaces, if you delete from the beginning of the specified word to the space, only one space will remain after deletion.

単語の置換を目的とした場合には現カーソルポジション
に文字列を挿入するインサートモードを使用して新たに
希望の単語入力をしたとしても、最後に単語区切りとし
てスペースを1つさらに入力する必要が生じ、はなはだ
不便であった。
If you want to replace a word, even if you enter a new word using insert mode, which inserts a string at the current cursor position, you will need to enter an additional space at the end to separate the words. This was extremely inconvenient.

[目的] 本発明は上述従来技術の欠点に鑑みて成されたものであ
ってその目的とする所は、文章情報の指定された位置よ
り特定位置までの情報を一括削除する場合に削除目的に
応じて削除すべき情報量を選択可能とし、操作量を軽減
した使い易い文章処理装置を提供することにある。
[Purpose] The present invention has been made in view of the drawbacks of the above-mentioned prior art, and its purpose is to delete information from a designated position of text information to a specific position in bulk for the purpose of deletion. To provide an easy-to-use text processing device that allows the amount of information to be deleted to be selected accordingly and reduces the amount of operations.

「実施例」 以下、添付図面に従って、本発明に係る一実施例を詳細
に説明する。
"Embodiment" Hereinafter, one embodiment of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

図中1は本実施例の主制御を掌るセントラルプロセツシ
ングユニット(以下CPUと称す)であり、システムバ
ス(System Bus)  11を介して、互いに
接続された後述する各構成要素を制御する。2はCPU
Iの処理手順を記憶する制御メモリとして用いられるリ
ードオンリメモリ(ROM)、3はランダムアクセスメ
モリ(RAM)でアリ、プログラム、各種データの一時
記憶のワークメモリとして使用される。4は文章等のデ
ータを表示し、カーソルにより文字処理位置指定を行な
うCRT、5は作成φ編集した文章等を記憶し保存を行
なう外部メモリ(以下FDと称す)、6はキーボード(
以下KBと称す)であり、CPU1に指示を与える各種
キーが配置されている。7はCRT4に表示すべき表示
データを保持するVRAM、8はCRT4の表示制御を
行なうCRTコントローラ(以下CRTCと称す)、9
はFD5のルfil装置(以下FDCと称す)、10は
KH2の制御を行なうキーボードコントローラ(以下K
Bと称す)である。
In the figure, reference numeral 1 denotes a central processing unit (hereinafter referred to as CPU) which is in charge of the main control of this embodiment, and which controls each component connected to each other, which will be described later, via a system bus 11. . 2 is CPU
A read-only memory (ROM) is used as a control memory for storing processing procedures of I, and a random access memory (RAM) is used as a work memory for temporarily storing ants, programs, and various data. 4 is a CRT for displaying data such as sentences and specifying character processing positions with a cursor; 5 is an external memory (hereinafter referred to as FD) for storing and storing created/edited sentences; 6 is a keyboard (
Hereinafter referred to as KB), various keys for giving instructions to the CPU 1 are arranged. 7 is a VRAM that holds display data to be displayed on the CRT 4; 8 is a CRT controller (hereinafter referred to as CRTC) that controls the display of the CRT 4; 9
is the FD5 file device (hereinafter referred to as FDC), and 10 is the keyboard controller (hereinafter referred to as KH2) that controls the KH2.
(referred to as B).

次にRAM3内の一構成例を第2図に示す。Next, an example of the configuration inside the RAM 3 is shown in FIG.

第2図中31はインサートモードフラグレジスタ(IN
S−FLG)であり、文字入力モードのフラグレジスタ
としてキーボードから入力設定されるインサートモード
のON 、OFF状況を保持する領域である。32はデ
キストバッファ(DB)を示し1文章保存領域として、
252文字分の記憶領域を有し、各領域に1文字分の文
字コードが格納できそれぞれに[0]〜[251]のア
ドレス番号を割当てた連続バッファである。そしてDB
32の位置指定はバッファ位置カーソルレジスタ(DB
−PO3I)33で示され、これはCRT4上に表示さ
れているカーソル位置と対応している。また34は諸々
の一時使用領域ワークレジスタ群(WK)であり、WK
34には削除する(又は削除した)文字数を保持するC
NTレジスタ34a、バッファ位置カーソルレジスタ3
3のワーク用領域PO3Iレジスタ34bが含まれる。
31 in Figure 2 is the insert mode flag register (IN
This is an area that holds the ON/OFF status of the insert mode input from the keyboard as a character input mode flag register. 32 indicates a dext buffer (DB), which serves as a storage area for one sentence.
It is a continuous buffer that has a storage area for 252 characters, and each area can store a character code for one character, and each area is assigned an address number from [0] to [251]. And D.B.
32 positions are specified using the buffer position cursor register (DB
-PO3I) 33, which corresponds to the cursor position displayed on the CRT4. 34 is a work register group (WK) for various temporary use areas;
34 holds the number of characters to be deleted (or deleted)
NT register 34a, buffer position cursor register 3
3 work area PO3I register 34b is included.

以上の構成より成る本実施例の動作を以下に説明する。The operation of this embodiment having the above configuration will be explained below.

本実施例においてはCPUIの制御のもとにKH2より
順次文章情報を入力し、この入力された文章情報は一時
RAM3に格納されると共にCRT4に表示され、ここ
で編集された後FD5に記録される。このKH2よりの
入力モードとしてインサートモード及びインサートオフ
モードの2つのモードを選択指定することが可能な構成
となっており、インサートモードが指定されるとインサ
ートモードフラグレジスタがセットされる。
In this embodiment, text information is sequentially input from KH2 under the control of the CPUI, and this input text information is temporarily stored in RAM 3, displayed on CRT 4, edited here, and then recorded on FD 5. Ru. The configuration is such that two modes, insert mode and insert off mode, can be selected and specified as input modes from this KH2, and when insert mode is specified, an insert mode flag register is set.

ここで、インサートモードとは文章編集処理において、
文章中のカーソルポジションに新たな入力文字を挿入し
ていく文字入力モードであり、インサートオフモードと
は挿入は行なわずにカーソルポジションの文字を順次新
たに入力された文字と入れ換えて上書きしていく文字入
力モードである。このモードの設定はKBS上の不図示
のファンクションキーの入力により任意に設定される。
Here, insert mode is used in text editing processing.
It is a character input mode that inserts a new input character at the cursor position in the text, and insert off mode does not insert the character but sequentially replaces and overwrites the character at the cursor position with the newly input character. You are in character input mode. This mode is arbitrarily set by inputting a function key (not shown) on the KBS.

次にフローチャート図を用いてより詳細に説明する。Next, a more detailed explanation will be given using a flowchart.

883図(A)は本実施例における一般編集処理につい
て示している。SlでCPUIはKH2から入力された
キー情報を取り込みを行ない、ここで入力キー情報を取
り込むと52において一般文字キー人力かあるいはファ
ンクションキー人力かの判定を行なう、一般文字キーの
場合は531に進み、CRT4に入力されたキーに対応
する文字を表示する等の処理を行ない、ファンクション
キーの場合にはS4においてキー人力に該当するファン
クション処理を行ない、lI集熱処理終了する。
FIG. 883 (A) shows general editing processing in this embodiment. At Sl, the CPU imports the key information input from KH2, and when the input key information is imported here, it is determined at 52 whether the general character key is manually operated or the function key is manually operated.If the input key is a general character key, the process proceeds to 531. , processes such as displaying characters corresponding to the keys input on the CRT 4 are performed, and in the case of a function key, a function process corresponding to the key manual input is performed in S4, and the lI heat collection process is completed.

このS4における特殊処理の詳細を第3図CB)に示す
Details of the special processing in S4 are shown in FIG. 3 CB).

まずS5において入力されたファンクションキーがイン
サートONキーか否か調べ、インサートONキー人力で
あればS6でRAM5中の後述するインサートモードフ
ラグレジスタをセットしてリターンする。S5でインサ
ー)ONキーの入力でない場合にはS7に進み、ワード
デリートキー人力か否かを調べる。ここでワードデリー
トキー人力であればステップS8に進み、ワードデリー
ト処理を実行しリターンする。S7でワードデリートキ
ー人力でない場合にはS9において入力されたファンク
ションキーに対応する処理を実行後リター゛ンする。
First, it is checked in S5 whether the input function key is the insert ON key or not, and if the insert ON key is manually operated, the insert mode flag register (described later) in the RAM 5 is set in S6 and the process returns. If the insert ON key is not input in S5, the process advances to S7 to check whether the word delete key was manually input. Here, if the word delete key is manually operated, the process advances to step S8, executes word delete processing, and returns. If the word delete key is not pressed manually in S7, the process returns after executing the process corresponding to the input function key in S9.

次にステップS8におけるワードデリート処理の詳細を
第4図のフローチャートを参照して説明する。
Next, details of the word delete process in step S8 will be explained with reference to the flowchart of FIG.

ワードデリート処理を実行するには1、CRT4上のカ
ーソルをKBS上のカーソル移動キーを用いてデリート
すべき単語の先頭位置に設定してからデリート−キーを
押下入力することにより行なうことができる。
To execute the word delete process, 1. Set the cursor on the CRT 4 to the beginning position of the word to be deleted using the cursor movement keys on the KBS, and then press and input the delete key.

このデリート処理実行直前のKH2より入力された文章
情報のCRT4への表示例を第5図(A)に示す、ここ
で12は本実施例における文章のフォーマット表示ライ
ンである。また、13はCRT4の表示面上における文
字のポジションを指定するカーソルである。このカーソ
ルはKBG上の不図示のカーソル移動キーの入力に対応
してCRT4上を移動する。
An example of display of the text information inputted from the KH 2 on the CRT 4 immediately before execution of the delete process is shown in FIG. 5(A), where 12 is a text format display line in this embodiment. Further, 13 is a cursor for specifying the position of a character on the display surface of the CRT 4. This cursor moves on the CRT 4 in response to input from a cursor movement key (not shown) on the KBG.

第4図において、まずSIOにおいて初期処理としてワ
ークレジスタ群34のCNTレジスタ34aを′0°9
にセットし、PO3Iレジスタ34bにバッファ位置カ
ーソルレジスタ33の内容を格納する0次にSllでP
OSIレジスタ34bの示すテキストバフ2フ32位置
の内容が文章の終りである“’EOF”コードか否か調
べ、“EOF ”コードであればS19へ進み、”EO
F’“コードでなければS12へ進む、S12ではテキ
ストバッファ32のPOSIレジスタ34bの示す位置
、つまりカーソル表示位置が“スペース゛。
In FIG. 4, as an initial process in SIO, the CNT register 34a of the work register group 34 is set at '0°9.
and stores the contents of the buffer position cursor register 33 in the PO3I register 34b.
It is checked whether the contents of the text buff 2 buffer 32 position indicated by the OSI register 34b is the "'EOF" code indicating the end of the sentence. If it is the "EOF" code, the process advances to S19 and the "EOF" code is detected.
If it is not an F'" code, the process advances to S12. In S12, the position indicated by the POSI register 34b of the text buffer 32, that is, the cursor display position is "space."

コードか否か、即ち単語の区切りであるか否かを判定す
る。ここで“スペース°°コードでない場合にはS13
に進み、CNTレジスタ34aを1つインクリメントし
て削除する文字数をカウントアツプし、POSIレジス
タ34bも1つインクリメントし、テキストバッファの
ポインタを1つ後ろに移動させ、再びSllに戻る。
It is determined whether it is a code, that is, whether it is a word break. Here, “If it is not a space°° code, S13
, the CNT register 34a is incremented by one to count up the number of characters to be deleted, the POSI register 34b is also incremented by one, the text buffer pointer is moved backward by one, and the process returns to Sll again.

512において、“スペース′”コードのときは514
に進み、インサートモードフラグレジスタ31がセット
されているか否かを調べる。セットされている時にはS
15に進み、当該位置にあるスペースコードを削除する
ため、CNTレジスタ34a及びPOSIレジスタ34
bをインクリメントしS16に進む、ステップS14で
インサートモードフラグレジスタ31がセットされてい
ない時にはそのまま516に進む。
512, if it is a “space’” code, it is 514
Then, it is checked whether the insert mode flag register 31 is set. S when set
15, in order to delete the space code at the relevant position, the CNT register 34a and the POSI register 34 are deleted.
b is incremented and the process proceeds to S16. If the insert mode flag register 31 is not set in step S14, the process directly proceeds to 516.

S16ではSll同様POSIレジスタ34bの示すテ
キストバフ2フ32位置の内容が文章の終りである″’
EOF″コードか否か調べ、°°EOFバコードであれ
ばS19に進み、“E OF ”コードでなければ51
7に進む、S17ではテキストバッファ32のPO3I
レジスタ34b位置の内容を([PO3Iレジスタ] 
−[CNTレジスタ])位置へ移動させ、続く318で
PO5Iレジスタ34bをインクリメントし再びS16
に戻る。この様にして順次文章情報の最後である” E
 OF ”コードの位置まで行ない、最後まで終了すれ
ばS l 6J:l、Is 19ニ進み、S 19テP
OSIレジスタ34の示すテキストバッファ32の“E
OF”コードを([POSレジスタ]−〔CNTレジス
タ])位置へ移動させ、デリート処理を終了する。
In S16, like Sll, the content at the text buff 2 buff 32 position indicated by the POSI register 34b is the end of the sentence''
Check whether it is an "EOF" code, and if it is an °°EOF barcode, proceed to S19, and if it is not an "E OF" code, it is 51.
Proceed to 7. In S17, PO3I of text buffer 32
The contents of register 34b position ([PO3I register]
- [CNT register]) position, increment the PO5I register 34b in the subsequent step 318, and return to step S16.
Return to In this way, the sequential text information ends.”E
OF” Go to the code position, and when it finishes to the end, advance to S l 6J: l, Is 19, S 19 TeP
"E" in the text buffer 32 indicated by the OSI register 34
OF" code is moved to the ([POS register]-[CNT register]) position, and the delete process is completed.

これにより、カーソルが第5図(A)に示す13位置に
ある時にインサートモードフラグレジスタ31がセット
されていない場合には第4図に示すデリート処理の結果
、第5図(B)に示す様に’delete  ”が削除
される。
As a result, if the insert mode flag register 31 is not set when the cursor is at position 13 shown in FIG. 5(A), the result of the delete process shown in FIG. 4 is as shown in FIG. 5(B). 'delete' is deleted.

これはオペレータがインサートオフモードで編集を行な
う場合、ただ単に該当単語の削除を望む場合か、あるい
は文章の大幅修正を目的とした編集と考えられ、単語の
区切りとして存在したスペースを余分に残すことは不必
要であるばかりか、編集の妨げになるという考えに起因
している。
This may occur when the operator edits in insert-off mode, when the operator simply wishes to delete the word, or because the operator is editing with the aim of making major corrections to the text, leaving extra spaces that used to separate words. This stems from the idea that not only is this unnecessary, but it also gets in the way of editing.

この間のテキスト八ツファ32内における文章情報の遷
移を第6図(A)、(B)に示す。
The transition of text information within the text eightfolder 32 during this time is shown in FIGS. 6(A) and 6(B).

最初は第6図(A)に示す様にposxレジスタ34b
位置は″′d°゛位置にあり、処理終了後は第6図(B
)に示す様に最初にPOSIレジスタ34bの指示して
いた位置には’delite  ”次の文字″′0″が
来ることになる。
Initially, as shown in FIG. 6(A), the posx register 34b
The position is ``'d°'', and after the processing is completed it is as shown in Figure 6 (B
), 'delite ``next character'''0'' will be placed at the position initially indicated by the POSI register 34b.

インサートモードフラグレジスタ31がセットされてい
る場合には、第5図(A)の状態にある文章情報が第5
図(C)の51に示す様に“スペース”コードを残して
削除される。
If the insert mode flag register 31 is set, the text information in the state shown in FIG.
It is deleted leaving a "space" code as shown at 51 in Figure (C).

これはオペレータがインサートモードで編集を行なう場
合、該当単語を他の単語へ置換する過程において、ワー
ドデリートを使用するなど削除後カーソルポジションに
再度文字列を挿入することを目的とした編集と考えられ
るからで、既に存在する単語の区切りとしてのスペース
を削除の際に残すことで、削除後、該当ポジションに文
字列を挿入しても再度スペースを入力する必要がない。
When an operator edits in insert mode, it is thought that the purpose of editing is to insert the string again at the cursor position after deletion, such as by using word delete in the process of replacing the word with another word. By leaving a space as a delimiter between words that already exist when deleting, there is no need to enter a space again even if a character string is inserted at the corresponding position after deletion.

このため削除位置に新たに例えばabc”という文字列
を入力する場合にはこの“abc”という3文字分のコ
ードを入力するのみでよい、引き続き’abc”を挿入
した例を第5図(C)52に示す。
Therefore, if you want to input a new character string, for example, ``abc'' at the deleted position, you only need to input the 3-character code ``abc''. Figure 5 (C )52.

以上の説明では単語の区切りとして挿入される゛スペー
ス′”コードまで削除するワードデリート機能について
説明したが、カーソル指定した位置より削除するまでの
キャラクタコードを“スペース”コード以外の特定キャ
ラクタコードまでを一括削除する様制御してもよい、こ
の特定文字コードまでを一括削除する場合のワードデリ
ート処理を第7図のフローチャートを参照して説明する
In the above explanation, we explained the word delete function that deletes up to the ``space'' code inserted as a word delimiter, but it also deletes character codes from the position specified by the cursor to specific character codes other than the ``space'' code. The word delete process for collectively deleting up to this specific character code, which may be controlled to be deleted all at once, will be explained with reference to the flowchart of FIG.

この特定キャラクタとしては°、” (カンマ)、”、
゛(ピリオド)、16.II(コロン)等、任意のキャ
ラクタを指定させることができる。これはRAM3中に
この削除する位置を示す特定文字キャラクタを示す特定
コード参照テーブルを設け、指定した削除開始位置より
ここに格納されている特定コードまで、又は特定コード
の直前までを削除すればよい。
These specific characters include °, ” (comma), ”,
゛ (period), 16. Any character such as II (colon) can be specified. This can be done by providing a specific code reference table in RAM 3 that indicates the specific character character indicating the position to be deleted, and deleting from the specified deletion start position to the specific code stored here, or up to just before the specific code. .

この場合のRAM3の構成例を第8図に示す。An example of the configuration of the RAM 3 in this case is shown in FIG.

第8図中、第2図と同様のものについては同一番号を付
してあり、その説明を省略する。34Cは特定コード参
照テーブルの指定位置を示すTB−PO5Iレジスタで
あり、35は上述した特定コード参照テーブルであり、
TB [0] 35a。
In FIG. 8, parts similar to those in FIG. 2 are given the same numbers, and their explanations will be omitted. 34C is a TB-PO5I register indicating the specified position of the specific code reference table, 35 is the above-mentioned specific code reference table,
TB [0] 35a.

TB [1135b−TB [nl 35n及びTB−
END35Eより構成されており、TB−END35E
は特定コード参照テーブル35の終了位置を示し、具体
的にはコード゛OO”が格納されている。
TB [1135b-TB [nl 35n and TB-
Consists of END35E, TB-END35E
indicates the end position of the specific code reference table 35, specifically, the code "OO" is stored therein.

こ(7)TB [01〜TB [nコの位置指定はTB
−PO5Iレジスタ34cにより指定され、ここには上
述の削除領域を区別するための特定コードを格納すれば
よい。
(7) TB [01~TB [n position specification is TB
- It is specified by the PO5I register 34c, and a specific code for distinguishing the above-mentioned deletion area may be stored here.

第7図のこの特定コード参照テーブル35を利用して一
括削除する処理において、第4図と同一処理については
同一ステップ番号を付しである。
In the batch deletion process using the specific code reference table 35 shown in FIG. 7, the same steps as those shown in FIG. 4 are given the same step numbers.

従って、第4図の512の場合と相違する512−1−
512−4について説明する。
Therefore, 512-1-, which is different from the case of 512 in FIG.
512-4 will be explained.

Sllにおいて、”EOF”でないことが確認されると
、S l 2−1においてTB−POS l34cを“
O″として特定文字の参照テーブルのポインタの初期化
が行なわれる0次に312−2においてTB−PO5l
34bの指定するテキストバッファ32の内容がTB−
END35Eか否かを判定し、TB−END35Eであ
るならば。
When Sll confirms that it is not "EOF", TB-POS l34c is set to "EOF" in Sll 2-1.
TB-PO5l in the 0th order 312-2 where the pointer of the reference table for the specific character is initialized as O''.
The contents of the text buffer 32 specified by 34b are TB-
Determine whether it is END35E or not, and if it is TB-END35E.

テキストバッファ32の該当する文字は特定コード参照
テーブル35に存在しないため513へ進む。
Since the corresponding character in the text buffer 32 does not exist in the specific code reference table 35, the process advances to 513.

一方、TB−END35Eと同一でない場合は512−
3において、TB−PO3I34ccF)指定するテキ
ストバッファ32位置の内容とPO5l34bの指定す
るテキストバッファ32位置の内容が一致するかどうか
を判定する。一致しない場合4tS12−4にお(z’
てTB−PO5l34bをインクリメントし、次の特定
コード参照テーブル35+7)TB−PO3I34c指
定位置内容に関して順次512−3,312−4の処理
を実行する。512−3で一致した場合には514に進
み、第4図と同様に処理を行なう。
On the other hand, if it is not the same as TB-END35E, 512-
3, it is determined whether the contents of the text buffer 32 position specified by TB-PO3I34ccF) match the contents of the text buffer 32 position specified by PO5l34b. If they do not match, 4tS12-4 (z'
TB-PO5l34b is incremented, and the processes 512-3 and 312-4 are sequentially executed regarding the contents of the specified position of the next specific code reference table 35+7) TB-PO3I34c. If there is a match at 512-3, the process advances to 514 and the same processing as in FIG. 4 is performed.

この第7図の処理において、“:″(コロン)削除の場
合の区切りコードとして、特定コード参照テーブル35
に格納されている場合の削除処理の具体例を第9図(A
)に示す0文章情報が入力されている時にカーソルが9
1の位置にあり、ここでワードデリートキーが入力され
た場合を例に示すと、ここでインサートモードフラグレ
ジスタ31がセットされていない時には第9図CB)に
示す様に区切りワードである“二′まで一括削除される
ことになる。
In the process shown in FIG. 7, the specific code reference table 35
A specific example of deletion processing when stored in
) when the 0 text information shown in ) is being input, the cursor is 9
For example, if the word delete key is input at position 1, if the insert mode flag register 31 is not set, the separator word "2" is input as shown in Figure 9 (CB). ' will be deleted all at once.

またインサートモードフラグレジスタ31がセットされ
ている場合には、一括削除されると第9図(C)92に
示す様に、“:″の前までの文章“da l i te
”が削除され、:”が残ることになる。このため引き続
きKH2より“abc”と入力すれば、第9図(C)9
3に示される様に必要最小限の操作入力処理で所望の文
章情報とすることができる。
In addition, if the insert mode flag register 31 is set, if the text is deleted all at once, the text before the ":" will be erased as shown in FIG. 9(C) 92.
" will be deleted and : " will remain. Therefore, if you continue to input "abc" from KH2, the
As shown in FIG. 3, desired text information can be obtained with the minimum necessary operation input processing.

[効果] 以上説明した様に本発明によれば、設定されている周知
の文字入力モード、たとえばインサートモードのON、
OFF等に従って、ワードデリート機能の内容を自動的
に選択し、実行することにより、オペレータの文字入力
モードの設定に基づいて、編集目的に応じた自動処理が
実現でき、操作性の向上を図ると同時に、効率的な編集
が可能となる文章処理装置を提供できる。
[Effect] As explained above, according to the present invention, the well-known character input mode that is set, for example, the insert mode is turned on,
By automatically selecting and executing the word delete function according to OFF, etc., it is possible to realize automatic processing according to the editing purpose based on the operator's character input mode setting, improving operability. At the same time, it is possible to provide a text processing device that enables efficient editing.

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

第1図は本発明に係る一実施例のブロック図、 第2図は本実施例のRAMの構成例を示す図、 第3図(A)は本実施例の文章編集処理を示すフローチ
ャート、 第3図CB)は本実施例の特殊処理を示すフローチャー
ト。 第4図は本実施例のワードデリート処理を示すフローチ
ャート、 第5図(A)〜(C)は本実施例のワードデリート処理
による削除状態を示す図、 第6図(A)、CB)は本実施例のテキストバッファ内
の文章情報格納状態を示す図、第7図は本発明に係る他
の実施例のワードデリート処理を示すフローチャート、 第8図は他の実施例のRAMの構成例を示す図、 第9図(A)〜(C)は他の実施例のワードデリート処
理による削除状態を示す図である。 図中、l・・・マイクロプロセッサCP0.2・・・リ
ードオンリメモリROM、3・・・ランダムアクセスメ
モリRAM、4・・・表示装置CRT、5・・・外部記
憶装置FD、6・・・キーボードKB、7・・・ビデオ
RAM、8・・・表示制御装置CRTC19・・・外部
記憶装置コントローラ、10・・・キーボードコントロ
ーラ、11・・・システムパスSB、31・・・インサ
ートモードフラグレジスタ、32・・・テキスバツファ
、33・・・バッファ位置カーソルレジスタ、34・・
・ワークレジスタ群、34a・・・CNTレジスタ、3
4b−・−PO3Iレジスタ、34c・・−TB −P
O3Iレジスタ、35・・・特定文字参照テーブルであ
る。 特許出願人  キャノン株式会社 第1図 第8図 第9図 (A) 第9図 (B) L、、、  、00.、、、、、、、、、、.000.
、、、、、、、、pWmrtl  ;JA15   (
17−μ第9図 (C) 會
FIG. 1 is a block diagram of an embodiment according to the present invention; FIG. 2 is a diagram showing an example of the configuration of a RAM in the embodiment; FIG. 3A is a flowchart showing text editing processing in the embodiment; FIG. 3 CB) is a flowchart showing special processing in this embodiment. FIG. 4 is a flowchart showing the word delete process of this embodiment, FIGS. 5(A) to (C) are diagrams showing the deletion state by the word delete process of this embodiment, and FIGS. FIG. 7 is a flowchart showing word delete processing in another embodiment according to the present invention; FIG. 8 is a diagram showing a RAM configuration example in another embodiment. The diagrams shown in FIGS. 9A to 9C are diagrams showing deletion states by word delete processing in another embodiment. In the figure, l... Microprocessor CP0.2... Read only memory ROM, 3... Random access memory RAM, 4... Display device CRT, 5... External storage device FD, 6... Keyboard KB, 7... Video RAM, 8... Display control device CRTC19... External storage device controller, 10... Keyboard controller, 11... System path SB, 31... Insert mode flag register, 32...Text buffer, 33...Buffer position cursor register, 34...
・Work register group, 34a...CNT register, 3
4b--PO3I register, 34c--TB -P
O3I register, 35: Specific character reference table. Patent applicant: Canon Co., Ltd. Figure 1 Figure 8 Figure 9 (A) Figure 9 (B) L, , , , 00. ,,,,,,,,,,. 000.
, , , , , , pWmrtl ; JA15 (
17-μ Figure 9 (C) Meeting

Claims (5)

【特許請求の範囲】[Claims] (1)入力手段より入力される複数の特定キャラクタに
より区切られた文字列より成る文章情報の一部を削除す
る手段を備えた文章処理装置において、削除すべき文章
情報の先頭位置を指定する指定手段と、該指定手段によ
り指定した位置以降の最初の前記特定キャラクタ位置の
直前までの文章情報を一括削除する第1の削除手段と、
前記指定手段より指定した位置以降の最初の前記特定キ
ャラクタまでの文章情報を一括削除する第2の削除手段
と、該第2の削除手段及び前記第1の削除手段とのいず
れかを選択する選択手段とを備えたことを特徴とする文
章処理装置。
(1) In a text processing device equipped with a means for deleting a part of text information consisting of a character string delimited by a plurality of specific characters inputted from an input means, specification for specifying the starting position of the text information to be deleted. means, first deletion means for collectively deleting text information from the position designated by the designation means to immediately before the first specific character position;
Selection of selecting either a second deletion means for collectively deleting text information up to the first specific character after a position specified by the designation means, the second deletion means, or the first deletion means. A text processing device characterized by comprising: means.
(2)選択手段は文章情報が入力される際の入力手段の
入力モードに従つて第1の削除手段及び第2の削除手段
のうち一方を自動的に選択することを特徴とする特許請
求の範囲第1項記載の文章処理装置。
(2) The selection means automatically selects one of the first deletion means and the second deletion means according to the input mode of the input means when text information is input. A text processing device according to scope 1.
(3)特定キャラクタをスペースキャラクタとすること
を特徴とする特許請求の範囲第1項又は第2項記載の文
章処理装置。
(3) The text processing device according to claim 1 or 2, wherein the specific character is a space character.
(4)特定キャラクタを“,”(カンマ)キャラクタと
することを特徴とする特許請求の範囲第1項又は第2項
記載の文章処理装置。
(4) The text processing device according to claim 1 or 2, wherein the specific character is a "," (comma) character.
(5)特定キャラクタを“.”(ピリオド)キャラクタ
とすることを特徴とする特許請求の範囲第1項又は第2
項記載の文章処理装置。
(5) Claim 1 or 2, characterized in that the specific character is a “.” (period) character.
Sentence processing device described in section.
JP60015440A 1985-01-31 1985-01-31 Sentence processor Pending JPS61175762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60015440A JPS61175762A (en) 1985-01-31 1985-01-31 Sentence processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60015440A JPS61175762A (en) 1985-01-31 1985-01-31 Sentence processor

Publications (1)

Publication Number Publication Date
JPS61175762A true JPS61175762A (en) 1986-08-07

Family

ID=11888860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60015440A Pending JPS61175762A (en) 1985-01-31 1985-01-31 Sentence processor

Country Status (1)

Country Link
JP (1) JPS61175762A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014207019A (en) * 2012-06-29 2014-10-30 キヤノンマーケティングジャパン株式会社 Information processing apparatus, control method therefor, and program; as well as information processing system, control method therefor, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014207019A (en) * 2012-06-29 2014-10-30 キヤノンマーケティングジャパン株式会社 Information processing apparatus, control method therefor, and program; as well as information processing system, control method therefor, and program

Similar Documents

Publication Publication Date Title
US5157763A (en) Visually assisted method for transfer of data within an application or from a source application to a receiving application
JPS61175762A (en) Sentence processor
JPH0310136B2 (en)
CA1307853C (en) Visually assisted method for transfer of data
US5867700A (en) Information processing apparatus and method for displaying a first window displaying a list of names of attribute information and a second window displaying search and substitution command columns
JPH0128974B2 (en)
JPH0750480B2 (en) Text data editing device
JPH01166103A (en) Numerical controller
JP2540940B2 (en) Multi-window editing management method
JP2870869B2 (en) Document processing apparatus and method
JP3706635B2 (en) Document processing apparatus and data processing method of document processing apparatus
JPH047604A (en) Numerical controller
JPH03179553A (en) Producing device for japanese document
JPH025175A (en) Character processor
JPH02288965A (en) Document editing device
JPS62206620A (en) Input method for character string under editing
JP3059755B2 (en) Document creation device
JPS6358579A (en) Picture editing device
JPS62203226A (en) Document processor
JPH0640329B2 (en) Character processing apparatus and method
JPS60186960A (en) Key operation storage system
JPH096600A (en) Text input support system
JPS60159967A (en) Documentation device
JPH0736869A (en) Document editor
JPH07295752A (en) Controlling system for position of pointing cursor