JPH03248262A - Document processor - Google Patents

Document processor

Info

Publication number
JPH03248262A
JPH03248262A JP2044537A JP4453790A JPH03248262A JP H03248262 A JPH03248262 A JP H03248262A JP 2044537 A JP2044537 A JP 2044537A JP 4453790 A JP4453790 A JP 4453790A JP H03248262 A JPH03248262 A JP H03248262A
Authority
JP
Japan
Prior art keywords
data
document
size
file
document data
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
JP2044537A
Other languages
Japanese (ja)
Inventor
Tadashi Yamakawa
正 山川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2044537A priority Critical patent/JPH03248262A/en
Publication of JPH03248262A publication Critical patent/JPH03248262A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To automatically determine a picture size to generate a document incorporating picture data by reading out stored specific picture data based on specific information included in document data to discriminate its size and generating the document to which size information is added. CONSTITUTION:Document data 144 without size information is read out from an auxiliary memory 4 by a processor 153 of a main memory 105, and picture data 141 is read out based on specific information included in data 144 and its size is discriminated. Picture area height 161 and picture area width 162 in a main memory 106 are referred based on the discrimination result to determine size information of the picture, and document data 142 with size information for composite document is generated which format commands which can be analyzed and executed by a formatter 151 are added to. Data 142 is edited by the formatter 151 to obtain laid-out document data 143, and data 143 is printed through a buffer 107 in accordance with a print program 152, and thus, a composite document including the picture whose size is automatically determined is printed.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は文書情報の組版・レイアウトなどを行うことが
できる文書処理装置に関し、特に図形情報などの非文書
要素も混合させた複合文書情報を処理できる文書処理装
置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a document processing device capable of typesetting and layout of document information, and in particular, to a document processing device capable of formatting and layout of document information, and in particular, processing of compound document information in which non-document elements such as graphic information are also mixed. The present invention relates to a document processing device that can process documents.

[従来の技術] 文書整形プログラムを利用して文書作成する代表的なも
のにTeXシステムがある(井芹昌信。
[Prior Art] A typical system for creating documents using a document formatting program is the TeX system (Masanobu Iseri).

大野俊治「汎用組版言語−TeX−J、計測と制御、V
ol、28. NO,3,pp、15−19 (198
9) ) 、このTeXシステムは汎用コンピュータ上
で動作するシステムで、例えば第9図のような構成をと
っている。第9図において、計算機バス201にCPU
202、コンソール203、補助メモリ204、プログ
ラム用主メモリ105、データ用の主メモリ206、プ
リンタ208への出力データを一時保持するバッファ2
07等が接続されている。ここで、コンソール203は
、オペレータにより操作されて各種情報を入力するキー
ボードなどの入力部と、システムの状態を表示してオペ
レータに伝えるCRTデイスプレィ等の出力部を備えて
いる。
Shunji Ohno “General purpose typesetting language-TeX-J, measurement and control, V
ol, 28. No. 3, pp. 15-19 (198
9) This TeX system is a system that operates on a general-purpose computer, and has a configuration as shown in FIG. 9, for example. In FIG. 9, a CPU is connected to the computer bus 201.
202, console 203, auxiliary memory 204, main memory 105 for programs, main memory 206 for data, buffer 2 that temporarily holds output data to printer 208
07 etc. are connected. Here, the console 203 includes an input section such as a keyboard that is operated by the operator to input various information, and an output section such as a CRT display that displays the system status and informs the operator.

以上の如(構成されたシステムにおいて、図形や画像等
の非文章要素を混在した、いわゆる複合文書を作成する
過程を、第10図のフローチャートを用いて説明する。
The process of creating a so-called compound document in which non-text elements such as figures and images are mixed in the system configured as described above will be explained using the flowchart shown in FIG.

ここでは、予め図形や画像を作成するプログラム(図示
せず)により作成するか、或は他のシステムで作成する
か、またはイメージスキャナ(図示せず)等で読取るこ
とにより図データ241を作成し、この図データ241
は補助メモリ204にファイルとして格納しておく。ま
た、フォーマツタ251のフォーマットコマンドを付加
した形式で、文章原稿である文章データ242を作成す
る。これは、エディタと呼ばれる文字例データ作成・編
集プログラム等(図示せず)を利用して作成され、この
文書データ242も補助メモリ204にファイルとして
格納される。
Here, the figure data 241 is created in advance by a program (not shown) that creates figures and images, by another system, or by reading it with an image scanner (not shown) or the like. , this figure data 241
is stored in the auxiliary memory 204 as a file. Further, text data 242, which is a text manuscript, is created in a format with the formatting command of the formatter 251 added. This document data 242 is created using a character example data creation/editing program (not shown) called an editor, and this document data 242 is also stored in the auxiliary memory 204 as a file.

この状態で処理が開始され、まずステップ5101でフ
ォーマツタ251を起動して、文書データ242を入力
する。これにより、フォーマツタ251は、この文書デ
ータ242の組版・レイアウトを行ない、文字や図形の
種類及びページ上の位置などを決定したレイアウト済の
文書データ243を補助メモリ204にファイルとして
出力する。次にステップ5102で、印刷プログラム2
52を起動して、レイアウト済文書データ243を読出
し、このレイアウト済文書データ243の情報に従って
、文字のパターンを選択してラスクイメージの形に展開
し、バッファ207の所定位置に書き込む。また、図デ
ータ241の印刷が指示されている場合は、補助メモリ
204から図データ241を読み込み、ラスクイメージ
の形に展開してバッファ207の所定位置に書き込む。
The process is started in this state, and first, in step 5101, the formatter 251 is activated and the document data 242 is input. Thereby, the formatter 251 typesets and layouts the document data 242, and outputs the laid-out document data 243, in which the types of characters and figures, their positions on the page, etc., have been determined, to the auxiliary memory 204 as a file. Next, in step 5102, print program 2
52 to read the laid out document data 243, select a character pattern according to the information in the laid out document data 243, develop it into a rask image, and write it into a predetermined position in the buffer 207. Further, when printing of the diagram data 241 is instructed, the diagram data 241 is read from the auxiliary memory 204, developed into a rask image, and written to a predetermined position in the buffer 207.

こうして、各ページ毎に全て展開が終了した時点でプリ
ンタ208にトリガなかけることにより文書281の印
刷が行なわれて記録出力される。
In this manner, when the development of each page is completed, the printer 208 is triggered to print the document 281 and output it as a record.

TeXシステムの中でも、フォーマットコマンドが比較
的簡単で、機能の高いLateXを例にとって、さらに
具体的に説明する。(参考文献り、Lamport:”
LaTeX: A Document Prepara
tionSystem、 Addisen−Wesle
y(1986) )第11図は文書データの一例を示し
た図である。図中、バックスラント(\)、アルファベ
ット名称及びプレース(()())で囲まれたパラメー
タがLaTeXのフォーマットコマンドである。この文
書データ242を“sample、 tex  という
名称のファイルに格納する。そしてオペレータがコンソ
ール203から“jlatex sample  と入
力するとLaTeXが起動され、レイアウト済文書デー
タ243が“sample、 dvi  という名称の
ファイルに出力される。そして、“texpr  sa
mple とオペレータがコンソール203から入力す
ると、印刷プログラム252が起動される。これにより
、第12図に示したような文書が印刷される。
Among the TeX systems, LateX, which has relatively simple formatting commands and high functionality, will be explained in more detail by taking as an example. (References, Lamport:”
LaTeX: A Document Prepara
tionSystem, Addisen-Wesle
y (1986)) FIG. 11 is a diagram showing an example of document data. In the figure, parameters surrounded by a backslant (\), an alphabetical name, and places (()()) are LaTeX format commands. This document data 242 is stored in a file named "sample, tex." Then, when the operator inputs "jlatex sample" from the console 203, LaTeX is started and the laid out document data 243 is output to a file named "sample, dvi." and “texpr sa
When the operator inputs mple from the console 203, the print program 252 is started. As a result, a document as shown in FIG. 12 is printed.

第12図における山の上の雲がかかったような絵は、図
データ241を展開した絵の一例を示しており、例えば
“sample、 tiff”という名称のファイルに
格納しておく。そして、文書データ242中では、第1
1図に示したように、 \tiff(file=sample、 tiff、 
width=90mm。
The picture in FIG. 12 that looks like a cloud over a mountain is an example of a picture developed from the picture data 241, and is stored in a file named "sample, tiff", for example. In the document data 242, the first
As shown in Figure 1, \tiff(file=sample, tiff,
Width=90mm.

height=100mm)。height=100mm).

と記述される。このコマンド中において、\tiffは
TlFF形式(ラスクイメージデータの記述形式の一種
)で記述された図を取込むことを示している。そして、
幅90mm、高さ100mmの領域を文書データ242
中に確保してレイアウトを行ない、そこに、図データ2
41を展開して印刷することが指示されている。
It is described as In this command, \tiff indicates that a diagram written in TlFF format (a type of description format for rask image data) is to be imported. and,
Document data 242 is an area with a width of 90 mm and a height of 100 mm.
Secure it inside, perform the layout, and place the figure data 2 there.
41 is instructed to be expanded and printed.

以上のように、文書原稿の文書データ242中に、図形
や絵のデータが格納されているファイルと、その図デー
タのデータ形式の種類と、それをレイアウトするための
領域の大きさを表わす情報(領域幅や高さ)をフォーマ
ットコマンドの形で予め記述してお(ことによって、複
合文書を作成していた。
As described above, in the document data 242 of the document manuscript, there is information indicating the file in which figure and picture data are stored, the data format type of the figure data, and the size of the area for laying it out. (region width and height) were written in advance in the form of format commands (by which a compound document was created).

尚、本来のLaTeXには、TlFF形式で記述された
ラスクイメージデータをレイアウトして印刷する機能は
ないが、\5pecialという拡張用のコマンドが用
意されている。また、既にあるコマンドを組合わせられ
るマクロ機能を用いることにより、前述したようなラス
クイメージをレイアウトするような新しいコマンドを定
義することができる。
Although the original LaTeX does not have a function to layout and print rask image data written in TlFF format, an extension command called \5special is provided. Furthermore, by using a macro function that allows you to combine existing commands, it is possible to define new commands such as those for laying out a rask image as described above.

そこで、この\5pecialコマンドを用いて、図デ
ータ241の大きさやファイル名を印刷プログラム25
2に伝達できるようにした上で、図データ241を貼込
む領域を空けるように、コマンドを組合せて\tiff
 (・・・)というコマンドを定義した。そして、これ
らの\5pecialコマンドを受けて、TlFF形式
のデータを展開できるように印刷プログラム252を拡
張している。
Therefore, by using this \5special command, the size and file name of the diagram data 241 can be specified in the print program 25.
2, and then combine the commands \tiff to leave an area for pasting the figure data 241.
A command called (...) was defined. In response to these \5special commands, the print program 252 is extended so that it can develop data in TlFF format.

また、LaTeXでは、ページサイズや文書データのフ
ォントの種類などを切り換えられるようになっている。
Furthermore, LaTeX allows switching of page size, font type of document data, etc.

例えば、第11図の文書データの第1行目の\docu
mentstyle [fig](jarticle)
の記述は、“jarticle、 sty”というファ
イル(図示せず)に、ページサイズや本文のフォントの
種類をはじめとして組版・レイアウトのための基本的情
報が入っていることを示し、オプション的な情報が“f
ig、 sty”というファイル(図示せず)に入って
いることを表わしている。例えば、“fig、 sty
”には、前述の\tiffのコマンドの定義が入ってい
る。従って、ここの名称を変えて、レイアウト情報の読
込み先を変え、それによってページサイズを変更したり
して、レイアウトを変更することもできる。また、“j
article、 sty″を書換えてもレイアウトを
変更できることはもちろんである。
For example, \docu in the first line of the document data in Figure 11
mentstyle [fig] (jarticle)
This description indicates that the file "jarticle, sty" (not shown) contains basic information for typesetting and layout, including page size and font type for the main text, and optional information. is “f”
ig, sty” (not shown). For example, “fig, sty”
” contains the definition of the \tiff command mentioned above. Therefore, you can change the layout by changing the name here, changing the layout information reading destination, and changing the page size accordingly. You can also do “j
Of course, the layout can also be changed by rewriting "article" and "sty".

[発明が解決しようとする課題] しかしながら、前述した実施例では、図データが所定の
データ形式でファイルに格納されて準備されても、この
図データを文書に取り込むには、図の大きさを実測しな
ければならない。即ち、第11図で前述したように、図
データ241を文書中に取込むには、図データを格納し
ているファイルの名称と合せて、これを貼り込む領域の
大きさを指定しなければならないからである。一般に、
図データ241は文書データを作成するプログラムとは
別のプログラムを用いて作成されているため、この図デ
ータ241の大きさを測定するには、−星図データ24
1を印刷し、これを実測する必要がある。こうして、図
データ241の大きさを測定してその大きさを判別した
後、文書データを作成するプログラムを起動して、その
文書データ中に、その図データ241のファイル名、図
データ241の大きさを指定するコマンドを挿入して、
文書への貼り込みを指示する必要がある。このため、特
に図データを修正したり、他の図データと置換えたりす
るような場合、図データのファイル名が変更されな(て
も、再度前述した手順により文書データを修正する必要
がある。
[Problem to be Solved by the Invention] However, in the above-described embodiment, even if the diagram data is stored in a file in a predetermined data format and prepared, it is necessary to change the size of the diagram in order to import this diagram data into a document. Must be measured. That is, as described above with reference to FIG. 11, in order to import the figure data 241 into a document, you must specify the size of the area in which it will be pasted together with the name of the file that stores the figure data. This is because it will not happen. in general,
Since the chart data 241 is created using a program different from the program that creates the document data, in order to measure the size of this chart data 241, - star map data 24
It is necessary to print out 1 and measure it. In this way, after measuring the size of the figure data 241 and determining its size, a program for creating document data is started, and the file name of the figure data 241 and the size of the figure data 241 are written in the document data. Insert a command to specify the
You need to instruct it to paste into the document. Therefore, especially when modifying graphic data or replacing it with other graphic data, it is necessary to modify the document data again using the procedure described above even if the file name of the graphic data is not changed.

本発明は上記従来例に鑑みてなされたもので、文書デー
タ中に組込まれるべき画像データを特定するだけで、自
動的のその画像サイズを決定して、画像データを組込ん
だ文書データを作成できる文書処理装置を提供すること
を目的とする。
The present invention has been made in view of the above-mentioned conventional example, and by simply specifying image data to be incorporated into document data, the image size is automatically determined and document data incorporating the image data is created. The purpose is to provide a document processing device that can.

[課題を解決するための手段] 上記目的を達成するために本発明の文書処理装置は以下
の様な構成からなる。即ち、 文書データを入力し、該文書データの組版・レイアウト
を行って出力する文書処理装置であって、画像データを
記憶する記憶手段と、前記文書データに含まれる前記画
像データを特定する特定情報に基づいて前記記憶手段よ
り前記特定された画像データを読出す読出手段と、前記
読出手段により読出された画像データのサイズを判別す
る判別手段と、前記判別手段により判別されたサイズを
基に、前記特定情報にサイズ情報を付加した文書データ
を作成する文書作成手段とを有する。
[Means for Solving the Problems] In order to achieve the above object, a document processing device of the present invention has the following configuration. That is, it is a document processing device that inputs document data, performs typesetting and layout of the document data, and outputs the document data, comprising a storage means for storing image data, and specific information for specifying the image data included in the document data. reading means for reading out the identified image data from the storage means based on; a determining means for determining the size of the image data read by the reading means; based on the size determined by the determining means; and document creation means for creating document data in which size information is added to the specific information.

[イ乍用] 以上の構成において、入力された文書データに含まれる
画像データを特定する特定情報に基づいて、組込まれる
べき画像データを記憶している記憶手段より、その特定
された画像データを読出して、この読出された画像デー
タのサイズを判別する。そして、このサイズを基に、そ
の特定情報にそのサイズ情報を付加した文書データを作
成するように動作する。
[For use] In the above configuration, based on the specific information that specifies the image data included in the input document data, the specified image data is stored from the storage means that stores the image data to be incorporated. The size of the read image data is determined. Then, based on this size, it operates to create document data in which the size information is added to the specific information.

[実施例] 以下、添付図面を参照して本発明の好適な実施例を詳細
に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[文書処理システムの説明(第1図、第2図)]第1図
は実施例の文書処理システムの構成を示すブロック図で
ある。なお、このシステムは第9図に示した従来のシス
テムと名称が同じ部分は共通しているため、それらの説
明を省略する。但し、主メモリ105にはフォーマツタ
のためのブリプロセッサ153を含み、補助メモリ10
4には図データ141のサイズを含まない形式で記述し
た、サイズ無文書データ144を含み、主メモリ106
に、図データを貼込むための領域の高さと幅をそれぞれ
保持する部分161,162を含むところが異なってい
る。
[Description of document processing system (FIGS. 1 and 2)] FIG. 1 is a block diagram showing the configuration of a document processing system according to an embodiment. Note that this system shares parts with the same names as the conventional system shown in FIG. 9, so a description thereof will be omitted. However, the main memory 105 includes a preprocessor 153 for formatting, and the auxiliary memory 10
4 includes size undocumented data 144 written in a format that does not include the size of the diagram data 141, and is stored in the main memory 106.
The difference is that they include portions 161 and 162 that respectively hold the height and width of the area for pasting graphic data.

この構成において、複合文書を作成する過程を第2図の
フローチャートを用いて説明する。
In this configuration, the process of creating a compound document will be explained using the flowchart shown in FIG.

補助メモリ104に記憶されているサイズ無文書データ
144は、特定の形式で記述された図形や画像であって
、文書中に混在される図データ141の格納先及びその
記述形式の情報を表わしたコマンドを含んでいる。ここ
では、このコマンドには図形や画像の高さや幅の情報が
含まれていない。まずステップS1でこのサイズ無文書
データ144を入力データとして、ブリプロセッサ15
3を起動する。これにより、ブリプロセッサ153は、
補助メモリ104よりサイズ無文書データ144を読込
み、その中で指定された図の指定コマンドで特定された
図データ141を読込む。
Sizeless document data 144 stored in the auxiliary memory 104 is a figure or image described in a specific format, and represents information on the storage location and description format of the figure data 141 mixed in the document. Contains commands. Here, this command does not include information about the height or width of the shape or image. First, in step S1, this size undocumented data 144 is input to the briprocessor 15.
Start 3. As a result, the briprocessor 153
The sizeless document data 144 is read from the auxiliary memory 104, and the figure data 141 specified by the designation command of the figure specified therein is read.

そして、図のサイズ情報を求め、フォーマツタ151が
解釈実行できるようにフォーマット・コマンドを付は替
えたサイズ付文書データ142を出力する。このサイズ
付文書データ142は従来例の説明したときに述べた、
例久ば第11図に示すようなデータであり、従来よりサ
イズ付の文書データとして、オペレータ等により作成さ
れた文書データである。従って、これ以後のステップS
2及びS3は、第10に示した従来のフローチャートの
ステップ5IOIと5102と同じ処理を実行する。こ
うして、最終的に、例えば第12図に示したような複合
文書データが記録出力される。
Then, size information of the diagram is obtained, and document data 142 with size is output with formatting commands added and changed so that the formatter 151 can interpret and execute it. This size-added document data 142 is as described when explaining the conventional example.
An example of such data is the one shown in FIG. 11, which is conventionally created by an operator or the like as document data with a size. Therefore, the subsequent step S
2 and S3 execute the same processing as steps 5IOI and 5102 of the conventional flowchart shown in No. 10. In this way, compound document data as shown in FIG. 12, for example, is finally recorded and output.

[動作説明 (第1図〜第3図)] 本実施例のブリプロセッサ153によって実行される処
理に関する説明を第3図のフローチャートを参照して行
う。また、本実施例におけるサイズ無文書データ144
の具体的な記述例を第4図に示す。第4図のサイズ無文
書データ144と、第11図に示したサイズ付文書デー
タ142の異なる点は、図データの記述が、 \tiff (sample、 tiff)というよう
に、図データ141がTlFF形式であることを示すコ
マンドのパラメータに、 sample、 tiff”
というファイル名しか記述されていない点にある。従っ
て、ブリプロセッサ153は、このコマンドを、図形サ
イズとファイル名をパラメータとして有する形のコマン
ドに置換えてサイズ付文書データ142を作成し、補助
メモリ104のファイルに出力するように動作する。
[Operation Description (FIGS. 1 to 3)] The processing executed by the preprocessor 153 of this embodiment will be described with reference to the flowchart in FIG. 3. In addition, the size undocumented data 144 in this embodiment
A specific example of the description is shown in FIG. The difference between the sizeless document data 144 shown in FIG. 4 and the document data with size 142 shown in FIG. "sample, tiff" in the command parameters indicating that
The problem is that only the file name is written. Therefore, the briprocessor 153 replaces this command with a command having the graphic size and file name as parameters, creates the sized document data 142, and operates to output it to a file in the auxiliary memory 104.

以下、第3図のフローチャートに基づいて説明する。な
お、この処理を実行する制御プログラムは、ブリプロセ
ッサ153のプログラムメモリ153aに記憶されてい
る制御プログラムによって実行される。
The following description will be made based on the flowchart shown in FIG. Note that a control program for executing this process is executed by a control program stored in the program memory 153a of the preprocessor 153.

まずステップS10で、入力データの原稿、即ちサイズ
無文書データ144を1単位読込む。ここで、原稿の一
単位とは、TeXの文書データのコマンド及び文書内容
の文字列の文字等のいわゆるトークンである。即ち、こ
のステップSIOはTeXのトークン切り出しルーチン
(字句解析プログラム)を用いても実現できる。また、
そこまで精密に文字列を切り出さな(とも、例えば連続
するバックスラッシュ(\\)、バックスラッシュに続
いて連続するアルファベット、改行文字、或は以上の3
つのいずれかで区切られる文字列というように、4通り
のパターンの文字列を単位として読込んでもよい。
First, in step S10, one unit of the original input data, that is, the size blank document data 144 is read. Here, one unit of a document is a so-called token such as a command of TeX document data and a character of a character string of document contents. That is, this step SIO can also be realized using a TeX token extraction routine (lexical analysis program). Also,
Don't cut out the string with such precision (for example, consecutive backslashes (\\), consecutive alphabets following a backslash, line feed characters, or any of the three above).
It is also possible to read character strings with four different patterns as a unit, such as character strings separated by one of the four patterns.

こうして原稿の1単位が読込まれるとステップSllに
進み、入力が終了したかを調べ、入力終了でなければス
テップS12に進むが、入力終了のときは、本プログラ
ムを終了する。入力があったときはステップS12で、
金入力した原稿の一単位は、図を指定するコマンドであ
るかどうか判別する。本例では、第4図に示したように
、TlFF形式の図データであることを指定するコマン
ド“\tiff”を図形や画像の図の指定コマンドとし
ている。このコマンド以外の時はステップ816に進み
、ステップSIOで入力した原稿の一単位をそのまま補
助メモリ104中のファイルに出力してステップSIO
に戻る。このファイルは、サイズ付文書データ142を
格納すべきファイルである。なお、本プログラムの実行
前にサイズ付文書データ142が存在している場合はこ
れに上書きし、このファイルが作成されていなどきは新
たに作成して、本プログラムにより作成されるサイズ付
文書データの出力光とする。
When one unit of the original is read in this way, the process proceeds to step Sll, and it is checked whether the input has been completed. If the input has not been completed, the process proceeds to step S12, but if the input has been completed, the program is terminated. When there is an input, in step S12,
It is determined whether the input unit of the manuscript is a command for specifying a figure. In this example, as shown in FIG. 4, the command "\tiff", which specifies that the data is TlFF format graphic data, is used as the graphic or image designation command. For commands other than this one, the process advances to step 816, where one unit of the document input in step SIO is output as is to a file in the auxiliary memory 104, and step SIO is executed.
Return to This file is a file in which the size-added document data 142 should be stored. Note that if sized document data 142 exists before this program is executed, it will be overwritten, and if this file has not been created, a new one will be created to create the sized document data created by this program. Let the output light be .

一方、ステップS12で、原稿の一単位が図を指定する
コマンドの場合はステップS13に進み、ステップS1
7と同じく、図の指定コマンドをそのままの形で出力フ
ァイルに書き込む。次にステップS14に進み、図の指
定コマンドに付随している図の指定パラメータを原稿よ
り読込む。
On the other hand, in step S12, if one unit of the document is a command specifying a figure, the process advances to step S13, and step S1
As in 7, write the specified command in the figure as is to the output file. Next, the process advances to step S14, and the figure specification parameters accompanying the figure specification command are read from the original document.

このパラメータは第4図からも明らかなように、左プレ
ース(()と右プレース())で囲まれた文字列であり
、左プレースが出てくるまで読み飛ばした後、右プレー
スが入力できるまで取込む。
As is clear from Figure 4, this parameter is a character string surrounded by left place (() and right place ()), and after reading until the left place appears, the right place can be input. Take in up to

これにより、左プレースと右プレースとで囲まれた文字
列(第4図では、sample、tiff )が図デー
タのファイル名を表わしているので、ステップS15で
は、このファイル名の図データファイルをオーブンして
、その中身をTlFF形式のデータとして図データ14
1を読込み、図のサイズを求める。
As a result, the character string surrounded by the left place and the right place (sample, tiff in FIG. 4) represents the file name of the diagram data, so in step S15, the diagram data file with this file name is opened. The contents are converted into TlFF format data in Figure Data 14.
1 and find the size of the diagram.

これは、例えばTlFF形式の場合、ラスクイメージに
先だって、ラスクイメージの高さと幅の情報がコード化
されて記述されているので、これをデコードすることに
よって、図形の高さと幅を知ることができる。そして、
この高さを図領域高161に保持し、幅を図領域幅16
2に記憶する。例えば、図データの高さが90mm、幅
が10On++nであれば、図領域高1619図領域幅
162にそれぞれ”9o”、“100”を記憶する。そ
して、図データ141のファイルをクローズする。
For example, in the case of the TlFF format, the height and width information of the rask image is encoded and described before the rask image, so by decoding this, the height and width of the figure can be known. . and,
Keep this height as figure area height 161, and change the width to figure area width 16.
Store in 2. For example, if the height of the figure data is 90 mm and the width is 10On++n, "9o" and "100" are stored in the figure area height 161 and figure area width 162, respectively. Then, the file of diagram data 141 is closed.

次にステップS16では、ステップS14で入力したフ
ァイル名、ステップS15で求めた図の高さと幅に基づ
き、図の指定コマンドのパラメータを作成して出力ファ
イルに出力する0例えば、第4図の\tiff (sa
mple、 tiff)コマンドは、前述したように、
図データ141のファイル名がsample、tiff
 ” 、高さが100mm、幅が90mmのときは“(
file= sample、 tiff 、 widt
h=90mm。
Next, in step S16, based on the file name input in step S14 and the height and width of the figure obtained in step S15, parameters for the figure specification command are created and output to an output file. tiff (sa
mple, tiff) commands, as mentioned above,
The file name of the diagram data 141 is sample, tiff.
”, when the height is 100mm and the width is 90mm, “(
file = sample, tiff, widt
h=90mm.

height=100mm)”というようなコマンドに
変換して、文字列の形で出力ファイルに書き出す。そし
て、ステップSIOにもどって前述した処理を繰り返す
height=100mm)" and writes it to an output file in the form of a character string. Then, the process returns to step SIO and the above-described process is repeated.

以上のようにすることで、文書データ中に図形や画像等
の図データを混在させた複合文書データを作成したいと
き、文書データには図形・画像のデータを格納したファ
イル名のみを書いておくだけでよ(、前もって図形や画
像データの大きさを求める必要がなくなる。
By doing the above, when you want to create compound document data in which figure data such as figures and images are mixed in the document data, write only the file name that stores the figure/image data in the document data. (There is no need to calculate the size of the figure or image data in advance.)

尚、本実施例において、図の指定コマンドとして、Tl
FF形式の図データを文書中に混在させる“\tiff
 (・・・)”1種類であることを前提に説明したが、
本発明はこれに限定されるものでなく、複数種類であっ
てもかまわない。例えば、線画図形の代表的な記述形式
であるCGM (コンピュータ・グラフィクス・メタフ
ァイル)で記述されたファイルを取扱う場合、この形式
の図データを文書中に混在させるコマンドを“\cgm
(・・・)”というように定義しておき、ステップS1
2で、“\tiff”も“\cgm”も図の指定コマン
ドとみなせばよい。
In this embodiment, Tl is used as the specified command in the figure.
Mixing FF format figure data in a document “\tiff”
(...)"I explained it on the assumption that there is only one type, but
The present invention is not limited to this, and multiple types may be used. For example, when handling a file written in CGM (Computer Graphics Metafile), which is a typical description format for line drawing figures, use the command "\cgm" to mix diagram data in this format in the document.
(...)" and step S1
In 2, both "\tiff" and "\cgm" can be regarded as commands for specifying the diagram.

即ち、ステップS12で図の指定コマンドが“\tif
f”ならば入力したファイルの内容がTlFF形式のデ
ータと解釈して、前述したようにして図データのサイズ
を求める。国指定コマンドが“\cgm”ならば入力し
たファイルの内容がCGM形式のデータと解釈して、図
データのサイズを求めればよい。また、線図形の大きさ
は、描画された線図形に内接する最小矩形の高さと、幅
とにより決定される。このように、データ形式別に、そ
れぞれ図形の高さと幅を算出すればよい。
That is, in step S12, the specified command in the figure is “\tif
f”, the contents of the input file are interpreted as data in TlFF format, and the size of the figure data is calculated as described above.If the country specification command is “\cgm”, the contents of the input file are interpreted as data in CGM format. The size of the diagram data can be calculated by interpreting it as data.Also, the size of a line figure is determined by the height and width of the minimum rectangle inscribed in the drawn line figure.In this way, data The height and width of each figure can be calculated for each format.

また、1つのファイルに複数個の図形が入っている場合
でも、基本の文書データには対象とする図形や絵を特定
する情報のみを記述し、フォーマツタのブリプロセッサ
でサイズ情報をつけ加えるようにする。
Also, even if one file contains multiple shapes, write only the information that specifies the target shape or picture in the basic document data, and use Formattuta's pre-processor to add size information. .

例エバ、DTPシステA(7)EZPS−3200(商
品名)では、各ページにそれぞれ独立の図形領域をとり
、それぞれの図形領域(これを固定枠と呼ぶ)に図形や
画像を記述することができる。
For example, in EVA, DTP System A (7) EZPS-3200 (product name), each page has an independent graphic area, and figures and images can be written in each graphic area (this is called a fixed frame). can.

しかも、こうして作成した文書データである文書ファイ
ルには、複数個の図データが含まれる。このような図デ
ータを、別のフォーマツタを用いて組版・レイアウトす
る場合には、ファイル名と頁と頁内の固定枠の順番の3
つ組で対応する図が定まる。ここで、例えば“samp
le、 ezps  という文書ファイルの5頁の3番
目の固定枠の図を、元の文書データで下記のコマンド \ezpsfig(sample、ezps 5 3)
により記述しておく。この時、図データの大きさが高さ
120mm、幅80mmのときは、コマンド\ezps
fig(file=sample、 ezps、 pa
ge=5゜koteino=3.height=120
mm、width=80 mm)がフォーマツタのブリ
プロセッサ153で更新され、これによってフォーマツ
タにより組版・レイアウトが行われる。そして、最終的
に印刷プログラム152が、ファイル名(sample
、 ezps )ページ(5)、固定枠番号(3)を受
取って対象となる図データをラスクイメージに展開する
Moreover, the document file that is the document data created in this way includes a plurality of pieces of diagram data. When formatting and laying out such figure data using another formatter, the following 3 types of file name, page, and fixed frame order within the page should be used.
The corresponding figure is determined by the set. Here, for example, “samp
Create the third fixed frame diagram on page 5 of the document file le, ezps using the original document data using the following command \ezpsfig (sample, ezps 5 3)
Let us describe it as follows. At this time, if the size of the diagram data is 120 mm in height and 80 mm in width, use the command \ezps
fig(file=sample, ezps, pa
ge=5゜koteino=3. height=120
mm, width=80 mm) is updated by the formatter's briprocessor 153, and thereby the formatter performs typesetting and layout. Finally, the print program 152 prints the file name (sample
, ezps ) page (5) and fixed frame number (3) are received and the target diagram data is developed into a rask image.

この場合、ステップS12では“\ezpsfigも図
の指定コマンドとして解釈し、ステップS13では、フ
ァイル名、ページ数、固定枠番号が空白でそれぞれ区切
られているものとして分解して解釈する。次に、ステッ
プS14では、入力したファイルをEZPSの文書形式
として解釈し、対応するページの対応する固定枠の図形
の大きさを求める。この場合、図形の外接最小矩形を求
めなくとも、固定枠の高さと幅を図データの大きさとし
て利用してもよい、そしてステップS15で、ファイル
名、ページ数、固定枠番号、高さ、幅のパラメータを出
力ファイルに出力する。
In this case, in step S12, "\ezpsfig is also interpreted as a diagram specification command, and in step S13, the file name, page number, and fixed frame number are decomposed and interpreted as being separated by spaces.Next, In step S14, the input file is interpreted as an EZPS document format, and the size of the figure in the corresponding fixed frame of the corresponding page is determined.In this case, the height of the fixed frame and The width may be used as the size of the figure data, and in step S15, the parameters of the file name, number of pages, fixed frame number, height, and width are output to an output file.

〈第2の実施例〉 第5図(A)〜(F)及び第6図は本発明の第2の実施
例を説明するための図である。
<Second Embodiment> FIGS. 5(A) to 5(F) and FIG. 6 are diagrams for explaining a second embodiment of the present invention.

前述の第1図〜第4図を参照して説明した実施例では、
図の指定コマンド以外は、フォーマツタ151が解釈で
きるフォーマットコマンドを用いて、文書の原稿である
文書データを作成することを前提にしていた。しかし、
この第2の実施例では、フォーマツタ151とは独立な
記述形式で文書を記述した文書データを用いる。
In the embodiment described above with reference to FIGS. 1 to 4,
It is assumed that document data, which is the original document, is created using formatting commands that can be interpreted by the formatter 151, except for the designated commands shown in the figure. but,
In this second embodiment, document data in which a document is described in a description format independent of the formatter 151 is used.

第6図はフォーマツタ151に独立な記述形式で記述し
た文書データのいち一例を示した図である。図中、“く
”と“〉”で英字が囲まれたものをスタートタグと呼び
、“</〉”をエンドタグと呼ぶ。ここで、文書内容の
各断片は必ずスタートタグと、これに対応したエンドタ
グとで囲まれており、スタートタグとエンドタグで囲ま
れたものも1つの文書内容の断片とみなす。また、スタ
ートタグとして記述された英字列は、これとエンドタグ
〈/〉で囲む文書内容の性質(例えば、文書であること
を示すdocumentや、図データであることを示す
figure)や、他の断片との関係を表わす(暗示す
る)名称となっている。
FIG. 6 is a diagram showing an example of document data written in a description format independent of the formatter 151. In the figure, an alphabetic character surrounded by "ku" and ">" is called a start tag, and "</>" is called an end tag. Here, each fragment of document content is always surrounded by a start tag and a corresponding end tag, and a fragment surrounded by a start tag and an end tag is also considered to be a single document content fragment. In addition, the alphanumeric character string written as a start tag can be used to indicate the nature of the document content (for example, document indicating that it is a document, figure indicating that it is graphic data), or other fragments that are enclosed by this and the end tag (/). It is a name that expresses (implies) a relationship with.

例えば、文書内容全体は「文書」を表わす“docum
ent”というスタートタグと、エンドタグ〈ハで囲ま
れている。また、この文書は、2つの段階からなってい
る。これは、1段落」を表わす”<par>”というス
タートタグと、エンドタグ〈/〉で囲まれた文書断片が
2つ、“<document>”というスタートタグに
続いて記述されていることかられかる。なお、図措定は
、“<tiff>”というスタートタグと、エンドタグ
〈/〉とにより、TlFF形式で記述された画像のファ
イル名を囲んで表現する形態をとっている。
For example, the entire document content is "docum" which represents "document".
The document is surrounded by a start tag ``ent'' and an end tag 〈C. Also, this document consists of two stages. This can be seen because two document fragments surrounded by /> are written following the start tag "<document>". Note that the image format is expressed by enclosing the file name of the image described in the TlFF format using a start tag "<tiff>" and an end tag </>.

このような記述形式で記述された文書データを入力し、
フォーマツタ151が解釈できる形式に変換するフォー
マツタ・ブリプロセッサ152による変換処理を、第5
図(A)〜第5図(F)のフローチャートを用いて説明
する。なお、この第2の実施例のシステム構成は第1図
と変わりがなく、全体的な処理フローも第2図と同一で
あるため、これらを参照しながら説明する。但し、サイ
ズ無文書データ144の構成は第6図に示した内容とな
り、第2図のステップS1では、第5図(A)〜第5図
(F)で説明する制御を行なうフォーマツタ・ブリプロ
セッサ153を起動する。
Input document data written in such a description format,
The conversion processing by the formatter/briprocessor 152, which converts the formatter to a format that can be interpreted by the formatter 151, is performed by the fifth
This will be explained using flowcharts shown in FIGS. 5(A) to 5(F). The system configuration of this second embodiment is the same as that in FIG. 1, and the overall processing flow is also the same as in FIG. 2, so the explanation will be made with reference to these. However, the structure of the size undocumented data 144 is as shown in FIG. 6, and in step S1 of FIG. Start 153.

このフォーマツタブリプロセッサ153が主メモリ10
5に格納されているとする。
This formatting processor 153 is the main memory 10
Assume that it is stored in 5.

ブリプロセッサの処理は第5図(A)に示した制御フロ
ーチャートに従って開始される。ここでは、補助メモリ
104中のファイルに格納されたサイズ無文書データ1
44を入力し、その結果を補助メモリ104中のファイ
ルにサイズ付文書データ142として格納するものであ
る。まず、ステップS31で、サイズ無文書データ14
4よりルコード入力する。ここで、ルコードとは、スタ
ートタグ、エンドタグ、改行文字及びこれらの3種の要
素に区切られた任意の文字列のいずれかからなる4種類
の要素とする。
The processing of the briprocessor is started according to the control flowchart shown in FIG. 5(A). Here, the size undocumented data 1 stored in the file in the auxiliary memory 104 is
44 is input, and the result is stored in a file in the auxiliary memory 104 as document data with size 142. First, in step S31, the size undocumented data 14
Enter the code from step 4. Here, the word code refers to four types of elements consisting of any one of a start tag, an end tag, a new line character, and an arbitrary character string divided into these three types of elements.

即ち、サイズ無文書データ144を1文字ずつ読込み、
上述した要素に基づいて、これらの文書をレコード単位
に区切る。ステップS32では、入力したレコードのス
タートタグが文書、即ち、“<document>”か
どうかをみて、文書データでないときステップS34の
エラー処理に進む。文書データのときはステップS33
に進み、document(文書)処理のサブルーチン
をコールする。このサブルーチンの終了時点で全ての入
力が読込まれ、フォーマツタ151が解釈可能なサイズ
付文書データ142が補助メモリ104中のファイルに
出力されてしまっている。そして、入出カフアイルをク
ローズして(図示せず)ブリプロセッサ153の処理を
終了する。なお、ステップS32で文書データでなかっ
たときは、ステップS31に戻って“<documen
t>”が入力されるまで、入力データを無視するように
構成してもよい。
That is, the sizeless document data 144 is read character by character,
These documents are divided into records based on the above-mentioned elements. In step S32, it is checked whether the start tag of the input record is a document, ie, "<document>", and if it is not document data, the process advances to step S34 for error processing. If it is document data, step S33
, and calls the document processing subroutine. At the end of this subroutine, all inputs have been read, and the sized document data 142 that can be interpreted by the formatter 151 has been output to a file in the auxiliary memory 104. Then, the input/output cuff file is closed (not shown) and the processing of the pre-processor 153 is ended. Note that if it is not document data in step S32, the process returns to step S31 and “<document
It may be configured to ignore input data until t>'' is input.

第5図(B)はdocument処理を示すサブルーチ
ンのフローチャートである。
FIG. 5(B) is a flowchart of a subroutine showing document processing.

まず、最初ステップS40で、フォーマットコマンドの
最初部分を出力ファイルに出力する。
First, in step S40, the first part of the format command is output to an output file.

ここでは、例えば、 \document 5tyle[figl (jar
ticle)\begin (document) を出力する。そして、ステップS41でルコード入力す
る。これは第5図(A)のステップS31で説明したの
同じ動作である。以後、このルコードを入力する処理ス
テップはすべて同様の処理である。次に、ステップS4
2で入力レコードがエンドタグ〈ハかどうかを見る。エ
ンドタグのときはステップS43に進み、文書データの
最後であることを示す文末コマンド、即ち“\end(
document)”を出力ファイル(サイズ付文書デ
ータ142)に出力して、このサブルーチンを抜ける。
Here, for example, \document 5style[figl (jar
output (ticle)\begin (document). Then, in step S41, a code is input. This is the same operation as explained in step S31 of FIG. 5(A). Thereafter, all processing steps for inputting this code are the same. Next, step S4
In step 2, check whether the input record has an end tag 〈〈〈〉. If it is an end tag, the process advances to step S43, and the sentence end command indicating the end of the document data, that is, “\end(
document)” to the output file (document data with size 142), and exits from this subroutine.

一方、ステップS42でエンドタグでない場合はステッ
プS44に進み、段落を示すスタートタグ<par>”
であるかどうかをみる。段落の開始タグのときはステッ
プS45に進み、par処理のサブルーチンをコールす
る。そして、ステップS41に戻って、前述した処理を
繰り返し実行する。
On the other hand, if it is determined in step S42 that it is not an end tag, the process advances to step S44, and the start tag "<par>" indicating a paragraph
See if it is. If it is a paragraph start tag, the process advances to step S45, and a par processing subroutine is called. Then, the process returns to step S41 and the above-described process is repeatedly executed.

第5図(C)はpar処理のサブルーチンのフローチャ
ートである。
FIG. 5(C) is a flowchart of the par processing subroutine.

ここでは、ステップS50でルコードを読込んで入力し
、ステップS51で人、カレコードがエンドタグくハか
どうかを調べる。エンドタグのときはステップS52に
進み、空行を出力ファイルに出力する。これは連続する
改行文字を出力すればよい。そして、このサブルーチン
を抜ける。
Here, in step S50, the user code is read and input, and in step S51, it is checked whether the person and the record are the end tags. If it is an end tag, the process advances to step S52 and a blank line is output to the output file. This can be done by outputting consecutive newline characters. Then exit from this subroutine.

ステップS51でエンドタグ〈/〉でない場合はステッ
プS53に進み、入力したレコードが図データ“<fi
gure>”かどうかを調べる。図データであればステ
ップS54に進み、figure (図形)処理のサブ
ルーチンを呼出し、その後ステップS50に戻って前述
の処理を繰り返す。また、ステップS53で入力レコー
ドのスタートタグが図データ“<figure>”でな
いときはステップS55に進み、一般文章かどうかをみ
る。即ち、改行文字か、一般文字列かのいずれであるか
、スタートタグやエンドタグのタグであるかどうか等を
調べる。そして、一般の文章でないタグのときはエラー
にし、そうでないときはステップS56に進んで、入力
レコードをそのまま出力ファイルに出力する。そして、
再びステップS50に戻って前述した処理を繰り返す。
If it is determined in step S51 that the end tag is not </>, the process advances to step S53, and the input record is the figure data "<fi".
If it is figure data, the process advances to step S54, calls the figure processing subroutine, and then returns to step S50 to repeat the above-mentioned process. Also, in step S53, the start tag of the input record is If it is not the figure data "<figure>", the process advances to step S55 and it is checked whether it is a general text. That is, whether it is a line feed character or a general character string, whether it is a start tag or an end tag, etc. Then, if the tag is not a general text, it is treated as an error, and if not, the process proceeds to step S56 and outputs the input record as it is to the output file.Then,
Returning again to step S50, the process described above is repeated.

第5図(D)はfigure(図データ)処理を示すフ
ローチャートである。
FIG. 5(D) is a flowchart showing figure (figure data) processing.

まず、ステップS60で、図の情報の先頭を表わすコマ
ンドである“\begin (figure )”を出
力ファイルに出力する。そして、ステップS61に進ん
でルーコードを入力し、ステップS62で入力レコード
がエンドタグ〈/〉かどうかをみる。
First, in step S60, "\begin (figure)", which is a command representing the beginning of the information in the figure, is output to an output file. Then, the process advances to step S61, where the roux code is input, and in step S62, it is checked whether the input record is an end tag </>.

エンドタグであればステップS63に進み、図データの
終了を示すコマンド“\end (figureじを出
力ファイルに出力して、このサブルーチンを終了する。
If it is an end tag, the process advances to step S63, where the command "\end (figure) indicating the end of the figure data is output to the output file, and this subroutine is ended.

入力レコードがエンドタグ〈ハでない場合は、ステップ
S64.S66でそれぞれ“< tiff>”か”<c
aption> ”  (表題)かどうかを調べ、いず
れでもないときはエラーにする。
If the input record does not have the end tag <c, step S64. In S66, each “<tiff>” or “<c
aption>” (title), and if neither is the case, an error occurs.

“< tiff>”であるときはステップS65に進み
、tiff処理のサブルーチンを実行し、その後ステッ
プS61に戻る。一方、ステップS66で“<capt
ion>”であるときはステップS67に進み、cap
tion処理のサブルーチンを実行する。そして、その
後ステップS60に戻る。
If "<tiff>", the process advances to step S65, executes a tiff processing subroutine, and then returns to step S61. On the other hand, in step S66 “<capt
ion>”, the process advances to step S67, and the cap
tion processing subroutine. Then, the process returns to step S60.

第5図(E)は第5図(D)のcaption処理を示
すフローチャートである。
FIG. 5(E) is a flowchart showing the caption process of FIG. 5(D).

図の説明書きを記述するフォーマット・コマンドは、説
明書きを“\caption (”と“)”で囲んだ形
で示す。まず、ステップS70で“\caption 
 (”を出力ファイルに出力し、ステップS71でルコ
ード入力して、ステップS72でその入力したレコード
の種類を調べる。それがエンドタグ〈ハであればステッ
プ373に進み、“)”を出力ファイルに出力する。
A format command that describes a caption for a figure is indicated by enclosing the caption in "\caption (" and ")". First, in step S70, “\caption
(" is output to the output file, a code is input in step S71, and the type of the input record is checked in step S72. If it is an end tag <c, the process advances to step 373, and ")" is output to the output file. do.

一方、エンドタグでない場合はステップS74に進み、
一般の文書データかどうかをみる。即ち説明文自体であ
るときはステップS75に進み、入力レコードをそのま
ま出力ファイルに出力する。そして、再びステップS7
1に戻り、前述した処理を繰返す。これにより“<ca
ption>”と“〈/〉”で囲まれた説明文が“\c
aption  (”と“)”で囲まれたフォーマツタ
のコマンドに変換されて出力ファイルに格納される。
On the other hand, if it is not an end tag, the process advances to step S74;
Check whether it is general document data. That is, if it is the explanatory text itself, the process advances to step S75, and the input record is output as is to the output file. Then, step S7 again
1 and repeat the process described above. This allows “<ca
ption>” and the explanatory text surrounded by “〈/〉” is “\c
aption (" and ")" and is converted into a formatter command and stored in the output file.

第5図(F)はtiff処理を示すフローチャートであ
る。
FIG. 5(F) is a flowchart showing the tiff processing.

まず、ステップS80でルーコードを入力する。これは
“<tiff>”と“〈/〉”で囲まれた部分相当して
おり、TlFF形式で記述されたデータを格納したファ
イル名であるはずである。従って、ステップS81でこ
れがファイル名でないと判断されるとエラーとしてエラ
ー処理に進む。ファイル名であると判定されるとステッ
プS82に進み、そのファイル名の図データよりデータ
を読込み、図データの高さと幅をTlFF形式データを
エンコードすることによって求める。そして、その高さ
を図領域高161に記憶し、その幅を図領域幅162に
記憶する。ここで、例えば高さ100mm、幅90mm
であれば図領域高161と図領域幅162にそれぞれ“
90”、“100”を記憶する。そしてTlFFデータ
のファイルをクローズする。
First, in step S80, a roux code is input. This corresponds to the part surrounded by "<tiff>" and "</>", and should be the name of a file that stores data written in the TlFF format. Therefore, if it is determined in step S81 that this is not a file name, it is determined as an error and the process proceeds to error processing. If it is determined that it is a file name, the process advances to step S82, where data is read from the graphic data of that file name, and the height and width of the graphic data are determined by encoding the TlFF format data. Then, the height is stored in the drawing area height 161 and the width is stored in the drawing area width 162. Here, for example, the height is 100 mm and the width is 90 mm.
If so, “
90" and "100" are stored. Then, the TlFF data file is closed.

次にステップS83に進み、ファイル名9図の高さ、幅
のパラメータを付加したTlFF画像挿入コマンドを作
成して、出力ファイルに出力する。本例ではファイル名
が“sample、 tiff”と入力されているので
、コマンド\tiff (file= sample、
tiff、 width=90mm、 height=
100mm)を作成して出力ファイルに出力する。そし
て次にステップS84に進み、■レコードを入力する。
Next, the process proceeds to step S83, where a TlFF image insertion command is created to which the height and width parameters of file name 9 are added, and the command is output to an output file. In this example, the file name is input as “sample, tiff”, so the command \tiff (file= sample,
tiff, width=90mm, height=
100mm) and output it to an output file. Then, the process advances to step S84, and a record is input.

これはエンドタグ〈/〉であるべきなのでステップS8
5でエンドタグかどうかを調べ、エンドタグのときは処
理を終了し、エンドタグでないときはエラーとしてエラ
ー処理に進む。
This should be an end tag 〈/〉, so step S8
In step 5, it is checked whether it is an end tag, and if it is an end tag, the process ends, and if it is not an end tag, it is determined as an error and the process proceeds to error processing.

以上のように処理をすることで、第6図に示した形式で
入力された文書データをフォーマツタ151が解釈実行
できる形式の文書データに変換できる。そして、文書原
稿では図形や画像の大きさを一切記述する必要なく、こ
れらを混在した文書データを作成して格納できる。
By performing the processing as described above, document data input in the format shown in FIG. 6 can be converted into document data in a format that can be interpreted and executed by the formatter 151. Further, document data containing a mixture of figures and images can be created and stored without the need to describe the sizes of figures and images in the document manuscript.

さらに、このようにフォーマツタに独立した記述にする
ことにより、フォーマツタ自体をいろいろなものに取換
えられる。これにより、また装置に独立した形で文書交
換も可能となる。事実、第6図の形式は、l5O887
9として規格化されたS G M L (5tande
rd Generalized MarkupLang
uage)の文書データ本体の記述形式に準じている。
Furthermore, by making the description independent of the formatter in this way, the formatter itself can be replaced with various things. This also allows document exchange in a device-independent manner. In fact, the format shown in Figure 6 is l5O887
S G M L (5 tande
rd Generalized MarkupLang
This is based on the description format of the document data body of ``uage''.

〈第3の実施例〉 前述の実施例では、いずれも図形や画像を作成したとき
のそのままの大きさで、文書中に貼り込む場合について
説明したが、印刷プログラム152が、原図形・原画像
を拡大・縮小可能な場合もありうる。併えば、 \tiff(sample、tiff、width=9
0 mm。
<Third Embodiment> In the above-mentioned embodiments, a case has been described in which figures and images are pasted into a document at the same size as when they were created. In some cases, it may be possible to enlarge or reduce the size of the image. Combined, \tiff(sample, tiff, width=9
0 mm.

height=100 mm ) と指定されており、一方、原図データは幅180mm、
高さ200mmである場合、印刷プログラム152によ
り図データな%に縮小して印刷する。なお、縦横比が異
なった場合の1つの方法は、図を貼込む領域を越えない
ように拡大・縮小する方法で、もう1つの方法は、縦・
横をそれぞれ別の倍率で拡大・縮小する方法である。こ
こでは、前者を例にとって説明する。
height = 100 mm), while the original drawing data has a width of 180 mm,
If the height is 200 mm, the print program 152 reduces the size to a certain percentage of the figure data and prints it. If the aspect ratio is different, one method is to enlarge or reduce the figure so that it does not exceed the area where it is pasted, and the other method is to
This is a method of enlarging or reducing each side at different magnifications. Here, the former will be explained as an example.

本実施例は、第1図ないし第4図を用いて説明した実施
例と基本的に同じである。
This embodiment is basically the same as the embodiment described using FIGS. 1 to 4.

第7図に第3の実施例のシステムの構成図を示すが、主
メモリ106に最大高、最大幅、縦横比を一時保持する
領域163,164,165を有するところが異なる。
FIG. 7 shows a system configuration diagram of the third embodiment, except that the main memory 106 includes areas 163, 164, and 165 for temporarily holding the maximum height, maximum width, and aspect ratio.

以上の構成において、ブリプロセッサ153の制御処理
は、第8図のフローチャートで示される。
In the above configuration, the control processing of the preprocessor 153 is shown in the flowchart of FIG.

ここでは、ステップ393で図の指定コマンドが検出さ
れたら、ステップS95.S96を経てステップS90
で指定された場所(例えば、ファイル)から図データ1
41を読込み、その高さと幅をデコードする。そして、
その図データの高さをh、幅をWとしたとき、h / 
wを縦横比とじて縦横比165に記憶する。ここで、高
さが200mm、幅が180mmのとき、縦横比は10
/9、即ち約1.11を縦横比165に格納する。続い
て、ステップS98に進み、縦横比165の値、最大高
163、最大幅164の値より、図を貼込む領域の大き
さを求める。これは最大幅164の値に縦横比165の
値を掛けた値が最大高163の値以下の場合、その値と
最大幅164の値をそれぞれ図を貼り込む領域の高さと
幅にして、それぞれ図領域高1612図領域幅162に
格納する。また、最大幅164の値に縦横比165の値
を掛けた値が最大高163の値より大きい場合は、最大
高163の値と、その値に縦横比165の値の逆数を掛
けた値をそれぞれ図を貼込む領域高さと幅にして、それ
ぞれを図領域高1615図領域幅162に格納する。
Here, when the designated command shown in the figure is detected in step 393, step S95. Step S90 after S96
Figure data 1 from the location (e.g. file) specified in
41 and decode its height and width. and,
When the height of the figure data is h and the width is W, h /
W is divided into aspect ratios and stored in an aspect ratio of 165. Here, when the height is 200mm and the width is 180mm, the aspect ratio is 10.
/9, or approximately 1.11, is stored in an aspect ratio of 165. Next, the process proceeds to step S98, and the size of the area in which the figure is to be pasted is determined from the values of the aspect ratio 165, the maximum height 163, and the maximum width 164. If the value obtained by multiplying the value of maximum width 164 by the value of aspect ratio 165 is less than the value of maximum height 163, then use that value and maximum width 164 as the height and width of the area where the figure is pasted, respectively. The figure area height 1612 is stored in the figure area width 162. Also, if the value obtained by multiplying the value of maximum width 164 by the value of aspect ratio 165 is larger than the value of maximum height 163, the value obtained by multiplying the value of maximum height 163 and that value by the reciprocal of the value of aspect ratio 165 is used. The height and width of the area where the figure is to be pasted are set and stored in the figure area height 1615 and the figure area width 162, respectively.

本例では、前述したように縦横比が“1.11”、最大
幅が“170”であるので、(170Xi、11=18
8.7)より、その高さが“188.7”となる。しか
し、この値は最大高163に記憶されている値“118
”よりも大きいため、最大高163の値に縦横比165
の値の逆数“0.901”を掛けた値(118X0.9
1岬106)より“106”を図を貼り込む領域の幅と
し、最大高163に記憶されている値“118”が図を
貼込む領域の高さとなる。
In this example, as mentioned above, the aspect ratio is "1.11" and the maximum width is "170", so (170Xi, 11=18
8.7), its height is "188.7". However, this value is the value “118” stored in the maximum height 163.
”, so the maximum height is 163 and the aspect ratio is 165.
The value multiplied by the reciprocal of the value “0.901” (118X0.9
From 1 Cape 106), "106" is the width of the area where the figure is pasted, and the value "118" stored in the maximum height 163 is the height of the area where the figure is pasted.

このようにして、“118”を図領域高161に記憶し
、“106”を図領域幅162に記憶する。そして、ス
テップS99で図データの格納場所及びこれを貼り込む
領域のサイズをパラメータとして備えた図挿入コマンド
を生成し、出力ファイルに出力する。例えば、前述した
例では、下記のコマンド \tiff(file=sample、tiff、wi
dth=106 mm。
In this way, "118" is stored in the drawing area height 161 and "106" is stored in the drawing area width 162. Then, in step S99, a diagram insertion command is generated having as parameters the storage location of the diagram data and the size of the area in which it is to be pasted, and is output to an output file. For example, in the above example, the following command \tiff(file=sample,tiff,wi
dth=106 mm.

height=118  mm) が出力される。height=118 mm) is output.

以上説明したように、図データをできるだけ太き(して
、より鮮明に文書中に混在させることができる。しかも
この場合、空白の大きさに応じて図データのサイズが変
更されて、文書データ中に図データが組込まれるため、
余白部分を最小限に留めることができる。
As explained above, it is possible to make the figure data as thick as possible and mix it more clearly in the document.Moreover, in this case, the size of the figure data is changed according to the size of the blank space, and the document data Because figure data is included in the
You can keep the blank space to a minimum.

また、印刷プログラムが図データを拡大・縮小する場合
、第5図(A)ないし第6図で説明した実施例に対して
も、本実施例で説明した方法が同様にしてとれる。即ち
、第3図のステップSIOの前で図データの最大幅、最
大高を定め、第5図(F)のステップS82の代りに第
8図のステップS97.、S98を実行すればよい。
Furthermore, when the print program enlarges or reduces the graphic data, the method described in this embodiment can be applied in the same manner to the embodiments described in FIGS. 5(A) to 6. That is, the maximum width and maximum height of the diagram data are determined before step SIO in FIG. 3, and step S97. in FIG. 8 is performed instead of step S82 in FIG. 5(F). , S98 may be executed.

以上説明したように本実施例によれば、文書原稿である
文書データ中には、文書中に混在させる図形や画像デー
タの格納場所(ファイル名)のみを記述するだけ、その
図形や画像データが、文書データ中に自動的に組込まれ
た複合文書が作成される。
As explained above, according to this embodiment, in the document data that is a document manuscript, only the storage location (file name) of the figure or image data to be mixed in the document is written, and the figure or image data is , a compound document is created that is automatically incorporated into the document data.

また、文書データに組込む図形や画像データの修正や置
換を行なう場合などは、単に図形や画像データを格納し
ているファイルの内容を書き換えるだけで、その図形や
画像データを組込んだ文書データが作成できる。
In addition, when modifying or replacing graphics or image data to be incorporated into document data, simply rewriting the contents of the file that stores the graphics or image data will update the document data that incorporates the graphics or image data. Can be created.

[発明の効果〕 以上説明したように本発明によれば、文書データ中に組
込まれるべき画像データを特定するだけで、自動的のそ
の画像サイズを決定して、画像データを組込んだ文書デ
ータを作成できる効果がある。
[Effects of the Invention] As explained above, according to the present invention, by simply specifying the image data to be incorporated into document data, the image size is automatically determined, and the document data incorporating the image data is automatically determined. It has the effect of creating.

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

第1図は本実施例の文書処理システムの構成を示すブロ
ック図、 第2図は本実施例のシステムで文書作成するときの概略
処理を示すフローチャート、 第3図は本発明の第1の実施例の図の指定コマンドにサ
イズ情報を付加する処理を示すフローチャート、 第4図は本実施例のシステムに入力されるサイズ無文書
データの一例を示す図、 第5図(A)〜第5図(F)は本発明の第2の実施例の
図の指定コマンドにサイズ情報を付加する処理を示すフ
ローチャート、 第6図は本発明の第2の実施例のシステムに入力される
文書データの一例を示す図、 第7図は本発明の第3の実施例の文書処理システムの構
成を示すブロック図、 第8図は本発明の第3の実施例のフォーマツタブリプロ
セッサの処理を示すフローチャート、第9図は従来の文
書処理システムの構成を示すブロック図、 第10図は従来の文書処理システムで文書作成するとき
の概略処理を示すフローチャート第11図はフォーマツ
タに入力するサイズ付文書データの一例を示す図、そし
て 第12図は第11図の文書データをもとにフォーマツタ
で組版・レイアウトされて印刷された文書の一例を示す
図である。 図中、102・・・CPU、103はコンソール、10
4・・・補助メモリ、105・・・主メモリ、106・
・・主メモリ、107はプリンタ・バッファ、108は
プリンタ、141・・・図形・画像データ(図データ)
、142・・・サイズ付文書データ、143・・・レイ
アウト済文書データ、144・・・サイズ無文書データ
、151・・・フォーマツタ、152・・・印刷プログ
ラム、153・・・フォーマツタ・ブリプロセッサ、1
61・・・図領域高、162・・・図領域幅、163・
・・最大高、164・・・最大幅、165・・・縦横比
である。
FIG. 1 is a block diagram showing the configuration of a document processing system according to this embodiment, FIG. 2 is a flowchart showing a schematic process for creating a document using the system according to this embodiment, and FIG. 3 is a first embodiment of the present invention. A flowchart showing the process of adding size information to the designation command in the example diagram; FIG. 4 is a diagram showing an example of size undocumented data input to the system of this embodiment; FIGS. 5(A) to 5 (F) is a flowchart showing the process of adding size information to the specified command in the figure of the second embodiment of the present invention, and FIG. 6 is an example of document data input to the system of the second embodiment of the present invention. FIG. 7 is a block diagram showing the configuration of a document processing system according to a third embodiment of the present invention; FIG. 8 is a flowchart showing processing of a formatting tab reprocessor according to a third embodiment of the present invention; FIG. 9 is a block diagram showing the configuration of a conventional document processing system. FIG. 10 is a flowchart showing a schematic process for creating a document using a conventional document processing system. FIG. 11 is an example of sized document data input to the formatter. and FIG. 12 is a diagram showing an example of a document formatted and laid out using a formatter based on the document data of FIG. 11 and printed. In the figure, 102...CPU, 103 console, 10
4... Auxiliary memory, 105... Main memory, 106.
...Main memory, 107 is a printer buffer, 108 is a printer, 141... Figure/image data (diagram data)
, 142... document data with size, 143... laid out document data, 144... unsized document data, 151... formattuta, 152... printing program, 153... formattuta briprocessor, 1
61... Diagram area height, 162... Diagram area width, 163.
... Maximum height, 164 ... Maximum width, 165 ... Aspect ratio.

Claims (3)

【特許請求の範囲】[Claims] (1)文書データを入力し、該文書データの組版・レイ
アウトを行つて出力する文書処理装置であつて、 画像データを記憶する記憶手段と、 前記文書データに含まれる前記画像データを特定する特
定情報に基づいて前記記憶手段より前記特定された画像
データを読出す読出手段と、前記読出手段により読出さ
れた画像データのサイズを判別する判別手段と、 前記判別手段により判別されたサイズを基に、前記特定
情報にサイズ情報を付加した文書データを作成する文書
作成手段と、 を有することを特徴とする文書処理装置。
(1) A document processing device that inputs document data, performs typesetting and layout of the document data, and outputs the document data, the device comprising: a storage unit that stores image data; and a device that specifies the image data included in the document data. reading means for reading out the specified image data from the storage means based on information; determining means for determining the size of the image data read by the reading means; based on the size determined by the determining means; A document processing device comprising: , document creation means for creating document data in which size information is added to the specific information.
(2)前記読出手段は入力された文書データの空白部分
に対応して前記画像データのサイズを変更するサイズ変
更手段を更に含むことを特徴とする請求項第1項に記載
の文書処理装置。
(2) The document processing apparatus according to claim 1, wherein the reading means further includes a size changing means for changing the size of the image data in accordance with a blank portion of the input document data.
(3)前記特定情報は画像データ名であることを特徴と
する請求項第1項に記載の文書処理装置。
(3) The document processing apparatus according to claim 1, wherein the specific information is an image data name.
JP2044537A 1990-02-27 1990-02-27 Document processor Pending JPH03248262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2044537A JPH03248262A (en) 1990-02-27 1990-02-27 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2044537A JPH03248262A (en) 1990-02-27 1990-02-27 Document processor

Publications (1)

Publication Number Publication Date
JPH03248262A true JPH03248262A (en) 1991-11-06

Family

ID=12694260

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2044537A Pending JPH03248262A (en) 1990-02-27 1990-02-27 Document processor

Country Status (1)

Country Link
JP (1) JPH03248262A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2003019348A1 (en) * 2001-08-30 2005-10-20 松下電器産業株式会社 Printing apparatus, content output apparatus, and printing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2003019348A1 (en) * 2001-08-30 2005-10-20 松下電器産業株式会社 Printing apparatus, content output apparatus, and printing system
US7077586B2 (en) 2001-08-30 2006-07-18 Matsushita Electric Industrial Co., Ltd. Printing apparatus, content output apparatus, and printing system

Similar Documents

Publication Publication Date Title
US7673235B2 (en) Method and apparatus for utilizing an object model to manage document parts for use in an electronic document
US6934909B2 (en) Identifying logical elements by modifying a source document using marker attribute values
JPS629482A (en) Method and apparatus for generating graphic
WO1994014122A1 (en) System for display of structured documents
CA2559198C (en) Systems and methods for identifying complex text in a presentation data stream
JPH077408B2 (en) Method and system for changing emphasis characteristics
US7793224B1 (en) Methods and apparatus for formatting identified content
US20040205602A1 (en) Page layout design using geometric interference schema
US20030222916A1 (en) Object-oriented processing of tab text
US5765177A (en) Document processing method and apparatus for searching documents having a graph based document logic structure
Bagley et al. Creating reusable well-structured PDF as a sequence of component object graphic (COG) elements
JPH04148475A (en) Document processor
JPH10222510A (en) Document converting method
US20030154462A1 (en) Software maintenance material generation apparatus and generation program therefor
JPH03248262A (en) Document processor
JPH08221417A (en) New/old comparing editing device for structured document
JP3076348B2 (en) Document shaping apparatus and document shaping method
JP2005063243A (en) Information processor, program, and computer-readable storage medium
US20040019854A1 (en) Dynamically configurable page numbering system
US7685569B2 (en) Navigation in computer software applications developed in a procedural language
JP3347322B2 (en) Document processing apparatus and document processing method in the apparatus
JPH07107711B2 (en) Document image processing device
JP3453287B2 (en) Original text generation processor
JP2534685B2 (en) Information display method
JPH11272666A (en) System and method for editing document and record medium