JP2958141B2 - Document processing apparatus and method - Google Patents

Document processing apparatus and method

Info

Publication number
JP2958141B2
JP2958141B2 JP3051275A JP5127591A JP2958141B2 JP 2958141 B2 JP2958141 B2 JP 2958141B2 JP 3051275 A JP3051275 A JP 3051275A JP 5127591 A JP5127591 A JP 5127591A JP 2958141 B2 JP2958141 B2 JP 2958141B2
Authority
JP
Japan
Prior art keywords
data
partial data
document
partial
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3051275A
Other languages
Japanese (ja)
Other versions
JPH04286061A (en
Inventor
泰弘 奥野
貴幸 佐々木
貴弘 黒澤
正明 長島
正 山川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3051275A priority Critical patent/JP2958141B2/en
Priority to US07/851,206 priority patent/US5440731A/en
Priority to EP92302248A priority patent/EP0509639B1/en
Priority to DE69226467T priority patent/DE69226467T2/en
Publication of JPH04286061A publication Critical patent/JPH04286061A/en
Application granted granted Critical
Publication of JP2958141B2 publication Critical patent/JP2958141B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、文書処理装置及び方法
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus and method.

【0002】[0002]

【従来の技術】従来、計算機上で作成される、或いは作
成された文書フアイルが、複数のユーザによる共同作業
の対象になる場合は、オペレーテイングシステムによつ
て、複数ユーザの間でフアイルを共有し、その他のユー
ザにはフアイルへのアクセスを禁止するという方法をと
つていた。
2. Description of the Related Art Conventionally, when a document file created or created on a computer is to be collaborated by a plurality of users, the file is shared among the plurality of users by an operating system. However, other users were prohibited from accessing the file.

【0003】たとえば、UNIXオペレーテイングシス
テム(米国AT&T社が開発し、ライセンスしている。
以下同様)では、フアイルごとに書き込み、参照(読み
だし)、実行の許可をフアイルの所有者、グループ、そ
の他のユーザにたいして与えることができる。
[0003] For example, the UNIX operating system (developed and licensed by AT & T, USA).
In the following, the permission for writing, referencing (reading), and execution for each file can be given to the owner, group, and other users of the file.

【0004】このようなシステムにおいて、あるフアイ
ルに対し、グループ内でそのフアイルを共有(読み出し
のみならず、書き込みも可)し、かつ、グループ外のユ
ーザに対しては、そのフアイルの変更を許さないという
設定をする場合は、「グループにはフアイルの書き込み
を許可し、グループ外のユーザにはフアイル書き込みを
許可しない」旨を設定することにより、その文書を、グ
ループ内でのみ共有することができる。
In such a system, a certain file is shared within the group (not only reading but also writing is possible), and a user outside the group is allowed to change the file. If you do not want to share the document only within the group, you can specify that the file is allowed to be written to the group and the file is not allowed to be written to users outside the group. it can.

【0005】また、一つのまとまりのある文書中で、そ
れぞれ担当の範囲があり、互いに書き込みを許可しない
ようにするには、それぞれの担当部分ごと(管理対象ご
と)に、別のフアイルとして分割し、管理していた。
[0005] Further, in a single set of documents, there is a range of responsibilities, and in order to prevent writing to each other, each file is divided into separate files for each part in charge (for each management target). , Had managed.

【0006】[0006]

【発明が解決しようとしている課題】しかしながら、上
記従来の技術では、一つの文書中の各自の担当領域に、
他人の書き込みを許可しない場合には、この文書を1つ
のファイルにまとめることはできなかった。また、本願
出願人は、先に出願した特願平3−32897号におい
て、内容の変更を防ぐ代わりに、その内容が正当な(他
人によって変更されていない)ものであることを確認可
能とし、この確認が各文書領域ごとに行えるようにする
ことで、このような複数の文書領域を一括して1つのフ
ァイルにまとめる方法を提案している。
However, according to the above-mentioned conventional technology, each of the responsible areas in one document has
Without allowing others to write, this document could not be combined into a single file. In addition, the applicant of the present application, in the Japanese Patent Application No. 3-32897 filed earlier, can confirm that the contents are legitimate (not changed by others) instead of preventing the contents from being changed, A method is proposed in which this confirmation can be performed for each document area, and such a plurality of document areas are collectively collected into one file.

【0007】しかし、かかる方法では、各文書領域にネ
スティング(入れ子)構造が許可され、ある文書領域が
内側に他の文書領域を含む場合については考慮されてい
なかった。そこで、1つの文書要素中に他の文書の存在
を許すようにするシステムを考えてみる。この場合、注
目文書要素中に含まれる他の文書要素をも一括して正当
性を確認した場合、その注目文書要素を構成している全
ての文書要素ごとに正当性を確認することになることが
予想される。しかし、これでは作業が煩雑になることは
避けられない。
However, in this method, a nesting (nesting) structure is permitted for each document area, and no consideration is given to a case where a certain document area includes another document area inside. Therefore, consider a system that allows the existence of another document in one document element. In this case, if the validity of other document elements included in the noted document element is checked collectively, the validity of each document element constituting the noted document element will be confirmed. Is expected. However, this inevitably complicates the work.

【0008】本発明はかかる課題に鑑みなされたもので
あり、保存した文書データに対して不正な書換えが発生
したか否かの正当性を単純に確認できるだけでなく、文
書データを構成する部分データ毎に、しかも、部分デー
タ(第1の部分データ)に入れ子式の第2の部分データ
が存在する場合には、設定した管理レベルに従い、その
入れ子の第2の部分データを含めた場合とそうでない場
合とを切替えながら第1の部分データの正当性を確認で
きる文書処理装置及び方法を提供しようとするものであ
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and not only can simply verify whether or not illegal rewriting has occurred in stored document data, but also can store partial data constituting the document data. In each case, if there is a nested second partial data in the partial data (first partial data), it is assumed that the nested second partial data is included according to the set management level. Another object of the present invention is to provide a document processing apparatus and method capable of confirming the validity of the first partial data while switching between the first and second cases.

【0009】[0009]

【課題を解決するための手段】この課題を解決するた
め、本発明の文書処理装置は以下の構成を備える。すな
わち、文書データを所定の文書データ記憶手段に保存す
る保存手段及び文書データを前記文書データ記憶手段よ
り読み出す読み出し手段とを備え、区切り記号で区切ら
れた複数の部分データが入れ子式の構造になり得る文書
を処理する文書処理装置であって、文書データ中の管理
対象として登録する1つの部分データを指定する管理対
象部分データ指定手段と、指定された部分データに対し
て管理情報を設定し、文書データと関連付けて登録する
管理情報設定登録手段と、前記保存手段は、前記文書デ
ータ記憶手段に格納すべき文書データ中の、前記管理対
象部分データ指定手段で指定された部分データを第1の
部分データとし、当該第1の部分データに対してパスワ
ードを入力する第1のパスワード入力手段と、注目して
いる第1の部分データに入れ子式の第2の部分データが
存在するとき、前記管理情報設定登録手段で登録された
管理情報に従い、前記第2の部分データが前記第1の部
分データと同じ管理レベルにはない場合には、前記第2
の部分データを除くデータを第1の部分データに対応す
るデータとして抽出し、同じ管理レベルにあると判断し
た場合には前記第2の部分データを含む第1の部分デー
タを当該第1の部分データに対応するデータとして抽出
する第1の抽出手段と、該第1の抽出手段で抽出された
第1の部分データに対応するデータと前記第1のパスワ
ード入力手段で入力されたパスワードとの組み合わせに
対し、所定の変換アルゴリズムに従って符号データを生
成する第1の符号生成手段と、前記第1の部分データを
区切る区切り記号中に、当該第1の部分データに対して
生成された符号データを埋め込む埋め込み手段と、符号
データが埋め込まれた文書データを前記文書データ記憶
手段に格納する格納手段とを備え、前記読み出し手段
は、前記文書データ記憶手段から読み出そうとする文書
データを指定する読出し文書データ指定手段と、該読出
し文書データ指定手段で指定される文書データ中の正当
性確認対象とする部分データを指定する正当性確認部分
データ指定手段と、指定された部分データを第1の部分
データとし、当該第1の部分データに対応するパスワー
ドを入力する第2のパスワード入力手段と、注目してい
る第1の部分データに入れ子式の第2の部分データが存
在するとき、前記管理情報設定登録手段で登録された管
理情報に従い、前記第2の部分データが前記第1の部分
データと同じ管理レベルにはない場合には、前記第2の
部分データを除くデータを第1の部分データに対応する
データとして抽出し、同じ管理レベルにあると判断した
場合には前記第2の部分データを含む第1の部分データ
を当該第1の部分データに対応するデータとして抽出す
る第2の抽出手段と、該第2の抽出手段で抽出された第
1の部分データに対応するデータと前記第2のパスワー
ド入力手段で入力されたパスワードとの組み合わせに対
し、所定の変換アルゴリズムに従って符号データを生成
する第2の符号生成手段と、該第2の符号生成手段によ
り生成された符号データと、前記正当性確認部分データ
指定手段で指定された部分データに対応する区切り記号
の中に埋め込まれている符号データとを比較する比較手
段と、前記比較手段の部分データに対する比較結果に基
づいて前記第2の抽出手段で抽出された部分データにつ
いて変更がなされたか否かの情報を出力する出力手段と
を備える。
In order to solve this problem, a document processing apparatus according to the present invention has the following arrangement. In other words, the storage device includes storage means for storing the document data in a predetermined document data storage means and reading means for reading the document data from the document data storage means, and a plurality of partial data separated by delimiters has a nested structure. A document processing apparatus for processing a document to be obtained, comprising: a management target partial data designating unit for designating one partial data to be registered as a management target in the document data; and setting management information for the designated partial data; A management information setting registration unit for registering the document data in association with the document data; and the storage unit stores, in the document data to be stored in the document data storage unit, the partial data designated by the management target partial data designation unit as a first data. First password input means for inputting a password to the first partial data as partial data; When the nested second partial data exists in the data, the second partial data is not at the same management level as the first partial data according to the management information registered by the management information setting / registering means. The second
Is extracted as data corresponding to the first partial data, and when it is determined that the data is at the same management level, the first partial data including the second partial data is extracted as the first partial data. First extracting means for extracting as data corresponding to data, a combination of data corresponding to the first partial data extracted by the first extracting means and a password input by the first password inputting means A first code generating means for generating code data according to a predetermined conversion algorithm, and embedding the code data generated for the first partial data in a delimiter for separating the first partial data. An embedding unit; and a storage unit for storing the document data in which the code data is embedded in the document data storage unit, wherein the reading unit stores the document data. Read document data designating means for designating document data to be read from the storage means, and validity confirmation partial data for designating partial data to be validated in the document data designated by the read document data designating means Specifying means, second partial password input means for setting the specified partial data as first partial data, and inputting a password corresponding to the first partial data, and nesting expression for the first partial data of interest. When there is the second partial data, if the second partial data is not at the same management level as the first partial data according to the management information registered by the management information setting / registering means, Data other than the second partial data is extracted as data corresponding to the first partial data, and if it is determined that the data is at the same management level, the second partial data is included. Second extracting means for extracting the first partial data as data corresponding to the first partial data, data corresponding to the first partial data extracted by the second extracting means, and the second password Second code generation means for generating code data in accordance with a predetermined conversion algorithm for a combination with the password input by the input means; code data generated by the second code generation means; Comparing means for comparing code data embedded in a delimiter symbol corresponding to the partial data designated by the partial data designating means; and said second extracting means based on a comparison result of the comparing means with respect to the partial data. Output means for outputting information as to whether or not the partial data extracted in step (1) has been changed.

【0010】また、本発明の文書処理方法は以下の工程
を備える。すなわち、区切り記号で区切られた複数の部
分データが入れ子式の構造になり得る文書を処理する文
書処理装置における、文書データを前記文書処理装置内
の所定の文書データ記憶手段に保存する保存工程及び文
書データを前記文書データ記憶手段より読み出す読み出
し工程とを備えた文書処理方法であって、文書データ中
の管理対象として登録する1つの部分データを指定する
管理対象部分データ指定工程と、指定された部分データ
に対して管理情報を設定し、文書データと関連付けて登
録する管理情報設定登録工程と、前記保存工程は、前記
文書データ記憶手段に格納すべき文書データ中の、前記
管理対象部分データ指定工程で指定された部分データを
第1の部分データとし、当該第1の部分データに対して
パスワードを入力する第1のパスワード入力工程と、注
目している第1の部分データに入れ子式の第2の部分デ
ータが存在するとき、前記管理情報設定登録工程で登録
された管理情報に従い、前記第2の部分データが前記第
1の部分データと同じ管理レベルにはない場合には、前
記第2の部分データを除くデータを第1の部分データに
対応するデータとして抽出し、同じ管理レベルにあると
判断した場合には前記第2の部分データを含む第1の部
分データを当該第1の部分データに対応するデータとし
て抽出する第1の抽出工程と、該第1の抽出工程で抽出
された第1の部分データに対応するデータと前記第1の
パスワード入力工程で入力されたパスワードとの組み合
わせに対し、所定の変換アルゴリズムに従って符号デー
タを生成する第1の符号生成工程と、前記第1の部分デ
ータを区切る区切り記号中に、生成された符号データを
埋め込む埋め込み工程と、符号データが埋め込まれた文
書データを前記文書データ記憶手段に格納する格納工程
とを備え、前記読み出し工程は、前記文書データ記憶手
段から読み出そうとする文書データを指定する読出し文
書データ指定工程と、該読出し文書データ指定工程で指
定される文書データ中の正当性確認対象とする部分デー
タを指定する正当性確認部分データ指定工程と、指定さ
れた部分データを第1の部分データとし、当該第1の部
分データに対応するパスワードを入力する第2のパスワ
ード入力工程と、注目している第1の部分データに入れ
子式の第2の部分データが存在するとき、前記管理情報
設定登録工程で登録された管理情報に従い、前記第2の
部分データが前記第1の部分データと同じ管理レベルに
はない場合には、前記第2の部分データを除くデータを
第1の部分データに対応するデータとして抽出し、同じ
管理レベルにあると判断した場合には前記第2の部分デ
ータを含む第1の部分データを当該第1の部分データに
対応するデータとして抽出する第2の抽出工程と、該第
2の抽出工程で抽出された第1の部分データに対応する
データと前記第2のパスワード入力工程で入力されたパ
スワードとの組み合わせに対し、所定の変換アルゴリズ
ムに従って符号データを生成する第2の符号生成工程
と、該第2の符号生成工程により生成された符号データ
と、前記正当性確認部分データ指定工程で指定された部
分データに対応する区切り記号の中に埋め込まれている
符号データとを比較する比較工程と、前記比較工程の部
分データに対する比較結果に基づいて前記第2の抽出手
段で抽出された部分データについて変更がなされたか否
かの情報を出力する出力工程とを備える。
The document processing method of the present invention includes the following steps. That is, in a document processing apparatus that processes a document in which a plurality of partial data delimited by a delimiter can have a nested structure, a storage step of storing document data in a predetermined document data storage unit in the document processing apparatus; A document processing method comprising: a reading step of reading document data from the document data storage means; a management target partial data specifying step of specifying one piece of partial data to be registered as a management target in the document data; A management information setting registration step of setting management information for the partial data and registering the management information in association with the document data; and the storing step includes specifying the management target partial data in the document data to be stored in the document data storage means. The first partial data is a partial data designated in the process, and a password is input to the first partial data. A password input step, and when the nested second partial data exists in the first partial data of interest, the second partial data is stored in accordance with the management information registered in the management information setting registration step. If it is not at the same management level as the first partial data, data other than the second partial data is extracted as data corresponding to the first partial data, and if it is determined that it is at the same management level, A first extraction step of extracting first partial data including the second partial data as data corresponding to the first partial data; and a first extraction step of extracting the first partial data extracted in the first extraction step. A first code generation step of generating code data in accordance with a predetermined conversion algorithm for a combination of corresponding data and a password input in the first password input step; An embedding step of embedding the generated code data in a delimiter separating the partial data; and a storing step of storing document data in which the code data is embedded in the document data storage means. A read document data designating step for designating document data to be read from the data storage means, and a validity confirmation part for designating partial data to be validated in the document data designated in the read document data designation step A data designating step, a second password inputting step of using the designated partial data as first partial data and inputting a password corresponding to the first partial data, and nesting the first partial data of interest. When the second partial data of the formula exists, the second partial data is stored in accordance with the management information registered in the management information setting registration step. Is not at the same management level as the first partial data, data other than the second partial data is extracted as data corresponding to the first partial data, and it is determined that the data is at the same management level. A second extracting step of extracting first partial data including the second partial data as data corresponding to the first partial data; and a first extracting step of extracting the first partial data in the second extracting step. A second code generation step of generating code data according to a predetermined conversion algorithm for a combination of the data corresponding to the data and the password input in the second password input step; A comparator for comparing the generated code data with the code data embedded in the delimiter corresponding to the partial data specified in the validity confirmation partial data specifying step. If, and an output step of changing the partial data extracted by said second extraction means outputs the information about whether or not made based on the comparison result for the partial data of said comparing step.

【0011】[0011]

【作用】かかる本発明の構成或いは工程において、文書
データ中の指定された部分データに対して管理情報を設
定し、文書データと関連付けて登録する。そして、保存
する場合には、その文書データ記憶手段に格納すべき文
書データ中の指定された部分データに対応するパスワー
ドを入力する。そして、注目している第1の部分データ
に入れ子式の第2の部分データが存在するとき、登録さ
れた管理情報に従い、第2の部分データが前記第1の部
分データと同じ管理レベルにはない場合には、その第2
の部分データを除くデータを第1の部分データに対応す
るデータとして抽出し、同じ管理レベルにあると判断し
た場合には第2の部分データを含む第1の部分データを
当該第1の部分データに対応するデータとして抽出す
る。そして、抽出された部分データと第1のパスワード
入力手段で入力されたパスワードとの組み合わせに対
し、所定の変換アルゴリズムに従って符号データを生成
する。そして、抽出された第1の部分データを区切る区
切り記号の中に、生成された符号データを埋め込み、そ
の符号データを埋め込んだ文書データを文書データ記憶
手段に格納する。一方、読み出す場合には、読み出そう
とする文書データを構成する文書データとその正当性を
確認する対象の部分データを指定する。そして、指定し
た部分データに対するパスワードを入力する。そして、
保存するときと同様にして注目部分データに対応する符
号化データを生成する。そして、生成された符号データ
と、読み出そうとする文書データ中の注目部分データの
区切り記号の中に埋め込まれている符号データとを比較
し、その比較結果に基づいて抽出された部分データにつ
いて変更がなされたか否かの情報を出力する。
In the configuration or process of the present invention, management information is set for designated partial data in document data, and registered in association with the document data. Then, in the case of saving, a password corresponding to the designated partial data in the document data to be stored in the document data storage means is input. Then, when the nested second partial data exists in the focused first partial data, the second partial data is set to the same management level as the first partial data according to the registered management information. If not, the second
Is extracted as data corresponding to the first partial data, and when it is determined that the data is at the same management level, the first partial data including the second partial data is extracted as the first partial data. Is extracted as data corresponding to. Then, code data is generated for a combination of the extracted partial data and the password input by the first password input unit according to a predetermined conversion algorithm. Then, the generated code data is embedded in the delimiter for separating the extracted first partial data, and the document data in which the code data is embedded is stored in the document data storage unit. On the other hand, in the case of reading, the document data constituting the document data to be read and the partial data whose validity is to be confirmed are specified. Then, a password for the specified partial data is input. And
Encoded data corresponding to the partial data of interest is generated in the same manner as when saving. Then, the generated code data is compared with the code data embedded in the delimiter of the partial data of interest in the document data to be read, and the partial data extracted based on the comparison result is compared. Outputs information on whether changes have been made.

【0012】[0012]

【実施例】以下、本発明に係る実施例を、添付図面に従
って説明する。
Embodiments of the present invention will be described below with reference to the accompanying drawings.

【0013】尚、以下の説明において、文書要素が「正
当である」とは、文書要素を登録した時と文書要素の内
容が変わっていないことを意味している。すなわち、ひ
とたび変更されても、元に戻されていれば、その文書要
素は正当であるとみなす。
In the following description, a document element being "valid" means that the content of the document element has not changed from the time when the document element was registered. That is, once changed, if it is restored, the document element is regarded as valid.

【0014】また、第1の文書要素が第2の文書要素を
含む(ネストする)場合、第2の文書要素を第1の文書
要素から見て「子の文書要素」、逆に、第1の文書要素
を第2の文書から見て「親の文書要素」という。 [装置構成の説明]図1は、本実施例における文書処理
システムの構成を表わした図である。
When the first document element includes (nests) the second document element, the second document element is viewed from the first document element as a “child document element”. Is referred to as a “parent document element” when viewed from the second document. [Explanation of Apparatus Configuration] FIG. 1 is a diagram showing a configuration of a document processing system in the present embodiment.

【0015】図中、1は本システムのユーザ(文書作成
者あるいは文書確認者)が本システムに文書や指令を入
力するための入力装置で、例えば、キーボードである。
勿論、外部で作成した文書を入力する(読み込む)こと
も可能とするため、入力装置1としては、キーボードの
他に例えばフロッピーディスク等も含む。
In FIG. 1, reference numeral 1 denotes an input device for a user (a document creator or a document confirmer) of the present system to input a document or a command to the present system, for example, a keyboard.
Of course, in order to be able to input (read) a document created outside, the input device 1 includes, for example, a floppy disk in addition to a keyboard.

【0016】2は入力装置1より入力された指令に基づ
いて、本実施例の処理を行なうためのCPU、3はCP
U2の処理結果、あるいは本システムからのメッセージ
をプリントアウト、あるいは表示するための出力装置
で、例えば、プリンタあるいはCRTである。
Reference numeral 2 denotes a CPU for performing the processing of this embodiment based on a command input from the input device 1;
An output device for printing out or displaying the processing result of U2 or a message from the present system, for example, a printer or a CRT.

【0017】10は本実施例における処理プログラムを
記憶するための第1の記憶装置、20は本実施例で取り
扱う文書データを保管するための第2の記憶装置、30
は本実施例の処理に要するデータを一時的に記憶するた
めの第3の記憶装置である。
Reference numeral 10 denotes a first storage device for storing a processing program according to the present embodiment, 20 denotes a second storage device for storing document data handled in the present embodiment, 30
Is a third storage device for temporarily storing data required for the processing of this embodiment.

【0018】上述した各種構成要素はバス4に接続され
ている。また、第1、第2、第3の記憶装置は別々にし
なくてもよいが、第1の記憶装置10にはCPU2が実
行可能なプログラムが展開されることになるので、IC
チップよりなるRAMであったり、あらかじめプログラ
ムが書き込まれているROMであるのが一般的である。
また、第2の記憶装置は、文書データ等を保管するもの
であるから、電源が遮断された後でもデータを保持する
ことが望まれるので、ハードディスクやフロッピーディ
スク等が望まれる。
The various components described above are connected to the bus 4. Although the first, second, and third storage devices do not have to be separated, a program that can be executed by the CPU 2 is loaded in the first storage device 10.
Generally, it is a RAM composed of a chip or a ROM in which a program is written in advance.
Further, since the second storage device stores document data and the like, it is desirable to retain the data even after the power is turned off. Therefore, a hard disk, a floppy disk, or the like is desired.

【0019】さて、第1の記憶装置10においては以下
に示す各プログラムが存在する。102は文書データ2
01から文書要素名などの文書要素識別情報をてがかり
に、文書要素の内容の一部もしくはすべてを取り出すた
めの文字列抽出プログラム、103は与えられた文字列
を変形し、別な文字列(正当性確認用符号)に変換する
ための文字列変換プログラム、104は文書要素と文字
列変換プログラム103で得られた作成時正当性確認用
符号305を文書要素名等をてがかりに、対応付けを行
なうための対応付けプログラム、105は文書データ2
02から文書要素名等をてがかりに、文書要素の比較用
符号311を取り出すめたの正当性確認用符号抽出プロ
グラム、106は2つの文字列が同一かどうかを判定す
るための文字列比較プログラムである。
The first storage device 10 has the following programs. 102 is the document data 2
A character string extraction program for extracting part or all of the contents of a document element based on document element identification information such as a document element name from 01, and 103 converts a given character string into another character string ( A character string conversion program 104 for converting the character string into a document element and a validity confirmation code 305 obtained at the time of creation obtained by the character string conversion program 103 based on the document element name and the like. 105 is a document data 2
02, a code extraction program for validity check to extract the reference code 311 for the document element based on the document element name or the like from 02, and a character string comparison program 106 for determining whether two character strings are the same. It is.

【0020】第2の記憶装置20において、201は文
書作成者達が作成した複数の文書要素からなる文書デー
タ、202は対応付けプログラム104により正当性確
認用符号が登録された正当性確認用符号付き文書デー
タ、203は管理用データである。
In the second storage device 20, reference numeral 201 denotes document data composed of a plurality of document elements created by the document creators, and reference numeral 202 denotes a validity confirmation code in which a validity confirmation code is registered by the association program 104. The attached document data 203 is management data.

【0021】第3の記憶装置30においては以下に示す
各領域が確保されている。321は文書作成時に対象と
する文書要素を示すため情報を記憶している文書要素名
(以後、作成時文書要素名と呼ぶ)、302は作成時文
字列抽出プログラム102により文書データ201から
抽出された暗号化の対象となる文字列を記憶する領域
(以後、作成時対象文字列と呼ぶ)、303は文書作成
者が入力装置1より入力したパスワードを記憶する領域
(以後、作成時パスワードと呼ぶ)、304は作成時対
象文字列302と作成時パスワード303から作成され
る被暗号化データを記憶する領域(以後、作成時被暗号
化データと呼ぶ)である。305は文字列変換プログラ
ム103により、作成時被暗号化データ304から作成
される作成時正当性確認用符号を記憶する領域、326
は文書確認時に対象とする文書要素を示すための文書要
素名を記憶する領域(以後、確認時文書要素名と呼
ぶ)、307は文字列抽出プログラム102により正当
性確認用符号付き文書データ202から抽出された文字
列を記憶する領域(以後、確認時対象文字列と呼ぶ)、
308は文書確認者が入力装置1より入力したパスワー
ドを記憶する領域(以後、確認時パスワードと呼ぶ)で
ある。また、309は確認時対象文字列307と確認時
パスワード308から作成される被暗号化データを記憶
する領域(以後、確認時被暗号化データと呼ぶ)、31
0は文字列変換プログラム103により確認時被暗号化
データ309から作成される符号を記憶する領域(以
後、確認時正当性確認用符号と呼ぶ)、311は正当性
確認用符号抽出プログラム105により正当性確認用符
号付き文書データ202から抽出された正当性を確認す
るための比較用の符号を記憶する領域(以後、比較用符
号と呼ぶ)である。312は文字列比較プログラム10
6の判定結果を記憶する領域(以下、判定結果という)
である。
In the third storage device 30, the following areas are secured. Reference numeral 321 denotes a document element name storing information to indicate a target document element at the time of document creation (hereinafter, referred to as creation document element name), and 302 is extracted from the document data 201 by the creation string extraction program 102. An area for storing a character string to be encrypted (hereinafter referred to as a creation target character string), and an area 303 for storing a password input by the document creator from the input device 1 (hereinafter referred to as a creation password). ) And 304 are areas for storing the encrypted data created from the creation target character string 302 and the creation password 303 (hereinafter referred to as creation-time encrypted data). 305 is an area for storing a creation validity confirmation code created from the creation time encrypted data 304 by the character string conversion program 103, 326.
Is an area for storing a document element name for indicating a target document element at the time of document confirmation (hereinafter, referred to as a document element name at the time of confirmation), and 307 is a character string extraction program 102 from the signed document data 202 for validity confirmation. An area for storing the extracted character string (hereinafter referred to as a confirmation target character string),
An area 308 stores a password input by the document checker from the input device 1 (hereinafter, referred to as a password for checking). Reference numeral 309 denotes an area for storing the encrypted data created from the confirmation target character string 307 and the confirmation password 308 (hereinafter, referred to as confirmation encrypted data), and 31.
0 is an area for storing a code created from the encrypted data 309 at the time of confirmation by the character string conversion program 103 (hereinafter referred to as a code for validity confirmation at the time of confirmation), and 311 is valid by the code extraction program 105 for validity confirmation. This is an area (hereinafter, referred to as a comparison code) for storing a comparison code for confirming the validity extracted from the document data 202 with the character confirmation code. 312 is a character string comparison program 10
Area for storing the judgment result of No. 6 (hereinafter referred to as judgment result)
It is.

【0022】次に、上記構成における本実施例の処理の
ながれについて説明する。
Next, a description will be given of the processing flow of this embodiment in the above configuration.

【0023】処理は大きく2つに分かれる。文書作成を
行なう処理と、正当性確認を行う処理である。 [文書作成処理の説明]初めに、複数の人間によって作
成された文書を登録する処理を図2のフローチャートを
用いて説明する。
The processing is roughly divided into two. This is a process for creating a document and a process for checking validity. [Explanation of Document Creation Process] First, a process of registering a document created by a plurality of persons will be described with reference to the flowchart of FIG.

【0024】まず、文書作成者は、既存のエディタ(不
図示の文書編集プログラム)を起動させたりすること
で、入力装置1より文書を作成し、文書データ201と
して格納する。
First, a document creator creates a document from the input device 1 by activating an existing editor (document editing program (not shown)) and stores it as document data 201.

【0025】文書データの一例を図3に示す。図示の如
く、文書データはある特定の文書区切り記号によって文
書要素ごとに明確に分離できるものである。ここでは、
文書要素名“a”の文書要素はスタート記号“<a>”
で始まり、それに対応するエンド記号“</a>”で終
る文字列をいう。つまり、これら2つの記号で囲まれた
文字列が文書要素“a”の内容である(図示の場合には
“あいうえお...”という文字列)。従って、スター
ト記号及びエンド記号は特別な意味を持っているので、
文書(文書要素)中にこれらを文書要素の区切り以外の
目的で使用することは禁じる(何か他の記号でもって代
用する)。このスタート記号、エンド記号の対応は数式
におけるカッコの対応と同様のものであり、スタート記
号は必ずひとつのエンド記号とペアになっている。
FIG. 3 shows an example of the document data. As shown, the document data can be clearly separated for each document element by a specific document delimiter. here,
The document element with the document element name “a” is a start symbol “<a>”
And ends with a corresponding end symbol “</a>”. In other words, the character string surrounded by these two symbols is the content of the document element "a" (in the case of the figure, the character string "Aieo ..."). Therefore, the start and end symbols have special meanings,
Use of these in a document (document element) for purposes other than delimiting the document element is prohibited (substituted with some other symbol). The correspondence between the start symbol and the end symbol is the same as the correspondence between the parentheses in the mathematical formula, and the start symbol is always paired with one end symbol.

【0026】各文書要素は、他の文書要素を0個以上ネ
ストして含むことができる。
Each document element can include 0 or more nested other document elements.

【0027】図示の場合、文書要素“a”は、文書要素
“b”,“e”を含んでいる。先に説明したが、文書要
素“b”,“e”は、文書要素“a”に対して「子の文
書要素」であり、逆に文書要素“a”は文書要素
“b”,“e”の「親の文書要素ということになる。
In the case shown, the document element "a" includes the document elements "b" and "e". As described above, the document elements “b” and “e” are “child document elements” with respect to the document element “a”, and the document element “a” is conversely the document elements “b” and “e”. "" Is the parent document element.

【0028】さて、文書作成後、文書作成者は文書デー
タ201の中の文書要素に対して、その文書要素を管理
するための符号をつける。管理するための符号として、
ここでは仮にその文書要素の著者名をつける。
After the document is created, the document creator assigns a code to the document element in the document data 201 to manage the document element. As a code to manage,
Here, the author name of the document element is temporarily set.

【0029】これは全ての文書要素につける必要はな
い。符号が付けられていない文書要素は、その親の文書
要素と同じ管理を受けることになる(ここでは、同じ著
者ということになる)。符号の付け方としては、図6に
示すように、テーブル形式の如く、文書要素と著者との
対応関係をファイルを用意する。これが管理データ20
3である。
This need not be attached to every document element. Unsigned document elements will be subject to the same controls as their parent document elements (here the same author). As shown in FIG. 6, a file is prepared in which the correspondence between document elements and authors is assigned in a table format as shown in FIG. This is the management data 20
3.

【0030】図6では、文書要素“a”の著者は“suzu
ki”であり、文書要素“b”のそれは“sato”であるこ
とを示している。また、ここに記述されていない文書要
素“c”や文書要素f”については、何の情報も持たな
いことになる。
In FIG. 6, the author of the document element “a” is “suzu
ki ", which indicates that the document element" b "is" sato ", and has no information about the document element" c "or the document element f which is not described here. Will be.

【0031】このファイル(管理データ203)は、文
書データ201と対応付けるため(文書データ201に
限らず、複数の文書データが存在する可能性があるの
で)、文書データ201と同じ名称で、且つ特有の拡張
子を付加させるものとする。例えば、“file”とい
う文書データに対する文書要素と符号の対応するファイ
ル(管理データ203)の名称としては、“file.
dat”などとすれば良い。但し、このファイルは、文
書要素と、それを管理するための符号(実施例では著者
名)の関係がわかるものであれば、どのようなものであ
っても構わない。以上で準備が整う。図2のステップS
21で、文書データ201、正当性確認用符号付き文書
データ202、管理データ203の格納場所(たとえば
ファイル名)を入力し、文書処理対象を定める。つぎ
の、ステップS23で、どの文書要素を登録するのかを
入力装置1により指定し、これを作成時文書要素名32
1に格納する。ここで指定される文書要素には、管理用
符号が付けられていなければならない。
Since this file (management data 203) is associated with the document data 201 (because there is a possibility that a plurality of document data exist, not limited to the document data 201), the file has the same name as the document data 201 and has a unique name. Extension is added. For example, as a name of a file (management data 203) corresponding to a document element and a code for document data “file”, “file.
dat "etc. However, this file may be any file as long as the relationship between the document element and the code (author name in the embodiment) for managing the document element can be understood. No, preparation is complete, step S in FIG.
In 21, the storage locations (for example, file names) of the document data 201, the signed document data 202 for validity confirmation, and the management data 203 are input, and a document processing target is determined. In the next step S23, which document element is to be registered is designated by the input device 1, and this is designated as the creation-time document element name 32.
1 is stored. The document element specified here must be given a management code.

【0032】次に、ステップS24で、文字列抽出プロ
グラム102を起動することで、該当する文書要素か
ら、文字列を読み出し、それを作成時対象文字列302
に格納する。 ステップS25では、文書作成者は、今
注目している文書要素に対するパスワードを入力装置1
より入力する。入力されたパスワードは作成時パスワー
ド303に格納される。そして、ステップS26におい
ては、ステップS24で取り出した作成時対象文字列3
02内の文字列と、ステップS25において作成時パス
ワード303に格納されたパスワードから暗号化した符
号を生成し、それを作成時正当性確認用符号305に格
納する(詳細は後述する)。
Next, in step S24, by activating the character string extraction program 102, a character string is read out from the corresponding document element, and the character string 302 is created at the time of creation.
To be stored. In step S25, the document creator inputs the password for the document element of interest to the input device 1
Enter more. The input password is stored in the creation password 303. Then, in step S26, the creation target character string 3 extracted in step S24
An encrypted code is generated from the character string in 02 and the password stored in the creation password 303 in step S25, and stored in the creation validity confirmation code 305 (details will be described later).

【0033】最後に、ステップS27において、対応付
けプログラム104を起動することで、該当する文書要
素と得られた正当性確認用符号の対応付け処理を行な
い、本文書作成処理を終了する。
Finally, in step S27, by activating the associating program 104, an associating process is performed between the corresponding document element and the obtained validity confirmation code, and the document creating process is completed.

【0034】ここで、ステップS24の処理、すなわ
ち、文字列抽出プログラム102の処理について述べ
る。
Here, the processing of step S24, that is, the processing of the character string extraction program 102 will be described.

【0035】このプログラムは、作成時文書要素名32
1によって指定された文書要素の内容(指定された文書
要素のスタート及びエンド記号は含まず)を取り出す
が、その中に入れ子になった他の文書要素がある場合に
は、次のような処理を行なう。
This program has a document element name 32 at the time of creation.
The contents of the document element specified by 1 (excluding the start and end symbols of the specified document element) are extracted, but if there is another nested document element in it, the following processing is performed. Perform

【0036】先ず、入れ子になっている文書要素に管理
用符号が付けられている場合(管理データ203を参照
することで判断できる)、その文書要素(入れ子になっ
ている文書要素=子の文書要素)の内容の抽出は行なわ
ない。但し、その文書要素のスタート及びエンド記号は
取り出す。また、その入れ子になっている文書要素に管
理符号か付けられていない場合には、スタート、エンド
記号だけでなく、その文書要素の内容も抽出する。
First, when a management code is assigned to a nested document element (which can be determined by referring to the management data 203), the document element (nested document element = child document) It does not extract the contents of element). However, the start and end symbols of the document element are extracted. If a management code is not assigned to the nested document element, not only the start and end symbols but also the contents of the document element are extracted.

【0037】例えば、図3のような文書データで、且つ
図6の管理データが作成された場合、文書要素“a”に
文字列抽出プログラムを実行させると、図4Aに示すよ
うな文字列が抽出される。
For example, when the document data shown in FIG. 3 and the management data shown in FIG. 6 are created, when the character string extraction program is executed for the document element "a", the character string shown in FIG. Is extracted.

【0038】また、文書要素“b”について同様の処理
を行なうと、図4Bに示す文字列が抽出されることにな
る。
When the same processing is performed for the document element "b", the character string shown in FIG. 4B is extracted.

【0039】以下、本文字列抽出プログラムの処理のな
がれを図7のフローチャートに従って説明する。
The processing flow of the character string extraction program will be described below with reference to the flowchart of FIG.

【0040】先ず、ステップS51において、作成時文
書要素名321で指定された文書要素のスタート記号直
後にポインタをジャンプする。そして、次のステップS
52で、ポインタを順次進めて、次の文書区切り記号を
検出したとき、その直前までの文字列を抽出する。そし
て、次のステップS53において、先に検出した文書区
切り記号は、注目文書要素(親の文書要素)のエンド記
号かどうかを判断する。判断の基準は、注目している文
書要素名がその区切り記号中に存在するか否かかつエン
ド記号であるかで判断できる。ここでの判断が“YE
S”の場合には、抽出すべき文字列は全て抽出したこと
になるから本処理を終えるが、“NO”の場合(つま
り、検出した文書区切り記号が「子の文書要素」の区切
り記号の場合)にはステップS54に進む。
First, in step S51, the pointer jumps immediately after the start symbol of the document element specified by the document element name 321 at the time of creation. Then, the next step S
In step 52, when the next document delimiter is detected by sequentially advancing the pointer, the character string up to that point is extracted. Then, in the next step S53, it is determined whether or not the previously detected document delimiter is the end symbol of the target document element (parent document element). The determination criterion can be determined based on whether or not the focused document element name exists in the delimiter and whether it is an end symbol. The judgment here is "YE
In the case of "S", all the character strings to be extracted have been extracted, so this processing ends. In the case of "NO" (that is, the detected document delimiter is the delimiter of the "child document element"). If so, the process proceeds to step S54.

