JP3613920B2 - Table creation device and table creation method - Google Patents

Table creation device and table creation method Download PDF

Info

Publication number
JP3613920B2
JP3613920B2 JP03620997A JP3620997A JP3613920B2 JP 3613920 B2 JP3613920 B2 JP 3613920B2 JP 03620997 A JP03620997 A JP 03620997A JP 3620997 A JP3620997 A JP 3620997A JP 3613920 B2 JP3613920 B2 JP 3613920B2
Authority
JP
Japan
Prior art keywords
partial
tree structure
input
row
column
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
JP03620997A
Other languages
Japanese (ja)
Other versions
JPH10232900A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP03620997A priority Critical patent/JP3613920B2/en
Publication of JPH10232900A publication Critical patent/JPH10232900A/en
Application granted granted Critical
Publication of JP3613920B2 publication Critical patent/JP3613920B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、表を作成するために用いられる表作成装置及び表作成方法に関するものである。
【0002】
【従来の技術】
表は複雑な情報を整理して読者に伝達する手段として広く用いられてきた。電子化された装置によって文書作成が行なわれるようになった現在でも、表が文書の重要な構成部品であることに変わりはない。DTP、ワードプロセッサーなどの文書作成編集装置は、必ずといってもよいほど、表作成機能を備えている。これら従来の文書作成編集装置における表の作成方法には、大別して、WYSIWYG(What You See Is What You Get)方式とコマンド埋め込み方式の二つがある。
【0003】
WYSIWYG方式は、従来より多くのDTPやワードプロセッサで用いられている。WYSIWYG方式の特徴は、罫表を画面上に表示し、表示された罫表中の項目枠に、対応する項目内容を埋めていくことにより表を作成するという点にある。ここで、罫表とは罫線より構成される枠であり、項目枠とは隣接する縦横の罫線によって囲まれる長方形領域のことを指す。以下、この方式に従って、ユーザが表を作成する手順を示す。
【0004】
まず、罫表の概形を決定する。ここで、罫表の概形とは、罫線の絶対的な位置や罫線間の絶対的な間隔は未定のままで、罫線同士の相対的な位置関係のみが定まった罫表を指す。罫表の概形を決定する際には、見出し項目群とデータ項目群の対応関係を入力すべき項目全体にわたって調べ、どのように罫線を引けば必要かつ十分な見出し項目枠とデータ枠(あわせて項目枠と呼ぶ)を持つ罫表を作成できるかを考えなければならない。
【0005】
次に、決定した罫表の概形をもとに、ユーザがシステムを介して罫表を作成する。罫表を作成する方法としては、罫表のカラムやローに対して分割、転記、削除等の操作を繰り返す方法と、罫線の追加、削除、長さの変更等の操作を繰り返す方法などがある。
【0006】
最後に、作成された罫表の各項目枠内に見出し項目あるいはデータを入力し、表が完成する。
【0007】
コマンド埋め込み方式は、LaTeXのtabular環境やroffのtblなどで用いられており、項目内容の文字列、項目間の境界を表わす制御記号、罫線の描画を指示するコマンドが混在するテキストとして表を表現し、このテキストを入力することによって表を作成する方式である。図2は、LaTeXによる表の表現の一例の説明図である。制御記号“&”は、ロー(項目の横並び)内の項目間の境界を表わす。LaTeXのフォーマッタは、制御記号“&”を垂直罫線の描画を指示するコマンドと解釈して、“&”をはさむ両側の項目内容の間に垂直な罫線を引く。制御記号“\\”はローの終わりを表わし、コマンド“\hline”および“\cline”は水平線の描画を指示する。
【0008】
この方式に従ってユーザが表を作成する場合には、まず、罫表の概形を決定する。そして、決定した罫表の概形をもとに項目内容の文字列、制御記号、コマンドを規則にしたがって入力して行く。入力が終了したら、フォーマッタを起動し、レイアウトを生成する。この手順により、表が形成されることになる。
【0009】
上述のいずれの方法によっても、ユーザはまず罫表の概形を決定し、その後、表を実際に作成するという手順をとる。しかしながら、上述の方法には次のような問題点がある。
【0010】
まず、表の作成の当初から、完成時の表の形状をユーザが予想して作表を行なわなければならないという問題がある。すなわち、従来の作表の方法では、作表作業に入る前に、罫表の概形、すなわち、全体の表がどのような形状になるかをあらかじめ考えなければならず、手間がかかっていた。このとき、罫表の概形は、すべての見出し項目とデータ項目がその対応関係を正しく保って入力されるように、必要かつ十分な項目枠を提供しなければならない。この作業は、見出し項目やデータ項目の数が多くなったり、それらの対応関係が複雑になると著しく煩雑なものとなる。
【0011】
また、WYSIWYG方式においては、ユーザが自ら列、行、罫線を操作して、罫表を作表しなければならない。表の形状が複雑になると、必要な操作の回数が増加する。また、コマンド埋め込み方式においては、罫表は画面上に表示されないので、ユーザは実際に罫表を見ることなくテキストを作成しなければならず、1回で誤りなく作表することは非常に難しい。また、作表されるテキストは、制御記号やコマンドが文字間に埋め込まれた、はなはだ読みにくいものであり、テキストから誤入力を見つけるのは難しいだけでなく、誤入力の原因にもなる。したがって、ユーザはフォーマッタを起動して実際のレイアウトを生成するまで誤りに気がつかないことが多く、また、誤りを発見するたびにテキストを修正し、フォーマッタを再び起動しなければならない。フォーマッタがレイアウトを生成するために要する時間は必ずしも短くないので、作業が煩雑であるのみならず、時間もかかっていた。このように罫表を作成する作業は煩雑であり、決定された罫表概形が複雑である場合には、その罫表概形に従って実際に表を作成していく作業も煩雑となる。
【0012】
また、従来の方法では、1つの表は一括して作成されるため、見出し項目や要素データを部分的に共有する他の表を作成する場合に、すでに作られた表の一部を再利用することが難しいという問題もあった。
【0013】
さらに、従来の方法では、1つの表は一括して作成されるため、大きな表を作成するのが難しかった。WYSIWYG方式では、1画面からはみ出すような大きな表を作成する場合、必要な見出し項目が画面上からスクロールアウトしてしまうという欠点があった。そのため、現在入力しているデータがどの見出し項目に対応しているものか分からなくなり、入力ミスの原因となっていた。対応する見出し項目を確かめるためには、画面をスクロールさせて見出し項目を確認する必要があるが、今度は入力しつつあったデータ枠が画面からスクロールアウトしてしまうので、入力を続けるためには再び画面をスクロールしなければならない。このように、大きな表を入力する際には非常な手間がかかっていた。コマンド埋め込み方式では、作成するべきテキストが読みにくいので、そうでなくても見出し項目と入力データの対応を正しく保つのが難しかった。表が大きくなると、テキストの量は膨大となり、見出し項目と入力データの対応の保持は著しく難しくなる。
【0014】
一方、リレーショナルデータベース(RDB)では、表形式のデータ構造を取るため、データを出力する際も表形式で出力することが多い。このため、表作成手段として文書作成編集装置以外にもRDBを使用することが考えられる。
【0015】
RDBにおける表は以下のように定義される。まず、一つのRDBの表には固有のスキーマが一つ与えられる。スキーマとは表を構成するカラムの列のことであり、通常、各カラムにはアトリビュートと呼ばれる固有の名前(列見出し)が与えられる。仮にアトリビュートが与えられないとしても、個々のカラムは互いに識別可能なように管理される。スキーマは、RDBでタプルと呼ばれるレコードを登録するための枠組みであり、それ自身はレコードを持たない。スキーマをデータベース中に定義した後、レコードをスキーマに対応づけて登録することにより表を作成する。RDBにおけるレコードはタプルと呼ばれ、表のスキーマの各カラムに対して一つずつ対応する値を持つ値の列である。一つのタプルは表の中で一つのローとして表現される。
【0016】
RDBのデータベースはそれぞれ固有のスキーマを持つ複数の表の集まりである。データベースへの検索は、既存の表から新しい表を生成することで実行される。生成された新しい表も、RDBの表の形式に従う。すなわち、カラムの列である固有のスキーマを持ち、ローとして表現されるタプルの集まりである。
【0017】
RDBでは、既存の表から新しく表を生成するための規則として、関係代数と呼ばれる代数系を用意している。この代数系は、前述の規則に従う表の集合上で閉じた5個の演算を持つ。具体的には、union,difference,projection,production,selectionが関係代数に定義される演算である。RDBの検索式は、これらの演算を組み合せた代数式として表現される。このような演算が用意されているため、ユーザーはデータベースに小さな表を複数作成しておき、それらの表に対してこの演算を使用することにより、小さな表を組み合わせて大きな表を簡単に作成することができる。このため、ユーザーは大きな表を一括して作成する必要はなく、また小さな表を保存しておき、それを別の表を作成するために再利用するということも可能である。しかしながら、RDBにおいては、表の合成(production,join)も含めた関係代数の演算において、演算の入力と出力の間で単純な均一性が保たれていること、すなわち、表のスキーマは常に単純なカラムの列であるという性質を保っている必要がある。
【0018】
図3は、表の第1の例の説明図である。図3に示した表は、2つのカラム(左から順番にカラム1,2,...と呼ぶことにする)と5つのロー(上から順番にロー1,2,...と呼ぶことにする)からなっているが、さらにロー1とロー2に対する親ロー(ロー11と呼ぶことにする)が存在し、これは見出し“ant”がロー1とロー2にまたがっていることにより示されている。同様にロー3とロー4に対する親ロー(ロー12と呼ぶことにする)が存在し、そのロー12は見出し“butterfly”により示されている。さらに、ロー11とロー12に対する親ローが存在し、それらにまたがる見出し“Arthropod”により示されている。
【0019】
このように、図3に示した表では、カラム及びローが順序付けられた子のカラム,ローを保持し、さらに再帰的にその子カラム,ローもそれ自身の子のカラム,ローを保持し、全体としてカラムやローが木構造をなしている。図3に示すような構造の表は特殊なものではなく、広く一般に使用されている。
【0020】
RDBにおいては、表はレコードの集まりを仮想的に表現するための手段であり、表の単純な均一性はデータベース管理システム(Database Managing System)の設計、構成を単純にし、一貫性のあるシステムの構築を容易にするという利点を提供する。しかし、例えば図3に示したような、カラム及びローに木構造を持つ表を操作の対象とすることができないという欠点を有している。
【0021】
【発明が解決しようとする課題】
本発明は、上述した事情に鑑みてなされたもので、カラム及びローに木構造を持つような複雑な表であっても簡単に作成でき、作成した表を再利用することができる、操作性のよい表作成装置及び表作成方法を提供することを目的とするものである。
【0022】
【課題を解決するための手段】
本発明は、カラムおよびローの親子関係を木構造として示し、この木構造に従って表入力テンプレートを生成して画面に表示する表入力テンプレート生成手段と、表入力テンプレートに対する項目の入力を受け付けるとともに、項目が入力された前記表入力テンプレートから部分表を生成する表項目入力手段と、この表項目入力手段が生成した部分表を必要な数だけ保持する部分表保持手段と、複数の部分表におけるカラム及びローの木構造間に順序関係を定義し部分表を合成するためのパラメータを保持する表合成パラメータ保持手段と、個々の木構造を保存したまま前記表合成パラメータ保持手段に保持されている木構造間の順序関係を示す前記パラメータに従って部分表保持手段に保持された部分表を合成して一つの表を生成する表合成手段を有する表作成装置を構成することにより、また同様の構成により表作成方法を実現することにより、目的を達成するものである。
【0023】
【発明の実施の形態】
図1は、本発明の表作成装置の第1の実施の形態を示す構成図である。図中、1は表入力テンプレート生成部、2は表項目入力部、3は部分表保持部、4は表合成パラメータ保持部、5は表合成部である。また、図中の矢印はデータの流れを表わしている。
【0024】
表入力テンプレート生成部1は、ユーザーインターフェースを介してユーザからカラムにおける木構造の数、カラムの木構造のレベル数、各レベルにおける親カラムの子となるカラムの数、ローにおける木構造の数、ローの木構造のレベル数、各レベルにおける親ローの子となるローの数の組からなる指定を複数組受け、各々の組に対して指定を満たす表入力テンプレートを生成する。表項目入力部2は、表入力テンプレート生成部1により生成された表入力テンプレートの各々に項目を入力するためのユーザーインタフェースをユーザに提供し、さらに項目が入力された表入力テンプレートから部分表を生成する。部分表保持部3は、表項目入力部2を介してユーザが表項目を入力し、生成した部分表を必要な数だけ保持する。表合成パラメータ保持部4は、部分表を合成するためのパラメータを保持する。この例において保持されるパラメータは、複数の部分表におけるカラム及びローの木構造間に順序関係を定義するものであり、その順序関係はユーザーによりユーザーインターフェースを介して指定されるものとする。表合成部5は、個々の木構造を保存したまま、表合成パラメータ保持部4に保持された順序関係に従って部分表保持部3に保持された部分表を合成して一つの表を生成する。
【0025】
図4は、本発明の表作成装置の第1の実施の形態における動作の一例を示すフローチャートである。S11において、ユーザーは表入力テンプレート生成部1に対して、ユーザーインターフェースを介してカラムにおける木構造の数、カラムの木構造のレベル数、各レベルにおける親カラムの子となるカラムの数、ローにおける木構造の数、ローの木構造のレベル数、各レベルにおける親ローの子となるローの数の組を1以上指定する。S12において、表入力テンプレート生成部1は、ユーザーの指定を受けて、各々の組に対してその指定を満たす表入力テンプレートを生成し、表示する。S13において、ユーザーは表項目入力部2を使用して、表示されている表入力テンプレートに対して項目及びカラム/ローに対応する見出しの入力を行なう。S14において、表項目入力部2はS13におけるユーザーの入力を受けて、部分表を作成する。S15において、部分表保持部3は表項目入力部2が生成した部分表を保持する。
【0026】
一方、S16において、ユーザーは表合成パラメータ保持部4に対し、複数の部分表におけるカラム及びローの木構造間の順序関係に関する指定を、ユーザーインターフェースを介して行なう。ここで行なう指定は、「カラム及びロー各々に対する、木構造のルートに対応する見出しからなる列」という形式で行なう。S16で行なわれた指定は、S17において表合成パラメータ保持部4に保持される。
【0027】
表合成部5は以下の手順により表を生成する。まずS18において、表合成パラメータ保持部4に保持されているカラム及びローの木構造間の順序関係に従って生成される表のカラム及びローの構造を決定する。この際、カラム(ロー)の見出しの配置は、同じ木構造上のレベルの見出しは横一行(縦一列)になるようにする。カラム及びローの構造が決定したら、S19において、カラムとローの各交点の表項目を、部分表における同じカラムとローの交点の表項目とする。このようにして、カラムやローが木構造の順序関係を有する複雑な表であっても、作表することができる。
【0028】
具体例をもとに、上述の動作を説明する。ユーザは、目的とする表を作成する際には、その表のうち、規則性を有する部分ごとに部分表を作成し、後でこれらを合成する。一般に、N次元のマトリックスにおける各交点に存在するデータを表にする時、木構造の1レベルを一つの次元に対応させるならば、あるレベルのカラム(ロー)の子となるカラム(ロー)の数は、その子のレベルに対応した次元における要素数に等しいという規則性を持つ。図5は、表の第2の例の説明図である。例えば図5に示す表は、(w∧x)∨(¬y∧z)の真理表の例を示しており、w,x,y,zの4次元のマトリックス上のデータを表にしたものである。カラム及びローに2次元ずつ対応付けているが、見出し“w=T”で示されるカラムも、“w=F”で示されるカラムも、その子のレベルに対応した次元における要素数が2であるために、どちらも等しく2つの子カラムを保持している。同様に、見出し“y=T”で示されるローも、“y=F”で示されるローも、その子のレベルに対応した次元における要素数が2であり、どちらも等しく2つの子ローを保持している。例えば作成しようとする表のうち、図5に示すような規則性を有する部分ごとに、部分表として作成してゆく。
【0029】
図6、図7は、本発明の表作成装置の第1の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。表入力テンプレート生成部1は、上述のような規則性を有する部分表の表入力テンプレートを生成するために、例えば図6や図7に示すような表示を行ない、ユーザーに各項目の入力を促す。図6、図7に示した例では、カラムにおける木構造の数、カラムの木構造のレベル数、各レベルにおける親カラムの子となるカラムの数、ローにおける木構造の数、ローの木構造のレベル数、各レベルにおける親ローの子となるローの数について、ユーザーが入力可能である。
【0030】
図6に示した例では、カラムにおける木構造の数が2であるので、最上位のカラムの見出しが2つ存在することを示している。また、カラムの木構造のレベル数が2であるので、カラムの見出しは2段になることを示している。さらに、子となるカラム数の欄で、レベル1の子となるカラム数が2であるので、最上位のカラムのそれぞれについて、2つのカラムを有することを示している。これらの子カラムについては、木構造のレベル数が2であったことから、その子カラム(孫カラム)は存在しない。同様に、ローにおける木構造の数が2であって、木構造のレベル数が1であるので、ローの見出しは1列に2つが並ぶ構造であることを指定している。
【0031】
また、図7に示した例では、カラム、ローともに木構造のレベル数が1であるので、見出しは1行、1列のみであり、ローの木構造の数が2であるので、ローの見出しが2つ存在する部分表を指定していることになる。
【0032】
図8は、本発明の表作成装置の第1の実施の形態において表入力テンプレート生成部で指定された木構造の一例を示す概念図である。それぞれ、(A),(C)にカラムの木構造を示し、(B),(D)にローの木構造を示している。また、白丸で示したノードはそれぞれが見出しとなる。
【0033】
図8(A),(B)は、図6で指定した木構造を樹形図として示している。例えばカラムは、図8(A)に示したように、木構造の数が2であるので、木構造が2つである。また、木構造のレベル数が2であるので、それぞれルートにあたるノードの下位にノードが存在し、2段階のレベルを有している。さらに、第1のレベルの子となるカラム数が2であるので、各木構造のルートにあたるノードの下位に、2つずつのノードが存在している。ローについては図8(B)に示したように、木構造の数が2であるので、木構造が2つであるが、木構造のレベル数が1であるので、そのノードの下にはなにも接続されない。また、図8(C),(D)は図7で指定した木構造の樹形図を示しており、カラムについては図8(C)に示すようにノードが1つのみ、ローについては図8(D)に示すように木構造のルートにあたるノードが2つ並置されるのみである。
【0034】
S11でユーザーは、このようにしてユーザーインターフェースを介してカラムにおける木構造の数、カラムの木構造のレベル数、各レベルにおける親カラムの子となるカラムの数、ローにおける木構造の数、ローの木構造のレベル数、各レベルにおける親ローの子となるローの数を入力し、表入力テンプレート生成部に対し指定を行なう。
【0035】
表入力テンプレート生成部1は、例えば図6、図7に示すようなユーザーの指定を受けて、S12において表入力テンプレートを生成し、表示する。図9、図10は、本発明の表作成装置の第1の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。図6、図7に示したようなユーザーの入力指示に対応し、表入力テンプレート生成部1は、図9、図10に示すような表入力テンプレートを生成する。
【0036】
上述のように、ユーザーは図6においてカラムの木構造のレベル数が2であり、木構造の数が2、第2レベルのカラム数が2であることを指定した。また、ローの木構造のレベル数が1、木構造の数が2であることを指定した。これらの指定に従い、表入力テンプレート生成部1は図9に示すように、カラムの見出しが2段であり、上段の見出しが2つ、下段の見出しがそれぞれの上段の見出しについて2つずつであり、ローの見出しが2つ存在する表入力テンプレートを生成する。
【0037】
同様に、ユーザーは図7においてカラムの木構造のレベル数が1、木構造の数が1、ローの木構造のレベル数が1、木構造の数が2であることを指定したので、これらの指定に従い、表入力テンプレート生成部1は図10に示すように、カラムの見出しが1つ、ローの見出しが2つ存在する表入力テンプレートを生成する。
【0038】
図9、図10に示した表入力テンプレートはそれぞれ表示され、S13においてユーザーは表項目入力部2を使用して、項目及びカラム/ローに対応する見出しの入力を行なう。図11、図12は、本発明の表作成装置の第1の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。図11は、図9に示した表入力テンプレートをもとに、項目および見出しを入力した例を示している。また、図12は、図10に示した表入力テンプレートをもとに、項目および見出しを入力した例を示している。
【0039】
表項目入力部2は、ユーザーが項目を入力することにより、S14において図11及び図12に示す部分表を作成する。作成された部分表は、S15において部分表保持部3に保持される。
【0040】
次にS16において、ユーザーは表合成パラメータ保持部4に対し、部分表におけるカラム及びローの木構造間の順序関係に関する指定をする。木構造によってカラムやローをグルーピングし、同一の木構造に含まれるカラムやローをレイアウト上近接して配置する理由の一つとして、それらカラムやローがある共通の性質を持つために、共通の性質を持つものをまとまって配置することで表を見やすくするということがある。例えば、図3に示した表の例において、見出し“ant”で示されるローと“butterfly”で示されるローが上下に隣りあっているのは、これらのローで示されるデータが、“Arthropod”に関するという共通の性質を持っているからである。また、一つの親カラム(ロー)における子カラム(ロー)の順番も、何らかの意味がある場合が多い。図13は、表の第3の例の説明図である。例えば図13において、左4つのカラムが年の順に並んでいる。これらの順番はこの順、あるいは逆順など、順に並んでいることが必要である。また、一つの表内における木構造間の順番も意味があることがある。例えば図13に示す表において、見出し“年度”で示されるカラムと、見出し“合計”で示されるカラムはそれぞれで独立した木構造をなしているが、それらがなす順番は意味がある。この第1の実施の形態では、木構造間の順番を表合成パラメータとして与え、また、各木構造内の順番についてはそのまま保存するように構成している。
【0041】
図14は、本発明の表作成装置の第1の実施の形態において表合成パラメータ保持部が提供するユーザーインターフェースの一例の説明図である。上述のように、表合成パラメータとして、複数の部分表におけるカラム及びローの木構造間の順序関係に関する指定を行なう。図14に示した例では、カラムについては“Ant”,“Butterfly”,“Snail”の各見出しがこの順で並ぶことを指定しており、ローについては“# of legs”,“# of wings”の各見出しがこの順で並ぶことを指定している。このとき指定に用いる見出しは、各木構造のルートにあたるノードの見出しである。また、表合成パラメータとして与える木構造間の順序関係は、同一の部分表に含まれる木構造間の順序関係については同一の順序とすることにより、部分表における木構造の順番を保ったまま、後述するように表を合成することができる。このようにして指定されたカラムおよびローの木構造間の順序関係は、S17において表合成パラメータ保持部4に保持される。
【0042】
表合成部5は、まずS18において、表合成パラメータ保持部4に保持されたカラム及びローの木構造間の順序関係に従って表のカラム及びローの構造を決定する。図15は、本発明の表作成装置の第1の実施の形態において表合成部が生成する合成表の構造の一例の説明図である。表合成パラメータ保持部4に保持されている表合成パラメータから、カラムに対しては“Ant”,“Butterfly”,“Snail”の順番で木構造が並ぶように指定されている。さらに、部分表保持部3に保持されているカラムの見出しの木構造から、各木構造のレベル1の見出しである“Ant”,“Butterfly”のそれぞれについて、レベル2の見出しである“Female”,“Male”が並ぶことがわかる。これらから、図16に示すようにカラムの構造が決定される。ローも同様であるが、見出しはレベル1しか存在しないので、表合成パラメータで指定された“# of legs”,“# of wings”がこの順で縦に並べられる。このようにして、全体として図15に示すような合成表の構造が決定される。
【0043】
次にS19において、カラムとローの各交点の表項目を、部分表における同じカラムとローの交点の表項目とする。例えば、“Ant”,“Female”の見出しに対応するカラムと“# of legs”の見出しに対応するローの交点の表項目は、同一の交点を持つ図11の部分表から、“6”であると決定される。他の表項目についても同様である。図16は、本発明の表作成装置の第1の実施の形態において表合成部が生成した合成表の一例の説明図である。このようにして図15に示すような合成表の構造において、表項目をそれぞれ決定してゆくことにより、結果として図16に示すような表が合成される。
【0044】
このように、第1の実施の形態によれば、ユーザーは構造が規格化され、かつ小さい、つまり構造や内容が把握しやすい、表の入力テンプレートに項目を入力して部分表を構成するだけで、複雑なカラム及びロー構造を持つ表を得ることができる。特に、上述のように表テンプレート生成部1において、ユーザからカラムにおける木構造の数、カラムの木構造のレベル数、各レベルにおける親カラムの子となるカラムの数、ローにおける木構造の数、ローの木構造のレベル数、各レベルにおける親ローの子となるローの数の指定を受けて、この指定を満たす表入力テンプレートを生成することにより、規格化された表入力テンプレートを簡便に作成できる。さらに、複数の部分表におけるカラム及びローの木構造間の順序関係を表合成パラメータとして与えることによって、表合成部5は、個々の木構造を保存したまま表を合成することができる。このように複数のカラム(ロー)からなる木構造を一つのものとして扱うことで、個々のカラム(ロー)を別々に扱うよりも合成を簡便なものとし、合成された表を見やすくすることが可能となる。
【0045】
次に、本発明の表作成装置の第2の実施の形態について説明する。図17は、表の第4の例の説明図である。図17に示す表において、“Arthropod”と“Gastropod”で示されるローのように、一つの木構造の同じレベルのカラム(ロー)であっても、その下にくる部分木構造の深さが異なることがある。上述の第1の実施の形態では、木構造の深さは指定したレベルとなってしまう。また、部分表を別に作成するとしても、最上位のレベルを共通化することはできない。このような不具合を解消するため、この第2の実施の形態では、第1の部分表の部分木構造もしくは木構造を第2の部分表の木構造の特定のノードの下位構造として接合することによって、木構造の階層の深さを部分的に変更し、図17に示すような表を合成することを可能とするものである。
【0046】
図18は、本発明の表作成装置の第2の実施の形態を示す構成図である。図中の符号は図1と同様であり、第1の実施の形態と異なる点のみを説明する。表合成パラメータ保持部4が保持するパラメータは、ある第1の部分表の部分木構造もしくは木構造と、第1の部分表とは異なる第2の部分表の木構造の特定のノードとを対応付けるものである。どの部分木構造をどのノードに接合するかはユーザーにより指定されるものとする。表合成部5は、表合成パラメータ保持部4にて対応付けられた第1の部分表の部分木構造もしくは木構造を、第2の部分表の木構造の特定のノードの下位構造として接合することにより、二つの部分表を合成する。
【0047】
図19は、本発明の表作成装置の第2の実施の形態における動作の一例を示すフローチャートである。S21において、ユーザーは表入力テンプレート生成部1に対して、ユーザーインターフェースを介してカラムにおける木構造の数、カラムの木構造のレベル数、各レベルにおける親カラムの子となるカラムの数、ローにおける木構造の数、ローの木構造のレベル数、各レベルにおける親ローの子となるローの数の組を1以上指定する。S22において、表入力テンプレート生成部1は、ユーザーの指定を受けて、各々の組に対してその指定を満たす表入力テンプレートを生成し、表示する。S23において、ユーザーは表項目入力部2を使用して、表示されている表入力テンプレートに対して項目及びカラム/ローに対応する見出しの入力を行なう。S24において、表項目入力部2はS23におけるユーザーの入力を受けて、部分表を作成する。S25において、部分表保持部3は表項目入力部2が生成した部分表を保持する。
【0048】
一方、S26において、表合成パラメータ保持部4は部分表保持部3に保持されている部分表を表示する。S27において、ユーザーは表示された部分表上で「どの部分木構造」を「どのノード」に接合するかに関して指定する。S28において、表合成パラメータ保持部4は、S27でなされた指定を保持する。
【0049】
表合成部5は以下の手順により表を生成する。まずS29において、表合成パラメータ保持部4に保持されている接合に関する指定に従って接合を行ない、生成される表のカラム及びローの構造を決定する。この際、カラム(ロー)の見出しの配置は、同じレベル(木構造上)の見出しは横一行(縦一列)になるようにする。カラム及びローの構造が決定したら、S30において、カラムとローの各交点の表項目を、部分表における同じカラムとローの交点の表項目とする。このようにして、第1の部分表の部分木構造もしくは木構造を第2の部分表の木構造の特定のノードの下位構造として接合し、木構造の階層の深さを部分的に変更した表を合成することができる。
【0050】
具体例をもとに、上述の動作を説明する。図20、図21は、本発明の表作成装置の第2の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図、図22は、同じく表入力テンプレート生成部で指定された木構造の一例を示す概念図である。ユーザーはS21において表入力テンプレート生成部1に対し、図20及び図21に示すように入力し、表入力テンプレート生成部1に対し指定を行なう。図20、図21に示したユーザーインターフェースは、上述の図6、図7に示したものと同じであり、入力されたデータが異なるのみである。図20では、カラムとして3つの見出しが配列され、ローとして2つの見出しが配列されることが指定されている。また、図21では、カラムの見出しとして、レベル1の見出しが2つ配列され、それぞれの見出しの小見出しとしてそれぞれ2つずつの見出しが配列されることが指定されている。ローの見出しは2つの見出しが配列されることが指定されている。
【0051】
これらの指定に基づく見出しの木構造を図22に示している。図22(A)は図20で指定された表のカラムの見出しの木構造を示し、図22(B)は同じくローの見出しの木構造を示している。また、図22(C)は図21で指定された表のカラムの見出しの木構造を示し、図22(D)は同じくローの見出しの木構造を示している。
【0052】
表入力テンプレート生成部1は、例えば図20、図21に示すようなユーザーの指定を受けて、S22において表入力テンプレートを生成し、表示する。図23、図24は、本発明の表作成装置の第2の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。図20、図21に示したようなユーザーの入力指示に対応し、表入力テンプレート生成部1は、図23、図24に示すような表入力テンプレートを生成し、表示する。
【0053】
ユーザーはS23において表項目入力部2を使用して、項目及びカラム/ローに対応する見出しの入力を行なう。図25、図26は、本発明の表作成装置の第2の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。図25は、図23に示した表入力テンプレートをもとに、項目および見出しを入力した例を示している。また、図26は、図24に示した表入力テンプレートをもとに、項目および見出しを入力した例を示している。ここで、図25に示した部分表では、カラム見出し“Ant”と“Butterfly”の列には項目の入力がなされていない。この部分に図26に示す部分表を挿入することを意図したものである。
【0054】
表項目入力部2は、ユーザーが項目を入力することにより、S24において図25及び図26に示す部分表を作成する。作成された部分表は、S25において部分表保持部3に保持される。
【0055】
表合成パラメータ保持部4は、S26において、部分表保持部3に保持されている図25、図26に示す部分表を表示する。ユーザーはS27において、表示されている部分表上で「どの部分木構造」を「どのノード」に接合するかに関して指定する。ここでは、図26に示す部分表の見出し“Ant”の子カラムである2つのカラム各々からなる部分木構造を、図25に示す部分表の見出し“Ant”のノードに接合すること、および、図26に示す部分表の見出し“Butterfly”の子カラムである2つのカラム各々からなる部分木構造を、図25に示す部分表の見出し“Butterfly”のノードに接合することを指定するものとする。
【0056】
図27は、本発明の表作成装置の第2の実施の形態において表合成パラメータ保持部で指定された木構造の接合の指定の一例を示す概念図である。図27(A)は図25に示す部分表のカラムの木構造を示しており、図27(B)は図26に示す部分表のカラムの木構造を示している。上述のように接合の指定を行なうことによって、図27(B)に破線で囲んで示した部分木構造が図27(A)に示す木構造に接合され、図27(C)に示すような木構造を形成するように指示したことになる。このような接合に関する指定は、S28において表合成パラメータ保持部4に保持される。
【0057】
表合成部5は、まずS29において、表合成パラメータ保持部4に保持されている接合に関する指定に従って接合を行ない、上述の図15に示したように生成される表のカラム及びローの構造を決定する。
【0058】
次にS30において、カラムとローの各交点の表項目を、部分表における同じカラムとローの交点の表項目とする。例えば、“Ant”,“Female”の見出しに対応するカラムと“# of legs”の見出しに対応するローの交点の表項目は、同一の交点を持つ図26の部分表から、“6”であると決定される。他の表項目についても同様である。このようにして上述の図15に示すような合成表の構造において、表項目をそれぞれ決定してゆくことにより、結果として上述の図16に示すような表が合成される。
【0059】
このように、第2の実施の形態によれば、表合成パラメータ保持部4に保持される表合成パラメータとして、第1の部分表の部分木構造もしくは木構造と、第2の部分表の木構造の特定のノードとの対応付けを保持し、表合成部5は表合成パラメータ保持部4にて対応付けられた第1の部分表の部分木構造もしくは木構造を第2の部分表の木構造の特定のノードの下位構造として接合することによって、木構造の階層の深さが部分的に異なる表であっても簡単に作成することが可能となる。
【0060】
上述の例では、図26に示す部分表の見出し“Ant”,“Butterfly”の子カラムであるそれぞれ2つのカラム各々からなる部分木構造を、図25に示す部分表の見出し“Ant”,“Butterfly”のノードに接合する例を示したが、例えば見出し“Ant”,“Butterfly”をルートとする木構造全体を他のノードに接合してもよい。また、接合するノードは、木構造のルートに対応するノードに限らず、下位のレベルのノードであってももちろんよい。
【0061】
次に、本発明の表作成装置の第3の実施の形態について説明する。上述の第1および第2の実施の形態では、部分表における木構造内のカラム(ロー)の順番や、木構造間の順番を保ったまま表を合成することにより、見やすい表を得ることができる。しかし、順番を保ったままでは見にくい表となることもある。図28は、表の第5の例の説明図である。図28は、図13と同様の表であり、カラムの見出しの年号が異なっている。ここで、図13と図28を合成することを考えると、図13の年号の順番と図28の年号の順番をそのまま保ったまま合成したのでは、はなはだ見にくい表となってしまう。このような合成対象の複数の部分表が共通した性質を持つカラム(ロー)を保持しているような場合、それら共通したものをまとめて順序付けを行なうことが望まれる。この第3の実施の形態では、見出しによってソートすることにより、望ましい表の合成を行なうことを可能としている。
【0062】
この第3の実施の形態の構成は、以下の点を除いて図1に示す第1の実施の形態と同様である。表合成パラメータ保持部4は、表合成パラメータとして、第1レベルよりどのレベルまでソートのキーとして使用するかをユーザーインターフェースを介してユーザに指定させ、この情報を保持する。また、表合成部5は、表合成パラメータ保持部4に保持されているソートのキーに関する表合成パラメータに従い、そのレベルまでの各レベルにおいて見出しによってソートすることによりカラム及びローの木構造を接合し、合成表を作成する。
【0063】
図29は、本発明の表作成装置の第3の実施の形態における動作の一例を示すフローチャートである。S31において、ユーザーは表入力テンプレート生成部1に対して、ユーザーインターフェースを介してカラムにおける木構造の数、カラムの木構造のレベル数、各レベルにおける親カラムの子となるカラムの数、ローにおける木構造の数、ローの木構造のレベル数、各レベルにおける親ローの子となるローの数の組を1以上指定する。S32において、表入力テンプレート生成部1は、ユーザーの指定を受けて、各々の組に対してその指定を満たす表入力テンプレートを生成し、表示する。S33において、ユーザーは表項目入力部2を使用して、表示されている表入力テンプレートに対して項目及びカラム/ローに対応する見出しの入力を行なう。S34において、表項目入力部2はS33におけるユーザーの入力を受けて、部分表を作成する。S35において、部分表保持部3は表項目入力部2が生成した部分表を保持する。
【0064】
一方、S36において、ユーザーはレベル1よりどのレベルまでソートのキーとして使用するかの指定を、ユーザーインターフェースを介して表合成パラメータ保持部4に対して行なう。S37において、表合成パラメータ保持部4はS36で行なわれた指定を保持する。
【0065】
表合成部5は、以下の手順により表を生成する。まずS38において、カラム、及びローのまだソートに使用されていないレベルのうちで最も上のレベルの見出しをソートのキーとして用い、カラムやローをソートする。ソートの方法としては、まずカラム及びローを、ソートのキーとなる見出しの親が共通であるものを一つの群としてグルーピングし、その群内でソートする。ソートは例えば欧文の場合には見出しのアルファベット順で行ない、アルファベット順で前の見出しを持つカラムがより左、ローならより上とする。和文の場合には例えばそのコード順等とすればよい。レベル1の見出しは親を持たないが、これらについてはカラムのレベル1の見出し全体、及びローのレベル1の見出し全体がそれぞれ共通の親を持つものとしてソートする。
【0066】
もしキーとして使用されているレベルに同じ見出しを持つカラムやローが存在する場合、それらの(部分)木構造は一つの(部分)木構造へとマージされる。新たな(部分)木構造は元の(部分)木構造の親を親とし、(部分)木構造のルートの見出しは元の(部分)木構造のルートの見出しであり、(部分)木構造のルートの子は元の(部分)木構造のルートの子の和である。このようなソートを、指定された範囲内にあるレベルについて行なう。
【0067】
S39において、表合成パラメータ保持部4に保持されているレベルまで、ソートのキーとして使用されたか否かを判定する(S39)。もし全てのレベルについてソートのキーとして使用されたならばS40へ進む。もしソートのキーとして使用されていないレベルが存在するならS38へ戻り、それらのレベルについての処理を行なう。
【0068】
このようにして指定された全てのレベルについてソートの処理が終了してカラム及びローの構造が決定したら、S40において、カラムとローの各交点の表項目を、部分表における同じカラムとローの交点の表項目とする。このようにして、指定されたレベルまでの各レベルにおいて見出しによってソートを行なった合成表を作成することができる。
【0069】
具体例をもとに、上述の動作を説明する。図30〜図32は、本発明の表作成装置の第3の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。ユーザーはS31において表入力テンプレート生成部1に対し、図30〜図32に示すように入力し、表入力テンプレート生成部1に対し指定を行なう。図30〜図32に示したユーザーインターフェースは、上述の図6、図7に示したものと同じであり、入力されたデータが異なるのみである。図30では、カラムとして2つの見出しが配列され、ローの見出しとしては、レベル1の見出しが1つ、レベル1の子となるレベル2の見出しが1つ、レベル2の子となるレベル3の見出しが2つ配列されることが指定されている。また、図32では、カラムとして2つのみ出しが配列され、ローの見出しとしては、レベル1の見出しが1つ、レベル1の子となるレベル2の見出しが1つ配列されることが指定されている。なお、図32における指定は、図31における指定と同一である。
【0070】
表入力テンプレート生成部1は、例えば図30〜図32に示すようなユーザーの指定を受けて、S32において表入力テンプレートを生成し、表示する。図33〜図35は、本発明の表作成装置の第3の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。図30〜図32に示したようなユーザーの入力指示に対応し、表入力テンプレート生成部1は、図33〜図35に示すような表入力テンプレートを生成し、表示する。
【0071】
ユーザーはS33において表項目入力部2を使用して、項目及びカラム/ローに対応する見出しの入力を行なう。図36〜図38は、本発明の表作成装置の第3の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。図36は、図33に示した表入力テンプレートをもとに、項目および見出しを入力した例を示している。また、図37は、図34に示した表入力テンプレートをもとに、項目および見出しを入力した例を示している。さらに、図38は、図35に示した表入力テンプレートをもとに、項目および見出しを入力した例を示している。ここで、図36に示した部分表と図37に示した部分表では、構造が同じであるが、ローのレベル2の見出しが異なっている。レベル1、レベル3については同じ見出しが存在するが、レベル3の見出し“male”,“female”の順が異なっている。
【0072】
表項目入力部2は、ユーザーが項目を入力することにより、S34において図36〜図38に示す部分表を作成する。作成された部分表は、S35において部分表保持部3に保持される。
【0073】
一方、S36において、ユーザーは表合成パラメータ保持部4に対し、第1レベルよりどのレベルまでソートのキーとして使用するかをユーザーインターフェースを介して指定する。図39は、本発明の表作成装置の第3の実施の形態において表合成パラメータ保持部が提供するユーザーインターフェースの一例の説明図である。矩形内にソートのキーとして使用するレベル数を指示することによって、レベル1から指示されたレベルまでをソートのキーとして使用することが指定される。この例では、レベル1からレベル3までをソートのキーとして用いることが指示されている。この指定は、S37において表合成パラメータ保持部4に保持される。
【0074】
表合成部5は、次のようにして表のカラム及びローの構造を決定する。まずS38において、カラム、ローのまだソートに使用されてないレベルのうちで最も上のレベル、つまりレベル1の見出しをキーとしてソートを行なう。レベル1の見出しはカラムのレベル1の見出し全体、及びローのレベル1の見出し全体がそれぞれ共通の親を持つものとしてソートする。この例では、ローについては各部分表のローのレベル1の見出し、つまり図36に示す部分表のローの見出し“Arthropod”、及び、図37に示す部分表のローの見出し“Arthropod”、及び、図38に示す部分表のローの見出し“Gastropod”が一つの群をなしてその中でソートが行われる。アルファベット順において、“Arthropod”は“Gastropod”より前であるので、“Arthropod”のローは“Gastropod”のローよりも上にくることになる。
【0075】
またこの場合、二つの“Arthropod”は同じ見出しであるので、図36に示す部分表のローの木構造と図37に示す部分表のローの木構造はマージされ、新たな一つの木となる。図40は、本発明の表作成装置の第3の実施の形態において表合成部でソートを行なう際のマージ操作の一例の説明図である。図40(A)は図36に示す部分表のローの木構造を示しており、図40(B)は図37に示す部分表のローの木構造を示している。この例ではレベル1のノードにあたる見出しが同じであるので、これを1つにまとめ、図40(C)に示すような木構造とする。
【0076】
図41は、本発明の表作成装置の第3の実施の形態において表合成部がレベル1でソートした合成表の構造の一例の説明図である。上述のように、ローのレベル1におけるソートと、同じ見出しのマージを行なうことによって、図41に示すような合成表の構造が得られる。なお、カラムについても同様にレベル1のソートが行なわれる。
【0077】
S39において、表合成パラメータ保持部4に保持されているレベル(レベル3)までソートのキーとして使用したか否かを判定する。この時点ではまだローのレベル2及びレベル3が使用されていないので、S38へ戻る。S38において、ローについてレベル2の見出しをキーとしてソートを行なう。図42は、本発明の表作成装置の第3の実施の形態において表合成部がレベル2までソートした合成表の構造の一例の説明図である。ローのレベル2の見出しは、見出し“Arthropod”を親とする“butterfly”,“ant”と、見出し“Gastropod”を親とする“snail”の2つの群にグルーピングされる。最初の群のアルファベット順のソートの結果、“ant”のローが上、“butterfly”が下となる。その結果、図42に示すような合成表の構造が得られる。
【0078】
再度S39において、表合成パラメータ保持部4に保持されているレベル(レベル3)までソートのキーとして使用したか否かを判定する。この時点ではまだローのレベル3が使用されていないので、S38へ戻る。S38において、ローについてレベル3の見出しをキーとしてソートを行なう。図43は、本発明の表作成装置の第3の実施の形態において表合成部がレベル3までソートした合成表の構造の一例の説明図である。ローのレベル3の見出しは“ant”を親とする“female”,“male”と、“butterfly”を親とする“male”,“female”の2つの群にグルーピングされる。それぞれの群についてアルファベット順にソートされ、“female”,“male”の順となる。その結果、図43に示すような合成表の構造が得られる。
【0079】
再々度S39において、表合成パラメータ保持部4に保持されているレベル(レベル3)までソートのキーとして使用したか否かを判定する。今回はレベル3までソートのキーとして使用し、使用されていないものはないので、S40へ進む。
【0080】
次にS40において、カラムとローの各交点の表項目を、部分表における同じカラムとローの交点の表項目とする。例えば、“Arthropod”,“ant”,“female”の見出しに対応するローと“# of legs”の見出しに対応するカラムの交点の表項目は、同一の交点を持つ図37に示す部分表から、“6”であると決定される。他の表項目についても同様である。図44は、本発明の表作成装置の第3の実施の形態において表合成部が生成した合成表の一例の説明図である。このようにして図43に示すような合成表の構造において、カラムとローの各交点の表項目をそれぞれ決定してゆくことにより、結果として図44に示すような表が合成される。
【0081】
このようにして、第3の実施の形態によれば、表合成部5はその見出しによってソートして部分表のカラム及びローの木構造を接合することにより、望ましい表の合成を行なうことが可能となる。
【0082】
上述の例では、ユーザーが「ソートのキーとして使用するレベルの範囲の下端」を直接レベル数によって指定したが、「最下レベルまで」といった指定や、上端および下端の指定が可能なものであってもよい。また、例ではユーザーが「ソートのキーとして使用するレベルの範囲」を指定したが、ソートのキーとして使用するか否かをレベル一つ一つについてユーザーが指定してもよい。さらに、ソートのキーとして使用される順番が上記の例では上のレベルからであったが、この順番についてもユーザーが指定できるようにしてもよい。また、同一の見出しについては、上述の例ではそれ以下の(部分)木構造をマージしているが、マージしない方法であってもよい。また、上記例ではソートは見出しのアルファベット順で行われたが、文字列長順や年月日順であってもよいし、ユーザーがこれらの中から指定できてもよいし、レベル毎にこれらを変えてもよい。また、上に述ベたような指定はカラムとローに別々に指定できてもよい。
【0083】
上述の第1ないし第3の実施の形態で示した構成は、組み合わせて構成することが可能である。例えば、第2の実施の形態と第3の実施の形態を組み合わせ、木構造の接合を行なえるとともに、接合後の構造においてソートを行なうように構成することができる。また、第1の実施の形態と第3の実施の形態を組み合わせ、ある部分では木構造や部分木構造の順序を保ち、ある部分ではソートを行なうように構成することもできる。もちろん、第1の実施の形態と第2の実施の形態を組み合わせたり、第1ないし第3の実施の形態を組み合わせて構成してもよい。
【0084】
上述の例では、部分表の作成から合成表の作成まで一連の処理として説明しているが、本発明はこれに限らない。例えば以前作成した部分表あるいは合成表を部分表保持部3に保持しておき、これらを用いて別の表を合成することもできる。その場合には、利用する部分表を指定し、表合成パラメータを設定して合成させることによって、簡単に以前作成した表を再利用することができる。
【0085】
【発明の効果】
以上の説明から明らかなように、本発明によれば、表のカラムおよびローを木構造とし、この木構造をもとに表入力テンプレートを生成して項目を入力して部分表を生成するとともに、パラメータに従って木構造をもとに部分表を合成するので、複雑な表であっても簡単に作成でき、作成した表を再利用することができる、操作性のよい表作成装置を提供することができるという効果がある。
【図面の簡単な説明】
【図1】本発明の表作成装置の第1の実施の形態を示す構成図である。
【図2】LaTeXによる表の表現の一例の説明図である。
【図3】表の第1の例の説明図である。
【図4】本発明の表作成装置の第1の実施の形態における動作の一例を示すフローチャートである。
【図5】表の第2の例の説明図である。
【図6】本発明の表作成装置の第1の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。
【図7】本発明の表作成装置の第1の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。
【図8】本発明の表作成装置の第1の実施の形態において表入力テンプレート生成部で指定された木構造の一例を示す概念図である。
【図9】本発明の表作成装置の第1の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。
【図10】本発明の表作成装置の第1の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。
【図11】本発明の表作成装置の第1の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。
【図12】本発明の表作成装置の第1の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。
【図13】表の第3の例の説明図である。
【図14】本発明の表作成装置の第1の実施の形態において表合成パラメータ保持部が提供するユーザーインターフェースの一例の説明図である。
【図15】本発明の表作成装置の第1の実施の形態において表合成部が生成する合成表の構造の一例の説明図である。
【図16】本発明の表作成装置の第1の実施の形態において表合成部が生成した合成表の一例の説明図である。
【図17】表の第4の例の説明図である。
【図18】本発明の表作成装置の第2の実施の形態を示す構成図である。
【図19】本発明の表作成装置の第2の実施の形態における動作の一例を示すフローチャートである。
【図20】本発明の表作成装置の第2の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。
【図21】本発明の表作成装置の第2の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。
【図22】本発明の表作成装置の第2の実施の形態において表入力テンプレート生成部で指定された木構造の一例を示す概念図である。
【図23】本発明の表作成装置の第2の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。
【図24】本発明の表作成装置の第2の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。
【図25】本発明の表作成装置の第2の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。
【図26】本発明の表作成装置の第2の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。
【図27】本発明の表作成装置の第2の実施の形態において表合成パラメータ保持部で指定された木構造の接合の指定の一例を示す概念図である。
【図28】表の第5の例の説明図である。
【図29】本発明の表作成装置の第3の実施の形態における動作の一例を示すフローチャートである。
【図30】本発明の表作成装置の第3の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。
【図31】本発明の表作成装置の第3の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。
【図32】本発明の表作成装置の第3の実施の形態において表入力テンプレート生成部が提供するユーザーインターフェースの一例の説明図である。
【図33】本発明の表作成装置の第3の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。
【図34】本発明の表作成装置の第3の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。
【図35】本発明の表作成装置の第3の実施の形態において表入力テンプレート生成部が生成した表入力テンプレートの一例の説明図である。
【図36】本発明の表作成装置の第3の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。
【図37】本発明の表作成装置の第3の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。
【図38】本発明の表作成装置の第3の実施の形態において表項目入力部で項目および見出しが入力された部分表の一例の説明図である。
【図39】本発明の表作成装置の第3の実施の形態において表合成パラメータ保持部が提供するユーザーインターフェースの一例の説明図である。
【図40】本発明の表作成装置の第3の実施の形態において表合成部でソートを行なう際のマージ操作の一例の説明図である。
【図41】本発明の表作成装置の第3の実施の形態において表合成部がレベル1でソートした合成表の構造の一例の説明図である。
【図42】本発明の表作成装置の第3の実施の形態において表合成部がレベル2までソートした合成表の構造の一例の説明図である。
【図43】本発明の表作成装置の第3の実施の形態において表合成部がレベル3までソートした合成表の構造の一例の説明図である。
【図44】本発明の表作成装置の第3の実施の形態において表合成部が生成した合成表の一例の説明図である。
【符号の説明】
1…表入力テンプレート生成部、2…表項目入力部、3…部分表保持部、4…表合成パラメータ保持部、5…表合成部。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a table creation apparatus and a table creation method used to create a table.
[0002]
[Prior art]
Tables have been widely used as a means of organizing complex information and communicating it to readers. Even now that documents are created by electronic devices, tables remain an important component of documents. Document creation and editing devices such as DTP and word processors have a table creation function. The table creation methods in these conventional document creation / editing apparatuses can be broadly divided into two methods: a WYSIWYG (What You See Is What You Get) method and a command embedding method.
[0003]
The WYSIWYG method is used in more DTPs and word processors than before. The feature of the WYSIWYG method is that a rule table is displayed on the screen, and a table is created by filling corresponding item contents in the item frame in the displayed rule table. Here, the ruled table is a frame composed of ruled lines, and the item frame refers to a rectangular area surrounded by adjacent vertical and horizontal ruled lines. The procedure for creating a table by the user according to this method will be described below.
[0004]
First, the outline of the ruled table is determined. Here, the outline of the ruled table refers to a ruled table in which only the relative positional relationship between the ruled lines is determined while the absolute positions of the ruled lines and the absolute interval between the ruled lines remain undecided. When determining the outline of the ruled table, check the correspondence between the heading item group and the data item group over the entire items to be entered, and how to draw a ruled line, the necessary and sufficient heading item frame and data frame ( You have to consider whether you can create a ruled table with item frames.
[0005]
Next, the user creates a rule table through the system based on the outline of the ruled table determined. There are two methods for creating a rule table: a method of repeating division, posting, deletion, etc. for a column or row of a rule table, and a method of repeating operations such as adding, deleting, and changing the length of ruled lines. .
[0006]
Finally, a heading item or data is input into each item frame of the created ruled table, and the table is completed.
[0007]
The command embedding method is used in the LaTeX tabular environment and the roff tbl, and expresses a table as text that contains a character string of item contents, a control symbol representing the boundary between items, and a command for drawing ruled lines. In this method, a table is created by inputting this text. FIG. 2 is an explanatory diagram of an example of a table expression by LaTeX. The control symbol “&” represents the boundary between items in a row (a row of items). The LaTeX formatter interprets the control symbol “&” as a command for instructing the drawing of a vertical ruled line, and draws a vertical ruled line between the item contents on both sides of the “&”. The control symbol “\\” represents the end of the row, and the commands “\ hline” and “\ cline” indicate the drawing of a horizontal line.
[0008]
When the user creates a table according to this method, first, the outline of the ruled table is determined. Then, based on the outline of the ruled table determined, the character string, control symbol, and command of the item contents are input according to the rules. When the input is complete, start the formatter and generate the layout. By this procedure, a table is formed.
[0009]
In any of the above-described methods, the user first determines the outline of the ruled table, and then takes the procedure of actually creating the table. However, the above method has the following problems.
[0010]
First, there is a problem that the user has to perform the table formation from the beginning of the table generation by predicting the shape of the table when completed. In other words, with the conventional tabulation method, before entering the tabulation work, it was necessary to consider in advance the outline of the ruled table, that is, what shape the entire table would be, and it took time and effort. . At this time, the outline of the ruled table must provide a necessary and sufficient item frame so that all the heading items and the data items are input with the corresponding relationship correctly maintained. This work becomes extremely complicated when the number of heading items and data items increases or the correspondence between them increases.
[0011]
In the WYSIWYG method, the user must create a ruled table by operating columns, rows, and ruled lines. When the shape of the table becomes complicated, the number of necessary operations increases. In the command embedding method, since the ruled table is not displayed on the screen, the user must create the text without actually looking at the ruled table, and it is very difficult to draw the error at once. . Moreover, the text to be tabulated is difficult to read because control symbols and commands are embedded between characters, and it is difficult not only to find an erroneous input from the text, but also to cause an erroneous input. Thus, the user is often unaware of the error until the formatter is activated to generate the actual layout, and every time an error is found, the text must be corrected and the formatter must be activated again. Since the time required for the formatter to generate the layout is not necessarily short, the work is not only complicated, but also takes time. Thus, the work of creating the ruled table is complicated, and when the determined outline of the ruled table is complicated, the work of actually creating the table according to the outline of the ruled table is also complicated.
[0012]
Also, in the conventional method, one table is created at a time, so when creating another table that partially shares heading items and element data, a part of the already created table is reused. There was also a problem that it was difficult to do.
[0013]
Furthermore, in the conventional method, since one table is created at a time, it is difficult to create a large table. In the WYSIWYG method, when a large table that protrudes from one screen is created, there is a disadvantage that necessary heading items scroll out from the screen. For this reason, it is difficult to know which heading item the currently input data corresponds to, which causes an input error. In order to confirm the corresponding heading item, it is necessary to scroll the screen to check the heading item, but this time the data frame that was being input will scroll out from the screen, so to continue input You have to scroll the screen again. In this way, it takes a lot of time to input a large table. With the command embedding method, the text to be created is difficult to read, so it was difficult to keep the correspondence between the heading item and the input data correct otherwise. As the table grows larger, the amount of text becomes enormous, and it becomes extremely difficult to maintain correspondence between heading items and input data.
[0014]
On the other hand, a relational database (RDB) has a tabular data structure, so that data is often output in a tabular format. For this reason, it is conceivable to use RDB as a table creation means in addition to the document creation / editing apparatus.
[0015]
The table in RDB is defined as follows. First, one unique schema is given to one RDB table. A schema is a column of columns that make up a table. Normally, each column is given a unique name (column heading) called an attribute. Even if no attributes are given, the individual columns are managed so that they can be distinguished from each other. The schema is a framework for registering a record called a tuple in the RDB, and does not have a record in itself. After the schema is defined in the database, a table is created by registering records in association with the schema. A record in the RDB is called a tuple, and is a value column having a value corresponding to each column of the table schema. A tuple is represented as a row in the table.
[0016]
The RDB database is a collection of a plurality of tables each having a unique schema. A database search is performed by creating a new table from an existing table. The generated new table also follows the RDB table format. That is, it is a collection of tuples that have a unique schema that is a column row and are represented as rows.
[0017]
In RDB, an algebra system called a relational algebra is prepared as a rule for generating a new table from an existing table. This algebraic system has five operations closed on a set of tables that obey the rules described above. Specifically, union, difference, projection, production, and selection are operations defined in relational algebra. The RDB search formula is expressed as an algebraic formula combining these operations. Since such operations are prepared, the user can create a large table easily by combining small tables by creating multiple small tables in the database and using this operation for those tables. be able to. For this reason, the user does not need to create a large table all at once, and it is also possible to save a small table and reuse it to create another table. However, in RDB, in the calculation of relational algebra including table synthesis (product, join), simple uniformity is maintained between the input and output of the operation, that is, the table schema is always simple. It is necessary to maintain the property that it is a row of simple columns.
[0018]
FIG. 3 is an explanatory diagram of a first example of the table. The table shown in FIG. 3 has two columns (referred to as columns 1, 2,... Sequentially from the left) and five rows (referred to as rows 1, 2,... Sequentially from the top). But there is also a parent row for row 1 and row 2 (referred to as row 11), which is indicated by the heading “ant” spanning rows 1 and 2. Has been. Similarly, there is a parent row (referred to as row 12) for row 3 and row 4, which row 12 is indicated by the heading “butterfly”. In addition, there are parent rows for row 11 and row 12, indicated by the heading “Arthropod” across them.
[0019]
In this way, the table shown in FIG. 3 holds child columns and rows in which columns and rows are ordered, and the child columns and rows recursively hold their own child columns and rows. As shown, columns and rows have a tree structure. The structure table shown in FIG. 3 is not special and is widely used.
[0020]
In RDB, a table is a means for virtually representing a collection of records, and the simple uniformity of the table simplifies the design and configuration of a database management system, and provides a consistent system. Provides the advantage of ease of construction. However, for example, a table having a tree structure in columns and rows as shown in FIG. 3 cannot be operated.
[0021]
[Problems to be solved by the invention]
The present invention has been made in view of the above-described circumstances, and can be easily created even with a complicated table having a tree structure in columns and rows, and the created table can be reused. It is an object of the present invention to provide a good table creation device and a table creation method.
[0022]
[Means for Solving the Problems]
The present invention shows a parent-child relationship between a column and a row as a tree structure, generates a table input template according to the tree structure and displays it on a screen, and accepts input of items for the table input template, Table item input means for generating a partial table from the table input template to which is input, partial table holding means for holding a required number of partial tables generated by the table item input means, columns in a plurality of partial tables, and Table synthesis parameter holding means for holding parameters for synthesizing a partial table by defining an order relationship between the tree structures of the row, and a tree structure held in the table synthesis parameter holding means while retaining individual tree structures A table for generating a single table by synthesizing the partial tables held in the partial table holding means according to the parameter indicating the order relationship between By configuring the table creation device having means, also by realizing the table creating a similar arrangement is intended to achieve the object.
[0023]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a configuration diagram showing a first embodiment of a table creation device of the present invention. In the figure, 1 is a table input template generation unit, 2 is a table item input unit, 3 is a partial table holding unit, 4 is a table synthesis parameter holding unit, and 5 is a table synthesis unit. The arrows in the figure represent the data flow.
[0024]
The table input template generation unit 1 sends the number of tree structures in the column from the user via the user interface, the number of levels in the column tree structure, the number of columns that are children of the parent column in each level, the number of tree structures in the row, A table input template satisfying the specification for each set is generated by receiving a plurality of sets of combinations of the number of levels of the row tree structure and the number of rows that are children of the parent row at each level. The table item input unit 2 provides the user with a user interface for inputting items to each of the table input templates generated by the table input template generation unit 1, and further displays a partial table from the table input template in which the items are input. Generate. In the partial table holding unit 3, the user inputs table items via the table item input unit 2 and holds the required number of generated partial tables. The table synthesis parameter holding unit 4 holds parameters for synthesizing the partial table. The parameters held in this example define an order relationship between column and row tree structures in a plurality of partial tables, and the order relationship is specified by the user via the user interface. The table synthesizing unit 5 generates a single table by synthesizing the partial tables held in the partial table holding unit 3 in accordance with the order relation held in the table synthesis parameter holding unit 4 while keeping the individual tree structures.
[0025]
FIG. 4 is a flowchart showing an example of the operation in the first embodiment of the table creation device of the present invention. In S11, the user makes the number of tree structures in the column, the number of levels of the tree structure of the column, the number of columns that are children of the parent column in each level, and the Specify one or more sets of the number of tree structures, the number of levels in the tree structure of the rows, and the number of rows that are children of the parent row at each level. In S12, the table input template generation unit 1 receives a user's specification, generates and displays a table input template that satisfies the specification for each set. In S13, the user uses the table item input unit 2 to input headings corresponding to items and columns / rows for the displayed table input template. In S14, the table item input unit 2 receives the user input in S13 and creates a partial table. In S15, the partial table holding unit 3 holds the partial table generated by the table item input unit 2.
[0026]
On the other hand, in S16, the user designates the table synthesis parameter holding unit 4 regarding the order relation between the column and row tree structures in the plurality of partial tables via the user interface. The designation to be made here is performed in the form of “a column consisting of headings corresponding to the root of the tree structure for each column and row”. The designation made in S16 is held in the table synthesis parameter holding unit 4 in S17.
[0027]
The table synthesis unit 5 generates a table according to the following procedure. First, in S18, the column and row structure of the table generated according to the order relation between the column and row tree structure held in the table synthesis parameter holding unit 4 is determined. At this time, the column (row) headings are arranged so that the headings at the same tree structure level are arranged in a horizontal row (vertical row). When the column and row structures are determined, in S19, the table item at each intersection of the column and row is set as the table item of the same column and row intersection in the partial table. In this way, even a complicated table in which columns and rows have a tree-like order relationship can be created.
[0028]
The above operation will be described based on a specific example. When creating the target table, the user creates a partial table for each part having regularity in the table, and synthesizes them later. In general, when data at each intersection in an N-dimensional matrix is tabulated, if one level of the tree structure is made to correspond to one dimension, a column (row) that is a child of a certain level column (row) The number has regularity that is equal to the number of elements in the dimension corresponding to the level of its children. FIG. 5 is an explanatory diagram of a second example of the table. For example, the table shown in FIG. 5 shows an example of a truth table of (w ∧ x) ∨ (¬ y ∧ z), and tabulates data on a four-dimensional matrix of w, x, y, z. It is. Two columns are associated with each column and row, but the number of elements in the dimension corresponding to the child level of the column indicated by the heading “w = T” and the column indicated by “w = F” is two. Therefore, both hold two child columns equally. Similarly, both the row indicated by the heading “y = T” and the row indicated by “y = F” have two elements in the dimension corresponding to the level of their children, and both hold two child rows equally. doing. For example, the table to be created is created as a partial table for each part having regularity as shown in FIG.
[0029]
6 and 7 are explanatory diagrams illustrating an example of a user interface provided by the table input template generation unit in the first embodiment of the table creation device of the present invention. In order to generate a table input template of the partial table having the regularity as described above, the table input template generation unit 1 displays, for example, as shown in FIGS. 6 and 7 and prompts the user to input each item. . In the example shown in FIGS. 6 and 7, the number of tree structures in the column, the number of levels in the tree structure of the column, the number of columns that are children of the parent column in each level, the number of tree structures in the row, the row tree structure The user can enter the number of levels and the number of rows that are children of the parent row at each level.
[0030]
In the example shown in FIG. 6, since the number of tree structures in the column is 2, it indicates that there are two headings for the highest column. Further, since the number of levels in the tree structure of the column is 2, it indicates that the column heading has two levels. Further, in the column of the number of child columns, since the number of child columns of level 1 is 2, it indicates that each of the highest column has two columns. For these child columns, the number of levels in the tree structure is 2, so there is no child column (grandchild column). Similarly, since the number of tree structures in a row is 2 and the number of levels in the tree structure is 1, the row heading specifies that two rows are arranged in one column.
[0031]
In the example shown in FIG. 7, since the number of levels of the tree structure is 1 for both the column and row, the heading is only one row and one column, and the number of row tree structures is 2. This means that a partial table having two headings is specified.
[0032]
FIG. 8 is a conceptual diagram showing an example of a tree structure specified by the table input template generation unit in the first embodiment of the table creation device of the present invention. (A) and (C) show column tree structures, and (B) and (D) show row tree structures, respectively. Each node indicated by a white circle is a headline.
[0033]
8A and 8B show the tree structure designated in FIG. 6 as a tree diagram. For example, as shown in FIG. 8A, the column has two tree structures because the number of tree structures is two. Further, since the number of levels of the tree structure is 2, each node is present below the node corresponding to the root, and has two levels. Furthermore, since the number of columns that are children of the first level is 2, there are two nodes below the node corresponding to the root of each tree structure. As for the row, as shown in FIG. 8B, since the number of tree structures is 2, there are two tree structures, but since the number of tree structure levels is 1, Nothing is connected. FIGS. 8C and 8D show tree diagrams of the tree structure specified in FIG. 7. The column has only one node as shown in FIG. As shown in FIG. 8 (D), only two nodes corresponding to the root of the tree structure are juxtaposed.
[0034]
In S11, the user thus makes the number of tree structures in the column, the number of levels in the tree structure of the column, the number of columns that are children of the parent column in each level, the number of tree structures in the row, the row through the user interface in this way. The number of levels of the tree structure and the number of rows that are children of the parent row at each level are input and specified to the table input template generation unit.
[0035]
The table input template generation unit 1 receives a user's designation as shown in FIGS. 6 and 7, for example, and generates and displays a table input template in S12. FIG. 9 and FIG. 10 are explanatory diagrams of examples of table input templates generated by the table input template generation unit in the first embodiment of the table creation device of the present invention. Corresponding to the user input instruction as shown in FIGS. 6 and 7, the table input template generation unit 1 generates a table input template as shown in FIGS.
[0036]
As described above, in FIG. 6, the user has specified that the number of levels of the tree structure of the column is 2, the number of tree structures is 2, and the number of columns of the second level is 2. In addition, it is specified that the number of levels of the tree structure of the row is 1 and the number of tree structures is 2. According to these specifications, as shown in FIG. 9, the table input template generation unit 1 has two column headings, two upper headings, and two lower headings for each upper heading. A table input template having two row headings is generated.
[0037]
Similarly, in FIG. 7, the user has specified that the number of levels in the tree structure is 1, the number of tree structures is 1, the number of levels in the row tree structure is 1, and the number of tree structures is 2. As shown in FIG. 10, the table input template generation unit 1 generates a table input template having one column heading and two row headings.
[0038]
The table input templates shown in FIGS. 9 and 10 are respectively displayed. In S13, the user uses the table item input unit 2 to input headings corresponding to items and columns / rows. 11 and 12 are explanatory diagrams illustrating an example of a partial table in which items and headings are input in the table item input unit in the first embodiment of the table creation device of the present invention. FIG. 11 shows an example in which items and headings are input based on the table input template shown in FIG. FIG. 12 shows an example in which items and headings are input based on the table input template shown in FIG.
[0039]
The table item input unit 2 creates the partial tables shown in FIGS. 11 and 12 in S14 when the user inputs items. The created partial table is held in the partial table holding unit 3 in S15.
[0040]
In step S16, the user designates the table synthesis parameter holding unit 4 regarding the order relationship between the column and row tree structures in the partial table. One of the reasons for grouping columns and rows in a tree structure and arranging columns and rows in the same tree structure close to each other in the layout is that they have a common property. Sometimes it is easy to see the table by arranging things with properties. For example, in the example of the table shown in FIG. 3, the row indicated by the heading “ant” and the row indicated by “butterfly” are adjacent to each other in the vertical direction. The data indicated by these rows is “Arthropod”. This is because they have the common nature of Also, the order of child columns (rows) in one parent column (row) often has some meaning. FIG. 13 is an explanatory diagram of a third example of the table. For example, in FIG. 13, the left four columns are arranged in order of year. These orders need to be arranged in this order or the reverse order. In addition, the order between the tree structures in one table may be meaningful. For example, in the table shown in FIG. 13, the column indicated by the heading “Year” and the column indicated by the heading “Total” have independent tree structures, but the order they form is significant. In the first embodiment, the order between the tree structures is given as a table synthesis parameter, and the order in each tree structure is stored as it is.
[0041]
FIG. 14 is an explanatory diagram showing an example of a user interface provided by the table synthesis parameter holding unit in the first embodiment of the table creation device of the present invention. As described above, the table composition parameter is specified with respect to the order relationship between the column and row tree structures in the plurality of partial tables. In the example shown in FIG. 14, it is specified that the headings “Ant”, “Butterfly”, and “Snail” are arranged in this order for the column, and “# of legs” and “# of wings” for the row. "" Specifies that each heading is arranged in this order. The heading used for designation at this time is the heading of the node corresponding to the root of each tree structure. In addition, the order relationship between the tree structures given as the table synthesis parameter is the same order as the order relationship between the tree structures included in the same partial table, so that the order of the tree structures in the partial table is maintained. Tables can be synthesized as described below. The order relationship between the column structure and the row tree structure specified in this way is held in the table synthesis parameter holding unit 4 in S17.
[0042]
In step S18, the table synthesis unit 5 first determines the column and row structure of the table according to the order relationship between the column and row tree structures held in the table synthesis parameter holding unit 4. FIG. 15 is an explanatory diagram showing an example of the structure of the synthesis table generated by the table synthesis unit in the first embodiment of the table creation device of the present invention. From the table synthesis parameter held in the table synthesis parameter holding unit 4, it is specified that the tree structure is arranged in the order of “Ant”, “Butterfly”, “Snail” for the column. Furthermore, from the tree structure of the column headings held in the partial table holding unit 3, the “Level” heading “Female” is obtained for each of the level 1 headings “Ant” and “Butterfly” of each tree structure. , “Male” is lined up. From these, the column structure is determined as shown in FIG. The row is the same, but since only the heading 1 exists, “# of legs” and “# of wings” specified by the table synthesis parameter are arranged vertically in this order. In this way, the structure of the synthesis table as shown in FIG. 15 is determined as a whole.
[0043]
Next, in S19, the table item at each intersection of the column and row is set as the table item at the intersection of the same column and row in the partial table. For example, the table item of the intersection of the column corresponding to the heading “Ant” and “Female” and the row corresponding to the heading “# of legs” is “6” from the partial table of FIG. 11 having the same intersection. Determined to be. The same applies to other table items. FIG. 16 is an explanatory diagram of an example of a synthesis table generated by the table synthesis unit in the first embodiment of the table creation device of the present invention. In this way, by determining each table item in the structure of the synthesis table as shown in FIG. 15, the table as shown in FIG. 16 is synthesized as a result.
[0044]
As described above, according to the first embodiment, the user has a standardized structure and is small, that is, the structure and contents are easy to grasp. Thus, a table having a complicated column and row structure can be obtained. In particular, in the table template generation unit 1 as described above, the number of tree structures in the column from the user, the number of levels in the column tree structure, the number of columns that are children of the parent column in each level, the number of tree structures in the row, Easily create a standardized table input template by receiving the specification of the number of levels in the row tree structure and the number of rows that are children of the parent row at each level, and generating a table input template that satisfies this specification it can. Further, by giving the order relationship between the column and row tree structures in the plurality of partial tables as a table synthesis parameter, the table synthesis unit 5 can synthesize the tables while keeping the individual tree structures. By treating a tree structure consisting of multiple columns (rows) as a single entity in this way, it is easier to synthesize than to handle individual columns (rows) separately, making it easier to see the synthesized table. It becomes possible.
[0045]
Next, a second embodiment of the table creation device of the present invention will be described. FIG. 17 is an explanatory diagram of a fourth example of the table. In the table shown in FIG. 17, the depth of the sub-tree structure underneath is the same level column (row) of one tree structure as in the rows indicated by “Arthropod” and “Gastropod”. May be different. In the first embodiment described above, the depth of the tree structure is at the specified level. Moreover, even if a separate table is created separately, the highest level cannot be shared. In order to eliminate such problems, in the second embodiment, the partial tree structure or tree structure of the first partial table is joined as a subordinate structure of a specific node of the tree structure of the second partial table. Thus, it is possible to partially change the depth of the hierarchy of the tree structure and synthesize a table as shown in FIG.
[0046]
FIG. 18 is a configuration diagram showing a second embodiment of the table creation device of the present invention. The reference numerals in the figure are the same as those in FIG. 1, and only differences from the first embodiment will be described. The parameter held by the table synthesis parameter holding unit 4 associates a partial tree structure or tree structure of a certain first partial table with a specific node of a tree structure of a second partial table different from the first partial table. Is. It is assumed that the user specifies which subtree structure is joined to which node. The table synthesis unit 5 joins the partial tree structure or tree structure of the first partial table associated with the table synthesis parameter holding unit 4 as a substructure of a specific node of the tree structure of the second partial table. To synthesize two sub-tables.
[0047]
FIG. 19 is a flowchart showing an example of the operation in the second embodiment of the table creation device of the present invention. In S21, the user sends the number of tree structures in the column, the number of levels in the tree structure of the column, the number of columns that are children of the parent column in each level, to the table input template generation unit 1 via the user interface. Specify one or more sets of the number of tree structures, the number of levels in the tree structure of the rows, and the number of rows that are children of the parent row at each level. In S22, the table input template generation unit 1 receives a user's specification, generates and displays a table input template that satisfies the specification for each set. In S23, the user uses the table item input unit 2 to input headings corresponding to items and columns / rows for the displayed table input template. In S24, the table item input unit 2 receives the user input in S23 and creates a partial table. In S25, the partial table holding unit 3 holds the partial table generated by the table item input unit 2.
[0048]
On the other hand, in S26, the table synthesis parameter holding unit 4 displays the partial table held in the partial table holding unit 3. In S27, the user designates “which sub-tree structure” is joined to “which node” on the displayed partial table. In S28, the table synthesis parameter holding unit 4 holds the designation made in S27.
[0049]
The table synthesis unit 5 generates a table according to the following procedure. First, in S29, joining is performed in accordance with the designation relating to joining held in the table synthesis parameter holding unit 4, and the structure of the generated table columns and rows is determined. At this time, the column (row) headings are arranged so that the headings at the same level (on the tree structure) are in a horizontal row (vertical row). When the column and row structures are determined, in S30, the table item at each intersection of the column and row is set as the table item of the same column and row intersection in the partial table. In this way, the partial tree structure or tree structure of the first partial table is joined as a substructure of a specific node of the second partial table tree structure, and the depth of the tree structure is partially changed. Tables can be synthesized.
[0050]
The above operation will be described based on a specific example. FIGS. 20 and 21 are diagrams illustrating an example of a user interface provided by the table input template generation unit in the second embodiment of the table creation device of the present invention, and FIG. 22 is also designated by the table input template generation unit. It is a conceptual diagram which shows an example of a tree structure. In S21, the user inputs to the table input template generation unit 1 as shown in FIGS. The user interface shown in FIGS. 20 and 21 is the same as that shown in FIGS. 6 and 7 described above, and only the input data is different. In FIG. 20, it is specified that three headings are arranged as columns and two headings are arranged as rows. Further, in FIG. 21, it is specified that two level 1 headings are arranged as column headings, and two headings are arranged as subheadings of the respective headings. The row heading specifies that two headings are arranged.
[0051]
FIG. 22 shows a tree structure of headings based on these designations. FIG. 22A shows the tree structure of the column header of the table specified in FIG. 20, and FIG. 22B shows the tree structure of the row header. FIG. 22C shows the tree structure of the column heading of the table specified in FIG. 21, and FIG. 22D shows the tree structure of the row heading.
[0052]
The table input template generation unit 1 receives a user's designation as shown in FIGS. 20 and 21, for example, and generates and displays a table input template in S22. FIG. 23 and FIG. 24 are explanatory diagrams of an example of the table input template generated by the table input template generation unit in the second embodiment of the table creation device of the present invention. In response to user input instructions as shown in FIGS. 20 and 21, the table input template generation unit 1 generates and displays table input templates as shown in FIGS.
[0053]
In S23, the user uses the table item input unit 2 to input headings corresponding to items and columns / rows. FIG. 25 and FIG. 26 are explanatory diagrams of examples of partial tables in which items and headings are input by the table item input unit in the second embodiment of the table creation device of the present invention. FIG. 25 shows an example in which items and headings are input based on the table input template shown in FIG. FIG. 26 shows an example in which items and headings are input based on the table input template shown in FIG. Here, in the partial table shown in FIG. 25, no entry is made in the columns of the column headings “Ant” and “Butterfly”. The partial table shown in FIG. 26 is intended to be inserted into this part.
[0054]
The table item input unit 2 creates partial tables shown in FIGS. 25 and 26 in S24 when the user inputs items. The created partial table is held in the partial table holding unit 3 in S25.
[0055]
The table synthesis parameter holding unit 4 displays the partial tables shown in FIGS. 25 and 26 held in the partial table holding unit 3 in S26. In S27, the user designates “which sub-tree structure” is joined to “which node” on the displayed partial table. Here, the subtree structure composed of each of the two columns that are child columns of the sub-table heading “Ant” shown in FIG. 26 is joined to the node of the sub-table heading “Ant” shown in FIG. It is specified that the subtree structure composed of each of the two columns which are child columns of the sub-table heading “Butterfly” shown in FIG. 26 is joined to the node of the sub-table heading “Butterfly” shown in FIG. .
[0056]
FIG. 27 is a conceptual diagram showing an example of the specification of the tree structure joint specified by the table synthesis parameter holding unit in the second embodiment of the table creation device of the present invention. FIG. 27A shows the tree structure of the column of the partial table shown in FIG. 25, and FIG. 27B shows the tree structure of the column of the partial table shown in FIG. By specifying the joint as described above, the partial tree structure surrounded by the broken line in FIG. 27B is joined to the tree structure shown in FIG. 27A, and as shown in FIG. It is instructed to form a tree structure. The designation relating to such joining is held in the table synthesis parameter holding unit 4 in S28.
[0057]
First, in S29, the table synthesizing unit 5 performs the joining in accordance with the designation regarding the joining held in the table synthesizing parameter holding unit 4, and determines the structure of the generated table columns and rows as shown in FIG. To do.
[0058]
Next, in S30, the table item at each intersection of the column and row is set as the table item of the intersection of the same column and row in the partial table. For example, the table item of the intersection of the column corresponding to the headings “Ant” and “Female” and the row corresponding to the heading “# of legs” is “6” from the partial table of FIG. 26 having the same intersection. Determined to be. The same applies to other table items. In this way, in the structure of the synthesis table as shown in FIG. 15 described above, by determining the table items, the table as shown in FIG. 16 is synthesized as a result.
[0059]
As described above, according to the second embodiment, the table synthesis parameters held in the table synthesis parameter holding unit 4 are the partial tree structure or tree structure of the first partial table and the tree of the second partial table. The table synthesizing unit 5 holds the correspondence with the specific node of the structure, and the table synthesizing parameter holding unit 4 converts the subtree structure or tree structure of the first subtable associated with the second subtable tree. By joining as a subordinate structure of a specific node of the structure, it is possible to easily create even a table having a partially different tree structure depth.
[0060]
In the above-described example, the sub-tree structure formed by each of the two columns which are child columns of the sub-table headings “Ant” and “Butterfly” shown in FIG. 26 is changed to the sub-table headings “Ant”, “ Although the example of joining to the node of “Butterfly” has been shown, for example, the entire tree structure having the headings “Ant” and “Butterfly” as the root may be joined to another node. Further, the nodes to be joined are not limited to nodes corresponding to the root of the tree structure, but may be lower-level nodes.
[0061]
Next, a third embodiment of the table creation device of the present invention will be described. In the first and second embodiments described above, an easy-to-read table can be obtained by synthesizing tables while maintaining the order of columns (rows) in the tree structure in the partial table and the order between the tree structures. it can. However, it may be difficult to see if you keep the order. FIG. 28 is an explanatory diagram of a fifth example of the table. FIG. 28 is a table similar to FIG. 13, and the year of the column heading is different. Here, considering that FIG. 13 and FIG. 28 are synthesized, if the order of the year in FIG. 13 and the order of the year in FIG. 28 are kept as they are, the table becomes difficult to see. When such a plurality of partial tables to be synthesized hold columns (rows) having a common property, it is desirable to collectively order those common items. In the third embodiment, desired tables can be synthesized by sorting by headings.
[0062]
The configuration of the third embodiment is the same as that of the first embodiment shown in FIG. 1 except for the following points. The table synthesis parameter holding unit 4 allows the user to specify, from the first level, the level to be used as a sort key as a table synthesis parameter via the user interface, and holds this information. Further, the table synthesis unit 5 joins the column and row tree structures by sorting by heading at each level up to that level according to the table synthesis parameters related to the sort key held in the table synthesis parameter holding unit 4. Create a composite table.
[0063]
FIG. 29 is a flowchart showing an example of the operation in the third embodiment of the table creation device of the present invention. In S31, the user sends the number of tree structures in the column, the number of levels in the tree structure of the column, the number of columns that are children of the parent column in each level, to the table input template generation unit 1 via the user interface. Specify one or more sets of the number of tree structures, the number of levels in the tree structure of the rows, and the number of rows that are children of the parent row at each level. In S32, the table input template generation unit 1 receives a user's specification, generates and displays a table input template that satisfies the specification for each set. In S33, the user uses the table item input unit 2 to input headings corresponding to items and columns / rows for the displayed table input template. In S34, the table item input unit 2 receives the user input in S33 and creates a partial table. In S35, the partial table holding unit 3 holds the partial table generated by the table item input unit 2.
[0064]
On the other hand, in S36, the user designates from which level 1 to which level to use as a sort key to the table synthesis parameter holding unit 4 via the user interface. In S37, the table synthesis parameter holding unit 4 holds the designation made in S36.
[0065]
The table synthesis unit 5 generates a table according to the following procedure. First, in S38, the column or row is sorted using the heading of the highest level among the levels not yet used for sorting the column and row as the sort key. As a sorting method, first, columns and rows are grouped as one group with a common parent of a heading that is a sort key, and sorted within the group. For example, sorting is performed in alphabetical order of headings in the case of Western text, and the column having the previous heading in alphabetical order is further left, and higher if it is row. In the case of a Japanese sentence, for example, the code order may be used. Level 1 headings have no parent, but they are sorted as if the entire column level 1 heading and the entire row level 1 heading have a common parent.
[0066]
If there are columns or rows with the same heading at the level used as a key, their (partial) tree structure is merged into a single (partial) tree structure. The new (partial) tree structure is parented to the parent of the original (partial) tree structure, the heading of the (partial) tree structure root is the heading of the root of the original (partial) tree structure, and the (partial) tree structure The root child of is the sum of the root children of the original (partial) tree structure. Such sorting is performed for levels within a specified range.
[0067]
In S39, it is determined whether or not the level held in the table synthesis parameter holding unit 4 has been used as a sort key (S39). If all levels have been used as sort keys, the process proceeds to S40. If there are levels that are not used as sort keys, the process returns to S38, and processing for those levels is performed.
[0068]
When the sorting process is completed for all the levels specified in this way and the column and row structures are determined, in S40, the table item at each intersection of the column and row is changed to the intersection of the same column and row in the partial table. It is a table item. In this way, it is possible to create a composite table that is sorted by headings at each level up to the designated level.
[0069]
The above operation will be described based on a specific example. 30 to 32 are explanatory diagrams illustrating examples of user interfaces provided by the table input template generation unit in the third embodiment of the table creation device of the present invention. In S31, the user inputs to the table input template generation unit 1 as shown in FIG. 30 to FIG. The user interfaces shown in FIGS. 30 to 32 are the same as those shown in FIGS. 6 and 7 described above, and only the input data is different. In FIG. 30, two headings are arranged as columns, and the row headings include one level 1 heading, one level 2 heading that is a child of level 1, and level 3 heading that is a child of level 2. It is specified that two headings are arranged. Also, in FIG. 32, it is specified that only two columns are arranged as a column, and that one heading of level 1 and one heading of level 2 that is a child of level 1 are arranged as row headings. ing. The designation in FIG. 32 is the same as the designation in FIG.
[0070]
The table input template generation unit 1 receives a user's designation as shown in FIGS. 30 to 32, for example, and generates and displays a table input template in S32. FIGS. 33 to 35 are explanatory diagrams of examples of table input templates generated by the table input template generation unit in the third embodiment of the table creation apparatus of the present invention. Corresponding to user input instructions as shown in FIGS. 30 to 32, the table input template generation unit 1 generates and displays table input templates as shown in FIGS.
[0071]
In S33, the user uses the table item input unit 2 to input headings corresponding to items and columns / rows. 36 to 38 are explanatory diagrams illustrating examples of partial tables in which items and headings are input in the table item input unit in the third embodiment of the table creation device of the present invention. FIG. 36 shows an example in which items and headings are input based on the table input template shown in FIG. FIG. 37 shows an example in which items and headings are input based on the table input template shown in FIG. Further, FIG. 38 shows an example in which items and headings are input based on the table input template shown in FIG. Here, the partial table shown in FIG. 36 and the partial table shown in FIG. 37 have the same structure, but the row level 2 heading is different. The same headings exist for level 1 and level 3, but the order of level 3 headings “male” and “female” are different.
[0072]
The table item input unit 2 creates the partial tables shown in FIGS. 36 to 38 in S34 when the user inputs items. The created partial table is held in the partial table holding unit 3 in S35.
[0073]
On the other hand, in S36, the user designates to the table synthesis parameter holding unit 4 to what level from the first level to use as a sort key via the user interface. FIG. 39 is an explanatory diagram showing an example of a user interface provided by the table synthesis parameter holding unit in the third embodiment of the table creation device of the present invention. By designating the number of levels to be used as the sort key in the rectangle, it is specified to use the level 1 to the designated level as the sort key. In this example, it is instructed to use levels 1 to 3 as sort keys. This designation is held in the table synthesis parameter holding unit 4 in S37.
[0074]
The table synthesizing unit 5 determines the structure of the columns and rows of the table as follows. First, in S38, sorting is performed using the top level among the levels not yet used for sorting of columns and rows, that is, the heading of level 1 as a key. The level 1 headings are sorted as if the entire column level 1 heading and the entire row level 1 heading have common parents. In this example, for the row, the level 1 heading of each sub-table row, that is, the sub-table row heading “Arthropod” shown in FIG. 36, and the sub-table row heading “Arthropod” shown in FIG. 38, the heading “Gastropod” in the partial table shown in FIG. 38 forms a group, and sorting is performed therein. In alphabetical order, “Arthropod” precedes “Gastropod”, so the “Arthropod” row will be higher than the “Gastropod” row.
[0075]
In this case, since two “Arthropods” have the same heading, the row tree structure of the partial table shown in FIG. 36 and the row tree structure of the partial table shown in FIG. 37 are merged into one new tree. . FIG. 40 is an explanatory diagram showing an example of a merge operation when sorting is performed by the table composition unit in the third embodiment of the table creation device of the present invention. FIG. 40A shows the row tree structure of the partial table shown in FIG. 36, and FIG. 40B shows the row tree structure of the partial table shown in FIG. In this example, since the headings corresponding to the nodes of level 1 are the same, these are combined into one to form a tree structure as shown in FIG.
[0076]
FIG. 41 is an explanatory diagram showing an example of the structure of a synthesis table sorted by level 1 by the table synthesis unit in the third embodiment of the table creation device of the present invention. As described above, by sorting the row at level 1 and merging the same headings, a composite table structure as shown in FIG. 41 is obtained. The level 1 sort is similarly performed for the column.
[0077]
In S39, it is determined whether or not the level (level 3) held in the table synthesis parameter holding unit 4 has been used as a sort key. At this time, since the level 2 and level 3 of the low level are not used yet, the process returns to S38. In S38, sorting is performed for the row using the level 2 heading as a key. FIG. 42 is an explanatory diagram showing an example of the structure of the synthesis table sorted by the table synthesis unit up to level 2 in the third embodiment of the table creation device of the present invention. Row level 2 headings are grouped into two groups: “butterfly” and “ant” with the heading “Arthropod” as the parent, and “snail” with the heading “Gastropod” as the parent. As a result of alphabetical sorting of the first group, “ant” rows are up and “butterfly” is down. As a result, the structure of the synthesis table as shown in FIG. 42 is obtained.
[0078]
In S39 again, it is determined whether or not the level (level 3) held in the table synthesis parameter holding unit 4 has been used as a sort key. At this time, since level 3 of low is not used yet, the process returns to S38. In S38, sorting is performed for the row using the level 3 heading as a key. FIG. 43 is an explanatory diagram showing an example of the structure of a synthesis table sorted by the table synthesis unit up to level 3 in the third embodiment of the table creation device of the present invention. Row level 3 headings are grouped into two groups: “female” and “male” parented by “ant” and “male” and “female” parented by “butterfly”. Each group is sorted in alphabetical order, and is in the order of “female” and “male”. As a result, the structure of the synthesis table as shown in FIG. 43 is obtained.
[0079]
In S39 again, it is determined whether or not the level (level 3) held in the table synthesis parameter holding unit 4 has been used as a sort key. This time, it is used as a sort key up to level 3, and since there is no unused key, the process proceeds to S40.
[0080]
Next, in S40, the table item at each intersection of the column and row is set as the table item at the intersection of the same column and row in the partial table. For example, the table item of the intersection of the row corresponding to the heading “Arthropod”, “ant”, “female” and the column corresponding to the heading “# of legs” is from the partial table shown in FIG. , “6”. The same applies to other table items. FIG. 44 is an explanatory diagram showing an example of a synthesis table generated by the table synthesis unit in the third embodiment of the table creation device of the present invention. In this way, in the structure of the synthesis table as shown in FIG. 43, by determining the table items at the intersections of the columns and rows, the table as shown in FIG. 44 is synthesized as a result.
[0081]
In this way, according to the third embodiment, the table synthesis unit 5 can perform desired table synthesis by joining the column and row tree structures of the partial table by sorting by the headings. It becomes.
[0082]
In the above example, the user specified “the lower end of the range of levels used as the sort key” directly by the number of levels. However, it is possible to specify “up to the lowest level”, or specify the upper and lower ends. May be. In the example, the user specifies “the range of levels used as the sort key”, but the user may specify whether or not to use it as the sort key for each level. Further, although the order used as the sort key is from the upper level in the above example, this order may be specified by the user. For the same heading, the (partial) tree structure below it is merged in the above example, but a method of not merging may be used. In the above example, the sorting is performed in alphabetical order of the headings. However, the sorting may be in the order of the length of the character string or the order of the year, month, and day, and the user may be able to specify from these. May be changed. Also, the specification as described above may be specified separately for the column and row.
[0083]
The configurations shown in the first to third embodiments can be combined. For example, the second embodiment and the third embodiment can be combined so that a tree structure can be joined and sorting can be performed in the joined structure. In addition, the first embodiment and the third embodiment can be combined to maintain the tree structure or the order of the partial tree structure in a certain part and to sort in a certain part. Of course, the first embodiment and the second embodiment may be combined, or the first to third embodiments may be combined.
[0084]
In the example described above, a series of processes from creation of a partial table to creation of a composite table has been described, but the present invention is not limited to this. For example, a previously created partial table or composite table can be held in the partial table holding unit 3, and another table can be synthesized using these. In that case, the table created previously can be easily reused by designating the partial table to be used, setting the table synthesis parameter, and synthesizing.
[0085]
【The invention's effect】
As is clear from the above description, according to the present invention, the table columns and rows are made into a tree structure, a table input template is generated based on the tree structure, and items are input to generate a partial table. Since a partial table is synthesized based on a tree structure according to parameters, a table creation device with good operability can be provided, which can easily create even a complex table and reuse the created table. There is an effect that can be.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing a first embodiment of a table creation device of the present invention.
FIG. 2 is an explanatory diagram of an example of a table expression in LaTeX.
FIG. 3 is an explanatory diagram of a first example of a table.
FIG. 4 is a flowchart showing an example of operation in the first embodiment of the table creation device of the present invention;
FIG. 5 is an explanatory diagram of a second example of the table.
FIG. 6 is an explanatory diagram showing an example of a user interface provided by a table input template generation unit in the first embodiment of the table creation device of the present invention.
FIG. 7 is an explanatory diagram showing an example of a user interface provided by a table input template generation unit in the first embodiment of the table creation device of the present invention.
FIG. 8 is a conceptual diagram showing an example of a tree structure specified by a table input template generation unit in the first embodiment of the table creation device of the present invention.
FIG. 9 is an explanatory diagram illustrating an example of a table input template generated by a table input template generation unit according to the first embodiment of the table creation device of the present invention;
FIG. 10 is an explanatory diagram illustrating an example of a table input template generated by a table input template generation unit according to the first embodiment of the table creation device of the present invention.
FIG. 11 is an explanatory diagram illustrating an example of a partial table in which items and headings are input by a table item input unit in the first embodiment of the table creation device of the present invention;
FIG. 12 is an explanatory diagram showing an example of a partial table in which items and headings are input by a table item input unit in the first embodiment of the table creation device of the present invention;
FIG. 13 is an explanatory diagram of a third example of the table.
FIG. 14 is an explanatory diagram showing an example of a user interface provided by the table synthesis parameter holding unit in the first embodiment of the table creation device of the present invention.
FIG. 15 is an explanatory diagram showing an example of a structure of a synthesis table generated by a table synthesis unit in the first embodiment of the table creation device of the present invention.
FIG. 16 is an explanatory diagram showing an example of a synthesis table generated by the table synthesis unit in the first embodiment of the table creation device of the present invention;
FIG. 17 is an explanatory diagram of a fourth example of the table.
FIG. 18 is a block diagram showing a second embodiment of the table creation device of the present invention.
FIG. 19 is a flowchart showing an example of the operation in the second embodiment of the table creation device of the present invention;
FIG. 20 is an explanatory diagram showing an example of a user interface provided by a table input template generation unit in the second embodiment of the table creation device of the present invention;
FIG. 21 is an explanatory diagram showing an example of a user interface provided by a table input template generation unit in the second embodiment of the table creation device of the present invention;
FIG. 22 is a conceptual diagram showing an example of a tree structure designated by a table input template generation unit in the second embodiment of the table creation device of the present invention.
FIG. 23 is an explanatory diagram illustrating an example of a table input template generated by a table input template generation unit according to the second embodiment of the table creation device of the present invention;
FIG. 24 is an explanatory diagram illustrating an example of a table input template generated by a table input template generation unit according to the second embodiment of the table creation device of the present invention;
FIG. 25 is an explanatory diagram showing an example of a partial table in which items and headings are input by a table item input unit in the second embodiment of the table creation device of the present invention;
FIG. 26 is an explanatory diagram showing an example of a partial table in which items and headings are input by a table item input unit in the second embodiment of the table creation device of the present invention;
FIG. 27 is a conceptual diagram showing an example of designation of tree structure joins specified by a table synthesis parameter holding unit in the second embodiment of the table creation device of the present invention;
FIG. 28 is an explanatory diagram of a fifth example of the table.
FIG. 29 is a flowchart showing an example of operation in the third embodiment of the table creation device of the present invention;
FIG. 30 is an explanatory diagram showing an example of a user interface provided by a table input template generation unit in the third embodiment of the table creation device of the present invention;
FIG. 31 is an explanatory diagram showing an example of a user interface provided by a table input template generation unit in the third embodiment of the table creation device of the present invention;
FIG. 32 is an explanatory diagram showing an example of a user interface provided by a table input template generation unit in the third embodiment of the table creation device of the present invention;
FIG. 33 is an explanatory diagram showing an example of a table input template generated by a table input template generation unit in the third embodiment of the table creation device of the present invention;
FIG. 34 is an explanatory diagram showing an example of a table input template generated by a table input template generation unit in the third embodiment of the table creation device of the present invention;
FIG. 35 is an explanatory diagram illustrating an example of a table input template generated by a table input template generation unit according to the third embodiment of the table creation device of the present invention;
FIG. 36 is an explanatory diagram showing an example of a partial table in which items and headings are input by a table item input unit in the third embodiment of the table creation device of the present invention;
FIG. 37 is an explanatory diagram showing an example of a partial table in which items and headings are input by a table item input unit in the third embodiment of the table creation device of the present invention;
FIG. 38 is an explanatory diagram showing an example of a partial table in which items and headings are input by a table item input unit in the third embodiment of the table creation device of the present invention;
FIG. 39 is an explanatory diagram showing an example of a user interface provided by the table synthesis parameter holding unit in the third embodiment of the table creation device of the present invention;
FIG. 40 is an explanatory diagram illustrating an example of a merging operation when sorting is performed by the table composition unit in the third embodiment of the table creation device of the present invention;
FIG. 41 is an explanatory diagram showing an example of the structure of a synthesis table sorted by level 1 by the table synthesis unit in the third embodiment of the table creation device of the present invention;
FIG. 42 is an explanatory diagram showing an example of the structure of a synthesis table sorted by the table synthesis unit up to level 2 in the third embodiment of the table creation device of the present invention.
FIG. 43 is an explanatory diagram showing an example of the structure of a synthesis table sorted by the table synthesis unit up to level 3 in the third embodiment of the table creation device of the present invention;
FIG. 44 is an explanatory diagram showing an example of a synthesis table generated by the table synthesis unit in the third embodiment of the table creation device of the present invention;
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Table input template production | generation part, 2 ... Table item input part, 3 ... Partial table holding part, 4 ... Table composition parameter holding part, 5 ... Table composition part.

Claims (6)

表を作成する表作成装置において、カラムおよびローの親子関係を示す木構造が指示され該木構造に従って表入力テンプレートを生成して画面に表示する表入力テンプレート生成手段と、該表入力テンプレート生成手段により生成された前記表入力テンプレートに対する項目の入力を受け付けるとともに項目が入力された前記表入力テンプレートから部分表を生成する表項目入力手段と、該表項目入力手段が生成した部分表を必要な数だけ保持する部分表保持手段と、複数の部分表におけるカラム及びローの木構造間に順序関係を定義し部分表を合成するためのパラメータを保持する表合成パラメータ保持手段と、個々の木構造を保存したまま前記表合成パラメータ保持手段に保持されている木構造間の順序関係を示す前記パラメータに従って前記部分表保持手段に保持された部分表を合成して一つの表を生成する表合成手段を有することを特徴とする表作成装置。In a table creation device for creating a table, a table input template generation unit that indicates a tree structure indicating a parent-child relationship between columns and rows, generates a table input template according to the tree structure, and displays the table input template on the screen, and the table input template generation unit The table item input means for receiving the input of the item for the table input template generated by the above and generating the partial table from the table input template in which the item is input, and the required number of the partial tables generated by the table item input means A partial table holding means for holding only a table, a table synthesis parameter holding means for holding parameters for synthesizing a partial table by defining an order relationship between column and row tree structures in a plurality of partial tables, and an individual tree structure. In accordance with the parameters indicating the order relationship between the tree structures held in the table synthesis parameter holding means while being stored Table creation apparatus characterized by having a table synthesizing means for generating a single table by combining the partial table held in the partial table storage means. 表入力テンプレート生成手段は、ユーザからカラムにおける木構造の数と、カラムの木構造のレベル数と、各レベルにおける親カラムの子となるカラムの数と、ローにおける木構造の数と、ローの木構造のレベル数と、各レベルにおける親ローの子となるローの数の指定を受けて、前記指定を満たす木構造を有する表入力テンプレートを生成することを特徴とする請求項1に記載の表作成装置。The table input template generation means generates the number of tree structures in the column from the user, the number of levels in the tree structure of the column, the number of columns that are children of the parent column in each level, the number of tree structures in the row, The table input template having a tree structure that satisfies the specification is generated by receiving the specification of the number of levels of the tree structure and the number of rows that are children of the parent row in each level. Table creation device. 同一の部分表に含まれる木構造間の順序関係は、表合成パラメータ保持手段に保持される前記パラメータで示される木構造間の順序関係と同一であることを特徴とする請求項1または2に記載の表作成装置。The order relation between the tree structures included in the same partial table is the same as the order relation between the tree structures indicated by the parameters held in the table synthesis parameter holding means. The table creation device described. 前記表合成パラメータ保持手段に保持される前記パラメータは、第1の部分表の部分木構造もしくは木構造と、第2の部分表の木構造の特定のノードとを対応付けるものであり、前記表合成手段は、前記表合成パラメータ保持手段にて対応付けられた第1の部分表の部分木構造もしくは木構造を第2の部分表の木構造の特定のノードの下位構造として接合することを特徴とする請求項1または2に記載の表作成装置。The parameter held in the table synthesis parameter holding means associates the partial tree structure or tree structure of the first partial table with a specific node of the tree structure of the second partial table, and the table synthesis Means for joining the partial tree structure or tree structure of the first partial table associated by the table synthesis parameter holding means as a sub-structure of a specific node of the tree structure of the second partial table, The table creation device according to claim 1 or 2. 前記表項目入力手段は、カラム及びローに見出しを対応付けることが可能であり、前記表合成手段は、該見出しによってソートすることにより部分表のカラム及びローの木構造を接合することを特徴とする請求項1または2に記載の表作成装置。The table item input means can associate headings with columns and rows, and the table composition means joins the tree structure of the columns and rows of the partial table by sorting by the headings. The table creation device according to claim 1 or 2. 表を作成する表作成方法において、カラムおよびローの親子関係を示す木構造が指示され該木構造に従って表入力テンプレートを表入力テンプレート生成手段が生成して画面に表示し、表項目入力手段は前記表入力テンプレート生成手段で生成された前記表入力テンプレートに対する項目の入力を受け付けるとともに項目が入力された前記表入力テンプレートから部分表を生成し、生成した部分表を必要な数だけ部分表保持手段が保持し、また複数の部分表におけるカラム及びローの木構造間に順序関係を定義し部分表を合成するためのパラメータを表合成パラメータ保持手段が保持し、個々の木構造を保存したまま前記表合成パラメータ保持手段に保持されている木構造間の順序関係を示す前記パラメータに従って前記部分表保持手段に保持された部分表を表合成手段が合成して一つの表を生成することを特徴とする表作成方法。In the table creation method for creating a table, a tree structure indicating a parent-child relationship between columns and rows is designated, and a table input template is generated by the table input template generation means according to the tree structure and displayed on the screen. The table input template generation means accepts input of items for the table input template and generates a partial table from the table input template in which items are input, and the required number of generated partial tables includes a partial table holding means. The table synthesis parameter holding means holds the parameters for synthesizing the partial table by defining the order relation between the column and row tree structures in the plurality of partial tables, and storing the table while keeping the individual tree structures. According to the parameters indicating the order relationship between the tree structures held in the synthesis parameter holding means, the partial table holding means holds Table creation method characterized by been a partial table table synthesizing means for generating a single table were synthesized.
JP03620997A 1997-02-20 1997-02-20 Table creation device and table creation method Expired - Fee Related JP3613920B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03620997A JP3613920B2 (en) 1997-02-20 1997-02-20 Table creation device and table creation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03620997A JP3613920B2 (en) 1997-02-20 1997-02-20 Table creation device and table creation method

Publications (2)

Publication Number Publication Date
JPH10232900A JPH10232900A (en) 1998-09-02
JP3613920B2 true JP3613920B2 (en) 2005-01-26

Family

ID=12463371

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03620997A Expired - Fee Related JP3613920B2 (en) 1997-02-20 1997-02-20 Table creation device and table creation method

Country Status (1)

Country Link
JP (1) JP3613920B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4107668B2 (en) 2004-10-07 2008-06-25 インターナショナル・ビジネス・マシーンズ・コーポレーション Editing apparatus, editing method, and program

Also Published As

Publication number Publication date
JPH10232900A (en) 1998-09-02

Similar Documents

Publication Publication Date Title
US20210334250A1 (en) Construction of database schema models for database systems and rest api's
JP2525275B2 (en) Database operation method
US8429519B2 (en) Presentation generator
US7143339B2 (en) Method and apparatus for dynamically formatting and displaying tabular data in real time
US5434962A (en) Method and system for automatically generating logical structures of electronic documents
US20040117731A1 (en) Automated report building system
AU2005225020B2 (en) Complex data access
US20150161079A1 (en) File formats and methods for representing documents
US12073065B2 (en) Data preparation user interface with coordinated pivots
JP3114421B2 (en) Table making device
JPH06251007A (en) Table data input device
JPH07239850A (en) Structured document preparation supporting system
JP3613920B2 (en) Table creation device and table creation method
JP3531579B2 (en) Multimedia document generation apparatus and method, and recording medium storing program for causing computer to execute these
Larson Visual languages for database users
Shentu et al. Mechanism design of data management system for nuclear power
JPS6320529A (en) Knowledge acquiring system
JPH04278634A (en) Tree growth system and method
JP2004310249A (en) Retrieval method, retrieval device and program of xml data, and storage medium recording the program
JP4737659B2 (en) Table set database system and table set data creation device
CN117827983A (en) Method for extracting BIM model by adopting view based on object-relational database
JP2900504B2 (en) Information processing device
JP3707132B2 (en) Database management system
JPH08166950A (en) Document editing device
JP2003281195A (en) Hierarchical diagram creating method and cad system using the creating method

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041012

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041025

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees