JPH0143338B2 - - Google Patents

Info

Publication number
JPH0143338B2
JPH0143338B2 JP55135543A JP13554380A JPH0143338B2 JP H0143338 B2 JPH0143338 B2 JP H0143338B2 JP 55135543 A JP55135543 A JP 55135543A JP 13554380 A JP13554380 A JP 13554380A JP H0143338 B2 JPH0143338 B2 JP H0143338B2
Authority
JP
Japan
Prior art keywords
indent
cursor
block
data
key
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
Application number
JP55135543A
Other languages
Japanese (ja)
Other versions
JPS5760380A (en
Inventor
Katsumi Masaki
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 JP55135543A priority Critical patent/JPS5760380A/en
Priority to DE19813138734 priority patent/DE3138734A1/en
Publication of JPS5760380A publication Critical patent/JPS5760380A/en
Publication of JPH0143338B2 publication Critical patent/JPH0143338B2/ja
Priority to US07/988,032 priority patent/US5276792A/en
Granted legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 [技術分野] 本発明は文書を処理する文字処理装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a character processing device that processes documents.

[従来技術] 従来、例えば特開昭54−19618号公報、特公昭
55−9743号公報等において、表示画面上に、任意
の領域を設けて、その中でカーソルを移動させる
技術、領域内における行削除等の編集を行なう技
術は種々提案されていた。
[Prior art] Conventionally, for example, Japanese Patent Application Laid-open No. 19618/1983,
In Japanese Patent Publication No. 55-9743, various techniques have been proposed in which an arbitrary area is provided on a display screen and a cursor is moved within the area, and editing such as line deletion within the area is performed.

しかし領域情報そのものを文字情報と共に、可
視化表示する思想と文字データを所望の領域内に
入力、表示することができ、更に、領域データの
表示形態を変更することもできる技術は全く提案
されていなかつたという欠点があつた。
However, no technology has been proposed that allows the area information itself to be visually displayed together with text information, and the technology that allows text data to be input and displayed within a desired area, as well as the ability to change the display form of area data. There was a drawback.

[目的] 以上の点に鑑み、本発明の目的は、領域情報を
可視化表示でき、更に文字データを所望の領域内
に入力、表示することができ、更に、領域データ
の表示形態を変更することもできる文字処理装置
を提供することにある。
[Objective] In view of the above points, an object of the present invention is to make it possible to visually display area information, input and display character data in a desired area, and change the display form of area data. The object of the present invention is to provide a character processing device that can perform the following functions.

[実施例] 次に本発明による実施例を述べる前に本実施例
で用いられる用語の説明をまず行なう。
[Example] Before describing an example according to the present invention, terms used in this example will first be explained.

1 インデントコードInd CRT上に‘◇’のマークで表示される。文
字等をキーボードから入力するにあたつて、あ
らかじめこのインデントコードにより、枠組み
が作られる。
1 Indent code Ind Displayed as a '◇' mark on the CRT. When entering characters etc. from the keyboard, a framework is created in advance using this indentation code.

2 左マージンコードLMM CRT上に‘’のマークで表示される。キ
ーボードから入力可能な最左端を表示する。
2 Left margin code LMM Displayed as a '' mark on the CRT. Displays the leftmost possible input from the keyboard.

3 右マージンコードRMM CRT上に‘〓’のマークで表示されるキー
ボードから入力可能な最右端を表示する。
3 Right margin code RMM Displays the rightmost edge that can be entered from the keyboard, which is displayed as a '〓' mark on the CRT.

4 インデントブロツクInb インデントマーク、左マージンマーク、右マ
ージンマーク等で枠組みされた領域をさす。正
しくは、次のように定義される。
4 Indent Block Inb Refers to the area framed by indent marks, left margin marks, right margin marks, etc. Correctly, it is defined as follows.

左右方向:インデントマーク、左マージンマー
ク、右マージンマーク等で囲われる最も小さ
い領域 上下方向:マージン、インデントの設定位置が
同一である範囲。但し左右マージンでのみで
規定されるインデントブロツクに関しては文
字が記入されている行が連続して続く範囲と
する。(但しカーソルが存在している場合は
文字が記入されているものと同等と見なす) 第2図a,b,cはCRT上に表示されるイ
ンデントブロツクを示すものである。
Horizontal direction: The smallest area surrounded by indent marks, left margin marks, right margin marks, etc. Vertical direction: The range where the margin and indent settings are the same. However, for indent blocks defined only by the left and right margins, the range is defined as a continuous line in which characters are written. (However, if a cursor exists, it is considered to be equivalent to writing characters.) Figure 2 a, b, and c show indent blocks displayed on a CRT.

キーボードから入力された文字類はこのイン
デントブロツクInbという枠内で処理される。
このインデントブロツクInbは作表等のフオー
マツテイングされた文章を作成する上で重要な
役割をはたす。
Characters entered from the keyboard are processed within this indentation block Inb.
This indentation block Inb plays an important role in creating formatted texts such as tables.

本実施例においては、CRT上に表示された
カーソルCMが存在する位置以降に対して、イ
ンデントブロツクInbの各種処理を行うため、
前述した定義によるインデントブロツクInbの
内カーソルCMが存在する行以降に対してイン
デントブロツクInbという表現をしているとこ
ろがある。
In this embodiment, in order to perform various processing of indent block Inb after the position of the cursor CM displayed on the CRT,
In the indent block Inb defined above, the line after the cursor CM is sometimes expressed as an indent block Inb.

5 枠組コード インデントコードInd、左マージンコード
LMM、右マージンコードRMMの3種のコー
ドの総称。これらのコードは、枠組パターン
、〓、◇と対応ずけられる。(第3図a参照) 6 罫線コード 罫線部分パターンを図形文字としてコード化
したもの。第3図aで示す如く、11種の罫線パ
ターンが罫線コードと対応づけられている。
5 Frame code Indent code Ind, left margin code
A general term for three types of codes: LMM and right margin code RMM. These codes are mapped to the framework patterns, 〓, ◇. (See Figure 3a) 6 Ruled line code Coded line pattern as graphic characters. As shown in FIG. 3a, 11 types of ruled line patterns are associated with ruled line codes.

次に本発明による1実施例による概要を説明す
る。
Next, an overview of one embodiment of the present invention will be explained.

実施例に示す装置はキーボード、処理部表示装
置、プリンタから成る。
The device shown in the embodiment includes a keyboard, a processing section display device, and a printer.

すべての操作はキーボード上にある文字キーあ
るいはフアンクシヨンキーにより実行する。
All operations are performed using letter keys or function keys on the keyboard.

まずイニシヤライズキーによりすべての状態を
初期化し、本実施例の各機能が実行可能な状態と
なる。
First, all states are initialized by the initialize key, and each function of this embodiment becomes executable.

イニシヤライズキーを押すことにより、表示装
置上には、左右マージンマークLMM,RMMが
表示され、他はすべてクリアされる。カーソル
CMは、最上行の第2コラム目に位置し、キーボ
ードからの文字等の入力が可能となる。入力モー
ドである挿入とオーバーライトとの選択は、挿入
キーあるいはオーバーライトキーを用いることに
より行う。キーボードから入力された文字等は、
挿入モードあるいはオーバーライトモードに於い
て、表示装置上でカーソルCMが表示されている
位置に入力される。カーソルCMはキーボードか
らの文字等の入力に従つて、1つずつ歩進する。
誤入力を行つたとき、削除キーを用い削除するこ
とができ、その場合後続する文字列は1つずつ前
につめられる。削除しようとする文字はカーソル
CMで指定する。カーソルCMはカーソルキーに
より1つずつ歩進させることができる。入力が終
了した文字列はプリントキーを押下することによ
りプリンタに出力させることができる。以上説明
した入出力制御は公知の技術で容易に実現するこ
とができる。
By pressing the initialize key, left and right margin marks LMM and RMM are displayed on the display device, and all others are cleared. cursor
CM is located in the second column of the top row, and allows input of characters, etc. from the keyboard. The input mode, insert or overwrite, is selected by using the insert key or the overwrite key. Characters entered from the keyboard are
In insert mode or overwrite mode, an input is made at the position where the cursor CM is displayed on the display device. The cursor CM advances one by one in accordance with the input of characters, etc. from the keyboard.
If an incorrect entry is made, it can be deleted using the delete key, in which case the following string will be moved forward one by one. The cursor is the character you want to delete.
Specify in CM. The cursor CM can be advanced one by one using the cursor keys. The inputted character string can be output to the printer by pressing the print key. The input/output control described above can be easily realized using known techniques.

以下本発明における機能についてその操作方法
を述べる。
The operating methods for the functions of the present invention will be described below.

まずインデントブロツクInbを形成する方法に
ついて述べる。インデントブロツクInbは、イン
デントキーを用い表示装置上にインデントマーク
Indをオーバーライト又は挿入することにより形
造ることができる。一度インデントブロツクが出
来上つた後は、キーボードから入力された文字等
の情報は、すべてこのインデントブロツクInb内
で処理されることになる。これにより、作表等の
フオーマツテイングされた文章の作成は、容易に
行えるようになる。又このインデントブロツク
Inbは横方向に自由に拡大、縮小ができる。この
様子を第4図a,b,cを用い説明する。
First, a method for forming the indent block Inb will be described. Indent block Inb is an indent mark on the display device using the indent key.
Can be shaped by overwriting or inserting Ind. Once the indent block is created, all information such as characters input from the keyboard will be processed within this indent block Inb. This makes it easier to create formatted texts such as tables. Also, this indent block
Inb can be freely expanded and contracted horizontally. This situation will be explained using FIGS. 4a, b, and c.

第4図aのように、インデントブロツク内に複
数個の文字が既に入力されていたとする。カーソ
ルキーを用いカーソルCMを第1行目第8桁目の
位置、既ち‘B'の位置に移動した上でインデン
ト右移動キーを押下すると、カーソルCMが存在
したインデントブロツクは、横方向に縮小され、
その分縦方向に拡大され、第4図bのようにな
る。次に第4図bのようにカーソルCMをインデ
ントマークIndの位置におきインデント右移動キ
ーを押下すると、カーソルCMの位置より左側に
数えて2番目のインデントブロツクInbが拡大し
第4図cのようになる。
Assume that a plurality of characters have already been input in the indent block as shown in FIG. 4a. If you use the cursor keys to move the cursor CM to the position of the 8th column of the 1st line, which is already 'B', and then press the indent right movement key, the indent block where the cursor CM was located will be moved horizontally. reduced,
It is enlarged in the vertical direction by that amount, and becomes as shown in FIG. 4b. Next, as shown in Figure 4b, place the cursor CM at the position of the indent mark Ind and press the indent right movement key.The second indent block Inb counted to the left of the cursor CM position will be enlarged, as shown in Figure 4c. It becomes like this.

即ち第4図aにおいてインデント右移動キーを
1回押下すると、第4図bのようになり、第4図
aにおいてインデント右移動キーを2回押下する
と第4図cのようになる。
That is, if the indent right key is pressed once in FIG. 4a, the result will be as shown in FIG. 4b, and if the indent right key is pressed twice in FIG. 4a, the result will be as shown in FIG. 4c.

インデント左移動キーを用いて、インデントマ
ークIndの移動を行つた時も以上の説明と類似の
動作を行う。
When the indent left movement key is used to move the indent mark Ind, an operation similar to that described above is performed.

次にインデントブロツクInb内に文字等の入力
を行つた時について第5図a,b,cを用い説明
する。第5図aのように、インデントブロツク
Inb内に文字等が入力され、カーソルCMがイン
デントブロツクInbの最後に位置していたとする。
第5図aにおいて文字‘L'をオーバーライトモー
ドで入力したとすると、第5図bのようになる。
即ちインデントブロツクは縦方向(矢印A)に自
動的に拡大され、次に入力される文字等に対する
格納エリアの準備を行う。第5図bでさらに‘
MNOP'と入力を続行すると第5図cのようにさ
らに同じ拡大を続ける。
Next, inputting characters, etc. into the indent block Inb will be explained using FIGS. 5a, b, and c. As shown in Figure 5a, the indent block
Suppose that a character etc. is input into Inb and the cursor CM is positioned at the end of the indent block Inb.
If the character 'L' is input in the overwrite mode in Fig. 5a, the result will be as shown in Fig. 5b.
That is, the indent block is automatically expanded in the vertical direction (arrow A) to prepare a storage area for the next input character, etc. Further in Figure 5b
If you continue to input MNOP', the same expansion will continue as shown in Figure 5c.

第5図bで、さらにインデントブロツクを拡大
しようとすると、下方に隣接するインデントブロ
ツクInbを1行ずつ下方にずらさねばならなくな
る。第5図cがその例である。
In FIG. 5b, if an attempt is made to further enlarge the indent block, the downwardly adjacent indent block Inb must be shifted downward one line at a time. An example is shown in FIG. 5c.

次にインデントブロツク内の文字の削除方法に
ついて説明する。第6図aのようにインデントブ
ロツクInb内に文字が入力され、カーソルCMが
‘W'の下に位置していたとする。削除キーを押
下することにより、以下に続く文字は1つずつ前
につまる。その結果今まで‘Y'という文字が存
在していた行はスペースコード、左マージンコー
ド、右マージンコード、インデントコードのみか
ら成る行となつてしまう。本実施例においては該
行Lを自動的に削除し、以下に続く行をすべて1
行ずつ繰り上げるものとする。
Next, a method for deleting characters within an indent block will be explained. Assume that a character is input into the indent block Inb as shown in FIG. 6a, and the cursor CM is positioned below 'W'. By pressing the delete key, the following characters are moved forward one by one. As a result, the line where the character 'Y' used to exist now becomes a line consisting only of a space code, left margin code, right margin code, and indent code. In this embodiment, the line L is automatically deleted, and all subsequent lines are set to 1.
shall be incremented line by line.

次にインデントマークIndを削除する方法につ
いて述べる。
Next, we will discuss how to delete the indent mark Ind.

一つは削除キーを用いる方法であり、インデン
トマークはスペースコードに置きかわる。
One method is to use the delete key, and the indent mark is replaced with a space code.

次にインデントマークと罫線パターンとの切換
機能について説明する。今第3図bのようにイン
デントブロツクInbが形成されているとする。こ
こでインデント罫線変換キーを押下すると、第3
図cの如く、変換される。又第3図cにおいて罫
線インデント変換キーを押下すると第3図bの如
く変換される。こようにしてインデントマーク
Indと罫線パターンRPMとの相互変換が可能とな
る。この機能を用いることにより、インデントマ
ークIndで枠組みされた領域に文章を入力し、然
る後罫線パターンに変更するならば、極めて容易
に罫線パターンKPMを有する文章を作成するこ
とができる。これは、作表する上で非常に便利で
ある。
Next, the function of switching between indent marks and ruled line patterns will be explained. Assume that an indent block Inb is now formed as shown in FIG. 3b. If you press the indent ruled line conversion key here, the third
It is converted as shown in Figure c. If the ruled line indent conversion key is pressed in FIG. 3c, the line will be converted as shown in FIG. 3b. Indent mark like this
Mutual conversion between Ind and ruled line pattern RPM becomes possible. By using this function, it is possible to extremely easily create a text having the ruled line pattern KPM by inputting the text into the area framed by the indent mark Ind and then changing it to the ruled line pattern. This is very convenient for tabulation.

第3図dに具体的にインデントパターンを罫線
パターンに変更する時の対応テーブルを示す。な
お本実施例においては、文字の入力、インデント
の移動削除、キヤリツジリターンキー入力等の機
能を実行させるにあたつて、カーソルがインデン
トブロツク単位でキヤリツジリターンコードが存
在する行の右側に位置させることはないものとす
る。
FIG. 3d specifically shows a correspondence table when changing an indentation pattern to a ruled line pattern. In this embodiment, when performing functions such as inputting characters, moving and deleting indentation, and inputting the carriage return key, the cursor is positioned to the right of the line where the carriage return code exists in indent block units. shall not be allowed to do so.

以上入力編集を行つた文書は、プリントキーを
押すことによりプリンタに出力される。
The document that has been input and edited above is output to the printer by pressing the print key.

第1図は、本発明による文字処理装置の一実施
例を示すブロツク図である。以下各構成要素を説
明する。KBは文章入力用キー(例えばJIS鍵盤
に配列されているキー群)及び本装置にそなわる
種々機能を実現するためのフアンクシヨンキー群
より成るキーボードである。上記フアンクシヨン
キー群は下記のフアンクシヨンキー即ち、インデ
ントを設定するためのインデントキー、インデン
トを右方向に移動するためのインデント右移動キ
ー、インデントを左方向に移動するためのインデ
ント左移動キー、これから入力する文字の挿入、
削除、オーバーライトを指示するための挿入キ
ー、削除キー、オーバーライトキー、CRT上の
カーソルを移動するためのカーソルキー、仕事の
開始を指示するイニシヤライズキー、改行を指示
するキヤリツジリターンキー、インデントマーク
を罫線マークに変換するインデント罫線変換キ
ー、罫線マークをインデントマークに変換する罫
線インデント変換キー及びプリントを指示するプ
リントキーから成る。キーボードKBはエンコー
ダ機能を有し、後述する処理部CPUにより打鍵
されたキーの情報が読み取られる。
FIG. 1 is a block diagram showing an embodiment of a character processing device according to the present invention. Each component will be explained below. The KB is a keyboard consisting of text input keys (for example, keys arranged on a JIS keyboard) and function keys for realizing various functions of this device. The above function keys include the following function keys: an indent key for setting an indent, an indent right movement key for moving an indent to the right, an indent left movement key for moving an indent to the left, Insert the character you are about to enter,
Insert key, Delete key, Overwrite key for instructing deletion and overwriting, Cursor key for moving the cursor on CRT, Initialize key for instructing start of work, Carriage return key for instructing line feed , an indent and ruled line conversion key that converts an indent mark to a ruled line mark, a ruled line indent conversion key that converts a ruled line mark to an indented mark, and a print key that instructs printing. The keyboard KB has an encoder function, and the information of the pressed keys is read by the processing unit CPU, which will be described later.

CRはカーソルレジスタである。後述する処理
部CPUにより、カーソルレジスタCRの内容を読
み、書きすることができる。後述するCRTコン
トローラCRTCはここに蓄えられたアドレスに対
応する表示装置CRT上の位置にカーソルを表示
する機能を有する。カーソルレジスタCRに蓄え
られる情報は1〜128までのシリアルナンバーと
し、CRTコントローラCRTCは、このシリアル
ナンバーを行数、桁ナンバーに変更し、表示する
ことになる。
CR is the cursor register. The processing unit CPU, which will be described later, can read and write the contents of the cursor register CR. The CRT controller CRTC, which will be described later, has a function of displaying a cursor at a position on the display device CRT corresponding to the address stored here. The information stored in the cursor register CR is a serial number from 1 to 128, and the CRT controller CRTC changes this serial number to the number of lines and digits and displays them.

WBはワークバツフアで、インデントブロツク
Inb内の情報を一時的に蓄えるためのバツフアで
あり、バツフアのヘツダ部には7Wのパラメータ
が配置される。容量は16×9W+αの大きさとす
る。後述の処理部CPUにより自由に読み、書き
できる。
WB is work buffer, indent block
This is a buffer for temporarily storing information in Inb, and a 7W parameter is placed in the header of the buffer. The capacity is 16×9W+α. It can be read and written freely by the processing unit CPU described later.

DBuFはデータバツフアで、キーボードKBよ
り入力された文章情報を蓄えるためのメモリであ
り、後述するCRTコントローラCRTCによつて
ここに蓄えられた情報が表示装置CRT上に表示
される。表示装置CRT用のリフレツシユメモリ
として使用される。CPUにより自由に読み書き
できるものとする。データバツフアDBuFは16×
9Wの容量を有し、そのうち前半の16×8Wのみが
表示装置CRT上に表示されるものとする。
DBuF is a data buffer, which is a memory for storing text information input from the keyboard KB, and the information stored here is displayed on the display device CRT by the CRT controller CRTC, which will be described later. Used as refresh memory for CRT display devices. It can be read and written freely by the CPU. Data buffer DBuF is 16×
It has a capacity of 9W, of which only the first half of 16×8W is displayed on the display device CRT.

CRTCはCRTコントローラでデータバツフア
DBuFに蓄えられた情報に従つて文字等を表示装
置CRTに表示し、カーソルレジスタCRに蓄えら
れた情報に従つて表示装置CRT上にカーソルを
表示するコントロールを行う。
CRTC is a data buffer using a CRT controller.
Control is performed to display characters, etc. on the display device CRT according to the information stored in the DBuF, and to display a cursor on the display device CRT according to the information stored in the cursor register CR.

文字等の表示は横16文字、縦8行の表示とし、
データバツフアDBuFの内容と順に対応づけられ
ているものとする。
The display of characters, etc. is 16 characters horizontally and 8 lines vertically.
It is assumed that they are correlated in order with the contents of the data buffer DBuF.

文字等の表示にあたつては、後述するキヤラク
タジエネレータCGを参照し、文字コードを文字
パターンに変更することを行う。具体的方法は公
知である。
When displaying characters, etc., character codes are changed into character patterns with reference to a character generator CG, which will be described later. Specific methods are publicly known.

CRTは表示装置であり、CRTコントローラ
CRTCにより文字とカーソルを表示できる。
CRT is a display device, CRT controller
Characters and cursor can be displayed by CRTC.

CGはキヤラクタジエネレータであり、表示装
置CRTへの文字表示やプリンタPRTへの文字出
力のために使用される。CRTコントローラ
CRTC、及び後述するプリンタコントローラ
PRTCにより用いられる。
CG is a character generator and is used to display characters on a display device CRT and output characters to a printer PRT. CRT controller
CRTC and printer controller (described later)
Used by PRTC.

PRTCはプリンタコントローラであり、後述す
る処理部CPUからの文字コード情報をキヤラク
タジエネレータCGを参照することによりパター
ンに直し、該パターンをプリンタPRTに出力す
る。
PRTC is a printer controller, converts character code information from a processing unit CPU (described later) into a pattern by referring to a character generator CG, and outputs the pattern to the printer PRT.

プリンタコントローラPRTCは、罫線コードを
罫線パターンに変換し出力する。好ましくはパタ
ーン出力にあたつて行間、文字間をも連続する直
線でうめる機能を有していた方がなお一層望まし
い。
The printer controller PRTC converts the ruled line code into a ruled line pattern and outputs it. It is even more desirable to have a function of filling the line spacing and character spacing with continuous straight lines when outputting a pattern.

PRTはプリンタであり、プリンタコントロー
ラPRTCからの情報に従つて文字等をプリントア
ウトする。
PRT is a printer that prints out characters, etc. according to information from the printer controller PRTC.

CPUはマイクロプロセツサであり、演算、論
理判断等を行う。後述する。AB,CB,DBをコ
ントロールする。
The CPU is a microprocessor that performs calculations, logical judgments, etc. This will be explained later. Control AB, CB, DB.

ABはアドレスバスで制御対象を指示する信号
を転送する。
AB transfers signals indicating the control target using the address bus.

CBはコントロールバスで各種制御対象に制御
信号を印加するものである。
CB is a control bus that applies control signals to various control targets.

DBはデータバスで各種データを転送する。 DB transfers various data using a data bus.

ROMは制御メモリで、第7図以降に示す制御
手順等を記憶するものである。
The ROM is a control memory that stores control procedures and the like shown in FIG. 7 and subsequent figures.

RAMはランダムアクセスメモリで、各種デー
タの例えばキヤリツジリターンフラツグCRFG、
オーバライトフラツグOWFG、新データ行数レ
ジスタNDLカーソルセーブレジスタCSR一時記
憶に用いられる。
RAM is a random access memory that stores various data such as the carriage return flag CRFG,
Overwrite flag OWFG, new data line count register NDL cursor save register CSR Used for temporary storage.

次に本実施例の動作説明を行う。 Next, the operation of this embodiment will be explained.

本実施例は、電源投入時に自動的にキーボード
処理が動作するように構成されているものとす
る。以下各処理につき具体的に第8図以降のフロ
ーチヤートを参照し、説明を行う。
This embodiment assumes that the keyboard processing is configured to operate automatically when the power is turned on. Each process will be specifically explained below with reference to the flowcharts from FIG. 8 onwards.

まずキーボードKB上のキーが操作されると以
下の順序に従つて操作キーが判別され、それぞれ
のキーに対する処理が行なわれ、キー待ちの状態
となる。
First, when a key on the keyboard KB is operated, the operating key is determined according to the following order, processing is performed for each key, and the system enters a key wait state.

ステツプKB1でキーボードKBから入力があつ
たかを判別する。入力がなければ、キー待ちにも
どり、入力があればステツプKB2に移りキーボ
ードKBからのデータを取り込む。ステツプKB3
で、取り込んだデータがキヤリツジリターンキー
か否かを判別する。YESであれば、キヤリツジ
リターン入力処理を行ない、ステツプKB5でフ
ラツグCRFGを1にセツトし、キー待ちにもど
る。一方ステツプKB3でNOであれば、ステツプ
KB6でフラツグCRFGを0にリセツトし次のキー
判別ステツプに移る。ここでステツプKB4のキ
ヤリツジリターンキー入力処理についてさらに述
べる。
In step KB1, determine whether there is an input from the keyboard KB. If there is no input, the process returns to waiting for a key, and if there is input, the program moves to step KB2 and takes in the data from the keyboard KB. Step KB3
Then, it is determined whether the imported data is a carriage return key. If YES, perform carriage return input processing, set flag CRFG to 1 at step KB5, and return to key wait. On the other hand, if step KB3 is NO, step
Use KB6 to reset the flag CRFG to 0 and move on to the next key determination step. Here, the carriage return key input process in step KB4 will be further described.

第8図はキヤリツジリターンキー入力処理につ
いての詳細を示す図である。かかる処理を行なう
ことで、即ち、この実施例に於いてキヤリツジリ
ターンキーを連続操作することにより、枠組みを
拡大させることができる。かかる処理の各ステツ
プの処理を以下に示す。
FIG. 8 is a diagram showing details of the carriage return key input process. By performing such processing, that is, by continuously operating the carriage return key in this embodiment, the framework can be expanded. The processing of each step of such processing is shown below.

ステツプ4.1 CRFGセツトされているか ステツプ4.2 現カーソル位置はインデントマー
クのすぐ右隣か? ステツプ4.3 現カーソル位置のすぐ左隣のイン
デントマークをスペースコードに変更する。
Step 4.1 Is CRFG set? Step 4.2 Is the current cursor position immediately to the right of the indent mark? Step 4.3 Change the indent mark immediately to the left of the current cursor position to a space code.

ステツプ4.4 カーソルを現カーソル位置より左
に存在しかつ最も近いインデントマークあるい
は左マージンマークの直ぐ右隣の位置に移動さ
せるため、カーソルレジスタに該当番号を記入
する。
Step 4.4 Write the corresponding number in the cursor register to move the cursor to the position immediately to the right of the nearest indent mark or left margin mark to the left of the current cursor position.

ステツプ4.5 文字キー入力処理16 上述の如く本発明に於いてはキヤリツジリター
ンキーにより枠組の変更を行なうようにしている
が、他のキーにその機能をもたせるようにしても
良い。
Step 4.5 Character Key Input Processing 16 As described above, in the present invention, the framework is changed using the carriage return key, but other keys may have this function.

ここで再び第7図のキーボード処理の説明に移
る。
Now, we will turn to the explanation of the keyboard processing shown in FIG. 7 again.

ステツプKB6でフラツグCRFGをリセツトした
後、ステツプKB7に移り、インデントキーが操
作されたかを判別する。YESであれば、ステツ
プKB8のインデントキー入力処理を行なう。即
ちインデントマークを現カーソルが存在する位置
に書き込む。かかる処理が終了すれば、キー待ち
にもどる。ステツプKB7でNOであれば、ステツ
プKB9に移り、オーバライトキーが操作された
かを判別する。キー操作があれば、ステツプ
KB10でオーバライトフラツグOWFGを1にセツ
トし、キー待ちにもどる。もしNOであれば、ス
テツプKB11に移り、挿入キーが操作されたかを
判別する。
After the flag CRFG is reset in step KB6, the process moves to step KB7, where it is determined whether the indent key has been operated. If YES, perform indent key input processing in step KB8. That is, an indent mark is written at the position where the current cursor is. When this processing is completed, the process returns to waiting for a key. If NO in step KB7, the process moves to step KB9, and it is determined whether the overwrite key has been operated. If there is a key operation, the step
Set the overwrite flag OWFG to 1 in KB10 and return to waiting for the key. If NO, the process moves to step KB11 and it is determined whether the insert key has been operated.

YESであれば、挿入キー入力処理を行なう。
即ち、オーバライトフラツグOWFをリセツトし、
キー待ちに移る。
If YES, insert key input processing is performed.
That is, reset the overwrite flag OWF,
Waiting for the key.

NOであれば、ステツプKB13に移り、カーソ
ルキーが操作されたかを判別する。YESであれ
ば、ステツプKB14に移り、カーソルをCRT画面
上順次歩進させる。なおカーソルが最終行最終桁
に来た時、左上の位置に再び戻す。かかる処理は
以下のステツプで行なう。
If NO, the process moves to step KB13, and it is determined whether the cursor key has been operated. If YES, the process moves to step KB14 and the cursor is sequentially advanced on the CRT screen. When the cursor reaches the last column of the last line, return it to the upper left position. Such processing is performed in the following steps.

14.1 カーソルレジスタCRインクリメント 14.2 カーソルレジスタCRの値は128を越える
か? 14.3 カーソルレジスタCRの値を1にする かかる処理が終れば、キー待ちにもどる。もし
NOであれば、ステツプKB15に移る。かかるス
テツプで文字キーが操作されたかを判別し、
YESであれば、ステツプKB16に移り以下の制御
を行なう。
14.1 Cursor register CR increment 14.2 Does the value of cursor register CR exceed 128? 14.3 Set the value of cursor register CR to 1 When this process is completed, the program returns to waiting for a key. if
If NO, move to step KB15. Determine whether a character key has been operated in such a step,
If YES, the process moves to step KB16 and the following control is performed.

16.1 現カーソルの位置にインデントマーク、左
右マージンマークは存在するか? 16.2 インデントブロツクSAVE処理 16.3 オーバーライトモードか? (オーバーライトフラツグ参照) 16.4 オーバーライト処理 16.5 挿入処理 16.6 インデントブロツクRESTORE処理 上述の各ステツプは以下の内容を行なつてい
る。
16.1 Are there indent marks and left and right margin marks at the current cursor position? 16.2 Indent block SAVE processing 16.3 Overwrite mode? (See overwrite flag) 16.4 Overwrite processing 16.5 Insertion processing 16.6 Indent block RESTORE processing Each of the above steps performs the following contents.

16.1 文字キー入力処理はカーソルがインデント
ブロツク内に存在している時のみ有効とする。
即ち、インデントマーク及び左右マージンマー
クの位置にカーソルがある時は本処理は無処理
とする。
16.1 Character key input processing is valid only when the cursor is within the indent block.
That is, when the cursor is located at the position of the indent mark and left and right margin marks, this process is not performed.

16.2 入力処理はすべてワークバツフアWB内で
行うためカーソルが存在するインデントブロツ
ク内情報をすべてワークバツフアWB内に移
す。(但し処理はすべてカーソルが存在する行
より後とする。又その際ワークバツフアWBの
HEADER部に各種パラメータを設定してお
く。
16.2 All input processing is performed within the work buffer WB, so all information in the indent block where the cursor is located is moved to the work buffer WB. (However, all processing must be done after the line where the cursor is. Also, in this case, the work buffer WB
Set various parameters in the HEADER section.

16.3〜16.4 オーバライトモードであるならワー
クバツフアWB内でオーバーライト処理を行
う。
16.3 to 16.4 If it is in overwrite mode, perform overwrite processing in the work buffer WB.

16.5 挿入モードであるならワークバツフアWB
内で挿入処理を行う。
16.5 Work buffer WB if in insert mode
Perform the insertion process within.

16.6 文字入力処理を終了したワークバツフア
WB内の情報をもとのインデントブロツクにも
どす。
16.6 Work buffer that has finished character input processing
Returns the information in the WB to the original indentation block.

上述の処理をさらに説明する。 The above processing will be further explained.

第13図bは文字のオーバーライトの例であ
る。16.0で示す図をデータバツフアDBuF内の初
期状態とする。ここでは紙面の都合で横8桁、縦
4行のデータバツフアDBuFが表示装置CRTに
表示されている様子を示している。16.2のステツ
プを実行したのが16.2で示すデータバツフア
DBuFとワークバツフアWBの様子である。デー
タバツフアDBuF内のデータは、ワークバツフア
WBに移されている。次にステツプ16.4によるオ
ーバーライト処理により、ワークバツフアWB内
でのオーバーライト処理が行なわれる。16.2と
16.3で示すワークバツフアWB内の違いは文字C
の後ろに文字Dが加わつたことワークバツフア
WBの第1W(DATA LENGTH)がインクリメ
ントされたこと、ワークバツフアWBの第4W(カ
ーソルアドレス)がインクリメントされたことで
ある。ステツプ16.4ではワークバツフアWBに蓄
えられた情報が欠落なく該当インデントブロツク
にすべてもどせるか否かを判断する。この場合
16.0で示すインデントブロツクの容量が
2characterでありワークバツフアWBに蓄えられ
ている情報量はカーソルが移動したために
3characterに増加している。そのためインデント
ブロツクを縦方向に拡大し、ワークバツフアWB
内の情報がすべて格納できるようにしたのが16.4
で示すデータバツフアDBuFの様子である。ステ
ツプ16.6では、拡大されたインデントブロツクに
オーバーライト処理後のワークバツフアWBの情
報をすべてもどすことを行う。16.6で示す図がそ
の様子を示している。
FIG. 13b is an example of character overwriting. Let the diagram shown in 16.0 be the initial state in the data buffer DBuF. Here, due to space constraints, a data buffer DBuF of 8 horizontal columns and 4 vertical lines is shown displayed on the display device CRT. The steps in 16.2 were executed on the data buffer shown in 16.2.
This is a picture of DBuF and Work Buffer WB. The data in the data buffer DBuF is stored in the work buffer
It has been moved to WB. Next, the overwrite process in step 16.4 is performed in the work buffer WB. 16.2 and
The difference in the work buffer WB shown in 16.3 is the letter C.
The addition of the letter D after the work
The first W (DATA LENGTH) of the WB has been incremented, and the fourth W (cursor address) of the work buffer WB has been incremented. In step 16.4, it is determined whether all of the information stored in the work buffer WB can be returned to the corresponding indent block without any omissions. in this case
The capacity of the indent block shown in 16.0 is
2character and the amount of information stored in the work buffer WB is due to the movement of the cursor.
It has been increased to 3character. Therefore, the indent block is expanded vertically and the work buffer WB
16.4 was able to store all the information in
The data buffer DBuF is shown in . In step 16.6, all information of the work buffer WB after overwriting processing is returned to the expanded indent block. The diagram shown in 16.6 shows this situation.

上述の処理に於いてステツプ16.2のインデント
ブロツクセーブ処理について第14図aを用いて
さらに説明する。かかるステツプは以下の事を行
なう。
In the above process, the indent block save process in step 16.2 will be further explained using FIG. 14a. Such steps do the following:

16.2.1 ワークバツフアWBのデータ格納エリア
をすべてスペースコードでうめる。
16.2.1 Fill all data storage areas of the work buffer WB with space codes.

16.2.2 カーソルが存在するインデントブロツク
内のカーソルが存在する行以降のデータバツフ
アDBuFの内容を、ワークバツフアWBに移
す。(但し、キヤリツジリターンコードに続く
スペースコードは除く) 16.2.3 該インデントブロツクをすべてスペース
コードで埋める。
16.2.2 Move the contents of the data buffer DBuF after the line where the cursor exists in the indented block where the cursor exists to the work buffer WB. (However, the space code following the carriage return code is excluded.) 16.2.3 Fill all of the indented blocks with space codes.

16.2.4 ワークバツフアWBのHEADER部に下記
のパラメータを記入する。
16.2.4 Enter the following parameters in the HEADER section of the work buffer WB.

1 ワークバツフアWBに書き込んだデータの
長さ。
1 Length of data written to the work buffer WB.

但しカーソルが存在する位置までは必ず含
めるものとする。
However, it must be included up to the position where the cursor is located.

2 該インデントの横巾 3 該インデントの縦巾(インデントブロツク
の行数) 4 カーソルレジスタに対応するワークバツフ
ア内のアドレス 5 該インデントブロツクの先頭のデータバツ
フアDB上での桁ナンバー 6 該インデントブロツクの先頭のデータバツ
フアDB上での行ナンバー 7 データ行数(縦巾から最後に連続して続く
スペース行数を除く) 上述の各ステツプは以下の目的を有する。
2 Width of the indent 3 Width of the indent (number of lines in the indent block) 4 Address in the work buffer corresponding to the cursor register 5 Column number on the data buffer DB at the beginning of the indent block 6 Column number at the beginning of the indent block Line number on the data buffer DB 7 Number of data lines (excluding the number of consecutive space lines at the end from the width) Each of the above steps has the following purpose.

16.2.1 ワークバツフアWBをスペースコードで
イニシヤライズする。
16.2.1 Initialize the work buffer WB with a space code.

16.2.2 インデントブロツク内の情報をワークバ
ツフアWBに移す。
16.2.2 Move the information in the indent block to the work buffer WB.

16.2.3 移し終わつた後のインデントブロツクは
すべてスペースコードで埋める。
16.2.3 Fill all indented blocks with space codes after the transfer is complete.

16.2.4 該インデントブロツクの特徴をすべてワ
ークバツフアWBのHEADER部に記入してお
く。このHEADER部のパラメータは各種処理
においてワークバツフアWBの内容に変更を加
えた時に、同時に変更され又、ワークバツフア
WBの内容をデータバツフアDBuFに戻す時に
役立つものである。
16.2.4 Write down all the characteristics of the indent block in the HEADER section of the work buffer WB. The parameters of this HEADER section are changed at the same time when the contents of the work buffer WB are changed in various processes.
This is useful when returning the contents of WB to the data buffer DBuF.

第14図bは、本処理における例を示すもので
ある。16.2.4においてワークバツフアにセーブす
るパラメータは次の通り。
FIG. 14b shows an example of this process. The parameters to be saved in the work buffer in 16.2.4 are as follows.

第1W データの長さ ワークバツフアに書き込んだデータの長さ。
担し、キヤリツジリターンコードに続くスペー
スコードは除く。又該インデントブロツクの最
後に続く、スペースコードも除く。又カーソル
が存在している位置は例えそこにスペースコー
ドが存在していても、スペースコード以外のコ
ードがそこに存在していると見なすものとす
る。
1st W data length Length of data written to the work buffer.
The space code following the carriage return code is excluded. Also exclude the space code following the end of the indented block. Furthermore, even if a space code exists at the position where the cursor is located, it is assumed that a code other than the space code exists there.

第2W 横巾 該インデントブロツクの横巾 第3W 縦巾 該インデントブロツクの縦巾 第4W カーソル 現カーソルが示すDATAがワークバツフア
WBに格納されている位置を示す。最小値1に
あり最大値が第1Wと同じ値となる。
2nd W Width Width of the indented block 3rd W Height 4th W of the vertical width of the indented block Cursor The data indicated by the current cursor is in the work buffer.
Indicates the location stored in WB. The minimum value is 1, and the maximum value is the same as the 1st W.

第5W 該インデントブロツクの先頭桁。5th W First digit of the indent block.

該インデントブロツクが存在するデータバツ
フアDBuF上の位置を規定する。該インデント
ブロツクの先頭文字がデータバツフアDBuFの
何桁目に存在しているかを示す。
Defines the position on the data buffer DBuF where the indented block exists. Indicates the position of the first character of the indented block in the data buffer DBuF.

第6W 該インデントブロツクの先頭行 該インデントブロツクが存在するデータバツ
フアDBuF上の位置を規定する。該インデント
ブロツクの先頭文字がデータバツフアDBuFの
何行目に存在しているかを示す。
6th W First line of the indented block Defines the position on the data buffer DBuF where the indented block exists. Indicates in which line of the data buffer DBuF the first character of the indented block exists.

第7W データ行 インデントブロツク内で、最後に連続して続
くスペース行を除いた縦巾。但しカーソルが存
在している位置に、スペースコードが存在して
いても該位置は文字コードが存在していると同
等と見なす。最小値は1、最大値は第3Wと同
じ値となる。
7th W data line Width within the indented block, excluding the last consecutive space line. However, even if a space code exists at the position where the cursor is located, the position is considered to be equivalent to the presence of a character code. The minimum value is 1 and the maximum value is the same value as the 3rd W.

またステツプ16.4のオーバライト処理の制御手
順を以下に示す。
The control procedure for the overwrite process in step 16.4 is shown below.

16.4.1 ワークバツフアWB第4W(カーソル)の
示すワークバツフアWB内DATA位置にオーバ
ーライトすべきDATAをオーバーライトし、
ワークバツフアWBの第4W(カーソル)の値を
更新する。
16.4.1 Overwrite the DATA to be overwritten at the DATA position in the work buffer WB indicated by the 4th W (cursor) of the work buffer WB,
Update the value of the 4th W (cursor) of the work buffer WB.

16.4.2 ワークバツフアWB第4W(カーソル)の
値は、ワークバツフアWBの第1W(DATA
LENGTH)より大きいか? 16.4.3 ワークバツフアWBの第1W(DATA
LENGTH)の値をワークバツフアWBの第4W
(カーソル)の値に置き換える。
16.4.2 The value of the work buffer WB 4th W (cursor) is the value of the work buffer WB 1st W (DATA
Is it larger than LENGTH? 16.4.3 Work buffer WB 1st W (DATA
4th W of work buffer WB
Replace with the value of (cursor).

上述の各ステツプをさらに説明する。 Each of the above steps will be further explained.

16.4.1 ワークバツフアWBの該当位置にデータ
を書き込む。又カーソルを進ませるためにワー
クバツフアWBの第4Wの値を更新する。
16.4.1 Write data to the corresponding position in the work buffer WB. Also, in order to advance the cursor, the value of the 4th W of the work buffer WB is updated.

16.4.2〜16.4.3 カーソルの位置がワークバツフ
アWBの第1Wのデータレングスより大きい場
合には、カーソルの値即ちワークバツフアWB
の第4Wの値をワークバツフアWBの第1Wに移
す。即ちカーソルの位置のスペースもデータに
含めてデータレングスを決定するものとする。
16.4.2 to 16.4.3 If the cursor position is larger than the data length of the 1st W of the work buffer WB, the cursor value, that is, the work buffer WB
Transfer the value of the 4th W to the 1st W of the work buffer WB. That is, the data length is determined by including the space at the cursor position in the data.

前述のステツプ16.5についてさらに説明する。 Step 16.5 above will be further explained.

かかるステツプはワークバツフアWBの第4W
(カーソル)の示すワークバツフアWB内のデー
タ位置に挿入すべきデータを挿入し、ワークバツ
フアの第1W(DATA LENGTH)、第4W(カーソ
ル)の値を更新(+1)する。
This step is the 4th W of work buffer WB.
Insert the data to be inserted into the data position in the work buffer WB indicated by (cursor), and update (+1) the values of the 1st W (DATA LENGTH) and 4th W (cursor) of the work buffer.

かかるステツプによりワークバツフアWB内で
挿入処理を行ない、ワークバツフアWBの第1W
(DATA LENGTH)と第4W(カーソル)との値
をインクリメントする。
Through these steps, the insertion process is performed in the work buffer WB, and the first W of the work buffer WB is
Increment the values of (DATA LENGTH) and the 4th W (cursor).

次に第13図aに示すインデントブロツク再記
憶処理16.6をさらに説明する。第17図はそれを
示す図である。
Next, the indent block restoring process 16.6 shown in FIG. 13a will be further explained. FIG. 17 is a diagram showing this.

16.6.1 横巾をワークバツフアWBの第2Wの値と
した時のワークバツフアWBの第1Wで指定さ
れたDATA量のDATAを格納するのに必要な
行数を求め、それを新DATA行数とする。途
中CRコードが存在した時は改行による行数増
加を考慮しなければならない。
16.6.1 When the width is set as the value of the 2nd W of the work buffer WB, find the number of rows required to store the amount of DATA specified in the 1st W of the work buffer WB, and use it as the new number of DATA rows. . If there is a CR code in the middle, you must consider the increase in the number of lines due to line breaks.

16.6.2 新DATA行数はワークバツフアWB第3W
(縦巾)より大きいか? 16.6.3 インデントブロツク拡大処理 16.6.4 新データ行数レジスタNDRの新DATA
行数は、ワークバツフアWBの第7W(DATA行
数)より小さいか? 16.6.5 インデントブロツク縮小処理 16.6.6 データバツフアDBuF書込み処理 上述のステツプ16.6.1〜16.6.6についてさらに
説明する。
16.6.2 New DATA line count is work buffer WB 3rd W
Is it larger than (width)? 16.6.3 Indent block expansion processing 16.6.4 New data in new data line number register NDR
Is the number of rows smaller than the 7th W (number of DATA rows) of the work buffer WB? 16.6.5 Indent block reduction processing 16.6.6 Data buffer DBuF writing processing The above steps 16.6.1 to 16.6.6 will be further explained.

16.6.1 ワークバツフアのHEADER部を参照し
てワークバツフアWB内データをデータバツフ
アDBuFに格納するに必要な行数を求める。
16.6.1 Refer to the HEADER section of the work buffer to find the number of rows required to store the data in the work buffer WB to the data buffer DBuF.

行数を求めるにあたつてはワークバツフア
WBの第2Wに格納されているインデントブロ
ツク横巾の値を参照する。
When calculating the number of lines, use the work buffer
Refers to the indent block width value stored in the second W of WB.

又キヤリツジリターンCRコードが存在した
時は改行による行数増加を考慮する。
Also, if a carriage return CR code exists, consider the increase in the number of lines due to line breaks.

16.6.2〜16.6.3 求めた行数ともとのインデント
ブロツクの縦巾とを比較して、その行数が縦巾
を越える時はインデントブロツクの縦方向の拡
大を行つて、データエリアを確保する。
16.6.2 - 16.6.3 Compare the calculated number of lines with the original vertical width of the indent block, and if the number of lines exceeds the vertical width, expand the indent block vertically to secure the data area. do.

16.6.4〜16.6.5 求めた行数ともとのデータの行
数(もとのインデントブロツクの縦巾でなく、
縦巾から最下行に連続して続くスペース行の数
を差し引いたもの)とを比較し、その行数がも
とのデータ行数を下回る時、その分だけインデ
ントブロツクの縦方向の縮小処理を行う。
16.6.4~16.6.5 The number of rows found and the number of rows in the original data (not the original width of the indented block,
If the number of rows is less than the original number of data rows, the indent block is reduced vertically by that amount. conduct.

16.6.6 新しく作り直したインデントブロツクに
ワークバツフアの内容を移す。その際ワークバ
ツフアのHEADER部のパラメータを参照する
ことにより行う。
16.6.6 Move the contents of the work buffer to the newly created indented block. At this time, this is done by referring to the parameters of the HEADER section of the work buffer.

上述のステツプ16.6.3のインデントブロツク拡
大処理についてさらに第18図aを用いて説明す
る。
The indent block enlargement process in step 16.6.3 above will be further explained with reference to FIG. 18a.

16.6.3.1 行挿入処理 16.6.3.2 SPACE行移動処理 16.6.3.3 〔新DATA行数−ワークバツフア第3W
(縦巾)〕の大きさの分だけ繰り返したか? のステツプ制御を行なう。各ステツプの目的は以
下に示す。
16.6.3.1 Row insertion processing 16.6.3.2 SPACE row movement processing 16.6.3.3 [Number of new DATA rows - Work buffer 3rd W
Did you repeat it for the size of (width)? Performs step control. The purpose of each step is shown below.

16.6.3.1 カーソルが存在している行にいわゆる
行挿入を行なう。この際挿入される行DATA
は左マージンマーク、右マージンマークはもち
ろん伴なつているが、1つ上の行と全く同じよ
うにインデントマークがセツトされているもの
とする。他はスペースコードが生まつているも
のとする 16.6.3.2 行挿入の結果、今まで連続して続いて
いた文字列が切断され、文章としてのつながり
が保てなくなる。そこでインデント単位に挿入
された行以降のデータを1行ずつくり上げるこ
とを行う。
16.6.3.1 Performing a so-called row insert on the row where the cursor is located. Row DATA inserted at this time
Of course, there are left margin marks and right margin marks, but it is assumed that the indent mark is set exactly the same as the line one line above. Others are assumed to contain space codes.16.6.3.2 As a result of inserting a line, the string of characters that had been continuous until now is cut off, and the connection as a sentence can no longer be maintained. Therefore, the data after the inserted line is created line by line in indented units.

16.6.3.3 インデントブロツクを拡大する行数分
だけステツプ16.6.3.1と16.6.3.2をくり返す。
16.6.3.3 Repeat steps 16.6.3.1 and 16.6.3.2 for as many lines as you want to expand the indentation block.

上述の処理によるデータの配列を第18図b
に示す。
The data arrangement resulting from the above processing is shown in Figure 18b.
Shown below.

第18図bは、インデントブロツク拡大処理の
例である。16.6.3.1で示す図では、行挿入が行な
われた様子が示されており又16.6.3.2で示す図で
はインデント単位に挿入されたスペース行を下に
ずらした様子が示されている。16.6.3.2の図でわ
かるように、結果として、スペース行は、各イン
デントごとに、ばらばらの位置に配されることに
なり、一行にまとまることはなくなる。この結果
各インデントブロツク単位に文章の連続性が保た
れた形でインデントブロツクの拡大が行なわれ
る。
FIG. 18b is an example of indent block enlargement processing. The figure shown in 16.6.3.1 shows how a line is inserted, and the figure shown in 16.6.3.2 shows how a space line inserted in an indent unit is shifted down. As you can see in the diagram in 16.6.3.2, the result is that the space lines are placed at different positions for each indentation, and are not grouped together on a single line. As a result, the indent blocks are expanded in a manner that maintains the continuity of the text in each indent block unit.

前述のステツプ16.6.3.1の行挿入処理について
さらに第19図aを用いて説明する。かかる処理
は以下の各ステツプから成る。
The row insertion process in step 16.6.3.1 described above will be further explained using FIG. 19a. This process consists of the following steps.

16.6.3.1.1 データバツフア内でカーソルが存在
する行以降すべての行を1行下げ新しく発生し
た行にスペースコードをうめる。
16.6.3.1.1 Move all lines after the cursor in the data buffer by one line and fill the newly generated line with a space code.

16.6.3.1.1 新しく発生した行に、前行の左マー
ジンコード、インデントコード、右マージンコ
ードを、同じ位置にコピーする。
16.6.3.1.1 Copy the left margin code, indentation code, and right margin code of the previous line to the newly generated line in the same position.

上述のステツプにより現カーソルが示す位置に
スペースコードだけから成る行を挿入し、然る後
左マージンマーク、右マージンマーク、インデン
トマークを前行と全く同じ位置に記入する。
The above steps insert a line consisting only of space codes at the position indicated by the current cursor, and then write the left margin mark, right margin mark, and indent mark at exactly the same positions as the previous line.

前述のステツプ16.6.3.2のスペース行移動処理
についてさらに説明する。かかる処理は第20図
aに示す各ステツプを行なう。
The space line movement process in step 16.6.3.2 above will be further explained. In this process, each step shown in FIG. 20a is performed.

16.6.3.2.1 カーソルが存在する行の最左端のイ
ンデントブロツクを挿入する。
16.6.3.2.1 Insert the leftmost indent block on the line where the cursor is.

16.6.3.2.2 インデントブロツクは存在したか。16.6.3.2.2 Were there any indentation blocks?

16.6.3.2.3 該インデントブロツクの先頭にカー
ソル移動 16.6.3.2.4 該インデントブロツクのカーソルが
存在している行はすべてスペースコードか? 16.6.3.2.4 該インデントブロツク内でカーソル
が存在している行を削除して、すべて1行繰り
上げる。該インデントブロツクの最後まで実行
し、最下位はスペースコードで埋める。
16.6.3.2.3 Move the cursor to the beginning of the indented block 16.6.3.2.4 Are all the lines where the cursor is located in the indented block a space code? 16.6.3.2.4 Delete the line where the cursor is in the indented block and move all lines up one line. Executes to the end of the indented block and fills the bottom with a space code.

16.6.3.2.5 右方へ次のインデントブロツクを挿
入する。
16.6.3.2.5 Insert next indent block to the right.

上述のステツプを実行することにより例えばス
テツプ16.6.3.2.1、16.6.3.2.2、16.6.3.2.6によりイ
ンデントブロツクごとに左方から順に処理を実行
し、すべてのインデントブロツクに対して処理が
終了するまで続ける。
By executing the above steps, for example, steps 16.6.3.2.1, 16.6.3.2.2, and 16.6.3.2.6 will execute the process for each indented block sequentially from the left, and all indented blocks will be processed. Continue until finished.

ステツプ16.6.3.2.3〜16.6.3.2.5により各インデ
ントブロツク単位でスペース行を、各インデント
ブロツクの最下行に移動させる。この処理はイン
デントブロツク単位で実行するため、最下行に移
動したSPACE行の位置はインデントブロツクご
とに異る。
Steps 16.6.3.2.3 to 16.6.3.2.5 move the space line in each indent block to the bottom line of each indent block. Since this process is executed for each indent block, the position of the SPACE line moved to the bottom line differs for each indent block.

前述のステツプ16.6.5のインデントブロツク縮
小処理の詳細を第21図に示す。かくステツプに
ついて説明する。
The details of the indent block reduction process in step 16.6.5 described above are shown in FIG. These steps will be explained.

16.6.5.1 該インデントブロツクの最終行に左マ
ージンマーク、右マージンマーク、スペースコ
ード、インデントコード以外のものが存在する
か? 16.6.5.2 該インデントブロツクの最終行を削除
し、それ以降に続くDATAをすべて、1行分
前につめる。(インデントブロツク単位でない) 16.6.5.3 データバツフアDBuFの最終行に対応
する位置にすべてスペースコードを埋める 16.6.5.4 データバツフアの最終行に左マージン
コード、右マージンコードを埋める。
16.6.5.1 Is there anything other than a left margin mark, right margin mark, space code, or indent code on the last line of the indent block? 16.6.5.2 Delete the last line of the indented block and move all subsequent DATA forward by one line. (Not in indent block units) 16.6.5.3 Fill in all space codes in the positions corresponding to the last line of the data buffer DBuF 16.6.5.4 Fill in the left margin code and right margin code in the last line of the data buffer.

16.6.5.5 〔ワークバツフア第7W(DATA行数)−
新DATA行数〕の大きさの分だけ繰り返した
か? 上述のステツプ16.6.5.1〜16.6.5.5を実行して以
下の目的を行なう。
16.6.5.5 [Work buffer 7th W (Number of DATA lines) -
Did you repeat it for the size of [New DATA row count]? Perform steps 16.6.5.1-16.6.5.5 above to accomplish the following purposes:

16.6.5.1 該インデツトブロツクの最終行におい
て、隣接するインデントブロツクも含めて、す
べて、左マージンコード、右マージンコード、
インデントマーク、スペースコード以外のもの
が存在しているか否かをチエツクする。存在し
ていなかつたら、次のステツプに進む。
16.6.5.1 In the last line of the indented block, all including the adjacent indented blocks, the left margin code, right margin code,
Checks whether anything other than indent marks and space codes exists. If it does not exist, proceed to the next step.

16.6.5.2 16.6.5.1でチエツクした行を削除し、後
続する行を上へくり上る。
16.6.5.2 Delete the line checked in 16.6.5.1 and move the following line up.

(インデントブロツク単位でなく、左右マー
ジンを含めて実行するものとする) 16.6.5.3〜16.6.5.4 最終行に対応するデータバツ
フアの位置、左右マージンコード、とスペース
コードを埋める。
(It shall be executed including the left and right margins, not in indent block units.) 16.6.5.3 to 16.6.5.4 Fill in the data buffer position, left and right margin codes, and space codes corresponding to the last line.

16.6.5.5 縮小の必要なだけ縮小を繰り返す。16.6.5.5 Repeat the reduction as many times as necessary.

前述のステツプ16.6.6のデータバツフア書き込
み処理について第22図を参照して説明する。
The data buffer write process in step 16.6.6 described above will be explained with reference to FIG.

16.6.6.1 ワークバツフアWBのHEADER部パラ
メータに従つてワークバツフア内DATAをデ
ータバツフアに移す。(但し途中にCRコードが
存在した場合改行を行う)インデントブロツク
をオーバーした分は捨てさる。
16.6.6.1 Move DATA in the work buffer to the data buffer according to the HEADER section parameters of the work buffer WB. (However, if there is a CR code in the middle, a line break will be performed.) Anything that exceeds the indentation block will be discarded.

16.6.6.2 ワークバツフアの第4W(カーソル)に
対応するDATA BUFFER内アドレスをカー
ソルレジスタに記入する。(担し、その値が128
を越える時は1とする) 上述のステツプ16.6.6.1〜16.6.6.2を実行し、以
下のことを行なう。
16.6.6.2 Write the address in the DATA BUFFER corresponding to the 4th W (cursor) of the work buffer to the cursor register. (The value is 128
(If it exceeds, set it to 1) Execute steps 16.6.6.1 to 16.6.6.2 above and do the following.

16.6.6.1 ワークバツフアの内容をデータバツフ
アに移す。
16.6.6.1 Move the contents of the work buffer to the data buffer.

移すべきデータの長さは第1Wに 移すべきインデントブロツクの横巾は第2W
に 移すべきインデントブロツクのデータバツフ
アDBuF内位置は第5W、第6Wに示される。第
5Wは、桁番号で第6Wは行番号であり、この位
置該インデントブロツクの先頭文字が来ること
になる。
The length of the data to be transferred is in the 1st W. The width of the indent block to be transferred is in the 2nd W.
The position of the indent block to be moved in the data buffer DBuF is shown in the 5th and 6th Ws. No.
5W is the digit number and 6th W is the line number, and the first character of the indent block will be at this position.

16.6.6.2 カーソルレジスタへカーソルアドレス
を書き込むワークバツフアWB第4Wにカーソ
ルの存在すべきアドレスが記入されている。こ
の値を実際のデータバツフア上でのアドレスに
変換し、カーソルレジスタCRに記入する。
16.6.6.2 Writing the cursor address to the cursor register The address where the cursor should exist is written in the 4th W of the work buffer WB. Convert this value to an address on the actual data buffer and write it to the cursor register CR.

上述の処理が終了すると第7図に示すステツプ
KB16の文字処理が終了しキー待ちにもどる。も
しNOであれば、ステツプKB17に移り、該ステ
ツプKB17で削除キーの操作があつたかを判別す
る。YESであれば、第23図aに示す削除キー
入力処理制御を行なう。各ステツプの内容は以下
の通りである。
When the above processing is completed, the steps shown in Fig. 7 are executed.
KB16 character processing ends and returns to waiting for keys. If NO, the process moves to step KB17, where it is determined whether the delete key has been operated. If YES, the delete key input processing control shown in FIG. 23a is performed. The contents of each step are as follows.

18.1 現カーソルの位置にインデントマークは存
在するか? 18.2 現カーソル位置に対応する内アドレスの内
容をスペースコードに変更する。
18.1 Is there an indent mark at the current cursor position? 18.2 Change the contents of the inner address corresponding to the current cursor position to a space code.

18.3 インデントブロツクセーブ処理(16.2) 18.4 削除処理 18.5 インデントブロツクリストア処理(16.6) <注> この処理はカーソルが左右マージン上
に有る時は機能しないものとする。
18.3 Indent block save processing (16.2) 18.4 Delete processing 18.5 Indent block restore processing (16.6) <Note> This processing does not work when the cursor is on the left and right margins.

上述のステツプにより以下の事を実行する。 The steps described above will do the following:

18.1 カーソルがインデントマーク上にある時は
ステツプ18.2カーソルがインデントマーク上に
ない時はステツプ18.3へ進む。
18.1 If the cursor is on the indent mark, proceed to step 18.2. If the cursor is not on the indent mark, proceed to step 18.3.

18.2 カーソルが存在する位置のコードをスペー
スコードに変更する。
18.2 Change the code at the cursor position to a space code.

18.3 該インデントブロツクのワークバツフアへ
のセーブを行う(16.2) 18.4 ワークバツフア上で削除処理を行う。
18.3 Save the indented block to the work buffer (16.2) 18.4 Perform deletion processing on the work buffer.

18.5 削除処理されたワークバツフアWBの内容
をデータバツフアDBuFに戻す。
18.5 Return the contents of the deleted work buffer WB to the data buffer DBuF.

第23図bは上述の削除キー入力処理の例であ
る。各処理に対応して処理のステツプ番号が付さ
れている。18.3のインデントブロツクセーブ処理
と18.5のインデントブロツクリストア処理につい
てはそれぞれステツプ16.2、16.6で述べた。18.4
がワークバツフアWB上での削除処理である。
FIG. 23b is an example of the above-mentioned deletion key input process. Processing step numbers are assigned corresponding to each process. The indent block save process in 18.3 and the indent block restore process in 18.5 were described in steps 16.2 and 16.6, respectively. 18.4
is the deletion process on the work buffer WB.

かかる削除処理は第24図に示す如く3ステツ
プより成り各ステツプを以下に示す。
This deletion process consists of three steps as shown in FIG. 24, and each step is described below.

18.4.1 ワークバツフアWB第4W(カーソル)の
示す内DATAを削除する。(即ち該位置以降に
存在するDATAをすべて1つずつ前につめる。
18.4.1 Delete the DATA indicated by the 4th W (cursor) of the work buffer WB. (In other words, move all DATA existing after the specified position forward one by one.

18.4.2 ワークバツフアWB第4W(カーソル)の
値と第1W(DATA LENGTH)の値とは等し
いか? 18.4.3 ワークバツフアWB第1W(DATA
LENGTH)を1減ずる。
18.4.2 Are the values of work buffer WB 4th W (cursor) and 1st W (DATA LENGTH) equal? 18.4.3 Work buffer WB 1st W (DATA
LENGTH) is reduced by 1.

上述の各ステツプにより以下の事を行なう。 The steps described above perform the following:

18.4.1 ワークバツフアWB第4Wの示す ワークバツフアWB内のデータを削除し後続
するデータをすべて前へつめる。
18.4.1 Delete the data in the work buffer WB indicated by the 4th W of the work buffer WB and move all subsequent data to the front.

18.4.2〜18.4.3 削除処理においてはカーソルの
位置は移動しないものとする。従つてワークバ
ツフアWB第1W(DATA LENGTH)の値を、
ワークバツフア第4W(カーソル)の値より小さ
くならない範囲で1を減ずるものとする。
18.4.2 - 18.4.3 The cursor position shall not be moved during deletion processing. Therefore, the value of work buffer WB 1st W (DATA LENGTH) is
The value shall be decreased by 1 as long as it does not become smaller than the value of the 4th W (cursor) of the work buffer.

上述の処理が終了すれば、キー待ちに移り、
NOであれば、ステツプKB19に移る。ステツプ
KB19でインデント右移動キーかを判別する。も
しYESであれば、第25図aにYの詳細を示す
インデント右移動キー入力処理を行なう。
Once the above process is completed, the process moves to waiting for a key.
If NO, move to step KB19. step
Determine if it is an indent right movement key in KB19. If YES, the indent right movement key input process whose details of Y are shown in FIG. 25a is performed.

20.1 現カーソル位置をセーブする。20.1 Save the current cursor position.

20.2 現カーソルは、インデントコードの位置に
あるか? 20.3 インデントブロツクセーブ処理(16.2) 20.4 インデントブロツク横縮小処理 20.5 現カーソルよりさらに左方に別のインデン
トコードが存在するか? 20.6 現カーソルの直ぐ左側に存在する第1のイ
ンデントブロツクの縦巾とさらに左側に存在す
る第2のインデントブロツクの縦巾との大きさ
は等しいか? (但しカーソルが存在する行以降を比較す
る) 20.7 現カーソルを第2のインデントブロツクの
最左端に移す。
20.2 Is the current cursor at the indentation code? 20.3 Indent block save processing (16.2) 20.4 Indent block horizontal reduction processing 20.5 Is there another indent code further to the left of the current cursor? 20.6 Are the heights of the first indent block immediately to the left of the current cursor equal to the height of the second indent block further to the left? (However, the line after the cursor is compared is compared.) 20.7 Move the current cursor to the leftmost edge of the second indent block.

20.8 インデントブロツクセーブ処理(16.2) 20.9 インデントブロツク横拡大処理 20.10 インデントブロツクリストア処理(16.6) 20.11 現カーソル位置をセーブしておいたカー
ソル位置にもどす。
20.8 Indent block save processing (16.2) 20.9 Indent block horizontal expansion processing 20.10 Indent block restore processing (16.6) 20.11 Return the current cursor position to the saved cursor position.

<注> インデントキー左移動キー入力処理22
は上記説明で左と右をすべて逆にしたものと
同じである。
<Note> Indent key left movement key input process 22
is the same as the above explanation with all left and right reversed.

<注> 本処理はカーソルが左右マージン上に
ないものとする。
<Note> This process assumes that the cursor is not on the left and right margins.

上述の各ステツプの目的は以下の通りである。 The purpose of each step described above is as follows.

20.1 現カーソルの位置をカーソル位置セーブレ
ジスタにセーブする 20.2 カーソルが文字上にある時はステツプ20.3
へカーソルがインデント上にある時はステツプ
20.5に進む。
20.1 Save the current cursor position in the cursor position save register 20.2 When the cursor is on a character, step 20.3
When the cursor is on the indent, step
Proceed to 20.5.

20.3 インデントブロツクをSAVEする(16.2) 20.4 ワークバツフア上でインデントブロツクの
縮小処理を行う。ステツプ20.10へ進む 20.5、20.6 カーソルが存在する位置より左にイ
ンデントブロツクが2つ存在し、かつその2つ
のインデントブロツクの縦巾が等しい時ステツ
プ20.7に進む 20.7 2つのインデントブロツクの左側のインデ
ントブロツクの先頭文字の位置にカーソルを移
動する。
20.3 SAVE an indent block (16.2) 20.4 Reduce the indent block on the work buffer. Proceed to step 20.10 20.5, 20.6 If there are two indent blocks to the left of the cursor position and the vertical widths of the two indent blocks are equal, proceed to step 20.7 20.7 Move the cursor to the first character.

20.8 インデントブロツクセーブ処理(16.2) 20.9 ワークバツフア内でインデントブロツクの
拡大処理を行う。
20.8 Indent block save processing (16.2) 20.9 Extend indent block in the work buffer.

20.10 インデントブロツクのリストア処理
(16.6) 20、11 カーソル位置セーブレジスタCSRにセ
ーブしておいたカーソル位置アドレスをカーソ
ルレジスタCRにもどす。
20.10 Indent block restoration processing (16.6) 20, 11 Return the cursor position address saved in the cursor position save register CSR to the cursor register CR.

第25図bはカーソルが文字の上にある時の例
である。この場合インデント右移動キーによつ
て、インデントブロツクは横方向に縮小される。
20.4で示す図がワークバツフアWBを使用してイ
ンデントブロツクの縮小を行つたところの例であ
る。
FIG. 25b is an example when the cursor is placed on a character. In this case, the indent block is shrunk horizontally using the indent right movement key.
The figure shown in 20.4 is an example of reducing an indent block using the work buffer WB.

第25図cはカーソルがインデント上にある時
の例である。この場合インデント右移動キーによ
つてインデントブロツクは横方向に拡大される。
20.9で示す図がワークバツフアWBを使用してイ
ンデントブロツク拡大処理を行つた例である。
FIG. 25c is an example when the cursor is on the indent. In this case, the indent block is expanded horizontally by the indent right movement key.
The figure shown in 20.9 is an example of indent block enlargement processing using the work buffer WB.

上述のステツプ20.4をさらに説明すると、第2
6図に示す如く5ステツプから成る。
To further explain step 20.4 above, the second
As shown in Figure 6, it consists of 5 steps.

20.4.1 現カーソルが存在しているインデントブ
ロツクを、現カーソルが存在している位置にイ
ンデントコードを縦方向に書き込むことによ
り、縦方向に2等分する。
20.4.1 The indent block where the current cursor is located is vertically divided into two equal parts by writing an indent code vertically at the position where the current cursor is located.

20.4.2 現カーソルの位置を右方向に1つずら
す。
20.4.2 Shift the current cursor position one position to the right.

20.4.3 ワークバツフアWB第2W(横巾)に新し
く出来た現カーソルが存在するインデントブロ
ツクの横巾を記入する。
20.4.3 Write the width of the newly created indent block where the current cursor is located in the 2nd W (width) of the work buffer WB.

20.4.4 ワークバツフアWB第4W(カーソル)の
値を1に変更する。
20.4.4 Change the value of the work buffer WB 4th W (cursor) to 1.

20.4.5 ワークバツフアWB第5W(インデントブ
ロツク先頭桁)を新しく出来たインデントブロ
ツクの先頭桁番号に変更する <注> インデント左移動の時22.4上記記述の
内右を左と変更する。
20.4.5 Change work buffer WB 5th W (first digit of indent block) to the first digit number of the newly created indent block. <Note> When moving the indent to the left, change the right in the above description to the left in 22.4.

上述の各ステツプについてさらに説明する。 Each of the above steps will be further explained.

20.4.1 まずデータバツフアの該インデントブロ
ツクを2等分することで縮小されたインデント
ブロツクの作成を行う。縦方向に2等分したイ
ンデントブロツクの右側に今までそこにあつた
情報が押し込められることになる。
20.4.1 First, create a reduced indent block by dividing the indent block in the data buffer into two equal parts. The information that has been there so far will be pushed into the right side of the indented block, which is divided into two equal parts in the vertical direction.

20.4.2 現カーソルを右方向へ1つずらす。その
位置が新しいインデントブロツクの先頭文字の
位置になる。
20.4.2 Move the current cursor one position to the right. That position becomes the position of the first character of the new indent block.

20.4.3〜20.4.5 ワークバツフアWBのHEADER
部のパラメータを新しいインデントブロツクの
パラメータに置き換える。
20.4.3~20.4.5 Work buffer WB HEADER
Replace the parameters of the section with the parameters of the new indentation block.

上述のステツプ20.9のインデントブロツク横拡
大処理について第27図を参照して説明する。
The indent block horizontal enlargement process in step 20.9 described above will be explained with reference to FIG.

20.9.1 カーソルが存在しているインデントブロ
ツクの右側端を決定しているインデントマーク
をすべてスペースマークに変更する。
20.9.1 Change all indent marks that define the right edge of the indent block where the cursor is located to space marks.

20.9.2 ワークバツフアWB第2W(横巾)に新し
く拡大したインデントブロツクの横巾を記入す
る。
20.9.2 Write the width of the newly enlarged indent block in the work buffer WB 2nd W (width).

のステツプから成り、かくステツプは以下のこと
を行なう。
The steps are as follows:

20.9.1 まずデータバツフアのインデントブロツ
クにおいて右側端のインデントマークを取り除
くことで、インデントブロツクの拡大を行う。
20.9.1 First, expand the indent block of the data buffer by removing the indent mark at the right end of the indent block.

20.9.2 ワークバツフアWB第2W(横巾)の値を
変更する。
20.9.2 Change the value of work buffer WB 2nd W (width).

上述の処理が終了すれば、キー待ちに移る。も
しNOであれば、ステツプKB21のインデント左
キーかを判別する処理に移る。該ステツプで
YESならば、ステツプKB22の入力処理に移る。
When the above processing is completed, the process moves to wait for a key. If NO, the process moves to step KB21 to determine whether it is an indent left key. in this step
If YES, the process moves to step KB22 for input processing.

かかる処理は第25図aにおいて、図の説明文
中の右と左とを入れ換え、かつ数字20を22に置き
換えたものと同等である。
This process is equivalent to exchanging the right and left in the figure explanatory text and replacing the number 20 with 22 in FIG. 25a.

またインデントブロツク横縮小処理は巾第26
図において図の説明文中の右と左とを入れ換え、
かつ数字20を22に置き換えたものと同等である。
Also, the indent block horizontal reduction process is 26th in width.
In the figure, swap the right and left in the figure legend,
And it is equivalent to replacing the number 20 with 22.

さらにインデントブロツク横拡大処理について
述べる。
Furthermore, we will discuss horizontal indentation block expansion processing.

かかる処理は第28図に示すステツプから成
り、かくステツプについて説明する。
This process consists of the steps shown in FIG. 28, and these steps will be explained.

22.9.1 カーソルが存在しているインデントブロ
ツクの左側端を決定しているインデントマーク
をすべてスペースマークに変更する。
22.9.1 Change all indent marks that define the left edge of the indent block where the cursor is located to space marks.

22.9.2 ワークバツフアWB第2W(横巾)に新し
く拡大したインデントブロツクの横巾を記入す
る。
22.9.2 Enter the width of the newly enlarged indent block in the work buffer WB 2nd W (width).

22.9.3 ワークバツフアWB第5W(該インデント
ブロツク先頭桁)を、新しく拡大したインデン
トブロツクの先頭桁に変更する。
22.9.3 Change the work buffer WB 5th W (first digit of the indent block) to the first digit of the newly enlarged indent block.

上記各ステツプは以下の目的を実行する。 Each of the above steps accomplishes the following objectives:

22.9.1 まずデータバツフアにおける該インデン
トブロツクの左側端のインデントマークを取除
くことによりインデントブロツクの拡大を行
う。
22.9.1 First, expand the indent block by removing the indent mark at the left end of the indent block in the data buffer.

22.9.2、22.9.3 ワークバツフアWB第2W(横巾)、
ワークバツフアWB第5W(先頭桁)を新しいイ
ンデントブロツクに対応する値に変更する。
22.9.2, 22.9.3 Work buffer WB 2nd W (width),
Change the work buffer WB 5th W (first digit) to the value corresponding to the new indent block.

上述の処理が終了すれば、キー待ちに移り、
NOであれば、ステツプKB23に移る。ステツプ
KB23はインデント罫線変換キーかの判別ステツ
プである。かかるステツプKB23でYESとなれ
ば、ステツプ24のインデント罫線変換キー入力処
理に移る。第29図aはその詳細を示すフローで
ある。各ステツプの内容を以下に示す。
Once the above process is completed, the process moves to waiting for a key.
If NO, move to step KB23. step
KB23 is a step to determine if it is an indent ruled line conversion key. If the answer is YES in step KB23, the process moves to step 24, which is indent ruled line conversion key input processing. FIG. 29a is a flow showing the details. The contents of each step are shown below.

24.1 現カーソルが存在する1行手前の行までデ
ータバツフアの内容をすべてワークバツフアに
移す。
24.1 Move all contents of the data buffer to the work buffer up to the line before the current cursor.

24.2 現カーソルが存在する行からデータバツフ
アの内容を変換テーブル第3図dを参照し、イ
ンデントコードを罫線コードに変換しながらワ
ークバツフアWBに移す。この際カーソルが存
在する1行手前の行は存在しないものとして変
換テーブルを参照するものとする。
24.2 Move the contents of the data buffer from the line where the current cursor is located to the work buffer WB while referring to the conversion table (d) in Figure 3 and converting the indentation code to the ruled line code. At this time, the conversion table is referred to as if the line immediately before the cursor does not exist.

24.3 ワークバツフアの内容をすべてデータバツ
フアに戻す。
24.3 Return all contents of the work buffer to the data buffer.

各ステツプの目的を以下に示す。 The purpose of each step is shown below.

24.1 ここでは今まで定義してきたワークバツフ
アのフオーマツトとは全く違う使い方を行う。
すなわち、ここでは、インデントブロツクの概
念は全く扱かわず、従つてインデントマークは
単なる文字と全く同等と見なすものとする。
24.1 Here we will use a work buffer format that is completely different from the one we have defined so far.
That is, the concept of an indent block is not treated here at all, and therefore an indent mark is considered to be completely equivalent to a simple character.

まず、カーソルが存在する行の手前の行まで
の情報をすべてワークバツフアWBの頭から格
納する。
First, all information up to the line before the line where the cursor is located is stored from the beginning of the work buffer WB.

24.2 次に、変換テーブル第3図dを参照しなが
らインデントコードを罫線コードに変換しなが
ら残りのデータバツフア内の情報をワークバツ
フア内に続いて格納する。その際現在カーソル
が存在している行より前の行は、存在していな
いものとして変換テーブルを参照するものとす
る。
24.2 Next, the remaining information in the data buffer is successively stored in the work buffer while converting the indent code into a ruled line code while referring to the conversion table shown in FIG. 3(d). At this time, the conversion table is referred to as if the row before the current cursor does not exist.

変換テーブルを参照するにあたつては、該イ
ンデントコードの上下左右にインデントコード
が存在するか否かによつて変換される罫線コー
ドが変化するため、常に上下左右の状態を認識
する必要がある。
When referring to the conversion table, the converted ruled line code changes depending on whether or not there is an indent code above, below, left, or right of the indent code, so it is necessary to always recognize the top, bottom, left, and right states. .

24.3 ワークバツフアWBの内容を頭からデータ
バツフアにすべて戻す。
24.3 Return all contents of the work buffer WB to the data buffer starting from the beginning.

第29図bは、インデント罫線変換の例であ
る。
FIG. 29b is an example of indent ruled line conversion.

上述の処理が終了したら、キー待ちにもどる。
もしNOであれば、ステツプKB25に移る。ステ
ツプKB25に於いて罫線インデント変換キーが操
作されたかを判別する。もしYESであれば、ス
テツプKB26に移り、第30図に示す処理を行な
う。
When the above processing is completed, the process returns to waiting for a key.
If NO, move to step KB25. In step KB25, it is determined whether the ruled line indent conversion key has been operated. If YES, the process moves to step KB26 and the process shown in FIG. 30 is performed.

26.1 現カーソルが存在する行以降の罫線コード
をすべてインデントコードに変更する。
26.1 Change all border codes after the line where the current cursor is located to indent codes.

上述のステツプによりデータバツフア内におい
て現カーソルが存在する行以降をすべて罫線コー
ドからインデントコードへの変更を行う。
By the above steps, all lines after the current cursor in the data buffer are changed from ruled line code to indent code.

上述の処理が終了すれば、キー待ちとなる。も
しNOであれば、ステツプKB27に移る。ステツ
プKB27で、イニシヤライズキーが操作されたか
を判別する。YESであればイニシヤライズ処理
を行なう。第30図はそのフローを示す。
When the above-mentioned processing is completed, the system waits for a key. If NO, move to step KB27. In step KB27, it is determined whether the initialize key has been operated. If YES, initialize processing is performed. FIG. 30 shows the flow.

1 データバツフアにすべてスペースコードを埋
める。
1 Fill in all space codes in the data buffer.

2 データバツフアの左右マージン位置に相当す
る場所に左マージンコード、右マージンコード
を埋める。
2 Fill in the left margin code and right margin code in the locations corresponding to the left and right margin positions of the data buffer.

上述のステツプによりデータバツフアに初期値
を設定することにより、CRT上に表示される文
字列のイニシヤライズを行う。これにより左右マ
ージンがCRT上に表示され残りはすべてスペー
スが表示される。すべての入力はまず このINTキーを押すことにより始めることが
できる。
By setting initial values in the data buffer using the steps described above, the character string displayed on the CRT is initialized. This causes the left and right margins to be displayed on the CRT and all remaining spaces to be displayed. All input can be started by first pressing this INT key.

上述の処理が終了すれば、キー待ちとなる。も
しNOであれば、ステツプKB29に移る。ステツ
プKB29はプリントキーが操作されたかを判別す
る。もしYESであれば、第32図に示すプリン
トキー処理のステツプKB30に移る。かかるステ
ツプは以下の処理を行なう。
When the above-mentioned processing is completed, the system waits for a key. If NO, move to step KB29. Step KB29 determines whether the print key has been operated. If YES, the process moves to step KB30 of print key processing shown in FIG. This step performs the following processing.

データバツフアの内容をプリンタに出力する。 Output the contents of the data buffer to the printer.

上述の処理によりデータバツフアの内容をすべ
てプリントアウトする。縦横プリントの機能をも
つているとなお望ましい。
The above processing prints out all the contents of the data buffer. It is even more desirable to have the function of vertical and horizontal printing.

以上の処理が終了と、キー待ちになるが、もし
NOであれば、やはりキー待ちにもどる。
When the above process is completed, it will wait for the key, but if
If NO, the process returns to waiting for the key.

[効果] 以上、詳述した様に本発明により、領域情報を
可視化表示でき、更に文字データを所望の領域内
に入力、表示することができ、更に、領域データ
の表示形態を変更することもできる文字処理装置
を提供することが可能となつた。
[Effects] As detailed above, according to the present invention, area information can be displayed visually, character data can be input and displayed in a desired area, and furthermore, the display form of area data can be changed. It has become possible to provide a character processing device that can.

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

第1図は本発明による1実施例を示すブロツク
図、第2図a,b,cはインデントブロツクを説
明する図、第3図a,b,c,dはインデントマ
ークと罫線パターンの変換を説明する図、第4図
a,b,cは枠組の変更を説明する図、第5図
a,b,cは枠組の変更を説明する図、第6図
a,bは枠組の変更を説明する図、第7図はキー
処理を示す制御手順を示す図、第8図はキヤリツ
ジリターン処理を示す図、第9図はインデント入
力処理を示す図、第10図はオーバライトキー入
力処理を示す図、第11図は挿入キー入力処理を
示す図、第12図はカーソルキー入力処理を示す
図、第13図aは文字キー入力処理を示す図、第
13図bは文字のオーバライト処理を示す図、第
14図aはインデントブロツクセーブ処理を示す
図、第14図bはデータの流れを示す図、第15
図はオーバライト処理を示す図、第16図は挿入
処理を示す図、第17図はインデントブロツクリ
ストア処理を示す図、第18図aはインデントブ
ロツク拡大処理を示す図、第18図bはデータの
流れを示す図、第19図aは行挿入処理を示す
図、第19図bはデータの流れを示す図、、第2
0図aはスペース行移動処理を示す図、第20図
bはデータの流れを示す図、第21図はインデン
トブロツク縮小処理を示す図、第22図aはデー
タバツフア書き込み処理を示す図、第22図bは
データの流れを示す図、第23図aは削除キー入
力処理を示す図、第23図bは文字の削除のデー
タの流れを示す図、第24図は削除処理を示す
図、第25図aはインデント右移動キー入力処理
を示す図、第25図bはデータの流れを示す図、
第25図cはデータの流れを示す図、第26図は
インデントブロツク横縮小処理を示す図、第27
図はインデントブロツク横拡大処理を示す図、第
28図はインデントブロツク横拡大処理を示す
図、第29図aはインデント罫線変換キー入力処
理を示す図、第29図bはデータの流れを示す
図、第30図aは罫線インデント変換キー入力処
理を示す図、第30図bはデータの流れを示す
図、第31図はイニシヤライズ処理を示す図、第
32図はプリントキー入力処理を示す図である。 KB……キーボード、ROM……制御メモリ、
RAM……メモリ、WB……ワークバツフア、
DBuF……データバツフア、CR……カーソルレ
ジスタ。
Fig. 1 is a block diagram showing one embodiment of the present invention, Fig. 2 a, b, and c are diagrams explaining an indent block, and Fig. 3 a, b, c, and d are diagrams explaining the conversion of indent marks and ruled line patterns. Figures 4a, b, and c are diagrams explaining changes in the framework. Figures 5a, b, and c are diagrams explaining changes in the framework. Figures 6a and b are diagrams explaining changes in the framework. 7 is a diagram showing the control procedure for key processing, FIG. 8 is a diagram showing carriage return processing, FIG. 9 is a diagram showing indent input processing, and FIG. 10 is a diagram showing overwrite key input processing. 11 is a diagram showing insert key input processing, FIG. 12 is a diagram showing cursor key input processing, FIG. 13a is a diagram showing character key input processing, and FIG. 13b is a diagram showing character overwrite processing. Figure 14a is a diagram showing the indent block save process, Figure 14b is a diagram showing the data flow, and Figure 15 is a diagram showing the data flow.
The figures show overwrite processing, Fig. 16 shows insertion processing, Fig. 17 shows indent block restore processing, Fig. 18a shows indent block enlargement processing, and Fig. 18b shows data. Figure 19a is a diagram showing the row insertion process; Figure 19b is a diagram showing the data flow;
Figure 20a is a diagram showing space line movement processing, Figure 20b is a diagram showing data flow, Figure 21 is a diagram showing indent block reduction processing, Figure 22a is a diagram showing data buffer writing processing, Figure 22 Figure b is a diagram showing the data flow, Figure 23a is a diagram showing the deletion key input process, Figure 23b is a diagram showing the data flow for character deletion, Figure 24 is a diagram showing the deletion process, FIG. 25a is a diagram showing the indent right movement key input process, FIG. 25b is a diagram showing the data flow,
Figure 25c is a diagram showing the flow of data, Figure 26 is a diagram showing indent block horizontal reduction processing, and Figure 27 is a diagram showing the flow of data.
Figure 28 shows indent block horizontal enlargement processing, Figure 28 shows indent block horizontal enlargement processing, Figure 29a shows indent ruled line conversion key input processing, and Figure 29b shows data flow. , FIG. 30a is a diagram showing the ruled line indentation conversion key input process, FIG. 30b is a diagram showing the data flow, FIG. 31 is a diagram showing the initialization process, and FIG. 32 is a diagram showing the print key input process. be. KB...Keyboard, ROM...Control memory,
RAM...memory, WB...work buffer,
DBuF...Data buffer, CR...Cursor register.

Claims (1)

【特許請求の範囲】 1 文書領域の境界を同一のパターンによつて表
示する文字処理装置であつて、 前記同一のパターンの為の領域データと文字デ
ータを入力する入力手段、 前記入力手段によつて入力された領域データ及
び文字データと前記入力手段から新たに入力され
る文字データの表示位置を示すカーソルとを表示
する表示手段、 前記入力手段からの文字データの入力に応じて
前記カーソルを行に沿つて移動し、前記カーソル
が前記入力手段によつて入力された前記領域デー
タによつて規定される領域を越える場合は、前記
カーソルを前記領域内の次の行の行頭に移動する
カーソル制御手段と、 前記表示手段によつて表示される前記領域デー
タの表示形態を変更することを指示する指示手
段、 前記指示手段からの指示に基づいて、前記領域
データの表示形態を前記同一のパターンとは異な
る罫線パターンに変更すべく、前記表示手段を制
御する表示制御手段とを有したことを特徴とする
文字処理装置。
[Scope of Claims] 1. A character processing device that displays boundaries of document areas using the same pattern, comprising: input means for inputting area data and character data for the same pattern; display means for displaying area data and character data inputted through the input means, and a cursor indicating a display position of character data newly inputted from the input means; , and if the cursor exceeds an area defined by the area data input by the input means, the cursor is moved to the beginning of the next line within the area. means, instruction means for instructing to change the display form of the area data displayed by the display means, based on the instruction from the instruction means, changing the display form of the area data to the same pattern. and display control means for controlling the display means to change the ruled line pattern to a different ruled line pattern.
JP55135543A 1980-09-29 1980-09-29 Character processor Granted JPS5760380A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP55135543A JPS5760380A (en) 1980-09-29 1980-09-29 Character processor
DE19813138734 DE3138734A1 (en) 1980-09-29 1981-09-29 Word-processing device
US07/988,032 US5276792A (en) 1980-09-29 1992-12-09 Word processor permitting modification of a preset frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55135543A JPS5760380A (en) 1980-09-29 1980-09-29 Character processor

Publications (2)

Publication Number Publication Date
JPS5760380A JPS5760380A (en) 1982-04-12
JPH0143338B2 true JPH0143338B2 (en) 1989-09-20

Family

ID=15154233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55135543A Granted JPS5760380A (en) 1980-09-29 1980-09-29 Character processor

Country Status (1)

Country Link
JP (1) JPS5760380A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015037466A1 (en) * 2013-09-12 2015-03-19 株式会社瑞光 Pulverizer, absorber manufacturing device provided with same, and pulp sheet pulverizing method

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57150031A (en) * 1981-03-12 1982-09-16 Toshiba Corp Document producer
JPS616762A (en) * 1984-06-21 1986-01-13 Matsushita Electric Ind Co Ltd Document processor
JPS61123973A (en) * 1984-11-20 1986-06-11 Fujitsu Ltd Composition and graphic editing system
JPH0654426B2 (en) * 1985-10-30 1994-07-20 株式会社日立製作所 Table creation method
JPS62118381A (en) * 1985-11-19 1987-05-29 カシオ計算機株式会社 Document editing unit
JPH0816906B2 (en) * 1986-12-18 1996-02-21 大日本印刷株式会社 How to edit a table by computer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5419618A (en) * 1977-07-15 1979-02-14 Hitachi Ltd Cursor control unit
JPS559743A (en) * 1978-07-04 1980-01-23 Kubota Ltd Riding type rice transplanter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5419618A (en) * 1977-07-15 1979-02-14 Hitachi Ltd Cursor control unit
JPS559743A (en) * 1978-07-04 1980-01-23 Kubota Ltd Riding type rice transplanter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015037466A1 (en) * 2013-09-12 2015-03-19 株式会社瑞光 Pulverizer, absorber manufacturing device provided with same, and pulp sheet pulverizing method

Also Published As

Publication number Publication date
JPS5760380A (en) 1982-04-12

Similar Documents

Publication Publication Date Title
JPH0143338B2 (en)
JPH0324701B2 (en)
JPH0361198B2 (en)
JPH0361197B2 (en)
US5276792A (en) Word processor permitting modification of a preset frame
JPH0143339B2 (en)
JPH0427586B2 (en)
JPH0254588B2 (en)
JPH04218866A (en) Character processing method
JPH04218865A (en) Character processing method
JPH0427585B2 (en)
JPH0254589B2 (en)
JPH0254590B2 (en)
JPS58129676A (en) Character processing device
JPH038065A (en) Character processor
JPH05250352A (en) Character processing method
JPH0366157B2 (en)
JP2698348B2 (en) Character processor
JP3035126B2 (en) Information processing device
JP3046429B2 (en) Document processing apparatus and document processing method
JPS6355097B2 (en)
JP2831318B2 (en) Editing device
JP3347350B2 (en) Document processing apparatus and document processing method
JPH0447865B2 (en)
JP3143503B2 (en) Image processing method and apparatus