JPH04141764A - Document printer - Google Patents

Document printer

Info

Publication number
JPH04141764A
JPH04141764A JP2263771A JP26377190A JPH04141764A JP H04141764 A JPH04141764 A JP H04141764A JP 2263771 A JP2263771 A JP 2263771A JP 26377190 A JP26377190 A JP 26377190A JP H04141764 A JPH04141764 A JP H04141764A
Authority
JP
Japan
Prior art keywords
page
document
printing
code
page break
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.)
Granted
Application number
JP2263771A
Other languages
Japanese (ja)
Other versions
JP3118826B2 (en
Inventor
Masahiro Inoue
正広 井上
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP02263771A priority Critical patent/JP3118826B2/en
Publication of JPH04141764A publication Critical patent/JPH04141764A/en
Application granted granted Critical
Publication of JP3118826B2 publication Critical patent/JP3118826B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To save sheets of paper and to efficiently perform printing by skipping printing while performing update only with a page number when a page eject code continues in a document. CONSTITUTION:At the time of document printing, the document data divided by the page eject code is printed as one page document while adding a page eject number for each detection of the page eject code in the document. In this case, a page number updating means 1 updates the page number for each detection of the page eject code, and a decision means 2 performs the decision whether or not the page eject code is continued. In such a case, when the continuity of the page eject code is decided, since the printing is temporarily restrained until the continuity is stopped, the only page number is updated and the printing is skipped when the page eject code is continued in the document. Thus, the paper can be saved and the printing can be performed in a short time.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、自動頁付は機能を備えたワードプロセッサ
ー等の文書印刷装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document printing device, such as a word processor, equipped with an automatic pagination function.

[発明の概要コ この発明は、文書データ内の改頁コードを検出する毎に
、改頁コードで区分された文書データに頁番号を付して
1頁分の文書として印刷する文書印刷装置において、改
頁コードが検出される毎に頁番号を更新すると共に、改
頁コードが連続するか否かを判別し、連続する場合には
、それが連続しなくなるまで印刷を一時抑制するように
したものである。
[Summary of the Invention] This invention provides a document printing device that attaches a page number to document data classified by a page break code and prints it as a one-page document every time a page break code is detected in the document data. , the page number is updated every time a page break code is detected, and it is determined whether the page break codes are consecutive or not, and if they are consecutive, printing is temporarily suppressed until they are no longer consecutive. It is something.

[従来の技術] 従来、自動頁付は機能を備えたワードプロセッサーにお
いては、文書内の改頁コードを検出する毎に、改頁コー
ドで区分された文書データに頁番号を付して】頁分の文
書として印刷するようにしている。
[Prior Art] Conventionally, in word processors equipped with automatic pagination, each time a page break code is detected in a document, a page number is attached to the document data divided by the page break code. I am trying to print it as a document.

ところで、このようにして印刷作成した複数頁分の文書
内に手書きやコピー等の様にワードプロセッサーとは別
の手段で作成した別の文書を挿入することが良く行われ
ている。
Incidentally, it is common practice to insert another document created by means other than a word processor, such as by handwriting or by copying, into a multi-page document created by printing in this manner.

この場合、従来のワードプロセッサーにおいては、差し
込む資料を考慮に入れて連続する一連の通し頁番号を文
書全体に付けたい場合、予め文書内に複数の改頁コード
を連続して入れておけば、文書印刷時、通し頁番号が付
された白紙の頁が印刷される。
In this case, with conventional word processors, if you want to add a series of consecutive page numbers to the entire document taking into account the material to be inserted, you can insert multiple page break codes consecutively into the document in advance. When printing, blank pages with serial page numbers are printed.

この白紙頁を後で差し込む資料と入れ替えれば、ワード
プロセッサーとは別の手段で作成した資料を差し込んで
も文書全体に通し頁番号を付けた文書を完成させること
ができる。
By replacing this blank page with the material that will be inserted later, it is possible to complete a document in which the entire document is numbered consecutively, even if materials created using a means other than a word processor are inserted.

[発明が解決しようとする課題] しかしながら、文書全体に通し頁番号をつける目的でわ
ざわざ不要な頁を印刷することは用紙の無駄となる他、
印刷に時間がかかるという欠点があった。
[Problems to be Solved by the Invention] However, printing unnecessary pages for the purpose of serially numbering the entire document wastes paper, and
The drawback was that it took a long time to print.

そこで、文書内に改頁コードが連続する場合には、頁番
号のみの更新を行って印刷をスキップできれば、用紙の
無駄が無くなり印刷を効率良く行うことが可能と成るこ
とは明らかである。
Therefore, when page break codes are consecutive in a document, it is clear that if only the page number is updated and printing can be skipped, paper will not be wasted and printing can be performed efficiently.

この発明の課題は1文書内に改頁コードが連続する場合
に頁番号のみの更新を行って印刷をスキップできるよう
にすることである。
An object of this invention is to enable printing to be skipped by updating only the page number when page break codes are consecutive in one document.

[課題を解決するための手段] この発明の手段は次の通りである。[Means to solve the problem] The means of this invention are as follows.

頁番号更新手段1 (第1図の機能ブロック図を参照、
以下同じ)は文書データ内の改頁コードが検出される毎
に頁番号を更新する。ここで、頁番号とは連続する一連
の数値あるいはアルファベット文字等である。
Page number updating means 1 (see the functional block diagram in Fig. 1,
) updates the page number every time a page break code is detected in the document data. Here, the page number is a series of consecutive numerical values or alphabetic characters.

判別手段2は改頁コードが検出された際に改頁コードが
連続するか否かの判別を行う。
The determining means 2 determines whether or not the page break codes are consecutive when the page break codes are detected.

印刷制御手段3は判別手段2で改頁コードが連続するこ
とが判別された際にはそれが連続しなくなるまで印刷を
一時抑制させる。
When the determining means 2 determines that the page break codes are consecutive, the print control means 3 temporarily suppresses printing until the page break codes are no longer consecutive.

[作用コ この発明の手段の作用は次のとおりである。[Action Co. The operation of the means of this invention is as follows.

文書印刷時において、文書内の改頁コードが検出される
毎に改頁コードで区分された文書データは改頁番号が付
されて1頁の文書として印刷される。
When printing a document, each time a page break code is detected in the document, the document data classified by the page break code is assigned a page break number and printed as a one-page document.

この際、頁番号更新手段1は改頁コードが検出される毎
に、頁番号を更新し、また、判別手段2は改頁コードが
連続するか否かの判別を行う。
At this time, the page number updating means 1 updates the page number every time a page break code is detected, and the determining means 2 determines whether or not the page break codes are consecutive.

ここで、改頁コードが連続することが判別された場合に
はそれが連続しなくなるまで印刷を一時抑制させる。
Here, if it is determined that the page break codes are consecutive, printing is temporarily suppressed until they are no longer consecutive.

したがって、文書内に改頁コードが連続する場合には頁
番号のみの更新を行って印刷をスキップすることができ
る。
Therefore, if there are consecutive page break codes in a document, only the page numbers can be updated and printing can be skipped.

[実施例〕 以下第2図乃至第4図を参照して、一実施例を説明する
[Example] An example will be described below with reference to FIGS. 2 to 4.

第2図はワードプロセッサの基本的構成を示したブロッ
ク構成図である。
FIG. 2 is a block configuration diagram showing the basic configuration of a word processor.

CPUIIはROM12内に予め格納されているマイク
ロプログラムにしたがってこのワードプロセッサーの各
種動作を制御するもので、ROM12内の印刷プログラ
ムが起動されると、文書メモリ13から文書データを読
み出し、プリンタ制御部14を介してプリンタ15から
印字出力させる。
The CPU II controls various operations of this word processor according to microprograms stored in advance in the ROM 12. When the print program in the ROM 12 is activated, the CPU II reads document data from the document memory 13 and controls the printer control unit 14. The printer 15 outputs a printout via the printer 15.

この際、CPUIIは文書メモリ13から1文字ごとに
文書データを読み出してプリンタ制御部14内のページ
バッファPBに転送して行くが、文書メモリ]3から改
頁コードを読み出した場合には、ページカウントレジス
タ17に記憶されている頁番号に「l」を加算するイン
クルメント処理を行う。なお、ページカウントレジスタ
17内の頁番号は改頁コードが検出される毎にプラス「
1」ずつ更新される一連の連続番号である。
At this time, the CPU II reads the document data character by character from the document memory 13 and transfers it to the page buffer PB in the printer control unit 14. However, when the page break code is read from the document memory 3, the page An increment process is performed to add "l" to the page number stored in the count register 17. Note that the page number in the page count register 17 is incremented each time a page break code is detected.
This is a series of consecutive numbers that are updated in increments of 1.

そして、CPUIIは印刷制御フラグレジスタl7を参
照し、印刷制御フラグがセットされていれば、ページバ
ッフアPB内へ文書データを転送せず、印刷動作を一時
中断させるが、印刷制御フラグがセットされていなけれ
ば、文書メモリ13から読み出した文書データをプリン
タ制御部14内のページバッファPBに転送してプリン
タ15から印字出力させる。ここで、CPUIIは文書
メモリ13から1文字毎に文書データを読み出した際、
改頁コードが連続することを検出すると、印刷制御フラ
グレジスタ17に印刷禁止を示すフラグ「1」をセット
する。
Then, the CPU II refers to the print control flag register l7, and if the print control flag is set, it does not transfer the document data into the page buffer PB and temporarily suspends the printing operation, but if the print control flag is set, If not, the document data read from the document memory 13 is transferred to the page buffer PB in the printer control section 14 and printed out from the printer 15. Here, when the CPU II reads document data character by character from the document memory 13,
When consecutive page break codes are detected, a flag "1" indicating printing prohibition is set in the print control flag register 17.

次に、本実施例の動作を第3図および第4図を参照して
説明する。
Next, the operation of this embodiment will be explained with reference to FIGS. 3 and 4.

いま、文書メモリ13内に複数頁分の文書データが作成
記憶されているものとする。ここで、印刷指令が与えら
れると、CPU11は第3図のフローチャートに従った
印刷動作を実行する。
It is now assumed that document data for a plurality of pages has been created and stored in the document memory 13. Here, when a print command is given, the CPU 11 executes a print operation according to the flowchart shown in FIG.

まず、ページカウントレジスタ16の内容をクリアする
と共に、印刷制御フラグレジスタ17にフラグ「1」を
セットしておく (ステップSl)。
First, the contents of the page count register 16 are cleared and a flag "1" is set in the print control flag register 17 (step Sl).

そして、文書メモリ13の読み込みポインタ値を読み出
し対象である文書データの先頭にセットする(ステップ
2)、。
Then, the read pointer value of the document memory 13 is set to the beginning of the document data to be read (step 2).

このようなイニシャライズ処理が終わると、次のステッ
プS3に進み、読み込みポインタ値でアドレス指定され
る文書メモリ13から1文字読み出し、それが改頁コー
ドか否かを調べる(ステップS4)。
When such initialization processing is completed, the process proceeds to the next step S3, where one character is read from the document memory 13 addressed by the read pointer value, and it is checked whether or not it is a page break code (step S4).

いま、1頁目の先頭文字データが読み出されるが、通常
、先頭文字データは改頁コードではないので、ステップ
Sllに進み、印刷制御フラグをクリアしたのち、読み
込みポインタ値をプラス「1」し、次の文字にアドレス
を移動させる(ステップ39)。そして、文書全体を読
み出したか否かを調べるが(ステップ5IO)、いま先
頭文字を読み出した段階であるから、ステップS3に戻
り、文書メモリ13から次の文字を読み出す。
Now, the first character data of the first page is read out, but since the first character data is usually not a page break code, proceed to step Sll, clear the print control flag, and then add "1" to the read pointer value. The address is moved to the next character (step 39). Then, it is checked whether the entire document has been read out (step 5IO), but since the first character has just been read out, the process returns to step S3 and the next character is read out from the document memory 13.

このようにして1文字ずつ文書データを読み出してゆく
が、1頁目の文書データをすべて読み出すと、改頁コー
ドが検出される(ステップS4)。
In this way, the document data is read out one character at a time, and when all the document data on the first page is read out, a page break code is detected (step S4).

この場合、ステップS5に進み、ページカウントレジス
タ16に「1」を加算したのち、印刷印刷制御フラグが
rQJか否かを調べる(ステップS6)。
In this case, the process advances to step S5, and after adding "1" to the page count register 16, it is checked whether the print control flag is rQJ (step S6).

いま、印刷制御フラグはクリアされているので、ステッ
プS7に進み、次ぎの改頁位置までの1頁分のデータを
プリンタ制御部14のページバッファPBに転送する。
Since the print control flag is now cleared, the process advances to step S7, and data for one page up to the next page break position is transferred to the page buffer PB of the printer control unit 14.

この場合、ページカウントレジスタ16から頁番号を読
み出してページバッファPBに書き込む。このようにし
て1頁分の印刷が終わり、用紙が排出されると、次ぎの
ステップS8に進み、ページカウントレジスタ16の値
に「1」を加算する。そして、次頁の先頭文字を指定し
くステップS9)、印刷終了でなければ、ステップS3
に戻る。
In this case, the page number is read from the page count register 16 and written to the page buffer PB. When printing for one page is completed in this manner and the paper is ejected, the process proceeds to the next step S8, where "1" is added to the value of the page count register 16. Then, specify the first character of the next page (step S9), and if printing is not finished, step S3)
Return to

ここで、更に改頁コードが読み出された場合には、つま
り、改頁コードが連続している場合には、ページカウン
トレジスタ16内の頁番号を更新したのも(ステップS
5)、改頁コードが連続しているか否かを調べるために
印刷制御フラグをチエツクする(ステップS6)。いま
、印刷制御フラグは「1」、したがって、改頁コードが
連続していることが検出されるので、ステップS9に進
み、ポインタの更新を行う。即ち、改頁コードが連続し
ている場合には頁番号の更新のみを行って印刷はスキッ
プする。
Here, if more page break codes are read out, that is, if the page break codes are consecutive, the page number in the page count register 16 is updated (step S
5) Check the print control flag to see if the page break codes are consecutive (step S6). The print control flag is now "1", and therefore it is detected that the page break codes are consecutive, so the process advances to step S9 and the pointer is updated. That is, if the page break codes are consecutive, only the page number is updated and printing is skipped.

以下、上述の動作を文書終了が検出されるまで繰り返す
Thereafter, the above-described operations are repeated until the end of the document is detected.

したがって、例えば第4図に示すような文書データを印
刷する場合に、最初の改頁コードAが検出されると、頁
番号はrQJから「1」に更新されると共に、この改頁
コードAで区分される文書データが頁番号「1」と共に
印刷される。
Therefore, when printing document data as shown in FIG. 4, for example, when the first page break code A is detected, the page number is updated from rQJ to "1", and with this page break code A. The classified document data is printed together with the page number "1".

そして、次の改頁コードBが検出されると、頁番号が「
2」に更新されると共に改頁コードA、8間の文書デー
タが頁番号「2」と共に印刷される。
Then, when the next page break code B is detected, the page number is changed to “
At the same time, the document data between page break codes A and 8 is printed together with the page number "2".

しかして、次も改頁コードで改頁コードB、Cが連続し
ている為、この場合、頁番号のみの更新を行って印刷を
スキップする。
However, since page break codes B and C are consecutive in the next page break code, in this case, only the page number is updated and printing is skipped.

その後、改頁コードDが検出されると、頁番号が「4」
に更新されると共に、改頁コードC,D間の文書データ
が頁番号「4」と共に印刷される。
After that, when page break code D is detected, the page number becomes "4".
At the same time, the document data between the page break codes C and D is printed together with the page number "4".

以下、同様に文書内に改頁コードが連続していなければ
、頁番号と共に文書データを1頁毎に印刷するが、改頁
コードが連続している場合には頁番号のみの更新を行っ
てその間の印刷をスキップする。
Similarly, if the page break codes are not consecutive in the document, the document data will be printed page by page along with the page numbers, but if the page break codes are consecutive, only the page numbers will be updated. Skip printing in between.

第5図はこの場合の印刷例を示し、先頭から4枚目まで
の印刷文書には通し頁番号として「1」、「2」、 「
4」、「5」が付されている。この為、手書きやコピー
等のようにワードプロセッサーとは別の手段で作成した
文書に通し頁番号「3」を入れて差し込めれば、差し込
み資料を含む文書全体に通し頁番号を付けた文書を完成
することができる。
Figure 5 shows an example of printing in this case, and the fourth page from the beginning of the printed document has serial page numbers "1", "2", "
4" and "5" are attached. Therefore, if you insert a serial page number "3" into a document created by a method other than a word processor, such as handwriting or copying, you will be able to complete a document with serial page numbers attached to the entire document, including the inserted material. can do.

なお、上述した例では改頁コードを2つ連続させたが、
3以上連続させてもよい。
Note that in the example above, two page break codes are consecutive, but
Three or more may be consecutive.

[発明の効果] この発明によれば、文書内に改頁コードが連続する場合
には頁番号のみの更新を行って印刷をスキップすること
ができるので、差し込む資料を考慮に入れて連続する一
連の通し頁番号を文書全体に付けたい場合には、予め文
書内に複数の改頁コードを連続して入れておくだけで不
要な印刷を抑制でき、経済的である。
[Effect of the invention] According to this invention, if there are consecutive page break codes in a document, it is possible to update only the page numbers and skip printing. If you want to add serial page numbers to the entire document, it is economical to simply insert a plurality of consecutive page break codes in the document in advance to prevent unnecessary printing.

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

第1図はこの発明の機能ブロック図、第2図乃至第5図
は実施例を示し、第2図はワードプロセッサーのブロッ
ク構成図、第3図は印刷動作を示したフローチャート、
第4図は文書メモリ内の文書例を示した図、第5図はそ
の印刷例を示した図である。 11・・・・・・CPU、12・・・・・・ROM、1
3・・・・・・文書メモリ、14・・・・・・プリンタ
制御部、15・・・・プリンタ、16・・・・・・ペー
ジカウントレジスタ。 第 図 第 図 図
FIG. 1 is a functional block diagram of the present invention, FIGS. 2 to 5 show embodiments, FIG. 2 is a block diagram of a word processor, and FIG. 3 is a flowchart showing printing operation.
FIG. 4 is a diagram showing an example of a document in the document memory, and FIG. 5 is a diagram showing an example of its printing. 11...CPU, 12...ROM, 1
3...Document memory, 14...Printer control unit, 15...Printer, 16...Page count register. Figure Figure Figure

Claims (1)

【特許請求の範囲】 文書データ内の改頁コードを検出する毎に改頁コードで
区分された文書データに頁番号を付して1頁分の文書と
して印刷する文書印刷装置において、 改頁コードが検出される毎に頁番号を更新する頁番号更
新手段と、 改頁コードが検出された際に改頁コードが連続するか否
かを判別する判別手段と、 この判別手段で改頁コードが連続することが判別された
際にはそれが連続しなくなるまで印刷を一時抑制させる
印刷制御手段と、 を具備したことを特徴とする文書印刷装置。
[Scope of Claim] In a document printing device that attaches a page number to document data classified by a page break code and prints it as a one-page document each time a page break code is detected in the document data, comprising: a page number updating means for updating the page number each time a page break code is detected; a determining means for determining whether or not the page break codes are consecutive when a page break code is detected; 1. A document printing device comprising: print control means for temporarily suppressing printing until it is no longer continuous when it is determined that the printing is continuous.
JP02263771A 1990-10-03 1990-10-03 Printing control device Expired - Lifetime JP3118826B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02263771A JP3118826B2 (en) 1990-10-03 1990-10-03 Printing control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02263771A JP3118826B2 (en) 1990-10-03 1990-10-03 Printing control device

Publications (2)

Publication Number Publication Date
JPH04141764A true JPH04141764A (en) 1992-05-15
JP3118826B2 JP3118826B2 (en) 2000-12-18

Family

ID=17394058

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02263771A Expired - Lifetime JP3118826B2 (en) 1990-10-03 1990-10-03 Printing control device

Country Status (1)

Country Link
JP (1) JP3118826B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015086852A (en) * 2013-10-29 2015-05-07 邦雄 伊藤 Wave force power generation device and wave force power generation method

Also Published As

Publication number Publication date
JP3118826B2 (en) 2000-12-18

Similar Documents

Publication Publication Date Title
US5878198A (en) Information processing apparatus and method and memory medium storing information processing program
JPS6280058A (en) Image processor
US4811242A (en) Chinese character printer controlling device
JPH0263763A (en) Printing apparatus
JP2610888B2 (en) Printing equipment
JPH04141764A (en) Document printer
JPH01229673A (en) English and european writing printing control system
JPH03114856A (en) Printer data management system
JPH01258976A (en) Page printer
JP2682984B2 (en) Output device
JP3143118B2 (en) Printer and print image pattern development method
JPH0543511B2 (en)
JPH08324039A (en) Printing device, printing control device, and printing method and printing control method
JPH04111116A (en) Character processor
JPS6334153A (en) Dot matrix printer
JPH07101113A (en) Printer
JPH03230217A (en) Printer controller
JPH01223530A (en) Print processing device
JPH0259065B2 (en)
JPH03211069A (en) Printer
JPH05342207A (en) Format specifying method for word processor
JPH04359364A (en) Document processing system
JPH02130167A (en) Printing control apparatus
JPH03100760A (en) Document processing device
JPH03197064A (en) Dot printer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071013

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081013

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081013

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091013

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091013

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101013

Year of fee payment: 10

EXPY Cancellation because of completion of term