JPH06104371B2 - Printer - Google Patents
PrinterInfo
- Publication number
- JPH06104371B2 JPH06104371B2 JP1146956A JP14695689A JPH06104371B2 JP H06104371 B2 JPH06104371 B2 JP H06104371B2 JP 1146956 A JP1146956 A JP 1146956A JP 14695689 A JP14695689 A JP 14695689A JP H06104371 B2 JPH06104371 B2 JP H06104371B2
- Authority
- JP
- Japan
- Prior art keywords
- line feed
- line
- text data
- printing
- paper
- 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 - Fee Related
Links
Landscapes
- Record Information Processing For Printing (AREA)
- Character Spaces And Line Spaces In Printers (AREA)
Description
【発明の詳細な説明】 <産業上の利用分野> 本発明は、メモリに記憶された文章データを所定の改行
間隔で印字するプリンタやレーザーライター等の印字装
置に関するものである。TECHNICAL FIELD The present invention relates to a printer such as a printer or a laser writer that prints text data stored in a memory at a predetermined line feed interval.
<従来の技術> この種の印字装置では、文章データを記憶したフロッピ
ーディスク等のメモリを装着してキー操作等により印字
指令を出すと、印字動作が実行され、オペレータが改行
コードを実行した時またはワード・ラップ等によって装
置が自動的に改行指令を出した時に、装置に予め設定さ
れている改行間隔、例えば1/6インチや1/8インチの行間
隔で改行される。<Prior Art> In this type of printing device, when a memory such as a floppy disk storing text data is mounted and a print command is issued by a key operation or the like, a print operation is executed, and when the operator executes a line feed code. Alternatively, when the device automatically issues a line feed command by word wrap or the like, line feed is performed at a line feed interval preset in the device, for example, a line gap of 1/6 inch or 1/8 inch.
<発明が解決しようとする課題> 然し乍ら、従来の何れの印字装置においても、改行指令
が出されると設定行間隔に従って無条件に改行されてし
まうので、例えば、第4図に示すように、1頁目と2頁
目の2枚の印字用紙P1,P2に印字した後に3頁目の印字
用紙P3に僅か5行の印字が行われる場合が生じ、最終頁
の印字用紙P3は殆んどが空白であって非常に不経済であ
る。また、全体として間延びしたテキストになってしま
うので、オペレータが印字結果を見て改行間隔量を変更
したり、或いは各行の改行間隔をマニュアルで変更した
りし、その後に再度印字してテキストを作り直している
のが実状であり、最初に印字した印字用紙が無駄になる
だけでなく、オペレータに非常に煩雑な操作を強いる問
題がある。<Problems to be Solved by the Invention> However, in any conventional printing device, when a line feed command is issued, line feed is unconditionally performed according to the set line spacing. Therefore, for example, as shown in FIG. In some cases, only 5 lines are printed on the printing paper P3 on the 3rd page after printing on the printing papers P1 and P2 on the 2nd and 2nd pages, and most of the printing paper P3 on the final page is printed. It is blank and very uneconomical. Also, the text will be stretched as a whole, so the operator can change the line feed spacing by looking at the print results, or manually change the line feed spacing for each line, and then print again to recreate the text. However, there is a problem in that not only the printing paper initially printed is wasted, but also the operator is forced to perform a very complicated operation.
本発明は、このような従来の問題点に鑑みてなされたも
のであり、最終頁に対応する文章データ量が僅かである
場合には、その文章データを最終から2枚目或いは全枚
数の印字用紙に自動的に割り振って印字することのでき
る印字装置を提供することを技術的課題とするものであ
る。The present invention has been made in view of the above conventional problems, and when the amount of text data corresponding to the final page is small, the text data is printed on the second sheet or the entire number of sheets from the last. It is a technical object to provide a printing device capable of automatically allocating and printing on paper.
<課題を解決するための手段> 本発明は、上記した課題を達成するための技術的手段と
して、印字装置を以下のように構成した。即ち、入力さ
れた文章データを記憶するとともに、印字指令により前
記文章データを設定された所定の行間隔で改行して印字
用紙に印字する印字装置において、印字処理に先立って
印字すべき全文章データの総改行間隔量を演算する総改
行間隔量演算手段と、この演算された総改行間隔量と用
紙フォーマットメモリの用紙情報による1ページ分の改
行間隔量とから最終ページの端行数を演算する端行数演
算手段と、この端行数を他のページにその改行間隔量を
変更することにより割り振りできるか否かを判別する判
断手段と、この判断手段により割り振りできると判断さ
れた時にのみ改行間隔量を変更する改行間隔量変更手段
とを備えたことを特徴として構成されている <作用> 印字指令がなされると、印字処理に先立って、セットさ
れた印字用紙を指定すれば、その印字用紙に関する用紙
情報が用紙フォーマットメモリから読み出され、印字す
べき全文章データの総改行間隔量が演算されるととも
に、この演算された総改行間隔量を1ページ分の改行間
隔量で除算して最終ページの端行数が演算される。次
に、改行間隔量を設定値よりも1単位小さくした場合に
前記端行数の文章データを最終から2ページ目の印字用
紙または最終ページを除く他の印字用紙に割り振りでき
るか否かが判別され、割り振りできない場合にはそのま
ま印字されるが、割り振りできる場合には、改行間隔量
を変更して印字される。従って、オペレータが煩雑な操
作をしなくとも、僅か数行の文章データが最終ページに
印字されるのを確実に防止することができる。<Means for Solving the Problems> According to the present invention, as a technical means for achieving the above-mentioned objects, a printer is configured as follows. That is, in the printing device which stores the inputted text data and prints the text data on a printing paper by line-feeding the text data by a print command, all the text data to be printed before the printing process. The total line feed interval amount calculating means for calculating the total line feed line amount and the line feed interval amount for one page according to the calculated total line feed interval amount and the paper information of the paper format memory, the end line number of the final page is calculated. An end line number calculating means, a determining means for determining whether or not this end number can be assigned to another page by changing the line feed interval amount, and a line feed only when it is determined by this determining means. It is characterized in that it is provided with a line feed space amount changing means for changing the space amount. <Operation> When a print command is issued, it is set prior to the print processing. If character paper is specified, the paper information about the print paper is read from the paper format memory, the total line feed interval amount of all text data to be printed is calculated, and the calculated total line feed interval amount is calculated as one page. The number of end lines on the last page is calculated by dividing by the line feed interval amount of minutes. Next, when the line feed interval amount is made smaller than the set value by one unit, it is determined whether the text data of the end line number can be allocated to the printing paper of the second page from the last or other printing paper except the last page. If it cannot be allocated, it is printed as it is, but if it can be allocated, it is printed with the line feed interval amount changed. Therefore, even if the operator does not perform a complicated operation, it is possible to reliably prevent only a few lines of text data from being printed on the final page.
<実施例> 以下、本発明の好ましい一実施例について図面を参照し
ながら詳細に説明する。<Example> Hereinafter, a preferred example of the present invention will be described in detail with reference to the drawings.
第1図は日本語ワードプロセッサに適用した場合の本発
明の一実施例のブロック構成を示し、コントローラ1aと
演算部1bとからなる中央処理装置1は、ROM2に予め記憶
されているプログラムに基づいて装置全体を制御するも
ので、操作部3の文章データ入力部3aにより入力された
文章データを信号処理して記憶部5の文章データメモリ
5aに記憶させるともに、表示器4に表示させる。また、
記憶部5の用紙フォーマットメモリ5bには、用紙の長
さ,用紙の幅,印字開始ライン,印字終了ライン等の印
字用紙に関する情報が記憶されており、操作部3の用紙
フォーマット設定部3bの操作による指示に応答して記憶
部5の用紙フォーマットメモリ5bに記憶されている印字
用紙の所定の情報を読み出すとともに、この用紙情報と
文章データメモリ5aの文章データとに基づいて改行間隔
量を演算部1bで演算し、この演算された改行行間隔量に
従って紙送り機構7の駆動を制御し、文章データメモリ
5aの文章データにより印字機構6の駆動を制御する。FIG. 1 shows a block configuration of an embodiment of the present invention when applied to a Japanese word processor. A central processing unit 1 including a controller 1a and an arithmetic unit 1b is based on a program stored in a ROM 2 in advance. A text data memory of the storage unit 5, which controls the entire apparatus, processes the text data input by the text data input unit 3a of the operation unit 3 and performs signal processing.
It is stored in 5a and displayed on the display 4. Also,
The paper format memory 5b of the storage unit 5 stores information about the print paper such as the length of the paper, the width of the paper, the print start line, and the print end line, and the operation of the paper format setting unit 3b of the operation unit 3 is performed. In response to an instruction from the storage unit 5, predetermined information of the printing paper stored in the paper format memory 5b of the storage unit 5 is read out, and the line feed interval amount is calculated based on this paper information and the text data in the text data memory 5a. Calculated in 1b, the drive of the paper feed mechanism 7 is controlled according to the calculated line feed line spacing amount, and the sentence data memory
The drive of the printing mechanism 6 is controlled by the text data of 5a.
第2図は、前記実施例の印字動作に先立って行われる改
行間隔量の自動補正動作のフローチャートを示し、以下
に説明する。操作部3により印字指令が行われると、先
ず、オペレータにより行間隔の自動補正を指令する操作
が行われたか否かを判別する(ステップS1)。もし、行
間隔の自動補正が不要であると操作されていた場合に
は、ステップS9にジャンプして既存装置と同様に印字処
理が行われ、第4図に示したように最終ページの印字用
紙に僅か5行の印字が行われる。FIG. 2 shows a flow chart of an operation of automatically correcting the line feed interval amount which is performed prior to the printing operation of the above-mentioned embodiment, which will be described below. When a print command is issued by the operation unit 3, first, it is determined whether or not the operator has performed an operation for instructing the automatic correction of the line spacing (step S1). If it is operated that the automatic correction of the line spacing is unnecessary, the process jumps to step S9 and the printing process is performed in the same manner as the existing device, and the printing paper of the final page is printed as shown in FIG. Only 5 lines are printed.
一方、行間隔の自動補正が必要であると操作されていた
場合には、文章データメモリ5aに記憶されている全文章
データの改行間隔量の総計つまり総改行間隔量が、改行
後に1行の改行間隔量を乗算して演算される(ステップ
S2)。On the other hand, when it is operated that the automatic correction of the line spacing is required, the total line feed interval amount of all the text data stored in the text data memory 5a, that is, the total line feed interval amount is one line after the line feed. Calculated by multiplying the line feed spacing (step
S2).
次に、用紙フォーマット設定部3bの操作により用紙フォ
ーマットメモリ5bから所要の用紙情報が読み出され(ス
テップS3)、この情報から1枚の印字用紙に印字できる
改行間隔量が求められる。Next, the required paper information is read from the paper format memory 5b by the operation of the paper format setting unit 3b (step S3), and the line feed interval amount that can be printed on one printing paper is obtained from this information.
そして、ステップS2で求めた総改行間隔量にステップS3
で求めた1ページ分の改行間隔量を除算して合計ページ
数つまり必要な印字用紙の枚数が算出され(ステップS
4)、この算出された合計ページ数が1と同じか若しく
は1より小さいか否かが判別され(ステップS5)、1と
同じか若しくは1より小さい場合、即ち原稿の全文章デ
ータが設定行間隔量で1枚の印字用紙内に納まる場合に
は、行間隔を補正する必要がないのでステップS9にジャ
ンプして印字処理が行われる。Then, add the total line feed spacing calculated in step S2 to step S3
The total number of pages, that is, the required number of print sheets, is calculated by dividing the line feed interval amount for one page obtained in step S (step S
4) Then, it is judged whether or not the calculated total number of pages is the same as 1 or smaller than 1 (step S5). If the amount of paper is contained in one print sheet, it is not necessary to correct the line spacing, and the process jumps to step S9 to perform print processing.
一方、合計ページ数が1より大きい場合には、ステップ
S4で演算した合計ページ数の小数部に1ページ分の改行
間隔量を乗算し且つこの算出結果を1行の改行間隔量で
除算して端行数の演算処理が行われる(ステップS6)。
更に、この演算した端行数に1ページ分の行数を加算し
た行数に設定改行間隔量よりも1単位小さい改行間隔量
を乗算して、その算出結果が前述の1単位小さい改行間
隔量による1ページ分の改行間隔量と同じか若しくは小
さいかによって行間隔の調整が可能か否かが判別され
(ステップS7)、可能でなければそのまま印字処理さ
れ、一方、可能であれば、合計ページ数から1を減算し
て最終ページのみ改行間隔量を設定値に対し1単位小さ
いものに変更し(ステップS8)た後に、その結果に基づ
いて印字機構6および紙送り機構7を駆動制御して印字
処理される。On the other hand, if the total number of pages is greater than 1, step
The fractional part of the total number of pages calculated in S4 is multiplied by the line feed interval amount for one page, and this calculation result is divided by the line feed interval amount of one line to perform the end line number computation processing (step S6).
Further, the number of lines obtained by adding the number of lines for one page to the calculated number of end lines is multiplied by the amount of line feed interval which is one unit smaller than the set line feed gap amount, and the calculated result is the line feed gap amount which is one unit smaller than the above. It is determined whether or not the line spacing can be adjusted depending on whether it is equal to or smaller than the line feed spacing for one page (step S7). If it is not possible, the print processing is performed as it is. After subtracting 1 from the number to change the line feed interval amount to be one unit smaller than the set value only on the final page (step S8), the printing mechanism 6 and the paper feeding mechanism 7 are drive-controlled based on the result. Printing is processed.
例えば、1枚の印字用紙に改行間隔量を8/48インチとし
て55行を印字すると設定されている場合に、総改行間隔
量が920/48インチで改行数が115となる文章データを印
字する場合、1ページ分の改行間隔量が440/48インチと
なるので、この文章データは設定通りに印字すると、第
4図に示したように2ページと5行の端行数となり、そ
の端行数の合計改行間隔量は40/48インチとなる。ここ
で、第2ページの改行間隔量を8/48インチから1単位小
さい7/48インチに変更した場合、この7/48インチの改行
間隔量により1ページに印字できる行数は62行であり、
第3図に示すように2ページ目の55行と端行数の5行の
計60行を第2ページ目の1枚の印字用紙P2に印字できる
ことになる。For example, if it is set to print 55 lines on one sheet of paper with a line feed interval of 8/48 inches, the text data with a total line feed spacing of 920/48 inches and 115 line feeds is printed. In this case, the line feed interval for one page is 440/48 inches, so if this text data is printed as set, it will be the number of end lines of 2 pages and 5 lines as shown in Fig. 4, and the end line The total number of line spacing is 40/48 inches. If you change the line feed spacing on the second page from 8/48 inches to one unit smaller, 7/48 inches, the number of lines that can be printed on one page is 62 lines due to the line feed spacing of 7/48 inches. ,
As shown in FIG. 3, a total of 60 lines, 55 lines on the second page and 5 lines at the end, can be printed on one sheet of printing paper P2 on the second page.
尚、本発明は、前記説明並びに図面の内容にのみ限定さ
れるものではなく、請求の範囲を逸脱しない限り種々の
変形例をも包含し得る。例えば、前記実施例では、端行
数を最終ページに割り振る場合について説明したが、全
ページに均等に割り振るようにすることもできる。The present invention is not limited to the above description and the contents of the drawings, and may include various modifications without departing from the scope of the claims. For example, in the above-described embodiment, the case of allocating the end row number to the last page has been described, but it is also possible to allocate it to all pages evenly.
<発明の効果> 以上のように本発明の印字装置によれば、印字処理に先
立って最終ページの端行数を演算するとともに、この端
行数の文章データを、改行間隔量を設定値よりも小さく
変更すれば他のページに割り振れるか否かを判別して、
割り振れる場合には自動的に改行間隔量を変更して印字
できるので、オペレータによる煩雑な操作に何ら頼るこ
となく、印字用紙を節約できるとともに、間延びしたテ
キストを作成するのを防止できる。<Effects of the Invention> As described above, according to the printing apparatus of the present invention, the number of end lines of the final page is calculated prior to the printing process, and the text data of this end number is calculated based on the line feed interval amount from the set value. Also determines if it can be allocated to other pages by changing it to a smaller value,
When it can be allocated, the line feed interval amount can be automatically changed and the printing can be performed. Therefore, the printing paper can be saved and the extended text can be prevented from being created without depending on the complicated operation by the operator.
第1図は本発明の一実施例のブロック構成図、 第2図はそのフローチャート、 第3図はそれにより印字された印字用紙の説明図、 第4図は従来装置により印字された印字用紙の説明図で
ある。 1……中央処理装置 3a……文章データ入力部 3b……用紙フォーマット設定部 5a……文章データメモリ 5b……用紙フォーマットメモリ 6……印字機構 7……紙送り機構FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flow chart thereof, FIG. 3 is an explanatory view of a printing paper printed by it, and FIG. 4 is a printing paper printed by a conventional apparatus. FIG. 1 ... Central processing unit 3a ... Text data input section 3b ... Paper format setting section 5a ... Text data memory 5b ... Paper format memory 6 ... Printing mechanism 7 ... Paper feeding mechanism
Claims (1)
に、印字指令により前記文章データを設定された所定の
行間隔で改行して印字用紙に印字する印字装置におい
て、印字処理に先立って印字すべき全文章データの総改
行間隔量を演算する総改行間隔量演算手段と、この演算
された総改行間隔量と用紙フォーマットメモリの用紙情
報による1ページ分の改行間隔量とから最終ページの端
行数を演算する端行数演算手段と、この端行数を他のペ
ージにその改行間隔量を変更することにより割り振りで
きるか否かを判別する判断手段と、この判断手段により
割り振りできると判断された時にのみ改行間隔量を変更
する改行間隔量変更手段とを備えてなることを特徴とす
る印字装置。1. A printing device for storing input text data and for printing the text data on a printing paper by line-feeding the text data by a print command at predetermined set line intervals, should be printed prior to printing processing. The total number of line feed intervals for calculating the total amount of line feed intervals for all text data, and the calculated number of line feed intervals and the amount of line feed for one page according to the paper information in the paper format memory, and the number of end lines of the final page. It is determined that the number of end lines can be assigned to this page, the determination unit that determines whether the number of end lines can be assigned to another page by changing the line feed interval amount, and this determination unit. A printing apparatus comprising: a line feed interval amount changing means for changing the line feed interval amount only occasionally.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1146956A JPH06104371B2 (en) | 1989-06-09 | 1989-06-09 | Printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1146956A JPH06104371B2 (en) | 1989-06-09 | 1989-06-09 | Printer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0310856A JPH0310856A (en) | 1991-01-18 |
| JPH06104371B2 true JPH06104371B2 (en) | 1994-12-21 |
Family
ID=15419384
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1146956A Expired - Fee Related JPH06104371B2 (en) | 1989-06-09 | 1989-06-09 | Printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06104371B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20020086330A (en) * | 2002-08-17 | 2002-11-18 | 송양미 | Aperson to use horizontal measurement for engineering or construction. |
-
1989
- 1989-06-09 JP JP1146956A patent/JPH06104371B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0310856A (en) | 1991-01-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH1058757A (en) | Character information printing device | |
| US5047956A (en) | Information processing device having a function of designating a printing-start position | |
| JPH06104371B2 (en) | Printer | |
| JPS6159920B2 (en) | ||
| JP3256640B2 (en) | Character information processing device | |
| JP2647077B2 (en) | Control method of cut paper printer | |
| JPH08108548A (en) | Color printing device and color printing method | |
| JP2000181673A (en) | Document printer | |
| JPH0667651B2 (en) | Output device | |
| US5162993A (en) | Word processing apparatus | |
| JP2514428B2 (en) | Output control method and device | |
| JP2798675B2 (en) | Character processor | |
| JPH07160688A (en) | Document print editing method | |
| JP2001310509A (en) | Color printer and personal computer connected to the color printer | |
| JP2670447B2 (en) | Output device and method | |
| JPS60104358A (en) | Character processing apparatus | |
| JPH0280266A (en) | printer | |
| JPH0592854A (en) | Printer | |
| JPH0790656B2 (en) | Document processing method | |
| JPH0259065B2 (en) | ||
| JPH04103380A (en) | Document editing device | |
| JPH04270669A (en) | label printer | |
| JPH0481516B2 (en) | ||
| EP0143995A2 (en) | Dot-matrix printer | |
| JPH04372051A (en) | Printing control method for word processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |