JPS605956B2 - Screen editing method in read processor - Google Patents
Screen editing method in read processorInfo
- Publication number
- JPS605956B2 JPS605956B2 JP55105455A JP10545580A JPS605956B2 JP S605956 B2 JPS605956 B2 JP S605956B2 JP 55105455 A JP55105455 A JP 55105455A JP 10545580 A JP10545580 A JP 10545580A JP S605956 B2 JPS605956 B2 JP S605956B2
- Authority
- JP
- Japan
- Prior art keywords
- block
- stored
- area
- text
- pointer
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】
本発明はディスプレイ装置等の表示画面に表示された情
報の一部を相互に入れ替えて文章の編集を行うワードプ
ロセッサにおける画面編集方法に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a screen editing method in a word processor for editing a sentence by mutually replacing a portion of information displayed on a display screen of a display device or the like.
従来より、ワードプロセッサにおいては、例えば、第1
図に示すような文章の任意の2つの領域、Xブロックと
Yブロックとを入れ替える場合、まず、Xブロックおよ
びYブロックを夫々一時的に刻のフロッピィディスク等
の記憶装置(図示せず)に記憶しておき、Xブロックを
削除してその位置にYブロックを読み出し、次にYブロ
ックの以前の位置のデータを削除してその部分にXブロ
ックを読み出すといった処理、操作が必要で、オペレー
タにとって操作数が増加し、文章編集に非常に手間がか
)る問題があった。Conventionally, in word processors, for example, the first
When exchanging arbitrary two areas of the text, the X block and the Y block, as shown in the figure, first, the X block and the Y block are each temporarily stored in a storage device (not shown) such as a floppy disk. This requires processing and operations such as deleting the X block, reading the Y block at that position, then deleting the data at the previous position of the Y block and reading the X block at that part, which is difficult for the operator to perform. There was a problem with the increase in the number of documents, making it extremely time-consuming to edit the text.
本発明は従来のワードプロセッサにおける画面編集方法
における上記問題を解消すべくなされたものであって、
文章を格納するメモリを特殊な形式に設定し、入れ替え
るべき文章の領域の最初と最後の各2個所ずつを指定す
ることにより、上記〆モリの空きを利用して一回の操作
で文章や文字等の情報を相互に入れ替えて編集できるよ
うにしたワードプロセッサにおける画面編集方法を提供
することを目的としている。The present invention has been made to solve the above-mentioned problems in the screen editing method for conventional word processors, and includes:
By setting the memory for storing sentences in a special format and specifying two locations each at the beginning and end of the text area to be replaced, sentences and characters can be stored in a single operation using the free space in the closing memory. It is an object of the present invention to provide a screen editing method for a word processor that allows editing by mutually replacing information such as .
上記目的を達成するため、本発明は、文章バッファメモ
リに記憶させた情報をディスプレイ装置の表示画面に表
示させるとともに該表示画面に表示させた情報の一部を
相互に入れ替えて文章の編集を行うワードプロセッサに
おける画面編集方法において、表示画面の各文字もしく
は符号等の表示位置を示すカーソルマークの位置を先頭
番地とする空き領域によって上記文章バッファメモリを
上部領域と下部領域に分割した後、これら上部領域およ
び下部領域の各最初と各最後の番地を夫々レジスタに記
憶し、相互に入れ替えるべき上記表示画面の2つの領域
に夫々対応する文章バッファメモリの領域のうち上記空
き領域に隣接する領域とは異なる領域に記憶されている
データを上託しジス外こ記憶させたその最初の番地から
最後の番地まで順次上記空き領域に転送した後、転送さ
れた上記データが記憶されていた文章バッファの領域に
該領域と空き領域との間に記憶されているデータをその
ま)転送し、以下少くとも上記の一連の操作を順次繰り
返すことによって上記表示画面の上で任意に指定された
領域を相互に入れ替えることを特徴とするものである。In order to achieve the above object, the present invention displays information stored in a text buffer memory on a display screen of a display device, and edits a text by mutually replacing a part of the information displayed on the display screen. In a screen editing method for a word processor, the text buffer memory is divided into an upper area and a lower area according to an empty area whose starting address is the position of a cursor mark indicating the display position of each character or code on the display screen, and then these upper areas are and the respective first and last addresses of the lower area are stored in registers, respectively, and are different from the areas adjacent to the above-mentioned free area among the areas of the text buffer memory corresponding to the two areas of the above-mentioned display screen to be mutually exchanged. After the data stored in the area is sequentially transferred to the free area from the first address to the last address, the transferred data is transferred to the area of the text buffer where it was stored. Transferring the data stored between the area and the free area as is, and then repeating at least the above series of operations in sequence to mutually exchange arbitrarily specified areas on the display screen. It is characterized by:
以下、本発明の実施例を示す図面を参照して詳細に説明
する。Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
本発明に係る画面編集方法による画面編集の基本的な操
作は次のように行う。The basic operation of screen editing using the screen editing method according to the present invention is performed as follows.
先ず、ワードプロセッサ(図示せず。First, a word processor (not shown).
)のCRT(陰極線管)表示画面1に表示されている第
1図の文章において、任意に指定した2つのブロック、
XブロックおよびYブロックを相互に入れ替える場合、
カーソルマーク2により、上記×ブロックおよびYブロ
ックの各最初の位置Xs,Ysと各最後の位置×E,Y
Eの合計4個所(第2図において斜線で示す。)を指定
する。この場合、上言己のXブロックおよびYブロック
は他のZブロックと区別するため、Zブロックとは反転
された表示を使用して見やすくすることが好ましい。) In the text in Figure 1 displayed on CRT (cathode ray tube) display screen 1, two arbitrarily specified blocks,
When exchanging the X block and Y block with each other,
With cursor mark 2, each first position Xs, Ys of the above × block and Y block and each last position ×E, Y
A total of four locations E (indicated by diagonal lines in FIG. 2) are designated. In this case, in order to distinguish the own X block and Y block from other Z blocks, it is preferable to use a display that is inverted from the Z block to make it easier to see.
次に、上記ワードプロセッサの入れ替えキーを押すこと
により、第3図に示すように、×ブロックとYブロック
とが相互に入れ替えられた表示を得る。Next, by pressing the swap key of the word processor, a display is obtained in which the x block and the Y block are swapped with each other, as shown in FIG.
上記操作において、ワードプロセッサの文字入力装置(
図示せず。In the above operation, the character input device of the word processor (
Not shown.
)より入力する信号を一時記憶する文章バッファ内の情
報の処理は、次のように行われる。文章は、上記文字入
力装置より、CRT表示画面のカーソル表示位置に対応
する文章バッファに文字が入力されるごとに順次記憶し
ていき、入力された文字順序で記憶される。) The information in the text buffer that temporarily stores the input signal is processed as follows. Sentences are stored sequentially each time a character is input from the character input device into a text buffer corresponding to a cursor display position on the CRT display screen, and are stored in the order of the input characters.
上記文章バッファに記憶されている文章はCRT表示装
置に表示され、カーソルマーク2を、例えば第4図aの
点路擬で示す位置から実線で示す位置に移動させると、
カーソル表示位置以降の文字は、第4図bに示すように
、文章バッファ3の下段に移動され、その間に空き領域
5が設けられる。The text stored in the text buffer is displayed on the CRT display device, and when the cursor mark 2 is moved, for example, from the position shown by the dotted path in FIG. 4a to the position shown by the solid line,
The characters after the cursor display position are moved to the lower part of the text buffer 3, as shown in FIG. 4b, and an empty area 5 is provided between them.
即ち、上記文章バッファ3はカーソルマーク2の位置を
中心にして分れており、第4図bに示すように、上部の
文章バッファ(以下、上部バッファと記す。That is, the text buffer 3 is divided around the position of the cursor mark 2, and as shown in FIG. 4b, an upper text buffer (hereinafter referred to as the upper buffer).
)6Uと下部の文章バッファ(以下、下部バッファと記
す。)6Lとに分れている。上記第4図bに示す空き領
域5の先頭位置はポインタ(POINTER)1により
、また、下部バッファ6Lの先頭位置はポインタD‘こ
より夫々示している。最初、カーソルマーク2を移動し
て×ブロックおよびYブロックの位置を指定するとき、
夫々第1図に示すカーソル表示位置のときのポインタロ
の値を、第5図に示すようにXブロック開始アドレスX
SADR、Xブロック終了アドレスXEADR、Yブロ
ック開始アドレスYSADRおよびYブロック終了アド
レスYEADRを記憶するレジスタ7に格納する。) 6U and a lower text buffer (hereinafter referred to as lower buffer) 6L. The starting position of the empty area 5 shown in FIG. 4b is indicated by the pointer (POINTER) 1, and the starting position of the lower buffer 6L is indicated by the pointer D'. First, when moving cursor mark 2 to specify the positions of the × block and Y block,
The value of the pointer at the cursor display position shown in FIG. 1 is set to the X block start address X as shown in FIG.
SADR, X block end address XEADR, Y block start address YSADR, and Y block end address YEADR are stored in register 7.
第1図の位置×sにカーソルマーク2があるとき、文章
バッファ3は第6図のようになる。When the cursor mark 2 is located at position xs in FIG. 1, the text buffer 3 becomes as shown in FIG. 6.
ここで、入れ替えをすべきYブロックの先頭のアドレス
、即ち、YSADRは第5図のレジスタ7に設定されて
いるので、第7図に示すように、ポィンタ1の位置へ上
記のYSADRから文章データを転送する。このときの
転送データ数は、第5図のレジスタ7に格納されたYS
ADRおよびYEADRより容易に計算できる。Here, since the start address of the Y block to be replaced, that is, YSADR, is set in register 7 in Figure 5, the text data is transferred from the above YSADR to the position of pointer 1, as shown in Figure 7. Transfer. The number of transferred data at this time is YS stored in register 7 in FIG.
Easier to calculate than ADR and YEADR.
上記転送の終了後、文章バッファ3の内容は第7図のよ
うになる。After the above transfer is completed, the contents of the text buffer 3 become as shown in FIG.
次に、不必要となった第7図のYブロックを削除しなけ
ればならないが、これは、YEADRへYSADR−1
よりn項番に下へ転送することによって行うことができ
る。Next, we must delete the unnecessary Y block in FIG.
This can be done by transferring down to nth item number.
その結果、ポィンタロも書き換えられ、文章バッファ3
は第8図のようになる。As a result, Pointaro is also rewritten and the text buffer 3
is as shown in Figure 8.
このとき、第5図のXSADRおよびXEADRも変化
し、新XSADRおよび新YEAORは次の式に新XS
ADR=旧XSADR十(Yブロック転送数)新XEA
DR;旧XEADR+(Yブロック転送数)次に、第1
図に示す×ブロックとYブロックとの間にあるZブロッ
クを、第9図に示すように、上部バッファ6Uに転送す
る。At this time, XSADR and XEADR in Figure 5 also change, and the new XSADR and new YEAOR are changed to the new XS
ADR = Old XSADR 10 (Y number of block transfers) New XEA
DR; Old XEADR + (Y block transfer number) Next, the first
The Z block between the X block and the Y block shown in the figure is transferred to the upper buffer 6U as shown in FIG.
このときは、XEADR+1からYEADRの間をポィ
ンタ1の位置より上部バッファ6Uに転送すればよい。In this case, data between XEADR+1 and YEADR may be transferred from the pointer 1 position to the upper buffer 6U.
次に、×ブロックを不必要となった第9図のZフロック
位置へ転送する。これは、XEADRよりYEADRへ
下から順番につめて転送すればよい。Next, the x block is transferred to the unnecessary Z block position in FIG. 9. This can be done by sequentially filling and transferring data from XEADR to YEADR from the bottom.
その結果、文章バッファ3の内容は第10図のようにな
り、CRT表示画面!では、第11図に示すように、第
1図の×ブロックとYブロックとが相互に入れ替った画
面が得られる。As a result, the contents of text buffer 3 become as shown in Figure 10, which is the CRT display screen! Now, as shown in FIG. 11, a screen is obtained in which the x blocks and Y blocks in FIG. 1 are interchanged.
次に、上記の画面編集を行う臭体的なワードプロセッサ
の文章編集部の回路を第12図に示す。Next, FIG. 12 shows the circuitry of the sentence editing section of a formal word processor that performs the above-mentioned screen editing.
第12図において、10はファンクションキー回路で、
カーソル移動キー10a、ブロック(BLOCK)キー
10b、チエンジ(CHANGE)キー10cを夫々備
えており、操作されたキーに対応する符号化信号を出力
する。カーソル移動キー10aは、CRT表示画面1に
表示されている位置マークを移動させるためのものであ
り、左、右、上、下のキーを備えている。In FIG. 12, 10 is a function key circuit,
It is provided with a cursor movement key 10a, a block (BLOCK) key 10b, and a change (CHANGE) key 10c, respectively, and outputs an encoded signal corresponding to the operated key. The cursor movement keys 10a are used to move the position mark displayed on the CRT display screen 1, and include left, right, up, and down keys.
ブロックキーlobは、第2図に示したように、文章バ
ッファ3に記憶している文章を交換する時、その領域を
指示するキーである。すなわち、第2図A字、」(改行
)、a字、h字の位置を指示するものである。As shown in FIG. 2, the block key lob is a key that indicates an area when exchanging sentences stored in the sentence buffer 3. That is, it indicates the position of the letter A, '' (line break), letter a, and letter h in Figure 2.
チェンジキー10cは、上記のように指定した領域の文
章の交換を行う実行キーである。The change key 10c is an execution key for exchanging text in the designated area as described above.
ファンクションキー回路10から出力される符号化信号
は、コントロール回路13に供v給し、また、そのうち
のカーソルマーク2の符号化信号は「 カーソル制御回
路12に供孫舎している。The encoded signal output from the function key circuit 10 is supplied to the control circuit 13, and the encoded signal for the cursor mark 2 is supplied to the cursor control circuit 12.
更に、フロックキー10bの符号化信号は、カウンタ3
1に供孫舎し、ブロックキー10bの操作回数に応じて
カウントし、その出力をコントロール回路13に供給し
ている。より計算される。Furthermore, the coded signal of the flock key 10b is sent to the counter 3.
1, the number of operations of the block key 10b is counted, and the output thereof is supplied to the control circuit 13. calculated from
上記カーソル制御回路12は一般によく知られているも
のであり、CRT表示と同期したカーソルカウンタ(図
示せず。The cursor control circuit 12 is generally well known and includes a cursor counter (not shown) synchronized with the CRT display.
)を有し、キーの操作に応じたカーソル位置を記憶し、
その出力をCRTディスプレイ装置に供孫舎して、指定
した位置にカーソルマークを表示する。コントロール回
路13は、各キー信号、および後述する比較信号等によ
り、第13図aからdに夫々示すように、供V給される
信号に応じたコントロール信号を発生する回路であり、
ROM等で構成されている。) and remembers the cursor position according to key operations,
The output is sent to the CRT display device and a cursor mark is displayed at the specified position. The control circuit 13 is a circuit that generates control signals according to the signals supplied by V, as shown in FIGS.
It consists of ROM etc.
15は第4図b、第6図、第7図、第8図、第9図およ
び第10図において夫々示した文章バッファである。15 is the text buffer shown in FIG. 4b, FIG. 6, FIG. 7, FIG. 8, FIG. 9, and FIG. 10, respectively.
上記文章バッファ15は、アドレス回路14によってア
ドレス位置が指示され、R/W信号によってアキュムレ
ータ16に議出しあるいは、アキュムレー夕16の情報
が書込まれる。アキュムレータ16は入力キー回路11
から供給される文字情報を記憶し、文字バッファ15に
書込み、あるいはCRTディスプレイに供給を行うため
のバッファメモリである。また、コントロール回路13
から供V給されるAリセツト信号によってリセツトされ
る。アドレス回路14は、オアゲート55からのデータ
に基づいて文章バッファ15をアドレスする。The address position of the text buffer 15 is designated by the address circuit 14, and the information in the accumulator 16 is read or written into the accumulator 16 by the R/W signal. The accumulator 16 is the input key circuit 11
This is a buffer memory for storing character information supplied from the computer and writing it into the character buffer 15 or supplying it to the CRT display. In addition, the control circuit 13
It is reset by the A reset signal supplied from V. Address circuit 14 addresses text buffer 15 based on data from OR gate 55.
17はアップダウンカゥンタからなる第1のポイン夕P
,であり、初期状態では、全て“0”と成っており、文
章バッファ15の先頭アドレスとなつている。17 is the first point P consisting of an up/down counter
, and in the initial state, they are all "0" and serve as the start address of the text buffer 15.
このポインタ17は、アンドゲート41が開かれること
により、1カウントアップされ、また、アンドゲート4
2が開くことによって1カウントダウンされ、更にこの
ポインタ17の出力は、アンドゲート51に供給してお
り、コントロール回路13から供給されるP,→ADR
信号によって開かれ、オアゲート55を介してアドレス
回路に供給する。18は、上記ポインタ17と同様に、
アップダウンカウンタよりなる第2のカウンタP2であ
り、初期状態では、文章バッファ15の最大アドレスn
より1つ多いn+1の値となっており、更に、アンドゲ
ート43が開かれることにより、1カウントアンプされ
、また、アンドゲート44が開かれることにより、1カ
ウントダウンされる。This pointer 17 is incremented by 1 when the AND gate 41 is opened.
The output of pointer 17 is supplied to AND gate 51, and P, → ADR supplied from control circuit 13.
It is opened by a signal and is supplied to the address circuit via the OR gate 55. 18 is similar to the above pointer 17,
The second counter P2 is an up/down counter, and in the initial state, the maximum address n of the text buffer 15 is
The value is n+1, which is one more than that, and when the AND gate 43 is opened, the count is amplified by 1, and when the AND gate 44 is opened, the count is decreased by 1.
このポィンタ18の出力は、アンドゲート52に供総合
しており、コントロール回路13から供給されるP2→
ADR信号によって開き、ポィンタ18のデータがアド
レス回路14に供給される。比較回路23はポィンタ1
7が“0”になると出力する回路である。The output of this pointer 18 is combined with an AND gate 52, and P2→
It is opened by the ADR signal and the data of the pointer 18 is supplied to the address circuit 14. Comparison circuit 23 is pointer 1
This is a circuit that outputs when 7 becomes "0".
比較回路24はポィンタ18がn+1になると出力する
回路である。The comparison circuit 24 is a circuit that outputs when the pointer 18 reaches n+1.
19,20,21,22はしジスタ(Reg)であり、
後述する所定の状態でポィンタ18のデータを記憶する
。19, 20, 21, 22 are the registers (Reg),
The data of the pointer 18 is stored in a predetermined state which will be described later.
レジスタ20,21は上記入力の他にアンドゲート46
,48を入力する端子を有し、このゲートが開くと、1
カウントダウンされる。In addition to the above inputs, the registers 20 and 21 also have an AND gate 46.
, 48, and when this gate is opened, 1
is counted down.
25なし、し3川ま、上記比較回路23,24と同様の
比較回路であり、P2=Regl、Regl=Re雛、
Regl:Reg3、Re雛:Reg3、P2:Reg
3、P2=Reg4の状態になると出力し、コントロー
ル回路13に供給する。25 None, Shi3kawa is a comparison circuit similar to the above comparison circuits 23 and 24, P2=Regl, Regl=Rechick,
Regl: Reg3, Re chick: Reg3, P2: Reg
3. When the state of P2=Reg4 is reached, it is output and supplied to the control circuit 13.
次に動作を説明する。Next, the operation will be explained.
【1} 文字入力キー11aを操作したときの動作文字
入力動作は第13図aのフローチャート100が動作し
、文字キーが操作されると、入力キー回路11より入力
キーに対応した符号化信号(文字コード)が出力され、
アキュムレータ16に記憶され、P,→ADR信号が出
力され、アンドゲート51が開き、ポィンタ17のデー
タがオアゲート55を介してアドレス回路14に供給す
る。[1} Operation when character input key 11a is operated Character input operation is performed according to the flowchart 100 in FIG. character code) is output,
The data is stored in the accumulator 16, the P,→ADR signal is output, the AND gate 51 is opened, and the data of the pointer 17 is supplied to the address circuit 14 via the OR gate 55.
更に、R/W信号が(例えば1)出力されると、アキユ
ムレータ16のデー夕が文章バッファ15のポインタ1
7でアドレスした位置に記憶する。初期状態ではポィン
タ17は“0”と成っているため、文章バッファ15の
先頭に記憶される。Furthermore, when the R/W signal (for example, 1) is output, the data in the accumulator 16 is transferred to the pointer 1 in the text buffer 15.
Store it in the location addressed in step 7. In the initial state, the pointer 17 is set to "0", so it is stored at the beginning of the text buffer 15.
更にP,十1が出力され、アンドゲート41が開き、ポ
インタ17が1カウントアップされ、十1される。この
ような動作を、文字入力されるごとに繰り返し動作され
、文章バッファ15の先頭より順次記憶する。Further, P and 11 are outputted, the AND gate 41 is opened, and the pointer 17 is counted up by 1 and is incremented to 11. This operation is repeated every time a character is input, and the text buffer 15 is stored sequentially from the beginning.
また、文字コード信号は、カーソル制御回路12にも供
聯合しており、カーソルマーク2を次に入力すべき位置
に常に表示するようにしている。The character code signal is also connected to the cursor control circuit 12, so that the cursor mark 2 is always displayed at the position where the next input is to be made.
■ カーソル移動キー10aを操作した時の動作次に、
このようにして文章を文章バッファー5に記憶した状態
において、訂正等を行う際にカーソルマーク2を移動さ
せた場合について第13図bのフローチャート200に
より説明する。■ Operation when operating the cursor movement key 10a Next,
A case in which the cursor mark 2 is moved when making corrections, etc. with the text stored in the text buffer 5 in this manner will be explained with reference to the flowchart 200 in FIG. 13b.
ポインタ17が“0”であるかすなわち、カーソル位置
が文章バッファ15の先頭にあるかを検知する。It is detected whether the pointer 17 is "0", that is, whether the cursor position is at the beginning of the text buffer 15.
これは比較回路23で行なわれ“0”であれば出力され
、エラー処理、例えば音を発生させる等を行う。“0”
でなければフローチャート202へ進行し、P,一1を
出力する。P,一1が出力されるとアンドゲート42が
開かれ、ポインタ17が1カウントダウンされ、203
でP2一1が出力され、アンドゲート44が開き、ポイ
ンタ18を1カウントダウンする。204でP,→AD
Rが出力され、ポインタ17をアンドゲート52、オア
ゲート55を介してアドレス回路14に供孫台し、更に
205でR/W(例えば“0”)信号が出力され、上記
ポィンタ17でアドレスした位置の文字コ−ドをアキュ
ムレ−夕16に読み出す。This is performed by the comparator circuit 23, and if it is "0", it is output, and error handling, such as generating a sound, is performed. “0”
Otherwise, the process proceeds to flowchart 202 and outputs P,-1. When P, -1 is output, AND gate 42 is opened, pointer 17 is counted down by 1, and 203
P2-1 is output, the AND gate 44 opens, and the pointer 18 is counted down by one. P at 204, → AD
R is output, the pointer 17 is sent to the address circuit 14 via the AND gate 52 and the OR gate 55, and an R/W (for example, "0") signal is output at 205, indicating the position addressed by the pointer 17. The character code of is read out to the accumulator 16.
206でポィンタ18をアドレス回路14に供給し、2
07でR/W信号(1)を出力し、アキュムレータ16
のコードを書き込む。206 supplies the pointer 18 to the address circuit 14;
The R/W signal (1) is output at 07, and the accumulator 16
Write the code.
更に、208でアキユムレータ16がリセツトされ、ポ
インタ17をアドレスし、アキユムレータ16の“0”
を書き込む、このようにしてポインタ17でアドレスし
た文字がポィンタ18でアドレスした位置へ転送する。Furthermore, the accumulator 16 is reset at 208, the pointer 17 is addressed, and the accumulator 16 is set to "0".
In this way, the character addressed by pointer 17 is transferred to the position addressed by pointer 18.
この動作はカーソルバックキーを操作するごとに繰返し
動作される。すなわち、ポィンタ18は、初期状態では
n十1であり、カーソル指示位置の文字が文章バッファ
15の最下位に転送され、その間に空間部を形成する。
この動作を繰り返すと、第4図bのように、最下位より
順次転送される。〔カーソルを前進させた場合〕
第4図bの状態で文章バッファ15に記憶しているとす
ると、21 1でP2=n+1であるか否かを検知する
、この場合、比較回路24でポィンタ18とn+1と比
較を行い、P2=n十1であれば出力し、前述したエラ
ー処理が成される。This operation is repeated every time the cursor back key is operated. That is, the pointer 18 is initially n1, and the character at the cursor indicated position is transferred to the lowest position of the text buffer 15, forming a space therebetween.
When this operation is repeated, the data is transferred sequentially from the lowest order as shown in FIG. 4b. [When the cursor is moved forward] Assuming that the state shown in FIG. is compared with n+1, and if P2=n+1, it is output and the above-mentioned error processing is performed.
P2=n十1でなければ、2 1 2でP2→ADRが
出力され、アンドゲート52が開き、ポィンタP2のデ
ータがアドレス回路1 4に供給され、更に213でR
/W(0)信号が出力され、ポィンタ18のアドレスし
た文字コードがアキュムレータ16に読み出される。If P2=n11, then P2→ADR is output at 2 1 2, the AND gate 52 is opened, the data of pointer P2 is supplied to the address circuit 1 4, and then R is output at 213.
The /W(0) signal is output, and the character code addressed by the pointer 18 is read into the accumulator 16.
更に214でP,→ADRが出力され、ポインタ17の
データがァンドゲート51を介してアドレス回路に供給
し、215でR/W(1)信号が出力され、アキュムレ
ータ16のコードがポインタP,の位置の文章バッファ
ー5に書き込む。更に216でAリセットされ、217
で先ほどのポィンタ17をアドレスし、218でR/W
(1)を出力し、このアドレス信号をクリャする。続い
て21 9,220でP,十1、P2十1される。この
ような動作をカーソルフオワード操作ごとに繰返す。こ
のようにすることによって、カーソルバック動作と反対
に文章バッファ15のカーソル位置の文字を上位へ転送
する。このカーソル位置に他の文字等が挿入出来る。す
なわち、カーソル位置の文字の前に他の文字を挿入する
ことが出来る。【31ブロックキー10bを操作したと
きの動作上記のようにブロックごとに文章の入替えを行
う場合カーソルマーク2を交換しようとするフロックの
先頭文字位置へ移動させる。Furthermore, P,→ADR is output at 214, the data of the pointer 17 is supplied to the address circuit via the AND gate 51, the R/W (1) signal is output at 215, and the code of the accumulator 16 is set to the position of the pointer P, Write to text buffer 5. Furthermore, A is reset at 216, and 217
Address the pointer 17 from earlier, and R/W at 218.
(1) and clears this address signal. Subsequently, P, 11, and P2 11 are performed at 21 9, 220. This operation is repeated for each cursor forward operation. By doing this, the character at the cursor position in the text buffer 15 is transferred upwards, contrary to the cursor back operation. Other characters can be inserted at this cursor position. That is, you can insert another character before the character at the cursor position. [31 Operation when operating the block key 10b When exchanging sentences for each block as described above, move the cursor mark 2 to the first character position of the block to be exchanged.
本実施例では、第1図に示す×ブロックとYブロックを
交換する場合を例としている。In this embodiment, the case where the x block and the Y block shown in FIG. 1 are exchanged is taken as an example.
従ってカーソルマーク2をバックさせて、Xブロックの
A文字位置に移動させる。この時文章バッファ15は上
記の動作を繰返し行い、第6図に示す状態となる。この
状態でブロックキー10bを操作すると、第13図cの
フローチャートに従って動作し、ブロックキー10bの
信号はカウンタ31に供V給され、1カウントする。1
回目のキー操作であるためP2→Regl信号が出力さ
れ、アンドゲート45が開き、ポインタ18のデータが
レジスタ19に転送される。Therefore, the cursor mark 2 is moved back to the position of the letter A in the X block. At this time, the text buffer 15 repeatedly performs the above operation and reaches the state shown in FIG. When the block key 10b is operated in this state, the operation is performed according to the flowchart shown in FIG. 1
Since this is the second key operation, the P2→Regl signal is output, the AND gate 45 is opened, and the data of the pointer 18 is transferred to the register 19.
すなわち、×ブロックの先頭アドレス(A文字位置)を
記憶する。更にカーソルをXブロックの最後の文字位置
」(改行)文字に移動させると文章バッファ15は先に
説明した動作により、XブロックA文字ないしL文字は
文章バッファ15の先頭より順番に記憶され、一以下の
文字は文章バッファ15の最下位アドレス位置より順番
に記憶され、その間に空き領域を形成した状態となって
いる。That is, the start address (A character position) of the × block is stored. Furthermore, when the cursor is moved to the last character position of the X block (line feed) character, the text buffer 15 performs the operation described above, and the characters A to L of the X block are stored in order from the beginning of the text buffer 15. The following characters are stored in order from the lowest address position of the text buffer 15, with an empty area formed between them.
この時P2はブロックの最後の文字」(改行)文字位置
を示しており、P2→Reg2の出力により、アンドゲ
ート47が開き、ポインタ18のデータがレジスタRe
g2に転送される。このようにして×ブロック、および
Yブロックも同様にブロック先頭と最後のアドレス値が
ReglないしReg4に記憶される。At this time, P2 indicates the character position of the last character of the block (line feed), and the output of P2→Reg2 opens the AND gate 47 and the data of the pointer 18 is transferred to the register Re.
Transferred to g2. In this manner, the block start and end address values of the x block and the Y block are similarly stored in Regl to Reg4.
この状態でチェンジキー10cを操作すると、第13図
dのフローチャートに従って動作する。} チェンジキ
ー10cを操作したときの動作上記第13図dのフロー
チャートにおいて、600は、第6図の状態にするため
の動作を示し、700は第7図、800は第8図、90
0は第9図、1000は第10図にするための動作を夫
々示している。When the change key 10c is operated in this state, the operation follows the flowchart shown in FIG. 13d. } Operation when the change key 10c is operated In the flowchart shown in FIG. 13d above, 600 indicates the operation to achieve the state shown in FIG.
0 and 1000 respectively indicate the operation for making the image shown in FIG. 9 and FIG. 10.
チェンジキー10cの操作時には、カーソルキー10a
の操作によって、カーソル位置には空間エリア(空き領
域)が形成され、文章バッファ3は分離された状態とな
っている(例えば、第4図参照)。When operating the change key 10c, the cursor key 10a
As a result of this operation, a space area (empty area) is formed at the cursor position, and the text buffer 3 is separated (for example, see FIG. 4).
この文章バッファ15のデータを、第6図に示すように
文章バッファ上部を空きエリアにする。従ってフローチ
ャート600では、ポィンタ17が指示するアドレスよ
り1つ上位の文字位置をポィンタ17に設定する(P,
一1→P,)。そのポィンタ17で指示した、すなわち
上位ブロックの最下位文字をアドレスしポインタ18で
示す下位ブロックの1つ上の位置に順次転送する。動作
はカーソルバックと同機である。ポィンタ18が比較回
路25でReglと一致すると、第6図に示した状態と
成ったこととなり、フローチャート700へ進行する。The data in the text buffer 15 is stored in an empty area at the top of the text buffer, as shown in FIG. Therefore, in the flowchart 600, the pointer 17 is set to a character position one higher than the address pointed to by the pointer 17 (P,
11→P,). The lowest character of the upper block indicated by the pointer 17 is addressed and sequentially transferred to the position one level above the lower block indicated by the pointer 18. The operation is the same as cursor back. When the pointer 18 matches Regl in the comparison circuit 25, the state shown in FIG. 6 has been reached, and the process advances to flowchart 700.
フローチャート700は、第7図の状態にするための動
作のフローチャートである。この場合、Yブロックの先
頭アドレス値は上記ブロックキーlobの操作により、
レジスタ21に記憶されるので、Reg3→P2を出力
し、アンドゲート57、オアゲート59を介してレジス
タ21のデータは、ポィンタ18に転送される。すなわ
ち、ポィンタ17は、空間部先頭アドレス値を記憶し、
ポィンタ18はYブロックの先頭アドレス値を記憶して
いる(フローチャート701参照)。フローチャート7
02でP2→ADR信号を出力し、アンドゲート52、
オアゲート55を介して、ポィンタ18のアドレス値が
アドレス回路14に転送され、703でRノW(0)信
号が出力され、ポィンタ18で示す、すなわちYブロッ
クの先頭文字をアキュムレータ16に読み出す。更に、
ポィンタ17をアドレス回路14に転送し、705でR
/W(1)信号を出力しアキュムレータ16のデータを
書込む。続いて、706でP2とReg4 すなわちY
ブロックの最後の文字であるか杏かを検知し、そうでな
ければ、ポインタ17,18をアンドゲ−ト41,43
を開くことによって1カウントアップする。この動作を
フローチャート706により、比較器30で一致を検知
するまで繰返し実行され、Yブロックの文字を空間部の
先頭より順次転送する。文章バッファ15は第7図の状
態となって、フローチャート800へ進行する。801
でReg4→P2を出力し、アンドゲート58、オアゲ
ート59を介して、レジスタ22に記憶しているYブ。Flowchart 700 is a flowchart of operations for achieving the state shown in FIG. In this case, the start address value of the Y block is determined by the operation of the block key lob mentioned above.
Since it is stored in the register 21, Reg3→P2 is output, and the data in the register 21 is transferred to the pointer 18 via the AND gate 57 and the OR gate 59. That is, the pointer 17 stores the space part start address value,
The pointer 18 stores the start address value of the Y block (see flowchart 701). Flowchart 7
At 02, the P2→ADR signal is output, and the AND gate 52,
The address value of the pointer 18 is transferred to the address circuit 14 via the OR gate 55, and an RNOW(0) signal is output at 703, and the first character of the Y block indicated by the pointer 18 is read into the accumulator 16. Furthermore,
The pointer 17 is transferred to the address circuit 14, and at 705 R
/W(1) signal is output and data in the accumulator 16 is written. Then, in 706, P2 and Reg4, that is, Y
Detects whether it is the last character of the block or an apricot, and if not, moves pointers 17 and 18 to AND gates 41 and 43
Count up by 1 by opening. This operation is repeatedly executed according to the flowchart 706 until the comparator 30 detects a match, and the characters of the Y block are sequentially transferred from the beginning of the space. The text buffer 15 is in the state shown in FIG. 7, and the process advances to flowchart 800. 801
, outputs Reg4→P2 and stores it in the register 22 via the AND gate 58 and the OR gate 59.
ックの最後のアドレス値を、ポインタP2に転送する。
更に、Reg3一1を出力し、アンドゲート42を開き
、Reg3に記憶しているYブロックの先頭アドレス値
を1カウントダウンする。すなわち、Yブロックの前の
文字位置をReg321に記憶する。続いて803,8
04,805,806によりYブロックのデータ位置に
上位データを転送する。更に、807,808,809
のフローチヤートで、Yブロック上位に記憶していた文
字データを消去する。810でReg3=Reglの検
知を行う。Transfers the last address value of the block to pointer P2.
Furthermore, Reg3-1 is output, the AND gate 42 is opened, and the start address value of the Y block stored in Reg3 is counted down by one. That is, the character position before the Y block is stored in Reg321. followed by 803,8
04, 805, and 806, the upper data is transferred to the data position of the Y block. Furthermore, 807,808,809
In the flowchart, the character data stored in the upper part of the Y block is deleted. At 810, Reg3=Regl is detected.
これは×ブロックの先頭の文字までの文章を下に転送し
たことを検知するものである。81 1でReg3=R
e解の検知を比較器28で行い、×ブロックの最後の位
置にReg3が来ると、その時のポインタP2のデータ
をReg2に記憶する。This is to detect that the text up to the first character of the × block has been transferred downward. 81 1 and Reg3=R
The e solution is detected by the comparator 28, and when Reg3 comes to the last position of the x block, the data of pointer P2 at that time is stored in Reg2.
これは×ブロックの先頭、最後のアドレスをRegl、
Reg2に予め記憶しているが、上記の動作より変動す
るため、新なアドレス値を記憶しておくためである。上
記の動作の繰返し‘こより、第7図の旧のYブロックの
文章データを消去する。This is the start and end address of × block, Regl,
Although it is stored in Reg2 in advance, this is to store a new address value since it changes from the above operation. By repeating the above operation, the text data in the old Y block in FIG. 7 is erased.
810でRegl=Reg3を検知すると、81 4で
P2→Reglを出力し、アンドゲート45を開き、×
ブロックの新な先頭アドレスをReglに転送し、文章
バッファは第8図のように処理され、フローチャート9
00へ進行する。When Regl=Reg3 is detected at 810, P2→Regl is output at 814, the AND gate 45 is opened, and ×
The new start address of the block is transferred to Regl, the text buffer is processed as shown in Figure 8, and flowchart 9
Proceed to 00.
フローチャート901がReg2に記憶している×ブロ
ックの最後のアドレス値をポィンタ18にアンドゲート
56、オアゲート59を介して転送する。The flowchart 901 transfers the last address value of the x block stored in Reg2 to the pointer 18 via the AND gate 56 and the OR gate 59.
更に902で、比較回路30の検知信号によって、P2
=Reg4を行い、不一致であればXブロックと旧Yブ
ロック間に他の文章があることが判断される。Furthermore, in 902, P2 is determined by the detection signal of the comparator circuit 30.
=Reg4, and if they do not match, it is determined that there is another sentence between the X block and the old Y block.
一致すれば完了し、フローチャート1000へ進行する
。フローチヤート903なし、し907により、Xフロ
ツクとYブロック間の文章、Zブロックをポインタ17
に示すアドレス位置すなわち転送したXブロックに続い
た空部に繰返し転送して文章バッファ14を第9図のよ
うにする。If they match, the process is complete and the process proceeds to flowchart 1000. There is no flowchart 903, and 907 moves the text between the X block and the Y block, and the Z block to the pointer 17.
The text buffer 14 is made as shown in FIG. 9 by repeatedly transferring the data to the address position shown in FIG.
続いて、フローチャート1000へ進行し、先に説明し
たXブロック転送時のXブロック消去と同様に、Zブロ
ックを消去するため、×ブロックを下に移動させる。こ
のようにして任意に指示したブロック間の交換が簡単に
行なえるものである。なお、上記実施例においては、ブ
ロックキー10bの操作は、交換しようとするブロック
を文章バッファ5の上位より指定するようにしたが、文
章バッファ5の任意の位置から指定することも可能であ
る。Next, the process advances to flowchart 1000, and in the same way as the X block erase during the X block transfer described above, the x block is moved downward in order to erase the Z block. In this way, exchange between arbitrarily designated blocks can be easily performed. In the above embodiment, the block key 10b is operated to specify the block to be exchanged from the top of the text buffer 5, but it is also possible to specify it from any position in the text buffer 5.
但し、この場合、ブロックキー10bが各ブロックを指
定した後に、レジスタ19なし、しレジスタ22に記憶
したアドレス値の大小比較を行い、例えばReglより
アドレス値の小さい方から順に記憶しなおす等の、記憶
順序の変更が必要となる。However, in this case, after the block key 10b specifies each block, the address values stored in the register 22 are compared in magnitude without register 19, and the address values are stored again in order from the address value smaller than Regl, for example. It is necessary to change the storage order.
以上、詳述したことからも明らかなように、本発明は、
相互に入れ替えるべき2つのブロックの各最初の位置と
各最後の4つの位置を指定し、特殊な形式に設定した文
章バッファを使用して一回の操作で上記ブロックを相互
に入れ替えて文章の編集を行うようにしたから、ワード
プロセッサの操作も非常に簡単化され、文章編集作業の
能率も大中に向上するとともに、画面上のブロックの入
れ替え編集処理は同じ文字数間の入れ替えに制限される
ことはなく、オペレータにより任意に指定することも可
能となる。As is clear from the detailed description above, the present invention
Edit the text by specifying the first position and the last four positions of the two blocks that should be mutually swapped, and using a text buffer set in a special format to mutually swap the blocks in a single operation. By doing this, the operation of the word processor is greatly simplified, the efficiency of text editing work is greatly improved, and the editing process for replacing blocks on the screen is no longer limited to replacing the same number of characters. It also becomes possible for the operator to arbitrarily specify this.
第1図は従来のワードプロセッサにおける画面編集方法
を説明するためのCRT表示画面の説明図、第2図は本
発明に係るワードプロセッサにおける画面編集方法を説
明するためのCRT表示画面の説明図、第3図は2つの
ブロックを相互に入れ替えた後のCRT表示画面の説明
図、第4図aおよびbは夫々CRT表示画面の表示およ
びその表示状態における文章バッファの内容を示す説明
図、第5図は入れ替える2つのブロックの各最初と各最
後の文章バッファ上のアドレスを記憶するレジスタ、第
6図、第7図、第8図、第9図および第10図は夫々本
発明の一実施例によるブロックの入れ替え時の文章ブロ
ックの内容を示す説明図、第11図はブロックの入れ替
え完了後のCRT表示画面を示す説明図、第12図は本
発明を実施するためのワードプロセッサの文章編集部を
示す回路図、第13図aからdは夫々第12図の動作を
示すフローチャートである。
1…・・・CRT表示画面、2…・・・カーソルマーク
、3……文章バッファ、5・・・・・・空き領域、6U
…・・・上部バッファ、6L・・・・・・下部バッファ
、7……レジスタ、Xs…・・・×ブロックの最初の位
置、×E・…・・Xブロックの最後の位置、Ys・・・
・・・Yブロックの最初の位置、Y8…・・・Yブロッ
クの最後の位置。
‐第1図
第2図
第3図
第4図
第5図
第6図
第7図
第8図
第9図
第10図
第11図
図
N
舷
第13図
第13図FIG. 1 is an explanatory diagram of a CRT display screen for explaining a screen editing method in a conventional word processor, FIG. 2 is an explanatory diagram of a CRT display screen for explaining a screen editing method in a word processor according to the present invention, and FIG. The figure is an explanatory diagram of the CRT display screen after two blocks have been exchanged, FIGS. 4a and 4b are explanatory diagrams showing the display of the CRT display screen and the contents of the text buffer in that display state, and FIG. Registers for storing addresses on each first and last sentence buffer of two blocks to be swapped; FIGS. 6, 7, 8, 9, and 10 are blocks according to an embodiment of the present invention, respectively. FIG. 11 is an explanatory diagram showing the contents of text blocks when the blocks are replaced, FIG. 11 is an explanatory diagram showing the CRT display screen after block replacement is completed, and FIG. 12 is a circuit showing the text editing section of a word processor for implementing the present invention. 13a to 13d are flowcharts showing the operation of FIG. 12, respectively. 1...CRT display screen, 2...Cursor mark, 3...Text buffer, 5...Free space, 6U
......Top buffer, 6L...Bottom buffer, 7...Register, Xs...First position of x block, xE...Last position of X block, Ys...・
...First position of Y block, Y8...Last position of Y block. -Figure 1Figure 2Figure 3Figure 4Figure 5Figure 6Figure 7Figure 8Figure 9Figure 10Figure 11Figure N Ship Figure 13Figure 13
Claims (1)
イ装置の表示画面に表示させるとともに該表示画面に表
示させた情報の一部を相互に入れ替えて文章の編集を行
うワードプロセツサにおける画面編集方法において、表
示画面の各文字もしくは符号等の表示位置を示すカーソ
ルマークの位置を先頭番地とする空き領域によって上記
文章バツフアメモリを上部領域と下部領域に分割した後
、これら上部領域および下部領域の各最初と各最後の番
地を夫々レジスタに記憶し、相互に入れ替えるべき上記
表示画面の2つの領域に夫々対応する文章バツフアメモ
リの領域のうち上記空き領域に隣接する領域とは異なる
領域に記憶されているデータを上記レジスタに記憶させ
たその最初の番地から最後の番地まで順次上記空き領域
に転送した後、転送された上記データが記憶されていた
文章バツフアの領域に該領域と空き領域との間に記憶さ
れているデータをそのまゝ転送し、以下少くとも上記の
一連の操作を順次繰り返すことによって上記表示画面の
上で任意に指定された領域を相互に入れ替えることを特
徴とするワードプロセツサにおける画面編集方法。1 In a screen editing method for a word processor in which text is edited by displaying information stored in a text buffer memory on a display screen of a display device and mutually replacing part of the information displayed on the display screen, the display screen After dividing the above text buffer memory into an upper area and a lower area according to the empty area whose starting address is the position of the cursor mark indicating the display position of each character or code, etc., the first and last areas of these upper and lower areas are The address is stored in each register, and data stored in an area of the text buffer memory that is different from the area adjacent to the empty area among the areas of the text buffer memory corresponding to the two areas of the display screen that are to be exchanged is stored in the register. After sequentially transferring the stored data from the first address to the last address to the free area, the data is stored between the area and the free area in the text buffer area where the transferred data was stored. A method for editing a screen in a word processor, which comprises transmitting the text as it is, and then sequentially repeating at least the above series of operations to mutually replace arbitrarily designated areas on the display screen.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55105455A JPS605956B2 (en) | 1980-07-30 | 1980-07-30 | Screen editing method in read processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55105455A JPS605956B2 (en) | 1980-07-30 | 1980-07-30 | Screen editing method in read processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5730080A JPS5730080A (en) | 1982-02-18 |
| JPS605956B2 true JPS605956B2 (en) | 1985-02-14 |
Family
ID=14408054
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP55105455A Expired JPS605956B2 (en) | 1980-07-30 | 1980-07-30 | Screen editing method in read processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS605956B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61221793A (en) * | 1985-03-27 | 1986-10-02 | 富士通株式会社 | Exchange processing system for data on screen |
-
1980
- 1980-07-30 JP JP55105455A patent/JPS605956B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5730080A (en) | 1982-02-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR860001071B1 (en) | How to edit document | |
| US4905185A (en) | Apparatus for transferring block data in original form and editing the block data | |
| GB2273188A (en) | Information processing system using icons | |
| JPS6355098B2 (en) | ||
| US4717911A (en) | Technique for chaining lines of a document together to facilitate editing or proofreading | |
| JPH0541997B2 (en) | ||
| US5089990A (en) | Word processor with column layout function | |
| JPS605956B2 (en) | Screen editing method in read processor | |
| JPH0117184B2 (en) | ||
| JPS6365988B2 (en) | ||
| JP2723109B2 (en) | Image processing method | |
| TW490621B (en) | Picture and text editing method and system | |
| JPS59116785A (en) | Character/graphic information input display system | |
| JP3020213B2 (en) | Document processing device | |
| JP2599433Y2 (en) | Memory protection device for each memory board in a multiprocessor system | |
| JPH0750476B2 (en) | Data processing device | |
| JPH01189774A (en) | Document managing system | |
| JPH0734197B2 (en) | Information processing equipment | |
| JPH11149522A (en) | Handwritten character input device and computer-readable recording medium storing handwritten character input program | |
| JPH0666065B2 (en) | Document processor with furigana addition function | |
| JP2001043214A (en) | Automatic tabulating method | |
| JPH0488551A (en) | character processing device | |
| JPH02236661A (en) | Character processor | |
| JPS6132159A (en) | DMA control device | |
| JPH07325798A (en) | Document creation device |