【0041】ここでは(ステップS54)、検出された
文書区切り記号に対応する文書要素に管理用符号が付け
られているか否かを判断する。この文書要素の文書要素
名が管理用データ203に登録されているとき、管理用
符号が付けられているとみなす。なお、エンド記号の場
合は、管理用符号が付けられていないとみなす。付けら
れていなければ、その区切り記号を含む、それ以降の文
字列も抽出対象の文字列であることになるので、処理は
ステップS52に戻る。(この後、管理用データに登録
されている文書要素のスタート記号を見つけるか、指定
された文書要素のエンド記号を見つけるまで、次々とネ
ストの下の階層へ進んでいくことになる。)
Here, (step S54), it is determined whether or not a management code is attached to the document element corresponding to the detected document delimiter. When the document element name of this document element is registered in the management data 203, it is considered that a management code is attached. In the case of the end symbol, it is assumed that the management code is not attached. If not, the subsequent character strings including the delimiter are also character strings to be extracted, and the process returns to step S52. (After that, the process proceeds to the hierarchy below the nest one after another until the start symbol of the document element registered in the management data or the end symbol of the designated document element is found.)

【0042】また、管理用符号が付けられていると判断
した場合、当該文書要素が構造的に正しく記述されてい
れば、検出した区切り記号はエンド記号ではなく、子の
文書要素のスタート記号であると考えて良い。
When it is determined that the management code is attached, if the document element is described structurally correctly, the detected delimiter is not the end symbol but the start symbol of the child document element. You can think there is.

