JP3023696B2 - Document processing device - Google Patents

Document processing device

Info

Publication number
JP3023696B2
JP3023696B2 JP2207899A JP20789990A JP3023696B2 JP 3023696 B2 JP3023696 B2 JP 3023696B2 JP 2207899 A JP2207899 A JP 2207899A JP 20789990 A JP20789990 A JP 20789990A JP 3023696 B2 JP3023696 B2 JP 3023696B2
Authority
JP
Japan
Prior art keywords
allocation
logical
constraint
document
holding
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
JP2207899A
Other languages
Japanese (ja)
Other versions
JPH0492960A (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
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 filed Critical Fuji Xerox Co Ltd
Priority to JP2207899A priority Critical patent/JP3023696B2/en
Publication of JPH0492960A publication Critical patent/JPH0492960A/en
Application granted granted Critical
Publication of JP3023696B2 publication Critical patent/JP3023696B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は文書処理装置に関し、特に文書の論理構造か
ら特定割付け構造を生成する文書処理装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus, and more particularly to a document processing apparatus that generates a specific layout structure from a logical structure of a document.

〔従来の技術〕[Conventional technology]

文書の論理構造から文書の割付け構造を生成する文書
処理(以下、割付け処理という)技術としては、例え
ば、ODA(ISO8613:Information Processing−Text and
Office Systems−Office Document Architecture(OD
A)and Interchange Format(1989))やtnt(J.Ander
e,R.Furuta,V.Quint:Structured Documents,Cambridge
University Press(1989))にみられるように、論理構
造中の論理オブジェクトに付随する割付けに関する制約
条件(以下、割付け指示制約という)と、生成可能な割
付け構造の候補を記述した制約条件(以下、構造生成制
約という)とに基づいて割付け処理を行うものがある。
As a document processing (hereinafter referred to as “layout processing”) technique for generating a document layout structure from a logical structure of a document, for example, ODA (ISO8613: Information Processing-Text and
Office Systems-Office Document Architecture (OD
A) and Interchange Format (1989)) and tnt (J. Ander
e, R.Furuta, V.Quint: Structured Documents, Cambridge
As seen in University Press (1989)), constraints on assignments associated with logical objects in a logical structure (hereinafter referred to as assignment instruction constraints) and constraints describing candidates for assignable structures that can be generated (hereinafter referred to as assignment constraints). (Referred to as a structure generation constraint).

割付け指示制約には、例えば、『この論理オブジェク
ト以下の構造はある特定の枠内にすべて割付けられねば
ならない』、などがある。
The assignment instruction constraint includes, for example, "All structures below this logical object must be assigned in a specific frame."

また構造生成制約には、例えば、『このページは本文
用のフレームと、もし必要ならば、脚注用のフレームと
をそのページの内側に含む』、などがある。
Further, the structure generation constraint includes, for example, "this page includes a frame for the text and, if necessary, a frame for footnote inside the page".

割付け処理は、割付け指示制約と構造生成制約の2種
類の制約を満たしつつ行われなければならないが、生成
可能な割付け構造は多数の候補があり、その割付け構造
が適当であるかは、割付けの対象となる論理構造が持つ
内容の分量と割付け指示制約に依存する。このため、文
書の論理構造と2種類の制約とが与えられた時に、割付
け処理を実行する処理装置が、それらの情報から適当な
割付け構造を推論するのは困難である。
The allocation process must be performed while satisfying two types of constraints, an allocation instruction constraint and a structure generation constraint. There are many candidates for an allocation structure that can be generated, and it is determined whether the allocation structure is appropriate. It depends on the amount of content of the target logical structure and the assignment instruction constraint. For this reason, when the logical structure of the document and the two types of restrictions are given, it is difficult for the processing device that executes the allocation process to infer an appropriate allocation structure from the information.

そこで、実際に、ある割付け構造の候補を選択して割
付けを行い、その割付けが失敗したならば割付けのやり
直しができるように、別の候補を選択できる状態に遡る
という処理(以下、バックトラック処理という)を行
い、その後、割付け処理を再開する、という試行錯誤的
な文書処理方式が考えられた。
Therefore, a process of actually selecting a candidate of a certain allocation structure and performing allocation, and if the allocation fails, returning to a state where another candidate can be selected so that the allocation can be performed again (hereinafter referred to as backtrack processing) ), And then restart the layout process.

この文書処理方式としては、例えば、 :「林、斎藤、石田、村田:ODA文書処理システムの試
作(3)−割付け処理−,情報処理学会第37回全国大会
講演論文集(1988年9月12日)。
Examples of this document processing method include: “Hayashi, Saito, Ishida, Murata: Prototype of ODA Document Processing System (3)-Layout Processing”, Proc. Of the 37th Annual Conference of IPSJ (September 12, 1988) Day).

:「村上、山口、松平、上原、鍵政:ODAに基づいた文
書割付け処理の実現方式(1)−再試行の課題−、情報
処理学会第40回全国大会講演論文集(1990年3月14
日)。
: "Murakami, Yamaguchi, Matsudaira, Uehara, Kagimasa: Realization of Document Allocation Processing Based on ODA (1)-Retry Issues-, Proc. Of the 40th National Convention of IPSJ, March 14, 1990
Day).

:「松平、山口、上原、:ODAに基づいた文書割付け処
理の実現方式(2)−自動割付けにおける効率の考案
−、情報処理学会第40回全国大会講演論文集(1990年3
月14日)。
: "Matsudaira, Yamaguchi, Uehara,: Realization method of document layout processing based on ODA (2)-Devising efficiency in automatic layout-, Proc. Of the 40th Annual Conference of IPSJ (March 1990)
March 14).

:「山口、松平、上原、鍵政:ODAに基づいた文書割付
け処理の実現方式(3)−繰り返し構造の処理方式−、
情報処理学会第40回全国大会講演論文集(1990年3月14
日)。
: "Yamaguchi, Matsudaira, Uehara, Kagimasa: Realization method of document allocation processing based on ODA (3)-Processing method of repetition structure-,
Proc. Of the 40th National Convention of IPSJ (March 14, 1990)
Day).

などの文献(講演論文集)に記載されたものが知られて
いる。
Such documents described in literatures (collections of lecture papers) are known.

これらの文献に記載された文書処理方式に対応すべく
処理装置においては、割付け構造の生成の過程で何度か
誤った選択を行う可能性があるものの、最終的には制約
条件を満たす正しい割付け構造を、人手によらず自動的
に生成できるようになると考えられた。
In order to cope with the document processing method described in these documents, the processing device may make an incorrect selection several times in the process of generating the allocation structure, but eventually correct allocation that satisfies the constraints. It was thought that the structure could be generated automatically without manual intervention.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかしながら、上述した各文献には、バックトラック
のために構造生成制約に基づく代替候補を保持し、バッ
クトラック処理が起動された際に代替候補を提示するた
めの具体的な手段については記載されているものの、バ
ックトラック処理を起動させるための具体的な手段に関
しては記載されていない。
However, in each of the above-mentioned documents, specific means for holding an alternative candidate based on the structure generation constraint for the backtrack and presenting the alternative candidate when the backtrack process is activated is described. However, no specific means for activating the backtracking process is described.

このため、処理装置が、ある論理オブジェクトに付随
している割付け指示制約を満たすべくして選択した割付
けオブジェクトへ内容を割付けて、その後の処理を進め
たときに問題となる。
For this reason, there is a problem when the processing device allocates the content to the allocation object selected in order to satisfy the allocation instruction constraint attached to a certain logical object, and proceeds with the subsequent processing.

このとき、処理を進めた結果、その割付け指示制約を
満たし得ないことが分かる場合と、その割付け指示制約
は満たされるものの、その割付けオブジェクトを生成す
るために選んだ構造生成制約の選択肢が不適当である場
合とが発生しうる。
At this time, as a result of the processing, it is found that the assignment instruction constraint cannot be satisfied, or the assignment instruction constraint is satisfied but the option of the structure generation constraint selected for generating the assigned object is inappropriate. May occur.

前者の割付け失敗例としては、 I)ある段落に『ある特定の枠内にその全ての内容を割
付ける』という割付け指示制約があるとした場合に、あ
る枠を選んでその段落を割付けてみたところ、その枠の
余白よりもその段落の内容が多くて、その段落がその枠
から溢れてしまったというものが挙げられる。
As an example of the former assignment failure, I) when a certain paragraph has an assignment instruction constraint of "assigning all the contents in a certain frame", I selected a certain frame and assigned the paragraph However, there is a case where the content of the paragraph is larger than the margin of the frame, and the paragraph overflows from the frame.

一方、後者の割付け失敗例としては、 II)ある段落に『ある特定のページ内に割付ける』とい
う割付け指示制約があるとした場合に、これを割付ける
ために本文用の枠と脚注用の枠の二つの枠を持つページ
を選んだ際に、本文用の枠にはその段落が全て収まった
ものの、段落中に脚注がなく脚注用の枠が空になってし
まったというものが挙げられる。
On the other hand, examples of the latter layout failure include: II) If a certain paragraph has a layout instruction constraint of "layout within a specific page", a frame for the text and a When you select a page with two frames, the text frame contains all the paragraphs, but there are no footnotes in the paragraph and the footnote frame is empty. .

これらの割付け失敗例IおよびIIのいずれの場合にお
いても、従来の文書処理方式においては、現在の割付け
構造の候補が間違いであり、バックトラック処理を呼び
出さなければならないと判断するための手段が存在しな
い。特に、失敗例Iのように、構造生成制約を満たす
が、割付け指示制約を満たさない場合において、従来の
文書処理方式では生成途中に処理をやり直すことができ
ない。
In both of the cases I and II of the allocation failure, in the conventional document processing method, there is a means for determining that the current allocation structure candidate is incorrect and that the backtracking processing must be called. do not do. In particular, when the structure generation constraint is satisfied but the assignment instruction restriction is not satisfied as in Failure Example I, the conventional document processing method cannot restart the process during the generation.

従って、一度、試行的に特定の割付け構造を生成した
後、バックトラック処理を起動しなければならないの
で、不必要な割付けオブジェクトの生成及び削除を行わ
なければならず、割付け処理を迅速に行うことは極めて
困難である。
Therefore, the backtracking process must be started once after a specific allocation structure is generated on a trial basis, so that unnecessary allocation objects must be generated and deleted, and the allocation process must be performed quickly. Is extremely difficult.

本発明は上記実情に鑑みてなされたものであり、割付
け構造の生成中に、選択された割付けオブジェクトが割
付け指示制約を満たさなくなったときに、バックトラッ
ク処理を呼び出すことができる文書処理装置を提供する
ことを目的とする。
The present invention has been made in view of the above circumstances, and provides a document processing apparatus capable of calling backtrack processing when a selected allocation object does not satisfy an allocation instruction constraint during generation of an allocation structure. The purpose is to do.

〔課題を解決するための手段〕[Means for solving the problem]

上述した目的を達成するため、本発明では、複数の論
理オブジェクトから構成される論理構造を有する文書の
内容を、該論理オブジェクトに付随する割付け指示制約
および生成可能な割付け構造の候補を記述する構造生成
制約にしたがって割り付けることにより、複数の割付け
オブジェクトから構成される該文書の割付け構造を生成
する文書処理装置において、前記文書の論理構造を保持
する論理構造保持手段(第1図の1)と、前記割付け指
示制約および前記構造生成制約を含む文書の割付けに関
する制約条件を保持する制約保持手段(第1図の3)
と、前記論理構造保持手段に保持された前記文書の論理
構造および前記制約保持手段に保持された制約条件に基
づき前記文書の割付け構造を生成する割付け構造生成手
段(第1図の4)と、前記割付け構造生成手段により生
成された割付け構造を保持する割付け構造保持手段(第
1図の2)と、前記割付け指示制約が与えられた論理オ
ブジェクトに対応付けて該論理オブジェクトに基づき生
成された割付けオブジェクトおよび該論理オブジェクト
に与えられた割付け指示制約を保持する対応付け手段
(第2図の51)を有し、前記割付け構造生成手段による
生成中の割付け構造が前記対応付け手段に保持された割
付け指示制約を満足しなくなった場合はこれを検出する
検出手段(第1図の5)と、前記検出手段の検出出力お
よび前記制約保持手段に保持された制約条件に基づき前
記割付け構造保持手段に保持されている割付け構造の破
棄を行って前記構造生成制約を満足する別の割付け構造
の候補を選択可能な状態にして前記割付け構造生成手段
に対して割付けのやり直しを指示するバックトラック手
段(第1図の6)とを具備することを特徴とする。
In order to achieve the above object, according to the present invention, a content of a document having a logical structure composed of a plurality of logical objects is stored in a structure that describes an assignment instruction constraint associated with the logical object and a candidate of a layout structure that can be generated. In a document processing apparatus for generating a layout structure of a document including a plurality of layout objects by allocating according to a generation constraint, a logical structure holding unit (1 in FIG. 1) for storing a logical structure of the document; Constraint holding means (3 in FIG. 1) for holding constraint conditions related to document assignment including the assignment instruction constraint and the structure generation constraint.
Allocation structure generating means (4 in FIG. 1) for generating an allocation structure of the document based on the logical structure of the document held by the logical structure holding means and the constraint conditions held by the constraint holding means; Allocation structure holding means (2 in FIG. 1) for holding the allocation structure generated by the allocation structure generation means, and an allocation generated based on the logical object in association with the logical object given the allocation instruction constraint 2. Assignment means (51 in FIG. 2) for holding the assignment instruction constraint given to the object and the logical object, wherein the assignment structure being generated by the assignment structure generation means is held in the association means. Detecting means (5 in FIG. 1) for detecting when the instruction constraint is no longer satisfied, the detection output of the detecting means and the constraint holding means. The allocation structure generation unit deletes the allocation structure stored in the allocation structure storage unit based on the constraint conditions stored in the allocation structure generation unit and sets another allocation structure candidate satisfying the structure generation constraint to a selectable state. And backtrack means (6 in FIG. 1) for instructing re-assignment to the program.

〔作用〕[Action]

本発明の文書処理装置では、文書の論理構造から所定
の制約条件に適合するように特定の文書の割付け構造を
生成して行き、この生成中に対応付け手段に保持された
割付け指示制約を満足しなくなった場合はこれを検出手
段で検出し、バックトラック手段は、この検出手段の検
出出力および前記制約保持手段に保持された制約条件に
基づき前記割付け構造保持手段に保持されている割付け
構造の破棄を行って前記構造生成制約を満足する別の割
付け構造の候補を選択可能な状態にして前記割付け構造
生成手段に対して割付けのやり直しを指示する。
In the document processing apparatus according to the present invention, an assignment structure of a specific document is generated from the logical structure of the document so as to conform to a predetermined constraint condition, and the assignment instruction constraint held by the associating means is satisfied during the generation. If no longer, the detection means detects this, and the backtracking means detects the allocation structure held in the allocation structure holding means based on the detection output of the detection means and the constraint conditions held in the constraint holding means. Discarding is performed so that another allocation structure candidate that satisfies the structure generation constraint is made selectable, and the allocation structure generation means is instructed to redo the allocation.

従って、この発明によれば、不必要な割付け構造(割
付けオブジェクト)の生成および削除を最小限に抑制す
ることができ、割付け処理を迅速に行うことができる。
Therefore, according to the present invention, generation and deletion of unnecessary allocation structures (allocated objects) can be suppressed to a minimum, and allocation processing can be performed quickly.

〔実施例〕〔Example〕

以下、本発明の実施例を添付図面を参照して説明す
る。
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

第1図は本発明に係る文書処理装置を適用した装置の
一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an apparatus to which a document processing apparatus according to the present invention is applied.

この実施例では、ODA(ISO8613:Information Process
ing−Text and Office Systems−Office Document Arch
itecture(ODA)and Interchange Format(1989)):
(オフィス文集編集・交換アーキテクチャ)に基づいた
割付け処理を行う文書処理装置に適用している。
In this example, ODA (ISO8613: Information Process
ing-Text and Office Systems-Office Document Arch
itecture (ODA) and Interchange Format (1989)):
It is applied to a document processing device that performs an allocation process based on (office textbook editing / exchange architecture).

第1図に示す文書処理装置は、複数の論理オブジェク
トから構成される論理構造を有する文書の内容を、 1)論理オブジェクトに付随する割付け指示制約 2)生成可能な割付け構造の候補を記述する構造生成制
約 にしたがって割り付けることにより、複数の割付けオブ
ジェクトから構成される該文書の割付け構造を生成す
る。
The document processing apparatus shown in FIG. 1 is used to store the contents of a document having a logical structure composed of a plurality of logical objects. By allocating according to the generation constraint, an allocation structure of the document including a plurality of allocation objects is generated.

さて、第1図において、文書処理装置は、文書の論理
構造を保持する論理構造保持手段1と、文書の割付け構
造を保持する割付け構造保持手段2と、文書の割付けに
関する制約条件(上述した割付け指示制約と構造生成制
約とを含む)を保持する制約保持手段3と、論理構造保
持手段1に保持された文書の論理構造および制約保持手
段3に保持された制約条件に基づき文書の割付け構造を
生成する割付け構造生成手段4と、割付け構造生成手段
4による生成中の割付け構造が上記割付け指示制約を満
足しなくなった場合はこれを検出する検出手段5と、該
検出手段5によって上記割付け指示制約に適合しなくな
ったことが検出された際に、制約保持手段に保持された
制約条件に基づき前記割付け構造保持手段に保持されて
いる割付け構造の破棄を行って前記構造生成制約を満足
する別の割付け構造の候補を選択可能な状態にし、割付
け構造生成手段4に対して割付けのやり直しを指示する
バックトラック手段6とを有して構成されている。
In FIG. 1, the document processing apparatus includes a logical structure holding unit 1 for holding a logical structure of a document, an allocation structure holding unit 2 for holding an allocation structure of a document, and a constraint condition regarding the allocation of the document (the above-described allocation). Constraint holding means 3 for holding instruction constraints and structure generation constraints), and a document layout structure based on the logical structure of the document held by the logical structure holding means 1 and the constraint conditions held by the constraint holding means 3. The allocation structure generating means 4 to be generated, the detecting means 5 for detecting when the allocation structure being generated by the allocation structure generating means 4 no longer satisfies the allocation instruction constraint, and the detecting means 5 for detecting the allocation instruction restriction. When it is detected that the assignment structure is no longer compatible, the assignment structure held in the assignment structure holding means is broken based on the constraint conditions held in the constraint holding means. And a backtrack unit 6 for instructing the allocation structure generation unit 4 to re-assign the allocation to another allocation structure candidate satisfying the structure generation constraint. .

第2図は上記第1図に示した検出手段5をさらに詳細
に示した文書処理装置を示すブロック図である。
FIG. 2 is a block diagram showing a document processing apparatus showing the detecting means 5 shown in FIG. 1 in further detail.

同図に示すように、検出手段5は、割付け指示制約が
与えられた論理オブジェクトに対応付けて該論理オブジ
ェクトに基づき生成された割付けオブジェクトおよび該
論理オブジェクトに与えられた割付け指示制約(属性
名)を保持する対応付け手段51と、検査の対象となって
いる論理オブジェクトを記憶する検査対象記憶手段52
と、論理構造保持手段1中の情報を利用して、検査の対
象を変更する検査対象変更手段53と、ある割付けオブジ
ェクトより下位に何も割り付けられていない構造がある
かを判定する空構造判定手段54と、論理構造保持手段1
中の情報を利用して、ある論理オブジェクトが別の論理
オブジェクトの下位構造に含まれているかを判定する論
理的上下関係判定手段55と、割付け構造保持手段中の情
報を利用して、ある割付けオブジェクトがある別の割付
けオブジェクトの下位構造に含まれているかを判定する
割付け的上下関係判定手段56と、割付け構造生成手段4
に接続され、その割付け構造生成手段4と情報のやり取
りを行うとともに、前記各手段を制御して検出の過程を
制御する検出過程制御手段57とを有して構成されてい
る。
As shown in the figure, the detecting means 5 assigns an assignment object generated based on the logical object in association with the logical object to which the assignment instruction constraint is assigned, and an assignment instruction constraint (attribute name) assigned to the logical object. And an inspection object storage means 52 for storing a logical object to be inspected.
Inspection object changing means 53 for changing the object of inspection using information in the logical structure holding means 1 and empty structure judgment for judging whether there is any structure below a certain allocation object. Means 54 and logical structure holding means 1
The logical hierarchical relation determining means 55 for determining whether a certain logical object is included in the lower-level structure of another logical object by using the information in the Assignable hierarchical relationship determining means 56 for determining whether an object is included in a lower-level structure of another assigned object;
And a detection process control unit 57 for exchanging information with the allocation structure generation unit 4 and controlling the above units to control the detection process.

この実施例において、検出手段5による上記割付け指
示制約を満足しているかについての検査は、大きく二つ
の段階に分かれている。
In this embodiment, the inspection by the detecting means 5 as to whether or not the above assignment instruction restriction is satisfied is roughly divided into two stages.

第一段階は、「“layout object class"属性を満たす
であろうとして選ばれた割付けオブジェクトに対して、
当該割付けオブジェクトの下位の割付けオブジェクトに
割付けるべき内容がなくなった時に、その下位の割付け
オブジェクトにまだ何も割付けられていないものがない
か」である。
The first step is for an assigned object chosen to meet the “layout object class” attribute,
When there is no more content to be allocated to the lower allocation object of the allocation object, is there anything still not allocated to the lower allocation object? "

第二段階は、「“layout object class"、“indivisi
bility"、又は“same layout object"属性を満たすであ
ろうとして選ばれた割付けオブジェクトに対して、当該
割付けオブジェクトの下位の割付けオブジェクトに割付
けるべき内容があるときに、当該割付けオブジェクトの
下位以外の割付けオブジェクトに割付けが起こらない
か」である。
The second stage is “layout object class”, “indivisi
abilities "or" same layout object "attribute, when there is content to be assigned to an assigned object below the assigned object, the contents other than those below the assigned object are assigned. Does the assignment occur in the assigned object? "

なお、周知のように、上述した“layout object clas
s"、“indivisibility"、“same layout object"の各属
性は、上記ODAに定義されている割付け指示制約の一部
の属性である。また、それらの属性のうち、一つ、又は
複数の属性をある論理オブジェクトに対応付けすること
ができる。
As is well known, the above-mentioned “layout object clas
Each attribute of "s", "indivisibility", and "same layout object" is a part of attributes of the assignment instruction constraint defined in the above ODA, and one or more of these attributes Can be associated with a certain logical object.

なお、この実施例では、論理構造保持手段1、割付け
構造保持手段2、制約保持手段3、検査対象記憶手段52
は、メモリで構成されている。
In this embodiment, the logical structure holding unit 1, the allocation structure holding unit 2, the constraint holding unit 3, the inspection target storage unit 52
Is composed of a memory.

また、割付け構造生成手段4、バックトラック手段
6、対応付け手段51、検査対象変更手段53、空構造判定
手段54、論理的上下関係判定手段55、割付け的上下関係
判定手段56、検出過程制御手段57は、それぞれ各手段の
機能を達成させるためのプログラムで構成されており、
例えば中央処理装置が前記各プログラムを実行すること
により実現される。なお、これらの各手段は、各ソフト
ウェア(プログラム)で構成して中央処理装置で実行す
ることにより実現するようにしているが、勿論、ハード
ウェアやファームウェアで構成して実現するようにして
も良い。
Further, the allocation structure generating means 4, the backtracking means 6, the associating means 51, the inspection object changing means 53, the empty structure determining means 54, the logical vertical relation determining means 55, the allocation vertical relation determining means 56, the detection process control means 57 consists of programs for achieving the function of each means,
For example, it is realized by the central processing unit executing each of the programs. Each of these means is realized by being constituted by each software (program) and executed by the central processing unit, but may be realized by being constituted by hardware or firmware. .

次に、上述した構成において、文書処理装置の生成中
の割付け構造が制約条件に適合しているかの検出処理の
動作を第3図に基づいて説明する。
Next, with reference to FIG. 3, an operation of detecting whether or not the layout structure being generated by the document processing apparatus conforms to the constraint conditions in the above-described configuration will be described.

最初に、割付け構造生成手段4は、論理構造保持手段
1に格納されている、まだ割付けられていない一つの論
理オブジェクトを選び、次に、割付け構造保持手段2と
制約保持手段3とを調べて、上記選んだ論理オブジェク
トの割付け先として、適切な割付けオブジェクトを、割
付け構造保持手段3に格納されているものの中から選
ぶ。
First, the allocation structure generation means 4 selects one unallocated logical object stored in the logical structure storage means 1 and then examines the allocation structure storage means 2 and the constraint storage means 3. As an assignment destination of the selected logical object, an appropriate assignment object is selected from those stored in the assignment structure holding means 3.

これは、既に割付け構造保持手段2に格納されている
割付け構造を利用するということであり、その一例とし
て、論理構造(ODAでは共通割付け構造に相当する)か
ら生成可能な全ての特定の割付け構造に共通な最小の割
付け構造を利用する方法がある。その最小の割付け構造
に関しては、本願発明の出願人が先に出願した特願平2
−157068号に開示されている。
This means that the allocation structure already stored in the allocation structure holding means 2 is used. As an example, all the specific allocation structures that can be generated from the logical structure (corresponding to the common allocation structure in ODA) are used. There is a method of utilizing the minimum allocation structure common to all the methods. Regarding the minimum allocation structure, Japanese Patent Application No. Hei.
No. 157068.

ところで、割付け構造生成手段4は、割付け構造保持
手段2に適切なものがなければ、制約保持手段3に保持
されている制約条件に基づいて、適切な割付けオブジェ
クトを生成し、割付け構造保持手段2に格納する。
By the way, if there is no appropriate one in the allocation structure holding means 2, the allocation structure generation means 4 generates an appropriate allocation object based on the constraint conditions held in the constraint holding means 3, and To be stored.

次に、割付け構造生成手段4は、論理オブジェクト
と、その割付けオブジェクトとを選んだ後、検出手段5
に起動信号を送る。
Next, the allocation structure generating means 4 selects the logical object and the allocated object,
To the start signal.

これによって、割付け処理全体の制御が検出手段5に
移り、ここで今まで割り付けられたものが割付け指示制
約を満たしているかどうかが検査される。
As a result, control of the entire allocation process is transferred to the detection means 5, where it is checked whether or not what has been allocated satisfies the allocation instruction constraint.

なお、この実施例では、割付け構造生成手段4によっ
て選ばれている論理オブジェクト及び割付けオブジェク
トを、それぞれ『選ばれている論理』及び『選ばれてい
る割付け』ということにする。
In this embodiment, the logical object and the allocation object selected by the allocation structure generating means 4 are referred to as “selected logic” and “selected allocation”, respectively.

割付け処理全体の制御権が与えられた検出手段5で
は、まず第一段階の検査を実行する。
The detection means 5 to which the control of the entire allocation process has been given first performs the first-stage inspection.

割付け構造生成手段4からの起動信号は検出過程制御
手段57に入力され、この検出過程制御手段57は、検査対
象の初期化を行った後、割付け構造生成手段4に対し
て、『選ばれている論理』を問い合わせる。そして問い
合わせ結果が返ってきたら、検査対象変更手段53に対し
て、『選ばれている論理』の論理順位上一つ前の論理オ
ブジェクトを、検査対象記憶手段52に格納するように命
令する。
The activation signal from the allocation structure generation means 4 is input to the detection process control means 57. After the detection process control means 57 initializes the inspection object, the detection process control means 57 Logic is inquired. Then, when the inquiry result is returned, the inspection object changing unit 53 is instructed to store the logical object immediately before in the logical order of “selected logic” in the inspection object storage unit 52.

すると、第3図に示すように、検査対象変更手段54
は、論理構造保持手段1を探索して、命令に適合する論
理オブジェクトを検査対象記憶手段53に格納して(ステ
ップ101)、検出過程制御手段57に対して命令を実行し
た旨の信号を送る。
Then, as shown in FIG.
Searches the logical structure holding unit 1 and stores a logical object conforming to the instruction in the inspection target storage unit 53 (step 101), and sends a signal to the detection process control unit 57 that the instruction has been executed. .

これにより検出過程制御手段57は、検査対象記憶手段
52中の論理オブジェクト(以下、『検査対象』という)
が、『選ばれている論理』の直上の論理オブジェクトで
あるか調べるように論理的上下関係判定手段55に命令す
る。この論理的上下関係判定手段55は、論理構造保持手
段1を探索して、命令に対する結果を返す(ステップ10
2)。
As a result, the detection process control means 57
Logical objects in 52 (hereinafter referred to as "objects to be inspected")
Is instructed to check if it is a logical object immediately above “the selected logic”. The logical hierarchical relationship determining means 55 searches the logical structure holding means 1 and returns a result for the instruction (step 10).
2).

もし、『検査対象』が『選ばれている論理』の直上の
論理オブジェクトの場合は、第一段階の検査は不要なの
で、検出過程制御手段57は、第二段階の検査に移行す
る。
If the “inspection target” is a logical object immediately above the “selected logic”, the first-stage inspection is unnecessary, and the detection process control unit 57 shifts to the second-stage inspection.

一方、そうでない場合、検出過程制御手段57は、『検
査対象』が条件Iを満足するかどうか調べる(ステップ
103)。
On the other hand, if not, the detection process control means 57 checks whether or not the “test target” satisfies the condition I (step
103).

ここで、条件Iは、『検査対象』に、対応付け手段51
によって割付けオブジェクトが対応付けられており、か
つ、その対応付けの属性名が“layout object class"で
あることである。
Here, the condition I corresponds to “inspection target” with the associating means 51.
And the attribute name of the association is “layout object class”.

もし、『検査対象』がこの条件Iに適合した場合は、
空構造判定手段54は、検出過程制御手段57からの、『検
査対象』が条件IIを満足するかどうかを調べることを示
す命令に応答すべく、割付け構造保持手段1を探索し
て、『検査対象』が条件IIを満足するかどうか調べ(ス
テップ104)、その結果を検出過程制御手段57に返す。
If the "test object" meets this condition I,
The empty structure judging means 54 searches the allocation structure holding means 1 in response to a command from the detection process control means 57 indicating that the “inspection object” satisfies the condition II, and executes the “inspection”. It is checked whether or not "object" satisfies the condition II (step 104), and the result is returned to the detection process control means 57.

ここで、条件IIは、対応付け手段51によって『検査対
象』と対応付けられている割付けオブジェクトの下位構
造に何も割付けられていない割付けオブジェクトが存在
しないことである。
Here, the condition II is that there is no assigned object to which nothing is assigned in the lower-level structure of the assigned object associated with the “inspection target” by the association means 51.

さて、上記ステップ103で条件Iを満足しない場合
(空構造判定手段54に対して問い合わせが必要がない場
合)と、上記ステップ104で条件IIを満足する場合(空
構造判定手段54に対して問い合わせた結果、対応付けら
れている割付けオブジェクトの下位には全て割付けられ
ていることが分かった場合)には、検出過程制御手段57
は、検査対象変更手段53に対して、『検査対象』を現在
の『検査対象』の直上の論理オブジェクトに変更するよ
うに命令する。
By the way, when the condition I is not satisfied in the step 103 (when there is no need to make an inquiry to the empty structure determining means 54), and when the condition II is satisfied in the step 104 (when the inquiry is made to the empty structure determining means 54) As a result, when it is found that all the objects are allocated under the allocated object), the detection process control unit 57
Commands the inspection object changing means 53 to change the “inspection object” to the logical object immediately above the current “inspection object”.

検査対象変更手段53は、論理構造保持手段1を探索し
て、命令に適合する論理オブジェクトを検査対象記憶手
段52に格納して、検出過程制御手段57に命令を実行した
旨の信号を送る(ステップ105)。
The inspection object changing unit 53 searches the logical structure holding unit 1, stores a logical object conforming to the instruction in the inspection object storage unit 52, and sends a signal to the effect that the instruction has been executed to the detection process control unit 57 ( Step 105).

このステップ105の処理が終了した後は、上記ステッ
プ102に戻りこのステップ以降が実行される。
After the process of step 105 is completed, the process returns to step 102, and the steps after this step are executed.

ところで、上記ステップ104で条件IIを満足しない場
合(空構造判定手段54からの問い合わせ結果が、対応付
けられている割付けオブジェクトの下位構造に何も割付
けられていない割付けオブジェクトが存在している旨の
場合)は、その割付けオブジェクトの下位に、もう割付
けるべき内容がないにもかかわらず、余った割付け構造
が存在することになるので、検出過程制御手段57は、バ
ックトラック手段6に対して起動のための信号を送り、
割付け処理全体の制御をバックトラック手段6に引き渡
す(ステップ106)。
By the way, if the condition II is not satisfied in the above step 104 (the inquiry result from the empty structure judging means 54 indicates that there is an allocated object to which nothing is allocated to the lower-level structure of the allocated allocated object. In the case, the surplus allocation structure exists even though there is no more content to be allocated below the allocation object. Send a signal for
The control of the entire allocation process is transferred to the back track means 6 (step 106).

そして検査の第二段階に移行する条件が整うまで、こ
の一連の操作(ステップ101〜106)が繰り返される。
This series of operations (steps 101 to 106) is repeated until the conditions for shifting to the second stage of the inspection are satisfied.

ところで、制御権を与えられたバックトラック手段6
では、割付け構造保持手段2と制約保持手段3とを調べ
て、割付け処理が再開可能な構造を探し出し、この結
果、該当する構造が見つかった場合は、その制約に適合
するように、割付け構造保持手段2に保持されている割
付け構造に対し、割付けオブジェクトの追加、あるいは
破棄を行う。その後、割付け構造生成手段4にバックト
ラックしたことを示す信号を送ることになる。
By the way, the backtrack means 6 given the control right
Then, the allocation structure holding unit 2 and the constraint holding unit 3 are checked to find a structure from which the allocation processing can be restarted. If a corresponding structure is found as a result, the allocation structure holding unit matches the restriction. An assignment object is added to or destroyed from the assignment structure held by the means 2. After that, a signal indicating backtracking is sent to the allocation structure generating means 4.

さて、検査の第一段階が満足した場合に(ステップ10
2:YES)、検出過程制御手段57は第二段階の検査を実行
する。
Now, if the first stage of the inspection is satisfied (Step 10
2: YES), the detection process control means 57 executes the second stage inspection.

この第二段階の検査においては、まず、検出過程制御
手段577、割付け構造生成手段4に対して、『選ばれて
いる論理』を問い合わせる。そして問い合わせの結果が
返ってきたら、検査対象変更手段53に対して、『選ばれ
ている論理』を『検査対象』にするように命令する。
In the inspection at the second stage, first, the detection process control unit 577 and the allocation structure generation unit 4 are inquired about the “selected logic”. Then, when the result of the inquiry is returned, the inspection target changing unit 53 is instructed to change the “selected logic” to the “inspection target”.

検査対象変更手段53は、論理構造保持手段1を探索し
て、その命令に適合する論理オブジェクトを検査対象記
憶手段52に格納して、検出過程制御手段57に命令を実行
した旨の信号を送る(ステップ107)。
The inspection object changing unit 53 searches the logical structure holding unit 1, stores a logical object conforming to the instruction in the inspection object storage unit 52, and sends a signal to the detection process control unit 57 that the instruction has been executed. (Step 107).

次に、検出過程制御手段57は、『検査対象』の割付け
オブジェクトが、条件IIIを満足するかどうか調べる
(ステップ108)。
Next, the detection process control unit 57 checks whether or not the allocated object of “inspection object” satisfies the condition III (step 108).

ここで、条件IIIは、『検査対象』に、対応付け手段
によって割付けオブジェクトが対応付けられており、か
つ、まだ当該割付けオブジェクトに関して検査(第二段
階の検査)が行われていないことである。
Here, the condition III is that the assigned object is associated with the “inspection target” by the associating means, and that the assigned object has not yet been inspected (the second-stage inspection).

もし、この条件IIIを満たすならば、検出過程制御手
段57は、『検査対象』と対応付けられている属性名が
“same layout object"かどうか調べ(ステップ109)、
“same layout object"の場合には、『選ばれている論
理』が条件IVを満たすかどうかを、論理的上下関係判定
手段56に判定させる(ステップ110)。
If this condition III is satisfied, the detection process control means 57 checks whether or not the attribute name associated with “inspection object” is “same layout object” (step 109).
In the case of the "same layout object", the logical upper / lower relation determining means 56 determines whether the "selected logic" satisfies the condition IV (step 110).

ここで、条件IVは、『選ばれている論理』は『検査対
象』から下位に最左探索した経路に出現するオブジェク
トであることである。
Here, the condition IV is that “the selected logic” is an object that appears on the path searched leftmost from the “inspection object” to the left.

上記ステップ110で『選ばれている論理』と『検査対
象』との関係が条件IVを満たす場合と、上記ステップ10
9で“same layout object"属性でない場合、検出過程制
御手段57は、『選ばれている割付け』を割付け構造生成
手段4に問い合わせ、その『選ばれている割付け』が条
件Vを満たすかどうか割付け的上下関係判定手段56に判
定させる(ステップ111)。
If the relation between the “selected logic” and the “test target” satisfies the condition IV in step 110,
If the attribute is not the “same layout object” attribute in 9, the detection process control means 57 inquires the “selected allocation” to the allocation structure generating means 4 and allocates whether the “selected allocation” satisfies the condition V. The target vertical relationship determining means 56 makes a determination (step 111).

ここで、条件Vは、『選ばれている割付け』が『検査
対象』に対応付けられている割付けオブジェクトの下位
の構造に含まれている割付けオブジェクトであること、
あるいは、『選ばれている割付け』と『検査対象』に対
応付けられている割付けオブジェクトとが同一であるこ
とである。
Here, the condition V is that the “selected allocation” is an allocation object included in a structure below the allocation object associated with the “inspection target”;
Alternatively, the selected object is the same as the allocation object associated with the “inspection target”.

つまり、ステップ111では、『選ばれている割付け』
と『検査対象』に対応付けられている割付けオブジェク
トとの上下関係を判定していることになる。
In other words, in step 111, the "selected assignment"
This means that the vertical relationship between the object and the layout object associated with the “inspection target” is determined.

さて、割付け的上下関係判定手段56からの判定結果と
して、条件Vを満たしていないと判明された場合、これ
は『検査対象』に対応付けられている割付けオブジェク
トの下位に割付けねばならない内容をそれ以外のところ
に割付けることになるので、検出過程制御手段57は、上
記ステップ106の処理と同様に、バックトラック手段6
へ起動のための信号を送り、割付け処理全体の制御をバ
ックトラック手段6に引き渡す。
If it is determined that the condition V is not satisfied as a result of the determination from the assignment hierarchical relationship determination means 56, the content that must be assigned to the lower level of the assignment object associated with the "inspection object" is determined. In other words, the detection process control means 57 sends the backtrack means 6
To the backtracking means 6.

一方、上記ステップ111で、『選ばれている割付け』
が『検査対象』に対応付けられている割付けオブジェク
トの下位の構造に含まれている場合は、制約条件を満た
しているので、検出過程制御手段57は、上記条件IIIを
満たした対応付けを検査済とし(ステップ112)、さら
に、まだ検査済でない対応付けが『検査対象』にあるか
どうかを調べる(ステップ113)。
On the other hand, in the above step 111, the "selected allocation"
Is included in the lower-level structure of the allocation object associated with the “inspection target”, since the constraint condition is satisfied, the detection process control unit 57 checks the association that satisfies the above condition III. (Step 112), and it is checked whether or not the association which has not been inspected yet exists in the "inspection object" (step 113).

これは、上述したODAにおいては、ある論理オブジェ
クトに付随する割付け指示制約は、一つの属性でも良い
し、複数の属性であっても良いため、ステップ113で
は、『検査対象』となっている論理オブジェクトに付随
している全ての属性に関しての対応付けについて検査し
たかどうかをチェックしている。
This is because, in the ODA described above, the assignment instruction constraint associated with a certain logical object may be a single attribute or a plurality of attributes. Checks if the mapping has been checked for all attributes attached to the object.

上記ステップ113でまだ検査されていない対応付けが
なくなれば(全て検査済)、検出過程制御手段57は、
『検査対象』の直上の論理オブジェクトが論理根である
かを、論理的上下判定手段56に判定させる(ステップ11
4)。
If there is no association that has not been inspected in step 113 (all have been inspected), the detection process control means 57
The logical up / down determination means 56 determines whether the logical object immediately above the “inspection target” is a logical root (step 11).
Four).

ここで、『検査対象』の直上の論理オブジェクトが論
理根でなければ、検査対象変更手段53に対して『検査対
象』を現在の『検査対象』の直上の論理オブジェクトに
変更するように命令し、一方、論理根であれば、第二段
階の検査を終了する。検査対象変更手段53は、論理構造
保持手段1を探索して、命令に適合する論理オブジェク
トを検査対象記憶手段52に格納して(ステップ115)、
検出過程制御手段57に命令を実行した旨の信号を送る。
Here, if the logical object immediately above the "inspection object" is not a logical root, the inspection object changing means 53 is instructed to change the "inspection object" to the logical object immediately above the current "inspection object". On the other hand, if it is a logical root, the second-stage inspection ends. The inspection object changing unit 53 searches the logical structure holding unit 1 and stores a logical object conforming to the instruction in the inspection object storage unit 52 (Step 115).
A signal to the effect that the command has been executed is sent to the detection process control means 57.

検出過程制御手段57は、現在の『検査対象』に対して
この一連の操作(ステップ108〜114)を行い、ステップ
114で論理根であった場合(第二段階の検査が終了した
後)、『選ばれている割付け』が『選ばれている論理』
に規定された“layout object class"、“indivisibili
ty"、あるいは“same layout object"属性のいずれかを
満たすために選ばれているのならば、対応付け手段51に
対して、『選ばれている論理』と『選ばれている割付
け』とを、その割付け指示属性名ととも対応付けるよう
に命令する。
The detection process control means 57 performs this series of operations (steps 108 to 114) on the current “inspection object”,
If it is a logical root in 114 (after the second stage inspection is completed), “selected assignment” is changed to “selected logic”
“Layout object class”, “indivisibili
ty "or" same layout object "attribute, if it is selected, the associating means 51 will be provided with" selected logic "and" selected allocation ". , And the assignment instruction attribute name.

これに応答した対応付け手段51は、その命令を満たす
ように対応付けを行い(ステップ116)、その後、命令
の実行を終了した旨の信号を検出過程制御手段57に送
る。
In response to this, the association unit 51 performs association so as to satisfy the instruction (step 116), and then sends a signal to the effect that the execution of the instruction has been completed to the detection process control unit 57.

検出過程制御手段57は、その終了した旨の信号を受け
取った後、処理の続行のための信号を割付け構造生成手
段4に送り、割付け処理全体の制御を割付け構造生成手
段4に引き渡す(ステップ117)。
After receiving the signal to the effect that the detection process has been completed, the detection process control means 57 sends a signal for continuing the processing to the allocation structure generating means 4, and hands over the control of the entire allocation processing to the allocation structure generating means 4 (step 117). ).

割付け構造生成手段4では、バックトラックしたこと
を示す信号を受け取ったときは、割付け対象となる論理
オブジェクトを新たに選び直して処理を再開する。また
処理の継続を示す信号を受け取ったときは、現在選んで
いる論理オブジェクトと割付けオブジェクトとを実際に
割付け、その論理オブジェクトが既に割付けられている
ものとする。
When receiving a signal indicating that backtracking has been performed, the allocation structure generation means 4 newly selects a logical object to be allocated and restarts the processing. When a signal indicating the continuation of the processing is received, the currently selected logical object and the allocated object are actually allocated, and it is assumed that the logical object has already been allocated.

なお上述した処理手順において、第一段階の検査はス
テップ101〜105を実行することにより行われ、また第二
段階の検査はステップ107〜115を実行することにより行
われる。
In the processing procedure described above, the first-stage inspection is performed by executing steps 101 to 105, and the second-stage inspection is performed by executing steps 107 to 115.

次に、この実施例によって、上述した割付け失敗例I
及びIIが、どのうよにして解決され、割付けのやり直し
が行われるかを、割付け失敗例I、IIの順に説明する。
Next, according to this embodiment, the above allocation failure example I
And II will be described in the order of the allocation failure examples I and II.

最初に、ある段落に『ある特定の枠内にその全ての内
容を割付ける』という割付け指示制約がある場合は、上
述したODA(オフィス文書編集・交換アーキテクチャ)
においては、段落を示す論理オブジェクトに“layout o
bject class"属性がその枠を示すクラスを属性値として
持つことに相当する。
First, if a paragraph has an assignment instruction constraint of "assigning all its contents in a specific frame", the above-mentioned ODA (Office Document Editing and Exchange Architecture)
In, the logical object indicating the paragraph "layout o
The "bject class" attribute is equivalent to having a class indicating the frame as an attribute value.

そして、その内容が溢れた場合、溢れた内容を割付け
るためにその枠とは別の割付けオブジェクトが割付け構
造生成手段4によって選ばれるが、このとき、検出手段
5の検査の第二段階で、『検査対象』が『選ばれている
論理』であるときに、『検査対象』に“layout object
class"属性で対応付けられた割付けオブジェクト(すな
わち溢れていない内容が流し込まれた枠)の下位構造に
『選ばれている割付け』は来ないため、その“layout o
bject class"属性が満たされないことが分かる。
Then, when the contents overflow, an allocation object different from the frame is selected by the allocation structure generating means 4 to allocate the overflow contents. At this time, in the second stage of the inspection of the detecting means 5, When the "inspection target" is "selected logic", the "layout object"
Since the "selected layout" does not come in the substructure of the layout object (that is, the frame into which the content that does not overflow) is associated with the "class" attribute, its "layout o"
You can see that the "bject class" attribute is not satisfied.

第4図は、ある段落に『ある特定の枠内にその全ての
内容を割付ける』という割付け指示制約がある場合の論
理構造と、その論理構造に割付け中の割付け構造との割
付け状態を示している。
FIG. 4 shows an assignment state of a logical structure in a case where there is an assignment instruction constraint of "assigning all contents in a certain frame" to a certain paragraph, and an assignment structure being assigned to the logical structure. ing.

第4図に示した割付け状態において、『選ばれている
論理』←論理オブジェクト「節2.1」、『選ばれている
割付け』←割付けオブジェクト「フレーム2−2」とし
た場合、の検出処理を、上述した第3図のフローチャー
トに従って説明する。
In the allocation state shown in FIG. 4, the detection process when “selected logic” ← logical object “section 2.1”, “selected allocation” ← allocated object “frame 2-2” is performed. This will be described with reference to the flowchart of FIG.

なお、周知のように、ODAおいては、第4図に示した
論理構造において、『選ばれている論理』=「節2.1」
とした場合、『選ばれている論理』の論理順位上1つ前
の論理オブジェクトは、論理オブジェクト「章2」であ
る。
As is well known, in ODA, in the logical structure shown in Fig. 4, "the selected logic" = "Section 2.1"
In this case, the logical object immediately before the logical order of “selected logic” is the logical object “Chapter 2”.

(ステップ101): 『検査対象』←論理オブジェクト「章2」 (ステップ102): 『検査対象』=「章2」、『選ばれている論理』=
「節2.1」なので、このステップは“YES"となり、ステ
ップ107へ進む。
(Step 101): “Object to be inspected” ← Logical object “Chapter 2” (Step 102): “Object to be inspected” = “Chapter 2”, “Selected logic” =
Since “section 2.1”, this step is “YES”, and the flow proceeds to step 107.

(ステップ107): 『検査対象』←論理オブジェクト「節2.1」 (ステップ108): 『検査対象』=「節2.1」に割付けオブジェクト「フ
レーム2−1」が対応付けされ、まだ検査されていな
い。よって、条件IIIに適合するので、このステップは
“YES"となり、ステップ109へ進む。
(Step 107): “Inspection object” ← logical object “section 2.1” (Step 108): “Inspection object” = “section 2.1” is associated with the allocation object “frame 2-1”, and has not been inspected yet. Therefore, since the condition III is satisfied, this step becomes “YES”, and proceeds to step 109.

(ステップ109): 『検査対象』=「節2.1」に付随する属性名は“layou
t object class"である。よって、このステップは“NO"
となり、ステップ111に進む。
(Step 109): “Inspection target” = Attribute name attached to “Section 2.1” is “layou
t object class ", so this step is" NO "
And the process proceeds to step 111.

(ステップ111): 『選ばれている割付け』=「フレーム2−2」、『検
査対象』=「節2.1」に対応付けられている割付けオブ
ジェクト「フレーム2−1」なので、『選ばれている割
付け』は、対応付けられている割付けオブジェクトと同
一でもないし、下位のオブジェクトでもない。よって条
件Vに適合しないので、このステップは“NO"となり、
ステップ106へ進む。つまりバックトラックが起こる。
(Step 111): “Selected allocation” = “frame 2-2”, “inspection target” = allocated object “frame 2-1” associated with “section 2.1”. “Assignment” is neither the same as the assigned object to which it is associated nor a lower-order object. Therefore, since the condition V is not satisfied, this step is “NO”,
Proceed to step 106. That is, backtracking occurs.

次に、ある段落に『ある特定のページ内に割付ける』
という割付け指示制約があり、これを割付けるために本
文用の枠と脚注用の枠の二つの枠を持つページを選んだ
として、本文用の枠にはその段落が全て収まったもの
の、段落中に脚注がなく脚注用の枠が空なってしまった
という場合、上記ODAにおいては、その段落を示す論理
オブジェクトに“layout object class"属性がそのペー
ジを示すクラス属性値として持ち、そのページは“gene
rator for subordinates"に本文用の枠と脚注用の枠を
各々示す二つのクラスをSEQ項で繋いで持っていること
に相当する。このとき、その段落の次の論理オブジェク
トを割付ける際に、検査の第一段階で、その段落に対応
付けられているページの下位構造に割付けられていない
ものが検出され、バックトラックが起こる。
Next, in a paragraph, "assign within a specific page"
If you select a page that has two frames, a text frame and a footnote frame, to allocate this, the text frame contains all the paragraphs, If the footnote frame is empty because there is no footnote in the ODA, the logical object indicating the paragraph has a “layout object class” attribute as the class attribute value indicating the page, and the page has “ gene
rator for subordinates ", which is equivalent to having two classes, each showing a text frame and a footnote frame, connected by a SEQ term. When assigning the next logical object of the paragraph, In the first stage of the inspection, those not assigned to the substructure of the page associated with the paragraph are detected, and backtracking occurs.

第5図は、ある段落に『ある特定のページ内に割付け
る』という割付け指示制約がある場合の論理構造と、そ
の論理構造に割付け中の割付け構造との割付け状態を示
している。
FIG. 5 shows an allocation state of a logical structure in a case where there is an allocation instruction constraint of "allocation within a specific page" in a certain paragraph, and an allocation structure being allocated to the logical structure.

第5図に示した割付け状態において、『選ばれている
論理』←論理オブジェクト「節2.2」、『選ばれている
割付け』←割付けオブジェクト「フレーム3」とした場
合の検出処理を上述した第3図のフローチャートに従っ
て説明する。
In the allocation state shown in FIG. 5, the detection processing in the case of “selected logic” ← logical object “section 2.2”, “selected allocation” ← allocated object “frame 3” is described in the third above. This will be described with reference to the flowchart in FIG.

なお、周知のように、ODAおいては、第5図に示した
論理構造において、『選ばれている論理』=「節2.2」
とした場合、『選ばれている論理』の論理順位上1つ前
の論理オブジェクトは、論理オブジェクト「節2.1」で
ある。
As is well known, in ODA, in the logical structure shown in Fig. 5, "selected logic" = "Section 2.2"
In this case, the logical object immediately preceding the logical order of “selected logic” is the logical object “section 2.1”.

(ステップ101): 『検査対象』←論理オブジェクト「節2.1」 (ステップ102): 『検査対象』=「節2.1」は、『選ばれている論理』
=「節2.1」の上位のオブジェクトではないので、この
ステップは“NO"となり、ステップ103に進む。
(Step 101): “Inspection target” ← Logical object “Section 2.1” (Step 102): “Inspection target” = “Section 2.1” is “Selected logic”
= Since the object is not a higher object of “section 2.1”, this step is “NO”, and the process proceeds to step 103.

(ステップ103): 『検査対象』=「節2.1」に割付けオブジェクト「ペ
ージ2」が対応付けされ、『検査対象』=「節2.1」に
付随する属性名は“layout object class"である。よっ
て条件Iに適合するので、このステップは“YES"とな
り、ステップ104に進む。
(Step 103): The assignment object “page 2” is associated with “inspection target” = “section 2.1”, and the attribute name associated with “inspection target” = “section 2.1” is “layout object class”. Therefore, since the condition I is satisfied, this step becomes “YES” and the process proceeds to step 104.

(ステップ104): 対応付けられている割付けオブジェクト「ページ2」
の下位構造に、何も割付けられていない割付けオプジェ
クト「脚注用フレーム2−2」が存在する。よって条件
IIに適合しないので、このステップは“NO"となり、ス
テップ106に進む。つまりバックトラックが起こる。
(Step 104): Assigned object “page 2”
There is an assignment object “Footnote Frame 2-2” to which nothing is assigned in the lower-level structure. Therefore the condition
Since it does not conform to II, this step is “NO” and the process proceeds to step 106. That is, backtracking occurs.

なお、本実施例における実装では、オブジェクト指向
に基づいて行い、対応付けに関しては、論理オブジェク
ト自身に特別のインスタンス変数を設け、対応する割付
けオブジェクトへのポインタと属性名のストリングへの
ポインタとを持たせた。
Note that the implementation in this embodiment is performed on the basis of object orientation, and for association, a special instance variable is provided in the logical object itself, and a pointer to a corresponding allocated object and a pointer to a string of an attribute name are provided. I let you.

これにより、対応付けがあるかのマッチングが簡単に
行える。なお、対応付けの情報は、テーブルやハッシュ
ドリストなどを用いても実現できる。
This makes it possible to easily determine whether or not there is correspondence. Note that the association information can be realized by using a table, a hashed list, or the like.

以上説明したように本実施例によれば、割付け処理
中、選択された割付けオブジェクトが結果的に割り付け
指示制約を満たさなくなったとき、バックトラック処理
を呼び出し、バックトラックすることができるので、割
付け処理を迅速に行うことができる。
As described above, according to the present embodiment, during the allocation process, when the selected allocation object eventually does not satisfy the allocation instruction constraint, the backtracking process can be called and the backtracking can be performed. Can be done quickly.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、割付け処理中、
割付け構造が割付け指示制約に適合しなくなったとき
に、バックトラック処理を呼び出し、バックトラックす
るようにしたため、割付け処理を迅速に行うことがで
き、所望の文書を迅速に作成することが可能となるとい
う利点がある。
According to the present invention as described above, during the allocation process,
When the layout structure does not conform to the layout instruction constraint, the backtracking process is called and backtracked, so that the layout process can be performed quickly and a desired document can be quickly created. There is an advantage.

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

第1図は本発明に係る文書処理装置を適用した装置の一
実施例を示すブロック図、第2図は第1図に示した装置
をさらに詳細に示したブロック図、第3図は検出処理動
作を示すフローチャート、第4図及び第5図は検出処理
過程を説明するための図である。 1……論理構造保持手段、2……割付け構造保持手段、
3……制約保持手段、4……割付け構造精製手段、5…
…検出手段、6……バックトラック手段、51……対応付
け手段、52……検査対象記憶手段、53……検査対象変更
手段、54……空構造判定手段、55……論理的上下関係判
定手段、56……割付け的上下関係判定手段、57……検出
過程制御手段。
FIG. 1 is a block diagram showing an embodiment of an apparatus to which the document processing apparatus according to the present invention is applied, FIG. 2 is a block diagram showing the apparatus shown in FIG. 1 in more detail, and FIG. FIGS. 4 and 5 are flowcharts showing the operation, and are diagrams for explaining the detection process. 1 ... logical structure holding means, 2 ... allocation structure holding means,
3 ... Constraint holding means, 4 ... Allocated structure refining means, 5 ...
Detecting means 6 Backtrack means 51 Correlating means 52 Inspection object storage means 53 Inspection object changing means 54 Empty structure judging means 55 Logical vertical relation judgment Means, 56: Assignable vertical relationship determination means, 57: Detection process control means.

フロントページの続き (72)発明者 斉藤 和雄 東京都渋谷区代々木3丁目57番6号 グ ランフォーレ 富士ゼロックス株式会社 内 (56)参考文献 情報処理学会第37回(昭和63年後期) 全国大会発表論文集,p.1853〜1858 富士ゼロックステクニカルレポート No.4(平成元年12月21日発行), P.14〜20 情報処理学会第40回(平成2年前期) 全国大会発表論文集,p.598〜603 (58)調査した分野(Int.Cl.7,DB名) G06F 15/20 550 Continued on the front page (72) Inventor Kazuo Saito 3-57-6 Yoyogi, Shibuya-ku, Tokyo Granforet Fuji Xerox Co., Ltd. (56) References Information Processing Society of Japan 37th (late 1988) National Convention Presentation Transactions, p. 1853-1858 Fuji Xerox Technical Report No. 4 (issued on December 21, 1989), p. 14-20 Information Processing Society of Japan 40th (Early 1990) National Conference Papers Collection, p. 598-603 (58) Fields surveyed (Int. Cl. 7 , DB name) G06F 15/20 550

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の論理オブジェクトから構成される論
理構造を有する文書の内容を、該論理オブジェクトに付
随する割付け指示制約および生成可能な割付け構造の候
補を記述する構造生成制約にしたがって割り付けること
により、複数の割付けオブジェクトから構成される該文
書の割付け構造を生成する文書処理装置において、 前記文書の論理構造を保持する論理構造保持手段と、 前記割付け指示制約および前記構造生成制約を含む文書
の割付けに関する制約条件を保持する制約保持手段と、 前記論理構造保持手段に保持された前記文書の論理構造
および前記制約保持手段に保持された制約条件に基づき
前記文書の割付け構造を生成する割付け構造生成手段
と、 前記割付け構造生成手段により生成された割付け構造を
保持する割付け構造保持手段と、 前記割付け指示制約が与えられた論理オブジェクトに対
応付けて該論理オブジェクトに基づき生成された割付け
オブジェクトおよび該論理オブジェクトに与えられた割
付け指示制約を保持する対応付け手段を有し、前記割付
け構造生成手段による生成中の割付け構造が前記対応付
け手段に保持された割付け指示制約を満足しなくなった
場合はこれを検出する検出手段と、 前記検出手段の検出出力および前記制約保持手段に保持
された制約条件に基づき前記割付け構造保持手段に保持
されている割付け構造の破棄を行って前記構造生成制約
を満足する別の割付け構造の候補を選択可能な状態に
し、前記割付け構造生成手段に対して割付けのやり直し
を指示するバックトラック手段と を具備することを特徴とする文書処理装置。
1. A method according to claim 1, wherein the contents of a document having a logical structure composed of a plurality of logical objects are allocated in accordance with an allocation instruction constraint associated with the logical object and a structure generation constraint that describes candidates for a layout structure that can be generated. A document processing apparatus that generates a layout structure of a document including a plurality of layout objects; a logical structure holding unit that holds a logical structure of the document; and a layout of the document including the layout instruction constraint and the structure generation constraint. Holding means for holding a constraint condition regarding the document, and an allocation structure generating means for generating an allocation structure of the document based on the logical structure of the document held by the logical structure holding means and the constraint condition held by the constraint holding means. And an allocation structure for holding the allocation structure generated by the allocation structure generation means. Holding means, and associating means for holding an assignment object generated based on the logical object in association with the logical object given the assignment instruction constraint and an assignment instruction constraint given to the logical object, Detecting means for detecting when the allocation structure being generated by the allocation structure generating means does not satisfy the allocation instruction constraint held in the associating means; and detecting the output of the detecting means and storing the information in the constraint holding means. Discarding the allocation structure held in the allocation structure holding unit based on the set constraints, and making another allocation structure candidate that satisfies the structure generation constraint selectable, to the allocation structure generation unit And a backtrack means for instructing re-assignment.
JP2207899A 1990-08-06 1990-08-06 Document processing device Expired - Fee Related JP3023696B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2207899A JP3023696B2 (en) 1990-08-06 1990-08-06 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2207899A JP3023696B2 (en) 1990-08-06 1990-08-06 Document processing device

Publications (2)

Publication Number Publication Date
JPH0492960A JPH0492960A (en) 1992-03-25
JP3023696B2 true JP3023696B2 (en) 2000-03-21

Family

ID=16547420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2207899A Expired - Fee Related JP3023696B2 (en) 1990-08-06 1990-08-06 Document processing device

Country Status (1)

Country Link
JP (1) JP3023696B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005056039A (en) 2003-08-01 2005-03-03 Sony Corp Information processing system and method, program, and recording medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3085383B2 (en) * 1989-11-01 2000-09-04 株式会社日立製作所 Document processing method
JPH03256165A (en) * 1990-03-07 1991-11-14 Hitachi Ltd Document allocating processing system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
富士ゼロックステクニカルレポート No.4(平成元年12月21日発行),P.14〜20
情報処理学会第37回(昭和63年後期)全国大会発表論文集,p.1853〜1858
情報処理学会第40回(平成2年前期)全国大会発表論文集,p.598〜603

Also Published As

Publication number Publication date
JPH0492960A (en) 1992-03-25

Similar Documents

Publication Publication Date Title
JP2745794B2 (en) Document processing device
US5317728A (en) Storage management of a first file system using a second file system containing surrogate files and catalog management information
US6526441B2 (en) Input/output device information management system for multi-computer system
US6154852A (en) Method and apparatus for data backup and recovery
JP4416821B2 (en) A distributed file system that maintains a fileset namespace accessible to clients over the network
US6101495A (en) Method of executing partition operations in a parallel database system
EP0474395A2 (en) Data storage hierarchy with shared storage level
KR20010103705A (en) Method and apparatus for concurrent dbms table operations
CN111324606B (en) Data slicing method and device
US5884276A (en) System for translating an optimization problem for use in efficient resource allocation
CN112379971B (en) Application container management method, device and equipment
US5649113A (en) Method and system for translating an optimization problem for use in efficient resource allocation
JP2004303190A (en) Program, information processor, method for controlling information processor, and recording medium
CN111061432A (en) Service migration method, device, equipment and readable storage medium
US5355488A (en) Method for adaptively building a library of program threads
JP2007328711A (en) Method of changing configuration of unshared database system, management server and unshared database system
JP3023696B2 (en) Document processing device
WO1994014114A1 (en) Interception system and method including user interface
US5893122A (en) Hyper-media system including plural application processors which execute navigation processing for hyper-media document
JPS6041160A (en) Control system of computer system
US20050086430A1 (en) Method, system, and program for designating a storage group preference order
US7430569B2 (en) Computerized replication of data objects
JPH04102952A (en) Loading system for device driver
CN112148710B (en) Micro-service library separation method, system and medium
JP2005092896A (en) Workflow system, and work segmentation method in workflow system

Legal Events

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

Free format text: PAYMENT UNTIL: 20080121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees