JPH0877331A - Automatic page up device - Google Patents

Automatic page up device

Info

Publication number
JPH0877331A
JPH0877331A JP6213072A JP21307294A JPH0877331A JP H0877331 A JPH0877331 A JP H0877331A JP 6213072 A JP6213072 A JP 6213072A JP 21307294 A JP21307294 A JP 21307294A JP H0877331 A JPH0877331 A JP H0877331A
Authority
JP
Japan
Prior art keywords
layout
script
instruction
scripts
page
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
JP6213072A
Other languages
Japanese (ja)
Inventor
Toshifumi Kawamata
俊史 川又
Fumio Hirabayashi
文雄 平林
Shinichiro Oda
慎一郎 小田
Atsushi Motohashi
淳 本橋
Masaru Shimozaki
賢 下崎
Takahito Imai
崇人 今井
Toshiaki Mori
俊明 森
Daisuke Sashie
大介 指江
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.)
Toppan Inc
Original Assignee
Toppan Printing 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 Toppan Printing Co Ltd filed Critical Toppan Printing Co Ltd
Priority to JP6213072A priority Critical patent/JPH0877331A/en
Publication of JPH0877331A publication Critical patent/JPH0877331A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】 【目的】 正確なページレイアウト処理を自動的に行う
ことができる自動ページアップ装置を提供する。 【構成】 機能的には、レイアウト手段11、命令記憶
部12、命令処理部13、表示手段14、指示入力手段
15とからなる。指示入力手段15は、被操作部を有
し、操作者の操作内容に応じた操作データをレイアウト
手段11へ供給する。レイアウト手段11は、上記操作
データ、および命令処理部13から供給される指令情報
に表される機能を実行することによりレイアウト処理お
よびパラメータ通知処理を行うとともに、レイアウト処
理が行われているページを表示手段14により表示す
る。命令処理部13は、命令記憶部12に記憶された一
連のスクリプトを、取得したパラメータに基づいて順に
実行する。
(57) [Abstract] [Purpose] To provide an automatic page-up device capable of automatically performing accurate page layout processing. [Structure] Functionally, it comprises a layout unit 11, a command storage unit 12, a command processing unit 13, a display unit 14, and an instruction input unit 15. The instruction input unit 15 has an operated part and supplies operation data corresponding to the operation content of the operator to the layout unit 11. The layout unit 11 performs the layout process and the parameter notification process by executing the function represented by the operation data and the command information supplied from the command processing unit 13, and displays the page on which the layout process is performed. It is displayed by the means 14. The instruction processing unit 13 sequentially executes the series of scripts stored in the instruction storage unit 12 based on the acquired parameters.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像または文字等を表
す被レイアウトデータをページ上に配置してページレイ
アウトを自動的に作成する自動ページアップ装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic page-up device for automatically laying out layout data representing images, characters, etc. on a page to create a page layout.

【0002】[0002]

【従来の技術】従来より、コンピュータ上でページレイ
アウトを作成(ページアップ)するシステムが知られて
いる。この種のシステムは、通常、図10に示すよう
に、CPU1,ROM2,RAM3および各種インタフ
ェースを備えたコンピュータ4、ディスプレイ等の表示
装置5、ハードディスク等の記憶装置6、キーボードや
マウス等の指示入力装置7等からなる。
2. Description of the Related Art Conventionally, a system for creating a page layout (page up) on a computer has been known. As shown in FIG. 10, a system of this type usually includes a computer 4 having a CPU 1, a ROM 2, a RAM 3 and various interfaces, a display device 5 such as a display, a storage device 6 such as a hard disk, an instruction input such as a keyboard and a mouse. The device 7 and the like.

【0003】ROM2あるいは記憶装置6には、レイア
ウト処理を行うためのいわゆるDTP(Desk Top Publi
shing )ソフトウェアが記憶されており、かつ、記憶装
置6には、レイアウトすべき画像データまたは文字デー
タが被レイアウトデータとして既に記憶されている。な
お、ここでいう画像データは、ビットマップデータであ
り、ベクトル形式で表される図形データをビットマップ
展開して得られるデータをも含む。
The ROM 2 or the storage device 6 has a so-called DTP (Desk Top Publi) for performing layout processing.
shing) software is stored, and image data or character data to be laid out is already stored in the storage device 6 as layout target data. The image data mentioned here is bitmap data, and also includes data obtained by expanding bitmap data of graphic data represented in vector format.

【0004】この被レイアウトデータのうち、画像デー
タは、例えば、写真等をイメージスキャナで走査して得
られたデータを、ROM2あるいは記憶装置6に予め記
憶されている所望の画像処理ソフトウェアを用いてトリ
ミングして作成される。あるいは、例えば、所望のCA
Dソフトウェアおよびデータ形式変換ツールを用いて作
成される。また、文字データは、例えば、所望のワード
プロセッサソフトウェアを用いて作成される。もちろ
ん、他のシステムにて作成されたデータをモデムやフロ
ッピーディスク等を介して読み出し、被レイアウトデー
タとして、記憶装置6に記憶するようにしてもよい。
Of the data to be laid out, the image data is, for example, data obtained by scanning a photograph or the like with an image scanner, using desired image processing software stored in the ROM 2 or the storage device 6 in advance. Created by trimming. Alternatively, for example, the desired CA
Created using D software and data format conversion tools. The character data is created using, for example, desired word processor software. Of course, data created by another system may be read out via a modem, a floppy disk or the like and stored in the storage device 6 as layout target data.

【0005】このような構成において、ページレイアウ
トを作成する処理の一例について、図11を参照して説
明する。まず、ステップSA1において、操作者は、得
ようとするページレイアウトを机上で作成する。この
際、レイアウトされるのは、実際の被レイアウトデータ
ではなく、被レイアウトデータの表示領域を表す枠(以
後、表示枠と称す)である。このように、机上でページ
レイアウトを仮決めすることにより、各表示枠の端点の
仮の座標値(すなわち、大きさと位置)等が得られる。
ここで得られる座標値は、例えば、ポイント単位の厳密
なものである。
An example of processing for creating a page layout in such a configuration will be described with reference to FIG. First, in step SA1, the operator creates a page layout to be obtained on the desk. At this time, what is laid out is not the actual layout target data but a frame (hereinafter referred to as a display frame) representing a display area of the layout target data. In this way, by temporarily determining the page layout on the desk, provisional coordinate values (that is, size and position) of the end points of each display frame can be obtained.
The coordinate values obtained here are, for example, strict ones in units of points.

【0006】次に、キーボードから所定の指示が入力さ
れると、コンピュータ4においてDTPソフトウェアが
実行され、処理はステップSA2へ進む。ステップSA
2では、コンピュータ4は、まず、レイアウト処理を行
うページを表示装置5に表示する。ここでは、新規にペ
ージレイアウトを作成するものとし、表示装置5には、
被レイアウトデータが配置されていないページが表示さ
るものとする。
Next, when a predetermined instruction is input from the keyboard, the DTP software is executed in the computer 4, and the process proceeds to step SA2. Step SA
In 2, the computer 4 first displays the page on which the layout process is performed on the display device 5. Here, it is assumed that a new page layout is created, and the display device 5 displays
It is assumed that a page on which layout data is not arranged is displayed.

【0007】次に、ステップSA3では、指示入力装置
7を介して入力される操作者の指示に応じてレイアウト
処理が行われる。具体的には、机上での仮決めにより得
られた仮の座標値を満たすように、操作者が、指示入力
手段7を介して表示枠を作成するための指示をコンピュ
ータ4へ入力する。これにより表示枠が作成され、表示
装置5に表示される。そして、操作者は、作成した表示
枠に、被レイアウトデータを、必要に応じて回転・変倍
して割り付ける。これにより、表示装置5に表示された
表示枠内に、当該表示枠に割り付けられた被レイアウト
データに表される画像・文字が表示される。こうした処
理を同一ページ内の全ての表示枠に対して行う。なお、
このステップでは、一つの表示枠を作成する度に、その
表示枠に対して被レイアウトデータを対応付けるように
してもよいし、全ての表示枠を作成後に、各表示枠に対
して被レイアウトデータを割り付けるようにしてもよ
い。
Next, in step SA3, a layout process is performed according to the operator's instruction input through the instruction input device 7. Specifically, the operator inputs an instruction for creating a display frame to the computer 4 via the instruction input means 7 so as to satisfy the temporary coordinate value obtained by the temporary determination on the desk. As a result, a display frame is created and displayed on the display device 5. Then, the operator rotates / scales and allocates the layout target data to the created display frame. As a result, in the display frame displayed on the display device 5, the image / character represented by the layout target data allocated to the display frame is displayed. This processing is performed for all display frames on the same page. In addition,
In this step, layout data may be associated with each display frame every time one display frame is created, or layout data may be created for each display frame after all display frames are created. You may make it allocate.

【0008】次に、ステップSA4において、コンピュ
ータ4は、指示入力装置7を介して所定の指示が供給さ
れると、作成したページレイアウトを記憶装置6に保存
する。そして、処理が終了する。記憶装置6に保存され
たページレイアウトは、後に、写植機等で利用可能なデ
ータ形式に変換され、印刷工程において使用される。な
お、ステップSA1での机上でのレイアウト処理を行わ
ずに、ステップS2から処理を始め、試行錯誤でページ
レイアウトを作成するようにしてもよい。
Next, in step SA4, when a predetermined instruction is supplied via the instruction input device 7, the computer 4 saves the created page layout in the storage device 6. Then, the process ends. The page layout stored in the storage device 6 is later converted into a data format that can be used by a phototypesetting machine or the like and used in a printing process. The page layout may be created by trial and error by starting the process from step S2 without performing the layout process on the desk in step SA1.

【0009】[0009]

【発明が解決しようとする課題】上述したように、従来
のページアップ処理においては、予め机上レイアウトを
行ったとしても、表示枠を実際に作成するのは、表示装
置5を視認する操作者である。その上、後の工程で、印
刷物の版として用いることができるように表示枠をポイ
ント単位で正確に作成する必要があるため、操作者は、
カーソルの座標を視認しつつ、指示入力装置7を慎重に
操作して表示枠を作成する必要がある。さらに、表示枠
の座標を間違えてレイアウト処理を行った場合には、そ
の表示枠はもちろん、他の表示枠の座標をも変更しなけ
ればならないこともある。このように、慎重かつ繁雑な
作業が必要になるとともに、ページアップ処理を行って
いる間、少なくとも一人の操作者が必要になるという欠
点があった。
As described above, in the conventional page-up process, the operator who visually recognizes the display device 5 actually creates the display frame even if the desk layout is performed in advance. is there. In addition, in a later step, the display frame needs to be accurately created point by point so that it can be used as a plate for printed matter.
It is necessary to carefully operate the instruction input device 7 to create the display frame while visually checking the coordinates of the cursor. Further, when the layout process is performed with the display frame having the wrong coordinates, it may be necessary to change not only the display frame but also the coordinates of other display frames. As described above, there are drawbacks that a careful and complicated work is required, and at least one operator is required during the page-up process.

【0010】また、文字データを表示枠に割り付ける場
合には、文字データが所望の形式となるよう(例えば、
タブ位置や価格の「¥」,「,」等が揃うよう)、操作
者は、表示装置5を参照しつつ、文字のポイント数や字
間,行間等を調節する。この処理は、予め設定されたル
ールに基づいて行われるが、例えば、文字データが表示
枠内に納まっているか否かの判断は、表示装置5を参照
する操作者により為される。また、ルールに基づいた補
正処理も、ルールを把握した操作者により行われる。
Further, when allocating the character data to the display frame, the character data should be in a desired format (for example,
The operator adjusts the number of characters, the space between characters, the space between characters, etc. while referring to the display device 5 so that the tab positions and the prices such as “¥” and “,” are aligned. This process is performed based on a preset rule. For example, the operator who refers to the display device 5 determines whether or not the character data is contained in the display frame. The correction process based on the rule is also performed by the operator who understands the rule.

【0011】さらに、画像データの回転・変倍や、平網
をかけたりする処理も、操作者が表示装置5を参照しつ
つ指示入力装置7を操作することにより行われる。この
ように、従来、ページレイアウト処理全体をバッチ処理
化して自動的に行うことができず、省力化および作業効
率の向上を実現することが困難であった。本発明は、上
述した事情に鑑みて為されたものであり、正確なページ
レイアウト処理を自動的に行うことができる自動ページ
アップ装置を提供することを目的とする。
Further, the processing of rotating / magnifying the image data and applying a halftone screen is also performed by the operator operating the instruction input device 7 while referring to the display device 5. As described above, conventionally, the entire page layout process cannot be batch-processed and automatically performed, and it has been difficult to realize labor saving and work efficiency improvement. The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an automatic page-up device capable of automatically performing accurate page layout processing.

【0012】[0012]

【課題を解決するための手段】請求項1記載の自動ペー
ジアップ装置は、画像または文字等を表す被レイアウト
データ、および該被レイアウトデータをページに配置す
るための表示枠に対してレイアウト命令に応じたレイア
ウト処理を施してページレイアウトを作成するととも
に、レイアウト関数に要求されるパラメータを返すレイ
アウト手段と、前記レイアウト命令に対応する命令スク
リプトと、前記レイアウト関数に対応する関数スクリプ
トと、前記命令スクリプトおよび前記関数スクリプトの
実行順序、および前記命令スクリプトおよび前記関数ス
クリプトの引数を前記レイアウト手段から返されるパラ
メータに基づいて設定する制御スクリプトとからなる一
連のスクリプトを記憶した命令記憶部と、前記命令記憶
部から前記一連のスクリプトを読み出し、該一連のスク
リプトを実行することにより、前記レイアウト命令およ
び前記レイアウト関数を前記レイアウト手段へ供給する
とともに、前記レイアウト関数に対応して前記レイアウ
ト手段から返されるパラメータに基づいて前記制御スク
リプトを実行する命令処理部とを具備し、前記命令記憶
部に記憶された前記一連のスクリプトは、予め設定され
たルールを満たしてページレイアウトが作成されるよう
記述されることを特徴としている。
According to a first aspect of the present invention, there is provided an automatic page-up apparatus which issues layout instructions to layout data representing images or characters and a display frame for arranging the layout data on a page. A layout unit that performs a layout process according to the layout function and returns parameters required for the layout function, an instruction script corresponding to the layout instruction, a function script corresponding to the layout function, and the instruction script. And an execution order of the function scripts, and a command storage unit that stores a series of scripts including a command script and a control script that sets an argument of the function script based on a parameter returned from the layout unit; From the above series The layout script and the layout function are supplied to the layout means by reading out the script and executing the series of scripts, and the control script is based on the parameters returned from the layout means in correspondence with the layout function. And a series of scripts stored in the command storage unit are described such that a page layout is created by satisfying a preset rule.

【0013】また、請求項2記載の自動ページアップ装
置は、請求項1記載の自動ページアップ装置において、
前記制御スクリプトには前記レイアウト手段から返され
るパラメータに基づいて新たなスクリプトを生成して前
記一連のスクリプトに付加するための増殖スクリプトが
含まれ、前記命令処理部は前記一連のスクリプトを順次
実行するとともに、実行する制御スクリプトが前記増殖
スクリプトであれば、該増殖スクリプトに応じた新たな
スクリプトを生成して前記一連のスクリプトに付加する
ことを特徴としている。
The automatic page-up apparatus according to claim 2 is the automatic page-up apparatus according to claim 1,
The control script includes a multiplication script for generating a new script based on the parameters returned from the layout means and adding it to the series of scripts, and the instruction processing unit sequentially executes the series of scripts. At the same time, if the control script to be executed is the proliferation script, a new script corresponding to the proliferation script is generated and added to the series of scripts.

【0014】さらに、請求項3記載の自動ページアップ
装置は、請求項1または2記載の自動ページアップ装置
において、前記関数スクリプトには被レイアウトデータ
が対応する表示枠から溢れているか否かを調べるための
スクリプトが含まれており、前記一連のスクリプトは、
前記被レイアウトデータが対応する表示枠から溢れてい
るか否かを調べるためのスクリプトを用いて前記被レイ
アウトデータが対応する表示枠から溢れないよう記述さ
れることを特徴としている。
Furthermore, the automatic page-up device according to a third aspect of the present invention is the automatic page-up device according to the first or second aspect, in which it is checked whether or not the layout data is overflowing from the corresponding display frame in the function script. Script for
It is characterized in that the layout data is described so as not to overflow the corresponding display frame by using a script for checking whether or not the layout data overflows the corresponding display frame.

【0015】また、請求項4記載の自動ページアップ装
置は、請求項1ないし3いずれかに記載の自動ページア
ップ装置において、前記命令処理部は、スクリプトを実
行することにより発生したエラー情報を前記命令記憶部
に記憶させ、前記一連のスクリプトの実行をエラーによ
って中断することがないようにしたことを特徴としてい
る。
Further, the automatic page-up apparatus according to a fourth aspect is the automatic page-up apparatus according to any one of the first to third aspects, wherein the instruction processing unit outputs error information generated by executing a script. It is characterized in that it is stored in the instruction storage unit so that the execution of the series of scripts is not interrupted by an error.

【0016】[0016]

【作用】請求項1記載の自動ページアップ装置によれ
ば、命令処理部は、命令記憶部から予め設定されたルー
ルを満たしてページレイアウトが作成されるよう記述さ
れた一連のスクリプトを読み出し、該一連のスクリプト
を実行することにより、レイアウト命令およびレイアウ
ト関数をレイアウト手段へ供給する。レイアウト手段
は、画像または文字等を表す被レイアウトデータ、およ
び該被レイアウトデータをページに配置するための表示
枠に対して前記レイアウト命令に応じたレイアウト処理
を施してページレイアウトを作成するとともに、前記レ
イアウト関数に要求されるパラメータを返す。また、命
令処理部は、前記レイアウト関数に対応して前記レイア
ウト手段から返されるパラメータに基づいて、前記レイ
アウト命令に対応した命令スクリプトおよび前記レイア
ウト関数に対応した関数スクリプトの実行順序、および
前記命令スクリプトおよび前記関数スクリプトの引数を
前記レイアウト手段から返されるパラメータに基づいて
設定する制御スクリプトを実行する。このように、パラ
メータに基づいた処理が行われるため、一連のスクリプ
トに十分な情報を記述しておけば、正確なページレイア
ウト処理が自動的に行われる。
According to the automatic page-up device of the present invention, the command processing unit reads from the command storage unit a series of scripts described so as to create a page layout satisfying a preset rule, Layout commands and layout functions are provided to the layout means by executing a series of scripts. The layout means performs layout processing according to the layout command on layout data representing images or characters, and a display frame for arranging the layout data on a page to create a page layout, and Returns the parameters required by the layout function. Further, the instruction processing unit, based on a parameter returned from the layout means in correspondence with the layout function, an execution order of an instruction script corresponding to the layout instruction and a function script corresponding to the layout function, and the instruction script. And executing a control script that sets the arguments of the function script based on the parameters returned from the layout means. As described above, since the processing is performed based on the parameters, if sufficient information is described in a series of scripts, accurate page layout processing is automatically performed.

【0017】また、請求項2記載の自動ページアップ装
置によれば、前記命令処理部は前記一連のスクリプトを
順次実行するとともに、実行する制御スクリプトが前記
増殖スクリプトであれば、該増殖スクリプトに応じた新
たなスクリプトを生成して前記一連のスクリプトに付加
する。さらに、請求項3記載の自動ページアップ装置に
よれば、命令処理部は、被レイアウトデータが対応する
表示枠から溢れているか否かを調べるためのスクリプト
を実行し、その実行結果に基づいて、被レイアウトデー
タが対応する表示枠から溢れないよう作動する。また、
請求項4記載の自動ページアップ装置によれば、前記命
令処理部は、一連のスクリプトの実行をエラーによって
中断することがない。
According to another aspect of the automatic page-up device of the present invention, the instruction processing section sequentially executes the series of scripts, and if the control script to be executed is the multiplication script, the instruction script corresponds to the multiplication script. A new script is generated and added to the series of scripts. Further, according to the automatic page-up device of claim 3, the instruction processing unit executes a script for checking whether or not the layout target data overflows from the corresponding display frame, and based on the execution result, Operates so that the layout data does not overflow from the corresponding display frame. Also,
According to the automatic page-up device of the fourth aspect, the instruction processing unit does not interrupt the execution of the series of scripts due to an error.

【0018】[0018]

【実施例】以下、図面を参照して、本発明の一実施例に
ついて説明する。図1は本発明の一実施例による自動ペ
ージアップ装置の機能構成を示すブロック図であり、こ
の図に示す自動ページアップ装置は、予め設定されたル
ールに基づいて、ページレイアウトを作成(ページアッ
プ)するものである。図1において、11はレイアウト
手段、12は命令記憶部、13は命令処理部、14は表
示手段、15は指示入力手段である。指示入力手段15
は、被操作部を有し、操作者の操作内容に応じた操作デ
ータをレイアウト手段11へ供給する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a functional configuration of an automatic page-up apparatus according to an embodiment of the present invention. The automatic page-up apparatus shown in this figure creates a page layout based on preset rules (page-up). ). In FIG. 1, 11 is a layout unit, 12 is a command storage unit, 13 is a command processing unit, 14 is a display unit, and 15 is an instruction input unit. Instruction input means 15
Has an operated part and supplies operation data corresponding to the operation content of the operator to the layout means 11.

【0019】レイアウト手段11は、指示入力手段15
から供給される操作データ、および命令処理部13から
供給される指令情報に表される機能を実行することによ
りレイアウト処理およびパラメータ通知処理を行う。上
記レイアウト処理は、所望のページに、画像データまた
は文字データからなる被レイアウトデータを配置する処
理であり、所望の大きさの表示枠を作成してページ上の
所望の位置に配置するとともに、被レイアウトデータを
回転・変倍等して表示枠に割り付ける作業全てを意味す
る。また、パラメータ通知処理とは、命令処理部13か
ら供給される指令情報が、レイアウト処理を行っている
ページの状況を示すパラメータを得るためのレイアウト
関数(詳しくは後述する)である場合に、この関数に要
求されるパラメータを命令処理部13へ通知する処理で
ある。
The layout means 11 has an instruction input means 15
The layout process and the parameter notification process are performed by executing the function represented by the operation data supplied from the command processing unit 13 and the command information supplied from the command processing unit 13. The layout process is a process of arranging layout target data consisting of image data or character data on a desired page, creating a display frame of a desired size and arranging the display frame at a desired position on the page. This means all the operations that rotate and scale layout data and allocate it to the display frame. Further, the parameter notification process is executed when the command information supplied from the command processing unit 13 is a layout function (details will be described later) for obtaining a parameter indicating the status of the page on which the layout process is being performed. This is a process of notifying the parameter required for the function to the instruction processing unit 13.

【0020】なお、レイアウト手段11が行うレイアウ
ト処理としては、表示枠の生成・削除・選択、文字の挿
入・削除・変更指示、被レイアウトデータの配置・回転
・変倍、指定文字の書体・大きさ等の属性変更、および
表示枠への被レイアウトデータの割付け等がある。ま
た、レイアウト手段11は、レイアウト処理が行われて
いるページを表示手段14により表示する。
The layout processing performed by the layout means 11 includes generation / deletion / selection of display frames, character insertion / deletion / change instructions, layout / rotation / magnification of layout data, and font / size of designated characters. For example, changing attributes such as size and assigning layout data to display frames. The layout unit 11 also causes the display unit 14 to display the page for which the layout process has been performed.

【0021】命令記憶部12は、レイアウト手段11で
行われるレイアウト処理の内容を記述した一連のスクリ
プト(所定の言語仕様を満たす命令文であり、後に例を
挙げて詳述する)を記憶している。命令処理部13は、
命令記憶部12に記憶された一連のスクリプトから各ス
クリプトを順に読み出すとともに、読み出したスクリプ
トが命令スクリプト(後述する)あるいは関数スクリプ
ト(後述する)である場合には、そのスクリプトを指令
情報に変換してレイアウト手段11へ逐次供給する。ま
た、命令処理部13は、読み出したスクリプトが命令ス
クリプトおよび関数スクリプトのいずれでもない制御ス
クリプトである場合には、取得したパラメータに基づい
て、制御スクリプトに表される処理を行う。制御スクリ
プトは、スクリプトの読み出し順序を変更したり、新た
にスクリプトを生成したりするためのスクリプトであ
る。
The command storage unit 12 stores a series of scripts (command statements satisfying a predetermined language specification, which will be described in detail later with an example) describing the contents of the layout process performed by the layout unit 11. There is. The instruction processing unit 13
Each script is sequentially read from the series of scripts stored in the command storage unit 12, and if the read script is a command script (described later) or a function script (described later), the script is converted into command information. Are sequentially supplied to the layout means 11. When the read script is a control script that is neither an instruction script nor a function script, the instruction processing unit 13 performs the processing represented by the control script based on the acquired parameters. The control script is a script for changing the reading order of the scripts and generating a new script.

【0022】上述したことから、命令処理部13からレ
イアウト手段11へ供給される指令情報は、レイアウト
処理を実現する機能を実行させるためのレイアウト命令
と、レイアウト処理が施されているページの状況を表す
パラメータを通知させるためのレイアウト関数とに大別
される。レイアウト命令は、レイアウト処理を行うため
にレイアウト手段11が提供する全ての機能に対応して
設定されており、命令処理部13からレイアウト手段1
1へレイアウト命令を供給することにより、操作者が指
示入力手段15を操作して為される全てのレイアウト処
理を行うことができる。
From the above, the command information supplied from the command processing unit 13 to the layout means 11 includes the layout command for executing the function for realizing the layout process and the status of the page on which the layout process is performed. It is roughly classified into a layout function for notifying the parameters to be expressed. The layout command is set corresponding to all the functions provided by the layout unit 11 to perform the layout process, and the layout processing unit 1 sends the layout command to the layout unit 1.
By supplying the layout command to 1, the operator can perform all the layout processing performed by operating the instruction input means 15.

【0023】また、レイアウト関数は、予め設定された
ルールに基づいたレイアウト処理を自動的に行うために
必要となる全ての情報(パラメータ)を得ることができ
るよう、複数種類用意されている。本実施例では、表示
枠から文字データが溢れているか否かを表すパラメー
タ、一行の文字データが表示枠内で一行に収まっている
か否かを表すパラメータ、文字データの文字サイズが下
限に達しているか否かを表すパラメータ、画像データに
表される画像のサイズが下限に達しているか否かを表す
パラメータ等を得るためのレイアウト関数が用意されて
いる。
Plural types of layout functions are prepared so that all information (parameters) necessary for automatically performing layout processing based on a preset rule can be obtained. In this embodiment, a parameter indicating whether or not the character data overflows the display frame, a parameter indicating whether or not one line of character data fits in one line within the display frame, and the character size of the character data reaches the lower limit. A layout function is provided for obtaining a parameter indicating whether or not the size of the image represented by the image data has reached the lower limit, and the like.

【0024】このような機能構成を実現するために、本
実施例による自動ページアップ装置は、図2に示す構成
を有する。図2は、本実施例による自動ページアップ装
置の具体的な構成を示すブロック図であり、図10と共
通する部分には同一の符号を付してある。図2に示す自
動ページアップ装置が、図10に示す従来のシステムと
異なる部分は、記憶装置6に代えて記憶装置6´を用い
るようにした点である。
In order to realize such a functional structure, the automatic page-up device according to this embodiment has a structure shown in FIG. FIG. 2 is a block diagram showing a specific configuration of the automatic page-up device according to the present embodiment, and parts common to FIG. 10 are given the same reference numerals. The automatic page-up device shown in FIG. 2 differs from the conventional system shown in FIG. 10 in that a storage device 6 ′ is used instead of the storage device 6.

【0025】記憶装置6´は、記憶装置6と同様に、ハ
ードディスク等からなり、複数の被レイアウトデータフ
ァイルと、CPU1に実行されることによりレイアウト
手段11(図1参照)を構成するDTP(Desk Top Pub
lishing )ソフトウェアとを記憶している。記憶装置6
´が記憶装置6と異なる点は、命令記憶部12(図1参
照)としての機能を有しており、少なくとも一つのスク
リプトファイルと、コンピュータ4に実行されることに
より命令処理部12を構成するインタープリタソフトウ
ェアとを記憶している点である。スクリプトファイル
は、前述した一連のスクリプトが記述されたファイルで
ある。なお、DTPソフトウェアおよびインタープリタ
ソフトウェアをROM2に記憶するよう装置を構成して
もよい。
Like the storage device 6, the storage device 6 ′ is composed of a hard disk or the like, a plurality of layout target data files, and a DTP (Desk) which constitutes the layout means 11 (see FIG. 1) when executed by the CPU 1. Top Pub
lishing) software and remember. Storage device 6
The difference between the storage device 6 and the storage device 6 is that it has a function as an instruction storage unit 12 (see FIG. 1), and at least one script file and the computer 4 configure the instruction processing unit 12 to be executed. The point is that it stores the interpreter software. The script file is a file in which the series of scripts described above are described. The device may be configured to store the DTP software and the interpreter software in the ROM 2.

【0026】コンピュータ4は、指示入力装置7から供
給される指示に応じて、記憶装置6´からDTPソフト
ウェアを読み出して実行し、レイアウト手段11(図1
参照)を構成する。また、コンピュータ4は、DTPソ
フトウェアを実行している間に、指示入力手段7から所
定の指示が供給されると、記憶装置6´からインタープ
リタソフトウェアを読み出して実行し、命令処理部13
を構成する。この際、命令処理部13は、レイアウト手
段11の一つの機能として組み込まれる。すなわち、イ
ンタープリタソフトウェアが実行されている間、制御は
命令処理部13に渡り、インタープリタソフトウェアが
実行を終了した時に、制御はレイアウト手段11に戻
る。
The computer 4 reads the DTP software from the storage device 6'and executes it according to the instruction supplied from the instruction input device 7, and the layout means 11 (see FIG. 1).
See)). When a predetermined instruction is supplied from the instruction input means 7 while the computer 4 is executing the DTP software, the computer 4 reads the interpreter software from the storage device 6 ′ and executes the interpreter software to execute the instruction processing unit 13.
Is configured. At this time, the instruction processing unit 13 is incorporated as one function of the layout means 11. That is, control is passed to the instruction processing unit 13 while the interpreter software is being executed, and control is returned to the layout means 11 when the interpreter software has finished executing.

【0027】ここで、上記インタープリタソフトウェア
を実行するコンピュータ4により指令情報に変換される
スクリプトと、そのスクリプトに対応して為される処理
の内容とを一例を挙げて具体的に説明する。ここでは、
スクリプトを、レイアウト命令に変換される命令スクリ
プト、レイアウト関数に変換される関数スクリプト、制
御スクリプトに分類し、それぞれについて説明する。
Here, the script converted into the command information by the computer 4 which executes the interpreter software and the contents of the processing performed corresponding to the script will be specifically described by way of an example. here,
The scripts are classified into command scripts converted into layout commands, function scripts converted into layout functions, and control scripts, and the respective scripts will be described.

【0028】[命令スクリプト]まず、命令スクリプト
について説明する。以下、命令スクリプトの具体的なス
クリプト例と、そのスクリプト例に対応する処理内容に
ついて、〜の例を挙げて説明する。 スクリプト例:readPic(pic1) 内容:予め設定されたパス名(デバイス名,ディレクト
リ名,ファイル名からなる)で指定される画像データフ
ァイルから、画像データ“pic1”を読み込む。 スクリプト例:putPic(pic1,top,left,bottom,righ
t,picBox1) 内容:(top,left)を左上端の座標、(bottom,right)
を右下端の座標とする表示枠“picBox1 ”を作成し、こ
の表示枠“picBox1 ”に、画像データ“pic1”を配置す
る。 スクリプト例:readText(text) 内容:予め設定されたパス名で指定される文字データフ
ァイルから、文字データ“text”を読み込む。 スクリプト例:putText(text,tBoxName,picBox1) 内容:表示枠“picBox1 ”の下方にページの下端まで達
するとともに、左右方向の枠が表示枠“picBox1 ”と揃
うような表示枠“tBoxName”を作成し、この表示枠“tB
oxName”に、文字データ“text”を流し込む。 スクリプト例:putCR(text) 内容:文字データ“text”が、表示枠内で先頭になるよ
う文字データに改行コードを挿入する。 スクリプト例:smallText(text) 内容:文字データ“text”の文字サイズ(ポイント数)
を小とする。 スクリプト例:changeLmt(lmt) 内容:下限“lmt”の値を変更する。
[Instruction Script] First, the instruction script will be described. Hereinafter, a specific script example of the instruction script and the processing content corresponding to the script example will be described with reference to examples of. Script example: readPic (pic1) Description: Reads the image data "pic1" from the image data file specified by the preset path name (consisting of device name, directory name, and file name). Script example: putPic (pic1, top, left, bottom, righ
t, picBox1) Contents: (top, left) is the coordinate of the upper left corner, (bottom, right)
A display frame "picBox1" having coordinates at the lower right corner is created, and image data "pic1" is placed in this display frame "picBox1". Script example: readText (text) Description: Reads the character data "text" from the character data file specified by the preset path name. Script example: putText (text, tBoxName, picBox1) Content: Create a display frame "tBoxName" below the display frame "picBox1" that reaches the bottom of the page and the horizontal frame aligns with the display frame "picBox1". , This display frame "tB
Pour character data “text” into oxName ”Script example: putCR (text) Content: Insert a line feed code in the character data so that the character data“ text ”is at the beginning in the display frame Script example: smallText ( text) Content: Character size of character data "text" (number of points)
Is small. Script example: changeLmt (lmt) Description: Change the lower limit "lmt" value.

【0029】[関数スクリプト]次に、関数スクリプト
について説明する。以下、関数スクリプトの具体的なス
クリプト例と、そのスクリプト例に対応する処理内容に
ついて、〜の例を挙げて説明する。 スクリプト例:overFlow(tBoxName) 内容:表示枠“tBoxName”において、文字データが溢れ
ている場合には「真」、それ以外の場合には「偽」を返
す。 スクリプト例:oneLine(text) 内容:一行の文字データ“text”が、予め選択され
た表示枠内で一行に収まっている場合には「真」、それ
以外の場合には「偽」を返す。 スクリプト例:cmpLmt(text,lmt) 内容:文字データ“text”の文字サイズが下限“lmt ”
に達している場合には「真」、それ以外の場合には
「偽」を返す。 スクリプト例:cmpLmt(pic,lmt) 内容:画像データ“pic1”に表される画像のサイズが下
限“lmt ”に達している場合には「真」、それ以外の場
合には「偽」を返す。
[Function Script] Next, the function script will be described. Hereinafter, a specific script example of the function script and the processing contents corresponding to the script example will be described with reference to examples of. Script example: overFlow (tBoxName) Content: In the display frame “tBoxName”, returns “true” if the character data overflows, otherwise returns “false”. Script example: oneLine (text) Description: Returns "true" if the character data "text" of one line fits on one line in the display frame selected in advance, and returns "false" otherwise. Script example: cmpLmt (text, lmt) Contents: Character size of character data “text” is lower limit “lmt”
If true is reached, "true" is returned; otherwise, "false" is returned. Script example: cmpLmt (pic, lmt) Content: Returns "true" if the size of the image represented by the image data "pic1" has reached the lower limit "lmt", and returns "false" otherwise. .

【0030】[制御スクリプト]前述したように、制御
スクリプトは、スクリプトの読み出し順序を変更した
り、新たにスクリプトを生成したりするためのスクリプ
ト(増殖スクリプト)である。スクリプトの読み出し順
序を変更するものとしては、例えば、IF〜THEN〜
ELSE等の他のプログラム言語のステートメントと同
様な機能を持つスクリプトが用意されている。また、新
たに生成されたスクリプトは、スクリプトファイルの末
尾、あるいは制御スクリプトに指示される所定の位置に
追加、挿入される。すなわち、ページの状況を表すパラ
メータと予め設定されたルールとに基づいてスクリプト
ファイル自体を変更することができる。
[Control Script] As described above, the control script is a script (propagation script) for changing the reading order of the scripts and generating a new script. For changing the script reading order, for example, IF-THEN-
Scripts having the same functions as statements in other programming languages such as ELSE are prepared. In addition, the newly generated script is added or inserted at the end of the script file or at a predetermined position indicated by the control script. That is, the script file itself can be changed based on a parameter indicating the status of the page and a preset rule.

【0031】このような構成の自動ページアップ装置に
よりページレイアウトを作成する処理の流れについて、
図3〜図5を参照して説明する。なお、本実施例では、
一つの表示枠を作成する毎に、その表示枠に対して被レ
イアウトデータを割り付けるものとする。図3は、本実
施例による自動ページアップ装置を用いてページレイア
ウトを作成する処理の概略を説明するための処理図であ
る。
Regarding the flow of processing for creating a page layout by the automatic page-up device having such a configuration,
This will be described with reference to FIGS. In this example,
Every time one display frame is created, layout target data is assigned to the display frame. FIG. 3 is a process diagram for explaining an outline of a process for creating a page layout using the automatic page-up device according to the present embodiment.

【0032】図3に示すように、まずステップSB1で
は、操作者により、被レイアウトデータ(文字データま
たは画像データ)とスクリプトファイルとが作成され、
記憶装置6´に記憶される。被レイアウトデータについ
ては、図示せぬイメージスキャナや画像処理ソフトウェ
アを用いて本装置において作成するようにしてもよい
し、他の装置において作成し、図示せぬフロッピーディ
スクやモデム等を介して本装置に入力するようにしても
よい。次に、操作者が指示入力装置7を操作してコンピ
ュータ4によりDTPソフトウェアを実行させると、レ
イアウト手段11が稼働可能となり、処理はステップS
B2へ進む。
As shown in FIG. 3, first in step SB1, the operator creates layout data (character data or image data) and a script file.
It is stored in the storage device 6 '. The layout data may be created in this apparatus using an image scanner or image processing software (not shown), or may be created in another apparatus and this apparatus is created via a floppy disk or modem (not shown). May be input to. Next, when the operator operates the instruction input device 7 to cause the computer 4 to execute the DTP software, the layout means 11 becomes operable, and the process is performed in step S.
Go to B2.

【0033】ステップSB2では、操作者が指示入力装
置7を操作して、レイアウト手段11の一つの機能とし
て登録された命令処理部(インタープリタ)13を起動
する。すなわち、コンピュータ4は、記憶装置6´に記
憶されたインタープリタソフトウェアを読み出してイン
タープリタを稼働可能とする。次に、処理はステップS
B3へ進む。
At step SB2, the operator operates the instruction input device 7 to activate the command processing unit (interpreter) 13 registered as one function of the layout means 11. That is, the computer 4 reads the interpreter software stored in the storage device 6'and enables the interpreter to operate. Next, the process is step S
Go to B3.

【0034】ステップSB3では、操作者が指示入力装
置7を操作することにより、コンピュータ4が記憶装置
6´に記憶されたスクリプトファイルのうち所望のスク
リプトファイルを読み出す。そして、読み出されたスク
リプトファイル内の一連のスクリプトが命令処理部13
により逐次実行される。これにより、一連のスクリプト
に記述されたレイアウト処理が為され、ページレイアウ
トが作成される。そして、一連のスクリプトの実行が完
了すると、制御はレイアウト手段11(DTPソフトウ
ェア本体)に戻り、処理が終了する。
In step SB3, the operator operates the instruction input device 7 so that the computer 4 reads out a desired script file from the script files stored in the storage device 6 '. Then, the series of scripts in the read script file is the instruction processing unit 13
Are executed sequentially. As a result, the layout process described in the series of scripts is performed, and the page layout is created. Then, when the execution of the series of scripts is completed, the control is returned to the layout means 11 (DTP software main body), and the processing ends.

【0035】次に、図3のステップSB3で為される一
連のスクリプトに応じた処理について、図4,図5を参
照して説明する。図4は、図3のステップSB3の処理
において、被レイアウトデータが文字データである場合
に為される処理について説明するための処理図である。
この図に示すように、まずステップSC1では、コンピ
ュータ4が任意の大きさの文字用表示枠を作成し、この
表示枠を任意の位置に配置する。実際には、表示枠の大
きさおよび配置位置等は、一連のスクリプトに記述され
ているため、スクリプトに応じた表示枠が作成・配置さ
れる。ここで作成・配置された表示枠は、表示装置5に
より表示される。
Next, the processing according to the series of scripts performed in step SB3 of FIG. 3 will be described with reference to FIGS. FIG. 4 is a process diagram for explaining a process performed when the layout target data is character data in the process of step SB3 of FIG.
As shown in this figure, first, in step SC1, the computer 4 creates a character display frame of an arbitrary size and arranges this display frame at an arbitrary position. Actually, since the size and arrangement position of the display frame are described in a series of scripts, the display frame corresponding to the script is created and arranged. The display frame created and arranged here is displayed by the display device 5.

【0036】次に、ステップSC2では、コンピュータ
4が、任意の文字データをステップSC1で作成した表
示枠に割り付ける。ここで割り付けられる文字データ
も、一連のスクリプトに記述されたものであり、表示枠
と文字データとの対応関係は、スクリプトに記述された
関係となる。
Next, in step SC2, the computer 4 allocates arbitrary character data to the display frame created in step SC1. The character data assigned here is also described in a series of scripts, and the correspondence between the display frame and the character data is the relationship described in the script.

【0037】次に、ステップSC3では、コンピュータ
4は、ステップSC1で作成された表示枠に、ステップ
SC2で割り付けられた文字データを流し込む。この際
に実行されるスクリプトには、各文字の属性や大きさ、
配置位置等を指定する内容が記述されており、このよう
な内容を反映した文字列が、対応する表示枠上に表示さ
れる。
Next, in step SC3, the computer 4 pours the character data assigned in step SC2 into the display frame created in step SC1. The script executed at this time has attributes and sizes of each character,
The contents that specify the arrangement position and the like are described, and a character string that reflects such contents is displayed on the corresponding display frame.

【0038】次に、ステップSC4では、コンピュータ
4が、表示装置5に表示された文字列が表示枠から溢れ
ているか否かを判断する。この判断結果が「YES」で
あれは、処理はステップSC5へ進み、ここで、文字列
が表示枠から溢れなくなるよう、新たなスクリプトを作
成するとともに、この新たに作成されたスクリプトを実
行する。そして、処理はステップSC4に戻る。すなわ
ち、文字列が表示枠から溢れている間、ステップSC4
〜SC5の処理が繰り返し行われる。
Next, in step SC4, the computer 4 determines whether or not the character string displayed on the display device 5 overflows the display frame. If this determination result is "YES", the process proceeds to step SC5, where a new script is created and the newly created script is executed so that the character string does not overflow from the display frame. Then, the process returns to step SC4. That is, while the character string overflows the display frame, step SC4
The processing of SC5 is repeated.

【0039】ステップSC4〜SC5で行われる処理
は、予め設定されたルールに基づいた処理となる。この
ルールは任意に設定可能であるが、以下、3通りの例を
挙げ、ステップSC4〜SC5で行われる処理について
説明する。第1番目の例としては、以下のステップ1〜
2からなるルールに基づいて文字列を表示枠内に収める
処理が考えられる。ステップ1:文字が所定の縦横比と
なるまで、段階的に長体をかける。ステップ2:所定の
縦横比となっても表示枠から溢れる場合には、文字のポ
イント数を1段階だけ小とし、ステップ1の処理に戻
る。
The processing performed in steps SC4 to SC5 is based on a preset rule. Although this rule can be set arbitrarily, the processing performed in steps SC4 to SC5 will be described below by citing three examples. As a first example, the following steps 1 to
A process of putting the character string in the display frame based on the rule of 2 is conceivable. Step 1: Multiply the lengthwise character until the character has a predetermined aspect ratio. Step 2: If the display frame overflows even with a predetermined aspect ratio, the point number of the character is reduced by one step, and the process returns to step 1.

【0040】第2番目の例としては、以下のステップ1
〜2からなるルールに基づいて文字列を表示枠内に収め
る処理が考えられる。 ステップ1:文字が所定の縦横比となるまで、段階的に
平体をかける。 ステップ2:所定の縦横比となっても表示枠から溢れる
場合には、文字のポイント数を1段階だけ小とし、ステ
ップ1の処理に戻る。
As a second example, the following step 1
A process of putting the character string in the display frame based on the rule consisting of ~ 2 can be considered. Step 1: The flat body is gradually applied until the characters have a predetermined aspect ratio. Step 2: If the display frame overflows even with a predetermined aspect ratio, the point number of the character is reduced by one step, and the process returns to step 1.

【0041】第3番目の例としては、文字が溢れないよ
う、表示枠の大きさを大とする処理が考えられる。ただ
し、表示枠を大とすることが困難な場合も考えられるた
め、別の場所に同様な表示枠を作成し、その表示枠に溢
れた文字データを流し込むようにしてもよい。もちろ
ん、これらの例に限らず、任意のルールに基づいて文字
列が表示枠内に収まるようなスクリプトを記述すればよ
い。通常、これらのルールは、出版者と印刷業者との間
で予め設定される。
As a third example, it is conceivable to increase the size of the display frame so that the characters do not overflow. However, in some cases, it may be difficult to make the display frame large. Therefore, a similar display frame may be created in another location and the character data overflowing the display frame may be poured. Of course, the script is not limited to these examples, and a script that allows the character string to fit within the display frame may be described based on an arbitrary rule. Usually, these rules are preset between the publisher and the printer.

【0042】ところで、文字列が表示枠内に収まり、ス
テップSC4での判断結果が「NO」となると、この表
示枠に対する処理は終了する。こうして、一つの表示枠
に対する文字データの割り付けが終了する。もちろん、
文字データを割り付けるべき表示枠が複数存在する場合
には、上述した処理を必要な回数だけ繰り返すことにな
る。
By the way, when the character string falls within the display frame and the result of the determination in step SC4 is "NO", the processing for this display frame ends. In this way, the allocation of the character data to one display frame is completed. of course,
When there are a plurality of display frames to which the character data should be assigned, the above-mentioned processing is repeated as many times as necessary.

【0043】図5は、図3のステップSB3の処理にお
いて、被レイアウトデータが画像データである場合に為
される処理について説明するための処理図である。この
図に示すように、まずステップSD1では、コンピュー
タ4がスクリプトに指示された大きさの画像用表示枠を
作成し、この表示枠をスクリプトに指示された位置に配
置する。ここで作成・配置された表示枠は、表示装置5
により表示される。
FIG. 5 is a process diagram for explaining the process performed when the layout target data is image data in the process of step SB3 of FIG. As shown in this figure, first, in step SD1, the computer 4 creates an image display frame of the size instructed by the script, and arranges this display frame at the position instructed by the script. The display frame created and arranged here is the display device 5
Displayed by.

【0044】次に、ステップSD2では、コンピュータ
4が、ステップSD1で作成した表示枠に割り付ける画
像データを記憶装置6´から読み出す。読み出される画
像データは、一連のスクリプトに記述されたものであ
り、一連のスクリプトに記述された角度だけ回転されて
読み出される。次に、ステップSD3では、コンピュー
タ4が、ステップSD2で読み出した画像データを、ス
テップSD1で作成した表示枠の大きさに応じて変倍す
る。もちろん、このような指示は、全て、一連のスクリ
プトに記述されている。そして、一つの表示枠に対する
処理は終了する。もちろん、画像データを割り付けるべ
き表示枠が複数存在する場合には、上述した処理を必要
な回数だけ繰り返すことになる。
Next, in step SD2, the computer 4 reads out the image data to be assigned to the display frame created in step SD1 from the storage device 6 '. The image data to be read is described in a series of scripts, and is read by being rotated by the angle described in the series of scripts. Next, in step SD3, the computer 4 scales the image data read in step SD2 according to the size of the display frame created in step SD1. Of course, all such instructions are described in a series of scripts. Then, the process for one display frame ends. Of course, when there are a plurality of display frames to which the image data should be allocated, the above-mentioned processing is repeated as many times as necessary.

【0045】次に、前述した構成の装置を用いて、具体
的にページレイアウトを作成する処理について、図6,
図7を参照して説明する。図6,図7は、図9に示すペ
ージレイアウトを作成する処理を具体的に説明するため
の処理図である。なお、図9に示すページレイアウト
は、図8に示すページレイアウトに対して、所望の変更
を加えたものである。したがって、以下、図6,図7を
参照し、変更部分の処理を中心にして処理の流れを説明
する。なお、図6および図7は、図中A,Bにおいて接
続され、一つの処理図となるものである。
Next, with reference to FIG. 6, a process for specifically creating a page layout using the apparatus having the above-described configuration.
This will be described with reference to FIG. 6 and 7 are process diagrams for specifically explaining the process of creating the page layout shown in FIG. The page layout shown in FIG. 9 is a modification of the page layout shown in FIG. Therefore, the flow of processing will be described below with reference to FIGS. It should be noted that FIGS. 6 and 7 are connected at A and B in the figure to form one processing diagram.

【0046】なお、図6および図7に示す処理が為され
る前に、記憶装置6′内の文字データおよびスクリプト
ファイルの内容は、図9のページレイアウトを作成でき
るよう変更されているものとする。すなわち、文字デー
タには、「平成6年式」、「車検9年2月」、「300
0Km」、「ブルー」、「フォグランプ」という単語が
追加され、スクリプトファイルには、以下に示すルール
1〜4を加味して再作成された一連のスクリプトが保存
されてる。 ・ルール1 図8中下線部(1)の文字列を一行内に収
める。 ・ルール2 単語内の改行を許さない。 ・ルール3 画像の大きさを必要に応じて変更してよ
い。 ・ルール4 価格の各文字は24ポイントより大なるポ
イント数とする。
Before the processing shown in FIGS. 6 and 7, the contents of the character data and the script file in the storage device 6'are changed so that the page layout shown in FIG. 9 can be created. To do. That is, in the character data, "1994 type", "Vehicle inspection February 9", "300"
The words "0 Km", "blue", and "fog lamp" are added, and the script file stores a series of scripts re-created in consideration of the following rules 1 to 4. -Rule 1 The character string of the underlined part (1) in FIG. 8 is put in one line.・ Rule 2 Do not allow line breaks in words. -Rule 3 The size of the image may be changed as necessary.・ Rule 4 Each character of the price shall be greater than 24 points.

【0047】このような状態において、DTPソフトウ
ェアおよびインタープリタソフトウェアを稼働可能とす
ることによりレイアウト手段11および命令処理部13
を実現したコンピュータ4が、指示入力装置7から供給
される操作者の指示に応じて、再作成されたスクリプト
ファイルを読み出すことにより、スクリプトファイル中
の一連のスクリプトが実行される。これにより、処理は
図6のステップSE1へ進む。なお、図6,7におい
て、各ステップの近傍には、そのステップに示す処理を
実行するためのスクリプトが記載されている。また、各
ステップにおいて、スクリプトに表される処理を実行す
る主体は、命令処理部13およびレイアウト手段11で
ある。
In such a state, the DTP software and the interpreter software are made operable so that the layout means 11 and the instruction processing section 13 can be operated.
The computer 4 that realizes (1) reads the recreated script file in response to the operator's instruction supplied from the instruction input device 7, thereby executing a series of scripts in the script file. As a result, the process proceeds to step SE1 in FIG. Note that in FIGS. 6 and 7, a script for executing the process shown in each step is described near each step. In each step, the main body that executes the processing represented by the script is the instruction processing unit 13 and the layout unit 11.

【0048】まず、ステップSE1では、画像データを
読み込むためのスクリプト“readPic(pic1) ”が実行さ
れ、パス名が“pic1”である画像データファイルが記憶
装置6´から読み出される。次に、ステップSE2で
は、画像用表示枠を作成して画像データを割り付けるた
めのスクリプト“putPic(pic1,top,left,bottom,right,
picBox1)”が実行される。これにより、“picBox1 ”な
る画像用表示枠が作成され、この表示枠に対してステッ
プSE1で読み込んだ画像データ“pic1”が、枠内に収
まるように変倍されて割り付けられる。したがって、表
示装置5には、表示用枠“picBox1 ”と、画像データ
“pic1”に表される画像とが表示される。
First, in step SE1, the script "readPic (pic1)" for reading the image data is executed, and the image data file with the path name "pic1" is read from the storage device 6 '. Next, in step SE2, a script "putPic (pic1, top, left, bottom, right, script for creating an image display frame and allocating image data.
picBox1) "is executed. As a result, an image display frame" picBox1 "is created, and the image data" pic1 "read in step SE1 is scaled so that it fits within the frame. Therefore, the display device 5 displays the display frame “picBox1” and the image represented by the image data “pic1”.

【0049】次に、ステップSE3では、文字データを
読み込むためのスクリプト“readText(text)”が実行さ
れ、パス名が“text”である文字データファイルが記憶
装置6´から読み出される。次に、ステップSE4で
は、画像用表示枠を作成して画像データを割り付けるた
めのスクリプト“putText(text,tBoxName,picBox1)”が
実行される。これにより、画像用表示枠“picBox1 ”の
下方に、“tBoxName”なる文字用表示枠が作成され、こ
の表示枠に対して、ステップSE3で読み込まれた文字
データ“text”が流し込まれる。この際、各文字は予め
設定された属性(書体・大きさ等)で流し込まれる。
Next, in step SE3, the script "readText (text)" for reading the character data is executed, and the character data file having the path name "text" is read from the storage device 6 '. Next, in step SE4, the script "putText (text, tBoxName, picBox1)" for creating the image display frame and allocating the image data is executed. As a result, a character display frame "tBoxName" is created below the image display frame "picBox1", and the character data "text" read in step SE3 is poured into this display frame. At this time, each character is cast with a preset attribute (typeface, size, etc.).

【0050】次に、ステップSE5では、まず、文字デ
ータが表示枠“tBoxName”から溢れているか否かを判断
するためのスクリプト“overflow(tBoxName)”が実行さ
れる。このスクリプトは関数スクリプトであり、その戻
り値(パラメータ)は、文字データが表示枠から溢れて
いれば「真」、文字データが表示枠内に収まっていれば
「偽」となる。次に、制御スクリプトが実行され、上記
関数スクリプトを実行して得られるパラメータに応じ
て、スクリプトを読み出す位置が変更される。具体的に
は、パラメータが「偽」であれば、処理はステップSE
6へ進み、「真」であれば、処理はステップSE8へ進
む。ここでは、文字データにいくつかの文字列が追加さ
れているため、文字データが表示枠から溢れる。したが
って、本ステップでの判断結果は「YES」となり、処
理はステップSE8(図7参照)へ進む。
Next, in step SE5, a script "overflow (tBoxName)" for determining whether or not the character data overflows the display frame "tBoxName" is executed. This script is a function script, and its return value (parameter) is "true" if the character data overflows the display frame, and "false" if the character data is within the display frame. Next, the control script is executed, and the position where the script is read is changed according to the parameter obtained by executing the function script. Specifically, if the parameter is “false”, the process proceeds to step SE.
If it is "true", the process proceeds to step SE8. Here, since some character strings are added to the character data, the character data overflows the display frame. Therefore, the determination result in this step is “YES”, and the process proceeds to step SE8 (see FIG. 7).

【0051】ステップSE8では、まず、価格を表す文
字列“text”の各文字の大きさが予め設定された下限値
“lmt ”以下であるか否かを判断するための関数スクリ
プト“cmpLmt(text,lmt)”が実行される。この例では、
“lmt ”は24ポイントである。次に、制御スクリプト
が実行され、上記関数スクリプトを実行して得られるパ
ラメータに応じて、スクリプトを読み出す位置が変更さ
れる。具体的には、パラメータが「真」であれば、この
ステップでの判断結果が「YES」となり、処理はステ
ップSE10へ進む。逆に、パラメータが「偽」であれ
ば、このステップでの判断結果が「NO」となり、処理
はステップSE9へ進む。
In step SE8, first, a function script "cmpLmt (text" for determining whether or not the size of each character of the character string "text" representing the price is less than or equal to a preset lower limit value "lmt" , lmt) ”is executed. In this example,
"Lmt" is 24 points. Next, the control script is executed, and the position where the script is read is changed according to the parameter obtained by executing the function script. Specifically, if the parameter is "true", the determination result in this step is "YES", and the process proceeds to step SE10. On the contrary, if the parameter is “false”, the determination result in this step is “NO”, and the process proceeds to step SE9.

【0052】ステップSE9では、価格を表す文字“te
xt”の各文字のポイント数を1段階だけ小とする命令ス
クリプト“smallText(text) ”が実行される。これによ
り、価格を表す文字以外の文字(本文)を流し込むこと
ができる領域が拡大する。そして、処理はステップSE
4に戻る。一方、ステップSE8での判断結果が「YE
S」となり、価格を表す文字列の各文字のポイント数を
小とすることができない場合、ステップSE11におい
て、本文の文字のポイント数を変更可能か否かが判断さ
れる。
At step SE9, the character "te" indicating the price is displayed.
The instruction script "smallText (text)" that reduces the number of points for each character of "xt" by one step is executed. This expands the area where characters (text) other than the price character can be poured. . And the processing is step SE
Return to 4. On the other hand, the determination result in step SE8 is "YE
S ”, and if the number of points of each character of the character string representing the price cannot be made small, it is determined in step SE11 whether the number of points of the character of the text can be changed.

【0053】具体的には、本文“text”の各文字のポイ
ント数が、予め設定された下限値“lmt ”以下であるか
否かを判断するための関数スクリプト“cmpLmt(text,lm
t)”が実行される。次に、制御スクリプトが実行され、
上記関数スクリプトを実行して得られるパラメータに応
じて、スクリプトを読み出す位置が変更される。すなわ
ち、パラメータが「真」であれば、このステップでの判
断結果が「YES」となり、処理はステップSE12へ
進む。逆に、パラメータが「偽」であれば、このステッ
プでの判断結果が「NO」となり、処理はステップSE
11へ進む。
Specifically, a function script "cmpLmt (text, lm) for determining whether or not the number of points of each character of the text" text "is less than or equal to a preset lower limit" lmt "
t) ”is executed. Next, the control script is executed and
The position where the script is read is changed according to the parameter obtained by executing the above function script. That is, if the parameter is "true", the determination result in this step is "YES", and the process proceeds to step SE12. On the contrary, if the parameter is “false”, the determination result in this step is “NO”, and the process proceeds to step SE.
Proceed to 11.

【0054】ステップSE11では、ステップSE9に
おける価格の各文字と同様に、本文の各文字のポイント
数が1段階だけ小とされる。これにより、本文を流し込
むために必要となる領域が小となる。そして、処理はス
テップSE4へ戻る。一方、ステップSE10での判断
結果が「YES」となり、本文の各文字のポイント数を
小とすることができない場合、ステップSE12におい
て、画像用表示枠の大きさを変更可能か否かが判断され
る。
In step SE11, the number of points of each character of the text is reduced by one step, as with each character of the price in step SE9. This reduces the area required to pour the text. Then, the process returns to step SE4. On the other hand, when the result of the determination in step SE10 is "YES" and the number of points of each character in the text cannot be reduced, it is determined in step SE12 whether or not the size of the image display frame can be changed. It

【0055】具体的には、画像データ“pic1”の大きさ
が、予め設定された下限値“lmt ”以下であるか否かを
判断するための関数スクリプト“cmpLmt(pic1,lmt)”が
実行される。次に、制御スクリプトが実行され、上記関
数スクリプトを実行して得られるパラメータに応じて、
スクリプトを読み出す位置が変更される。すなわち、パ
ラメータが「真」であれば、このステップでの判断結果
が「YES」となり、処理はステップSE14へ進む。
逆に、パラメータが「偽」であれば、このステップでの
判断結果が「NO」となり、処理はステップSE13へ
進む。
Specifically, the function script "cmpLmt (pic1, lmt)" for determining whether or not the size of the image data "pic1" is less than or equal to the preset lower limit "lmt" is executed. To be done. Next, the control script is executed, and depending on the parameters obtained by executing the above function script,
The position to read the script is changed. That is, if the parameter is "true", the determination result in this step is "YES", and the process proceeds to step SE14.
On the contrary, if the parameter is “false”, the determination result in this step is “NO”, and the process proceeds to step SE13.

【0056】ステップSE13では、画像データ“pic
1”および画像用表示枠の大きさを、それぞれ、所定ピ
ッチだけ小とする命令スクリプト“smallPic(pic1,picB
ox1)”が実行される。これにより、文字データを流し込
むことができる領域が拡大する。そして、処理はステッ
プSE4に戻る。一方、ステップSE12での判断結果
が「YES」となり、文字および画像の大きさを小とす
ることができなかった場合、ステップSE14におい
て、各下限値が変更される。各下限値の変更処理は、命
令スクリプト“changeLmt() ”により為される。そし
て、処理はステップSE8へ戻る。
At step SE13, the image data "pic
1 ”and the size of the image display frame are reduced by a predetermined pitch, respectively. Instruction script“ smallPic (pic1, picB
ox1) ”is executed. As a result, the area into which the character data can be poured is expanded. Then, the process returns to step SE4. On the other hand, the result of the determination in step SE12 is“ YES ”, and the character and image When the size cannot be reduced, each lower limit value is changed in step SE14. The changing process of each lower limit value is performed by the instruction script "changeLmt ()". Then, the process returns to step SE8.

【0057】このように、文字列を追加された文字デー
タが表示枠から溢れなくなるまで、ステップSE4,S
E5,SE8〜SE14の処理が繰り返し行われる。そ
して、文字データが表示枠内に収まり、図6のステップ
SE5での判断結果が「NO」となると、処理はステッ
プSE6へ進む。
As described above, steps SE4 and S4 are performed until the character data added with the character string does not overflow the display frame.
The processing of E5 and SE8 to SE14 is repeated. Then, when the character data is contained in the display frame and the determination result in step SE5 of FIG. 6 is "NO", the process proceeds to step SE6.

【0058】ステップSE6では、前述したルール1,
2に基づいた判断が為される。すなわち、一区切りの単
語(ここでいう単語は、文法上の単語ではなく、句読点
で区切られる文字列をいう)が一行で表示されているか
否かが判断される。この判断処理は、関数スクリプト
“oneLine(text) ”を実行して得られるパラメータに基
づいて制御スクリプトを実行することにより行われる。
具体的には、各単語が一行で表示されていれば、本ステ
ップでの判断結果が「YES」となり、処理は終了す
る。また、単語が複数行にまたがって表示されている場
合には、本ステップでの判断結果が「NO」となり、処
理はステップSE7へ進む。
In step SE6, the above-mentioned rule 1,
A decision based on 2 is made. That is, it is determined whether or not one delimited word (the word here is not a grammatical word, but a character string delimited by punctuation) is displayed in one line. This determination processing is performed by executing the control script based on the parameters obtained by executing the function script "oneLine (text)".
Specifically, if each word is displayed in one line, the determination result in this step is "YES", and the process ends. If the word is displayed over a plurality of lines, the determination result in this step is "NO", and the process proceeds to step SE7.

【0059】ステップSE7では、単語の先頭文字が行
頭になるよう、改行コードを付加する命令スクリプト
“putCR(text) ”が実行される。これにより、単語が一
行で表示される。そして、処理はステップSE4へ戻
る。このような処理により、図9に示すページレイアウ
トが得られる。この図と、図8とを比較すると、図9に
おける自動車の画像、および価格を表す文字列の各文字
は、図8におけるそれよりも小となっている。また、各
単語は途中で改行することなく、一行で表示されてい
る。なお、一連のスクリプト実行時に途中でエラーが発
生した場合には、スクリプトファイル中のエラー発生位
置およびエラー内容が、記憶装置6′のエラーファイル
に記憶される。
In step SE7, the instruction script "putCR (text)" for adding a line feed code is executed so that the first character of the word is at the beginning of the line. This causes the word to be displayed in one line. Then, the process returns to step SE4. By such processing, the page layout shown in FIG. 9 is obtained. Comparing this figure and FIG. 8, each character of the image of the automobile in FIG. 9 and the character string representing the price is smaller than that in FIG. Also, each word is displayed in one line without a line break in the middle. When an error occurs during the execution of a series of scripts, the error occurrence position in the script file and the error content are stored in the error file in the storage device 6 '.

【0060】以上説明したように、文字データや画像デ
ータが表示枠から溢れる場合には、予め設定されたルー
ルに基づいて文字や画像の大きさが自動的に補正され
る。すなわち、図3におけるステップSB3の処理がバ
ッチ処理化され、従来、操作者が逐次行っていたレイア
ウト処理が自動的に行われる。また、机上レイアウトの
結果に基づいて、表示枠の座標値等を予めスクリプトフ
ァイルに記述するようにしたため、表示枠の配置等を正
確に行うことができる。さらに、スクリプトの言語仕様
を、前述したようにレイアウト処理に適したものとした
ため、スクリプトファイルを比較的容易に作成すること
ができる。また、命令処理部13をインタプリタとした
ため、スクリプト実行中に、新たなスクリプトを作成す
ることができる。したがって、一つの表示枠から文字デ
ータが溢れた場合に、予め設定されたルールに基づいて
新たな表示枠を作成し、その表示枠に、溢れた文字デー
タを流し込むという処理をも自動的に行うことができ
る。
As described above, when the character data or the image data overflows the display frame, the size of the character or the image is automatically corrected based on the preset rule. That is, the process of step SB3 in FIG. 3 is batch-processed, and the layout process which is conventionally performed by the operator is automatically performed. Further, since the coordinate values and the like of the display frame are described in advance in the script file based on the result of the desk layout, the display frame can be arranged accurately. Furthermore, since the language specification of the script is suitable for the layout process as described above, the script file can be created relatively easily. Since the instruction processing unit 13 is an interpreter, a new script can be created during script execution. Therefore, when the character data overflows from one display frame, a new display frame is created based on a preset rule, and the overflowed character data is automatically poured into the display frame. be able to.

【0061】さらに、エラーファイルを設け、エラーが
発生しても動作が中断しないようにしたことにより、ス
クリプトファイル全体のエラー箇所を見つけ易くしてい
る。この手法では、エラー数が多くなった場合に、エラ
ー箇所を見つけるのが難しくなるという傾向があるが、
本実施例では、レイアウト処理をバッチ処理化して行う
ことを前提としているため、エラー発生毎に装置の動作
が止まるより、レイアウト処理を一通り終えた後にエラ
ーのリストを見るようにした方が実用的なのである。
Furthermore, by providing an error file so that the operation is not interrupted even if an error occurs, it is easy to find the error location in the entire script file. This method tends to make it difficult to find the error location when the number of errors increases,
In the present embodiment, it is premised that the layout processing is batch-processed. Therefore, rather than stopping the operation of the apparatus each time an error occurs, it is practical to see the error list after the layout processing is completed. It is.

【0062】また、コンピュータ4に実行されることに
よりレイアウト手段11を実現するDTPソフトウェア
は、スクリプトを実行するインタープリタを一機能とし
て組み込むためのソケット(ソフトウェア的な切り口)
を備えていれば、市販のものでもよい。したがって、装
置を容易に構成できるとともに、前述したようなスクリ
プトによる複雑なレイアウト処理および高精度のレイア
ウト処理を行う機能を、操作者が慣れ親しんだDTPソ
フトウェアの一機能として付加することができる。
Further, the DTP software that realizes the layout means 11 by being executed by the computer 4 is a socket (software cut-off) for incorporating an interpreter that executes a script as one function.
A commercially available product may be used as long as it is equipped with. Therefore, the apparatus can be easily configured, and the function of performing the complicated layout processing and the high-precision layout processing by the script as described above can be added as one function of the DTP software with which the operator is familiar.

【0063】なお、上述した一実施例では、関数スクリ
プトのいくつかについて説明したが、これに限らず、表
示枠から溢れた文字の情報(文字数・先頭からの位置・
座標)、表示枠からはみ出した画像の情報(切り抜きマ
スクの領域判断など)、現在の文字属性(書体・ポイン
ト数・スタイル等)の情報、現在の画像のサイズ・倍率
・切り抜きマスクなどを得るためのもの等、必要に応じ
て作成するようにしてもよい。このことは、命令スクリ
プトおよび制御スクリプトについても同様である。ま
た、スクリプトの言語仕様は任意に設定可能であり、上
述した実施例に限定されるものではない。さらに、スク
リプト実行中に新たなスクリプトを生成して実行すると
いう処理は不可能となるが、スクリプトを指令情報に変
換する命令処理部13をコンパイラとする態様も可能で
ある。
In the above-described embodiment, some of the function scripts have been described, but the present invention is not limited to this, and information on characters overflowing from the display frame (number of characters, position from the beginning,
To obtain information such as coordinates), image information that extends beyond the display frame (judgment mask area determination, etc.), current character attributes (typeface, number of points, style, etc.), current image size, magnification, cutout mask, etc. It may be created as necessary. The same applies to the instruction script and the control script. Further, the language specification of the script can be set arbitrarily, and is not limited to the above-mentioned embodiment. Further, although it is impossible to generate and execute a new script during script execution, it is also possible to adopt a mode in which the instruction processing unit 13 for converting the script into command information is a compiler.

【0064】[0064]

【発明の効果】以上説明したように、本発明によれば、
命令処理部は、命令記憶部から予め設定されたルールを
満たしてページレイアウトが作成されるよう記述された
一連のスクリプトを読み出し、該一連のスクリプトを実
行することにより、レイアウト命令およびレイアウト関
数をレイアウト手段へ供給する。レイアウト手段は、画
像または文字等を表す被レイアウトデータ、および該被
レイアウトデータをページに配置するための表示枠に対
して前記レイアウト命令に応じたレイアウト処理を施し
てページレイアウトを作成するとともに、前記レイアウ
ト関数に要求されるパラメータを返す。また、命令処理
部は、前記レイアウト関数に対応して前記レイアウト手
段から返されるパラメータに基づいて、前記レイアウト
命令に対応した命令スクリプトおよび前記レイアウト関
数に対応した関数スクリプトの実行順序、および前記命
令スクリプトおよび前記関数スクリプトの引数を前記レ
イアウト手段から返されるパラメータに基づいて設定す
る制御スクリプトを実行する。このように、パラメータ
に基づいた処理が行われるため、一連のスクリプトに十
分な情報を記述しておけば、正確なページレイアウト処
理を自動的に行うことができる(請求項1)。
As described above, according to the present invention,
The instruction processing unit reads a series of scripts described so as to create a page layout satisfying a preset rule from the instruction storage unit, and executes the series of scripts to layout layout commands and layout functions. Supply to the means. The layout means performs layout processing according to the layout command on layout data representing images or characters, and a display frame for arranging the layout data on a page to create a page layout. Returns the parameters required by the layout function. Further, the instruction processing unit, based on a parameter returned from the layout means in correspondence with the layout function, an execution order of an instruction script corresponding to the layout instruction and a function script corresponding to the layout function, and the instruction script. And executing a control script that sets the arguments of the function script based on the parameters returned from the layout means. In this way, since the processing is performed based on the parameters, accurate page layout processing can be automatically performed by describing sufficient information in the series of scripts (claim 1).

【0065】また、前記命令処理部は前記一連のスクリ
プトを順次実行するとともに、実行する制御スクリプト
が前記増殖スクリプトであれば、該増殖スクリプトに応
じた新たなスクリプトを生成して前記一連のスクリプト
に付加する。したがって、例えば、表示枠から被レイア
ウトデータが溢れる場合に、新たな表示枠を設け、元か
らある表示枠と新たな表示枠とに、被レイアウトデータ
を分割して割り付けるといった、スクリプトのパラメー
タや実行順序を変更するだけでは実現できない処理を自
動的に行うことができる(請求項2)。
Further, the instruction processing unit sequentially executes the series of scripts, and if the control script to be executed is the proliferation script, a new script corresponding to the proliferation script is generated to generate the series of scripts. Add. Therefore, for example, when the layout data overflows from the display frame, a new display frame is provided, and the layout data is divided and allocated to the original display frame and the new display frame. It is possible to automatically perform a process that cannot be realized only by changing the order (claim 2).

【0066】さらに、命令処理部は、被レイアウトデー
タが対応する表示枠から溢れているか否かを調べるため
のスクリプトを実行し、その実行結果に基づいて、被レ
イアウトデータが対応する表示枠から溢れないよう作動
する。したがって、従来は、表示枠から被レイアウトデ
ータが溢れないよう人間が行っていた判断処理を自動的
に行うことができる(請求項3)。また、前記命令処理
部は、一連のスクリプトの実行をエラーによって中断す
ることがない。したがって、完全な無人化を行うことが
できる(請求項4)。
Further, the command processing unit executes a script for checking whether or not the layout data overflows the corresponding display frame, and based on the execution result, the layout data overflows the corresponding display frame. It works so as not to. Therefore, it is possible to automatically perform the determination process which is conventionally performed by a person so that the layout target data does not overflow from the display frame (claim 3). Further, the instruction processing unit does not interrupt the execution of the series of scripts due to an error. Therefore, complete unmanned operation can be performed (Claim 4).

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

【図1】本発明の一実施例による自動ページアップ装置
の機能構成を示すブロック図である。
FIG. 1 is a block diagram showing a functional configuration of an automatic page-up device according to an embodiment of the present invention.

【図2】本実施例による自動ページアップ装置の具体的
な構成を示すブロック図である。
FIG. 2 is a block diagram showing a specific configuration of the automatic page-up device according to the present embodiment.

【図3】本実施例による自動ページアップ装置を用いて
ページレイアウトを作成する処理の概略を説明するため
の処理図である。
FIG. 3 is a process diagram for explaining an outline of a process for creating a page layout using the automatic page-up device according to the present embodiment.

【図4】図3のステップSB3の処理において、被レイ
アウトデータが文字データである場合に為される処理に
ついて説明するための処理図である。
FIG. 4 is a process diagram for explaining a process performed when the layout target data is character data in the process of step SB3 of FIG.

【図5】図3のステップSB3の処理において、被レイ
アウトデータが画像データである場合に為される処理に
ついて説明するための処理図である。
FIG. 5 is a process diagram for explaining a process performed when the layout target data is image data in the process of step SB3 of FIG. 3.

【図6】図9に示すページレイアウトを作成する処理を
具体的に説明するための処理図である。
FIG. 6 is a process diagram for specifically explaining a process for creating the page layout shown in FIG.

【図7】図9に示すページレイアウトを作成する処理を
具体的に説明するための処理図である。
FIG. 7 is a process diagram for specifically explaining a process for creating the page layout shown in FIG.

【図8】ページレイアウトの一例を示す図である。FIG. 8 is a diagram showing an example of a page layout.

【図9】ページレイアウトの一例を示す図である。FIG. 9 is a diagram showing an example of a page layout.

【図10】ページレイアウトを作成する従来のシステム
の概略構成例を示すブロック図である。
FIG. 10 is a block diagram showing a schematic configuration example of a conventional system for creating a page layout.

【図11】従来のシステムによるページアップ処理の流
れを説明するための処理図である。
FIG. 11 is a processing diagram for explaining a flow of page-up processing by a conventional system.

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

11 レイアウト手段 12 命令記憶部 13 命令処理部 14 表示手段 15 指示入力手段 11 layout means 12 instruction storage section 13 instruction processing section 14 display means 15 instruction input means

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 9365−5H G06F 15/62 325 K (72)発明者 本橋 淳 東京都台東区台東一丁目5番1号 凸版印 刷株式会社内 (72)発明者 下崎 賢 東京都台東区台東一丁目5番1号 凸版印 刷株式会社内 (72)発明者 今井 崇人 東京都台東区台東一丁目5番1号 凸版印 刷株式会社内 (72)発明者 森 俊明 東京都台東区台東一丁目5番1号 凸版印 刷株式会社内 (72)発明者 指江 大介 東京都台東区台東一丁目5番1号 凸版印 刷株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Reference number within the agency FI Technical display location 9365-5H G06F 15/62 325 K (72) Inventor Jun Motohashi 1-5, Taito, Taito-ku, Tokyo No. 1 Inside Toppan Printing Co., Ltd. (72) Inventor Ken Shimozaki 1-5-1 Taito, Taito-ku, Tokyo Inside Toppan Printing Co., Ltd. (72) In-house Takato Imai 1-5-1 Taito, Taito-ku, Tokyo No. Toppan Printing Co., Ltd. (72) Inventor Toshiaki Mori 1-5-1 Taito, Taito-ku, Tokyo Toppan Printing Co., Ltd. (72) Daisuke Sashie 1-5-1 Taito, Taito-ku, Tokyo Toppan Imprint Co., Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 画像または文字等を表す被レイアウトデ
ータ、および該被レイアウトデータをページに配置する
ための表示枠に対してレイアウト命令に応じたレイアウ
ト処理を施してページレイアウトを作成するとともに、
レイアウト関数に要求されるパラメータを返すレイアウ
ト手段と、 前記レイアウト命令に対応する命令スクリプトと、前記
レイアウト関数に対応する関数スクリプトと、前記命令
スクリプトおよび前記関数スクリプトの実行順序、およ
び前記命令スクリプトおよび前記関数スクリプトの引数
を前記レイアウト手段から返されるパラメータに基づい
て設定する制御スクリプトとからなる一連のスクリプト
を記憶した命令記憶部と、 前記命令記憶部から前記一連のスクリプトを読み出し、
該一連のスクリプトを実行することにより、前記レイア
ウト命令および前記レイアウト関数を前記レイアウト手
段へ供給するとともに、前記レイアウト関数に対応して
前記レイアウト手段から返されるパラメータに基づいて
前記制御スクリプトを実行する命令処理部とを具備し、 前記命令記憶部に記憶された前記一連のスクリプトは、
予め設定されたルールを満たしてページレイアウトが作
成されるよう記述されることを特徴とする自動ページア
ップ装置。
1. A layout process is performed in accordance with a layout command on layout data representing images or characters, and a display frame for arranging the layout data on a page to create a page layout.
Layout means for returning parameters required for the layout function, an instruction script corresponding to the layout instruction, a function script corresponding to the layout function, the instruction script and the execution order of the function script, and the instruction script and the An instruction storage unit that stores a series of scripts consisting of a control script that sets the arguments of the function script based on the parameters returned from the layout means, and reads the series of scripts from the instruction storage unit,
An instruction to supply the layout instruction and the layout function to the layout means by executing the series of scripts, and to execute the control script based on a parameter returned from the layout means corresponding to the layout function. And a series of scripts stored in the command storage unit,
An automatic page-up device characterized in that a page layout is described so as to satisfy a preset rule.
【請求項2】 前記制御スクリプトには前記レイアウト
手段から返されるパラメータに基づいて新たなスクリプ
トを生成して前記一連のスクリプトに付加するための増
殖スクリプトが含まれ、 前記命令処理部は前記一連のスクリプトを順次実行する
とともに、実行する制御スクリプトが前記増殖スクリプ
トであれば、該増殖スクリプトに応じた新たなスクリプ
トを生成して前記一連のスクリプトに付加することを特
徴とする請求項1記載の自動ページアップ装置。
2. The control script includes a multiplication script for generating a new script based on a parameter returned from the layout means and adding the new script to the series of scripts, and the command processing unit includes the series of scripts. The automatic execution according to claim 1, wherein the scripts are sequentially executed, and if the control script to be executed is the multiplication script, a new script corresponding to the multiplication script is generated and added to the series of scripts. Page up device.
【請求項3】 前記関数スクリプトには被レイアウトデ
ータが対応する表示枠から溢れているか否かを調べるた
めのスクリプトが含まれており、 前記一連のスクリプトは、前記被レイアウトデータが対
応する表示枠から溢れているか否かを調べるためのスク
リプトを用いて前記被レイアウトデータが対応する表示
枠から溢れないよう記述されることを特徴とする請求項
1または2記載の自動ページアップ装置。
3. The function script includes a script for checking whether or not the layout data overflows a corresponding display frame, and the series of scripts includes a display frame corresponding to the layout data. 3. The automatic page-up device according to claim 1, wherein the layout target data is described so as not to overflow from the corresponding display frame by using a script for checking whether or not it overflows.
【請求項4】 前記命令処理部は、スクリプトを実行す
ることにより発生したエラー情報を前記命令記憶部に記
憶させ、前記一連のスクリプトの実行をエラーによって
中断することがないようにしたことを特徴とする請求項
1ないし3いずれかに記載の自動ページアップ装置。
4. The instruction processing unit stores error information generated by executing a script in the instruction storage unit so that execution of the series of scripts is not interrupted by an error. The automatic page-up device according to any one of claims 1 to 3.
JP6213072A 1994-09-06 1994-09-06 Automatic page up device Pending JPH0877331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6213072A JPH0877331A (en) 1994-09-06 1994-09-06 Automatic page up device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6213072A JPH0877331A (en) 1994-09-06 1994-09-06 Automatic page up device

Publications (1)

Publication Number Publication Date
JPH0877331A true JPH0877331A (en) 1996-03-22

Family

ID=16633084

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6213072A Pending JPH0877331A (en) 1994-09-06 1994-09-06 Automatic page up device

Country Status (1)

Country Link
JP (1) JPH0877331A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006209663A (en) * 2005-01-31 2006-08-10 Canon Inc Layout determining method, apparatus and program
JP2008282399A (en) * 1996-09-09 2008-11-20 Microsoft Corp Automatic layout and format setting of content for designing with medium
JP2014164423A (en) * 2013-02-22 2014-09-08 Dainippon Printing Co Ltd Composition device, layout change method, and layout change program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008282399A (en) * 1996-09-09 2008-11-20 Microsoft Corp Automatic layout and format setting of content for designing with medium
JP2006209663A (en) * 2005-01-31 2006-08-10 Canon Inc Layout determining method, apparatus and program
US8332743B2 (en) 2005-01-31 2012-12-11 Canon Kabushiki Kaisha Layout decision method, apparatus, and program
JP2014164423A (en) * 2013-02-22 2014-09-08 Dainippon Printing Co Ltd Composition device, layout change method, and layout change program

Similar Documents

Publication Publication Date Title
US6209010B1 (en) Computer implemented method for wrapping data to an arbitrary path defined by a page description language
US20030050934A1 (en) Method and system for flowing data to an arbitrary path defined by a page description language
US5974431A (en) Document composition system and method for composing a document by using vector data
JPH03268058A (en) Document creation method and device
US20050093860A1 (en) Information processing apparatus and method, program for executing said method, and storage medium storing said program
JPH0877331A (en) Automatic page up device
JPH08115323A (en) Automatic page up rule making device
CN114154095A (en) Page picture generation method, device, equipment and storage medium
JPS63139751A (en) Printing method in printing system
JP2707142B2 (en) Hidden line broken line processing method
JP2687755B2 (en) Print design system
JPH1027256A (en) Character input device
JP2802116B2 (en) Command input processing method
JP3004526U (en) Device for creating standard document including figures
JP3071801B2 (en) Character editing system
JPH08181847A (en) Information processing apparatus and information processing method
JPS63165852A (en) magazine editing system
JP3040624B2 (en) Pattern generator
JP3305858B2 (en) Automatic figure creation device and automatic figure creation method
JPH07244507A (en) Programming device for programmable controller
JPH01269983A (en) Text layout device
JPH02285414A (en) Key display processing system
JPS63165952A (en) Magazine editing system
JPH03161861A (en) Document processing device with table creation function
JPH05135034A (en) Document processing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040601