JP2802855B2 - A typesetting method that adjusts the arrangement of character groups according to a virtual layout rectangle - Google Patents

A typesetting method that adjusts the arrangement of character groups according to a virtual layout rectangle

Info

Publication number
JP2802855B2
JP2802855B2 JP13615292A JP13615292A JP2802855B2 JP 2802855 B2 JP2802855 B2 JP 2802855B2 JP 13615292 A JP13615292 A JP 13615292A JP 13615292 A JP13615292 A JP 13615292A JP 2802855 B2 JP2802855 B2 JP 2802855B2
Authority
JP
Japan
Prior art keywords
item
typesetting
character
arrangement
rectangle
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
Application number
JP13615292A
Other languages
Japanese (ja)
Other versions
JPH05307255A (en
Inventor
秀樹 中
誠 楠本
博文 大矢
一成 三浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Screen Holdings Co Ltd
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Screen Holdings Co Ltd
Dainippon Screen Manufacturing 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 Screen Holdings Co Ltd, Dainippon Screen Manufacturing Co Ltd filed Critical Screen Holdings Co Ltd
Priority to JP13615292A priority Critical patent/JP2802855B2/en
Publication of JPH05307255A publication Critical patent/JPH05307255A/en
Application granted granted Critical
Publication of JP2802855B2 publication Critical patent/JP2802855B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、電子組版装置を用い
て組版を行なう方法に関し、特に、仮想的な割付矩形に
従って文字群の配置を調整する組版方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for performing typesetting using an electronic typesetting device, and more particularly to a typesetting method for adjusting the arrangement of character groups according to a virtual layout rectangle.

【0002】[0002]

【従来の技術】電子製版プロセスにおいては、文字群を
版下に配置するための電子組版装置が用いられる。近年
では、チラシ広告内の文字なども電子組版装置で組版さ
れることが多くなっている。
2. Description of the Related Art In an electronic plate making process, an electronic typesetting apparatus for arranging a character group under a plate is used. In recent years, letters and the like in flyer advertisements are often typeset by an electronic typesetting device.

【0003】カタログ風のチラシ広告(例えば、ギフト
商品のパンフレット、通信販売の広告、分譲住宅の広告
など)の中には、1頁の中に類似のパターンで並んだ文
字群が多数の箇所に配置されているものがある。例え
ば、ギフト商品のパンフレットでは、多くの場合、品物
の写真とともにその値段や品物の内容を示す文字が類似
のパターンで複数箇所に配置されている。
[0003] In a catalog-style flyer advertisement (for example, a pamphlet for gift products, an advertisement for mail-order sales, an advertisement for condominiums, etc.), a group of characters arranged in a similar pattern on one page appears in many places. Some are located. For example, in a pamphlet of a gift product, in many cases, characters indicating the price and the content of the product are arranged at a plurality of locations in a similar pattern together with a photograph of the product.

【0004】[0004]

【発明が解決しようとする課題】ところが、1頁内の各
配置箇所における文字数は異なることが多く、また、文
字を配置するための領域(スペース)も、品物の写真の
大きさなどの制約をうけるので配置箇所によって変わる
ことが多い。このような場合には、各配置箇所によって
文字群の最適な配列方法も異なることが多く、各配置箇
所における文字群の配列を一度にまとめて指定すること
は困難である。従来は、各配置箇所の文字群が類似のパ
ターンで配置されているにも係わらず、組版を行なう作
業者が各配置箇所において文字群の配列を最適にするよ
うに(すなわち、バランスが良いように)調整してい
た。このため、1頁内の組版にかなりの時間と手間を要
するという問題があった。
However, the number of characters at each location within one page is often different, and the area (space) for arranging the characters is also limited by the size of the photograph of the article. Because it is received, it often changes depending on the location. In such a case, the optimal arrangement method of the character group often differs depending on each arrangement location, and it is difficult to designate the arrangement of the character group at each arrangement position at once. Conventionally, even though the character groups at each location are arranged in a similar pattern, the typesetting operator optimizes the arrangement of the character groups at each location (i.e., the balance is good). A) had been adjusted. For this reason, there has been a problem that it takes a considerable amount of time and effort to format a page.

【0005】この発明は、従来技術における上述の課題
を解決するためになされたものであり、類似のパターン
で複数の文字群を配置する組版作業を容易に行なうこと
のできる組版方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems in the prior art, and provides a typesetting method that can easily perform a typesetting operation of arranging a plurality of character groups in a similar pattern. With the goal.

【0006】[0006]

【課題を解決するための手段】上述の課題を解決するた
め、この発明による組版方法は、一定数の文字群で構成
される組版単位が1頁内に繰り返し配置されるように
子組版装置によって組版を行なう組版方法であって、 (a)1組の組版単位に含まれる文字群の個数を決定す
るとともに、 前記組版単位内の各文字群に関し、前記組版単位の所定
の原点を基準とする各文字群の所定の参照点の座標を示
す座標データと、各文字群の書体と文字の大きさとを示
す文字情報と、を含むマスタデータを準備する工程と、 (b)1頁の画面内の複数の組版位置において、前記組
版単位をそれぞれ割付けるための仮想的な割付矩形の形
状を指定する工程と、 (c)前記仮想的な割付矩形を基準として前記1組の組
版単位内の各文字群の配置を調整する内容を示す配置情
報を準備する工程と、 (d)各組版位置において前記組版単位内の複数の文字
群として配置するための複数の文字を、各文字群と対応
させつつ入力する工程と、 (e)前記複数の組版位置のそれぞれにおいて、前記工
程(d)で入力された文字で構成される各文字群の配置
を、前記仮想的な割付矩形を基準とし前記座標データと
配置情報とに基づいて前記電子組版装置が決定するとと
もに、前記文字情報に基づいて各文字群の書体と文字の
大きさを前記電子組版装置が決定する工程と、を備え
る。
In order to solve the above-mentioned problems, a typesetting method according to the present invention comprises a fixed number of character groups.
A typesetting method for performing typesetting by an electronic typesetting device such that the typesetting units to be repeatedly arranged within one page , comprising: (a) determining the number of character groups included in one set of typesetting units; With respect to each character group in the typesetting unit, coordinate data indicating coordinates of a predetermined reference point of each character group with respect to a predetermined origin of the typesetting unit, and a font and character size of each character group Preparing master data including character information indicating the following: and (b) designating a virtual layout rectangle shape for allocating each of the format units at a plurality of format positions in the screen of one page. (C) preparing arrangement information indicating the contents of adjusting the arrangement of each character group within the one set unit based on the virtual layout rectangle; (d) at each set position Arranged as a plurality of character groups in the typesetting unit Inputting a plurality of characters to be placed in correspondence with each character group; and (e) at each of the plurality of typesetting positions, each character group constituted by the characters input in the step (d) The electronic typesetting device determines the layout based on the coordinate data and the layout information based on the virtual layout rectangle, and determines the typeface and character size of each character group based on the character information. A step of determining by the electronic typesetting device.

【0007】なお、工程(e)は、配置情報の少なくと
も一部を座標データに優先して適用することによって各
文字群の配置を決定する工程、を備えることが好まし
い。
Preferably, the step (e) includes a step of determining the arrangement of each character group by applying at least a part of the arrangement information to the coordinate data with priority.

【0008】[0008]

【作用】作業者は、マスタデータを準備し、1頁内の複
数の組版位置のそれぞれにおいて仮想的な割付矩形を指
定し、配置情報を準備し、各組版位置において配置すべ
き文字を入力すれば、電子組版装置によって各組版位置
において各文字群が配置される。この際、各組版位置の
それぞれにおける仮想的な割付矩形を基準とし、マスタ
データと配置情報に基づいて文字群の配置を決定するの
で、作業者が各組版位置において各文字群の配置を調整
する必要がない。また、文字情報に基づいて各文字群の
書体と文字の大きさを決定するので、作業者が改めてこ
れらの文字特性を指定する必要がない。
An operator prepares master data, designates a virtual layout rectangle at each of a plurality of composition positions within one page, prepares arrangement information, and inputs characters to be arranged at each composition position. Then, each character group is arranged at each typesetting position by the electronic typesetting device. At this time, the arrangement of the character groups is determined based on the master data and the arrangement information based on the virtual layout rectangle at each of the forme positions. No need to adjust. Further, since the typeface and the size of each character group are determined based on the character information, the operator does not need to specify these character characteristics again.

【0009】なお、配置情報の少なくとも一部を座標デ
ータに優先して適用すれば、組版位置によって割付矩形
の形状が違う場合にも、配置情報に従って文字群をバラ
ンス良く配置することができる。
If at least a part of the arrangement information is applied prior to the coordinate data, the character groups can be arranged in a well-balanced manner according to the arrangement information even when the layout rectangle has a different shape depending on the typesetting position.

【0010】[0010]

【実施例】【Example】

A.装置の構成 図1は、この発明の一実施例を適用して組版を行なう電
子組版装置の構成を示すブロック図である。この電子組
版装置は、CPU10と、バスライン12とを備えてお
り、バスライン12には、RAM14と、ROM16
と、フレームメモリ18とが接続されている。また、バ
スライン12には、入力装置としてキーボード30とマ
ウス32とデジタイザ34とが接続されており、出力装
置としてカラーCRT36が接続されている。さらに、
外部記憶装置としては磁気ディスク38が接続されてい
る。
A. Configuration of Apparatus FIG. 1 is a block diagram showing the configuration of an electronic typesetting apparatus that performs typesetting by applying an embodiment of the present invention. This electronic typesetting device includes a CPU 10 and a bus line 12, and a RAM 14, a ROM 16
And the frame memory 18 are connected. A keyboard 30, a mouse 32, and a digitizer 34 are connected as input devices to the bus line 12, and a color CRT 36 is connected as an output device. further,
A magnetic disk 38 is connected as an external storage device.

【0011】CPU10は、磁気ディスク38に記憶さ
れたプログラムを実行することによって、文字位置決定
手段40の機能を実行する。この手段の機能について
は、後述する処理手順に即して説明する。
The CPU 10 executes the function of the character position determining means 40 by executing a program stored in the magnetic disk 38. The function of this means will be described in accordance with the processing procedure described later.

【0012】B.画面の構成 図2は1頁の画面の例を示す図であり、例えばギフト商
品のパンフレットのレイアウトを示している。画面内に
は、複数の画像要素PE1〜PE8と、各画像要素の周
囲に配置された仮想的な割付矩形LR1〜LR8を示し
ている。例えば、画像要素PE1〜PE8は品物の写真
画像であり、割付矩形LR1〜LR8には各品物の商品
番号、品名、値段などが組版される。
B. Screen Configuration FIG. 2 is a diagram showing an example of a one-page screen, and shows, for example, the layout of a pamphlet of a gift product. The screen shows a plurality of image elements PE1 to PE8 and virtual allocation rectangles LR1 to LR8 arranged around each image element. For example, the image elements PE1 to PE8 are photographic images of the items, and the allocation rectangles LR1 to LR8 are typeset with the item number, item name, price, and the like of each item.

【0013】図3は、割付矩形LR1を基準として組版
された複数の文字群を示す説明図である。この割付矩形
LR1には、4つの文字群C1〜C4が配置されてい
る。以下では、各文字群を「項目」と呼ぶ。4つの項目
C1〜C4は、それぞれの文字群の外接矩形で仮想的に
取り囲まれている。外接矩形の左上点(白丸で示す)は
組版開始点ST1〜ST4であり、各項目を配置する際
の基準点(参照点)として利用される。すなわち、各項
目C1〜C4の位置は、割付矩形LR1の原点Oを基準
とするx−y座標系において、各項目の組版開始点ST
1〜ST4の座標によって特定される。
FIG. 3 is an explanatory diagram showing a plurality of character groups formatted based on the layout rectangle LR1. In this allocation rectangle LR1, four character groups C1 to C4 are arranged. Hereinafter, each character group is referred to as an “item”. The four items C1 to C4 are virtually surrounded by circumscribed rectangles of the respective character groups. The upper left point (indicated by a white circle) of the circumscribed rectangle is the typesetting start points ST1 to ST4, which are used as reference points (reference points) when arranging each item. In other words, the position of each item C1 to C4 is determined by the typesetting start point ST of each item in the xy coordinate system based on the origin O of the layout rectangle LR1.
It is specified by the coordinates of 1 to ST4.

【0014】なお、各割付矩形LR1〜LR8には同数
の(この例では4つの)項目が配置される。各割付矩形
に配置される複数の項目は、本発明における1組の組版
単位に相当する。
The same number (four in this example) of items are arranged in each of the allocation rectangles LR1 to LR8. A plurality of items arranged in each layout rectangle correspond to one set of unit in the present invention.

【0015】C.概略処理手順 図4と図5は、組版を実行する処理手順を示すフローチ
ャートである。ステップS1〜S4は、オペレータがマ
スタファイルを作成する手順である。図6は、マスタフ
ァイルの構成を示す説明図である。マスタファイルMF
は、1つの組版単位内の各項目C1〜C4に関して、組
版開始点ST1〜ST4の座標を示す座標データと、組
方向(縦組または横組)を示すデータと、各項目の文字
の書体と大きさと角度と字間とを示す文字情報と、各項
目の外接矩形の寸法を示すデータとを含でいる。
C. Schematic Processing Procedure FIGS. 4 and 5 are flowcharts showing a processing procedure for executing typesetting. Steps S1 to S4 are procedures for the operator to create a master file. FIG. 6 is an explanatory diagram showing the configuration of the master file. Master file MF
For each of the items C1 to C4 in one formatting unit, coordinate data indicating the coordinates of the formatting start points ST1 to ST4, data indicating the composition direction (vertical composition or horizontal composition), the character type of each item, It contains character information indicating the size, angle, and character spacing, and data indicating the size of the circumscribed rectangle of each item.

【0016】ステップS1では、各項目に配置する文字
列「No.101」、「ギフト」等の文字を入力(採
字)する。図7は、採字により得られた採字データDL
を示す説明図である。採字データは、各項目C1〜C4
の文字の2バイトコードと、各項目の間に挿入された項
目コードCC(この例では文字「>」のコード)とで構
成されている。オペレータは、キーボード30で各文字
を入力していき、1つの項目の文字入力を終了した時点
で項目コードCCに相当する文字を入力することによっ
て、図7の採字データDLを入力する。なお、マスタフ
ァイルMFを作成する際に採字したデータは、実際の組
版には使用しない。
In step S1, characters such as character strings "No. 101" and "gift" to be arranged in each item are inputted (lettered). FIG. 7 shows the typesetting data DL obtained by typesetting.
FIG. Typesetting data consists of items C1 to C4
, And an item code CC (in this example, a code of the character “>”) inserted between the items. The operator inputs each character with the keyboard 30, and when the character input of one item is completed, inputs the character corresponding to the item code CC, thereby inputting the lettering data DL of FIG. Note that the data obtained when the master file MF is created is not used for actual typesetting.

【0017】ステップS2では、CRT36上において
各項目C1〜C4の組版開始点ST1〜ST4の位置を
マウス32を用いて指定することによって、各項目を配
置する。この際、CRT36の画面には、図3に示すよ
うな割付矩形LR1を表示しても良く、単に原点Oの位
置のみを表示しておいても良い。
In step S2, the positions of the typesetting start points ST1 to ST4 of the items C1 to C4 on the CRT 36 are designated by using the mouse 32 to arrange the items. At this time, the layout rectangle LR1 as shown in FIG. 3 may be displayed on the screen of the CRT 36, or only the position of the origin O may be displayed.

【0018】ステップS3では、何らかの図形を組版し
たい場合に、その図形をマウス32やデジタイザ34を
用いて入力し、CRT36上で配置する。ここで、図形
とは、文字列の下線、枠線、リーダー線「・・・」など
の文字以外の組版要素を言う。この図形を表わすデータ
は、図形ファイルとしてRAM14に記憶される。
In step S3, when it is desired to typeset a figure, the figure is input using the mouse 32 or digitizer 34, and is arranged on the CRT 36. Here, the figure refers to a typesetting element other than characters, such as a character string underline, a frame line, and a leader line "...". Data representing the graphic is stored in the RAM 14 as a graphic file.

【0019】ステップS4では、以上のようにして作成
されたマスタファイルMF(図6)を磁気ディスク38
に保存する。ステップS5では、組版を行なうための文
字列を採字する。組版を指示するための版下台紙には、
図2に示すように、1頁の画面内に8つの画像要素PE
1〜PE8が配置されることが指示されており、また、
各画像要素にそれぞれ対応して1組の組版単位が配置さ
れることが指示されている。ただし、各組版単位が配置
されるべき場所には101、102等の番号が記入され
ているだけである。画像要素と組版単位の番号は、図2
にも示すように画面上での配列順序とは異なり、配置が
決定される前に予め指定された所定の番号である。な
お、各組版単位に対する割付矩形の形状は、版下台紙に
記入されている必要はない。
In step S4, the master file MF (FIG. 6) created as described above is copied to the magnetic disk 38.
To save. In step S5, a character string for performing typesetting is obtained. In the underlaying sheet for instructing typesetting,
As shown in FIG. 2, eight image elements PE are displayed in a screen of one page.
1 to PE8 are arranged, and
It is instructed that one set of unit is arranged corresponding to each image element. However, only the numbers 101, 102, etc. are entered in the places where each typesetting unit is to be arranged. Figure 2 shows the numbers of the image elements and the typesetting units.
Unlike the arrangement order on the screen, this is a predetermined number specified before the arrangement is determined. The shape of the layout rectangle for each typesetting unit does not need to be entered on the underlaying board.

【0020】採字作業においては、版下台紙の他に、組
版単位の番号(101、102…)と、各組版単位に対
して採字すべき文字とが記入された採字データシートが
予め準備され、オペレータに手渡されている。オペレー
タは、この採字データシートを見ながら組版単位の番号
順に文字を入力していき、図7に示す採字データDLを
得る。この際、組版単位同士の間にも項目コードCCを
入力する。こうして得られた採字データは、磁気ディス
ク38に保存される。
In the typesetting operation, a typesetting data sheet in which, in addition to the underlaying sheet, the number of the typesetting unit (101, 102...) And the characters to be typeset for each typesetting unit are entered. It is prepared in advance and handed to the operator. The operator inputs characters in the order of the number of the typesetting unit while looking at the typesetting data sheet, and obtains the typesetting data DL shown in FIG. At this time, the item code CC is also input between the typesetting units. The character data thus obtained is stored on the magnetic disk 38.

【0021】ステップS6では、オペレータがCRT3
6上において各割付矩形LR1〜LR8の形状を指定す
る。割付矩形が画面の座標系に対して傾いていない時に
は、各割付矩形の対角線上の2点(例えば、左上点と右
下点)の位置を指定するだけで、その形状が指定され
る。一方、割付矩形LR8のように画面の座標系に対し
て傾いている時には、その4頂点の内の3点の位置を指
定する。なお、割付矩形の形状と位置を指定する前に、
画面に対して割付矩形が傾いているか、傾いていないか
をオペレータが指定する。
In step S6, the operator operates the CRT 3
6, the shape of each allocation rectangle LR1 to LR8 is specified. When the layout rectangle is not inclined with respect to the coordinate system of the screen, the shape is specified simply by specifying the positions of two points (for example, the upper left point and the lower right point) on the diagonal line of each layout rectangle. On the other hand, when the screen is inclined with respect to the screen coordinate system as in the layout rectangle LR8, the position of three of the four vertices is designated. Before specifying the shape and position of the layout rectangle,
The operator specifies whether the layout rectangle is inclined or not with respect to the screen.

【0022】1頁の画面内に指定された割付矩形LR1
〜LR8はCRT36に表示され、画面全体のレイアウ
トのバランスが良いか否かがオペレータによりチェック
される。このように、割付矩形LR1〜LR8を指定し
た後に表示するようにすれば、実際の組版前に組版後の
文字と画像要素とのバランスをチェックすることができ
るので、画面全体のレイアウトの調整を含む組版作業を
効率よく行なうことができる。また、特に、傾いた割付
矩形(LR8)を指定できるようにすれば、傾いた組版
を行なった際のバランスも知ることができるので、レイ
アウトを行ない易い。
The allocation rectangle LR1 specified in the screen of one page
LR8 are displayed on the CRT 36, and the operator checks whether the layout of the entire screen is well balanced or not. In this way, if the layout rectangles LR1 to LR8 are displayed after being specified, it is possible to check the balance between the formatted characters and the image elements before the actual formatting, so that the layout of the entire screen can be adjusted. It is possible to efficiently perform the typesetting work including the above. In particular, if the inclined layout rectangle (LR8) can be designated, the balance when the inclined composition is performed can be known, so that the layout can be easily performed.

【0023】図8は、割付矩形を表わす割付矩形データ
を示す説明図である。割付矩形データは、1頁内の割付
矩形の数と、各割付矩形の4頂点P1〜P4の座標とで
構成される。この割付矩形データは、磁気ディスク38
に保存される。
FIG. 8 is an explanatory diagram showing allocation rectangle data representing an allocation rectangle. The layout rectangle data includes the number of layout rectangles in one page and the coordinates of the four vertices P1 to P4 of each layout rectangle. This allocated rectangular data is stored in the magnetic disk 38.
Is stored in

【0024】図4に戻り、ステップS7では、オペレー
タが各項目の配置調整のモードを示す組版配置情報を作
成する。図9は、作成された組版配置情報LIを示す説
明図である。組版配置情報LIは、1つの組版単位内の
各項目C1〜C4のそれぞれについて、5つの配置調整
事項(「揃え」、「項目接続」、「項目間隔」、「字体
調整」、「エリア調整」)に対するモードを示すデータ
である。5つの配置調整事項は、それぞれ次のような配
置調整のモードを示している。
Returning to FIG. 4, in step S7, the operator creates typesetting arrangement information indicating a mode of arrangement adjustment of each item. FIG. 9 is an explanatory diagram showing the created typesetting arrangement information LI. The typesetting layout information LI includes five layout adjustment items (“alignment”, “item connection”, “item spacing”, “font adjustment”, “area adjustment”) for each of the items C1 to C4 in one typesetting unit. ) Is data indicating the mode corresponding to. The five arrangement adjustment items indicate the following arrangement adjustment modes, respectively.

【0025】「揃え」:いわゆる行揃えを意味する。横
組の場合、「行頭」は左揃え、「行末」は右揃えを示
す。また、「行中心」はセンタリング、「行頭行末」は
均等割付を示す。揃えの調整は、後述する「字体調整」
とも関連するので、「字体調整」の説明のところで詳し
く説明する。
"Alignment": means so-called line alignment. In the case of horizontal composition, “head of line” indicates left alignment, and “end of line” indicates right alignment. “Line center” indicates centering, and “head of line” indicates uniform allocation. To adjust the alignment, see “Font adjustment” described later.
Since it is also related, it will be described in detail in the description of “font adjustment”.

【0026】「項目接続」:項目接続のモードが「あ
り」の項目は、その直前の項目の後に接触する状態で配
置される。例えば、図3の第3の項目C3は項目接続
「あり」と指定される。なお、項目接続が「あり」と指
定された項目については、その組版開始点ST3の情報
は無視されて、項目接続を実行するように配置される。
また、接続された複数の項目の揃えは、その最後の項目
の揃えに従って調整される。図3の例では、項目C2と
項目C3とが接続しているので、2つの項目C2,C3
は最初の項目C2の組版開始点ST2を基準にして配置
され、また、揃えは後ろの項目C3に従って調整され
る。このような項目接続を行なえば、マスタファイルM
Fで示される項目内の字数と、実際にその項目内に組版
される字数とが異なる場合にも、項目同士を隙間無く接
続することができる。
"Item connection": An item whose item connection mode is "Yes" is arranged in a state of touching after the immediately preceding item. For example, the third item C3 in FIG. 3 is designated as the item connection “Yes”. Note that, for an item whose item connection is designated as “present”, the information of the typesetting start point ST3 is ignored, and the item connection is performed so as to execute the item connection.
In addition, the alignment of a plurality of connected items is adjusted according to the alignment of the last item. In the example of FIG. 3, since the item C2 and the item C3 are connected, the two items C2 and C3
Are arranged based on the typesetting start point ST2 of the first item C2, and the alignment is adjusted according to the following item C3. If such an item connection is made, the master file M
Even when the number of characters in an item indicated by F is different from the number of characters actually typeset in the item, the items can be connected without gaps.

【0027】「項目間隔」:項目間隔のモードが「浮
動」の項目は、その直前の項目の下端の位置がずれて、
項目相互の間隔がマスタファイルMFにおける間隔と異
なった場合にも、マスタファイルMFにおける間隔を保
つように移動する。項目間隔のモードが「固定」の項目
は、項目間の間隔の広狭に関係無く、組版開始点を基準
として配置される。図10は、項目間隔の調整の仕方を
示す説明図である。図10(a)は、マスタファイルに
おける2つの項目C11,C12の配置を示す。なお、
マスタファイルには、各項目として配置される文字は規
定されていない。図10(b)と(c)は、実際に2つ
の項目C11,C12に文字が配置された状態を示して
いる。図10(b)は、項目C12の項目間隔のモード
が「浮動」の場合を示しており、2つの項目C11とC
12との間の間隔d1は、マスタファイルで示される間
隔と等しく保たれる。図10(c)は、項目C12の項
目間隔のモードが「固定」の場合を示しており、各項目
C11,C12は組版開始点ST11,ST12の座標
に従って配置される。従って、2つの項目間の間隔d2
は、マスタファイルで示される間隔d1と異なってい
る。このように、項目間隔を調整するようにすれば、各
項目の行数が変化した場合にも、その組版単位全体をバ
ランスよく配置することができる。
"Item interval": An item whose item interval mode is "floating" is shifted from the position of the lower end of the immediately preceding item.
Even when the interval between items is different from the interval in the master file MF, the item is moved so as to keep the interval in the master file MF. Items whose item interval mode is “fixed” are arranged with reference to the typesetting start point regardless of the size of the interval between items. FIG. 10 is an explanatory diagram showing how to adjust the item interval. FIG. 10A shows an arrangement of two items C11 and C12 in the master file. In addition,
The characters arranged as each item are not specified in the master file. FIGS. 10B and 10C show a state where characters are actually arranged in two items C11 and C12. FIG. 10B shows a case where the item interval mode of the item C12 is “floating”, and the two items C11 and C
12 is kept equal to the interval indicated in the master file. FIG. 10C shows a case where the item interval mode of the item C12 is “fixed”, and the items C11 and C12 are arranged according to the coordinates of the typesetting start points ST11 and ST12. Therefore, the interval d2 between two items
Is different from the interval d1 indicated in the master file. By adjusting the item interval in this way, even when the number of lines of each item changes, the entire typesetting unit can be arranged in a well-balanced manner.

【0028】「字体調整」:各項目の一行の長さに応じ
て字体(文字の幅)を調整するモードである。以下では
まず、一行の長さの決定方法について説明し、次に字体
の調整について説明する。
"Font adjustment": A mode for adjusting the font (character width) according to the length of one line of each item. Hereinafter, first, a method of determining the length of one line will be described, and then adjustment of the font will be described.

【0029】図11は、一行の長さの決定方法と、一行
の長さに応じた「揃え」の種々の態様を示す説明図であ
る。図11(a)は、一行の長さの決定方法を示してい
る。各項目の一行の長さは、字体調整のモードが「行
長」の場合には、マスタファイルMF(図6)に登録さ
れた外接矩形CRの長さに等しく設定される。一方、字
体調節のモードが「エリア」の場合には、組版開始点か
ら割付矩形LR1の終端までの長さに設定される。各項
目内の文字は、各項目の一行の長さの中において、それ
ぞれの「揃え」のモードで配置される。図11(b)、
(c)、(d)、(e)は、字体調整がエリアの場合に
おける揃えのモードを示している。このように、各項目
の一行の長さを組版開始点と割付矩形の終端とすれば、
割付矩形を基準として文字列を揃えることができるの
で、バランスの良い組版を行なうことができる場合があ
る。これは、割付矩形を利用する利点の1つである。
FIG. 11 is an explanatory view showing a method of determining the length of one line and various modes of "alignment" according to the length of one line. FIG. 11A shows a method for determining the length of one line. The line length of each item is set equal to the length of the circumscribed rectangle CR registered in the master file MF (FIG. 6) when the font adjustment mode is “line length”. On the other hand, when the font adjustment mode is “area”, the length is set to the length from the typesetting start point to the end of the layout rectangle LR1. The characters in each item are arranged in the "alignment" mode within the length of one line of each item. FIG. 11 (b),
(C), (d), and (e) show alignment modes when the font adjustment is an area. In this way, if the length of one line of each item is the format start point and the end of the layout rectangle,
Since the character strings can be aligned based on the layout rectangle, a well-balanced typesetting may be performed. This is one of the advantages of using the allocation rectangle.

【0030】図12は、一行の長さと字体調整との関係
を示す説明図である。図12(a)は、項目内に入る文
字数が少ない場合であり、この時には字体調整は行なわ
れない。図12(b)は、項目内の文字数が多い場合を
示しており、字体率Kに従って長体がかけられている
(すなわち、字幅が縮小されている)。ここで字体率K
は次式で定義される。 K=a/b a=(項目の行の長さ) b=(項目内の文字列の長さ)=(文字枠の幅)×(文
字数) 図12(b)に示すように、項目内の文字に長体をかけ
ると、項目の行長さaの中にすべての文字が納めること
ができる。こうすれば、文字の読み易さを損なうことな
く、かつ、項目の行数を増加させずに文字を配置するこ
とができる。
FIG. 12 is an explanatory diagram showing the relationship between the length of one line and the font adjustment. FIG. 12A shows a case where the number of characters included in the item is small. At this time, no font adjustment is performed. FIG. 12B shows a case where the number of characters in the item is large, and the characters are elongated according to the font ratio K (that is, the character width is reduced). Where the font rate K
Is defined by the following equation. K = a / ba a = (line length of item) b = (length of character string in item) = (width of character frame) × (number of characters) As shown in FIG. When all characters are put in the line length "a" of the item, the characters can be put in the long font. In this case, the characters can be arranged without impairing the readability of the characters and without increasing the number of lines of the item.

【0031】図12(c)は、項目接続のモードが「あ
り」の場合における処理を示す図である。図12(c)
において、項目C22の項目接続のモードが「あり」に
設定されていると、前述したように直前の項目C21と
接触する状態で項目C22が配置される。この時、字体
率Kは次式で定義される。 K=a/t a=Σai (各項目の行の長さaiの和) t=Σbi (各項目の文字列の長さbiの和) 2つの項目C21,C22内の文字は、字体率Kで長体
がかけられる。この結果、図12(c)の下端に示すよ
うに、項目C21,C22の合計の行長さaの中に、す
べての文字が納められる。この際、後ろの項目C22の
組版開始点ST22は、前の項目C21の外接矩形の右
上点に設定される。
FIG. 12C is a diagram showing the processing when the item connection mode is “Yes”. FIG. 12 (c)
In, when the item connection mode of the item C22 is set to “Yes”, the item C22 is arranged in a state of touching the immediately preceding item C21 as described above. At this time, the font ratio K is defined by the following equation. K = a / t a = Σai (sum of the line lengths ai of each item) t = Σbi (sum of the lengths bi of the character strings of each item) The characters in the two items C21 and C22 have the font rate K With long body. As a result, as shown at the lower end of FIG. 12C, all characters are stored in the total line length a of the items C21 and C22. At this time, the typesetting start point ST22 of the following item C22 is set to the upper right point of the circumscribed rectangle of the preceding item C21.

【0032】なお、図12(b),(c)において、字
体率Kが所定の限界値(例えば0.4)よりも小さい場
合には、文字に長体をかけずに、項目の行数を増加させ
るようにしてもよい。これは、余りに小さな字体率で長
体をかけて字幅を減少させると、文字が読みにくくなる
からである。項目の行数が増加して割付矩形の下端を越
えるような場合にも、これにかまわずに行数を増加させ
てよい。
In FIGS. 12 (b) and 12 (c), when the font rate K is smaller than a predetermined limit value (for example, 0.4), the characters are not extended and the number of lines of the item is not changed. May be increased. This is because if the character width is reduced by applying a long font at an excessively small font ratio, the character becomes difficult to read. Even in the case where the number of lines of the item increases to exceed the lower end of the allocation rectangle, the number of lines may be increased irrespective of this.

【0033】「エリア調整」:割付矩形の大きさに応じ
て各項目の位置を調整する方法を示す。図13は、エリ
ア調整の3つのモード(「固定」、「拡大」、「縮
小」)の中の「拡大」と「縮小」とを示す説明図であ
る。なお、エリア調整は、他の配置情報に優先して適用
される。エリア調整のモードが「固定」の場合には、割
付矩形の大きさに応じた位置調整を行なわず、他の配置
情報(揃え、項目接続、項目間隔、字体調整)に従って
配置する。
"Area adjustment": A method for adjusting the position of each item according to the size of the layout rectangle. FIG. 13 is an explanatory diagram showing “enlargement” and “reduction” among three modes of area adjustment (“fixed”, “enlargement”, and “reduction”). Note that the area adjustment is applied prior to other arrangement information. When the area adjustment mode is “fixed”, the position is not adjusted according to the size of the layout rectangle, and the area is arranged according to other arrangement information (alignment, item connection, item interval, font adjustment).

【0034】エリア調整のモードが「拡大」の場合に
は、図13(a)に示すように、先頭の項目C1と最後
の項目C4とが、割付矩形LR1の外形線に接するよう
に配置される。また、中間にある項目C2,C3は、先
頭の項目C1と最後の項目C4から等しい距離d3に配
置される。なお、互いに接続された項目C2,C3は1
つの項目と見なして移動する。
When the mode of the area adjustment is "enlarge", as shown in FIG. 13A, the first item C1 and the last item C4 are arranged so as to be in contact with the outline of the allocation rectangle LR1. You. The intermediate items C2 and C3 are arranged at the same distance d3 from the first item C1 and the last item C4. The items C2 and C3 connected to each other are 1
Move as if it were one item.

【0035】エリア調整のモードが「縮小」の場合に
は、図13(b)に示すように、最後の項目C4の外接
矩形が割付矩形LR1の下端に接するようにし、また、
各項目間の距離は、マスタファイルMFで示される値と
同じに保たれる。この調整方法によれば、マスタファイ
ルによって示される1組の組版単位の配置面積と割付矩
形の面積とがかなり異なる場合にも、割付矩形を基準に
してバランスよく項目を配置することができる。エリア
調整の「縮小」モードは、組版した項目が割付矩形LR
1の下側に突出する時や、項目の行数が少ないために割
付矩形LR1の下側が大きく空いてしまう時などに、各
項目をバランスよく配置するために利用される。
When the mode of the area adjustment is "reduction", as shown in FIG. 13B, the circumscribed rectangle of the last item C4 is in contact with the lower end of the allocation rectangle LR1.
The distance between the items is kept the same as the value indicated in the master file MF. According to this adjustment method, even when the layout area of one set of composition units indicated by the master file and the area of the layout rectangle are considerably different, items can be arranged in a well-balanced manner based on the layout rectangle. In the area reduction “reduction” mode, the formatted items are assigned rectangles LR.
This is used for arranging the items in a well-balanced manner, for example, when projecting to the lower side of 1 or when the lower side of the allocation rectangle LR1 is largely vacant due to a small number of lines of the item.

【0036】以上の5つの配置調整の中で、「揃え」の
一部と「エリア調整」とは割付矩形を基準とした配置調
整であり、「項目接続」と「項目間隔」と「字体調整」
とは項目相互間の配置調整である。割付矩形を利用すれ
ば、割付矩形を基準とした配置調整を行なうことができ
るので、各組版単位内の項目を、よりバランスよく配置
することが可能である。
Among the above five arrangement adjustments, a part of “alignment” and “area adjustment” are arrangement adjustments based on an allocation rectangle, and are “item connection”, “item interval”, and “font adjustment”. "
Is arrangement adjustment between items. If the layout rectangle is used, the layout can be adjusted based on the layout rectangle, so that the items in each typesetting unit can be more balancedly arranged.

【0037】図4に戻り、ステップS8では、利用する
マスタファイルをオペレータが指定する。これは、磁気
ディスク38に複数のマスタファイルMFが保存されて
いる場合に、その内の1つを選択する手順である。
Referring back to FIG. 4, in step S8, the operator specifies a master file to be used. This is a procedure for selecting one of a plurality of master files MF when the plurality of master files MF are stored on the magnetic disk 38.

【0038】図5のステップS9〜S12は、電子組版
装置の文字位置決定手段40(図1)が実行する処理で
ある。ステップS9では、組版を実行する割付矩形を1
つ選択し、その割付矩形を1頁の画面の原点位置に移動
させる。この際、割付矩形が画面に対して傾いている時
には、その傾きθだけ割付矩形を回転して傾かない矩形
に直し、かつ、画面の所定の原点(例えば左下点)に割
付矩形の原点を移動させる。この際、回転角θと移動量
とをRAM14に記憶しておく。
Steps S9 to S12 in FIG. 5 are processes executed by the character position determining means 40 (FIG. 1) of the electronic typesetting apparatus. In step S9, the layout rectangle to be subjected to typesetting is set to 1
Is selected, and the allocated rectangle is moved to the origin position of the screen of one page. At this time, if the layout rectangle is inclined with respect to the screen, the layout rectangle is rotated by the tilt θ to convert the layout rectangle to a non-tilted rectangle, and the origin of the layout rectangle is moved to a predetermined origin (for example, the lower left point) of the screen. Let it. At this time, the rotation angle θ and the movement amount are stored in the RAM 14.

【0039】ステップS10では、マスタファイルMF
(図6)と組版配置情報(図9)とに従って、採字され
た文字(図7)を各項目に流し込むとともに、割付矩形
を基準として各項目を配置する。なお、ステップS10
の詳細についてはさらに後述する。
In step S10, the master file MF
In accordance with (FIG. 6) and typesetting arrangement information (FIG. 9), the typed character (FIG. 7) is poured into each item, and each item is arranged based on the layout rectangle. Step S10
Will be described later in detail.

【0040】ステップS11では、文字の流し込みと項
目の配置を行なった割付矩形を元の位置に移動させる。
この際、ステップS9においてRAM14に記憶してい
た回転角θと移動量とを利用する。
In step S11, the layout rectangle in which the characters are flowed and the items are arranged is moved to the original position.
At this time, the rotation angle θ and the movement amount stored in the RAM 14 in step S9 are used.

【0041】ステップS12において、1頁内のすべて
の割付矩形に対して処理を終わっていなければ、ステッ
プS9に戻り、ステップS9〜S11の処理を繰り返
す。図14は、こうした組版処理により作成された組版
配置済データを示す説明図である。組版配置済データ
は、各項目のサイズや書式を表わす書式情報DD1と、
各項目内の文字数や各文字の文字コードと文字配置点の
座標を表わす文字情報DD2とを含んでいる。作成され
た組版配置済データは、磁気ディスク38に保存され
る。
If it is determined in step S12 that the processing has not been completed for all the allocation rectangles in one page, the process returns to step S9, and the processing in steps S9 to S11 is repeated. FIG. 14 is an explanatory diagram showing typesetting arranged data created by such typesetting processing. Formatted data includes format information DD1 representing the size and format of each item,
It includes the number of characters in each item, the character code of each character, and character information DD2 representing the coordinates of the character arrangement point. The created typesetting arranged data is stored on the magnetic disk 38.

【0042】このように、この実施例では、仮想的な割
付矩形を指定し、この割付矩形を基準として1つの組版
単位を構成する複数の項目の配置を調整するので、各項
目内の文字数や行数がマスタファイルと異なる場合に
も、バランス良く配置することが可能である。
As described above, in this embodiment, a virtual layout rectangle is designated, and the arrangement of a plurality of items constituting one formatting unit is adjusted based on the layout rectangle. Even when the number of lines is different from that of the master file, they can be arranged in a well-balanced manner.

【0043】D.配置調整の詳細手順 図15ないし18は、ステップS10の詳細手順を示す
フローチャートである。図15のステップS20から図
17のステップS40までは、各項目ごとの配置調整を
実行する処理であり、図18のステップS41〜S50
は、1つの組版単位全体のエリア調整を実行する処理で
ある。
D. Detailed Procedure of Arrangement Adjustment FIGS. 15 to 18 are flowcharts showing the detailed procedure of step S10. Steps S20 in FIG. 15 to S40 in FIG. 17 are processes for executing the arrangement adjustment for each item, and steps S41 to S50 in FIG.
Is a process for executing the area adjustment of one entire forme unit.

【0044】図15のステップS20〜S23は、項目
の一行の長さa(図11参照)を求める処理である。ス
テップS20において、組版配置情報に登録されている
字体調整モードが「行長」の場合にはステップS21が
実行され、図11(a)に示すように一行の長さaがマ
スタファイルMFで示される外接矩形の長さに等しく設
定される。また、字体調整モードが「エリア」の場合に
はステップS22が実行され、一行の長さaが組版開始
点から割付矩形の終端までの長さに設定される。
Steps S20 to S23 in FIG. 15 are processes for obtaining the length a of one line of the item (see FIG. 11). In step S20, if the font adjustment mode registered in the typesetting layout information is "line length", step S21 is executed, and the length a of one line is indicated by the master file MF as shown in FIG. Is set equal to the length of the circumscribed rectangle. If the font adjustment mode is "area", step S22 is executed, and the length a of one line is set to the length from the typesetting start point to the end of the layout rectangle.

【0045】ステップS23では、1組の組版単位内の
すべての項目について行長さを求める処理が終了したか
否かが判断され、終了していなければステップS20に
戻って次の項目の行長さが求められる。
In step S23, it is determined whether or not the processing for obtaining the line length has been completed for all the items in one set unit. If not, the process returns to step S20 to return to the line length of the next item. Is required.

【0046】ステップS24〜S40(図17)では、
1組の組版単位内の各項目が1つずつ処理対象として選
択されて配置調整が行なわれる。ステップS24では、
処理対象の第n番目の項目の採字データを磁気ディスク
38から読出し、マスタファイルMF(図6)のn項目
目の組版情報に応じて組版を行なった場合について、項
目の文字列の長さbと項目の幅とを求める。nは、項目
の順序を示すパラメータであり、1から1組の組版単位
内の項目の個数まで変化する。項目の文字列の長さb
は、図12(b)に示すように、(文字枠の大きさ)×
(文字数)で与えられる長さである。また、項目の幅
は、文字枠の高さである。
In steps S24 to S40 (FIG. 17),
Each item in one set unit is selected one by one as a processing target, and the arrangement is adjusted. In step S24,
The character string length of the item in the case where the character data of the n-th item to be processed is read from the magnetic disk 38 and the typesetting is performed according to the typesetting information of the nth item of the master file MF (FIG. 6). Find b and the width of the item. n is a parameter indicating the order of the items, and varies from 1 to the number of items in one set of unit. Length of item string b
Is, as shown in FIG. 12B, (size of character frame) ×
Is the length given by (number of characters). The item width is the height of the character frame.

【0047】ステップS25では、項目接続されている
項目の合計文字列長さt(図12(c)参照)と、項目
幅と、合計行長さaとが更新される。すなわち、ステッ
プS24で算出された文字列の長さbが、項目接続され
ている項目の合計文字列長さtに加算され、これによっ
て合計文字列長さtが更新される。文字列の合計文字列
長さtの初期値は0に設定されている。項目接続されて
いない項目については、合計文字列長さtはその項目の
文字列の長さbに等しい。また、項目接続されている各
項目の幅の最大値が、接続された項目の幅として更新さ
れる。さらに、項目接続されている各項目の行長も合計
の行長さaに加算され、これによって合計行長さaが更
新される。
In step S25, the total character string length t (see FIG. 12C), the item width, and the total line length a of the items connected to the items are updated. That is, the character string length b calculated in step S24 is added to the total character string length t of the item connected to the item, thereby updating the total character string length t. The initial value of the total character string length t of the character string is set to 0. For an item that is not item-connected, the total character string length t is equal to the character string length b of that item. The maximum value of the width of each item connected to the item is updated as the width of the connected item. Further, the line length of each item connected to the item is also added to the total line length a, thereby updating the total line length a.

【0048】ステップS26では、項目接続されている
複数の項目の最後の項目であるか否かが判断される。最
後の項目であるか、または、他の項目と接続されていな
い項目である場合には、図16のステップS27に移行
する。一方、次に項目接続モードが「あり」の項目が続
いている場合には、ステップS24に戻り、ステップS
24、S25の処理を繰り返すことによって、接続され
た項目の合計長さtを求める。
In step S26, it is determined whether or not the item is the last item of the plurality of items connected. If it is the last item or an item that is not connected to another item, the process proceeds to step S27 in FIG. On the other hand, when the item connection mode is followed by the item of “Yes”, the process returns to step S24, and step S24 is performed.
24, the processing of S25 is repeated to determine the total length t of the connected items.

【0049】図16のステップS27では、合計行長さ
aと合計文字列長さtとが比較され、a<tの場合には
ステップS28〜S30の字体調整が実行される。ま
た、a<tでない場合には、字体調整は行なわれず、ス
テップS31〜S35の揃え処理に移行する。
In step S27 of FIG. 16, the total line length a is compared with the total character string length t. If a <t, the font adjustment in steps S28 to S30 is executed. If a <t is not satisfied, the font adjustment is not performed, and the process proceeds to the alignment processing in steps S31 to S35.

【0050】ステップS28では、字体率Kが決定さ
れ、この字体率Kで文字に長体をかける処理が実行され
る(図12(b),(c)参照)。ステップS29で
は、項目接続された各項目について、長体がかけられた
後の文字列の長さbを算出する。長体をかけた後の文字
列の長さbは次式で与えられる。 b=(文字枠の大きさ)×(文字数)×K
In step S28, the font ratio K is determined, and a process of multiplying the character by the font ratio K is executed (see FIGS. 12B and 12C). In step S29, for each connected item, the length b of the character string after the length is applied is calculated. The length b of the character string after multiplication by the long body is given by the following equation. b = (size of character frame) × (number of characters) × K

【0051】ステップS30では、項目接続された各項
目について、直前の項目の文字列の外接矩形の右上点
が、その項目の組版開始点として設定される。これは、
図12(c)の下端に示した配置を実現する処理であ
る。なお、ステップS28〜S30で字体調整を行なっ
た場合には、合計行長さaよりも合計文字列長さtが長
い場合なので、揃え処理(ステップS31〜S35)は
実行されず、図17のステップS36に移行する。
In step S30, for each item connected to the item, the upper right point of the circumscribed rectangle of the character string of the immediately preceding item is set as the typesetting start point of that item. this is,
This is processing for realizing the arrangement shown at the lower end of FIG. In the case where the font adjustment is performed in steps S28 to S30, since the total character string length t is longer than the total line length a, the alignment processing (steps S31 to S35) is not executed, and FIG. Move to step S36.

【0052】ステップS31〜S35は、ステップS2
7において合計行長さaが合計文字列長さt以上の場合
に実行される揃え処理である。ステップS31では、そ
の項目について指定された揃えのモードが判別され、行
頭行末(ステップS32)、行末(ステップS33)、
行中心(ステップS34)、行頭(ステップS35)の
各処理に分岐する(図11参照)。
Steps S31 to S35 are performed in step S2.
7 is an alignment process executed when the total line length a is equal to or greater than the total character string length t. In step S31, the alignment mode designated for the item is determined, and the end of line (step S32), the end of line (step S33),
The process branches to line center (step S34) and line head (step S35) processes (see FIG. 11).

【0053】揃えモードが行頭行末または行頭の場合に
は、その項目内の先頭の文字の配置基準点RPのx座標
がマスタファイルMF(図6)で示される組版開始点の
x座標に等しく設定される。ここで、配置基準点RP
は、図11(b)〜(e)に示すように先頭文字の文字
枠の左上点である。なお、行頭行末の場合の字間は、次
式で算出される。 行頭行末の場合:字間=(a−t)/(文字数−1)
When the alignment mode is the beginning of the line or the end of the line, the x coordinate of the arrangement reference point RP of the first character in the item is set equal to the x coordinate of the typesetting start point indicated in the master file MF (FIG. 6). Is done. Here, the placement reference point RP
Is the upper left point of the character frame of the first character as shown in FIGS. The character spacing at the beginning and end of the line is calculated by the following equation. At the beginning and end of the line: character spacing = (at) / (number of characters -1)

【0054】揃えモードが行末または行中心の場合に
は、その項目内の先頭の文字の配置基準点RPのx座標
が、それぞれ次のように設定される。 行末:配置基準点のx座標=(組版開始点のx座標)+
(a−t) 行中心:配置基準点のx座標=(組版開始点のx座標)
+(a−t)/2 以上の処理によって、処置対象となっている項目の配置
基準点のx座標が求められる。
When the alignment mode is line end or line center, the x coordinate of the arrangement reference point RP of the first character in the item is set as follows. End of line: x coordinate of placement reference point = (x coordinate of formatting start point) +
(At) Line center: x coordinate of arrangement reference point = (x coordinate of formatting start point)
+ (At) / 2 By the above processing, the x coordinate of the arrangement reference point of the item to be treated is obtained.

【0055】ステップS36〜S40は、項目の配置基
準点RPのy座標を求める処理である。ステップS36
では、項目間隔モードが判別され、浮動の場合にはステ
ップS37が実行され、固定の場合にはステップS38
が実行される。
Steps S36 to S40 are processes for obtaining the y coordinate of the item arrangement reference point RP. Step S36
Then, the item interval mode is determined. If the item interval mode is floating, step S37 is executed. If the item interval mode is fixed, step S38.
Is executed.

【0056】項目間隔が浮動の場合には、図10(b)
に示したように、その直前の項目C11と処理対象とな
っている項目C12との間隔d1を、マスタファイルM
Fで示される値に保つようにその項目C12の配置基準
点のy座標を調整する。これを実現するために、まず、
ステップS36においては、直前の項目までのy方向変
化幅を、処理対象の項目の組版開始点のy座標に加算す
る。y方向変化幅は、図19に示すように、マスタファ
イルMFで示される各項目の幅Ly1,Ly2と実際の
組版時の各項目の幅との差分W1,W2である。ステッ
プS36では、処理対象の項目の直前までの項目に対す
るy方向変化幅を累算し、これとその項目の組版開始点
のy座標とを加算することによって、その項目の配置基
準点のy座標を求める。y方向変化幅は、次のステップ
S39で算出される値であり、最初の項目についてはy
方向変化幅は0に設定されている。ステップS39で
は、現在の項目幅からマスタファイルで示される項目幅
を引くことによって、処理対象の項目のY方向変化幅が
算出される。
In the case where the item interval is floating, FIG.
As shown in the figure, the interval d1 between the immediately preceding item C11 and the item C12 to be processed is determined by the master file M
The y coordinate of the arrangement reference point of the item C12 is adjusted so as to keep the value indicated by F. To achieve this, first,
In step S36, the y-direction change width up to the immediately preceding item is added to the y coordinate of the typesetting start point of the processing target item. As shown in FIG. 19, the y-direction change width is the difference W1, W2 between the width Ly1, Ly2 of each item indicated in the master file MF and the width of each item during actual typesetting. In step S36, the y-direction change width of the item up to immediately before the item to be processed is accumulated, and this is added to the y coordinate of the typesetting start point of the item, thereby obtaining the y coordinate of the arrangement reference point of the item. Ask for. The y-direction change width is a value calculated in the next step S39, and for the first item, y
The direction change width is set to zero. In step S39, the Y direction change width of the processing target item is calculated by subtracting the item width indicated in the master file from the current item width.

【0057】一方。項目間隔モードが固定の場合には、
ステップS38において、マスタファイルMFの組版開
始点のy座標が、その項目の配置基準点RPのy座標と
して設定される。そして、ステップS39においてy方
向変化幅が算出される。
On the other hand. If the item interval mode is fixed,
In step S38, the y coordinate of the typesetting start point of the master file MF is set as the y coordinate of the arrangement reference point RP of the item. Then, in step S39, the y-direction change width is calculated.

【0058】ステップS40では、すべての項目につい
てステップS24〜S39の処理が終了しているか否か
が判断され、終了していなければステップS24に戻
る。すべての項目についてステップS24〜S39の処
理を終了すると、図18のステップS41に移行する。
In step S40, it is determined whether or not the processing in steps S24 to S39 has been completed for all items, and if not, the flow returns to step S24. When the processes of steps S24 to S39 are completed for all items, the process proceeds to step S41 of FIG.

【0059】ステップS41〜S50は、エリア調整の
処理である。なお、ステップS24〜S40の処理は各
項目ごとの配置調整であるのに対して、ステップS41
〜S50の処理は、1つの組版単位のすべての項目につ
いての配置調整である。エリア調整が縮小または拡大に
設定されている場合には、各項目についての配置調整の
結果に優先してエリア調整が実施される。
Steps S41 to S50 are an area adjustment process. Note that the processing in steps S24 to S40 is an arrangement adjustment for each item, whereas the processing in step S41 is performed.
The processing in steps S50 to S50 is an arrangement adjustment for all items in one composition unit. When the area adjustment is set to reduction or enlargement, the area adjustment is performed prior to the result of the arrangement adjustment for each item.

【0060】ステップS41ではエリア調整のモードが
固定、縮小、拡大のいずれであるかが判断される。エリ
ア調整モードが「固定」の場合には、何も行なわれずに
処理を終了する。エリア調整のモードが「縮小」の場合
には、ステップS42,S43が実行される。ステップ
S42では、1つの組版単位の最後の項目の下端と割付
矩形の下端との間にある空き幅が求められ、空き幅にマ
イナスを付けた値をバイアスとして記憶する。図20
は、最後の項目C4の空き幅を示す説明図である。バイ
アスBは、各項目を移動させる際に使用する値であり、
次式で与えられる。 バイアスB=−(最後の項目の下端の空き幅) =−{(組版開始点ST4のy座標)−(項目幅L
y)}
In step S41, it is determined whether the mode of area adjustment is fixed, reduced, or enlarged. If the area adjustment mode is "fixed", the process ends without performing anything. If the area adjustment mode is “reduction”, steps S42 and S43 are executed. In step S42, the empty width between the lower end of the last item of one typesetting unit and the lower end of the layout rectangle is obtained, and a value obtained by adding a minus to the empty width is stored as a bias. FIG.
Is an explanatory diagram showing the free width of the last item C4. Bias B is a value used when moving each item,
It is given by the following equation. Bias B = − (empty width at lower end of last item) = − {(y coordinate of typesetting start point ST4) − (item width L
y)}

【0061】ステップS43では、1組の組版単位内の
すべての項目を、上記のバイアスB分だけそれぞれ移動
させる。こうして図13(b)に示すような配置調整が
行なわれる。
In step S43, all the items in one set unit are moved by the above-mentioned bias B. Thus, the arrangement adjustment as shown in FIG. 13B is performed.

【0062】エリア調整のモードが「拡大」の場合に
は、ステップS44において、項目の幅を累積した累積
値Rを求める。図21は、ステップS44の処理を示す
説明図である。項目C2,C3のように項目接続してい
る項目がある場合は、その項目幅の最大値Ly3が接続
した項目の項目幅として利用される。
If the mode of the area adjustment is "enlargement", a cumulative value R obtained by accumulating the widths of the items is obtained in step S44. FIG. 21 is an explanatory diagram illustrating the process of step S44. If there is an item connected as in the items C2 and C3, the maximum value Ly3 of the item width is used as the item width of the connected item.

【0063】ステップS45では、割付矩形LR1の幅
LLyから項目幅の累積値Rを引くことによって、空き
幅を算出する。ステップS46では、この空き幅を(独
立項目数N−1)で割ることにより、バイアスBを求め
る。ここで、「独立項目数」とは、項目接続されている
項目を1つの項目と見なした時の項目数であり、図20
の例ではN=3である。
In step S45, the empty width is calculated by subtracting the cumulative value R of the item width from the width LLy of the layout rectangle LR1. In step S46, the bias B is obtained by dividing this empty width by (the number of independent items N-1). Here, the “number of independent items” is the number of items when items connected to each other are regarded as one item.
In the example, N = 3.

【0064】ステップS47では、処理対象の項目の項
目接続のモードが判別される。項目接続のモードが「あ
り」の場合には、その直前の項目の位置調整に従うの
で、その項目についてはエリア調整による移動を行なわ
ずにステップS50に移行する。一方、項目接続が「な
し」の場合には、ステップS48において次に示す移動
量だけy方向に移動させる。 移動量=B×(N−i) ここで、Bはバイアス、Nは独立項目数、iは項目接続
を考慮して移動量を定めるためのパラメータである。独
立項目の順序を示すパラメータiは2〜(N−1)の間
の値が取られる。すなわち、ステップS48における移
動は、1組の組版単位の最初から2番目ないし最後から
2番目の独立項目について実行される。
In step S47, the item connection mode of the item to be processed is determined. If the item connection mode is “Yes”, the position adjustment of the immediately preceding item is performed, so that the process moves to step S50 without moving the item by area adjustment. On the other hand, if the item connection is "none", the object is moved in the y direction by the following movement amount in step S48. Moving amount = B × (N−i) Here, B is a bias, N is the number of independent items, and i is a parameter for determining the moving amount in consideration of the item connection. The parameter i indicating the order of the independent items takes a value between 2 and (N-1). In other words, the movement in step S48 is executed for the first to second or last to second independent items of one set of unit.

【0065】ステップS49では、パラメータiを1つ
カウントアップして次の項目を選択し、ステップS50
に移行する。ステップS50において、最後から2番目
の独立項目でなければステップS47に戻り、ステップ
S47〜S49の処理が繰り返される。こうして、図1
3(a)に示す配置調整が実行される。
In step S49, the parameter i is counted up by one, and the next item is selected.
Move to If it is determined in step S50 that the item is not the second independent item from the end, the process returns to step S47, and the processes in steps S47 to S49 are repeated. Thus, FIG.
The arrangement adjustment shown in FIG.

【0066】以上のように、この実施例では、仮想的な
割付矩形を指定するとともに、割付矩形を基準として各
組版単位内の各項目の配置を調整するので、各割付矩形
の形状に合わせて各項目をバランスよく配置することが
できるという利点がある。
As described above, in this embodiment, a virtual layout rectangle is specified, and the arrangement of each item in each composition unit is adjusted based on the layout rectangle. There is an advantage that each item can be arranged in a well-balanced manner.

【0067】なお、この発明は上記実施例に限られるも
のではなく、その要旨を逸脱しない範囲において種々の
態様において実施することが可能であり、例えば次のよ
うな変形も可能である。
The present invention is not limited to the above-described embodiment, but can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.

【0068】(1)上記実施例では、主に横組の場合に
ついて説明したが、縦組の場合にも上記実施例を適用す
ることができる。すなわち、縦組の場合には、上記説明
のx方向、y方向をy方向、x方向とそれぞれ読み変え
ればよい。
(1) In the above embodiment, the case of the horizontal composition has been mainly described, but the above embodiment can also be applied to the case of the vertical composition. That is, in the case of the vertical composition, the x direction and the y direction described above may be read as the y direction and the x direction, respectively.

【0069】[0069]

【発明の効果】以上説明したように、本発明の組版方法
によれば、各組版位置のそれぞれにおける仮想的な割付
矩形を基準とし、座標データと配置情報とに基づいて文
字群の配置を決定するので、作業者が各組版位置におい
て各文字群の配置を調整する必要がない。また、文字情
報に基づいて各文字群の書体と文字の大きさを決定する
ので、作業者が改めでこれらの文字特性を指定する必要
がない。従って、類似のパターンで複数の文字群を配置
する組版作業を容易に行なうことができるという効果が
ある。
As described above, according to the typesetting method of the present invention, the arrangement of the character groups is determined based on the coordinate data and the arrangement information with reference to the virtual layout rectangle at each of the forging positions. Since the determination is made, the operator does not need to adjust the arrangement of each character group at each typesetting position. Further, since the typeface and the size of each character group are determined based on the character information, it is not necessary for the operator to newly specify these character characteristics. Therefore, there is an effect that a typesetting operation of arranging a plurality of character groups in a similar pattern can be easily performed.

【0070】また、配置情報の少なくとも一部を座標デ
ータに優先して適用すれば、組版位置によって割付矩形
の形状が違う場合にも、配置情報に従って文字群をバラ
ンス良く配置することができるという効果がある。
If at least a part of the arrangement information is applied prior to the coordinate data, even if the layout rectangle has a different shape depending on the typesetting position, the character groups can be arranged in a well-balanced manner according to the arrangement information. There is.

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

【図1】この発明の一実施例を適用して組版を行なう電
子組版装置の構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of an electronic typesetting apparatus that performs typesetting by applying an embodiment of the present invention.

【図2】1頁の画面の例を示す説明図。FIG. 2 is an explanatory diagram showing an example of a screen of one page.

【図3】割付矩形を基準として組版された複数の文字群
を示す説明図。
FIG. 3 is an explanatory diagram showing a plurality of character groups formatted based on an allocation rectangle.

【図4】組版を実行する処理手順を示すフローチャー
ト。
FIG. 4 is a flowchart showing a processing procedure for executing typesetting.

【図5】組版を実行する処理手順を示すフローチャー
ト。
FIG. 5 is a flowchart showing a processing procedure for executing typesetting.

【図6】マスタファイルの構成を示す説明図。FIG. 6 is an explanatory diagram showing a configuration of a master file.

【図7】採字データDLの構成を示す説明図。FIG. 7 is an explanatory diagram showing a configuration of the lettering data DL.

【図8】割付矩形を表わす割付矩形データを示す説明
図。
FIG. 8 is an explanatory diagram showing allocation rectangle data representing an allocation rectangle.

【図9】組版配置情報LIを示す説明図。FIG. 9 is an explanatory diagram showing typesetting arrangement information LI.

【図10】項目間隔の調整の仕方を示す説明図。FIG. 10 is an explanatory diagram showing how to adjust an item interval.

【図11】一行の長さの決定方法と「揃え」のモードを
示す説明図。
FIG. 11 is an explanatory diagram showing a method for determining the length of one line and a mode of “alignment”.

【図12】一行の長さと字体の調整との関係を示す説明
図。
FIG. 12 is an explanatory diagram showing the relationship between the length of one line and the adjustment of the font.

【図13】エリア調整の3つのモードを示す説明図。FIG. 13 is an explanatory diagram showing three modes of area adjustment.

【図14】組版配置済データを示す説明図。FIG. 14 is an explanatory diagram showing typesetting arranged data.

【図15】ステップS10における配置調整処理の詳細
手順を示すフローチャート。
FIG. 15 is a flowchart showing a detailed procedure of an arrangement adjustment process in step S10.

【図16】ステップS10における配置調整処理の詳細
手順を示すフローチャート。
FIG. 16 is a flowchart showing a detailed procedure of an arrangement adjustment process in step S10.

【図17】ステップS10における配置調整処理の詳細
手順を示すフローチャート。
FIG. 17 is a flowchart showing a detailed procedure of an arrangement adjustment process in step S10.

【図18】ステップS10における配置調整処理の詳細
手順を示すフローチャート。
FIG. 18 is a flowchart showing a detailed procedure of an arrangement adjustment process in step S10.

【図19】y方向変化幅を示す説明図。FIG. 19 is an explanatory diagram showing a y-direction change width.

【図20】最後の項目の空き幅を示す説明図。FIG. 20 is an explanatory diagram showing a free space of the last item.

【図21】ステップS44の処理内容を示す説明図。FIG. 21 is an explanatory diagram showing the processing content of step S44.

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

10 CPU 12 バスライン 14 RAM 16 ROM 18 フレームメモリ 30 キーボード 32 マウス 34 デジタイザ 36 CRT 38 磁気ディスク 40 文字位置決定手段 C1〜C4 項目 CR 外接矩形 LI 組版配置情報 LR1〜LR8 割付矩形 PE1〜PE8 画像要素 RP 配置基準点 ST1〜ST4 組版開始点 Reference Signs List 10 CPU 12 bus line 14 RAM 16 ROM 18 frame memory 30 keyboard 32 mouse 34 digitizer 36 CRT 38 magnetic disk 40 character position determining means C1 to C4 Item CR circumscribed rectangle LI Typesetting arrangement information LR1 to LR8 Assigned rectangle PE1 to PE8 Image element RP Positioning reference point ST1 to ST4 Typesetting start point

フロントページの続き (72)発明者 大矢 博文 東京都豊島区東池袋5丁目38番7号 大 日本スクリーン製造株式会社 東京支店 内 (72)発明者 三浦 一成 大阪市北区天満橋1丁目5番9号 大日 本スクリーン製造株式会社 大阪支店内 (56)参考文献 特開 昭62−89057(JP,A) 特開 平4−22632(JP,A) 特開 平5−286107(JP,A) (58)調査した分野(Int.Cl.6,DB名) G03F 1/00 - 1/06(72) Inventor Hirofumi Oya 5-38-7 Higashiikebukuro, Toshima-ku, Tokyo Dainippon Screen Mfg. Co., Ltd. Tokyo Branch (72) Inventor Kazunari Miura 1-5-9 Tenmabashi, Kita-ku, Osaka-shi Dainichihon Screen Manufacturing Co., Ltd. Osaka Branch (56) References JP-A-62-89057 (JP, A) JP-A-4-22632 (JP, A) JP-A-5-286107 (JP, A) (58) ) Surveyed field (Int.Cl. 6 , DB name) G03F 1/00-1/06

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 一定数の文字群で構成される組版単位が
1頁内に繰り返し配置されるように電子組版装置によっ
て組版を行なう組版方法であって、 (a)1組の組版単位に含まれる文字群の個数を決定す
るとともに、 前記組版単位内の各文字群に関し、前記組版単位の所定
の原点を基準とする各文字群の所定の参照点の座標を示
す座標データと、各文字群の書体と文字の大きさとを示
す文字情報と、を含むマスタデータを準備する工程と、 (b)1頁の画面内の複数の組版位置において、前記組
版単位をそれぞれ割付けるための仮想的な割付矩形の形
状を指定する工程と、 (c)前記仮想的な割付矩形を基準として前記1組の組
版単位内の各文字群の配置を調整する内容を示す配置情
報を準備する工程と、 (d)各組版位置において前記組版単位内の複数の文字
群として配置するための複数の文字を、各文字群と対応
させつつ入力する工程と、 (e)前記複数の組版位置のそれぞれにおいて、前記工
程(d)で入力された文字で構成される各文字群の配置
を、前記仮想的な割付矩形を基準とし前記座標データと
配置情報とに基づいて前記電子組版装置が決定するとと
もに、前記文字情報に基づいて各文字群の書体と文字の
大きさを前記電子組版装置が決定する工程と、 を備えることを特徴とする組版方法。
1. A composition unit composed of a fixed number of character groups is
A typesetting method for performing typesetting by an electronic typesetting device so as to be repeatedly arranged in one page , comprising: (a) determining the number of character groups included in one set of typesetting units; Master data including, for a group, coordinate data indicating coordinates of a predetermined reference point of each character group based on a predetermined origin of the typesetting unit, and character information indicating a typeface and a character size of each character group. (B) designating a virtual layout rectangle shape for allocating each of the forme units at a plurality of forme positions in the screen of one page; and (c) the virtual layout rectangle. Preparing arrangement information indicating the contents of adjusting the arrangement of each character group in the one set of unit on the basis of the layout rectangle; and (d) as a plurality of character groups in the unit in each forme position. Multiple to place (E) inputting a character in correspondence with each character group; and (e) arranging, at each of the plurality of typesetting positions, an arrangement of each character group constituted by the character input in the step (d), The electronic typesetting device determines the typesetting device based on the coordinate data and the arrangement information based on a typical layout rectangle, and determines the typeface and character size of each character group based on the character information. A typesetting method, comprising the steps of:
【請求項2】 請求項1記載の組版方法であって、 工程(e)は、配置情報の少なくとも一部を座標データ
に優先して適用することによって各文字群の配置を決定
する工程、を備える組版方法。
2. The typesetting method according to claim 1, wherein the step (e) includes a step of determining the arrangement of each character group by applying at least a part of the arrangement information prior to the coordinate data. Typesetting method to prepare.
JP13615292A 1992-04-28 1992-04-28 A typesetting method that adjusts the arrangement of character groups according to a virtual layout rectangle Expired - Fee Related JP2802855B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13615292A JP2802855B2 (en) 1992-04-28 1992-04-28 A typesetting method that adjusts the arrangement of character groups according to a virtual layout rectangle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13615292A JP2802855B2 (en) 1992-04-28 1992-04-28 A typesetting method that adjusts the arrangement of character groups according to a virtual layout rectangle

Publications (2)

Publication Number Publication Date
JPH05307255A JPH05307255A (en) 1993-11-19
JP2802855B2 true JP2802855B2 (en) 1998-09-24

Family

ID=15168533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13615292A Expired - Fee Related JP2802855B2 (en) 1992-04-28 1992-04-28 A typesetting method that adjusts the arrangement of character groups according to a virtual layout rectangle

Country Status (1)

Country Link
JP (1) JP2802855B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6954291B2 (en) * 2001-09-04 2005-10-11 Esko-Graphics A/S Method, apparatus, and computer program for reducing plate material waste in flexography plate making
JP6083453B2 (en) * 2014-07-11 2017-02-22 キヤノンマーケティングジャパン株式会社 Information processing apparatus, processing method thereof, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6289057A (en) * 1985-10-15 1987-04-23 Dainippon Printing Co Ltd Method of laying out graphic in printing system
JP2879937B2 (en) * 1990-05-18 1999-04-05 大日本印刷株式会社 Score editing system
JPH05286107A (en) * 1992-04-09 1993-11-02 Shinano Mainichi Shinbun Kk Typesetting system

Also Published As

Publication number Publication date
JPH05307255A (en) 1993-11-19

Similar Documents

Publication Publication Date Title
EP0117406B1 (en) Automatically balancing and vertically justifying text and/or graphics
US5313573A (en) Apparatus for forming character patterns with line segments
WO1998029831A1 (en) Method and system for improving legibility of text and graphic objects laid over continuous-tone graphics
US5625772A (en) Gray-scale font generating apparatus utilizing a blend ratio
JP3527615B2 (en) Layout typesetting method
JP2802855B2 (en) A typesetting method that adjusts the arrangement of character groups according to a virtual layout rectangle
JP2868666B2 (en) Electronic typesetting device for typesetting along any line
JP4275808B2 (en) Character assignment processing device
JPH07282074A (en) Index character string output device for two-dimensional graphic
JPH0470663B2 (en)
JPH07311790A (en) Graphic correcting device for catalog or the like
JPH05165455A (en) Character display processing method
JP2618017B2 (en) Layout simulation device and layout device
JP3235404B2 (en) Layout correction device
JPH11185046A (en) Graphic editor, layout processing method and storage medium
JP2889760B2 (en) An electronic typesetting device that combines characters and figures
JPH06289588A (en) Layout design device
JPH0439711B2 (en)
JP2969707B2 (en) Image editing device
JPH0643850A (en) System for automatically calculating/arranging size/ position of plural titles
JPH03291748A (en) Table data preparation control method and data processor
JPH02132492A (en) Character pattern generating system
JP2001076163A (en) Method and device for arranging graphic
JPH06250632A (en) Character editing device
JPH07105212A (en) Layout design device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees