JPH08194706A - Structural sentence generation device - Google Patents

Structural sentence generation device

Info

Publication number
JPH08194706A
JPH08194706A JP7005472A JP547295A JPH08194706A JP H08194706 A JPH08194706 A JP H08194706A JP 7005472 A JP7005472 A JP 7005472A JP 547295 A JP547295 A JP 547295A JP H08194706 A JPH08194706 A JP H08194706A
Authority
JP
Japan
Prior art keywords
data
display
structural element
structural
text data
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
JP7005472A
Other languages
Japanese (ja)
Inventor
Yasuki Ito
泰樹 伊藤
Osamu Moriya
修 森谷
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP7005472A priority Critical patent/JPH08194706A/en
Publication of JPH08194706A publication Critical patent/JPH08194706A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To improve the operability of the generation of a structural sentence by displaying in parallel structure elements corresponding to document data and displaying a rule on logic structure on the same display screen. CONSTITUTION: A controller 17 reads the control blocks of element structure data one by one from a structure element storage device 14, and reads the rule of the logic constitution elements in corresponding logic structure element data from a logic structure storage device 15 with the structure element name of the structure element which is read as a key. Then, a display method is obtained from a relation condition corresponding to the respective structure elements by referring to a display method table, and a flag and a display character string, which show the display method, line type information of a frame surrounding element hierarchy display and line type information of a display line related to the element are transferred to a display device 12. The display device 12 displays data in an element name display area. The controller 17 reads a character string corresponding to the respective structure elements from a sentence data storage device 13 and transfers it to the display device 12. The display device 12 arranges sentence data in a sentence data display area in parallel to the structure element.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、構造化文書を作成する
装置に係わり、特に構造化文書の編集を容易にする構造
化文章作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for creating a structured document, and more particularly to an apparatus for creating a structured document which facilitates editing of a structured document.

【0002】[0002]

【従来の技術】構造化文書は、その論理構造についての
規則に従って作成される文書である。このような構造化
規則に従って構造化文書を作成したり編集するために
は、対象となる文章データとともに構造化規則をいかに
表示するかが構造化文章の作成操作をするときの課題に
なる。
2. Description of the Related Art A structured document is a document created according to the rules for its logical structure. In order to create or edit a structured document in accordance with such a structured rule, how to display the structured rule together with the target text data is an issue in the structured text creation operation.

【0003】例えば特開平3−189864号公報に開
示される技術は、論理構造についての規則と論理構造に
対応する文章を別々に表示している。この場合、新たに
構造要素を挿入するとき操作者は別に設けられた構造規
則を参照しなければどのような構造要素を入力できるか
どうか知ることができない。
For example, in the technique disclosed in Japanese Patent Laid-Open No. 3-189864, rules for a logical structure and sentences corresponding to the logical structure are separately displayed. In this case, when a new structural element is inserted, the operator cannot know what structural element can be input without referring to the structural rule provided separately.

【0004】また特開平3−148754号公報に開示
される技術は、文書の見出しを木構造に配列して表示
し、この見出しを基にして選択された見出しに対応する
文書を検索するものである。しかし文章の構造は、一般
に単純な木構造だけでなく繰り返し出現することが可能
な論理構造要素、選択可能な構造要素など構造要素の出
現回数についての規則が存在する。
Further, the technique disclosed in Japanese Patent Laid-Open No. 3-148754 is to display the headings of documents arranged in a tree structure and display the documents corresponding to the selected headings based on the headings. is there. However, the structure of a sentence generally has not only a simple tree structure but also a rule about the number of times of appearance of a structural element such as a logical structural element that can appear repeatedly and a selectable structural element.

【0005】[0005]

【発明が解決しようとする課題】以上述べたように、従
来技術によれば構造化文書の作成に当り、構造化規則に
対応するような形で文章データを作成できないか、また
は構造化規則に従って文章データを作成する操作者を誘
導しているとは言えない。
As described above, according to the prior art, when creating a structured document, it is not possible to create text data in a form corresponding to the structuring rules, or according to the structuring rules. It cannot be said that it is guiding the operator who creates the text data.

【0006】本発明は、構造要素と文章データを並列し
て表示するとともに構造化規則に従って操作者を誘導し
操作性を向上する構造化文章作成装置を目的とする。
It is an object of the present invention to display a structured element and text data in parallel and to guide a user according to a structured rule to improve the operability.

【0007】[0007]

【課題を解決するための手段】構造化文書は、タグと呼
ばれる識別子によって区切られた文字列の集まりであ
る。一連のタグは階層構造(木構造)を有し、しかも各
タグの配置順序はあらかじめ定められている。また場合
によっては1回以上出現しなければならないタグ(必須
のタグ)や0回以上出現するタグ(オプションのタグ)
のようにその出現回数が規定されているものもある。こ
のようにタグは木構造、配置順序、出現回数など論理構
造についての規則に従って配置される。
A structured document is a collection of character strings delimited by identifiers called tags. A series of tags has a hierarchical structure (tree structure), and the arrangement order of each tag is predetermined. In some cases, tags that must appear once or more (mandatory tags) or tags that appear 0 or more times (optional tags)
In some cases, the number of appearances is specified. In this way, the tags are arranged according to the rules for the logical structure such as the tree structure, the arrangement order, and the number of appearances.

【0008】このようなタグについての論理構造を表現
する規則集は文書型宣言と呼ばれているが、本発明では
この文書型宣言を内部で処理し易いデータ形式に変換し
たものを論理構造要素データと呼ぶ。論理構造要素デー
タは、論理的な構造要素をその配置順序に従って連結
し、かつ木構造を表現するものである。また論理構造要
素データはその出現回数についての情報を有している。
さらにこの論理構造要素データのうち実際の構造化文書
に出現する構造要素を内部データ形式で表現したものを
本発明では要素構造データと呼ぶ。要素構造データは、
個々の構造化文書にタグとして出現する構造要素をその
配置順序に従って連結し、かつ木構造を表現するもので
ある。例えばオプションの構造要素は論理構造要素デー
タには出現するが、対応する要素構造データに出現する
とは限らない。要素構造データ中の構造要素は対応する
文章データがあればその文章データを指すポインタを格
納する。
A set of rules for expressing the logical structure of such a tag is called a document type declaration. In the present invention, a logical structure element is obtained by converting the document type declaration into a data format that can be easily processed internally. Call it data. The logical structure element data represents a tree structure by connecting logical structure elements according to their arrangement order. Further, the logical structure element data has information on the number of appearances.
Further, among the logical structure element data, the expression of the structure element appearing in the actual structured document in the internal data format is called element structure data in the present invention. Element structure data is
This is a tree structure in which structural elements appearing as tags in individual structured documents are connected according to their arrangement order. For example, the optional structuring element appears in the logical structuring element data, but does not always appear in the corresponding structuring element data. The structure element in the element structure data stores a pointer pointing to the corresponding sentence data if there is corresponding sentence data.

【0009】本発明の構造化文章作成装置は、要素構造
データに含まれる構造要素と対応する文章データとを順
に読み出し、論理構造要素データに含まれる構造要素を
検索して該当する構造要素中の出現回数についての情報
を取り出し、該要素構造データに含まれる構造要素をそ
の配列順序に従って順に表示し、表示される各構造要素
に対応する文章データを対応する構造要素と並列して表
示し、また出現回数についての情報を表示する。
The structured-sentence creating apparatus of the present invention sequentially reads the structure elements included in the element structure data and the corresponding sentence data, searches for the structure elements included in the logical structure element data, and searches the corresponding structure elements. Information about the number of appearances is taken out, the structure elements included in the element structure data are displayed in order according to the arrangement order, the sentence data corresponding to each displayed structure element is displayed in parallel with the corresponding structure element, and Display information about the number of appearances.

【0010】さらに本発明の構造化文章作成装置は、表
示画面上の文章データに位置付けられたカーソルの位置
に対応する構造要素について前後に挿入可能な構造要素
の候補を表示する。
Further, the structured-sentence creating apparatus of the present invention displays a candidate of a structuring element which can be inserted before and after the structuring element corresponding to the position of the cursor positioned on the text data on the display screen.

【0011】[0011]

【作用】本発明によれば、構造化文書の構造要素がその
配列規則に従って表示されるとともに各構造要素に対応
する文章データがあれば対応する構造要素と並列して表
示され、編集によって文章データが拡大又は縮小しても
これに並列する構造要素も追随する。また構造要素の表
示に当り、その出現可能な回数についての情報を表示す
る。さらにカーソル位置に対応する構造要素について前
後に挿入可能な構造要素を表示する。このように論理構
造についての規則を文章データと同じ表示画面上に反映
して表示するので、構造化文章作成の操作性が向上す
る。
According to the present invention, the structural elements of the structured document are displayed in accordance with the arrangement rule, and if there is the text data corresponding to each structural element, it is displayed in parallel with the corresponding structural element, and the text data is edited. Even if is expanded or contracted, the structuring elements parallel to this are also followed. When displaying the structural element, information about the number of times that the structural element can appear is displayed. Further, the structure element that can be inserted before and after the structure element corresponding to the cursor position is displayed. In this way, since the rules regarding the logical structure are reflected and displayed on the same display screen as the text data, the operability of creating a structured text is improved.

【0012】[0012]

【実施例】以下、本発明の一実施例について図面を用い
て説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0013】図1は、本実施例の構造化文章作成装置の
構成図である。制御装置17は電子計算機、ワークステ
ーション、パーソナルコンピュータ等情報処理装置の本
体部分であり、記憶装置16に格納されたプログラムを
実行することによって文章データ及びその論理構造を読
み込み、これらを表示装置12上に表示し、操作者が行
う表示された文章データの編集を支援する処理手段であ
る。記憶装置16は制御装置17に接続される主記憶装
置であり、文章データ記憶装置13、構造要素記憶装置
14及び論理構造記憶装置15の各々の領域を有する。
文章データ記憶装置13は構造化された文章データを格
納する領域、論理構造記憶装置15はこの文章データに
関連する文章の論理構造についての規則(論理構造要素
データ)を格納する領域、構造要素記憶装置14はこの
論理構造についての規則を実際の文章データに適用した
要素構造データを格納する領域である。二次記憶装置1
8は制御装置17に接続される外部記憶装置であり、文
章データの基となる構造化文書と論理構造要素データの
基となる文章型宣言を格納する記憶装置である。表示装
置12はその表示画面に文章データとその構造要素を表
示する装置である。入力装置11は表示装置12の表示
画面に表示される情報に基づいて文章データを編集する
ためのキーボード、マウス等の入力装置である。
FIG. 1 is a block diagram of the structured-text creating apparatus of this embodiment. The control device 17 is a main body of an information processing device such as an electronic computer, a workstation, and a personal computer, and reads the text data and its logical structure by executing a program stored in the storage device 16 and displays them on the display device 12. Is a processing means for supporting the editing of the displayed text data by the operator. The storage device 16 is a main storage device connected to the control device 17, and has areas of the sentence data storage device 13, the structural element storage device 14, and the logical structure storage device 15, respectively.
The text data storage device 13 is an area for storing structured text data, and the logical structure storage device 15 is an area for storing rules (logical structure element data) about the logical structure of a text related to this text data, structural element storage. The device 14 is an area for storing element structure data in which the rule about the logical structure is applied to actual text data. Secondary storage device 1
An external storage device 8 is connected to the control device 17, and is a storage device for storing a structured document which is the basis of the sentence data and a sentence type declaration which is the basis of the logical structure element data. The display device 12 is a device that displays text data and its structural elements on its display screen. The input device 11 is an input device such as a keyboard and a mouse for editing text data based on the information displayed on the display screen of the display device 12.

【0014】図2は、論理構造記憶装置15、構造要素
記憶装置14及び文章データ記憶装置13に格納される
それぞれ論理構造要素データ23、要素構造データ22
及び文章データ21のデータ形式について事例をもって
示す図である。
FIG. 2 shows the logical structure element data 23 and the element structure data 22 respectively stored in the logical structure storage device 15, the structural element storage device 14 and the sentence data storage device 13.
3 is a diagram showing an example of the data format of text data 21. FIG.

【0015】論理構造要素データ23は、後に説明する
文書型宣言を処理し易い内部データに変換したものであ
り、論理構造要素の規則を示すものである。論理構造要
素データ23は各構造要素を1つの制御ブロックとし、
複数の構造要素を木構造の形式で構造要素の出現順にポ
インタを介して接続したものであるが、文章構造を論理
的な規則によって表現するものであるから、その構造要
素は論理構造要素と呼ばれる。各論理構造要素の構造要
素名210はその名称を示し、要素配置規則211はそ
の論理構造要素の出現規則を示し、?はその構造要素が
0又は1回出現することを示し、「必須」は1回以上繰
り返されることを示している。下位要素アドレス212
は下位の構造要素があればそのポインタを格納する。並
列要素アドレス213は並列に配置される構造要素があ
ればそのポインタを格納する。
The logical structure element data 23 is obtained by converting a document type declaration described later into internal data which can be easily processed, and shows rules of the logical structure element. The logical structuring element data 23 has each structuring element as one control block,
A plurality of structural elements are connected in the form of a tree structure in the order of appearance of structural elements via pointers. Since the text structure is expressed by logical rules, the structural element is called a logical structural element. . The structure element name 210 of each logical structure element indicates its name, the element arrangement rule 211 indicates the appearance rule of that logical structure element, and? Indicates that the structural element appears 0 or 1 times, and "required" indicates that it is repeated 1 or more times. Lower element address 212
Stores the pointer of the lower structure element, if any. The parallel element address 213 stores the pointer of the structural element if it is arranged in parallel.

【0016】要素構造データ22は、論理構造要素デー
タ23の規則に従って実際の文章データに対応する構造
要素を木構造の形式で構造要素の出現順にポインタを介
して接続したものである。1つの構造要素は1つの制御
ブロックで表現されている。各構造要素の構造要素名2
4はその構造要素の名称を示し、上位構造アドレス25
は上位の構造要素があればそのポインタを格納し、並列
構造アドレス26は並列に配置される構造要素があれば
そのポインタを格納する。文章アドレス27はその構造
要素に対応する文章データの格納領域を指すポインタで
ある。下位構造アドレス28はその構造要素の下位に配
置する構造要素があればそのポインタを格納する。編集
フラグ29はその構造要素に対応する文章データが編集
されたか否かを示すフラグである。なお論理構造要素デ
ータ23に存在する「配布先」の構造要素は実際の文章
データには存在しないので要素構造データ22には出現
しない。
The element structure data 22 is obtained by connecting the structure elements corresponding to the actual text data according to the rules of the logical structure element data 23 in a tree structure in the order of appearance of the structure elements via pointers. One structural element is represented by one control block. Structure element name 2 of each structure element
4 indicates the name of the structural element, and the upper structure address 25
Stores the pointer of the upper structure element if there is one, and the parallel structure address 26 stores the pointer of the structure element arranged in parallel. The text address 27 is a pointer that points to the storage area of the text data corresponding to the structural element. The lower structure address 28 stores the pointer of a structure element to be arranged below the structure element. The edit flag 29 is a flag indicating whether or not the text data corresponding to the structural element has been edited. Note that the "distributor" structural element existing in the logical structural element data 23 does not appear in the actual text data and therefore does not appear in the element structural data 22.

【0017】文章データ21は実際の文章データであ
り、各要素は文章アドレス27によって要素構造データ
22に連結されている。
The text data 21 is actual text data, and each element is linked to the element structure data 22 by a text address 27.

【0018】図3は、表示装置12上に表示される表示
画面の例を示す図である。要素名表示エリア31は作成
中の文章の文章構造を図式化して表示する領域である。
文章データ表示エリア32は各構造要素名に対応して編
集中の文章データを表示する領域である。要素名表示エ
リア31には、構造要素名33、各構造要素が下位要素
を持つか持たないかを示す要素階層表示34及び各構造
要素間の関連を示す要素関連表示線35を表示する。要
素表示エリア36は、現在のカーソル位置に対応して表
示されている構造要素の構造要素名33を表示する領域
である。スクロールバー37は、マウス等のポインティ
ングデバイスによりスクロールボックス38をトラッキ
ングすることによって表示画面をスクロールさせるもの
である。このスクロールによって要素名表示エリア31
内の構造要素名33と文章データ表示エリア32内の対
応する文章データが連動して表示される。
FIG. 3 is a diagram showing an example of a display screen displayed on the display device 12. The element name display area 31 is an area in which the sentence structure of the sentence being created is displayed graphically.
The text data display area 32 is an area for displaying the text data being edited corresponding to each structural element name. In the element name display area 31, a structural element name 33, an element hierarchy display 34 indicating whether or not each structural element has a lower element, and an element relation display line 35 indicating a relation between each structural element are displayed. The element display area 36 is an area for displaying the structural element name 33 of the structural element displayed at the current cursor position. The scroll bar 37 is for scrolling the display screen by tracking the scroll box 38 with a pointing device such as a mouse. By this scroll, the element name display area 31
The structural element name 33 in and the corresponding text data in the text data display area 32 are displayed in association with each other.

【0019】図4及び図5はISO8879に従う構造
化文書データの例を示す図である。図4は文書型宣言と
呼ばれ、論理構造要素の規則を示している。例えば「議
事録」の下位構造要素として「配布先」、「会議名」、
「作成日」、・・・等があり、「報告内容」の下位構造
要素として「議題」と「以上」とがあり、「議題」の下
位構造要素として「議題タイトル」、「議事」又は「箇
条書き1」、「結論」があることを示している。?、+
及び*はそれぞれその構造要素が0又は1回、0回以上
及び1回以上繰り返されることを表している。
FIGS. 4 and 5 are diagrams showing examples of structured document data according to ISO8879. FIG. 4 is called a document type declaration and shows the rules of the logical structure element. For example, as a substructure element of "minutes", "distribution destination", "meeting name",
There are "creation date", ..., etc., there are "agenda" and "above" as substructure elements of "report content", and "subject title", "agenda" or " It indicates that there are bullet points 1 "and" conclusions ". ? , +
And * respectively indicate that the structural element is repeated 0 or 1 time, 0 or more times and 1 or more times.

【0020】図5は図4の文書型宣言に対応して実際の
文章データの例を示している。図で<議事録>、<会議
名>、</会議名>等はタグと呼ばれる。文書型宣言及
び文章データは二次記憶装置18に格納されている。
FIG. 5 shows an example of actual text data corresponding to the document type declaration of FIG. In the figure, <minutes>, <meeting name>, </ meeting name>, etc. are called tags. The document type declaration and the text data are stored in the secondary storage device 18.

【0021】図6は文章データと文章型宣言を読み込む
処理の流れを示すフローチャートである。制御装置17
は、二次記憶装置18から図4に示す文書型宣言を読み
込み(ステップ61)、文章の論理構造を論理構造記憶
装置15上に展開する(ステップ62)。制御装置17
は論理構造記憶装置15上の文書型宣言を解析し、論理
構造要素データ23の形式で同じ論理構造記憶装置15
に記憶する(ステップ63)。次に制御装置17は、図
5に示す文章データを読み込み(ステップ64)、論理
構造要素データ23に記述された規則に合致するかチェ
ックする(ステップ65)。文章データが論理構造要素
データ23に整合していれば、論理構造要素データ23
の規則を実際の文章データに適用して要素構造データ2
2の形式に変換し、構造要素記憶装置14に格納する
(ステップ67)。文章データは、各構造要素からリン
クされるように文章データ21の形式で文章データ記憶
装置13上に記憶される(ステップ68)。論理構造要
素データ23との不整合が発生した場合には、以降のデ
ータをすべて文章データ21の形式で文章データ記憶装
置13に記憶する(ステップ66)。ここで不整合が発
生するとは、例えば文章データに必須のタグがない場合
などである。文章データの終わりでなければ(ステップ
69YES)、ステップ64に戻って上記処理を繰り返
す。文章データの終わりであれば処理を終了する。
FIG. 6 is a flow chart showing the flow of processing for reading text data and a text type declaration. Controller 17
Reads the document type declaration shown in FIG. 4 from the secondary storage device 18 (step 61) and expands the logical structure of the sentence on the logical structure storage device 15 (step 62). Controller 17
Analyzes the document type declaration on the logical structure storage device 15 and uses the same logical structure storage device 15 in the format of the logical structure element data 23.
(Step 63). Next, the control device 17 reads the text data shown in FIG. 5 (step 64), and checks whether or not the rule is described in the logical structure element data 23 (step 65). If the text data matches the logical structure element data 23, the logical structure element data 23
Applying the above rule to actual text data, element structure data 2
It is converted to the format 2 and stored in the structuring element storage device 14 (step 67). The text data is stored in the text data storage device 13 in the form of the text data 21 so as to be linked from each structural element (step 68). When a mismatch with the logical structure element data 23 occurs, all the subsequent data are stored in the text data storage device 13 in the format of the text data 21 (step 66). The inconsistency occurs here when, for example, the text data does not have an essential tag. If it is not the end of the text data (YES in step 69), the process returns to step 64 and the above process is repeated. If it is the end of the sentence data, the process is ended.

【0022】図7は構造要素の条件による表示方法を示
す表示方法テーブルであり、記憶装置16上に確保され
る。例えば構造要素が下位要素をもつなら§記号を付加
して表示される。またその構造要素の出現回数によって
表示方法が異なる。また構造要素の配列順序の有無によ
っても表示方法が異なる。出現回数の相違は要素階層表
示34を囲む枠の表示方法を変えることによって表現
し、配列の順序性は要素関連表示線35の表示方法を変
えることによって表現する。
FIG. 7 is a display method table showing the display method according to the condition of the structural element, which is secured in the storage device 16. For example, if a structural element has subordinate elements, it is displayed with the § symbol added. Also, the display method differs depending on the number of appearances of the structural element. The display method also differs depending on the presence or absence of the arrangement order of the structuring elements. The difference in the number of appearances is expressed by changing the display method of the frame surrounding the element hierarchy display 34, and the order of the array is expressed by changing the display method of the element relation display line 35.

【0023】図8は、表示装置12上に文章データを表
示する制御装置17の処理の流れを示すフローチャート
である。制御装置17は、構造要素記憶装置14から要
素構造データ22の制御ブロックを1つずつ読み出し
(ステップ81)、読み出した構造要素の構造要素名2
4をキーにして論理構造記憶装置15から対応する論理
構造要素データ23内の論理構造要素の規則を読み出す
(ステップ82)。次に図7に示す表示方法テーブルを
参照して各構造要素に対応する関係条件71から表示方
法を求め(ステップ83)、表示装置12に表示方法を
示すフラグ及び表示文字列、要素階層表示34を囲む枠
の線種情報及び要素関連表示線35の線種情報を転送す
る(ステップ85)。表示装置12は、図3に示す要素
名表示エリア31に表示方法72に従ってデータを表示
する(ステップ86)。次に制御装置17は、各構造要
素に対応する文字列を文章データ記憶装置13から読み
出し表示装置12へ転送する。表示装置12は、文章デ
ータ表示エリア32に構造要素と並列に文章データを配
置する(ステップ87)。表示対象の構造要素があれば
(ステップ88YES)、ステップ81に戻って上記の
処理を繰り返す。
FIG. 8 is a flow chart showing the flow of processing of the control device 17 for displaying text data on the display device 12. The control device 17 reads the control blocks of the element structure data 22 one by one from the structure element storage device 14 (step 81), and the structure element name 2 of the read structure element.
4 is used as a key to read the rule of the logical structure element in the corresponding logical structure element data 23 from the logical structure storage device 15 (step 82). Next, referring to the display method table shown in FIG. 7, the display method is obtained from the relational condition 71 corresponding to each structural element (step 83), and the flag and the display character string indicating the display method on the display device 12 and the element hierarchy display 34 are displayed. The line type information of the frame enclosing and the line type information of the element related display line 35 are transferred (step 85). The display device 12 displays the data in the element name display area 31 shown in FIG. 3 according to the display method 72 (step 86). Next, the control device 17 reads out the character string corresponding to each structural element from the text data storage device 13 and transfers it to the display device 12. The display device 12 arranges the sentence data in the sentence data display area 32 in parallel with the structuring element (step 87). If there is a structural element to be displayed (YES in step 88), the process returns to step 81 and the above process is repeated.

【0024】図9は、表示画面上で現在のカーソル位置
に対応してさらに入力可能な構造要素の候補について事
例をもって説明する図である。カーソル位置92は「議
事」の構造要素にあるので要素表示エリア36には「議
事」が表示される。また挿入可能要素表示エリア91
は、現在の「議事」の後にさらに「議事」又は「箇条書
き」を繰り返して挿入することが可能であることを示し
ている。なお現在のカーソル位置92の前に挿入可能な
構造要素があればこれも候補として出現順序に従って挿
入可能要素表示エリア91に表示される。
FIG. 9 is a diagram for explaining examples of structural element candidates that can be further input corresponding to the current cursor position on the display screen, by way of example. Since the cursor position 92 is located at the structural element of “Meeting”, “Meeting” is displayed in the element display area 36. Also, insertable element display area 91
Indicates that it is possible to repeatedly insert "agenda" or "bullets" after the current "agenda". If there is a structure element that can be inserted before the current cursor position 92, this is also displayed as a candidate in the insertable element display area 91 in the order of appearance.

【0025】図10は、カーソル位置92に対応して入
力可能な構造要素を表示する制御装置17の処理の流れ
を示すフローチャートである。制御装置17は、入力装
置11からカーソル操作についての情報を受け取る(ス
テップ101)と、文章データ記憶装置13上にある文
章データのカーソル位置を変更する(ステップ10
2)。カーソル移動が終了すると文章データがどの構造
要素の位置に存在するかを知るために文章データのアド
レスを基にして構造要素記憶装置14上の要素構造デー
タ22を検索する(ステップ103)。文章データに対
応する構造要素が判明すると制御装置17は構造要素名
210をキーにして論理構造記憶装置15上の論理構造
要素データ23を検索して要素配置規則211から当該
構造要素の前後に挿入可能な構造要素を求め(ステップ
104)、表示画面上の挿入可能要素表示エリア91に
表示する(ステップ105)。なお制御装置17は、カ
ーソルが§表示され対応する文章データの文字列を入力
できない文章データ表示エリア32の部分に位置付けす
るのを禁止する。
FIG. 10 is a flow chart showing the flow of processing of the control device 17 which displays the structural element which can be input in correspondence with the cursor position 92. When the control device 17 receives the information about the cursor operation from the input device 11 (step 101), it changes the cursor position of the text data on the text data storage device 13 (step 10).
2). When the cursor movement is completed, the element structure data 22 in the structure element storage device 14 is searched based on the address of the text data in order to know the position of the structure element where the text data exists (step 103). When the structural element corresponding to the text data is found, the control device 17 searches the logical structural element data 23 in the logical structure storage device 15 using the structural element name 210 as a key and inserts it before and after the structural element from the element arrangement rule 211. Possible structural elements are obtained (step 104) and displayed in the insertable element display area 91 on the display screen (step 105). The control device 17 prohibits positioning of the cursor in the text data display area 32 where the cursor is displayed and the character string of the corresponding text data cannot be input.

【0026】図11は制御装置17が行う文章データの
編集処理の流れを示すフローチャートである。制御装置
17は、入力装置11から文章データの編集指示(文字
列の挿入,削除,変更など)を受け取ると(ステップ1
11)、これに応答して文章データ記憶装置13上の文
章データ21に対してこれを反映し、文章データ21を
更新する(ステップ112)。文章データを更新した後
に文章データのアドレスを基にして構造要素記憶装置1
4上の要素構造データ22を検索し、該当する構造要素
の編集フラグ29をオンにする(ステップ113)。次
に構造要素の1つとこれに対応する文章データを再表示
するために表示装置12へ再表示用の文字列データを転
送する(ステップ114)。次に表示されている文章デ
ータに対応する構造要素の編集フラグ29がオンかオフ
かをチェックし(ステップ115)、編集フラグ29が
オンになっている構造要素について構造要素名を太字で
強調表示する(ステップ116)。編集フラグ29がオ
フの場合は構造要素名を通常の文字で表示する(ステッ
プ117)。再表示対象の構造要素があれば(ステップ
118YES)、ステップ114に戻って上記の処理を
繰り返す。なお操作者が入力装置11を介して挿入可能
要素表示エリア91内の構造要素名を指示すると、制御
装置17は要素構造データ22の構造要素をポインタで
たどり、構造要素の正しい配列位置に新しい構造要素の
制御ブロックを1つ作成して挿入する。文章アドレス2
7には文章データ21内のこれから挿入する文字列を格
納する領域を指すポインタを格納する。例えば図9に示
す挿入可能要素表示エリア91内の「議事」を指示すれ
ば、要素名表示エリア31内の該当する位置に「議事」
の構造要素名33を挿入する。「箇条書き1」について
も同様である。また入力装置11によってスクロールボ
ックス38が操作されれば、これに応答して制御装置1
7は要素名表示エリア31及び文章データ表示エリア3
2内のそれぞれ構造要素と対応する文章データとを並列
したまま連動して表示する。
FIG. 11 is a flow chart showing the flow of text data editing processing performed by the control device 17. When the control device 17 receives an instruction to edit text data (insert, delete, change character strings, etc.) from the input device 11 (step 1
11) In response to this, this is reflected in the text data 21 in the text data storage device 13 to update the text data 21 (step 112). After updating the text data, the structural element storage device 1 is based on the address of the text data.
The element structure data 22 on 4 is searched, and the edit flag 29 of the corresponding structure element is turned on (step 113). Next, the character string data for re-display is transferred to the display device 12 in order to re-display one of the structural elements and the corresponding text data (step 114). Next, it is checked whether the edit flag 29 of the structural element corresponding to the displayed text data is on or off (step 115), and the structural element name of the structural element for which the edit flag 29 is on is highlighted in bold. (Step 116). If the edit flag 29 is off, the structuring element name is displayed in normal characters (step 117). If there is a structural element to be redisplayed (YES in step 118), the process returns to step 114 and the above processing is repeated. When the operator designates the structure element name in the insertable element display area 91 via the input device 11, the control device 17 traces the structure element of the element structure data 22 with the pointer and sets the new structure at the correct arrangement position of the structure element. Create and insert one control block for the element. Text address 2
A pointer 7 pointing to an area in the text data 21 for storing a character string to be inserted is stored. For example, by pointing to "Meeting" in the insertable element display area 91 shown in FIG. 9, "Meeting" is displayed at the corresponding position in the element name display area 31.
The structural element name 33 of is inserted. The same applies to “bullet 1”. When the scroll box 38 is operated by the input device 11, the control device 1 responds to the operation.
7 is an element name display area 31 and a sentence data display area 3
The structural elements in 2 and the corresponding text data are displayed in parallel while being linked.

【0027】[0027]

【発明の効果】以上述べたように文章データとその対応
する構造要素が並列して表示されるとともに論理構造に
ついての規則を文章データと同じ表示画面上に表示する
など規則によって操作者を誘導するので、構造化文章作
成の操作性が向上する。
As described above, the text data and the corresponding structural elements are displayed in parallel, and the rules for the logical structure are displayed on the same display screen as the text data to guide the operator. Therefore, the operability of creating a structured sentence is improved.

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

【図1】実施例の構造化文章作成装置の構成図である。FIG. 1 is a configuration diagram of a structured text creation device according to an embodiment.

【図2】主なデータのデータ形式を事例によって示す図
である。
FIG. 2 is a diagram showing a data format of main data by an example.

【図3】表示画面の例を示す図である。FIG. 3 is a diagram showing an example of a display screen.

【図4】文章の構造を示す文書型宣言の例を示す図であ
る。
FIG. 4 is a diagram showing an example of a document type declaration showing the structure of a sentence.

【図5】図4の構造に対応する文章データの例を示す図
である。
5 is a diagram showing an example of text data corresponding to the structure of FIG.

【図6】データの読み込みをする制御装置17の処理の
流れを示すフローチャートである。
FIG. 6 is a flowchart showing a processing flow of a control device 17 for reading data.

【図7】構造要素の表示方法を設定するテーブル例を示
す図である。
FIG. 7 is a diagram showing an example of a table for setting a display method of structural elements.

【図8】データの表示をする制御装置17の処理の流れ
を示すフローチャートである。
FIG. 8 is a flowchart showing a processing flow of a control device 17 for displaying data.

【図9】カーソル位置と入力可能な構造要素についての
表示例を示す図である。
FIG. 9 is a diagram showing a display example of cursor positions and inputtable structural elements.

【図10】カーソル位置を検出して入力可能な構造要素
を決定し表示する制御装置17の処理の流れを示すフロ
ーチャートである。
FIG. 10 is a flowchart showing a processing flow of a control device 17 which detects a cursor position to determine and display a structural element that can be input.

【図11】文章データを更新するときの制御装置17の
処理の流れを示すフローチャートである。
FIG. 11 is a flowchart showing a processing flow of the control device 17 when updating text data.

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

12・・・表示装置、17・・・制御装置、21・・・
文章データ、22・・・要素構造データ、23・・・論
理構造要素データ、31・・・要素名表示エリア、32
・・・文章データ表示エリア、33・・・構造要素名、
91・・・挿入可能要素表示エリア、92・・・カーソ
ル位置
12 ... Display device, 17 ... Control device, 21 ...
Text data, 22 ... Element structure data, 23 ... Logical structure element data, 31 ... Element name display area, 32
... Sentence data display area, 33 ... Structural element name,
91 ... Insertable element display area, 92 ... Cursor position

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】構造化文書の論理構造を複数の出現可能な
構造要素の集まりによって表現し、各構造要素を1つの
制御ブロックで表現し、該制御ブロックに表現される構
造要素の出現回数についての情報を格納し、該構造化文
書の論理構造を該制御ブロックを所定の配列順序に従っ
て連結して論理構造要素データとし、該論理構造要素デ
ータのうち該構造化文書に実際に出現する各構造要素を
1つの制御ブロックで表現し、該制御ブロックに対応す
る文章データがあればその文章データが格納される領域
を指すポインタを格納し、実際に出現する構造要素の制
御ブロックを該配列順序に従って連結して要素構造デー
タとし、該論理構造要素データ、該要素構造データ及び
該文章データを格納する記憶手段と、 該要素構造データに含まれる構造要素を該配列順序に従
って順に表示し、表示される各構造要素に対応する該文
章データを対応する構造要素と並列して表示し、該出現
回数に関する情報を表示する表示手段と、 該記憶手段中の該要素構造データに含まれる構造要素と
対応する文章データとを順に読み出し、該論理構造要素
データに含まれる構造要素を検索して該当する構造要素
に含まれる制御ブロック中の該出現回数についての情報
を取り出し、該要素構造データに含まれる構造要素、該
文章データ及び該出現回数についての情報を該表示手段
へ転送する処理手段とを有することを特徴とする構造化
文章作成装置。
1. A logical structure of a structured document is expressed by a group of a plurality of possible structural elements, each structural element is expressed by one control block, and the number of appearances of the structural element expressed by the control block is expressed. Information is stored, and the logical structure of the structured document is connected to the control blocks according to a predetermined arrangement order as logical structure element data, and each structure of the logical structure element data that actually appears in the structured document. An element is represented by one control block, and if there is text data corresponding to the control block, a pointer pointing to an area in which the text data is stored is stored, and the control block of the actually appearing structural element is stored according to the arrangement order. Concatenated to form element structure data, storage means for storing the logical structure element data, the element structure data and the sentence data, and a structure element included in the element structure data. Display means for sequentially displaying the elements according to the arrangement order, displaying the sentence data corresponding to each displayed structural element in parallel with the corresponding structural element, and displaying information regarding the number of appearances; Of the structural element included in the element structural data and the corresponding sentence data are sequentially read, the structural element included in the logical structural element data is searched, and the number of appearances in the control block included in the corresponding structural element An apparatus for creating a structured text, comprising: processing means for taking out information and transferring information about a structure element included in the element structure data, the text data and the number of appearances to the display means.
【請求項2】該表示手段はさらに該文章データに位置付
けられたカーソルの位置に対応する構造要素について挿
入可能な構造要素の候補を表示する領域を設け、該処理
手段は現在のカーソルの位置を検出して対応する構造要
素を求め、該論理構造要素データ中の該当する構造要素
の該出現回数及び前後の構造要素に基づいて挿入可能な
構造要素の候補を決定し、該候補を該表示手段へ転送す
ることを特徴とする請求項1記載の構造化文章作成装
置。
2. The display means further comprises an area for displaying a candidate of a structuring element that can be inserted with respect to a structuring element corresponding to the position of the cursor positioned in the text data, and the processing means indicates the current position of the cursor. The corresponding structural element is detected, the candidate of the insertable structural element is determined based on the number of appearances of the corresponding structural element in the logical structural element data and the preceding and following structural elements, and the candidate is displayed by the display means. The structured sentence creating device according to claim 1, wherein
【請求項3】該要素構造データに含まれる構造要素の制
御ブロックは、さらに対応する文章データについて編集
操作が行われたか否かを示す編集フラグを有し、該処理
手段は編集操作が行われた文章データに対応する構造要
素についての情報を強調表示するよう指示することを特
徴とする請求項1記載の構造化文章作成装置。
3. A control block of a structure element included in the element structure data further has an edit flag indicating whether or not the corresponding text data is edited, and the processing means performs the edit operation. 2. The structured-text creating apparatus according to claim 1, further comprising an instruction to highlight information about a structural element corresponding to the written text data.
JP7005472A 1995-01-18 1995-01-18 Structural sentence generation device Pending JPH08194706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7005472A JPH08194706A (en) 1995-01-18 1995-01-18 Structural sentence generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7005472A JPH08194706A (en) 1995-01-18 1995-01-18 Structural sentence generation device

Publications (1)

Publication Number Publication Date
JPH08194706A true JPH08194706A (en) 1996-07-30

Family

ID=11612194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7005472A Pending JPH08194706A (en) 1995-01-18 1995-01-18 Structural sentence generation device

Country Status (1)

Country Link
JP (1) JPH08194706A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011060140A (en) * 2009-09-11 2011-03-24 Fuji Xerox Co Ltd Structured document editing program and structured document editing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011060140A (en) * 2009-09-11 2011-03-24 Fuji Xerox Co Ltd Structured document editing program and structured document editing device

Similar Documents

Publication Publication Date Title
US20070298399A1 (en) Process and system for producing electronic book allowing note and corrigendum sharing as well as differential update
US5982365A (en) System and methods for interactively generating and testing help systems
JPS6091450A (en) Table type language interpreter
KR910003523A (en) Document data processing method using image data
JPH10124495A (en) Original text generation processor and medium for storing program for the same
EP1744254A1 (en) Information management device
JPH05225181A (en) Editing device
JP4566196B2 (en) Document processing method and apparatus
US20040049742A1 (en) Document creation support system
US20080120537A1 (en) Domain transformation languages
JPS60164863A (en) Word processor
JP2009237885A (en) Document editing device, method, and program
JPH01191270A (en) Graphic editor
JPH08221417A (en) New/old comparing editing device for structured document
US20070220439A1 (en) Information Management Device
JPH08194706A (en) Structural sentence generation device
JP2002189740A (en) Data conversion system
JPS63109578A (en) Processing system for logic diagram outline display
JP3674905B2 (en) Document editing device
JP4085599B2 (en) Form output system
US7613709B2 (en) System and method for editing operations of a text object model
JPH11272666A (en) System and method for editing document and record medium
JPS63109534A (en) Cursor display control system for logic diagram generation processor
JPH11161666A (en) Method and device for document data retrieval and document editing device
JPH08166950A (en) Document editing device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040210