JPH0877171A - Document processor - Google Patents

Document processor

Info

Publication number
JPH0877171A
JPH0877171A JP6216406A JP21640694A JPH0877171A JP H0877171 A JPH0877171 A JP H0877171A JP 6216406 A JP6216406 A JP 6216406A JP 21640694 A JP21640694 A JP 21640694A JP H0877171 A JPH0877171 A JP H0877171A
Authority
JP
Japan
Prior art keywords
document
context information
processing
relative
relative context
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6216406A
Other languages
Japanese (ja)
Inventor
Tadashi Hazama
端 陌間
Makoto Takeoka
誠 竹岡
Atsukimi Monma
敦仁 門馬
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 JP6216406A priority Critical patent/JPH0877171A/en
Publication of JPH0877171A publication Critical patent/JPH0877171A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a document processor in which the designation of the processed object of a document need not be redefined even if such editing as to keep substantial context information is applied to a document. CONSTITUTION: An input document 1 is added with a processed object instruction attribute to show the relative contex to the document component to be the starting point of a relative context. When the document processor 1 is started, first of all, a document component designation description generating part 3 analyzes the input document held in an input document holding part 2, and retrieves the document component added with the processed object instruction attribute. It extracts a document component ID out of the found document component, and simultaneously, extracts a processed object instruction attribute value. Next, it generates document component designation description from extracted information. A processing description generating part 6 generates processing description for executing processing from the document component designation description and the instruction of the processing held in a processing instruction holding part 5. A processing executing part 7 executes the generated processing description, and outputs a result as an output document 9.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ユーザによって作成さ
れた文書の1つまたは複数の部分(以下、文書部品と呼
ぶ)から構成されている構造化文書を入力とし、指定さ
れた文書部品に対して処理を施す文書処理装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention takes a structured document composed of one or a plurality of parts (hereinafter referred to as document parts) of a document created by a user and inputs it to a specified document part. The present invention relates to a document processing device that processes a document.

【0002】[0002]

【従来の技術】文書に対して処理を行なうとき、文書の
一部、すなわち、いくつかの文書部品に対して処理を行
ないたい場合がある。このような場合、処理を施す文書
部品を特定し、処理を行なわせる必要がある。従来、処
理の対象となる文書部品を特定する方法として、2つの
方法がとられてきた。
2. Description of the Related Art When processing a document, it is sometimes desired to process a part of the document, that is, some document parts. In such a case, it is necessary to specify the document part to be processed and to perform the process. Conventionally, two methods have been used as a method of specifying a document part to be processed.

【0003】第1の方法は、ユーザによって直接文書部
品を指定する方法である。ユーザは、処理を施したい文
書部品をマウスあるいはその他のポインティングデバイ
スを用いて選択し、処理を起動する。または、選択され
た文書部品に属性を設定しておき、その属性を指定して
処理を起動する。あるいは、文書部品にタグを付与し
て、どのような処理を施すのかについて指定する。この
第1の方法に従うと、処理を施すべき文書部品全てを人
手で指定しなければならない。そのため、多量の文書の
一括処理を要求するような文書処理においては、ユーザ
に繁雑な作業を強いることになる。
The first method is a method of directly designating a document part by a user. The user uses the mouse or other pointing device to select the document part to be processed and activates the process. Alternatively, an attribute is set in the selected document part, and the attribute is specified to start the process. Alternatively, a tag is attached to the document part to specify what kind of processing is to be performed. According to this first method, all the document parts to be processed must be manually specified. Therefore, in document processing that requires batch processing of a large number of documents, the user is forced to perform complicated work.

【0004】繁雑さを軽減するために、一部の文書作成
アプリケーションにおいては、文書作成時に自動的に文
書中にタグを埋め込むことを可能としている。この場合
は、文書作成時にあらかじめ処理されるべき文書部品が
予想されていなければならない。そのため、作成された
文書に対して必要に応じて適切な処理を行なうような、
いわゆる非定型的な文書処理への適用は、その効果を及
ぼさない。
In order to reduce complexity, some document creation applications can automatically embed tags in the document when creating the document. In this case, the document parts to be processed in advance must be expected at the time of creating the document. Therefore, if necessary, appropriate processing is performed on the created document.
Application to so-called atypical document processing does not have that effect.

【0005】すなわち、第1の文書部品指定方法は、 ・多量の文書部品あるいは文書に対して ・臨機応変に適切な処理を一括して施す ような文書処理に対しては、特にユーザに非常な負担を
強いることになる。
That is, the first document part designating method is very useful especially for a user for a large number of document parts or documents, and for a document process in which appropriate processes are collectively and flexibly performed. You will be burdened.

【0006】文書部品を特定する第2の方法は、文書部
品の構成に関する規則(以下、文脈情報と呼ぶ)を用い
て文書部品を指定する方法である。処理の対象となる文
書が、文書部品を一定の規則に基づいて構成することに
より成り立っている文書(以下、構造化文書と呼ぶ)の
場合、処理対象となる文書部品を文脈情報に基づいて定
めることが可能となる。文脈情報を用いて処理対象とな
る文書部品を指定することにより、同じ文脈情報によっ
て一括して多数の文書部品を指定すること、及び、複数
の文書にわたって文書部品を指定することが可能とな
る。これにより、多量の文書部品あるいは文書の一括処
理が可能となる。また、処理に応じた文脈情報を記述す
ることによって臨機応変な文書処理も可能となる。
The second method of specifying a document part is a method of designating a document part using a rule (hereinafter referred to as context information) concerning the structure of the document part. In the case where the document to be processed is a document (hereinafter referred to as a structured document) that is formed by configuring document parts based on a certain rule, the document part to be processed is determined based on the context information. It becomes possible. By specifying the document parts to be processed using the context information, it is possible to specify a large number of document parts collectively with the same context information, and to specify the document parts across a plurality of documents. As a result, a large amount of document parts or documents can be collectively processed. Further, by describing the context information according to the processing, flexible document processing can be performed.

【0007】以下に、構造化文書と文脈情報について概
説する。一般に構造化文書とは、文書部品の包含関係を
木構造の親子関係として定義することによって、文書の
論理構造を木構造で表す方法である。例えば、 ・文書全体は1つの文書部品であり、「章」に相当する
必要な数だけの子文書部品を包含する。 ・「章」に相当する文書部品は「節」に相当する子文書
部品を包含し、「節」に相当する文書部品は「段落」や
「図」に相当する子文書部品を包含する。 ・「段落」に相当する文書部品はその内容として文字列
を保持する。 ・「図」に相当する文書部品は更に「図本体」と「キャ
プション」に相当する文書部品により構成される。 ・「図本体」に相当する文書部品は図の実体である図形
情報を保持し、「キャプション」に相当する文書部品は
図の表題を含む文字列を保持する。
The structured document and the context information will be outlined below. Generally, a structured document is a method of expressing the logical structure of a document by a tree structure by defining the inclusion relationship of document parts as a parent-child relationship of the tree structure. For example: -The entire document is one document part, and includes the necessary number of child document parts corresponding to "chapter". The document parts corresponding to “chapter” include child document parts corresponding to “section”, and the document parts corresponding to “section” include child document parts corresponding to “paragraph” and “figure”. -A document part corresponding to a "paragraph" holds a character string as its content. -The document part corresponding to "figure" is further composed of the document parts corresponding to "figure body" and "caption". The document part corresponding to the "drawing body" holds the graphic information that is the entity of the drawing, and the document part corresponding to the "caption" holds the character string including the title of the drawing.

【0008】以上の例のような構造化文書においては、
文書は、「文書全体」に相当する文書部品を木構造の根
とし、「段落」,「図本体」,「キャプション」等に相
当する文書部品を葉とする木構造として表現される。各
文書部品には、部品のタイプを表わすタグを付与するこ
とができる。これらのタグは汎用のタグであり、特定の
処理を指向するものではないという点で、第1の文書部
品指定方法で述べたタグとは異なる。
In a structured document such as the above example,
A document is represented as a tree structure having a document part corresponding to "entire document" as a root of a tree structure and document parts corresponding to "paragraph", "drawing body", "caption" and the like as leaves. A tag indicating the type of the part can be attached to each document part. These tags are general-purpose tags, and are different from the tags described in the first document component designation method in that they are not directed to specific processing.

【0009】次に、別の例を用いて、文脈情報について
概説する。図2は、処理対象文書の論理構造の一例の説
明図、図3は処理対象文書の版面の一例の説明図であ
る。図2に示した文書の論理構造と図3に示した文書の
版面は、同一の文書のものである。
Next, the context information will be outlined by using another example. FIG. 2 is an explanatory diagram of an example of a logical structure of the processing target document, and FIG. 3 is an explanatory diagram of an example of a printing plate of the processing target document. The logical structure of the document shown in FIG. 2 and the printing plate of the document shown in FIG. 3 are of the same document.

【0010】ここでは、Root,Segment,T
itle,Textという汎用タグを付与された文書部
品を考える。ここで、 ・Rootは、文書の木構造の根を表わし、「文書全
体」を表す文書部品に付与される汎用タグである。 ・Segmentは、「章」,「節」など、文書の論理
的な構成を形成する文書部品に共通に付与される汎用タ
グである。 ・Segment部品はその部品の表題を代表する文書
部品を必ず包含する。この文書部品は、汎用タグTit
leが付与されることで、他の文書部品と区別される。 ・「段落」等のように文字列を保持する、木構造の葉に
位置する文書部品には、汎用タグTextが付与される
ものとする。
Here, Root, Segment, T
Consider a document part to which general tags such as itle and Text are added. Here, Root represents a root of the tree structure of a document, and is a general-purpose tag attached to a document part representing "entire document". -Segment is a general-purpose tag such as "chapter" and "section" that is commonly assigned to document parts that form a logical structure of a document. -Segment parts must include a document part that represents the title of the part. This document part is a general-purpose tag Tit
By adding le, it is distinguished from other document parts. A general-purpose tag Text is attached to a document part located in a leaf of a tree structure that holds a character string such as “paragraph”.

【0011】このような汎用タグを付与した木構造の構
造化文書を図2に示している。ただし、図2において
は、Segment,Title,Textは、それぞ
れSeg,Ttl,Txtと略している。また、図2に
示した数字を記入してある位置には、文字列、図形情報
などが配置されている。例えば、1の部分には図3の版
面に示されている「第1章 はじめに」という文字列が
配置されている。同様に、2の部分には「概要」、5の
部分には「インストール」、9の部分には「第2章 パ
ラメータ一覧」、10の部分には「input」、13
の部分には「output」という文字列がそれぞれ配
置されている。
FIG. 2 shows a structured document having a tree structure to which such a general-purpose tag is added. However, in FIG. 2, Segment, Title, and Text are abbreviated as Seg, Ttl, and Txt, respectively. Further, a character string, graphic information and the like are arranged at the positions where the numbers shown in FIG. 2 are entered. For example, the character string “Chapter 1 Introduction” shown on the printing plate of FIG. 3 is arranged in the portion 1. Similarly, the part 2 is "Overview", the part 5 is "Install", the part 9 is "Chapter 2 Parameter List", the part 10 is "input", 13
A character string "output" is arranged in each of the portions.

【0012】図2に示した文書において、第2章の各節
の表題を処理の対象とする。図2において、斜線で示さ
れた部分が処理対象である。図2において斜線で示され
た部分を指定するための文脈情報としては、例えば、 1) $#Seg#Seg/(Ttl/Txt/”章”
+Seg/^Ttl) 2) Seg/(Ttl/Txt/”パラメータ”+S
eg/^Ttl) 3) Root/($#Seg#Seg/Seg/^T
tl) のように記述することができる。ここで、記号‘/’は
文書構造上の親子関係を表わし、記号‘@’は何段階で
もよい親子関係を表わし、記号‘#’は直接の兄弟関係
を表わし、記号‘+’は1段階の親子関係を表わす。例
えば、「Seg/Ttl」は、Segment部品とそ
のSegment部品に包含されるTitle部品の親
子関係を特定し、「Ttl#Txt」は、同じ文書部品
に直接包含されるTitle部品とその直後のText
部品の兄弟関係を特定する。また、記号‘”’、すなわ
ち、二重引用符で囲まれた文字列は文字内容体系中のテ
キスト文字であることを表わす。例えば、「Txt/”
テキスト”」によってText部品の文字内容に文字
列”テキスト”が含まれていることが表わされる。ま
た、記号‘$’はnullを表す特殊記号である。記号
‘#’とともに用いた「$#Seg」は、Segmen
tに直前の兄弟が存在しないこと、つまり、Segme
ntが長男であることを表わす。記号‘^’は、文脈情
報の中で特定すべき文書部品を指定するために用いられ
る。()の内部が優先され、また、記号‘/’は記号
‘#’に優先する。また、記号‘.’は1段階のどのよ
うな構成子ともマッチするものである。
In the document shown in FIG. 2, the titles of the sections in Chapter 2 are subject to processing. In FIG. 2, the hatched portion is the processing target. As the context information for designating the hatched portion in FIG. 2, for example, 1) $ # Seg # Seg / (Ttl / Txt / "Chapter"
+ Seg / ^ Ttl) 2) Seg / (Ttl / Txt / "parameter" + S
eg / ^ Ttl) 3) Root / ($ # Seg # Seg / Seg / ^ T
tl) can be described. Here, the symbol '/' represents a parent-child relationship in the document structure, the symbol '@' represents a parent-child relationship that can be in any number of stages, the symbol '#' represents a direct sibling relation, and the symbol '+' represents one stage. Represents the parent-child relationship. For example, “Seg / Ttl” specifies a parent-child relationship between a Segment component and a Title component included in the Segment component, and “Ttl # Txt” is a Title component directly included in the same document component and a Text component immediately after the Title component.
Identify sibling relationships of parts. Further, the symbol """, that is, a character string enclosed in double quotation marks indicates that it is a text character in the character content system. For example," Txt / "
The text "" indicates that the text content of the Text part includes the character string "text". The symbol '$' is a special symbol representing null. "$ # Seg" used with the symbol '#' is Segmen
There is no previous sibling in t, that is, Segme
Indicates that nt is the eldest son. The symbol '^' is used to specify the document part to be specified in the context information. The inside of () has priority, and the symbol '/' has priority over the symbol '#'. Also, the symbol '. 'Matches any one-step constructor.

【0013】上記の1),2),3)は、表現のしかた
は違うが、3つとも図2の文書においては斜線の部分、
すなわち第2章の各節の題を指定している。1)の記述
は、ただ1つのSegment部品を兄として持ち、か
つ文字列”章”をそのTitle部品に含むSegme
nt部品(すなわち、第2章を示すSegment部
品)の子にあたるSegment部品のTitle部品
を示している。また、2)の記述は、文字列”パラメー
タ”をそのTitle部品に含むSegment部品
(すなわち、第2章のSegment部品)の子にあた
るSegment部品のTitle部品を示している。
さらに、3)の記述は、記述構造の根の子であり、かつ
ただ1つのSegment部品を兄として持つSegm
ent部品(すなわち、第2章のSegment部品)
の子にあたるSegment部品のTitle部品を示
している。理解のために、厳密さを欠いて表現すれば、
1)の表現は2番目の”章”の子のセグメントのタイト
ルを示しており、2)の表現はタイトルに”パラメー
タ”を含むセグメントの子のセグメントのタイトルを示
し、3)の表現は1レベル目のセグメントのうち、2番
目のセグメントの子のセグメントのタイトルを示してい
る。同じ部分を指定する記述は他にも存在する。
The above 1), 2), and 3) are expressed differently, but all three of them are shaded in the document of FIG.
That is, the titles of the sections in Chapter 2 are specified. The description of 1) is a Segme that has only one Segment component as an older brother and includes the character string "chapter" in its Title component.
The Title component of the Segment component that is a child of the nt component (that is, the Segment component of Chapter 2) is shown. The description 2) indicates the Title component of the Segment component that is a child of the Segment component (that is, the Segment component of Chapter 2) that includes the character string "parameter" in the Title component.
Furthermore, the description in 3) is a Segm that is the root child of the description structure and has only one Segment component as an older brother.
ent component (that is, the Segment component of Chapter 2)
The Title component of the Segment component, which is a child of the. For the sake of understanding, if you express it without rigor,
The expression of 1) indicates the title of the second child segment of the "chapter", the expression of 2) indicates the title of the child segment of the segment including the "parameter" in the title, and the expression of 3) indicates 1 The titles of the child segments of the second segment of the level segments are shown. There are other descriptions that specify the same part.

【0014】このように、文脈情報とは、文書部品の木
構造の中の位置関係、内容、属性、その他の保持する情
報の特徴を用いて文書部品を特定する情報である。この
ような文脈情報によって文書部品を特定した後に、必要
な処理を施すことにより、第2章の各節のレイアウトを
他の章と違うレイアウトへ変更したり、第2章の各節の
題を抜き出し、本来の文書とは別にパラメータの一覧の
ための文書を作成する等、各種のユーザの要求に応える
ことができる。また、複数の文書にわたる複数の文書部
品に処理を施す場合にも、同じ文脈情報を用いることが
できるので、文書処理の自動化に有効である。さらに、
文脈情報を適宜定義し直すことにより、その時その時の
処理に応じて、臨機応変に文書部品の特定を行なうこと
も可能となる。すなわち、この第2の方法によれば、先
に示した第1の文書部品指定方法の欠点を補う効果を有
する。
As described above, the context information is information for identifying a document part by using the positional relationship, contents, attributes, and other characteristics of the held information in the tree structure of the document part. After the document parts are specified by such context information, the layout of each section of Chapter 2 can be changed to a layout different from other chapters by performing necessary processing, or the title of each section of Chapter 2 can be changed. It is possible to meet various user requests such as extracting and creating a document for a list of parameters separately from the original document. Further, since the same context information can be used when processing a plurality of document parts across a plurality of documents, it is effective in automating the document processing. further,
By redefining the context information as appropriate, it is possible to flexibly specify the document parts according to the processing at that time. That is, the second method has an effect of compensating for the drawbacks of the first document component designating method described above.

【0015】しかしながら、第2の方法において第1の
方法では生じない問題が存在する。その問題とは、文書
処理の対象となる文書がユーザによる編集等の理由によ
って変更されると、指定された文書部品自身が変更され
ないにもかかわらず、文脈情報を変更しなければならな
い、という問題である。すなわち、文書が変更されたこ
とにより、変更以前に定めた文書部品を特定するための
文脈情報では、所望の文書部品を特定することができな
くなってしまい、新たに文脈情報を再定義する必要が生
じる場合がある。第1の方法では、直接、文書部品を指
定するため、指定された文書部品自身が変更されない限
り、それ以外の部分の変更を理由として処理の対象を特
定できなくなることはない。
However, there is a problem in the second method that does not occur in the first method. The problem is that if the document that is the target of the document processing is changed due to editing by the user or the like, the context information must be changed even though the specified document component itself is not changed. Is. That is, since the document has been changed, the desired context cannot be specified with the context information for identifying the text component defined before the change, and it is necessary to redefine the context information. May occur. In the first method, since the document part is directly specified, unless the specified document part itself is changed, the processing target cannot be specified due to the change of the other parts.

【0016】上述の例において、例えば、ユーザの編集
によって章題の番号付けが、”第1章”、”第2章”か
ら”Chap1.”、”Chap2.”に変更された場
合、文脈情報を再定義しなければならない。この場合、
上述の1)のような文脈情報の記述で指定していたとす
ると、「Ttl/Txt/”章”」は章題とマッチしな
いので、所望の文書部品を特定することができない。そ
のため、 1’) $#Seg#Seg/(Ttl/Txt/”C
hap”+Seg/^Ttl) という記述に変更する必要がある。
In the above example, when the numbering of chapters is changed from "Chapter 1", "Chapter 2" to "Chap1.", "Chap2." Must be redefined. in this case,
If it is specified in the description of the context information as described in 1) above, since "Ttl / Txt /" chapter "" does not match the chapter title, the desired document part cannot be specified. Therefore, 1 ') $ # Seg # Seg / (Ttl / Txt / "C
It is necessary to change the description to "hap" + Seg / ^ Ttl).

【0017】このほか、例えば、第2章の章題が”パラ
メータ一覧”から”オプション一覧”に変更された場合
や、章題が”パラメータに関する注意”である章が新た
に作成された場合には、上述の2)のような文脈情報の
記述は変更しなければならない。また、第1章と第2章
を入れ替え、”パラメータ一覧”の章を第1章とした場
合、上述の1)、3)の記述では変更しなければならな
い。さらに、新たに編に相当するセグメントを導入し、
第1章と、第2章を合わせて第1編とした場合には、上
述の3)の記述では変更しなければならない。このよう
に、文書に対する種々の編集によって、文脈情報の再定
義が必要となる。
In addition, for example, when the chapter title of Chapter 2 is changed from "parameter list" to "option list", or when a chapter whose title is "attention regarding parameters" is newly created. Must change the description of context information as in 2) above. If Chapter 1 and Chapter 2 are replaced with each other and the "Parameter List" chapter is designated as Chapter 1, the above 1) and 3) must be changed. Furthermore, we newly introduced a segment corresponding to the edition,
When Chapter 1 and Chapter 2 are combined into the first volume, the description in 3) above must be changed. As such, various edits to the document require redefinition of contextual information.

【0018】しかし、上に挙げた例のいずれの場合にお
いても「特定のセグメントの子にあたるセグメントのタ
イトルを指定する」という本質的な文脈情報は保たれて
いる。このように、文書部品を指定する方法として第2
の方法を採用した場合に、対象文書の変更により部分的
には文脈情報が保たれているにも関わらず、必須ではな
い情報を再定義する必要が生じる。第2の指定方法が持
つこの欠点は、文書部品を直接的に指定する第1の方法
では、生じない問題である。
However, in any of the above-mentioned examples, the essential context information "specify the title of a segment which is a child of a specific segment" is retained. In this way, the second method for designating document parts is
When the method is adopted, it is necessary to redefine the non-essential information even though the context information is partially retained by the change of the target document. This drawback of the second designating method is a problem that does not occur in the first method of directly designating a document part.

【0019】[0019]

【発明が解決しようとする課題】本発明は、上述した事
情に鑑みてなされたもので、本質的な文脈情報が保たれ
るような編集が文書に加えられても、文書部品の処理対
象の指定を再定義する必要のない文書処理装置を提供す
ることを目的とするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned circumstances, and even if an edit that adds essential context information is added to a document, the process target of the document parts is processed. An object of the present invention is to provide a document processing device that does not need to redefine designation.

【0020】[0020]

【課題を解決するための手段】本発明は、請求項1に記
載の発明においては、複数の文書部品から構成されてい
る構造化文書を入力とする文書処理装置において、文書
部品を特定する文書部品特定情報と該特定された文書部
品と文書処理の対象となる文書部品集合との文書構造上
の関係を表わす相対文脈情報とを対応付けて保持する相
対文脈情報保持手段と、該相対文脈情報保持手段に保持
されている前記文書部品特定情報と相対文脈情報に基づ
いて処理対象となる文書部品を指定する文書部品指定記
述を生成する文書部品指定記述生成手段と、前記文書部
品指定記述に基づいて処理対象部品に対して文書処理を
行なう文書処理手段を有することを特徴とするものであ
る。
According to a first aspect of the present invention, in a document processing apparatus for inputting a structured document composed of a plurality of document parts, a document for specifying a document part is specified. Relative context information holding means for holding the component identification information, relative context information representing the document structural relationship between the identified document component and the document component set to be subjected to document processing in association with each other, and the relative context information. Based on the document part specification description, a document part specification description generation part for generating a document part specification description for specifying a document part to be processed based on the document part specification information and relative context information stored in a storage part. It is characterized in that it has a document processing means for performing document processing on the processing target component.

【0021】また、請求項2に記載の発明においては、
請求項1に記載の文書処理装置において、入力された指
示に基づいて文書部品を特定する文書部品特定手段と、
前記特定された文書部品と文書処理の対象となる前記文
書部品集合との文書構造上の関係を表わす相対文脈情報
を入力する相対文脈情報入力手段と、入力された前記相
対文脈情報を前記特定された文書部品に付加する相対文
脈情報付加手段と、前記相対文脈情報が付加された文書
部品の文書部品識別子と相対文脈情報を文書中から抽出
する相対文脈情報抽出手段をさらに有し、前記文書部品
指定記述生成手段は、前記相対文脈情報抽出手段で抽出
された前記文書部品識別子と前記相対文脈情報に基づい
て処理対象となる文書部品を指定する文書部品指定記述
を生成することを特徴とするものである。
According to the second aspect of the invention,
The document processing apparatus according to claim 1, further comprising: a document component identification unit that identifies a document component based on an input instruction.
Relative context information input means for inputting relative context information indicating a document structural relationship between the specified document part and the document part set to be subjected to document processing, and the input relative context information is specified. Further comprising relative context information adding means for adding to the document part, and relative context information extracting means for extracting the document context identifier and the relative context information of the document part to which the relative context information is added from the document. The designated description generation means generates a document part designation description for designating a document part to be processed based on the document part identifier extracted by the relative context information extraction part and the relative context information. Is.

【0022】[0022]

【作用】請求項1に記載の発明によれば、相対文脈情報
保持手段には、ある文書部品を特定する文書部品特定情
報と、特定された該文書部品と文書処理の対象となる文
書部品集合との文書構造上の関係を表わす相対文脈情報
とが対応付けられて保持されている。相対文脈情報は、
従来の技術で述べた第2の文書部品指定方法である文脈
情報のうち、本質的な部分を、編集によって変更されな
い文書部品(以下、相対文脈情報の起点と呼ぶ)との構
造上の関係、すなわち相対的な文脈情報によって表現し
たものである。文書部品特定情報は、編集によって変化
しうる本質的でない部分に関して、文脈情報ではなく直
接的な指定によって特定された文書部品を表現したもの
である。
According to the invention described in claim 1, the relative context information holding means includes the document part specifying information for specifying a certain document part, and the specified document part and the document part set to be subjected to the document processing. And the relative context information indicating the document structure relationship with the. Relative contextual information is
Of the context information that is the second document component designation method described in the conventional art, an essential part is a structural relationship with a document component that is not changed by editing (hereinafter, referred to as the origin of relative context information), That is, it is expressed by relative contextual information. The document component specifying information represents a document component specified by direct designation, not by context information, regarding an unessential part that can be changed by editing.

【0023】文書部品指定記述生成手段は、相対文脈情
報保持手段から、対応付けられて保持されている文書部
品特定情報および相対文脈情報を受け取り、それらの情
報から処理対象となる文書部品を指定する文書部品指定
記述を生成する。具体的には、相対文脈情報に対して、
その相対文脈情報の起点を特定する文書部品特定情報を
マージすることにより、従来の技術で述べた第2の方法
の文脈情報に対応する文書部品指定記述を生成すること
ができる。文書処理手段は、文書部品指定記述生成手段
によって生成された文書部品指定記述を用いて、処理す
べき文書部品を選別し、選別された文書部品に対して文
書処理を施す。
The document part designation description generation means receives the document part specifying information and the relative context information held in association with each other from the relative context information holding means, and specifies the document part to be processed from the information. Generate a document part specification description. Specifically, for relative context information,
By merging the document part specifying information specifying the starting point of the relative context information, the document part specifying description corresponding to the context information of the second method described in the conventional art can be generated. The document processing means uses the document part designation description generated by the document part designation description generation means to select a document part to be processed, and performs document processing on the selected document part.

【0024】文書が編集された場合には、文書構造が変
化する場合があるが、文書部品の相対位置関係が変わら
なければ、相対文脈情報は変更を要しない。そのため、
従来のように処理を行なうべき文書部品を特定する情報
を変化させることなく、処理を行なわせることができ
る。
When the document is edited, the document structure may change. However, if the relative positional relationship of the document parts does not change, the relative context information does not need to be changed. for that reason,
The processing can be performed without changing the information for identifying the document component to be processed as in the conventional case.

【0025】また、請求項2に記載の発明によれば、文
書部品特定手段において、ユーザあるいは他のアプリケ
ーション等からの入力指示に従い文書中の文書部品を特
定し、特定された文書部品に対して、相対文脈情報付加
手段は、相対文脈情報入力手段から入力された相対文脈
情報を属性として付加する。相対文脈情報は、その起点
となる文書部品に属性として付加される。そして、文書
中の文書部品に付加された相対文脈情報と、その相対文
脈情報が付加されている文書部品の識別子を相対文脈情
報抽出手段によって抽出する。抽出された文書部品識別
子と相対文脈情報とは、文書部品指定記述生成手段にお
いて用いられ、文書部品指定記述が生成され、文書処理
手段において、指定された文書部品に対して処理が行な
われる。この請求項2に記載の発明では、ユーザのイン
タラクティブな操作、あるいは他のアプリケーションか
らの入力によって、相対文脈情報を特定の文書部品に付
加し、処理を行なわせることができる。また、相対文脈
情報がその起点となる文書部品に属性として付加されて
いるので、文書が編集されても、処理対象の文書部品の
相対位置が変化しない限り、そのまま処理を行なわせる
ことが可能となる。
According to the second aspect of the present invention, the document component identifying means identifies the document component in the document in accordance with an input instruction from the user or another application, and identifies the identified document component. The relative context information adding unit adds the relative context information input from the relative context information input unit as an attribute. The relative context information is added as an attribute to the document part that is the starting point. Then, the relative context information added to the document part in the document and the identifier of the document part to which the relative context information is added are extracted by the relative context information extraction means. The extracted document part identifier and relative context information are used in the document part specification description generation means to generate the document part specification description, and the document processing means processes the specified document part. According to the second aspect of the present invention, the relative context information can be added to a specific document part and processed by an interactive operation by the user or an input from another application. Also, since the relative context information is added as an attribute to the document part that is the starting point, even if the document is edited, it is possible to cause the process to be performed as long as the relative position of the document part to be processed does not change. Become.

【0026】[0026]

【実施例】図1は、本発明の文書処理装置の第1の実施
例を示す構成図である。図中、1は文書処理装置、2は
入力文書保持部、3は文書部品指定記述生成部、4は文
書処理部、5は処理指示保持部、6は処理記述作成部、
7は処理実行部、8は入力文書、9は出力文書である。
文書処理装置1は、入力文書保持部2、文書部品指定記
述生成部3、文書処理部4等を有する。また、文書処理
部4は、処理指示保持部5、処理記述作成部6、処理実
行部7等を有する。
1 is a block diagram showing a first embodiment of a document processing apparatus according to the present invention. In the figure, 1 is a document processing device, 2 is an input document holding unit, 3 is a document part designation description generation unit, 4 is a document processing unit, 5 is a process instruction holding unit, 6 is a process description creation unit,
Reference numeral 7 is a processing execution unit, 8 is an input document, and 9 is an output document.
The document processing device 1 includes an input document holding unit 2, a document component designation description generation unit 3, a document processing unit 4, and the like. The document processing unit 4 also includes a process instruction holding unit 5, a process description creating unit 6, a process executing unit 7, and the like.

【0027】入力文書保持部2は、単数または複数の入
力文書8を保持管理する。文書部品指定記述生成部3
は、入力文書保持部2から入力文書の構造を受け取り、
そこから処理対象指示属性の付加されている文書部品の
識別子および処理対象指示属性の属性値を抽出する。そ
して、抽出した文書部品の識別子および処理対象指示属
性の属性値から、文書部品指定記述を生成する。
The input document holding unit 2 holds and manages a single input document 8 or a plurality of input documents 8. Document part specification description generation unit 3
Receives the structure of the input document from the input document holding unit 2,
From there, the identifier of the document part to which the processing target instruction attribute is added and the attribute value of the processing target instruction attribute are extracted. Then, a document part designation description is generated from the extracted document part identifier and the attribute value of the processing target instruction attribute.

【0028】処理指示保持部5は、文書部品に対して行
なう処理の内容が保持されている。処理記述作成部6
は、文書部品指定記述生成部3から受け取った文書部品
指定記述と、処理指示保持部5から受け取った処理の指
示に基づいて、処理記述を作成する。処理実行部7は、
処理記述作成部6で作成された処理記述に基づき、入力
文書に対する処理を実行し、結果を出力文書9として出
力する。
The processing instruction holding unit 5 holds the contents of the processing performed on the document parts. Processing description creation unit 6
Creates a process description based on the document part specification description received from the document part specification description generation unit 3 and the processing instruction received from the process instruction holding unit 5. The process execution unit 7
Based on the process description created by the process description creating unit 6, the process for the input document is executed, and the result is output as the output document 9.

【0029】図4は、本発明の文書処理装置の第1の実
施例における動作の一例を示すフローチャートである。
以下の動作の説明では、具体例を用いて説明する。以下
の説明において、文書は文書部品が木構造をなしている
構造化文書であるとする。例えば、図3に示す版面を有
する文書を図2に示すような木構造の構造化文書として
与えられるものとする。各文書部品は、識別子として文
書部品IDを持ち、文書部品ID以外にもいくつかの属
性を持つことができる。文書中の任意の文書部品をユー
ザは選択でき、選択された文書部品の属性に自由な値を
設定できるものとする。ここでは、相対文脈情報を文書
部品に付加する場合の属性を「処理対象指示属性」とす
る。また、相対文脈指定を表現する記述法としては、上
述の従来の技術で使用した記述法を用いることとする。
記号‘/’,‘#’,‘$’,‘^’等は上述の通りで
ある。これらに加えて、記号‘%’を導入する。記号
‘%’は、相対文脈情報の起点を表わす。例えば、この
記号‘%’を用いた記号列「%/Txt」は、起点とな
る文書部品の子である段落全てを指定している。
FIG. 4 is a flow chart showing an example of the operation in the first embodiment of the document processing apparatus of the present invention.
In the following description of the operation, a specific example will be described. In the following description, it is assumed that the document is a structured document in which the document parts have a tree structure. For example, assume that a document having a printing plate shown in FIG. 3 is given as a structured document having a tree structure as shown in FIG. Each document part has a document part ID as an identifier, and can have some attributes other than the document part ID. It is assumed that the user can select any document component in the document and can set any value to the attribute of the selected document component. Here, the attribute when the relative context information is added to the document part is the “processing target instruction attribute”. Further, as the description method for expressing the relative context designation, the description method used in the above-mentioned conventional technique is used.
The symbols '/', '#', '$', '^', etc. are as described above. In addition to these, the symbol '%' is introduced. The symbol '%' represents the origin of relative contextual information. For example, the symbol string "% / Txt" using this symbol "%" specifies all paragraphs that are children of the document part that is the starting point.

【0030】処理の対象となる文書部品は、図2,図3
に示す文書における第2章の各節の題であるとする。各
図において、処理対象の文書部品にはハッチングを施し
て示している。この例において、本質的に保っておくべ
き文脈情報は「特定のセグメントの子にあたるセグメン
トのタイトルを指定する」ということである。この場
合、特定のセグメントは第2章であるので、第2章(図
2における文書部品A)を起点とした相対文脈情報の指
定を行なう。章にあたる文書部品からみた各節のタイト
ルは、「%/Seg/^Ttl」と表現できる。ユーザ
は、例えば、文書部品に属性および属性値を付加できる
エディタ等のツールを用いて、この相対文脈情報の指定
を文書部品Aの「処理対象指示属性」の値とする。上述
のように指定された文書を入力文書8として、文書処理
装置1に入力する。
The document parts to be processed are shown in FIGS.
It is assumed to be the title of each section of Chapter 2 in the document shown in. In each figure, the document parts to be processed are hatched. In this example, the contextual information that should be kept essentially is "specify the title of a segment that is a child of a particular segment". In this case, since the specific segment is the second chapter, the relative context information starting from the second chapter (document part A in FIG. 2) is designated. The title of each section viewed from a document part corresponding to a chapter can be expressed as "% / Seg / ^ Ttl". The user uses the tool such as an editor capable of adding attributes and attribute values to the document part to specify this relative context information as the value of the "processing target instruction attribute" of the document part A. The document designated as described above is input to the document processing apparatus 1 as the input document 8.

【0031】また、処理指示保持部5には、指定された
処理対象に対してどのような処理を行なうかが予め指示
されている。例えば、第2章の各節の題のレイアウトを
変更する処理等を指示することができる。ここでは、処
理指示保持部5には、「指定された文書部品を改ページ
してレイアウトするレイアウト指定を付加する。」に相
当する処理の指示が保持されているものとする。
Further, the processing instruction holding section 5 is instructed in advance what kind of processing should be performed on the designated processing target. For example, it is possible to instruct a process of changing the layout of the title of each section of Chapter 2. Here, it is assumed that the processing instruction holding unit 5 holds a processing instruction corresponding to “add a layout designation for page-laying out and laying out a designated document part”.

【0032】文書処理装置1が起動すると、まず文書部
品指定記述生成部3は入力文書保持部2に保持されてい
る入力文書を解析し、処理対象指示属性が付加されてい
る文書部品を検索する。すなわち、S21において、入
力文書保持部2に保持されている入力文書8から文書部
品を一つ読み込み、S22において、読み込んだ文書部
品に処理対象指示属性が付加されているか否かを判定す
る。このような検索の結果、処理対象指示属性が付加さ
れている文書部品が見つかった場合には、見つかった文
書部品から、S23において文書部品IDを抽出すると
ともに、S24において処理対象指示属性値を抽出す
る。ここでは、文書部品Aの文書部品IDは「[3
1]」であるものとし、この文書部品IDが抽出される
とともに、処理対象指示属性値である「%/Seg/^
Ttl」が抽出される。次に、S25において、抽出さ
れた情報から、「%」を「[3 1]」と置換して
「[3 1]/Seg/^Ttl」という文書部品指定
記述を作成する。
When the document processing apparatus 1 is activated, the document part designation description generation section 3 first analyzes the input document held in the input document holding section 2 and searches for a document part to which the processing target instruction attribute is added. . That is, in S21, one document part is read from the input document 8 held in the input document holding unit 2, and in S22, it is determined whether or not the processing target instruction attribute is added to the read document part. As a result of such a search, when a document part to which the processing target instruction attribute is added is found, the document part ID is extracted from the found document part in S23, and the processing target instruction attribute value is extracted in S24. To do. Here, the document part ID of the document part A is “[3
1] ”, the document part ID is extracted, and the processing target instruction attribute value“% / Seg / ^ ”is obtained.
"Ttl" is extracted. Next, in S25, "%" is replaced with "[3 1]" from the extracted information to create a document part designation description "[3 1] / Seg / ^ Ttl".

【0033】一方、処理指示保持部5には、「指定され
た文書部品を改ページしてレイアウトするレイアウト指
定を付加する。」に相当する処理の指示が保持されてい
る。この指示は、例えば、「aput−e ’$pat
tern;LaySty.NLO=page’」と表現
されているとする。ここで、$patternは、処理
記述作成部6において文書部品指定記述と置換される部
分である。S26において、処理記述作成部6は、文書
部品指定記述「[3 1]/Seg/^Ttl」と、処
理指示保持部5に保持されている処理の指示「aput
−e ’$pattern;LaySty.NLO=p
age’」から、処理を実行するための記述「aput
−e ’[3 1]/Seg/^Ttl;LaySt
y.NLO=page’」を作成する。これら一連の処
理は、S27においてファイルの終了が検出されるまで
繰り返される。
On the other hand, the processing instruction holding unit 5 holds a processing instruction corresponding to "add a layout designation for page-laying out and laying out a designated document part". This instruction is, for example, "aput-e '$ pat
tern; LaySty. It is assumed that it is expressed as “NLO = page ′”. Here, $ pattern is a part to be replaced with the document part designation description in the process description creating unit 6. In S <b> 26, the process description creating unit 6 sets the document part designation description “[31] / Seg / ^ Ttl” and the process instruction “aput” held in the process instruction holding unit 5.
-E '$ pattern; LaySty. NLO = p
From "age '", the description "aput" for executing the process
-E '[31] / Seg / ^ Ttl; LaySt
y. NLO = page ′ ”is created. These series of processes are repeated until the end of the file is detected in S27.

【0034】すべての処理対象指示属性を有する文書部
品に対する処理記述作成の処理が終了すると、S28に
おいて、処理実行部7は、作成された処理記述を実行
し、結果を出力文書9として出力する。
When the process description creating process for the document parts having all the process target instruction attributes is completed, the process executing section 7 executes the created process description in S28, and outputs the result as the output document 9.

【0035】図5は、出力文書の一例の説明図である。
上述のようにして処理が行なわれた結果、図2,図3に
示した入力文書の第2章の各節の題のレイアウトが変更
され、図5に示すような版面の文書が出力文書9として
得られる。
FIG. 5 is an explanatory diagram of an example of an output document.
As a result of the processing performed as described above, the layout of the sections of each section of the second chapter of the input document shown in FIGS. 2 and 3 is changed, and the print document shown in FIG. Obtained as.

【0036】このように、相対文脈指定に基づいて処理
対象を指定することにより、以下のような編集を行なっ
た場合でも「処理対象指示属性」の値を変更する必要が
生じない。例えば、章題の番号付けが「第1章」、「第
2章」から「Chap.1」,「Chap.2」に変更
された場合や、第2章の章題が「パラメータ一覧」から
「オプション一覧」に変更された場合等では、相対文脈
情報には章題の内容による指定が含まれないので、この
ような文字列の編集によって「処理対象指示属性」を変
更する必要はない。
By thus designating the processing target based on the relative context designation, it is not necessary to change the value of the "processing target designation attribute" even when the following editing is performed. For example, when the numbering of chapters is changed from "Chapter 1" and "Chapter 2" to "Chap.1" and "Chap.2", and the chapter numbering of Chapter 2 is changed from "Parameter list". When the information is changed to the “option list” or the like, the relative context information does not include the designation by the content of the chapter, and thus it is not necessary to change the “processing target instruction attribute” by editing the character string.

【0037】また、編集により第2章に節を追加した場
合には、「処理対象指示属性」を変更することなく、追
加した節の題も処理対象とすることができる。すなわ
ち、「処理対象指示属性」には、「特定のセグメントの
子にあたるセグメントのタイトルを指定する」という相
対的な処理対象部品の位置関係が指示されているのみで
ある。そのため、特定のセグメントを第2章としたと
き、追加した節は、この相対位置関係を満足し、なんら
処理対象指示属性を変更することなく、追加された節を
も処理対象として、他の節とともに一括して処理を行な
うことが可能である。
If a section is added to Chapter 2 by editing, the added section title can be processed without changing the "processing target instruction attribute". In other words, the “processing target designation attribute” merely indicates the relative positional relationship of the processing target components, “specifying the title of a segment that is a child of a specific segment”. Therefore, when a specific segment is set as Chapter 2, the added clause satisfies this relative positional relationship, and the added clause is also processed as the other clause without changing the processing target instruction attribute at all. In addition, it is possible to perform processing collectively.

【0038】第1章と第2章を入れ替え、“パラメータ
一覧”の章を第1章とする編集を行なった場合には、処
理対象指示属性が付加された文書部品は第1章となる。
すなわち、「特定のセグメント」が第1章となるため、
第1章の各節の題に対して処理が実行されることにな
る。このように、相対関係が保持されたまま文書構造の
一部が移動しても、処理対象となる文書部品は変わらな
いし、移動に伴って処理対象指示属性を変更する必要も
ない。
When the first and second chapters are replaced with each other and editing is performed with the "parameter list" chapter as the first chapter, the document parts to which the process target instruction attribute is added become the first chapter.
That is, since the "specific segment" is the first chapter,
Processing will be executed for each section of Chapter 1. As described above, even if a part of the document structure moves while the relative relationship is maintained, the document part to be processed does not change, and it is not necessary to change the processing target instruction attribute in accordance with the movement.

【0039】新たに編に相当するセグメントを導入し、
第1章と第2章を合わせて第1編とした場合にも、第2
章の節の題が処理対象となることに変わりはない。すな
わち、処理対象指示属性が付加された特定のセグメント
は変更されずに第2章であり、第2章の各節の題は、そ
の特定セグメントからの相対的な位置関係が変わらない
ためである。このように、文書全体の構造が変更されて
も、特定のセグメントとそのセグメントとの相対位置の
変更がなければ、処理対象指示属性を変更する必要はな
い。
Introducing a segment corresponding to the new edition,
Even if the first and second chapters are combined into the first volume, the second
The subject of the section of the chapter remains the same. That is, the specific segment to which the processing target designation attribute is added is unchanged and is the second chapter, and the subject of each section of the second chapter is that the relative positional relationship from the specific segment does not change. . As described above, even if the structure of the entire document is changed, it is not necessary to change the processing target instruction attribute unless the relative position of the specific segment is changed.

【0040】上述の相対文脈の指定は、起点を変えれば
処理対象が変わる。この性質を利用して、同じ指定の記
述を別の箇所でも使用することができる。例えば、図2
の文書部品Aに付与された相対文脈指定を、Rootに
付け替えることによって、章のタイトルを処理の対象と
することを容易に指定することができる。
In the above-described designation of the relative context, the processing target changes if the starting point is changed. By utilizing this property, the same specification description can be used in other places. For example, in FIG.
By replacing the relative context designation given to the document part A in Root with Root, it is possible to easily designate that the chapter title is to be processed.

【0041】図6は、本発明の文書処理装置の第2の実
施例を示す構成図である。図1と同様の部分には同じ符
号を付して説明を省略する。11は文書部品特定部、1
2は相対文脈入力部、13は相対文脈付加部、14は相
対文脈抽出部である。
FIG. 6 is a block diagram showing the second embodiment of the document processing apparatus of the present invention. The same parts as those in FIG. 1 are designated by the same reference numerals and the description thereof will be omitted. Reference numeral 11 is a document part identification unit, 1
Reference numeral 2 is a relative context input unit, 13 is a relative context addition unit, and 14 is a relative context extraction unit.

【0042】文書部品特定部11は、ユーザが指示した
入力文書中の任意の文書部品を特定する。ユーザによる
指定の方法としては、例えば、ディスプレイ上に示され
た文書部品をマウス等のポインティングデバイスを用い
て指定したり、文書中のカーソル位置によって示す方
法、文書部品を検索式を用いて検索し、その検索結果の
文書部品すべてを指示する方法等が考えられる。相対文
脈入力部12は、指定された文書部品を起点とする相対
文脈指定を表現した文字列の入力を受け付ける。入力の
方法としては、キーボード等を用いる方法のほか、他の
アプリケーションからの相対文脈指定入力を受け付ける
ことも可能である。相対文脈付加部13は、文書部品特
定部11によって特定された文書部品に対して、相対文
脈入力部12によって入力された相対文脈指定を処理対
象指示属性の属性値として付加する。相対文脈抽出部1
4は、入力文書保持部2に保持されている入力文書8の
構造を受け取り、そこから処理対象指示属性の付加され
ている文書部品のIDおよび処理対象指示属性の属性値
を抽出する。文書部品指定生成部3は、相対文脈指定抽
出部14から受け取った文書部品のIDおよび処理対象
指示属性の属性値から、文書部品指定記述を生成する。
入力文書保持部2、文書処理部4は第1の実施例と同様
である。
The document part specifying unit 11 specifies an arbitrary document part in the input document designated by the user. As a method of designation by the user, for example, a document component shown on the display is designated by using a pointing device such as a mouse, a method of indicating by a cursor position in a document, or a document component is searched by using a search formula. A method of designating all the document parts of the search result can be considered. The relative context input unit 12 receives an input of a character string expressing a relative context designation starting from a designated document part. As a method of inputting, in addition to a method of using a keyboard or the like, it is also possible to receive a relative context designation input from another application. The relative context addition unit 13 adds the relative context designation input by the relative context input unit 12 to the document component specified by the document component specification unit 11 as an attribute value of the processing target instruction attribute. Relative context extraction unit 1
Reference numeral 4 receives the structure of the input document 8 held in the input document holding unit 2, and extracts the ID of the document part to which the processing target instruction attribute is added and the attribute value of the processing target instruction attribute from the structure. The document component designation generation unit 3 generates a document component designation description from the document component ID and the attribute value of the processing target designation attribute received from the relative context designation extraction unit 14.
The input document holding unit 2 and the document processing unit 4 are the same as those in the first embodiment.

【0043】図7は、本発明の文書処理装置の第2の実
施例における動作の一例を示すフローチャート、図8
は、文書部品特定部、相対文脈入力部における表示画面
の一例の説明図である。S31において、文書部品特定
部11は、入力文書保持部2に保持されている入力文書
8を表示する。ここで文書部品の指定を行なう場合に
は、S32からS33へ進み、S33において、ユーザ
は、処理の対象となる文書の構造が表示されているウィ
ンドウ中の相対文脈指定の起点となるべき文書部品をマ
ウスカーソルを用いて指定する。図8では、マウスカー
ソルによって選択された文書部品を矢印で示し、選択さ
れた文書部品にはハッチングを施して示している。ま
た、相対文脈入力部12において、選択された文書部品
に対して相対文脈指定を入力する場合には、S34から
S35へ進む。S35において、ユーザはキーボード等
から相対文脈指定を入力する。図8では、表示画面の下
欄に表示されている相対文脈指定の欄に「%/Seg/
^Ttl」という相対文脈指定を示す文字列が入力され
ている。入力された相対文脈指定は、S36において、
S33で指定された文書部品に対して処理対象指示属性
として付加される。この動作は、相対文脈付加部13に
おいて行なわれる。このような動作を必要に応じて繰り
返し行ない、処理対象指示属性の付加が終了すると、S
37から図4のS21へ進み、第1の実施例と同様に動
作する。このとき、S21における入力文書ファイルか
らの文書部品の読み込みは、相対文脈付加部13からの
文書部品の受け取りを示す。このとき受け取る文書部品
は、相対文脈が付加されているので、S22における判
定は常に真となる。S23,S24に示す文書部品ID
の特定および処理対象指示属性の抽出処理は、相対文脈
抽出部14において行なわれる。
FIG. 7 is a flow chart showing an example of the operation of the second embodiment of the document processing apparatus of the present invention, FIG.
FIG. 7 is an explanatory diagram of an example of a display screen in the document part identification unit and the relative context input unit. In S31, the document module identification unit 11 displays the input document 8 held in the input document holding unit 2. In the case of designating a document part, the process proceeds from S32 to S33, and in S33, the user selects the document part to be the starting point of the relative context designation in the window displaying the structure of the document to be processed. Is specified using the mouse cursor. In FIG. 8, the document part selected by the mouse cursor is indicated by an arrow, and the selected document part is hatched. When the relative context input unit 12 inputs a relative context designation for the selected document part, the process proceeds from S34 to S35. In S35, the user inputs the relative context designation from the keyboard or the like. In FIG. 8, "% / Seg /" is displayed in the relative context designation field displayed in the lower field of the display screen.
A character string indicating the relative context designation "^ Ttl" has been input. The input relative context designation is
It is added as a processing target instruction attribute to the document part designated in S33. This operation is performed in the relative context adding unit 13. Such an operation is repeated as necessary, and when the addition of the processing target instruction attribute is completed, S
The process proceeds from S37 to S21 in FIG. 4 and operates in the same manner as in the first embodiment. At this time, the reading of the document part from the input document file in S21 indicates the reception of the document part from the relative context adding unit 13. Since the relative context is added to the document parts received at this time, the determination in S22 is always true. Document part ID shown in S23 and S24
The relative context extracting unit 14 performs the process of identifying the above and extracting the process target designation attribute.

【0044】図8では、マウスによる文書部品の指定、
キーボードから文字列による相対文脈指定入力の例を示
したが、上述のように、文書部品特定部11は文書部品
を指定可能な手段であればどのようなものを用いること
も可能であり、文書中のカーソル位置によって示す方
法、文書部品を検索式を用いて検索し、その検索結果の
文書部品全てを指示する方法等も採用することができ
る。また、相対文脈指定の入力も、キーボードからの文
字列による入力以外に、他のアプリケーション上の、ま
た他の文書部品に付加されている相対文脈指定をコピー
する方法や他のアプリケーションの出力結果を入力とす
る方法なども採用することができる。
In FIG. 8, designation of a document part by a mouse,
Although the example of the relative context designation input by the character string from the keyboard has been shown, as described above, the document component identification unit 11 can use any means as long as it can designate a document component. A method shown by the cursor position in the inside, a method of searching for a document part using a search expression, and instructing all the document parts of the search result can also be adopted. In addition to inputting text using the keyboard, the method of copying the relative context specification is not limited to the method of copying the relative context specification on another application or attached to another document part, or the output result of another application. It is also possible to adopt a method of inputting.

【0045】なお、上述の第2の実施例の構成におい
て、文書部品特定部11と相対文脈入力部12は、どち
らが先に動作しても同じ効果を得ることができる。
In the configuration of the second embodiment described above, the same effect can be obtained regardless of which of the document component specifying unit 11 and the relative context input unit 12 operates first.

【0046】図9は、本発明の文書処理装置の第3の実
施例を示す構成図である。図中、図6と同様の部分には
同じ符号を付して説明を省略する。15は相対文脈記憶
部である。相対文脈記憶部15は、文書部品特定部11
によって指定された文書部品のIDと、相対文脈入力部
12によって入力された相対文脈指定を対にして、例え
ば、管理テーブルに記憶し、管理する。図10は、相対
文脈記憶部で用いられる管理テーブルの一例の説明図で
ある。例えば、文書部品特定部11において、文書部品
のIDとして[3 1]を有する文書部品が特定され、
対応する相対文脈指定として、相対文脈入力部12から
「%/Seg/^Ttl」が入力されると、図10に示
したように、これらの情報を対にして記憶する。
FIG. 9 is a block diagram showing the third embodiment of the document processing apparatus of the present invention. In the figure, the same parts as in FIG. Reference numeral 15 is a relative context storage unit. The relative context storage unit 15 includes the document component identification unit 11
For example, the ID of the document component designated by and the relative context designation input by the relative context input unit 12 are paired and stored in a management table and managed. FIG. 10 is an explanatory diagram of an example of a management table used in the relative context storage unit. For example, the document component identification unit 11 identifies the document component having [3 1] as the document component ID,
When "% / Seg / ^ Ttl" is input from the relative context input unit 12 as the corresponding relative context designation, these pieces of information are stored as a pair as shown in FIG.

【0047】相対文脈記憶部15が文書部品特定部11
から受け取る文書部品のIDは、これに限らず、文書部
品へのポインタ等、文書部品を特定できる情報であれば
どのような情報であっても良い。文書部品指定記述生成
部3は、相対文脈記憶部15から1組ずつ文書部品のI
Dおよび相対文脈指定を受け取り、文書部品指定記述を
生成する。
The relative context storage unit 15 is the document part specifying unit 11
The ID of the document part received from is not limited to this, and may be any information as long as the information can identify the document part, such as a pointer to the document part. The document part specification description generation unit 3 outputs the I of the document parts one by one from the relative context storage unit 15.
It receives D and a relative context designation and generates a document part designation description.

【0048】図11は、本発明の文書処理装置の第3の
実施例における動作の一例を示すフローチャートであ
る。この第3の実施例の動作は、上述の第1及び第2の
実施例の動作、すなわち、図7および図4に示した動作
とほぼ同様である。図11において、S41ないしS4
5,S47は、図7のS31ないしS35,S37と同
じ動作である。S46において、S43で指定された文
書部品と、S45で入力された相対文脈指定を対にし
て、相対文脈記憶部15の管理テーブルに記憶させる。
FIG. 11 is a flowchart showing an example of the operation of the third embodiment of the document processing apparatus of the present invention. The operation of the third embodiment is almost the same as the operation of the first and second embodiments described above, that is, the operation shown in FIGS. 7 and 4. In FIG. 11, S41 to S4
5 and S47 are the same operations as S31 to S35 and S37 of FIG. In S46, the document component designated in S43 and the relative context designation input in S45 are paired and stored in the management table of the relative context storage unit 15.

【0049】入力が終了すると、S48ないしS51の
処理に移行する。S48では、相対文脈記憶部15の管
理テーブルから1対のデータを読み出す。読み出したデ
ータに対して、S49,S50の処理を行ない、処理記
述を作成する。このS49,S50の処理は、図4のS
25,S26の処理と同じである。S51において、相
対文脈記憶部15内の管理テーブルに記憶されているす
べての対について処理の終了が判定されるまで、S48
ないしS50の処理が繰り返される。管理テーブルに記
憶されているすべての対について、処理記述が作成され
ると、S52において、処理実行部7が動作し、処理結
果9が出力される。
When the input is completed, the process proceeds to S48 to S51. In S48, a pair of data is read from the management table of the relative context storage unit 15. The processing of S49 and S50 is performed on the read data to create a processing description. The processes of S49 and S50 are the same as S of FIG.
25, which is the same as the processing of S26. Until it is determined in S51 that the processing is completed for all the pairs stored in the management table in the relative context storage unit 15, S48 is performed.
Through S50 are repeated. When the process description is created for all the pairs stored in the management table, the process execution unit 7 operates in S52 and the process result 9 is output.

【0050】[0050]

【発明の効果】以上の説明から明らかなように、本発明
によれば、文書中の特定の部品に、文書の編集から独立
な相対文脈指定をユーザが付与することによって、文書
の編集に対して不変な部品指定を可能とすることができ
る。すなわち、ユーザは編集によっても保たれる部分の
指定を相対文脈指定による文脈情報によって表現し、編
集によって指定され、変更の必要がある部分の指定を相
対文脈指定の起点となる文書部品を特定することによっ
て表現する。これにより、文脈情報を利用する利点を保
ちつつ、文書の変更による処理対象記述の再定義の必要
性がなくなる。つまり、処理の対象を文書の特定したい
文書部品がある文書部品に対して一定の相対位置関係に
ある場合に、文書を編集しても、その相対位置関係さえ
保持すれば処理に対する指示を変更する必要がなくな
る。また、文脈情報を用いた指定により、個別に処理を
指定する従来の技術で述べた第1の方法に対して、簡便
な指定が可能となる等の効果がある。さらに、請求項2
に記載の発明では、ユーザにより相対文脈指定の起点と
なる文書部品を直接指定することが可能となっている。
As is apparent from the above description, according to the present invention, the user gives a relative context designation independent of the editing of the document to a specific part in the document, so that the editing of the document can be performed. Invariant parts can be specified. That is, the user expresses the designation of the portion that is retained by the editing by the context information by the relative context designation, and identifies the designation of the portion that is designated by the editing and needs to be changed, and specifies the document part that is the starting point of the relative context designation. Express by This eliminates the need to redefine the processing target description due to the change of the document while maintaining the advantage of using the context information. In other words, if a document part whose processing target is to be specified has a certain relative positional relationship with a certain document part, even if the document is edited, the instruction for processing is changed as long as the relative positional relationship is retained. There is no need. Further, there is an effect that the designation using the context information enables simple designation as compared with the first method described in the conventional technique of individually designating the process. Further, claim 2
In the invention described in (3), the user can directly specify the document part that is the starting point of the relative context specification.

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

【図1】 本発明の文書処理装置の第1の実施例を示す
構成図である。
FIG. 1 is a configuration diagram showing a first embodiment of a document processing apparatus of the present invention.

【図2】 処理対象文書の論理構造の一例の説明図であ
る。
FIG. 2 is an explanatory diagram of an example of a logical structure of a processing target document.

【図3】 処理対象文書の版面の一例の説明図である。FIG. 3 is an explanatory diagram of an example of a printing surface of a document to be processed.

【図4】 本発明の文書処理装置の第1の実施例におけ
る動作の一例を示すフローチャートである。
FIG. 4 is a flowchart showing an example of an operation in the first exemplary embodiment of the document processing apparatus of the present invention.

【図5】 出力文書の一例の説明図である。FIG. 5 is an explanatory diagram of an example of an output document.

【図6】 本発明の文書処理装置の第2の実施例を示す
構成図である。
FIG. 6 is a configuration diagram showing a second embodiment of the document processing apparatus of the present invention.

【図7】 本発明の文書処理装置の第2の実施例におけ
る動作の一例を示すフローチャートである。
FIG. 7 is a flowchart showing an example of an operation in the second exemplary embodiment of the document processing apparatus of the present invention.

【図8】 文書部品特定部、相対文脈入力部における表
示画面の一例の説明図である。
FIG. 8 is an explanatory diagram of an example of a display screen in the document component specifying unit and the relative context input unit.

【図9】 本発明の文書処理装置の第3の実施例を示す
構成図である。
FIG. 9 is a configuration diagram showing a third embodiment of the document processing apparatus of the present invention.

【図10】 相対文脈記憶部で用いられる管理テーブル
の一例の説明図である。
FIG. 10 is an explanatory diagram of an example of a management table used in a relative context storage unit.

【図11】 本発明の文書処理装置の第3の実施例にお
ける動作の一例を示すフローチャートである。
FIG. 11 is a flowchart showing an example of an operation in the third exemplary embodiment of the document processing apparatus of the present invention.

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

1…文書処理装置、2…入力文書保持部、3…文書部品
指定記述生成部、4…文書処理部、5…処理指示保持
部、6…処理記述作成部、7…処理実行部、8…入力文
書、9…出力文書、11…文書部品特定部、12…相対
文脈入力部、13…相対文脈付加部、14…相対文脈抽
出部、15…相対文脈記憶部。
DESCRIPTION OF SYMBOLS 1 ... Document processing device, 2 ... Input document holding part, 3 ... Document part designation description generation part, 4 ... Document processing part, 5 ... Process instruction holding part, 6 ... Process description creation part, 7 ... Process execution part, 8 ... Input document, 9 ... Output document, 11 ... Document component specifying unit, 12 ... Relative context input unit, 13 ... Relative context addition unit, 14 ... Relative context extraction unit, 15 ... Relative context storage unit.

フロントページの続き (72)発明者 門馬 敦仁 神奈川県横浜市保土ヶ谷区神戸町134番地 横浜ビジネスパークイーストタワー 富 士ゼロックス株式会社内Front Page Continuation (72) Inventor Atsuhito Monma 134 Kobe-cho, Hodogaya-ku, Yokohama-shi, Kanagawa Yokohama Business Park East Tower Fuji Xerox Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数の文書部品から構成されている構造
化文書を入力とする文書処理装置において、文書部品を
特定する文書部品特定情報と該特定された文書部品と文
書処理の対象となる文書部品集合との文書構造上の関係
を表わす相対文脈情報とを対応付けて保持する相対文脈
情報保持手段と、該相対文脈情報保持手段に保持されて
いる前記文書部品特定情報と相対文脈情報に基づいて処
理対象となる文書部品を指定する文書部品指定記述を生
成する文書部品指定記述生成手段と、前記文書部品指定
記述に基づいて処理対象部品に対して文書処理を行なう
文書処理手段を有することを特徴とする文書処理装置。
1. A document processing apparatus which inputs a structured document composed of a plurality of document parts, document part specifying information for specifying a document part, the specified document part, and a document to be subjected to document processing. Relative context information holding means that holds the relative context information indicating the document structure relationship with the parts set in association with each other, and based on the document parts specifying information and the relative context information held in the relative context information holding means And a document processing means for performing document processing on the processing target part based on the document part specification description, and a document part specification description generation means for generating a document part specification description for designating a document part to be processed. Characteristic document processing device.
【請求項2】 入力された指示に基づいて文書部品を特
定する文書部品特定手段と、前記特定された文書部品と
文書処理の対象となる前記文書部品集合との文書構造上
の関係を表わす相対文脈情報を入力する相対文脈情報入
力手段と、入力された前記相対文脈情報を前記特定され
た文書部品に付加する相対文脈情報付加手段と、前記相
対文脈情報が付加された文書部品の文書部品識別子と相
対文脈情報を文書中から抽出する相対文脈情報抽出手段
をさらに有し、前記文書部品指定記述生成手段は、前記
相対文脈情報抽出手段で抽出された前記文書部品識別子
と前記相対文脈情報に基づいて処理対象となる文書部品
を指定する文書部品指定記述を生成することを特徴とす
る請求項1に記載の文書処理装置。
2. A relative document part specifying means for specifying a document part on the basis of an input instruction, and a relative representing a structural relationship between the specified document part and the set of document parts to be subjected to document processing. Relative context information input means for inputting context information, relative context information adding means for adding the input relative context information to the specified document part, and document part identifier of the document part to which the relative context information is added And relative context information extraction means for extracting relative context information from the document, wherein the document part designation description generation means is based on the document part identifier and the relative context information extracted by the relative context information extraction means. The document processing apparatus according to claim 1, wherein a document part designation description that specifies a document part to be processed is generated.
JP6216406A 1994-09-09 1994-09-09 Document processor Pending JPH0877171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6216406A JPH0877171A (en) 1994-09-09 1994-09-09 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6216406A JPH0877171A (en) 1994-09-09 1994-09-09 Document processor

Publications (1)

Publication Number Publication Date
JPH0877171A true JPH0877171A (en) 1996-03-22

Family

ID=16688071

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6216406A Pending JPH0877171A (en) 1994-09-09 1994-09-09 Document processor

Country Status (1)

Country Link
JP (1) JPH0877171A (en)

Similar Documents

Publication Publication Date Title
KR101312867B1 (en) Markup based extensibility for user interfaces
US6799299B1 (en) Method and apparatus for creating stylesheets in a data processing system
US6061698A (en) Merging tagged documents and scripts having dynamic content
US8091068B2 (en) User configurable language independent code assist method, system, article of manufacture, and computer program product
US20120036427A1 (en) Document processing apparatus, document processing method and computer program
US8386919B2 (en) System for displaying an annotated programming file
US20040041818A1 (en) Design system for website text graphics
US20070214136A1 (en) Data mining diagramming
JPH1185750A (en) Structured document rpocessing method, structured document rpocessor and computer-readable recording medium recorded with structured document processing program
JPH11513151A (en) How to generate a multimedia presentation
US6175843B1 (en) Method and system for displaying a structured document
US7313784B2 (en) Language independent code assist user preferences configuration method, system, article of manufacture, and computer program product
US7562343B2 (en) User configurable language independent code assist engine method, system, article of manufacture, and computer program product
JP2006285707A (en) Business specification creation support system and method
US20030154462A1 (en) Software maintenance material generation apparatus and generation program therefor
JPH0877171A (en) Document processor
JP5016333B2 (en) Document creation support apparatus and document creation support program
Liu et al. Towards building logical views of websites
JP3712320B2 (en) Variable document creation system, variable document output device and variable document creation device
JPH05135054A (en) Document processing method
JP2001117761A (en) Method and device for manufacturing picture program and recording medium stored with picture program manufacturing program
JPH11272666A (en) System and method for editing document and record medium
JP2009217635A (en) Retrieval condition generation method, retrieval condition generation device, and program
JPH0785006A (en) Method and device for retrieving information
CN112132926A (en) Flow chart primitive style designer based on scalable vector diagram and design method thereof

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040615