JPH08221417A - New/old comparing editing device for structured document - Google Patents

New/old comparing editing device for structured document

Info

Publication number
JPH08221417A
JPH08221417A JP7026395A JP2639595A JPH08221417A JP H08221417 A JPH08221417 A JP H08221417A JP 7026395 A JP7026395 A JP 7026395A JP 2639595 A JP2639595 A JP 2639595A JP H08221417 A JPH08221417 A JP H08221417A
Authority
JP
Japan
Prior art keywords
document
new
old
logical structure
logical
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
JP7026395A
Other languages
Japanese (ja)
Inventor
Kazumichi Shibata
和道 柴田
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 JP7026395A priority Critical patent/JPH08221417A/en
Publication of JPH08221417A publication Critical patent/JPH08221417A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To easily and efficiently perform the editing and correction of a document by parallelly displaying the corresponding logical structure of the new/old document while suitably inserting a space to the new or old document, and synchronously scrolling the display of the new/old document. CONSTITUTION: This device is composed of an output device 101 such as display, input device 102 such as keyboard or mouse, main body 103 of a computer, project file 104, old document file 105, new document file 106, logical structure corresponding data file 107 and logical structure definition file 108. When the logical structure of the new document is edited or when its size is changed by editing the contents of structure, the corresponding logical structure of the new/old document is parallelly displayed while suitably inserting the space to the new or old document and further, the display of the new/old document is synchronously scrolled. Thus, a worker can easily comprehend and manage the logical structure of the document.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、論理構造や物理構造な
どの記述形式が規定されており、かつ改正・修正が頻繁
に行われる規定集、法令文書等の編集作業を行う構造化
文書の新旧対照編集装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention defines a description format such as a logical structure and a physical structure, and is a structured document for editing work such as a collection of rules and legal documents that are frequently revised and modified. Old and new contrast editing device.

【0002】[0002]

【従来の技術】従来、規定集等の文書の改正作業を支援
するシステムとして、例えば特開平4−162175号
公報(発明の名称;文書改正支援システム)に開示され
ているものがある。
2. Description of the Related Art Conventionally, there is a system disclosed in Japanese Patent Laid-Open No. 4-162175 (Title of Invention: Document Revision Support System) as a system for supporting document revision work.

【0003】これは、現行の規定集に今回改正する個所
をマークした改正現行文書ファイルと、これに対してど
のような改正をするのかをキーボードなどから入力した
改正内容ファイルとから、新旧対照表と新規定集を作成
するシステムである。
[0003] This is based on a new and old contrast table based on a revised current document file in which the revisions in the current regulation are marked this time, and a revision content file in which what kind of revision is to be entered from a keyboard or the like. And a system that creates a new regulation book.

【0004】一方、規定集、法令文書等を作成編集する
装置として、一般に広く使用されているワードプロセッ
サがある。
On the other hand, there is a word processor which is generally widely used as a device for creating and editing regulations, legal documents and the like.

【0005】[0005]

【発明が解決しようとする課題】ところで、規定集、法
令文書などでは、通常、その論理的、物理的構造が厳密
に定められている。例えば、章、条、項、号などのよう
な構造である。
By the way, in the regulations and legal documents, the logical and physical structures are usually strictly defined. For example, structures such as chapters, articles, paragraphs, and issues.

【0006】しかしながら、従来のワードプロセッサで
は、それらの構造に関する情報を管理する機能は持って
おらず、作業者が論理的、物理的構造に注意して作業を
行わざるを得ず、作業者の精神的負担が大きくなり、修
正ミスや修正漏れなどの誤りを犯し易いという問題があ
った。
However, the conventional word processor does not have the function of managing the information on the structure, and the worker is obliged to pay attention to the logical and physical structures, and the spirit of the worker is inevitable. There is a problem that the burden on the operator becomes large and it is easy to make mistakes such as correction mistakes and omissions.

【0007】また、一度に編集作業をできるのは1文書
のみであることが多く、既存の文書を修正するには、そ
れを紙に一旦出力した後に画面の文書と見比べながら修
正作業を行わなければならなかった。このとき、編集前
と編集中の文書の対応付け、特にその論理構造の対応付
けは作業者が行わなければならず、現在自分が修正して
いる個所や旧文書に対してどのような修正を行ったのか
把握するのが非常に困難であるという問題がある。
Further, it is often the case that only one document can be edited at a time, and in order to modify an existing document, it is necessary to output it once on paper and then compare it with the document on the screen. I had to do it. At this time, it is necessary for the operator to associate the document before editing with the document being edited, especially the logical structure thereof, and what kind of correction should be made to the part currently being edited or the old document. There is a problem that it is very difficult to know what has been done.

【0008】この場合、一部には、複数の文書を画面に
同時に表示して編集を行えるワードプロセッサも存在す
るが、それも2つの文書を同期してスクロールする手段
が提供されている程度である。そのため、文書に追加、
削除を繰り返すと、新旧文書の対応関係がずれてしま
い、論理構造の対応付けはやはり作業者が行わなければ
ならないという問題がある。
In this case, there are some word processors capable of simultaneously displaying and editing a plurality of documents on the screen, but this is only to the extent that means for scrolling two documents in synchronization is provided. . So add it to the document,
When the deletion is repeated, the correspondence between the old and new documents is displaced, and there is a problem that the operator must also associate the logical structures.

【0009】また、特開平4−162175号の文書改
正支援システムでは、改正内容を確認するには一旦紙に
出力しなければならないうえ、改正内容を修正する必要
がある場合には、出力、確認、修正入力、再出力を繰り
返すことになり、大変な労力と時間を必要とするという
問題がある。
Further, in the document revision support system of Japanese Patent Laid-Open No. 4-162175, in order to confirm the revision content, it is necessary to output it once on paper, and when it is necessary to correct the revision content, it is output and confirmed. The correction input and the re-output are repeated, which requires a great deal of labor and time.

【0010】本発明の目的は、論理的、物理的構造が定
められている文書の編集、修正作業を容易に効率良く行
うことができる構造化文書の新旧対照編集装置を提供す
ることにある。
An object of the present invention is to provide an old / new contrast editing apparatus for a structured document which can easily and efficiently edit and correct a document having a logical and physical structure.

【0011】[0011]

【課題を解決するための手段】上記の目的を達成するた
めに本発明は、論理的構造情報を内部に保持する電子化
文書(以下、構造化文書と呼ぶ)を処理の対象とし、編
集前文書(旧文書)と編集中文書(新文書)およびそれ
らの論理構造を解析し、対応付けたデータを記憶する手
段と、新旧文書を画面に並べて表示する手段と、新文書
の論理構造に対する編集が行われたとき、または構造の
内容に編集が加えられてその大きさが変化したときに、
新文書あるいは旧文書に適宜空白を挿入して、互いの論
理構造を対応付けて新旧文書を並べて表示する手段と、
新旧文書の表示を同期してスクロールする手段とを備え
ることを主要な特徴とする。
In order to achieve the above object, the present invention targets a digitized document (hereinafter referred to as a structured document) which internally holds logical structure information, before editing. A document (old document), a document being edited (new document) and their logical structures are analyzed, a means for storing associated data, a means for displaying the old and new documents side by side on the screen, and editing for the logical structure of the new document Is done, or when the structure content is edited and its size changes,
A method to insert a blank into a new document or an old document as appropriate, and to display the old and new documents side by side in association with each other's logical structure,
The main feature is to have a means for scrolling the display of old and new documents in synchronization.

【0012】[0012]

【作用】本発明によれば、新文書の論理構造に対する編
集が行われたとき、また構造の内容に編集が加えられて
その大きさが変化したときは、新文書あるいは旧文書に
適宜空白を挿入して新旧文書の対応する論理構造を並べ
て表示し、さらに新旧文書の表示を同期してスクロール
する。
According to the present invention, when an edit is made to the logical structure of a new document, or when the size of the structure changes due to an edit being made to the structure, a blank space is appropriately added to the new or old document. Insert and display the corresponding logical structures of old and new documents side by side, and scroll the display of old and new documents synchronously.

【0013】これにより、作業者が文書の論理構造を理
解、管理し易くなる。すなわち、作業者が文書のどこ
に、どのような修正を加えたかを把握しやすくなる。こ
の結果、修正漏れや修正ミスを減らすことが可能にな
り、論理構造の定められた文書の編集、修正作業が容易
になり、作業効率を向上させることができる。
This makes it easy for the operator to understand and manage the logical structure of the document. That is, it becomes easy for the worker to understand where and what kind of correction is made in the document. As a result, it is possible to reduce correction omissions and correction mistakes, facilitate editing and correction work of a document having a defined logical structure, and improve work efficiency.

【0014】特に、論理構造の管理を装置自身が行うの
で、作業者は文書の論理構造の管理を意識して行うこと
なく作業に集中することができ、熟練していない初心者
であっても編集、修正作業に携わることが可能になる。
In particular, since the apparatus itself manages the logical structure, the operator can concentrate on the work without paying attention to the management of the logical structure of the document. Even an unskilled beginner can edit the document. , It becomes possible to be involved in the correction work.

【0015】この場合、新旧分文書の差分を抽出し、追
加、削除、変更が行われている個所を強調表示する手段
を付加することにより、編集、修正作業をさらに効率良
く行うことができる。
In this case, by adding a means for extracting the difference between the old and new documents and highlighting the place where the addition, deletion, or change is made, the editing and correction work can be performed more efficiently.

【0016】[0016]

【実施例】以下、本発明の一実施例を図面により説明す
る。
An embodiment of the present invention will be described below with reference to the drawings.

【0017】図1は、本発明の一実施例を示すシステム
構成図である。
FIG. 1 is a system configuration diagram showing an embodiment of the present invention.

【0018】この実施例の構造化文書の新旧対照編集装
置は、ディスプレイなどの出力装置101、キーボード
やマウスなどの入力装置102、計算機本体103、プ
ロジェクトファイル104、旧文書ファイル105、新
文書ファイル106、論理構造対応データファイル10
7、論理構造定義ファイル108から構成されている。
The structured document old-new contrast editing apparatus of this embodiment is an output device 101 such as a display, an input device 102 such as a keyboard and a mouse, a computer main body 103, a project file 104, an old document file 105, and a new document file 106. , Logical structure correspondence data file 10
7. The logical structure definition file 108.

【0019】このうち、プロジェクトファイル104に
は、連携して処理される他の4つのファイル105〜1
08の格納場所を示すデータが納められる。また、旧文
書ファイル105、新文書ファイル106には、それぞ
れ、編集前の構造化文書と編集中の構造化文書が納めら
れる。これは例えばSGML(Standard Ge
neralized Markup Languag
e,ISO規格8879−1986参照)に基づき、文
書の論理構造情報を示す標識(以下、タグと呼ぶ)が内
部に埋め込まれた文書である。
Of these, the project file 104 includes four other files 105 to 1 which are processed in cooperation with each other.
The data indicating the storage location of 08 is stored. The old document file 105 and the new document file 106 respectively store the structured document before editing and the structured document being edited. This is, for example, SGML (Standard Ge)
generalized Markup Languag
e, see ISO standard 8879-1986), which is a document in which a mark (hereinafter referred to as a tag) indicating the logical structure information of the document is embedded.

【0020】論理構造対応データファイル107には、
新旧文書の論理構造の対応関係を示すデータが納められ
る。論理構造定義ファイル108には、新旧文書ファイ
ルの論理構造情報を示すタグがどのようなルールに基づ
いているかを定義するデータが納められる。これは例え
ばSGMLにおけるDTD(Document Typ
e Difinition)である。
In the logical structure correspondence data file 107,
The data indicating the correspondence between the logical structures of old and new documents is stored. The logical structure definition file 108 stores data that defines what kind of rule the tags indicating the logical structure information of the old and new document files are based on. This is, for example, DTD (Document Type) in SGML.
e Definition).

【0021】動作の概要はつぎの通りである。まず、各
種ファイル104〜108のデータを計算機本体103
に読み込み、構造化文書の論理構造を解析し、計算機内
部の形式に変換して記憶し、出力装置101に表示す
る。このとき、新旧文書は左右に並べて表示し、それぞ
れに適当な空白を挿入することにより、対応する論理構
造の頭を揃えて並べて表示する。
The outline of the operation is as follows. First, the data of various files 104 to 108 is transferred to the computer main body 103
, The logical structure of the structured document is analyzed, converted into the internal format of the computer, stored, and displayed on the output device 101. At this time, the old and new documents are displayed side by side, and by inserting an appropriate blank in each, the heads of the corresponding logical structures are aligned and displayed.

【0022】入力装置102から入力される作業者から
の指示(文字の入力、編集、論理構造単位の編集など)
にしたがって計算機本体103に記憶したデータの処理
を行い、その結果を出力装置101の表示に逐次反映さ
せることにより、作業者との対話処理によって新文書の
編集作業を行う。
Instructions from the operator input from the input device 102 (input of characters, editing, editing of logical structure unit, etc.)
The data stored in the computer main body 103 is processed in accordance with the above, and the result is sequentially reflected on the display of the output device 101, whereby the new document is edited by the interactive process with the worker.

【0023】このときも出力装置101の新旧文書の表
示に適当な空白を挿入することにより、新旧文書の対応
する論理構造は常に頭を揃えて並んで表示されるよう、
自動的に調整する。
Also at this time, by inserting an appropriate blank in the display of the old and new documents on the output device 101, the corresponding logical structures of the old and new documents are always displayed side by side with their heads aligned.
Adjust automatically.

【0024】最後に計算機本体103に記憶されたデー
タを新文書ファイル106、論理構造対応データファイ
ル107に格納する。
Finally, the data stored in the computer main body 103 is stored in the new document file 106 and the logical structure correspondence data file 107.

【0025】次に、新旧文書の論理構造の対応づけを管
理するための、計算機本体103内でのデータ管理方法
について説明する。
Next, a data management method in the computer main body 103 for managing the correspondence between the logical structures of old and new documents will be described.

【0026】図2(a),(b)は、構造化文書の計算
機内部でのデータ構造を示す図である。このなかで、図
2(a)は文書の論理構造表示の例、図2(b)は計算
機内部での文書の記憶方法を示したものである。
FIGS. 2A and 2B are views showing the data structure of the structured document inside the computer. Among these, FIG. 2A shows an example of a logical structure display of a document, and FIG. 2B shows a storage method of the document inside the computer.

【0027】図2(a)で、四角の箱201は文書の論
理構造単位を表し、ノードと呼ぶ。ノード同士を繋ぐ線
202は、論理構造同士の関係を表し、リンクと呼ぶ。
また、ノード201とリンク202により構築された木
の枝葉のような構造203をツリー構造と呼び、文書の
論理構造を表す。
In FIG. 2A, a rectangular box 201 represents a logical structure unit of a document and is called a node. A line 202 connecting nodes represents a relationship between logical structures and is called a link.
A structure 203 such as a branch of a tree constructed by the node 201 and the link 202 is called a tree structure and represents a logical structure of a document.

【0028】構造化文書は、旧文書ファイル105、新
文書ファイル106から計算機本体103内に読み込ま
れたときに論理構造情報を示すタグを解析することによ
り、論理構造ごとに分解される。分解された論理構造を
構成するデータは、それぞれノード201に格納され
る。そして、これらのノード201をリンク202で接
続して文書全体のツリー構造203が計算機本体103
内に記憶される。
The structured document is decomposed for each logical structure by analyzing the tag indicating the logical structure information when read from the old document file 105 and the new document file 106 into the computer main body 103. The data constituting the decomposed logical structure is stored in the node 201, respectively. Then, these nodes 201 are connected by a link 202 so that the tree structure 203 of the entire document becomes a computer main body 103.
Be stored in.

【0029】図2(b)の204は、論理構造を納めた
ノード内部の構成を示す。
Reference numeral 204 in FIG. 2B shows the internal structure of the node containing the logical structure.

【0030】ノード内部のポインタ205は、タグの中
に記述してあったタグ内容文字列206を指す。また、
文字列の長さ207は論理構造につけられた題名文字列
の長さを表わし、ポインタ208はその題名文字列20
9を指す。
The pointer 205 inside the node points to the tag content character string 206 described in the tag. Also,
The character string length 207 represents the length of the title character string attached to the logical structure, and the pointer 208 represents the title character string 20.
Refers to 9.

【0031】文字列の長さ210は、論理構造内の実際
の文章である内容文字列の長さを示し、ポインタ211
はその内容文字列212を指す。ポインタ213はこの
ノード204に納められた論理構造の上位構造を納めた
上位ノード214を指す。
The length 210 of the character string indicates the length of the content character string which is the actual sentence in the logical structure, and the pointer 211
Indicates the content character string 212. The pointer 213 points to the upper node 214 that stores the upper structure of the logical structure stored in this node 204.

【0032】ポインタ215は、逆に下位構造を納めた
下位ノード218を指すポインタ217の配列216を
指す。これらのポインタによって、リンク202は実現
される。
On the contrary, the pointer 215 points to the array 216 of the pointers 217 pointing to the lower node 218 which stores the lower structure. The link 202 is realized by these pointers.

【0033】図3(a),(b)および図4は、論理構
造対応データ配列について示したものである。このなか
で、図3(a)は、新旧文書論理構造の対応状態一覧
表、図3(b)は新旧文書論理構造とその対応データ配
列の例、図4は文書の論理構造編集における対応データ
配列の操作方法を示すものである。
FIGS. 3A, 3B and 4 show the data array corresponding to the logical structure. 3 (a) is a list of corresponding states of the old and new document logical structures, FIG. 3 (b) is an example of the old and new document logical structures and their corresponding data arrays, and FIG. 4 is corresponding data in the logical structure editing of the document. It shows how to manipulate the array.

