JPH0820863B2 - Display control method - Google Patents
Display control methodInfo
- Publication number
- JPH0820863B2 JPH0820863B2 JP58197760A JP19776083A JPH0820863B2 JP H0820863 B2 JPH0820863 B2 JP H0820863B2 JP 58197760 A JP58197760 A JP 58197760A JP 19776083 A JP19776083 A JP 19776083A JP H0820863 B2 JPH0820863 B2 JP H0820863B2
- Authority
- JP
- Japan
- Prior art keywords
- page
- line
- cursor
- display
- processing
- 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 - Lifetime
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
- Input From Keyboards Or The Like (AREA)
- Processing Or Creating Images (AREA)
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】 [技術分野] 本発明は、オペレータからの編集処理の指示に基づい
て新たな頁の領域の先頭を示すパターンを表示できる表
示制御方法に関する。Description: TECHNICAL FIELD The present invention relates to a display control method capable of displaying a pattern indicating the beginning of a new page area based on an instruction for editing processing from an operator.
[従来技術] 一般に文書を表示する装置において、その文書を印刷
した場合にどこで2枚の紙に分断されるかを知るため
に、印刷されるデータの行数をカウントして区切り毎に
通し番号を付与する技術(特開昭53−64427)そして、
1歩進んで、表示上で頁を認識できる様に、点を表示す
る技術(特開昭53−145424)や表示上で自動的にページ
のナンバリングを行う技術(特開昭55−147775)が存在
します。又、表示の際に頁の末尾行と頁の先頭行の間に
頁間区切りパターン(例えば点線)を表示することが行
なわれている(特開昭56−96325)。[Prior Art] Generally, in a device for displaying a document, in order to know where the document is divided into two sheets when printed, the number of lines of data to be printed is counted and a serial number is set for each delimiter. Technology to be imparted (JP-A-53-64427)
One step forward, technology for displaying dots so that the page can be recognized on the display (JP-A-53-145424) and technology for automatically numbering pages on the display (JP-A-55-147775) Exists In addition, at the time of display, a page separation pattern (for example, a dotted line) is displayed between the last line of the page and the first line of the page (Japanese Patent Laid-Open No. 56-96325).
しかし、この様な表示では頁の区切りであるというこ
とが未経験なオペレータにはわからないため、頁の区切
りを明確に理解させるために文書の頁の回りをある種の
枠で囲うことが考えられる。すなわち、頁の先頭行の上
に頁頭区切りパターン、頁の末尾行の下に頁末区切りパ
ターン、左マージン上に頁左区切りパターン、右マージ
ン上に頁右区切りパターンをそれぞれ表示し、あたかも
画面上に用紙が存在し、その上に文書の文字が載ってい
るかの様に表示を行なうのである。However, inexperienced operators do not know that such a display is a page break, so it is possible to enclose the page of the document with a certain frame in order to clearly understand the page break. That is, a page break pattern is displayed above the top line of the page, a page break pattern is below the end line of the page, a page break pattern is on the left margin, and a page break pattern is on the right margin. The display is as if there is a sheet of paper on which the letters of the document are placed.
しかし、文書の頁の回りをある種の枠で囲う、囲わな
いに係わらず、隣接する頁の存在を、いつ可視化表示さ
せるかについては、使用者の使い勝手を考慮するとまだ
まだ改良の余地があると考えられる。However, there is still room for improvement regarding when to visualize the existence of adjacent pages regardless of whether they are surrounded by a certain frame around the page of the document or not. Conceivable.
[目的] 以上の点に鑑み、本発明の目的は、文書情報の最終頁
の領域の末尾を示す頁末パターンを表示している状態に
おいて、オペレータからの編集指示に基づく編集処理に
伴い前記最終頁の次に新たな頁を作る必要があるか否か
を判定し、 前記最終頁の次に新たな頁を作る必要がないと判定さ
れる場合は、前記最終頁に対する前記編集処理の結果を
表示し、 前記最終頁の次に新たな頁を作る必要があると判定さ
れる場合は、前記頁末パターンの表示位置の後に続い
て、前記最終頁に続く前記新たな頁の領域の先頭を示し
前記頁末パターンとは異なる形状の頁頭パターンを表示
するように制御するので、オペレータは編集に応じて表
示される頁末及び頁頭を正確に意識することができる表
示制御方法を提供することにある。[Purpose] In view of the above points, an object of the present invention is to perform the above-mentioned final processing according to the editing process based on the editing instruction from the operator in the state where the page end pattern indicating the end of the area of the last page of the document information is displayed. Determine whether it is necessary to create a new page next to the page, if it is determined that it is not necessary to create a new page next to the final page, the result of the editing process for the final page If it is determined that a new page needs to be created next to the final page, the area of the new page following the final page is displayed after the display position of the page end pattern. Since the control is performed so as to display a page head pattern having a shape different from that of the page end pattern, the operator provides a display control method capable of accurately recognizing the page end and page head displayed according to the editing. Especially.
第1図は本発明の1実施例を説明するブロック図であ
る。FIG. 1 is a block diagram illustrating one embodiment of the present invention.
図示の構成において、CPUは、マイクロプロセッサで
あり、文字処理のための演算、論理判断等を行ない、ア
ドレスバスAB、コントロールバスCB、データバスDBを介
して、それらのバスに接続された各構成要素を制御す
る。In the illustrated configuration, the CPU is a microprocessor, performs arithmetic operations for character processing, logical decisions, etc., and is connected to these buses via an address bus AB, a control bus CB, and a data bus DB. Control elements.
アドレスバスABはマイクロプロセッサCPUの制御の対
称とする構成要素を指示するアドレス信号を転送する。
コントロールバスCBはマイクロプロセッサCPUの制御の
対象とする各構成要素のコントロール信号を転送して印
加する。データバスDBは各構成機器相互間のデータの転
送を行なう。The address bus AB transfers address signals which indicate components which are symmetrical to the control of the microprocessor CPU.
The control bus CB transfers and applies the control signals of the respective components to be controlled by the microprocessor CPU. The data bus DB transfers data between the constituent devices.
つぎに、ROMは、読出し専用の固定メモリであり、第
9図〜第26図を示す如き制御の手順等を記憶している。Next, the ROM is a read-only fixed memory, and stores the control procedure and the like as shown in FIGS. 9 to 26.
また、ROMは、1ワード16ビットの構成の書込み可能
のランダムアクセスメモリであって、各構成要素からの
各種データの一時記憶に用いる。The ROM is a writable random access memory having a structure of 1 word and 16 bits, and is used for temporary storage of various data from each component.
KBはキーボードであって、アルファベットキー、平仮
名キー、片仮名キー等の文字記号入力キー、及び、漢字
部始め/終り指定キー等の本文字処理処置に対する各種
機能を指示するための各種のファンクションキーを備え
ている。The KB is a keyboard, and has various types of function keys such as alphabet keys, hiragana keys, katakana keys, etc., and various function keys for instructing various functions for this character processing procedure such as Kanji part start / end specification keys. I have it.
ファンクションキーは例えば、カーソル移動キー(カ
ーソル上移動キー,下移動キー,右移動キー,左移動キ
ー)行削除キー,行挿入キー,改頁キー,CRキー,等を
含むものである。The function keys include, for example, cursor movement keys (cursor up movement key, down movement key, right movement key, left movement key) line delete key, line insertion key, page break key, CR key and the like.
DOCMEMはKB(キーボード)から入力された文字データ
をドキュメントデータとして保存するバッファである。DOCMEM is a buffer that saves character data input from the KB (keyboard) as document data.
第4図(a)は、文字列『ABC………』データがバッ
ファDOCMEMに格納されている様子を示す。第4図(a)
に示すデータの行と列との関係は、後述するCRTに表示
するにあたっての行と列との関係とを対応ずけるため
に、便宜的に示したものである。FIG. 4 (a) shows how the character string "ABC ... ......" Data is stored in the buffer DOCMEM. Figure 4 (a)
The relationship between the rows and the columns of the data shown in (1) is shown for convenience in order to correspond the relationship between the rows and the columns in displaying on the CRT described later.
LCONTREGは、バッファDOCMEMに蓄えられているデータ
の特性を行単位に示す。複数のレジスタ(レジスタ及び
フラッグ)から成るメモリである。第4図(b)にLCON
TREGの例を示す。第1W(W=Word)目は、バッファDOCM
EM内に格納されているデータの全行数EODを示すもので
あり、第4図(a)の例においては4となる。第2W(W
=Word)目以降は、各行を後述する表示装置CRTに文章
データを表示するにあたって、文書枠(先頭枠FGH又は
末尾枠FGE)を表示するか否かを各行ごとに示すフラッ
グFGである。LCONTREG indicates the characteristics of the data stored in the buffer DOCMEM in units of lines. It is a memory composed of a plurality of registers (registers and flags). LCON is shown in Fig. 4 (b).
An example of TREG is shown. The first W (W = Word) is the buffer DOCM
This shows the total number of rows EOD of the data stored in the EM, which is 4 in the example of FIG. 4 (a). 2nd W (W
= Word) and subsequent lines are flag FGs for indicating, for each line, whether or not to display a document frame (first frame FGH or last frame FGE) when displaying text data on a display device CRT which will be described later.
CURRFGはバッファDOCMEM内のデータを編集するにあた
って、その場所を特定するためのポインタである。第5
図(a)で示すようにX座標(CURSOR_X)Y座標(CURS
OR_Y)の2W(W=Word)から成る。CURRFG is a pointer for identifying the location when editing the data in the buffer DOCMEM. Fifth
As shown in Figure (a), X coordinate (CURSOR_X) Y coordinate (CURSOR_X)
OR_Y) 2W (W = Word).
CURDISPREGはポインタCURREGによって示されるバッフ
ァDOCMEM内のデータの位置を後述する表示装置CRTの表
示位置に対応させて表現したものである。第5図(b)
に示すようにX座標(CURSOR_DISPLAY_X)とY座標(CU
RSOR_DISPLAY_Y)の2W(W=Word)から成る。後述する
ように表示装置CRTには、頁の概念を明確にするため
に、文書データと共にページ枠を表示するためにX座標
CURSOR_DISPLAY_X,Y座標CURSOR_DISPLAY_Yの値と、CURS
OR_X,CURSOR_Yの値とは異なる。本例においては、CURSO
R_DISPLAY_Xは、CURSOR_Xより1大きい。それは文書枠
として左枠を余分に(文書データより余分に)表示する
ためである。CURDISPREG represents the position of the data in the buffer DOCMEM indicated by the pointer CURREG in association with the display position of the display device CRT described later. Fig. 5 (b)
X coordinate (CURSOR_DISPLAY_X) and Y coordinate (CU
2W (W = Word) of RSOR_DISPLAY_Y). As will be described later, the display device CRT has an X coordinate for displaying a page frame together with document data in order to clarify the concept of a page.
CURSOR_DISPLAY_X, Y coordinates CURSOR_DISPLAY_Y value and CURS
It is different from the value of OR_X and CURSOR_Y. In this example, CURSO
R_DISPLAY_X is 1 larger than CURSOR_X. This is because the left frame is additionally displayed as a document frame (extra to the document data).
又CURSOR_DISPLAY_YはCURSOR_Yより1大きい。それ
は、先頭からカーソルの位置までの間に先頭枠を1行余
分に表示するためである。Also, CURSOR_DISPLAY_Y is one greater than CURSOR_Y. This is because the leading frame is displayed with one extra line between the beginning and the position of the cursor.
CHADISPBUFは、後述する表示装置CRTに文書データを
表示するための表示データを文字コード又はパターンコ
ードとして格納するバッファである。第2図(a)は、
バッファCHADISPBUFに格納されているデータの様子を示
すものであり、又後述する表示装置CRTに表示されるデ
ータの様子を示すものでもある。又第4図(a)に示す
バッファDOCMEM 第4図(b)に示すLCONTREG 第5図(a)に示すCURREG 第5図(b)に示すCURDISPREG のデータ内容を本実施例の装置で表示するにあたって造
り上げられるバッファCH ADISPBUFの内容を示すもので
ある。CHADISPBUF is a buffer that stores display data for displaying document data on a display device CRT described later as a character code or a pattern code. FIG. 2 (a)
It shows the state of the data stored in the buffer CHADISPBUF, and also shows the state of the data displayed on the display device CRT described later. Further, the buffer DOCMEM shown in FIG. 4 (a), LCONTREG shown in FIG. 4 (b), CURREG shown in FIG. 5 (a), and the data content of CURDISPREG shown in FIG. 5 (b) are displayed by the apparatus of this embodiment. This shows the contents of the buffer CH ADISP BUF that has been created.
バッファDOCMENの第1行目は、メモリLCONTREGの第1
行目に先頭枠フラッグがセットされているため第2図
(b)と(f)とに展開されバッファCHADISPBUFの第1
行目と第2行目となる。The first line of the buffer DOCMEN is the first line of the memory LCONTREG
Since the first frame flag is set on the line, it is expanded to FIGS. 2 (b) and (f) and the first of the buffer CHADISPBUF is expanded.
It becomes the second line and the second line.
同様にバッファDOCMEMの第2行目は第2図(g)にな
り、バッファCHADISPBUFの第3行目となる。Similarly, the second line of the buffer DOCMEM is shown in FIG. 2 (g) and the third line of the buffer CHADISPBUF.
同様にバッファDOCMEMの第3行目は第2図(c)と
(d)とに展開されバッファCHADISPBUFの第4行目第5
行目となる次第である。なお枠組を表示するにあたって
は以上説明したことから類推できるように本実施例にお
いては、罫線の部分パターンを、文字コードと同様にコ
ード化し、その部分パターンを連なぎ合わせることによ
り、枠組を作成するようにしたものである。第3図に文
字パターン及び罫線の部分パターンを示す。Similarly, the third line of the buffer DOCMEM is expanded to FIGS. 2 (c) and (d), and the fourth line of the buffer CHADISPBUF is fifth.
It depends on the line. In displaying the framework, as can be inferred from the above description, in the present embodiment, the partial pattern of the ruled line is coded in the same manner as the character code, and the partial pattern is connected to form the framework. It was done like this. FIG. 3 shows a partial pattern of character patterns and ruled lines.
CRT CONTはCURDISPREGに示される内容によりカーソル
を表示し又バッファCHADISPBUFの内容により文字パター
ンを表示させる役割を担う。第2図(a)にCRTに表示
されている文字データ及び枠組の様子を示す。又CRTCON
Tは、文字パターンを表示するためのパターンメモリを
有しており、バッファCHADISPBUF内のコードデータをパ
ターンに変換する機能も有しているものである。The CRT CONT plays a role of displaying a cursor according to the contents shown in CURDISPREG and displaying a character pattern according to the contents of the buffer CHADISPBUF. FIG. 2 (a) shows the state of the character data and the frame displayed on the CRT. Also CRTCON
T has a pattern memory for displaying a character pattern and also has a function of converting code data in the buffer CHADISPBUF into a pattern.
また、CRTは陰極線管等を用いた表示装置であり、そ
の表示装置CRTにおけるドット構成の表示パターンおよ
びカーソルの表示をCRTコントローラで制御する。Further, the CRT is a display device using a cathode ray tube or the like, and the display pattern of the dot configuration and the display of the cursor on the display device CRT are controlled by the CRT controller.
かかる各構成要素からなる本発明文字処理装置におい
ては、キーボードKBからの各種の入力に応じて作動する
ものであって、キーボードKBからの入力が供給される
と、まず、インタラプト信号がマイクロプロセサCPUに
送られ、そのマイクロプロセサCPUがROM内に記憶してあ
る各種の制御信号を読出し、それらの制御信号に従って
各種の制御が行われる。In the character processing device of the present invention comprising the above-mentioned respective components, it operates in response to various inputs from the keyboard KB, and when an input from the keyboard KB is supplied, first, an interrupt signal is sent to the microprocessor CPU. The microprocessor CPU reads out various control signals stored in the ROM, and various controls are performed in accordance with these control signals.
次に本実施例における処理構成を第6図〜第8図を用
い説明する。Next, the processing configuration in this embodiment will be described with reference to FIGS.
第6図に本実施例における編集処理の処理構成を示
す。編集処理は,キーボードKBからのデータの取込みを
行うキー取込処理1,キー取込み処理1によって取込んだ
データを処理分類し,各種編集処理への橋渡しをするキ
ー分類処理2,かかるキー分類処理2により分類された各
種処理を実際に実行する各種編集処理3,そして各種編集
処理3により成された編集の結果を表示する表示処理4
とから成る。FIG. 6 shows a processing configuration of editing processing in this embodiment. The editing process is a key fetching process 1 for fetching data from the keyboard KB, a key sorting process 2 for classifying the data fetched by the key fetching process 1, and a bridge to various editing processes, such a key sorting process. Various editing processes 3 that actually execute the various processes classified by 2, and display process 4 that displays the results of the editing performed by the various editing processes 3.
It consists of and.
第7図に各種編集処理の処理構成を示す。 FIG. 7 shows the processing configuration of various editing processes.
各種編集処理3は、カーソルを移動させるためのカー
ソル移動処理3、1,行挿入を行うための行挿入処理3、
2,行削除を行うための行削除処理3、3,改頁の入力を処
理する改頁処理3、4,文字の入力を処理する文字入力処
理3、5,CR(改行)の入力を処理するためのCR入力処理
3、6,その他各種編集処理3、7(例えば文字削除,文
字挿入)から成る。The various editing processes 3 include a cursor moving process 3 for moving the cursor 1, a line inserting process 3 for inserting a line,
2, line deletion processing for deleting lines 3, 3, page break processing for processing page break input 3, 4, character input processing for character input processing 3, 5, CR (line feed) input processing The CR input processing 3 and 6 and other various editing processing 3 and 7 (for example, character deletion and character insertion).
各処理への引渡しは、前述のキー分類処理によって決
定される。The delivery to each process is determined by the key classification process described above.
各種編集処理3は更に3、1〜3、7までの処理に共
通して使用される下記処理を含む。The various editing processes 3 further include the following processes commonly used in the processes of 3, 1, 3 and 7.
頁単位にバッファDOCMEM内に格納される情報を拡張さ
せる頁追加処理3、0、1頁単位にDOCMEM内に格納され
ている情報を減らす頁削除処理3、0、2,頁枠の制御を
行う行制御処理3、0、3から成る。Page addition processing for expanding information stored in the buffer DOCMEM in page units 3, 0, 1 Page deletion processing for reducing information stored in DOCMEM in page units 3, 0, 2, controlling page frames It consists of line control processes 3, 0 and 3.
次に本発明と直接関係する処理構成について、第9図
〜第26図の動作フローを用い、更に具体的に説明する。Next, the processing configuration directly related to the present invention will be described more specifically using the operation flows of FIGS. 9 to 26.
本実施例におけるメイン処理である。 This is the main processing in this embodiment.
編集処理0を第9図を参照して詳細に説明する。 The editing process 0 will be described in detail with reference to FIG.
(1)キー取込処理1 キーボードからの入力データを取込む。入力データが
無い時は入力されるまで待つ。(1) Key acquisition processing 1 Input data from the keyboard is acquired. If there is no input data, wait until it is input.
(2)キー分類処理2 キー取込み処理によって取込んだデータに従って各種
編集処理への振分けを行う。(2) Key classification processing 2 According to the data acquired by the key acquisition processing, it is distributed to various editing processing.
(3)各種編集処理3 カーソルの移動,行挿入,行削除,改頁,文字入力,C
R入力等の各種編集処理を行う。(3) Various editing processes 3 Cursor movement, line insertion, line deletion, page break, character input, C
Performs various editing processes such as R input.
(4)表示処理4 各種編集処理を行った結果を表示する。処理後ステッ
プ(1)に進む。(4) Display process 4 The results of various editing processes are displayed. After the processing, proceed to step (1).
以上各ステップの説明から明らかなように編集処理0
は種々編集処理を行うにあたってのメインルーチンを形
成するものである。As is clear from the above description of each step, the editing process 0
Forms a main routine for performing various editing processes.
次にカーソル移動処理3、1の1つであるカーソル下
移動処理3、1、2について更に第10図を参照して詳細
に説明する。Next, the cursor down movement processing 3, 1, 2 which is one of the cursor movement processings 3, 1 will be described in detail with reference to FIG.
(1)カーソルY座標のチェック3、1、2、1 カーソルが文書データ末の行(文末行)を指している
か否かを調べる。もし、カーソルが文末行にあるなら
ば、即ちCURSOR_Yと全行数EODとの値が等しいならばス
テップ(2)に進む。否ならステップ(3)に進む。(1) Cursor Y coordinate check 3, 1, 2, 1 It is checked whether or not the cursor points to the last line of document data (sentence end line). If the cursor is on the last line of the sentence, that is, if the values of CURSOR_Y and the total number of lines EOD are equal, the process proceeds to step (2). If not, go to step (3).
(2)頁追加処理3、0、1 文末行の下に更に1頁分のデータ領域の作成を行う。(2) Page addition processing 3, 0, 1 A data area for one page is created under the last line of the sentence.
(3)カーソルY座標の更新3、1、2、3 カーソルY座標を1増加させる。(CUROS_Y) 以上各ステップの説明から明らかなようにカーソル下
移動処理3、1、2は、文章中の1文字を特定している
カーソルを1行下に移動させる働きをしている。その時
もし下に移動できるエリアが存在しない時、即ちカーソ
ルが文書データの末尾行に存在している時は、更に下に
1頁分のデータエリアを作成してから、カーソルを1行
下に移動させるようにしている。(3) Update cursor Y coordinate 3, 1, 2, 3 Increase cursor Y coordinate by 1. (CUROS_Y) As is clear from the above description of each step, the cursor down movement processing 3, 1 and 2 has a function of moving the cursor identifying one character in the sentence down one line. At that time, if there is no area that can be moved down, that is, if the cursor is in the last line of the document data, create a data area for one page further below and move the cursor down one line. I am trying to let you.
次に各種編集処理3の1つである行挿入処理3、2に
ついて第11図を参照して詳細に説明する。Next, the line insertion processing 3 and 2, which is one of the various editing processing 3, will be described in detail with reference to FIG.
(1)データの移動3、2、1 カーソルが存在している行以降に存在する全てのデー
タを1行分下に移動させる。移動させたあとにはスペー
スを埋める。(スペースの代わりに空白を示すコードで
あっても良い) (2)全行数EODの更新3、2、2 全行数の値を1増加させる。(1) Move data 3, 2, 1 Moves all data existing after the line where the cursor is located down by one line. After moving, fill the space. (A code indicating a blank may be used instead of a space.) (2) Update of the total number of rows EOD 3, 2, 2 Increase the value of the total number of rows by 1.
(3)行制御処理3、0、3 文書データを表示装置CRTに表示させるにあたって、
文書データの頁枠をどのように表示すべきかを決定し、
その結果をLCONTREG,にセットする。この処理はステッ
プ(1),(2)において全行数の変化が起こったため
LCONTREGの再設定が必要になったために行うものであ
る。(3) Line control processing 3, 0, 3 When displaying document data on the display device CRT,
Decide how to display the page frame of the document data,
The result is set in LCONTREG ,. This process is because the change in the total number of lines occurred in steps (1) and (2).
This is done because it is necessary to reset LCONTREG.
以上各ステップの説明から明らかなように行挿入処理
ではカーソルが存在している位置に1行分の空白行を行
挿入し、枠組表示のための基礎データを作成する。As is clear from the above description of each step, in the line insertion processing, a blank line for one line is inserted at the position where the cursor exists, and basic data for frame display is created.
このことにより、行挿入行の枠組表示は次のようにな
る。As a result, the frame display of the inserted line becomes as follows.
即ち行挿入の結果、新しいページが1行造られたな
ら、最終頁としての新しい枠組が作成されることにな
り、新しいページが作成されなかったなら、最終頁の枠
組は、以前の枠組を広げる結果となる。別の言い方をす
ると、行挿入を繰り返すと、その結果新たな最終ページ
が造られるまでは、最終頁の枠組が少しずつ広げられて
いくことになり、新たな最終ページが造られると新たな
枠組が造られて、後述する表示処理により表示装置CRT
上に表示されることになる。That is, if a new page is created as a result of the line insertion, a new framework is created as the final page, and if the new page is not created, the framework of the final page expands the previous framework. Will result. In other words, if line insertion is repeated, the framework of the final page will be gradually expanded until a new final page is created, and when a new final page is created, a new framework will be created. The display device CRT
Will be displayed above.
次に行削除処理3、3について第12図を参照して詳細
に説明する。Next, the line deletion processes 3 and 3 will be described in detail with reference to FIG.
(1)データ移動処理3、3、1 カーソルが存在している行の次の行から文書データの
最後の行までを1行分上移動させる。(1) Data move processing 3, 3, 1 Move one line up from the line next to the line where the cursor is present to the last line of the document data.
移動させたあとの文書データ最終行には、スペースを
埋める。(スペースコードの代わりに空白を示すコード
であっても良い) (2)行制御処理3、0、3 LCONTREGの再設定を行う。A space is filled in the last line of the document data after the movement. (A space code may be used instead of the space code.) (2) Line control processing 3, 0, 3 LCONTREG is reset.
(3)頁削除処理3、0、2 文書データ末に1頁分の空白頁が存在していたなら、
その頁の削除を行う。(3) Page deletion processing 3, 0, 2 If there is a blank page for one page at the end of the document data,
Delete the page.
以上各ステップの説明から明らかなように、行削除処
理においては、カーソルが存在している行を1行分削除
し、それ以降の文書データを1行分全て上方へ移動させ
ることを行う。その結果もし文書データ末に、スペース
コードのみから成る頁あるいは空白を示すコードのみか
ら成る頁が存在したならば、その頁を削除する。従って
行削除を繰り返し行っていくと、ある時点で文書データ
末に存在するページが無くなり、表示上もその時点で最
終頁枠が無くなることになる。As is clear from the above description of each step, in the line deletion processing, the line in which the cursor is present is deleted by one line, and the document data after that is moved by one line for all lines. As a result, if there is a page consisting only of space codes or a page consisting only of codes indicating blanks at the end of the document data, that page is deleted. Therefore, when the line deletion is repeated, the page existing at the end of the document data disappears at a certain point, and the final page frame also disappears at that point in the display.
なお、ここで文書データが2頁以上存在していること
を仮定しているのは言うまでもない。Needless to say, it is assumed here that the document data exists in two or more pages.
行削除処理の他の実施例を第13図を用い説明する。 Another embodiment of the line deletion process will be described with reference to FIG.
(1)データ移動処理3、3、1 第12図3、3、1データ移動処理と同じ (2)全行数の更新3、3、2 全行数EODを1減ずる。(1) Data movement process 3, 3, 1 Same as FIG. 3, 3, 1 data movement process (2) Update of total number of rows 3, 3, 2 Total row number EOD is decreased by 1.
ここでカーソルは文書末尾行に存在していないことを
仮定している。Here, it is assumed that the cursor does not exist in the last line of the document.
(3)行制御処理3、0、3 LCONTREGの再設定を行う。(3) Reset the line control process 3, 0, 3 LCONTREG.
以上の各ステップの説明から明らかなように行削除を
繰り返すことによって次第に最終頁枠が小さくなり、最
後には、最終頁枠が削減し、更に行削除を繰り返すと、
新たな最終頁枠が、再び小さくなっていくことになる。As is clear from the above description of each step, the final page frame is gradually reduced by repeating the line deletion, and finally, the final page frame is reduced, and the line deletion is further repeated.
The new final page frame will become smaller again.
次に改頁処理3、4を第14図を参照して詳細に説明す
る。Next, the page break processing 3 and 4 will be described in detail with reference to FIG.
(1)改頁コード書込み処理3、4、1 カーソルが存在する位置に対応するDOCMEMの位置に改
頁コードを書き込む (2)CR処理3、6 カーソルを次の行の先頭に移動させる。(1) Page break code writing process 3, 4, 1 Write the page break code at the position of DOCMEM corresponding to the position where the cursor exists. (2) CR process 3, 6 Move the cursor to the beginning of the next line.
その時もし、現在のカーソルの位置が文書データ末尾
であり次の行が存在していなかったなら新たな1頁分を
文書データ末に追加した上で、カーソルの移動を行う。At that time, if the current cursor position is at the end of the document data and the next line does not exist, a new page is added to the end of the document data and the cursor is moved.
以上の各ステップの説明で明らかなように文書データ
エリアの追加を頁単位で行うことにより、オペレアータ
にとって編集処理がよりわかりやすく行うことができる
ように構成されている。As is clear from the above description of each step, by adding the document data area in page units, the editing process can be performed more easily for the operator.
次に文字入力装置3、5について第15図を参照して詳
細に説明する。Next, the character input devices 3 and 5 will be described in detail with reference to FIG.
(1)カーソル位置チェック3、5、1 カーソルが文書末尾に存在していたならステップ
(2)に否ならステップ(3)に進む。(1) Cursor position check 3, 5, 1 If the cursor is at the end of the document, go to step (2). If not, go to step (3).
(2)頁追加処理3、10、1 頁単位の文書データの追加を行う。(2) Page addition processing Document data is added in units of pages 3, 10, and 1.
(3)文字書込処理3、5、3 カーソルが存在している位置に入力された文字データ
を書き込む (4)カーソル歩進処理3、5、4 カーソルを歩進させる。ここで言う歩進とは、カーソ
ルがX座標の末尾即ち右端に存在している時は、カーソ
ルを次行の左端に移動(CURSOR_X 1,CURSOR_Y CURSOR_Y+1)することを意味し、他の位置に存在して
いる時は、カーソルを右に1つ移動(CURSOR_X CURSOR_X+1)を意味している。(3) Character writing process 3, 5, 3 Write the character data input at the position where the cursor exists. (4) Cursor advance process 3, 5, 4 Cursor is advanced. In this case, stepping means that when the cursor is at the end of X coordinate, that is, at the right end, the cursor is moved to the left end of the next line (CURSOR_X 1, CURSOR_Y CURSOR_Y + 1), and when it is in another position, move the cursor one position to the right (CURSOR_X CURSOR_X + 1) is meant.
以上各ステップの説明から明らかなように文字入力が
あった時、もし文書データエリアの拡張が必要になった
なら、頁単位に拡張して、処理を行うよう構成してい
る。As is clear from the above description of each step, when there is a character input, if it is necessary to expand the document data area, the document data area is expanded page by page and the processing is performed.
次にCR処理につき第16図を参照して詳細に説明する。 Next, the CR processing will be described in detail with reference to FIG.
(1)カーソル位置チェック3、6、1 カーソルが文書データ最終行に存在しているならばス
テップ(2)に進む。否ならステップ(3)に進む (2)頁追加処理3、0、1 頁単位に文書データエリアの追加を行う。(1) Cursor position check 3, 6, 1 If the cursor is on the last line of the document data, go to step (2). If not, the process proceeds to step (3). (2) Page addition processing The document data area is added in units of 3, 0 and 1 pages.
(3)カーソル改行処理3、6、3 カーソルを次行の先頭(左端)に移動する。(3) Cursor line feed processing 3, 6, 3 Moves the cursor to the beginning (left end) of the next line.
(CURSOR_X 1,CURSOR_Y CURSOR_Y+1) 以上の説明から明らかなように、CR処理においては、
文書データの拡張が必要な時は頁単位に拡張することに
より処理を行うよう構成している。(CURSOR_X 1, CURSOR_Y CURSOR_Y + 1) As is clear from the above description, in CR processing,
When it is necessary to expand the document data, the processing is performed by expanding the page data in page units.
次に頁追加処理3、0、1について第17図を参照して
詳細に説明する。Next, the page addition processing 3, 0 and 1 will be described in detail with reference to FIG.
(1)行追加処理3、0、1、1 文書データ末尾に複数行のスペースコード又は、空白
を示すコードを付け加え、その行数分だけ全行数ODの値
を更新する。(1) Line addition processing 3, 0, 1, 1 A space code of a plurality of lines or a code indicating a blank is added to the end of the document data, and the value of the total number of lines OD is updated by the number of lines.
ここで付け加える行数とは、少なくとも1頁分以上と
推定される行数とする。例えば一般的に1頁28行から成
るとするならば約50行分付け加えれば十分である。The number of lines added here is the number of lines estimated to be at least one page or more. For example, if one page consists of 28 lines, it is sufficient to add about 50 lines.
(2)行制御処理3、0、3 LCOUTREGの設定を行ない、ステップ(1)において追
加した行に対しても、頁の概念を明白にする。(2) Line control processing 3, 0, 3 LCOUTREG is set, and the concept of page is clarified for the line added in step (1).
(3)頁末サーチ処理3、0、1、3 ステップ(1)において追加した行の先頭から順に頁
末行をサーチする。サーチにあたっては、LCONTREGの各
頁の末尾枠FGを参照することで容易に実現できる。(3) End-of-Page Search Process 3, 0, 1, 3 The end-of-page line is searched in order from the beginning of the line added in step (1). The search can be easily implemented by referring to the end frame FG of each page of LCONTREG.
(4)全行数再設定処理3、0、1、4 ステップ(3)において最初に見つけた頁末行の行ナ
ンバーを全行数EODにセットする。(4) Total line number resetting processing 3, 0, 1, 4 The line number of the last page found first in step (3) is set to the total line number EOD.
以上各ステップの説明から明らかなように本処理によ
り容易に1頁分の空白行(スペース行)を文書末尾に追
加することができる。As is clear from the above description of each step, the blank line (space line) for one page can be easily added to the end of the document by this process.
次に頁削除処理3、0、2について第18図を参照して
詳細に説明する。Next, the page deletion processes 3, 0 and 2 will be described in detail with reference to FIG.
(1)最終頁の認識処理3、0、2、1 最終頁がDOCMEM内の何行目から何行目までに対応する
かを調べる。(1) Last page recognition process 3, 0, 2, 1 Check which line in DOCMEM corresponds to the last page.
調べるにあたってはLCONTREGを参照する。 See LCONTREG to find out.
頁の単位は各行ごとにセットリセットされた先頭枠FG
及び末尾枠FGにより頁の単位を知ることができる。即ち
各頁は先頭枠FGがセットされている行を先頭行とし、末
尾枠FGがセットされている行を末尾行とするようにして
形成されている。従って最終頁を認識するためにはLCON
TREGの先頭枠FGを文書データ末尾行よりサーチし、初め
て先頭枠FGがセットされている位置を見つけるとそれよ
り下の行が最終頁と認識することができる。The page unit is the first frame set and reset for each line FG
Also, the unit of page can be known by the end frame FG. That is, each page is formed such that the line in which the head frame FG is set is the head line and the line in which the tail frame FG is set is the tail line. Therefore, to recognize the last page, LCON
When the first frame FG of TREG is searched from the last line of the document data and the position where the first frame FG is set is found for the first time, the line below it can be recognized as the last page.
(2)最終頁内チェック3、0、2、2 最終頁に有効データが存在しているか否かをチェック
する。(2) Check in last page 3, 0, 2, 2 Check whether valid data exists in the last page.
本実施例においては有効データとはスペースコード以
外のコードを指すものとするが、他の定義であっても良
い。In this embodiment, the valid data refers to a code other than the space code, but it may have another definition.
例えば空白コード以外のコードといった具合である。 For example, a code other than the blank code.
(3)有効データ存在チェック3、0、2、3 ステップ(2)の結果有効データが存在していれば、
本処理(頁削除処理)を終了する。否ならステップ
(4)に進む。(3) Valid data existence check 3, 0, 2, 3 If valid data exists as a result of step (2),
This process (page deletion process) ends. If not, proceed to step (4).
(4)全行数削限処理3、0、2、4 ステップ(1)により認識された頁を全て削除するた
めに全行数EODを変更する。変更する値は、削除するペ
ージの1つ前の行の値である。(4) Total line number reduction processing 3, 0, 2, 4 Change the total line number EOD in order to delete all the pages recognized in step (1). The value to be changed is the value of the line immediately preceding the page to be deleted.
(5)CURSOR_Yの更新 もし、ステップ(4)の結果カーソルが文書領域外に
はみ出してしまうことがあるのを防ぐために本処理を行
う。(5) Update of CURSOR_Y This process is performed to prevent the cursor from protruding outside the document area as a result of step (4).
即ちCURSOR_Yの値が全行数EODより大きくなってしま
ったらCURSOR_Yの値をEODの値に変更を行う。That is, when the value of CURSOR_Y becomes larger than the total number of rows EOD, the value of CURSOR_Y is changed to the value of EOD.
以上の各ステップから明らかなように頁削除処理によ
り文書データ末に存在する空白の頁を頁単位に削除する
ことができる。As is apparent from the above steps, blank pages existing at the end of the document data can be deleted page by page by the page deletion process.
次に行制御処理3、0、3を第19図を参照して詳細に
説明する。Next, the row control processes 3, 0 and 3 will be described in detail with reference to FIG.
(1)カレント パラメーターの初期値設定3、0、
3、1 TLN 0 (文書データ内行カウンタ) CLN 0 (頁内行カウンタ) TLNは、文書データとしての行カウンタを意味するも
のであり、CLNは、頁内の行カウンタを意味する。(1) Initial setting of current parameters 3, 0,
3, 1 TLN 0 (Document data inline counter) CLN 0 (in-page line counter) TLN means a line counter as document data, and CLN means an in-page line counter.
(2)文書データ内行カウンタTLN インクリメント
3、0、3、2 (3)頁内行カウンタ決定処理3、0、3、3 文書データ内の第TLN行目が該当ページの第何行目に
相当するかを計算し、頁内行カウンタCLNに値をセット
する。(2) Document data inner line counter TLN increment 3, 0, 3, 2 (3) Page inner line counter determination processing 3, 0, 3, 3 The TLNth line in the document data corresponds to the number line of the corresponding page. Is calculated and a value is set in the page inner line counter CLN.
(4)先頭枠決定処理3、0、3、4 ステップ(3)により決定された頁内行カウンタCLN
の値に従って当該行か頁先頭か否かを判断し、LCONTREG
の先頭枠FGのセット,リセットを行う (5)末尾枠決定処理3、0、3、5 ステップ(3)により決定された頁内行カウンタCLN
の値,等を参考にして該当行が頁最終行か否かを判断
し、LCONTREGの末尾枠FGのセット,リセットを行う。(4) Leading frame determination processing 3, 0, 3, 4 In-page counter CLN determined in step (3)
Depending on the value of, it is judged whether the line or the top of the page, and LCONTREG
Set and reset the top frame FG of (5) End frame determination process 3, 0, 3, 5 Step within line page CLN determined by step (3)
Refer to the value of, etc. to determine whether the corresponding line is the last line of the page, and set or reset the last frame FG of LCONTREG.
(6)終了判定3、0、3、6 文書データの全行数に対しLCONTREGの設定が終了した
か否かを判定する。(6) End judgment 3, 0, 3, 6 It is judged whether or not the setting of LCONTREG has been completed for all the number of lines of document data.
終了しているなら本処理(行制御処理3、0、3)は
終了する。否ならステップ(2)に進む。If completed, this process (line control processes 3, 0, 3) ends. If no, go to step (2).
以上各ステップの説明から明らかなように行制御処理
によりLCONTREGの設定を行うことができる。As is clear from the above description of each step, LCONTREG can be set by the line control process.
次に頁内行カウンタ決定処理3、0、3、3について
第20図を参照して詳細に説明する。Next, the in-page counter determination processing 3, 0, 3, 3 will be described in detail with reference to FIG.
(1)頁内行カウンタチェック3、0、3、3、1頁内
行カウンタCLNの値が0であるならステップ(5)に進
む。否ならステップ(2)に進む。(1) Page in-line counter check 3, 0, 3, 3, 1 If the value of the page in-line counter CLN is 0, the process proceeds to step (5). If no, go to step (2).
(2)改頁行チェック3、0、3、3、2 第CLN行即ち今決定しようとしている行の前行(第TLN
−1行)か改頁行であるか否かを判定する。(2) Page break line check 3, 0, 3, 3, 2 CLN line, that is, the line immediately preceding the line to be decided (TLN line)
-1 line) or a page break line.
もし改頁行であるならステップ(5)に進む。 If it is a page break line, proceed to step (5).
否ならステップ(3)に進む。ここで改頁行とは行内
に改頁コードを含む行のことである。If not, go to step (3). The page break line is a line including a page break code in the line.
(3)頁最終行チェック3、0、3、3、3 第CLN行即ち今決定しようとしている行の前行(第TLN
−1行)が頁最終行か否かをチェックする。(3) Page last line check 3, 0, 3, 3, 3 CLN line, that is, the line immediately preceding the line to be decided (TLN
-1 line) is the last line of the page.
本実施例においては、あらかじめ定めておいた値(1
頁の行数)にCLNの値が一致するならば頁最終行である
と判断するものとする。In this embodiment, the value (1
If the CLN value matches the number of lines on the page), it is determined to be the last line on the page.
判断の結果頁最終行であったらステップ(5)に進
む。否ならステップ(4)に進む。If the result of the determination is the last line of the page, go to step (5). If not, proceed to step (4).
(4)頁内行カウンタアップ処理3、0、3、3、4 頁内行カウンタCLNの値を1増加させる。然る後頁内
行カウンタ決定処理を終了する。(4) In-page counter increment processing 3, 0, 3, 3, 4, increments the value of the in-page counter CLN by 1. Then, the in-page counter determination process for the page ends.
(5)頁内行カウンタ初期値セット処理3、0、3、
3、5 頁内行カウンタCLNを1にセットする。(5) In-page counter initial value setting processing 3, 0, 3,
Set page in-line counter CLN to 1.
以上各ステップの説明から明らかなように頁内行カウ
ンタ決定処理により第TLN行の頁内行数を知ることがで
きる。As is clear from the above description of the steps, the number of in-page lines of the TLNth line can be known by the in-page line counter determination processing.
次に先頭枠決定処理3、0、3、4について第21図を
参照して詳細に説明する。Next, the leading frame determination processing 3, 0, 3, 4 will be described in detail with reference to FIG.
(1)頁内行カウンタチェック3、0、3、4、1 頁内行カウンタCLN=1であるならばステップ(2)
に進む。(1) Page in-line counter check 3, 0, 3, 4, 1 If page in-line counter CLN = 1, step (2)
Proceed to.
否ならステップ(3)に進む。 If not, go to step (3).
(2)先頭枠FGセット3、0、3、4、2 第TLN行は、頁の先頭行であると判断し、該当行の先
頭枠FGをセットする。然る後先頭枠決定処理を終了す
る。(2) Leading frame FG set 3, 0, 3, 4, 2 It is determined that the TLN line is the leading line of the page, and the leading frame FG of the corresponding line is set. After that, the leading frame determination process ends.
(3)先頭枠FGリセット3、0、3、4、3 第TLN行は頁先頭行でないと判断し、該当行の先頭枠F
Gをリセットする。(3) Leading frame FG reset 3, 0, 3, 4, 3 It is judged that the TLN line is not the leading line of the page, and the leading frame F of the corresponding line
Reset G.
以上各ステップの説明から明らかなように本処理にお
いて第TLN行の先頭枠フラッグの決定を行うことができ
る。As is clear from the above description of each step, the leading frame flag of the TLN-th line can be determined in this processing.
次に末尾枠決定処理について第22図を参照して説明す
る。Next, the end frame determination process will be described with reference to FIG.
(1)改頁行チェック3、0、3、6、1 該当行(第TLN行)か改頁行であるか否かをチェック
する。改頁行であるならステップ(5)に進む。(1) Page break line check 3, 0, 3, 6, 1 Checks whether the line (TLN line) is a page break line. If it is a page break line, proceed to step (5).
否ならステップ(2)に進む。 If no, go to step (2).
(2)頁最終行チェック3、0、3、6、2 該当行(第TLN行)か頁最終行か否かをチェックす
る。(2) Page last line check 3, 0, 3, 6, 2 Check whether the line (TLN line) concerned or the page last line.
ここで頁最終行とは、頁内行カウンタCLNの値があら
かじめ定められた値(1頁の行数)と一致していること
を言う。Here, the last line of the page means that the value of the in-page line counter CLN coincides with a predetermined value (the number of lines on one page).
頁最終行であるならステップ(5)に進む。否ならス
テップ(3)に進む。If it is the last line of the page, proceed to step (5). If not, go to step (3).
(3)文書末尾行チェック3、0、3、6、3 該当行(第TLN行)が文書末尾行か否かチェックす
る。ここで文書末尾行とは、文書データ内行カウンタTL
Nの値が全行数EODの値と一致していることを言う。(3) Document end line check 3, 0, 3, 6, 3 It is checked whether the corresponding line (TLN line) is the document end line. Here, the last line of the document is the document data inline counter TL.
We say that the value of N matches the value of the total number of rows EOD.
文書末尾行ならステップ(5)に否ならステップ
(4)に進む。If it is the last line of the document, go to step (5). If not, go to step (4).
(4)末尾枠FGリセット3、0、3、6、4 該当行(第TLN行)が頁末行ではないと判断されるた
め末尾枠FGをリセットする。然る後末尾枠決定処理を終
了する。(4) End frame FG reset 3, 0, 3, 6, 4 It is determined that the corresponding line (line TLN) is not the end line of the page, so the end frame FG is reset. After that, the end frame determination process is ended.
(5)末尾枠FGセット3、0、3、6、5 該当行(第TLN行)が頁末行であると判断されるため
末尾枠FGをセットする。(5) End frame FG set 3, 0, 3, 6, 5 Set the end frame FG because the relevant line (line TLN) is judged to be the end line of the page.
以上各ステップの説明で明らかなように、本処理によ
り第TLN行に対応するLCONTREGのセットを行うことがで
きる。As is clear from the above description of each step, this processing can set LCONTREG corresponding to the TLN line.
次に表示処理4について第23図を参照して説明する。 Next, the display processing 4 will be described with reference to FIG.
(1)画面クリア4、1 CHADISPBUFに全てスペースコードを埋める。このこと
によりCRT画面のクリアを行う。(1) Clear the screen 4, fill all the space codes in 1 CHADISPBUF. This clears the CRT screen.
(2)カーソル表示4、2 カーソルの表示を行う。(2) Cursor display 4, 2 Displays the cursor.
(3)文字表示4、3 DOCMEM内のデータの表示を行う。(3) Character display 4, 3 Display data in DOCMEM.
以上のステップによりカーソル及び文字データの表示
を行う。The cursor and character data are displayed through the above steps.
次にカーソル表示処理4、2につき第24図を参照して
説明する。Next, the cursor display processing 4 and 2 will be described with reference to FIG.
(1)X座標決定処理4、2、1 CURSOR_Xの値に1を加えたものをCURSOR_DISPLAY_Xの
値とする。(1) X-coordinate determination processing 4, 2, 1 The value of CURSOR_X is obtained by adding 1 to the value of CURSOR_X.
これは、左枠を表示するために表示上対応する位置が
1だけ右方向にずれるためである。This is because the corresponding position on the display is shifted to the right by 1 to display the left frame.
(2)枠行数算出処理4、2、2 第1行目からカーソルが存在する行までの間に存在す
る枠行数の総数を算出する。(2) Frame Line Number Calculation Processing 4, 2, 2 The total number of frame lines existing from the first line to the line where the cursor is present is calculated.
(3)Y座標決定処理4、2、3 ステップ(2)で求めた枠行数とCURSOR_Yの値との和
をCURSOR_DISPLAY_Yの値とする。(3) Y coordinate determination processing 4, 2, 3 The sum of the number of frame lines obtained in step (2) and the value of CURSOR_Y is set as the value of CURSOR_DISPLAY_Y.
以上の各ステップによりCURSOR_X,CURSOR_Yの値に対
応するCURSOR_DISPLAY_X,CURSOR_DISPLAY_Yの値を求め
ることができ、CURSOR_DISPLAY_X,とCURSOR_DISPLAY_Y
で示されるCRT上の位置にカーソルが表示される。By the above steps, the values of CURSOR_DISPLAY_X and CURSOR_DISPLAY_Y corresponding to the values of CURSOR_X and CURSOR_Y can be calculated, and CURSOR_DISPLAY_X and CURSOR_DISPLAY_Y
The cursor is displayed at the position on the CRT indicated by.
次に枠行数算出処理4、2、2について第25図を参照
して説明する。Next, the frame line number calculation processing 4, 2 and 2 will be described with reference to FIG.
(1)先頭枠行数算出処理4、2、3、1 先頭行からカーソルが存在している行までの先頭枠の
総数を求める。(1) Leading frame line number calculation processing 4, 2, 3, 1 The total number of leading frames from the leading line to the line where the cursor is located is calculated.
総数はLCONTREGの先頭枠FGがセットされている行数を
求めることにより決定される。The total number is determined by finding the number of lines in which the first frame FG of LCONTREG is set.
(2)末尾枠行数算出処理4、2、3、2 先頭行からカーソルが存在する行の手前の行までの末
尾枠の総数を求める。(2) End frame line number calculation processing 4, 2, 3, 2 The total number of end frames from the first line to the line before the line where the cursor is located is calculated.
総数はLCONTREGの末尾枠FGがセットされている行数を
求めることにより決定される。The total number is determined by finding the number of lines in which the last frame FG of LCONTREG is set.
(3)全枠行数算出処理4、2、3、3 ステップ(1),(2)により求めた行数を和を求め
ることにより全枠行数を決定する。(3) Total frame line number calculation processing 4, 2, 3, 3 The total frame line number is determined by summing the line numbers obtained in steps (1) and (2).
以上のステップにより先頭からカーソルが存在する行
までに存在する枠行数を求めることができる。Through the above steps, the number of frame lines existing from the beginning to the line where the cursor is present can be obtained.
次に文字表示処理4、3を第26図を参照して説明す
る。Next, the character display processes 4 and 3 will be described with reference to FIG.
(1)カレントパラメータの初期値設定処理4、3、1 TLN 0(文書データ内行カウンタ) (2)文書データ内行カウンタ インクリメント 4、
3、2 TLN TLN+1 (3)先頭枠表示チェック4、3、3 第TLN行をCRTに表示するにあたって先頭枠を表示すべ
きか否か、LCONTREGを参照して調べる。(1) Current parameter initial value setting process 4, 3, 1 TLN 0 (Document data inline counter) (2) Document data inline counter increment 4,
3, 2 TLN TLN + 1 (3) Leading frame display check 4, 3, 3 Check whether or not the leading frame should be displayed when displaying the TLN line on the CRT by referring to LCONTREG.
先頭枠を表示する必要が有るならステップ(4)に進
む。否ならステップ(5)に進む。If it is necessary to display the top frame, proceed to step (4). If not, proceed to step (5).
(4)先頭枠表示処理4、3、4 先頭枠を表示するために、第2図(b)に示す先頭枠
パターンコード列をCHADISP_BUFに1行分書き込む。(4) Leading frame display processing 4, 3, 4 In order to display the leading frame, the leading frame pattern code string shown in FIG. 2B is written into CHADISP_BUF for one line.
(5)行表示処理4、3、5 第TLN行目の行データ(文字コード列)をCHADISP_BUF
に書き込む。(5) Line display process 4, 3, 5 CHADISP_BUF the line data (character code string) of the TLNth line
Write in.
その際行データの先頭と末尾には、枠組みの側端を表
現するパターンコードを付加する。At that time, a pattern code representing the side edge of the framework is added to the beginning and the end of the row data.
例えば第2図(f),(g)に示すごとくである。 For example, as shown in FIGS. 2 (f) and 2 (g).
(6)末尾枠表示チェック4、3、6 第TLN行をCRTに表示するにあたって末尾枠を表示すべ
きか否かLCONTREGを参照して調べる。(6) End frame display check 4, 3, 6 Check whether to display the end frame when displaying the TLN line on the CRT by referring to LCONTREG.
末尾枠を表示する必要があるならステップ(7)に進
む。否ならステップ(8)に進む。If it is necessary to display the end frame, proceed to step (7). If not, proceed to step (8).
(7)末尾枠表示4、3、7 末尾枠を表示するために第2図(d)に示す末尾枠パ
ターンコード列をCHADISPBUFに1行分書込む。(7) End frame display 4, 3, 7 In order to display the end frame, one line of the end frame pattern code string shown in FIG. 2 (d) is written in CHADISPBUF.
(8)処理終了チェック4、3、8 TLNの値がEODの値に等しいならば、即ち全行数につい
て表示を終了したならば、文字表示処理4、3を終了す
る。否ならステップ(2)に進む。(8) Processing end check 4, 3, 8 If the value of TLN is equal to the value of EOD, that is, if display of all lines is completed, character display processing 4, 3 is ended. If no, go to step (2).
以上の処理により頁枠表示された形でDOCMEM内のデー
タの表示を完了する。Through the above processing, the display of the data in DOCMEM is completed in the form displayed in the page frame.
本実施例においてDOCMEMの構造即ちデータフォーマッ
トは、1行を1レコードとする固定長レコードから成る
ものであるが、1行を可変長で表現する場合、あるい
は、行の概念が明白でない場合(シリアルデータフォー
マット)等においても、何ら発明の主旨をそこなうもの
ではない。In the present embodiment, the structure of DOCMEM, that is, the data format, is composed of fixed-length records with one record as one record. However, when one record is represented by a variable length, or when the concept of a record is not clear (serial The data format) does not defeat the purpose of the invention.
以上説明したように頁単位に文書データエリアを制御
する手段を設けることにより、オペレータに理解しやす
い、表示制御方法を実現することができる。As described above, by providing the means for controlling the document data area page by page, it is possible to realize a display control method that is easy for the operator to understand.
以上述べた如く文書データエリアを拡大する必要性が
発生した時、 例えば文書データの末尾行にカーソルが存在している
場合にカーソルを更に下に下げようとした時, 文書データの末尾行にカーソルが存在している場合に
改行キーを打鍵した時, 任意の位置に行挿入を実行しようとした時, その他、文書データエリアを拡大する必要性が発生す
るあらゆる時, にオペレータは、頁を意識することが可能となる。When it is necessary to enlarge the document data area as described above, for example, when the cursor is located at the end line of the document data and the cursor is further lowered, the cursor is located at the end line of the document data. When the line feed key is typed in the presence of a line, an attempt is made to insert a line at an arbitrary position, or any other time when it is necessary to expand the document data area, the operator must be aware of the page. It becomes possible to do.
[効果] 以上、詳述した様に、本発明により、文書情報の最終
頁の領域の末尾を示す頁末パターンを表示している状態
において、オペレータから編集指示に基づく編集処理に
伴い前記最終頁の次に新たな頁を作る必要があるか否か
を判定し、 前記最終頁の次に新たな頁を作る必要がないと判定さ
れる場合は、前記最終頁に対する前記編集処理の結果を
表示し、 前記最終頁の次に新たな頁を作る必要があると判定さ
れる場合は、前記頁末パターンの表示位置の後に続い
て、前記最終頁に続く前記新たな頁の領域の先頭を示し
前記頁末パターンとは異なる形状の頁頭パターンを表示
するように制御するので、オペレータは編集に応じて表
示される頁末及び頁頭を正確に意識することができる表
示制御方法を提供することが可能となった。[Effect] As described above in detail, according to the present invention, in the state where the end-of-page pattern indicating the end of the area of the final page of the document information is displayed, the final page is accompanied by the editing process based on the editing instruction from the operator. It is determined whether a new page needs to be created next to, and when it is determined that a new page does not need to be created after the final page, the result of the editing process for the final page is displayed. However, when it is determined that a new page needs to be created next to the last page, it indicates the beginning of the area of the new page following the last page, following the display position of the page end pattern. Since the control is performed so as to display a page head pattern having a shape different from the page end pattern, the operator provides a display control method capable of accurately recognizing the page end and page head displayed according to the editing. Became possible.
第1図は本発明による1実施例を示すブロック図, 第2図(a)〜(g)はバッファCHADISPBUFを説明する
図, 第3図はパターンを示す図, 第4図(a)はバッファDOCMEMの説明図, 第4図(b)はバッファLCONTREGの説明図, 第5図(a)はポインタCURREGの説明図, 第5図(b)はポインタCURDISPREGの説明図, 第6図は編集処理を説明する図, 第7図は各種編集処理を説明する図, 第8図はカーソル移動処理を説明する図, 第9図〜第26図は本発明の実施例を説明する制御手順を
示す図, DOCMEM……バッファ LCONTREG……バッファ CURREG……ポインタFIG. 1 is a block diagram showing an embodiment according to the present invention, FIGS. 2 (a) to 2 (g) are diagrams for explaining a buffer CHADISPBUF, FIG. 3 is a diagram showing a pattern, and FIG. 4 (a) is a buffer. FIG. 4 (b) is an explanatory diagram of the buffer LCONTREG, FIG. 5 (a) is an explanatory diagram of the pointer CURREG, FIG. 5 (b) is an explanatory diagram of the pointer CURDISPREG, and FIG. 6 is an editing process. FIG. 7, FIG. 7 is a diagram for explaining various editing processes, FIG. 8 is a diagram for explaining the cursor moving process, and FIGS. 9 to 26 are diagrams for showing a control procedure for explaining the embodiment of the present invention. , DOCMEM …… buffer LCONTREG …… buffer CURREG …… pointer
フロントページの続き (56)参考文献 特開 昭56−153443(JP,A) 特開 昭57−44185(JP,A) 特開 昭58−163990(JP,A)Continuation of front page (56) Reference JP-A-56-153443 (JP, A) JP-A-57-44185 (JP, A) JP-A-58-163990 (JP, A)
Claims (2)
パターンを表示している状態において、 前記文書情報に対するオペレータからの編集指示に基づ
く編集処理に伴い前記最終頁の次に新たな頁を作る必要
があるか否かを判定し、 前記最終頁の次に新たな頁を作る必要がないと判定され
る場合は、前記最終頁に対する前記編集処理の結果を表
示し、 前記最終頁の次に新たな頁を作る必要があると判定され
る場合は、前記頁末パターンの表示位置の後に続いて、
前記最終頁に続く前記新たな頁の領域の先頭を示し前記
頁末パターンとは異なる形状の頁頭パターンを表示する
ように制御することを特徴とする表示制御方法。1. In a state in which a page end pattern indicating the end of the area of the last page of the document information is being displayed, a new page is added next to the last page in association with the editing process based on the editing instruction from the operator for the document information. It is determined whether a page needs to be created, and if it is determined that a new page is not required to be created next to the final page, the result of the editing process for the final page is displayed, and the final page is displayed. If it is determined that a new page needs to be created next to, after the display position of the page end pattern,
A display control method characterized by controlling so as to display a head of a region of the new page following the last page and having a shape different from the end pattern of the page.
集指示は、前記最終頁における改行指示或いは前記最終
頁におけるカーソルの前記頁末パターンを越える移動の
指示であることを特徴とする特許請求の範囲第1項記載
の表示制御方法。2. An editing instruction to the document information from an operator is a line feed instruction on the last page or an instruction to move the cursor on the last page beyond the page end pattern. The display control method according to item 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58197760A JPH0820863B2 (en) | 1983-10-21 | 1983-10-21 | Display control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58197760A JPH0820863B2 (en) | 1983-10-21 | 1983-10-21 | Display control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6088993A JPS6088993A (en) | 1985-05-18 |
JPH0820863B2 true JPH0820863B2 (en) | 1996-03-04 |
Family
ID=16379890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58197760A Expired - Lifetime JPH0820863B2 (en) | 1983-10-21 | 1983-10-21 | Display control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0820863B2 (en) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5696325A (en) * | 1979-12-28 | 1981-08-04 | Fujitsu Ltd | Sentence writing device having page boundary display function |
JPS58163990A (en) * | 1982-03-19 | 1983-09-28 | インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション | Word processor |
-
1983
- 1983-10-21 JP JP58197760A patent/JPH0820863B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPS6088993A (en) | 1985-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4912669A (en) | Document-editing system | |
EP0051857A1 (en) | Method for editing document | |
US5493639A (en) | Drawing processing with flexible accomodation of character strings | |
US4717911A (en) | Technique for chaining lines of a document together to facilitate editing or proofreading | |
JP3083314B2 (en) | Document processing method and apparatus | |
US4953108A (en) | Document processor having a document composition function | |
JP3105895B2 (en) | Document processing device | |
JP2740575B2 (en) | Character processor | |
US5727224A (en) | Document image processor for inserting and editing bracket symbols and associated text | |
JPH0820863B2 (en) | Display control method | |
JPS60222270A (en) | Table data insertion printer | |
JP2723109B2 (en) | Image processing method | |
JPH0522933B2 (en) | ||
JP7580195B2 (en) | Image data creation method and program | |
JP2698345B2 (en) | Document processing method | |
JPH0969098A (en) | Document preparation device | |
JP3402759B2 (en) | Document processing apparatus and document processing method | |
JPH08293033A (en) | Information processor | |
JP2612402B2 (en) | Display control method | |
JP2889052B2 (en) | Character typeface processing method and apparatus | |
JPH0769898B2 (en) | Document processor | |
JP2851840B2 (en) | Document processing device | |
JPH0734197B2 (en) | Information processing equipment | |
JPH03269665A (en) | Original character drawing/character font control system | |
EP0360501A2 (en) | A text-editing apparatus with real time display function |