【0043】しかも、この「子の文書要素」には管理用
符号が付いているものであるから、対応するエンド記号
の直前までの文字列は抽出対象外の文字列となる。従っ
て、ポインタを、エンド記号まで進め、そこから文字列
の抽出する処理を続行させる。
Moreover, since the "child document element" is provided with a management code, the character string immediately before the corresponding end symbol is a character string not to be extracted. Therefore, the pointer is advanced to the end symbol, and the process of extracting the character string therefrom is continued.

【0044】尚、このとき、スタート記号やエンド記号
に文書要素名以外のものが入っていた場合は(例えば、
後述する正当性確認時においては、エンド記号中に正当
性確認用符号が挿入されている)、これを無視して扱う
(抽出しない)。
At this time, if the start symbol or the end symbol includes anything other than the document element name (for example,
At the time of validity confirmation to be described later, a validity confirmation code is inserted in the end symbol), and this is ignored (not extracted).

【0045】以上の処理によって、作成時対象文字列3
02に、文字列が抽出され格納されることになる。
By the above processing, the target character string 3 at the time of creation
02, a character string is extracted and stored.

【0046】次に、図2のステップS26の符号生成処
理について、図8のフローチャートに従って説明する。
Next, the code generation processing in step S26 in FIG. 2 will be described with reference to the flowchart in FIG.

【0047】先ず、ステップS61で作成時対象文字列
302と作成時パスワード303内の2つの文字列を連
結し、それを作成時被暗号化データ304に格納する。
尚、ここでは、作成時対象文字列302と、作成時パス
ワード303を文字列と仮定しているが、単なるバイト
列であつてもよい。
First, in step S61, the target character string 302 at the time of creation and the two character strings in the password 303 at the time of creation are concatenated and stored in the encrypted data 304 at the time of creation.
Here, the creation target character string 302 and the creation password 303 are assumed to be character strings, but may be simple byte strings.

【0048】次に、ステップS62において、文字列変
換プログラム103を起動することで、作成時被暗号化
データ304内の文字列を別の文字列に変換し、それを
作成時正当性確認符号305に格納保管する。もちろ
ん、作成時被暗号化データ304が単なるバイト列の
時、このプログラム(符号103)はバイト列変換プロ
グラムとなることはいうまでもない。
Next, in step S62, by activating the character string conversion program 103, the character string in the encrypted data at the time of creation 304 is converted into another character string, which is converted into a validity confirmation code 305 at the time of creation. Store. Of course, when the encrypted data at the time of creation 304 is a simple byte string, it goes without saying that this program (reference numeral 103) is a byte string conversion program.

【0049】この文字列変換プログラム103は、例え
ば、UNIXにおけるパスワードの暗号化と同じような
アルゴリズムによつて実現できる。つまり、ある文字列
を事実上逆変換できない方法によつて、別の文字に変換
するものである。ただし、変換後の文字列中に、文書区
切り記号がが生成されないようにしなければならない。
The character string conversion program 103 can be realized by, for example, an algorithm similar to the password encryption in UNIX. In other words, a certain character string is converted into another character by a method that cannot be virtually inverted. However, a document delimiter must not be generated in the converted character string.

【0050】次に、図2におけるステップS27、すな
わち、対応付けプログラム104の動作を説明する。
Next, step S27 in FIG. 2, that is, the operation of the association program 104 will be described.

