JP3590974B2 - Network-type document processing apparatus and method using tree structure defined secondary - Google Patents

Network-type document processing apparatus and method using tree structure defined secondary Download PDF

Info

Publication number
JP3590974B2
JP3590974B2 JP07075193A JP7075193A JP3590974B2 JP 3590974 B2 JP3590974 B2 JP 3590974B2 JP 07075193 A JP07075193 A JP 07075193A JP 7075193 A JP7075193 A JP 7075193A JP 3590974 B2 JP3590974 B2 JP 3590974B2
Authority
JP
Japan
Prior art keywords
unit
tree
document
anchor
display
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
JP07075193A
Other languages
Japanese (ja)
Other versions
JPH06259312A (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 JP07075193A priority Critical patent/JP3590974B2/en
Publication of JPH06259312A publication Critical patent/JPH06259312A/en
Application granted granted Critical
Publication of JP3590974B2 publication Critical patent/JP3590974B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、二次的に定義される木構造を用いてネットワーク型文書の処理、出力を行なうネットワーク型文書処理装置および同装置による文書処理方法に関する。
【0002】
【従来の技術】
文書構造として、文書の論理単位を参照関係によって関連づけたネットワーク構造を扱う文書編集装置に関わる従来技術には、ハイパーテキストと呼ばれる技術がある。
ハイパーテキスト技術は、例えば、
文献「Jakob Nielsen, Hypertext & Hypermedia, HBJ出版局, 1991」
に示されている。
【0003】
(a) 参照履歴に関する従来技術
上記のような従来の技術において、ハイパーテキストを探索しているときに、(1) どのようにしてそのノードにたどりついたのか思い出せない。
(2) 少し前に見たノードにどのようにして戻れば良いのかわからない。
などの問題が生じることが指摘されてきた。これらの問題は迷子問題と総称されるものである。
これらの問題を解決するために参照履歴を保持し利用者に提示する装置が発明されるに至った。前記文献のp.27ならびにP129−130に、2つの従来技術が記載されている。これらを簡単に説明する。
【0004】
一つは参照したノードの名前を時間順にリストにして表示するものである。表示された名前をポインティングデバイスによって選択することにより、以前に参照したノードに戻ることができる。
【0005】
二つめは、それまでに参照して、表示したノードの表示画像を時間順に並べて縮小表示するものである。この例でも縮小表示をポインティングデバイスによって選択することで、以前に参照したノードに戻ることができる。
【0006】
このように、従来技術では履歴を時間順に並べて表示し、その表示から以前に参照したノードに戻る手段を提供することによって、上述の問題の解決を図っている。
ところが、なぜ以前に参照したノードに戻る必要があるのかを考察すると、従来技術は満足できる解決方法ではないことがわかる。すなわち、以前に参照したノードに戻る必要が生じるのは、それまでの探索の道筋の中で、選択しなかった別のノードの候補を調べ、場合によっては探索をやり直すためであることが多い。このような目的のために、以前に参照したノードに戻るのであれば、必要なのは、ノードにたどりつくまでの時間的な順序ではなく、どのような候補を選択してノードにたどりついたのかの、探索作業の経過である。
しかしながら、従来技術ではノードにたどりついた時間的な順序は示されるが、探索作業の経過は示されない。例えば、図4(a)〜10(a)に示す探索によって、同各図の(c)のような時間に沿った参照順序の表示が得られるが、探索作業の経過を表現するためには有用なリストではない。
【0007】
(b) 割り付け処理に関する従来技術
文書の論理単位を関連づけた文書構造を扱う文書処理装置においては、文書をハードコピーや画面上に表示するために、割り付け処理と呼ばれる処理が必要である。従来技術において、例えば図18に示される木構造型の構造に対して、割り付け処理を行なうことによって図19に示される割り付け結果を得ることができる。このような木構造型の論理構造は構造化文書と呼ばれる従来技術で扱われるものである。構造化文書においては、非常に高度な割り付け結果を得ることが可能である。
【0008】
例えば、特開平3−147059号公報では、構造化文書の国際規格であるODAにおける割り付け処理技術を開示している。この従来技術においては、文書全体の割り付け結果を制御するためにODAが定めている、共通割り付け構造と呼ばれる文書の割り付けテンプレートの記述に沿った処理を行なう。共通割り付け構造は、繰り返しや選択などを含む非常に高度なテンプレートの記述が可能である。
【0009】
さらに、文献「Makoto Murata and Koichi Hayashi, Formatter Hierarchy for Structured Documents, EP92, Cambridge University Press, 1992」(特願平3−200987号)に記載された従来技術は、部分割り付け処理と部分割り付けテンプレートを用いて、文書を割り付けるものである。この従来技術はそれ以前の技術で行なわれていた、一つの複雑なプログラムと複雑なテンプレートを用いて全体の文書を割り付けるのではなく、単純な小さなプログラムと単純で小さなテンプレートを階層的に組み合わせて割り付け処理を実現するものである。この手法でもODAの共通割り付け構造と同様の割り付け結果を得ることができる。
【0010】
図18の構造を持つ文書は、一例として図20のように表現することができる。この図において論理単位が矢印で示されるストリームとして表される。ストリームは文字などの基本単位の並びであり、基本単位には参照単位が含まれる。矩形に囲まれた名前は参照単位を示しており、ストリームの特定の位置から他の論理単位であるストリームを参照する。このようにして、木構造型の論理構造は、階層化したストリームとして表現される。
【0011】
部分割り付け手段はプログラムである。このプログラムを実行するものをフォーマッタと呼ぶ。フォーマッタは実行中のサブルーチン、または並列実行をするプロセス、またはオブジェクト指向言語におけるオブジェクト等の形態として実現される。
フォーマッタは一つのストリームを割り付ける役割を持つ。図21に示すフォーマッタ階層構造を形成することで、部分的な割り付け結果を交換しながら全体の論理構造を割り付けることができる。
【0012】
前記従来技術の割り付けアルゴリズムの概略を図42に示す。これは、後述するように本実施例における一部分として採用されているものである。図22、図23によってその割り付け処理の一過程を示す。フォーマッタはそれぞれ、部分割り付けテンプレートを参照し、そこに記述されている規則に従って割り付け処理を行なう。
この例では、例えば次の規則を持つテンプレートを参照している。
フォーマッタ1は、
(1)ラベルの文字列を大きなフォントで中央揃えで流し込む。
(2)残った領域から上下左右のマージンを減じた領域を、ストリーム中の基本要素あるいは下位フォーマッタの割り付け結果を流し込む領域として確保する。
フォーマッタ2ならびに3は、
(1)ラベルの文字列を小さなフォントで左揃えで流し込む。
(2)残った領域から上下左右のマージンを減じた領域を、ストリーム中の基本要素あるいは下位フォーマッタの割り付け結果を流し込む領域として確保する。
【0013】
ところで、計算機上で扱える文書の構造は木構造に限られるものではない。もっと一般的なネットワーク構造の論理構造を扱うことができる。ネットワーク構造は木構造と比較して、より自由な表現ができるが、扱いはより困難になる。
図24にネットワーク構造の簡単な例を示す。この構造はループを形成しているので木構造ではない。この構造はディスプレイ上で図25のように表示して、参照、編集を行なうことができる。しかしながら、従来の高度な割り付け処理は木構造を対象にしているため、このままで割り付け処理を適用することはできない。
【0014】
そこで、文書構造を探索において、ループを検出したときにそれ以上の探索をやめることによって、ネットワーク構造中の部分木構造を抽出し、その構造に対して割り付け処理する手法が案出されるに至った。この手法は、例えば、特開昭63−165968号公報、特開平4−171575号公報に開示されている。この手法によって図24のネットワーク構造から得られる部分木構造は、例えば図26に示すものとなる。この例は、深さ優先の探索手順で、既に探索されたかどうかでループを検出した結果である。探索手順とループの検出手法にはいくつかの種類があり、それらの変更によって、異なる部分木構造が得られる。いずれにしても、従来技術の手法では、探索を開始するノードを選択すれば、決められたメカニズムに従って一つの部分木構造が抽出される。
【0015】
しかしながら、本来複数の木構造が抽出される可能性がある構造から、計算機が勝手にひとつの木構造を選択するために、必ずしも利用者が望む部分木構造が割り付けられるわけではなかった。
また、従来の構造化文書において実現されている割り付けテンプレートを用いた高度な割り付け処理の適用ができない。前もってどのような木構造が抽出されるかがわからないために、利用者が適切な割り付けテンプレートを定義しておくことができないからである。
【0016】
(c) 構造の表示に関する従来技術
文書の論理単位を相互に関連付けた文書構造を扱う装置では、文書構造および論理単位を表示・編集する手段が設けられている。非常に単純な場合を除き、一度に文書構造の持つすべての情報を表示・編集することはできない。そのため、ある着眼点で情報を整理して表示・編集する手段や、部分構造を表示・編集する手段が用いられる。
【0017】
前者の手段には、例えば、ブラウザと呼ばれる装置があり、論理単位の参照関係を整理して表示する(例えば、特開平4−40559号公報)。この装置を用いることにより、文書構造の全体像を理解しやすくなる。しかし、この装置においては、内容中のどの位置から参照が行われているかは表示できない。また、この装置でネットワーク構造を表示することは困難である。
【0018】
後者の手段には、例えば、カード型のインタフェースを用いた装置がある。この装置では一つのウィンドウが一つの論理単位に対応し、内容と内容中に埋めこまれた参照単位を表示する。この装置では内容と参照単位の関係は明確に表せる。この装置にはネットワーク構造の表示が可能であるという長所もある。例えば、図49(a)のようなネットワーク構造を図49(b)(c)(d)のように、カード型のインタフェイスを用いて自由に探索することができる。しかし、この方式では、一つのウィンドウに表示できる論理単位は一つだけで、参照関係は深さ1しか表現できない。このため、利用者が複雑なネットワーク構造の全体像を理解することは困難である。
【0019】
このことから、内容と関連づけたまま、任意の深さで構造を表示できる手段が必要とされてきた。この一つとして、アウトラインエディタと呼ばれる装置が発明されている(特開平3−148754号公報)。例えば、図50(a)のような構造を図51に示すように、内容と関連づけたまま、任意の深さで構造を表示できる。(a)(b)(c)(d)においてそれぞれ、参照単位を示すアイコンをポインティング・デバイスで選択し、図50(b)に示すようなメニューから「開く」「閉じる」を指示することで、任意の部分木構造を表示できる。さらに、「すべてを開く」を指示して、下位構造のすべてを表示することが簡便に行うことができる。論理単位の表示を行う矩形領域をそれぞれウィンドウであると考えると、アウトラインエディタではウィンドウの階層構造によって文書の部分構造を表示しているのである。
しかしながら、アウトラインエディタは文書の構造を木構造に限定しているため、そのままネットワーク構造に適用することはてをきない。例えば、ループがある場合に「すべてを開く」操作を実行できない。
【0020】
【発明が解決しようとする課題】
従来、ネットワーク構造から二次的に単純な構造を生成し、ネットワーク構造の扱いを簡単にすることが行なわれていた。構造そのもの、あるいは、構造の生成方法、あるいは構造の管理方法が単純すぎたので、必要な情報の表現や、割り付け処理や、ウィンドウの適切な階層表示などが困難であった。
本発明はこの問題を解決するために、二次的な構造として木構造を適切に生成し、管理するネットワーク型文書処理装置を提供することを目的とする。
【0021】
また、本発明は二次的な木構造を利用者に判り易く表示し、利用者によるネットワーク型文書の操作を簡便にすることができるネットワーク型文書処理装置を提供することを目的とする。
【0022】
前述の参照履歴に関する従来技術の前記問題の解決には、どのような候補を選択してノードにたどりついたのかの、探索作業の経過を明らかにすることが重要である。しかしながら、従来技術ではノードにたどりついた時間的な順序は示されるが、探索作業の経過は示されない。
本発明はかかる問題点を解決し、探索作業の経過を表現することのできる文書処理装置を得ることを目的とする。これは、本発明によれば、参照の履歴を、深さ方向で参照順序を示し、幅方向でノード候補を示すような木構造として管理し、利用者に提示することによって達成される。
【0023】
従来のネットワーク構造に対する割り付け処理技術においては、前述のように、本来複数の木構造が抽出される可能性がある構造から、計算機が勝手にひとつの木構造を選択するために、必ずしも利用者が望む部分木構造が割り付けられるわけではなく、また、従来の構造化文書において実現されている割り付けテンプレートを用いた高度な割り付け処理の適用ができなかった。
本発明はかかる問題点を解決し、ネットワーク構造の必要な部分を選択して割り付け処理することのできる文書処理装置を得ることを目的とする。これは、本発明によれば利用者からの指示によってネットワーク構造の構成要素から、木構造を生成する手段を設け、生成された木構造に対して割り付け処理を適用することによって、達成される。
【0024】
ウィンドウの階層構造はデータの部分的な構造を反映し、かつ、その構造を用いて操作を可能にする二次的な構造の一つである。しかしながら、従来のウィンドウの階層構造を生成する手法は、木構造の表示を行うためのものであって、ネットワーク構造にとって適切なものではなかった。
本発明は、ネットワーク構造中の任意の部分木構造を表示するウィンドウ階層の生成・管理を行うことのできるネットワーク型文書処理装置を得ることを目的とする。
【0025】
また、本発明は、複数の二次的木構造を明確に関連づけ、すべての構造を一元的に表現し、同時に表示することのできるネットワーク型文書処理装置を得ることを目的とする。
【0026】
【課題を解決するための手段および作用】
本発明のネットワーク型文書処理装置は、ネットワーク構造から二次的な構造として木構造を定義し、その木構造を用いて処理を行なう。従来、ネットワーク構造から二次的に単純な構造を生成し、ネットワーク構造の扱いを簡単にすることは行なわれていたが、構造そのもの、あるいはその生成方法、あるいはその管理方法が単純すぎたために、必要な情報の表現や、割り付け処理や、ウィンドウの適切な階層表示などが困難であった。本発明によりこれらの問題点を解決できる。
【0027】
本発明(請求項1)のネットワーク型文書処理装置は、文書構造を管理する文書管理手段(図1の11、図2の22)と論理単位の参照を行なう論理単位参照手段(図1の12、図2の24)と、論理単位の参照の履歴を、参照された論理単位と、その参照時に他の候補となっていた参照単位を関連づけた木構造として管理する履歴木構造管理手段(図1の13、図2の25)を備えている。文書構造は所定の構成単位を関係付けて構成されている。文書構造の構成単位は文書の論理的なまとまりである論理単位であり、構成単位の関係付けは論理単位間の参照関係を規定する参照単位によって行なわれる。論理単位参照手段は、利用者の指示に従って論理単位中の参照単位を特定し、その参照する論理単位を選択する論理単位選択手段(図2の241)と、選択された論理単位を表示する論理単位表示手段(図2の242)とからなっている。
なお、本明細書において、参照単位とは、論理単位から他の論理単位を参照するための指標となる論理単位の要素であり、論理単位は、例えば文書における章、段落など文書中の論理的なまとまりを表すものである。
【0029】
従来の履歴のリストも二次的な構造の一つであるが、構造が単純すぎるために履歴の管理に必要な情報のすべてを表現することができなかった。本発明では履歴を木構造で表現することによって、作業の経過の履歴を表現することを可能にしたものである。
【0034】
本発明(請求項2)のネットワーク型文書処理装置は、所定の構成単位を関係づけて構成した文書構造を処理する装置において、構成単位が文書の論理的なまとまりである論理単位であって、論理単位間の参照関係を規定する参照単位によって論理単位を関連づけた文書構造を管理する文書管理手段(図60の601、図61の612)と、文書構造から二次的に定義された木構造を管理する二次的木構造管理手段(図60の603、図61の615)と、二次的木構造を文書構造あるいは、他の二次的木構造と関連づけて表示する二次的木構造表示手段(図60の602、図61の616)とを具備する。本発明によれば、二次的木構造を文書構造や他の二次的木構造と関連づけて管理・表示するので、各木構造の状態を一元的に把握することが可能である。
【0035】
本発明(請求項3)のネットワーク型文書処理装置は、前記発明(請求項2)において、複数の二次的木構造に係わる状態の組合せを、論理単位あるいは参照関係の表示規則に対応づけ、二次的木構造表示手段が、文書構造の表示において、表示規則を適用することによって、複数の二次的木構造と文書構造を関連づけて表示する。なお、二次的木構造としては、割り付け対象木構造(フォーマッタ木)、表示対象木構造(ウィンドウ木)、あるいは履歴木構造(ヒストリ木)、あるいはそれらの任意の組合せがある(請求項4)。
【0036】
【実施例】
(第1の実施例)
第1の実施例によるネットワーク型文書処理装置の構成を図2に示す。
本実施例は、ネットワーク型文書において、利用者がネットワーク構造に沿って作業を進めて行くときに、ノードの参照の経過(履歴)を表す木構造を対話的に作成、表示するものである。その履歴を表す木構造をヒストリ木と呼ぶ。ヒストリ木はヒストリノードによって構成される。ネットワーク型文書のデータ構造から二次的な木構造を生成するために、本実施例では、構成単位が文書の論理的なまとまりである論理単位であって論理単位間の参照関係を規定する参照単位によって論理単位を関連づけた文書構造を用いる。その論理単位をフィールド、参照単位をアンカーと呼ぶ。さらに、論理単位を構成する文字などの基本単位をプリミティブと呼ぶ。プリミティブにはアンカーも含まれる。なお、このフィールドとアンカーによるデータ表現は本発明において本質的なものではない。ノードとリンクによるデータ表現でも構わない。
【0037】
本実施例のネットワーク型文書編集装置は、図2に示すように文書構造を格納するハードディスクなどの文書格納部21と、文書構造の管理を行う文書管理部22と、装置外からの入力を扱うキーボードとマウスなど入力部23と、装置外から入力された情報を元に、表示するべきフィールドを選択するフィールド参照部24と、フィールド参照の履歴をヒストリ木として表現するため、参照に従って履歴ノードと候補ノードによる木構造を生成するなどの管理をするヒストリ木管理部25と、ヒストリ木構造を表示したウィンドウを生成するヒストリ木表示生成部26と、表示を行うディスプレイ装置など表示部27とを備えている。
【0038】
さらに、文書管理部22は、アンカーを管理するアンカー管理部221と、フィールドを管理するフィールド管理部222からなる。
【0039】
アンカー管理部221は、アンカーの情報を文書格納部21に格納したり、取り出したり、更新するなどの管理を行なう。アンカーは図14(b)に示すにようなデータ構造を有しており、アンカーを識別するためのアンカー識別子144、アンカーを表示する時のラベル145、アンカーが参照するフィールドへのポインタ146からなっている。
フィールド管理部222は、フィールドの情報を文書格納部21に格納したり、取り出したり、更新するなどの管理を行なう。フィールドは図14(a)に示すようなデータ構造を有しており、フィールドを識別するためのフィールド識別子141、フィールドが規定する集合的関係の種類を表すフィールド・タイプ142、およびフィールドに含まれるプリミティブのリスト143からなっている。リスト中のプリミティブがアンカーであるときはアンカーへのポインタと内容データの基本要素のリストである。フィールドは例えばプリミティブの間の順序関係を保持することによって、文字列や章の並びを表現できる。このときには、フィールドタイプはストリームであり、従来技術で用いられるストリームと一致する。フィールドは順序のほかに、例えば二次元上の位置関係を保持できる。
【0040】
フィールド参照部24は、入力部23からの指示で、アンカーあるいはアンカーが参照しているフィールドを選択するアンカー・フィールド選択部241と、選択されたフィールドを表示したウィンドウを生成するフィールド表示生成部242からなる。
【0041】
図3は、本実施例の二次的に生成される木構造のデータ構造を示すもので、(a)はヒストリ・ノード、(b)はヒストリ・ノードとアンカーの参照関係を示している。
ヒストリ・ノードのデータ構造は図3(a)に示すように、ヒストリ・ノードを識別するためのヒストリ・ノード識別子31と、対応するアンカーへのポインタである対応アンカー32と、対応アンカーが参照するフィールド中のアンカーのうち、過去に参照したものに対応する、ヒストリノードへのポインタのリストである子ヒストリ・ノード33と、対応アンカーが参照するフィールド中のアンカーのうち、過去に参照しなかったものへのポインタのリストである候補アンカー34からなっている。
アンカーならびにフィールドのデータ構造は前述の図14(b)と同じである。
【0042】
本実施例は、図4(a)、図5(a)、図6(a)、図7(a)、図8(a)、図9(a)、および図10(a)[以下、図4(a)〜図10(a)と略記する]に例示されるカード型のインタフェイスによるネットワーク型の文書の探索作業における履歴の管理を行う点に特徴を持つ文書処理装置である。本実施例では、参照の履歴は木構造として表現され、図4(b)〜図10(b)のように表示される。
【0043】
図4(a)〜図10(a)では、ディスプレイ内に表示されているウィンドウで、データを探索する様子を示している。即ち、
▲1▼ 「発明の説明」という名前のノードのウィンドウを開き、「請求項」のアイコンを選択して(図4(a))、そのウィンドウを開く(図5(a))。
▲2▼ 「請求項2」のアイコンを選択して(図5(a))、そのウィンドウを開く(図6(a))。
▲3▼ 「請求項」「請求項2」のウィンドウを閉じ、「発明の説明」のウィンドウに戻る(図7(a))。
▲4▼ 「実施例」のアイコンを選択して(図7(a))、ウィンドウを開く(図8(a))。
▲5▼ 図15 「実施例2」のアイコンを選択して(図8(a))、ウィンドウを開く(図9(a))。
▲6▼ 「請求項2」のアイコンを選択して(図9(a))、ウィンドウを開く(図10(a))。
【0044】
図4(a)〜図10(a)の各操作に対応する履歴情報の表示例として、図4(c)〜図10(c)では、従来技術である参照履歴のリスト、図4(b)〜図10(b)は、本実施例におけるヒストリ木の表示例を示した。
図4(b)〜図10(b)の本実施例によるヒストリ木の表示例では参照されたフィールドに対応する矩形と参照関係を表す線分が太い線で描かれている。細い線で描かれるのは、参照が行われた時に提示されていた他の候補である。
これに対して、図4(c)〜図10(c)の従来技術では参照履歴のリストが示されるだけで、参照が行われた時に提示されていた他の候補については何も表されていない。
このように、本実施例では従来の表示では表現できなかった、作業の経過を理解することができる。なお、本実施例では実際に参照されたものをより上の位置に表示するようにしているが、フィールド内での順序で上下を決めてもよい。
【0045】
次に、本実施例の動作について図11〜図13に示すフローチャートにより説明する。
本実施例においては、フィールドを表示しているウィンドウ内で、アンカーを示すアイコンにマウスのカーソルを移動し、クリックすることによって対応するフィールドを参照する。たとえば、図4(a)においては、フィールドを表示しているウィンドウ41内でアンカーを示すアイコン「請求項」42をマウスでクリックすることによってそれに対応するフィールドを表示するウィンドウ51(図5(a))を開く。このようにして42のアンカーに対応して52、53、54のアンカーからなるフィールドが参照される。
【0046】
クリックしたところに対応するアンカーアイコンがないとき(例えば、図10(a))には「閉じる」のメニュー(図示されていない)が選択できる。
さらに、ウィンドウ外でクリックすると「終了」のメニューが選択できる。
カーソルが入っているウィンドウに表示されているフィールドをカレントフィールドとする。
なお、一番初めのアンカーの選択だけは、ウィンドウからはできない。プログラムの起動時に利用者が指定する。
【0047】
図11はフィールド参照部24の処理の内容を表すフィールド参照アルゴリズムのフローを示すものである。
【0048】
(開始)
(ステップS1110)
利用者は、入力部23によりカーソルを移動させて一つのアンカーアイコンを指示する。例えば、図4においてアンカーアイコン42をクリックする。そうすると、アンカー・フィールド選択部241は、そのクリック信号と位置情報を基に、文書管理部22におけるアンカー管理部221により管理されているアンカーの中から前記クリックされたアンカーを特定する。
【0049】
(ステップS1111)
フィールド表示生成部242は、その特定されたアンカーに対応するフィールドのデータをフィールド管理部222から得て、フィールドを表示するウィンドウを生成し、それを表示部27を介して表示する。
【0050】
(ステップS1112)
ヒストリ木生成アルゴリズム(A)(図12)を呼び出す。後述するように、ヒストリ木管理部25により参照したフィールドがヒストリ木の形で管理され、ヒストリ木表示アルゴリズム(図13)により表示される。
【0051】
(ステップS1113)
ステップS1111において生成された、フィールドを表示したウィンドウ内に、カーソルを移動する。
【0052】
(ステップS1114)
カーソル位置が、フィールドを表示したウィンドウ内にあるかそのウィンドウ外にあるかを調べる。
【0053】
[フィールドを表示したウィンドウ内にある場合]
フィールドを表示したウィンドウ内にカーソルがある場合は、マウスのクリック入力を待ち、以下のアンカー選択に関する処理を行なう。
(ステップS1115)
カーソルのあるウィンドウで表示されているフィールドをカレントフィールドとする。
【0054】
(ステップS1116)
マウスがクリックされたか否かを判定し、クリックされていなかったときはステップS1114へ、クリックされたときはステップS1117へ移る。
【0055】
(ステップS1117)
アンカー・フィールド選択部241は、クリックに対応するアンカーの選択処理を行なう。
(ステップS1118)
アンカーの選択に失敗したか否かを判定する。
【0056】
(ステップS1119)
アンカーの選択に失敗しなかったとき、即ち、前記クリックがアンカーアイコン上でなされたときには、そのアンカーに対応するフィールドがすでに表示されているか否かを判定する。
フィールドが表示されていなかったときは、その表示とヒストリ木への登録を行なうために、ステップS1111へ移行する。
【0057】
(ステップS1120)
フィールドが表示されていたときは、そのフィールドが表示されているウィンドウ内にカーソルを移動し、ステップS1114へ処理を移行する。
【0058】
(ステップS1130)
ステップS1118において、アンカーの選択に失敗したと判定されたとき、即ち、カーソルがアンカーアイコン以外の位置にあるときにクリックがなされたときは、そのクリックがメニューの「閉じる」を選択したものであるか否かを判定する。
その判定の結果、メニューの「閉じる」の選択でなかったときには、次にクリック入力を待機するためステップS1114へ移る。
【0059】
(ステップS1131)
その判定の結果「閉じる」が選択された場合にはウィンドウを閉じる処理を行なう。
【0060】
[フィールドを表示したウィンドウ外]
(ステップS1140、S1141)
ステップS1114の判定の結果フィールドを表示したウィンドウ外の位置にカーソルがある場合に、マウスのクリックを監視し、クリックがあったときにはそれがメニュー終了の選択であるか否かを判定し、終了の選択であればフィールド参照処理を終了する。それ以外の場合には、ステップS1114へ処理を移行する。
【0061】
図12はヒストリ木管理部25の処理の内容を表すヒストリ木アルゴリズムのフローを示すものである。新しいフィールドの表示がなされるとそれをヒストリ木に加える処理を行なう。
(Aの開始)
(ステップS120)
図11のステップS1111により表示されたフィールドに対応するアンカーにより、ヒストリ木を探索し、そのアンカーに対応するヒストリノードがあるか否かを調べる。ヒストリノードがあれば、フィールドはヒストリ木に既に加えらたものであるので、そのまま図11のもとの処理の流れに戻る。ヒストリノードがなければ、以下のヒストリノードの作成と表示の処理を行う。
【0062】
(ステップS121)
アンカーに対応するヒストリノードを新しく生成する。ヒストリノードは図3(a)に示すデータ構造を有する。一方、対象とするネットワーク型文書のデータ構造は本実施例ではフィールドが図14(a)に、アンカーが図14(b)に示すとおりである。新しく作成するヒストリノードの「対応アンカー」の欄32に、選択されたアンカーへのポインタを格納する。そのアンカーの参照フィールドによって指示されるネットワーク型文書のフィールド中にあるアンカーのリストをヒストリノードにおける候補アンカーのリスト34として格納する。
たとえば、図4(a)が表示されている状態は図3(b)のように表される。この状態でアンカーアイコン「請求項」42が選択され、図5(a)のように、その「請求項」の参照するフィールドを表示するウィンドウ51が新たに生成されたときには、ヒストリノードが作成され、図3(c)に示す状態となる。新しく作成するヒストリノードH002には、対応アンカー32の欄にアンカー「請求項」A002へのポインタを格納し、ウィンドウ51に前記新たに表示されたフィールドにある他のアンカー「請求項1」A005、「請求項2」A006、「請求項3」A007を候補アンカーリスト34に格納する。
【0063】
(ステップS122)
カレントフィールドに対応するヒストリノードを選択する。
【0064】
(ステップS123)
選択に失敗したか否かを判定し、選択に失敗した場合には図11の処理の流れに戻る。
【0065】
(ステップS124、S125)
選択したヒストリノードの候補アンカーから、対応するアンカーを削除する。子ヒストリノードリストに、新しく生成したヒストリノードを加える。これにより、たとえば、図3(b)のヒストリノードH001の候補アンカーから、アンカーA002が除かれ、新しく生成されたヒストリノードH002が子ヒストリノードに加えられる(図3(c))。
【0066】
(ステップS126)
ルートのヒストリノードにヒストリ木表示アルゴリズム(B)を適用するためヒストリ木表示生成部26へ処理を移す。
【0067】
図13はヒストリ木表示生成部26の処理の内容を表すヒストリ木表示アルゴリズムのフローを示すものである。新しくヒストリノードが生成された後に更新されたヒストリ木の表示処理を行う。
(Bの開始)
(ステップS131)
まず、ルートのヒストリノードを表示する。
【0068】
(ステップS132)
ヒストリノードの持つ子ヒストリノードのすべてに対して表示アルゴリズム(B)を適用する。再帰呼びだしによりすべてのヒストリノードを表示する。図7(b)〜図10(b)において、太線の部分がヒストリノードに対応する表示である。
【0069】
(ステップS133)
ヒストリノードの持つ候補アンカーを表示する。図7(b)〜図10(b)において、細線の部分が候補アンカーに対応する表示である。
この表示を行った後に、図11の処理の流れ(ステップ12)へ戻る。
【0070】
従来の履歴のリストも二次的な構造の一つであるが、構造が単純すぎるために履歴の管理に必要な情報のすべてを表現することができなかった。本実施例によれば、ネットワーク構造から二次的に生成した木構造で履歴を表現することによって、作業の経過の履歴を分かり易く表現することができる。
【0071】
(二次的に定義される割り付け対象木構造の説明)
二次的に定義される割り付け対象木構造によるネットワーク型文書処理装置の構成例を図16に示す。本装置は、ネットワーク型文書において、利用者からの指示によってネットワーク構造の構成要素から木構造を生成し、生成された木構造に対して割り付け処理を適用することによって、ネットワーク構造の必要な部分を選択して割り付け処理ができるようにしたものである。本装置では、フィールドとアンカーによるデータ表現を行う。このデータ表現は本発明において本質的なものではない。ノードとリンクによるデータ表現でも構わない。本実施例では前記従来技術で述べたフォーマッタの階層構造を用い部分割り付け処理を階層的に実行することで全体の割り付け処理を行う。フォッマッタは部分割り付け処理を行うプロセスのことである。本例ではフォーマッタの階層構造をフォーマッタ木と呼ぶ。
【0072】
二次的に定義された割り付け対象木構造によるネットワーク型文書処理装置は、図16に示すように文書構造を格納するハードディスクなどの文書格納部161と、文書構造の管理を行う文書管理部162と、装置外からの入力を扱う入力部163と、入力部163からの指示で、アンカーあるいはアンカーが参照しているフィールドを選択するアンカー・フィールド選択部164と、アンカー・フィールド選択手段で指示された、割り付け対象の木構造をフォーマッタ木として表現し、管理するフォッマッタ木管理部165と、フォーマッタ木を表示するウィンドウを生成するフォーマッタ木表示生成部166と、フォーマッタを実行し、割り付け結果を生成し、表示部168、または印刷部169に送るフォーマッタ実行制御部167と、表示を行うディスプレイ装置など表示部168と、割り付け結果をハードコピーに出力する印刷部169とからなっている。なお、文書格納部161、文書管理部162、入力部163、アンカー・フィールド選択部164、表示部168等は第1の実施例と共通するものである。
【0073】
図17は、本例のデータ構造を示すもので、(a)はフォーマッタ、(b)はアンカー、(c)はフォーマッタとアンカーの参照関係を示している。フォーマッタのデータ構造は図17(a)に示すように、割り付けノードを識別するためのフォーマッタ識別子171と、対応するアンカーへのポインタである対応アンカー172と、子フォーマッタへのポインタのリスト173からなっている。
【0074】
アンカーのデータ構造は図17(b)に示すように、アンカーを識別するためのアンカー識別子174、アンカーを表示する時のラベルであるアンカー・ラベル175、対応するフォーマッタへのポインタである対応フォーマッタ176、アンカーが参照するフィールドへのポインタである参照フィールド177からなっている。
【0075】
次に、以上のように構成された本装置の動作を説明する。図27の(a)〜(c)は、図28に示すネットワーク構造から木構造を指定する様子を示している。図27の(a)〜(c)のような木構造を表示するインタフェース上で、利用者がマウスによって割り付けの対象としたいアンカーアイコンを選択し、クリックすることにより、図29(a)に示すメニューが表示される。このメニュー表示において「フォーマッタ生成」を選択することによって対応するアンカーが参照しているフィールドを割り付けるためのフォーマッタが生成され、太線で囲まれたアイコンとして表示される。細い線で表示された矩形領域は対応するフォーマッタのない状態のアンカーであるが、フォーマッタを生成する選択の候補を示している。選択メニューの「フォーマッタ破棄」を選択すると、起動していたフォーマッタを破棄する。なお、利用者が、アンカーアイコンを選択せずに、クリックすると図29(b)に示す選択メニューが表示され、その選択メニューの「印刷」を選択することにより、フォーマッタ木を形成している各フォーマッタによって割り付け処理を行い出力する。
【0076】
図30に示す木構造の選択結果として生成されたフォーマッタ木は図31に示すようになる。このフォーマッタ木によって、全体の割り付け処理を行なった結果は図32のようになる。図33、図34では図30とは異なるフォーマッタ木の生成を行なった例を示すものである。
【0077】
割り付け処理される構造は、ネットワーク構造の部分構造に限るものではない。図35、図36、図37では、図30と図33の指定を同時に行なったときの様子を示す。この場合は重複している部分があるので、正確には部分構造ではない。
【0078】
次に、図41〜図43に示すフローチャートにより説明する。
図41はフォーマッタ木管理部165の処理内容を表すフォーマッタ木管理アルゴリズムのフローを示すものである。
処理対象のネットワーク型文書の構造が例えば図27のように表示されているとする。
【0079】
(開始)
(ステップS4110、S4111)
マウスのクリック入力を監視する。クリックがあれば、アンカー・フィールド選択部164はカーソル位置にあるアンカーを選択する処理を行う。例えば、利用者が、入力部163によりカーソルを移動させて割り付けの対象としたいアンカーアイコン272(図27(b))を選択し、クリックしたとすれば、アンカー・フィールド選択部164はカーソル位置のアンカーに関する情報をフォーマッタ木管理部165へ通知する。
【0080】
(ステップS4112)
アンカーの選択に失敗したか否か即ちカーソル位置にはアンカーアイコンがなかった否かにより、アンカーの選択が成功したときにはステップS4113へ、失敗したときにはステップS4114へ移る。
【0081】
(ステップS4113)
アンカーが選択された後、図29(a)に示すメニューが表示され、利用者は「フォーマッタ生成」または「フォーマッタ破棄」を選択する。「フォーマッタ起動生成」が選択されたときにはステップS4120へ、「フォーマッタ破棄」が選択されたときにはステップS90へ移る。
【0082】
[フォーマッタ起動]
(ステップS4120)
前記選択されたアンカーに対応するフォーマッタがあるか否かを調べ、すでにフォーマッタがあれば生成する必要がないので、次のアンカーの選択を待機するためステップS4110へ戻り、なければステップS4114へ進む。
【0083】
(ステップS4121)
アンカーに対応するフォーマッタを新たに生成する。フォーマッタは図17(a)に示すデータ構造を有する。一方、対象とするネットワーク型文書のデータ構造は本実施例ではフィールドが図14(a)に、アンカーが図17(b)に示すとおりである。新しく作成するフォーマッタの「対応アンカー」の欄172に、選択されたアンカーへのポインタを格納する。
【0084】
(ステップS4122)
上位アンカーに対応するフォーマッタの下位に新しく生成したフォーマッタを配置する。即ち、上位アンカーに対応するフォーマッタの子フォーマッタのリスト173に新しく生成したフォーマッタへのポインタを加える。
【0085】
(ステップS4123)
ルートフォーマッタに表示アルゴリズム(B)を適用して、再表示するために、フォーマッタ木表示生成部166に制御を移す。
【0086】
[フォーマッタ停止]
(ステップS4130、S4131、S4123)
図29(a)に示すメニューにおいて、「フォーマッタ破棄」が利用者により選択されたときには、前記アンカーに対応するフォーマッタがあるか否かを調べ、あれば対応するフォーマッタとその下位フォーマッタを全て削除する。そして、ステップS4123においてフォーマッタ木を再表示する。なければ、ステップS4110へ戻る。
【0087】
(ステップS4114、S4140、S4147)
ステップS4112の判定において、カーソル位置にはアンカーアイコンがなかった場合には、図29(b)のメニューを表示し、利用者の選択を待ち、メニューの「印刷」が選択されたときには、フォーマッタ実行制御部167によりフォーマッタ木による割り付け処理を行い、割り付け結果を印刷部169に渡し、印刷出力する。前記メニューで「終了」が選択されたときには処理を終了する。
【0088】
図42はフォーマッタ実行制御部167の処理における部分割り付け処理アルゴリズムを示すフローチャートである。このアルゴリズムをルートフォーマッタから実行することによって、全フォーマッタ木による割り付け処理が行われる。また、このアルゴリズムは前記従来の割り付け処理技術において用いられているものと同じである。本実施例では、論理単位がフィールド、参照単位がアンカー、基本単位がプリミティブにそれぞれ対応する。
(ステップS4200)
論理単位に含まれる全基本単位を割り付けたか否かを判定する。
【0089】
(ステップS4201)
全基本単位の割り付けが終了していない場合には、割り付けられていない最初の要素を取り出す。
【0090】
(ステップS4202)
基本単位は参照単位かを判定する。
【0091】
(ステップS4203)
基本単位が参照単位であるときは、参照単位が参照している論理単位について部分割り付け処理を実行し(再帰呼び出し)、割り付け結果を受けとる。
【0092】
(ステップS4204)
割り付け結果を矩形領域に流し込む。
【0093】
(ステップS4205)
基本単位が参照単位でないときは、基本単位は文字等であるので、それらを矩形領域に流し込む。
【0094】
(ステップS4206)
全部の基本単位の割り付けが終了したら、割り付けた結果を上位フォーマッタに渡す。
【0095】
図43はフォーマッタ木表示生成部166の処理内容を表すフォーマッタ木表示アルゴリズムのフローを示すものである。
【0096】
(ステップS4300)
フォーマッタが起動していることを示す図形内に、対応するアンカーのラベルを表示する。
【0097】
(ステップS4301、S4302)
参照しているフィールド内のアンカーをすべて表示したかを調べ、表示していないアンカーがあるときは、表示していない最初のアンカーを選択する。参照しているフィールド内のアンカーをすべて表示したときは図41のステップS4123へ戻る。
【0098】
(ステップS4303、S4304、S4305)
選択されたアンカーに対応するフォーマッタを起動しているかを調べ、起動していれば、対応するフォーマッタについて、表示アルゴリズムを適用(再帰呼び出し)し、起動していなければフォーマッタが起動していないことを示す図形内に、アンカーのラベルを表示する。
【0099】
本装置によれば、利用者からの指示によってネットワーク構造の構成要素から木構造を生成し、生成された木構造に対して割り付け処理を適用することによって、ネットワーク構造の必要な部分を選択して割り付け処理することができる。また、本実施例は二次的な構造としてフォーマッタの木構造を用いることによって、従来、利用者に制御できなかったネットワーク構造の割り付け処理の制御を可能にするものである。また、割り付け対象となる木構造を利用者が選択するので、適切な割り付けテンプレートも定義することができ、構造化文書における割り付け処理の適用も可能になる。
【0100】
なお、木構造は制限されたネットワーク構造である。したがって、この発明は木構造に対しても適用できる。図38では図18に示す木構造の論理構造の全体を表示する装置を示す。この表示装置の上で、利用者が矩形領域を定義することで、部分木構造を定義できる。この部分木構造に対応する、図40のフォーマッタの木とを用いることによって、図39の割り付け結果を得ることができる。
【0101】
割り付け結果はハードコピーのみならず、ディスプレイ上にも表示できるものである。従来、ハードコピーへの印刷と、ディスプレイ上の表示を一致させるWYSIWYG方式があったが、この機能は文書全体の出力に限られていた。部分的な割り付け結果を、ハードコピーへの印刷と、ディスプレイ上の表示を一致させることによって、印刷される文書の必要な一部分のみをディスプレイ上で確認することが可能になる。必要な一部分とは、例えば、変更を行なったときの、変更箇所の周辺部分などのことである。
【0102】
(二次的に定義される表示対象木構造の説明)
二次的に定義される表示対象木構造によるネットワーク型文書処理装置の構成を図45に示す。本実施例はネットワーク型文書において、任意の部分木構造をウィンドウの組合せによって、利用者に提示するとともに、その表示の状態を対話的に変更できる装置である。表示の状態は、ウィンドウ木としてデータ構造に関連づけて管理され、作業中断後に復元できるものである。 本実施例では、フィールドとアンカーによるデータ表現を行うが、このデータ表現は本発明において本質的なものではない。ノードとリンクによるデータ表現を採用してもよい。本実施例のネットワーク型文書編集装置は、図45に示すように文書構造を格納するハードディスクなどの文書格納部451と、文書構造の管理を行うアンカー管理部4521およびフィールド管理部4522からなる文書管理部452と、装置外からの入力を扱うキーボードとマウスなどの入力部453と、入力部453からの指示でアンカーあるいはアンカーが参照しているフィールドを選択するアンカー・フィールド選択部454と、ウィンドウの階層構造をウィンドウ木として管理をするウィンドウ木管理部455と、フィールドを表示するウィンドウを生成するウィンドウ表示生成部456と、表示を行うディスプレイ装置など表示部457とを備えている。なお、文書格納部451、文書管理部452、入力部453、アンカー・フィールド選択部454、および表示部457は図2あるいは図16の対応する部分と共通するものである。
【0103】
図46は、本例のデータ構造を示すもので、(a)はウィンドウ、(b)はアンカーのデータ構造を示している。なお、本実施例ではウィンドウ木のルートとなっているウィンドウをトップウィンドウ、それ以外のウィンドウをサブウィンドウと呼ぶことにする。ウィンドウのデータ構造は図46(a)に示すように、ウィンドウを識別するためのウィンドウ識別子461と、対応するアンカーへのポインタである対応アンカー462と、トップウィンドウであるかサブウィンドウであるかのウィンドウの状態を示す表示状態463、ウィンドウの表示される領域を表す表示領域464、および子ウィンドウへのポインタのリスト465からなっている。表示状態の「TOP」はトップウィンドウであることを示し、「SUB」はサブウィンドウであることを示す。
【0104】
アンカーのデータ構造は図46(b)に示すように、アンカーを識別するためのアンカー識別子466、アンカーを表示する時のラベルであるアンカー・ラベル467、アンカーが参照するフィールドの表示に関する情報である表示情報468、アンカーが参照するフィールドへのポインタである参照フィールド469からなっている。
表示情報の「TOP」はアンカーの参照するフィールドが、トップウィンドウ中で表示中であるかあるいは作業が中断する前には、トップウィンドウとして表示されていたことを示す。「SUB」はアンカーの参照するフィールドがサブウィンドウ中で表示されているかあるいは作業が中断する前には、サブウィンドウとして表示されていたことを示す。「OFF」はアンカーの参照するフィールドが表示されておらず、また、作業が中断する前も表示されていないことを示す。
【0105】
図47はウィンドウ木とアンカーの参照関係を示している。これは図53(a)の一部に対応する。「請求項1」のアンカーは表示されていないので表示状態はOFFになっている。図48は、図47に示されるウィンドウの表示領域の値と図63(a)の表示との関連を示している。
【0106】
本実施例は、ウィンドウの木構造を文書構造中のデータに反映させることによって、編集を再開するときに編集終了時のウィンドウ木が復元される機能を持つアウトラインエディタである。
図53(a)に示す表示が行われている時には、ウィンドウ木は図53(b)のようになる。この状態は図52に示すように、表示情報(TOP,SUB,OFF)としてデータ構造中に反映される。状態を記していないものはOFFであることを示している。
【0106】
マウスによってウィンドウ中のアンカーに対応するアイコンを選択し、クリックすることで図53(c)のメニューを開く。このメニューにおいて、「開く」を選択することで、サブウィンドウを開いてゆく。「閉じる」を選択することで、サブウィンドウを閉じてゆく。これらの操作によって、TOP,SUB,OFFの状態は変化する。なお、トップウィンドウを選択して「閉じる」を行うことですべてのウィンドウを閉じてプログラムを終了する。このときすべての表示状態はOFFになる。「中断」を選択すると、TOP,SUB,OFFの状態を変更することなく、プログラムを終了する。
【0107】
編集を再開した時にデータ構造中の表示情報を参照することで、編集中断時のウィンドウ木の状態を復元することが可能になる。
トップウィンドウまたはサブウィンドウを開く時に、下位に「SUB」の状態のアンカーがあれば、ひきつづきそのアンカーが参照するフィールドを表示するサブウィンドウを開く。
【0108】
本例では管理するウィンドウ木は一つである。また、各アンカーが一つの表示状態しかもたないので、同じアンカーあるいはフィールドを共有する状態を表現できない。複数のウィンドウ木やフィールドの共有の機能が必要ならば、図54(a)に示すように表示ごとに状態を保持すればよい。この場合には図53(a)に示す表示とともに図54(b)に示す表示が表現できる。
【0109】
なお、TOPの情報を書き出さなくても、部分的なウィンドウ階層の復元は可能である。図55(a)に示すようにSUBの情報のみが記述されている場合には、「発明の説明」をアクセスすると必ず、下位のウィンドウにSUBが記述されている「請求項」と「実施例」に対応するフィールドを表示したウィンドウ木が生成される。図55(a)の例では同図(b)の表示になる。
【0110】
また、このメカニズムはウィンドウの階層構造によって部分木構造を表示するものであれば、アウトラインエディタ以外にも適用できる。例えば図55(c)に示すようにウィンドウ中に自由に配置されたサブウィンドウによる表示も、実施例に示した構成に簡単な変形を加えることで実現できる。この場合に必要な変形は、表示情報にウィンドウの領域情報を加えることである。
【0111】
次に、図56〜図57に示すフローチャートにより説明する。
図56はウィンドウ木管理部455の処理内容を表すウィンドウ木管理アルゴリズムのフローを示すものである。
【0112】
(ステップS5611)
処理が開始すると、まず状態がTOPのアンカーを選択する。
【0113】
(ステップS5612)
トップウィンドウを生成する。
【0114】
(ステップS5613)
生成したトップウィンドウ中で、選択しているアンカーが参照しているフィールドに対して図57のフィールド表示アルゴリズム(A)を適用し、フィールドを表示する。
【0115】
(ステップS5614)
利用者がマウスのクリックによるウィンドウの選択をすると、図53(c)に示すメニューが表示される。
【0116】
(ステップS5615)
メニューにより選択された項目に応じて、選択されたメニュー項目が「開く」のときは、ステップS5630へ、「閉じる」のときはステップS5640へ、「中断」のときはステップS5650へ進みそれぞれの処理を行う。
【0117】
(ステップS5630)
メニューの「開く」が選択された場合は、アンカーが選択されているか否かを調べる。アンカーが選択されていなかったときにはステップS5615へ戻る。
【0118】
(ステップS5631)
アンカーが選択されていたときには、アンカーの状態(表示情報468)をSUBに設定する。
【0119】
(ステップS5632)
選択ウィンドウの中で、選択しているアンカーに対応するフィールドについてフィールド表示アルゴリズム(A)の処理を呼び出し、再表示する。そして、次の選択の処理をするためステップS5615へ戻る。
【0120】
(ステップS5640)
メニューの「閉じる」が選択された場合は、選択ウィンドウとその下位にある全ウィンドウに対応するアンカーの状態をOFFにする。
【0121】
(ステップS5641)
選択ウィンドウとその下位にある全サブウィンドウを破棄する。
【0122】
(ステップS5642)
トップウィンドウか否かを判定し、トップウィンドウであれば、全てのウィンドウがすでに破棄されているので、処理を終了する。
トップウィンドウでなければ、ステップS5632へ行き再表示をする。
【0123】
(ステップS5650)
選択されたメニューが「中断」であったときは、選択ウィンドウとその下位にある全サブウィンドウを破棄し、終了する。
【0124】
図57はフィールド表示生成部456の処理内容を表すフィールド表示アルゴリズム(A)のフローを示すものである。このアルゴリズムは、ウィンドウとフィールドが与えられると、ウィンドウ中にフィールドを表示する処理を行う。
(ステップS570)
与えられたフィールドのすべてのプリミティブを処理し終ったか否かを判定する、すべての処理が終了していれば、元のルーチンへ戻る。処理すべきプリミティブが残っていれば、以下のステップによりその処理を行う。
【0125】
(ステップと571)
処理が済んでいない最初のプリミティブを選択する。
【0126】
(ステップS572)
プリミティブはアンカーか否かを調べ、アンカーであればステップS573へ、アンカーでなければステップS578へ移る。
【0127】
(ステップS573)
アンカーの状態を図46(b)のアンカーのデータ構造における表示情報468により調べる。
【0128】
(ステップS574)
その表示情報の内容が「SUB」のときには、サブウィンドウを生成し、与えられたウィンドウ内に配置する。
【0129】
(ステップS575)
生成したサブウィンドウ内でアンカーが参照するフィールドに表示アルゴリズム(A)を適用表示する(再帰呼び出し)。
【0130】
(ステップS576)
ステップS573の判定でアンカーの表示情報468がOFFであったときには、アンカーに対応するアイコンを生成する。
【0131】
(ステップS577)
与えられたサブウィンドウ内にアイコンを配置する。
(ステップS578)
ステップS573の判定で、プリミティブがアンカーでなかったときには、プリミティブを与えられたサブウィンドウ内に配置する。
【0132】
本装置によれば、ウィンドウ木管理部455は、表示対象木構造を文書構造中のデータに反映させるように管理するので、編集を再開するときに編集終了時のウィンドウ木を復元することができる。
【0133】
(第2の実施例)
一般に、ネットワーク構造は、自由な表現ができるが、もっと単純な構造、例えば、木構造よりも非常に扱いが難しくなる。そこで、ネットワーク構造から、扱いが容易な二次的な構造を生成し、その構造を用いることでネットワーク構造の操作を容易にする手法が有効である。本発明は、履歴の木構造(ヒストリ木)、表示対象となる木構造(ウィンドウ木)、割り付け対象となる木構造(フォーマッタ木)、などの二次的な構造を利用する発明であり、それぞれの例について詳述した。なお、これらはいずれも木構造であることから、本明細書では二次的木構造と総称する。これらの二次的木構造は相互に関連しているが、それぞれ異なる構造である。
【0134】
例えば、図28に示される文書構造を以下の手順で参照すると、結果は図58(a)に示すようになる。
(1)「発明の説明」を表示するウィンドウを開く。
(2)「請求項」を表示するサブウィンドウを「発明の説明」のウィンドウ内に開く。
(3)「実施例」を表示するサブウィンドウを「発明の説明」のウィンドウ内に開く。
(4)「請求項1」を表示するサブウィンドウを「請求項」のサブウィンドウ内に開く。
(5)「請求項2」を表示するウィンドウを開く。
(6)「従来の技術」を表示するウィンドウを開く。
さらに、次の手順で図58(b)の結果が得られる。
(7)「実施例」のサブウィンドウを閉じる
【0135】
このときの、ヒストリ木、ウィンドウ木、フォーマッタ木をはそれぞれ図59(a)、(b)、(c)に示す。
ヒストリ木はネットワーク型文書のうち、利用者が参照した部分を表現するためのものである。ヒストリ木は利用者による参照の履歴を木構造で保持している。この木構造を図59(a)のように表示することによって、それまでに行ったネットワーク構造中での作業の経緯を利用者に示すことができる。
【0136】
ウィンドウ木はネットワーク型文書のうち表示の対象となる部分を指定するためのものである。ネットワーク型文書構造の一部が、ウィンドウ木で表現される合成ウィンドウとして利用者に提示される。利用者はこの合成ウィンドウを介して、ネットワーク構造の編集を行う。なお、ウィンドウ木を図59(b)のように表示することによって、重ねて配置されている場合でも、必要なウィンドウにアクセスできる。
【0137】
フォーマッタ木は、ネットワーク型文書構造のうち、割り付け対象となる部分を指定するためのものである。フォーマッタの階層を使って、割り付け対象の木構造を指定することによって、テンプレートを用いた高度な割り付け処理ができる。図59(c)に示すフォーマッタ木は上述の参照手順に無関係に指定されている。指定のためにはデータ構造とフォーマッタ木とを関連づけて表示する装置が必要である。
【0138】
これらの二次的木構造に対する機能を組み合せることによって、より高度な機能の実現が可能になる。例えば、以下のように複合させて用いることが考えられる。
(1)…ヒストリ木とウィンドウ木を組み合せて用いることによって、画面上に開かれている多数のウィンドウの中から、特定の作業に関連したものを選択的に削除する、などの操作を行う。ヒストリ木は作業の経過を示すことができるからである。
(2)…ウィンドウ木とフォーマッタ木を組み合せて用いることによって、画面上に開かれているウィンドウが表示している情報を、割り付け処理して、出力する。
(3)…ヒストリ木とフォーマッタ木を組み合せて用いることによって、利用者が参照した情報を割り付け処理して、出力する。
【0139】
第4の実施例は、上述のような第1ないし第3の実施例で示した各二次的木構造を複合した例である。上述のような複合機能を実現するためは、それぞれの技術を単純に組み合せただけでは、十分ではない。
第1ないし第3の実施例の技術を単純に組み合せるだけでは、図58に示したウィンドウに加えて、ウィンドウ木を表示するブラウザ、ヒストリ木を表示するブラウザ、フォーマッタ木を表示するブラウザ、が同一画面上に開くことになる。場合によっては、さらに、データ構造を表示するブラウザが開かれる。しかも、それぞれのブラウザに表示されている構造は、お互いに密接に関連している。例えば上述のステップのうち「開く」操作では、ウィンドウ木とヒストリ木の両方が更新される。一方、「閉じる」操作ではウィンドウ木のみが更新される。
【0139】
このように、それぞれの技術の単純な組み合せでは、
(1)構造間の関連が整理されていない。
(2)構造間の関連が利用者に提示できない。
(3)類似の構造を別々のウィンドウで表示する。
ために、利用者が複数の二次的木構造を関連づけて利用することは、非常に困難である。
【0140】
そこで第2の実施例では、複数の二次的木構造を明確に関連づけ、すべての構造を一元的に表現し、同時に表示する。複数の二次的木構造が、利用者には一つの構造として提示されるので、利用者の混乱を避けることができる。さらに、一元的な表現から各構造を抽出することによって、それぞれの構造を用いた機能、あるいは複合した機能を得ることが容易になる。また、複数の構造を同時に更新する手続きが容易になり、処理の効率化が図れる。
【0141】
第2の実施例では、フィールドとアンカーによるデータ表現を行う。このデータ表現は本発明において本質的なものではない。ノードとリンクによるデータ表現でも構わない。
【0142】
また、本実施例ではフォーマッタは割り付け処理を実行するプロセスとして実現する。この処理方式は本発明において本質的なものではない。割り付け対象となる部分を木構造のデータ構造で保持しておき、別の手段がそのデータ構造を参照しながら割り付け処理を行うことにしてもよい。この場合には、割り付け対象となる部分を示すデータ構造がフォーマッタ木に該当することになる。
【0143】
第2の実施例の構成を図61に示す。本実施例のネットワーク型文書編集装置は、図61に示すように文書構造を格納するハードディスクなどの文書格納部611と、アンカー管理部6121およびフィールド管理部6122からなる文書構造の管理を行う文書管理部612と、装置外からの入力を扱うキーボードとマウスなど入力部613と、入力部613からの指示でアンカーあるいはアンカーが参照しているフィールドを選択するアンカー・フィールド選択部614と、アンカー・フィールド選択手段で指示された割り付け対象の木構造をフォーマッタ木として管理するフォッマッタ木管理部615と、文書の一部もしくは全体を表示するウィンドウを生成する文書表示生成部616と、表示を行うディスプレイ装置など表示部167と、フォーマッタを実行し、割り付け結果を生成し、文書表示生成部616を介して表示部617、または印刷部619に送るフォーマッタ実行制御部618と、割り付け結果をハードコピーに出力する印刷部169とからなっている。なお、文書格納部611、文書管理部612、入力部613、アンカー・フィールド選択部614、表示部617等は図2、図16、図45の例と共通するものであり、フォーマッタ木管理部615、フォーマッタ実行制御部618および印刷部619は図16の例と共通するものである。
【0144】
文書表示生成部616は、さらに文書構造表示生成部6161とフィールド表示生成部6162からなる。
文書構造表示生成部6161は、文書の構造を表示するウィンドウを生成するもので、従来技術におけるブラウザに相当する。本実施例ではアンカーアイコンの表示によって、複数の二次的木構造が文書構造に関連づけて表示される。
フィールド表示生成部6162は、フィールドを表示するウィンドウを生成するものである。本実施例では、フォーマッタ管理部615で管理されているフォーマッタを用いて、ウィンドウの生成とフィールドの表示を行う。
【0145】
図62は、本実施例のデータ構造を示すもので、(a)はフォーマッタ、(b)はウィンドウ、(c)はアンカー、(d)はフィールドの構造である。
【0146】
フォーマッタのデータ構造は図62(a)に示すように、割り付けノードを識別するためのフォーマッタ識別子62a1と、対応するアンカーへのポインタである対応アンカー62a2と、対応するウィンドウへのポインタである対応ウィンドウ62a3、および子フォーマッタへのポインタのリスト62a4からなっている。
【0147】
ウィンドウのデータ構造は図62(b)に示すように、ウィンドウを識別するためのウィンドウ識別子62b1と、ウィンドウの表示される領域を表す表示領域62b2、上位ウィンドウへのポインタ62b3および子ウィンドウへのポインタのリスト62b4からなっている。
【0148】
アンカーのデータ構造は図62(c)に示すように、アンカーを識別するためのアンカー識別子62c1、アンカーを表示する時のラベルであるアンカー・ラベル62c2、およびアンカーが参照するフィールドへのポインタである参照フィールド62c3からなっている。
【0149】
フィールドのデータ構造は図62(d)に示すように、フィールドを識別するためにフィールド識別子62d1、フィールドが規定する集合的関係の種類を表すフィールド・タイプ62d2、対応するフォーマッタへのポインタである対応フォーマッタ62d3、およびフィールドに含まれるプリミティブのリスト62d4からなっている。
【0150】
図63はフォーマッタ、アンカー、フィールド、ウィンドウの参照関係を示すものである。
この参照関係は、図64、図65に示す状態の一部に対応するものである。図65において「発明の説明」アンカーが参照するフィールドを表示したウィンドウ651の中に、「請求項」アンカーが参照するフィールドを表示したウィンドウ652が開いていることを表現している。
【0151】
前述のように本実施例はヒストリ木、ウィンドウ木、フォーマッタ木、に対する操作を簡便にするために、全木構造を一元的に管理し、表示する装置である。図64に図58(b)で示した操作を行ったときの、本実施例による表示例を示す。この表示は文書構造の一部、ヒストリ木、ウィンドウ木、フォーマッタ木を同時に表示している。アンカーを示すアイコンの種類によって各二次的木構造が提示される。この表示の説明に先立ち、本実施例における木構造の一元管理手法を説明する。
【0152】
本実施例では、フォーマッタ木に新しい役割をつけ加えることによって、ウィンドウ木とヒストリ木に関連づけている。
第2の実施例においては、フォーマッタ木は出力対象となる部分木構造を特定し、これを割りつけて出力するためのものであった。フォーマッタ木の各フォーマッタの役割は出力のための部分割り付け処理を行うことである。本実施例では、フォーマッタの役割として、ウィンドウ内の表示のための割りつけ処理を追加する。すなわち、フォーマッタにウィンドウ表示用と出力用の二種類の割りつけアルゴリズムを持たせる。フォーマッタがウィンドウ表示の割り付け処理を行うので、ウィンドウ表示の際には必ず対応するフォーマッタが生成されていることになる。
【0153】
上述のように定義したフォーマッタを用いると、ウィンドウを開くとき、フォーマッタが生成され、ウィンドウ表示用の割り付け処理が実行されることになる。ウィンドウが階層的に構成される時には、フォーマッタも階層的に生成され、割り付け処理を実行することになる。このことから、ウィンドウ木はフォーマッタ木として表現できる。
【0154】
ウィンドウを閉じてもフォーマッタは消えないことにする。すなわち、対応するウィンドウ木がなくなってもフォーマッタ木は残る。このようにすることで、ウィンドウ表示の履歴、すなわち、参照の履歴であるヒストリ木は、フォーマッタ木として表現できる。
【0155】
上記のように相互に関連づけられたヒストリ木、ウィンドウ木、フォーマッタ木をさらにデータ構造と関連づけるために、アンカーに対応するウィンドウとフォーマッタの状態の組み合わせを整理する。本実施例では、各状態をアンカーアイコンに表示することによって、複数の二次的木構造を表示する。
【0156】
アンカーに対応するフォーマッタとウィンドウの状態の組合せで、図66に示すSLEEP,READY,SUB,TOPの状態が定義される。これにELSEWHEREの状態を加えたものをアンカー状態と呼ぶ。
(1)SLEEP状態はアンカーに対応するフォーマッタは存在しないことを示す。
(2)READY状態はアンカーに対応するフォーマッタは存在するが、アンカーが参照するフィールドがウィンドウに表示されていないことを示す。
(3)TOP状態はアンカーが参照するフィールドがトップのウィンドウ中に表示されていることを示す。
(4)SUB状態はアンカーが参照するフィールドがサブウィンドウ中に表示されていることを示す。
(5)ELSEWHERE: 状態はアンカーが参照しているフィールドに対応するフォーマッタが、他のアンカーから生成されている。
【0157】
本実施例では、アンカーアイコンの表示を変化させることによってアンカー状態を示す。図67はアンカー状態に対応するアンカーアイコンの一覧表を示すものである。
【0158】
本実施例では複数のアンカーが同じフィールドを参照することを許している。一方、フォーマッタはアンカーアイコンを選択して、ウィンドウを開くことで構築される。このことから、同一のフィールドに対応する複数のフォーマッタが定義される可能性がある。本実施例では簡単のためフィールドに対応するフォーマッタは一つであるという制限を設けた。このためELSEWHERE状態の表示が必要になった。なお、構成が多少複雑になるが、一つのフィールドに対して複数のフォーマッタを対応させることは難しいことではない。
【0159】
上述の5状態のアンカーから、図68に示すように、特定の状態のものを選択することによって、フォーマッタ木、履歴の木、ウィンドウ木が得られる。
【0160】
図64に前述の図58(b)で示した操作を行ったときの、本実施例による表示例を示す。
ウィンドウ木は、TOPとSUBのアンカーによる構造である。
フォーマッタ木は、さらに、READYのアンカーを加えた構造である。
ヒストリ木は、さらにSLEEPとELSEWHEREのアンカーを加えた構造である。これらのアンカーは参照の候補を示すことになる。
【0161】なお、図65に示すように、アンカーアイコンをフィールドを表示するウィンドウ中でも用いることで、表示されている各木構造との関連を明確にすることもできる。
【0162】
本実施例では複数の木構造を理解しやすい形で利用者に表示する装置である。この機能に加えて、図68の条件から必要な木構造を抽出し、抽出した木構造に対して、それぞれの特徴を用いた発明(第1〜第3の実施例)が併用される。
すなわち、
(1)文書構造への参照の履歴が木構造として保持され表示できる(第1の実施例)。
(2)ウィンドウ生成に用いられているフォーマッタ木に対して、割り付け処理を出力用のものに変更することによって、参照した部分の出力ができる(第2の実施例)。
(3)アンカー状態を保存することによって、編集を一時中断しても表示を復元できる(第3の実施例)。
【0163】
次に、本実施例における二次的木構造を表示する文書表示生成部616の動作について説明する。なお、他の部分の動作については、第1〜第3のいずれかの実施例においてすでに説明したとおりである。
【0164】
文書構造表示をするためにはアンカー状態に応じて処理を行なうので、そのための判別処理が必要である図69はアンカー状態判別アルゴリズムを示すものである。
【0165】
(ステップS690)
アンカーの情報をアンカー管理部612から取得し、カレントアンカーとする。
【0166】
(ステップS691)
カレントアンカーの参照するフィールドには対応するフォーマッタがあるかどうかを調べる。これはカレントアンカーの参照フィールド62c3(図62(c))に示されるフィールドの対応フォーマッタ62d3(図62(c))を調べることによって行われる。
フォーマッタがなければSLEEPであると判定する。
【0167】
(ステップS692)
ステップS691で得られたフォーマッタについて、対応するアンカー62a2(図62(a))がカレントアンカーに一致するか否かを調べる。カレントアンカーに一致しなければ、ELSEWHEREであると判定する。
【0168】
(ステップS693)
ステップS691で得られたフォーマッタについて、対応するウィンドウがあるか否かを対応ウィンドウ62a3(図62(a))により調べ、対応ウィンドウがなければ、READYであると判定する。
【0169】
(ステップS694)
ウィンドウはトップウィンドウか否かを上位ウィンドウ62b3(図62(b))により調べる。上位ウィンドウが指定されていればサブウィンドウ、指定されていなければトップウィンドウである。トップウィンドウでなければSUBであると判定し、トップウィンドウであればTOPであると判定する。
【0170】
図70は文書構造表示生成部6161の処理を示す構造表示アルゴリズムである。
【0171】
[開始]
(ステップS700)
ルートとなるアンカーに対して部分構造表示アルゴリズム(B)を適用する。[終了]
【0172】
図71は部分構造表示アルゴリズムである。
(ステップS711)
アンカー状態の判別を図69のアンカー状態判別アルゴリズム(A)により行ない、ELSEWHEREまたはSLEEPであるときはステップS712へ、READY、TOP、またはSUBであるときはステップS713へ処理を進める。
【0173】
(ステップS712)
上記判定の結果アンカー状態がELSEWHEREまたはSLEEPであるときは対応するアンカーアイコンを表示する。
【0174】
(ステップS713)
上記判定の結果アンカー状態がREADY、TOP、またはSUBであるときは対応するアイコンを表示する。
【0175】
(ステップS714)
アンカーが参照しているフィールドにアンカーがあるか否を調べ、あれば次のステップS715へ行き、なければ元のルーチンへ戻る。
【0176】
(ステップS715)
フィールド中のすべてのアンカーについて部分構造表示アルゴリズム(B)を適用(再帰呼び出し)する。
【0177】
(ステップS716)
フィールド表示生成部6162により、フィールドを表す図形を生成し、表示部617により表示する。
【0178】
本実施例によれば、複数の二次的木構造、即ちヒストリ木、ウィンドウ木、フォーマッタ木等を明確に関連付け、図64に示すように、すべての構造を一元的に表現し、同時に表示することができる。
【0179】
【発明の効果】
従来、ネットワーク構造から二次的に単純な二次的な構造を生成し、ネットワーク構造の扱いを簡単にすることは行なわれていたが、構造そのもの、あるいはその生成方法、あるいはその管理方法が単純すぎたのでために、必要な情報の表現や、割り付け処理や、ウィンドウの適切な階層表示などが困難であった。本発明によれ場、これらの問題点を解決できる。
【00180】
即ち、本発明によれば、ネットワーク構造から二次的な木構造を抽出し、その二次的な木構造を用いることによって、ネットワーク型文書の処理を簡便に行うことができ、また、定義された二次的木構造を利用者に表示することによって、利用者によるネットワーク型文書の操作を簡便にすることができる。
【0181】
また、本発明によれば、参照の履歴を、深さ方向に参照順序を、幅方向にノード候補を持つ木構造として管理し、利用者に提示するようにしたので、探索作業の経過を表現することのできる文書処理装置を得ることができる。
即ち、従来の履歴のリストも二次的な構造の一つであるが、構造が単純すぎるために履歴の管理に必要な情報のすべてを表現することができなかった。本発明によれば、ネットワーク構造から二次的に生成した木構造で履歴を表現することによって、作業の経過の履歴を分かり易く表現することができる。
【0182】
本発明によれば、利用者からの簡単な指示によってネットワーク構造の構成要素から、割り付け対象の木構造を生成する。割り付け対象の木構造は、二次的な木構造であるが、従来技術においてはその生成方法が単純すぎたため、利用者が必要な構造を得られなかった。従来技術においては利用者が選択したノードを起点として探索を開始しリーフあるいはループの検出によって停止することで割り付け対象の木構造を生成するが、利用者が必要とする割り付け対象を指定することができなかった。本発明によれば、利用者はこれまで計算機による勝手な解釈で抽出されてきた構造を提示することで、対話的に割り付けの対象の木構造を二次的な木構造として生成でき、それを利用した割り付け処理が容易となる。即ち、利用者からの指示によってネットワーク構造の構成要素から木構造を生成する手段を設け、生成された木構造に対して割り付け処理を適用することによって、ネットワーク構造の必要な部分を選択して割り付け処理することのできる文書処理装置を得ることができる。
【0183】
また、本発明によれば、ネットワーク構造中の任意の部分木構造を表示するウィンドウ階層の生成・管理を行うことができる。従って、従来木構造の編集にしか用いられなかったアウトラインエディタを、ネットワーク構造の編集に用いることが可能になる。
【0184】
また、本発明によれば、複数の二次的木構造を明確に関連づけ、すべての構造を一元的に表現し、同時に表示することのできるネットワーク型文書処理装置を得ることできる。これによって、上述の各二次的木構造による機能に加え、それらを組み合せてより一層の高度なネットワーク構造の操作を利用者に提供できる。
【図面の簡単な説明】
【図1】請求項1の発明に対応する構成を示す図
【図2】第1の実施例の構成を示すブロック図
【図3】第1の実施例の二次的に生成される木構造データのデータ構造を示すもので、(a)はヒストリ・ノード、(b)と(c)はヒストリ・ノードとアンカーの参照関係を示す図
【図4】カード型のインターフェイスによるネットワーク型の文書の探索機能における履歴の管理を説明するための図で、(a)はディスプレイ内に表示されているウィンドウの例で、図4(a)〜図10(a)によりデータを探索する一連の経過を示し、(b)は(a)のウィンドウに対応する本実施例によるヒストリ木の表示例を示し、(c)は従来例による履歴リストの表示例である。
【図5】図4と同じく(a)はディスプレイ内に表示されているウィンドウの例、(b)は(a)のウィンドウに対応する本実施例によるヒストリ木の表示例、(c)は従来例による履歴リストの表示例
【図6】図4と同じく(a)はディスプレイ内に表示されているウィンドウの例、(b)は(a)のウィンドウに対応する本実施例によるヒストリ木の表示例、(c)は従来例による履歴リストの表示例
【図7】図4と同じく(a)はディスプレイ内に表示されているウィンドウの例、(b)は(a)のウィンドウに対応する本実施例によるヒストリ木の表示例、(c)は従来例による履歴リストの表示例
【図8】図4と同じく(a)はディスプレイ内に表示されているウィンドウの例、(b)は(a)のウィンドウに対応する本実施例によるヒストリ木の表示例、(c)は従来例による履歴リストの表示例
【図9】図4と同じく(a)はディスプレイ内に表示されているウィンドウの例、(b)は(a)のウィンドウに対応する本実施例によるヒストリ木の表示例、(c)は従来例による履歴リストの表示例
【図10】図4と同じく(a)はディスプレイ内に表示されているウィンドウの例、(b)は(a)のウィンドウに対応する本実施例によるヒストリ木の表示例、(c)は従来例による履歴リストの表示例
【図11】フィールド参照部24の処理の内容を表すフィールド参照アルゴリズムのフロー図
【図12】ヒストリ木管理部25の処理の内容を表すヒストリ木アルゴリズムのフロー図
【図13】ヒストリ木表示生成部26の処理の内容を表すヒストリ木表示アルゴリズムのフロー図
【図14】第1の実施例に用いるネットワーク型文書のデータ構造の例を示す図で、(a)はフィールドのデータ構造、(b)はアンカーのデータ構造、(c)はフィールドとアンカーの参照関係を示す図
【図15】割り付け対象木構造を利用するネットワーク型文書処理装置の概略構成を示す図
【図16】割り付け対象木構造を利用するネットワーク型文書処理装置の構成を示すブロック図
【図17】a)はフォーマッタ、(b)はアンカー、(c)はフォーマッタとアンカーの参照関係を示す図
【図18】文書を表現する木構造の例を示す図
【図19】図18の木構造に対し従来技術により割り付け処理を行った結果を示す図
【図20】図18の構造を持つ文書の表現例を示す図
【図21】フォーマッタの階層構成を示す図
【図22】フォーマッタの階層構成を示し、図23と共に割り付け処理の過程を説明するための図
【図23】フォーマッタによって割り付けられる領域の階層構成を示し、図22と共に割り付け処理の過程を説明するための図
【図24】ネットワーク構造の簡単な例を示す図
【図25】図24のネットワーク構造の一部をディスプレイ上に表示した例を示す図
【図26】従来技術によって図24のネットワーク構造から得られる部分木構造の例を示す図
【図27】(a)〜(c)は、図28に示すネットワーク構造から木構造を指定する様子を示す
【図28】本実施例を説明するためのネットワーク構造の例を示す図
【図29】(a)および(b)は割り付け処理において用いる選択メニューの例を示す図
【図30】ディスプレイ上に表示された木構造の参照の例を示す図(太線部分が選択部分である)
【図31】図30に示す木構造の選択によって生成されたフォーマッタ木を示す図
【図32】図31のフォーマッタ木によって、全体の割り付け処理を行なった結果を示す図
【図33】木構造の他の参照例を示す図
【図34】図33の割り付け結果を示す図
【図35】図30と図33の指定を同時に行なった参照例を示す図
【図36】図35の割り付けを行った結果を示す図
【図37】図35に示す木構造の選択によって生成されたフォーマッタ木を示す図
【図38】図18に示す木構造の論理構造の全体を表示し、利用者が矩形領域を指定して部分木構造を定義する例を示す図
【図39】図38の選択された部分木構造を割り付けた結果を示す図
【図40】図38の選択された矩形領域の木構造から生成されたフォーマッタ木を示す図
【図41】フォーマッタ木管理部165の処理内容を表すフォーマッタ木管理アルゴリズムのフローを示す図
【図42】フォーマッタ実行制御部167の処理における部分割り付け処理アルゴリズムのフローを示す図
【図43】フォーマッタ木表示生成部166の処理内容を表すフォーマッタ木表示アルゴリズムのフローを示す図
【図44】表示対象木構造を利用するネットワーク型文書処理装置の概略構成を示す図
【図45】ウィンドウの組合せによる表示を行うネットワーク型文書処理装置の構成を示す図
【図46】a)はウィンドウ、(b)はアンカーのデータ構造
【図47】ウィンドウ木とアンカーの参照関係を示す図
【図48】ウィンドウの表示領域の例を示す図
【図49】従来のウィンドウを説明するための図で、(a)はネットワーク構造例、(b)〜(c)はカード型のウィンドウを示す
【図50】従来の階層型ウィンドウの説明をするための図で、(a)はネットワーク構造の例、(b)はノードを選択するためのメニュー
【図51】図50(a)のネットワーク構造の文書のウィンドウを階層的に表示して行く様子を示す図
【図52】表示情報(TOP、SUB、OFF)を含むネットワーク構造を示す図
【図53】(a)は図52の表示情報とその構造から得られるウィンドウを示し、(b)はそれに対応するウィンドウ木を示し、(c)はメニューを示す図
【図54】複数のウィンドウ木やフィールドの共有がある場合であって、(a)は表示ごとに状態を保持していることを示し、(b)はそのウィンドウ表示例を示す図。
【図55】(a)はSUBの情報のみが記述されたネットワーク構造、(b)はそのウィンドウ表示、(c)は領域の情報をも加えることにより表示領域が指定されたウィンドウ表示の例を示す図
【図56】ウィンドウ木管理部455の処理内容を表すウィンドウ木管理アルゴリズムのフローを示す図
【図57】フィールド表示生成部456の処理内容を表すフィールド表示アルゴリズム(A)のフローを示す図
【図58】(a)(b)は図28に示される文書構造をある手順で参照たときの結果の例を示す図
【図59】図58(a)の表示が得られているときの、各木構造を示す図で、(a)はヒストリ木、(b)はウィンドウ木、(c)はフォーマッタ木を示す図
【図60】請求項の発明に対応する構成を示す図
【図61】第の実施例の構成を示すブロック図
【図62】第実施例のデータ構造を示すもので、(a)はフォーマッタ、(b)はウィンドウ、(c)はアンカー、(d)はフィールドの構造を示す図
【図63】フォーマッタ、アンカー、ウィンドウの参照関係を示す図
【図64】図58(b)で示した操作を行ったときの、第4の実施例による表示例を示す図
【図65】アンカーアイコンをフィールドを表示するウィンドウ中にも用いることで、構造の表示との関連を明確にした表示例を示す図
【図66】フォーマッタとウィンドウの状態の組合せによるアンカー状態の定義を示す図
【図67】アンカー状態に対するアンカーアイコンを示す図
【図68】アンカー状態と、その選択によって抽出表示される各木構造との関係を定義する図
【図69】アンカー状態の判別を行う処理のフローを示す図
【図70】文書構造表示生成部6161における構造表示処理のフロー示す図
【図71】文書構造表示生成部6161における部分構造表示処理のフローを示す図
【符号の説明】
11,151,441,601…文書管理手段、12…論理単位参照手段、13…履歴木構造管理手段、151…木構造割り付け手段、153…割り付け対象木構造管理手段、442…表示対象木構造管理手段、602…二次的木構造表示手段、603…二次的木構造管理手段、
21,161,611…文書格納部、22,162,612…文書管理部、221,1621,4521,6121,…アンカー管理部、222,1322,4522,6122…フィールド管理部、23,163,454,613…入力部、24…フィールド参照部、241,164,454,614…アンカー・フィールド選択部、242…フィールド表示生成部、25…ヒストリ木管理部、26…ヒストリ木表示生成部、27,168,457,617…表示部、165,615…フォーマッタ木管理部、166…フォーマッタ木表示生成部、455…ウィンドウ木管理部、616…文書表示生成部、6161…文書構造表示生成部、456,6162…フィールド表示生成部、167,618…フォーマッタ実行制御部、169,619…印刷部。
[0001]
[Industrial applications]
The present invention relates to a network-type document processing apparatus for processing and outputting a network-type document by using a tree structure defined secondarily. And document processing method using the same About.
[0002]
[Prior art]
2. Description of the Related Art As a document structure, there is a technology called hypertext as a conventional technology relating to a document editing apparatus that handles a network structure in which logical units of a document are related by a reference relationship.
Hypertext technology, for example,
Reference "Jakob Nielsen, Hypertext & Hypermedia, HBJ Publishing Bureau, 1991"
Is shown in
[0003]
(A) Conventional technology related to reference history
In the conventional techniques as described above, when searching for a hypertext, (1) it is not possible to remember how to reach the node.
(2) I do not know how to return to the node I saw a while ago.
It has been pointed out that such problems may occur. These problems are collectively called the lost child problem.
In order to solve these problems, a device for retaining a reference history and presenting it to a user has been invented. P. 27 and P129-130 describe two prior arts. These will be described briefly.
[0004]
One is to list the names of referenced nodes in chronological order and display them. By selecting the displayed name with the pointing device, one can return to the previously referenced node.
[0005]
The second method is to reduce the size of the displayed images of the displayed nodes by arranging them in chronological order with reference to them. Also in this example, by selecting the reduced display with the pointing device, it is possible to return to the previously referred node.
[0006]
As described above, in the related art, the above-described problem is solved by displaying the histories in chronological order and providing a means for returning to the previously referred node from the display.
However, considering why it is necessary to return to the previously referenced node, it can be seen that the prior art is not a satisfactory solution. In other words, it is often necessary to return to the previously referenced node in order to search for another node that has not been selected in the search path up to that point and to repeat the search in some cases. If you want to return to a previously referenced node for this purpose, what you need is not a chronological order to reach the node, but a search of what candidates have been selected and reached the node. This is the progress of work.
However, in the prior art, the time sequence of arriving at the node is indicated, but the progress of the search operation is not indicated. For example, the search shown in FIGS. 4 (a) to 10 (a) can provide a display of the reference order along time as shown in FIG. 4 (c), but in order to express the progress of the search operation, Not a useful list.
[0007]
(B) Conventional technology related to allocation processing
2. Description of the Related Art In a document processing apparatus that handles a document structure in which logical units of a document are associated with each other, a process called an assignment process is required to display the document on a hard copy or on a screen. In the prior art, for example, by performing an allocation process on the tree structure type structure shown in FIG. 18, the allocation result shown in FIG. 19 can be obtained. Such a tree-structured logical structure is handled by a conventional technique called a structured document. In a structured document, very high allocation results can be obtained.
[0008]
For example, Japanese Patent Laying-Open No. 3-147059 discloses an allocation processing technique in ODA which is an international standard for structured documents. In this conventional technique, processing is performed in accordance with the description of a document layout template called a common layout structure, which is defined by ODA in order to control the layout result of the entire document. The common allocation structure allows a very advanced template description including repetition and selection.
[0009]
In addition, the document "Makoto Murata and Koichi Hayashi, Formatter Hierarchy for Structured Documents, EP92, Cambridge University Press, 1992, which is described in Japanese Patent Application No. 3-98, which is incorporated by reference in Japanese Patent Application No. 3-98, is incorporated herein by reference. And assign documents. In this prior art, rather than allocating the entire document using a single complicated program and a complex template, which was performed in the prior art, a simple small program and a simple small template are hierarchically combined. This implements the allocation process. Even with this method, an allocation result similar to the common allocation structure of ODA can be obtained.
[0010]
A document having the structure of FIG. 18 can be represented as an example in FIG. In this figure, the logical unit is represented as a stream indicated by an arrow. A stream is a sequence of basic units such as characters, and the basic units include reference units. The name enclosed in a rectangle indicates a reference unit, and refers to a stream which is another logical unit from a specific position of the stream. In this way, the tree-structured logical structure is represented as a hierarchical stream.
[0011]
The partial allocation means is a program. A program that executes this program is called a formatter. The formatter is realized as a form of a subroutine being executed, a process of executing in parallel, or an object in an object-oriented language.
The formatter is responsible for allocating one stream. By forming the formatter hierarchical structure shown in FIG. 21, the entire logical structure can be allocated while exchanging partial allocation results.
[0012]
FIG. 42 shows an outline of the conventional allocation algorithm. This is adopted as a part in this embodiment as described later. FIG. 22 and FIG. 23 show one process of the allocation processing. Each formatter refers to the partial allocation template and performs allocation processing according to the rules described therein.
In this example, for example, a template having the following rules is referenced.
Formatter 1
(1) The character string of the label is poured in a large font and centered.
(2) An area obtained by subtracting the upper, lower, left, and right margins from the remaining area is secured as an area into which the allocation result of the basic element or the lower formatter in the stream flows.
Formatters 2 and 3 are
(1) The character string of the label is poured in a small font and left-aligned.
(2) An area obtained by subtracting the upper, lower, left, and right margins from the remaining area is secured as an area into which the allocation result of the basic element or the lower formatter in the stream flows.
[0013]
The structure of a document that can be handled on a computer is not limited to a tree structure. It can handle the logical structure of a more general network structure. The network structure can be expressed more freely than the tree structure, but it is more difficult to handle.
FIG. 24 shows a simple example of the network structure. This structure is not a tree structure because it forms a loop. This structure is displayed on the display as shown in FIG. 25, and can be referenced and edited. However, since the conventional advanced allocation processing targets a tree structure, the allocation processing cannot be applied as it is.
[0014]
Therefore, in the search of the document structure, a method of extracting a subtree structure in the network structure by halting the search further when a loop is detected, and allocating the structure to the structure has been devised. . This method is disclosed in, for example, JP-A-63-165968 and JP-A-4-171575. The subtree structure obtained from the network structure in FIG. 24 by this method is as shown in FIG. 26, for example. This example is a result of detecting a loop based on whether or not a search has already been performed in a depth-first search procedure. There are several types of search procedures and loop detection methods, and these changes result in different subtree structures. In any case, in the method of the related art, if a node to start a search is selected, one subtree structure is extracted according to a determined mechanism.
[0015]
However, in order for a computer to select one tree structure from a structure from which a plurality of tree structures may be extracted, a partial tree structure desired by a user is not necessarily allocated.
Further, it is not possible to apply advanced layout processing using a layout template realized in a conventional structured document. This is because the user cannot define an appropriate layout template because the user does not know in advance what kind of tree structure is to be extracted.
[0016]
(C) Conventional technology related to structure display
In an apparatus for handling a document structure in which logical units of a document are associated with each other, means for displaying and editing the document structure and the logical unit are provided. Except in very simple cases, it is not possible to display and edit all information of the document structure at once. Therefore, means for organizing and displaying / editing information at a certain point of view and means for displaying / editing a partial structure are used.
[0017]
The former means includes, for example, a device called a browser, which sorts and displays the reference relations of logical units (for example, Japanese Patent Application Laid-Open No. H4-40559). The use of this device makes it easier to understand the whole picture of the document structure. However, in this device, it is not possible to indicate from which position in the content the reference is being made. Also, it is difficult to display the network structure with this device.
[0018]
The latter means includes, for example, a device using a card type interface. In this device, one window corresponds to one logical unit, and displays contents and reference units embedded in the contents. In this device, the relationship between the content and the reference unit can be clearly expressed. This device also has the advantage that the network structure can be displayed. For example, a network structure as shown in FIG. 49 (a) can be freely searched using a card type interface as shown in FIGS. 49 (b), (c) and (d). However, in this method, only one logical unit can be displayed in one window, and a reference relationship can be expressed only at a depth of one. For this reason, it is difficult for a user to understand the whole picture of a complicated network structure.
[0019]
For this reason, there has been a need for a means capable of displaying a structure at an arbitrary depth while being associated with the content. As one of these, a device called an outline editor has been invented (Japanese Patent Laid-Open No. 3-148754). For example, as shown in FIG. 51, the structure shown in FIG. 50A can be displayed at an arbitrary depth while being associated with the contents. In each of (a), (b), (c) and (d), an icon indicating a reference unit is selected by a pointing device, and "open" and "close" are designated from a menu as shown in FIG. 50 (b). , Any subtree structure can be displayed. Further, it is possible to easily display all of the lower-level structures by instructing "open all". When each rectangular area for displaying a logical unit is considered to be a window, the outline editor displays a partial structure of the document by a hierarchical structure of windows.
However, since the outline editor limits the document structure to a tree structure, it cannot be applied to the network structure as it is. For example, if there is a loop, the "open all" operation cannot be performed.
[0020]
[Problems to be solved by the invention]
Conventionally, a simple structure has been secondarily generated from a network structure to simplify the handling of the network structure. Since the structure itself, the method of generating the structure, or the method of managing the structure was too simple, it was difficult to represent necessary information, perform allocation processing, and appropriately display windows in a hierarchical manner.
An object of the present invention is to provide a network-type document processing apparatus that appropriately generates and manages a tree structure as a secondary structure in order to solve this problem.
[0021]
It is another object of the present invention to provide a network-type document processing apparatus capable of displaying a secondary tree structure in a manner that is easy for a user to understand, so that the user can easily operate a network-type document.
[0022]
In order to solve the above-described problem of the related art regarding the reference history, it is important to clarify the progress of the search operation as to which candidate has been selected and reached the node. However, in the prior art, the time sequence of arriving at the node is indicated, but the progress of the search operation is not indicated.
An object of the present invention is to solve such a problem and to obtain a document processing device capable of expressing the progress of a search operation. According to the present invention, this is achieved by managing the reference history as a tree structure indicating the reference order in the depth direction and indicating the node candidates in the width direction, and presenting it to the user.
[0023]
In the conventional allocation processing technology for a network structure, as described above, the user does not necessarily select one tree structure from a structure from which a plurality of tree structures may be extracted. A desired subtree structure cannot be allocated, and a high-level layout process using a layout template realized in a conventional structured document cannot be applied.
SUMMARY OF THE INVENTION It is an object of the present invention to solve such a problem and to obtain a document processing apparatus capable of selecting a necessary part of a network structure and performing allocation processing. According to the present invention, this is achieved by providing means for generating a tree structure from the components of the network structure in accordance with an instruction from the user, and applying an allocation process to the generated tree structure.
[0024]
The hierarchical structure of the window is a secondary structure that reflects a partial structure of the data and enables operations using the structure. However, the conventional method of generating a hierarchical structure of windows is for displaying a tree structure, and is not appropriate for a network structure.
SUMMARY OF THE INVENTION It is an object of the present invention to provide a network type document processing apparatus capable of generating and managing a window hierarchy for displaying an arbitrary subtree structure in a network structure.
[0025]
It is another object of the present invention to provide a network-type document processing apparatus capable of clearly associating a plurality of secondary tree structures, expressing all the structures in a unified manner, and simultaneously displaying them.
[0026]
Means and action for solving the problem
The network type document processing apparatus of the present invention defines a tree structure as a secondary structure from a network structure, and performs processing using the tree structure. Conventionally, a simple structure was generated secondarily from the network structure to simplify the handling of the network structure. However, the structure itself, its generation method, or its management method was too simple. It was difficult to express necessary information, to perform allocation processing, and to appropriately display windows in a hierarchy. The present invention can solve these problems.
[0027]
The network-type document processing apparatus according to the present invention (claim 1) includes a document management unit (11 in FIG. 1, 22 in FIG. 2) for managing a document structure and a logical unit reference unit (12 in FIG. 1) for referring to a logical unit. And 24) in FIG. 2 and a history tree structure managing means (FIG. 2) for managing the reference history of the logical unit as a tree structure in which the referenced logical unit and the reference unit which was another candidate at the time of the reference are associated with each other. 13 of FIG. 1 and 25) of FIG. The document structure is configured by associating predetermined constituent units. The structural unit of the document structure is a logical unit that is a logical unit of the document, and the structural units are related by a reference unit that defines a reference relationship between the logical units. The logical unit reference means specifies a reference unit in the logical unit in accordance with a user's instruction, and selects a logical unit to be referred to (241 in FIG. 2), and a logic for displaying the selected logical unit. It comprises unit display means (242 in FIG. 2).
In this specification, a reference unit is an element of a logical unit serving as an index for referring to another logical unit from a logical unit. For example, a logical unit is a logical unit in a document such as a chapter or a paragraph in the document. It represents a unity.
[0029]
The conventional history list is one of the secondary structures, but the structure is too simple to express all the information necessary for managing the history. In the present invention, it is possible to express the history of the work by expressing the history in a tree structure.
[0034]
The present invention ( Claim 2 The network-type document processing device of the first embodiment is a device for processing a document structure formed by associating predetermined structural units, wherein the structural unit is a logical unit that is a logical unit of a document, and a reference relationship between the logical units. Document management means (601 in FIG. 60, 612 in FIG. 61) for managing a document structure in which logical units are associated with each other by a reference unit which defines a tree structure, and a secondary for managing a tree structure secondary defined from the document structure. A tree structure management means (603 in FIG. 60, 615 in FIG. 61) and a secondary tree structure display means (FIG. 60) for displaying a secondary tree structure in association with a document structure or another secondary tree structure. 602 and 616 in FIG. 61). According to the present invention, since the secondary tree structure is managed and displayed in association with the document structure and other secondary tree structures, the state of each tree structure can be grasped in a unified manner.
[0035]
The present invention ( Claim 3 The network-type document processing device according to Claim 2 )), Associating a plurality of combinations of states relating to the secondary tree structure with a display rule of a logical unit or a reference relation, and the secondary tree structure display means applying the display rule in displaying the document structure. Displays a plurality of secondary tree structures and document structures in association with each other. Note that the secondary tree structure includes an allocation target tree structure (formatter tree), a display target tree structure (window tree), a history tree structure (history tree), or any combination thereof ( Claim 4 ).
[0036]
【Example】
(First embodiment)
FIG. 2 shows the configuration of the network-type document processing apparatus according to the first embodiment.
The present embodiment interactively creates and displays a tree structure representing the progress (history) of node reference when a user proceeds with a work along a network structure in a network-type document. The tree structure representing the history is called a history tree. The history tree is composed of history nodes. In order to generate a secondary tree structure from the data structure of the network-type document, in the present embodiment, the constituent unit is a logical unit that is a logical unit of the document, and a reference that defines a reference relationship between the logical units. Use a document structure in which logical units are associated with each other. The logical unit is called a field, and the reference unit is called an anchor. Further, basic units such as characters constituting logical units are called primitives. Primitives also include anchors. Note that the data expression using the field and the anchor is not essential in the present invention. Data representation using nodes and links may be used.
[0037]
As shown in FIG. 2, the network-type document editing apparatus according to the present embodiment handles a document storage unit 21 such as a hard disk for storing a document structure, a document management unit 22 for managing a document structure, and inputs from outside the apparatus. An input unit 23 such as a keyboard and a mouse, a field reference unit 24 for selecting a field to be displayed based on information input from outside the device, and a history node according to the reference in order to express the history of the field reference as a history tree. A history tree management unit 25 that performs management such as generation of a tree structure using candidate nodes, a history tree display generation unit 26 that generates a window displaying the history tree structure, and a display unit 27 such as a display device that performs display. ing.
[0038]
Further, the document management unit 22 includes an anchor management unit 221 for managing anchors and a field management unit 222 for managing fields.
[0039]
The anchor management unit 221 performs management such as storing, retrieving and updating anchor information in the document storage unit 21. The anchor has a data structure as shown in FIG. 14B, and includes an anchor identifier 144 for identifying the anchor, a label 145 for displaying the anchor, and a pointer 146 to a field referred to by the anchor. ing.
The field management unit 222 performs management such as storing, extracting, and updating field information in the document storage unit 21. The field has a data structure as shown in FIG. 14A, and is included in a field identifier 141 for identifying the field, a field type 142 indicating the kind of collective relation defined by the field, and the field. It consists of a list 143 of primitives. If the primitive in the list is an anchor, it is a pointer to the anchor and a list of basic elements of the content data. The field can express a sequence of character strings or chapters, for example, by maintaining an order relationship between primitives. At this time, the field type is a stream, which matches the stream used in the related art. The fields can hold, for example, a two-dimensional positional relationship in addition to the order.
[0040]
The field reference unit 24 includes an anchor / field selection unit 241 for selecting an anchor or a field referred to by the anchor in response to an instruction from the input unit 23, and a field display generation unit 242 for generating a window displaying the selected field. Consists of
[0041]
3A and 3B show a data structure of a tree structure which is generated secondarily according to the present embodiment. FIG. 3A shows a history node, and FIG. 3B shows a reference relationship between a history node and an anchor.
As shown in FIG. 3A, the data structure of the history node is referred to by the history node identifier 31 for identifying the history node, the corresponding anchor 32 which is a pointer to the corresponding anchor, and the corresponding anchor. Of the anchors in the field, the child history node 33 which is a list of the pointers to the history nodes corresponding to the ones referenced in the past, and the anchors in the field referenced by the corresponding anchors that have not been referenced in the past It consists of a candidate anchor 34, which is a list of pointers to things.
The data structure of the anchor and the field is the same as that of FIG.
[0042]
In the present embodiment, FIGS. 4 (a), 5 (a), 6 (a), 7 (a), 8 (a), 9 (a), and 10 (a) [hereinafter, 4 (a) to 10 (a)]. The document processing apparatus is characterized in that it manages a history in a network-type document search operation using a card-type interface exemplified in FIG. In the present embodiment, the reference history is expressed as a tree structure, and displayed as shown in FIGS. 4B to 10B.
[0043]
FIGS. 4A to 10A show a state in which data is searched for in a window displayed in the display. That is,
(1) Open the window of the node named "Description of the invention", select the icon of "Claim" (FIG. 4 (a)), and open the window (FIG. 5 (a)).
{Circle around (2)} The icon of “Claim 2” is selected (FIG. 5A), and its window is opened (FIG. 6A).
{Circle around (3)} Close the "claims" and "claims 2" windows and return to the "explanation of invention" window (FIG. 7 (a)).
{Circle around (4)} The icon of “Example” is selected (FIG. 7A), and a window is opened (FIG. 8A).
{Circle around (5)} FIG. 15 The icon of “Example 2” is selected (FIG. 8A), and a window is opened (FIG. 9A).
{Circle around (6)} The icon of “Claim 2” is selected (FIG. 9A), and a window is opened (FIG. 10A).
[0044]
As examples of display of history information corresponding to each operation of FIGS. 4A to 10A, FIGS. 4C to 10C show a list of reference histories according to the related art, and FIGS. FIGS. 10A to 10B show display examples of the history tree in the present embodiment.
In the display example of the history tree according to the present embodiment illustrated in FIGS. 4B to 10B, a rectangle corresponding to the referenced field and a line segment indicating the reference relationship are drawn with thick lines. The thin lines are other candidates that were presented at the time the reference was made.
On the other hand, in the related art of FIGS. 4C to 10C, only a reference history list is shown, and nothing is displayed for other candidates presented at the time of reference. Absent.
As described above, in this embodiment, it is possible to understand the progress of the operation, which cannot be expressed by the conventional display. Note that, in the present embodiment, what is actually referred to is displayed at a higher position, but the upper and lower positions may be determined in the order within the field.
[0045]
Next, the operation of the present embodiment will be described with reference to the flowcharts shown in FIGS.
In the present embodiment, the mouse cursor is moved to the icon indicating the anchor in the window displaying the field, and the corresponding field is referenced by clicking. For example, in FIG. 4 (a), by clicking on the icon “Claim” 42 indicating an anchor in the window 41 displaying the field with a mouse, a window 51 (FIG. ))open. In this way, the fields consisting of 52, 53 and 54 anchors are referenced corresponding to the 42 anchors.
[0046]
When there is no anchor icon corresponding to the clicked location (for example, FIG. 10A), a “close” menu (not shown) can be selected.
Furthermore, clicking outside the window will allow you to select the "Exit" menu.
The field displayed in the window where the cursor is located is the current field.
Note that you cannot select the first anchor from the window. Specified by the user when starting the program.
[0047]
FIG. 11 shows the flow of the field reference algorithm representing the contents of the processing of the field reference unit 24.
[0048]
(start)
(Step S1110)
The user moves the cursor using the input unit 23 to specify one anchor icon. For example, in FIG. 4, the anchor icon 42 is clicked. Then, the anchor / field selection unit 241 specifies the clicked anchor from the anchors managed by the anchor management unit 221 in the document management unit 22 based on the click signal and the position information.
[0049]
(Step S1111)
The field display generation unit 242 obtains the data of the field corresponding to the specified anchor from the field management unit 222, generates a window for displaying the field, and displays the window via the display unit 27.
[0050]
(Step S1112)
The history tree generation algorithm (A) (FIG. 12) is called. As will be described later, the fields referred to by the history tree management unit 25 are managed in the form of a history tree, and displayed by a history tree display algorithm (FIG. 13).
[0051]
(Step S1113)
The cursor is moved into the window displaying the field generated in step S1111.
[0052]
(Step S1114)
Determines whether the cursor is in or outside the window that displayed the field.
[0053]
[When in the window that displays the field]
If the cursor is in the window displaying the field, the process waits for a mouse click input and performs the following process for anchor selection.
(Step S1115)
The field displayed in the window where the cursor is located is the current field.
[0054]
(Step S1116)
It is determined whether or not the mouse has been clicked. If the mouse has not been clicked, the process proceeds to step S1114, and if the mouse has been clicked, the process proceeds to step S1117.
[0055]
(Step S1117)
The anchor / field selector 241 performs an anchor selection process corresponding to the click.
(Step S1118)
It is determined whether or not the anchor selection has failed.
[0056]
(Step S1119)
When the selection of the anchor has not failed, that is, when the click is made on the anchor icon, it is determined whether or not the field corresponding to the anchor is already displayed.
If the field has not been displayed, the process moves to step S1111 in order to display the field and register it in the history tree.
[0057]
(Step S1120)
If a field has been displayed, the cursor is moved to the window in which the field is displayed, and the process proceeds to step S1114.
[0058]
(Step S1130)
If it is determined in step S1118 that the selection of the anchor has failed, that is, if a click is made when the cursor is located at a position other than the anchor icon, the click selects "close" in the menu. It is determined whether or not.
If the result of the determination is that the selection is not "close" in the menu, the flow moves to step S1114 to wait for the next click input.
[0059]
(Step S1131)
If “close” is selected as a result of the determination, a process of closing the window is performed.
[0060]
[Outside window displaying fields]
(Steps S1140, S1141)
When the cursor is located outside the window displaying the field as a result of the determination in step S1114, the mouse is monitored for clicks. When the mouse is clicked, it is determined whether or not it is a menu end selection. If it is selected, the field reference processing ends. Otherwise, the process proceeds to step S1114.
[0061]
FIG. 12 shows a flow of a history tree algorithm representing the contents of the processing of the history tree management unit 25. When a new field is displayed, it is added to the history tree.
(Start of A)
(Step S120)
The history tree is searched by the anchor corresponding to the field displayed in step S1111 of FIG. 11, and it is determined whether or not there is a history node corresponding to the anchor. If there is a history node, since the field has already been added to the history tree, the flow returns to the original processing flow of FIG. If there is no history node, the following history node is created and displayed.
[0062]
(Step S121)
Create a new history node corresponding to the anchor. The history node has a data structure shown in FIG. On the other hand, in the present embodiment, the data structure of the target network type document is such that the fields are as shown in FIG. 14A and the anchors are as shown in FIG. 14B. The pointer to the selected anchor is stored in the “corresponding anchor” column 32 of the newly created history node. The list of anchors in the field of the network type document indicated by the reference field of the anchor is stored as a list 34 of candidate anchors in the history node.
For example, the state in which FIG. 4A is displayed is represented as in FIG. In this state, when the anchor icon “Claim” 42 is selected and a window 51 displaying a field referred to by the “Claim” is newly generated as shown in FIG. 5A, a history node is created. 3 (c). In the newly created history node H002, a pointer to the anchor “Claim” A002 is stored in the column of the corresponding anchor 32, and the other anchor “Claim 1” A005 in the window 51 is displayed in the newly displayed field. “Claim 2” A006 and “Claim 3” A007 are stored in the candidate anchor list 34.
[0063]
(Step S122)
Select the history node corresponding to the current field.
[0064]
(Step S123)
It is determined whether or not the selection has failed, and if the selection has failed, the process returns to the processing flow of FIG.
[0065]
(Steps S124 and S125)
The corresponding anchor is deleted from the candidate anchors of the selected history node. Add the newly created history node to the child history node list. Thereby, for example, the anchor A002 is removed from the candidate anchor of the history node H001 in FIG. 3B, and the newly generated history node H002 is added to the child history node (FIG. 3C).
[0066]
(Step S126)
In order to apply the history tree display algorithm (B) to the root history node, the processing is shifted to the history tree display generation unit 26.
[0067]
FIG. 13 shows a flow of a history tree display algorithm representing the contents of the processing of the history tree display generation unit 26. Display processing of a history tree updated after a new history node is generated.
(Start of B)
(Step S131)
First, the history node of the root is displayed.
[0068]
(Step S132)
The display algorithm (B) is applied to all the child history nodes of the history node. Display all history nodes by recursive call. 7 (b) to 10 (b), the thick line indicates the display corresponding to the history node.
[0069]
(Step S133)
Display the candidate anchors of the history node. In FIG. 7B to FIG. 10B, a thin line portion is a display corresponding to the candidate anchor.
After this display, the process returns to the processing flow (step 12) in FIG.
[0070]
The conventional history list is one of the secondary structures, but the structure is too simple to express all the information necessary for managing the history. According to the present embodiment, the history of the work can be represented in an easy-to-understand manner by expressing the history with a tree structure secondary generated from the network structure.
[0071]
(Explanation of the secondary tree structure to be assigned)
FIG. 16 shows a configuration example of a network-type document processing apparatus using a tree structure to be allocated which is defined secondarily. This device generates a tree structure from the components of the network structure according to the instruction from the user in the network type document, and applies the allocation processing to the generated tree structure, so that the necessary part of the network structure is It is possible to select and perform allocation processing. In this device, data expression is performed using fields and anchors. This data representation is not essential in the present invention. Data representation using nodes and links may be used. In this embodiment, the entire allocation processing is performed by executing the partial allocation processing hierarchically using the hierarchical structure of the formatter described in the above-mentioned prior art. The formatter is a process for performing a partial allocation process. In this example, the hierarchical structure of the formatter is called a formatter tree.
[0072]
As shown in FIG. 16, a network-type document processing apparatus based on a tree structure to be allocated which is secondarily defined includes a document storage unit 161 such as a hard disk for storing a document structure, a document management unit 162 for managing the document structure, and the like. , An input unit 163 for handling input from outside the device, an anchor field selection unit 164 for selecting an anchor or a field referred to by the anchor, and an instruction from the anchor field selection unit. A formatter tree management unit 165 that expresses and manages a tree structure to be allocated as a formatter tree, a formatter tree display generation unit 166 that generates a window that displays the formatter tree, and executes a formatter to generate an allocation result. A display unit 168 or a formatter execution control unit 167 to be sent to the printing unit 169; A display unit 168 such as a display device for performing display, has an allocation result from the printing unit 169 for outputting a hard copy. Note that the document storage unit 161, the document management unit 162, the input unit 163, the anchor / field selection unit 164, the display unit 168, and the like are common to the first embodiment.
[0073]
FIGS. 17A and 17B show the data structure of the present example. FIG. 17A shows a formatter, FIG. 17B shows an anchor, and FIG. 17C shows a reference relationship between the formatter and the anchor. As shown in FIG. 17A, the data structure of the formatter includes a formatter identifier 171 for identifying an allocation node, a corresponding anchor 172 that is a pointer to a corresponding anchor, and a list 173 of pointers to child formatters. ing.
[0074]
The data structure of the anchor is, as shown in FIG. 17B, an anchor identifier 174 for identifying the anchor, an anchor label 175 which is a label for displaying the anchor, and a corresponding formatter 176 which is a pointer to a corresponding formatter. , A reference field 177 which is a pointer to the field referenced by the anchor.
[0075]
Next, the operation of the present apparatus configured as described above will be described. FIGS. 27A to 27C show how a tree structure is designated from the network structure shown in FIG. When the user selects and clicks on the anchor icon to be assigned with the mouse on the interface for displaying the tree structure as shown in FIGS. A menu is displayed. By selecting "Generate Formatter" in this menu display, a formatter for allocating the field referenced by the corresponding anchor is generated and displayed as an icon surrounded by a thick line. The rectangular area indicated by a thin line is an anchor without a corresponding formatter, but indicates a candidate for selection to generate a formatter. When "Formatter Discard" is selected from the selection menu, the activated formatter is discarded. When the user clicks the anchor icon without selecting it, a selection menu shown in FIG. 29B is displayed, and by selecting “print” in the selection menu, each of the items forming the formatter tree is displayed. Assignment processing is performed by the formatter and output.
[0076]
The formatter tree generated as a result of selecting the tree structure shown in FIG. 30 is as shown in FIG. FIG. 32 shows the result of performing the entire allocation processing using this formatter tree. FIGS. 33 and 34 show examples in which a formatter tree different from that in FIG. 30 is generated.
[0077]
The structure to be allocated is not limited to a partial structure of the network structure. FIGS. 35, 36, and 37 show the states when the designations in FIGS. 30 and 33 are performed simultaneously. In this case, since there is an overlapping portion, the structure is not exactly a partial structure.
[0078]
Next, a description will be given with reference to flowcharts shown in FIGS.
FIG. 41 shows the flow of the formatter tree management algorithm representing the processing contents of the formatter tree management unit 165.
It is assumed that the structure of the network type document to be processed is displayed, for example, as shown in FIG.
[0079]
(start)
(Steps S4110, S4111)
Monitor mouse clicks. If there is a click, the anchor / field selector 164 performs a process of selecting an anchor at the cursor position. For example, if the user moves the cursor by using the input unit 163 to select and click the anchor icon 272 (FIG. 27B) to be assigned, the anchor / field selection unit 164 determines the position of the cursor. The information about the anchor is notified to the formatter tree management unit 165.
[0080]
(Step S4112)
Depending on whether or not the anchor selection has failed, that is, whether or not there is an anchor icon at the cursor position, the flow proceeds to step S4113 if the anchor selection has succeeded, or to step S4114 if the anchor selection has failed.
[0081]
(Step S4113)
After the anchor is selected, a menu shown in FIG. 29A is displayed, and the user selects “Generate Formatter” or “Discard Formatter”. When “formatter activation generation” is selected, the process proceeds to step S4120, and when “formatter discard” is selected, the process proceeds to step S90.
[0082]
[Start Formatter]
(Step S4120)
It is checked whether or not there is a formatter corresponding to the selected anchor. If there is already a formatter, it is not necessary to generate one. Therefore, the flow returns to step S4110 to wait for the selection of the next anchor;
[0083]
(Step S4121)
Generate a new formatter corresponding to the anchor. The formatter has a data structure shown in FIG. On the other hand, in the present embodiment, the data structure of the target network type document is as shown in FIG. 14A for the field and FIG. 17B for the anchor in the present embodiment. The pointer to the selected anchor is stored in the “corresponding anchor” column 172 of the newly created formatter.
[0084]
(Step S4122)
The newly generated formatter is placed below the formatter corresponding to the upper anchor. That is, the pointer to the newly generated formatter is added to the list 173 of the child formatters of the formatter corresponding to the upper anchor.
[0085]
(Step S4123)
The display algorithm (B) is applied to the root formatter, and the control is transferred to the formatter tree display generation unit 166 in order to display again.
[0086]
[Stop Formatter]
(Steps S4130, S4311, S4123)
In the menu shown in FIG. 29A, when "discard formatter" is selected by the user, it is checked whether or not there is a formatter corresponding to the anchor, and if so, the corresponding formatter and all lower formatters are deleted. . Then, in step S4123, the formatter tree is displayed again. If not, the process returns to step S4110.
[0087]
(Steps S4114, S4140, S4147)
If it is determined in step S4112 that there is no anchor icon at the cursor position, the menu shown in FIG. 29B is displayed, and the user waits for selection. When "print" in the menu is selected, the formatter is executed. The control unit 167 performs an allocation process using a formatter tree, passes the allocation result to the printing unit 169, and prints out. When "end" is selected in the menu, the process ends.
[0088]
FIG. 42 is a flowchart showing a partial allocation processing algorithm in the processing of the formatter execution control unit 167. By executing this algorithm from the root formatter, allocation processing is performed using all formatter trees. This algorithm is the same as that used in the conventional allocation processing technique. In this embodiment, the logical unit corresponds to the field, the reference unit corresponds to the anchor, and the basic unit corresponds to the primitive.
(Step S4200)
It is determined whether all basic units included in the logical unit have been allocated.
[0089]
(Step S4201)
If the assignment of all basic units has not been completed, the first unassigned element is extracted.
[0090]
(Step S4202)
It is determined whether the basic unit is a reference unit.
[0091]
(Step S4203)
When the basic unit is a reference unit, a partial allocation process is executed for the logical unit referred to by the reference unit (recursive call), and the allocation result is received.
[0092]
(Step S4204)
Pour the allocation result into the rectangular area.
[0093]
(Step S4205)
When the basic unit is not a reference unit, since the basic unit is a character or the like, they are poured into a rectangular area.
[0094]
(Step S4206)
When all the basic units have been assigned, the assignment result is passed to the upper formatter.
[0095]
FIG. 43 shows the flow of the formatter tree display algorithm representing the processing contents of the formatter tree display generation unit 166.
[0096]
(Step S4300)
Display the label of the corresponding anchor in the figure indicating that the formatter is running.
[0097]
(Steps S4301 and S4302)
Check that all anchors in the referenced field have been displayed, and if there are any anchors that are not displayed, select the first anchor that is not displayed. When all the anchors in the referenced field have been displayed, the flow returns to step S4123 in FIG.
[0098]
(Steps S4303, S4304, S4305)
Checks whether the formatter corresponding to the selected anchor has been activated, and if so, applies the display algorithm for the corresponding formatter (recursive call); otherwise, confirms that the formatter has not been activated Display the label of the anchor in the shape shown.
[0099]
According to the present apparatus, a tree structure is generated from the components of the network structure according to an instruction from the user, and a necessary part of the network structure is selected by applying an allocation process to the generated tree structure. Assignment processing can be performed. Further, in the present embodiment, the use of the formatter tree structure as the secondary structure enables the control of the network structure allocation processing which could not be conventionally controlled by the user. Further, since the user selects a tree structure to be laid out, an appropriate layout template can be defined, and the layout processing in the structured document can be applied.
[0100]
Note that the tree structure is a restricted network structure. Therefore, the present invention can be applied to a tree structure. FIG. 38 shows an apparatus for displaying the entire logical structure of the tree structure shown in FIG. A user can define a partial tree structure on this display device by defining a rectangular area. By using the formatter tree of FIG. 40 corresponding to this partial tree structure, the allocation result of FIG. 39 can be obtained.
[0101]
The allocation result can be displayed on a display as well as a hard copy. Conventionally, there has been a WYSIWYG system for matching a print on a hard copy with a display on a display, but this function has been limited to the output of the entire document. By matching the partial layout result with the print on the hard copy and the display on the display, it becomes possible to confirm only a necessary part of the document to be printed on the display. The necessary part is, for example, a part around the changed part when the change is made.
[0102]
(Explanation of the display target tree structure that is defined secondarily)
FIG. 45 shows the configuration of a network-type document processing apparatus based on a display target tree structure defined secondarily. The present embodiment is an apparatus which can present an arbitrary subtree structure to a user by a combination of windows in a network type document and interactively change the display state thereof. The display state is managed as a window tree in association with the data structure, and can be restored after the work is interrupted. In the present embodiment, data is expressed by fields and anchors, but this data expression is not essential in the present invention. Data representation by nodes and links may be adopted. As shown in FIG. 45, the network-type document editing apparatus according to the present embodiment includes a document storage unit 451 such as a hard disk for storing a document structure, and an anchor management unit 4521 and a field management unit 4522 for managing the document structure. An input unit 453 such as a keyboard and a mouse for handling input from outside the apparatus; an anchor / field selecting unit 454 for selecting an anchor or a field referred to by the anchor by an instruction from the input unit 453; A window tree management unit 455 that manages the hierarchical structure as a window tree, a window display generation unit 456 that generates a window that displays fields, and a display unit 457 such as a display device that performs display are provided. Note that the document storage unit 451, the document management unit 452, the input unit 453, the anchor / field selection unit 454, and the display unit 457 are common to corresponding parts in FIG. 2 or FIG.
[0103]
FIGS. 46A and 46B show the data structure of this example. FIG. 46A shows the data structure of a window, and FIG. 46B shows the data structure of an anchor. In this embodiment, the window that is the root of the window tree is called a top window, and the other windows are called subwindows. As shown in FIG. 46A, the data structure of the window is a window identifier 461 for identifying the window, a corresponding anchor 462 which is a pointer to the corresponding anchor, and a window indicating whether the window is a top window or a subwindow. , A display area 464 indicating an area where a window is displayed, and a list 465 of pointers to child windows. “TOP” in the display state indicates a top window, and “SUB” indicates a subwindow.
[0104]
As shown in FIG. 46B, the data structure of the anchor is an anchor identifier 466 for identifying the anchor, an anchor label 467 which is a label for displaying the anchor, and information on display of a field referred to by the anchor. The display information 468 includes a reference field 469 which is a pointer to a field referred to by the anchor.
“TOP” in the display information indicates that the field referred to by the anchor is being displayed in the top window or was displayed as the top window before the work was interrupted. "SUB" indicates that the field referred to by the anchor is being displayed in the sub-window or was displayed as a sub-window before the work was interrupted. “OFF” indicates that the field referred to by the anchor is not displayed, and is not displayed before the work is interrupted.
[0105]
FIG. 47 shows the reference relationship between the window tree and the anchor. This corresponds to a part of FIG. Since the anchor of “Claim 1” is not displayed, the display state is OFF. FIG. 48 shows the relationship between the value of the display area of the window shown in FIG. 47 and the display of FIG.
[0106]
This embodiment is an outline editor having a function of restoring a window tree at the end of editing when the editing is restarted by reflecting the tree structure of the window on data in the document structure.
When the display shown in FIG. 53 (a) is being performed, the window tree is as shown in FIG. 53 (b). This state is reflected in the data structure as display information (TOP, SUB, OFF) as shown in FIG. Those with no state indicate OFF.
[0106]
An icon corresponding to the anchor in the window is selected with the mouse and clicked to open the menu in FIG. 53 (c). By selecting "Open" in this menu, a sub-window is opened. Select "Close" to close the subwindow. By these operations, the states of TOP, SUB, and OFF change. By selecting the top window and performing "close", all windows are closed and the program is terminated. At this time, all display states are turned off. When "interrupt" is selected, the program ends without changing the state of TOP, SUB, and OFF.
[0107]
By referring to the display information in the data structure when editing is resumed, it is possible to restore the state of the window tree at the time of editing interruption.
When the top window or the subwindow is opened, if there is an anchor of “SUB” in the lower level, the subwindow displaying the field referred to by the anchor is opened.
[0108]
In this example, one window tree is managed. Further, since each anchor has only one display state, a state where the same anchor or field is shared cannot be expressed. If a function of sharing a plurality of window trees and fields is required, the state may be maintained for each display as shown in FIG. In this case, the display shown in FIG. 54B can be expressed together with the display shown in FIG.
[0109]
Note that it is possible to partially restore the window hierarchy without writing the TOP information. When only the SUB information is described as shown in FIG. 55 (a), accessing the “Description of the Invention” always includes the “claim” and “embodiment” in which the SUB is described in the lower window. Is generated. A window tree displaying a field corresponding to "" is generated. In the example of FIG. 55A, the display is as shown in FIG.
[0110]
This mechanism can be applied to other than the outline editor as long as the subtree structure is displayed by the hierarchical structure of windows. For example, display by a sub-window freely arranged in a window as shown in FIG. 55C can be realized by adding a simple modification to the configuration shown in the embodiment. A necessary modification in this case is to add the area information of the window to the display information.
[0111]
Next, a description will be given with reference to flowcharts shown in FIGS.
FIG. 56 shows the flow of the window tree management algorithm representing the processing contents of the window tree management unit 455.
[0112]
(Step S5611)
When the process starts, first, the anchor whose state is TOP is selected.
[0113]
(Step S5612)
Create a top window.
[0114]
(Step S5613)
In the generated top window, the field display algorithm (A) of FIG. 57 is applied to the field referenced by the selected anchor to display the field.
[0115]
(Step S5614)
When the user selects a window by clicking the mouse, a menu shown in FIG. 53C is displayed.
[0116]
(Step S5615)
If the selected menu item is “open” according to the item selected by the menu, the process proceeds to step S5630, if “close”, the process proceeds to step S5640, and if “interrupted”, the process proceeds to step S5650 to perform each process. I do.
[0117]
(Step S5630)
If "Open" in the menu is selected, it is checked whether an anchor is selected. If an anchor has not been selected, the process returns to step S5615.
[0118]
(Step S5631)
When the anchor has been selected, the state of the anchor (display information 468) is set to SUB.
[0119]
(Step S5632)
In the selection window, the processing of the field display algorithm (A) is called for the field corresponding to the selected anchor, and is displayed again. Then, the process returns to step S5615 to perform the next selection process.
[0120]
(Step S5640)
When "close" is selected from the menu, the state of the anchor corresponding to the selected window and all the windows under the selected window is turned off.
[0121]
(Step S5641)
Destroys the selected window and all its subwindows.
[0122]
(Step S5642)
It is determined whether or not the window is the top window. If the window is the top window, the process ends because all windows have already been discarded.
If it is not the top window, go to step S5632 and display again.
[0123]
(Step S5650)
If the selected menu is "interrupt", the selected window and all sub-windows below it are discarded, and the process ends.
[0124]
FIG. 57 shows the flow of the field display algorithm (A) representing the processing contents of the field display generation unit 456. This algorithm performs a process of displaying a field in a window, given a window and a field.
(Step S570)
It is determined whether all the primitives of the given field have been processed. If all the processing has been completed, the process returns to the original routine. If there are primitives to be processed, the processing is performed by the following steps.
[0125]
(Steps and 571)
Select the first primitive that has not been processed.
[0126]
(Step S572)
It is checked whether the primitive is an anchor. If it is an anchor, the process proceeds to step S573, and if not, to step S578.
[0127]
(Step S573)
The state of the anchor is checked by the display information 468 in the data structure of the anchor shown in FIG.
[0128]
(Step S574)
When the content of the display information is "SUB", a subwindow is generated and arranged in a given window.
[0129]
(Step S575)
The display algorithm (A) is applied and displayed on the field referred to by the anchor in the generated subwindow (recursive call).
[0130]
(Step S576)
If the display information 468 of the anchor is OFF in the determination of step S573, an icon corresponding to the anchor is generated.
[0131]
(Step S577)
Places an icon in the given subwindow.
(Step S578)
If it is determined in step S573 that the primitive is not the anchor, the primitive is arranged in the given sub-window.
[0132]
According to the present apparatus, the window tree management unit 455 manages the display target tree structure so that it is reflected in the data in the document structure. Therefore, when editing is resumed, the window tree at the end of editing can be restored. .
[0133]
(Second embodiment)
In general, a network structure can be freely expressed, but is much more difficult to handle than a simpler structure, for example, a tree structure. Therefore, it is effective to generate an easy-to-handle secondary structure from the network structure and use the structure to facilitate the operation of the network structure. The present invention is an invention that uses secondary structures such as a tree structure of history (history tree), a tree structure to be displayed (window tree), and a tree structure to be allocated (formatter tree). Was described in detail. In addition, since these have a tree structure, they are collectively referred to as a secondary tree structure in this specification. These secondary tree structures are interconnected but different.
[0134]
For example, referring to the document structure shown in FIG. 28 in the following procedure, the result is as shown in FIG.
(1) Open a window displaying "Description of the invention".
(2) Open a sub-window displaying "claims" in the "Description of Invention" window.
(3) Open a sub-window displaying “Example” in the “Description of the Invention” window.
(4) Open a sub-window displaying “Claim 1” in the “Claim” sub-window.
(5) Open a window displaying “Claim 2”.
(6) Open a window displaying “conventional technology”.
Further, the result of FIG. 58B is obtained by the following procedure.
(7) Close the "Example" subwindow
[0135]
The history tree, window tree and formatter tree at this time are shown in FIGS. 59 (a), (b) and (c), respectively.
The history tree is for expressing a part referred to by the user in the network type document. The history tree holds a history of references by the user in a tree structure. By displaying this tree structure as shown in FIG. 59 (a), it is possible to show the user the history of work performed in the network structure up to that time.
[0136]
The window tree is for specifying a portion to be displayed in the network type document. A part of the network-type document structure is presented to the user as a composite window represented by a window tree. The user edits the network structure via the synthesis window. By displaying the window tree as shown in FIG. 59 (b), it is possible to access necessary windows even when they are arranged in an overlapping manner.
[0137]
The formatter tree is for specifying a portion to be allocated in the network-type document structure. By specifying the tree structure to be allocated using the formatter hierarchy, it is possible to perform advanced allocation processing using a template. The formatter tree shown in FIG. 59C is specified irrespective of the above-mentioned reference procedure. For the specification, a device for displaying the data structure and the formatter tree in association with each other is required.
[0138]
By combining the functions for these secondary tree structures, more advanced functions can be realized. For example, it is conceivable to use a composite as follows.
(1) By using a history tree and a window tree in combination, an operation such as selectively deleting a window related to a specific work from a number of windows opened on the screen is performed. This is because the history tree can indicate the progress of work.
(2) By using a combination of a window tree and a formatter tree, information displayed by a window opened on the screen is allocated and output.
(3) By using the history tree and the formatter tree in combination, the information referred to by the user is allocated and output.
[0139]
The fourth embodiment is an example in which the respective secondary tree structures shown in the first to third embodiments as described above are combined. In order to realize the above-described composite functions, it is not enough to simply combine the respective technologies.
By simply combining the techniques of the first to third embodiments, in addition to the window shown in FIG. 58, a browser that displays a window tree, a browser that displays a history tree, and a browser that displays a formatter tree They will open on the same screen. In some cases, a browser that opens the data structure is opened. Moreover, the structures displayed in each browser are closely related to each other. For example, in the “open” operation of the above steps, both the window tree and the history tree are updated. On the other hand, in the “close” operation, only the window tree is updated.
[0139]
Thus, with a simple combination of each technology,
(1) Relationships between structures are not organized.
(2) The relationship between structures cannot be presented to the user.
(3) Display similar structures in separate windows.
Therefore, it is very difficult for a user to associate and use a plurality of secondary tree structures.
[0140]
Therefore, in the second embodiment, a plurality of secondary tree structures are clearly associated with each other, all the structures are unified and displayed simultaneously. Since a plurality of secondary tree structures are presented to the user as one structure, confusion for the user can be avoided. Further, by extracting each structure from the unified expression, it becomes easy to obtain a function using each structure or a combined function. In addition, the procedure for updating a plurality of structures at the same time becomes easier, and the efficiency of processing can be improved.
[0141]
In the second embodiment, data is represented by fields and anchors. This data representation is not essential in the present invention. Data representation using nodes and links may be used.
[0142]
Further, in this embodiment, the formatter is realized as a process for executing the allocation process. This processing method is not essential in the present invention. The portion to be allocated may be held in a tree-structured data structure, and another means may perform the allocation process while referring to the data structure. In this case, the data structure indicating the portion to be allocated corresponds to the formatter tree.
[0143]
FIG. 61 shows the configuration of the second embodiment. As shown in FIG. 61, the network-type document editing apparatus according to this embodiment includes a document storage unit 611 such as a hard disk that stores a document structure, and a document management unit that manages a document structure including an anchor management unit 6121 and a field management unit 6122. An input unit 613 such as a keyboard and a mouse for handling input from outside the device; an anchor field selection unit 614 for selecting an anchor or a field referred to by the anchor according to an instruction from the input unit 613; A formatter tree management unit 615 that manages a tree structure to be allocated specified by the selection unit as a formatter tree, a document display generation unit 616 that generates a window that displays a part or the whole of a document, a display device that performs display, etc. Display part 167, execute formatter and assign It generates a result, a formatter execution control unit 618 to send to the display unit 617 or printing unit 619, via the document display generation unit 616 consists of a printing unit 169 for outputting the assignment result to the hard copy. The document storage unit 611, the document management unit 612, the input unit 613, the anchor / field selection unit 614, the display unit 617, and the like are common to the examples in FIGS. 2, 16, and 45, and the formatter tree management unit 615 The formatter execution control unit 618 and the printing unit 619 are common to the example of FIG.
[0144]
The document display generation unit 616 further includes a document structure display generation unit 6161 and a field display generation unit 6162.
The document structure display generation unit 6161 generates a window that displays the structure of a document, and corresponds to a browser in the related art. In this embodiment, a plurality of secondary tree structures are displayed in association with the document structure by displaying the anchor icons.
The field display generation unit 6162 generates a window for displaying a field. In this embodiment, a window is generated and a field is displayed using a formatter managed by the formatter management unit 615.
[0145]
FIG. 62 shows the data structure of the present embodiment, in which (a) shows a formatter, (b) shows a window, (c) shows an anchor, and (d) shows a field structure.
[0146]
The data structure of the formatter is, as shown in FIG. 62A, a formatter identifier 62a1 for identifying an allocation node, a corresponding anchor 62a2 which is a pointer to a corresponding anchor, and a corresponding window which is a pointer to a corresponding window. 62a3 and a list 62a4 of pointers to the child formatters.
[0147]
As shown in FIG. 62 (b), the data structure of the window is a window identifier 62b1 for identifying the window, a display area 62b2 representing an area where the window is displayed, a pointer 62b3 to the upper window, and a pointer to the child window. Consists of a list 62b4.
[0148]
As shown in FIG. 62 (c), the data structure of the anchor is an anchor identifier 62c1 for identifying the anchor, an anchor label 62c2 which is a label for displaying the anchor, and a pointer to a field referred to by the anchor. It consists of a reference field 62c3.
[0149]
As shown in FIG. 62 (d), the data structure of the field is, as shown in FIG. 62 (d), a field identifier 62d1 for identifying the field, a field type 62d2 representing the type of collective relation defined by the field, and a pointer to a corresponding formatter It consists of a formatter 62d3 and a list 62d4 of primitives included in the field.
[0150]
FIG. 63 shows a reference relationship among formatters, anchors, fields, and windows.
This reference relationship corresponds to a part of the states shown in FIGS. FIG. 65 shows that a window 652 displaying a field referred to by a “claims” anchor is opened in a window 651 displaying a field referred to by a “description of the invention” anchor.
[0151]
As described above, this embodiment is an apparatus for centrally managing and displaying the entire tree structure in order to simplify operations on a history tree, a window tree, and a formatter tree. FIG. 64 shows a display example according to this embodiment when the operation shown in FIG. 58B is performed. This display simultaneously displays a part of the document structure, a history tree, a window tree, and a formatter tree. Each secondary tree structure is presented according to the type of the icon indicating the anchor. Prior to the description of the display, a unified management method of a tree structure in the present embodiment will be described.
[0152]
In the present embodiment, the window tree and the history tree are related by adding a new role to the formatter tree.
In the second embodiment, the formatter tree specifies a subtree structure to be output, allocates the subtree structure, and outputs it. The role of each formatter in the formatter tree is to perform a partial allocation process for output. In the present embodiment, as a role of the formatter, an allocation process for display in a window is added. That is, the formatter is provided with two types of allocation algorithms for window display and output. Since the formatter performs window display allocation processing, a corresponding formatter is always generated when a window is displayed.
[0153]
When the formatter defined as described above is used, when a window is opened, a formatter is generated, and the allocation processing for window display is executed. When the windows are configured hierarchically, the formatters are also generated hierarchically and execute the allocation processing. From this, the window tree can be represented as a formatter tree.
[0154]
The formatter will not disappear when the window is closed. That is, the formatter tree remains even if the corresponding window tree disappears. In this way, the history of window display, that is, the history tree that is the history of reference, can be expressed as a formatter tree.
[0155]
In order to further associate the history tree, window tree, and formatter tree, which are associated with each other as described above, with a data structure, the combinations of window and formatter states corresponding to the anchors are arranged. In this embodiment, a plurality of secondary tree structures are displayed by displaying each state on an anchor icon.
[0156]
The state of SLEEP, READY, SUB, and TOP shown in FIG. 66 is defined by the combination of the state of the formatter and the window corresponding to the anchor. The state obtained by adding the state of ELSEWHERE to this is called an anchor state.
(1) The SLEEP state indicates that there is no formatter corresponding to the anchor.
(2) The READY state indicates that the formatter corresponding to the anchor exists, but the field referred to by the anchor is not displayed in the window.
(3) The TOP state indicates that the field referred to by the anchor is displayed in the top window.
(4) The SUB state indicates that the field referred to by the anchor is displayed in the subwindow.
(5) ELSEWHERE: In the state, the formatter corresponding to the field referenced by the anchor has been generated from another anchor.
[0157]
In this embodiment, the anchor state is indicated by changing the display of the anchor icon. FIG. 67 shows a list of anchor icons corresponding to the anchor state.
[0158]
This embodiment allows a plurality of anchors to refer to the same field. On the other hand, a formatter is constructed by selecting an anchor icon and opening a window. For this reason, a plurality of formatters corresponding to the same field may be defined. In the present embodiment, for the sake of simplicity, a limitation is provided that the number of formatters corresponding to a field is one. For this reason, it is necessary to display the ELSEWHERE state. Although the configuration is somewhat complicated, it is not difficult to make a plurality of formatters correspond to one field.
[0159]
As shown in FIG. 68, a formatter tree, a history tree, and a window tree are obtained by selecting a specific state from the five state anchors as shown in FIG.
[0160]
FIG. 64 shows a display example according to this embodiment when the operation shown in FIG. 58B is performed.
The window tree has a structure based on TOP and SUB anchors.
The formatter tree has a structure in which a READY anchor is further added.
The history tree has a structure in which SLEEP and ELSEWHERE anchors are further added. These anchors will indicate candidate references.
As shown in FIG. 65, by using an anchor icon in a window for displaying a field, it is also possible to clarify the relationship with each displayed tree structure.
[0162]
In the present embodiment, a plurality of tree structures are displayed to the user in an easily understandable form. In addition to this function, a required tree structure is extracted from the conditions in FIG. 68, and the extracted tree structure is used together with the inventions (first to third embodiments) using the respective features.
That is,
(1) The history of references to the document structure can be stored and displayed as a tree structure (first embodiment).
(2) For the formatter tree used for window generation, by changing the allocation processing to that for output, the referenced portion can be output (second embodiment).
(3) By saving the anchor state, the display can be restored even if the editing is temporarily suspended (third embodiment).
[0163]
Next, the operation of the document display generation unit 616 for displaying the secondary tree structure in the present embodiment will be described. The operation of the other parts is as described in any of the first to third embodiments.
[0164]
In order to display the document structure, processing is performed in accordance with the anchor state. Therefore, determination processing for that is necessary. FIG. 69 shows an anchor state determination algorithm.
[0165]
(Step S690)
Anchor information is acquired from the anchor management unit 612 and is set as a current anchor.
[0166]
(Step S691)
Checks whether the field referenced by the current anchor has a corresponding formatter. This is performed by examining the corresponding formatter 62d3 (FIG. 62 (c)) of the field shown in the reference field 62c3 (FIG. 62 (c)) of the current anchor.
If there is no formatter, it is determined to be SLEEP.
[0167]
(Step S692)
For the formatter obtained in step S691, it is checked whether or not the corresponding anchor 62a2 (FIG. 62 (a)) matches the current anchor. If it does not match the current anchor, it is determined to be ELSEWHERE.
[0168]
(Step S693)
For the formatter obtained in step S691, it is checked whether there is a corresponding window by using the corresponding window 62a3 (FIG. 62 (a)), and if there is no corresponding window, it is determined to be READY.
[0169]
(Step S694)
The window is checked whether it is the top window by the upper window 62b3 (FIG. 62 (b)). If a higher-level window is specified, it is a subwindow; otherwise, it is a top window. If it is not the top window, it is determined that it is SUB, and if it is the top window, it is determined that it is TOP.
[0170]
FIG. 70 is a structure display algorithm showing the processing of the document structure display generation unit 6161.
[0171]
[start]
(Step S700)
The partial structure display algorithm (B) is applied to the root anchor. [End]
[0172]
FIG. 71 shows a partial structure display algorithm.
(Step S711)
The anchor state is determined by the anchor state determination algorithm (A) of FIG. 69. If the state is ELSEWHERE or SLEEP, the process proceeds to step S712. If the state is READY, TOP, or SUB, the process proceeds to step S713.
[0173]
(Step S712)
If the result of the above determination is that the anchor state is ELSEWHERE or SLEEP, the corresponding anchor icon is displayed.
[0174]
(Step S713)
If the anchor status is READY, TOP, or SUB as a result of the determination, the corresponding icon is displayed.
[0175]
(Step S714)
It is checked whether or not there is an anchor in the field referred to by the anchor. If there is, go to the next step S715, otherwise return to the original routine.
[0176]
(Step S715)
Apply the substructure display algorithm (B) to all anchors in the field (recursive call).
[0177]
(Step S716)
A field display generation unit 6162 generates a graphic representing a field, and displays it on the display unit 617.
[0178]
According to the present embodiment, a plurality of secondary tree structures, that is, a history tree, a window tree, a formatter tree, and the like are clearly associated with each other, and as shown in FIG. be able to.
[0179]
【The invention's effect】
Conventionally, a simple secondary structure was generated from the network structure to simplify the handling of the network structure. However, the structure itself, its generation method, or its management method was simple. Because of this, it was difficult to express necessary information, perform allocation processing, and appropriately display windows in a hierarchical manner. According to the present invention, these problems can be solved.
[00180]
That is, according to the present invention, a network-type document can be easily processed by extracting a secondary tree structure from a network structure and using the secondary tree structure. By displaying the secondary tree structure to the user, the operation of the network type document by the user can be simplified.
[0181]
Further, according to the present invention, the reference history is managed as a tree structure having node candidates in the width direction and the reference order in the depth direction, and is presented to the user. And a document processing apparatus that can perform the processing.
In other words, the conventional history list is one of the secondary structures, but the structure is too simple to express all the information necessary for history management. According to the present invention, the history of the work progress can be expressed in an easy-to-understand manner by expressing the history with a tree structure generated secondarily from the network structure.
[0182]
According to the present invention, a tree structure to be allocated is generated from components of a network structure according to a simple instruction from a user. The tree structure to be assigned is a secondary tree structure. However, in the related art, the generation method was too simple, so that the user could not obtain a necessary structure. In the prior art, a tree structure to be allocated is generated by starting a search from a node selected by a user as a starting point and stopping by detecting a leaf or a loop, but the user can specify a required allocation target. could not. According to the present invention, a user can interactively generate a tree structure to be allocated as a secondary tree structure by presenting a structure that has been extracted by an arbitrary interpretation by a computer. The used allocation process becomes easy. That is, a means for generating a tree structure from the components of the network structure in accordance with an instruction from the user is provided, and by applying an allocation process to the generated tree structure, a necessary portion of the network structure is selected and allocated. A document processing device capable of processing can be obtained.
[0183]
Further, according to the present invention, it is possible to generate and manage a window hierarchy for displaying an arbitrary subtree structure in a network structure. Therefore, it becomes possible to use the outline editor, which has been conventionally used only for editing the tree structure, for editing the network structure.
[0184]
Further, according to the present invention, it is possible to obtain a network-type document processing apparatus capable of clearly associating a plurality of secondary tree structures, expressing all the structures in a unified manner, and simultaneously displaying them. As a result, in addition to the functions provided by the respective secondary tree structures, it is possible to provide the user with a further advanced operation of the network structure by combining them.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration corresponding to the invention of claim 1;
FIG. 2 is a block diagram showing a configuration of a first embodiment.
FIGS. 3A and 3B show the data structure of tree-structured data generated secondarily according to the first embodiment. FIG. 3A shows a history node, and FIGS. 3B and 3C show a history node and an anchor. Diagram showing reference relationships
4A and 4B are diagrams for explaining history management in a network-type document search function using a card-type interface. FIG. 4A is an example of a window displayed on a display, and FIGS. FIG. 10A shows a series of processes for searching for data, FIG. 10B shows a display example of a history tree according to the present embodiment corresponding to the window of FIG. 10A, and FIG. It is a display example.
5A is an example of a window displayed in the display, FIG. 5B is a display example of a history tree according to the present embodiment corresponding to the window of FIG. 5A, and FIG. Display example of history list by example
6A is an example of a window displayed in the display, FIG. 6B is an example of a history tree display according to the present embodiment corresponding to the window of FIG. 4A, and FIG. Display example of history list by example
7A is an example of a window displayed in the display, FIG. 7B is a display example of a history tree according to the present embodiment corresponding to the window of FIG. Display example of history list by example
8A is an example of a window displayed in the display, FIG. 8B is an example of a history tree display according to the present embodiment corresponding to the window of FIG. Display example of history list by example
9A is an example of a window displayed in the display, FIG. 9B is an example of a history tree display according to the present embodiment corresponding to the window of FIG. Display example of history list by example
FIG. 10A is an example of a window displayed in the display, FIG. 10B is an example of a history tree display according to the present embodiment corresponding to the window of FIG. Display example of history list by example
FIG. 11 is a flowchart of a field reference algorithm representing the content of processing of a field reference unit 24;
FIG. 12 is a flowchart of a history tree algorithm representing the contents of processing of a history tree management unit 25;
FIG. 13 is a flowchart of a history tree display algorithm representing the contents of processing of a history tree display generation unit 26;
14A and 14B are diagrams illustrating an example of a data structure of a network-type document used in the first embodiment. FIG. 14A illustrates a data structure of a field, FIG. 14B illustrates a data structure of an anchor, and FIG. Diagram showing reference relationships
FIG. Outline of a network-type document processing device using a tree structure to be allocated Diagram showing configuration
FIG. Use the tree structure to be allocated FIG. 2 is a block diagram illustrating a configuration of a network type document processing apparatus
FIG. ( a) is a formatter, (b) is an anchor, and (c) is a diagram showing a reference relationship between the formatter and the anchor.
FIG. 18 is a diagram illustrating an example of a tree structure expressing a document.
19 is a diagram showing a result of performing an allocation process on the tree structure of FIG. 18 according to the related art.
FIG. 20 is a view showing an example of expressing a document having the structure of FIG. 18;
FIG. 21 is a diagram showing a hierarchical structure of a formatter.
FIG. 22 is a diagram showing a hierarchical structure of a formatter and illustrating a process of an allocation process together with FIG. 23;
FIG. 23 is a diagram showing a hierarchical configuration of an area allocated by the formatter, and together with FIG. 22 is used to explain the process of allocation processing;
FIG. 24 is a diagram showing a simple example of a network structure.
FIG. 25 is a diagram showing an example in which a part of the network structure shown in FIG. 24 is displayed on a display;
FIG. 26 is a diagram showing an example of a subtree structure obtained from the network structure of FIG. 24 by a conventional technique.
FIGS. 27A to 27C show how a tree structure is designated from the network structure shown in FIG. 28; Figure .
FIG. 28 is a diagram illustrating an example of a network structure for explaining the embodiment;
FIGS. 29A and 29B are diagrams showing examples of a selection menu used in the allocation processing.
FIG. 30 is a diagram showing an example of referring to a tree structure displayed on a display (a thick line indicates a selected portion)
FIG. 31 is a diagram showing a formatter tree generated by selecting the tree structure shown in FIG. 30;
FIG. 32 is a diagram showing a result of performing the entire allocation processing using the formatter tree of FIG. 31;
FIG. 33 is a diagram showing another reference example of a tree structure;
FIG. 34 is a view showing the allocation result of FIG. 33;
FIG. 35 is a diagram showing a reference example in which the designations of FIG. 30 and FIG. 33 are performed at the same time;
FIG. 36 is a diagram showing a result of the assignment of FIG. 35;
FIG. 37 is a diagram showing a formatter tree generated by selecting the tree structure shown in FIG. 35;
38 is a diagram illustrating an example in which the entire logical structure of the tree structure illustrated in FIG. 18 is displayed, and a user specifies a rectangular area to define a partial tree structure.
FIG. 39 is a diagram showing a result of allocating the selected subtree structure of FIG. 38;
40 shows a formatter tree generated from the tree structure of the selected rectangular area in FIG. 38.
FIG. 41 is a diagram showing a flow of a formatter tree management algorithm representing processing contents of the formatter tree management unit 165.
FIG. 42 is a diagram showing a flow of a partial allocation processing algorithm in the processing of the formatter execution control unit 167.
FIG. 43 is a diagram illustrating a flow of a formatter tree display algorithm representing processing contents of the formatter tree display generation unit 166.
FIG. 44 Outline of network type document processing device using tree structure to be displayed Diagram showing configuration
FIG. 45 is a diagram illustrating a configuration of a network-type document processing apparatus that performs display by combining windows.
FIG. 46 ( a) is the data structure of the window, and (b) is the data structure of the anchor.
FIG. 47 is a diagram showing a reference relationship between a window tree and an anchor.
FIG. 48 is a diagram showing an example of a window display area.
FIG. 49 is a diagram for explaining a conventional window, in which (a) shows an example of a network structure, and (b) to (c) show card-type windows.
FIG. 50 is a diagram for explaining a conventional hierarchical window, where (a) is an example of a network structure and (b) is a menu for selecting a node;
FIG. 51 is a diagram showing a state in which the window of the document having the network structure shown in FIG.
FIG. 52 is a view showing a network structure including display information (TOP, SUB, OFF);
53A shows a window obtained from the display information and its structure in FIG. 52, FIG. 53B shows a corresponding window tree, and FIG. 53C shows a menu
54A and 54B are diagrams showing a case where a plurality of window trees and fields are shared, in which FIG. 54A shows that a state is maintained for each display, and FIG.
FIG. 55 (a) shows an example of a network structure in which only SUB information is described, FIG. 55 (b) shows an example of a window display in which a display area is designated by adding area information, and FIG. Illustration
FIG. 56 is a diagram showing the flow of a window tree management algorithm representing the processing contents of the window tree management unit 455.
FIG. 57 is a diagram showing a flow of a field display algorithm (A) representing processing contents of the field display generation unit 456.
FIGS. 58A and 58B are diagrams showing examples of results when the document structure shown in FIG. 28 is referred to in a certain procedure;
FIG. 59 is a diagram showing each tree structure when the display of FIG. 58 (a) is obtained, (a) showing a history tree, (b) showing a window tree, and (c) showing a formatter tree.
FIG. 60 2 Showing a configuration corresponding to the invention of FIG.
FIG. 61 2 Block diagram showing the configuration of the embodiment of FIG.
FIG. 62 2 6A and 6B show a data structure of the embodiment, in which FIG. 7A shows a formatter, FIG. 7B shows a window, FIG. 7C shows an anchor, and FIG.
FIG. 63 is a diagram showing a reference relationship among a formatter, an anchor, and a window.
FIG. 64 is a view showing a display example according to the fourth embodiment when the operation shown in FIG. 58 (b) is performed;
FIG. 65 is a diagram showing a display example in which an anchor icon is also used in a window for displaying a field to clarify the relationship with the display of a structure.
FIG. 66 is a diagram showing a definition of an anchor state based on a combination of a formatter and a window state;
FIG. 67 is a diagram showing an anchor icon corresponding to an anchor state;
FIG. 68 is a diagram defining a relationship between an anchor state and each tree structure extracted and displayed by the selection;
FIG. 69 is a diagram showing a flow of processing for determining an anchor state;
FIG. 70 is a diagram showing a flow of a structure display process in a document structure display generation unit 6161.
FIG. 71 is a diagram showing a flow of a partial structure display process in a document structure display generation unit 6161.
[Explanation of symbols]
11, 151, 441, 601: document management means, 12: logical unit reference means, 13: history tree structure management means, 151: tree structure allocation means, 153: allocation target tree structure management means, 442: display target tree structure management Means, 602: secondary tree structure display means, 603: secondary tree structure management means,
21, 161, 611: Document storage unit, 22, 162, 612: Document management unit, 221, 1621, 4521, 6121, ... Anchor management unit, 222, 1322, 4522, 6122 ... Field management unit, 23, 163, 454 , 613 ... input unit, 24 ... field reference unit, 241, 164, 454, 614 ... anchor field selection unit, 242 ... field display generation unit, 25 ... history tree management unit, 26 ... history tree display generation unit, 27, 168, 457, 617 display unit, 165, 615 formatter tree management unit, 166 formatter tree display generation unit, 455 window tree management unit, 616 document display generation unit, 6161 document structure display generation unit, 456 6162: Field display generation unit, 167, 618: Formatter execution control unit, 169, 6 9 ... the printing unit.

Claims (5)

所定の構成単位を関係づけて構成した文書構造を処理する装置において、
構成単位が文書の論理的なまとまりである論理単位であって、論理単位間の参照関係を規定する参照単位によって論理単位を関連づけた文書構造を管理する文書管理手段と、
利用者の指示に従って論理単位中の参照単位を特定し、その参照する論理単位を選択する論理単位選択手段、および選択された論理単位を表示する論理単位表示手段を備えた論理単位の参照を行なう論理単位参照手段と、
論理単位の参照の履歴を、参照された論理単位と、その参照時に他の候補となっていた参照単位を関連づけた木構造として管理する履歴木構造管理手段を具備することを特徴とするネットワーク型文書処理装置。
In an apparatus for processing a document structure configured by associating predetermined constituent units,
Document management means for managing a document structure in which a constituent unit is a logical unit that is a logical unit of a document, and the logical unit is related by a reference unit that defines a reference relationship between the logical units;
A reference unit in a logical unit is specified in accordance with a user's instruction, and a logical unit including a logical unit selecting unit for selecting the logical unit to be referred to and a logical unit display unit for displaying the selected logical unit is referred to. Logical unit reference means;
A network type management unit for managing a reference history of a logical unit as a tree structure that associates a referenced logical unit with a reference unit that has been another candidate at the time of the reference. Document processing device.
所定の構成単位を関係づけて構成した文書構造を処理する装
置において、
構成単位が文書の論理的なまとまりである論理単位であって、論理単位間の参照関係を規定する参照単位によって論理単位を関連づけた文書構造を管理する文書管理手段と、
文書構造から二次的に定義された木構造を管理する二次的木構造管理手段と、二次的木構造を文書構造あるいは、他の二次的木構造と関連づけて表示する二次的木構造表示手段と
を具備することを特徴とするネットワーク型文書処理装置。
In an apparatus for processing a document structure configured by associating predetermined constituent units,
Document management means for managing a document structure in which a constituent unit is a logical unit that is a logical unit of a document, and the logical unit is related by a reference unit that defines a reference relationship between the logical units;
Secondary tree structure management means for managing a tree structure defined secondary from a document structure, and a secondary tree for displaying the secondary tree structure in association with a document structure or another secondary tree structure A network type document processing apparatus comprising: a structure display unit.
複数の二次的木構造に係わる状態の組合せを、論理単位あるいは参照関係の表示規則に対応づけ、
二次的木構造表示手段が、文書構造の表示において、表示規則を適用することによって、
複数の二次的木構造と文書構造を関連づけて表示することを特徴とする請求項2記載のネットワーク型文書処理装置。
Associating a combination of states relating to a plurality of secondary tree structures with a display rule of a logical unit or a reference relation,
The secondary tree structure display means applies display rules in displaying the document structure,
3. The network-type document processing apparatus according to claim 2, wherein a plurality of secondary tree structures and a document structure are displayed in association with each other.
二次的木構造が、割り付け対象木構造、あるいは表示対象木構造、あるいは履歴木構造、あるいはそれらの任意の組合せであることを特徴とする請求項3記載の文書構造処理装置。4. The document structure processing apparatus according to claim 3, wherein the secondary tree structure is an allocation target tree structure, a display target tree structure, a history tree structure, or any combination thereof. 構成単位が文書の論理的なまとまりである論理単位であって、論理単位間の参照関係を規定する参照単位によって論理単位を関連づけた文書構造を管理する文書管理手段と、 利用者の指示に従って論理単位中の参照単位を特定し、その参照する論理単位を選択する論理単位選択手段、および選択された論理単位を表示する論理単位表示手段を備えた論理単位の参照を行なう論理単位参照手段と、 論理単位の参照の履歴を、参照された論理単位と、その参照時に他の候補となっていた参照単位を関連づけた木構造として管理する履歴木構造管理手段を具備するネットワーク型文書処理装置による文書処理方法であって、利用者の指示に従って論理単位中の参照単位を特定し、その参照する論理単位を選択するステップ(S1110)と、
前記選択された論理単位を表示するステップ (S1111) と、
前記参照単位により履歴木を探索し、対応する履歴ノードがあるか否かを調べ、履歴ノードがないときに前記参照単位に対応する履歴ノードを新しく生成し、履歴ノードの対応参照単位の欄に選択された前記参照単位へのポインタを格納し、その参照単位の参照する論理単位中にある参照単位のリストを履歴ノードにおける候補参照単位のリストとして格納するステップ(S120,S121)と、
参照中のカレントの論理単位に対応する履歴ノードを選択し、選択した履歴ノードの候補参照単位から対応する参照単位を削除するするステップ(S123,S124) と、
履歴ノードの子履歴ノードリストに、前記新しく生成した履歴ノードを加えるステップ(S125)と
を有することを特徴とする文書処理方法。
A document management unit that manages a document structure in which a constituent unit is a logical unit of a document as a logical unit and associates the logical unit with a reference unit that defines a reference relationship between the logical units, and a logical unit according to a user instruction. A logical unit selecting means for specifying a reference unit in the unit, a logical unit selecting means for selecting a logical unit to be referred to, and a logical unit displaying means for displaying the selected logical unit; A document by a network-type document processing apparatus including a history tree structure management unit that manages a history of referencing a logical unit as a tree structure that associates a referenced logical unit with a reference unit that was another candidate at the time of reference. A processing method, wherein a reference unit in a logical unit is specified according to a user's instruction, and a logical unit to be referred to is selected (S1110);
Displaying the selected logical unit (S1111);
Search the history tree by the reference unit, check whether there is a corresponding history node, and when there is no history node, newly generate a history node corresponding to the reference unit, in the column of the corresponding reference unit of the history node Storing a pointer to the selected reference unit and storing a list of reference units in a logical unit referred to by the reference unit as a list of candidate reference units in the history node (S120, S121);
Selecting a history node corresponding to the current logical unit being referred to and deleting the corresponding reference unit from the candidate reference units of the selected history node (S123, S124);
Adding the newly generated history node to the child history node list of the history node (S125).
JP07075193A 1993-03-08 1993-03-08 Network-type document processing apparatus and method using tree structure defined secondary Expired - Fee Related JP3590974B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07075193A JP3590974B2 (en) 1993-03-08 1993-03-08 Network-type document processing apparatus and method using tree structure defined secondary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07075193A JP3590974B2 (en) 1993-03-08 1993-03-08 Network-type document processing apparatus and method using tree structure defined secondary

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2003196703A Division JP4199610B2 (en) 2003-07-14 2003-07-14 Document display apparatus and method
JP2003196702A Division JP2004046866A (en) 2003-07-14 2003-07-14 Network type document processor using tree structure defined secondarily and document processing method by it

