JPH05151208A - Document processor - Google Patents

Document processor

Info

Publication number
JPH05151208A
JPH05151208A JP3287765A JP28776591A JPH05151208A JP H05151208 A JPH05151208 A JP H05151208A JP 3287765 A JP3287765 A JP 3287765A JP 28776591 A JP28776591 A JP 28776591A JP H05151208 A JPH05151208 A JP H05151208A
Authority
JP
Japan
Prior art keywords
document
column
unit
tabular
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.)
Withdrawn
Application number
JP3287765A
Other languages
Japanese (ja)
Inventor
Noriyuki Ito
則之 伊藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3287765A priority Critical patent/JPH05151208A/en
Publication of JPH05151208A publication Critical patent/JPH05151208A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To automatically form a document having an optimum table format minimizing the number of margine characters within the range of a previously specified restricting condition. CONSTITUTION:A document processor provided with a table format document forming function is also provided with a table optimizing part 10 for executing the optimum allocation of respective columns in a formed table type document stored in a document storing part 9 so that the sum of margines in the whole table is minimized within the previously specified restricting condition. The optimizing part 10 is provided with a restricting condition setting part 14, a column optimizing size calculating part 11 and a table format document shaping part 12.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ワードプロセッサ等の
表形式の文書を作成する機能を備えた文書処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus having a function of creating a tabular document such as a word processor.

【0002】[0002]

【従来の技術】図5は従来例における文書処理装置の構
成図であり、図中、1は文書処理部、2は表示部、3は
キーボード、4は罫線入力処理部、5は罫線文字変換
部、6は文書作成部、7は文章入力処理部、8はかな漢
字変換部、9は文書格納部を示す。
2. Description of the Related Art FIG. 5 is a block diagram of a conventional document processing apparatus. In the figure, 1 is a document processing section, 2 is a display section, 3 is a keyboard, 4 is a ruled line input processing section, and 5 is a ruled line character conversion. Reference numeral 6 is a document creation unit, 7 is a text input processing unit, 8 is a Kana-Kanji conversion unit, and 9 is a document storage unit.

【0003】従来、ワードプロセッサに代表される文書
処理装置には、各種の機能が備えられていた。その内、
表形式の文書を作成する機能を備えた文書処理装置の一
例を図5に示す。
Conventionally, a document processing apparatus typified by a word processor has various functions. Among them,
FIG. 5 shows an example of a document processing apparatus having a function of creating a tabular document.

【0004】図5に示したように、文書処理装置1に
は、罫線入力処理部4、罫線文字変換部5、文書作成部
6、文章入力処理部7、かな漢字変換部8、文書格納部
9を設けると共に、表示部2とキーボード3を接続して
ある。
As shown in FIG. 5, the document processing apparatus 1 includes a ruled line input processing section 4, a ruled line character conversion section 5, a document creation section 6, a text input processing section 7, a kana-kanji conversion section 8, and a document storage section 9. And the display unit 2 and the keyboard 3 are connected.

【0005】罫線入力処理部4は、キーボード3から入
力された罫線作図データを取り込み、文字単位のデータ
に分解する等の入力処理を行うものである。罫線文字変
換部5は、罫線入力処理部4で分解したデータを罫線文
字データに変換するものである。
The ruled line input processing unit 4 takes in ruled line drawing data input from the keyboard 3 and performs an input process such as dividing the data into character units. The ruled line character conversion unit 5 converts the data decomposed by the ruled line input processing unit 4 into ruled line character data.

【0006】文章入力処理部7は、キーボード3から入
力されたかな文字等のデータを取り込んで、所定の単位
のデータに分解する等の入力処理を行うものである。か
な漢字変換部8は,分解されたデータのかな漢字変換を
行うものである。文書作成部6は、文書の編集等の処理
を行って、表形式の文書を作成するものである。文書格
納部9は,作成された文書データを格納するものであ
る。
The text input processing unit 7 takes in data such as kana characters input from the keyboard 3 and decomposes the data into predetermined units of data. The kana-kanji conversion unit 8 performs kana-kanji conversion of the decomposed data. The document creation unit 6 creates a tabular document by performing processing such as editing the document. The document storage unit 9 stores the created document data.

【0007】前記構成の文書処理装置において、表形式
の文書を作成する際は、次のように処理を行っていた。
キーボード3からは、文書作成者により、罫線作図デー
タや文字データ等が入力される。入力されたデータの
内、罫線作図データは、罫線入力処理部4に取り込まれ
て処理が行われ、文字データは、文章入力処理部7に取
り込まれて処理が行われる。
In the document processing apparatus having the above-mentioned structure, the following processing is performed when creating a tabular document.
From the keyboard 3, a document creator inputs ruled line drawing data and character data. Among the input data, the ruled line drawing data is fetched by the ruled line input processing unit 4 and processed, and the character data is fetched by the sentence input processing unit 7 and processed.

【0008】そして、罫線作図データは罫線入力処理部
4で文字単位のデータに分解された後、罫線文字変換部
5で罫線文字データに変換され、文書作成部6に送られ
る。また、文字データは、文章入力処理部7で所定の単
位でデータに分解された後、かな漢字変換部8で、かな
漢字変換を行い、文書作成部6に送られる。
The ruled line drawing data is decomposed into character-by-character data in the ruled line input processing unit 4, converted into ruled line character data in the ruled line character conversion unit 5, and sent to the document creation unit 6. Further, the character data is decomposed into data in a predetermined unit by the text input processing unit 7, the Kana-Kanji conversion unit 8 performs Kana-Kanji conversion, and the data is sent to the document creation unit 6.

【0009】文書作成部6では、罫線文字データと漢字
混じりの文字データを用いて編集処理等を行い、表形式
の文書を作成し、文書格納部9に格納する。また前記表
形式の文書は表示部2で表示する。
The document creating unit 6 performs editing processing and the like using the ruled line character data and the character data mixed with Chinese characters to create a tabular document and stores it in the document storage unit 9. The tabular document is displayed on the display unit 2.

【0010】前記のようにして表形式の文書を作成する
が、実際には、このような文書は、一度にデータを入力
して作成するのではない。すなわち、文書作成者は、少
しづつデータを入力し、表示部2の表示画面を見ながら
順次文書を作成するのが普通である。
Although a tabular document is created as described above, such a document is not actually created by inputting data at once. That is, the document creator usually inputs data little by little and sequentially creates documents while looking at the display screen of the display unit 2.

【0011】例えば、表形式の文書を作成する場合,表
全体の縦、横の長さ、及び各欄の縦、横の長さは、文書
作成者が表を作りながら決定していた。表の形式を決め
て表のフレームだけを作成しても、各欄に文章を書いて
みるまでは、各欄の最適な大きさがわからないのが普通
である。
For example, when creating a tabular document, the document creator has determined the vertical and horizontal lengths of the entire table and the vertical and horizontal lengths of each column while creating the table. Even if the table format is determined and only the table frame is created, the optimum size of each column is not known until the text is written in each column.

【0012】従って、各欄を埋めながら、各欄の縦、横
の長さを必要に応じて変える、というようなことを繰り
返して行うことにより、表形式の文書を作成していた。
また、各欄の縦、横の長さを必要に応じて変える場合、
縦を変えたらよいのか、横を変えたらよいのかは、文書
作成者が試行錯誤的に決めていた。
Therefore, a tabular document has been created by repeatedly filling each column and changing the vertical and horizontal lengths of each column as necessary.
Also, when changing the vertical and horizontal lengths of each column as necessary,
The creator of the document decided by trial and error whether to change the vertical direction or the horizontal direction.

【0013】[0013]

【発明が解決しようとする課題】上記のような従来のも
のにおいては、次のような課題があった。 (1) 文書処理装置において表形式の文書を作成する際、
表の各欄の縦、横の長さは、文書作成者が試行錯誤的に
決めていた。従って、文書作成に手間がかかり、かつ作
成時間も長くなる。
SUMMARY OF THE INVENTION The above-mentioned conventional device has the following problems. (1) When creating a tabular document on the document processing device,
The length and width of each column of the table were decided by the document creator through trial and error. Therefore, it takes time and effort to create a document, and the creation time also becomes long.

【0014】(2) 表の各欄を大きめに作っておくと、各
欄に空白が多くなり、無駄な表が出来上がってしまう。 本発明は、このような従来の課題を解決し、予め指示し
た制約条件の範囲で、余白文字数を最小にした最適な表
形式の文書が自動的に作成できるようにすることを目的
とする。
(2) If each column of the table is made large, there will be many blanks in each column, resulting in a useless table. SUMMARY OF THE INVENTION It is an object of the present invention to solve such a conventional problem and to automatically create an optimum tabular document in which the number of blank characters is minimized within a range of constraint conditions designated in advance.

【0015】[0015]

【課題を解決するための手段】図1は本発明の原理図で
あり、図中、図5と同符号は同一のものを示す。また、
10は表最適化部、11は欄の最適サイズ計算部、12
は表形式文書整形部を示す。
FIG. 1 is a principle view of the present invention, in which the same reference numerals as those in FIG. 5 designate the same components. Also,
10 is a table optimizing unit, 11 is an optimal size calculating unit for columns, 12
Indicates a tabular document shaping unit.

【0016】本発明は上記の課題を解決するため、次の
ように構成した。 (1) 表形式の文書作成機能を備えた文書処理装置におい
て、作成済みの表形式の文書に対し、予め指示した制約
条件の範囲で、表全体の余白数の合計が最小となるよう
に、各欄の最適な割り当てを行う表最適化部10を設け
た。
In order to solve the above problems, the present invention has the following configuration. (1) In a document processing device having a tabular document creation function, for a tabular document that has already been created, within a range of constraint conditions specified in advance, the total number of blank spaces in the entire table is minimized, A table optimizing unit 10 for optimally allocating each column is provided.

【0017】(2) 前記構成(1)の表最適化部10に、
作成済みの表形式の文書から、各欄の収容可能文字数及
び余白数を抽出し、各欄の余白数の表全体での総和を評
価関数として、これが最小となるような最適な各欄の割
り当てを、前記制約条件の範囲で行う欄の最適サイズ計
算部11を設けた。
(2) In the table optimizing unit 10 of the configuration (1),
The number of characters that can be accommodated and the number of blanks in each column are extracted from the created tabular document, and the total number of blanks in each column is used as the evaluation function, and the optimal allocation of each column that minimizes this The optimum size calculation unit 11 is provided in the column for performing the above in the range of the constraint conditions.

【0018】[0018]

【作用】上記構成に基づく本発明の作用を、図1を参照
しながら説明する。文書作成部6では、従来手順により
表形式の文書を作成すると、文書格納部9に格納してお
く。その後、文書作成者等の指示があると、表最適化部
10では、文書格納部9に格納されている作成済みの文
書の最適化を次のようにして行う。
The operation of the present invention based on the above construction will be described with reference to FIG. When the document creation unit 6 creates a tabular document by the conventional procedure, it is stored in the document storage unit 9. Then, when there is an instruction from the document creator or the like, the table optimizing unit 10 optimizes the created document stored in the document storing unit 9 as follows.

【0019】先ず、欄の最適サイズ計算部11に、文書
格納部9内の表形式の文書から抽出した各欄の収容可能
文字数及び余白数(空白数)を取り込むと共に、制約条
件設定部14に予め設定されている各種の制約条件を取
り込む。
First, the optimum size calculation unit 11 for a column fetches the number of storable characters and the number of blank spaces (the number of blanks) of each column extracted from the tabular document in the document storage unit 9, and the constraint condition setting unit 14 Various constraint conditions set in advance are taken in.

【0020】そして、各欄の余白数の表全体での総和を
評価関数として、これが最小となるような最適な各欄の
割り当てを、制約条件を満足する範囲で自動的に行う。
表形式文書整形部12では、前記の割り当て情報を用い
て、文書格納部9内の表形式の文書を整形し、最適な文
書にする。
Then, using the total sum of the number of margins of each column in the entire table as an evaluation function, optimal allocation of each column that minimizes this is automatically performed within a range satisfying the constraint condition.
The tabular document shaping unit 12 shapes the tabular document in the document storage unit 9 using the above-mentioned allocation information to make an optimal document.

【0021】このようにすれば、文書作成者は、各欄の
縦、横の長さを決めなくても、文書作成者が指示した制
約条件の範囲で、自動的に最適な表形式の文書を作成す
ることができる。
In this way, even if the document creator does not determine the vertical and horizontal lengths of the respective columns, the optimum tabular document is automatically created within the constraint condition specified by the document creator. Can be created.

【0022】[0022]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。図2〜図4は、本発明の1実施例を示した図であ
り、図2は文書処理装置の構成図、図3は表最適化部の
構成例、図4は表形式文書の説明図である。
Embodiments of the present invention will be described below with reference to the drawings. 2 to 4 are diagrams showing an embodiment of the present invention, FIG. 2 is a block diagram of a document processing device, FIG. 3 is a configuration example of a table optimizing unit, and FIG. 4 is an explanatory diagram of a tabular document. Is.

【0023】図中、図1、図5と同符号は同一のものを
示す。また、13は欄内余白数抽出部、15は欄のサイ
ズ抽出部を示す。本実施例の文書処理装置は、図2のよ
うに、文書処理部1と、表示部2とキーボード3とで構
成されている。また、文書処理部1には、罫線入力処理
部4、罫線文字変換部5、文書作成部6、文書入力処理
部7、かな漢字変換部8、文書格納部9、表最適化部1
0を設ける。
In the figure, the same symbols as those in FIGS. 1 and 5 indicate the same components. Reference numeral 13 denotes an in-column margin number extraction unit, and 15 denotes a column size extraction unit. As shown in FIG. 2, the document processing apparatus of this embodiment is composed of a document processing unit 1, a display unit 2 and a keyboard 3. The document processing unit 1 includes a ruled line input processing unit 4, a ruled line character conversion unit 5, a document creation unit 6, a document input processing unit 7, a Kana-Kanji conversion unit 8, a document storage unit 9, and a table optimization unit 1.
0 is set.

【0024】なお、表最適化部10以外の構成は、上記
従来例の構成と同じなので、詳細な各部の機能等につい
ては説明を省略する。表最適化部10は、本実施例で新
たに追加された構成であり、その詳細な構成を図3に示
す。
Since the configuration other than the table optimizing unit 10 is the same as the configuration of the conventional example described above, detailed description of the functions of each unit will be omitted. The table optimizing unit 10 is a configuration newly added in this embodiment, and its detailed configuration is shown in FIG.

【0025】図3に示したように、表最適化部10に
は、欄のサイズ抽出部15、欄の最適サイズ計算部1
1、表形式文書整形部12、欄内余白数抽出部13、制
約条件設定部14等を設ける。
As shown in FIG. 3, the table optimizing unit 10 includes a column size extracting unit 15 and a column optimal size calculating unit 1.
1, a tabular document shaping unit 12, a margin number extraction unit 13, a constraint condition setting unit 14, and the like are provided.

【0026】前記欄のサイズ抽出部15は、文書格納部
9に格納されているデータから、欄のサイズ(欄内の収
容可能文字数)を抽出するものであり、欄の余白数抽出
部13は、文書格納部9に格納されているデータから欄
内の余白数を抽出するものである。
The column size extraction unit 15 extracts the size of the column (the number of characters that can be accommodated in the column) from the data stored in the document storage unit 9, and the column margin number extraction unit 13 The number of blank spaces in the column is extracted from the data stored in the document storage unit 9.

【0027】制約条件設定部14は、表形式の文書を作
成する際の各種制約条件を設定するもの(メモリ)であ
り、文書作成者によって予めデータを入力しておくもの
である。この制約条件としては、表全体の縦横比の最小
値(rmin)と最小値(rma x )、表全体の横幅制限値
(WL )、表全体の縦長制限値(HL )、表全体の余白
数割合の最小値(Smin )と最大値(Smax )等であ
る。
The constraint condition setting unit 14 is a unit (memory) for setting various constraint conditions when creating a tabular document, and is used by the document creator to input data in advance. As the constraint, the minimum value of the aspect ratio of the entire table (r min) and the minimum value (r ma x), horizontal width limit values of the entire table (W L), the entire table Vertical limit (H L), Table These are the minimum value (S min ) and the maximum value (S max ) of the total margin number ratio.

【0028】また、欄の最適サイズ計算部11は、欄の
サイズ抽出部15で抽出したデータ及び欄内余白数抽出
部13で抽出したデータと、制約条件設定部14に設定
されている制約条件とを用いて、欄の最適サイズを計算
するものである。
The column optimal size calculation unit 11 also includes the data extracted by the column size extraction unit 15 and the data extracted by the column margin number extraction unit 13, and the constraint conditions set in the constraint condition setting unit 14. And are used to calculate the optimal size of the column.

【0029】表形式文書整形部12は、文書格納部9の
データを取り出し欄の最適サイズ計算部11で計算した
最適サイズに合わせて表形式文書を整形するものであ
る。整形された表形式のデータは、再び文書格納部9に
格納される。
The tabular document shaping unit 12 shapes the tabular document according to the optimum size calculated by the optimum size calculation unit 11 in the extraction column for the data in the document storage unit 9. The formatted tabular data is stored again in the document storage unit 9.

【0030】次に、上記構成の文書処理装置による表形
式の文書作成処理について説明する。先ず,表形式を図
4のように定義する。作成する表は、図4に示したよう
に、ロー(row)とカラム(column)とから成り、ロー
は(ロ−0)〜(ロ−n)、カラムは(カラム0)〜
(カラムm)で構成する。
Next, a tabular document creation process performed by the document processing apparatus having the above configuration will be described. First, the table format is defined as shown in FIG. Table to be created, as shown in FIG. 4 comprises from low (r ow) column and (column), row (b -0) - (b -n), the column (column 0)
(Column m).

【0031】そして、各欄について、wi をカラムi
ある欄の幅、hj をロ−j にある欄の高さ、cijを、カ
ラムi 、ロ−j にある欄の欄内文字数、bijをカラ
i 、ロ−j にある欄の欄内余白数、wi *hj はカラ
i 、ロ−j にある欄の欄内収容可能文字数とする(な
お、i i =0,1,2・・・m、j j =0,1,
2,・・・nである)。
[0031] Then, for each column, the width of the field at the w i in column i, ii and h j - height of the column in the j, the c ij, column i, b - column in number of columns in the j the b ij column i, b - column Padding number of columns in the j, w i * h j is the column i, b - the column in which can accommodate the number of characters in the column in the j (Note, i is i = 0 , 1,2 ... m, j is j = 0,1,
2, ... n).

【0032】前記の表形式による文書は、次の各ステッ
プにより作成される。 (ステップ1)文書作成者は、キーボード3から表形式
の文書を作成する際の制約条件を入力する。この制約条
件は、例えば、表全体の縦横比の最小値(rmin )と最
大値(rmax )、表全体の横幅制限値(WL )、表全体
の縦長制限値(HL )、表全体の余白数割合の最小値
(Smin )と最大値(Smax )等である。
The above-mentioned tabular document is created by the following steps. (Step 1) The document creator inputs a constraint condition for creating a tabular document from the keyboard 3. This constraint, for example, the minimum value of the aspect ratio of the entire table (r min) and maximum value (r max), the width limit values of the entire table (W L), the entire table Vertical limit (H L), Table These are the minimum value (S min ) and the maximum value (S max ) of the total margin number ratio.

【0033】入力された前記各制約条件のデータは、文
書処理部1により、表最適化部10の制約条件設定部1
4に設定される。 (ステップ2)文書作成者は、これから作成しようとす
る文書におけるカラム(column)数及びロー(row)数
を決定し、キーボード3からそのデータを入力する。こ
れらのデータが入力されると、文書処理部1では、全て
の欄の縦、横サイズが同じ定型的な表を自動的に作成す
る。
The input data of each constraint condition is used by the document processing unit 1 in the constraint condition setting unit 1 of the table optimization unit 10.
Set to 4. (Step 2) Authors determines the columns (column) and the number of rows (r ow) number in the document to be created now, inputs the data from the keyboard 3. When these data are input, the document processing unit 1 automatically creates a standard table in which all columns have the same vertical and horizontal sizes.

【0034】この処理は、従来の文書処理装置の機能に
より処理され、作成された表は、表示部2の表示画面上
に表示される。 (ステップ3)文書作成者は、ステップ2で作成され、
かつ表示された表の各欄に文章を記入してゆく。この
時、欄に入力されなくなった時は、通常の「挿入」機能
を用いてその欄のあるロー全体を下方向に必要行だけ広
げる。
This processing is processed by the function of the conventional document processing apparatus, and the created table is displayed on the display screen of the display unit 2. (Step 3) The document creator is created in Step 2,
And fill in each column of the displayed table. At this time, when there is no more input in the field, the normal "insert" function is used to expand the entire row in that field downward by the required number of rows.