【0051】ここでは、作成時正当性確認符号305
を、対象となる文書要素のエンド記号中に空白文字とと
もに挿入する。この正当性確認用符号によつて、対象と
なる文書要素の正当性を確認するので、ここで、空白文
字を挿入する意味は、文書要素名と正当性確認用符号を
明確に分離するためのものである。
Here, the validity confirmation code 305 at the time of creation is used.
Is inserted into the end symbol of the target document element with a space character. Since the validity of the target document element is confirmed by the validity confirmation code, the purpose of inserting a blank character here is to clearly separate the document element name from the validity confirmation code. Things.

【0052】このように正当性確認用符号が挿入された
文書データが、正当性確認用符号付き文書データ202
になる。
The document data into which the validity confirmation code is inserted is the document data 202 with the validity confirmation code.
become.

【0053】図5に正当性確認用符号付き文書データ2
02の一例を示す。管理用符号が指定されている文書要
素(ここではa,b,d,e)のエンド記号中にある文
字列“????”が正当性確認用符号である。それぞれ
の文書要素のエンド記号中に正当性確認用符号を挿入
し、文書要素名とは1つの空白文字にいよって隔てられ
ているのがわかる。
FIG. 5 shows the signed document data 2 for validity confirmation.
02 is shown. The character string "????" in the end symbol of the document element (here, a, b, d, e) for which the management code is designated is the validity check code. A validity confirmation code is inserted in the end symbol of each document element, and it can be seen that the document element name is separated from the document element name by one blank character.

【0054】図9のフローチャートに従って、この処理
(対応付けプログラム104)の処理を説明する。
The processing of this processing (association program 104) will be described with reference to the flowchart of FIG.

【0055】先ず、ステップS71で文書データ201
から、作成時文書要素番号301が示す文書要素のエン
ド記号を検出する。
First, in step S71, the document data 201
, The end symbol of the document element indicated by the document element number 301 at the time of creation is detected.

【0056】次に、ステップS72で、作成時正当性確
認用符号305を、エンド記号中の文書要素名の直後
に、空白文字とともに挿入する。
Next, in step S72, a validity confirmation code 305 is inserted together with a blank character immediately after the document element name in the end symbol.

【0057】以上で、図2のステップS27の処理が達
成できる。 [正当性確認処理の説明]次に、正当性確認処理の流れ
を図10のフローチャートに従って説明する。
As described above, the processing in step S27 in FIG. 2 can be achieved. [Explanation of Validity Confirmation Process] Next, the flow of the validity confirmation process will be described with reference to the flowchart of FIG.

【0058】先ず、ステップS80で、正当性確認用符
号付き文書データ202、管理用データ203のそれぞ
れの格納場所を入力し、処理対象を定める。続いて、ス
テップS81において、文書確認者は入力装置1より確
認したい文書要素名を入力する。入力された文書要素名
は確認時文書要素名326に格納される。
First, in step S80, the respective storage locations of the signed document data 202 for validity confirmation and the management data 203 are input, and the processing target is determined. Subsequently, in step S81, the document confirmer inputs a document element name to be confirmed from the input device 1. The input document element name is stored in the confirmation document element name 326.

【0059】次のステップS72では、正当性確認用符
号付き文書データ202から、文字抽出プログラム10
2を用いて、該当する文字列を抽出し、それを確認時対
象文字列307に格納する。この処理内容は、基本的に
文書作成時の処理、つまり、図7と同じである。但し、
処理対象は確認時文書要素名326に格納された文書要
素であり、抽出文字列の格納先は確認時文字列307と
なる。
In the next step S72, the character extraction program 10 is extracted from the signed document data 202 for validity confirmation.
2, the corresponding character string is extracted and stored in the confirmation target character string 307. This processing is basically the same as the processing at the time of document creation, that is, the same as that of FIG. However,
The processing target is the document element stored in the document element name 326 at the time of confirmation, and the storage destination of the extracted character string is the character string 307 at the time of confirmation.

【0060】次に、ステップS83で文書確認者は、入
力装置1より確認時パスワード308を入力する。
Next, in step S83, the document confirmer inputs the confirmation password 308 from the input device 1.

【0061】ステップS84では、ステップS72で取
り出した確認時対象文字列307とステップS83で入
力した確認時パスワード308から、確認時正当性確認
用符号310を作成する。この暗号化は、図2のステッ
プS26の処理と同じ処理である。つまり、図8の説明
における作成時対象文字列302を確認時対象文字列3
07、作成時パスワード303を確認時パスワード30
8、作成時被暗号化データ304を確認時被暗号化デー
タ309、作成時正当性確認用符号305を確認時正当
性確認用符号310と置き換えて、全く同様に説明でき
る。
In step S84, a confirmation validity confirmation code 310 is created from the confirmation target character string 307 extracted in step S72 and the confirmation password 308 input in step S83. This encryption is the same processing as the processing in step S26 in FIG. In other words, the creation target character string 302 in the description of FIG.
07, creation password 303, confirmation password 30
8. The same description can be made in exactly the same way, except that the encrypted data at creation 304 is replaced with the encrypted data at confirmation 309 and the creation validity confirmation code 305 is replaced with the validation validity confirmation code 310.

【0062】ステップS85では、正当性確認用符号付
き文書データ202から、ステップS71で入力された
確認時文書要素番号306が示す文書要素のエンド記号
を検出し、このエンド記号中の文書要素名の直後の空白
文字を含まない文字列を比較用符号311に取り出す
(この文字列は、図9の処理で挿入した正当性確認用符
号であり、エンド記号中の文書要素名とは空白文字によ
って分離されている)。
In step S85, the end symbol of the document element indicated by the document element number 306 at the time of confirmation input in step S71 is detected from the document data 202 with the code for validity confirmation, and the document element name in the end symbol is detected. The character string that does not include a blank character immediately after is extracted as a comparison code 311 (this character string is a validity check code inserted in the processing of FIG. 9 and is separated from the document element name in the end symbol by a blank character. Has been).

【0063】ステップS86では、ステップS84で作
成した確認時正当性確認用符号310と、ステップS8
5で抽出した比較用符号311を比較する。もし一致す
れば、ステップS87によつて正当である旨、例えば文
字列“yes”を判定結果312に格納する。一致しな
い時は、ステップS88によつて正当でない旨、例えば
文字列“no”を格納する。
In step S86, the validity confirmation code 310 for confirmation created in step S84 and step S8
The comparison code 311 extracted in step 5 is compared. If they match, the validity is stored in step S87, for example, a character string "yes" is stored in the determination result 312. If they do not match, it is determined in step S88 that they are not valid, for example, a character string "no" is stored.

【0064】以上をもって、本第1の実施例の処理の流
れについての説明を終了する。[他の実施例の説明]以
下、第2の実施例について説明する。本第2の実施例で
は、管理用符号を別ファイルに記述するのではなく、文
書区切り記号中に記述するものである。
With the above, the description of the processing flow of the first embodiment has been completed. [Description of Another Embodiment] The second embodiment will be described below. In the second embodiment, the management code is described not in a separate file but in a document delimiter.

【0065】図11は本第2の実施例におけるシステム
構成を表わした図である。図1と装置の構成は同じであ
るが、第1、第2、第3の記憶装置に記憶されるプログ
ラムやデータが異なる。
FIG. 11 is a diagram showing a system configuration according to the second embodiment. Although the configuration of the apparatus is the same as that of FIG. 1, the programs and data stored in the first, second, and third storage devices are different.

【0066】以下、本第2の実施例の処理のながれにつ
いて説明する。
The processing flow of the second embodiment will be described below.

【0067】本処理も第1の実施例と同様に、文書作成
を行なう処理と、正当性確認を行う処理の2つに分かれ
る。
As in the first embodiment, this process is also divided into a process for creating a document and a process for checking validity.

【0068】初めに、文書作成処理の流れについて、説
明する。
First, the flow of the document creation processing will be described.

【0069】先ず、文書作成者は、入力装置1より文字
列を入力し、既存のエデイタなどを用いて文書データ2
11を作成するこのとき、管理用符号も同時に文書区切
り記号(スタート記号)の中に記述する。
First, the document creator inputs a character string from the input device 1 and uses the existing editor or the like to input the document data 2.
At this time, the management code is also described in the document delimiter (start symbol).

【0070】図13に、本第2の実施例における文書デ
ータ211の例を示す。文書データは、ある特定の記号
によつて、文書要素ごとに明確に分離できるものであ
る。
FIG. 13 shows an example of the document data 211 in the second embodiment. Document data can be clearly separated for each document element by a specific symbol.

【0071】ここでは、文書要素名が“a”という文書
要素のスタート記号が“<a>”、エンド記号が“</
a>”である。この2つの記号に囲まれた文字列が文書
要素“a”の内容である。第1の実施例と同様、それぞ
れの文書要素は他の文書要素を0個以上ネストして含む
ことが出来る。
Here, the start symbol of the document element whose document element name is “a” is “<a>” and the end symbol is “<//”.
a> ”. The character string surrounded by these two symbols is the content of the document element“ a. ”As in the first embodiment, each document element nests 0 or more other document elements. Can be included.

【0072】また、この区切り記号の中に管理用符号を
記述する場合は、スタート記号の中に例えば、“author
=suzuki”というような文字列を文書要素名の後に、空
白文字を隔てて挿入する。
When the management code is described in the delimiter, for example, "author
= Suzuki ”is inserted after the document element name with a space character between them.

【0073】第1の実施例と同様、管理符号としてその
文書要素の著者名を使用することにする。これによっ
て、その文書要素がsuzukiであることが示される。ま
た、第1の実施例と同様に、全ての文書要素について、
管理符号を記述する必要はない。つまり、記述のないも
のは、親の文書要素と同じ管理を受ける(同じ著者であ
るとみなす)。
As in the first embodiment, the author name of the document element is used as the management code. This indicates that the document element is suzuki. Also, as in the first embodiment, for all document elements,
There is no need to describe the management code. In other words, those with no description receive the same management as the parent document element (assuming the same author).

【0074】図12を用いて説明する。ステップS10
1で、文書データ211、正当性確認用符号付き文書デ
ータ212のそれぞれの格納場所(たとえばファイル
名)を入力し、処理対象を定める。処理がステップS1
02に進むと、文書作成者は入力装置1より作成時文書
要素名を入力する。
This will be described with reference to FIG. Step S10
In step 1, the storage locations (for example, file names) of the document data 211 and the document data 212 with validity confirmation code are input, and the processing target is determined. Processing is step S1
In step 02, the document creator inputs the document element name at the time of creation from the input device 1.

【0075】次に、ステップS103で、文字列抽出プ
ログラム112を起動することで、該当する文書要素の
文字列を抽出し、それを作成時対象文字列302に格納
する。ステップS104では、文書作成者は入力装置1
より、該当する文書要素に対応するパスワードを入力す
る(入力されたパスワードは作成時パスワード303に
格納される)。
Next, in step S103, the character string of the corresponding document element is extracted by activating the character string extraction program 112, and stored in the creation target character string 302. In step S104, the creator of the document
Then, a password corresponding to the corresponding document element is input (the input password is stored in the creation password 303).

【0076】ステップS105では、ステップS103
で抽出された文字列(作成時対象文字列302内に格納
されている)と、ステップS104で入力したパスワー
ド(作成時パスワード303内に格納されている)から
暗号化された符号を作成し、それを作成時正当性確認用
符号305に格納する。この処理は、第1の実施例にお
ける図2のステップS26の処理と全く同様である。
In step S105, step S103
Then, an encrypted code is created from the character string extracted in step (stored in the target character string 302 at the time of creation) and the password input in step S104 (stored in the password 303 at the time of creation). It is stored in the validity confirmation code 305 at the time of creation. This process is exactly the same as the process of step S26 in FIG. 2 in the first embodiment.

【0077】最後に、ステップS106で対応付けプロ
グラム114を用いて該当する文書要素と暗号化符号3
05の対応付け処理を行ない、文書作成処理を終了す
る。
Finally, in step S106, the corresponding document element and the encryption code
05 is performed, and the document creation processing ends.

【0078】ここで、図12におけるステップS103
の文字列抽出プログラム112の処理であるが、これは
第1の実施例における文字列抽出プログラム102とほ
とんど同じであり、処理の内容も図7と同じである。
Here, step S103 in FIG.
The processing of the character string extraction program 112 is almost the same as that of the character string extraction program 102 in the first embodiment, and the contents of the processing are the same as those in FIG.

【0079】但し、第1の実施例では、文書要素と管理
用符号の対応関係が別ファイルになっていたのに対し、
本第2の実施例では直接文書データ内の区切り記号に記
述されている。よって、管理用符号が付けられているか
否かを判断するには、スタート記号中に文字列“author
=”があるか否かで確かめる。
However, in the first embodiment, the correspondence between the document element and the management code is a separate file.
In the second embodiment, it is directly described as a delimiter in the document data. Therefore, to determine whether or not the management code is attached, the character string “author
Check if there is == ”.

【0080】尚、この場合も、子の文書要素の区切り記
号(スタート記号及びエンド記号)に、文書要素名以外
の文字列があった場合は、これを無視する。すなわち、
文字列抽出の際、各スタート記号内にある“author=su
zuki”等の文字列は抽出しない。(文書要素名とこれら
の管理情報をへだてる空白文字も抽出しない)
In this case, if a character string other than the document element name is included in the delimiter (start symbol and end symbol) of the child document element, this character string is ignored. That is,
When extracting character strings, "author = su" in each start symbol
Do not extract character strings such as "zuki". (Do not also extract blank characters that deviate document element names and their management information.)

【0081】図13で示した文書データは、図3で示し
た文書データと図6の管理データをひとまとめにした文
書データを示しており、第1の実施例と同様に、文書要
素“a”について文字列抽出を行なった場合に得られる
文字列は、第1の実施例と同様、図4Aとなる。また、
文書要素“b”に対して同様の処理を行なった場合に得
られる文字列は図4Bの如くになる。
The document data shown in FIG. 13 shows the document data obtained by combining the document data shown in FIG. 3 and the management data shown in FIG. 6, and, like the first embodiment, the document element “a” FIG. 4A shows a character string obtained when the character string is extracted for the same as in the first embodiment. Also,
A character string obtained when the same processing is performed on the document element “b” is as shown in FIG. 4B.

【0082】次に、本第2の実施例における2つ目の処
理である正当性確認処理を図14に従って説明する。
Next, the validity confirmation processing, which is the second processing in the second embodiment, will be described with reference to FIG.

【0083】先ず、ステップS120で、正当性確認用
符号付き文書データ212の格納場所を入力し、処理対
象を定める。続いて、ステップS121において、文書
確認者は確認しようとしている文書要素の文書要素名を
入力装置1より入力する(入力した文書要素名は確認時
文書要素名326に格納される)。次に、ステップS1
22において、文字列抽出プログラム112を起動する
ことで正当性確認用符号付き文書データ212中の該当
する文書要素から文字列を抽出し、それを確認時対象文
字列307に取り出す。
First, in step S120, the storage location of the signed document data 212 for validity confirmation is input, and the processing target is determined. Subsequently, in step S121, the document confirmer inputs the document element name of the document element to be confirmed from the input device 1 (the entered document element name is stored in the confirmation document element name 326). Next, step S1
In step 22, the character string extraction program 112 is started to extract a character string from the corresponding document element in the validity-confirmed signed document data 212, and extract it as a confirmation target character string 307.

【0084】ステップS123では、文書確認者は、入
力装置1より対応する文書要素に対するパスワードを入
力する(入力されたパスワードは確認時パスワード30
8に格納される)。次に、ステップS124では、ステ
ップS122で取り出した文字列(確認時対象文字列3
07内に格納されている)と、ステップS123で入力
したパスワード(確認時パスワード308に格納されて
いる)とから確認時正当性確認用符号310を生成す
る。この処理は第1の実施例における図10のステップ
S84と同様の処理を実行すれば良い。
In step S123, the document confirmer inputs the password for the corresponding document element from the input device 1 (the entered password is the password 30 for confirmation).
8). Next, in step S124, the character string extracted in step S122 (the confirmation target character string 3
07) and the password entered in step S123 (stored in the confirmation password 308) to generate a confirmation validity confirmation code 310. In this process, the same process as in step S84 in FIG. 10 in the first embodiment may be executed.

【0085】確認時正当性確認用符号310が生成され
ると、処理はステップS125に進んで、正当性確認用
符号付き文書データ212中の該当する文書要素(確認
時文書要素名326に格納された文書要素名の文書要
素)のエンド記号を検出し、そのエンド記号の中から比
較用符号311を取り出す。
When the confirmation validity confirmation code 310 is generated, the process proceeds to step S125, in which the corresponding document element in the validity confirmation signed document data 212 (stored in the confirmation document element name 326). Then, the end symbol of the document element having the specified document element name) is detected, and the comparison code 311 is extracted from the end symbol.

【0086】最後に、ステップS126で、ステップS
124で生成された比較用符号310と、ステップS1
25で抽出された正当性確認用符号311とを比較す
る。その結果、一致する場合には、ステップS127で
正当である旨(例えば文字列“yes”を)判定結果3
12に格納し、一致しないときにはステップS128
で、正当ではない旨を(例えば文字列“no”を)判定
結果312に格納する。以上で確認処理が終了する。
Finally, in step S126, step S
The comparison code 310 generated in step 124 and step S1
25 and is compared with the validity check code 311 extracted. As a result, if they match, it is determined in step S127 that the file is valid (for example, the character string “yes”).
12 and if they do not match, step S128
Then, the fact that the message is not valid (for example, the character string “no”) is stored in the determination result 312. This is the end of the confirmation processing.

【0087】尚、本実施例においては、正当性確認用符
号をエンド記号に挿入したが、勿論スタート記号に挿入
することも可能である。また、文書区切り記号中には文
書要素名と管理用符号と正当性確認用符号のみが存在す
る例を説明したが、属性等の情報が文書区切り記号中に
あっても良い。
In this embodiment, the validity check code is inserted into the end symbol, but it is of course possible to insert it into the start symbol. Also, an example has been described in which only the document element name, the management code, and the validity confirmation code exist in the document delimiter, but information such as attributes may be present in the document delimiter.

【0088】この場合は、文書要素名や正当性確認用符
号とその他の情報が明確に区別できなければならない。
例えば、エンド記号中の何番目の位置かを定めるとか、
本実施例のように、 <a owner=me date=1990.9.11 passwd=?????> という具合に属性の名前を明記することが考えられる。
位置を指定する場合には、最初に文書データを作成する
際に、所定位置にダミーの正当性確認用符号を挿入して
おき、対応付け処理で正しい正当性確認用符号と入れ替
えれば良い。以上説明したように本第1,第2の実施例
によれば、1つの文書データが文書区切り記号によって
1つ以上の文書要素に分割され、且つ文書要素の内部に
更なる文書要素が何層にもネストして存在できる場合に
おいて、 i.どのネスト階層の文書要素に対しても、あるまとま
りの文書要素毎の正当性を管理することが可能になる。 ii.すべての文書要素に対し管理用符号を付けなくてよ
いから、i.のための作業が簡単になる。 iii.管理の指定がない文書要素は、親の文書要素のと同
じ管理を受けることが可能になる。
In this case, the document element name and the validity confirmation code must be clearly distinguishable from other information.
For example, to determine the position in the end symbol,
As in the present embodiment, it is conceivable that the name of the attribute is specified as <a owner=me date=1990.9.11 passwd=?????>.
When specifying the position, a dummy validity confirmation code may be inserted at a predetermined position when document data is first created, and may be replaced with a correct validity confirmation code in the association process. As described above, according to the first and second embodiments, one piece of document data is divided into one or more document elements by a document delimiter, and the number of layers of further document elements inside the document element. I. It is possible to manage the validity of each document element of a certain group for document elements of any nest hierarchy. ii. The task for i. Is simplified because all document elements do not have to have a management code. iii. Document elements for which management is not specified can receive the same management as the parent document element.

【0089】という効果が得られる。The above effect is obtained.

【0090】また、子の文書要素が親の文書要素の管理
下にないと判断した場合であっても、子の文書要素の区
切り記号までも暗号化の対象とするため、対象とする文
書要素のどの位置になんという名前の文書要素があると
いうことまで含めて、文書要素の正当性の確認を行なう
ことができる。換言すれば、この場合、子の文書要素の
内容を自由に書き換えても、その外側(親)の文書要素
は“正当である”とみなされ、子の文書要素を削除した
り、位置をかえたり、文書要素名や属性がある場合はそ
の文書要素名や属性をかえると、“正当である”ことに
はならない。
Even when it is determined that the child document element is not under the control of the parent document element, even the delimiter of the child document element is to be encrypted. It is possible to confirm the validity of the document element, including the position of the document element in what position. In other words, in this case, even if the contents of the child document element are freely rewritten, the outer (parent) document element is regarded as "valid", and the child document element is deleted or the position is changed. If there is a document element name or attribute, and if the document element name or attribute is changed, it is not "valid".

【0091】なお、上記実施例では、データ内容の変更
の有無を判定する対象のデータを文書データとしたが、
プログラムデータを対象としてもよい。すなわち、本発
明は、プログラムソースの正当性の確認に適用すること
もできる。
In the above embodiment, the data for which the data content is to be changed is document data.
The program data may be targeted. That is, the present invention can also be applied to confirm the validity of a program source.

【0092】[0092]

【発明の効果】以上説明したように、本発明によれば、
一旦、文書データ記憶手段に保存した文書データに不正
な書き換えが行なわれたか否かを、該文書データを読み
出す際に、該文書データを構成する複数の部分データ毎
に検証を行え、その正当性を知ることができる。しか
も、部分データ(第1の部分データ)に別の部分データ
(第2の部分データ)が入れ子になっている場合には、
設定登録した管理情報に基づいてその第1、第2の部分
データが同じ管理レベルである場合には、第2の部分デ
ータを含めた第1の部分データの正当性を判断でき、逆
に同じ管理レベルであればその第2の部分データは、少
なくとも第三者が修正していることを許容しつつ第1の
部分データの正当性を知ることができる。この結果、保
存されていたその文書を構成する部分データ毎、更には
入れ子になったに応じた適切な処置を行うことが可能に
なる。
As described above, according to the present invention,
When reading out the document data, it can be verified for each of a plurality of partial data constituting the document data whether the document data once stored in the document data storage means has been illegally rewritten. You can know. Moreover, when another partial data (second partial data) is nested in the partial data (first partial data),
If the first and second partial data have the same management level based on the registered management information, the validity of the first partial data including the second partial data can be determined. At the management level, the second partial data can know the validity of the first partial data while allowing at least a third party to make corrections. As a result, it becomes possible to perform an appropriate action according to each of the stored partial data constituting the document, and further, according to the nesting.

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

【図1】第1の実施例におけるシステム構成図である。FIG. 1 is a system configuration diagram in a first embodiment.

【図2】第1の実施例における文書作成処理手順を示す
フローチャートである。
FIG. 2 is a flowchart illustrating a document creation processing procedure according to the first embodiment.

【図3】第1の実施例の文書データの一例を示す図であ
る。
FIG. 3 is a diagram illustrating an example of document data according to the first embodiment.

【図4】第1の実施例における文字列抽出処理を説明す
るための図である。
FIG. 4 is a diagram for explaining a character string extraction process in the first embodiment.

【図5】第1の実施例の正当性確認符号付き文書データ
の一例を示す図である。
FIG. 5 is a diagram illustrating an example of document data with a validity check code according to the first embodiment.

【図6】本実施例における管理用データの内容を示す図
である。
FIG. 6 is a diagram showing contents of management data in the embodiment.

【図7】図2のステップS24の処理の詳細を示すフロ
ーチャートである。
FIG. 7 is a flowchart showing details of a process in step S24 of FIG. 2;

【図8】図2のステップS26の処理の詳細を示すフロ
ーチャートである。
FIG. 8 is a flowchart showing details of a process in step S26 in FIG. 2;

【図9】図2のステップS27の処理の詳細を示すフロ
ーチャートである。
FIG. 9 is a flowchart illustrating details of a process in step S27 of FIG. 2;

【図10】第1の実施例における文書確認処理手順を示
すフローチャートである。
FIG. 10 is a flowchart illustrating a document confirmation processing procedure according to the first embodiment.

【図11】第2の実施例におけるシステム構成図であ
る。
FIG. 11 is a system configuration diagram in a second embodiment.

【図12】第2の実施例における文書作成処理手順を示
すフローチャートである。
FIG. 12 is a flowchart illustrating a document creation processing procedure according to the second embodiment.

【図13】第2の実施例の文書データの一例を示す図で
ある。
FIG. 13 is a diagram illustrating an example of document data according to the second embodiment.

【図14】第2の実施例における文書確認処理手順を示
すフローチャートである。
FIG. 14 is a flowchart illustrating a document confirmation processing procedure according to the second embodiment.

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

1 入力装置 2 CPU 3 出力装置 10,20,30 記憶装置 102 文字列抽出プログラム 103 文字列変換プログラム 104 対応付けプログラム 105 正当性確認用符号抽出プログラム 106 文字列比較プログラム 201 文書データ 202 正当性確認用符号付き文書データ 203 管理用データ DESCRIPTION OF SYMBOLS 1 Input device 2 CPU 3 Output device 10, 20, 30 Storage device 102 Character string extraction program 103 Character string conversion program 104 Correspondence program 105 Code extraction program for validity confirmation 106 Character string comparison program 201 Document data 202 Validity confirmation Signed document data 203 Management data

フロントページの続き (72)発明者 長島 正明 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (72)発明者 山川 正 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (56)参考文献 特開 平3−278161(JP,A) 特開 平3−8076(JP,A) 特開 平2−297284(JP,A) 特開 平2−28869(JP,A) 特開 平2−14355(JP,A) 特開 平1−243172(JP,A) 特開 平1−161937(JP,A) 特開 平1−101042(JP,A) 特開 昭63−269251(JP,A) 特開 昭60−118954(JP,A) 特開 昭60−26387(JP,A) 社団法人情報処理学会,第42回(平成 3年後期)全国大会講演論文集(3) (平成3年3月12日〜14日),p.308 〜309 (58)調査した分野(Int.Cl.6,DB名) G06F 17/21 G06F 17/22 G06F 17/24 G06F 9/06 G09C 1/00 - 5/00 JICSTファイル(JOIS)Continuation of the front page (72) Inventor Masaaki Nagashima 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Inventor Tadashi 3-30-2, Shimomaruko 3-chome, Ota-ku, Tokyo Inside Canon Inc. (56) References JP-A-3-278161 (JP, A) JP-A-3-8076 (JP, A) JP-A-2-297284 (JP, A) JP-A-2-28869 (JP, A) JP-A-2-14355 (JP, A) JP-A-1-243172 (JP, A) JP-A-1-161937 (JP, A) JP-A-1-101042 (JP, A) JP-A-63-269251 (JP JP, A) JP-A-60-118954 (JP, A) JP-A-60-26387 (JP, A) Information Processing Society of Japan, Proceedings of the 42nd (late 1991) National Convention (3) ( (March 12-14, 1991), p. 308 to 309 (58) Fields investigated (Int. Cl. 6 , DB name) G06F 17/21 G06F 17/22 G06F 17/24 G06F 9/06 G09C 1/00-5/00 JICST file (JOIS)

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 文書データを所定の文書データ記憶手段
に保存する保存手段及び文書データを前記文書データ記
憶手段より読み出す読み出し手段とを備え、区切り記号
で区切られた複数の部分データが入れ子式の構造になり
得る文書を処理する文書処理装置であって、 文書データ中の管理対象として登録する1つの部分デー
タを指定する管理対象部分データ指定手段と、 指定された部分データに対して管理情報を設定し、文書
データと関連付けて登録する管理情報設定登録手段と、 前記保存手段は、 前記文書データ記憶手段に格納すべき文書データ中の、
前記管理対象部分データ指定手段で指定された部分デー
タを第1の部分データとし、当該第1の部分データに対
してパスワードを入力する第1のパスワード入力手段
と、 注目している第1の部分データに入れ子式の第2の部分
データが存在するとき、前記管理情報設定登録手段で登
録された管理情報に従い、前記第2の部分データが前記
第1の部分データと同じ管理レベルにはない場合には、
前記第2の部分データを除くデータを第1の部分データ
に対応するデータとして抽出し、同じ管理レベルにある
と判断した場合には前記第2の部分データを含む第1の
部分データを当該第1の部分データに対応するデータと
して抽出する第1の抽出手段と、 該第1の抽出手段で抽出された第1の部分データに対応
するデータと前記第1のパスワード入力手段で入力され
たパスワードとの組み合わせに対し、所定の変換アルゴ
リズムに従って符号データを生成する第1の符号生成手
段と、 前記第1の部分データを区切る区切り記号中に、当該第
1の部分データに対して生成された符号データを埋め込
む埋め込み手段と、 符号データが埋め込まれた文書データを前記文書データ
記憶手段に格納する格納手段とを備え、 前記読み出し手段は、 前記文書データ記憶手段から読み出そうとする文書デー
タを指定する読出し文書データ指定手段と、 該読出し文書データ指定手段で指定される文書データ中
の正当性確認対象とする部分データを指定する正当性確
認部分データ指定手段と、 指定された部分データを第1の部分データとし、当該第
1の部分データに対応するパスワードを入力する第2の
パスワード入力手段と、 注目している第1の部分データに入れ子式の第2の部分
データが存在するとき、前記管理情報設定登録手段で登
録された管理情報に従い、前記第2の部分データが前記
第1の部分データと同じ管理レベルにはない場合には、
前記第2の部分データを除くデータを第1の部分データ
に対応するデータとして抽出し、同じ管理レベルにある
と判断した場合には前記第2の部分データを含む第1の
部分データを当該第1の部分データに対応するデータと
して抽出する第2の抽出手段と、 該第2の抽出手段で抽出された第1の部分データに対応
するデータと前記第2のパスワード入力手段で入力され
たパスワードとの組み合わせに対し、所定の変換アルゴ
リズムに従って符号データを生成する第2の符号生成手
段と、 該第2の符号生成手段により生成された符号データと、
前記正当性確認部分データ指定手段で指定された部分デ
ータに対応する区切り記号の中に埋め込まれている符号
データとを比較する比較手段と、 前記比較手段の部分データに対する比較結果に基づいて
前記第2の抽出手段で抽出された部分データについて変
更がなされたか否かの情報を出力する出力手段とを備え
ることを特徴とする文書処理装置。
A storage means for storing document data in a predetermined document data storage means; and a reading means for reading the document data from the document data storage means, wherein a plurality of partial data delimited by a delimiter are nested. A document processing apparatus for processing a document that may have a structure, comprising: a management target partial data designating unit that designates one partial data to be registered as a management target in the document data; and management information for the designated partial data. Management information setting registration means for setting and registering the document data in association with the document data; andthe storage means, in the document data to be stored in the document data storage means,
A first password input unit for inputting a password for the first partial data with the partial data designated by the management target partial data designating unit as a first partial data; When the nested second partial data exists in the data, the second partial data is not at the same management level as the first partial data according to the management information registered by the management information setting / registering means. In
Data other than the second partial data is extracted as data corresponding to the first partial data, and if it is determined that the data is at the same management level, the first partial data including the second partial data is extracted from the second partial data. First extracting means for extracting data corresponding to the first partial data, data corresponding to the first partial data extracted by the first extracting means, and a password input by the first password inputting means A first code generating means for generating code data in accordance with a predetermined conversion algorithm for the combination of the first and second partial data; and a code generated for the first partial data in a delimiter separating the first partial data. An embedding unit for embedding data; and a storage unit for storing document data in which code data is embedded in the document data storage unit. Read document data designating means for designating document data to be read from the document data storage means, and validity confirmation for designating partial data to be validated in the document data designated by the read document data designating means Partial data designating means; second partial password inputting means for setting the designated partial data as first partial data and inputting a password corresponding to the first partial data; When the nested second partial data is present, if the second partial data is not at the same management level as the first partial data according to the management information registered by the management information setting registration means, ,
Data other than the second partial data is extracted as data corresponding to the first partial data, and if it is determined that the data is at the same management level, the first partial data including the second partial data is extracted from the second partial data. Second extracting means for extracting data corresponding to the first partial data, data corresponding to the first partial data extracted by the second extracting means, and a password input by the second password inputting means A second code generation means for generating code data according to a predetermined conversion algorithm for the combination of: and code data generated by the second code generation means;
Comparing means for comparing code data embedded in a delimiter symbol corresponding to the partial data designated by the validity confirmation partial data designating means; and A document output device that outputs information as to whether or not the partial data extracted by the second extraction unit has been changed.
【請求項2】 前記第1及び第2のパスワード入力手段
により入力されるパスワードは、ユーザに固有の情報で
あることを特徴とする請求項第1項に記載の文書処理装
置。
2. The document processing apparatus according to claim 1, wherein the password input by the first and second password input means is information unique to a user.
【請求項3】 前記管理情報設定登録手段は各部分デー
タに対し、当該各部分データの管理もしくは作成するユ
ーザ情報を設定し、注目している第1の部分データと当
該第1の部分データに入れ子になっている第2の部分デ
ータのユーザ情報が一致する場合には、前記第1、第2
の抽出手段は第1の部分データのデータとして第2の部
分データを含めたデータを抽出し、一致しない場合には
第2の部分データを含まないデータを第1の部分データ
として抽出することを特徴とする請求項第1項に記載の
文書処理装置。
3. The management information setting / registering means sets, for each partial data, user information for managing or creating each partial data, and stores the first partial data of interest and the first partial data in If the user information of the nested second partial data matches, the first and second
The extracting means extracts the data including the second partial data as the data of the first partial data, and extracts the data not including the second partial data as the first partial data if they do not match. The document processing apparatus according to claim 1, wherein
【請求項4】 前記入れ子になっている第2の部分デー
タに対するユーザ情報が存在しない場合、当該第2の部
分データは第1の部分データと同じ管理レベルとし、前
記第2の部分データと第1の部分データとが異なるユー
ザ情報が設定されている場合には、第1の部分データと
第2の部分データとは同じ管理レベルではないとして処
理することを特徴とする請求項第3項に記載の文書処理
装置。
4. When there is no user information for the nested second partial data, the second partial data has the same management level as the first partial data, and the second partial data and the second 4. The method according to claim 3, wherein when different user information is set for the first partial data, the first partial data and the second partial data are processed as not having the same management level. Document processing device as described.
【請求項5】 区切り記号で区切られた複数の部分デー
タが入れ子式の構造になり得る文書を処理する文書処理
装置における、文書データを前記文書処理装置内の所定
の文書データ記憶手段に保存する保存工程及び文書デー
タを前記文書データ記憶手段より読み出す読み出し工程
とを備えた文書処理方法であって、 文書データ中の管理対象として登録する1つの部分デー
タを指定する管理対象部分データ指定工程と、 指定された部分データに対して管理情報を設定し、文書
データと関連付けて登録する管理情報設定登録工程と、 前記保存工程は、 前記文書データ記憶手段に格納すべき文書データ中の、
前記管理対象部分データ指定工程で指定された部分デー
タを第1の部分データとし、当該第1の部分データに対
してパスワードを入力する第1のパスワード入力工程
と、 注目している第1の部分データに入れ子式の第2の部分
データが存在するとき、前記管理情報設定登録工程で登
録された管理情報に従い、前記第2の部分データが前記
第1の部分データと同じ管理レベルにはない場合には、
前記第2の部分データを除くデータを第1の部分データ
に対応するデータとして抽出し、同じ管理レベルにある
と判断した場合には前記第2の部分データを含む第1の
部分データを当該第1の部分データに対応するデータと
して抽出する第1の抽出工程と、 該第1の抽出工程で抽出された第1の部分データに対応
するデータと前記第1のパスワード入力工程で入力され
たパスワードとの組み合わせに対し、所定の変換アルゴ
リズムに従って符号データを生成する第1の符号生成工
程と、 前記第1の部分データを区切る区切り記号中に、生成さ
れた符号データを埋め込む埋め込み工程と、 符号データが埋め込まれた文書データを前記文書データ
記憶手段に格納する格納工程とを備え、 前記読み出し工程は、 前記文書データ記憶手段から読み出そうとする文書デー
タを指定する読出し文書データ指定工程と、 該読出し文書データ指定工程で指定される文書データ中
の正当性確認対象とする部分データを指定する正当性確
認部分データ指定工程と、 指定された部分データを第1の部分データとし、当該第
1の部分データに対応するパスワードを入力する第2の
パスワード入力工程と、 注目している第1の部分データに入れ子式の第2の部分
データが存在するとき、前記管理情報設定登録工程で登
録された管理情報に従い、前記第2の部分データが前記
第1の部分データと同じ管理レベルにはない場合には、
前記第2の部分データを除くデータを第1の部分データ
に対応するデータとして抽出し、同じ管理レベルにある
と判断した場合には前記第2の部分データを含む第1の
部分データを当該第1の部分データに対応するデータと
して抽出する第2の抽出工程と、 該第2の抽出工程で抽出された第1の部分データに対応
するデータと前記第2のパスワード入力工程で入力され
たパスワードとの組み合わせに対し、所定の変換アルゴ
リズムに従って符号データを生成する第2の符号生成工
程と、 該第2の符号生成工程により生成された符号データと、
前記正当性確認部分データ指定工程で指定された部分デ
ータに対応する区切り記号の中に埋め込まれている符号
データとを比較する比較工程と、 前記比較工程の部分データに対する比較結果に基づいて
前記第2の抽出手段で抽出された部分データについて変
更がなされたか否かの情報を出力する出力工程とを備え
ることを特徴とする文書処理方法。
5. A document processing apparatus for processing a document in which a plurality of partial data delimited by a delimiter can have a nested structure, stores the document data in a predetermined document data storage means in the document processing apparatus. A document processing method comprising: a storage step; and a reading step of reading document data from the document data storage means, wherein a management target partial data specifying step of specifying one piece of partial data to be registered as a management target in the document data; A management information setting registration step of setting management information for the designated partial data and registering the information in association with the document data; andthe storing step includes:
A first password inputting step in which the partial data specified in the management target partial data specifying step is set as first partial data, and a password is input to the first partial data; When the nested second partial data exists in the data, the second partial data is not at the same management level as the first partial data according to the management information registered in the management information setting registration step. In
Data other than the second partial data is extracted as data corresponding to the first partial data, and if it is determined that the data is at the same management level, the first partial data including the second partial data is extracted from the second partial data. A first extraction step of extracting data corresponding to the first partial data; data corresponding to the first partial data extracted in the first extraction step; and a password input in the first password input step A first code generation step of generating code data in accordance with a predetermined conversion algorithm for the combination of the first and second partial data; an embedding step of embedding the generated code data in a delimiter separating the first partial data; Storing the document data in which the embedded document data is stored in the document data storage unit. The reading step includes reading the document data from the document data storage unit. A read document data designating step for designating document data to be specified; a validity confirmation partial data designating step for designating partial data to be validated in the document data designated in the read document data designating step; A second password input step of inputting a password corresponding to the first partial data using the obtained partial data as a first partial data, and a nested second part in the first partial data of interest. When the data exists, according to the management information registered in the management information setting registration step, if the second partial data is not at the same management level as the first partial data,
Data other than the second partial data is extracted as data corresponding to the first partial data, and if it is determined that the data is at the same management level, the first partial data including the second partial data is extracted from the second partial data. A second extraction step of extracting data corresponding to the first partial data, data corresponding to the first partial data extracted in the second extraction step, and a password input in the second password input step A second code generation step of generating code data according to a predetermined conversion algorithm for the combination of the above, and code data generated by the second code generation step;
A comparing step of comparing code data embedded in a delimiter symbol corresponding to the partial data specified in the validity confirmation partial data specifying step; and An output step of outputting information as to whether or not the partial data extracted by the second extracting means has been changed.
【請求項6】 前記第1及び第2のパスワード入力工程
で入力させるパスワードは、ユーザに固有の情報である
ことを特徴とする請求項第5項に記載の文書処理方法。
6. The document processing method according to claim 5, wherein the password input in the first and second password input steps is information unique to a user.
【請求項7】 前記管理情報設定登録工程は各部分デー
タに対し、当該各部分データの管理もしくは作成するユ
ーザ情報を設定し、注目している第1の部分データと当
該第1の部分データに入れ子になっている第2の部分デ
ータのユーザ情報が一致する場合には、前記第1、第2
の抽出工程は第1の部分データのデータとして第2の部
分データを含めたデータを抽出し、一致しない場合には
第2の部分データを含まないデータを第1の部分データ
として抽出することを特徴とする請求項第5項に記載の
文書処理方法。
7. The management information setting / registering step sets, for each partial data, user information for managing or creating each of the partial data, and assigns the first partial data of interest and the first partial data to each other. If the user information of the nested second partial data matches, the first and second
Extracting the data including the second partial data as the data of the first partial data, and extracting the data not including the second partial data as the first partial data if they do not match. 6. The document processing method according to claim 5, wherein:
【請求項8】 前記入れ子になっている第2の部分デー
タに対するユーザ情報が存在しない場合、当該第2の部
分データは第1の部分データと同じ管理レベルとし、前
記第2の部分データと第1の部分データとが異なるユー
ザ情報が設定されている場合には、第1の部分データと
第2の部分データとは同じ管理レベルではないとして処
理することを特徴とする請求項第7項に記載の文書処理
方法。
8. When there is no user information for the nested second partial data, the second partial data has the same management level as the first partial data, and the second partial data and the second partial data have the same management level. 8. The method according to claim 7, wherein when user information different from the first partial data is set, the first partial data and the second partial data are processed as not having the same management level. Document processing method described.
JP3051275A 1991-03-15 1991-03-15 Document processing apparatus and method Expired - Fee Related JP2958141B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP3051275A JP2958141B2 (en) 1991-03-15 1991-03-15 Document processing apparatus and method
US07/851,206 US5440731A (en) 1991-03-15 1992-03-13 Method of detecting unjustifiable reloading of stored data
EP92302248A EP0509639B1 (en) 1991-03-15 1992-03-16 Detecting unjustifiable reloading of stored data
DE69226467T DE69226467T2 (en) 1991-03-15 1992-03-16 Discovery of unjustified writing of stored data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3051275A JP2958141B2 (en) 1991-03-15 1991-03-15 Document processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH04286061A JPH04286061A (en) 1992-10-12
JP2958141B2 true JP2958141B2 (en) 1999-10-06

Family

ID=12882397

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3051275A Expired - Fee Related JP2958141B2 (en) 1991-03-15 1991-03-15 Document processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2958141B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783737B (en) * 2020-07-29 2024-02-02 郑州航空工业管理学院 Mathematical formula identification method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
社団法人情報処理学会,第42回(平成3年後期)全国大会講演論文集(3)(平成3年3月12日〜14日),p.308〜309

Also Published As

Publication number Publication date
JPH04286061A (en) 1992-10-12

Similar Documents

Publication Publication Date Title
CN101322126B (en) Document processing system and method thereof
US7490109B1 (en) System and method for offline editing of data files
JP4921065B2 (en) Information processing apparatus and method, computer program, and computer-readable storage medium
US6751632B1 (en) Method of creating authenticated verifiable reproductions of electronic documents
CN101599011A (en) DPS (Document Processing System) and method
JP4093723B2 (en) Electronic signature method and apparatus for structured document
JP2010033227A (en) Document management device, document management program, and document management system
JP3868171B2 (en) Document digital signature management method and document management apparatus
JP4541473B2 (en) Data processing method and apparatus, and storage medium
JP2958141B2 (en) Document processing apparatus and method
WO2002027486A1 (en) Methods and apparatus for generating unique identifiers for software components
CN110008663B (en) Method for quickly embedding and extracting information for PDF document protection and distribution tracking
JP3126397B2 (en) Document processing apparatus and method
JP3124566B2 (en) Document processing apparatus and method
JP2875640B2 (en) Document processing apparatus and method
JP2871877B2 (en) Document processing apparatus and method
JP3124567B2 (en) Document processing apparatus and method
CN102043821A (en) Document displaying method
JP2834591B2 (en) Document processing apparatus and method
JP2008158753A (en) Information processor, information processing method, information processing program
JPH04286060A (en) Device and method for processing document
CN101982818A (en) Processing method of document
JPH04271466A (en) System for processing document
KR100773854B1 (en) Information processing apparatus, information processing method, and computer readable storage medium
JPH04271464A (en) System for deciding document

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990621

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

Free format text: PAYMENT UNTIL: 20070723

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20080723

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080723

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090723

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090723

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100723

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees