JPH08152986A - Automatic setting method for table frame cell and electronic editing device - Google Patents

Automatic setting method for table frame cell and electronic editing device

Info

Publication number
JPH08152986A
JPH08152986A JP6294991A JP29499194A JPH08152986A JP H08152986 A JPH08152986 A JP H08152986A JP 6294991 A JP6294991 A JP 6294991A JP 29499194 A JP29499194 A JP 29499194A JP H08152986 A JPH08152986 A JP H08152986A
Authority
JP
Japan
Prior art keywords
cell
width
table frame
value
height
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
JP6294991A
Other languages
Japanese (ja)
Inventor
Shiyoui Mou
少偉 毛
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.)
Nippon Steel Corp
Original Assignee
Sumitomo Metal Industries 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 Sumitomo Metal Industries Ltd filed Critical Sumitomo Metal Industries Ltd
Priority to JP6294991A priority Critical patent/JPH08152986A/en
Publication of JPH08152986A publication Critical patent/JPH08152986A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide an automatic setting method for table frame cell with which preparation efficiency is improved. CONSTITUTION: Concerning this automatic table frame cell setting method, a table is prepared by temporarily preparing a table frame and describing characters prepared in advance for each cell into the respective cells consisting of this table frame. When the total value of heights required for all the cell lines is smaller than the height of the table frame, the height of the cell line from which no character overflows is reset to a value adding a value for which the difference between the height of the table frame and the total value is distributed to the cell line from which no character overflows and the height required for that cell line and the height of a cell line, from which any character overflows, is reset to the height required for that cell line respectively. When the total value is larger than the height of the table frame, on the other hand, the total value is reset as the height of the table frame and the height of each cell line is reset at the required height. Then, the table is prepared by describing characters into the respective reset cells again.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、雑誌、商業印刷物、技
術文書等の編集に使用される表枠セル自動設定方法及び
電子編集装置の改良に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for automatically setting a table frame cell used for editing a magazine, a commercial printed matter, a technical document, etc. and an electronic editing apparatus.

【0002】[0002]

【従来の技術】雑誌、商業印刷物、技術文書等の編集に
使用される表枠セル自動設定方法では、仮設定した表枠
及び表枠を構成する各セルの属性(寸法、縦組/横組の
指定等)に従って表枠を作成し、この表枠を構成する各
セルに、予めセル毎に用意してある文字を記入し、文字
が溢れた(文字が入り切らなかった)セルがあれば、操
作者の判断で文字が溢れないように、当該セルを拡大し
て設定し直し、表を作成していた。
2. Description of the Related Art In a table frame cell automatic setting method used for editing magazines, commercial printed matter, technical documents, etc., a temporarily set table frame and attributes of each cell constituting the table frame (dimension, vertical writing mode / horizontal writing mode) are set. Create a table frame in accordance with (, etc.), fill in the characters prepared for each cell in advance in each cell that composes this table frame, and if there are cells that overflowed (characters did not fit) In order to prevent characters from overflowing at the operator's discretion, the cell was enlarged and set again to create a table.

【0003】[0003]

【発明が解決しようとする課題】ところが、表枠は大き
さが限られている場合が多く、一部のセルの設定を変更
すれば、他のセルの設定にも影響が生じるので、操作者
は、全てのセルの文字の溢れ状態を見ながら、表枠全体
を調整しなければならず、手間が掛かっていた。本発明
は、上述の事情に鑑みてなされたものであり、第1発明
では、全セル行が必要とする高さの合計値が、表枠の高
さよりも小さいときは、文字が溢れなかったセル行の高
さは、表枠の高さと前記合計値との差を文字が溢れなか
ったセル行に分配した値と、そのセル行が必要とする高
さとを加算した値に、文字が溢れたセル行の高さは、そ
のセル行が必要とする高さに、それぞれ再設定する一
方、前記合計値が表枠の高さよりも大きいときは、前記
合計値を表枠の高さとして再設定し、各セル行の高さ
は、必要とする高さに再設定する方法を採用することに
より、作成効率が高い表枠セル自動設定方法を提供する
ことを目的とする。
However, the size of the table frame is often limited, and if the settings of some cells are changed, the settings of other cells are also affected. Had to make adjustments to the entire table frame while looking at the overflow of characters in all cells, which was troublesome. The present invention has been made in view of the above circumstances, and in the first invention, when the total height required by all cell rows is smaller than the height of the table frame, characters do not overflow. The height of the cell row is the sum of the value obtained by dividing the difference between the height of the table frame and the total value into the cell rows where the text did not overflow, and the height required by the cell row, and the text overflowed. The height of each cell row is reset to the height required by that cell row, while when the total value is larger than the height of the table frame, the total value is reset as the height of the table frame. It is an object of the present invention to provide a table frame cell automatic setting method with high creation efficiency by adopting a method of setting and resetting the height of each cell row to a required height.

【0004】第2,3発明では、全セル行が必要とする
幅の合計値が、表枠の幅よりも小さいときは、文字が溢
れなかったセル行の幅は、表枠の幅と前記合計値との差
を文字が溢れなかったセル行に分配した値と、そのセル
行が必要とする幅とを加算した値に、文字が溢れたセル
行の幅は、そのセル行が必要とする幅に、それぞれ再設
定する一方、前記合計値が表枠の幅よりも大きいとき
は、前記合計値を表枠の幅として再設定し、各セル行の
幅は、必要とする幅に再設定する方法を採用することに
より、作成効率が高い表枠セル自動設定方法を提供する
ことを目的とする。
In the second and third inventions, when the total value of the widths required by all the cell rows is smaller than the width of the table frame, the width of the cell row in which no character overflows is the width of the table frame and the width of the table frame. The width of the cell row where the character overflows is calculated as the value obtained by adding the value divided by the difference between the total value to the cell rows where the character row did not overflow and the width required by that cell row. When the total value is larger than the width of the table frame, the total value is reset as the width of the table frame, and the width of each cell row is reset to the required width. It is an object to provide a table frame cell automatic setting method with high creation efficiency by adopting the setting method.

【0005】第4発明では、セル行毎に文字が溢れたセ
ルの有無の判断を行う第1判断手段と、セル行毎に必要
とする高さを求める手段と、セル行毎に前記必要とする
高さ及び前記判断の結果を記憶する第1記憶手段と、全
セル行の前記必要とする高さを合計する第1最大値合計
手段と、第1最大値合計手段の合計値と表枠の高さとを
比較する第1比較手段と、第1比較手段の比較結果が前
記合計値の方が小さいときは、前記判断の結果が無であ
ったセル行の高さは、表枠の高さと前記合計値との差を
前記判断の結果が無であったセル行に分配した値と、前
記必要とする高さとを加算した値に、前記判断の結果が
有であったセル行の高さは、前記必要とする高さに、そ
れぞれ再設定する一方、第1比較手段の比較結果が前記
合計値の方が大きいときは、前記合計値を表枠の高さと
して再設定し、各セル行の高さは、前記最大値に再設定
する第1再設定手段とを設けることにより、表枠の作成
効率が高い電子編集装置を提供することを目的とする。
According to the fourth aspect of the present invention, there is provided a first judging means for judging the presence or absence of cells overflowing with characters for each cell row, a means for obtaining a required height for each cell row, and the above-mentioned necessity for each cell row. Height, the first storage means for storing the result of the determination, the first maximum value summing means for summing the required heights of all cell rows, the total value of the first maximum value summing means and the table frame. When the comparison result of the first comparing means and the first comparing means is smaller than the total value, the height of the cell row for which there is no determination result is the height of the table frame. And a value obtained by adding the required height to a value obtained by distributing the difference between the total value and the cell row in which the result of the determination is absent, to the value of the cell row in which the result of the determination is present. That is, while resetting to the required height, the comparison result of the first comparing means is larger when the total value is larger. When the total value is reset as the height of the table frame, and the height of each cell row is reset to the maximum value, the table frame creation efficiency is high. It is an object to provide an electronic editing device.

【0006】第5発明では、セル行毎に文字が溢れたセ
ルの有無の判断を行う第1判断手段と、セル行毎に必要
とする幅を求める手段と、セル行毎に前記必要とする幅
及び前記判断の結果を記憶する第1記憶手段と、全セル
行の前記必要とする幅を合計する第1最大値合計手段
と、第1最大値合計手段の合計値と表枠の幅とを比較す
る第1比較手段と、第1比較手段の比較結果が前記合計
値の方が小さいときは、前記判断の結果が無であったセ
ル行の幅は、表枠の幅と前記合計値との差を前記判断の
結果が無であったセル行に分配した値と、前記必要とす
る幅とを加算した値に、前記判断の結果が有であったセ
ル行の幅は、前記必要とする幅に、それぞれ再設定する
一方、第1比較手段の比較結果が前記合計値の方が大き
いときは、前記合計値を表枠の幅として再設定し、各セ
ル行の幅は、前記最大値に再設定する第1再設定手段と
を設けることにより、表枠の作成効率が高い電子編集装
置を提供することを目的とする。
According to the fifth aspect of the invention, there is provided a first judging means for judging the presence / absence of cells overflowing with characters for each cell row, a means for obtaining a required width for each cell row, and the above for each cell row. A first storage means for storing the width and the result of the judgment; a first maximum value summing means for summing the required widths of all cell rows; a total value of the first maximum value summing means and a width of the table frame. When the comparison result of the first comparison means and the comparison value of the first comparison means is smaller, the width of the cell row for which there is no result of the determination is the width of the table frame and the total value. And the width of the cell row for which the result of the determination is present is the required value When the comparison result of the first comparing means is larger than the total value, Is provided as the width of the table frame, and the width of each cell row is provided with the first resetting means for resetting the width to the maximum value, thereby providing an electronic editing apparatus having a high efficiency of creating the table frame. To aim.

【0007】第6発明では、セル行毎に文字が溢れたセ
ルの有無の判断を行う第2判断手段と、セル行毎に必要
とする幅を求める手段と、セル行毎に前記必要とする幅
及び前記判断の結果を記憶する第2記憶手段と、全セル
行の前記必要とする幅を合計する第2最大値合計手段
と、21最大値合計手段の合計値と表枠の幅とを比較す
る第2比較手段と、第2比較手段の比較結果が前記合計
値の方が小さいときは、前記判断の結果が無であったセ
ル行の幅は、表枠の幅と前記合計値との差を前記判断の
結果が無であったセル行に分配した値と、前記必要とす
る幅とを加算した値に、前記判断の結果が有であったセ
ル行の幅は、前記必要とする幅に、それぞれ再設定する
一方、第2比較手段の比較結果が前記合計値の方が大き
いときは、前記合計値を表枠の幅として再設定し、各セ
ル行の幅は、前記最大値に再設定する第2再設定手段と
を設けることにより、表枠の作成効率が高い電子編集装
置を提供することを目的とする。
According to the sixth aspect of the invention, the second judging means for judging the presence / absence of cells overflowing with characters for each cell row, the means for obtaining a required width for each cell row, and the above-mentioned need for each cell row are required. A second storage means for storing the width and the result of the judgment, a second maximum value summing means for summing the required widths of all cell rows, a total value of the 21 maximum value summing means and a width of the table frame. When the comparison result of the second comparison means for comparison and the comparison result of the second comparison means is smaller than the total value, the width of the cell row for which the result of the determination is absent is the width of the table frame and the total value. A value obtained by adding the value obtained by distributing the difference of the above to the cell rows in which the result of the determination is not present and the required width is the width of the cell row in which the result of the determination is When the comparison result of the second comparing means is larger than the total value, Is provided as the width of the table frame, and the width of each cell row is provided with the second resetting means for resetting the width to the maximum value, thereby providing an electronic editing apparatus having a high efficiency of creating the table frame. To aim.

【0008】[0008]

【課題を解決するための手段】第1発明に係る表枠セル
自動設定方法は、表枠を仮作成し、該表枠を構成する各
セルに、予めセル毎に用意してある文字を記入して、表
を作成する表枠セル自動設定方法において、同じ行を有
し、その有する行数で決まる高さが等しいセルで構成さ
れるセル行毎に、記入された文字が溢れたセルの有無の
判断を行い、また、セル毎に必要とする高さを計算し
て、その計算した値の最大値を当該セル行が必要とする
高さとし、全セル行の前記最大値の合計値が前記表枠の
高さよりも小さいときは、前記判断の結果が無であった
セル行の高さは、前記表枠の高さと前記合計値との差を
前記判断の結果が無であったセル行に分配した値と、前
記必要とする高さとを加算した値に、前記判断の結果が
有であったセル行の高さは、前記必要とする高さに、そ
れぞれ再設定する一方、前記合計値が前記表枠の高さよ
りも大きいときは、前記合計値を前記表枠の高さとして
再設定し、各セル行の高さは、前記必要とする高さに再
設定し、再設定した各セルに前記文字を再度記入し、表
を作成することを特徴とする。
A method for automatically setting a table frame cell according to a first aspect of the invention is to temporarily create a table frame and to fill each cell constituting the table frame with characters prepared in advance for each cell. Then, in the table frame cell automatic setting method of creating a table, for each cell row that has the same row and has the same height determined by the number of rows that the cell has, The presence or absence is determined, and the height required for each cell is calculated, and the maximum value of the calculated values is set as the height required by the cell row, and the total value of the maximum values of all cell rows is When the height of the cell frame is smaller than the height of the table frame, the height of the cell row in which the result of the determination is not, the cell in which the result of the determination is not the difference between the height of the table frame and the total value. The value of the cell row in which the result of the judgment is present is the value obtained by adding the value distributed to the row and the required height. S, while resetting to the required height respectively, when the total value is greater than the height of the table frame, reset the total value as the height of the table frame, each cell row It is characterized in that the height is reset to the required height, the characters are re-entered in each reset cell, and a table is created.

【0009】第2発明に係る表枠セル自動設定方法は、
同じ行を有し、その有する行数で決まる幅が等しいセル
で構成されるセル行毎に、記入された文字が溢れたセル
の有無の判断を行い、また、セル毎に必要とする幅を計
算して、その計算した値の最大値を当該セル行が必要と
する幅とし、全セル行の前記最大値の合計値が前記表枠
の幅よりも小さいときは、前記判断の結果が無であった
セル行の幅は、前記表枠の幅と前記合計値との差を前記
判断の結果が無であったセル行に分配した値と、前記必
要とする幅とを加算した値に、前記判断の結果が有であ
ったセル行の幅は、前記必要とする幅に、それぞれ再設
定する一方、前記合計値が前記表枠の幅よりも大きいと
きは、前記合計値を前記表枠の幅として再設定し、各セ
ル行の幅は、前記必要とする幅に再設定し、再設定した
各セルに前記文字を再度記入し、表を作成することを特
徴とする。
The table frame cell automatic setting method according to the second invention is
For each cell row that is composed of cells that have the same row and have the same width determined by the number of rows that they have, determine whether or not there is a cell in which the written characters overflow, and determine the required width for each cell. When the maximum value of the calculated values is calculated as the width required by the cell row and the total value of the maximum values of all the cell rows is smaller than the width of the table frame, the result of the determination is none. The width of the cell row was a value obtained by adding the value obtained by distributing the difference between the width of the table frame and the total value to the cell rows in which the result of the determination was none, and the required width. , The width of the cell row for which the result of the judgment is present is reset to the required width, respectively, while the total value is larger than the width of the table frame, the total value is The width of each cell row is reset to the width of the frame, and the width of each cell row is reset to the required width, and the character is set to each reset cell. Fill out again, and said that you create a table.

【0010】第3発明に係る表枠セル自動設定方法は、
表枠を仮作成し、該表枠を構成する各セルに、予めセル
毎に用意してある文字を記入して、表を作成する表枠セ
ル自動設定方法において、同じ行を有し、その有する行
数で決まる幅が等しいセルで構成されるセル行毎に、記
入された文字が溢れたセルの有無の判断を行い、また、
セル毎に必要とする幅を計算して、その計算した値の最
大値を当該セル行が必要とする幅とし、全セル行の前記
最大値の合計値が前記表枠の幅よりも小さいときは、前
記判断の結果が無であったセル行の幅は、前記表枠の幅
と前記合計値との差を前記判断の結果が無であったセル
行に分配した値と、前記必要とする幅とを加算した値
に、前記判断の結果が有であったセル行の幅は、前記必
要とする幅に、それぞれ再設定する一方、前記合計値が
前記表枠の幅よりも大きいときは、前記合計値を前記表
枠の幅として再設定し、各セル行の幅は、前記必要とす
る幅に再設定し、再設定した各セルに前記文字を再度記
入し、表を作成することを特徴とする。
A table frame cell automatic setting method according to the third invention is
In a table frame cell automatic setting method of creating a table by temporarily creating a table frame, entering the characters prepared for each cell in each cell constituting the table frame, and creating the table, For each cell row consisting of cells with the same width determined by the number of rows that they have, it is judged whether there is a cell in which the written characters overflow.
When the width required for each cell is calculated, the maximum value of the calculated values is set as the width required by the cell row, and the total value of the maximum values of all cell rows is smaller than the width of the table frame. The width of the cell row for which the result of the determination is absent is a value obtained by distributing the difference between the width of the table frame and the total value to the cell rows for which the result of the determination is absent, and the necessity. When the total value is larger than the width of the table frame, the width of the cell row having the result of the determination is reset to the required width. Resets the total value as the width of the table frame, resets the width of each cell row to the required width, re-enters the characters in each reset cell, and creates a table. It is characterized by

【0011】第4発明に係る電子編集装置は、表枠を仮
作成し、該表枠を構成する各セルに、予めセル毎に用意
してある文字を記入し、表を作成すべくなしてある電子
編集装置において、同じ行を有し、その有する行数で決
まる高さが等しいセルで構成されるセル行毎に、記入さ
れた文字が溢れたセルの有無の判断を行う第1判断手段
と、セル毎に必要とする高さを計算する第1計算手段
と、その計算した値のセル行毎の最大値を選択する第1
最大値選択手段と、セル行毎に前記最大値及び前記判断
の結果を記憶する第1記憶手段と、全セル行の前記最大
値を合計する第1最大値合計手段と、第1最大値合計手
段の合計値と前記表枠の高さとを比較する第1比較手段
と、第1比較手段の比較結果が前記合計値の方が小さい
ときは、前記判断の結果が無であったセル行の高さは、
前記表枠の高さと前記合計値との差を前記判断の結果が
無であったセル行に分配した値と、前記最大値とを加算
した値に、前記判断の結果が有であったセル行の高さ
は、前記最大値に、それぞれ再設定する一方、第1比較
手段の比較結果が前記合計値の方が大きいときは、前記
合計値を前記表枠の高さとして再設定し、各セル行の高
さは、前記最大値に再設定する第1再設定手段とを備
え、再設定した各セルに前記文字を再度記入し、表を作
成すべくなしてあることを特徴とする。
The electronic editing apparatus according to the fourth aspect of the present invention is to temporarily create a table frame, fill each cell constituting the table frame with a character prepared in advance for each cell, and create a table. In a certain electronic editing apparatus, first judging means for judging whether or not there is a cell in which written characters overflow, for each cell row having cells of the same row and having the same height determined by the number of the rows. And a first calculating means for calculating the required height for each cell, and a first calculating means for selecting the maximum value of the calculated value for each cell row.
Maximum value selection means, first storage means for storing the maximum value and the result of the judgment for each cell row, first maximum value summing means for summing the maximum values of all cell rows, and first maximum value sum First comparing means for comparing the total value of the means with the height of the table frame, and when the comparison result of the first comparing means is smaller than the total value, the result of the judgment is The height is
A value in which the difference between the height of the table frame and the total value is distributed to the cell rows in which the result of the determination is absent, and the value obtained by adding the maximum value to the cell in which the result of the determination is present. The row height is reset to the maximum value, respectively, while the comparison result of the first comparing means is larger than the total value, the total value is reset as the height of the table frame, The height of each cell row is provided with a first resetting means for resetting it to the maximum value, and the character is re-entered in each reset cell to create a table. .

【0012】第5発明に係る電子編集装置は、同じ行を
有し、その有する行数で決まる幅が等しいセルで構成さ
れるセル行毎に、記入された文字が溢れたセルの有無の
判断を行う第1判断手段と、セル毎に必要とする幅を計
算する第1計算手段と、その計算した値のセル行毎の最
大値を選択する第1最大値選択手段と、セル行毎に前記
最大値及び前記判断の結果を記憶する第1記憶手段と、
全セル行の前記最大値を合計する第1最大値合計手段
と、第1最大値合計手段の合計値と前記表枠の幅とを比
較する第1比較手段と、第1比較手段の比較結果が前記
合計値の方が小さいときは、前記判断の結果が無であっ
たセル行の幅は、前記表枠の幅と前記合計値との差を前
記判断の結果が無であったセル行に分配した値と、前記
最大値とを加算した値に、前記判断の結果が有であった
セル行の幅は、前記最大値に、それぞれ再設定する一
方、第1比較手段の比較結果が前記合計値の方が大きい
ときは、前記合計値を前記表枠の幅として再設定し、各
セル行の幅は、前記最大値に再設定する第1再設定手段
とを備えることを特徴とする。
The electronic editing apparatus according to the fifth aspect of the invention determines whether or not there is a cell in which written characters overflow, for each cell row that has the same row and has the same width determined by the number of the rows. First determining means for performing the above, first calculating means for calculating a required width for each cell, first maximum value selecting means for selecting the maximum value of the calculated value for each cell row, and each cell row First storage means for storing the maximum value and the result of the determination;
First maximum value summing means for summing the maximum values of all cell rows, first comparing means for comparing the total value of the first maximum value summing means with the width of the table frame, and a comparison result of the first comparing means. Is less than the total value, the width of the cell row that was not the result of the determination, the cell row that was not the result of the determination the difference between the width of the table frame and the total value The width of the cell row for which the result of the determination was added to the value obtained by adding the maximum value to the value distributed to the above is reset to the maximum value, while the comparison result of the first comparison means When the total value is larger, the total value is reset as the width of the table frame, and the width of each cell row is provided with a first resetting means for resetting to the maximum value. To do.

【0013】第6発明に係る電子編集装置は、表枠を仮
作成し、該表枠を構成する各セルに、予めセル毎に用意
してある文字を記入し、表を作成すべくなしてある電子
編集装置において、同じ行を有し、その有する行数で決
まる幅が等しいセルで構成されるセル行毎に、記入され
た文字が溢れたセルの有無の判断を行う第2判断手段
と、セル毎に必要とする幅を計算する第2計算手段と、
その計算した値のセル行毎の最大値を選択する第2最大
値選択手段と、セル行毎に前記最大値及び前記判断結果
を記憶する第2記憶手段と、全セル行の前記最大値を合
計する第2最大値合計手段と、第2最大値合計手段の合
計値と前記表枠の幅とを比較する第2比較手段と、第2
比較手段の比較結果が前記合計値の方が小さいときは、
前記判断の結果が無であったセル行の幅は、前記表枠の
幅と前記合計値との差を前記判断の結果が無であったセ
ル行に分配した値と、前記最大値とを加算した値に、前
記判断の結果が有であったセル行の幅は、前記最大値
に、それぞれ再設定する一方、第2比較手段の比較結果
が前記合計値の方が大きいときは、前記合計値を前記表
枠の幅として再設定し、各セル行の幅は、前記最大値に
再設定する第2再設定手段とを備え、再設定した各セル
に前記文字を再度記入し、表を作成すべくなしてあるこ
とを特徴とする。
The electronic editing apparatus according to the sixth aspect of the present invention temporarily creates a table frame, writes characters prepared in advance for each cell in each cell forming the table frame, and creates a table. In a certain electronic editing device, second judging means for judging whether or not there is a cell in which written characters overflow, for each cell row which has the same row and has an equal width determined by the number of the rows. , Second calculating means for calculating the width required for each cell,
Second maximum value selection means for selecting the maximum value of the calculated value for each cell row, second storage means for storing the maximum value and the determination result for each cell row, and the maximum value for all cell rows Second maximum value summing means for summing, second comparing means for comparing the total value of the second maximum value summing means with the width of the table frame,
When the comparison result of the comparison means is smaller than the total value,
As for the width of the cell row in which the result of the determination is none, a value obtained by distributing the difference between the width of the table frame and the total value to the cell rows in which the result of the determination is not, and the maximum value. The width of the cell row for which the result of the determination is added to the added value is reset to the maximum value, while the comparison result of the second comparing means is larger than the total value, the The total value is reset as the width of the table frame, and the width of each cell row is provided with a second resetting means for resetting the maximum value, and the characters are re-entered in each reset cell, and the table is displayed. It is characterized in that it is made to create.

【0014】[0014]

【作用】第1発明に係る表枠セル自動設定方法では、表
枠が横組の場合に、セル行毎に記入された文字が溢れた
セルの有無の判断を行うと共に、セル毎に必要とする高
さを計算し、その計算した値の最大値をそのセル行が必
要とする高さとする。そして、全セル行が必要とする高
さを合計し、この合計値が表枠の高さよりも小さいとき
は、前記判断の結果が無であったセル行の高さは、表枠
の高さと前記合計値との差を前記判断の結果が無であっ
たセル行に分配した値と、前記必要とする高さとを加算
した値に、前記判断の結果が有であったセル行の高さ
は、前記必要とする高さに、それぞれ再設定する。一
方、前記合計値が表枠の高さよりも大きいときは、前記
合計値を表枠の高さとして再設定し、各セル行の高さ
は、前記必要とする高さに再設定する。そして、再設定
した各セルに文字を再度記入し、表を作成する。
In the table frame cell automatic setting method according to the first aspect of the present invention, when the table frame is in horizontal writing mode, it is determined whether or not there is a cell in which the characters entered in each cell row overflow, and it is necessary for each cell. The height of the cell row is calculated, and the maximum value of the calculated values is set as the height required by the cell row. Then, the heights required by all the cell rows are summed up, and when this total value is smaller than the height of the table frame, the height of the cell row for which there is no result of the judgment is the height of the table frame. The height of the cell row in which the result of the determination was present, to the value obtained by adding the value obtained by distributing the difference from the total value to the cell rows in which the result of the determination was not, and the required height. Are reset to the required heights. On the other hand, when the total value is larger than the height of the table frame, the total value is reset as the height of the table frame, and the height of each cell row is reset to the required height. Then, the characters are entered again in each of the reset cells to create a table.

【0015】第2発明に係る表枠セル自動設定方法で
は、第1発明に係る表枠セル自動設定方法の作用に加え
て、表枠が縦組の場合に、セル行毎に記入された文字が
溢れたセルの有無の判断を行うと共に、セル毎に必要と
する幅を計算し、その計算した値の最大値をそのセル行
が必要とする幅とする。そして、全セル行が必要とする
幅を合計し、この合計値が表枠の幅よりも小さいとき
は、前記判断の結果が無であったセル行の幅は、表枠の
幅と前記合計値との差を前記判断の結果が無であったセ
ル行に分配した値と、前記必要とする幅とを加算した値
に、前記判断の結果が有であったセル行の幅は、前記必
要とする幅に、それぞれ再設定する。一方、前記合計値
が表枠の幅よりも大きいときは、前記合計値を表枠の幅
として再設定し、各セル行の幅は、前記必要とする幅に
再設定する。そして、再設定した各セルに文字を再度記
入し、表を作成する。
In the table frame cell automatic setting method according to the second aspect of the invention, in addition to the operation of the table frame cell automatic setting method according to the first aspect of the invention, when the table frame is vertically set, the characters entered in each cell line are It is determined whether or not there is an overflowing cell, the width required for each cell is calculated, and the maximum value of the calculated values is set as the width required for the cell row. Then, the widths required by all the cell rows are summed up, and when the total value is smaller than the width of the table frame, the width of the cell row for which the result of the judgment is none is the width of the table frame and the total. The width of the cell row having the result of the determination is added to the value obtained by adding the value obtained by distributing the difference between the values to the cell rows having no result of the determination, and the required width, Reset each to the required width. On the other hand, when the total value is larger than the width of the table frame, the total value is reset as the width of the table frame, and the width of each cell row is reset to the required width. Then, the characters are entered again in each of the reset cells to create a table.

【0016】第3発明に係る表枠セル自動設定方法で
は、表枠が縦組の場合に、セル行毎に記入された文字が
溢れたセルの有無の判断を行うと共に、セル毎に必要と
する幅を計算し、その計算した値の最大値をそのセル行
が必要とする幅とする。そして、全セル行が必要とする
幅を合計し、この合計値が表枠の幅よりも小さいとき
は、前記判断の結果が無であったセル行の幅は、表枠の
幅と前記合計値との差を前記判断の結果が無であったセ
ル行に分配した値と、前記必要とする幅とを加算した値
に、前記判断の結果が有であったセル行の幅は、前記必
要とする幅に、それぞれ再設定する。一方、前記合計値
が表枠の幅よりも大きいときは、前記合計値を表枠の幅
として再設定し、各セル行の幅は、前記必要とする幅に
再設定する。そして、再設定した各セルに文字を再度記
入し、表を作成する。
In the table frame cell automatic setting method according to the third aspect of the invention, when the table frame is vertically set, it is determined whether or not there is a cell in which the characters entered in each cell line overflow, and it is necessary for each cell. The width of the cell row is calculated, and the maximum value of the calculated values is set as the width required by the cell row. Then, the widths required by all the cell rows are summed up, and when the total value is smaller than the width of the table frame, the width of the cell row for which the result of the judgment is none is the width of the table frame and the total. The width of the cell row having the result of the determination is added to the value obtained by adding the value obtained by distributing the difference between the values to the cell rows having no result of the determination, and the required width, Reset each to the required width. On the other hand, when the total value is larger than the width of the table frame, the total value is reset as the width of the table frame, and the width of each cell row is reset to the required width. Then, the characters are entered again in each of the reset cells to create a table.

【0017】第4発明に係る電子編集装置では、表枠が
横組の場合に、セル行毎に、第1判断手段が、記入され
た文字が溢れたセルの有無の判断を行い、第1計算手段
が、セル毎に必要とする高さを計算し、第1最大値選択
手段が、その計算した値のセル行毎の最大値を選択す
る。第1記憶手段は、セル行毎に前記最大値及び前記判
断の結果を記憶しておき、第1最大値合計手段は、全セ
ル行の前記最大値を合計し、第1比較手段は、この合計
値と表枠の高さとを比較する。第1再設定手段は、この
比較結果が前記合計値の方が小さいときは、前記判断の
結果が無であったセル行の高さは、表枠の高さと前記合
計値との差を前記判断の結果が無であったセル行に分配
した値と、前記最大値とを加算した値に、前記判断の結
果が有であったセル行の高さは、前記最大値に、それぞ
れ再設定する。一方、第1再設定手段は、第1比較手段
の比較結果が前記合計値の方が大きいときは、前記合計
値を表枠の高さとして再設定し、各セル行の高さは、前
記最大値に再設定する。そして、再設定した各セルに文
字を再度記入し、表を作成する。
In the electronic editing apparatus according to the fourth aspect of the present invention, when the table frame is in horizontal writing mode, the first determining means determines, for each cell row, whether or not there is a cell in which written characters overflow. The calculating means calculates the required height for each cell, and the first maximum value selecting means selects the maximum value of the calculated value for each cell row. The first storage means stores the maximum value and the result of the determination for each cell row, the first maximum value summing means sums the maximum values of all cell rows, and the first comparing means calculates the maximum value. Compare the total value with the height of the table frame. The first resetting means determines, when the comparison result is smaller than the total value, that the height of the cell row for which the result of the determination is none is the difference between the height of the table frame and the total value. The height of the cell row having the result of the determination is reset to the maximum value, in addition to the value obtained by adding the maximum value and the value distributed to the cell rows having no result of the determination. To do. On the other hand, the first resetting means resets the total value as the height of the table frame when the comparison result of the first comparing means is larger than the total value, and the height of each cell row is Reset to maximum value. Then, the characters are entered again in each of the reset cells to create a table.

【0018】第5発明に係る電子編集装置では、表枠が
縦組の場合に、セル行毎に、第1判断手段が、記入され
た文字が溢れたセルの有無の判断を行い、第1計算手段
が、セル毎に必要とする幅を計算し、第1最大値選択手
段が、その計算した値のセル行毎の最大値を選択する。
第1記憶手段は、セル行毎に前記最大値及び前記判断の
結果を記憶しておき、第1最大値合計手段は、全セル行
の前記最大値を合計し、第1比較手段は、この合計値と
表枠の幅とを比較する。第1再設定手段は、この比較結
果が前記合計値の方が小さいときは、前記判断の結果が
無であったセル行の幅は、表枠の幅と前記合計値との差
を前記判断の結果が無であったセル行に分配した値と、
前記最大値とを加算した値に、前記判断の結果が有であ
ったセル行の幅は、前記最大値に、それぞれ再設定す
る。一方、第1再設定手段は、第1比較手段の比較結果
が前記合計値の方が大きいときは、前記合計値を表枠の
幅として再設定し、各セル行の幅は、前記最大値に再設
定する。そして、再設定した各セルに文字を再度記入
し、表を作成する。
In the electronic editing apparatus according to the fifth aspect of the invention, when the table frame is in vertical writing mode, the first judging means judges for each cell row whether or not there is a cell in which the written characters overflow. The calculating means calculates the required width for each cell, and the first maximum value selecting means selects the maximum value of the calculated value for each cell row.
The first storage means stores the maximum value and the result of the determination for each cell row, the first maximum value summing means sums the maximum values of all cell rows, and the first comparing means calculates the maximum value. Compare the total value with the width of the table frame. When the comparison result is smaller than the total value, the first resetting means determines the difference between the width of the table frame and the total value as the width of the cell row for which the result of the determination is none. And the value distributed to the cell rows for which there was no result of
The width of the cell row for which the result of the determination is added to the value obtained by adding the maximum value is reset to the maximum value. On the other hand, the first resetting means resets the total value as the width of the table frame when the comparison result of the first comparing means is larger than the total value, and the width of each cell row is the maximum value. Reset to. Then, the characters are entered again in each of the reset cells to create a table.

【0019】第6発明に係る電子編集装置では、表枠が
縦組の場合に、セル行毎に、第2判断手段が、記入され
た文字が溢れたセルの有無の判断を行い、第2計算手段
が、セル毎に必要とする幅を計算し、第2最大値選択手
段が、その計算した値のセル行毎の最大値を選択する。
第2記憶手段は、セル行毎に前記最大値及び前記判断の
結果を記憶しておき、第2最大値合計手段は、全セル行
の前記最大値を合計し、第2比較手段は、この合計値と
表枠の幅とを比較する。第2再設定手段は、この比較結
果が前記合計値の方が小さいときは、前記判断の結果が
無であったセル行の幅は、表枠の幅と前記合計値との差
を前記判断の結果が無であったセル行に分配した値と、
前記最大値とを加算した値に、前記判断の結果が有であ
ったセル行の幅は、前記最大値に、それぞれ再設定す
る。一方、第2再設定手段は、第2比較手段の比較結果
が前記合計値の方が大きいときは、前記合計値を表枠の
幅として再設定し、各セル行の幅は、前記最大値に再設
定する。そして、再設定した各セルに文字を再度記入
し、表を作成する。
In the electronic editing apparatus according to the sixth aspect of the present invention, when the table frame is in vertical writing mode, the second judging means judges for each cell row whether or not there is a cell in which the written characters overflow. The calculating means calculates the required width for each cell, and the second maximum value selecting means selects the maximum value of the calculated value for each cell row.
The second storage means stores the maximum value and the result of the determination for each cell row, the second maximum value summing means sums the maximum values of all cell rows, and the second comparison means Compare the total value with the width of the table frame. When the comparison result is smaller than the total value, the second resetting means determines the difference between the width of the table frame and the total value as the width of the cell row for which the result of the determination is none. And the value distributed to the cell rows for which there was no result of
The width of the cell row for which the result of the determination is added to the value obtained by adding the maximum value is reset to the maximum value. On the other hand, the second resetting means resets the total value as the width of the table frame when the comparison result of the second comparing means is larger than the total value, and the width of each cell row is the maximum value. Reset to. Then, the characters are entered again in each of the reset cells to create a table.

【0020】[0020]

【実施例】以下に、本発明をその実施例を示す図面に基
づき説明する。図1は、第1,2発明に係る表枠セル自
動設定方法及び第4,5発明に係る電子編集装置の1実
施例の構成を示すブロック図である。この電子編集装置
は、マイクロコンピュータを含む制御部1と、制御部1
に文字及び罫線等を入力するキーボード3と、制御部1
からの出力をCRT等に表示する表示部2と、制御部1
が読み出すROM4と、ディスクドライブ装置等の制御
部1の外部記憶装置8と、制御部1が読出し/書込みを
行うRAM5内に設けられた、仮設定された表枠及び表
枠を構成する各セルの属性を記憶する表枠・セル属性記
憶部6と、同じくRAM5内に設けられた、セル行(同
じ行を有し、その有する行数で決まる高さが等しい)が
必要とする高さ及び記入された文字が溢れたセルの有無
の判断結果を記憶しておくセル行記憶部7とを備えてい
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings showing its embodiments. FIG. 1 is a block diagram showing the configuration of an embodiment of an automatic table frame cell setting method according to the first and second inventions and an electronic editing apparatus according to the fourth and fifth inventions. This electronic editing apparatus includes a control unit 1 including a microcomputer and a control unit 1.
A keyboard 3 for inputting characters and ruled lines, and a control unit 1
Display unit 2 for displaying the output from the CRT or the like, and control unit 1
Read out by the ROM 4, the external storage device 8 of the control unit 1 such as a disk drive device, and the RAM 5 for reading / writing by the control unit 1 and the temporarily set table frame and each cell forming the table frame. Of the table frame / cell attribute storage unit 6 for storing the attributes of the cells and the height required by the cell rows (having the same row and having the same height determined by the number of the rows) provided in the RAM 5 and And a cell row storage unit 7 for storing the result of the determination of the presence / absence of cells in which the written characters overflow.

【0021】以下に、このような構成の電子編集装置の
表枠セル自動設定方法を、表枠が横組の場合について、
その方法を示すフローチャート(図2,3)を参照しな
がら説明する。操作者は、キーボード3を使用して、表
枠及び表枠を構成する各セルの属性を設定し、制御部1
は、これにより表枠及び表枠を構成する各セルの属性を
仮設定する(S1)と共に、その属性を表枠・セル属性
記憶部6に記憶させる。
The method of automatically setting the table frame cells of the electronic editing apparatus having such a configuration will be described below for the case where the table frame is in horizontal writing mode.
This will be described with reference to flowcharts (FIGS. 2 and 3) showing the method. The operator uses the keyboard 3 to set the attributes of the table frame and each cell forming the table frame, and the controller 1
This temporarily sets the attributes of the table frame and each cell forming the table frame (S1), and stores the attribute in the table frame / cell attribute storage unit 6.

【0022】次に、各セルに、予めセル毎に用意してあ
る文字を記入する(S3)。次に、セル行の内、最も上
に位置するセル行を選択し(S5)、記入された文字が
溢れた(文字が入り切らなかった)セルの有無を判断す
る(S7)。それと共に、セル毎に、記入された文字数
とセルの幅(固定されている)とから、必要とする高さ
を計算する(S9)。次いで、この計算したセル毎の必
要とする高さの最大値を選択し、この最大値をそのセル
行が必要とする高さとして(S11)、この必要とする
高さ及び上述の判断結果(S7)をセル行記憶部7に記
憶する(S13)。
Next, characters prepared in advance for each cell are written in each cell (S3). Next, of the cell rows, the cell row located at the top is selected (S5), and it is determined whether or not there is a cell in which the written characters overflow (characters are not completely filled) (S7). At the same time, the required height is calculated for each cell from the number of written characters and the cell width (fixed) (S9). Then, the maximum value of the required height for each calculated cell is selected, and this maximum value is set as the height required by the cell row (S11), and the required height and the above-mentioned determination result ( S7) is stored in the cell row storage unit 7 (S13).

【0023】次に、2番目に上に位置するセル行を選択
し(S27)、記入された文字が溢れたセルの有無を判
断する(S7)。それと共に、セル毎に、記入された文
字数とセルの幅とから、必要とする高さを計算する(S
9)。次いで、この計算したセル毎の必要とする高さの
最大値を選択し、この最大値をそのセル行が必要とする
高さとして(S11)、この必要とする高さ及び上述の
判断結果(S7)をセル行記憶部7に記憶する(S1
3)。以下、同様に、上から順番にセル行を選択する都
度、上述の判断(S7)、計算(S9)、選択(S1
1)及び記憶(S13)を繰り返す。
Next, the cell row located at the second upper position is selected (S27), and it is determined whether there is a cell in which the written characters overflow (S7). At the same time, the required height is calculated for each cell from the number of written characters and the cell width (S
9). Then, the maximum value of the required height for each calculated cell is selected, and this maximum value is set as the height required by the cell row (S11), and the required height and the above-mentioned determination result ( S7) is stored in the cell row storage unit 7 (S1)
3). Hereinafter, similarly, each time the cell rows are selected in order from the top, the above determination (S7), calculation (S9), and selection (S1) are performed.
1) and storage (S13) are repeated.

【0024】表枠の全セル行の判断(S7)、計算(S
9)、選択(S11)及び記憶(S13)が終了すると
(S15)、セル行記憶部7に記憶してある全てのセル
行が必要とする高さを合計する(S17)。次いで、こ
の合計した高さと表枠の高さとを比較し(S19)、合
計した高さが表枠の高さよりも小さいときは、セル行記
憶部7に記憶してある判断(S7)の結果が無であるセ
ル行(文字が溢れたセルが存在しないセル行)の高さ
は、表枠の高さと合計した高さとの差を、判断(S7)
の結果が無であったセル行に分配した値と、そのセル行
が必要とする高さとを加算した値に再設定し(S2
1)、判断(S7)の結果が有であったセル行(文字が
溢れたセルが存在するセル行)の高さは、そのセル行が
必要とする高さに再設定する(S23)。
Judgment (S7) and calculation (S7) of all cell rows in the table frame
9) When the selection (S11) and the storage (S13) are completed (S15), the heights required by all the cell rows stored in the cell row storage unit 7 are summed (S17). Next, this totaled height is compared with the height of the table frame (S19), and when the totaled height is smaller than the height of the table frame, the result of the determination (S7) stored in the cell row storage unit 7 The height of the cell row where there is nothing (the cell row where there is no cell overflowing with characters) is determined by the difference between the height of the table frame and the total height (S7).
Is reset to a value obtained by adding the value distributed to the cell row for which there was no result and the height required by the cell row (S2
1), the height of the cell row (the cell row in which a cell overflowing with characters exists) for which the result of the determination (S7) is present is reset to the height required by the cell row (S23).

【0025】一方、合計した高さが表枠の高さよりも大
きいときは(S19)、表示部2に(合計した高さ−表
枠の高さ)分の表枠拡張要求を表示し(S29)、操作
者(ユーザー)がキーボード3によりこれを了解したと
きは(S31)、表枠の高さを合計した高さに再設定し
(S33)、各セル行の高さをそのセル行が必要とする
高さに再設定する(S23)。次に、再設定した各セル
に、予めセル毎に用意してある文字(当初の文字と同じ
もの)を再度記入し(S25)、表を作成する。
On the other hand, if the total height is larger than the height of the table frame (S19), the display unit 2 displays the table frame expansion request for (total height-table frame height) (S29). ), When the operator (user) acknowledges this with the keyboard 3 (S31), the height of the table frame is reset to the total height (S33), and the height of each cell row is set to that cell row. The height is reset to the required height (S23). Next, a character (same as the original character) prepared in advance for each cell is re-entered in each reset cell (S25) to create a table.

【0026】図4は、各セルに、予めセル毎に用意して
ある文字を記入した(S3)調整前の表の例であり、セ
ルAで文字が溢れ、全てのセル行が必要とする高さの合
計が表枠の高さよりも小さい場合である(S19)。図
5は、図4の調整後の表であり、文字が溢れたセルが存
在しないセル行の高さは、表枠の高さと全てのセル行が
必要とする高さの合計との差を、文字が溢れたセルが存
在しないセル行に均等に分配した(S21)値と、その
セル行が必要とする高さとを加算した値に再設定し(S
23)、文字が溢れたセルAが存在するセル行の高さ
は、そのセル行が必要とする高さ(=セルAが必要とす
る高さ)に再設定しており(S23)、文字が溢れたセ
ルAは、セルAaに示すように文字が溢れなくなってい
る。図5の表枠全体の大きさは、図4の調整前の表枠と
同じである。
FIG. 4 is an example of a table before adjustment in which characters prepared in advance for each cell are entered in each cell (S3). The characters overflow in cell A and all cell rows are required. This is the case where the total height is smaller than the height of the table frame (S19). FIG. 5 is a table after the adjustment of FIG. 4, and the height of the cell row where there are no cells overflowing with the character is the difference between the height of the table frame and the total height required by all the cell rows. , Resetting to a value obtained by adding the value evenly distributed to cell rows in which there are no overflowing characters (S21) and the height required by that cell row (S21).
23), the height of the cell row in which the cell A overflowing with characters exists is reset to the height required by the cell row (= the height required by the cell A) (S23). In the cell A overflowing with characters, the characters do not overflow as shown in the cell Aa. The overall size of the table frame in FIG. 5 is the same as that of the table frame before adjustment in FIG.

【0027】図6は、各セルに、予めセル毎に用意して
ある文字を記入した(S3)調整前の表の他の例であ
り、セルBで文字が溢れ、全てのセル行が必要とする高
さの合計が表枠の高さよりも大きい場合である(S1
9)。図7は、図6の調整後の表であり、表枠の高さを
全てのセル行が必要とする高さの合計に再設定し(S3
3)、各セル行の高さを各セル行が必要とする高さに再
設定しており(S23)、文字が溢れたセルBは、セル
Baに示すように文字が溢れなくなっている。但し、図
7の表枠全体の大きさは、図6の調整前の表枠より、全
てのセル行が必要とする高さの合計を元の表枠の高さで
差し引いた分、高さ(上下方向)が拡張されている。
FIG. 6 is another example of the table before adjustment in which characters prepared in advance for each cell are entered in each cell (S3). The characters overflow in cell B and all cell rows are required. This is the case where the total height to be set is larger than the height of the table frame (S1
9). FIG. 7 is a table after the adjustment of FIG. 6, in which the height of the table frame is reset to the total height required by all cell rows (S3
3) Then, the height of each cell row is reset to the height required by each cell row (S23), and the cell B overflowing with characters has no overflow of characters as shown in the cell Ba. However, the size of the entire table frame in FIG. 7 is the height obtained by subtracting the total height required by all the cell rows from the height of the original table frame from the table frame before adjustment in FIG. Expanded (up and down).

【0028】本実施例による電子編集装置の表枠セル自
動設定方法の、表枠が縦組の場合の動作については、図
8,9のフローチャートに示す。表枠が縦組の場合の表
枠セル自動設定方法は、図2,3のフローチャートに示
した表枠が横組の場合のセル及びセル行の「高さ」を、
セル及びセル行の「幅」に置き換えたものと略同様であ
り、図2の「最上位置のセル行を選択」(S5)と図8
の「最右位置のセル行を選択」(S45)とが異なるの
みであるので、説明を省略する。
The operation of the table frame cell automatic setting method of the electronic editing apparatus according to this embodiment when the table frame is vertically set is shown in the flowcharts of FIGS. The table frame cell automatic setting method in the case where the table frame is in vertical composition is as follows. The "height" of the cells and cell rows when the table frame in horizontal composition is shown in the flowcharts of FIGS.
This is almost the same as the case of replacing the "width" of a cell and a cell row, and is the same as "Select cell row at top position" (S5) in FIG.
The description is omitted because it is different from “Select cell row at rightmost position” (S45).

【0029】図10は、表枠が縦組の場合に、各セル
に、予めセル毎に用意してある文字を記入した(S4
3)調整前の表の例であり、セルCで文字が溢れ、全て
のセル行が必要とする幅の合計が表枠の幅よりも小さい
場合である(S59)。図11は、図10の調整後の表
であり、文字が溢れたセルが存在しないセル行の幅は、
表枠の幅と全てのセル行が必要とする幅の合計との差
を、文字が溢れたセルが存在しないセル行に均等に分配
した(S61)値と、そのセル行が必要とする高さとを
加算した値に再設定し(S63)、文字が溢れたセルC
が存在するセル行の幅は、そのセル行が必要とする幅
(=セルCが必要とする幅)に再設定しており(S6
3)、文字が溢れたセルCは、セルCaに示すように文
字が溢れなくなっている。図11の表枠全体の大きさ
は、図10の調整前の表枠と同じである。
In FIG. 10, when the table frame is vertically set, characters prepared in advance for each cell are written in each cell (S4).
3) This is an example of the table before adjustment, in which the characters overflow in cell C and the total width required by all cell rows is smaller than the width of the table frame (S59). FIG. 11 is the adjusted table of FIG. 10, and the width of the cell row in which there are no cells overflowing with characters is
The difference between the width of the table frame and the sum of the widths required by all cell rows is evenly distributed to the cell rows in which there are no overflowing characters (S61), and the value required by the cell row. The value is reset to the value obtained by adding and (S63), and cell C overflowing with characters
The width of the cell row in which is present is reset to the width required by the cell row (= the width required by the cell C) (S6
3) In the cell C where the character overflows, the character does not overflow as shown in the cell Ca. The overall size of the table frame in FIG. 11 is the same as that of the table frame before adjustment in FIG.

【0030】図12は、各セルに、予めセル毎に用意し
てある文字を記入した(S43)調整前の表の他の例で
あり、セルDで文字が溢れ、全てのセル行が必要とする
幅の合計が表枠の幅よりも大きい場合である(S5
9)。図13は、図12の調整後の表であり、表枠の幅
を全てのセル行が必要とする幅の合計に再設定し(S7
3)、各セル行の幅をそれらのセル行が必要とする幅に
再設定しており(S63)、文字が溢れたセルDは、セ
ルDaに示すように文字が溢れなくなっている。但し、
図13の表枠全体の大きさは、図12の調整前の表枠よ
り、全てのセル行が必要とする幅の合計を元の表枠の幅
で差し引いた分、幅(左右方向)が拡張されている。
FIG. 12 is another example of the table before adjustment in which characters prepared in advance for each cell are entered in each cell (S43). The characters overflow in cell D and all cell rows are required. This is the case where the sum of the widths is larger than the width of the table frame (S5
9). FIG. 13 is a table after the adjustment of FIG. 12, in which the width of the table frame is reset to the total width required by all cell rows (S7).
3) The width of each cell row is reset to the width required by those cell rows (S63), and the cell D in which the character overflows does not overflow the character as shown in the cell Da. However,
The size of the entire table frame in FIG. 13 is smaller than the table frame before adjustment in FIG. 12 by subtracting the total width required by all the cell rows by the width of the original table frame, and the width (horizontal direction) is It has been extended.

【0031】第3発明に係る表枠セル自動設定方法及び
第6発明に係る電子編集装置の1実施例の構成例は、上
述で説明した、第1,2発明に係る表枠セル自動設定方
法及び第4,5発明に係る電子編集装置の1実施例の構
成例と同様であるので、説明を省略する。第3発明に係
る表枠セル自動設定方法及び第6発明に係る電子編集装
置の1実施例の動作は、上述した第1,2発明に係る表
枠セル自動設定方法及び第4,5発明に係る電子編集装
置の、表枠が縦組の場合の動作と同様なので、説明を省
略する。
The table frame cell automatic setting method according to the third invention and the configuration example of one embodiment of the electronic editing apparatus according to the sixth invention are the table frame cell automatic setting methods according to the first and second inventions described above. Since it is the same as the configuration example of the first embodiment of the electronic editing apparatus according to the fourth and fifth inventions, the description thereof will be omitted. The operation of the table frame cell automatic setting method according to the third invention and the operation of one embodiment of the electronic editing apparatus according to the sixth invention are the same as those of the table frame cell automatic setting method according to the first and second inventions and the fourth and fifth inventions described above. Since the operation of the electronic editing apparatus is the same as when the table frame is vertically set, the description thereof will be omitted.

【0032】[0032]

【発明の効果】第1〜3発明に係る表枠セル自動設定方
法によれば、操作者の手間を省くことができ、作成効率
が高い表枠セル自動設定方法を実現することができる。
According to the table frame cell automatic setting method according to the first to third aspects of the present invention, the labor of the operator can be saved and the table frame cell automatic setting method with high creation efficiency can be realized.

【0033】第4〜6発明に係る電子編集装置によれ
ば、操作者の手間を省くことができ、表枠の作成効率が
高い電子編集装置を実現することができる。
According to the electronic editing apparatus of the fourth to sixth aspects of the present invention, it is possible to save the operator's labor and realize an electronic editing apparatus having a high efficiency of creating the table frame.

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

【図1】本発明に係る電子編集装置の要部構成例を示す
ブロック図である。
FIG. 1 is a block diagram showing a configuration example of a main part of an electronic editing apparatus according to the present invention.

【図2】第1発明に係る表枠セル自動設定方法を示すフ
ローチャートである。
FIG. 2 is a flowchart showing a table frame cell automatic setting method according to the first invention.

【図3】第1発明に係る表枠セル自動設定方法を示すフ
ローチャートである。
FIG. 3 is a flowchart showing a table frame cell automatic setting method according to the first invention.

【図4】第1発明に係る表枠セル自動設定方法による調
整前の表枠の例を示す説明図である。
FIG. 4 is an explanatory diagram showing an example of a table frame before adjustment by the table frame cell automatic setting method according to the first invention.

【図5】第1発明に係る表枠セル自動設定方法による調
整後の表枠の例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example of a table frame after adjustment by the table frame cell automatic setting method according to the first invention.

【図6】第1発明に係る表枠セル自動設定方法による調
整前の表枠の例を示す説明図である。
FIG. 6 is an explanatory diagram showing an example of a table frame before adjustment by the table frame cell automatic setting method according to the first invention.

【図7】第1発明に係る表枠セル自動設定方法による調
整後の表枠の例を示す説明図である。
FIG. 7 is an explanatory diagram showing an example of a table frame after adjustment by the table frame cell automatic setting method according to the first invention.

【図8】第2,3発明に係る表枠セル自動設定方法を示
すフローチャートである。
FIG. 8 is a flowchart showing an automatic table frame cell setting method according to second and third inventions.

【図9】第2,3発明に係る表枠セル自動設定方法を示
すフローチャートである。
FIG. 9 is a flowchart showing a table frame cell automatic setting method according to second and third inventions.

【図10】第2,3発明に係る表枠セル自動設定方法に
よる調整前の表枠の例を示す説明図である。
FIG. 10 is an explanatory diagram showing an example of a table frame before adjustment by the table frame cell automatic setting method according to the second and third inventions.

【図11】第2,3発明に係る表枠セル自動設定方法に
よる調整後の表枠の例を示す説明図である。
FIG. 11 is an explanatory diagram showing an example of a table frame after adjustment by the table frame cell automatic setting method according to the second and third inventions.

【図12】第2,3発明に係る表枠セル自動設定方法に
よる調整前の表枠の例を示す説明図である。
FIG. 12 is an explanatory diagram showing an example of a table frame before adjustment by the table frame cell automatic setting method according to the second and third inventions.

【図13】第2,3発明に係る表枠セル自動設定方法に
よる調整後の表枠の例を示す説明図である。
FIG. 13 is an explanatory diagram showing an example of a table frame after adjustment by the table frame cell automatic setting method according to the second and third inventions.

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

1 制御部 6 表枠・セル属性記憶部 7 セル行記憶部 1 control unit 6 table frame / cell attribute storage unit 7 cell row storage unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 表枠を仮作成し、該表枠を構成する各セ
ルに、予めセル毎に用意してある文字を記入して、表を
作成する表枠セル自動設定方法において、 同じ行を有し、その有する行数で決まる高さが等しいセ
ルで構成されるセル行毎に、記入された文字が溢れたセ
ルの有無の判断を行い、また、セル毎に必要とする高さ
を計算して、その計算した値の最大値を当該セル行が必
要とする高さとし、全セル行の前記最大値の合計値が前
記表枠の高さよりも小さいときは、前記判断の結果が無
であったセル行の高さは、前記表枠の高さと前記合計値
との差を前記判断の結果が無であったセル行に分配した
値と、前記必要とする高さとを加算した値に、前記判断
の結果が有であったセル行の高さは、前記必要とする高
さに、それぞれ再設定する一方、前記合計値が前記表枠
の高さよりも大きいときは、前記合計値を前記表枠の高
さとして再設定し、各セル行の高さは、前記必要とする
高さに再設定し、再設定した各セルに前記文字を再度記
入し、表を作成することを特徴とする表枠セル自動設定
方法。
1. A table frame cell automatic setting method for creating a table by temporarily creating a table frame and entering characters prepared in advance for each cell in each cell forming the table frame For each cell row composed of cells that have the same height determined by the number of rows that they have, the presence or absence of a cell in which the written characters overflow is determined, and the required height is determined for each cell. The maximum value of the calculated values is set as the height required by the cell row, and when the total value of the maximum values of all the cell rows is smaller than the height of the table frame, the result of the determination is none. The height of the cell row was a value obtained by adding the required value and the value obtained by distributing the difference between the height of the table frame and the total value to the cell rows where the result of the determination was none. In addition, the height of the cell row for which the result of the determination is present is reset to the required height, respectively. When the total value is larger than the height of the table frame, the total value is reset as the height of the table frame, the height of each cell row is reset to the required height, A table frame cell automatic setting method, characterized in that the above-mentioned characters are entered again in each set cell to create a table.
【請求項2】 同じ行を有し、その有する行数で決まる
幅が等しいセルで構成されるセル行毎に、記入された文
字が溢れたセルの有無の判断を行い、また、セル毎に必
要とする幅を計算して、その計算した値の最大値を当該
セル行が必要とする幅とし、全セル行の前記最大値の合
計値が前記表枠の幅よりも小さいときは、前記判断の結
果が無であったセル行の幅は、前記表枠の幅と前記合計
値との差を前記判断の結果が無であったセル行に分配し
た値と、前記必要とする幅とを加算した値に、前記判断
の結果が有であったセル行の幅は、前記必要とする幅
に、それぞれ再設定する一方、前記合計値が前記表枠の
幅よりも大きいときは、前記合計値を前記表枠の幅とし
て再設定し、各セル行の幅は、前記必要とする幅に再設
定し、再設定した各セルに前記文字を再度記入し、表を
作成する請求項1記載の表枠セル自動設定方法。
2. The presence / absence of a cell in which written characters are overflowed is determined for each cell row, which is composed of cells having the same row and having the same width determined by the number of the rows, and for each cell. Calculate the required width, the maximum value of the calculated value as the width required by the cell row, when the total value of the maximum values of all cell rows is smaller than the width of the table frame, The width of the cell row that has no determination result is a value obtained by distributing the difference between the width of the table frame and the total value to the cell rows that has no determination result, and the required width. To the value obtained by adding the above, the width of the cell row for which the result of the determination is present is reset to the required width, while the total value is larger than the width of the table frame, The total value is reset as the width of the table frame, the width of each cell row is reset to the required width, and each reset cell is reset. The method for automatically setting a table frame cell according to claim 1, wherein the character is re-entered in the file to create a table.
【請求項3】 表枠を仮作成し、該表枠を構成する各セ
ルに、予めセル毎に用意してある文字を記入して、表を
作成する表枠セル自動設定方法において、 同じ行を有し、その有する行数で決まる幅が等しいセル
で構成されるセル行毎に、記入された文字が溢れたセル
の有無の判断を行い、また、セル毎に必要とする幅を計
算して、その計算した値の最大値を当該セル行が必要と
する幅とし、全セル行の前記最大値の合計値が前記表枠
の幅よりも小さいときは、前記判断の結果が無であった
セル行の幅は、前記表枠の幅と前記合計値との差を前記
判断の結果が無であったセル行に分配した値と、前記必
要とする幅とを加算した値に、前記判断の結果が有であ
ったセル行の幅は、前記必要とする幅に、それぞれ再設
定する一方、前記合計値が前記表枠の幅よりも大きいと
きは、前記合計値を前記表枠の幅として再設定し、各セ
ル行の幅は、前記必要とする幅に再設定し、再設定した
各セルに前記文字を再度記入し、表を作成することを特
徴とする表枠セル自動設定方法。
3. A table frame cell automatic setting method for creating a table by temporarily creating a table frame and entering characters prepared in advance for each cell in each cell forming the table frame For each cell row that is composed of cells that have the same width determined by the number of rows they have, determine whether or not there is a cell in which the written characters overflow, and calculate the required width for each cell. Then, the maximum value of the calculated values is set as the width required by the cell row, and when the total value of the maximum values of all cell rows is smaller than the width of the table frame, the result of the determination is nothing. The width of the cell row is a value obtained by adding the required width and a value obtained by distributing the difference between the width of the table frame and the total value to the cell rows where the result of the determination is none, The width of the cell row for which the result of the determination was found is reset to the required width, while the total value is When it is larger than the width of the frame, the total value is reset as the width of the table frame, the width of each cell row is reset to the required width, and the character is reset to each reset cell. A table frame cell automatic setting method characterized by filling in and creating a table.
【請求項4】 表枠を仮作成し、該表枠を構成する各セ
ルに、予めセル毎に用意してある文字を記入し、表を作
成すべくなしてある電子編集装置において、同じ行を有
し、その有する行数で決まる高さが等しいセルで構成さ
れるセル行毎に、記入された文字が溢れたセルの有無の
判断を行う第1判断手段と、セル毎に必要とする高さを
計算する第1計算手段と、その計算した値のセル行毎の
最大値を選択する第1最大値選択手段と、セル行毎に前
記最大値及び前記判断の結果を記憶する第1記憶手段
と、全セル行の前記最大値を合計する第1最大値合計手
段と、第1最大値合計手段の合計値と前記表枠の高さと
を比較する第1比較手段と、第1比較手段の比較結果が
前記合計値の方が小さいときは、前記判断の結果が無で
あったセル行の高さは、前記表枠の高さと前記合計値と
の差を前記判断の結果が無であったセル行に分配した値
と、前記最大値とを加算した値に、前記判断の結果が有
であったセル行の高さは、前記最大値に、それぞれ再設
定する一方、第1比較手段の比較結果が前記合計値の方
が大きいときは、前記合計値を前記表枠の高さとして再
設定し、各セル行の高さは、前記最大値に再設定する第
1再設定手段とを備え、再設定した各セルに前記文字を
再度記入し、表を作成すべくなしてあることを特徴とす
る電子編集装置。
4. A table frame is provisionally created, and characters prepared in advance for each cell are entered in each cell constituting the table frame, and the same row is created in an electronic editing device designed to create the table. And a first determining means for determining whether or not there is a cell in which the written characters overflow, for each cell row that is composed of cells having the same height determined by the number of the rows First calculation means for calculating the height, first maximum value selection means for selecting the maximum value of the calculated value for each cell row, and first storage means for storing the maximum value and the result of the determination for each cell row Storage means, first maximum value summing means for summing the maximum values of all cell rows, first comparing means for comparing the total value of the first maximum value summing means with the height of the table frame, and first comparison When the comparison result of the means is smaller than the total value, the height of the cell row for which the result of the determination is none is , The difference between the height of the table frame and the total value was distributed to the cell rows that did not have the result of the determination, and the value obtained by adding the maximum value had the result of the determination. The height of the cell row is reset to the maximum value, respectively, and when the comparison result of the first comparing means is larger than the total value, the total value is reset as the height of the table frame. The height of each cell row is provided with a first resetting means for resetting to the maximum value, and the character is re-entered in each reset cell to create a table. Electronic editing device.
【請求項5】 同じ行を有し、その有する行数で決まる
幅が等しいセルで構成されるセル行毎に、記入された文
字が溢れたセルの有無の判断を行う第1判断手段と、セ
ル毎に必要とする幅を計算する第1計算手段と、その計
算した値のセル行毎の最大値を選択する第1最大値選択
手段と、セル行毎に前記最大値及び前記判断の結果を記
憶する第1記憶手段と、全セル行の前記最大値を合計す
る第1最大値合計手段と、第1最大値合計手段の合計値
と前記表枠の幅とを比較する第1比較手段と、第1比較
手段の比較結果が前記合計値の方が小さいときは、前記
判断の結果が無であったセル行の幅は、前記表枠の幅と
前記合計値との差を前記判断の結果が無であったセル行
に分配した値と、前記最大値とを加算した値に、前記判
断の結果が有であったセル行の幅は、前記最大値に、そ
れぞれ再設定する一方、第1比較手段の比較結果が前記
合計値の方が大きいときは、前記合計値を前記表枠の幅
として再設定し、各セル行の幅は、前記最大値に再設定
する第1再設定手段とを備える請求項4記載の電子編集
装置。
5. A first judging means for judging whether or not there is a cell in which a written character overflows for each cell row which has the same row and has an equal width determined by the number of the rows. First calculating means for calculating a required width for each cell, first maximum value selecting means for selecting a maximum value of the calculated value for each cell row, and the maximum value and the result of the determination for each cell row And a first storage means for storing the maximum values of all cell rows, a first comparison means for comparing the total value of the first maximum value summing means with the width of the table frame. When the comparison result of the first comparing means is smaller than the total value, the width of the cell row for which the result of the judgment is not found is the difference between the width of the table frame and the total value. The result of the judgment is present in the value obtained by adding the maximum value and the value distributed to the cell rows for which the result of The width of the cell row is reset to the maximum value, while when the comparison result of the first comparing means is larger than the total value, the total value is reset as the width of the table frame, The electronic editing apparatus according to claim 4, further comprising a first resetting unit that resets the width of each cell row to the maximum value.
【請求項6】 表枠を仮作成し、該表枠を構成する各セ
ルに、予めセル毎に用意してある文字を記入し、表を作
成すべくなしてある電子編集装置において、 同じ行を有し、その有する行数で決まる幅が等しいセル
で構成されるセル行毎に、記入された文字が溢れたセル
の有無の判断を行う第2判断手段と、セル毎に必要とす
る幅を計算する第2計算手段と、その計算した値のセル
行毎の最大値を選択する第2最大値選択手段と、セル行
毎に前記最大値及び前記判断結果を記憶する第2記憶手
段と、全セル行の前記最大値を合計する第2最大値合計
手段と、第2最大値合計手段の合計値と前記表枠の幅と
を比較する第2比較手段と、第2比較手段の比較結果が
前記合計値の方が小さいときは、前記判断の結果が無で
あったセル行の幅は、前記表枠の幅と前記合計値との差
を前記判断の結果が無であったセル行に分配した値と、
前記最大値とを加算した値に、前記判断の結果が有であ
ったセル行の幅は、前記最大値に、それぞれ再設定する
一方、第2比較手段の比較結果が前記合計値の方が大き
いときは、前記合計値を前記表枠の幅として再設定し、
各セル行の幅は、前記最大値に再設定する第2再設定手
段とを備え、再設定した各セルに前記文字を再度記入
し、表を作成すべくなしてあることを特徴とする電子編
集装置。
6. A table frame is provisionally created, and characters prepared in advance for each cell are entered in each cell constituting the table frame to create a table. Second determining means for determining whether or not there is a cell in which written characters overflow, for each cell row including cells having the same width determined by the number of the rows and the width required for each cell Second calculating means for calculating the calculated value, second maximum value selecting means for selecting the maximum value of the calculated value for each cell row, and second storage means for storing the maximum value and the determination result for each cell row. A second maximum value summing means for summing the maximum values of all cell rows, a second comparing means for comparing the total value of the second maximum value summing means with the width of the table frame, and a comparison of the second comparing means. When the result is smaller than the total value, the width of the cell row for which the result of the judgment is not obtained is A value a result of the determination the difference is distributed to the cell line was free of the width and the total value,
The width of the cell row for which the result of the determination has been added to the value obtained by adding the maximum value is reset to the maximum value, while the comparison result of the second comparison means is the total value. When larger, reset the total value as the width of the table frame,
The width of each cell row is provided with a second resetting means for resetting to the maximum value, and the characters are re-entered in each reset cell to create a table. Editing device.
JP6294991A 1994-11-29 1994-11-29 Automatic setting method for table frame cell and electronic editing device Pending JPH08152986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6294991A JPH08152986A (en) 1994-11-29 1994-11-29 Automatic setting method for table frame cell and electronic editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6294991A JPH08152986A (en) 1994-11-29 1994-11-29 Automatic setting method for table frame cell and electronic editing device

Publications (1)

Publication Number Publication Date
JPH08152986A true JPH08152986A (en) 1996-06-11

Family

ID=17814938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6294991A Pending JPH08152986A (en) 1994-11-29 1994-11-29 Automatic setting method for table frame cell and electronic editing device

Country Status (1)

Country Link
JP (1) JPH08152986A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012099098A (en) * 2010-10-25 2012-05-24 Konica Minolta Laboratory Usa Inc Method of determining height of cell of table, computer-readable medium, and system
JP2013084075A (en) * 2011-10-07 2013-05-09 Osk:Kk Data display program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012099098A (en) * 2010-10-25 2012-05-24 Konica Minolta Laboratory Usa Inc Method of determining height of cell of table, computer-readable medium, and system
JP2013084075A (en) * 2011-10-07 2013-05-09 Osk:Kk Data display program

Similar Documents

Publication Publication Date Title
TWI453658B (en) A dynamic composing method for displayed screen
JPH07244568A (en) Method and device for preparing display screen
CN102650985B (en) Dynamic typesetting method of display menu
CN106648510B (en) The display methods and device of a kind of display resolution
US7305617B2 (en) Method for aligning text to baseline grids and to CJK character grids
JPH08152986A (en) Automatic setting method for table frame cell and electronic editing device
JP3227047B2 (en) Character processor
JP5100560B2 (en) Information processing apparatus, information processing method, and program
JPH11219439A (en) Image editing device, image editing method, and recording medium recording image editing processing program
JP3012406B2 (en) Table making device and method
US5995674A (en) Image processing apparatus with shape-correction of a contour-specified figure
JPS63155260A (en) Editing method for table by computer
JPH0210474A (en) Image processor
JPH05210666A (en) Table preparation system
JP4405750B2 (en) Image editing device
JP2845156B2 (en) Format setting device and format setting method
JP3173188B2 (en) Character arrangement determining device and workstation
JPH0896153A (en) Layout processor
JP2985324B2 (en) Table support device
JP2517471B2 (en) Character string display method
JP2777234B2 (en) Core power distribution display
JP4266392B2 (en) Document processing apparatus and method
JPS6177088A (en) Image data processor
JPH0778130A (en) Processor for preparing document
CN114139238A (en) Indoor design model correction method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090324

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090324

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100324

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees