JP4759874B2 - Table pattern generator - Google Patents

Table pattern generator Download PDF

Info

Publication number
JP4759874B2
JP4759874B2 JP2001240186A JP2001240186A JP4759874B2 JP 4759874 B2 JP4759874 B2 JP 4759874B2 JP 2001240186 A JP2001240186 A JP 2001240186A JP 2001240186 A JP2001240186 A JP 2001240186A JP 4759874 B2 JP4759874 B2 JP 4759874B2
Authority
JP
Japan
Prior art keywords
data
column
pattern
composition
cell
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001240186A
Other languages
Japanese (ja)
Other versions
JP2003050792A (en
Inventor
明 松村
勝浩 境野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2001240186A priority Critical patent/JP4759874B2/en
Publication of JP2003050792A publication Critical patent/JP2003050792A/en
Application granted granted Critical
Publication of JP4759874B2 publication Critical patent/JP4759874B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
いわゆるDTPで行う印刷物の編集レイアウト作業において表組みの作成に必要な表組みパターン作成装置に関する。
【0002】
【従来技術】
従来DTPレイアウトソフトで表組みを作成する場合は、手作業で作成する必要があった。
【0003】
【発明が解決しようとする課題】
手作業で表組みを行う場合、表の体裁の指定を行う必要があり、初校作成においても直し作業を行う場合においても作業者の負荷が高かった。表組み作業を簡単化するためには、表組みの体裁指定を簡単にやる方法と、その体裁指定のもとで実際の表を組版する表組み作成プログラムが必要である。本発明はこのような問題点を考慮してなされたものであり、表組み作成プログラムに与える表組みの体裁指定を簡単に行う方法を提供することを課題とする。尚ドキュメントデータとは使用する編集レイアウトソフトのネイティヴ形式のデータファイルのことであり、文字を表す文字ボックスオブジェクト、各種図形を表す各種図形オブジェクト等を含んで構成される。
【0004】
【課題を解決するための手段】
課題を解決するための発明は、 表組みのためのテキストデータと、表の組版体裁を指定する表組みパターンとの2種類のデータファイルを入力して、表として組版されたドキュメントデータを生成する表組み作成プログラムに対する、前記表組みパターンを指定入力により作成する表組みパターン作成装置であって、 表体裁分解指定入力により、作成すべき表体裁をタイトル行部分とデータ量に応じて形成されるべきデータ行部分とに分解する表体裁分解手段と、固定列可変列分割指定入力により、表を形成する各列を、列幅が固定的な固定列部分と、データ数に応じて均等に列幅を分割する可変列部分とに分割した上で、各行の可変列部分を、実際に可変列部分に表示するデータ数にかかわらずそれぞれ1個のセルとして形成する固定列可変列分割手段と、罫線描画指定入力により、前記タイトル行部分と少なくとも1つの前記データ行部分必要な罫線を描画する罫線描画手段と、ダミー文字配置指定入力により、仕上がり体裁の書式設定を施したダミー文字の文字ボックスを、前記タイトル行部分とデータ行部分の罫線で構成されるセルに配置するダミー文字配置手段と、を有することによって、表の一部として形成したドキュメントデータとして前記表組みパターンを作成することを特徴とする表組みパターン作成装置である。
【0005】
表組みパターンは、指定の表体裁を形成するために必要十分な部分だけを描画するので、それだけ表体裁の指定は簡単化される。
【0007】
【発明の実施の形態】
以下図面を用いて、本発明の表組みパターン作成装置における表組みパターンの指定方法を説明してゆく。
【0008】
図1は、本発明の方法に基づいた表組み作業の流れを説明するフローチャートである。以下図1に従って表組み作業の流れを説明する。まず、オリジナルデータ200を入手または作成する(S01)。オリジナルデータは、作成される表のセル毎に表示されるセル文字列をタブ区切りのテキストデータとして行単位に構成した(1行のデータのまとまり毎に改行文字を入れた)テキストデータである。図3に示すように市販の表計算ソフトで作成した表をテキストファイルとして出力して作成することができる。次に、作業者は、編集レイアウトソフトによりダミー文字と罫線を用いて表の一部の組版編集を行うことにより1つのドキュメントファイルを作成する(S02)。
【0009】
図4は、そのように組版編集した表の一部のイメージを示す図である。図4で「A」、「B」、・・のセル文字はダミー文字である。文字「A」、「B」、「C」、「D」が配置される4つのセルで構成される1行をタイトル行、文字「E」、「F」、「G」、「H」が配置される4つのセルで構成される1行をデータ行と呼ぶことにする。このドキュメントファイルが表組みパターン201である。つまりこのパターン上でダミー文字に設定した書式設定が表組みのセル文字に適用される。また表組みパターン201のレイアウト形状(タイトル行、データ行それぞれの1行の高さ、各列の幅等)と罫線が後で作成される表のセルの大きさの基準となり、表の中のセルを形成する罫線となる。(実際には図6に示すように、表組みパターン201には、本来の表となる表体裁部分の他にコメント表示部分も含まれるが、以下ではコメント部分は省略して説明する。)
【0010】
作業者は表組み作成手段110を用いて表を作成する(S03)。表組み作成手段110はコンピュータプログラムである。これを出力して(S04)作業を終了する。ステップS04にて出力される表組みの編集イメージを図5に示す。
【0011】
次に組版パターンの作成を行うステップS02の処理を図2のフローチャートに従って詳しく説明する。まず、これから作成しようとする表体裁のタイトル部分とデータ部分とを把握し、組版パターンのタイトル行、データ行を決める(S11)。図7は表体裁と組版パターンのタイトル行、データ行の関係を説明する図である。タイトル部分は複数行の場合もある。組版パターンのデータ行はデータ部分の1行だけ作成すれば良い。タイトル行、データ行とも行の高さは実際の表体裁通りに作成する。
【0012】
次に、1行中の固定列部分と可変列部分を把握する(S12)。図10は、表体裁と組版パターンの固定列部分、可変列部分の関係を説明する図である。固定列部分は各列の幅が組版パターンで定められるとおり固定である。一方可変列部分は後に、その幅を整数nで均等に分割したn個の列として組版される。整数nは、オリジナルデータで決まる列数から固定列部分の列数を引いた数である。そして表組みパターン上では、各行の可変列部分は常に、1つのセルとして形成する。
【0013】
タイトル行の罫線を描画する(S13)。データ行の罫線を描画する(S14)。組版パターンに形成されたセルにダミーセル文字を表体裁の書式設定を施して適切なセルに配置する(S15)。このようにして図4に示す表組みパターンが得られ、これを編集レイアウトソフトの独自形式ファイル(ドキュメントデータ)として保存することによってパターンファイルが生成される。従って図4は、正確には、そのドキュメントデータをその編集レイアウトソフトに読込ませて描画させたときのディスプレイ上の表示イメージであるというべきであって、パターンファイルの実体は、編集レイアウトソフトが扱う文字図形オブジェクトの集合である。表組みパターンとパターンファイルは同義に用いるが、前者はディスプレイ上の表示イメージまたは出力装置からの出力結果に重点を置いた呼び方であって、後者はデータファイルの一種として捉えた場合の呼び方である。
【0014】
次に、図3のオリジナルデータと図4の組版パターンから図5の表体裁を組版するコンピュータプログラムである表組み作成手段110について説明する。尚表組み作成手段110は、隣り合う表中のセル文字列が同じ場合には、それらのセルを結合する仕様であるとして以下に説明する。
【0015】
図8は本発明の表組み作成手段110の動作を説明するフローチャートである。以下図8、図9に基づいて表組み作成手段110の働きを詳細に説明する。表組み作成において最も重要なのはセルの結合をどう処理するかである。ここでは一実施例としてセルの結合状態を記述する結合配列を用いて処理する。結合配列(i,j,k)は3次元の配列でi,jはシートのセル(結合される前のセル)の位置(行,列)を示す。kの深さは3で、(i,j,$FLAG)は、そのセルが先頭(左上隅)のセルかどうか、(i,j,$END列)は、そのセルが先頭の場合、そのセルを先頭とする結合セルの右端の列を、(i,j,$END行)は、そのセルが先頭の場合、そのセルを先頭とする結合セルの下端の行を示す。初期段階ではセル(i,j)は全て先頭で(i,j,$END列)=j、(i,j,$END行)=iである。セルが結合され先頭でなくなると(i,j,$FLAG)には無効フラグが設定される。
【0016】
ステップS40では、上記のような結合配列の初期化を行う。すなわち最初は全てのセルが先頭である。行優先指定の場合は、行優先指定による結合配列作成処理(S48)を、列優先の指定がある場合は列優先指定による結合配列作成処理(S50)を実行する。
【0017】
行結合優先と列結合優先の意味するところは図14に示す通りである。商業印刷物で扱う通常の表ではL字型の結合やT字型の結合は行わないので、これを回避するためには、行結合優先か列結合優先のいずれかを事前に指定しておく必要があるのである。行結合優先の結合配列作成処理(S48)の詳細は図9のフローチャートで説明する。
【0018】
さて、結合配列が作成し終えると、表体裁を形成するための必要な罫線を描いて、オリジナルデータ200中に存在する個々のセル文字列データに、表組みパターン201の対応するダミー文字に設定されている書式設定を施して、それぞれの位置に配置して表を組版してゆく(S52)。この時、表組みパターンに可変列部分がある場合は、可変列部分の幅を適当な整数nで均等分割する。そして、まずタイトル行を組版し、オリジナルデータの行数からタイトル行数を引いた数だけデータ行を繰り返し作成する。この時、表組みパターン201に定められた1行の高さ、各列の幅、罫線に基づいて実際の表のセルサイズが決定される。作成した結合配列に従って、セル文字列データを表組みパターン201から導き出される結合セルの位置に配置し、結合セルに応じた必要な罫線を描く。このステップでは、編集レイアウトソフト100で生成されたドキュメントデータ、すなわち編集レイアウトソフト100が扱う文字図形オブジェクトデータを直接扱う。つまりそれらオブジェクトデータのコピー、プロパティ値の設定等を行うわけである。
【0019】
以上が図8に示した表作成処理の概要である。
【0020】
次に、図9に従って行結合優先処理のアルゴリズムを説明する。ステップS70〜S76は行単位(表の横一列毎)に行う繰り返し処理である。開始行から最後の行まで、その行の中でセル文字列が等しい隣接するセルがあればこれらを結合する(S72)。すなわち、そのような結合することができるセルについて、その一方の端(例えば左端すなわち最も列番号の小さいセル)を先頭セルとして、他の結合されるすべてのセルを先頭でないセルとする。そして先頭セル(i,j)に関して、結合配列(i,j,$END列)にセル結合されるものの右端の列番号を設定する。
【0021】
ステップS78〜S88は列毎(表の縦一列毎)に行う繰り返し処理である。ステップS82では、その列(j列)の中で結合条件を満たす隣接するセルまたはセルの帯があるかどうかを判定する。結合条件は、
1)結合配列(i,j,$FLAG)=結合配列(i+1,j,$FLAG)=先頭
2)結合配列(i,j,$END列)=結合配列(i+1,j,$END列)
3)それぞれのセルに対応するセル文字列が等しい
の3条件が満たされることを意味する。この結合条件を満たす縦方向に隣接するセルの対、または縦方向に一続きの3個以上のセルの集合は、ステップS84にて、セル(k,j)を先頭とするセル帯を、セル(i,j)を先頭とするセル帯に結合する。例えば、j列の中でi行からq行まで結合できるときは、結合配列(k,j,$FLAG)を更新して先頭でないセルとし、結合配列(i,j,$END行)=q と更新する。ただしi+1<=k<=q。
【0022】
図8の列結合優先指定による結合配列作成処理(S50)は、図9に示した行結合優先指定による結合配列作成処理の行と列を置き換えた同様の処理を行えばよい。すなわち、図9のステップS70〜S76と同様な処理を列毎(表の縦一列毎)に繰り返し、その後で、ステップS78〜S88と同様な処理を行毎(表の横一列毎)に繰り返し処理する。
【0023】
図8のステップS52の処理について補足する。図11は、表組みパターン上のダミー文字ボックスと、作成される表のセル文字ボックスとの関係を説明する図である。表組みパターンでダミー文字「D」が置かれたタイトル行の可変列部分はオリジナルデータ200中の対応するテキスト「A」「B」「C」「D」の4つのセル文字で表されるセルに均等分割される。ダミー文字「B」および「C」が置かれたタイトル行部分は、対応するテキストが「区分/宿泊」と同じなので連結されて表組みされる。表組みパターンのダミー文字「E」はセル文字列「大阪市内」に置換えられるが、後続の各行でもこれと同じセル文字列に差替えられるので、縦方向に連結される。ダミー文字「F」も同様である。ダミー文字「G」は、各行で異なるセル文字列に置き換わるのでセルの連結は起きない。ダミー文字「H」は各行で整数n(この場合はn=4)で均等割りされたセルとなって、テキストデータの文字列に置き換えられてゆく。
【0024】
図12および図13は、ステップS52の処理において、表組みパターンの罫線がどのように表組みに利用されるかを説明する図である。図12に水平な罫線に関して説明している。表組みパターン上の水平な罫線y1、y2、y3は、水平な罫線Y1、Y2、Y3として表組みに利用される。罫線Y3は、データ行の必要な行数−1だけ罫線y3に基づいて繰り返して描画される。
【0025】
図13は垂直方向の罫線について説明している。表組みパターン上の縦方向の罫線t1、t2、・・、t5は、縦方向の罫線T1、T2、・・、T5として表組みに利用される。罫線T4は、罫線t4に基づいて可変列部分を均等割りする整数nに相当する回数繰り返して描画される。
【0026】
以上、オリジナルデータ200と表組みパターン201から表組み作成プログラム110によって、所望の体裁の表組みがどのように生成されるかを詳しく述べた。
【0027】
【発明の効果】
以上、詳しく説明したように本発明の方法によれば、一定の決まりにしたがって表の体裁の一部分だけを編集して表組み作成プログラムに渡す表組みパターンとするので、複雑な表組み指定を簡単に行うことができるという顕著な効果を奏する。
【図面の簡単な説明】
【図1】 本発明の表組みパターン指定方法を取り入れた表組み作成の流れを示すフローチャートである。
【図2】 表組みパターン作成の手順を示す流れ図である。
【図3】 オリジナルデータの元となるデータである。
【図4】 表組みパターンを説明する図である。
【図5】 仕上がりの表組みである。
【図6】 パターンファイルの構成を説明する図である。
【図7】 表組みパターンと完成表の関係を説明する図である。
【図8】 表組み作成手段の概略処理フローチャートである。
【図9】 表組み作成手段のセル結合処理を説明するフローチャートである。
【図10】固定列部分と可変列部分を説明する図である。
【図11】表組みパターンのセルと完成表のセルの関係を説明する図である。
【図12】表組みパターンの罫線と完成表の罫線の関係を説明する図である。
【図13】表組みパターンの罫線と完成表の罫線の関係を説明する図である。
【図14】行優先結合、列優先結合を説明する図である。
【符号の説明】
110 表組み作成プログラム(表組み作成手段)
200 オリジナルデータ
201 パターンファイル
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a table pattern creating apparatus necessary for creating a table group in the editing layout work of printed matter performed by so-called DTP.
[0002]
[Prior art]
Conventionally, when creating a table with DTP layout software, it has been necessary to create it manually.
[0003]
[Problems to be solved by the invention]
When manually assembling a table, it is necessary to specify the appearance of the table, and the burden on the worker was high both when creating the first school and when correcting it. In order to simplify the table composition work, a method for easily specifying the format of the table composition and a table composition creation program for formatting the actual table based on the format specification are required. The present invention has been made in consideration of such problems, and an object of the present invention is to provide a method for easily specifying the appearance of a table composition to be given to a table composition creation program. The document data is a native format data file of editing layout software to be used, and includes a character box object representing characters, various graphic objects representing various graphics, and the like.
[0004]
[Means for Solving the Problems]
The invention for solving the problems inputs two types of data files, text data for a table composition and a table composition pattern for designating a table composition, and generates document data formatted as a table. A table pattern generation device for creating a table pattern by designating input to a table composition program, wherein a table format to be created is formed according to a title line part and a data amount by a table format decomposition designation input. and table format decomposing means for decomposing the data line portion to, the fixed column variable vertical partition designated input, each column forming the table, a fixed stationary string part is column widths, equally column in accordance with the number of data is divided in the variable sequence part for dividing a width, a variable column portion of each row, actually fixed column Allowed formed as respective single cell irrespective of the number of data to be displayed in the variable sequence part And varying string divider, the borders drawn specified input, facilities and borders drawing means for drawing the borders required in at least one of said data lines portion and the title line portion, the dummy character arrangement designated input, the formatting of the finished appearance Dummy character placement means for placing the character box of the dummy character in a cell formed by the ruled line of the title row portion and the data row portion , thereby providing the table composition as document data formed as a part of the table. A table pattern creating apparatus characterized by creating a pattern.
[0005]
Since the table pattern draws only the necessary and sufficient part to form the specified table appearance, the specification of the table appearance is simplified accordingly.
[0007]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a table pattern specifying method in the table pattern generation apparatus of the present invention will be described with reference to the drawings.
[0008]
FIG. 1 is a flowchart for explaining the flow of a table composition operation based on the method of the present invention. Hereinafter, the flow of the table assembly work will be described with reference to FIG. First, the original data 200 is obtained or created (S01). The original data is text data in which a cell character string displayed for each cell of the table to be created is configured in units of lines as tab-delimited text data (new line characters are entered for each group of data in one line). As shown in FIG. 3, a table created with commercially available spreadsheet software can be created as a text file. Next, the operator creates one document file by editing the format of a part of the table using the dummy characters and ruled lines with the editing layout software (S02).
[0009]
FIG. 4 is a diagram showing an image of a part of the table subjected to the typesetting edit. In FIG. 4, the cell characters “A”, “B”,... Are dummy characters. One line composed of four cells in which the characters “A”, “B”, “C”, “D” are arranged is a title row, and characters “E”, “F”, “G”, “H” are One row composed of four arranged cells is called a data row. This document file is a table pattern 201. In other words, the formatting set as a dummy character on this pattern is applied to the cell characters in the table. In addition, the layout shape of the table pattern 201 (the height of each row of the title row and the data row, the width of each column, etc.) and the ruled line are used as a reference for the cell size of the table to be created later. It becomes a ruled line forming a cell. (In actuality, as shown in FIG. 6, the table pattern 201 includes a comment display portion in addition to the original table appearance portion, which will be described below with the comment portion omitted.)
[0010]
The worker creates a table using the table creation means 110 (S03). The table creation means 110 is a computer program. This is output (S04) and the operation is terminated. An editing image of the table composition output in step S04 is shown in FIG.
[0011]
Next, the process of step S02 for creating a composition pattern will be described in detail with reference to the flowchart of FIG. First, the title part and data part of the table format to be created are grasped, and the title line and data line of the typesetting pattern are determined (S11). FIG. 7 is a diagram for explaining the relationship between the table format, the title line of the composition pattern, and the data line. The title part may have multiple lines. It is only necessary to create one data line of the composition pattern. The height of the title line and data line is created according to the actual appearance.
[0012]
Next, the fixed column portion and the variable column portion in one row are grasped (S12). FIG. 10 is a diagram for explaining the relationship between the appearance and the fixed column portion and variable column portion of the composition pattern. The fixed row portion is fixed as the width of each row is determined by the typesetting pattern. On the other hand, the variable column portion is later formatted as n columns whose widths are equally divided by an integer n. The integer n is a number obtained by subtracting the number of columns in the fixed column portion from the number of columns determined by the original data. On the table pattern, the variable column portion of each row is always formed as one cell.
[0013]
A ruled line of the title row is drawn (S13). A ruled line of the data row is drawn (S14). A dummy cell character is subjected to a format setting for the cells formed in the typesetting pattern and arranged in an appropriate cell (S15). In this way, the table pattern shown in FIG. 4 is obtained, and the pattern file is generated by saving this as an original format file (document data) of the editing layout software. Therefore, FIG. 4 should be exactly the display image on the display when the document data is read and drawn by the editing layout software, and the editing layout software handles the entity of the pattern file. It is a collection of character graphic objects. The table pattern and the pattern file are used synonymously, but the former is called with emphasis on the display image on the display or the output result from the output device, and the latter is called as a kind of data file. It is.
[0014]
Next, the table composition creating means 110 which is a computer program for composition of the table format of FIG. 5 from the original data of FIG. 3 and the composition pattern of FIG. 4 will be described. The table composition creating means 110 will be described below as a specification for combining cells when cell character strings in adjacent tables are the same.
[0015]
FIG. 8 is a flowchart for explaining the operation of the table composition creating means 110 of the present invention. Hereinafter, the function of the table creation means 110 will be described in detail with reference to FIGS. The most important thing in creating a table is how to handle cell merging. Here, as an embodiment, processing is performed using a combined array describing the combined state of cells. The combined array (i, j, k) is a three-dimensional array, and i and j indicate the position (row, column) of the sheet cell (cell before being combined). If the depth of k is 3, (i, j, $ FLAG) is the cell at the top (upper left corner), (i, j, $ END column) is In the rightmost column of the merged cell starting from the cell, (i, j, $ END row) indicates the lowermost row of the merged cell starting from that cell when that cell is the first. In the initial stage, all cells (i, j) are (i, j, $ END columns) = j and (i, j, $ END rows) = i at the head. When cells are combined and no longer at the head, an invalid flag is set in (i, j, $ FLAG).
[0016]
In step S40, the above-described combined array is initialized. That is, all cells are first at the beginning. In the case of row priority designation, a combined array creation process (S48) by row priority designation is executed, and in the case of column priority designation, a combined array creation process (S50) by column priority designation is executed.
[0017]
The meanings of row join priority and column join priority are as shown in FIG. Since ordinary tables handled in commercial prints do not perform L-shaped or T-shaped joins, it is necessary to specify either row join priority or column join priority in advance to avoid this. There is. Details of the merged array creation processing (S48) with priority on row merge will be described with reference to the flowchart of FIG.
[0018]
When the combined array has been created, the ruled lines necessary to form the appearance are drawn, and the individual cell character string data existing in the original data 200 is set to the dummy character corresponding to the table pattern 201. The formatted formatting is performed, and the table is formatted at each position (S52). At this time, if the table pattern has a variable column part, the width of the variable column part is equally divided by an appropriate integer n. First, the title lines are formatted, and data lines are repeatedly created by the number obtained by subtracting the number of title lines from the number of original data lines. At this time, the actual cell size of the table is determined based on the height of one row, the width of each column, and the ruled line defined in the table pattern 201. Cell character string data is arranged at the position of the merged cell derived from the table pattern 201 in accordance with the created merged array, and necessary ruled lines corresponding to the merged cells are drawn. In this step, document data generated by the editing layout software 100, that is, character / graphic object data handled by the editing layout software 100 is directly handled. That is, the object data is copied and property values are set.
[0019]
The above is the outline of the table creation process shown in FIG.
[0020]
Next, the algorithm of the row combination priority process will be described with reference to FIG. Steps S70 to S76 are repetitive processes performed in units of rows (each horizontal row of the table). From the start line to the last line, if there are adjacent cells having the same cell character string in the line, these are combined (S72). That is, for such cells that can be combined, one end thereof (for example, the left end, ie, the cell with the smallest column number) is set as the leading cell, and all other cells to be combined are set as non-starting cells. Then, for the first cell (i, j), the rightmost column number of the cell to be coupled to the coupled array (i, j, $ END column) is set.
[0021]
Steps S78 to S88 are repetitive processes performed for each column (for each vertical column of the table). In step S82, it is determined whether or not there is an adjacent cell or cell band that satisfies the combining condition in the column (j column). Join condition is
1) Combined array (i, j, $ FLAG) = Combined array (i + 1, j, $ FLAG) = Lead 2) Combined array (i, j, $ END column) = Combined array (i + 1, j, $ END column)
3) It means that the three conditions that the cell character strings corresponding to the respective cells are equal are satisfied. In step S84, a pair of cells adjacent in the vertical direction satisfying this combination condition or a set of three or more continuous cells in the vertical direction is set as a cell band starting from the cell (k, j). Combine with the cell band starting with (i, j). For example, if j rows to i rows can be combined in the j column, the combined array (k, j, $ FLAG) is updated to a non-first cell, and the combined array (i, j, $ END row) = q And update. However, i + 1 <= k <= q.
[0022]
The combined array creation process (S50) by specifying the column combination priority shown in FIG. 8 may be performed in the same manner as shown in FIG. That is, processing similar to steps S70 to S76 in FIG. 9 is repeated for each column (for each vertical column of the table), and thereafter processing similar to steps S78 to S88 is repeated for each row (for each horizontal column of the table). To do.
[0023]
It supplements about the process of step S52 of FIG. FIG. 11 is a diagram for explaining the relationship between the dummy character box on the table pattern and the cell character box of the created table. The variable column portion of the title row where the dummy character “D” is placed in the table pattern is a cell represented by four cell characters of the corresponding text “A”, “B”, “C”, and “D” in the original data 200. Equally divided. The title line portions on which the dummy characters “B” and “C” are placed are connected and listed because the corresponding text is the same as “Division / Accommodation”. The dummy character “E” in the table pattern is replaced with the cell character string “Osaka city”, but the subsequent cell lines are replaced with the same cell character string, and are thus connected in the vertical direction. The same applies to the dummy character “F”. Since the dummy character “G” is replaced with a different cell character string in each row, no cell connection occurs. The dummy character “H” becomes a cell equally divided by an integer n (in this case, n = 4) in each row, and is replaced with a character string of text data.
[0024]
12 and 13 are diagrams for explaining how the ruled lines of the table pattern are used for the table composition in the process of step S52. FIG. 12 explains a horizontal ruled line. Horizontal ruled lines y1, y2, and y3 on the table pattern are used as horizontal ruled lines Y1, Y2, and Y3 in the table. The ruled line Y3 is repeatedly drawn based on the ruled line y3 by the required number of data lines minus one.
[0025]
FIG. 13 illustrates a ruled line in the vertical direction. Vertical ruled lines t1, t2,..., T5 on the table pattern are used as vertical ruled lines T1, T2,. The ruled line T4 is repeatedly drawn a number of times corresponding to an integer n that equally divides the variable column portion based on the ruled line t4.
[0026]
As described above, how the table composition of the desired appearance is generated from the original data 200 and the table pattern 201 by the table composition creation program 110 has been described in detail.
[0027]
【The invention's effect】
As described above in detail, according to the method of the present invention, since only a part of the table appearance is edited and passed to the table creation program according to a certain rule, it is easy to specify a complicated table composition. There is a remarkable effect that it can be performed.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a flow of table composition creation that adopts a table composition pattern designation method of the present invention.
FIG. 2 is a flowchart showing a procedure for creating a table pattern.
FIG. 3 is data that is the source of original data.
FIG. 4 is a diagram illustrating a table pattern.
FIG. 5 is a finished table.
FIG. 6 is a diagram illustrating the configuration of a pattern file.
FIG. 7 is a diagram illustrating a relationship between a table pattern and a completion table.
FIG. 8 is a schematic process flowchart of a table composition creating means.
FIG. 9 is a flowchart for explaining cell combination processing of the table composition creating means.
FIG. 10 is a diagram illustrating a fixed row portion and a variable row portion.
FIG. 11 is a diagram illustrating a relationship between a table pattern cell and a completed table cell;
FIG. 12 is a diagram for explaining a relationship between a ruled line of a table pattern and a ruled line of a completed table;
FIG. 13 is a diagram for explaining a relationship between a ruled line of a table pattern and a ruled line of a completed table.
FIG. 14 is a diagram illustrating row-first combination and column-first combination.
[Explanation of symbols]
110 Table creation program (table creation means)
200 Original data 201 Pattern file

Claims (1)

表組みのためのテキストデータと、表の組版体裁を指定する表組みパターンとの2種類のデータファイルを入力して、表として組版されたドキュメントデータを生成する表組み作成プログラムに対する、前記表組みパターンを指定入力により作成する表組みパターン作成装置であって、
表体裁分解指定入力により、作成すべき表体裁をタイトル行部分とデータ量に応じて形成されるべきデータ行部分とに分解する表体裁分解手段と
固定列可変列分割指定入力により、表を形成する各列を、列幅が固定的な固定列部分と、データ数に応じて均等に列幅を分割する可変列部分とに分割した上で、各行の可変列部分を、実際に可変列部分に表示するデータ数にかかわらずそれぞれ1個のセルとして形成する固定列可変列分割手段と、
罫線描画指定入力により、前記タイトル行部分と少なくとも1つの前記データ行部分必要な罫線を描画する罫線描画手段と、
ダミー文字配置指定入力により、仕上がり体裁の書式設定を施したダミー文字の文字ボックスを、前記タイトル行部分とデータ行部分の罫線で構成されるセルに配置するダミー文字配置手段と、
を有することによって、表の一部として形成したドキュメントデータとして前記表組みパターンを作成することを特徴とする表組みパターン作成装置
The table composition for a table composition creating program for generating document data formatted as a table by inputting two types of data files, text data for the table composition and a table composition pattern for designating the composition of the table A table pattern creation device that creates a pattern by designating input ,
The Table appearance degradation specification input, and table format decomposing means for decomposing the data line portion to be formed in accordance with the table style to be created in the title line portion and a data amount,
The fixed column variable vertical partition designated input, each column forming a table, on which the column width is divided into a fixed stationary column part, and a variable string portion that divides evenly column width in accordance with the number of data, Fixed column variable column dividing means for forming the variable column portion of each row as one cell regardless of the number of data actually displayed in the variable column portion ;
The ruled line drawing specified input, a Border drawing means for drawing ruled lines necessary for the title line portion and at least one of the data line portion,
Dummy character placement means for placing a dummy character text box that has been formatted in a finished appearance by a dummy character placement designation input in a cell composed of a ruled line of the title row portion and the data row portion ;
The table composition pattern creating apparatus is characterized in that the table composition pattern is created as document data formed as a part of the table.
JP2001240186A 2001-08-08 2001-08-08 Table pattern generator Expired - Fee Related JP4759874B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001240186A JP4759874B2 (en) 2001-08-08 2001-08-08 Table pattern generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001240186A JP4759874B2 (en) 2001-08-08 2001-08-08 Table pattern generator

Publications (2)

Publication Number Publication Date
JP2003050792A JP2003050792A (en) 2003-02-21
JP4759874B2 true JP4759874B2 (en) 2011-08-31

Family

ID=19070839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001240186A Expired - Fee Related JP4759874B2 (en) 2001-08-08 2001-08-08 Table pattern generator

Country Status (1)

Country Link
JP (1) JP4759874B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5100290B2 (en) * 2006-11-29 2012-12-19 キヤノン株式会社 Information processing system, information processing apparatus, and information processing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04157560A (en) * 1990-10-22 1992-05-29 Hitachi Ltd Table generating method
JPH06251007A (en) * 1993-02-23 1994-09-09 Fuji Xerox Co Ltd Table data input device
JP2001125891A (en) * 1999-10-29 2001-05-11 Ricoh Co Ltd Device and method for preparing document

Also Published As

Publication number Publication date
JP2003050792A (en) 2003-02-21

Similar Documents

Publication Publication Date Title
JP3114421B2 (en) Table making device
JPH06251007A (en) Table data input device
JP4759874B2 (en) Table pattern generator
JP2002358297A (en) Generation program for listing, specifying method for listing and layout apparatus for editing
JP3076348B2 (en) Document shaping apparatus and document shaping method
JPH06118611A (en) Block copy forming device
JP4737659B2 (en) Table set database system and table set data creation device
JP3359424B2 (en) Character input editing device
JPH0756920A (en) Structured document processor
JPH03188556A (en) Automatic document preparing system
JP2000011072A (en) Method for generating data printing program
JPH0553785A (en) Linking and editing method for graphic editor and text editor
JPH08202778A (en) General-purpose slip preparation system
JP2001005703A (en) Method and system for generating text type file
JPS63220367A (en) Tree structure chart forming device
JP2004280181A (en) Cad system and computer program
JPH0981559A (en) Composition data correction device
JPH0644237A (en) Document shaping device
JPH04125768A (en) Document preparing device
JPH07262279A (en) Slip processor
JPH06332147A (en) Block copy data producing device
JPS6385559A (en) Magazine editing system
JPH0365759A (en) Edition processing system for table
JPH09212508A (en) Document processor
JPH03291748A (en) Table data preparation control method and data processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080709

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110204

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110510

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110523

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

Free format text: PAYMENT UNTIL: 20140617

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110204

LAPS Cancellation because of no payment of annual fees