JPH0512264A - Document preparation device - Google Patents

Document preparation device

Info

Publication number
JPH0512264A
JPH0512264A JP3162875A JP16287591A JPH0512264A JP H0512264 A JPH0512264 A JP H0512264A JP 3162875 A JP3162875 A JP 3162875A JP 16287591 A JP16287591 A JP 16287591A JP H0512264 A JPH0512264 A JP H0512264A
Authority
JP
Japan
Prior art keywords
page
code
document
page break
break code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3162875A
Other languages
Japanese (ja)
Inventor
Takahisa Mori
卓久 森
Katsuhisa Hashino
勝久 橋野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3162875A priority Critical patent/JPH0512264A/en
Publication of JPH0512264A publication Critical patent/JPH0512264A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To prevent the occurrence of a black page which an editor does not intend by preventing a page from being turned when a page-turning code appears at the head of the page as the result of editing document data. CONSTITUTION:A page-turning code detection means 3 detects the page-turning code in document data stored in a storage device 2. When the page-turning code is detected in a place except for the head of the page, a page-turning instruction is outputted to an output device 4. When the page-turning code is detected at the head of the page, the page-turning instruction for the output device 4 is not outputted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数ページにわたる文
書を作製する文書作製装置に関し、詳しくは、改頁機能
を持った文書作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document preparation apparatus for preparing a document having a plurality of pages, and more particularly to a document preparation apparatus having a page break function.

【0002】[0002]

【従来の技術】近年、情報処理機器が広く用いられ、文
書作成装置も業務用のみならず家庭用にまで用いられる
ようになっている。従来の文書作成装置においては、文
書中の任意の場所で強制的に改頁をさせるために文書デ
ータ中に改頁コードと呼ばれる特殊な制御コードを挿入
し、文書中に改頁コードが検出されると必ず改頁をおこ
なっていた。以下、図面を参照しながら、上記した従来
の文書作成装置の一例について説明する。
2. Description of the Related Art In recent years, information processing equipment has been widely used, and a document creating apparatus has come to be used not only for business purposes but also for home use. In a conventional document creation device, a special control code called a page break code is inserted in document data to force a page break at an arbitrary place in the document, and the page break code is detected in the document. Then, the page was always changed. Hereinafter, an example of the above-described conventional document creating apparatus will be described with reference to the drawings.

【0003】図6はこのような従来の文書作成装置に対
する入力データの例であり、1ページあたり5行のデー
タで構成され、文書全体では7行のデータが2ページに
わたって配置されている。ここで、図6の第4行の行頭
に改頁コードを入力すると3に示すように、図6で第4
行のデータが存在していた場所で改頁がおこなわれ、図
6では第1ページに存在していた第4行と第5行のデー
タは第2ページに移動する。なお図7において、「P」
は改頁コードを表している。
FIG. 6 shows an example of input data to such a conventional document creating apparatus, which is composed of 5 lines of data per page, and 7 lines of data are arranged over 2 pages in the entire document. Here, if a page feed code is entered at the beginning of the 4th line in FIG. 6, the 4th line in FIG.
A page break is performed at the place where the data of the line existed, and in FIG. 6, the data of the fourth and fifth lines existing on the first page moves to the second page. In FIG. 7, "P"
Indicates a page break code.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記の
ような従来の文書作成装置に対して更にデータ入力を続
け、例えば図7の第2行と第3行の間に2行分のデータ
を挿入したとすると図8に示すように改頁コードが第2
ページの先頭に移動する。従って第2ページの先頭で改
頁がおこなわれ、図7で第2ページにあった「えええ」
以降のデータは第3ページに移動する一方、第2ページ
は空白のページとなってしまう。このような場合、文書
編集者はこの改頁コードを削除して空白ページが生じる
ことを防がなければならず文書データ作成の効率が低下
するという問題点を有していた。
However, further data input is continued to the above-mentioned conventional document creating apparatus, and for example, two lines of data are inserted between the second line and the third line in FIG. Then, as shown in FIG. 8, the page break code is the second
Move to the top of the page. Therefore, a page break is performed at the beginning of the second page, and "Yes" on the second page in Fig. 7
The subsequent data moves to the third page, while the second page becomes a blank page. In such a case, the document editor must delete the page break code to prevent a blank page from being generated, which causes a problem that the efficiency of document data creation is reduced.

【0005】本発明は上記問題点に鑑み、文書データを
編集した結果、改頁コードがページの先頭に現れた場合
でも空白のページが生じないような文書作成装置を提供
することを目的とする。
In view of the above problems, it is an object of the present invention to provide a document creating apparatus in which a blank page does not occur even when a page break code appears at the top of a page as a result of editing document data. ..

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明の文書作成装置は、文書データを入力するデ
ータ入力手段と、前記データ入力によって入力されたデ
ータを記憶する記憶装置と、前記記憶装置に記憶された
文書データ中から改頁コードを検出し、検出された場合
改頁コードがページ先頭にあるかどうか判断する改頁コ
ード検出手段と、改頁コードがページの先頭にある場合
に出力装置に対して改頁命令を出力しないことを判断す
る禁止手段と、前記記憶装置に記憶された文書データの
内容を出力する出力装置とを備えたことを特徴とする。
In order to achieve the above object, a document creating apparatus of the present invention comprises a data input means for inputting document data, a storage device for storing the data input by the data input. A page break code is detected from the document data stored in the storage device, and if detected, a page break code detecting means for determining whether the page break code is at the top of the page, and the page break code is at the top of the page. In this case, a prohibition unit that determines not to output a page break command to the output device and an output device that outputs the content of the document data stored in the storage device are provided.

【0007】[0007]

【作用】本発明において、前記改頁コード検出手段がデ
ータ入力手段により入力された文書データ中から改頁コ
ードを検出し、データ改頁コードがページの先頭以外の
場所にあるときは改頁動作をおこない、改頁コードがペ
ージの先頭にあるときは改頁動作をおこなわないよう動
作させることにより、改頁コードがページの先頭に現れ
た場合でも空白のページを生じない。
In the present invention, the page break code detecting means detects a page break code from the document data input by the data input means, and when the data page break code is at a position other than the top of the page, a page break operation is performed. When the page break code is at the top of the page, the page break operation is not performed so that a blank page does not occur even when the page break code appears at the head of the page.

【0008】[0008]

【実施例】以下、本発明の一実施例の文書作成装置につ
いて、図面を参照しながら説明する。図1は本発明の実
施例における文書作成装置の構成図を示すものである。
図1において、1は文書データを入力するデータ入力手
段であり、例えばキーボードが用いられる。2はデータ
入力手段1によって入力されたデータを記憶する記憶装
置、3は記憶装置2に記憶された文書データから改頁コ
ードおよびその改頁コードの位置を検出することができ
る改頁コード検出手段、4は記憶装置2に記憶された文
書データを出力する出力装置であり、例えばプリンタ
ー、ディスプレイ画面である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A document creating apparatus according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a document creating apparatus according to an embodiment of the present invention.
In FIG. 1, reference numeral 1 is a data input means for inputting document data, and for example, a keyboard is used. Reference numeral 2 is a storage device for storing the data input by the data input means 1, and 3 is a page break code detecting means capable of detecting the page break code and the position of the page break code from the document data stored in the storage device 2. Reference numeral 4 denotes an output device that outputs the document data stored in the storage device 2, and is, for example, a printer or a display screen.

【0009】以上のように構成された文書作成装置のフ
ローチャートを図2に示す。図中、ステップ#1の「デ
ータ入力」は、データ入力装置1から入力され、記憶装
置2に記憶されている文書データに挿入、削除等の処
理、又はデータ入力装置1から新規の文章が入力する処
理をいう。ステップ#2の「文書データ中の改頁コード
?」は、記憶されている文書データ全体中に改頁コード
があるかどうか判断する処理と、これと同時に文書デー
タ全体中にある改頁コードの数を数える処理をいう。ス
テップ#3「n=1」は、文書データ中で一番先頭に有
る改頁コードに着目する処理をいう。ステップ#4の
「n番目の改頁コードの位置?」は、改頁コードが頁頭
に有るかどうか判断する処理をいう。ステップ#5「改
頁命令発行」は、改頁コードが頁頭以外の場所にあれば
出力装置に改頁命令を発行する処理をいう。また、改頁
コードが頁頭にあれば改頁命令を発行しないが、改頁コ
ードが存在することは、記憶されている。ステップ#6
の「n<全改頁コード数?」は、#2で数えた改頁コー
ドの数と今処理を行った改頁コードの先頭からの数
(n)を比較しする処理を行う。n<全改頁コード数で
ある場合、即ち全ての改頁コードについて処理が終了し
ていない場合には、ステップ#7の「n=n+1」で次
にくる改頁コードに着目する処理を行う。全改頁コード
の処理が終了するまで#4〜#7を繰り返す。
FIG. 2 shows a flowchart of the document creating apparatus constructed as described above. In the figure, “data input” in step # 1 is input from the data input device 1 and is inserted into or deleted from the document data stored in the storage device 2, or a new sentence is input from the data input device 1. It means the process to do. In step # 2, "Page break code in document data?" Is a process of determining whether or not there is a page break code in the entire stored document data, and at the same time, the process of the page break code in the entire document data is performed. The process of counting numbers. Step # 3 "n = 1" is a process of focusing on the page break code at the top of the document data. The "position of n-th page break code?" In step # 4 is a process of determining whether or not the page break code is at the page head. Step # 5 "Issue page break command" is a process for issuing a page break command to the output device if the page break code is located at a place other than the page head. If the page break code is at the beginning of the page, the page break command is not issued, but the existence of the page break code is stored. Step # 6
"N <total number of page break codes?" Is a process for comparing the number of page break codes counted in # 2 with the number (n) from the beginning of the page break code that has just been processed. If n <the total number of page break codes, that is, if the processing has not been completed for all the page break codes, the process of paying attention to the next page break code is performed at “n = n + 1” in step # 7. .. # 4 to # 7 are repeated until the processing of all page break codes is completed.

【0010】次に具体的な例を用いて動作の説明を行
う。図3はデータ入力装置1から入力され、記憶装置2
に記憶されている文書データの一例である。文書の1ペ
ージは5行で構成され、文書全体では7行の文書データ
が2ページにわたって配置されている。この文書データ
には改頁コードが存在しないため(#2)、文書データ
はそのまま出力装置4に出力される。ここでデータ入力
手段1により図3の第4行の行頭に改頁コードを入力す
ると、改頁コード検出手段3はこの改頁コードを検出す
るとともに(#2)、改頁コードの位置を調べ(#
4)、改頁コードがページの先頭以外の場所にあるので
出力装置4に対して改頁命令を出力し(#5)、図3で
第1ページに存在していた第4行と第5行のデータ「え
ええ」「おおお」は第2ページに移動する。改頁実行後
の文書データの出力結果を図4に示す。この場合文章中
には改頁コードは、一つしかないので改頁命令を出力し
た後は、次のデータ入力操作がされるのを待つ。図4に
おいて「P」は改頁コードを表す。
Next, the operation will be described using a specific example. 3 is input from the data input device 1 and the storage device 2
3 is an example of the document data stored in. One page of the document is composed of 5 lines, and the document data of 7 lines is arranged over 2 pages in the entire document. Since no page break code exists in this document data (# 2), the document data is output to the output device 4 as it is. When a page break code is entered at the beginning of the fourth line in FIG. 3 by the data input means 1, the page break code detection means 3 detects this page break code (# 2) and checks the position of the page break code. (#
4) Since the page break code is at a position other than the beginning of the page, a page break command is output to the output device 4 (# 5), and the fourth line and the fifth line existing on the first page in FIG. The line data "Yes" and "Oh" move to the second page. The output result of the document data after the page break is shown in FIG. In this case, since there is only one page-break code in the sentence, after outputting the page-break command, it waits for the next data input operation. In FIG. 4, "P" represents a page break code.

【0011】さらに、図4の第2行と第3行の間に2行
分のデータ「くくく」「けけけ」を挿入すると(#
1)、図5に示すように改頁コードが第2ページの先頭
に移動する。ここで改頁コード検出手段3は改頁コード
がページの先頭にあることを検出し(#4)、出力装置
4に対する改頁命令を出力しない。このとき文書データ
は図5に示すように第2ページの先頭に改頁コードがあ
るにもかかわらず、第2ページが空白ページになること
なく「えええ」以降のデータが第2ページに配置され
る。この場合も文章中には、改頁コードは、一つしかな
いので改頁命令を出力した後は、次のデータ入力操作が
行われるのを待つ。但し、図5は、画面上のディスプレ
イを示した図であるため、ページの先頭に「P」が表示
されているが、画面のディスプレイと印刷紙面は、必ず
しも同じではないので、図5の第2ページ目を印刷した
場合、第2ページ目の先頭は一行空いた状態でなく先頭
から「えええ」「おおお」・・・と印刷される。
Further, if two lines of data "KUKUKU" and "KEKEKE" are inserted between the second and third rows of FIG. 4, (#
1), the page break code moves to the beginning of the second page as shown in FIG. Here, the page break code detecting means 3 detects that the page break code is at the beginning of the page (# 4) and does not output a page break command to the output device 4. At this time, although the document data has a page feed code at the beginning of the second page as shown in FIG. 5, the data after "Yes" is placed on the second page without the second page becoming a blank page. To be done. In this case also, since there is only one page-break code in the sentence, after outputting the page-break command, it waits for the next data input operation. However, since FIG. 5 is a diagram showing a display on the screen, “P” is displayed at the top of the page, but the display on the screen and the printing paper surface are not necessarily the same, and therefore, FIG. When the second page is printed, the first page of the second page is printed as "Yes", "Oh", ...

【0012】又、上記実施例では、データとして文字列
が挿入される入力例をあげたが、文字列が削除された場
合にも同様に各改頁コードの位置が頁頭であるかどうか
判断し、頁頭であれば出力装置4に対して改頁命令を発
行しないという処理をおこなうことにより同一の効果を
得ることができる。以上のように本実施例によれば文書
データ中の改頁コードおよびその改頁コードの位置を検
出することのできる改頁コード検出手段を設け、改頁コ
ードがページの先頭で検出されたときは出力装置に対す
る改頁命令を出力せず、改頁コードがページの先頭以外
の場所で検出されたときは出力装置に対して改頁命令を
出力させることにより、改頁コードがページの先頭にあ
る場合でも空白のページを生じず、文書データ作成の効
率を向上させることができる。
Further, in the above embodiment, the input example in which the character string is inserted as the data is given, but when the character string is deleted, it is similarly determined whether or not the position of each page break code is the page head. However, at the page head, the same effect can be obtained by performing a process of not issuing a page break command to the output device 4. As described above, according to the present embodiment, when the page break code is detected at the top of the page by providing the page break code detecting means capable of detecting the page break code in the document data and the position of the page break code. Does not output a page break command to the output device, and when the page break code is detected at a position other than the top of the page, it causes the output device to output a page break command so that the page break code is displayed at the top of the page. Even in some cases, blank pages are not generated, and the efficiency of document data creation can be improved.

【0013】[0013]

【発明の効果】以上のように本発明は、改頁コードがペ
ージの先頭以外の場所にあるときは出力装置に対して改
頁命令を出力し、改頁コードがページの先頭にあるとき
は改頁命令を出力しないような改頁コード検出手段を設
けることにより、改頁コードがページの先頭にある場合
でも空白のページを生じず、ページの先頭に現れた改行
コードを文書編集者がその都度削除する必要がないた
め、文書データ作成の効率を向上させることができる。
As described above, the present invention outputs a page break command to the output device when the page break code is at a position other than the beginning of the page, and when the page break code is at the beginning of the page. By providing a page-break code detecting means that does not output a page-break command, a blank page does not occur even when the page-break code is at the top of the page, and the line feed code that appears at the top of the page Since it is not necessary to delete each time, the efficiency of document data creation can be improved.

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

【図1】本発明の一実施例における文書作成装置の構成
図である。
FIG. 1 is a configuration diagram of a document creating apparatus according to an embodiment of the present invention.

【図2】本発明の一実施例における文書作成装置のフロ
ーチャートを示す図である。
FIG. 2 is a diagram showing a flowchart of a document creating apparatus according to an embodiment of the present invention.

【図3】本発明の一実施例における文書作成装置に対し
て入力された文書データの例である。
FIG. 3 is an example of document data input to a document creating apparatus according to an embodiment of the present invention.

【図4】実施例に対して改頁コードを入力した際のディ
スプレイ画面上の出力結果を示す図である。
FIG. 4 is a diagram showing an output result on a display screen when a page feed code is input for the embodiment.

【図5】実施例において改頁コードがページの先頭に現
れた場合のディスプレイ画面上の出力結果を表す図であ
る。
FIG. 5 is a diagram showing an output result on a display screen when a page feed code appears at the top of a page in an example.

【図6】従来の文書作成装置に対する入力データ例を示
す図である。
FIG. 6 is a diagram showing an example of input data to a conventional document creation device.

【図7】従来例に対して改頁コードを入力した際のディ
スプレイ画面上の出力結果を示す図である。
FIG. 7 is a diagram showing an output result on a display screen when a page break code is input in the conventional example.

【図8】従来例において改頁コードがページの先頭に現
れた場合のディスプレイ画面上の出力結果を表す図であ
る。
FIG. 8 is a diagram showing an output result on a display screen when a page break code appears at the top of a page in a conventional example.

【符号の説明】[Explanation of symbols]

1 データ入力装置 2 記憶装置 3 改頁コード検出手段 4 出力装置 1 data input device 2 storage device 3 page break code detection means 4 output device

Claims (1)

【特許請求の範囲】 【請求項1】 文書データを入力するデータ入力手段
と、前記データ入力によって入力されたデータを記憶す
る記憶装置と、前記記憶装置に記憶された文書データ中
から改頁コードを検出し、検出された場合改頁コードが
ページ先頭にあるかどうか判断する改頁コード検出手段
と、改頁コードがページの先頭にある場合に出力装置に
対して改頁命令の出力を禁止する禁止手段と、前記記憶
装置に記憶された文書データの内容を出力する出力装置
とを備えたことを特徴とする文書作成装置。
Claim: What is claimed is: 1. A data input device for inputting document data, a storage device for storing data input by the data input, and a page feed code from document data stored in the storage device. And a page-break code detecting means for determining whether the page-break code is at the top of the page when detected, and prohibiting output of a page-break command to the output device when the page-break code is at the top of the page. A document creating apparatus, comprising: a prohibiting unit for controlling the content of the document data; and an output device for outputting the content of the document data stored in the storage device.
JP3162875A 1991-07-03 1991-07-03 Document preparation device Pending JPH0512264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3162875A JPH0512264A (en) 1991-07-03 1991-07-03 Document preparation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3162875A JPH0512264A (en) 1991-07-03 1991-07-03 Document preparation device

Publications (1)

Publication Number Publication Date
JPH0512264A true JPH0512264A (en) 1993-01-22

Family

ID=15762932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3162875A Pending JPH0512264A (en) 1991-07-03 1991-07-03 Document preparation device

Country Status (1)

Country Link
JP (1) JPH0512264A (en)

Similar Documents

Publication Publication Date Title
CA1183977A (en) Information processing apparatus
US4459049A (en) Abbreviated typing with special form display
JP2703907B2 (en) Document processing method
JPH0512264A (en) Document preparation device
US6456274B1 (en) Multi-media editing system for edting at least two types of information
JPS6141012B2 (en)
JP3157956B2 (en) Document processing device with list display function of format setting
JPS6043529B2 (en) document creation device
JPH0113127B2 (en)
EP0522645B1 (en) Multi-media handling system
JP3005344B2 (en) Document processing device
JPS6043730A (en) Display system for document layout
JPH0368063A (en) Documentation device
JPS6051128B2 (en) Search data input method
JPS63262262A (en) Printer device
JPH079705A (en) Method of printing designated page in one lump and apparatus thereof
JPH07319873A (en) Document processor
JPS58195946A (en) Word processor
JPH064342B2 (en) Vertical writing control method
JPS59123046A (en) Display system of document processor
JPS61206090A (en) Character reading device
JPH02116572A (en) Character generation in printer
JPH06320801A (en) Printer
JPS63245760A (en) Document shaping device
JPH02136269A (en) Document processing apparatus