JPS6328678A - Printer page feed control system - Google Patents

Printer page feed control system

Info

Publication number
JPS6328678A
JPS6328678A JP61172113A JP17211386A JPS6328678A JP S6328678 A JPS6328678 A JP S6328678A JP 61172113 A JP61172113 A JP 61172113A JP 17211386 A JP17211386 A JP 17211386A JP S6328678 A JPS6328678 A JP S6328678A
Authority
JP
Japan
Prior art keywords
page
page break
page feed
code
special
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
JP61172113A
Other languages
Japanese (ja)
Inventor
Toshiko Hirose
広瀬 稔子
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP61172113A priority Critical patent/JPS6328678A/en
Publication of JPS6328678A publication Critical patent/JPS6328678A/en
Pending legal-status Critical Current

Links

Landscapes

  • Handling Of Sheets (AREA)
  • Handling Of Cut Paper (AREA)

Abstract

PURPOSE:To enable an automatic optimization of page feed position, by a method wherein a printer device itself is provided with a special page feed code, which is changed to a line feed code or a page feed code under constant conditions. CONSTITUTION:When a receiving data from a receive part 1, a receive controller 3 writes the data on a position pointed by a tail pointer. When a character number counter 31 reaches the character number for one line, the controller 3 adds 1 to a line number counter 4. When the counter 4 reaches the line number for one page or when the controller 3 receives a page feed code, a controller 7 retrieves a special page feed code or a page feed code in a buffer 8; if both the special page feed code and the page feed code are detected, a special page feed code position is corrected to a page feed code position; and if the neither is detected, the tail pointer is written in a page feed pointer and sent to an output part 2. In this manner, a position for conducting page feed in printout can be automatically optimized.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はプリンタ装置の改ページ制仰万式、さらに祥し
く云えばプリンタ装肯自体に改ページコード?有する改
ページff1ll 飢万式に関する。
[Detailed Description of the Invention] (Field of Industrial Application) The present invention provides a page break system for printer devices, and more importantly, a page break code for the printer itself. Page break with ff1ll Regarding the famine ceremony.

(従来の技術) プリンタ装置における改ページ?till飢は上位装置
からプリント丁べきデータとともに送られてくる改ペー
ジコードに従って行なわれている。
(Prior art) Page break in printer device? Tilling is performed according to a page break code sent from the host device together with the data to be printed.

(発明が解決しようとする問題点) しtがって、改ページ上するか否かの判断は上位装置に
依存することとなジ第2図に示す:うな改ページ制御が
行なわれる。
(Problems to be Solved by the Invention) Therefore, the decision as to whether or not to start a page break depends on the host device. Page break control is performed as shown in FIG. 2.

第2図におい又、2−1のようなデータI) %’r合
でQ印?改行とし、1ページの長きkaと丁れば、2−
2に示すような2ページに及ぶプリントアウトが得られ
る。ま定中印丁べc’に改行ではなく改ページとすれば
、2−3のような3ページに及ぶプリントアウトが得ら
れる。
In Figure 2, data like 2-1 I) Q mark at %'r? If you make a line break and divide it with the long ka of one page, it becomes 2-
A two-page printout as shown in Figure 2 is obtained. If you use a page break instead of a line break at the middle print page c', you will get a three-page printout like 2-3.

これ金兄やすさ等を考慮して2−4に示すような2ペー
ジに及ぶプリントアウトにするためにはつ印11i改行
に、つ印12および13を改ページに判断しなければな
らない。
In order to print out a two-page printout as shown in 2-4, taking into account ease of use, it is necessary to determine that the cross mark 11i is a line break, and the cross marks 12 and 13 are page breaks.

そして、2−4のような中印の1」断の下で紙面の長さ
方向’a−b (<a )とした場合は2−5に示すよ
うな3ページに及ぶ印刷配置となって見苦しいものとな
る。
If the length direction of the paper is 'a-b (<a) under the 1'' cutout of the center mark as shown in 2-4, the printing layout will span three pages as shown in 2-5. It becomes unsightly.

これ?2−6のように出力させるためには中印?すべて
改ページに修正する必要がある。
this? Is it a middle mark to output like 2-6? All must be corrected to page breaks.

本発明の目的は改ページ制御で上位装置からの改ページ
コードによる指示とは別個に轟該装置においても可能に
することにより見易丁A1ま′fcは見苦しくないプリ
ントアウトを得ることができるプリンタ改ページ制御方
式全提供することにある。
An object of the present invention is to provide a printer that can obtain printouts that are not unsightly by making page break control possible in the device separately from the page break code instruction from the host device. It provides a complete page break control method.

(問題点を解決する之めの手段) @記目的ケ達成するために本発明によるプリンタ改ペー
ジ制御方式はプリンタの改ページを行なりための特殊改
ページコード金持ち、上位装置からのデータ?受信する
受信手段と、前記受信手段からの受信データ?少なくと
も1ベ一ジ分−時的に記憶する記憶手段と、前記記憶手
段内に記憶され念データが一定の条件ケ満たしたとき、
記は内容から特殊改ページコードま次は改ページコード
ケ検索し、特殊改ページコードケ検出した場合は改行コ
ードまたは改ページコードに変換し、1ページに対し、
前記記憶内容のプリント丁べき範囲全指定する制御手段
と、前記制御手段の指定に基づき、前記記憶手段の記憶
データケ出力する出力手段とを含み、上位装置から送ら
れてくる改ページコードのほかに、前記受信手段がもつ
特殊改ページコードによっても改ページまたは改行上行
なうように構成され又いる。
(Means for Solving the Problems) In order to achieve the purpose described above, the printer page break control method according to the present invention uses a special page break code to perform page breaks in the printer, and data from the host device. A receiving means to receive and data received from said receiving means? a storage means for temporally storing at least one page; and when the mental data stored in the storage means satisfies certain conditions;
Search for the special page break code from the content, and if a special page break code is detected, convert it to a line break code or page break code, and then write it for one page.
It includes a control means for specifying the entire range to be printed of the stored contents, and an output means for outputting the stored data of the storage means based on the specification of the control means, in addition to the page break code sent from the host device. , is also configured to perform a page break or line break based on a special page break code possessed by the receiving means.

(実 施例) 以下、図面?参照して不発明?さらに詳しく説明する。(Example) Is the drawing below? Uninvented with reference? I will explain in more detail.

第1図は本発明によるプリンタ改ページ制御方式の一実
施例ゲ示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a printer page break control method according to the present invention.

図において、受信部lは図示しない上位装置よジデータ
?受信する受信手段、バッファ8は受信したデータ?少
なくとも1ページ分一時的に記憶する記憶手段である。
In the figure, the receiving unit l receives data from a higher-level device (not shown). Is the receiving means and buffer 8 the received data? It is a storage means for temporarily storing at least one page.

受信コントローラ3、行数カウンタ4、先頭ポインタ5
、後尾ポインタ6および出力コントローラ7よジなる部
分は特殊改ページコード全改行コードまたは改ページコ
ードに変換し、1ペ一ジ分のプリントすべき範囲を指示
する制御手段、出力部2は出力手段である。
Reception controller 3, line counter 4, start pointer 5
, the trailing pointer 6 and the output controller 7 are control means for converting a special page break code into a full line break code or a page break code and instructing the range to be printed for one page, and the output section 2 is an output means. It is.

受信部lがデータを受信すると、受信データ?順次受信
コントローラ3に渡す。受信コントローラ3はバッファ
8の後尾ポインタ6が示す位置に受信データケ書込む。
When the receiving unit l receives data, the received data? The data is sequentially passed to the reception controller 3. The reception controller 3 writes the received data to the position indicated by the tail pointer 6 of the buffer 8.

字数カウンタ31をυから初めて1ii1次+1インク
リメントする。
The character number counter 31 is incremented by 1ii1+1 for the first time from υ.

字数カウンタ31はプリンタの印字位置?示すものとし
I T A B 、改行などの場合はそれにLじてカウ
ンタの頃?変更させる。
Is the character counter 31 the printing position of the printer? Is it indicated by I T A B , and in the case of a line break, etc., is it the same as L for a counter? make it change

字数カウンタ31の値が1行の字数に達っ丁れば、行数
カウンタの値toから初めて+1インクリメントして字
数カウンタ31?ゼロクリアする。行数カウンタ4の値
が1ペ一ジ分に達っし念場合か、ま之は受信コントロー
ラ3が改ページコードを受信した場合にはその旨が出力
コントローラ7に通知される。
When the value of the character number counter 31 reaches the number of characters in one line, it is incremented by +1 for the first time from the value to of the line number counter, and the character number counter 31? Clear to zero. If the value of the line counter 4 reaches one page, or if the reception controller 3 receives a page break code, the output controller 7 is notified of this fact.

通知?受けた出力コントローラ7はバッファ8内のデー
タの先頭ポインタ5から後尾ポインタ6の範囲において
、將殊改ページまたに改ページコード′に検索する。先
頭ポインタから検索上行ない、特殊改ページコードケ検
出した場合は、その位置が改ページポインタ71に−a
込まれる。そして検索が続行され、改ページコード?検
出した場合はその位置?改ページポインタ71に書込み
サーチ?終了する。
notification? Upon receiving the data, the output controller 7 searches for a special new page or page break code 'in the range from the head pointer 5 to the tail pointer 6 of the data in the buffer 8. If you search up from the first pointer and detect a special page break code, the position will be changed to the page break pointer 71 -a
be included. And the search continues, page break code? If detected, what is its location? Write search to page break pointer 71? finish.

特殊改ページコードが検(支)され、さらに改ページコ
ードが検出された場合には、特殊改ページコードの位置
が書込まれ九改ページボインメ71の値は改ページコー
ドの位置の値に16正される。
When a special page break code is detected and a page break code is detected, the position of the special page break code is written and the value of 9 page break page mark 71 is the value of the page break code position. 16 Corrected.

いずれのコードも検出しない場合は改ページポインタ7
1に後尾ポインタ6のi’iiき込んで検索を終了する
If neither code is detected, page break pointer 7
1 of the trailing pointer 6 is written to end the search.

検索か終了したときはバッファ8内のデータのうち、先
頭ポインタ5から改ページポインタ711での範囲のデ
ータを出方部2に渡す。
When the search is completed, out of the data in the buffer 8, data in the range from the head pointer 5 to the page break pointer 711 is passed to the output section 2.

このとき特殊改ページコードはその位置が改ページポイ
ンタ71の値に等しくない場合は改行コードに、等しい
場合は改ページコードに変換しながら渡す。出力部2は
これを出力する。
At this time, the special page break code is passed while being converted into a line break code if its position is not equal to the value of the page break pointer 71, and into a page break code if it is equal. The output unit 2 outputs this.

出力コントローラ7はデータ?渡し終れば先頭ポインz
5に改ページポインタ71の儀の次の’Lfi−に@込
んで受信コントローラ3にカウンタ再設定指示を送出す
る。
Is output controller 7 data? After passing, start point z
5, it enters 'Lfi-' next to the page break pointer 71 and sends a counter reset instruction to the reception controller 3.

カウンタ褥設定指示を受けた受信コントローラ3は一旦
、行数カウンタ4と字数カウンタ31?Oでクリアする
。そしてバッファ8内の先頭ポインタから後尾ポインタ
6までの範囲のデータについて、受信s1からデータを
受信したと同様に字数カウンタ31と行数カウンタ4?
!−操作し、次の受信データの処理にかかる。
Upon receiving the counter setting instruction, the receiving controller 3 temporarily sets the line number counter 4 and the character number counter 31? Clear with O. Then, regarding the data in the range from the head pointer to the tail pointer 6 in the buffer 8, the character number counter 31 and the line number counter 4?
! - Operate and start processing the next received data.

このよりに処理することによジ2−1のよつな形のデー
タは2−4のような形式に出力される。
Through this processing, the data in the various formats shown in 2-1 are outputted in the format shown in 2-4.

すなわち、Q印?特殊改ページコードとすると、2−4
におい壬!:!印11の特殊改ページコードの位置と改
ページポインタ71の値とは異なるのでつ印11の特殊
改ページコードは改行コードに変換され、中口12の特
殊改ページコードの位置と改ページポインタ71の値と
は一致するのでつ印12の特殊改ページコードに改ペー
ジコードに、同様に中口13の¥I妹改ページコードも
改ページコードに変換でれる。
In other words, the Q mark? If it is a special page break code, 2-4
Smell it! :! Since the position of the special page break code marked 11 and the value of the page break pointer 71 are different, the special page break code marked 11 is converted to a line feed code, and the position of the special page break code marked 12 and the value of the page break pointer 71 are converted to a line feed code. Since the values match, the special page break code of mark 12 can be converted to a page break code, and similarly the \I sister page break code of middle entrance 13 can be converted to a page break code.

ま几、用紙の大きさ會変えた井飢全く′lσ正を施さな
くても2−6のように改ページ位置が変更されて出力さ
れる。
However, even if the paper size is changed, the page break position will be changed and output as shown in 2-6, even if no 'lσ correction is applied.

(発明の効果) 以上、詳しく説明し念ように本発明は、プリンタ装置自
体に特殊改ページコードケ持ち、この特殊改ページコー
ドを一定の薬注下に改行コードまfcは改ページコード
に変更するように唇成され次ものである。
(Effects of the Invention) As explained above in detail, the present invention has a special page break code in the printer device itself, and this special page break code is changed to a line feed code or fc to a page break code when a certain amount of medicine is injected. The next thing is to make your lips look like this.

したがって、プリントアウトの改ページカニ行iわれる
位置が自動的に最適化されるという効果がある。
Therefore, there is an effect that the position at which the page break of the printout is performed is automatically optimized.

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

第1図は本発明によるプリンタ改ページ制御方式の実施
例を示すブロック図、第2図はプリントアウトの各側を
示す図で、第2図2−1は原始データ?、第2図2−2
および2−3は従来技術によるプリントアウトの例、第
2図2−4は本発明による制御方式におけるプリントア
ウトの例、第2図2−5は従来技術で2−4の出力とな
るように中の内容?改行/改ページとし几データを、祇
サイズを度えて同じく従来寸支術で7°リントアウトし
た例、第2図2−6はQヶ特殊改ページとした2−1の
データ?、本発明によってプリントアウトし7た例ンそ
れぞれ示し′C^る。 1・・・受信部     2・・・出刃部3・・・受信
コントローラ  4・・・haカウンタ5・・・先頭ポ
インタ  6・・・後尾ポインタ7・・・出力コントロ
ーラ  8・・・バッファ31・・・字数カウンタ 71・・・改ページポインタ
Fig. 1 is a block diagram showing an embodiment of the printer page break control method according to the present invention, Fig. 2 is a diagram showing each side of the printout, and Fig. 2-1 shows the original data? , Figure 2 2-2
2-3 is an example of a printout according to the prior art, FIG. 2 2-4 is an example of a printout using the control method according to the present invention, and FIG. 2 2-5 is an example of a printout according to the conventional technology. What's inside? An example of linting out 7° data with line breaks/page breaks, increasing the size, and using the same conventional technique. Figure 2 2-6 shows data 2-1 with Q special page breaks. , seven examples printed out according to the present invention are shown respectively. 1...Receiving section 2...Blade section 3...Receiving controller 4...Ha counter 5...Start pointer 6...Tail pointer 7...Output controller 8...Buffer 31...・Character number counter 71...Page break pointer

Claims (1)

【特許請求の範囲】[Claims] プリンタの改ページを行なうための特殊改ページコード
を持ち、上位装置からのデータを受信する受信手段と、
前記受信手段からの受信データを少なくとも1ページ分
一時的に記憶する記憶手段と、前記記憶手段内に記憶さ
れたデータが一定の条件を満したとき、記憶内容から特
殊改ページコードまたは改ページコードを検索し、特殊
改ページコードを検出した場合は改行コードまたは改ペ
ージコードに変換し、1ページに対し、前記記憶内容の
プリントすべき範囲を指定する制御手段と、前記制御手
段の指定に基づき前記記憶手段の記憶データを出力する
出力手段とを含み、上位装置から送られてくる改ページ
コードのほかに、前記受信手段がもつ特殊改ページコー
ドによつても改ページまたは改行を行なうように構成し
たことを特徴とするプリンタ改ページ制御方式。
a receiving means having a special page break code for performing a page break in the printer and receiving data from a host device;
storage means for temporarily storing at least one page of data received from the receiving means; and when the data stored in the storage means satisfies a certain condition, a special page break code or a page break code is generated from the stored contents. and, if a special page break code is detected, convert it into a line break code or page break code, and specify a range of the stored contents to be printed for one page, and a control means for specifying the range to be printed of the stored contents for one page, and an output means for outputting the data stored in the storage means, and in addition to a page break code sent from a host device, a page break or line break is also performed by a special page break code possessed by the receiving device. A printer page break control method characterized by the following configuration.
JP61172113A 1986-07-22 1986-07-22 Printer page feed control system Pending JPS6328678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61172113A JPS6328678A (en) 1986-07-22 1986-07-22 Printer page feed control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61172113A JPS6328678A (en) 1986-07-22 1986-07-22 Printer page feed control system

Publications (1)

Publication Number Publication Date
JPS6328678A true JPS6328678A (en) 1988-02-06

Family

ID=15935794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61172113A Pending JPS6328678A (en) 1986-07-22 1986-07-22 Printer page feed control system

Country Status (1)

Country Link
JP (1) JPS6328678A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03264382A (en) * 1990-03-14 1991-11-25 Nec Corp Page printer
JP2013050991A (en) * 2012-11-26 2013-03-14 Ricoh Co Ltd Print data generation device, print data generation method, printer driver program, and print data generation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03264382A (en) * 1990-03-14 1991-11-25 Nec Corp Page printer
JP2013050991A (en) * 2012-11-26 2013-03-14 Ricoh Co Ltd Print data generation device, print data generation method, printer driver program, and print data generation system

Similar Documents

Publication Publication Date Title
JPS6328678A (en) Printer page feed control system
JPH0890846A (en) Print buffer
JPH01184156A (en) Printing automatic contracting/magnifying system of printer
JPH06251014A (en) Document printing method
JP2000181673A (en) Document printer
JPH0830946B2 (en) Code data output method
KR920007722B1 (en) Font rom&#39;s charactor reduction printing method
JPS6126129A (en) Printer device
KR960005018B1 (en) Font treatment method in bit map font
JPS5831443A (en) Printer
JPS6246010B2 (en)
JPS5959459A (en) Reverse-order printing system for printer
JPS6166464A (en) Facsimile transmitting equipment
JPH0524839B2 (en)
JPS62238757A (en) Printing control system
JPS62284777A (en) Printing controlling system for variable line feed pitch business form
JPH0347778A (en) Format controller for page printer
JPH02255965A (en) Word processor
JPH04361363A (en) Information processor
JPH01171960A (en) Printer apparatus
JPH041068A (en) Printer device
JPS58212976A (en) Printing device
JPH01128846A (en) Reduced-size printing method of printer
JPH01216478A (en) Output telegram editing system
JPS63226166A (en) Facsimile equipment