Publications (2)

Publication Number Publication Date
JPH06259312A JPH06259312A (en) 1994-09-16
JP3590974B2 true JP3590974B2 (en) 2004-11-17

Family

ID=13440534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07075193A Expired - Fee Related JP3590974B2 (en) 1993-03-08 1993-03-08 Network-type document processing apparatus and method using tree structure defined secondary

Country Status (1)

Country Link
JP (1) JP3590974B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3395347B2 (en) * 1994-04-12 2003-04-14 富士ゼロックス株式会社 Document processing device
JPH09204438A (en) * 1996-01-29 1997-08-05 Fuji Xerox Co Ltd Information retrieval support device
JP3279201B2 (en) * 1996-05-17 2002-04-30 富士ゼロックス株式会社 Information processing device
JPH10105550A (en) 1996-10-02 1998-04-24 Matsushita Electric Ind Co Ltd Hyper-text document preparing device
JPH10154096A (en) * 1996-11-21 1998-06-09 Nec Corp Data display method and its device
JP3945767B2 (en) 2002-09-26 2007-07-18 インターナショナル・ビジネス・マシーンズ・コーポレーション Text editing apparatus and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63165968A (en) * 1986-12-27 1988-07-09 Toshiba Corp Production/display system for tree structure diagram
JP3085383B2 (en) * 1989-11-01 2000-09-04 株式会社日立製作所 Document processing method
JPH03148754A (en) * 1989-11-06 1991-06-25 Fujitsu Ltd Document preparing device
JPH04171575A (en) * 1990-11-06 1992-06-18 Nippon Telegr & Teleph Corp <Ntt> Document structure converting processing system
JPH04288673A (en) * 1991-03-18 1992-10-13 Fuji Xerox Co Ltd Hypertext device

