JPH08329055A - Automatic setting method for character size - Google Patents

Automatic setting method for character size

Info

Publication number
JPH08329055A
JPH08329055A JP7133686A JP13368695A JPH08329055A JP H08329055 A JPH08329055 A JP H08329055A JP 7133686 A JP7133686 A JP 7133686A JP 13368695 A JP13368695 A JP 13368695A JP H08329055 A JPH08329055 A JP H08329055A
Authority
JP
Japan
Prior art keywords
character size
area
address
print area
name
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
JP7133686A
Other languages
Japanese (ja)
Inventor
芳人 ▲おちあい▼
Yoshito Ochiai
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 IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP7133686A priority Critical patent/JPH08329055A/en
Publication of JPH08329055A publication Critical patent/JPH08329055A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE: To provide the automatic character size setting method for setting characters which are well balanced in character array and character size in plural print areas. CONSTITUTION: Maximum values S1 and S2 which meet plural conditional expressions are found (101) and it is decided whether the value of S1 is larger than the lower-limit value L of the size of a character (102); when not, maximum values S1a and S2a which meet plural conditional expressions are found (103) and it is decided whether or not the number of columns of an address by the character size of the address is larger than the row-directional length of an address area (104). When larger, the boundary between the address and a name is moved toward the name side (105), but when not, it is decided whether the number of rows of the name by the character size of the name is larger than the row-directional length of the name area (106). When the former is larger, the boundary between the address and name is moved toward the address side. Printing operation is performed when the value of Sl is larger than the lower- limit value L in the step 102 and successively to the steps 105 and 107.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は文字サイズ自動設定方法
に関し、特に文字列などの印刷時または表示時等におい
て、当該文字列の文字サイズを設定する際に用いられる
文字サイズ自動設定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character size automatic setting method, and more particularly to a character size automatic setting method used when setting the character size of a character string when printing or displaying the character string.

【0002】[0002]

【従来の技術】従来、パーソナルコンピュータまたはワ
ードプロセッサ等において、文字等を印刷する場合また
は表示面に表示する場合には、印刷面などの複数の領域
における各領域の大きさをそれぞれ固定したまま、それ
ぞれの領域について自動的に文字サイズを設定する方法
が用いられている。以下に、住所および氏名を葉書に印
刷する場合を1つの適用例として、図5(a)、
(b)、(c)および(d)と、図6(a)、(b)お
よび(c)を参照して従来の文字サイズ自動設定方法に
ついて説明する。
2. Description of the Related Art Conventionally, in a personal computer, a word processor or the like, when printing characters or the like, or displaying them on a display surface, the size of each area in a plurality of areas such as the printing surface is fixed, respectively. A method of automatically setting the character size for the area is used. In the following, as an application example of printing an address and a name on a postcard, as shown in FIG.
A conventional character size automatic setting method will be described with reference to (b), (c) and (d) and FIGS. 6 (a), (b) and (c).

【0003】図5(a)および(b)には、それぞれ縦
書き印刷の場合と横書き印刷の場合における住所と氏名
の印刷領域を示されている。図5(a)および(b)に
おいて、縦書き印刷の場合と横書き印刷の場合に対応し
て、葉書501には、住所を印刷する領域である住所領
域502と、氏名を印刷する領域である氏名領域503
が相互に隣接して設けられている。住所領域502と氏
名領域503の各領域の大きさはそれぞれ固定されてお
り、住所領域502の行方向の長さA1 および列方向の
長さB1 と、氏名領域503の行方向の長さA2 および
列方向の長さB2 は、それぞれ予め大きさが定められて
いる。また、図5(c)および(d)には、それぞれ縦
書き印刷の場合と横書き印刷の場合において、住所と氏
名がそれぞれの印刷領域に印刷されている状態が示され
ている(図5(c)および(d)において、黒丸●は文
字を示す)。ここにおいて、住所領域502に印刷する
住所の行数をM1 、住所領域502に印刷する住所の列
数をN1 とし、氏名領域503に印刷する氏名の行数を
2 、氏名領域503に印刷する氏名の列数をN2とす
る。印刷される文字は、住所領域502および氏名領域
503のそれぞれの領域からはみ出さず、文字同士が重
なり合うことのないように印刷されるものとし、また説
明を分かり易くするために、文字の行方向のサイズと文
字の列方向のサイズが等しいものとする。
FIGS. 5 (a) and 5 (b) show the print areas of the address and name in the case of vertical writing and in the case of horizontal writing, respectively. In FIGS. 5A and 5B, the postcard 501 includes an address area 502, which is an area for printing an address, and an area for printing a name, corresponding to the case of vertical writing and the case of horizontal writing. Name area 503
Are provided adjacent to each other. The size of each of the address area 502 and the name area 503 is fixed, and the length A 1 in the row direction and the length B 1 in the column direction of the address area 502 and the length in the row direction of the name area 503 are fixed. The size of A 2 and the length B 2 in the column direction are predetermined. Further, FIGS. 5C and 5D show a state in which the address and the name are printed in the respective print areas in the case of vertical writing and the case of horizontal writing, respectively (FIG. 5 ( In c) and (d), a black circle indicates a character). Here, the number of rows of addresses printed in the address area 502 is M 1 , the number of columns of addresses printed in the address area 502 is N 1, and the number of rows of names printed in the name area 503 is M 2 and the name area 503. The number of columns of names to be printed is N 2 . Characters to be printed are assumed to be printed so as not to overlap the respective areas of the address area 502 and the name area 503 so that the characters do not overlap each other. And the size of the character in the column direction are equal.

【0004】次に、本従来例による宛名(住所、氏名
等)の文字サイズ自動設定方法について、図4の従来の
宛名印刷手順を示すフローチャートを参照して説明す
る。
Next, a method for automatically setting the character size of an address (address, name, etc.) according to this conventional example will be described with reference to the flowchart showing the conventional address printing procedure of FIG.

【0005】図5(a)および(b)に示される住所領
域502に住所を印刷する場合、先ずステップ401に
おいて、住所領域502に印刷する文字サイズをs1
氏名領域503に印刷する文字サイズをs2 とし、住所
の文字サイズs1 と氏名の文字サイズs2 との比をC、
予め経験値より求められた住所、氏名の文字サイズの上
限値をUとして、下記の条件式を満たすs1 の最大値S
1 およびs2 の最大値S2 を求める。
When printing an address in the address area 502 shown in FIGS. 5A and 5B, first, in step 401, the character size to be printed in the address area 502 is s 1 ,
The character size to be printed on the name area 503 and s 2, the ratio of the character size s 2 of the character size s 1 and name Address C,
The maximum value S of s 1 that satisfies the following conditional expression, where U is the upper limit of the font size of the address and the name, which is obtained in advance from the experience value
Request 1 and the maximum value S 2 of s 2.

【0006】住所領域502に印刷する住所が、住所領
域502から行方向にはみ出さないための条件式: 住所の行数M1 ×住所の文字サイズs1 ≦住所領域502の行方向の長さA1 …………(1) 氏名領域503に印刷する氏名が、氏名領域503から
行方向にはみ出さないための条件式: 氏名の行数M2 ×氏名の文字サイズs2 ≦氏名領域503の行方向の長さA2 …………(2) 住所領域502に印刷する住所が、住所領域502から
列方向にはみ出さないための条件式: 住所の列数N1 ×住所の文字サイズs1 ≦住所領域502の列方向の長さB1 …………(3) 氏名領域503に印刷する氏名が、氏名領域503から
列方向にはみ出さないための条件式: 氏名の列数N2 ×氏名の文字サイズs2 ≦氏名領域503の列方向の長さB2 …………(4) 住所領域502の文字サイズが極端に大きくならないた
めの条件式: 住所の文字サイズs1 ≦文字サイズの上限値U ………………(5) 氏名領域503の文字サイズが極端に大きくならないた
めの条件式: 氏名の文字サイズs2 ≦文字サイズの上限値U ………………(6) 住所領域502の文字サイズと氏名領域503の文字サ
イズのバランスを一定に保持するための条件式: 氏名の文字サイズs2 =住所と氏名の文字サイズの比C×住所の文字サイズs1 …………(7) 次いで、ステップ402においては、前記ステップ40
1において求められた住所の文字サイズS1 と氏名の文
字サイズS2 により印刷を実行する。
Conditional expression for the address printed in the address area 502 not to run off the address area 502 in the row direction: Address line number M 1 × address character size s 1 ≤address area 502 row length A 1 (1) Conditional expression for the name to be printed in the name area 503 so as not to run off the name area 503 in the row direction: Number of lines of name M 2 × character size of name s 2 ≤ name area 503 Length in the row direction of A 2 ………… (2) Conditional expression to prevent the address printed in the address area 502 from protruding in the column direction from the address area 502: Number of columns of address N 1 × character size of address s 1 ≦ the length of the address area 502 in the column direction B 1 (3) The conditional expression for the name to be printed in the name area 503 not to extend in the column direction from the name area 503: Number of columns N of the name 2 × name of the column direction of the character size s 2 ≦ name region 503 length B 2 ............ (4) Conditions for the character size of the address region 502 is not extremely large formula: upper limit value of the character size s 1 ≦ character size Address U .................. (5) Name area 503 Conditional expression for preventing the character size from becoming extremely large: Character size of name s 2 ≦ Upper limit of character size U ……………… (6) Balance between the character size of the address area 502 and the character size of the name area 503. Conditional expression for keeping constant: Name character size s 2 = ratio of address and name character size C × address character size s 1 (7) Then, in step 402, in step 40
Printing is executed using the character size S 1 of the address and the character size S 2 of the name obtained in 1 .

【0007】上記の従来の文字サイズの自動設定方法に
より宛名印刷が行うと、住所の行数M1 と氏名の行数M
2 が比較的に小さい場合には、図6(a)に示されてい
るように、最適な文字サイズが設定されて印刷が行われ
る。上述のような方法を採用している文字サイズ自動設
定方法としては、例えば「特開昭63ー251856号
公報」等が公知例として開示されている。
When address printing is performed by the above-mentioned conventional automatic character size setting method, the number of address lines M 1 and the number of name lines M
When 2 is relatively small, the optimum character size is set and printing is performed, as shown in FIG. As an automatic character size setting method employing the above-mentioned method, for example, "Japanese Patent Laid-Open No. 63-251856" is disclosed as a known example.

【0008】[0008]

【発明が解決しようとする課題】上述した従来の文字サ
イズ設定方法においては、1例として住所および氏名を
葉書に印刷する適用例に見られるように、住所の行数M
1 が極端に多い場合には、前記条件式(1)により住所
の文字サイズs1 が小さくなり過ぎるために、氏名領域
503には印刷領域に十分に余裕があるにもかかわら
ず、条件式(7)により住所の文字サイズs1 の影響を
受けて、氏名の文字サイズs2 も小さくなり過ぎてしま
う状態となり、図6(b)に示されるように、葉書の宛
名面全体の体裁が悪くなるという問題がある。
In the above-described conventional character size setting method, as shown in an application example in which an address and a name are printed on a postcard, for example, the number of lines M of the address is increased.
When the number of 1 is extremely large, the character size s 1 of the address becomes too small according to the conditional expression (1). Therefore, although the name area 503 has a sufficient printing area, the conditional expression ( Due to 7), the character size s 1 of the address is affected and the character size s 2 of the name becomes too small. As shown in FIG. 6B, the appearance of the entire address surface of the postcard is poor. There is a problem of becoming.

【0009】また、氏名の行数M2 が極端に多い場合に
は、前記条件式(2)により氏名のの文字サイズs2
小さくなり過ぎるために、住所領域502には印刷領域
に十分に余裕があるにもかかわらず、条件式(7)によ
り氏名の文字サイズs2 の影響を受けて、住所の文字サ
イズs1 も小さくなり過ぎてしまう状態となり、図6
(c)に示されるように、葉書の宛名面全体の体裁が同
様に悪くなるという問題がある。
If the number of lines M 2 of the name is extremely large, the character size s 2 of the name becomes too small according to the conditional expression (2), so that the address area 502 is sufficiently large in the printing area. Although there is a margin, conditional expression (7) is affected by the character size s 2 of the name, and the character size s 1 of the address becomes too small.
As shown in (c), there is a problem that the appearance of the entire address surface of the postcard is similarly deteriorated.

【0010】即ち、従来の文字サイズ設定方法において
は、複数の印刷領域に対応して、各印刷領域に対し、文
字の大きさならびに文字列等を適度に配置して印刷する
ことができないという欠点がある。
That is, in the conventional character size setting method, it is impossible to print by appropriately arranging the character size, character string, etc. in each print area corresponding to a plurality of print areas. There is.

【0011】[0011]

【課題を解決するための手段】本発明の文字サイズ自動
設定方法は、複数の印刷領域を有する印刷面に対応し、
前記印刷領域のそれぞれに印刷する文字列の文字サイズ
を事前設定する文字サイズ自動設定方法において、前記
複数の印刷領域に含まれる相互に隣接した任意の第1お
よび第2の印刷領域に対応して、それぞれの印刷領域に
おける文字サイズの最大値を求める第1のステップと、
前記第1のステップにおいて求められた前記第1の印刷
領域における文字サイズの最大値が、予め規定されてい
る文字サイズの下限値よりも大きいか否かを判定する第
2のステップと、前記第1の印刷領域における文字サイ
ズの最大値が、前記文字サイズの下限値よりも小さい場
合に、改めて前記第1および第2の印刷領域における文
字サイズの修正最大値を求める第3のステップと、前記
第1の印刷領域における文字列の行数の値と当該第1の
印刷領域における文字サイズの修正最大値との積が、当
該文字列の行方向の長さよりも大きいか否かを判定する
第4のステップと、前記第1の印刷領域における文字列
の行数の値と当該第1の印刷領域における文字サイズの
修正最大値との積が、当該文字列の行方向の長さよりも
大きい場合に、第1の印刷領域と第2の印刷領域の境界
を、前記第2の印刷領域の側に所定量移動させる第5の
ステップと、前記第1の印刷領域における文字列の行数
の値と当該第1の印刷領域における文字サイズの修正最
大値との積が、当該文字列の行方向の長さよりも小さい
場合に、前記第2の印刷領域における文字列の行数の値
と当該第2の印刷領域における文字サイズの修正最大値
との積が、当該第2の印刷領域における文字列の行方向
の長さよりも大きいか否かを判定する第6のステップ
と、前記第2の印刷領域における文字列の行数の値と当
該第2の印刷領域における文字サイズの修正最大値との
積が、当該第2の印刷領域における文字列の行方向の長
さよりも大きい場合に、第1の印刷領域と第2の印刷領
域の境界を、前記第1の印刷領域の側に所定量移動させ
る第7のステップと、前記第2のステップにおいて前記
第1の印刷領域における文字サイズの最大値が予め規定
されている文字サイズの下限値よりも大きいと判定され
た場合、ならびに前記第5のステップおよび前記第7の
ステップの処理終了後に、前記第1および第2の印刷領
域に対する印刷を実行する第8のステップと、を有する
ことを特徴としている。
The automatic character size setting method of the present invention is applicable to a printing surface having a plurality of printing areas,
In a character size automatic setting method for presetting a character size of a character string to be printed in each of the print areas, corresponding to arbitrary first and second print areas adjacent to each other included in the plurality of print areas. , A first step of obtaining the maximum value of the character size in each print area,
A second step of determining whether or not the maximum value of the character size in the first print area obtained in the first step is larger than a predetermined lower limit value of the character size; If the maximum character size in the first print area is smaller than the lower limit of the character size, the third step is again performed to obtain the modified maximum value of the character size in the first and second print areas, and It is determined whether the product of the value of the number of rows of the character string in the first print area and the modified maximum value of the character size in the first print area is greater than the length of the character string in the row direction. When the product of step 4 and the value of the number of lines of the character string in the first print area and the corrected maximum value of the character size in the first print area is larger than the length of the character string in the row direction. In the first Step of moving the boundary between the second printing area and the second printing area by a predetermined amount, the value of the number of lines of the character string in the first printing area, and the first step. When the product of the modified maximum character size in the print area is smaller than the length of the character string in the row direction, the value of the number of lines of the character string in the second print area and the second print area A sixth step of determining whether the product of the character size and the modified maximum value in the second print area is larger than the length in the row direction of the character string in the second print area; and the character string in the second print area. If the product of the value of the number of lines and the modified maximum value of the character size in the second print area is larger than the length of the character string in the row direction in the second print area, the first print area The boundary of the second print area is the side of the first print area. In the seventh step of moving a predetermined amount and in the second step, when it is determined that the maximum value of the character size in the first print area is larger than a predetermined lower limit value of the character size, and After completion of the processing of the fifth step and the seventh step, an eighth step of performing printing on the first and second printing areas is provided.

【0012】なお、前記第5のステップにおいて、第1
の印刷領域と第2の印刷領域の境界を前記第2の印刷領
域の側に移動させる前記所定量は、第1の印刷領域にお
ける文字列の行数と当該第1の印刷領域における文字サ
イズの修正最大値との積より、第1の印刷領域における
文字列の行方向の長さを差引いた数量としてもよく、ま
た前記第6のステップにおいて、第1の印刷領域と第2
の印刷領域の境界を前記第1の印刷領域の側に移動させ
る前記所定量は、第2の印刷領域における文字列の行数
と当該第2の印刷領域における文字サイズの修正最大値
との積より、第2の印刷領域における文字列の行方向の
長さを差引いた数量としてもよい。
In the fifth step, the first
The predetermined amount for moving the boundary between the print area and the second print area to the side of the second print area is determined by the number of lines of the character string in the first print area and the character size in the first print area. A quantity obtained by subtracting the length in the row direction of the character string in the first print area from the product of the modified maximum value may be used, and in the sixth step, the first print area and the second print area
The predetermined amount for moving the boundary of the print area of the second print area to the first print area is the product of the number of lines of the character string in the second print area and the corrected maximum value of the character size in the second print area. Therefore, the number may be the number obtained by subtracting the length in the row direction of the character string in the second print area.

【0013】[0013]

【実施例】次に、本発明について図面を参照して説明す
る。
Next, the present invention will be described with reference to the drawings.

【0014】図1は、本発明を葉書の宛名印刷に適用し
た場合における1実施例による印刷手順を示すフローチ
ャートである。図5(a)に示される住所領域502に
住所を縦書きに印刷する場合、先ずステップ101にお
いて、図4に示される従来例の場合と同様に、住所領域
502に印刷する文字サイズをs1 、氏名領域503に
印刷する文字サイズをs2 とし、住所の文字サイズs1
と氏名の文字サイズs2 との比をC、予め経験値より求
められた住所、氏名の文字サイズの上限値をUとして、
前記条件式(1)、(2)、(3)、(4)、(5)、
(6)および(7)を満たすs1 の最大値S1 およびs
2 の最大値S2 を求め、この求められたそれそれの値
を、住所の文字サイズS1 、氏名の文字サイズをS2
する。
FIG. 1 is a flowchart showing a printing procedure according to an embodiment when the present invention is applied to address printing of postcards. When vertically printing an address in the address area 502 shown in FIG. 5A, first, in step 101, the character size to be printed in the address area 502 is s 1 as in the case of the conventional example shown in FIG. , The character size to be printed in the name area 503 is s 2, and the character size of the address is s 1
And C is the ratio of the character size s 2 of the name to the name, and U is the upper limit of the character size of the address and the name obtained from experience values in advance.
The conditional expressions (1), (2), (3), (4), (5),
Maximum values S 1 and s of s 1 satisfying (6) and (7)
The maximum value S 2 of 2, the the obtained therewith its value, the character size S 1 of the address, the character size name and S 2.

【0015】次いで、ステップ102においては、下記
の判定式(8)により、前記ステップ101に求められ
た住所の文字サイズS1 が小さくなり過ぎていないか否
かが、予め経験的に定められている文字サイズ下限値L
に対比して判定される。
Next, at step 102, it is empirically determined beforehand by the following judgment formula (8) whether the character size S 1 of the address obtained at step 101 is not too small. Character size lower limit L
It is judged in comparison with.

【0016】 住所の文字サイズS1 ≧文字サイズの下限値L ………………(8) ステップ102において、住所の文字サイズS1 が文字
サイズの下限値Lよりも大きい場合には、ステップ10
8に移行して、求められた文字サイズS1 と氏名の文字
サイスS2 により印刷を実行する。この場合には、印刷
結果による文字サイズは文字サイズの下限値L以上であ
り、領域変更が不要な場合に相当し、図2(a)に示さ
れるように最適な文字サイズにより印刷が行われる。ま
た、ステップ102において住所の文字サイズS1 が文
字サイズの下限値L未満である場合においては、住所の
文字サイズS1 の大きさが小さくなり過ぎているものと
判定されて、ステップ103において、住所領域502
と氏名領域503との境界が可変であるものとして、住
所と氏名がこれらの住所領域502と氏名領域503か
らはみ出さず、且つ住所文字サイズs1 および氏名文字
サイズs2 の大きさ/バランスを適度に保持するための
下記の条件式を満たす住所文字サイズs1 の最大値S1a
および氏名文字サイズs2 の最大値S2aを求める。
Address character size S 1 ≧ character size lower limit value L (8) In step 102, when the address character size S 1 is larger than the character size lower limit value L, step 10
8, the printing is executed with the obtained character size S 1 and the name character size S 2 . In this case, the character size according to the print result is equal to or larger than the lower limit value L of the character size, which corresponds to the case where the area change is unnecessary, and the printing is performed with the optimum character size as shown in FIG. . In the case the character size S 1 of the address is less than the lower limit value L of the character sizes in step 102, it is determined that the size of the character size S 1 of the address is too small, in step 103, Address area 502
Assuming that the boundary between the name area 503 and the name area 503 is variable, the address and the name do not protrude from the address area 502 and the name area 503, and the size / balance of the address character size s 1 and the name character size s 2 is set. The maximum value S 1a of the address character size s 1 that satisfies the following conditional expression for holding it appropriately
And the maximum value S 2a of the name character size s 2 is calculated.

【0017】住所と氏名が、住所領域502と氏名領域
503から行方向にはみ出さないための条件式: 住所の行数M1 ×住所の文字サイズs1 +氏名の行数M2 ×氏名の文字サイズs2 ≦住所領域502の行方向の長さA1 +氏名領域503の行方向の長さA2 …………(9) 住所領域502に印刷する住所が、住所領域502から
列方向にはみ出さないための条件式: 住所の列数N1 ×住所の文字サイズs1 ≦住所領域502の列方向の長さB1 ………(10) 氏名領域503に印刷する氏名が、氏名領域503から
列方向にはみ出さないための条件式: 氏名の列数N2 ×氏名の文字サイズs2 ≦氏名領域503の列方向の長さB2 ………(11) 住所領域502の文字サイズが極端に大きくならないた
めの条件式: 氏名の文字サイスs1 ≦文字サイズの上限値U ……………(12) 氏名領域503の文字サイズが極端に大きくならないた
めの条件式: 氏名の文字サイスs2 ≦文字サイズの上限値U ……………(13) 住所領域502の文字サイズと氏名領域503の文字サ
イズのバランスを一定に保持するための条件式: 氏名の文字サイズs2 =住所と氏名の文字サイズの比C×住所の文字サイズs1 ………(14) 次いで、ステップ104においては、前記ステップ10
3において求められた住所の文字サイズS1aと氏名の文
字サイズS2aによる印刷時に、住所領域502と氏名領
域503の境界を氏名側に移動させるか否かを下記の条
件式により判定する。
Conditional expression for preventing the address and name from protruding from the address area 502 and the name area 503 in the row direction: Address line number M 1 × address character size s 1 + name line M 2 × name Character size s 2 ≤ line-direction length A 1 of address area 502 + line-direction length A 2 of name area 503 (9) Addresses to be printed in the address area 502 are arranged in the column direction from the address area 502. Conditional expression to prevent overflow: Address column number N 1 × address character size s 1 ≤ column direction length of address area 502 B 1 ... (10) Name printed in name area 503 is name Conditional expression for not protruding in the column direction from the area 503: Number of columns of name N 2 × character size of name s 2 ≦ Length of name area 503 in column direction B 2 ... (11) Characters of address area 502 Conditional expression to prevent the size from becoming extremely large: Name character size 1 ≦ the upper limit U ............... font size (12) Name region 503 condition for the character size is not extremely large: the upper limit value of the Font size s 2 ≦ character size name U ............... (13) Conditional expression for maintaining a constant balance between the character size of the address area 502 and the character size of the name area 503: Character size of name s 2 = ratio of character size of address and name C × character size of address s 1 ... (14) Next, in step 104, in step 10
At the time of printing with the character size S 1a of the address and the character size S 2a of the name obtained in No. 3, it is determined by the following conditional expression whether to move the boundary between the address area 502 and the name area 503 to the name side.

【0018】 住所の行数M1 ×住所の文字サイズS1a >住所領域502の行方向の長さA1 ………(15) ステップ104において、住所の行数M1 と住所の文字
サイズS1aの積が、住所領域502の行方向の長さA1
よりも大きい場合には、ステップ105に移行して、住
所領域502と氏名領域503の境界を、氏名領域50
3の側に次式に示される量だけ移動させる。
Address line number M 1 × address character size S 1a > length of address area 502 in the line direction A 1 (15) In step 104, the address line number M 1 and the address character size S 1 The product of 1a is the length A 1 of the address area 502 in the row direction.
If it is larger than the above, the process proceeds to step 105, and the boundary between the address area 502 and the name area 503 is set to the name area 50.
It is moved to the side of 3 by the amount shown in the following equation.

【0019】 住所の行数M1 ×住所の文字サイズS1a −住所領域502の行方向の長さA1 ………(16) 次いで、ステップ108においては、前記ステップ10
3において求められた住所の文字サイズS1aと氏名の文
字サイズS2aにより印刷を実行する。
Number of Address Lines M 1 × Address Character Size S 1a- Length of Address Area 502 in Line Direction A 1 (16) Next, in step 108, in step 10
Printing is executed using the character size S 1a of the address and the character size S 2a of the name obtained in 3.

【0020】なお、従来技術によれば、この場合に住所
領域502と氏名領域503の境界が固定されているた
めに、住所の行数M1 が極端に多い場合には、前記
(1)式により住所の文字サイズs1 が小さくなる過ぎ
るために、氏名領域503には十分に余裕があるにもか
かわらず、前記(7)式により住所の文字サイズs1
影響を受けて、氏名の文字サイズs2 が小さくなり過ぎ
る結果となり、図6(b)に示されるように葉書宛名面
全体の体裁が悪くなる状態となる。しかしながら、本発
明によれば、住所領域502と氏名領域503の境界を
氏名側に移動して印刷することができるので、図2
(b)に示されるように、最適な文字サイズとして印刷
が行われる。
According to the prior art, since the boundary between the address area 502 and the name area 503 is fixed in this case, when the number of rows M 1 of the address is extremely large, the above equation (1) is used. Since the character size s 1 of the address becomes too small, the name area 503 has a sufficient margin, but the character size s 1 of the address is affected by the expression (7), and the character of the name is affected. As a result of the size s 2 becoming too small, the overall appearance of the postcard addressing surface becomes poor as shown in FIG. 6B. However, according to the present invention, it is possible to move the boundary between the address area 502 and the name area 503 to the name side for printing, and therefore, as shown in FIG.
As shown in (b), printing is performed with an optimum character size.

【0021】また、ステップ104において、住所の行
数M1 と住所の文字サイズS1aの積が、住所領域502
の行方向の長さA1 よりも小さい場合には、ステップ1
06に移行して、印刷時に住所領域502と氏名領域5
03の境界を、住所側に移動させるか否かを下記の条件
式により判定する。
In step 104, the product of the number M 1 of lines of the address and the character size S 1a of the address is the address area 502.
If it is smaller than the length A 1 in the row direction, then step 1
06, the address area 502 and the name area 5 at the time of printing
Whether or not the boundary of 03 is moved to the address side is determined by the following conditional expression.

【0022】 氏名の行数M2 ×氏名の文字サイズS2a >氏名領域503の行方向の長さA2 ………(17) そして、ステップ106において、氏名の行数M2 と氏
名の文字サイズS2aの積が、氏名領域503の行方向の
長さA2 よりも大きい場合には、ステップ107に移行
して、住所領域502と氏名領域503の境界を、住所
領域502の側に次式に示される量だけ移動させる。
Number of lines of name M 2 × character size of name S 2a > length of name area 503 in the row direction A 2 (17) Then, in step 106, the number of lines of name M 2 and the characters of the name When the product of the size S 2a is larger than the length A 2 of the name area 503 in the row direction, the process proceeds to step 107, and the boundary between the address area 502 and the name area 503 is moved to the address area 502 side. Move by the amount shown in the formula.

【0023】 氏名の行数M2 ×氏名の文字サイズS2a −氏名領域503の行方向の長さA2 ………(18) 次いで、ステップ108においては、前記ステップ10
3において求められた住所の文字サイズS1aと氏名の文
字サイズS2aにより印刷を実行する。
Number of Name Lines M 2 × Name Character Size S 2a −Length of Name Area 503 in Line Direction A 2 (18) Next, in Step 108, in Step 10 above.
Printing is executed using the character size S 1a of the address and the character size S 2a of the name obtained in 3.

【0024】なお、従来技術によれば、この場合に住所
領域502と氏名領域503の境界が固定されているた
めに、氏名の行数M2 が極端に多い場合には、前記
(2)式により氏名の文字サイズs2 が小さくなり過ぎ
るために、住所領域502には十分に余裕があるにもか
かわらず、前記(7)式により氏名の文字サイズs2
影響を受けて、住所の文字サイズs1 も小さくなり過ぎ
る結果となり、図6(c)に示されるように葉書宛名面
全体の体裁が悪くなる状態となる。しかしながら、本発
明によれば、住所領域502と氏名領域503の境界を
住所側に移動して印刷することができるので、図2
(c)に示されるように、最適な文字サイズとして印刷
が行われる。
According to the prior art, since the boundary between the address area 502 and the name area 503 is fixed in this case, if the number M 2 of name lines is extremely large, the above equation (2) is used. Since the character size s 2 of the name becomes too small, the address area 502 has a sufficient margin, but the character size s 2 of the name is affected by the expression (7), and As a result, the size s 1 becomes too small, and the appearance of the entire postcard addressing surface becomes poor as shown in FIG. 6C. However, according to the present invention, the boundary between the address area 502 and the name area 503 can be moved to the address side for printing, so
As shown in (c), printing is performed with an optimum character size.

【0025】また、ステップ106において、氏名の行
数M2 と氏名の文字サイズS2aの積が、氏名領域503
の行方向の長さA2 よりも小さい場合には、前記ステッ
プ103において求められた住所の文字サイズS1aと氏
名の文字サイズS2aが、必らずしも最適な文字サイズで
はないが、列方向に文字が多く存在しているので、これ
以上に文字サイズを大きくすることができない状態とな
る。従って、住所領域502と氏名領域503の境界を
どちらにも移動させることなくステップ108に移行し
て、前記住所の文字サイズS1aと氏名の文字サイズS2a
により印刷を実行する。この場合における印刷結果が図
2(d)に示される。
In step 106, the product of the number of lines M 2 of the name and the character size S 2a of the name is the name area 503.
Is smaller than the length A 2 in the row direction, the character size S 1a of the address and the character size S 2a of the name obtained in step 103 are not necessarily the optimum character sizes. Since there are many characters in the column direction, the character size cannot be increased further. Therefore, the process moves to step 108 without moving the boundary between the address area 502 and the name area 503 to the character size S 1a of the address and the character size S 2a of the name.
To print. The print result in this case is shown in FIG.

【0026】以上説明したように、従来例においては、
住所の行数M1 が極端に多い場合には、住所の文字サイ
ズが小さくなり過ぎるために、図6(b)に示されるよ
うに葉書宛名面の全体の体裁が悪くなるという問題があ
り、また、氏名の行数M2 が極端に多い場合には、氏名
の文字サイズが小さくなり過ぎるために、図6(c)に
示されるように葉書宛名面の全体の体裁が悪くなるとい
う問題がある。しかしながら、本発明によれば、それら
の問題点は有効に解決され、住所の文字サイズと氏名文
字サイズを最適な状態に設定して印刷することができ
る。
As described above, in the conventional example,
When the number M 1 of lines of the address is extremely large, the character size of the address becomes too small, which causes a problem that the entire appearance of the postcard addressing surface becomes bad as shown in FIG. 6B. In addition, when the number of lines M 2 of the name is extremely large, the character size of the name becomes too small, so that there is a problem that the overall appearance of the postcard addressing surface becomes bad as shown in FIG. 6C. is there. However, according to the present invention, those problems are effectively solved, and it is possible to print by setting the character size of the address and the name character size to an optimum state.

【0027】なお、上記の実施例においては、通常の葉
書の宛名面に住所と氏名を印刷する場合を例として説明
しているが、例えば、図3(a)に示されるように、葉
書の下部に本文を記述することのできる絵葉書の上部に
印刷領域をとる場合に対しても、本発明が有効に適用で
きることは云うまでもない。また更に、上記実施例にお
いては、宛名面における2つの印刷領域が相互に接合し
ている場合についての説明を行っているが、本発明はこ
れに限定されるものではなく、図3(b)に示されるよ
うに、各印刷領域間に一定の間隔が設けられている場合
に対しても適用することが可能である。また、葉書以外
に、各種の封筒、タックシールおよび葉書以外の各種の
用紙に文字等を印刷する場合、或はまた情報処理装置の
画面表示等に対しても、同様に本発明が有効に適用可能
であることは云うまでもない。
In the above embodiment, the case where the address and the name are printed on the address surface of a normal postcard has been described as an example. However, as shown in FIG. It goes without saying that the present invention can be effectively applied to the case where the printing area is provided above the picture card in which the text can be described below. Furthermore, in the above embodiment, the case where the two print areas on the address surface are joined to each other has been described, but the present invention is not limited to this, and FIG. It is also applicable to the case where a fixed interval is provided between the respective print areas as shown in FIG. Further, in addition to postcards, the present invention is effectively applied to the case of printing characters and the like on various types of envelopes, tack stickers, and various types of paper other than postcards, or for screen display of an information processing device. It goes without saying that it is possible.

【0028】[0028]

【発明の効果】以上説明したように、本発明は、複数の
印刷領域に対して、所定の文字列が相対応する印刷領域
内にそれぞれ適度に配置されるように文字の大きさを設
定する文字サイズ自動設定方法に適用されて、前記複数
の印刷領域において相互に隣接する印刷領域における文
字の配列ならびに文字の大きさのバランスを調整する処
理手順を有することにより、印刷面の体裁を著しく改善
することができるという効果がある。
As described above, according to the present invention, the character size is set so that a predetermined character string is appropriately arranged in a corresponding printing area for a plurality of printing areas. The appearance of the printing surface is remarkably improved by being applied to the automatic character size setting method and having a processing procedure for adjusting the balance of the character arrangement and the character size in the print areas adjacent to each other in the plurality of print areas. There is an effect that can be done.

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

【図1】本発明の一実施例のフローチャートを示す図で
ある。
FIG. 1 is a diagram showing a flowchart of an embodiment of the present invention.

【図2】本実施例における宛名印刷の文字配列例を示す
図である。
FIG. 2 is a diagram showing an example of a character arrangement for address printing in the present embodiment.

【図3】本実施例における宛名印刷例を示す図である。FIG. 3 is a diagram illustrating an example of address printing according to the present exemplary embodiment.

【図4】従来例のフローチャートを示す図である。FIG. 4 is a diagram showing a flowchart of a conventional example.

【図5】住所/氏名の印刷領域を示す図である。FIG. 5 is a diagram showing an address / name printing area.

【図6】従来例における宛名印刷の文字配列例を示す図
である。
FIG. 6 is a diagram showing an example of a character arrangement for address printing in a conventional example.

【符号の説明】[Explanation of symbols]

101〜108、401、402 ステップ 501 葉書 502 住所領域 503 氏名領域 101-108, 401, 402 Step 501 Postcard 502 Address area 503 Name area

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数の印刷領域を有する印刷面に対応
し、前記印刷領域のそれぞれに印刷する文字列の文字サ
イズを事前設定する文字サイズ自動設定方法において、 前記複数の印刷領域に含まれる相互に隣接した任意の第
1および第2の印刷領域に対応して、それぞれの印刷領
域における文字サイズの最大値を求める第1のステップ
と、 前記第1のステップにおいて求められた前記第1の印刷
領域における文字サイズの最大値が、予め規定されてい
る文字サイズの下限値よりも大きいか否かを判定する第
2のステップと、 前記第1の印刷領域における文字サイズの最大値が、前
記文字サイズの下限値よりも小さい場合に、改めて前記
第1および第2の印刷領域における文字サイズの修正最
大値を求める第3のステップと、 前記第1の印刷領域における文字列の行数の値と当該第
1の印刷領域における文字サイズの修正最大値との積
が、当該文字列の行方向の長さよりも大きいか否かを判
定する第4のステップと、 前記第1の印刷領域における文字列の行数の値と当該第
1の印刷領域における文字サイズの修正最大値との積
が、当該文字列の行方向の長さよりも大きい場合に、第
1の印刷領域と第2の印刷領域の境界を、前記第2の印
刷領域の側に所定量移動させる第5のステップと、 前記第1の印刷領域における文字列の行数の値と当該第
1の印刷領域における文字サイズの修正最大値との積
が、当該文字列の行方向の長さよりも小さい場合に、前
記第2の印刷領域における文字列の行数の値と当該第2
の印刷領域における文字サイズの修正最大値との積が、
当該第2の印刷領域における文字列の行方向の長さより
も大きいか否かを判定する第6のステップと、 前記第2の印刷領域における文字列の行数の値と当該第
2の印刷領域における文字サイズの修正最大値との積
が、当該第2の印刷領域における文字列の行方向の長さ
よりも大きい場合に、第1の印刷領域と第2の印刷領域
の境界を、前記第1の印刷領域の側に所定量移動させる
第7のステップと、 前記第2のステップにおいて前記第1の印刷領域におけ
る文字サイズの最大値が予め規定されている文字サイズ
の下限値よりも大きいと判定された場合、ならびに前記
第5のステップおよび前記第7のステップの処理終了後
に、前記第1および第2の印刷領域に対する印刷を実行
する第8のステップと、 を有することを特徴とする文字サイズ自動設定方法。
1. An automatic character size setting method for presetting a character size of a character string to be printed in each of the printing areas, which corresponds to a printing surface having a plurality of printing areas. Corresponding to arbitrary first and second print areas adjacent to, a first step of obtaining a maximum value of the character size in each print area; and the first print obtained in the first step. A second step of determining whether the maximum value of the character size in the area is larger than a predetermined lower limit value of the character size, and the maximum value of the character size in the first print area is the character A third step of again obtaining a corrected maximum value of the character size in the first and second print areas when the size is smaller than the lower limit of the size; and the first print area. A fourth step of determining whether the product of the value of the number of lines of the character string and the modified maximum value of the character size in the first print area is larger than the length of the character string in the row direction; When the product of the value of the number of rows of the character string in the first print area and the modified maximum value of the character size in the first print area is larger than the length of the character string in the row direction, the first A fifth step of moving a boundary between the print area and the second print area to the side of the second print area by a predetermined amount, a value of the number of lines of a character string in the first print area, and the first value. When the product of the corrected maximum character size in the printing area is smaller than the length of the character string in the row direction, the value of the number of rows of the character string in the second printing area and the second value
The product of the corrected maximum character size in the print area of is
A sixth step of determining whether the length of the character string in the second printing area in the row direction is larger than the value, the value of the number of rows of the character string in the second printing area, and the second printing area. When the product of the character size and the corrected maximum value in the second print area is larger than the length of the character string in the row direction in the second print area, the boundary between the first print area and the second print area is set to the first print area. 7th step of moving a predetermined amount to the print area side, and in the 2nd step, it is determined that the maximum value of the character size in the first print area is larger than a predetermined lower limit value of the character size. And the eighth step of executing printing on the first and second print areas after the processing of the fifth step and the seventh step is completed, the character size Dynamic setting method.
【請求項2】 前記第5のステップにおいて、第1の印
刷領域と第2の印刷領域の境界を前記第2の印刷領域の
側に移動させる前記所定量が、第1の印刷領域における
文字列の行数と当該第1の印刷領域における文字サイズ
の修正最大値との積より、第1の印刷領域における文字
列の行方向の長さを差引いた数量であり、前記第6のス
テップにおいて、第1の印刷領域と第2の印刷領域の境
界を前記第1の印刷領域の側に移動させる前記所定量
が、第2の印刷領域における文字列の行数と当該第2の
印刷領域における文字サイズの修正最大値との積より、
第2の印刷領域における文字列の行方向の長さを差引い
た数量であることを特徴とする請求項1記載の文字サイ
ズ自動設定方法。
2. In the fifth step, the predetermined amount for moving the boundary between the first print area and the second print area to the side of the second print area is a character string in the first print area. Is the product of the number of lines and the modified maximum value of the character size in the first print area, minus the length in the row direction of the character string in the first print area. In the sixth step, The predetermined amount for moving the boundary between the first print area and the second print area to the side of the first print area is the number of lines of the character string in the second print area and the characters in the second print area. From the product of the modified maximum size,
2. The character size automatic setting method according to claim 1, wherein the quantity is the quantity obtained by subtracting the length in the row direction of the character string in the second print area.
JP7133686A 1995-05-31 1995-05-31 Automatic setting method for character size Pending JPH08329055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7133686A JPH08329055A (en) 1995-05-31 1995-05-31 Automatic setting method for character size

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7133686A JPH08329055A (en) 1995-05-31 1995-05-31 Automatic setting method for character size

Publications (1)

Publication Number Publication Date
JPH08329055A true JPH08329055A (en) 1996-12-13

Family

ID=15110512

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7133686A Pending JPH08329055A (en) 1995-05-31 1995-05-31 Automatic setting method for character size

Country Status (1)

Country Link
JP (1) JPH08329055A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573563A (en) * 1991-09-17 1993-03-26 Casio Comput Co Ltd Document processor
JPH0687249A (en) * 1992-09-07 1994-03-29 Casio Comput Co Ltd Apparatus for printing address
JPH06348702A (en) * 1993-06-08 1994-12-22 Canon Inc Method and device for character processing
JPH07114538A (en) * 1993-10-19 1995-05-02 Toshiba Corp Document preparation device and address printing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573563A (en) * 1991-09-17 1993-03-26 Casio Comput Co Ltd Document processor
JPH0687249A (en) * 1992-09-07 1994-03-29 Casio Comput Co Ltd Apparatus for printing address
JPH06348702A (en) * 1993-06-08 1994-12-22 Canon Inc Method and device for character processing
JPH07114538A (en) * 1993-10-19 1995-05-02 Toshiba Corp Document preparation device and address printing method

Similar Documents

Publication Publication Date Title
JPH05298289A (en) Word processor
JPH08329055A (en) Automatic setting method for character size
JPH0438005B2 (en)
JPH0733105B2 (en) Ruled line printing method
JPS6139672B2 (en)
CN117873616A (en) Text self-adaptive display method and device, electronic equipment and storage medium
JPS62229189A (en) Character display system
JPS6358496A (en) Character reduction logic
JP3078120B2 (en) Display control method and device
JPH0877165A (en) Data editing device
JPH041353B2 (en)
CN114253411A (en) Driving method and circuit of touch display substrate, device and display device
JPH0596811A (en) Printing method
JPS59123046A (en) Display system of document processor
JP3074378B2 (en) Display control method and device
JP2671038B2 (en) Electronic learning machine
JPH0347893Y2 (en)
KR19980043697A (en) Image display method for displaying the actual size of the image to be printed on the screen
JP2003108912A (en) Listing method and listing device
JPS6265080A (en) Graph display system
JP2003346216A (en) Bankbook print control system
JPH04255369A (en) Printing control method
JPH05151207A (en) Information processor
JPH0429074B2 (en)
JPH04239980A (en) Image rotation device