【0035】このようにして、各欄内に必要な文章を記
入してゆく。このステップでの表作成の際は、見栄えや
表の縦、横のバランスなどは一切気にする必要はない。
このようにして入力された文字等のデータは、文書処理
部1内で処理され、表形式の文書となる。
In this way, the necessary sentences are entered in each column. When creating the table in this step, you don't have to worry about the appearance or the vertical and horizontal balance of the table.
The data such as characters input in this way is processed in the document processing unit 1 and becomes a tabular document.

【0036】また、作成された表形式の文書は、文書格
納部9に格納される。なお、このステップ3の処理は、
従来の文書処理部の機能によって処理されるため、この
実施例での詳細な説明は省略する。
The created tabular document is stored in the document storage unit 9. In addition, the processing of this step 3 is
Since the processing is performed by the function of the conventional document processing unit, detailed description in this embodiment will be omitted.

【0037】(ステップ4)ステップ3で作成した表形
式の文書を取り出し、表最適化処理を行う。このステッ
プでは先ず、文書作成者がキーボード3のファンクショ
ンキーにより、表最適化処理の指示を出す。この指示を
受けた表最適化部10では表の最適化処理を自動的に行
い、その結果により、文書格納部9に格納されている表
形式の文書を更新する。
(Step 4) The tabular document created in step 3 is taken out and the table optimizing process is performed. In this step, first, the document creator gives an instruction for the table optimization process using the function keys of the keyboard 3. Upon receiving this instruction, the table optimizing unit 10 automatically performs the table optimizing process, and updates the tabular document stored in the document storing unit 9 according to the result.

【0038】前記の表最適化処理により、文書格納部9
には最適な表形式の文書が格納される。その後、この文
書格納部9に格納されている文書は印刷、あるいは表示
等により出力される。
By the table optimization processing described above, the document storage unit 9
The optimal tabular document is stored in. Then, the document stored in the document storage unit 9 is output by printing, displaying, or the like.

【0039】以下、前記の表最適化処理について詳細に
説明する。表最適化部10では、前記の指示を受けた
際、文書格納部9に格納されている表形式の文書を取り
出して表の最適化処理を行うが、この時、欄のサイズ抽
出部15では、欄のサイズ(wi *hj )を抽出し、欄
内余白数抽出部13では、欄内の余白数(bij)を抽出
する。
The table optimization process will be described in detail below. Upon receiving the above instruction, the table optimizing unit 10 extracts the tabular document stored in the document storage unit 9 and performs the table optimizing process. At this time, the column size extracting unit 15 , The size of the column (w i * h j ) is extracted, and the in-column blank space number extraction unit 13 extracts the number of blank spaces (b ij ) in the column.

【0040】その後、欄の最適サイズ計算部11では、
抽出した欄のサイズと欄内の余白数の各データを用い、
かつ制約条件設定部14に設定されている前記の制約条
件のデータを用いて、欄の最適サイズを計算する。この
計算は、次のようにして行う。
Then, in the optimum size calculation section 11 in the column,
Using each data of the size of the extracted column and the number of margins in the column,
Moreover, the optimum size of the column is calculated by using the data of the constraint conditions set in the constraint condition setting unit 14. This calculation is performed as follows.

【0041】表全体での欄内の余白数の合計値は、次式
で与えられる(図4参照)。
The total value of the number of blanks in the columns in the entire table is given by the following equation (see FIG. 4).

【0042】[0042]

【数1】 [Equation 1]

【0043】また、表全体での各欄に書き込み可能な全
文字数から、実際に書き込んだ全文字数を引いた値が前
記の余白数の合計値と等しいから、表全体の余白数の合
計値は、次の評価関数で表される。
Since the value obtained by subtracting the total number of characters actually written from the total number of characters that can be written in each column in the entire table is equal to the total value of the above-mentioned margins, the total value of the number of blanks in the entire table is , Which is expressed by the following evaluation function.

【0044】[0044]

【数2】 [Equation 2]

【0045】そして、前記の評価関数(表全体の余白数
の合計値を表す関数)の値が最小となるようなwi i
=0,1,2,3・・・n)及びhj j =0,1,
2,3・・・n)を制約条件のもとで求める。ただし、
前記の余白数の合計値を最小にするwi 及びhj を求め
る方法としては、従来一般に用いられている線形計画法
などの方法を用いればよい(この方法は、広く用いられ
ている方法なので、説明は省略する)。
Then, w i ( i ) such that the value of the evaluation function (function representing the total value of the number of blanks of the entire table) is minimized
= 0,1,2,3 ... n) and hj ( j = 0,1,
2, 3, ... N) are obtained under the constraint condition. However,
As a method for obtaining w i and h j that minimizes the total value of the number of blank spaces , a method such as a linear programming method that is generally used in the past may be used (since this method is a widely used method). , Description is omitted).

【0046】前記の制約条件としては、この実施例の場
合次のとおりである。 (1) 表全体の縦横比の制約は、次式で与えられる。
In the case of this embodiment, the above-mentioned constraint conditions are as follows. (1) The constraint on the aspect ratio of the entire table is given by the following equation.

【0047】[0047]

【数3】 [Equation 3]

【0048】(2) 表全体の横幅の制約は、次式で与えら
れる。
(2) The constraint on the width of the entire table is given by the following equation.

【0049】[0049]

【数4】 [Equation 4]

【0050】(3) 表全体の縦長の制約は、次式で与えら
れる。
(3) The vertical constraint of the entire table is given by the following equation.

【0051】[0051]

【数5】 [Equation 5]

【0052】(4) 表全体で収容可能文字数に対する余白
数の割合の制約は、次式で与えられる。
(4) The constraint on the ratio of the number of blanks to the number of characters that can be accommodated in the entire table is given by the following equation.

【0053】[0053]

【数6】 [Equation 6]

【0054】このような各種の制約条件を満たし、かつ
余白数の合計値が最小となるように計算を行った後、表
形式文書整形部12では、文書格納部9に格納されてい
る表形式の文書を前記計算結果に基づいて整形する。そ
の結果、文書格納部9の文書は、余白数の合計値が最小
となった最適な文書となる。
After the calculation is performed so as to satisfy the various constraints as described above and minimize the total value of the number of blanks, the tabular document shaping unit 12 causes the tabular format stored in the document storage unit 9 to be displayed. The document is formatted based on the calculation result. As a result, the document in the document storage unit 9 becomes the optimum document with the minimum total number of blank spaces.

【0055】(他の実施例)以上実施例について説明し
たが、本発明は次のようにしても実施可能である。 1.制約条件は、上記実施例のものに限らず、他の制約
条件としてもよい。
(Other Embodiments) Although the embodiments have been described above, the present invention can be implemented as follows. 1. The constraint conditions are not limited to those in the above embodiment, and other constraint conditions may be used.

【0056】2.欄の最適サイズ計算部11で欄の最適
サイズを計算する際、作成済みの表形式の文書から、欄
のサイズ(収容可能文字数)と欄内の文字数を抽出して
も実施可能である。
2. When calculating the optimal size of the column by the optimal size calculation unit 11 of the column, it is also possible to extract the size of the column (the number of characters that can be accommodated) and the number of characters in the column from the created tabular document.

【0057】3.本発明は、ワードプロセッサの外、表
形式の文書が作成可能な文書作成装置ならば、どのよう
な装置にも適用可能である。
3. The present invention can be applied to any device other than a word processor as long as it is a document creation device capable of creating a tabular document.

【0058】[0058]

【発明の効果】以上説明したように、本発明によれば次
の効果を奏する。 (1) 文書作成者等が指示した制約条件の範囲で, 表の余
白数(空白数) が最小となるような表形式の文書が自動
的に作成できる。従って、文書作成者は、各欄の縦、横
の長さを、試行錯誤的に決める必要がなくなり、作業能
率が向上する。
As described above, the present invention has the following effects. (1) A tabular document that minimizes the number of blank spaces (blanks) in a table can be automatically created within the range of constraints specified by the document creator. Therefore, the document creator does not need to determine the vertical and horizontal lengths of each column by trial and error, and the work efficiency is improved.

【0059】(2) 常に最適な表形式の文書が自動的に作
成できるので、文書作成の性能向上ができる。 (3) 文書作成者等が指示する制約条件を変えることによ
り、任意の表形式による文書が自動的に作成できる。
(2) Since the optimum tabular document can always be automatically created, the performance of document creation can be improved. (3) A document in an arbitrary table format can be automatically created by changing the constraint conditions specified by the document creator.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】本発明の1実施例における文書処理装置の構成
図である。
FIG. 2 is a configuration diagram of a document processing apparatus according to an embodiment of the present invention.

【図3】表最適化部の構成例である。FIG. 3 is a configuration example of a table optimizing unit.

【図4】表形式文書の説明図である。FIG. 4 is an explanatory diagram of a tabular document.

【図5】従来例における文書処理装置の構成図である。FIG. 5 is a configuration diagram of a document processing apparatus in a conventional example.

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

6 文書作成部 9 文書格納部 11 欄の最適サイズ計算部 12 表形式文書整形部 14 制約条件設定部 6 Document Creation Section 9 Document Storage Section 11 Optimal Size Calculation Section 12 Tabular Document Formatting Section 14 Constraint Condition Setting Section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 表形式の文書作成機能を備えた文書処理
装置において、 作成済みの表形式の文書に対し、予め指示した制約条件
の範囲で、表全体の余白数の合計が最小となるように、
各欄の最適な割り当てを行う表最適化部(10)を設け
たことを特徴とする文書処理装置。
1. A document processing apparatus having a table-format document creation function, wherein the total number of blank spaces in the entire table is minimized for a created table-format document within a range of constraint conditions specified in advance. To
A document processing apparatus comprising a table optimizing unit (10) for optimally allocating each column.
【請求項2】 前記表最適化部(10)に、作成済みの
表形式の文書から、各欄の収容可能文字数及び余白数を
抽出し、 各欄の余白数の表全体での総和を評価関数として、これ
が最小となるような最適な各欄の割り当てを、前記制約
条件の範囲で行う欄の最適サイズ計算部(11)を設け
たことを特徴とする請求項1記載の文書処理装置。
2. The table optimizing unit (10) extracts the number of characters that can be accommodated and the number of blank spaces in each column from the created tabular document, and evaluates the total number of blank spaces in each column for the entire table. 2. The document processing apparatus according to claim 1, further comprising: an optimal size calculation unit (11) for a field that performs optimal allocation of each field as a function within the range of the constraint conditions so as to minimize this.
JP3287765A 1991-11-01 1991-11-01 Document processor Withdrawn JPH05151208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3287765A JPH05151208A (en) 1991-11-01 1991-11-01 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3287765A JPH05151208A (en) 1991-11-01 1991-11-01 Document processor

Publications (1)

Publication Number Publication Date
JPH05151208A true JPH05151208A (en) 1993-06-18

Family

ID=17721468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3287765A Withdrawn JPH05151208A (en) 1991-11-01 1991-11-01 Document processor

Country Status (1)

Country Link
JP (1) JPH05151208A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5808914A (en) * 1994-04-11 1998-09-15 Fuji Xerox Co., Ltd. Table allocating apparatus and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5808914A (en) * 1994-04-11 1998-09-15 Fuji Xerox Co., Ltd. Table allocating apparatus and method

Similar Documents

Publication Publication Date Title
JP2695844B2 (en) Document shaping device
US5826219A (en) Machine translation apparatus
EP0359110A2 (en) Entry text display system
US6625608B1 (en) Method and apparatus for displaying natural language structure
JPH05151208A (en) Document processor
JP3471854B2 (en) Character processing apparatus and method
JP3076348B2 (en) Document shaping apparatus and document shaping method
JP2763227B2 (en) Format determination method
JPH0412866B2 (en)
US5895478A (en) Right and center font justification for a document system library
JPH0776970B2 (en) Document shaping device
JP3112298B2 (en) Program text editing device
JPH06314274A (en) Document preparing device and document information input method
JPH0793329A (en) Document processor and allocating method for document
JP3347322B2 (en) Document processing apparatus and document processing method in the apparatus
JPH07182344A (en) Machine translation system
JPS61229161A (en) Documentation and editing device
JPH03161861A (en) Document processor with tabulating function
JPS6359658A (en) Document processor
JPS6321171A (en) Document processor
JPH1083417A (en) Cad system and its language display conversion method
JPH05334350A (en) Machine translating system
JPH0264852A (en) Document processing device
JPH05101039A (en) Document shaping device
JPH0520420A (en) Graphic processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990204