JPH0561673B2 - - Google Patents

Info

Publication number
JPH0561673B2
JPH0561673B2 JP58062639A JP6263983A JPH0561673B2 JP H0561673 B2 JPH0561673 B2 JP H0561673B2 JP 58062639 A JP58062639 A JP 58062639A JP 6263983 A JP6263983 A JP 6263983A JP H0561673 B2 JPH0561673 B2 JP H0561673B2
Authority
JP
Japan
Prior art keywords
length
paper
spacing
line
margin
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
JP58062639A
Other languages
Japanese (ja)
Other versions
JPS59188729A (en
Inventor
Tomoko Kanetani
Akira Shirata
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP58062639A priority Critical patent/JPS59188729A/en
Publication of JPS59188729A publication Critical patent/JPS59188729A/en
Publication of JPH0561673B2 publication Critical patent/JPH0561673B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 (イ) 産業上の利用分野 本発明は印字装置を備えたワードプロセツサ等
の文書処理装置に係り、印字を行なう際の印字レ
イアウトを自動的に決定する機能を備えた同装置
に関する。
[Detailed Description of the Invention] (a) Industrial Application Field The present invention relates to a document processing device such as a word processor equipped with a printing device, which has a function of automatically determining the printing layout when printing. Regarding the same device.

(ロ) 従来技術 文書処理装置においては、オペレータにより指
定された一行の文字数、一頁の行数、及び用紙サ
イズに基づいて、印字レイアウトを自動的に決定
することが、従来より行なわれていた。
(b) Prior Art In document processing devices, the print layout has traditionally been automatically determined based on the number of characters per line, number of lines per page, and paper size specified by the operator. .

従来は、用紙サイズの各々について、一行の文
字数に対応する文字間隔と左右マージン(左右の
余白)の長さを、そして、一頁の行数に対応する
行間隔と上下マージン(上下の余白)の長さを、
予め固定値としてテーブルに記憶しておき、指定
に応じてその固定値を読み出すものであつた。即
ち、指定された一行の文字数と用紙サイズによ
り、文字間隔と左右マージンの長さを決定し、指
定された一頁の行数と用紙サイズにより、行間隔
と上下マージンの長さを独立に決定するものであ
つた。
Conventionally, for each paper size, the length of the character spacing and left and right margins (left and right margins) corresponding to the number of characters on one line, and the line spacing and top and bottom margins (top and bottom margins) that correspond to the number of lines on one page. the length of
Fixed values were stored in a table in advance, and the fixed values were read out according to specifications. In other words, the character spacing and length of the left and right margins are determined based on the specified number of characters per line and paper size, and the line spacing and length of the top and bottom margins are determined independently based on the specified number of lines per page and paper size. It was something to do.

従つて、印字レイアウトにおいては、文字間隔
と行間隔、及び左右マージンと上下マージンの長
さが、各々、全く無関係に決定され、このため、
左右マージンの長さに対して上下マージンの長さ
が極端に長くなつてしまつたり、行間隔より文字
間隔の方が広くなつてしまう等、必ずしも最適な
印字レイアウトが行なわれないという欠点があつ
た。
Therefore, in the print layout, the character spacing, line spacing, and the lengths of the left and right margins and the top and bottom margins are determined completely independently, and therefore,
This has the disadvantage that the print layout is not always optimal, such as the length of the top and bottom margins being extremely long compared to the length of the left and right margins, and the character spacing being wider than the line spacing. Ta.

(ハ) 発明の目的 本発明は、一頁の行数、一行の文字数及び用紙
サイズの指定に対して、適応範囲を広め、常に、
視覚的に整い、且つ、用紙を有効に利用した理想
的な印字レイアウトを、自動的に決定することを
目的とするものである。
(c) Purpose of the invention The present invention expands the scope of application to the specification of the number of lines on one page, the number of characters on one line, and the paper size, and always
The purpose is to automatically determine an ideal print layout that is visually orderly and makes effective use of paper.

(ニ) 発明の構成 本発明は、用紙サイズ、一頁の行数、一行の文
字数を指定するための指定手段と、複数の用紙サ
イズについてその用紙縦長及び用紙横長を記憶し
た用紙長記憶手段と、前記指定手段により指定さ
れた用紙サイズの前記用紙縦長を前記用紙長記憶
手段から読出し、該用紙縦長と前記指定手段によ
り指定された一頁の行数とに基づき、行間隔及び
上下方向のマージン長の候補を選択する第1候補
選択手段と、前記指定手段により指定された用紙
サイズの前記用紙横長を前記用紙長記憶手段から
読出し、該用紙横長と前記指定手段により指定さ
れた一行の文字数とに基づき、文字間隔及び左右
方向のマージン長の候補を選択する第2候補選択
手段と、前記行間隔と文字間隔の比率が所定範囲
内であるか否かを判定する第1判定手段と、前記
上下方向のマージン長と左右方向のマージン長の
比率が所定範囲内であるか否かを判定する第2判
定手段とを有し、前記第1及び第2の候補選択手
段によつて選択された候補のうち、前記第1及び
第2の判定手段において所定範囲内であると判定
された候補を、印字レイアウトの行間隔、上下方
向のマージン長、文字間隔、左右方向のマージン
長として決定するように、構成したものである。
(d) Structure of the Invention The present invention includes a specification means for specifying the paper size, the number of lines on one page, and the number of characters on one line, and a paper length storage means for storing the paper length and width for a plurality of paper sizes. , reads the paper length of the paper size specified by the specification means from the paper length storage means, and determines the line spacing and vertical margin based on the paper length and the number of lines per page specified by the specification means. a first candidate selection means for selecting a length candidate; and a first candidate selection means for reading out the paper width of the paper size specified by the specification means from the paper length storage means, and combining the paper width and the number of characters in one line specified by the specification means. a second candidate selection means for selecting candidates for character spacing and horizontal margin length based on the first determination means for determining whether the ratio of the line spacing to the character spacing is within a predetermined range; a second determining means for determining whether the ratio of the vertical margin length to the horizontal margin length is within a predetermined range; Among the candidates, candidates that are determined to be within a predetermined range by the first and second determining means are determined as line spacing, vertical margin length, character spacing, and horizontal margin length of the print layout. It is composed of:

(ホ) 実施例 第1図は、本発明の実施例の構成を示すブロツ
ク図であり、1は入力装置としてのキーボード、
2はキーボード1から入力される文章を文章格納
メモリ3に書き込む文章書込制御部、4はキーボ
ード1から指定される用紙サイズPS、一頁の行
数LN、一行の文字数CNを、各々、記憶するバ
ツフア4a,4b,4cより成る指定データバツ
フア、5は用紙サイズPSの各々について、その
用紙縦長PV及び用紙横長PHを記憶した用紙長
メモリ、は、文字間隔CSと行間隔LSの比率
LS/CSの最大値RSXと最小値RSNを記憶した間
隔比メモリ7と、左右マージン長HMと上下マー
ジン長VMの比率VM/HMの最大値RMXと最小
値RMNを記憶したマージン比メモリ8と、上下
マージン長VMの最大値VMXと最小値VMNを記
憶したマージン長メモリ9と、最小行間隔LS0
ら最大行間隔LSXまでの7個の行間隔LS0、LS1
…LS5、LSXを、アドレスADF0から順に記憶し
た行間隔メモリ10と、最小文字間隔CS0から最
大文字間隔CSXまでの5個の文字間隔CS0、CS1
…CS3、CSXを、アドレスADR0から順に記憶し
た文字間隔メモリ11とより成るデータメモリ、
12は指定データバツフア4、用紙長メモリ5及
びデータメモリに記憶されたデータに基づい
て、最適な行間隔、文字間隔、左右マージン長及
び上下マージン長を決定する印字レイアウト制御
部、13は行間隔LS、上下マージン長VM、、文
字間隔CS、左右マージン長HMを、各々、記憶
するためのブツシユダウンスタツクSTACK1、
STACK2、STACK3、STACK4より成るス
タツクメモリ、14はドツトプリンタ等の印字装
置、15は決定された行間隔、文字間隔、上下マ
ージン長及び左右マージン長を、スタツクメモリ
13から読み出し、これらの値に相当する印字レ
イアウトで、文章格納メモリ3から読み出した文
章を、印字装置14にて印字させるよう制御する
印字制御部である。
(E) Embodiment FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, in which 1 is a keyboard as an input device;
2 is a text writing control unit that writes text input from the keyboard 1 into the text storage memory 3; 4 is a memory for storing the paper size PS, the number of lines per page LN, and the number of characters per line CN designated from the keyboard 1, respectively; 5 is a paper length memory that stores the paper portrait length PV and paper width PH for each paper size PS; 6 is the ratio of character spacing CS to line spacing LS;
An interval ratio memory 7 that stores the maximum value RS X and minimum value RS N of LS/CS, and a margin that stores the maximum value RM ratio memory 8 , margin length memory 9 that stores the maximum value VM 1
...Line spacing memory 10 that stores LS 5 , LS
...a data memory consisting of a character spacing memory 11 storing CS 3 and CS X in order from address ADR0;
12 is a print layout control unit that determines the optimum line spacing, character spacing, left and right margin lengths, and top and bottom margin lengths based on the data stored in the specified data buffer 4, paper length memory 5, and data memory 6 ; 13 is a line spacing; Bushdown stack STACK1 for storing LS, top and bottom margin length VM, character spacing CS, and left and right margin length HM, respectively.
A stack memory consisting of STACK2, STACK3, and STACK4, 14 a printing device such as a dot printer, 15 reading the determined line spacing, character spacing, top and bottom margin lengths, and left and right margin lengths from the stack memory 13, and creating a print layout corresponding to these values. This is a print control unit that controls the printing device 14 to print the text read from the text storage memory 3.

尚、文章格納メモリ3は、文章入力時に指定さ
れる一頁の行数LN、一行の文字数CNや、頁数
等、入力文章に関する各種のデータを記憶するメ
モリエリア3aを有している。
Note that the text storage memory 3 has a memory area 3a that stores various data related to the input text, such as the number of lines per page LN, the number of characters per line CN, and the number of pages specified at the time of text input.

そこで、先ず、文章を入力するため、キーボー
ド1で、一頁の行数LNと一行の文字数CN等を
指定し、続いて、文章を入力すると、文章は文章
書込制御部2により文章格納メモリ3に格納され
ると共に、メモリエリア3aに行数LN及び文字
数CN等のデータが記憶される。そして、自動印
字を行なわせるために、キーボード1から用紙サ
イズPSを指定し、自動印字の実行キーを押圧す
ると、印字レイアウト制御部12は、指定された
用紙サイズPSをバツフア4aに記憶すると共に、
メモリエリア3aから行数LN及び文字数CNを
読み出し、各々バツフア4b及び4cに記憶し、
以下、第2図のフローチヤートで示す処理を開始
する。
Therefore, in order to input a sentence, first, use the keyboard 1 to specify the number of lines per page LN and the number of characters per line CN, etc., and then input the sentence. 3, and data such as the number of lines LN and the number of characters CN are also stored in the memory area 3a. Then, in order to perform automatic printing, when the paper size PS is specified from the keyboard 1 and the automatic printing execution key is pressed, the print layout control section 12 stores the specified paper size PS in the buffer 4a, and
The number of lines LN and the number of characters CN are read from the memory area 3a and stored in buffers 4b and 4c, respectively.
Thereafter, the process shown in the flowchart of FIG. 2 is started.

即ち、先ず行間隔メモリ10のアドレスADR0
を指定して、最小行間隔LS0を読み出し、指定さ
れた一頁の行数LNと、一行当りの長さ(単位行
長と呼ぶ)DLに基づいて、印字に最低限必要な
実効縦長mVを演算にて求め、指定された用紙サ
イズの用紙縦長PVとこのmVを比較することによ
り、行間隔LS0としたときに、指定した行数LN
が用紙に収まる否かを判定する。そして、収まる
場合には、用紙縦長PVから実効縦長mVを引算し
た値(PV−mV)を、上下マージン長VMと定
め、この上下マージン長VMが所定範囲内である
か否かを判定する。所定範囲内であるときは、こ
のときの行間隔LS0と上下マージン長VM0を、
各々、スタツクSTACK1及びSTACK2に格納
し、格納後あるいは所定範囲内でなかつたとき
は、行間隔メモリ10のアドレス指定を歩進させ
て、次の行間隔LS1を読み出す。行間隔LS1につ
いても、LS0の場合と全く同一の処理を行なう。
そして、順次、LS2、LS3…と最大行間隔LSX
で同一の処理をくり返した後、次のステツプに移
る。但し、実効縦長mVが用紙縦長PV以上となつ
た時は、即座に次のステツプへ移る。
That is, first, the address ADR0 of the line spacing memory 10 is
is specified, the minimum line spacing LS 0 is read out, and based on the specified number of lines per page LN and the length per line (referred to as unit line length) D L , the minimum effective vertical length required for printing is determined. Calculate m V and compare this m V with the paper portrait length PV of the specified paper size to determine the specified number of lines LN when the line spacing LS is 0 .
Determine whether it fits on the paper. If it fits, the value obtained by subtracting the effective vertical length m V from the paper vertical length PV (PV - m V ) is determined as the upper and lower margin length VM, and it is determined whether this upper and lower margin length VM is within a predetermined range. judge. If it is within the specified range, the line spacing LS 0 and the top and bottom margin length VM 0 at this time are
They are stored in the stacks STACK1 and STACK2, respectively, and after being stored or when they are not within a predetermined range, the addressing of the line spacing memory 10 is incremented and the next line spacing LS1 is read out. For the line spacing LS 1 , the same processing as for LS 0 is performed.
Then, after repeating the same process sequentially as LS 2 , LS 3 , and so on until the maximum line spacing LS X is reached, the process moves to the next step. However, when the effective vertical length m V becomes greater than the paper vertical length PV, the process immediately moves to the next step.

このようにして、行間隔LSと上下マージン長
VMの候補データが、各々、スタツクSTACK1
及びSTACK2に格納される。この場合、行間隔
LSのデータは短いものから順に格納するため、
最も長い行間隔がアドレス0に格納される。尚、
スタツクメモリ13の各ブツシユダウンスタツク
のアドレス0には、データが格納される以前に、
予めENDマークを書き込んでおくこととし、こ
のため、データが格納された時には、最初に格納
されたデータのアドレスの次のアドレスには
ENDマークが書き込まれているものとする。
In this way, line spacing LS and top and bottom margin length
Each candidate data of VM is stack STACK1.
and stored in STACK2. In this case, line spacing
Since LS data is stored in order from shortest to shortest,
The longest line spacing is stored at address 0. still,
Before data is stored at address 0 of each bushdown stack in the stack memory 13,
An END mark is written in advance, so that when data is stored, the address next to the address of the first stored data is
It is assumed that the END mark has been written.

ここで、例えば、上述の処理により、第3図イ
に示すように、候補データが格納されたとする。
For example, assume that candidate data is stored as shown in FIG. 3A through the above-described processing.

次のステツプでは、先ず、スタツクSTACK1
のアドレス0にENDマークがあるか否かが判定
されることにより、上述の処理により候補データ
が得られた否かが判定され、第3図イの如く得ら
れた場合には、文字間隔CS及び左右マージン長
HMの候補データを得るための処理に入る。即
ち、文字間隔メモリ11のアドレス0を指定し
て、最小文字間隔CS0を読み出し、指定された一
行の文字数CNと、一文字当りの長さ(単位文字
長と呼ぶ)DCに基づいて、印字に最低限必要な
実効横長mHを演算にて求め、指定された用紙サ
イズの用紙横長PHとこのmHを比較することによ
り、文字間隔をCS0としたとき、指定した文字数
CNが用紙に収まるか否かを判定する。そして、
収まらない場合は次のステツプに移るが、収まる
場合は、スタツクSTACK1のアドレス0に格納
されている文字間隔、即ち、LS2を読み出し、文
字間隔CS0との比率LS2/CS0が所定範囲内か否
かを判定する。所定範囲内であるときは、用紙横
長PHから実効横長mHを引算した値(PH−mH
を左右マージン長HMと定め、このときの文字間
隔CS0及び左右マージン長HM0を、各々、スタツ
クSTACK3及びSTACK4に格納する。格納後
あるいは比率が所定範囲内でないときは、文字間
隔メモリ11のアドレス指定を歩進させて、次の
文字間隔CS1を読み出し、同一の処理を行なう。
そして、順次CS2、CS3…と最大文字間隔CSX
で同一の処理をくり返した後、次のステツプに移
る。
In the next step, first, stack STACK1
By determining whether or not there is an END mark at address 0, it is determined whether candidate data has been obtained through the above processing. If candidate data is obtained as shown in Figure 3 A, character spacing CS and left and right margin length
Start processing to obtain HM candidate data. That is, specify address 0 of the character spacing memory 11, read the minimum character spacing CS 0 , and print based on the specified number of characters in one line CN and the length per character (referred to as unit character length) D C. Calculate the minimum effective horizontal length m H required for
Determine whether CN fits on the paper. and,
If it does not fit, move on to the next step, but if it does, read out the character spacing stored at address 0 of STACK1, that is, LS 2 , and find out that the ratio LS 2 /CS 0 to the character spacing CS 0 is within the specified range. Determine whether it is within the range. If it is within the specified range, the value obtained by subtracting the effective horizontal length m H from the paper horizontal length PH (PH - m H )
is defined as the left and right margin length HM, and the character spacing CS 0 and left and right margin length HM 0 at this time are stored in stacks STACK3 and STACK4, respectively. After storage or when the ratio is not within the predetermined range, the addressing of the character spacing memory 11 is incremented, the next character spacing CS 1 is read out, and the same processing is performed.
Then, after repeating the same process sequentially as CS 2 , CS 3 , and so on until the maximum character spacing CS X is reached, the process moves to the next step.

このように、2つの行間隔の候補データLS2
LS1のうち、先ずLS2に関して、文字間隔CSと左
右マージン長HMの候補データが、各々、スタツ
クSTACK3及びSTACK4に格納される。この
とき、格納順序は、文字間隔が短いものからであ
るので、アドレス0に最も長い文字間隔が格納さ
れる。
In this way, the candidate data LS 2 with two line spacings,
First, regarding LS 2 of LS 1 , candidate data for character spacing CS and left and right margin length HM are stored in stacks STACK3 and STACK4, respectively. At this time, since the storage order is in ascending order of character spacing, the longest character spacing is stored at address 0.

ここで、上述の処理により、例えば第3図イに
示すように、候補データが格納されたとする。
Here, it is assumed that candidate data is stored through the above-described processing, for example, as shown in FIG. 3A.

次のステツプでは、スタツクSTACK3のアド
レス0に、ENDマークがあるか否かを判定する
ことにより、上述の処理で候補データが得られた
か否かを判定し、第3図イの如く得られた場合に
は、スタツクSTACK2及びSTACK4のアドレ
ス0に格納されている上下マージン長及び左右マ
ージン長、即ち、VM2とHM4を読み出し、これ
らのマージン長の比率VM2/HM4が所定範囲内
か否かを判定する。そして、所定範囲内でないと
きは、このときの左右マージン長HM4と対応す
る文字間隔CS4を、各々、スタツクSTACK4及
びSTACK3から放出する。すると、第3図ロに
示すように、スタツクSTACK3及びSTACK4
のアドレス0には、各々、CS4より文字間隔が短
い候補データCS3、及び、HM4より左右マージン
長が長い候補データHM3が格納されるようにな
る。そこで、この左右マージン長HM3を用いて、
再びマージン長の比率VM2/HM3が、所定範囲
内か否かを判定し、所定範囲内であるときは、印
字レイアウトとして最適なものが得られたと見做
し、処理を終了する。
In the next step, by determining whether or not there is an END mark at address 0 of stack STACK3, it is determined whether candidate data has been obtained through the above processing, and the data obtained as shown in Figure 3 A is determined. In this case, read the top and bottom margin lengths and left and right margin lengths stored at address 0 of stacks STACK2 and STACK4, that is, VM 2 and HM 4 , and check whether the ratio of these margin lengths VM 2 /HM 4 is within a predetermined range. Determine whether or not. If it is not within the predetermined range, the character spacing CS4 corresponding to the left and right margin length HM4 at this time is released from the stacks STACK4 and STACK3, respectively. Then, as shown in Figure 3B, the stacks STACK3 and STACK4
At address 0, candidate data CS 3 having a shorter character interval than CS 4 and candidate data HM 3 having a longer left and right margin length than HM 4 are stored, respectively. Therefore, using this left and right margin length HM 3 ,
It is determined again whether the margin length ratio VM 2 /HM 3 is within the predetermined range, and if it is within the predetermined range, it is assumed that the optimum print layout has been obtained, and the process is terminated.

従つて、この結果、スタツクメモリ13の各プ
ツシユダウンスタツクのアドレス0には、行間
隔、上下マージン長、文字間隔、左右マージン長
の各最適値が格納されることとなる。このため、
印字レイアウト制御部12より印字制御部15に
終了信号を入力すれば、印字制御部15は、決定
された各最適値をスタツクメモリ13から読み出
し、これらの最適値に相当する印字レイアウトで
の印字が、印字装置14で実行される。
Therefore, as a result, the optimum values of the line spacing, top and bottom margin lengths, character spacing, and left and right margin lengths are stored at address 0 of each pushdown stack in the stack memory 13. For this reason,
When a termination signal is input from the print layout control section 12 to the print control section 15, the print control section 15 reads each of the determined optimum values from the stack memory 13, and prints in the print layout corresponding to these optimum values. This is executed by the printing device 14.

ところで、行間隔LS2及び上下マージン長VM2
に関して、候補データとしての文字間隔CS4
CS3、OS2及び左右マージン長HM4、HM3
HM2を全て読み出しても、マージン長の比率
VM/HMが適当なものがない場合は、このとき
の行間隔LS2及び上下マージン長VM2をスタツク
メモリ13のスタツクメモリ1及びSTACK2か
ら放出し、第2図のフローチヤートに戻り、次
の行間隔LS1及び上下マージン長VM1に関して、
文字間隔CS及び左右マージン長HMの候補デー
タを選ぶ。そして、新しい候補データを、第3図
ハの如く、スタツクSTACK3及びSTACK4に
格納する。以下、前述と同様、マージン長の比率
VM/HMを判定し、各最適値を決定する。
By the way, line spacing LS 2 and top and bottom margin length VM 2
Regarding character spacing CS 4 as candidate data,
CS 3 , OS 2 and left and right margin length HM 4 , HM 3 ,
Even if all HM 2 is read, the margin length ratio
If there is no suitable VM/HM, the line spacing LS 2 and the upper and lower margin length VM 2 at this time are released from the stack memories 1 and STACK 2 of the stack memory 13, and the process returns to the flowchart in FIG. 2 to set the next line spacing. Regarding LS 1 and upper and lower margin length VM 1 ,
Select candidate data for character spacing CS and left and right margin length HM. Then, the new candidate data is stored in the stacks STACK3 and STACK4, as shown in FIG. 3C. Below, as above, the margin length ratio
Determine VM/HM and determine each optimal value.

以上のように、印字レイアウト制御部12の処
理で、行間隔、文字間隔、上下マージン長、左右
マージン長の最適値が選ばれ、印字レイアウトが
自動的に決定されるが、指定によつては例外的
に、最後の候補データとしての行間隔及び上下マ
ージン長についても、適当な文字間隔及び左右マ
ージン長が得られないときがある。このため、こ
のような場合には、本施例では、文字間隔を最小
文字間隔CS0とし、これに対応する左右マージン
長HM0を左右マージン長として用いることによ
り対処している。又、行間隔及び上下マージン長
の候補データが全く得られない場合は、本実施例
では、最小行間隔LS0及びこれに対応する上下マ
ージン長VM0を、各々、行間隔及び上下マージ
ン長として用いることにより、印字レイアウトが
決定されるよう対処している。
As described above, in the process of the print layout control unit 12, the optimal values for line spacing, character spacing, top and bottom margin lengths, and left and right margin lengths are selected and the print layout is automatically determined. Exceptionally, appropriate character spacing and left and right margin lengths may not be obtained for the line spacing and top and bottom margin lengths as the last candidate data. Therefore, in this embodiment, such a case is handled by setting the character spacing to the minimum character spacing CS 0 and using the corresponding left and right margin length HM 0 as the left and right margin length. In addition, if no candidate data for the line spacing and top and bottom margin lengths is obtained, in this embodiment, the minimum line spacing LS 0 and the corresponding top and bottom margin lengths VM 0 are used as the line spacing and top and bottom margin lengths, respectively. By using this, the print layout is determined.

本実施例では、行間隔及び上下マージン長の候
補データを選んだ後、文字間隔及び左右マージン
長の候補データを選ぶようにしたが、逆に、文字
間隔及び左右マージン長の候補データを選んだ
後、行間隔及び上下マージン長の候補データを選
ぶようにしてもよく、この場合、左右マージン長
の最大値及び最小値を記憶しておき、左右マージ
ン長が所定範囲内であるか否かを判定するように
すれば、上下マージン長が所定範囲内であるか否
かの判定は行なわなくてもよい。
In this embodiment, after selecting candidate data for line spacing and top and bottom margin lengths, candidate data for character spacing and left and right margin lengths was selected. After that, candidate data for the line spacing and top and bottom margin lengths may be selected. In this case, the maximum and minimum values of the left and right margin lengths are memorized and it is determined whether the left and right margin lengths are within a predetermined range. If such a determination is made, it is not necessary to determine whether the upper and lower margin lengths are within a predetermined range.

又、行間隔及び文字間隔の候補データを全て、
本実施例の如くメモリに必ずしも記憶しておく必
要はなく、例えば、最小値と最大値を記憶してお
き、その範囲内で最小値を初期値として順次所定
の間隔だけ加算するようにして、候補データを得
てもよい。
In addition, all line spacing and character spacing candidate data,
It is not necessarily necessary to store them in the memory as in this embodiment, but for example, the minimum value and maximum value may be stored, and within that range, the minimum value is used as the initial value and sequentially added at predetermined intervals. Candidate data may also be obtained.

ところで、上下マージン長及び左右マージン長
は、各々、上マージン長と下マージン長の加算
長、及び、左マージン長と右マージン長の加算長
を示すが、用紙サイズが定まれば、上マージン長
と下マージン長は一方のみを決めることにより、
他方は自ずと決まるものであり、又、左マージン
長と右マージン長についても同様である。従つ
て、本実施例では上下マージン長と左右マージン
長を決定したが、上マージン長と下マージン長の
いずれか一方と、左マージン長と右マージン長の
いずれか一方のみを決めるようにしても、全く同
様の効果が得られる。
By the way, the top and bottom margin length and the left and right margin length indicate the addition length of the top margin length and bottom margin length, and the addition length of the left margin length and right margin length, respectively, but once the paper size is determined, the top margin length By determining only one of the and bottom margin length,
The other is determined by itself, and the same applies to the left margin length and right margin length. Therefore, in this embodiment, the top and bottom margin lengths and the left and right margin lengths are determined, but it is also possible to decide only one of the top and bottom margin lengths and one of the left and right margin lengths. , exactly the same effect can be obtained.

(ヘ) 発明の効果 本発明は、行間隔と文字間隔の比率が所定範囲
内であることを判定する第1判定手段と、上下マ
ージン長と左右マージン長の比率が所定範囲内で
あることを判定する第2判定手段を有するので、
行間隔、文字間隔、上下マージン長及び左右マー
ジン長を、各々関連づけて決定することができ、
従つて、一頁の行数、一行の文字数及び用紙サイ
ズの指定において、視覚的に整い、且つ、用紙を
有効に利用した最適な印字レイアウトを実現でき
る適応範囲を広めることができる。
(f) Effects of the Invention The present invention includes a first determination means for determining that the ratio between the line spacing and the character spacing is within a predetermined range, and a first determination means for determining that the ratio between the top and bottom margin lengths and the left and right margin lengths is within a predetermined range. Since it has a second determination means for determining,
Line spacing, character spacing, top and bottom margin lengths, and left and right margin lengths can be determined in relation to each other,
Therefore, in specifying the number of lines on one page, the number of characters on one line, and the paper size, it is possible to widen the range of applications in which an optimal print layout that is visually uniform and makes effective use of paper can be realized.

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

第1図は本発明の実施例の構成を示すブロツク
図、第2図は本実施例の処理を示すフローチヤー
ト、第3図イ,ロ,ハはスタツクメモリの内容を
示す模式図である。 主な図番の説明、1……キーボード、3……文
章格納メモリ、4……指定データバツフア、
…データメモリ、12……印字レイアウト制御
部、13……スタツクメモリ、14……印字装
置、15……印字制御部。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a flowchart showing the processing of this embodiment, and FIG. 3 A, B, and C are schematic diagrams showing the contents of the stack memory. Explanation of main figure numbers, 1...Keyboard, 3...Text storage memory, 4...Specified data buffer, 6 ...
...Data memory, 12...Print layout control unit, 13...Stack memory, 14...Printing device, 15...Printing control unit.

Claims (1)

【特許請求の範囲】[Claims] 1 用紙サイズ、一頁の行数、一行の文字数を指
定するための指定手段と、複数の用紙サイズにつ
いてその用紙縦長及び用紙横長を記憶した用紙長
記憶手段と、前記指定手段により指定された用紙
サイズの前記用紙縦長を前記用紙長記憶手段から
読出し、該用紙縦長と前記指定手段により指定さ
れた一頁の行数とに基づき、行間隔及び上下方向
のマージン長の候補を選択する第1候補選択手段
と、前記指定手段により指定された用紙サイズの
前記用紙横長を前記用紙長記憶手段から読出し、
該用紙横長と前記指定手段により指定された一行
の文字数とに基づき、文字間隔及び左右方向のマ
ージン長の候補を選択する第2候補選択手段と、
前記行間隔と文字間隔の比率が所定範囲内である
か否かを判定する第1判定手段と、前記上下方向
のマージン長と左右方向のマージン長の比率が所
定範囲内であるか否かを判定する第2判定手段と
を有し、前記第1及び第2の候補選択手段によつ
て選択された候補のうち、前記第1及び第2の判
定手段において所定範囲内であると判定された候
補を、印字レイアウトの行間隔、上下方向のマー
ジン長、文字間隔、左右方向のマージン長として
決定することを特徴とした文書処理装置。
1. A specification means for specifying the paper size, the number of lines on one page, and the number of characters on one line; a paper length storage means for storing the paper length and width for multiple paper sizes; and the paper specified by the specification means. A first candidate for reading the paper length of the size from the paper length storage means and selecting candidates for line spacing and vertical margin length based on the paper length and the number of lines per page specified by the designation means. reading out the paper landscape of the paper size specified by the selection means and the specification means from the paper length storage means;
a second candidate selection means for selecting candidates for character spacing and horizontal margin length based on the horizontal length of the sheet and the number of characters in one line designated by the designation means;
a first determining means for determining whether the ratio of the line spacing to the character spacing is within a predetermined range; and a first determining means for determining whether the ratio of the vertical margin length to the horizontal margin length is within a predetermined range. and a second determination means for determining, among the candidates selected by the first and second candidate selection means, which are determined to be within a predetermined range by the first and second determination means. A document processing device characterized in that candidates are determined as line spacing, vertical margin length, character spacing, and horizontal margin length of a print layout.
JP58062639A 1983-04-08 1983-04-08 System for automatically determining printing layout Granted JPS59188729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58062639A JPS59188729A (en) 1983-04-08 1983-04-08 System for automatically determining printing layout

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58062639A JPS59188729A (en) 1983-04-08 1983-04-08 System for automatically determining printing layout

Publications (2)

Publication Number Publication Date
JPS59188729A JPS59188729A (en) 1984-10-26
JPH0561673B2 true JPH0561673B2 (en) 1993-09-06

Family

ID=13206093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58062639A Granted JPS59188729A (en) 1983-04-08 1983-04-08 System for automatically determining printing layout

Country Status (1)

Country Link
JP (1) JPS59188729A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61147331A (en) * 1984-12-20 1986-07-05 Photo Composing Mach Mfg Co Ltd Method and apparatus for processing character
JPH0524996Y2 (en) * 1986-03-28 1993-06-24
JPH0796310B2 (en) * 1987-12-17 1995-10-18 富士通株式会社 Dynamic conversion method of output data format of document processing system
JP2686339B2 (en) * 1990-03-19 1997-12-08 富士通株式会社 Printing control device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5759792A (en) * 1980-09-29 1982-04-10 Canon Inc Output apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5759792A (en) * 1980-09-29 1982-04-10 Canon Inc Output apparatus

Also Published As

Publication number Publication date
JPS59188729A (en) 1984-10-26

Similar Documents

Publication Publication Date Title
JPH0561673B2 (en)
JPH0528389B2 (en)
JPH0524301A (en) Automatic selection of paper in printer
JPH0755572B2 (en) Printer
JPH0474740B2 (en)
KR0146901B1 (en) Logo inserting printer
JPH03114856A (en) Printer data management system
KR100231929B1 (en) Method of printing both sides of paper
JPH0747724A (en) Printer
JPH0596811A (en) Printing method
JPH0524839B2 (en)
JPH08258362A (en) Printer
KR930003650A (en) How to control printing on the fax
JPS58195946A (en) Word processor
JPH0785173A (en) Slip printer
JPS63141124A (en) Document processor
JPH04305761A (en) Word processor
JPS63118829A (en) Document printing device
JPH0225346A (en) Printing control device
JPS63130375A (en) Document printer
KR890007166A (en) Automatic conversion of incorrect input characters of data display device
JPH04367928A (en) Business form printer
JPH02151458A (en) Method for controlling character direction of printing control apparatus
JPH07106653B2 (en) Information processing method
JPS63264386A (en) Document data printer