JPH0790656B2 - Document processing method - Google Patents

Document processing method

Info

Publication number
JPH0790656B2
JPH0790656B2 JP58216062A JP21606283A JPH0790656B2 JP H0790656 B2 JPH0790656 B2 JP H0790656B2 JP 58216062 A JP58216062 A JP 58216062A JP 21606283 A JP21606283 A JP 21606283A JP H0790656 B2 JPH0790656 B2 JP H0790656B2
Authority
JP
Japan
Prior art keywords
length
document
output
page
format
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
JP58216062A
Other languages
Japanese (ja)
Other versions
JPS60109883A (en
Inventor
富夫 増山
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 JP58216062A priority Critical patent/JPH0790656B2/en
Publication of JPS60109883A publication Critical patent/JPS60109883A/en
Publication of JPH0790656B2 publication Critical patent/JPH0790656B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/36Blanking or long feeds; Feeding to a particular line, e.g. by rotation of platen or feed roller
    • B41J11/42Controlling printing material conveyance for accurate alignment of the printing material with the printhead; Print registering

Description

【発明の詳細な説明】 [技術分野] 本発明は、文書の出力長さの管理を行なう文書処理方法
に関する。
TECHNICAL FIELD The present invention relates to a document processing method for managing the output length of a document.

[従来技術] 従来から知られている文字処理装置、特に文書全体に共
通な標準書式(1頁の行数および改行ピッチ)とは別個
に、文書の各行毎に個別的に改行ピッチを指定し得る手
段を有するものにおいては、文書中における個別的な改
行ピッチ指定の有無にかかわりなく、1頁の行数は指定
された標準書式に基づき不変とされていた。
[Prior Art] A line feed pitch is individually specified for each line of a document separately from a conventionally known character processing device, particularly a standard format (the number of lines on one page and a line feed pitch) common to the entire document. In the apparatus having the means for obtaining, the number of lines on one page is invariable based on the specified standard format regardless of whether or not the line feed pitch is individually specified in the document.

従って、文書中において標準の書式よりも小さい改行ピ
ッチを指定した場合には、実際に印刷される領域(第1
図(B)参照)が標準書式により印刷された場合(第1
図(A)参照)に比べて狭くなり、逆に標準書式よりも
大きい改行ピッチを指定した場合には、第1図(C)に
示すように広くなってしまうという不都合があった。こ
のように、文書中における個別的な改行ピッチの指定に
より、用紙の中で印刷される領域が各頁毎にまちまちに
なってしまい、見苦しくなることが多かった。
Therefore, when a line feed pitch smaller than the standard format is specified in the document, the area actually printed (first
Figure (B)) is printed in standard format (first
However, when a line feed pitch larger than that in the standard format is designated, the line width becomes wider as shown in FIG. 1C. As described above, by specifying individual line feed pitches in the document, the areas printed on the paper are different for each page, which is often unsightly.

[目的] よって、本発明の第1の目的は、上述の点に鑑み、書式
情報により定まる1頁の出力長さで頁が区切られること
を考慮して作成された文書を出力する際に、セットされ
ている用紙のサイズにより文書作成時の意図が出力時に
無視されることなく、作成時に意図された頁の区切りを
保持した状態で出力できる文書処理方法を提供すること
にある。
[Object] Therefore, in view of the above-mentioned point, the first object of the present invention is to output a document created in consideration of the fact that pages are divided by the output length of one page determined by the format information. An object of the present invention is to provide a document processing method capable of outputting in a state in which the page break intended at the time of creation is retained without the intention at the time of creating the document being ignored at the time of output depending on the size of the set paper.

また、本発明の第2の目的は、1頁の出力長さのばらつ
きを抑え、見栄えの良い出力を可能とする文書処理方法
を提供することにある。
A second object of the present invention is to provide a document processing method that suppresses variations in the output length of one page and enables good-looking output.

[実施例] 本発明を適用した文書処理装置では、第2図に示す如
く、印刷時における標準書式を設定する標準書式設定手
段2と、文書データの各行毎に改行ピッチを指定する行
ピッチ設定手段4と、標準書式に基づき標準印刷領域を
算出する演算手段6と、標準印刷領域内において、行ピ
ッチ設定手段に従った印刷を行わしめる印刷制御手段8
とを備える。
[Embodiment] In a document processing apparatus to which the present invention is applied, as shown in FIG. 2, a standard format setting means 2 for setting a standard format at the time of printing and a line pitch setting for designating a line feed pitch for each line of document data. Means 4, computing means 6 for calculating a standard print area based on a standard format, and print control means 8 for performing printing according to the line pitch setting means in the standard print area.
With.

第3図は、本発明に係る文字処理装置の一実施例を示
す。本図において、CPUはマイクロプロセッサであり、
演算・論理判断を行うと共にバス(BUS)に接続されて
いる各種機器の制御を行う。
FIG. 3 shows an embodiment of the character processing device according to the present invention. In this figure, the CPU is a microprocessor,
Performs arithmetic / logical judgments and controls various devices connected to the bus (BUS).

BUSは共通バスであり、これに接続されている機器に対
して制御信号および各種データの転送を行う。
BUS is a common bus, and transfers control signals and various data to the devices connected to it.

ROMは読み出し専用メモリであり、例えば第6図に示す
如き制御手順のプログラムおよび固定データを格納す
る。
The ROM is a read-only memory, and stores a program of control procedures and fixed data as shown in FIG. 6, for example.

KBはキーボードであり、文書データの入力,印刷書式の
設定等を行う。
KB is a keyboard for inputting document data and setting print formats.

CRTは陰極線管であり、入力された文書や印刷書式等の
表示を行う。
The CRT is a cathode ray tube and displays the input document, print format, etc.

DISKは補助記憶装置であり、入力された文書の保存等に
使用する。
DISK is an auxiliary storage device, and is used for storing input documents.

PRTはプリンタであり、入力された文書の印刷を行う。The PRT is a printer and prints the input document.

RAMはランダム・アクセス・メモリであり、入力された
文書データ,印刷書式データおよび各種可変データを一
時記憶するために用いる。このRAMの内容を更に詳しく
示したのが第4図である。
RAM is a random access memory and is used to temporarily store the input document data, print format data, and various variable data. FIG. 4 shows the contents of this RAM in more detail.

第4図において、LOG−DATAはキーボードKBより設定さ
れた印刷書式を格納するエリアであり、1頁の行数(PR
T−LNO),標準改行ピッチ(PRT−LPIT)はここに含ま
れる。また、DOC−DATAは入力された文書データを格納
するエリアである。文書データは行単位で格納され、そ
の詳細は第5図に示すとおりである。
In FIG. 4, LOG-DATA is an area for storing the print format set by the keyboard KB, and the number of lines per page (PR
T-LNO) and standard line feed pitch (PRT-LPIT) are included here. DOC-DATA is an area for storing the input document data. The document data is stored line by line, and the details are as shown in FIG.

行データの先頭には制御データを付加し、「改頁行フラ
グ」にはその行が改頁行であるかどうかのデータを、
「改行ピッチ」には行毎に個別に指定した改行ピッチを
格納する。
Control data is added to the beginning of the line data, and data indicating whether the line is a page break line is set in the "Page break line flag".
The line feed pitch specified individually for each line is stored in "line feed pitch".

PRT−XDOMAINは、PRT−LPITおよびPRT−LNOより決定さ
れる、標準印刷領域を格納するエリアである。また、PR
T−CRNTXは、印刷開始位置から現在印刷中の行までの長
さを保持するエリアである。
PRT-XDOMAIN is an area for storing a standard print area, which is determined by PRT-LPIT and PRT-LNO. Also, PR
T-CRNTX is an area that holds the length from the print start position to the line currently being printed.

次に、本実施例の動作を説明する。ただし、キーボード
KBからの文書データおよび印刷書式の設定については、
既によく知られているので、説明は省略する。
Next, the operation of this embodiment will be described. However, the keyboard
For setting the document data from KB and print format,
Since it is already well known, its explanation is omitted.

第6図に示すフローチャートにおいて、まずステップS
1.1により標準印刷領域(PR−XDOMAIN)を計算する。標
準印刷領域は、第7図に示すように標準改行ピッチ(PR
−LPIT)を用いて1頁の行数(PR−LNO)分だけを印刷
するものと想定した場合の、先頭行の中心より最終行の
中心までの長さであり、次式により求めることができ
る。
In the flowchart shown in FIG. 6, first, step S
Calculate the standard print area (PR-XDOMAIN) according to 1.1. The standard print area is the standard line feed pitch (PR
-LPIT) is the length from the center of the first line to the center of the last line when it is assumed that only the number of lines (PR-LNO) for one page is printed. it can.

PR−XDOMAIN=PR−LPIT×(PR−LNO−1) 次に、文書ポインタが文書データの先頭を指すようにし
(ステップS1.2)、その後、実際に印刷された縦方向の
長さ(PR−CRNTX)を保持するカウンタ(PR−CRNTX)を
クリアする(ステップS1.3)。
PR-XDOMAIN = PR-LPIT * (PR-LNO-1) Next, the document pointer is made to point to the beginning of the document data (step S1.2), and then the length of the actually printed vertical direction (PR Clear the counter (PR-CRNTX) that holds -CRNTX) (step S1.3).

印刷を行う場合、文書ポインタが文書データの終端まで
到達しているときには(ステップS2.1)、改頁処理を行
い(ステップS5)、処理を終了する。これに対して、文
書終端ではなく且つ当該行が改頁行であった場合(ステ
ップS2.2)には、文書ポインタを次の行まで進め(ステ
ップS4.1)、改頁処理を行った(ステップS4.2)後に、
ステップS1.3に戻る。
When printing, when the document pointer reaches the end of the document data (step S2.1), a page break process is performed (step S5), and the process ends. On the other hand, if the line is not the end of the document and the line is a page break line (step S2.2), the document pointer is advanced to the next line (step S4.1), and page break processing is performed. After (step S4.2),
Return to step S1.3.

次に、文書終端ではなく且つ当該行が改頁行でもない場
合は、PR−CRNTXの値がPR−XDOMAINの値を越えているか
否かをチェックし(ステップS2.3)、もし越えていれば
改頁処理(ステップ4.2)を行い、ステップ1.3に戻る。
Next, if it is not the end of the document and the line is not a page break line, it is checked whether the value of PR-CRNTX exceeds the value of PR-XDOMAIN (step S2.3). For example, page break processing (step 4.2) is performed, and the process returns to step 1.3.

もし、PR−CRNTXの値がPR−XDOMAINの値を越えていなけ
れば、当該行の印刷を行う(ステップS3.1)。なお、こ
のとき同様に当該行に関して指定された改行ピッチ分だ
け改行を行う。その後、PRT−CRNTXに対して当該行の改
行ピッチを加算し(ステップS3.2)、文書ポインタを次
の行に進めた後(ステップS3.3)、ステップS2.1に戻る
(印刷制御の概念を示す第8図参照)。
If the value of PR-CRNTX does not exceed the value of PR-XDOMAIN, the line is printed (step S3.1). At this time, similarly, a line feed is performed by the line feed pitch designated for the line. After that, the line feed pitch of the line is added to PRT-CRNTX (step S3.2), the document pointer is advanced to the next line (step S3.3), and the process returns to step S2.1 (print control (See FIG. 8 showing the concept).

上述した実施例において、1行分の文書の印刷を行うか
否かについての判定(第6図;ステップS1.3,S2.3,S3.1
〜S3.3,S4.2)は、文字処理装置本体で行っているが、
標準印刷領域を文字処理装置よりプリンタに転送し、判
定処理をプリンタ側に行わせてもよい。
In the above-described embodiment, it is determined whether or not to print one line of document (FIG. 6; steps S1.3, S2.3, S3.1).
~ S3.3, S4.2) is performed by the character processing device itself,
The standard print area may be transferred from the character processing device to the printer, and the determination process may be performed on the printer side.

[効果] 以上説明した通り、本発明によれば、書式情報により定
まる1頁の出力長さで頁が区切られることを考慮して作
成された文書を出力する際に、セットされている用紙の
サイズにより文書作成時の意図が出力時に無視されるこ
となく、作成時に意図された頁の区切りを保持した状態
で出力することができる、という格別な効果が得られ
る。
[Effect] As described above, according to the present invention, when a document created in consideration of the fact that pages are separated by the output length of one page determined by the format information is output, the number of sheets of paper loaded is reduced. Due to the size, the special effect that the intention at the time of creating the document is not ignored at the time of output and the page break intended at the time of creating can be output while being maintained is obtained.

さらに、本発明によれば、1頁の出力長さのばらつきを
抑え、見栄えの良い出力が可能となる。
Furthermore, according to the present invention, it is possible to suppress variations in the output length of one page and output with a good appearance.

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

第1図(A)〜(C)は従来方式による印刷例を示す
図、 第2図は本発明の全体構成を示す図、 第3図は本発明の一実施例を示す構成図、 第4図は本実施例に用いるRAMの詳細構成図、 第5図は本実施例に係る文書データ1桁分のデータ構成
図、 第6図は本実施例の制御手順を示すフローチャート、 第7図は標準印刷領域の概念を説明する図、 第8図は印刷制御の概念を説明する図である。 2……標準書式設定手段、 3……文書個別行ピッチ設定手段、 6……標準印刷領域演算手段、 8……印刷制御手段、 CPU……マイクロプロセッサ、 ROM……読み出し専用メモリ、 KB……キーボード、 CRT……陰極線管、 DISK……補助記憶装置、 PRT……プリンタ、 RAM……ランダムアクセスメモリ。
1 (A) to 1 (C) are diagrams showing an example of printing by a conventional method, FIG. 2 is a diagram showing the overall configuration of the present invention, FIG. 3 is a configuration diagram showing an embodiment of the present invention, and FIG. FIG. 5 is a detailed configuration diagram of a RAM used in the present embodiment, FIG. 5 is a data configuration diagram of one digit of document data according to the present embodiment, FIG. 6 is a flowchart showing a control procedure of the present embodiment, and FIG. FIG. 8 is a diagram illustrating the concept of a standard print area, and FIG. 8 is a diagram illustrating the concept of print control. 2 ... Standard format setting means, 3 ... Document individual line pitch setting means, 6 ... Standard printing area calculation means, 8 ... Print control means, CPU ... Microprocessor, ROM ... Read-only memory, KB ... Keyboard, CRT …… cathode ray tube, DISK …… auxiliary storage device, PRT …… printer, RAM …… random access memory.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】頁の書式として設定される、1頁の出力行
数に第1の行間隔情報を掛けた値に対応する1頁の出力
長さを、書式標準長さとして保持し、 文書の途中で設定され、前記第1の行間隔情報とは異な
る第2の行間隔情報を保持し、 前記第1および第2の行間隔情報に基づき出力される文
書データの、累積出力長さを導出し、 前記累積出力長さが前記保持されている書式標準長さを
越えるか否か判定し、 前記累積出力長さが前記保持されている書式標準長さを
越えると判定される場合には、前記書式として設定され
ている1頁の出力行数に関わらず改頁処理を行ない、 前記累積出力長さが前記保持されている書式標準長さを
越えないと判定される場合には、該累積出力長さが当該
文書データの出力用にセットされている用紙長さに足り
るか否かに関わらず、書式標準長さを越えると判定され
るまでデータの出力を続けた後、改頁処理を行なうこと
を特徴とする文書処理方法。
1. An output length of one page corresponding to a value obtained by multiplying the number of output lines of one page by the first line spacing information, which is set as a page format, is held as a format standard length, and a document is stored. The second line spacing information different from the first line spacing information, which is set in the middle of, and the cumulative output length of the document data output based on the first and second line spacing information is set. Deriving, determining whether the cumulative output length exceeds the stored format standard length, and when it is determined that the cumulative output length exceeds the retained format standard length, The page break processing is performed regardless of the number of output lines of one page set as the format, and when it is determined that the cumulative output length does not exceed the held standard format length, The cumulative output length is added to the paper length set for outputting the document data. Luke regardless whether, after continued output of the data until it is determined that exceeds format standard length, document processing method characterized by performing a page break processing.
JP58216062A 1983-11-18 1983-11-18 Document processing method Expired - Lifetime JPH0790656B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58216062A JPH0790656B2 (en) 1983-11-18 1983-11-18 Document processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58216062A JPH0790656B2 (en) 1983-11-18 1983-11-18 Document processing method

Publications (2)

Publication Number Publication Date
JPS60109883A JPS60109883A (en) 1985-06-15
JPH0790656B2 true JPH0790656B2 (en) 1995-10-04

Family

ID=16682676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58216062A Expired - Lifetime JPH0790656B2 (en) 1983-11-18 1983-11-18 Document processing method

Country Status (1)

Country Link
JP (1) JPH0790656B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62187361U (en) * 1986-05-20 1987-11-28
JP2908899B2 (en) * 1991-04-26 1999-06-21 シャープ株式会社 Character processor

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51147127A (en) * 1975-06-13 1976-12-17 Hitachi Ltd Output printer for data processor
JPS58114983A (en) * 1981-12-28 1983-07-08 Canon Inc Printer

Also Published As

Publication number Publication date
JPS60109883A (en) 1985-06-15

Similar Documents

Publication Publication Date Title
JPH0420789B2 (en)
JPH058449B2 (en)
JPH0619773B2 (en) Document processor
JPH0790656B2 (en) Document processing method
JPH0474740B2 (en)
JP2803087B2 (en) Print processing device
JPH0619772B2 (en) Document processor
JP2846211B2 (en) Information processing device
JPH05266013A (en) Document page compression processing method
JP2687478B2 (en) Printing device
JP2000181673A (en) Document printer
JPH0687249A (en) Apparatus for printing address
JPH01242267A (en) Page printer
JPS6318770B2 (en)
JPS60109888A (en) Character processor
JPH11105370A (en) Print controller, print control method and memory medium
JPH02250162A (en) Character processor
JP2849505B2 (en) Document processing device
JPH0573562A (en) Document editor
JPS6316769B2 (en)
JPH0785173A (en) Slip printer
JPH01103467A (en) Document output method
JPH02178765A (en) Document preparing device
JPH06243127A (en) Document layout device
JPS61197269A (en) Character output device