【0034】新旧文書の論理構造の対応は、対応状態一
覧表301に示した3つの状態に分類できる。302は
新旧両文書に対応する構造が存在する状態であり、以下
これを’11’で表す。303は新文書に論理構造の追
加を行ったため、旧文書には新文書の構造に対応する構
造がない状態で、’10’で表す。304は新文書で論
理構造の削除を行ったため、新文書には旧文書の構造に
対応する構造がない状態で、’01’で表す。
Correspondences of the logical structures of the old and new documents can be classified into three states shown in the corresponding state list 301. Reference numeral 302 denotes a state in which structures corresponding to both the old and new documents exist, which will be represented by '11'. In 303, since the logical structure is added to the new document, the old document does not have a structure corresponding to the structure of the new document and is represented by '10'. Since the logical structure 304 is deleted in the new document, it is represented by '01' in the state where the new document has no structure corresponding to the structure of the old document.

【0035】図3(b)の305、306は、それぞれ
新文書と旧文書の論理構造を、ツリー構造に組み立てた
ものであり、データ配列307はこの2つのツリー構造
におけるノード、つまり個々の論理構造の対応状態を、
文書の頭から順に納めたものである。このとき配列要素
308は、新文書のノード309と旧文書のノード31
0が対応していることを示し、配列要素311は新文書
のノード312に対応するノードが旧文書にないことを
示し、配列要素313は旧文書のノード314に対応す
るノードが新文書にないことを示している。
Reference numerals 305 and 306 in FIG. 3B are logical structures of a new document and an old document, respectively, which are assembled into a tree structure. A data array 307 is a node in these two tree structures, that is, individual logical structures. The corresponding state of the structure,
It is stored in order from the beginning of the document. At this time, the array element 308 is the node 309 of the new document and the node 31 of the old document.
0 indicates the correspondence, the array element 311 indicates that the node corresponding to the node 312 of the new document does not exist in the old document, and the array element 313 indicates that the node corresponding to the node 314 of the old document does not exist in the new document. It is shown that.

【0036】図4の表315は、論理構造に対する編集
が行われてツリー構造が変化したとき、論理構造対応デ
ータ配列をどのように操作するかを示している。行31
6は新しく新文書の作成を開始した初期状態を表してお
り、新文書のツリー構造317は旧文書のツリー構造3
18を複写したもので、データ配列319の要素はすべ
てデータ’11’で初期化されている。
Table 315 of FIG. 4 shows how to operate the data array corresponding to the logical structure when the tree structure is changed by editing the logical structure. Line 31
6 represents the initial state in which the creation of a new document is newly started, and the tree structure 317 of the new document is the tree structure 3 of the old document.
18 is copied, and all the elements of the data array 319 are initialized with the data “11”.

【0037】行320は、新文書のツリー構造321に
ノード322を追加した状態で、旧文書のツリー構造3
23には対応するノードはない。このときはデータ配列
324に新たな要素325を追加し、データ’10’を
格納する。
Line 320 shows the tree structure 3 of the old document with the node 322 added to the tree structure 321 of the new document.
23 has no corresponding node. At this time, a new element 325 is added to the data array 324 to store the data “10”.

【0038】行326は、新文書のツリー構造327の
ノード328を削除した状態で、旧文書のツリー構造3
29のノード330に対応するノードがなくなる。この
ときはデータ配列331の要素332のデータを’0
1’に変更する。
Line 326 shows the tree structure 3 of the old document with the node 328 of the tree structure 327 of the new document deleted.
There is no node corresponding to the 29 node 330. At this time, the data of the element 332 of the data array 331 is set to "0".
Change to 1 '.

【0039】行333は、行326(削除処理)を終了
した段階で一旦編集作業を中断してデータをファイル1
06、107に保存した後、改めて編集作業を再開した
状態である。保存しておいたデータ配列334の情報を
用いることにより、新文書のツリー構造335と旧文書
のツリー336の各ノードの対応付けを再現することが
できる。
In line 333, when the line 326 (deletion process) is completed, the editing work is temporarily interrupted and the data is transferred to the file 1
After the data is saved in 06 and 107, the editing work is restarted again. By using the stored information of the data array 334, the correspondence between each node of the tree structure 335 of the new document and the tree 336 of the old document can be reproduced.

【0040】以上、図2および図3,図4で示したデー
タ構造およびその操作によって、新旧文書の論理構造の
対応関係を計算機本体103内に保持することができ
る。
As described above, the correspondence between the logical structures of the old and new documents can be held in the computer main body 103 by the data structure and its operation shown in FIGS.

【0041】続いて、詳細な動作について説明する。Next, the detailed operation will be described.

【0042】図5は、装置の初期化処理のうち、ファイ
ル104〜108を計算機本体103に読み込んで内部
のデータに変換する手順を示したものである。
FIG. 5 shows a procedure of reading the files 104 to 108 into the computer main body 103 and converting them into internal data in the initialization processing of the apparatus.

【0043】まず、論理構造定義ファイル108を読み
込み(ステップ401)、論理構造定義テーブルを作成
する(ステップ402)。次に、旧文書ファイル105
を読み込み(ステップ403)、論理構造を解析してツ
リー構造に組み立てて記憶する(ステップ404)。
First, the logical structure definition file 108 is read (step 401) and a logical structure definition table is created (step 402). Next, the old document file 105
Is read (step 403), the logical structure is analyzed, assembled into a tree structure and stored (step 404).

【0044】次に、新文書ファイル106が存在するか
調べる(ステップ405)。新文書ファイル106が存
在していれば、それを読み込み(ステップ406)、論
理構造を解析してツリー構造に組み立てる。続いて、論
理構造対応データファイル107を読み込み(ステップ
408)、論理構造対応データ配列へ設定する(ステッ
プ409)。
Next, it is checked whether the new document file 106 exists (step 405). If the new document file 106 exists, it is read (step 406) and the logical structure is analyzed and assembled into a tree structure. Then, the logical structure correspondence data file 107 is read (step 408) and set in the logical structure correspondence data array (step 409).

【0045】ステップ405において新文書ファイル1
06が存在していなければ、旧文書のツリー構造を複製
して新文書のツリー構造とし(ステップ410)、論理
構造対応データ配列のすべての要素をデータ’11’
(新旧文書有り)で初期化する(ステップ411)。
In step 405, the new document file 1
If 06 does not exist, the tree structure of the old document is duplicated to make the tree structure of the new document (step 410), and all the elements of the data array corresponding to the logical structure are data “11”.
Initialization is performed (with new and old documents) (step 411).

【0046】図6は、装置の初期化処理のうち、計算機
本体103内に読み込んだデータを出力装置101に表
示する手順を示したものである。
FIG. 6 shows a procedure of displaying the data read in the computer main body 103 on the output device 101 in the initialization processing of the device.

【0047】まず、論理構造対応データ配列から最初の
要素を取り出し(ステップ501)、そのデータを調べ
る(ステップ502)。この結果、対応データが’1
1’(新旧文書有り)の時は、新および旧文書のツリー
構造から最初のノードの内容を取り出し(ステップ50
3、504)、その大きさを比べて小さい方に空白を追
加して大きさを揃える(ステップ505)。
First, the first element is extracted from the data array corresponding to the logical structure (step 501), and the data is examined (step 502). As a result, the corresponding data is' 1
If 1 '(new and old documents exist), the contents of the first node are extracted from the tree structure of the new and old documents (step 50).
(3, 504), the sizes are compared and a blank is added to the smaller size to make the sizes uniform (step 505).

【0048】対応データが’10’(旧文書無し)の時
は、新文書のツリー構造からノードの内容を取り出し
(ステップ506)、新文書のデータと大きさが同じで
内容が空白の旧文書データを作る(ステップ507)。
When the corresponding data is "10" (no old document), the contents of the node are extracted from the tree structure of the new document (step 506), and the old document has the same size as the data of the new document but has a blank content. Create data (step 507).

【0049】対応データが’01’(新文書無し)の時
は、旧文書のツリー構造からノードの内容を取り出し
(ステップ508)、旧文書のデータと大きさが同じで
内容が空白の新文書データを作成する(ステップ50
9)。
When the corresponding data is "01" (no new document), the contents of the node are extracted from the tree structure of the old document (step 508), and the new document has the same size as the data of the old document but has a blank content. Create data (step 50)
9).

【0050】これらの操作によって大きさを揃えた新旧
文書データを出力装置101に表示する(ステップ51
0)。
The old and new document data of which sizes are made uniform by these operations are displayed on the output device 101 (step 51).
0).

【0051】以上の操作を論理構造対応データ配列の終
わりまで繰り返す(ステップ511)ことにより、新旧
文書をすべて出力装置101に表示する。
By repeating the above operation until the end of the logical structure correspondence data array (step 511), all the old and new documents are displayed on the output device 101.

【0052】図7は、作業者から論理構造の編集を指示
されたときの処理手順を示したものである。
FIG. 7 shows a processing procedure when the operator gives an instruction to edit the logical structure.

【0053】まず、入力装置102から入力された操作
が、論理構造の追加か、あるいは削除かを調べる(ステ
ップ601)。操作が追加であれば、論理構造対応デー
タ配列に新しい要素を挿入し、対応データ’10’を設
定する(ステップ602)。さらに、新文書のツリー構
造に新しいノードを追加し、初期化する(ステップ60
3)。次に、出力装置101の新文書表示領域に、ステ
ップ603で初期化した構造の題名と内容入力用の空行
1行を挿入する(ステップ604)。次に、出力装置1
01の旧文書表示領域には、ステップ604で新文書表
示領域に追加したデータと同じ大きさの空白を挿入し、
新しく挿入した論理構造の次の構造の頭が揃って表示さ
れるように調整する(ステップ605)。
First, it is checked whether the operation input from the input device 102 is addition or deletion of a logical structure (step 601). If the operation is addition, a new element is inserted into the logical structure corresponding data array and the corresponding data “10” is set (step 602). Further, a new node is added to the tree structure of the new document and initialized (step 60).
3). Next, in the new document display area of the output device 101, the title of the structure initialized in step 603 and one blank line for content input are inserted (step 604). Next, the output device 1
In the old document display area 01, a blank of the same size as the data added to the new document display area in step 604 is inserted,
The adjustment is performed so that the heads of the structures next to the newly inserted logical structure are displayed together (step 605).

【0054】一方、操作が削除であれば、論理構造対応
データ配列からデータを取り出して対応データを調べる
(ステップ606)。この結果、対応データが’11’
の時は、新文書のツリー構造からノードを削除し(ステ
ップ607)、論理構造対応データ配列の要素を対応デ
ータ’01’に変更し(ステップ608)、出力装置1
01の削除した新文書データが表示してあった領域を空
白でクリアする(ステップ609)。
On the other hand, if the operation is deletion, data is extracted from the logical structure corresponding data array and the corresponding data is examined (step 606). As a result, the corresponding data is "11".
In the case of, the node is deleted from the tree structure of the new document (step 607), the element of the logical structure corresponding data array is changed to the corresponding data '01' (step 608), and the output device 1
The area where the deleted new document data of 01 was displayed is cleared with a blank space (step 609).

【0055】対応データが’10’の時は、新文書ツリ
ー構造からノードを削除し(ステップ610)、論理構
造対応データ配列から要素を削除し(ステップ61
1)、出力装置101の削除した新文書データが表示し
てあった領域と、それに対応する旧文書側の空白が表示
してあった領域を削除し、次の新旧文書の対応する論理
構造の表示を繰り上げて表示する(ステップ612)。
When the corresponding data is "10", the node is deleted from the new document tree structure (step 610) and the element is deleted from the logical structure corresponding data array (step 61).
1) Delete the area where the deleted new document data of the output device 101 is displayed and the area where the corresponding blank space on the old document side is displayed, and delete the corresponding logical structure of the next old and new document. The display is advanced and displayed (step 612).

【0056】図8は、作業者から論理構造内の文章の編
集を指示されたときの処理手順を示したものである。
FIG. 8 shows a processing procedure when an operator gives an instruction to edit a sentence in the logical structure.

【0057】まず、入力装置102からの作業者の入力
にしたがい、新文書ツリー構造内の対応するノードの内
容文字列と、出力装置101の対応する新文書表示領域
の表示を更新する(ステップ701)。
First, according to the operator's input from the input device 102, the contents character string of the corresponding node in the new document tree structure and the display of the corresponding new document display area of the output device 101 are updated (step 701). ).

【0058】このとき、新文書表示領域の表示行数が変
化したかを調べる(ステップ702)。行数が増加した
ときは、新文書の増加分と同じ行の空白行を、旧文書表
示領域の対応する論理構造表示の末尾に追加する(ステ
ップ703)。逆に、行数が減少したときは、減少分と
同じ行数の空白行をその新文書の論理構造表示の末尾に
追加する(ステップ704)。
At this time, it is checked whether the number of display lines in the new document display area has changed (step 702). When the number of lines increases, a blank line, which is the same line as the increase in the new document, is added to the end of the corresponding logical structure display in the old document display area (step 703). On the contrary, when the number of lines is decreased, the same number of blank lines as the amount of decrease is added to the end of the logical structure display of the new document (step 704).

【0059】図9は、新文書で修正された部分を新旧文
書の差分として抽出し、それを画面に強調表示する処理
手順を示したものである。
FIG. 9 shows a processing procedure for extracting a portion corrected by the new document as a difference between the old and new documents and highlighting the difference on the screen.

【0060】まず、作業者により差分を抽出する範囲を
選択する(ステップ801)。このとき、比較する相手
を特定するため、範囲選択は文書全体か、論理構造単位
とする。
First, the operator selects a range for extracting a difference (step 801). At this time, in order to specify the other party to be compared, the range is selected for the entire document or for each logical structure unit.

【0061】次に、選択された範囲について、新旧文書
を比較して差分を抽出する(ステップ802)。
Next, in the selected range, the old and new documents are compared to extract the difference (step 802).

【0062】この場合の差分抽出の方法としては、例え
ば、一般に広く使われているLCS(Longest
Common Subsequence)法やHeck
el法などを用いて実現可能である。これらの方法につ
いては「ファイル間の相違検査法」(角田著、情報処
理、24、4、p514−520 1983)に紹介さ
れているので詳しい説明は省略する。
As a method of extracting the difference in this case, for example, LCS (Longest) which is generally widely used.
Common Subsequence) method and Heck
This can be realized by using the el method or the like. These methods are introduced in "Method for checking differences between files" (Kakuta, Information Processing, 24, 4, p514-520 1983), and thus detailed description thereof is omitted.

【0063】次に、抽出した差分を画面に強調表示する
(ステップ803)。強調表示の方法としては、文字を
反転させる、文字にアンダーラインを引く、文字や背景
の色を替える、などを用いる。また、差分としては、削
除・追加・修正の3種類があるが、これらをそれぞれ画
面上で判別できるように表示してもよい。
Next, the extracted difference is highlighted on the screen (step 803). As a method of highlighting, a character is inverted, an underline is drawn on the character, or the color of the character or the background is changed. Also, there are three types of differences, deletion, addition, and correction, but these may be displayed so that they can be respectively discriminated on the screen.

【0064】複数箇所が差分として抽出されたときは、
それらを全て一度に表示する方法と、一つずつ表示する
方法がある。いずれの場合でも、現在の表示位置から、
前後の修正箇所へ同期してスクロールすることにより、
新旧文書の差分を容易に把握可能にすることができる。
When a plurality of points are extracted as differences,
There is a method to display them all at once or a method to display them one by one. In any case, from the current display position,
By synchronizing and scrolling to the modified parts before and after,
The difference between the old and new documents can be easily grasped.

【0065】図10は、新文書の編集結果を新文書ファ
イル106、論理構造対応データファイル107へ出力
するための処理手順を示したものである。
FIG. 10 shows a processing procedure for outputting the edited result of the new document to the new document file 106 and the logical structure correspondence data file 107.

【0066】まず、計算機本体103内にツリー構造で
記憶された新文書データを、SGMLテキストに展開す
る(ステップ901)。次に、展開したSGMLテキス
トを新文書ファイル106に格納する(ステップ90
2)。最後に、論理構造対応データ配列を論理構造対応
データファイル107に格納する(ステップ903)。
First, the new document data stored in the computer main body 103 in a tree structure is expanded into SGML text (step 901). Next, the expanded SGML text is stored in the new document file 106 (step 90).
2). Finally, the logical structure correspondence data array is stored in the logical structure correspondence data file 107 (step 903).

【0067】以上の処理手順を実行することにより、出
力装置101に新旧文書の対応する論理構造を並べて表
示し、作業者による編集操作が行われたときも、対応す
る論理構造がずれることなく常に頭を揃えて並べて表示
することができる。また、作業者の指示により、新旧文
書の差分を強調表示し、差分を明瞭に明示することがで
きる。
By executing the above processing procedure, the corresponding logical structures of the old and new documents are displayed side by side on the output device 101, and even when an editing operation is performed by the operator, the corresponding logical structures are not displaced and always. The heads can be aligned and displayed side by side. In addition, the difference between the old document and the new document can be highlighted and the difference can be clearly indicated by the operator's instruction.

【0068】図11は、出力装置101に表示される画
面の一例を示す図であり、図中の1001は表示領域で
ある。
FIG. 11 is a diagram showing an example of a screen displayed on the output device 101, and 1001 in the drawing is a display area.

【0069】この例では、1つの章1002とそれに内
包される節1003,1004が2つ表示されている。
編集中の章1005と編集前の章1006は、新旧文書
で対応する章である。新文書の節1007には旧文書に
対応する節がなく、旧文書の表示領域には同じ大きさの
空白1008が挿入されて表示されている。
In this example, one chapter 1002 and two clauses 1003 and 1004 contained therein are displayed.
The chapter 1005 being edited and the chapter 1006 before editing are corresponding chapters in the old and new documents. The section 1007 of the new document has no section corresponding to the old document, and a blank 1008 of the same size is inserted and displayed in the display area of the old document.

【0070】また、節1007の次の節1009には、
旧文書に対応する節1010が表示されている。このと
き、1008に適当な空白が挿入されているため、対応
する節1009と節1010は頭を揃えて並べて表示さ
れている。また、節1010の内容「編集中の文書を右
に表示」が、節1009では「編集中の文書を左に表
示」に修正されている。差分としては、旧文書の「右」
を新文書の「左」に修正したとして抽出される。そのた
め、差分を表示させると、1011、1012のように
それぞれ、「左」と「右」が強調表示される。なお、こ
こでは、反転表示させる例を示している。
Further, in the section 1009 following the section 1007,
The section 1010 corresponding to the old document is displayed. At this time, since a suitable blank is inserted in 1008, the corresponding sections 1009 and 1010 are displayed side by side with their heads aligned. Further, the contents of section 1010 “Display the document being edited on the right” are corrected to “Display the document being edited on the left” in section 1009. As a difference, "right" of the old document
Is extracted as having been corrected to "left" of the new document. Therefore, when the difference is displayed, “left” and “right” are highlighted like 1011 and 1012, respectively. Note that, here, an example in which the display is reversed is shown.

【0071】なお上記実施例では、構造化文書を記述す
る規則としてSGMLを用いたが、これをODA(Op
en Document Architecture,
ISO規格8613−1988参照)に入れ替えても、
同様の効果を得ることができる。
In the above embodiment, SGML is used as a rule for describing a structured document, but this is ODA (Op (Op
en Document Architecture,
Even if replaced with ISO standard 8613-1988),
The same effect can be obtained.

【0072】[0072]

【発明の効果】以上説明したように本発明によれば、新
文書の論理構造に対する編集が行われたとき、また構造
の内容に編集が加えられてその大きさが変化したとき
は、新文書あるいは旧文書に適宜空白を挿入して新旧文
書の対応する論理構造を並べて表示し、さらに新旧文書
の表示を同期してスクロールするようにしたので、論理
的、物理的構造が定められている文書を編集する場合
に、作業者は論理構造がどのようになっているかを明瞭
に把握できるようになり、文書の論理構造の管理を作業
者が意識する必要がなくなる。この結果、熟練していな
い初心者でも編集内容に集中することができ、間違いを
犯しにくくなるうえ、効率良く作業を進めることができ
る。
As described above, according to the present invention, a new document is edited when the logical structure of the new document is edited or when the size of the structure is changed by editing. Or, by inserting blanks in the old document as appropriate, the corresponding logical structures of the old and new documents are displayed side by side, and the display of the old and new documents is scrolled synchronously, so the document with the logical and physical structure is defined. When editing a document, the worker can clearly understand what the logical structure is, and the worker does not need to be aware of the management of the logical structure of the document. As a result, even an unskilled beginner can concentrate on the editing contents, making mistakes less likely to occur, and working efficiently.

【0073】また、新旧文書の構造の対応付けを作業者
の編集操作に逐次実行し、その結果を逐一画面表示に反
映させるため、修正個所やその内容の把握が容易にな
り、修正漏れや修正ミスが減少する。
Further, the correspondence between the structures of the old and new documents is sequentially executed for the editing operation by the operator, and the result is reflected on the screen display one by one, so that the correction point and its contents can be easily grasped, and the correction omission or correction can be made. The mistakes are reduced.

【0074】これにより、文書の編集作業の効率が向上
し、作業に必要な労力と時間を減少させることができる
などの効果が得られる。
As a result, the efficiency of the document editing work is improved, and the labor and time required for the work can be reduced.

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

【図1】本発明の一実施例を示すシステム構成図であ
る。
FIG. 1 is a system configuration diagram showing an embodiment of the present invention.

【図2】構造化文書の計算機内部でのデータ構造を示す
図である。
FIG. 2 is a diagram showing a data structure of a structured document inside a computer.

【図3】論理構造対応データ配列を示す図である。FIG. 3 is a diagram showing a data array corresponding to a logical structure.

【図4】論理構造編集における対応データ配列の操作方
法についての説明図である。
FIG. 4 is an explanatory diagram of a method for operating a corresponding data array in logical structure editing.

【図5】ファイルの読み込み処理手順を示すフローチャ
ートである。
FIG. 5 is a flowchart showing a file reading processing procedure.

【図6】画面への表示処理手順を示すフローチャートで
ある。
FIG. 6 is a flowchart showing a display processing procedure on a screen.

【図7】論理構造編集処理手順を示すフローチャートで
ある。
FIG. 7 is a flowchart showing a logical structure editing processing procedure.

【図8】論理構造内の文の編集処理手順を示すフローチ
ャートである。
FIG. 8 is a flowchart showing a procedure for editing a sentence in a logical structure.

【図9】新旧文書の差分抽出と抽出結果の表示処理手順
を示すフローチャートである。
FIG. 9 is a flowchart showing a procedure for extracting differences between old and new documents and displaying the extraction results.

【図10】ファイルへの出力処理手順を示すフローチャ
ートである。
FIG. 10 is a flowchart showing a procedure of output processing to a file.

【図11】新旧文書の画面への表示例を示す説明図であ
る。
FIG. 11 is an explanatory diagram showing a display example of old and new documents on a screen.

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

101…出力装置、102…入力装置、103…計算機
本体、104…プロジェクトファイル、105…旧文書
ファイル、106…新文書ファイル、107…論理構造
対応データファイル、108…論理構造定義ファイル。
101 ... Output device, 102 ... Input device, 103 ... Computer main body, 104 ... Project file, 105 ... Old document file, 106 ... New document file, 107 ... Logical structure corresponding data file, 108 ... Logical structure definition file.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 編集前の旧文書と編集中の新文書および
それらの論理構造を解析し、対応付けたデータを記憶す
る手段と、新文書および旧文書を画面に並べて表示する
手段と、新文書の論理構造に対する編集時または論理構
造の内容に編集が加えられてその大きさが変化したとき
に、新文書あるいは旧文書に空白を挿入し、互いの論理
構造を対応付けて新文書および旧文書を並べて表示する
手段と、新文書および旧文書の表示を同期してスクロー
ルする手段とを備えることを特徴とする構造化文書の新
旧対照編集装置。
1. A means for analyzing an old document before being edited, a new document being edited and their logical structures and storing associated data, a means for displaying the new document and the old document side by side on a screen, and a new means. When editing the logical structure of a document or when the size of the logical structure changes due to editing, the white space is inserted in the new document or the old document, and the logical structures of the new document and the old document are associated with each other. An apparatus for editing old and new structured documents, comprising means for displaying the documents side by side and means for scrolling the display of the new document and the old document in synchronization.
JP7026395A 1995-02-15 1995-02-15 New/old comparing editing device for structured document Pending JPH08221417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7026395A JPH08221417A (en) 1995-02-15 1995-02-15 New/old comparing editing device for structured document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7026395A JPH08221417A (en) 1995-02-15 1995-02-15 New/old comparing editing device for structured document

Publications (1)

Publication Number Publication Date
JPH08221417A true JPH08221417A (en) 1996-08-30

Family

ID=12192366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7026395A Pending JPH08221417A (en) 1995-02-15 1995-02-15 New/old comparing editing device for structured document

Country Status (1)

Country Link
JP (1) JPH08221417A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09319632A (en) * 1996-05-31 1997-12-12 Hitachi Ltd Method and device for managing version of structured document
JP2005157455A (en) * 2003-11-20 2005-06-16 Ricoh Co Ltd Workflow system
JP2008117053A (en) * 2006-11-01 2008-05-22 Mitsubishi Electric Corp Display system
JP2010092227A (en) * 2008-10-07 2010-04-22 Ntt Data Corp Document creation support apparatus, document creation support method, and program
JP2011090524A (en) * 2009-10-22 2011-05-06 Dainippon Hourei Printing Co Ltd System and program for detecting and displaying difference in document of book
JP2011215851A (en) * 2010-03-31 2011-10-27 Yahoo Japan Corp Confirmation system and method
JP2016024528A (en) * 2014-07-17 2016-02-08 富士フイルム株式会社 Information processor, program and digital plate inspection method
CN111325003A (en) * 2020-02-17 2020-06-23 北京北信源软件股份有限公司 File processing method, device, equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09319632A (en) * 1996-05-31 1997-12-12 Hitachi Ltd Method and device for managing version of structured document
JP2005157455A (en) * 2003-11-20 2005-06-16 Ricoh Co Ltd Workflow system
JP2008117053A (en) * 2006-11-01 2008-05-22 Mitsubishi Electric Corp Display system
JP2010092227A (en) * 2008-10-07 2010-04-22 Ntt Data Corp Document creation support apparatus, document creation support method, and program
JP2011090524A (en) * 2009-10-22 2011-05-06 Dainippon Hourei Printing Co Ltd System and program for detecting and displaying difference in document of book
JP2011215851A (en) * 2010-03-31 2011-10-27 Yahoo Japan Corp Confirmation system and method
JP2016024528A (en) * 2014-07-17 2016-02-08 富士フイルム株式会社 Information processor, program and digital plate inspection method
US9772805B2 (en) 2014-07-17 2017-09-26 Fujifilm Corporation Information processor and digital plate inspection method
CN111325003A (en) * 2020-02-17 2020-06-23 北京北信源软件股份有限公司 File processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US7617449B2 (en) Method and system for mapping content between a starting template and a target template
US7617229B2 (en) Management and use of data in a computer-generated document
US8434014B1 (en) System and method for editing information
JPH04229364A (en) Method and system for changing emphasizing characteristic
US20030101043A1 (en) Method for translating slide presentations into different languages
US20070067336A1 (en) Electronic publishing system and method for managing publishing requirements in a neutral format
WO1998008168A1 (en) Original text generating apparatus and its program storage medium
US20230244854A1 (en) Document Transformation Between Program Formats and Templates System and Method
US9298675B2 (en) Smart document import
JPH08221417A (en) New/old comparing editing device for structured document
JP3892626B2 (en) Document processing apparatus and storage medium
US20090287994A1 (en) Document processing device and document processing method
EP1837776A1 (en) Document processing device and document processing method
EP1780645A1 (en) Document processing method and device
JP3933892B2 (en) Specification creation program and computer-readable medium storing specification creation program
US7613709B2 (en) System and method for editing operations of a text object model
JPH09265431A (en) Method and device for editing document, and client device including the device
JPH11272666A (en) System and method for editing document and record medium
JP3050811B2 (en) Parsing tree database construction support device
JP3419483B2 (en) Natural language processing apparatus and method
JPH05324289A (en) Device for automatically generating programming specification
JP2008186311A (en) File conversion system for source file with comment described by plurality of kinds of natural languages
JPH08194706A (en) Structural sentence generation device
JPH04230532A (en) Method for controlling transaltion from source language of information on display screen to object language
JP2003271589A (en) Annotation system, annotation method, computer- readable storage medium with program stored therein, and program