Also Published As

Publication number Publication date
JPH06259312A (en) 1994-09-16

Similar Documents

Publication Publication Date Title
KR100763323B1 (en) A method and system for extending the file system api
JP3714479B2 (en) File management method based on network structure, operation target display restriction program, and recording medium
US6003034A (en) Linking of multiple icons to data units
WO1998028696A1 (en) Computer software and user interface for information management
JPH05505262A (en) File characterization for computer operating and file management systems
JP2008508642A (en) Document processing and management method for generating a new document in a markup language environment using a new fragment and a new scheme
US20030071860A1 (en) System and method for managing graphical components
US5586239A (en) Computer controlled graphics display system for supporting information classification
US8769439B2 (en) Method for creation, management, and presentation of user-scoped navigation topologies for web applications
JPH022419A (en) Program information control system
US5469539A (en) Method for abstracting/detailing structuring elements of system specification information
JP3590974B2 (en) Network-type document processing apparatus and method using tree structure defined secondary
JPH06348481A (en) Macro preparation system and method
JP2000242490A (en) Software development managing device, information presenting device, and program recording medium
Kirkby et al. Weka explorer user guide for version 3-5-8
JP2789618B2 (en) Tree structure drawing system
JP3557622B2 (en) Data structure display device and data structure display method
JP3057794B2 (en) Hypertext device and hypertext generation method
JPH08137887A (en) Information storage and retrieval device
JPH0384661A (en) Document producing device
JPH06131334A (en) Page pointing document processor
JP3395347B2 (en) Document processing device
JP4199610B2 (en) Document display apparatus and method
JP4419584B2 (en) Input sheet system and program
JPH0744446A (en) Relating method for grouped information

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: 20040803

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040816

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20070903

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20080903

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090903

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100903

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees