JPH0559466B2 - - Google Patents

Info

Publication number
JPH0559466B2
JPH0559466B2 JP58118115A JP11811583A JPH0559466B2 JP H0559466 B2 JPH0559466 B2 JP H0559466B2 JP 58118115 A JP58118115 A JP 58118115A JP 11811583 A JP11811583 A JP 11811583A JP H0559466 B2 JPH0559466 B2 JP H0559466B2
Authority
JP
Japan
Prior art keywords
contents
chapter
text
buffer
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 - Lifetime
Application number
JP58118115A
Other languages
Japanese (ja)
Other versions
JPS6011917A (en
Inventor
Koji Fukunaga
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 JP58118115A priority Critical patent/JPS6011917A/en
Publication of JPS6011917A publication Critical patent/JPS6011917A/en
Priority to US07/124,368 priority patent/US4792919A/en
Publication of JPH0559466B2 publication Critical patent/JPH0559466B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 (技術分野) 本発明は、文字処理方法に関し、特に文章部分
とその文章に対応した目次とを作成・編集が可能
な文字処理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a character processing method, and more particularly to a character processing method capable of creating and editing a text portion and a table of contents corresponding to the text.

(従来技術) 従来、この種の文字処理方法では目次と文章部
分とを有する文章の作成および編集を行おうとす
る場合には、一般に目次とその目次に対応した文
章とを各々別々に作成し編集していた。そのた
め、文章の内容の修正や変更等を行つても、目次
の内容が自動的に変更される様な機能はなく、目
次も入手を介して別に修正や変更等を行う必要が
あつた。
(Prior Art) Conventionally, in this type of character processing method, when attempting to create and edit a text that has a table of contents and a text part, it is generally necessary to separately create and edit the table of contents and the text corresponding to the table of contents. Was. Therefore, even if the contents of the text were corrected or changed, there was no function that would automatically change the contents of the table of contents, and it was necessary to separately correct or change the table of contents through acquisition.

(目的) 本発明は、上述の点に鑑みて、本文文章の作成
が終了したことに基づいて自動的に目次が作成さ
れ、また本文文章の編集が終了したことに基づい
て自動的に目次が修正変更されるようにした文字
処理方法を提供することを目的とする。
(Purpose) In view of the above points, the present invention automatically creates a table of contents based on the completion of the creation of the main text, and automatically creates a table of contents based on the completion of editing the main text. The object of the present invention is to provide a character processing method that can be modified and modified.

さらに本発明は、文章本文の修正・変更に従つ
て目次も文章本文の修正・変更に対応して自動的
に修正、変更するようにした文字処理方法を提供
することを目的とする。
A further object of the present invention is to provide a character processing method in which the table of contents is automatically revised or changed in accordance with the correction or change of the text.

(実施例) 以下、図面を参照して本発明を詳細に説明す
る。
(Example) Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は本発明の文字処理方法を適用した文字
処理装置の構成の一例を示し、ここでCPUはマ
イクロプロセツサであり、中央処理装置としての
演算や論理判断等を行い、バスBUSを介して各
構成要素を制御する。このバスBUSはデータバ
ス、コントロールバスおよびアドレスバスからな
る。KBはキーボードであり、このキーボード
KB上には、マイクロプロセツサCPUに指令を与
えるための文字およびフアンクシヨンキー群を配
置する。KBCはキーボードKBのコントローラで
あり、キーボードKBからの入力信号に対する処
理を実行する。ROMはリードオンリメモリであ
り、以下で説明する文字入力や編集処理の制御手
順等を記憶する。CRTは陰極線管等を用いた表
示装置であり、本例で作成編集される文章や目次
等を表示する。CRTCはCRTコントローラであ
り、表示装置CRTはこのコントローラCRTCに
より制御されて表示を行う。PRTはインクジエ
ツトプリンタ等のプリンタであり、作成した文章
を記録紙に印字する際に使用する。DISKはフロ
ツピデイスクや光デイスク等のデイスク(デイス
クメモリ)であり、作成した文章の保存に用い
る。RAMは書込み可能のランダムアクセスメモ
リであり、作成編集した文章の一時記憶バツフ
ア、目次のデータの一時記憶バツフアの他、目次
と目次データ作成のためのレジスタ群とを含む。
FIG. 1 shows an example of the configuration of a character processing device to which the character processing method of the present invention is applied. Here, the CPU is a microprocessor that performs calculations, logical judgments, etc. as a central processing unit, and performs operations via the bus BUS. control each component. This bus BUS consists of a data bus, a control bus, and an address bus. KB is the keyboard and this keyboard
On the KB, characters and function keys for giving commands to the microprocessor CPU are arranged. KBC is a controller for the keyboard KB, and executes processing on input signals from the keyboard KB. The ROM is a read-only memory and stores control procedures for character input and editing processing, etc., which will be explained below. The CRT is a display device using a cathode ray tube or the like, and displays the text, table of contents, etc. created and edited in this example. CRTC is a CRT controller, and the display device CRT is controlled by this controller CRTC to perform display. PRT is a printer such as an inkjet printer, and is used to print the created text on recording paper. A DISK is a disk (disk memory) such as a floppy disk or optical disk, and is used to save created texts. The RAM is a writable random access memory, and includes a temporary storage buffer for created and edited texts, a temporary storage buffer for table of contents data, and a group of registers for creating a table of contents and table of contents data.

第2図に第1図のランダムアクセスメモリ
RAMの詳細な構成例を示す。ここで、DBUFは
文章作成編集用のバツフアであり、文章をコード
等で記憶する。IBは目次用のバツフアであり、
目次の出力内容を記憶する。IPBUFは文章作
成・編集時の各章の目次情報を記憶し、目次バツ
フアIBの目次はこのバツフアIPBUFの各章の目
次情報に従つて作成する。
Figure 2 shows the random access memory in Figure 1.
A detailed example of RAM configuration is shown below. Here, DBUF is a buffer for creating and editing sentences, and stores sentences as codes or the like. IB is a buffer for the table of contents,
Memorize the output contents of the table of contents. The IPBUF stores the table of contents information of each chapter when creating and editing texts, and the table of contents of the table of contents buffer IB is created according to the table of contents information of each chapter of this buffer IPBUF.

PGCNTは各章のページ数を記憶するレジスタ
であり、CPCONTは作成・編集中の章の番号を
示すレジスタである。
PGCNT is a register that stores the number of pages in each chapter, and CPCONT is a register that indicates the number of the chapter being created/edited.

CPIPTは、現在処理中のバツフアIPBUFの目
次情報テーブルの数を示すレジスタである。
CPTNOは先頭の章から積算した各章のページ数
の総ページ数を示すレジスタであり、目次作成処
理の時に使用する。IBPは目次作成処理の時に、
1行分の目次を目次バツフアIBにセツトする時
のバツフアIBのアドレス位置を示すレジスタで
ある。LBは目次作成処理において目次の内容と
なる1行分の文字列を含んでいる目次1行バツフ
アである。DBUFPは文章バツフアポインタであ
り、キーボードKBからのキー入力にしたがつて
文章バツフアDBUFに文字コードを格納する時
にバツフアDBUFのその格納すべきアドレス位
置を指す。このポインタDBUFPの値は1文字分
の格納を行うに従つて、1文字分づつバツフア
DBUFの後方アドレスを指すように変更する。
NDBUFPは現在処理中の章の次の章の文章バツ
フアDBUF内の先頭位置を示すレジスタである。
CPIPT1は上述のレジスタCPIPTと同様のレジ
スタであり、レジスタCPIPTの代りに一時的に
使用する。
CPIPT is a register indicating the number of table of contents information tables of buffer IPBUF currently being processed.
CPTNO is a register that indicates the total number of pages of each chapter accumulated from the first chapter, and is used during table of contents creation processing. When IBP creates a table of contents,
This register indicates the address position of the buffer IB when setting one line of the table of contents in the table of contents buffer IB. LB is a one-line table of contents buffer that contains one line of character strings that are the contents of the table of contents in the table of contents creation process. DBUFP is a text buffer pointer, which points to the address position in the buffer DBUF where a character code is to be stored when storing a character code in the text buffer DBUF in accordance with a key input from the keyboard KB. The value of this pointer DBUFP is buffered one character at a time as one character is stored.
Change it to point to the backward address of DBUF.
NDBUFP is a register indicating the beginning position in the text buffer DBUF of the chapter next to the chapter currently being processed.
CPIPT1 is a register similar to the register CPIPT described above, and is used temporarily in place of register CPIPT.

第3図は第2図の目次用のバツフアIBの詳細
な構成例を示す。第3図で示すようにこのバツフ
アIBはIB1〜IB240までのアドレス位置に2
40文字分のコードを蓄えることの出来るバツフ
アメモリであり、それぞれの各バツフア領域には
JISコードの様な文字コードを格納する。この目
次バツフアIBの記憶内容を表示装置CRTの画面
に表示することにより、目次を表示画面上で見る
ことが可能となる。
FIG. 3 shows a detailed configuration example of the buffer IB for the table of contents shown in FIG. As shown in Figure 3, this buffer IB is placed at address positions IB1 to IB240.
It is a buffer memory that can store codes for 40 characters, and each buffer area has
Stores character codes such as JIS codes. By displaying the stored contents of this table of contents buffer IB on the screen of the display device CRT, the table of contents can be viewed on the display screen.

第4図は第2図の目次1行バツフアLBの詳細
な構成例を示す。第4図で示すように、このバツ
フアLBはLB1〜LB20までのアドレス位置に
20文字分のコードを蓄えることの出来るバツフア
であり、バツフアIBにセツトする目次の1行分
(1章分)の文字列を蓄える。すなわち、目次作
成処理時において、目次データバツフアIPBUF
の目次情報テーブルの各章の内容に従つて、1行
分の目次をこの目次1行バツフアLBに作成する。
FIG. 4 shows a detailed configuration example of the one-line table of contents buffer LB shown in FIG. As shown in Figure 4, this buffer LB is located at address positions from LB1 to LB20.
This is a buffer that can store 20 characters of code, and stores the character string for one line (one chapter) of the table of contents set in buffer IB. In other words, during the table of contents creation process, the table of contents data buffer IPBUF
A one-line table of contents is created in this table of contents one-line buffer LB according to the contents of each chapter in the table of contents information table.

第5図は第1図のキーボードKB上の各種キー
の詳細な配置構成例を示し、ここでKB1は文字
や数字等のデータを入力するためのデータ入力キ
ー群、KB2は同一のキーボードKB上に設けら
れたフアンクシヨンキー群である。さらに、ED
は文章作成開始を指定するキーであり、このキー
EDを押下した後に、新しい文章の作成が可能な
状態となる。EDEは文章作成終了を指定するキ
ーであり上述のキーEDを押下してからこのEDE
を押下するまでの間において文章作成機能を働か
せることが出来る。REは再編集を指定するキー
であり、このキーREを押下した後に、すでに作
成された文章の呼出しを行い文章の修正または変
更を行うことが出来る。REEは再編集終了を指
定するキーであり、上述のキーREを押下した後、
このキーREEを押下するまでの間に文章の修
正・変更機能を働かせることが出来る。
Figure 5 shows a detailed example of the arrangement of various keys on the keyboard KB in Figure 1, where KB1 is a group of data input keys for inputting data such as letters and numbers, and KB2 is a group of data input keys on the same keyboard KB. This is a group of function keys provided in the . Furthermore, ED
is a key that specifies the start of text creation, and this key
After pressing ED, you will be able to create a new sentence. EDE is the key to specify the end of text creation, and after pressing the above key ED, press this EDE key.
You can use the text creation function until you press . RE is a key for specifying re-editing, and after pressing this key RE, it is possible to call up the already created text and modify or change the text. REE is a key that specifies the end of re-editing, and after pressing the key RE mentioned above,
You can use the text correction/change function until you press this key REE.

CPSは章の始まりを指定するキーであり、章が
変更する時にこのCPSを押下して新しい章の内容
の入力を実行する。CPEは章の終りを指定する
キーであり、1つの章が終了して次の新しい章の
内容を入力する前にこのキーCPEを押下して章
の終りを指定する。よつてキーCPSからキー
CPEまでの間に各章の作成編集修正を行うこと
が出来る。PKはプリント指定キーであり、この
キーPKを押下した後にプリンタPRTのプリント
動作を実行する。
CPS is a key that specifies the start of a chapter, and when the chapter changes, press this CPS to input the contents of the new chapter. CPE is a key for specifying the end of a chapter, and after one chapter ends and before inputting the contents of the next new chapter, press this key CPE to specify the end of the chapter. Yotete key key from CPS
You can create, edit, and revise each chapter until the CPE. PK is a print designation key, and after pressing this key PK, the print operation of the printer PRT is executed.

□→で示すおよび□←で示すPBはそれぞれ再編集
処理中に文章バツフアDBUF中の修正すべき文
字位置にバツフアDBUFのアドレスを指すポイ
ンタDBUFPを後へ1文字分進めるか、あるいは
1文字分前へ進めるかを指示するポインタ移動キ
ーである。INSはバツフアポインタDBUFPの指
している文章バツフアDBUFの位置に1文字の
挿入を指令するキーである。DELはバツフアポ
インタDBUFPの指している文章バツフアDBUF
の位置の1文字の削除を指令するキーであり、キ
ーINSおよびDELはそれぞれ再編集処理のときに
使用する。
The PBs indicated by □→ and □← move the pointer DBUFP pointing to the buffer DBUF address one character backward or one character back to the character position to be corrected in the text buffer DBUF during re-editing processing. This is a pointer movement key that instructs whether to proceed to the next step. INS is a key that commands the insertion of one character at the position of the text buffer DBUF pointed to by the buffer pointer DBUFP. DEL is the sentence buffer DBUF pointed to by the buffer pointer DBUFP.
This key commands the deletion of one character at the position, and the keys INS and DEL are respectively used during re-editing processing.

第6図は第1図の本装置により用紙上に印字作
成された文章とその文章に対する目次の一例を示
し、図示のように、この文章は第1章から第5章
のまでの5章から成り、第1章は題目“はじめ
に”でページ数1、第2章は題目“概要”でぺー
ジ数3、第3章は題目“操作法”でページ数5、
第4章は題目“注意点”でページ数10、第5章は
題目“おわり”でページ数12となつている。以下
ではこの第6図の文章例を用いて行うものとす
る。
Figure 6 shows an example of a sentence printed on a paper by the device shown in Figure 1 and a table of contents for that sentence. Chapter 1 has the title "Introduction" and has 1 page, Chapter 2 has the title "Overview" and has 3 pages, and Chapter 3 has the title "Operation" and has 5 pages.
Chapter 4 has the title ``Notes'' and has 10 pages, and Chapter 5 has the title ``The End'' and has 12 pages. The text example shown in FIG. 6 will be used below.

第7図は第2図のランダムアクセスメモリ
RAM内の文章バツフアDBUFと目次データバツ
フアIPBUFの一例を個別に示し、文章バツフア
DBUFにはキーボードKBから入力したキーのコ
ードを出力対象の文章として保存する。目次デー
タバツフアIPBUFには目次を作成するための情
報、例えば後述の各章の章番号、章の題名、章に
対するバツフアDBUF上のアドレスを示すポイ
ンタ、ページ数とを記憶する。
Figure 7 shows the random access memory in Figure 2.
An example of the text buffer DBUF and table of contents data buffer IPBUF in RAM is shown separately.
The DBUF stores the key code entered from the keyboard KB as the text to be output. The table of contents data buffer IPBUF stores information for creating a table of contents, such as the chapter number of each chapter described later, the title of the chapter, a pointer indicating the address on the buffer DBUF for the chapter, and the number of pages.

第8図および第9図は、第7図に示した文章バ
ツフアDBUF内に作成した文章の一例を示し、
特に第6図に示した文章を文章バツフアDBUF
に格納したときの状態を示す。図示のように、文
章バツフアDBUF上では連続した文字のコード
の列として第1章〜第5章までの文章を格納す
る。
Figures 8 and 9 show examples of sentences created in the text buffer DBUF shown in Figure 7,
In particular, the sentences shown in Figure 6 are written as DBUF.
Shows the state when stored in . As shown in the figure, the sentences from Chapters 1 to 5 are stored on the text buffer DBUF as a string of consecutive character codes.

第10A図は、第7図に示した目次データバツ
フアIPBUFの各章に対する詳細なデータの構造
(フオーマツト)例を示し、目次データバツフア
IPBUFには作成した章の分だけ各章毎にこの目
次情報テーブルを作成する。第10A図に示すよ
うに、目次情報テーブルには章番号、章の題名、
本文先頭ポインタ、およびページ数の記憶領域が
ある。章番号は“1”から始まる整数である。章
の題名は5文字のコードから成り、このコードは
文章中に用いられるコードと同様のJISコード等
を使用する。本文先頭ポインタは文章バツフア
DBUF内の各章の先頭位置を指すポインタであ
り、バツフアメモリDBUF上でのアドレス等を
格納することによつて各章のバツフアDBUF上
の先頭位置が分かる。また、ページ数は各章の中
にあるページ数を示し、1以上の整数値で表わ
す。
Figure 10A shows an example of the detailed data structure (format) for each chapter of the table of contents data buffer IPBUF shown in Figure 7.
In IPBUF, create this table of contents information table for each chapter as many as you have created. As shown in Figure 10A, the table of contents information table includes the chapter number, chapter title,
There is a storage area for the main text pointer and the number of pages. The chapter number is an integer starting from "1". The chapter title consists of a 5-character code, and this code uses the same JIS code as the code used in the text. The pointer to the beginning of the text is a text buffer.
This is a pointer pointing to the starting position of each chapter in the DBUF, and by storing the address etc. on the buffer memory DBUF, the starting position of each chapter on the buffer DBUF can be found. Further, the page number indicates the number of pages in each chapter, and is expressed as an integer value of 1 or more.

この目次情報テーブルの実際の格納例を第10
B図に示す。第10B図は第6図に示した文章の
第1章に対する目次情報テーブルを示しており、
章番号には“1”、章の題名には“はじめに”の
4文字分の文字コード、本文先頭ポインタには
“第1章の先頭位置”、ここでは、第8図に示した
文章バツフアDBUFの先頭を指す。ポインタが
入れられ、また、ページ数には1ページであるこ
とを示す“1”が入る。
The actual storage example of this table of contents information table is shown in the 10th section.
Shown in Figure B. Figure 10B shows the table of contents information table for Chapter 1 of the text shown in Figure 6.
The chapter number is "1", the chapter title is the four-character character code "Introduction", the text start pointer is "Chapter 1 start position", and here the text buffer DBUF shown in Figure 8 is used. Points to the beginning of. A pointer is entered, and "1" indicating one page is entered in the page number.

第11図は第8図および第9図に示すように文
章バツフアDBUFに本文の文章が作成されるに
従つて目次データバツフアIPBUF内に第10B
図のような目次情報テーブルが作られる様子を示
す。第11図では第1章および第2章が作成さ
れ、それぞれ1章および2章に対応した目次情報
テーブルが作られている。
Figure 11 shows that as the main text is created in the text buffer DBUF as shown in Figures 8 and 9, the 10B is added to the table of contents data buffer IPBUF.
This figure shows how a table of contents information table as shown in the figure is created. In FIG. 11, Chapter 1 and Chapter 2 have been created, and table of contents information tables corresponding to Chapter 1 and Chapter 2, respectively, have been created.

第12図は本文の文章作成が終了した時の文章
バツフアDBUF内の文章と目次データバツフア
IPBUF内の目次情報テーブルの状態を示す。
Figure 12 shows the text in the text buffer DBUF and the table of contents data buffer when the main body text creation is completed.
Indicates the status of the table of contents information table in IPBUF.

第13図は文章バツフアDBUF内に本文が作
成され、目次データバツフアIPBUF内に、目次
情報テーブルが全章分作成された後に、目次バツ
フアIB内に作られる目次の基本的なフオーマト
の一例を示す。目次バツフアIBにはその先頭行
に“目次”というコードを入れ、各章に対しては
章番号、題名、およびページ数の順に各章に対し
て1行毎に順次作る。
FIG. 13 shows an example of the basic format of the table of contents created in the table of contents buffer IB after the main text has been created in the text buffer DBUF and table of contents information tables for all chapters have been created in the table of contents data buffer IPBUF. In the table of contents buffer IB, enter the code "Table of Contents" in the first line, and create one line for each chapter in the order of chapter number, title, and page number.

第14図は第3図の目次バツフアIBでの目次
基本フオーマツトの一例を示す。目次バツフア
IBではアドレスIB9およびIB12にそれぞれ
“目”、“次”の文字コードに対応したコードをあ
らかじめ記憶する。本例では作成する目次は、こ
の目次基本フオーマツトに、各章のそれぞれに対
応した章、題名、ページ数をバツフアIBの各章
に対応した位置に格納することにより作成する。
アドレスIB41〜IB60に第1章、以下アドレ
スIB81〜IB100、アドレスIB121〜IB1
40、アドレスIB161〜IB180、アドレス
IB201〜IB220に各章の目次を格納する。
FIG. 14 shows an example of the basic format of the table of contents in the table of contents buffer IB of FIG. Table of contents
In the IB, codes corresponding to the character codes of "eye" and "next" are stored in advance at addresses IB9 and IB12, respectively. In this example, the table of contents is created by storing the chapter, title, and page number corresponding to each chapter in the position corresponding to each chapter in the buffer IB in this table of contents basic format.
Chapter 1 at addresses IB41-IB60, below addresses IB81-IB100, addresses IB121-IB1
40, address IB161-IB180, address
The table of contents of each chapter is stored in IB201 to IB220.

第15図は第6図に示した文章が文章バツフア
DBUF内に作成された後に、目次作成処理によ
り作成され出力すべき目次の内容を示す。
Figure 15 shows that the sentence shown in Figure 6 is a sentence buffer.
Indicates the contents of the table of contents to be created and output by the table of contents creation process after being created in the DBUF.

第16図は目次バツフアIBに文字コードを格
納したときの詳細な格納状態を示し、目次の作成
処理の終了後には第16図に示すように文字コー
ドが目次バツフアIBの該当アドレス上に格納さ
れる。
Figure 16 shows the detailed storage status when character codes are stored in the table of contents buffer IB. After the table of contents creation process is completed, the character codes are stored at the corresponding address in the table of contents buffer IB as shown in Figure 16. Ru.

第17図は目次作成処理の時に作成する1つの
章の目次を1行の目次バツフアLBに格納した状
態例を示す。作成した目次の内容は各章毎に1度
に1行分づつ目次1行バツフアLBに格納し更新
する。この目次1行バツフアLBに目次情報が1
行分出来る毎に、その内容を目次バツフアIBに
転送する。第17図では本文文章の第1章に対応
した1行の目次バツフアLBの内容を示している。
FIG. 17 shows an example of a state in which the table of contents of one chapter created during the table of contents creation process is stored in a one-line table of contents buffer LB. The contents of the created table of contents are stored and updated in the table of contents one-line buffer LB one line at a time for each chapter. There is 1 table of contents information in this table of contents 1 line buffer LB
As each line is completed, the contents are transferred to the table of contents buffer IB. Figure 17 shows the contents of a one-line table of contents buffer LB corresponding to Chapter 1 of the main text.

第18図は第17図に示した1つの章に対する
目次1行バツフアLBの内容が目次バツフアIBに
転送されて格納された様子を示しており、第1章
に対応した目次が作成された様子を示している。
Figure 18 shows how the contents of the one-line table of contents buffer LB for one chapter shown in Figure 17 has been transferred and stored in the table of contents buffer IB, and how the table of contents corresponding to Chapter 1 has been created. It shows.

第19図は本文文章の修正後の文章バツフア
DBUFの本文の内容と目次データバツフア
IPBUFの目次情報テーブルの内容の一例を示す。
第12図に示した文章作成時の本文の内容と目次
情報テーブルとこの第9図とを比較すると、第1
2図では第1章が1ページしかなかつたが、本文
文章の修正作業により第19図の第1章では2ペ
ージになつている。また、第12図の文章作成時
には、第4章として“注意点”という章があつた
が本文文章の修正後の第19図ではその第4章が
削除され、以前の第5章が第4章に変更されてい
る。
Figure 19 shows the text buffer after the main text has been corrected.
DBUF main text content and table of contents data buffer
An example of the contents of the IPBUF table of contents information table is shown below.
Comparing the content of the main text and the table of contents information table shown in Figure 12 when creating the text with this Figure 9, it is found that
In Figure 2, Chapter 1 was only one page, but due to editing work to the main text, Chapter 1 in Figure 19 is now two pages. Also, when creating the text in Figure 12, there was a chapter called "Caution" as Chapter 4, but in Figure 19 after the main text was revised, Chapter 4 was deleted, and the previous Chapter 5 was replaced with Chapter 4. Chapters have been changed.

第20図は第19図で示した修正後の文章と、
目次情報テーブルに従つて変更が行われた後の出
力すべき目次の内容を示している。本文中に行わ
れた修正が、目次に対して自動的に行われ、その
目次内容が現在本文の内容と一致した内容とな
る。
Figure 20 shows the revised text shown in Figure 19,
This shows the contents of the table of contents to be output after changes have been made according to the table of contents information table. Corrections made in the main text are automatically made to the table of contents, and the content of the table of contents matches the current content of the main text.

第21図は第20図で示した目次の内容を格納
した目次バツフアIBの内容を示す。
FIG. 21 shows the contents of the table of contents buffer IB which stores the contents of the table of contents shown in FIG.

第22図〜第33図は第1図の本発明の文字処
理方法を適用した装置の制御手順の一例を示すフ
ローチヤートであり、第22図は文章作成処理と
文章編集処理に移る時の手順を示し、第23図は
文章作成の手順を示し、第24図、第25図、お
よび第26図は目次情報テーブルに従つて目次を
作成する手順を示し、第27図〜第33図は一度
作成された文章に対する再編集する再編集処理の
手順を示している。なお、図中のSTEP1〜
STEP135はフローチヤートの各ステツプを示す。
22 to 33 are flowcharts showing an example of the control procedure of the apparatus to which the character processing method of the present invention shown in FIG. Figure 23 shows the procedure for creating a text, Figures 24, 25, and 26 show the procedure for creating a table of contents according to the table of contents information table, and Figures 27 to 33 show the procedure for creating a text. The procedure for re-editing a created sentence is shown. In addition, STEP 1~ in the diagram
STEP135 shows each step of the flowchart.

次に、第22図〜第33図のフローチヤートを
参照して第1図の本発明の文字処理方法を適用し
た装置の動作例を詳細に説明する。
Next, an example of the operation of the apparatus to which the character processing method of the present invention shown in FIG. 1 is applied will be described in detail with reference to the flowcharts shown in FIGS. 22 to 33.

本例では、新しい文章作成機能と一度作成した
文章に対する再編集機能との2つの機能を有して
おり、それぞれの機能は文章作成開始指定キー
EDあるいは再編集指定キーRE(第5図参照)を
押下することによつて始められる。そこで、第2
2図に示すように、文章作成開始キーEDが押下
された時には(STEP1)、新文章の作成の処理
(以下、文章作成処理と称する)が実行に移され
(STEP2)、再編集指定キーREが押下された時に
は(STEP3)、一度作成された文章についての再
編集の処理(以下、文章再編集処理と称する)が
実行に移される。(STEP4)。
This example has two functions: a new sentence creation function and a re-editing function for sentences once created.
It can be started by pressing ED or the re-editing designation key RE (see Figure 5). Therefore, the second
As shown in Figure 2, when the text creation start key ED is pressed (STEP 1), the process of creating a new text (hereinafter referred to as text creation process) is executed (STEP 2), and the re-editing designation key RE is pressed. When is pressed (STEP 3), re-editing processing (hereinafter referred to as text re-editing processing) for the once created text is executed. (STEP 4).

文章作成開始キーEDが押下された場合には、
文章作成処理ルーチンに移行し、第23図に示す
手順が実行に移される。まず、新文章の作成に先
立つて、文章作成用バツフアDBUFと目次情報
作成用のバツフアIPBUFの全クリアを行い、同
時にポインタDBUFPにバツフアDBUFの先頭位
置のアドレスをセツトする(STEP11)。次に、
各章の番号を決める章番号カウント用のレジスト
CPTNOに、第1章から作成を行うので、初期値
として“1”をセツトする(STEP12)。この章
番号レジスタCPTNOは1つの章の作成が終了す
るごとに、1づつカウントアツプされ、現在作成
中の章の番号を保守する。次に、文章作成の終了
を指令する文章作成終了指定キーEDEが押下げ
られたか否かを判定する(STEP13)。もしこの
指定キーEDEが押下げられた場合には、文章作
成が終了したということであるので、後述の目次
作成処理ルーチンに移り、目次作成処理を実行す
る(STEP14)。この目次作成処理の詳細は後述
の第24図〜第26図のフローチヤートに示す。
When the text creation start key ED is pressed,
The process moves to a text creation processing routine, and the procedure shown in FIG. 23 is executed. First, before creating a new text, the buffer DBUF for text creation and the buffer IPBUF for creating table of contents information are all cleared, and at the same time, the address of the start position of the buffer DBUF is set in the pointer DBUFP (STEP 11). next,
Register for chapter number counting that determines the number of each chapter
Since we will create CPTNO from Chapter 1, set "1" as the initial value (STEP 12). This chapter number register CPTNO is incremented by 1 each time the creation of one chapter is completed, and maintains the number of the chapter currently being created. Next, it is determined whether the text creation end designation key EDE, which commands the end of text creation, has been pressed (STEP 13). If this designation key EDE is pressed, it means that the text creation has been completed, and the process moves to a table of contents creation processing routine to be described later, and executes the table of contents creation processing (STEP 14). Details of this table of contents creation process are shown in flowcharts shown in FIGS. 24 to 26, which will be described later.

一方、文章作成終了指定キーEDEが押下げら
れなかつた時には、章の開始を指令する章開始指
定キーCPSが押下げられたか否かを判定する
(STEP15)。章の始めでは必ずキーCPSが押下げ
られるから、キーCPSが押下げられた場合には、
新しい章に対する目次情報テーブルを新たに追加
作成する(STEP16)。ここで、目次情報テーブ
ルは前述の第10A図に示した内容を有している
ものとする。その際、STEP16ではこの目次情報
テーブルとして必要な場所を目次データバツフア
IPBUF内に取り、次に、今確保した目次情報テ
ーブルに章番号レジスタCPTNOにセツトされて
いる現在の章の番号をセツトする(STEP17)。
続いて、その目次情報テーブルに文章本体の現在
の章番号に対応した文章バツフアDBUFのアド
レス位置を示すポインタをセツトする
(STEP18)。このバツフア位置を示すポインタは
ポインタDBUFPに保存されており、文章バツフ
アDBUFに文字を入力するキー入力処理
(STEP21)が終了した後のSTEP23で更新され
る。この様子は、前述の第11図に示してあり、
目次データバツフアIPBUFの各章に対応した目
次情報テーブルから文章バツフアDBUFの各章
の先頭位置に対応したポインタを矢印で示してあ
る。次いで、ページのカウントレジスタPGCNT
に各章のページ数の初期値として“1”をセツト
する(STEP19)。
On the other hand, if the writing end designation key EDE is not pressed down, it is determined whether the chapter start designation key CPS, which commands the start of a chapter, is pressed down (STEP 15). Since the key CPS is always pressed at the beginning of a chapter, if the key CPS is pressed,
Create a new table of contents information table for the new chapter (STEP 16). Here, it is assumed that the table of contents information table has the contents shown in FIG. 10A described above. At that time, in STEP 16, the necessary location for this table of contents information table is created in the table of contents data buffer.
Then, set the current chapter number set in the chapter number register CPTNO in the table of contents information table just secured (STEP 17).
Next, a pointer indicating the address position of the text buffer DBUF corresponding to the current chapter number of the text body is set in the table of contents information table (STEP 18). A pointer indicating the buffer position is stored in the pointer DBUFP, and is updated in STEP 23 after the key input process (STEP 21) for inputting characters into the text buffer DBUF is completed. This situation is shown in Figure 11 above.
Arrows indicate pointers corresponding to the beginning positions of each chapter in the text buffer DBUF from the table of contents information table corresponding to each chapter in the table of contents data buffer IPBUF. Then the page count register PGCNT
Set "1" as the initial value of the number of pages for each chapter (STEP 19).

次に、章の終りを指令する章終了指定キー
CPEが押下げられたか否かを判定する
(STEP20)。このキーCPEが押下げられるまでの
間が1つの章の文字入力を意味しているので、章
終了指定キーCPEが押下げられないときには、
STEP21においてキーボードKBからの入力処理
を行う。キーボードKBからのキー入力はキーボ
ードコントローラKBCで処理してキーボードKB
で押下されたキーに対応したコードを文章バツフ
アDBUFに格納する。このSTEP21では、1文字
分のキー入力処理が行われ、1文字分のコードが
文章バツフアDBUFにセツトされる。後述の第
26図のフローチヤートにおいて、この文字入力
処理の詳細を示す。1文字分のキー入力が終了す
ると、次に1ページ分の文字入力が終了したか否
かを判定する(STEP22)。1ページの文字入力
が終了したか否かは文字数あるいは行数等の条件
に従つて判断する。もし、1ページの文字入力が
終了していなければ、再びSTEP20へ戻り、キー
CPEのキー入力がなければ、STEP21で上述と同
様のキー入力の処理を繰り返し行う。もし1ペー
ジのキー入力が終了した場合には、ペーじ数カウ
ントレジスタPGCNTの値に“1”を加算し
(STEP23)、再びSTEP20へ戻つてキーCPEが押
下げられるまで、STEP21のキー入力処理および
STEP23の加算処理を繰り返し実行する。
Next, the chapter end specification key to command the end of the chapter.
Determine whether CPE is pressed down (STEP 20). The period until this key CPE is pressed means inputting characters for one chapter, so if the chapter end designation key CPE is not pressed,
In STEP 21, input processing from the keyboard KB is performed. Key input from the keyboard KB is processed by the keyboard controller KBC and sent to the keyboard KB.
Stores the code corresponding to the key pressed in the text buffer DBUF. In this STEP 21, key input processing for one character is performed, and a code for one character is set in the text buffer DBUF. The details of this character input processing will be shown in the flowchart of FIG. 26, which will be described later. When the key input for one character is completed, it is then determined whether or not the character input for one page is completed (STEP 22). Whether or not character input for one page has been completed is determined according to conditions such as the number of characters or the number of lines. If you have not finished entering characters for one page, return to STEP 20 and press the
If there is no CPE key input, the same key input process as described above is repeated in STEP21. If the key input for one page is completed, "1" is added to the value of the page count register PGCNT (STEP 23), and the process returns to STEP 20 and continues the key input processing in STEP 21 until the key CPE is pressed. and
Repeat the addition process in STEP23.

章終了指定キーCPEが押下された場合には、
現在の章番号の目次情報テーブルのページ数の所
に、ページ数カウントレジスタPGCNTに保存さ
れているその章のページ数をセツトする
(STEP24)。次に、目次情報テーブルの章の題名
の入力処理を実行する。この章の題名は、文章本
文のキー入力と同様に、キーボードKBから入力
され、その入力されたキーに対応したコードを、
現在の章番号の目次情報テーブルの章の題名の所
へ入力する(STEP25)。ただし、本例では最大
5文字までを章の題名としている。続いて、章の
番号を保存する章番号レジスタCPTNOの値に
“1”を加算して、次の章番号とした後
(STEP26)、再び前述のSTEP13に戻り、文章作
成終了指定キーEDEが押下げられるまで前述と
同様の処理をSTEP15〜26で繰り返して実行す
る。前述の第11図にはSTEP26まで実行して第
2章までの入力が実行され、また次の章が入力さ
れていない状態を示している。以上の文章作成手
順の繰り返し処理により、前述の第12図に示す
ような全文章の作成が実行される。この第12図
に示した文章バツフアDBUFと目次データバツ
フアIPBUFが作成された後に、文章作成終了指
定キーEDEが押下げられる。
When the chapter end designation key CPE is pressed,
The page number of the chapter stored in the page number count register PGCNT is set in the page number of the table of contents information table of the current chapter number (STEP 24). Next, input processing for the chapter title of the table of contents information table is executed. The title of this chapter is similar to the key input in the main text, which is input from the keyboard KB, and the code corresponding to the input key is
Enter the current chapter number in the chapter title section of the table of contents information table (STEP 25). However, in this example, the chapter title is a maximum of five characters. Next, add "1" to the value of the chapter number register CPTNO that stores the chapter number to set the next chapter number (STEP 26), then return to the above-mentioned STEP 13 and press the text creation end designation key EDE. Repeat the same process as described above in STEP 15 to 26 until it is lowered. The above-mentioned FIG. 11 shows a state in which the process has been executed up to STEP 26 and the input up to the second chapter has been executed, and the next chapter has not been input. By repeating the above sentence creation procedure, all sentences as shown in FIG. 12 described above are created. After the text buffer DBUF and table of contents data buffer IPBUF shown in FIG. 12 are created, the text creation end designation key EDE is pressed.

文章作成終了指定キーEDEが押下げられたと
きには、第24図および第25図に示す目次作成
処理ルーチンに移行し、前述の第13図および第
14図で示した目次の基本フオーマツトを目次バ
ツフアIBに作成する。すなわち、第14図で示
した目次バツフアIB上に目次の基本フオーマツ
トとしてアドレスIB9およびIB12にそれぞれ
“目”と“次”とに対応した文字コードをセツト
する(STEP31)。次に、現在処理中の章番号を
示すレジスタCPIPTに章の初期値ナンバーとし
て第1章を示す“1”をセツトする(STEP32)。
次に、各章の先頭ページ数を示すレジスタ
CPCONTに第1章の先頭ページ数として“1”
をセツトする(STEP33)。次に、目次バツフア
IB上での各章の文字セツト位置を示すレジスタ
IBPに、第1章の目次位置としてアドレスIB41
を示す“41”をセツトする(STEP34)。
When the text creation end designation key EDE is pressed, the process moves to the table of contents creation processing routine shown in FIGS. 24 and 25, and the basic format of the table of contents shown in FIGS. Create to. That is, on the table of contents buffer IB shown in FIG. 14, character codes corresponding to "eye" and "next" are set in addresses IB9 and IB12, respectively, as the basic format of the table of contents (STEP 31). Next, "1" indicating the first chapter is set as the initial value number of the chapter in the register CPIPT indicating the chapter number currently being processed (STEP 32).
Next, a register indicating the number of the first page of each chapter
“1” as the first page number of Chapter 1 in CPCONT
(STEP 33). Next, the table of contents
Register indicating character set position of each chapter on IB
In IBP, address IB41 as the table of contents position of Chapter 1.
Set "41" to indicate (STEP 34).

次に、本文文章の全章の番号を保存しているレ
ジスタCPTNOと現在処理中の章番号を示すレジ
スタCPIPTとの値を比較する(STEP35)。レジ
スタCPIPTの値がレジスタCPTNOの値よりも
大きくなつた場合には本目次作成処理が終了した
ことを意味するので、STEP36,37,および38で
示す各データ文章本文、目次、目次情報テーブル
の保存処理を実行する。すなわち、STEP36〜38
において各バツフアDBUF,IBおよびIPBUFの
内容をデイスクDISKに移す。
Next, the values of the register CPTNO, which stores the numbers of all the chapters of the main text, and the register CPIPT, which indicates the chapter number currently being processed, are compared (STEP 35). If the value of register CPIPT becomes larger than the value of register CPTNO, it means that the main table of contents creation process has finished, so save each data text body, table of contents, and table of contents information table shown in STEP 36, 37, and 38. Execute processing. That is, STEP 36 to 38
, move the contents of each buffer DBUF, IB and IPBUF to disk DISK.

レジスタCPIPTの値とレジスタCPTNOの値
との比較で、レジスタCPIPTの値がレジスタ
CPTNOの値よりも小さいか等しい場合には
STEP39に移行し、以後のステツプで本文文章の
各章に対応した目次データの作成と目次バツフア
IBへの転送セツトを行う。まず、レジスタ
CPIPTにセツトされている章番号と一致する目
次情報テーブルを目次データバツフアIPBUFか
ら検索する。目次情報テーブルの検索は各目次情
報テーブル中の先頭に章番号があるので、このテ
ーブル中の章番号とレジスタCPIPTの値とが一
致するテーブルを探すことになる(STEP39)。
このテーブル位置を探し出すことによつて、その
章の作るべき目次の内容を知ることが可能とな
る。次に、目次中に章番号をセツトするため、現
在処理中の章番号レジスタCPIPTの値を数字の
コードに変換する(STEP40)。次に、今変換さ
れた文章番号を示すコードと、それに付加する
“第”、“第”の文字コードを1章分のデータバツ
フア(目次1行バツフア)LBにセツトする
(STEP41)。前述の第17図に示した例ではアド
レスLB2に、“第”、アドレスLB4に“1”、ア
ドレスLB5に“章”の各コードがセツトされる。
By comparing the value of register CPIPT and the value of register CPTNO, the value of register CPIPT is compared to the value of register CPTNO.
If it is less than or equal to the value of CPTNO
Move to STEP 39, and in the subsequent steps create table of contents data corresponding to each chapter of the main text and create a table of contents buffer.
Set the transfer to IB. First, register
Search the table of contents data buffer IPBUF for the table of contents information table that matches the chapter number set in CPIPT. Since the table of contents information table has a chapter number at the beginning of each table of contents information table, a table in which the chapter number in this table matches the value of the register CPIPT is searched for (STEP 39).
By finding this table position, it becomes possible to know the contents of the table of contents to be created for that chapter. Next, in order to set the chapter number in the table of contents, the value of the chapter number register CPIPT currently being processed is converted into a numerical code (STEP 40). Next, the code indicating the text number just converted and the "th" and "th" character codes to be added to it are set in the data buffer (table of contents one-line buffer) LB for one chapter (STEP 41). In the example shown in FIG. 17 described above, each code of "th" is set in the address LB2, "1" in the address LB4, and "chapter" in the address LB5.

次に、章の題名を示す部分を目次1行バツフア
LBにセツトする。章の題名は現在処理中の章の
目次情報テーブル中に文字コードの列として保存
されている。この目次情報テーブル中の題名の文
字コードをバツフアLBのアドレスLB8〜LB1
2の位置にセツトする(STEP42)。
Next, add the section that shows the chapter title to a one-line buffer in the table of contents.
Set to LB. The chapter title is stored as a string of character codes in the table of contents information table of the chapter currently being processed. Change the character code of the title in this table of contents information table to the address LB8 to LB1 of the buffer LB.
Set it to position 2 (STEP 42).

次に、現ページ先頭数を示すレジスタ
CPCONTに保守されている章先頭ページを数字
コードに変換する(STEP43)。この数字コード
をバツフアLBのアドレスLB16およびLB17
の位置に文字コードとしてセツトする
(STEP44)。以上のSTEP39〜STEP44の処理に
より、前述の第17図に示した様な1章分の目次
データ領域を有する1行目次バツフアLBにレジ
スタCPIPTで示される章の目次内容がセツトさ
れる。今、レジスタCPIPTの値が“1”で第1
章が処理された場合には、第17図に示した目次
が作られていることになる。
Next, a register indicating the number at the beginning of the current page
Convert the chapter first page maintained by CPCONT into a numerical code (STEP 43). Add this numerical code to the addresses LB16 and LB17 of the buffer LB.
Set it as a character code at the position (STEP 44). By the above processing of STEP39 to STEP44, the contents of the table of contents of the chapter indicated by the register CPIPT are set in the one-line table of contents buffer LB having a table of contents data area for one chapter as shown in FIG. 17 described above. Now, the value of register CPIPT is “1” and the first
When the chapter is processed, the table of contents shown in FIG. 17 will be created.

次に、今作成した1章分の目次データを目次バ
ツフアIBに転送してセツトする。セツトすべき
位置は本例ではバツフアIBのデータ位置をアド
レスIB41〜IB60,IB81〜IB100,IB1
21〜IB140,IB161〜IB180,IB20
1〜IB220としたため、バツフアLBのアドレ
スLB1〜LB20を目次バツフア位置レジスタ
IBPが示している目次バツフアIBの位置に、すな
わち、IB(IBP)〜IB(IBP+20)の位置にセツト
する(STEP45)。前述の第18図には第1章に
ついて目次1行バツフアLBにセツトされていた
目次データが目次バツフアIBのアドレスIB41
〜IB60位置にセツトされた状態を示している。
次に、目次バツフア位置レジスタIBPの値に
“40”を加えて、次の目次データをセツトすべき
位置をセツトする(STEP46)。次いで、次に処
理する章番号として現在処理中の章番号を示すレ
ジスタCPIPTの値に“1”を加える
(STEP47)。以上の処理により1章分の目次が目
次バツフアにセツトされたことになり、次の章の
ためのレジスタがセツトされたことになる。次い
で、再びSTEP35に戻り、レジスタCPIPTの値
がレジスタCPTNOの値を越えるまで上述の
STEP35〜STEP47の処理を繰り返し実行する。
このSTEP35〜STEP47の処理の繰り返しによつ
て全章の目次が目次バツフアIBにセツトされる。
前述の第16図に全章分の目次データがセツトさ
れた目次バツフアIBの様子を示す。この目次作
成処理が終了すると本文章作成処理は終了し、制
御は第2図のメインルーチンに戻される。
Next, transfer the table of contents data for one chapter that you just created to the table of contents buffer IB and set it. In this example, the positions to be set are the data positions of buffer IB at addresses IB41 to IB60, IB81 to IB100, and IB1.
21~IB140, IB161~IB180, IB20
1 to IB220, the buffer LB addresses LB1 to LB20 are the table of contents buffer position register.
Set the table of contents buffer IB indicated by IBP, that is, IB (IBP) to IB (IBP+20) (STEP 45). In the above-mentioned Figure 18, the table of contents data set in the one-line table of contents buffer LB for Chapter 1 is stored at address IB41 of the table of contents buffer IB.
~IB60 position is shown.
Next, "40" is added to the value of the table of contents buffer position register IBP to set the position where the next table of contents data should be set (STEP 46). Next, "1" is added to the value of the register CPIPT indicating the chapter number currently being processed as the chapter number to be processed next (STEP 47). Through the above processing, the table of contents for one chapter has been set in the table of contents buffer, and the register for the next chapter has been set. Next, return to STEP 35 again and continue as described above until the value of register CPIPT exceeds the value of register CPTNO.
Repeat steps 35 to 47.
By repeating the processing of STEP 35 to STEP 47, the table of contents of all chapters is set in the table of contents buffer IB.
The above-mentioned FIG. 16 shows the table of contents buffer IB in which table of contents data for all chapters are set. When this table of contents creation process is completed, the text creation process ends, and control is returned to the main routine shown in FIG. 2.

さらに、第26図に示す文字入力処理について
説明するとまず、キーボードKBからのキーコー
ドを入力する(STEP51)。次いで、キーボード
KBから入力されたそのキーコードを文章用の文
字コードに変換する(STEP52)。次に、変換さ
れたその文字コードを文章バツフアDBUFの現
入力位置を示すレジスタDBUFPが示しているバ
ツフア位置にセツトする(STEP53)。この
STEP51〜STEP53の処理により1文字分の文字
コードが文章バツフアDBUFにセツトされたこ
とになる。次に、レジスタDBUFPの値を1文字
分カウントアツプして、レジスタDBUFPが次の
文字入力位置を指すようにする(STEP54)。そ
の後、第23図に示す文章作成処理のメインルー
チンに戻り、STEP22へ進む。
Furthermore, to explain the character input process shown in FIG. 26, first, a key code from the keyboard KB is input (STEP 51). Then the keyboard
Convert the key code input from KB to a character code for text (STEP 52). Next, the converted character code is set to the buffer position indicated by the register DBUFP indicating the current input position of the text buffer DBUF (STEP 53). this
Through the processing of STEP51 to STEP53, the character code for one character is set in the text buffer DBUF. Next, the value of register DBUFP is counted up by one character so that register DBUFP points to the next character input position (STEP 54). Thereafter, the process returns to the main routine of text creation processing shown in FIG. 23 and proceeds to STEP22.

このように、第23図〜第26図で示す処理手
順により、文章作成中に作成された目次情報テー
ブルを用いて、文章作成終了指定時に目次を目次
バツフアIBに自動的に作成することが出来る。
In this way, by using the processing procedure shown in Figures 23 to 26, the table of contents information table created during text creation can be used to automatically create a table of contents in the table of contents buffer IB when specifying the end of text creation. .

次に、上述の文章作成機能により作成された文
章と目次と目次情報テーブルとを用いて文章の再
編集を行う機能について第27図〜第33図で示
すフローチヤートを参照して説明する。
Next, a function for re-editing a text using the text created by the above-described text creation function, a table of contents, and a table of contents information table will be explained with reference to the flowcharts shown in FIGS. 27 to 33.

前述のように、再編集指定キーREが押下げら
れた時には第27図以下で示す文章再編集処理ル
ーチンに移行し、文章再編集処理を実行する。ま
ず、前述の文章作成処理により、作成された文
章、目次、目次情報テーブルをデイスクDISKか
ら呼出してランダムアクセスメモリRAMにセツ
トする。その際、文章は文章バツフアDBUFに、
目次情報テーブルは目次データバツフアIPBUF
に、目次データは目次バツフアIBに、文章作成
処理時にセツトされていたと同様にセツトする
(STEP61)。
As described above, when the re-editing designation key RE is pressed, the process moves to the text re-editing processing routine shown in FIG. 27 and subsequent figures, and the text re-editing process is executed. First, the text, table of contents, and table of contents information table created by the text creation process described above are called from the disk DISK and set in the random access memory RAM. At that time, the text will be converted to a text buffer DBUF,
The table of contents information table is the table of contents data buffer IPBUF.
Next, the table of contents data is set in the table of contents buffer IB in the same way as it was set during text creation processing (STEP 61).

その後、処理中の章番号を示すレジスタ
CPIPTに第1章を示す“1”をセツトした後
(STEP62)、そのレジスタCPIPTにセツトされ
ている章番号に対応した目次情報テーブル中の章
の先頭位置を示すポインタ(アドレス値)を現在
処理する文章バツフアDBUFの位置を指すレジ
スタDBUFPにセツトする(STEP63)。この
STEP63の処理により文章バツフアDBUFの先頭
位置がセツトされたことになる。次いで、レジス
タCPIPTにセツトされている章番号の次の章番
号に対応した目次情報テーブル中の章の先頭位置
を示すポインタを文章バツフアDBUFの次の章
の位置を示すレジスタNDBUFPにセツトする
(STEP64)。レジスタNDBUFPは後述の
STEP78において現在処理中の文章バツフア
DBUFへのポインタDBUFPが次の章の位置に移
動したか否かを判定する際に使用する。
Then a register indicating the chapter number being processed
After setting CPIPT to "1" indicating the first chapter (STEP 62), the pointer (address value) indicating the first position of the chapter in the table of contents information table corresponding to the chapter number set in register CPIPT is currently processed. Set the register DBUFP pointing to the location of the text buffer DBUF to be written (STEP 63). this
The processing in STEP 63 has set the starting position of the text buffer DBUF. Next, a pointer indicating the beginning position of the chapter in the table of contents information table corresponding to the chapter number next to the chapter number set in register CPIPT is set to register NDBUFP indicating the position of the next chapter in text buffer DBUF (STEP 64). ). Register NDBUFP is described below.
Text buffer currently being processed in STEP78
Used to determine whether the pointer to DBUF, DBUFP, has moved to the next chapter position.

次に、再編集終了指定キーREEが押下げられ
たか否かを判定する(STEP65)。再編集終了指
定キーREEが押下げられた場合には、文章の修
正、追加、削除処理が終了したことを意味するの
で、目次作成処理ルーチンに移行し目次作成処理
を実行する(STEP66)。この目次作成処理は前
述の文章作成処理で説明した第24図および第2
5図で示す処理手順と同様の処理を行い、文章の
修正等の再編集処理に伴つて作成した目次情報テ
ーブルに従つて新しい目次を目次バツフアIBお
よびデイスクDISKに作成する。この目次作成処
理が終了すると、本再編集処理は終了し、制御は
第22図のメインルーチンに戻される。他方、再
編集終了指定キーREE以外のキーが押下げらえ
た場合には、第28図〜第33図に詳細に示す文
章の修正、追加、削除処理を実行する
(STEP67)。このSTEP67での処理はキーREEの
キー入力があるまで繰り返し実行する。
Next, it is determined whether the re-editing end designation key REE has been pressed (STEP 65). When the re-editing end designation key REE is pressed, it means that the text correction, addition, and deletion processing has been completed, so the process moves to the table of contents creation processing routine and executes the table of contents creation processing (STEP 66). This table of contents creation process is shown in Figure 24 and 2, which were explained in the text creation process above.
A process similar to that shown in FIG. 5 is performed to create a new table of contents in the table of contents buffer IB and disk DISK according to the table of contents information table created in conjunction with the re-editing process such as text correction. When this table of contents creation processing is completed, the present reediting processing is completed and control is returned to the main routine shown in FIG. 22. On the other hand, if a key other than the re-editing end designation key REE is pressed, text modification, addition, and deletion processing shown in detail in FIGS. 28 to 33 is executed (STEP 67). This process in STEP 67 is repeatedly executed until the key REE is input.

上述の文章の修正、追加、削除処理の手順を第
28図から順に参照して説明する。
The procedure for modifying, adding, and deleting the above-mentioned sentences will be explained with reference to FIG. 28 in order.

文章の修正、追加、削除処理では、まず章開始
指定キーCPSが押下げられたか否かを判定する
(STEP71)。このキーCPSが押下げられた場合に
は、章終了指定キーCPEが押下げられるまで、
変更する題名のキー入力を実行し、現在処理中の
章の題名の変更処理を行う(STEP72および
STEP73)。章終了指定キーCPEが押下げられる
と、現在処理中の章番号を示すレジスタCPIPT
の値と一致する章番号の章の題名を今入力した新
しい章の題名に変更する(STEP74)。この
STEP72〜STEP74が実行されると、本修正、追
加、削除処理を終了し、第27図のメインルーチ
ンに戻る。
In the text correction, addition, and deletion processing, first, it is determined whether or not the chapter start designation key CPS has been pressed (STEP 71). When this key CPS is pressed, the chapter end designation key CPE is pressed.
Execute the key input of the title to be changed and change the title of the chapter currently being processed (STEP72 and
STEP73). When the chapter end designation key CPE is pressed, a register CPIPT indicating the chapter number currently being processed is pressed.
Change the chapter title with the chapter number that matches the value to the new chapter title you just entered (STEP 74). this
When STEP72 to STEP74 are executed, this correction, addition, and deletion processing is completed, and the process returns to the main routine shown in FIG. 27.

章開始指定キーCPS以外のキーが押下げられた
場合には、“→”のポインタ進行キーPAが押下ら
れたか否かを判定する(STEP75)。STEP75で
ポインタ進行キーPAが押下げられたと判定した
場合には、文章バツフアDBUFの現在の処理位
置が文章バツフアDBUFの最終位置であるか否
かを文章バツフアポインタDBUFPの値で判定す
る(STEP76)。それが最終位置であるならば、
なにも実行しないで、本修正、追加、削除処理を
終了し、第27図のメインルーチンに戻る。ポイ
ンタDBUFPが示す位置が文章バツフアDBUFの
最終位置でない場合には、ポインタDBUFPの値
を次の1文字の位置にセツトする(STEP77)。
If a key other than the chapter start designation key CPS is pressed, it is determined whether the "→" pointer progression key PA is pressed (STEP 75). If it is determined in STEP 75 that the pointer progress key PA has been pressed down, it is determined whether the current processing position of the text buffer DBUF is the final position of the text buffer DBUF using the value of the text buffer pointer DBUFP (STEP 76 ). If it is the final position,
This correction, addition, and deletion processing is ended without executing anything, and the process returns to the main routine shown in FIG. 27. If the position indicated by the pointer DBUFP is not the final position of the text buffer DBUF, the value of the pointer DBUFP is set to the position of the next character (STEP 77).

次に、今変更した文章バツフアポインタ
DBUFPの値が次の章の先頭位置まで来たか否か
を次の章の先頭位置を示すレジスタNDBUFPの
値と比較することにより判定する(STEP78)。
文章バツフアポインタDBUFPの値が次の章の先
頭位置まで達していない場合には、文章バツフア
ポインタDBUFPを1文字分先へ進める処理を終
了し、本修正、追加、削除処理を終了して第27
図示のメインルーチンに戻る。ポインタDBUFP
の値が次の章の先頭位置まで達している場合に
は、次の章への処理が移るため、現在処理中の章
番号を示すレジスタCPIPTの値に“1”加えて、
次の章の章番号とする(STEP79)。続いて、次
の章の先頭位置を示すレジスタNDBUFPにレジ
スタCPIPTの値を移して、先頭位置データをセ
ツトしなおす(STEP80)。STEP80を実行する
と本修正、追加、削除処理が終了し、第27図の
メインルーチンに戻る。
Next, the sentence buffer pointer that you just changed
It is determined whether the value of DBUFP has reached the start position of the next chapter by comparing it with the value of the register NDBUFP indicating the start position of the next chapter (STEP 78).
If the value of the text buffer pointer DBUFP has not reached the beginning of the next chapter, finish the process of moving the text buffer pointer DBUFP forward by one character, and finish this correction, addition, and deletion process. 27th
Return to the main routine shown. pointer DBUFP
If the value of has reached the beginning of the next chapter, processing will move on to the next chapter, so add "1" to the value of register CPIPT indicating the chapter number currently being processed.
Set it as the chapter number of the next chapter (STEP 79). Next, the value of the register CPIPT is transferred to the register NDBUFP indicating the starting position of the next chapter, and the starting position data is reset (STEP 80). When STEP80 is executed, this modification, addition, and deletion processing is completed, and the process returns to the main routine shown in FIG. 27.

上述のSTEP75において、ポインタ進行キー
PA以外のキーが押下げられていたと判定した場
合には、第29図のSTEP81に移り、“←”のポ
インタ後退キーPBが押下げられたか否かを判定
する。このキーPBが押下げられた場合には、文
章バツフアポインタDBUFPの値が文章バツフア
DBUFの先頭位置を示しているか否かを判定す
る(STEP82)。ポインタDBUFPの値が文章バツ
フアDBUFの先頭位置を示している場合には、
なにも実行せずに本修正、追加、削除処理を終了
し、第27図のメインルーチンに戻る。ポインタ
DBUFPの値が文章バツフアDBUFの先頭位置を
示していない場合には、ポインタDBUFPに1文
字前の文字位置をセツトする(STEP83)。次に、
変更したポインタDBUFPの値が現在処理中の章
の先頭位置となつたか否かをレジスタCPIPTの
値と比較することにより判定する(STEP84)。
ポインタDBUFPの値が現在処理中の章の先頭位
置を示していない場合には、本修正、追加、削除
処理を終了し、第27図のメインルーチンに戻
る。ポインタDBUFPが示す位置が現在処理中の
章の先頭位置となつた場合には、レジスタ
CPIPTの現在の章番号から“1”を減少して、
1つ前の章に処理を移動させた後(STEP85)、
本修正、追加、削除処理を終了して、第27図の
メインルーチンに戻る。
In STEP75 above, pointer progress key
If it is determined that a key other than PA has been pressed, the process moves to STEP 81 in FIG. 29, and it is determined whether the "←" pointer back key PB has been pressed. When this key PB is pressed, the value of the text buffer pointer DBUFP changes to the text buffer pointer DBUFP.
Determine whether the starting position of the DBUF is indicated (STEP 82). If the value of the pointer DBUFP indicates the beginning position of the text buffer DBUF,
This correction, addition, and deletion processing is ended without executing anything, and the process returns to the main routine shown in FIG. 27. pointer
If the value of DBUFP does not indicate the beginning position of the text buffer DBUF, the pointer DBUFP is set to the position of the previous character (STEP 83). next,
It is determined whether the changed value of the pointer DBUFP has become the starting position of the chapter currently being processed by comparing it with the value of the register CPIPT (STEP 84).
If the value of the pointer DBUFP does not indicate the beginning position of the chapter currently being processed, this correction, addition, and deletion processing is terminated and the process returns to the main routine of FIG. 27. When the position indicated by the pointer DBUFP becomes the beginning position of the chapter currently being processed, the register
Decrease “1” from the current chapter number of CPIPT,
After moving the process to the previous chapter (STEP85),
This correction, addition, and deletion processing is completed and the process returns to the main routine shown in FIG. 27.

ポインタ後退キーPB以外が押下げられた場合
には、次に1文字挿入を指令するキーINSが押下
げられたか否かを判定する(STEP86)。そのキ
ーINSが押下げられた場合には、後述の第31で
詳述する文字挿入処理を実行する(STEP87)。
キーINS以外のキーが押下げられた場合には、さ
らに1文字削除を指令するキーDELが押下げら
れたか否かを判定する(STEP88)。そのキー
DELが押下げられた場合には、後述の第32図
および第33図で詳述ずる文字削除処理を実行す
る(STEP89)。
If a key other than the pointer back key PB is pressed, it is determined whether a key INS for commanding insertion of one character is pressed next (STEP 86). If the key INS is pressed, character insertion processing, which will be described in detail in Section 31 below, is executed (STEP 87).
If a key other than the key INS has been pressed, it is determined whether the key DEL, which instructs deletion of one character, has been pressed (STEP 88). that key
If DEL is pressed, character deletion processing, which will be described in detail in FIGS. 32 and 33, is executed (STEP 89).

1文字削除指定キーDEL以外のキーが押下げ
られた場合には、文字キーKB1が押下げられた
か否かを判定する(STEP90)。文字キーKB1以
外のキーが押下げられたときにはそのまま本修
正、追加、削除処理を終了し、第22図のメイン
ルーチンに戻る。文字キーKB1が押下げられた
場合には、そのキーのキーコードを文章の文字コ
ードに変換する(STEP91)。次に、文章バツフ
アポインタDBUFPが示す文章バツフアDBUFの
アドレス位置に先のSTEP91で変換した文字コー
ドをセツトする(STEP92)。
If a key other than the one-character deletion designation key DEL is pressed, it is determined whether the character key KB1 is pressed (STEP 90). When a key other than the character key KB1 is pressed, the correction, addition, and deletion processing is immediately terminated, and the process returns to the main routine shown in FIG. 22. When the character key KB1 is pressed, the key code of that key is converted into the character code of the sentence (STEP 91). Next, the character code converted in the previous STEP 91 is set at the address position of the text buffer DBUF indicated by the text buffer pointer DBUFP (STEP 92).

次に、ポインタDBUFPに1つ先の字位置をセ
ツトする(STEP93)。続くSTEP94〜STEP98で
は上述のSTEP76〜STEP80と同様の処理を実行
する。すなわち、STEP94でポインタDBUFPの
値がバツフアDBUFの最終位置であるか否かを
判定して、最終位置ならば本処理を終了し、でな
ければSTEP95でポインタDBUFPを1文字先の
位置にセツトする。次に、STEP96でポインタ
DBUFPの値が次の章の先頭位置まで来たか否か
を判定し、次の章の先頭位置まで来ていない場合
には、処理を1文字先へ進める本処理を終了し、
次の章の先頭位置まで来ているときにはSTEP97
でレジスタCPIPTの現在の章に“1”を加え、
STEP98でレジスタNDBUFPに次の章の先頭位
置をセツトした後、本処理を終了し、第27図の
メインルーチンに戻る。
Next, the next character position is set in the pointer DBUFP (STEP 93). In subsequent STEP94 to STEP98, the same processing as in STEP76 to STEP80 described above is executed. That is, in STEP94, it is determined whether the value of the pointer DBUFP is the final position of the buffer DBUF, and if it is the final position, this process ends; otherwise, in STEP95, the pointer DBUFP is set to the position one character ahead. . Next, in STEP96, pointer
Determine whether the value of DBUFP has reached the start position of the next chapter or not, and if it has not reached the start position of the next chapter, proceed with the process by one character and end this process,
When you have reached the beginning of the next chapter, STEP97
Add “1” to the current chapter of register CPIPT with
After setting the start position of the next chapter in register NDBUFP in STEP98, this process is ended and the process returns to the main routine shown in FIG. 27.

次に、第31図を参照して文字挿入処理を説明
する。文字挿入処理では、まず、ポインタ
DBUFPが示すアドレス位置から以降のバツフア
DBUFの内容を1文字つづバツフアDBUFの後
のアドレス位置へ移動する(STEP101)。次に、
STEP101の文字挿入処理により、レジスタ
CPIPTの指す章のページが1ページ分増加した
か否かを判定する(STEP102)。1ページの増加
が起つた場合には、レジスタCPIPTの指してい
る目次情報テーブルのページ数を“1”だけカウ
ントアツプ(インクリメント)する
(STEP103)。次に、キーボードKBから入力する
挿入文字のキー入力処理を実行する
(STEP104)。次に、その入力処理で得られたキ
ーコードをさらに文字コードに変換する
(STEP105)。次に、ポインタDBUFPが示してい
るバツフアDBUFの位置に先のSTEP105で変換
された文字コードをセツトする(STEP106)。次
にレジスタNDBUFPを1文字分後方の位置に変
更する(STEP107)。次に、最終の目次情報テー
ブルの章番号をバツフアIPBUFから検索して
CPTNOにセツトし(STEP108)、レジスタ
CPIPT1にCPIPTの示す現在処理中の章番号を
セツトする(STEP109)。次いで、全章分の処理
が終つたか否かを判定し(STEP110)、全章終了
すれば本処理を終了して第29図のルーチンに戻
る。全章分の処理が終了していない場合には、レ
ジスタCPIPT1の示す目次情報テーブルの先頭
ポインタを1文字分後方へずらす(STEP111)。
次いでレジスタCPIPT1の値に“1”だけ加算
してCPIPT1の値を次の章番号にした後
(STEP112)、再びSTEP110に戻る。これらの
STEP110〜STEP112の処理を繰り返して、全章
分の先頭ポインタを変更する。
Next, character insertion processing will be explained with reference to FIG. In the character insertion process, first the pointer
Buffers from the address position indicated by DBUFP
Move the contents of DBUF one character at a time to the address position after the buffer DBUF (STEP 101). next,
By character insertion processing in STEP101, register
It is determined whether the page of the chapter pointed to by CPIPT has increased by one page (STEP 102). If an increase of one page occurs, the number of pages in the table of contents information table pointed to by register CPIPT is counted up (incremented) by "1" (STEP 103). Next, key input processing for insertion characters input from the keyboard KB is executed (STEP 104). Next, the key code obtained through the input processing is further converted into a character code (STEP 105). Next, the character code converted in the previous STEP 105 is set at the buffer DBUF position indicated by the pointer DBUFP (STEP 106). Next, change the register NDBUFP to the position one character backward (STEP 107). Next, search the chapter number of the final table of contents information table from the buffer IPBUF.
Set it to CPTNO (STEP 108) and register
The chapter number currently being processed indicated by CPIPT is set in CPIPT1 (STEP 109). Next, it is determined whether or not the processing for all chapters has been completed (STEP 110), and if all the chapters have been completed, this processing is ended and the routine returns to the routine of FIG. 29. If the processing for all chapters has not been completed, the head pointer of the table of contents information table indicated by register CPIPT1 is shifted backward by one character (STEP111).
Next, after adding "1" to the value of register CPIPT1 to make the value of CPIPT1 the next chapter number (STEP112), the process returns to STEP110 again. these
Repeat steps 110 to 112 to change the start pointers for all chapters.

最後に、第32図および第33図を参照して文
字削除処理を説明する。文字削除処理では、まず
ポインタDBUFPが示すアドレス位置から以降の
文章バツフアの内容DBUFをそれぞれ1文字分
手前へ移動する(STEP121)。次に、1ページ分
の文字削除が行われたか否かを判定する
(STEP122)。1ページ分の削除が実行された場
合には、レジスタCPIPTが指す目次情報テーブ
ル中のページ数を“1”だけカウントダウン(デ
イクリメント)する(STEP123)。次に、先の
STEP123で1カウントダウンしたページ数が
“0”となつたか否かを判定する(STEP124)。
STEP124でページ数が“0”となつたと判定し
た場合には、最終の目次情報テーブルの章番号を
レジスタCPTNOにセツト(STEP125)し、レ
ジスタCPIPT1にレジスタCPIPTの値をセツト
(STEP126)し、次にレジスタCPTNOの値とレ
ジスタCPIPTの値とを比較して全章分の処理が
終了したか否かを判定する(STEP127)。全章分
の処理が終了すれば、本文字削除処理は終了し、
第27図のルーチンに戻る。全章分の処理が終了
しない場合には、レジスタCPIPT1が示してい
る章番号の目次情報テーブルの領域に、レジスタ
CPIPT1に“1”だけ加算した値(CPIPT1+
1)が示す章番号の目次情報テーブルをセツトす
る(STEP128)。次に、レジスタCPIPT1に
“1”だけ加算して次の章番号をセツトし
(STEP129)、再びSTEP127に戻り、全章分の処
理が終了するまでSTEP127〜STEP129の処理を
繰り返す。以上のSTEP127〜STEP129の手順を
繰り返すことにより1章分の章の目次情報テーブ
ルが削除される。
Finally, character deletion processing will be explained with reference to FIGS. 32 and 33. In the character deletion process, first, each of the subsequent text buffer contents DBUF is moved forward by one character from the address position indicated by the pointer DBUFP (STEP 121). Next, it is determined whether characters for one page have been deleted (STEP 122). If one page has been deleted, the number of pages in the table of contents information table pointed to by register CPIPT is counted down (decremented) by "1" (STEP 123). Next, the previous
It is determined whether the number of pages counted down by 1 in STEP 123 has reached "0" (STEP 124).
If it is determined in STEP124 that the number of pages is "0", the chapter number of the final table of contents information table is set in register CPTNO (STEP125), the value of register CPIPT is set in register CPIPT1 (STEP126), and the next Then, the value of the register CPTNO and the value of the register CPIPT are compared to determine whether processing for all chapters has been completed (STEP 127). When the processing for all chapters is completed, the main character deletion process ends,
Return to the routine of FIG. 27. If processing for all chapters is not completed, a register is added to the table of contents information table area of the chapter number indicated by register CPIPT1.
Value obtained by adding “1” to CPIPT1 (CPIPT1+
1) Sets the table of contents information table for the chapter number indicated by (STEP 128). Next, "1" is added to the register CPIPT1 to set the next chapter number (STEP 129), and the process returns to STEP 127 again, and the processing of STEP 127 to STEP 129 is repeated until the processing for all chapters is completed. By repeating the above steps STEP 127 to STEP 129, one chapter's table of contents information table is deleted.

STEP122において、1ページ分の削除が実行
されていないと判断した場合には、レジスタ
NDBUFPの値を1文字分前のバツフアDBUFの
位置に変更する(STEP130)。続くSTEP131お
よびSTEP132では上述のSTEP125および
STEP126と同様の処理を行い、最終の目次情報
テーブルの章番号をレジスタCPTNOにセツト
し、レジスタCPIPT1にレジスタCPIPTの値を
セツトする。次に、全章分の処理が終了したか否
かを判定する(STEP133)。全章分の処理が終了
すれば、本文字削除処理は終了し、第27図のル
ーチンに戻る。全章分の処理が終了していない場
合には、レジスタCPIPT1の示す目次情報テー
ブルの先頭ポインタを1文字分手前へずらす
(STEP134)。続いて、次の章番号をレジスタ
CPIPT1にセツトした後(STEP135)。再び
STEP133に戻り全章分の処理が終了するまで
STEP133〜STEP135の処理を繰り返して、全章
分の章の先頭を指すポインタを1文字分前へずら
す処理を終了する。
In STEP122, if it is determined that one page has not been deleted, the register
Change the value of NDBUFP to the position of buffer DBUF one character before (STEP 130). In the following STEP131 and STEP132, the above-mentioned STEP125 and
Perform the same processing as in STEP126, set the chapter number of the final table of contents information table in register CPTNO, and set the value of register CPIPT in register CPIPT1. Next, it is determined whether processing for all chapters has been completed (STEP 133). When the processing for all chapters is completed, the main character deletion processing is completed and the process returns to the routine shown in FIG. 27. If the processing for all chapters has not been completed, the head pointer of the table of contents information table indicated by register CPIPT1 is shifted forward by one character (STEP 134). Then register the next chapter number
After setting CPIPT1 (STEP135). again
Return to STEP133 until all chapters are processed.
The process of STEP133 to STEP135 is repeated to complete the process of shifting the pointer pointing to the beginning of all chapters forward by one character.

上述の再編集処理によりバツフアDBUF内の
文章の内容を修正した例を前述の第19図に示し
たが、この例では作成時には1ページであつた第
1章に1ページ分の文章を追加して2ページ分の
文章にし、また作成時には第4章として存在して
いた“注意点”という題名の章を再編集の修正に
より削除し、作成時の第5章の“おわり”という
題名の章を第4章に修正している。従つて、この
第19図に示した目次情報テーブル(IPBUF)
のうち、本文の修正追加に伴つて、変更修正する
必要が第1章と第4章および第5章について発生
する。本文の第1章に1ページ分の文章が追加さ
れたことにより、目次情報テーブルの章番号
“1”の所のページ数が“1”から“2”に変更
される。また、第4章の削除により、一度第4章
の目次情報テーブルを削除し、最初に第5章とな
つていた章番号を“5”から“4”に修正する操
作が本文文章修正中に実行される。再編集終了指
令キーREEキーを押下した時にはこの目次情報
のテーブルの作成が行われるので、文章と目次情
報テーブルの状態は第19図に示すようになる。
よつて、その後、プリンタPRTから出力される
目次は第20図で示すようになる。このように、
本例によれば、文章本文の修正に伴つて目次およ
び目次情報テーブルの修正および保存が自動的に
行われる。
Figure 19 above shows an example in which the content of the text in the buffer DBUF has been corrected by the re-editing process described above, but in this example, one page of text is added to Chapter 1, which was one page at the time of creation. In addition, the chapter titled "Notes" that existed as Chapter 4 at the time of creation was deleted by re-editing, and the chapter titled "End" in Chapter 5 at the time of creation was changed. has been revised in Chapter 4. Therefore, the table of contents information table (IPBUF) shown in Figure 19
Among these, changes and corrections will be required for Chapters 1, 4, and 5 due to the addition of corrections to the main text. Since one page of text has been added to the first chapter of the main text, the number of pages at chapter number "1" in the table of contents information table is changed from "1" to "2". Also, due to the deletion of Chapter 4, the operation of deleting the table of contents information table of Chapter 4 and correcting the chapter number that was originally Chapter 5 from "5" to "4" was performed while editing the main text. executed. When the re-editing end command key REE key is pressed, this table of contents information table is created, so the state of the text and table of contents information table becomes as shown in FIG. 19.
Therefore, the table of contents output from the printer PRT thereafter becomes as shown in FIG. in this way,
According to this example, the table of contents and the table of contents information table are automatically corrected and saved as the text is corrected.

なお、本例では、各章の始まりと終りを指定す
るのにキーボードKBの特定専用キーCPSおよび
CPEを用いて指示するように例示しているが、
通常の文字キーにより本文章のキーワードを入力
することにより、その指定キーCPSおよびCPE
をなすことも可能である。例えば、キーワードを
章の題名と共に入力する様にすれば、指定キーを
押す労力を減ずることが達成出来る。
In addition, in this example, to specify the beginning and end of each chapter, the special keys CPS and CPS of the keyboard KB are used.
Although the instructions are given using CPE,
By entering the keywords of this text using the normal character keys, you can enter the specified key CPS and CPE.
It is also possible to do this. For example, by inputting keywords together with chapter titles, it is possible to reduce the effort required to press designated keys.

なおまた、本例では各章の目次データとしてペ
ージ数と題名とに限つていたが、その他の必要な
情報を追加することも可能であることは勿論であ
る。さらにまた、本例では全体の文章とその文章
に対する分割としての章という単位を用いたが、
章に対してさらに分割する節という単位を考えた
場合にも適用でき、同様の効果が得られる。この
ように、本発明はある編集単位とその単位の集合
ということで文章を考えて構成しているため、何
階層にもわたつて実行することができる。
Furthermore, in this example, the table of contents data for each chapter is limited to the number of pages and the title, but it is of course possible to add other necessary information. Furthermore, in this example, we used the unit of an entire sentence and a chapter as a division of that sentence, but
It can also be applied when considering units of sections that are further divided into chapters, and the same effect can be obtained. In this way, since the present invention considers and constructs a text in terms of a certain editing unit and a set of the units, it can be executed over many layers.

(効果) 以上説明したように、本発明によれば本文文章
の作成が終了したことに基づいて自動的に目次が
作成され、新たに目次作成のための作業を行わず
にすむという効果が得られる。
(Effects) As explained above, according to the present invention, the table of contents is automatically created based on the completion of the creation of the main text, and there is an effect that there is no need to perform a new task for creating the table of contents. It will be done.

さらにまた、本発明によれば、本文文章の校正
(編集)が終了したことに基づいて目次を自動的
に修正変更されるので、本文文章の編集のみを行
えばよく、目次に修正や変更を加える作業の必要
がないという効果が得られる。
Furthermore, according to the present invention, the table of contents is automatically corrected and changed based on the completion of proofreading (editing) the main text, so it is only necessary to edit the main text, and the table of contents cannot be corrected or changed. The effect is that there is no need for additional work.

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

第1図は本発明の文字処理方法を適用した文字
処理装置の構成例を示すブロツク線図、第2図は
第1図のランダムアクセスメモリRAMの詳細な
構成例を示す図、第3図は第2図の目次バツフア
IBの構成例を示す図、第4図は第2図の目次1
行バツフアLBの構成例を示す図、第5図は第1
図のキーボードKBの配置構成例を示す平面図、
第6図は第1図のプリンタPRTから出力される
本文文章と目次とを印字した印字物の一例を示す
平面図、第7図は第2図の文章バツフアDBUF
と目次情報バツフアIPBUFの構成例を示す図、
第8図および第9図は第7図の文章バツフア
DBUFに第6図の文章が保存されている様子を
示す説明図、第10A図は第7図の目次情報バツ
フア内に作られる目次情報テーブルのフオーマツ
トの一例を示す図、第10B図は第10Aの目次
情報テーブルの内容の一例を示す図、第11図は
本文文章作成中の第7図の文章バツフアDBUF
と目次情報バツフアIPBUFの内容の一例を示す
図、第12図は作成の終了した第7図の文章バツ
フアDBUFと目次情報バツフアIPBUFの内容の
一例を示す図、第13図は第1図のプリンタ
PRTから出力される目次の基本的なフオーマツ
トの一例を示す図、第14図は第3図の目次バツ
フアIB内に作成された目次の一例を示す図、第
15図は目次作成処理後の第1図のプリンタ
PRTから出力される目次の一例を示す図、第1
6図は目次作成処理後の第3図の目次バツフア
IBの内容の一例を示す図、第17図は目次作成
中の第4図の目次1行バツフアLBの内容の一例
を示す図、第18図は目次作成中の第3図の目次
バツフアIBの内容の一例を示す図、第19図は
修正変更された後の第12図文章バツフア
DBUFと目次情報テーブルIPBUFの内容の一例
を示す図、第20図は第1図のプリンタPRTか
ら出力される修正変更された目次の一例を示す
図、第21図は修正変更された後の第16図の目
次バツフアIBの内容の一例を示す図、第22図
〜第33図は第1図の本発明の文字処理方法を適
用した装置の動作の一例を示すフローチヤートで
ある。 CPU……マイクロプロセツサ、BUS……バス、
KB……キーボード、KBC……キーボードコント
ローラ、ROM……リードオンリメモリ、CRT…
…表示装置、CRTC……CRTコントローラ、
PRT……プリンタ、DISK……デイスク、RAM
……ランダムアクセスメモリ、DBUF……文章
バツフア、IB……目次バツフア、LB……目次1
行バツフア、IPBUF……目次情報バツフア、
PGCNT……ページ数カウントレジスタ、
CPTNO……最終章番号レジスタ、CPIPT,
CPIPT1……現処理中章番号レジスタ、
CPCONT……現処理中章先頭ページレジスタ、
IBP……目次バツフア位置レジスタ、DBUFP…
…文章バツフアポインタ、NDBUFP……次章位
置レジスタ、KB1……データ入力キー群、KB
2……フアンクシヨンキー群、ED……文章作成
開始指定キー、EDE……文章作成終了指定キー、
RE……再編集指定キー、REE……再編集終了指
定キー、CPS……章開始指定キー、CPE……章
終了指定キー、PK……プリント指定キー、PA,
PB……ポインタ移動キー、INS……1文字挿入
指定キー、DEL……1文字削除指定キー。
FIG. 1 is a block diagram showing a configuration example of a character processing device to which the character processing method of the present invention is applied, FIG. 2 is a diagram showing a detailed configuration example of the random access memory RAM shown in FIG. 1, and FIG. Table of contents for Figure 2
Diagram showing an example of IB configuration, Figure 4 is Table of Contents 1 of Figure 2
Figure 5 shows an example of the configuration of the row buffer LB.
A plan view showing an example of the layout configuration of the keyboard KB in the figure.
Figure 6 is a plan view showing an example of a printed matter with the main text and table of contents output from the printer PRT in Figure 1, and Figure 7 is the text buffer DBUF in Figure 2.
A diagram showing an example of the configuration of the table of contents information buffer IPBUF,
Figures 8 and 9 are text buffers from Figure 7.
An explanatory diagram showing how the text in Figure 6 is stored in the DBUF, Figure 10A is a diagram showing an example of the format of the table of contents information table created in the table of contents information buffer in Figure 7, and Figure 10B is an illustration of the format of the table of contents information table created in the table of contents information buffer in Figure 7. Figure 11 is a diagram showing an example of the contents of the table of contents information table of
Figure 12 is a diagram showing an example of the content of the text buffer DBUF and table of contents information buffer IPBUF of Figure 7 that have been created, Figure 13 is a diagram showing an example of the contents of the text buffer DBUF and table of contents information buffer IPBUF of Figure 1, which have been created.
Figure 14 shows an example of the basic format of the table of contents output from PRT. Figure 14 shows an example of the table of contents created in the table of contents buffer IB in Figure 3. Figure 15 shows the table of contents after the table of contents creation process. 1 printer
Diagram showing an example of the table of contents output from PRT, Part 1
Figure 6 is the table of contents buffer of Figure 3 after the table of contents creation process.
Figure 17 shows an example of the content of the table of contents buffer LB in Figure 4 while the table of contents is being created, Figure 18 shows the contents of the table of contents buffer IB in Figure 3 while the table of contents is being created. A diagram showing an example of the content, Figure 19 is the revised and changed Figure 12 text buffer.
A diagram showing an example of the contents of DBUF and the table of contents information table IPBUF, Figure 20 is a diagram showing an example of the revised table of contents output from the printer PRT in Figure 1, and Figure 21 is a diagram showing an example of the revised table of contents output from the printer PRT in Figure 1. FIG. 16 is a diagram showing an example of the contents of the table of contents buffer IB, and FIGS. 22 to 33 are flowcharts showing an example of the operation of the apparatus to which the character processing method of the present invention shown in FIG. 1 is applied. CPU...microprocessor, BUS...bus,
KB...Keyboard, KBC...Keyboard controller, ROM...Read-only memory, CRT...
…Display device, CRTC…CRT controller,
PRT...Printer, DISK...Disk, RAM
...Random access memory, DBUF...Text buffer, IB...Table of contents buffer, LB...Table of contents 1
Row buffer, IPBUF...Table of contents information buffer,
PGCNT……page count register,
CPTNO...Final chapter number register, CPIPT,
CPIPT1...Current processing chapter number register,
CPCONT...Current processing chapter first page register,
IBP...Table of contents buffer position register, DBUFP...
...Text buffer pointer, NDBUFP...Next chapter position register, KB1...Data input key group, KB
2...Function key group, ED...Text creation start designation key, EDE...Text creation end designation key,
RE...Re-editing specification key, REE...Re-editing end specification key, CPS...Chapter start specification key, CPE...Chapter end specification key, PK...Print specification key, PA,
PB...Pointer movement key, INS...1 character insertion designation key, DEL...1 character deletion designation key.

Claims (1)

【特許請求の範囲】 1 入力される文字により、新たな文章を文章作
成手段で作成した場合、 前記文章作成手段による文章作成処理の終了の
指示の入力に応じて、文章作成中に自動作成され
た目次情報に基づいて、前記文章作成手段によつ
て作成された文章に対応する目次を目次作成手段
によつて自動作成し、 前記文章作成手段によつて作成された文章およ
び前記目次情報を呼び出し、その文章に対する再
編集を再編集手段により行つた場合、 前記再編集手段による再編集処理の終了の指示
の入力に応じて、当該文章の再編集処理に伴つて
自動修正された目次情報に基づいて、前記再編集
後の文章に対応する新たな目次を前記目次作成手
段によつて自動作成することを特徴とする文字処
理方法。
[Scope of Claims] 1. When a new sentence is created by a text creation means using input characters, the new sentence is automatically created during the creation of the text in response to input of an instruction to end the text creation process by the text creation means. automatically create a table of contents corresponding to the text created by the text creation means based on the table of contents information, and call up the text created by the text creation means and the table of contents information; , when the text is re-edited by a re-editing means, in response to the input of an instruction to end the re-editing process by the re-editing means, based on the table of contents information that was automatically corrected in conjunction with the re-editing process of the text. A character processing method characterized in that a new table of contents corresponding to the re-edited text is automatically created by the table of contents creation means.
JP58118115A 1983-07-01 1983-07-01 Character processor Granted JPS6011917A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP58118115A JPS6011917A (en) 1983-07-01 1983-07-01 Character processor
US07/124,368 US4792919A (en) 1983-07-01 1987-11-23 Word processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58118115A JPS6011917A (en) 1983-07-01 1983-07-01 Character processor

Publications (2)

Publication Number Publication Date
JPS6011917A JPS6011917A (en) 1985-01-22
JPH0559466B2 true JPH0559466B2 (en) 1993-08-31

Family

ID=14728395

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58118115A Granted JPS6011917A (en) 1983-07-01 1983-07-01 Character processor

Country Status (1)

Country Link
JP (1) JPS6011917A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11319614B2 (en) * 2014-11-04 2022-05-03 Kobe Steel, Ltd. Method for deoxidizing Al—Nb—Ti alloy

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6082374A (en) * 1983-10-13 1985-05-10 Sharp Corp Editing apparatus for composition having function of compiling index of contents automatically
JPH0256669A (en) * 1988-08-23 1990-02-26 Casio Comput Co Ltd Document preparing device
JPH0561862A (en) * 1991-08-30 1993-03-12 Nec Corp Document management system
JPH06309365A (en) * 1993-04-20 1994-11-04 Fuji Xerox Co Ltd Document processor
JPH07319873A (en) * 1995-02-13 1995-12-08 Canon Inc Document processor
US20120084640A1 (en) * 2010-09-30 2012-04-05 Konica Minolta Systems Laboratory Inc. Resolving page references in layout dependent documents

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5816341A (en) * 1981-07-20 1983-01-31 Sharp Corp Editing device of sentence
JPS5858647A (en) * 1981-09-30 1983-04-07 Fujitsu Ltd Index generating processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5816341A (en) * 1981-07-20 1983-01-31 Sharp Corp Editing device of sentence
JPS5858647A (en) * 1981-09-30 1983-04-07 Fujitsu Ltd Index generating processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11319614B2 (en) * 2014-11-04 2022-05-03 Kobe Steel, Ltd. Method for deoxidizing Al—Nb—Ti alloy

Also Published As

Publication number Publication date
JPS6011917A (en) 1985-01-22

Similar Documents

Publication Publication Date Title
US20050220366A1 (en) Image processing apparatus, image processing method and storage medium
JPS6177981A (en) Picture processing system
JPH0559466B2 (en)
US4862410A (en) Word processor permitting modification or addition of data in response to particular indentation of data
US4792919A (en) Word processor
JP2681627B2 (en) Document creation and editing device
US5867700A (en) Information processing apparatus and method for displaying a first window displaying a list of names of attribute information and a second window displaying search and substitution command columns
JPS61250688A (en) Curve generation system
KR100238814B1 (en) Data processing apparatus and method
JP2608300B2 (en) Document processing method
JPS6011918A (en) Character processor
JPH06131143A (en) Document inputting and retrieving device
JP2823162B2 (en) Document processing device
JPS59135582A (en) Idle feed control system of printer for sentence processor
JPH0452859A (en) Character processor
JPS6358578A (en) Picture editing device
JPS5965339A (en) Document editing device
JP2601449B2 (en) Unconfirmed character display processing method in Japanese editing device
JPS63155262A (en) Japanese processing system
Pramanik et al. A data-handling mechanics of on-line text editing system with efficient secondary storage access
JPH0578036B2 (en)
JPS6336470A (en) Character processor
JPH03291748A (en) Table data preparation control method and data processor
JPS6133567A (en) Display method of document processor
JPH0322639B2 (en)