JP3772142B2 - Structured document update management device, structured document update management method, computer-readable recording medium storing program, and program - Google Patents

Structured document update management device, structured document update management method, computer-readable recording medium storing program, and program Download PDF

Info

Publication number
JP3772142B2
JP3772142B2 JP2002304168A JP2002304168A JP3772142B2 JP 3772142 B2 JP3772142 B2 JP 3772142B2 JP 2002304168 A JP2002304168 A JP 2002304168A JP 2002304168 A JP2002304168 A JP 2002304168A JP 3772142 B2 JP3772142 B2 JP 3772142B2
Authority
JP
Japan
Prior art keywords
document
update instruction
tag
update
structured document
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
JP2002304168A
Other languages
Japanese (ja)
Other versions
JP2004139395A (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.)
Mitsubishi Electric Information Systems Corp
Original Assignee
Mitsubishi Electric Information Systems Corp
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 Mitsubishi Electric Information Systems Corp filed Critical Mitsubishi Electric Information Systems Corp
Priority to JP2002304168A priority Critical patent/JP3772142B2/en
Publication of JP2004139395A publication Critical patent/JP2004139395A/en
Priority to US11/141,392 priority patent/US20050217112A1/en
Application granted granted Critical
Publication of JP3772142B2 publication Critical patent/JP3772142B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Description

【0001】
【発明の属する技術分野】
文書の編集等を支援するアノテーションシステムに係り、同一構造を有する文書への編集内容の反映を可能とするとともに、複数段階の更新指示を、管理し、表示等の処理において各段階の更新指示を区別する技術に関する。
【0002】
【従来の技術】
従来の文書編集装置は、編集部分を特定する方法として、文字数や行数などを用いている。この方式は、編集の前提とした文書と、編集を反映させる文書が完全に一致することを前提としている。
【0003】
従って、編集の前提とした文書と、編集を反映させる文書が一致しない場合には、例え同様の文書構造(章立てや項立て)を有する場合であっても、編集結果を反映できない。例えば、最新でない文書を編集の前提として編集を開始してしまった場合には、その編集結果を最新の文書に反映させることができない。
【0004】
また、構造化文書に改訂を重ね、複数の版が生成する場合には、更新部分が重複する態様も含めて、前提となる版の更新指示と、最新の版の更新指示を、区別して処理することができないと不便である。特に、表示において両者を区別できないと、閲覧者が重なる改訂の意義を理解することを妨げることになる。
【0005】
【特許文献1】
特開平9−167158号公報
【特許文献2】
特開2001−51932号公報
【特許文献3】
特開2001−195438号公報
【0006】
【発明が解決しようとする課題】
本発明は、上記した従来技術の欠点を除くためになされたものであって、その目的とするところは、同一の文書構造を持つ文書であれば、完全に一致しない文書に対しても編集結果を反映できるようにするとともに、複数段階の更新指示を、管理し、表示等の処理において各段階の更新指示を区別できる構造化文書更新管理装置を提供することを課題とする。
【0007】
【課題を解決するための手段】
本発明に係る構造化文書更新管理装置は、
複数段階の更新指示を含む構造化文書を表示用文書に変換し、表示用文書を出力する構造化文書更新管理装置であって、以下の要素を有することを特徴とする
(1)文書の構造を特定する文書構造タグを用いて記述された元構造化文書と、
元構造化文書に対する更新指示であって、文書構造タグと、元構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第一の更新指示と、
前記第一の更新指示を元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入した構造化文書に対する更新指示であって、文書構造タグと、第一の更新指示を挿入した構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第二の更新指示とを対応付けて記憶する為の文書データベース(2)文書データベースから、元構造化文書と、元構造化文書に対応する第一の更新指示と第二の更新指示を取得し、取得した第一の更新指示を、取得した元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入し、
更に、取得した第二の更新指示を、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書を生成する編集文書生成部
(3)編集文書中の第一の更新指示タグを第一の表示装飾タグに変換し、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換することによって、表示用文書を生成する表示用文書生成部
(4)生成した表示用文書を出力する文書出力部。
【0008】
表示用文書生成部は、編集文書中の第一の更新指示タグのうち、第一の更新指示タグの開始タグと終了タグにより挟まれた第一の更新指示領域が、第二の更新指示タグの開始タグと終了タグにより挟まれた第二の更新指示領域と少なくとも一部が重複する第一の更新指示タグのみを第一の表示装飾タグに変換することを特徴とする。
【0009】
表示用文書生成部は、第一の表示装飾タグに変換しない第一の更新指示について、当該更新指示が無かった状態を表示させるための非反映処理を行うことを特徴とする。
【0010】
第一の更新指示と第二の更新指示は、それぞれ少なくとも削除と挿入を含む編集種別を含み、編集種別が削除である第一の更新指示タグから変換される第一の削除表示用装飾タグと、編集種別が挿入である第一の更新指示タグから変換される第一の挿入表示用装飾タグと、編集種別が削除である第二の更新指示タグから変換される第二の削除表示用装飾タグと、編集種別が挿入である第二の更新指示タグから変換される第二の挿入表示用装飾タグとは、それぞれ表示上区別可能な異なる装飾のタグであることを特徴とする。
【0011】
文書出力部は、構造化文書を表示するためのブラウザを備えた装置へ送信することを特徴とする。
【0012】
本発明に係る構造化文書更新管理方法は、
文書の構造を特定する文書構造タグを用いて記述された元構造化文書と、元構造化文書に対する更新指示であって、文書構造タグと、元構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第一の更新指示と、前記第一の更新指示を元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入した構造化文書に対する更新指示であって、文書構造タグと、第一の更新指示を挿入した構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第二の更新指示とを対応付けて記憶する為の文書データベースにアクセス可能な構造化文書更新管理装置による構造化文書更新管理方法であって、以下の要素を有することを特徴とする。
(1)構造化文書更新管理装置が備える編集文書生成部が、文書データベースから、元構造化文書と、元構造化文書に対応する第一の更新指示と第二の更新指示を取得し、取得した第一の更新指示を、取得した元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入し、
更に、取得した第二の更新指示を、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書を生成する工程
(2)構造化文書更新管理装置が備える表示用文書生成部が、編集文書中の第一の更新指示タグを第一の表示装飾タグに変換し、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換することによって、表示用文書を生成する工程
(3)構造化文書更新管理装置が備える文書出力部が、生成した表示用文書を出力する工程。
【0013】
本発明に係るプログラムを記録したコンピュータ読み取り可能な記録媒体は、
文書の構造を特定する文書構造タグを用いて記述された元構造化文書と、元構造化文書に対する更新指示であって、文書構造タグと、元構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第一の更新指示と、前記第一の更新指示を元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入した構造化文書に対する更新指示であって、文書構造タグと、第一の更新指示を挿入した構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第二の更新指示とを対応付けて記憶する為の文書データベースにアクセス可能な構造化文書更新管理装置となるコンピュータに、以下の処理を実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体であることを特徴とする
(1)構造化文書更新管理装置が備える編集文書生成部が、文書データベースから、元構造化文書と、元構造化文書に対応する第一の更新指示と第二の更新指示を取得し、取得した第一の更新指示を、取得した元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入し、
更に、取得した第二の更新指示を、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書を生成する処理
(2)構造化文書更新管理装置が備える表示用文書生成部が、編集文書中の第一の更新指示タグを第一の表示装飾タグに変換し、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換することによって、表示用文書を生成する処理
(3)構造化文書更新管理装置が備える文書出力部が、生成した表示用文書を出力する処理。
【0014】
本発明に係るプログラムは、
文書の構造を特定する文書構造タグを用いて記述された元構造化文書と、元構造化文書に対する更新指示であって、文書構造タグと、元構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第一の更新指示と、前記第一の更新指示を元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入した構造化文書に対する更新指示であって、文書構造タグと、第一の更新指示を挿入した構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第二の更新指示とを対応付けて記憶する為の文書データベースにアクセス可能な構造化文書更新管理装置となるコンピュータに、以下の手順を実行させるためのプログラムであることを特徴とする
(1)構造化文書更新管理装置が備える編集文書生成部が、文書データベースから、元構造化文書と、元構造化文書に対応する第一の更新指示と第二の更新指示を取得し、取得した第一の更新指示を、取得した元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入し、
更に、取得した第二の更新指示を、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書を生成する手順
(2)構造化文書更新管理装置が備える表示用文書生成部が、編集文書中の第一の更新指示タグを第一の表示装飾タグに変換し、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換することによって、表示用文書を生成する手順
(3)構造化文書更新管理装置が備える文書出力部が、生成した表示用文書を出力する手順。
【0015】
【発明の実施の形態】
実施の形態1.
以下本発明を図面に示す実施例に基づいて説明する。図1は、アノテーションシステムのネットワーク環境を示す図である。文書の編集者が利用する端末1は、ネットワーク3を介してアノテーションシステム1にアクセス可能なように構成されている。ネットワーク3は、例えばインターネットやイントラネットである。端末2は、ブラウザを備えている。
【0016】
図2は、アノテーションシステムの構成例を示す図である。
201は、文書データベース、202は、編集文書選択部、203は、編集文書生成部、204は、更新中文書記憶部、205は、表示用文書生成部、206は、文書送信部、207は、更新指示生成プログラム配信部(更新指示生成プログラム出力部の例)、208は、更新指示生成プログラム記憶部、209は、更新指示受信部、210は、更新指示記憶部、211は、更新指示実行部、212は、更新確定処理部である。
【0017】
図3は、文書データベース内の管理テーブルの構成例を示す図である。
文書単位にレコードが設けられ、文書ID、文書名、XMLファイル名、DTDファイル名、スタイルシートファイル名、更新指示回数、各回の更新指示ファイル名の項目を有している。尚、文書データベース201をアノテーションシステム1の外部に設け、ネットワーク等を介して、アノテーションシステム1から文書データベース201へアクセスするようにしても構わない。
【0018】
図4は、文書編集処理の全体処理フローを示す図である。
編集文書選択部202は、編集文書選択処理(S401)を行う。編集者の端末2から編集文書選択画面の要求を受けると、文書データベース201から文書一覧を取得し、編集文書選択画面として端末2に送信する。
図5は、編集文書選択画面の表示例を示す図である。
【0019】
編集者は、編集文書選択画面から編集する文書(編集文書)を選択し、選択内容をアノテーションシステム1に送信する。編集文書選択部202は、受信した選択内容に従って編集文書IDを特定する。
【0020】
編集文書生成部203は、編集文書生成処理(S402)により、文書データベース201から編集文書IDに対応する編集文書を取得する。編集文書は、(XML(eXtensible Markup Language)文書ファイル、DTD(Document Type Definition)ファイル、スタイルシート)を含んでいる。XML文書は、文書の構造を特定する文書構造タグを用いて記述された構造化文書の例である。
既に更新された文書の場合には、更に、更新指示ファイルを含み、更新指示ファイル中の更新指示を、XML文書中の編集位置に、更新指示タグを用いて挿入する。これにより、編集の対象となる編集文書を生成し、生成した編集文書を初期状態の更新中文書として、更新中文書記憶部204に記憶させる。
図6は、編集文書となるXML文書の例を示す図である。この文書は、更新されていない例を示している。
【0021】
表示用文書生成部205は、表示用文書生成処理(S403)を行う。これにより、更新中文書記憶部204に格納されている更新中文書(初期状態において、前述の編集文書と同一である。)を取得し、更新中文書を表示形式に従って変換し、表示用文書を生成する。
表示形式に従って行われる更新中文書の変換による表示用文書の生成処理に関しては、更新指示表示方式、全更新指示反映方式、複数更新指示表示方式、最新更新指示及び関連更新指示表示方式の4方式について後述する。
【0022】
文書送信部206は、文書送信処理(S404)を行う。これにより、生成された表示用文書を表示する文書表示画面(ブラウザにより展開された文書のイメージを表示するエリアとスクロールバー等を備えたフレームのデータ)を生成し、表示用文書と文書表示画面を端末2に送信する。
図7は、初期状態の更新中文書による文書表示画面の表示例を示す図である。ブラウザにより、図に示すように表示用文書が展開され、展開した文書のイメージが文書表示画面のフレーム内の表示エリアに表示される。図では、スクロールバー等を省略し、表示エリアで閲覧可能な文書のイメージのみを示している。この例では、図6に示したXML文書が、変換されずにそのまま表示用文書として用いられている。
【0023】
この状態で、アノテーションシステム1は、指示受信待ち(S405)となる。一方、端末2に表示されている文書表示画面からは、更新指示、更新確定指示、あるいは終了指示を送信できるように構成されている。
【0024】
端末2上で編集者が編集文書への更新を指示する動作は、更新指示生成プログラムにより実行される。この例で、更新指示生成プログラムは、端末2からの要求に応じて、アノテーションシステム1から提供される。具体的には、JAVA(登録商標)アプレットとして提供される。端末2がJAVAアプレットを要求するタイミングは、初期化時でも、更新を指示するタイミングであっても構わない。
【0025】
編集者が文書表示画面上で更新箇所をクリックすると、更新指示生成プログラムは、更新の種類(削除あるいは挿入)を選択するウインドゥを表示する。削除を選択した場合は、削除する範囲(削除文字列)を指定させるように動作する。例えば、削除する範囲の最初の文字と最後の文字を指示させる。また、挿入の場合には、挿入位置を指示させ、挿入文字列を入力させるように動作する。編集者が更新の指示の決定を指示すると、更新指示生成プログラムは、更新指示を生成し、アノテーションシステム1に送信する。削除の場合には、削除文字列を含む文書上の構造単位(例えば、章や項)を文書構造タグにより特定し、削除文字列の前の文字列を抜き出し、更に削除文字列の後の文字列を抜き出し、更新指示を作成する。挿入の場合には、挿入位置を含む文書上の構造単位(例えば、章や項)を文書構造タグにより特定し、挿入位置の前の文字列を抜き出し、更に挿入位置の後の文字列を抜き出し、入力された挿入文字列と併せて更新指示を作成する。
【0026】
アノテーションシステム1側で受信した指示が、更新指示の場合には、更新指示受信部209が更新指示受信処理(S406)を行う。この例で、更新指示受信部209は、JAVAサーブレットにより構成されている。更新指示受信部209は、受信した更新指示を更新指示記憶部210に格納する。更新指示記憶部210は、更新確定指示を受信し(S408)、更新確定処理(S409)を行うまで、あるいは、終了指示を受信し(S410)、終了するまで、順次受信した更新指示を同じ回(段階)の更新指示として、すべての更新指示を一群として蓄積するように構成されている。
【0027】
ここで、更新指示について説明する。更新指示は、編集位置、編集種別、及び編集種別に応じた文字列から構成されている。図7に示した初期状態の更新中文書の表示例に対する更新指示を例として説明する。説明の便宜の為、後述する更新指示表示方式による文書表示画面の表示例を示す。図8は、1回目の更新指示入力後の文書表示画面の表示例(更新指示表示方式)を示す図である。この例で、取消線が施された文字列が、更新指示により削除を指示された文字列であり、下線が施された文字列が、更新指示により挿入を指示された文字列である。
【0028】
図9は、1.1の項に対する1回目の更新指示の例を示す図である。編集位置は、XMLファイルに含まれるタグ(文書の構造を特定する文書構造タグ)と、前文字列と、後文字列により指定されている。そして、編集種別として削除が指定されている。前文字列と後文字列は、位置指定文字列の例である。前文字列の最終文字の次の文字から、後文字列の最初の文字の前の文字までの文字列を削除することを意味している。この例は、図7の文字列701の前文字列「この規格は、××の」と、後文字列「ことがらについて規定する。」の間の「一般的な」の文字列を削除する指示を示している。
前文字列と後文字列の文字数は、編集位置を特定できる程度で足り、特に限定しない。例えば、15文字や、30文字のように、所定の文字数とする方法や、最低文字数と文や句の区切りを組みせて、文字数を決定する方法などが考えられる。
【0029】
図10は、1.2の項に対する1回目の更新指示の例を示す図である。編集位置は、前述と同様に、XMLファイルに含まれるタグ(文書の構造を特定する文書構造タグ)と、前文字列と、後文字列により指定されている。そして、編集種別として挿入が指定され、挿入文字列が指定されている。前文字列と後文字列は、前述と同様に、位置指定文字列の例である。前文字列の最終文字と、後文字列の最初の文字の間に、挿入文字列を挿入することを意味している。この例は、図7の文字列702の前文字列「この規格は、」と、後文字列「基準に基づいて作成されている。」の間に、「規格作成」の文字列を挿入する指示を示している。
【0030】
図11から図16は、前述と同様に構成された1回目の更新指示の例である。図11は、1.3の項に対する1回目の更新指示の例を示す図である。図12は、1.4の項に対する1回目の更新指示の例を示す図である。図13は、1.5の項に対する1回目の更新指示の例を示す図である。図14は、1.6の項に対する1回目の更新指示の例を示す図である。図15は、1.7の項に対する1回目の更新指示(削除)の例を示す図である。図16は、1.7の項に対する1回目の更新指示(挿入)の例を示す図である。
【0031】
図4に示すように、更新指示受信処理が終了すると、更新指示実行部211は、更新指示実行処理(S407)を行う。更新指示実行部211は、更新指示記憶部210から更新指示を取得する。更新指示に含まれる編集位置と、編集種別と、編集種別が挿入の場合の挿入文字列に応じて、更新中文書記憶部204の内容を更新する。このとき、更新指示実行部211は、編集位置を指定する文書構造タグと、更新中文書記憶部に格納されている更新中文書に含まれる文書構造タグとを比較することにより、編集する項(文書上の構造単位の例)を特定する。この例では、編集位置を指定する文書構造タグを、更新中文書の先頭から順に下方へサーチすることにより、編集する項を特定することができる。
【0032】
図9のように編集種別が削除の場合には、更新指示実行部211は、更に、特定した項の更新前の文と、前文字列及び後文字列を比較することにより、削除部分を特定することができる。そして、更新指示実行部211はその前後に削除開始タグ<deleteX>と削除終了タグ</deleteX>を挿入する。尚、Xは、更新段階(回)を示す数字に置き換えられる。更新段階は、文書データベース201から取得した更新指示回数に1を加えて得られる。更新段階は、更新指示の前後関係を特定する更新指示段階識別子の例である。
【0033】
図10のように編集種別が挿入の場合には、更に、特定した項の更新前の文と、前文字列及び後文字列を比較することにより、挿入箇所を特定することができる。そして、更新指示実行部30はその前後に挿入開始タグ<insertX>と挿入終了タグ</insertX>を挿入し、これらの間に、挿入文字列を加える。Xについては、前述と同様である。
削除タグ(削除開始タグ<deleteX>と削除終了タグ</deleteX>)及び挿入タグ(挿入開始タグ<insertX>と挿入終了タグ</insertX>)は、更新指示タグの例である。
【0034】
図11から図16の1回目の更新指示を、更新指示実行処理(S407)した場合の更新中文書の例を示す。図17は、1回目の更新指示タグを挿入したXML文書の例を示す図である。
【0035】
このようにして、更新中文書が更新され、更新された更新中文書は、表示用文書生成部205の表示用文書生成処理(S403)により、表示用文書へ加工される。この処理は、表示方式により、更新箇所を、更新指示タグに含まれる更新種別(deleteあるいはInsert)と更新段階(この例では、その後の数字)に応じた形の表示用文書を生成する。
【0036】
以下、表示方式毎の表示用文書生成処理(S403)について説明する。まず、更新指示表示方式の場合の表示用文書生成処理について説明する。前述の図8は、この表示方式による表示例である。
この方式は、最新の前までの更新指示を文書に反映した上で、最新の更新指示を文書上に表示する。ここでいう反映とは、削除部分の文字列を削除し、挿入部分の文字列を挿入することであり、また表示とは、削除部分の文字列に削除を示す表示用装飾(この例では、取消線)を施し、挿入部分の文字列に挿入を示す表示用装飾(この例では、下線)を施し、更新指示内容の記録を表すことである。
【0037】
図18は、更新指示表示方式による表示用文書生成処理フローを示す図である。表示用文書生成部205は、文書データベース201から更新指示回数Nを取得する(S1801)。更新指示回数N=0の場合には(S1802)、更新指示を表示する処理(S1807)に移行する。
更新指示回数N≧1の場合には(S1803)、1回目からN回目までの更新指示を順次反映する更新指示反映処理(S1804)を行う。更新指示反映処理(S1804)については、図19を用いて後述する。
尚、表示用文書生成部205は、内部に2以上の文書格納バッファを有し、一回の反映処理又は表示処理で、一方を元文書格納バッファ、他方を先文書格納バッファとして用い、次の反映処理又は表示処理においては、逆に、先文書格納バッファであった他方のバッファを元文書格納バッファとし、一方を先文書格納バッファとして用いることにより、処理を繰り返す。つまり、文書格納バッファ間でデータを移行する間に、加工を施す。データの移行は、後述するように文字あるいはタグの単位で、文書の先頭から最後まで順に繰り替えされる。この文書格納バッファの用い方は、表示用文書生成部205の他の反映処理や表示処理等においても同様である。
Nまでの更新指示すべてについて処理した時点で(S1805)、更新指示N+1回目について(S1806)、更新指示表示処理(S1807)を行う。更新指示表示処理(S1807)については、図22を用いて後述する。
【0038】
図19は、更新指示反映処理フローを示す図である。
元文書格納バッファから、順次、文字あるいはタグの単位を読み込み(S1901)、以下の処理を繰り返す。文字を読み込んだ場合には(S1902)、読み込んだ文字を先文書格納バッファへコピーする(S1903)。タグを読み込んだ場合には、読み込んだタグが、削除開始タグ<deleteX>か判断する(S1904)。この場合、タグ中のdeleteの後のX(更新指示段階識別子)を、図18のS1803で特定した更新指示回(更新指示段階)Xの値に変換して処理を行う。例えば、1回目の更新指示の場合には、削除開始タグを<delete1>として判定する。後述するinsert後のX(更新指示段階識別子)についても同様である。各終了タグについても同様であり、他の反映処理や表示処理等においても同様である。
読み込んだタグが、削除開始タグ<deleteX>の場合には、削除モード反映処理(S1905)を行う。この処理については、図20を用いて後述する。
読み込んだタグが、挿入開始タグ<insertX>か判断し(S1906)、挿入開始タグ<insertX>の場合には、挿入モード反映処理(S1907)を行う。この処理については、図21を用いて後述する。
読み込んだタグが、他のタグの場合には、読み込んだタグを先文書格納バッファへコピーする(S1908)。
すべての文字あるいはタグの単位を読み込んだ時点で終了する(S1909)。
【0039】
図20は、削除モード反映処理フローを示す図である。
読み込んだ削除開始タグ<deleteX>を先文書格納バッファへコピーし(S2001)、元文書格納バッファから次の文字あるいはタグの単位を読み込む(S2002)。文字を読み込んだ場合には(S2003)、読み込んだ文字をコピーせずに(S2004)、次の読み込み(S2002)に移行する。
削除終了タグ</deleteX>を読み込んだ場合には(S2005)、削除終了タグ</deleteX>を先文書格納バッファへコピーし(S2006)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S2007)、次の読み込み(S2002)に移行する。
【0040】
図21は、挿入モード反映処理フローを示す図である。
読み込んだ挿入開始タグ<insertX>を先文書格納バッファへコピーし(S2101)、元文書格納バッファから次の文字あるいはタグの単位を読み込む(S2102)。文字を読み込んだ場合には(S2103)、読み込んだ文字を先文書格納バッファへコピーして(S2104)、次の読み込み(S2102)に移行する。
挿入終了タグ</insertX>を読み込んだ場合には(S2105)、挿入終了タグ</insertX>を先文書格納バッファへコピーし(S2106)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S2107)、次の読み込み(S2102)に移行する。
【0041】
次に、図18の更新指示表示処理(S1808)について詳述する。図22は、更新指示表示処理フローを示す図である。
元文書格納バッファから、順次文字あるいはタグの単位を読み込み(S2201)、以下の処理を繰り返す。文字を読み込んだ場合には(S2202)、読み込んだ文字を先文書格納バッファへコピーする(S2203)。タグを読み込んだ場合には、読み込んだタグが、削除開始タグ<deleteX>か判断する(S2204)。削除開始タグ<deleteX>の場合には、削除モード表示処理(S2205)を行う。この処理については、図23を用いて後述する。
読み込んだタグが、挿入開始タグ<insertX>か判断し(S2206)、挿入開始タグ<insertX>の場合には、挿入モード表示処理(S2207)を行う。この処理については、図24を用いて後述する。
読み込んだタグが、他のタグの場合には、読み込んだタグを先文書格納バッファへコピーする(S2208)。
すべての文字あるいはタグの単位を読み込んだ時点で終了する(S2209)。
【0042】
図23は、削除モード表示処理フローを示す図である。
読み込んだ削除開始タグ<deleteX>を先文書格納バッファへコピーし、続けて取消線開始タグ<STRIKE>に挿入する(S2301)。そして、次の文字あるいはタグの単位を読み込む(S2302)。文字を読み込んだ場合には(S2303)、読み込んだ文字をコピーし(S2304)、次の読み込み(S2302)に移行する。
削除終了タグ</deleteX>を読み込んだ場合には(S2305)、取消線終了タグ</STRIKE>を先文書格納バッファへ挿入し、続けて削除終了タグ</deleteX>を先文書格納バッファへコピーする(S2306)。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S2307)、次の読み込み(S2302)に移行する。
【0043】
図24は、挿入モード表示処理フローを示す図である。
読み込んだ挿入開始タグ<insertX>を先文書格納バッファへコピーし、続けて、下線開始タグ<U>を挿入する(S2401)。そして、次の文字あるいはタグの単位を読み込む(S2402)。文字を読み込んだ場合には(S2403)、読み込んだ文字をコピーし(S2404)、次の読み込み(S2402)に移行する。
挿入終了タグ</insertX>を読み込んだ場合には(S2405)、下線終了タグ</U>を先文書格納バッファへ挿入し、続けて挿入終了タグ</insertX>を先文書格納バッファへコピーする(S2406)。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S2407)、次の読み込み(S2402)に移行する。
【0044】
図17の更新中文書を、この更新指示表示方式による表示用文書生成処理した結果である表示用文書を図に示す。図25は、更新指示表示方式による1回目の更新指示に係る表示用文書を示す図である。
図に示すように、削除開始タグ<deleteX>と削除終了タグ</deleteX>の内側に、取消線開始タグ<STRIKE>と取消線終了タグ</STRIKE>が挿入され、挿入開始タグ<insertX>と挿入終了タグ</insertX>の内側に、下線開始タグ<U>と下線終了タグ</U>が挿入されている。但し、これらの更新指示タグと、それに対応する表示装飾タグは、連続していればよく、前後が逆であっても構わない。
【0045】
ここで、表示用文書生成処理の表示方式の切り替えについて説明する。図26は、表示方式の変更に係る構成部分の例を示す図である。
213は、表示方式入力部である。表示方式入力部213は、編集者が指定する表示方式を端末2から受信する。表示用文書生成部205は、受信した表示方式に従って、表示用文書生成処理を行う。
【0046】
次に、全更新指示反映方式の場合の表示用文書生成処理について説明する。この方式は、入力した未確定の更新指示を含めてすべての更新指示を、反映する処理である。
【0047】
図27は、全更新指示反映方式による表示用文書生成処理フローを示す図である。表示用文書生成部205は、文書データベース201から更新指示回数Nを取得する(S2701)。
その後、1回目からN+1回目までの更新指示を順次反映する更新指示反映処理(S2703)を行う。更新指示反映処理は、前述の処理(図19等)と同様である。
Nまでの更新指示すべてについて処理した時点で(S2704)、終了する。
【0048】
図17の更新中文書を、この全更新指示反映方式による表示用文書生成処理した結果である表示用文書を図に示す。図28は、全更新指示反映方式による1回目の更新指示に係る表示用文書を示す図である。
図に示すように、削除開始タグ<deleteX>と削除終了タグ</deleteX>の間の文字列が削除されている。
この表示用文書を、文書表示画面により表示した例を示す。図29は、1回目の更新指示入力後の文書表示画面の表示例(全更新指示反映方式)を示す図である。この表示例は、更新指示がすべて反映された文書のイメージをあらわしている。
【0049】
次に、このようにして更新指示が入力された状態で、更新指示を確定し、文書データベース201に登録する処理について説明する。
図4に示す受信待ち(S405)の状態で、更新確定処理部212により、端末2から更新確定指示を受信した場合には(S408)、更新確定処理部212は、更新確定処理(S409)を行う。更新指示記憶部210に記憶している一連の更新指示群(例えば、図9から図16までの1回目の更新指示、あるいは図33から図40までの2回目の更新指示)をまとめて、更新指示ファイルとして文書データベース201に記憶させる。また、このとき、文書データベース201内管理テーブル上の新しい文書の更新指示回数は、元の文書の更新指示回数に1を加えた回数とする。また、文書データベース201内管理テーブル上の更新回数に応じた更新指示ファイル名の項目に、生成した更新指示ファイルのファイル名を記憶させる。
図30は、1回目の更新指示を登録した後の文書データベース内管理テーブルの構成例を示す図である。この例で、KOU.UPIのファイルには、図9から図16までの1回目の更新指示が格納されている。
図4に示すように終了指示を受信した場合に(S410)、処理を終了する。
【0050】
以下、1回目の更新指示による文書(この例では、××規格(甲案))を選択し、更に2回目の更新指示を入力する例について説明する。2回目の更新指示を行う編集者は、1回目の編集者と同一でも、別でも構わない。また、端末2についても、同一でも、別でも構わない。2回目に更新指示を入力する場合には、改めて図4の処理を行う。
【0051】
図31は、1回目の更新指示による文書を含む編集文書選択画面の表示例を示す図である。この画面は、図30の文書データベース201内管理テーブルに基づいて表示される。
この画面で、××規格(甲案)を選択し、図4の処理に従って、図18の更新指示表示方式により表示用文書(図28と同様)を生成し、端末2に図29のように表示する。
【0052】
この状態で、編集者は、端末2から2回目の更新指示を送信する。アノテーションシステム2は、新たな更新指示を受信すると、図18の更新指示表示方式により新たに表示用文書を生成し、端末2に送信する。そのときの表示例を示す。図32は、2回目の更新指示入力後の文書表示画面の表示例(更新指示表示方式)を示す図である。1回目の更新指示を反映した状態に対して、2回目の更新指示を表示している。
【0053】
図33から図41までは、各項に対する2回目の更新指示の例を示す図である。構成は、1回目の更新指示と同様である。但し、端末2側では、図28と同様の表示用文書を表示した状態で、更新指示を生成するので、1回目の更新指示タグを前文字列あるいは後文字列に含む場合がある。
【0054】
これらの2回目の更新指示について更新指示実行処理(S407)した後の更新中文書を図示する。図41は、2回目の更新指示タグを挿入したXML文書の例を示す図である。
【0055】
この更新中文書について、全更新指示反映方式を指示すると、図27の処理により表示用文書を生成し、図42のように表示する。図42は、2回目の更新指示入力後の文書表示画面の表示例(全更新指示反映方式)を示す図である。
【0056】
編集者が、端末2から更新確定指示を送信すると、2回目の更新指示を前述の処理に従って文書データベース201に登録する。図43は、2回目の更新指示を登録した後の文書データベース内管理テーブルの構成例を示す図である。この例で、OTSU.UPIには、図33から図40の2回目の更新指示が含まれている。
【0057】
実施の形態2.
以下、2回の更新指示を含む文書(この例では、××規格(乙案))の表示処理について説明する。図43の状態の編集文書選択により、図44に示す編集文書選択画面が表示される。図44は、2回目の更新指示による文書を含む編集文書選択画面の表示例を示す図である。
【0058】
編集者が、端末2から××規格(乙案)を選択すると、編集文書生成部203が、文書データベース201から、選択された編集文書IDに対応するXMLファイル、DTDファイル、スタイルシートファイル、更新回数分の更新指示ファイルを取得し、編集文書を生成する。1回目から順に、各更新指示ファイル中の更新指示を、XML文書中の編集位置に、更新指示タグを用いて挿入する。これにより、図41と同様の編集中文書が生成され、初期の更新中文書として記憶される。
【0059】
本実施の形態では、図41の状態の更新中文書に基づいて、複数更新指示表示方式により表示用文書を生成する形態について説明する。
図45は、1回目と2回目の更新指示を含むXML文書の文書表示画面の表示例(複数更新指示表示方式)を示す図である。この方式は、複数の更新指示を別の表示用装飾を用いて表示する方式である。この例では、1回目の更新指示に対する表示用装飾と、2回目の更新指示に対する表示用装飾が異なる。編集種別が削除である1回目の更新指示は、下付きで表示し、編集種別が挿入である1回目の更新指示は、上付きで表示している。また、編集種別が削除である2回目の更新指示は、取消線で表示し、編集種別が挿入である2回目の更新指示は、下線で表示している。この形態以外でも、それぞれ区別できる表示用装飾であれば構わない。例えば、更新段階(回)や更新種別(削除、挿入)を色分けしたり、フォントや文字の大きさを変えることも有効である。
【0060】
続いて、複数更新指示表示方式による表示用文書生成処理について説明する。図46は、複数更新指示表示方式による表示用文書生成処理フローを示す図である。本方式では、前提となる更新指示(前述の例における1回目の更新指示)の表示の為の処理と、最新の更新指示(前述の例における2回目の更新指示)の表示の為の処理と行う。
表示用文書生成部205は、文書データベース201から更新指示回数Nを取得する(S4601)。更新指示回数N=0の場合には(S4602)、そのまま終了する。更新指示回数N=1の場合には(S4603)、更新指示反映処理と前提更新指示表示処理を省き、最新更新指示表示処理を行う。更新指示回数N>2の場合には(S4604)、更新指示1回目からN−2回目まで(S4605)、更新指示反映処理(S4606)を繰り返す。更新指示反映処理は、図19に示した通りである。但し、更なる更新指示を行わない場合には、表示上影響のない更新指示タグ(削除開始タグ<deleteX>、削除終了タグ</deleteX>、挿入開始タグ<insertX>、挿入終了タグ</insertX>)をコピーせずに、取り除く。
その後、更新指示N−1回目について(S4608)、更新指示回(更新指示段階)X=N−1として、前提更新指示表示処理(S4609)を行う。この処理については、図47を用いて後述する。
最後に、更新指示N回目について(S4610)、更新指示回(更新指示段階)X=Nとして、最新更新指示表示処理(S4611)を行う。この処理については、図50を用いて後述する。
尚、この例では、前提更新指示をN−1回目の更新指示、最新更新指示をN回目の更新指示とする処理フローを説明したが、例えば、N−3からN−1、あるいは1からN−1のように、複数回数分の更新指示を前提更新指示として処理を行ってもよい。その場合、それぞれの更新段階の更新指示毎に、前提更新指示表示処理を行う。また、N−1とNのように、複数回数分の更新指示を最新更新指示として処理を行ってもよい。その場合、それぞれの更新段階の更新指示毎に、最新更新指示表示処理を行う。
このように、前提更新指示の段階(回)と最新更新指示の段階(回)が重複しない範囲で、前提更新指示と最新更新指示の段階(回)を自由に設定するようにすることも有効である。
【0061】
図47は、前提更新指示表示処理フローを示す図である。
元文書格納バッファから、順次、文字あるいはタグの単位を読み込み(S4701)、以下の処理と繰り返す。文字を読み込んだ場合には(S4702)、読み込んだ文字を先文書格納バッファへコピーする(S4703)。タグを読み込んだ場合には、読み込んだタグが、削除開始タグ<deleteX>か判断する(S4704)。削除開始タグ<deleteX>の場合には、前提削除モード表示処理(S4705)を行う。前提削除モード表示処理については、図48を用いて後述する。
読み込んだタグが、挿入開始タグ<insertX>か判断し(S4706)、挿入開始タグ<insertX>の場合には、前提挿入モード表示処理(S4707)を行う。この処理については、図49を用いて後述する。
読み込んだタグが、他のタグの場合には、読み込んだタグを先文書格納バッファへコピーする(S4708)。
すべての文字あるいはタグの単位を読み込んだ時点で終了する(S4709)。
【0062】
図48は、前提削除モード表示処理フローを示す図である。
削除開始タグ<deleteX>を、下付き開始タグ<SUB>に変更し、先文書格納バッファへ書き込み(S4801)、元文書格納バッファから、次の文字あるいはタグの単位を読み込む(S4802)。文字を読み込んだ場合には(S4803)、読み込んだ文字を先文書格納バッファへコピーする(S4804)。
削除終了タグ</deleteX>を読み込んだ場合には(S4805)、削除終了タグ</deleteX>を下付き終了タグ</SUB>に変更して、先文書格納バッファへ書き込み(S4806)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S4807)、次の読み込み(S4802)に移行する。
【0063】
図49は、前提挿入モード表示処理フローを示す図である。
読み込んだ挿入開始タグ<insertX>を、上付き開始タグ<SUP>に変更し、先文書格納バッファへ書き込み(S4901)、元文書格納バッファから、次の文字あるいはタグの単位を読み込む(S4902)。文字を読み込んだ場合には(S4903)、読み込んだ文字を先文書格納バッファへコピーする(S4904)。
挿入終了タグ</insertX>を読み込んだ場合には(S4905)、挿入終了タグ</insertX>を上付き終了タグ</SUP>に変更して、先文書格納バッファへ書き込み(S4906)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S4907)、次の読み込み(S4902)に移行する。
【0064】
次に、図46の最新更新指示表示処理(S4611)について詳述する。図50は、最新更新指示表示処理フローを示す図である。
元文書格納バッファから、順次文字あるいはタグの単位を読み込み(S5001)、以下の処理を繰り返す。文字を読み込んだ場合には(S5002)、読み込んだ文字を先文書格納バッファへコピーする(S5003)。タグを読み込んだ場合には、読み込んだタグが、削除開始タグ<deleteX>か判断する(S5004)。削除開始タグ<deleteX>の場合には、最新削除モード表示処理(S5005)を行う。この処理については、図51を用いて後述する。
読み込んだタグが、挿入開始タグ<insertX>か判断し(S5006)、挿入開始タグ<insertX>の場合には、最新挿入モード表示処理(S5007)を行う。この処理については、図52を用いて後述する。
読み込んだタグが、他のタグの場合には、読み込んだタグを先文書格納バッファへコピーする(S5008)。
すべての文字あるいはタグの単位を読み込んだ時点で終了する(S5009)。
【0065】
図51は、最新削除モード表示処理フローを示す図である。
読み込んだ削除開始タグ<deleteX>を、取消線開始タグ<STRIKE>に変更し、先文書格納バッファへ書き込み(S5101)、元文書格納バッファから、次の文字あるいはタグの単位を読み込む(S5102)。文字を読み込んだ場合には(S5103)、読み込んだ文字を先文書格納バッファへコピーする(S5104)。
S5105からS5110までの処理は、図45の4501の文(図41の4101の項に対応)のように、前提更新指示で削除された文字列を挟む前後の文字列を削除する最新更新指示を表示する為の処理である。4501文の「一般的な」の部分のように、前提更新指示で削除された部分に対して、最新更新指示表示として取消線を引くと、最新更新指示として当該部分(「一般的な」)を削除した印象を与える。従って、この例では、下付き文字列に対して、取消線モードを解除する処理を行う。
下付き開始タグ<SUB>を読み込んだ場合には(S5105)、先文書格納バッファに、取消線終了タグ</STRIKE>を書き込み(S5106)、続いて、下付き開始タグ<SUB>をコピーする(S5107)。
下付き終了タグ</SUB>を読み込んだ場合には(S5108)、先文書格納バッファに下付き終了タグ</SUB>をコピーし(S5109)、その後に取消線開始タグ<STRIKE>を書き込む(S5110)。
削除終了タグ</deleteX>を読み込んだ場合には(S5111)、削除終了タグ</deleteX>を取消線終了タグ</STRIKE>に変更して、先文書格納バッファへ書き込み(S5112)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S5113)、次の読み込み(S5102)に移行する。
【0066】
図52は、最新挿入モード表示処理フローを示す図である。
本処理では、図45の4502の文(図41の4102の項に対応)のように、前提更新指示で挿入された文字列の中に新たな文字列を挿入する最新更新指示を表示する為の処理である。4502文の「規格作成」の部分のように、前提更新指示で挿入された部分に対して、最新更新指示で挿入した文字列「標準類」を上付き文字のまま下線表示すると、当該部分(「標準類」)が前提更新指示で挿入された印象を与える。従って、この例では、上付きモード中の場合には、上付きモードを解除する処理を行う。
元文書格納バッファ上で、読み込んだ挿入開始タグ<insertX>の位置から遡って最も近い上付き開始タグ<SUP>あるいは上付き終了タグ</SUP>を検索する(S5201)。検索した結果が上付き開始タグ<SUP>の場合には、上付きモード中と判断する(S5202)。例えば、図41の4102の挿入開始タグ<insert1>が、前提挿入モード表示処理(図49)で<SUP>に変換され、挿入終了タグ</insert1>が、同じく</SUP>に変換された状態を想定すると、挿入開始タグ<insert2>を読み込んだ時点で、その前方の最近に、上付き終了タグ</SUP>ではなく上付き開始タグ<SUP>がある場合には、上付きモード中であることがわかる。
上付きモード中の場合には、先文書格納バッファに上付き終了タグ</SUP>を書き込む(S5203)。
その後、挿入開始タグ<insertX>を、下線開始タグ<U>に変更し(S5204)、先文書格納バッファに書き込み、元文書格納バッファから、次の文字あるいはタグの単位を読み込む(S5205)。文字を読み込んだ場合には(S5206)、読み込んだ文字を先文書格納バッファへコピーする(S5207)。
挿入終了タグ</insertX>以外のタグを読み込んだ場合には(S5208)、読み込んだタグを先文書格納バッファへコピーして(S5209)、次の読み込み(S5205)に移行する。
挿入終了タグ</insertX>を読み込んだ場合には(S5208)、挿入終了タグ</insertX>を下線終了タグ</U>に変更して、先文書格納バッファへ書き込む(S5210)。
S5202と同じ判断により、上付きモード中の場合には(S5211)、先文書格納バッファに、上付き開始タグ<SUP>を書き込んで(S5212)、終了する。
【0067】
上述の例では、表示上影響のない更新指示タグを取り除くように処理したが、実施の形態1と同様に更新指示タグを残すように処理してもよい。更なる更新指示を入力できる点で有効である。
【0068】
実施の形態3.
実施の形態2では、前提となる更新指示について、更新指示ファイルに含まれるすべての更新指示を表示する。本実施の形態では、最新の更新指示のほか、前提となる更新指示のうち最新の更新指示と関連するもののみを表示する形態について説明する。つまり、本実施の形態では、前提となる更新指示のうち、最新の更新指示と関連ないものを表示しない。
具体的には、実施の形態2では、1回目の更新指示ファイル(KOU.UPI)に含まれる図9から図16の更新指示すべてについて表示の為の処理を行う。これに対し、実施の形態3では、1回目の更新指示ファイル(KOU.UPI)に含まれる図9から図16の更新指示のうち、2回目の更新指示ファイル(OTSU.UPI)に含まれる図33から図40の更新指示による更新部分とその更新部分の少なくとも一部が重複するもの(図9から図14)のみについて表示の為の処理を行う。
【0069】
本実施の形態に係る最新更新指示及び関連更新指示表示方式による表示例を示す。図53は、1回目と2回目の更新指示を含むXML文書の文書表示画面の表示例(最新更新指示及び関連更新指示表示方式)を示す図である。
実施の形態2の表示例(図45)と比較すると、1回目の更新指示(図15)による「その他」の削除を表示せず、当該更新指示を無視し、無かったものとして扱っている(4507,5307)。また、1回目の更新指示(図16)による「文書」の挿入を表示せず、当該更新指示を無視し、無かったものとして扱っている(4507,5307)。
このように扱うことにより、最新更新指示の内容のみを確認できるとともに、最新更新指示の把握のために必要な関連更新指示も確認することができる。また、最新更新指示と無関係の前提更新指示を無視し、当該部分について前提更新指示以前の内容を示すので、最新更新指示の内容のみを確認するにあたって、余分な更新指示の表示を行わない点で、特に優れている。
【0070】
最新更新指示及び関連更新指示表示方式による表示用文書生成処理について説明する。図54は、最新更新指示及び関連更新指示表示方式による表示用文書生成処理フローを示す図である。
表示用文書生成部205は、文書データベース201から更新指示回数Nを取得する(S5401)。更新指示回数N=0の場合には(S5402)、そのまま終了する。更新指示回数N=1の場合には(S5403)、更新指示反映処理と関連更新指示表示処理を省き、最新更新指示表示処理を行う。更新指示回数N>2の場合には(S5404)、更新指示1回目からN−2回目まで(S5405)、更新指示反映処理(S5406)を繰り返す。更新指示反映処理は、図19に示した通りである。但し、更なる更新指示を行わない場合には、表示上影響のない更新指示タグ(削除開始タグ<deleteX>、削除終了タグ</deleteX>、挿入開始タグ<insertX>、挿入終了タグ</insertX>)をコピーせずに、取り除く。
その後、更新指示N−1回目について(S5408)、更新指示回(更新指示段階)X=N−1として、関連更新指示表示処理(S5409)を行う。この処理については、図55を用いて後述する。
最後に、更新指示N回目について(S5410)、更新指示回(更新指示段階)X=Nとして、最新更新指示表示処理(S5411)を行う。この処理は、前述の図50と同様である。
【0071】
図55は、関連更新指示表示処理フローを示す図である。
元文書格納バッファから、順次、文字あるいはタグの単位を読み込み(S5501)、以下の処理と繰り返す。文字を読み込んだ場合には(S5502)、読み込んだ文字を先文書格納バッファへコピーする(S5503)。タグを読み込んだ場合には、読み込んだタグが、削除開始タグ<deleteX>か判断する(S5504)。削除開始タグ<deleteX>の場合には、関連削除モード表示処理(S5505)を行う。前提削除モード表示処理については、図56を用いて後述する。
読み込んだタグが、挿入開始タグ<insertX>か判断し(S5506)、挿入開始タグ<insertX>の場合には、関連挿入モード表示処理(S5507)を行う。この処理については、図59を用いて後述する。
読み込んだタグが、他のタグの場合には、読み込んだタグを先文書格納バッファへコピーする(S5508)。
すべての文字あるいはタグの単位を読み込んだ時点で終了する(S5509)。
【0072】
図56は、関連削除モード表示処理フローを示す図である。
元文書格納バッファ上で、読み込んだ削除開始タグ<deleteX>の位置から遡って最も近い最新更新指示の削除開始タグ<delete(X+1)>あるいは削除終了タグ</delete(X+1)>を検索する(S5601)。検索した結果が削除開始タグ<delete(X+1)>の場合には、最新更新指示の削除モード中と判断する(S5602)。図41に示す更新中文書の4101の文の削除開始タグ<delete1>を読み込んだ時点で、その前方の最近に、削除終了タグ</delete2>ではなく削除開始タグ<delete2>がある場合には、最新更新指示の削除モード中であることがわかる。一方、図41に示す更新中文書の4107の文の削除開始タグ<delete1>を読み込んだ時点で、その前方に削除開始タグ<delete2>と削除終了タグ</delete2>のいずれも無いので、最新更新指示の削除モード中では無いことがわかる。
最新更新指示の削除モード中の場合(最新の更新指示による更新部分と、当該更新部分の少なくとも一部が重複する場合の例)には、削除モード表示処理(S5603)を行う。この処理については、図57を用いて後述する。一方、最新更新指示の削除モード中ではない場合(最新の更新指示による更新部分と、当該更新部分が一切重複しない場合の例)には、削除モード非反映処理(S5604)を行う。この処理については、図58を用いて後述する。
【0073】
図57は、削除モード表示処理フローを示す図である。
読み込んだ削除開始タグ<deleteX>を、下付き開始タグ<SUB>に変更し、先文書格納バッファへ書き込み(S5701)、元文書格納バッファから、次の文字あるいはタグの単位を読み込む(S5702)。文字を読み込んだ場合には(S5703)、読み込んだ文字を先文書格納バッファへコピーする(S5704)。
削除終了タグ</deleteX>を読み込んだ場合には(S5705)、削除終了タグ</deleteX>を下付き終了タグ</SUB>に変更して、先文書格納バッファへ書き込み(S5706)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S5707)、次の読み込み(S5702)に移行する。
【0074】
図58は、削除モード非反映処理フローを示す図である。
読み込んだ削除開始タグ<deleteX>を、先文書格納バッファへコピーせずに(S5801)、元文書格納バッファから、次の文字あるいはタグの単位を読み込む(S5802)。文字を読み込んだ場合には(S5803)、読み込んだ文字を先文書格納バッファへコピーする(S5804)。
削除終了タグ</deleteX>を読み込んだ場合には(S5805)、読み込んだ削除終了タグ</deleteX>を先文書格納バッファへコピーせずに(S5807)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S5807)、次の読み込み(S5802)に移行する。
【0075】
図55に示した関連挿入モード表示処理(S5507)について説明する。図59は、関連挿入モード表示処理フローを示す図である。
元文書格納バッファ上で、読み込んだ挿入開始タグ<insertX>とそれに対応する挿入終了タグ</insertX>の間で、最新更新指示の挿入開始タグ<insert(X+1)>を検索する(S5901)。挿入開始タグ<insert(X+1)>がある場合には、最新更新指示の挿入モードを含んでいると判断する(S5902)。図41に示す更新中文書の4102の文の挿入開始タグ<insert1>を読み込んだ時点で、その後の対応する挿入終了タグ</insert1>の間に、最新更新指示の挿入開始タグ<insert2>があるので、最新更新指示の挿入モードを含んでいることがわかる。一方、図41に示す更新中文書の4107の文の挿入開始タグ<insert1>を読み込んだ時点で、その後の対応する挿入終了タグ</insert1>の間に、最新更新指示の挿入開始タグ<insert2>がないので、最新更新指示の挿入モードを含んでいないことがわかる。
最新更新指示の挿入モードを含んでいる場合(最新の更新指示による更新部分と、当該更新部分の少なくとも一部が重複する場合の例)には、挿入モード表示処理(S5907)を行う。この処理については、図60を用いて後述する。
【0076】
次に、元文書格納バッファ上で、読み込んだ挿入開始タグ<insertX>の位置から遡って最も近い最新更新指示の削除開始タグ<delete(X+1)>あるいは削除終了タグ</delete(X+1)>を検索する(S5903)。検索した結果が削除開始タグ<delete(X+1)>の場合には、最新更新指示の削除モード中と判断する(S5904)。図41に示す更新中文書の4103と4105の文の削除挿入タグ<insert1>を読み込んだ時点で、その前方の最近に、削除終了タグ</delete2>ではなく削除開始タグ<delete2>がある場合には、最新更新指示の削除モード中であることがわかる。一方、図41に示す更新中文書の4107の文の挿入開始タグ<insert1>を読み込んだ時点で、その前方に削除開始タグ<delete2>と削除終了タグ</delete2>のいずれも無いので、最新更新指示の削除モード中では無いことがわかる。
最新更新指示の削除モード中である場合(最新の更新指示による更新部分と、当該更新部分の少なくとも一部が重複する場合の例)には、挿入モード表示処理(S5907)を行う。
【0077】
元文書格納バッファ上で、読み込んだ挿入開始タグ<insertX>とそれに対応する挿入終了タグ</insertX>の間で、最新更新指示の削除開始タグ<delete(X+1)>を検索する(S5905)。削除開始タグ<delete(X+1)>がある場合には、最新更新指示の削除モードを含んでいると判断する(S5906)。図41に示す更新中文書の4104と4106の文の挿入開始タグ<insert1>を読み込んだ時点で、その後の対応する挿入終了タグ</insert1>の間に、最新更新指示の削除開始タグ<delete2>があるので、最新更新指示の削除モードを含んでいることがわかる。一方、図41に示す更新中文書の4107の文の挿入開始タグ<insert1>を読み込んだ時点で、その後の対応する挿入終了タグ</insert1>の間に、最新更新指示の削除開始タグ<delete2>がないので、最新更新指示の削除モードを含んでいないことがわかる。
最新更新指示の削除モードを含んでいる場合(最新の更新指示による更新部分と、当該更新部分の少なくとも一部が重複する場合の例)には、挿入モード表示処理(S5907)を行う。
【0078】
前述の判断(S5902,S5904,S5906)のいずれにも該当しない場合(最新の更新指示による更新部分と、当該更新部分が一切重複しない場合の例)には、挿入モード非反映処理(S5908)を行う。この処理については、図61を用いて後述する。
【0079】
図60は、挿入モード表示処理フローを示す図である。
読み込んだ挿入開始タグ<insertX>を、上付き開始タグ<SUP>に変更し、先文書格納バッファへ書き込み(S6001)、元文書格納バッファから、次の文字あるいはタグの単位を読み込む(S6002)。文字を読み込んだ場合には(S6003)、読み込んだ文字を先文書格納バッファへコピーする(S6004)。
挿入終了タグ</insertX>を読み込んだ場合には(S6005)、挿入終了タグ</insertX>を上付き終了タグ</SUP>に変更して、先文書格納バッファへ書き込み(S6006)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S6007)、次の読み込み(S6002)に移行する。
【0080】
図61は、挿入モード非反映処理フローを示す図である。
読み込んだ挿入開始タグ<insertX>を、先文書格納バッファへコピーせずに(S6101)、元文書格納バッファから、次の文字あるいはタグの単位を読み込む(S6102)。文字を読み込んだ場合には(S6103)、読み込んだ文字を先文書格納バッファへコピーせずに(S6104)、次の読み込み(S6102)に移行する。
挿入終了タグ</insertX>を読み込んだ場合には(S6105)、読み込んだ挿入終了タグ</insertX>を先文書格納バッファへコピーせずに(S6106)、終了する。
他のタグを読み込んだ場合には、読み込んだタグを先文書格納バッファへコピーして(S6107)、次の読み込み(S6102)に移行する。
【0081】
上述の例では、表示上影響のない更新指示タグを取り除くように処理したが、実施の形態1と同様に更新指示タグを残すように処理してもよい。更なる更新指示を入力できる点で有効である。
【0082】
実施の形態4.
前述の編集位置は、文書の先頭から、文書の構造を特定するタグを順に抜き出したものであるが、編集位置の特定方法として、文の構造単位(例えば章や項)の識別情報(この例では“<no>”と”1.1”などの番号)を用いることも有効である。
例えば、図9の編集位置(タグ):<section><ss1><p>を、編集位置:<section><no>1.<ss1><no>1.1<p>と表し、図13の編集位置(タグ):<section><ss1><p><ss1><p><ss1><p><ss1><p><ss1><p>を、編集位置:<section><no>1.<ss1><no>1.5<p>と表すことができる。2回目以降の更新指示においても同様である。前述と同様に、更新指示実行部211は、編集位置を指定する文書構造タグと、更新中文書記憶部に格納されている更新中文書に含まれる文書構造タグとを比較することにより、編集する項(文書上の構造単位の例)を特定する。この例では、編集位置を指定する文書構造タグの構造単位の識別情報(例えば、<no>1.1)をサーチすることにより、編集する項を特定することができる。
【0083】
アノテーションシステム1(構造化文書更新管理装置の例)は、コンピュータであり、各要素はプログラムにより処理を実行することができる。また、プログラムを記憶媒体に記憶させ、記憶媒体からコンピュータに読み取られるようにすることができる。
【0084】
【発明の効果】
文書データベースから、元構造化文書(例中の××規格)と、元構造化文書に対応する第一の更新指示(例中のKOU.UPI)と第二の更新指示(例中のOTSU.UPI)を取得し、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書(例中の図41)を生成し、第一の更新指示タグを第一の表示装飾タグに変換し(例中のS4609の前提更新指示表示処理)、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換するので(S4611の最新更新指示表示処理)、更新段階毎の更新指示内容を識別して確認することができる。
【0085】
表示用文書生成部は、編集文書中の第一の更新指示タグのうち、第一の更新指示タグの開始タグと終了タグにより挟まれた第一の更新指示領域が、第二の更新指示タグ開始タグと終了タグにより挟まれた第二の更新指示領域と少なくとも一部が重複する第一の更新指示タグのみを第一の表示装飾タグに変換する(S5409の関連更新指示表示処理)ので、最新の更新指示の意図を把握するのに必要な情報のみを表示させることができる。
【0086】
表示用文書生成部は、第一の表示装飾タグに変換しない第一の更新指示について、当該更新指示が無かった状態を表示させるための非反映処理を行う(S5604の削除モード非反映処理と、S5908の削除モード非反映処理)ので、最新の更新指示の意図を把握するのに不必要な更新指示を排除することができる。
【0087】
各表示用装飾タグが、それぞれ表示上区別可能な異なる装飾のタグであるので、前提となる更新指示と、最新の更新指示を混同することがない。
【図面の簡単な説明】
【図1】 アノテーションシステムのネットワーク環境を示す図である。
【図2】 アノテーションシステムの構成例を示す図である。
【図3】 文書データベース内の管理テーブルの構成例を示す図である。
【図4】 文書編集処理の全体処理フローを示す図である。
【図5】 編集文書選択画面の表示例を示す図である。
【図6】 編集文書となるXML文書の例を示す図である。
【図7】 初期状態の更新中文書による文書表示画面の表示例を示す図である。
【図8】 1回目の更新指示入力後の文書表示画面の表示例(更新指示表示方式)を示す図である。
【図9】 1.1の項に対する1回目の更新指示の例を示す図である。
【図10】 1.2の項に対する1回目の更新指示の例を示す図である。
【図11】 1.3の項に対する1回目の更新指示の例を示す図である。
【図12】 1.4の項に対する1回目の更新指示の例を示す図である。
【図13】 1.5の項に対する1回目の更新指示の例を示す図である。
【図14】 1.6の項に対する1回目の更新指示の例を示す図である。
【図15】 1.7の項に対する1回目の更新指示(削除)の例を示す図である。
【図16】 1.7の項に対する1回目の更新指示(挿入)の例を示す図である。
【図17】 1回目の更新指示タグを挿入したXML文書の例を示す図である。
【図18】 更新指示表示方式による表示用文書生成処理フローを示す図である。
【図19】 更新指示反映処理フローを示す図である。
【図20】 削除モード反映処理フローを示す図である。
【図21】 挿入モード反映処理フローを示す図である。
【図22】 更新指示表示処理フローを示す図である。
【図23】 削除モード表示処理フローを示す図である。
【図24】 挿入モード表示処理フローを示す図である。
【図25】 更新指示表示方式による1回目の更新指示に係る表示用文書を示す図である。
【図26】 表示方式の変更に係る構成部分の例を示す図である。
【図27】 全更新指示反映方式による表示用文書生成処理フローを示す図である。
【図28】 全更新指示反映方式による1回目の更新指示に係る表示用文書を示す図である。
【図29】 1回目の更新指示入力後の文書表示画面の表示例(全更新指示反映方式)を示す図である。
【図30】 1回目の更新指示を登録した後の文書データベース内管理テーブルの構成例を示す図である。
【図31】 1回目の更新指示による文書を含む編集文書選択画面の表示例を示す図である。
【図32】 2回目の更新指示入力後の文書表示画面の表示例(更新指示表示方式)を示す図である。
【図33】 1.1の項に対する2回目の更新指示の例を示す図である。
【図34】 1.2の項に対する2回目の更新指示の例を示す図である。
【図35】 1.3の項に対する2回目の更新指示の例を示す図である。
【図36】 1.4の項に対する2回目の更新指示の例を示す図である。
【図37】 1.5の項に対する2回目の更新指示の例を示す図である。
【図38】 1.6の項に対する2回目の更新指示の例を示す図である。
【図39】 1.7の項に対する2回目の更新指示(挿入)の例を示す図である。
【図40】 1.7の項に対する2回目の更新指示(削除)の例を示す図である。
【図41】 2回目の更新指示タグを挿入したXML文書の例を示す図である。
【図42】 2回目の更新指示入力後の文書表示画面の表示例(全更新指示反映方式)を示す図である。
【図43】 2回目の更新指示を登録した後の文書データベース内管理テーブルの構成例を示す図である。
【図44】 2回目の更新指示による文書を含む編集文書選択画面の表示例を示す図である。
【図45】 1回目と2回目の更新指示を含むXML文書の文書表示画面の表示例(複数更新指示表示方式)を示す図である。
【図46】 複数更新指示表示方式による表示用文書生成処理フローを示す図である。
【図47】 前提更新指示表示処理フローを示す図である。
【図48】 前提削除モード表示処理フローを示す図である。
【図49】 前提挿入モード表示処理フローを示す図である。
【図50】 最新更新指示表示処理フローを示す図である。
【図51】 最新削除モード表示処理フローを示す図である。
【図52】 最新挿入モード表示処理フローを示す図である。
【図53】 1回目と2回目の更新指示を含むXML文書の文書表示画面の表示例(最新更新指示及び関連更新指示表示方式)を示す図である。
【図54】 最新更新指示及び関連更新指示表示方式による表示用文書生成処理フローを示す図である。
【図55】 関連更新指示表示処理フローを示す図である。
【図56】 関連削除モード表示処理フローを示す図である。
【図57】 削除モード表示処理フローを示す図である。
【図58】 削除モード非反映処理フローを示す図である。
【図59】 関連挿入モード表示処理フローを示す図である。
【図60】 挿入モード表示処理フローを示す図である。
【図61】 挿入モード非反映処理フローを示す図である。
【符号の説明】
201 文書データベース、202 編集文書選択部、203 編集文書生成部、204 更新中文書記憶部、205 表示用文書生成部、206 文書送信部、207 更新指示生成プログラム配信部、208 更新指示生成プログラム記憶部、209 更新指示受信部、210 更新指示記憶部、211 更新指示実行部、212 更新確定処理部、213 表示方式入力部。
[0001]
BACKGROUND OF THE INVENTION
Annotation system that supports document editing, etc., allows editing contents to be reflected in documents with the same structure, manages multiple stages of update instructions, and provides instructions for update at each stage in processing such as display It relates to the technology to distinguish.
[0002]
[Prior art]
A conventional document editing apparatus uses the number of characters, the number of lines, and the like as a method for specifying an editing portion. This method is based on the premise that the document that is premised on editing and the document that reflects the editing completely match.
[0003]
Therefore, if the document premised on editing does not match the document reflecting the editing, the editing result cannot be reflected even if the document structure (chapter or paragraph) is similar. For example, when editing is started on the premise of editing a document that is not the latest, the editing result cannot be reflected in the latest document.
[0004]
In addition, when multiple revisions are generated in a structured document and a plurality of versions are generated, the update instruction for the prerequisite version and the update instruction for the latest version are distinguished from each other, including the mode in which the update parts overlap. It's inconvenient if you can't. In particular, if the two cannot be distinguished from each other in the display, the viewer is prevented from understanding the significance of overlapping revisions.
[0005]
[Patent Document 1]
Japanese Patent Laid-Open No. 9-167158
[Patent Document 2]
JP 2001-51932 A
[Patent Document 3]
JP 2001-195438 A
[0006]
[Problems to be solved by the invention]
The present invention has been made in order to eliminate the above-described drawbacks of the prior art. The object of the present invention is to edit a document that does not completely match if the document has the same document structure. It is an object of the present invention to provide a structured document update management apparatus capable of reflecting a plurality of update instructions and distinguishing update instructions at each stage in processing such as display.
[0007]
[Means for Solving the Problems]
The structured document update management apparatus according to the present invention is:
Structured document update management device that converts a structured document containing multiple stages of update instructions into a display document and outputs the display document And has the following elements: It is characterized by
(1) an original structured document described using a document structure tag that identifies the structure of the document;
An update instruction for the original structured document, a first update instruction including an edit position specified by a document structure tag and a position specifying character string extracted from the original structured document;
An update instruction for the structured document in which the first update instruction is inserted at the editing position in the original structured document using the first update instruction tag, and the document structure tag and the first update instruction are inserted. Document database for storing the second update instruction including the editing position designated by the position designation character string extracted from the structured document, and the original structured document from the document database. The first update instruction and the second update instruction corresponding to the original structured document are acquired, and the first update instruction tag is added to the edit position in the acquired original structured document. Insert with
Further, an edit document generation for generating an edit document by inserting the acquired second update instruction into an edit position in the structured document in which the first update instruction is inserted using the second update instruction tag Part
(3) The first update instruction tag in the edited document is converted into the first display decoration tag, and the second update instruction tag in the edited document is converted into the second display decoration tag, thereby displaying the display document. Display document generator for generating
(4) A document output unit for outputting the generated display document.
[0008]
The display document generation unit includes a first update instruction tag sandwiched between a start tag and an end tag of the first update instruction tag among the first update instruction tags in the edited document. Only the first update instruction tag at least partially overlapping with the second update instruction region sandwiched between the start tag and the end tag is converted into the first display decoration tag.
[0009]
The display document generation unit performs a non-reflecting process for displaying a state in which there is no update instruction for the first update instruction that is not converted into the first display decoration tag.
[0010]
The first update instruction and the second update instruction each include at least an edit type including deletion and insertion, and a first delete display decoration tag converted from the first update instruction tag whose edit type is deletion, The first insertion display decoration tag converted from the first update instruction tag whose edit type is insertion and the second deletion display decoration converted from the second update instruction tag whose edit type is deletion The tag and the second insertion display decoration tag converted from the second update instruction tag whose edit type is insertion are different decoration tags that can be distinguished from each other on display.
[0011]
The document output unit transmits to a device including a browser for displaying a structured document.
[0012]
The structured document update management method according to the present invention includes:
An original structured document described using a document structure tag that specifies the structure of the document, and an update instruction for the original structured document, the document structure tag and a position-specified character string extracted from the original structured document The first update instruction including the edit position designated by the above and the update instruction for the structured document in which the first update instruction is inserted at the edit position in the original structured document using the first update instruction tag The document structure tag and the second update instruction including the editing position designated by the position designation character string extracted from the structured document in which the first update instruction is inserted are stored in association with each other. Structured Document Update Management Method Using Structured Document Update Management Device Accessible to Document Database And has the following elements: It is characterized by that.
(1) The edit document generation unit provided in the structured document update management device The original structured document, the first update instruction and the second update instruction corresponding to the original structured document are acquired from the document database, and the acquired first update instruction is edited in the acquired original structured document. In the location using the first update instruction tag,
Furthermore, a step of generating an edited document by inserting the acquired second update instruction into an edit position in the structured document in which the first update instruction has been inserted, using the second update instruction tag.
(2) The display document generation unit provided in the structured document update management device A first update instruction tag in the edited document is converted into a first display decoration tag, and a second update instruction tag in the edited document is converted into a second display decoration tag, thereby generating a display document. Process
(3) The document output unit provided in the structured document update management device A step of outputting the generated display document.
[0013]
A computer-readable recording medium on which a program according to the present invention is recorded,
An original structured document described using a document structure tag that specifies the structure of the document, and an update instruction for the original structured document, the document structure tag and a position-specified character string extracted from the original structured document The first update instruction including the edit position designated by the above and the update instruction for the structured document in which the first update instruction is inserted at the edit position in the original structured document using the first update instruction tag The document structure tag and the second update instruction including the editing position designated by the position designation character string extracted from the structured document in which the first update instruction is inserted are stored in association with each other. A computer-readable recording medium recording a program for causing a computer to be a structured document update management apparatus accessible to a document database to execute the following processing:
(1) The edit document generation unit provided in the structured document update management device The original structured document, the first update instruction and the second update instruction corresponding to the original structured document are acquired from the document database, and the acquired first update instruction is edited in the acquired original structured document. In the location using the first update instruction tag,
Further, a process for generating an edited document by inserting the acquired second update instruction into the edit position in the structured document in which the first update instruction has been inserted, using the second update instruction tag.
(2) The display document generation unit provided in the structured document update management device A first update instruction tag in the edited document is converted into a first display decoration tag, and a second update instruction tag in the edited document is converted into a second display decoration tag, thereby generating a display document. processing
(3) The document output unit provided in the structured document update management device Processing to output the generated display document.
[0014]
The program according to the present invention is:
An original structured document described using a document structure tag that specifies the structure of the document, and an update instruction for the original structured document, the document structure tag and a position-specified character string extracted from the original structured document The first update instruction including the edit position designated by the above and the update instruction for the structured document in which the first update instruction is inserted at the edit position in the original structured document using the first update instruction tag The document structure tag and the second update instruction including the editing position designated by the position designation character string extracted from the structured document in which the first update instruction is inserted are stored in association with each other. A program for causing a computer, which is a structured document update management apparatus capable of accessing a document database for execution, to execute the following procedure:
(1) The edit document generation unit provided in the structured document update management device The original structured document, the first update instruction and the second update instruction corresponding to the original structured document are acquired from the document database, and the acquired first update instruction is edited in the acquired original structured document. In the location using the first update instruction tag,
Further, a procedure for generating an edited document by inserting the acquired second update instruction into the edit position in the structured document in which the first update instruction has been inserted, using the second update instruction tag.
(2) The display document generation unit provided in the structured document update management device A first update instruction tag in the edited document is converted into a first display decoration tag, and a second update instruction tag in the edited document is converted into a second display decoration tag, thereby generating a display document. procedure
(3) The document output unit provided in the structured document update management device A procedure for outputting the generated display document.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Embodiment 1 FIG.
Hereinafter, the present invention will be described based on embodiments shown in the drawings. FIG. 1 is a diagram showing a network environment of the annotation system. A terminal 1 used by a document editor is configured to be able to access the annotation system 1 via a network 3. The network 3 is, for example, the Internet or an intranet. The terminal 2 includes a browser.
[0016]
FIG. 2 is a diagram illustrating a configuration example of the annotation system.
201 is a document database, 202 is an edited document selection unit, 203 is an edited document generation unit, 204 is an updated document storage unit, 205 is a display document generation unit, 206 is a document transmission unit, and 207 is An update instruction generation program distribution unit (an example of an update instruction generation program output unit), 208 an update instruction generation program storage unit, 209 an update instruction reception unit, 210 an update instruction storage unit, and 211 an update instruction execution unit , 212 are update confirmation processing units.
[0017]
FIG. 3 is a diagram illustrating a configuration example of the management table in the document database.
A record is provided for each document, and includes items of a document ID, a document name, an XML file name, a DTD file name, a style sheet file name, the number of update instructions, and each update instruction file name. The document database 201 may be provided outside the annotation system 1 so that the annotation database 1 can access the document database 201 via a network or the like.
[0018]
FIG. 4 is a diagram showing an overall processing flow of the document editing process.
The edited document selection unit 202 performs an edited document selection process (S401). When a request for an edited document selection screen is received from the editor's terminal 2, a document list is acquired from the document database 201 and transmitted to the terminal 2 as an edited document selection screen.
FIG. 5 is a diagram showing a display example of the edited document selection screen.
[0019]
The editor selects a document (edited document) to be edited from the edited document selection screen, and transmits the selected content to the annotation system 1. The edited document selection unit 202 specifies an edited document ID according to the received selection content.
[0020]
The edited document generation unit 203 acquires an edited document corresponding to the edited document ID from the document database 201 by the edited document generation process (S402). The edited document includes (XML (extensible Markup Language) document file, DTD (Document Type Definition) file, style sheet)). An XML document is an example of a structured document described using a document structure tag that specifies the structure of the document.
In the case of a document that has already been updated, an update instruction file is further included, and the update instruction in the update instruction file is inserted into the editing position in the XML document using the update instruction tag. Thus, an edited document to be edited is generated, and the generated edited document is stored in the updating document storage unit 204 as an updating document in an initial state.
FIG. 6 is a diagram illustrating an example of an XML document that is an edited document. This document shows an example that has not been updated.
[0021]
The display document generation unit 205 performs display document generation processing (S403). As a result, the updating document stored in the updating document storage unit 204 (in the initial state, the same as the edited document described above) is acquired, the updating document is converted according to the display format, and the display document is converted. Generate.
Regarding display document generation processing by conversion of a document under update performed according to the display format, there are four methods: an update instruction display method, a full update instruction reflection method, a multiple update instruction display method, a latest update instruction, and a related update instruction display method. It will be described later.
[0022]
The document transmission unit 206 performs document transmission processing (S404). As a result, a document display screen for displaying the generated display document (frame data including an area for displaying the image of the document developed by the browser and a scroll bar) is generated, and the display document and the document display screen are displayed. Is transmitted to the terminal 2.
FIG. 7 is a diagram illustrating a display example of a document display screen based on an updating document in an initial state. The display document is expanded by the browser as shown in the figure, and an image of the expanded document is displayed in the display area in the frame of the document display screen. In the figure, the scroll bar and the like are omitted, and only the image of the document that can be viewed in the display area is shown. In this example, the XML document shown in FIG. 6 is used as it is as a display document without being converted.
[0023]
In this state, the annotation system 1 waits for instruction reception (S405). On the other hand, an update instruction, an update confirmation instruction, or an end instruction can be transmitted from the document display screen displayed on the terminal 2.
[0024]
The operation in which the editor instructs to update the edited document on the terminal 2 is executed by the update instruction generation program. In this example, the update instruction generation program is provided from the annotation system 1 in response to a request from the terminal 2. Specifically, it is provided as a JAVA (registered trademark) applet. The timing at which the terminal 2 requests the JAVA applet may be at the time of initialization or at the timing of instructing the update.
[0025]
When the editor clicks an update location on the document display screen, the update instruction generation program displays a window for selecting the type of update (deletion or insertion). When deletion is selected, the operation is performed so that a range to be deleted (deletion character string) is designated. For example, the first character and the last character in the range to be deleted are designated. Further, in the case of insertion, the operation is performed so that the insertion position is designated and the insertion character string is input. When the editor instructs to determine the update instruction, the update instruction generation program generates an update instruction and transmits it to the annotation system 1. In the case of deletion, the structural unit (for example, chapter or item) on the document including the deletion character string is specified by the document structure tag, the character string before the deletion character string is extracted, and the character after the deletion character string is extracted. Extract columns and create update instructions. In the case of insertion, the structural unit (for example, chapter or section) on the document including the insertion position is specified by the document structure tag, the character string before the insertion position is extracted, and further the character string after the insertion position is extracted. The update instruction is created together with the input insertion character string.
[0026]
If the instruction received on the annotation system 1 side is an update instruction, the update instruction receiving unit 209 performs an update instruction reception process (S406). In this example, the update instruction receiving unit 209 is configured by a JAVA servlet. The update instruction receiving unit 209 stores the received update instruction in the update instruction storage unit 210. The update instruction storage unit 210 receives the update confirmation instruction (S408), and performs the update instruction received sequentially until the update confirmation process (S409) is performed or the termination instruction is received (S410) and the process is terminated. As (stage) update instructions, all update instructions are stored as a group.
[0027]
Here, the update instruction will be described. The update instruction includes an edit position, an edit type, and a character string corresponding to the edit type. An update instruction for the display example of the document under update in the initial state shown in FIG. 7 will be described as an example. For convenience of explanation, a display example of a document display screen by an update instruction display method described later is shown. FIG. 8 is a diagram illustrating a display example (update instruction display method) of the document display screen after the first update instruction is input. In this example, the character string that has been subjected to a strikethrough is a character string that has been instructed to be deleted by an update instruction, and the character string that has been underlined is a character string that has been instructed to be inserted by an update instruction.
[0028]
FIG. 9 is a diagram illustrating an example of a first update instruction for the item 1.1. The editing position is specified by a tag (document structure tag that specifies the structure of the document) included in the XML file, a preceding character string, and a following character string. Deletion is designated as the editing type. The front character string and the rear character string are examples of position specifying character strings. This means that the character string from the character after the last character of the previous character string to the character before the first character of the subsequent character string is deleted. In this example, the character string “general” between the character string “701” in the character string 701 shown in FIG. Indicates instructions.
The number of characters in the preceding character string and the succeeding character string is sufficient to specify the editing position, and is not particularly limited. For example, a method of setting a predetermined number of characters such as 15 characters or 30 characters, a method of determining the number of characters by combining the minimum number of characters and sentence or phrase delimiters, and the like can be considered.
[0029]
FIG. 10 is a diagram illustrating an example of a first update instruction for the item 1.2. As described above, the editing position is specified by a tag (document structure tag for specifying the structure of the document), the preceding character string, and the following character string included in the XML file. Then, insertion is designated as the editing type, and an insertion character string is designated. The previous character string and the subsequent character string are examples of position designation character strings, as described above. This means that an insertion character string is inserted between the last character of the preceding character string and the first character of the subsequent character string. In this example, a character string of “standard creation” is inserted between the preceding character string “This standard is” and the subsequent character string “created based on the standard” of the character string 702 in FIG. Indicates instructions.
[0030]
11 to 16 show examples of the first update instruction configured in the same manner as described above. FIG. 11 is a diagram illustrating an example of a first update instruction for the item 1.3. FIG. 12 is a diagram illustrating an example of a first update instruction for the item 1.4. FIG. 13 is a diagram illustrating an example of a first update instruction for the item 1.5. FIG. 14 is a diagram illustrating an example of a first update instruction for the item 1.6. FIG. 15 is a diagram illustrating an example of the first update instruction (deletion) for the item of 1.7. FIG. 16 is a diagram illustrating an example of the first update instruction (insertion) for the item of 1.7.
[0031]
As shown in FIG. 4, when the update instruction reception process is completed, the update instruction execution unit 211 performs an update instruction execution process (S407). The update instruction execution unit 211 acquires an update instruction from the update instruction storage unit 210. The contents of the document storage unit 204 that is being updated are updated according to the editing position, editing type, and inserted character string when the editing type is inserted in the update instruction. At this time, the update instruction execution unit 211 compares the document structure tag for designating the editing position with the document structure tag included in the updating document stored in the updating document storage unit, thereby editing the item ( Identify structural unit on document). In this example, an item to be edited can be specified by searching the document structure tag designating the editing position downward in order from the top of the document being updated.
[0032]
When the edit type is deletion as shown in FIG. 9, the update instruction execution unit 211 further identifies the deletion part by comparing the sentence before update of the specified term with the previous character string and the subsequent character string. can do. Then, the update instruction execution unit 211 inserts a deletion start tag <deleteX> and a deletion end tag </ deleteX> before and after that. X is replaced with a number indicating the update stage (times). The update stage is obtained by adding 1 to the number of update instructions acquired from the document database 201. The update stage is an example of an update instruction stage identifier that identifies the context of the update instruction.
[0033]
When the edit type is insertion as shown in FIG. 10, the insertion location can be specified by comparing the sentence before the update of the specified term with the previous character string and the subsequent character string. Then, the update instruction execution unit 30 inserts an insertion start tag <insertX> and an insertion end tag </ insertX> before and after that, and adds an insertion character string between them. X is the same as described above.
The deletion tag (deletion start tag <deleteX> and deletion end tag </ deleteX>) and the insertion tag (insertion start tag <insertX> and insertion end tag </ insertX>) are examples of update instruction tags.
[0034]
An example of a document that is being updated when the update instruction execution process (S407) is performed for the first update instruction in FIGS. FIG. 17 is a diagram illustrating an example of an XML document in which the first update instruction tag is inserted.
[0035]
In this way, the updating document is updated, and the updated updating document is processed into a display document by the display document generation process (S403) of the display document generation unit 205. In this process, a display document in a form corresponding to the update type (delete or Insert) included in the update instruction tag and the update stage (the subsequent number in this example) is generated based on the display method.
[0036]
Hereinafter, the display document generation processing (S403) for each display method will be described. First, display document generation processing in the case of the update instruction display method will be described. FIG. 8 described above is a display example according to this display method.
In this method, the latest update instruction is reflected on the document, and the latest update instruction is displayed on the document. The reflection here is to delete the character string of the deleted portion and insert the character string of the inserted portion, and the display is a display decoration (in this example, indicating deletion) (Strikethrough) is applied, and a display decoration (in this example, underline) indicating insertion is applied to the character string of the insertion portion to indicate the record of the update instruction content.
[0037]
FIG. 18 is a diagram showing a display document generation processing flow based on the update instruction display method. The display document generation unit 205 acquires the update instruction count N from the document database 201 (S1801). When the number of update instructions N = 0 (S1802), the process proceeds to a process for displaying an update instruction (S1807).
When the number of update instructions N ≧ 1 (S1803), update instruction reflection processing (S1804) for sequentially reflecting the update instructions from the first time to the Nth time is performed. The update instruction reflection process (S1804) will be described later with reference to FIG.
The display document generation unit 205 has two or more document storage buffers therein, and uses one as an original document storage buffer and the other as a destination document storage buffer in one reflection process or display process. In the reflection process or display process, conversely, the process is repeated by using the other buffer that was the previous document storage buffer as the original document storage buffer and one as the previous document storage buffer. That is, processing is performed while data is transferred between the document storage buffers. Data migration is repeated in order from the beginning to the end of the document in units of characters or tags, as will be described later. The document storage buffer is used in the same way in other reflection processing and display processing of the display document generation unit 205.
When all the update instructions up to N have been processed (S1805), the update instruction display process (S1807) is performed for the N + 1 update instruction (S1806). The update instruction display process (S1807) will be described later with reference to FIG.
[0038]
FIG. 19 is a diagram showing an update instruction reflecting process flow.
Character or tag units are sequentially read from the original document storage buffer (S1901), and the following processing is repeated. If a character has been read (S1902), the read character is copied to the previous document storage buffer (S1903). If the tag is read, it is determined whether the read tag is a deletion start tag <deleteX> (S1904). In this case, X (update instruction stage identifier) after delete in the tag is converted to the value of the update instruction time (update instruction stage) X specified in S1803 of FIG. For example, in the case of the first update instruction, the deletion start tag is determined as <delete1>. The same applies to X (update instruction stage identifier) after insertion, which will be described later. The same applies to each end tag, and the same applies to other reflection processing and display processing.
If the read tag is the deletion start tag <deleteX>, the deletion mode reflection process (S1905) is performed. This process will be described later with reference to FIG.
It is determined whether the read tag is an insertion start tag <insertX> (S1906). If the tag is an insertion start tag <insertX>, an insertion mode reflection process (S1907) is performed. This process will be described later with reference to FIG.
If the read tag is another tag, the read tag is copied to the previous document storage buffer (S1908).
The process ends when all character or tag units are read (S1909).
[0039]
FIG. 20 is a diagram showing a deletion mode reflection processing flow.
The read deletion start tag <deleteX> is copied to the previous document storage buffer (S2001), and the next character or tag unit is read from the original document storage buffer (S2002). When a character is read (S2003), the read character is not copied (S2004), and the process proceeds to the next reading (S2002).
When the deletion end tag </ deleteX> is read (S2005), the deletion end tag </ deleteX> is copied to the previous document storage buffer (S2006), and the process ends.
When another tag is read, the read tag is copied to the previous document storage buffer (S2007), and the process proceeds to the next reading (S2002).
[0040]
FIG. 21 is a diagram showing an insertion mode reflection processing flow.
The read insertion start tag <insertX> is copied to the previous document storage buffer (S2101), and the next character or tag unit is read from the original document storage buffer (S2102). If a character is read (S2103), the read character is copied to the previous document storage buffer (S2104), and the process proceeds to the next reading (S2102).
When the insertion end tag </ insertX> is read (S2105), the insertion end tag </ insertX> is copied to the previous document storage buffer (S2106), and the process ends.
When another tag is read, the read tag is copied to the previous document storage buffer (S2107), and the process proceeds to the next reading (S2102).
[0041]
Next, the update instruction display process (S1808) in FIG. 18 will be described in detail. FIG. 22 is a diagram showing an update instruction display processing flow.
Characters or tag units are sequentially read from the original document storage buffer (S2201), and the following processing is repeated. If a character has been read (S2202), the read character is copied to the destination document storage buffer (S2203). When the tag is read, it is determined whether the read tag is a deletion start tag <deleteX> (S2204). In the case of the deletion start tag <deleteX>, a deletion mode display process (S2205) is performed. This process will be described later with reference to FIG.
It is determined whether the read tag is an insertion start tag <insertX> (S2206). If it is an insertion start tag <insertX>, an insertion mode display process (S2207) is performed. This process will be described later with reference to FIG.
If the read tag is another tag, the read tag is copied to the previous document storage buffer (S2208).
The process ends when all character or tag units are read (S2209).
[0042]
FIG. 23 is a diagram showing a deletion mode display processing flow.
The read deletion start tag <deleteX> is copied to the previous document storage buffer, and subsequently inserted into the strikethrough start tag <STRIKE> (S2301). Then, the next character or tag unit is read (S2302). When a character is read (S2303), the read character is copied (S2304), and the process proceeds to the next reading (S2302).
When the deletion end tag </ deleteX> is read (S2305), the strikethrough end tag </ STRIKE> is inserted into the previous document storage buffer, and then the deletion end tag </ deleteX> is copied to the previous document storage buffer. (S2306).
When another tag is read, the read tag is copied to the previous document storage buffer (S2307), and the process proceeds to the next reading (S2302).
[0043]
FIG. 24 is a diagram showing an insertion mode display processing flow.
The read insertion start tag <insertX> is copied to the previous document storage buffer, and then the underline start tag <U> is inserted (S2401). Then, the next character or tag unit is read (S2402). When a character is read (S2403), the read character is copied (S2404), and the process proceeds to the next reading (S2402).
When the insertion end tag </ insertX> is read (S2405), the underline end tag </ U> is inserted into the previous document storage buffer, and then the insertion end tag </ insertX> is copied to the previous document storage buffer. (S2406).
When another tag is read, the read tag is copied to the previous document storage buffer (S2407), and the process proceeds to the next reading (S2402).
[0044]
FIG. 17 shows a display document that is a result of processing for generating a display document by the update instruction display method for the document being updated in FIG. FIG. 25 is a diagram showing a display document related to the first update instruction by the update instruction display method.
As shown in the figure, a strikethrough start tag <STRIKE> and a strikethrough end tag </ STRIKE> are inserted inside a deletion start tag <deleteX> and a deletion end tag </ deleteX>, and an insertion start tag <insertX> The underline start tag </ U> and the underline end tag </ U> are inserted inside the insertion end tag </ insertX>. However, these update instruction tags and display decoration tags corresponding to the update instruction tags need only be continuous, and the front and back may be reversed.
[0045]
Here, switching of the display method of the display document generation process will be described. FIG. 26 is a diagram illustrating an example of a component related to a change in display method.
Reference numeral 213 denotes a display method input unit. The display method input unit 213 receives a display method designated by the editor from the terminal 2. The display document generation unit 205 performs display document generation processing according to the received display method.
[0046]
Next, display document generation processing in the case of the all update instruction reflection method will be described. This method is a process of reflecting all the update instructions including the input undecided update instruction.
[0047]
FIG. 27 is a diagram showing a display document generation processing flow according to the all update instruction reflection method. The display document generation unit 205 acquires the update instruction count N from the document database 201 (S2701).
Thereafter, an update instruction reflection process (S2703) for sequentially reflecting the update instructions from the first time to the (N + 1) th time is performed. The update instruction reflecting process is the same as the process described above (FIG. 19 and the like).
When all the update instructions up to N have been processed (S2704), the process ends.
[0048]
A display document, which is a result of the display document generation processing by the all update instruction reflection method for the updating document of FIG. 17, is shown in the figure. FIG. 28 is a diagram showing a display document related to the first update instruction by the all update instruction reflection method.
As shown in the figure, the character string between the deletion start tag <deleteX> and the deletion end tag </ deleteX> is deleted.
An example in which this display document is displayed on a document display screen is shown. FIG. 29 is a diagram illustrating a display example (all update instruction reflecting method) of the document display screen after the first update instruction is input. This display example represents an image of a document in which all update instructions are reflected.
[0049]
Next, a process for confirming an update instruction and registering it in the document database 201 in a state where the update instruction is input in this way will be described.
In the state of waiting for reception (S405) shown in FIG. 4, when the update confirmation processing unit 212 receives an update confirmation instruction from the terminal 2 (S408), the update confirmation processing unit 212 performs the update confirmation processing (S409). Do. A series of update instruction groups (for example, the first update instruction from FIG. 9 to FIG. 16 or the second update instruction from FIG. 33 to FIG. 40) stored in the update instruction storage unit 210 are updated together. It is stored in the document database 201 as an instruction file. At this time, the update instruction count of the new document on the management table in the document database 201 is set to the number obtained by adding 1 to the update instruction count of the original document. Further, the file name of the generated update instruction file is stored in the item of update instruction file name corresponding to the number of updates on the management table in the document database 201.
FIG. 30 is a diagram illustrating a configuration example of the management table in the document database after the first update instruction is registered. In this example, KOU. In the UPI file, the first update instruction from FIG. 9 to FIG. 16 is stored.
When the end instruction is received as shown in FIG. 4 (S410), the process is ended.
[0050]
Hereinafter, an example will be described in which a document (in this example, xx standard (Draft)) by a first update instruction is selected and a second update instruction is input. The editor who gives the second update instruction may be the same as or different from the first editor. Also, the terminal 2 may be the same or different. When an update instruction is input for the second time, the process of FIG. 4 is performed again.
[0051]
FIG. 31 is a diagram illustrating a display example of an edit document selection screen including a document according to the first update instruction. This screen is displayed based on the management table in the document database 201 of FIG.
On this screen, XX standard (Draft) is selected, and a display document (similar to FIG. 28) is generated by the update instruction display method of FIG. 18 according to the processing of FIG. indicate.
[0052]
In this state, the editor transmits a second update instruction from the terminal 2. When the annotation system 2 receives a new update instruction, the annotation system 2 newly generates a display document by the update instruction display method shown in FIG. A display example at that time is shown. FIG. 32 is a diagram illustrating a display example (update instruction display method) of the document display screen after the second update instruction is input. For the state reflecting the first update instruction, the second update instruction is displayed.
[0053]
33 to 41 are diagrams showing examples of the second update instruction for each item. The configuration is the same as the first update instruction. However, since the update instruction is generated on the terminal 2 side in the state where the display document similar to FIG. 28 is displayed, the first update instruction tag may be included in the preceding character string or the succeeding character string.
[0054]
The updating document after the update instruction execution process (S407) for the second update instruction is illustrated. FIG. 41 is a diagram illustrating an example of an XML document in which a second update instruction tag is inserted.
[0055]
When the update instruction reflection method is instructed for the document being updated, a display document is generated by the processing of FIG. 27 and displayed as shown in FIG. FIG. 42 is a diagram illustrating a display example of the document display screen after the second update instruction is input (all update instruction reflecting method).
[0056]
When the editor transmits an update confirmation instruction from the terminal 2, the second update instruction is registered in the document database 201 according to the above-described processing. FIG. 43 is a diagram illustrating a configuration example of the management table in the document database after the second update instruction is registered. In this example, OTSU. The UPI includes the second update instruction shown in FIGS.
[0057]
Embodiment 2. FIG.
In the following, display processing of a document including an update instruction twice (in this example, xx standard (better)) will be described. When the edited document is selected in the state shown in FIG. 43, an edited document selection screen shown in FIG. 44 is displayed. FIG. 44 is a diagram illustrating a display example of an edit document selection screen including a document according to the second update instruction.
[0058]
When the editor selects the xx standard (end plan) from the terminal 2, the edited document generation unit 203 updates the XML file, DTD file, style sheet file, and update corresponding to the selected edited document ID from the document database 201. The update instruction file for the number of times is acquired, and an edited document is generated. In order from the first time, the update instruction in each update instruction file is inserted into the edit position in the XML document using the update instruction tag. As a result, an editing document similar to that shown in FIG. 41 is generated and stored as an initial updating document.
[0059]
In the present embodiment, a description will be given of a form in which a display document is generated by the multiple update instruction display method based on the document being updated in the state of FIG.
FIG. 45 is a diagram showing a display example (multiple update instruction display method) of a document display screen of an XML document including first and second update instructions. This method is a method of displaying a plurality of update instructions using different display decorations. In this example, the display decoration for the first update instruction is different from the display decoration for the second update instruction. The first update instruction in which the edit type is deletion is displayed as a subscript, and the first update instruction in which the edit type is insertion is displayed as a superscript. In addition, the second update instruction whose edit type is deletion is displayed with a strike-through line, and the second update instruction whose edit type is insertion is displayed with an underline. Other than this form, any display decoration that can be distinguished from each other is acceptable. For example, it is also effective to color-code the update stage (times) and update type (deletion, insertion), or to change the font or character size.
[0060]
Next, a display document generation process using the multiple update instruction display method will be described. FIG. 46 is a diagram showing a display document generation processing flow based on the multiple update instruction display method. In this method, a process for displaying a precondition update instruction (first update instruction in the above example) and a process for displaying the latest update instruction (second update instruction in the above example) Do.
The display document generation unit 205 acquires the update instruction count N from the document database 201 (S4601). If the update instruction count N = 0 (S4602), the process ends. When the update instruction count N = 1 (S4603), the update instruction reflection process and the premise update instruction display process are omitted, and the latest update instruction display process is performed. When the number of update instructions N> 2 (S4604), the update instruction reflection process (S4606) is repeated from the first update instruction to the N-2th (S4605). The update instruction reflecting process is as shown in FIG. However, if there is no further update instruction, update instruction tags that do not affect the display (deletion start tag <deleteX>, deletion end tag </ deleteX>, insertion start tag <insertX>, insertion end tag </ insertX >) Without copying.
Thereafter, for the N-1th update instruction (S4608), an update instruction display (update instruction stage) X = N-1 is performed, and a premise update instruction display process (S4609) is performed. This process will be described later with reference to FIG.
Finally, for the Nth update instruction (S4610), the update instruction display (update instruction stage) X = N is performed, and the latest update instruction display process (S4611) is performed. This process will be described later with reference to FIG.
In this example, the processing flow in which the premise update instruction is the N-1th update instruction and the latest update instruction is the Nth update instruction has been described, but for example, N-3 to N-1, or 1 to N As in -1, processing may be performed using update instructions for a plurality of times as precondition update instructions. In that case, a prerequisite update instruction display process is performed for each update instruction in each update stage. Further, as in N-1 and N, the processing may be performed using update instructions for a plurality of times as the latest update instructions. In this case, the latest update instruction display process is performed for each update instruction at each update stage.
In this way, it is also effective to freely set the premise update instruction and the latest update instruction stage (times) as long as the premise update instruction stage (times) and the latest update instruction stage (times) do not overlap. It is.
[0061]
FIG. 47 is a diagram showing a premise update instruction display processing flow.
Character or tag units are sequentially read from the original document storage buffer (S4701), and the following processing is repeated. If a character has been read (S4702), the read character is copied to the destination document storage buffer (S4703). If a tag has been read, it is determined whether the read tag is a deletion start tag <deleteX> (S4704). In the case of the deletion start tag <deleteX>, a precondition deletion mode display process (S4705) is performed. The precondition deletion mode display process will be described later with reference to FIG.
It is determined whether the read tag is an insertion start tag <insertX> (S4706). If the inserted tag is an insertion start tag <insertX>, a prerequisite insertion mode display process (S4707) is performed. This process will be described later with reference to FIG.
If the read tag is another tag, the read tag is copied to the previous document storage buffer (S4708).
The process ends when all the characters or tag units are read (S4709).
[0062]
FIG. 48 is a diagram showing a premise deletion mode display processing flow.
The deletion start tag <deleteX> is changed to a subscript start tag <SUB>, written to the destination document storage buffer (S4801), and the next character or tag unit is read from the original document storage buffer (S4802). If a character has been read (S4803), the read character is copied to the previous document storage buffer (S4804).
When the deletion end tag </ deleteX> has been read (S4805), the deletion end tag </ deleteX> is changed to a subscript end tag </ SUB> and written to the destination document storage buffer (S4806), and the processing ends. .
When another tag is read, the read tag is copied to the previous document storage buffer (S4807), and the process proceeds to the next reading (S4802).
[0063]
FIG. 49 is a diagram showing a premise insertion mode display processing flow.
The read insertion start tag <insertX> is changed to a superscript start tag <SUP>, written to the destination document storage buffer (S4901), and the next character or tag unit is read from the original document storage buffer (S4902). If a character has been read (S4903), the read character is copied to the previous document storage buffer (S4904).
When the insertion end tag </ insertX> has been read (S4905), the insertion end tag </ insertX> is changed to a superscript end tag </ SUP>, written to the destination document storage buffer (S4906), and the process ends. .
When another tag is read, the read tag is copied to the previous document storage buffer (S4907), and the process proceeds to the next reading (S4902).
[0064]
Next, the latest update instruction display process (S4611) of FIG. 46 will be described in detail. FIG. 50 is a diagram showing the latest update instruction display processing flow.
Character or tag units are sequentially read from the original document storage buffer (S5001), and the following processing is repeated. If a character is read (S5002), the read character is copied to the destination document storage buffer (S5003). When the tag is read, it is determined whether the read tag is a deletion start tag <deleteX> (S5004). In the case of the deletion start tag <deleteX>, the latest deletion mode display process (S5005) is performed. This process will be described later with reference to FIG.
It is determined whether the read tag is an insertion start tag <insertX> (S5006). If it is an insertion start tag <insertX>, the latest insertion mode display process (S5007) is performed. This process will be described later with reference to FIG.
If the read tag is another tag, the read tag is copied to the previous document storage buffer (S5008).
The process ends when all character or tag units are read (S5009).
[0065]
FIG. 51 is a diagram showing the latest deletion mode display processing flow.
The read deletion start tag <deleteX> is changed to a strikethrough start tag <STRIKE>, written to the previous document storage buffer (S5101), and the next character or tag unit is read from the original document storage buffer (S5102). If a character has been read (S5103), the read character is copied to the destination document storage buffer (S5104).
In the processing from S5105 to S5110, the latest update instruction to delete the character string before and after the character string deleted by the premise update instruction is executed, as in the sentence 4501 in FIG. 45 (corresponding to the item 4101 in FIG. 41). This is a process for displaying. If a strike-through line is drawn as the latest update instruction display for the part deleted by the premise update instruction, such as the “general” part of the 4501 sentence, that part (“general”) is displayed as the latest update instruction. Give the impression of deleting. Therefore, in this example, processing for canceling the strikethrough mode is performed on the subscript character string.
When the subscript start tag <SUB> is read (S5105), the strikethrough end tag </ STRIKE> is written in the destination document storage buffer (S5106), and then the subscript start tag <SUB> is copied. (S5107).
When the subscript end tag </ SUB> is read (S5108), the subscript end tag </ SUB> is copied to the destination document storage buffer (S5109), and then a strikethrough start tag <STRIKE> is written ( S5110).
If the deletion end tag </ deleteX> has been read (S5111), the deletion end tag </ deleteX> is changed to a strikethrough end tag </ STRIKE>, written to the destination document storage buffer (S5112), and the processing ends. .
When another tag is read, the read tag is copied to the previous document storage buffer (S5113), and the process proceeds to the next reading (S5102).
[0066]
FIG. 52 is a diagram showing the latest insertion mode display processing flow.
In this process, as in the sentence 4502 in FIG. 45 (corresponding to the item 4102 in FIG. 41), the latest update instruction for inserting a new character string into the character string inserted in the premise update instruction is displayed. It is processing of. When the character string “standard class” inserted in the latest update instruction is displayed as an underline with the superscript, for the part inserted in the premise update instruction as in the “standard creation” part of the 4502 sentence, the part ( "Standards") gives the impression that it was inserted in the premise update instruction. Therefore, in this example, when the superscript mode is in effect, processing for canceling the superscript mode is performed.
The superscript start tag <SUP> or superscript end tag </ SUP> that is closest to the read insertion start tag <insertX> is searched from the original document storage buffer (S5201). If the search result is the superscript start tag <SUP>, it is determined that the superscript mode is in progress (S5202). For example, the insertion start tag <insert1> of 4102 in FIG. 41 is converted to <SUP> in the premise insertion mode display process (FIG. 49), and the insertion end tag </ insert1> is also converted to </ SUP>. Assuming a state, when the insertion start tag <insert2> is read, if there is a superscript start tag <SUP> instead of a superscript end tag </ SUP>, it is in superscript mode. It can be seen that it is.
If it is in the superscript mode, the superscript end tag </ SUP> is written in the destination document storage buffer (S5203).
Thereafter, the insertion start tag <insertX> is changed to an underline start tag <U> (S5204), written to the previous document storage buffer, and the next character or tag unit is read from the original document storage buffer (S5205). If a character is read (S5206), the read character is copied to the destination document storage buffer (S5207).
If a tag other than the insertion end tag </ insertX> is read (S5208), the read tag is copied to the previous document storage buffer (S5209), and the process proceeds to the next reading (S5205).
When the insertion end tag </ insertX> is read (S5208), the insertion end tag </ insertX> is changed to the underline end tag </ U> and written to the previous document storage buffer (S5210).
If the superscript mode is in effect (S5211), the superscript start tag <SUP> is written in the previous document storage buffer (S5212), and the process ends.
[0067]
In the above-described example, the processing is performed so as to remove the update instruction tag that does not affect the display, but the processing may be performed so that the update instruction tag is left as in the first embodiment. This is effective in that a further update instruction can be input.
[0068]
Embodiment 3 FIG.
In the second embodiment, all the update instructions included in the update instruction file are displayed for the update instruction that is a prerequisite. In the present embodiment, in addition to the latest update instruction, a description will be given of a form in which only those related to the latest update instruction among the premise update instructions are displayed. That is, in the present embodiment, the update instructions that are not related to the latest update instruction are not displayed.
Specifically, in the second embodiment, processing for displaying all the update instructions in FIGS. 9 to 16 included in the first update instruction file (KOU.UPI) is performed. In contrast, in the third embodiment, among the update instructions in FIGS. 9 to 16 included in the first update instruction file (KOU.UPI), a figure included in the second update instruction file (OTSU.UPI). Processing for display is performed only for the update portion (FIGS. 9 to 14) in which at least a part of the update portion according to the update instruction from 33 to FIG. 40 overlaps.
[0069]
The example of a display by the latest update instruction | indication and related update instruction | indication display system which concerns on this Embodiment is shown. FIG. 53 is a diagram showing a display example (latest update instruction and related update instruction display method) of an XML document including the first and second update instructions.
Compared with the display example of the second embodiment (FIG. 45), the deletion of “others” by the first update instruction (FIG. 15) is not displayed, and the update instruction is ignored and treated as having been absent ( 4507, 5307). Also, the insertion of “document” by the first update instruction (FIG. 16) is not displayed, and the update instruction is ignored and treated as having not been present (4507, 5307).
By handling in this way, it is possible to confirm only the contents of the latest update instruction, and it is also possible to confirm related update instructions necessary for grasping the latest update instruction. In addition, it ignores the premise update instructions unrelated to the latest update instructions and shows the contents before the premise update instructions for that part, so when checking only the contents of the latest update instructions, no extra update instructions are displayed. Is particularly good.
[0070]
Display document generation processing by the latest update instruction and related update instruction display method will be described. FIG. 54 is a diagram showing a display document generation processing flow based on the latest update instruction and related update instruction display method.
The display document generation unit 205 acquires the update instruction count N from the document database 201 (S5401). If the update instruction count N = 0 (S5402), the process ends. When the update instruction count N = 1 (S5403), the update instruction reflection process and the related update instruction display process are omitted, and the latest update instruction display process is performed. If the number of update instructions N> 2 (S5404), the update instruction reflection process (S5406) is repeated from the first update instruction to the N-2th (S5405). The update instruction reflecting process is as shown in FIG. However, if there is no further update instruction, update instruction tags that do not affect the display (deletion start tag <deleteX>, deletion end tag </ deleteX>, insertion start tag <insertX>, insertion end tag </ insertX >) Without copying.
Thereafter, for the N-1th update instruction (S5408), the update instruction display (update instruction stage) X = N-1 is performed, and related update instruction display processing (S5409) is performed. This process will be described later with reference to FIG.
Finally, for the Nth update instruction (S5410), the update instruction display (update instruction stage) X = N is performed, and the latest update instruction display process (S5411) is performed. This process is the same as that in FIG.
[0071]
FIG. 55 is a diagram showing a related update instruction display processing flow.
Character or tag units are read sequentially from the original document storage buffer (S5501), and the following processing is repeated. If a character has been read (S5502), the read character is copied to the destination document storage buffer (S5503). If the tag is read, it is determined whether the read tag is a deletion start tag <deleteX> (S5504). In the case of the deletion start tag <deleteX>, the related deletion mode display process (S5505) is performed. The prerequisite deletion mode display process will be described later with reference to FIG.
It is determined whether the read tag is an insertion start tag <insertX> (S5506). If the tag is an insertion start tag <insertX>, a related insertion mode display process (S5507) is performed. This process will be described later with reference to FIG.
If the read tag is another tag, the read tag is copied to the previous document storage buffer (S5508).
The process ends when all character or tag units have been read (S5509).
[0072]
FIG. 56 is a diagram showing a related deletion mode display processing flow.
Deletion start tag <delete (X + 1)> or deletion end tag </ delete (X + 1)> of the latest update instruction closest to the read start tag <deleteX> in the original document storage buffer Is searched (S5601). If the search result is the deletion start tag <delete (X + 1)>, it is determined that the latest update instruction is in the delete mode (S5602). When the deletion start tag <delete1> of the sentence 4101 of the document under update shown in FIG. 41 is read, if there is a deletion start tag <delete2> instead of the deletion end tag </ delete2> in front of it It can be seen that the latest update instruction deletion mode is in progress. On the other hand, when the deletion start tag <delete1> of the sentence 4107 of the document being updated shown in FIG. 41 is read, there is neither a deletion start tag <delete2> nor a deletion end tag </ delete2> in front of it. It can be seen that there is no update instruction deletion mode.
When the latest update instruction deletion mode is in progress (an example in which at least a part of the update part according to the latest update instruction overlaps with the update part), delete mode display processing (S5603) is performed. This process will be described later with reference to FIG. On the other hand, when it is not in the delete mode of the latest update instruction (example in which the update part by the latest update instruction and the update part do not overlap at all), the deletion mode non-reflecting process (S5604) is performed. This process will be described later with reference to FIG.
[0073]
FIG. 57 is a diagram showing a deletion mode display processing flow.
The read deletion start tag <deleteX> is changed to a subscript start tag <SUB>, written to the destination document storage buffer (S5701), and the next character or tag unit is read from the original document storage buffer (S5702). If a character has been read (S5703), the read character is copied to the previous document storage buffer (S5704).
When the deletion end tag </ deleteX> is read (S5705), the deletion end tag </ deleteX> is changed to a subscript end tag </ SUB> and written to the destination document storage buffer (S5706), and the processing ends. .
If another tag is read, the read tag is copied to the previous document storage buffer (S5707), and the process proceeds to the next reading (S5702).
[0074]
FIG. 58 is a diagram showing a deletion mode non-reflecting process flow.
The read deletion start tag <deleteX> is not copied to the previous document storage buffer (S5801), but the next character or tag unit is read from the original document storage buffer (S5802). If a character has been read (S5803), the read character is copied to the previous document storage buffer (S5804).
If the deletion end tag </ deleteX> has been read (S5805), the read deletion end tag </ deleteX> is not copied to the previous document storage buffer (S5807), and the process ends.
If another tag is read, the read tag is copied to the previous document storage buffer (S5807), and the process proceeds to the next reading (S5802).
[0075]
The related insertion mode display process (S5507) shown in FIG. 55 will be described. FIG. 59 is a diagram showing a related insertion mode display processing flow.
The latest update instruction insertion start tag <insert (X + 1)> is searched between the read insertion start tag <insertX> and the corresponding insertion end tag </ insertX> in the original document storage buffer (S5901). ). If there is an insertion start tag <insert (X + 1)>, it is determined that the insertion mode of the latest update instruction is included (S5902). When the insertion start tag <insert1> of the sentence 4102 of the document being updated shown in FIG. 41 is read, the insertion start tag <insert2> of the latest update instruction is inserted between the corresponding insertion end tags </ insert1>. Since there is, it can be seen that the insertion mode of the latest update instruction is included. On the other hand, when the insertion start tag <insert1> of the sentence 4107 of the document being updated shown in FIG. 41 is read, the insertion start tag <insert2 of the latest update instruction is inserted between the corresponding insertion end tags </ insert1>. Since there is no>, it is understood that the insertion mode of the latest update instruction is not included.
When the insertion mode of the latest update instruction is included (an example in which the update part according to the latest update instruction and at least a part of the update part overlap), the insertion mode display process (S5907) is performed. This process will be described later with reference to FIG.
[0076]
Next, the deletion start tag <delete (X + 1)> or the deletion end tag </ delete (X +) of the latest update instruction closest to the read insertion start tag <insertX> in the original document storage buffer. 1)> is searched (S5903). If the search result is the deletion start tag <delete (X + 1)>, it is determined that the latest update instruction is in the delete mode (S5904). When the delete insertion tag <insert1> of the sentences 4103 and 4105 of the document being updated shown in FIG. 41 is read, there is a deletion start tag <delete2> instead of the deletion end tag </ delete2> in front of it. It can be seen that the deletion mode of the latest update instruction is in progress. On the other hand, when the insertion start tag <insert1> of the sentence 4107 of the document being updated shown in FIG. 41 is read, there is neither a deletion start tag <delete2> nor a deletion end tag </ delete2> in front of it. It can be seen that there is no update instruction deletion mode.
When the latest update instruction deletion mode is in progress (an example in which the update part according to the latest update instruction overlaps at least part of the update part), the insertion mode display process (S5907) is performed.
[0077]
A deletion start tag <delete (X + 1)> of the latest update instruction is searched between the read insertion start tag <insertX> and the corresponding insertion end tag </ insertX> in the original document storage buffer (S5905). ). If there is a deletion start tag <delete (X + 1)>, it is determined that the deletion mode of the latest update instruction is included (S5906). When the insertion start tag <insert1> of the sentences 4104 and 4106 of the document being updated shown in FIG. 41 is read, the deletion start tag <delete2 of the latest update instruction is inserted between the corresponding insertion end tags </ insert1>. >, It is understood that the deletion mode of the latest update instruction is included. On the other hand, when the insertion start tag <insert1> of the sentence 4107 of the document being updated shown in FIG. 41 is read, the deletion start tag <delete2 of the latest update instruction is inserted between the corresponding insertion end tags </ insert1>. Since there is no>, it can be seen that the latest update instruction deletion mode is not included.
When the deletion mode of the latest update instruction is included (an example in which the update part by the latest update instruction and at least a part of the update part overlap), the insertion mode display process (S5907) is performed.
[0078]
If none of the above determinations (S5902, S5904, S5906) is applicable (an example in which the update part by the latest update instruction and the update part do not overlap at all), the insertion mode non-reflecting process (S5908) is performed. Do. This process will be described later with reference to FIG.
[0079]
FIG. 60 is a diagram showing an insertion mode display processing flow.
The read insertion start tag <insertX> is changed to a superscript start tag <SUP>, written to the destination document storage buffer (S6001), and the next character or tag unit is read from the original document storage buffer (S6002). If a character is read (S6003), the read character is copied to the previous document storage buffer (S6004).
When the insertion end tag </ insertX> is read (S6005), the insertion end tag </ insertX> is changed to a superscript end tag </ SUP>, written to the destination document storage buffer (S6006), and the process ends. .
When another tag is read, the read tag is copied to the previous document storage buffer (S6007), and the process proceeds to the next reading (S6002).
[0080]
FIG. 61 is a diagram showing an insertion mode non-reflecting process flow.
The read insertion start tag <insertX> is not copied to the previous document storage buffer (S6101), and the next character or tag unit is read from the original document storage buffer (S6102). If a character is read (S6103), the read character is not copied to the previous document storage buffer (S6104), and the process proceeds to the next reading (S6102).
When the insertion end tag </ insertX> is read (S6105), the read insertion end tag </ insertX> is not copied to the previous document storage buffer (S6106), and the process ends.
When another tag is read, the read tag is copied to the previous document storage buffer (S6107), and the process proceeds to the next reading (S6102).
[0081]
In the above-described example, the processing is performed so as to remove the update instruction tag that does not affect the display, but the processing may be performed so that the update instruction tag is left as in the first embodiment. This is effective in that a further update instruction can be input.
[0082]
Embodiment 4 FIG.
The editing position described above is obtained by sequentially extracting tags for specifying the document structure from the beginning of the document. As an editing position specifying method, identification information (for example, a chapter or a section) of sentence structure units (in this example) Then “ It is also effective to use <no> ”and“ 1.1 ”.
For example, the editing position (tag) in FIG. <section><ss1><p>, editing position: <section><no> 1. <ss1><no> 1.1 <p> and the editing position (tag) in FIG. 13: <section><ss1><p><ss1><p><ss1><p><ss1><p><ss1><p>, editing position: <section><no> 1. <ss1><no> 1.5 It can be expressed as <p>. The same applies to the second and subsequent update instructions. As described above, the update instruction execution unit 211 performs editing by comparing the document structure tag that designates the editing position with the document structure tag included in the document being updated stored in the document document being updated. Specify a term (an example of a structural unit on a document). In this example, the identification information of the structural unit of the document structure tag that specifies the editing position (for example, By searching for <no> 1.1), the item to be edited can be specified.
[0083]
An annotation system 1 (an example of a structured document update management device) is a computer, and each element can execute processing by a program. Further, the program can be stored in a storage medium so that the computer can read the program from the storage medium.
[0084]
【The invention's effect】
From the document database, the original structured document (XX standard in the example), the first update instruction (KOU.UPI in the example) corresponding to the original structured document, and the second update instruction (OTSU. In the example). UPI), and an edit document (FIG. 41 in the example) is generated by using the second update instruction tag at the edit position in the structured document in which the first update instruction has been inserted, Since the first update instruction tag is converted into the first display decoration tag (the premise update instruction display processing in S4609 in the example), the second update instruction tag in the edited document is converted into the second display decoration tag. (The latest update instruction display process of S4611), the update instruction contents for each update stage can be identified and confirmed.
[0085]
The display document generation unit includes a first update instruction tag sandwiched between a start tag and an end tag of the first update instruction tag among the first update instruction tags in the edited document. Since only the first update instruction tag that overlaps at least partly with the second update instruction region sandwiched between the start tag and the end tag is converted into the first display decoration tag (related update instruction display processing in S5409), Only information necessary for grasping the intention of the latest update instruction can be displayed.
[0086]
The display document generation unit performs a non-reflection process for displaying a state in which there is no update instruction for the first update instruction that is not converted to the first display decoration tag (the deletion mode non-reflection process of S5604, Since the deletion mode non-reflecting process in S5908), an update instruction unnecessary for grasping the intention of the latest update instruction can be eliminated.
[0087]
Since each display decoration tag is a tag with a different decoration that can be distinguished from each other for display, there is no confusion between the premise update instruction and the latest update instruction.
[Brief description of the drawings]
FIG. 1 is a diagram showing a network environment of an annotation system.
FIG. 2 is a diagram illustrating a configuration example of an annotation system.
FIG. 3 is a diagram illustrating a configuration example of a management table in a document database.
FIG. 4 is a diagram showing an overall processing flow of document editing processing.
FIG. 5 is a diagram showing a display example of an edited document selection screen.
FIG. 6 is a diagram illustrating an example of an XML document that is an edited document.
FIG. 7 is a diagram illustrating a display example of a document display screen based on an initial document being updated.
FIG. 8 is a diagram illustrating a display example (update instruction display method) of a document display screen after a first update instruction is input.
FIG. 9 is a diagram illustrating an example of a first update instruction for a term of 1.1.
FIG. 10 is a diagram illustrating an example of a first update instruction for a term of 1.2.
FIG. 11 is a diagram illustrating an example of a first update instruction for a term of 1.3.
FIG. 12 is a diagram illustrating an example of a first update instruction for a term of 1.4.
FIG. 13 is a diagram illustrating an example of a first update instruction for a term of 1.5.
FIG. 14 is a diagram illustrating an example of a first update instruction for a term of 1.6.
FIG. 15 is a diagram illustrating an example of a first update instruction (deletion) for the item of 1.7;
FIG. 16 is a diagram illustrating an example of a first update instruction (insertion) for a term of 1.7.
FIG. 17 is a diagram illustrating an example of an XML document in which a first update instruction tag is inserted.
FIG. 18 is a diagram illustrating a display document generation processing flow according to an update instruction display method.
FIG. 19 is a diagram showing an update instruction reflecting process flow;
FIG. 20 is a diagram showing a deletion mode reflection processing flow;
FIG. 21 is a diagram showing an insertion mode reflection processing flow;
FIG. 22 is a diagram showing an update instruction display processing flow.
FIG. 23 is a diagram showing a deletion mode display processing flow;
FIG. 24 is a diagram showing an insertion mode display processing flow.
FIG. 25 is a diagram illustrating a display document related to a first update instruction according to an update instruction display method.
FIG. 26 is a diagram illustrating an example of a configuration part related to a change in display method.
FIG. 27 is a diagram showing a display document generation processing flow based on the all update instruction reflection method;
FIG. 28 is a diagram showing a display document related to a first update instruction by the all update instruction reflection method;
FIG. 29 is a diagram showing a display example (all update instruction reflecting method) of the document display screen after the first update instruction is input.
FIG. 30 is a diagram showing a configuration example of a management table in a document database after a first update instruction is registered.
FIG. 31 is a diagram showing a display example of an edit document selection screen including a document in response to a first update instruction.
FIG. 32 is a diagram illustrating a display example (update instruction display method) of a document display screen after a second update instruction is input.
FIG. 33 is a diagram illustrating an example of a second update instruction for the item 1.1.
FIG. 34 is a diagram illustrating an example of a second update instruction for a term of 1.2.
FIG. 35 is a diagram illustrating an example of a second update instruction for the item of 1.3.
FIG. 36 is a diagram illustrating an example of a second update instruction for the item of 1.4.
FIG. 37 is a diagram illustrating an example of a second update instruction for a term of 1.5.
FIG. 38 is a diagram illustrating an example of a second update instruction for a term of 1.6.
FIG. 39 is a diagram illustrating an example of a second update instruction (insertion) for the item of 1.7.
FIG. 40 is a diagram illustrating an example of a second update instruction (deletion) for the item of 1.7.
FIG. 41 is a diagram illustrating an example of an XML document in which a second update instruction tag is inserted.
FIG. 42 is a diagram illustrating a display example (all update instruction reflecting method) of a document display screen after a second update instruction is input.
FIG. 43 is a diagram showing a configuration example of a management table in a document database after registering a second update instruction.
FIG. 44 is a diagram showing a display example of an edited document selection screen including a document according to a second update instruction.
FIG. 45 is a diagram illustrating a display example (multiple update instruction display method) of a document display screen of an XML document including first and second update instructions.
FIG. 46 is a diagram illustrating a display document generation processing flow based on a multiple update instruction display method.
FIG. 47 is a diagram illustrating a premise update instruction display processing flow.
FIG. 48 is a diagram showing a precondition deletion mode display processing flow.
FIG. 49 is a diagram showing a precondition insertion mode display processing flow.
FIG. 50 is a diagram illustrating a latest update instruction display processing flow.
FIG. 51 is a diagram showing a latest deletion mode display processing flow;
FIG. 52 is a diagram showing a latest insertion mode display processing flow.
FIG. 53 is a diagram showing a display example (latest update instruction and related update instruction display method) of an XML document including first and second update instructions.
FIG. 54 is a diagram showing a display document generation processing flow based on a latest update instruction and related update instruction display method.
FIG. 55 is a diagram showing a related update instruction display processing flow.
FIG. 56 is a diagram showing a related deletion mode display processing flow;
FIG. 57 is a diagram showing a deletion mode display processing flow;
FIG. 58 is a diagram showing a deletion mode non-reflecting process flow;
FIG. 59 is a diagram showing a related insertion mode display processing flow.
FIG. 60 is a diagram showing an insertion mode display processing flow.
FIG. 61 is a diagram showing an insertion mode non-reflection process flow;
[Explanation of symbols]
201 Document Database, 202 Edited Document Selection Unit, 203 Edited Document Generation Unit, 204 Updating Document Storage Unit, 205 Display Document Generation Unit, 206 Document Transmission Unit, 207 Update Instruction Generation Program Distribution Unit, 208 Update Instruction Generation Program Storage Unit 209 Update instruction reception unit 210 Update instruction storage unit 211 Update instruction execution unit 212 Update confirmation processing unit 213 Display method input unit

Claims (8)

複数段階の更新指示を含む構造化文書を表示用文書に変換し、表示用文書を出力する構造化文書更新管理装置であって、以下の要素を有することを特徴とする構造化文書更新管理装置
(1)文書の構造を特定する文書構造タグを用いて記述された元構造化文書と、
元構造化文書に対する更新指示であって、文書構造タグと、元構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第一の更新指示と、
前記第一の更新指示を元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入した構造化文書に対する更新指示であって、文書構造タグと、第一の更新指示を挿入した構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第二の更新指示とを対応付けて記憶する為の文書データベース
(2)文書データベースから、元構造化文書と、元構造化文書に対応する第一の更新指示と第二の更新指示を取得し、取得した第一の更新指示を、取得した元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入し、
更に、取得した第二の更新指示を、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書を生成する編集文書生成部
(3)編集文書中の第一の更新指示タグを第一の表示装飾タグに変換し、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換することによって、表示用文書を生成する表示用文書生成部
(4)生成した表示用文書を出力する文書出力部。
A structured document update management apparatus for converting a structured document including a plurality of stages of update instructions into a display document and outputting the display document, the structured document update management apparatus having the following elements: (1) an original structured document described using a document structure tag that identifies the structure of the document;
An update instruction for the original structured document, a first update instruction including an edit position specified by a document structure tag and a position specifying character string extracted from the original structured document;
An update instruction for the structured document in which the first update instruction is inserted at the editing position in the original structured document using the first update instruction tag, and the document structure tag and the first update instruction are inserted. Document database for storing the second update instruction including the editing position designated by the position designation character string extracted from the structured document, and the original structured document from the document database. The first update instruction and the second update instruction corresponding to the original structured document are acquired, and the first update instruction tag is added to the edit position in the acquired original structured document. Insert with
Further, an edit document generation for generating an edit document by inserting the acquired second update instruction into an edit position in the structured document in which the first update instruction is inserted using the second update instruction tag (3) The first update instruction tag in the edited document is converted into a first display decoration tag, and the second update instruction tag in the edited document is converted into a second display decoration tag. Display document generation unit for generating a document (4) Document output unit for outputting the generated display document.
表示用文書生成部は、編集文書中の第一の更新指示タグのうち、第一の更新指示タグの開始タグと終了タグにより挟まれた第一の更新指示領域が、第二の更新指示タグ開始タグと終了タグにより挟まれた第二の更新指示領域と少なくとも一部が重複する第一の更新指示タグのみを第一の表示装飾タグに変換することを特徴とすることを特徴する請求項1記載の構造化文書更新管理装置。  The display document generation unit includes a first update instruction tag sandwiched between a start tag and an end tag of the first update instruction tag among the first update instruction tags in the edited document. The first update instruction tag that is at least partially overlapped with the second update instruction area sandwiched between the start tag and the end tag is converted into the first display decoration tag. 1. The structured document update management device according to 1. 表示用文書生成部は、第一の表示装飾タグに変換しない第一の更新指示について、当該更新指示が無かった状態を表示させるための非反映処理を行うことを特徴とする請求項2記載の構造化文書更新管理装置。  The display document generation unit performs a non-reflecting process for displaying a state in which there is no update instruction for the first update instruction that is not converted to the first display decoration tag. Structured document update management device. 第一の更新指示と第二の更新指示は、それぞれ少なくとも削除と挿入を含む編集種別を含み、編集種別が削除である第一の更新指示タグから変換される第一の削除表示用装飾タグと、編集種別が挿入である第一の更新指示タグから変換される第一の挿入表示用装飾タグと、編集種別が削除である第二の更新指示タグから変換される第二の削除表示用装飾タグと、編集種別が挿入である第二の更新指示タグから変換される第二の挿入表示用装飾タグとは、それぞれ表示上区別可能な異なる装飾のタグであることを特徴とする請求項1に記載の構造化文書更新管理装置。  The first update instruction and the second update instruction each include at least an edit type including deletion and insertion, and a first delete display decoration tag converted from the first update instruction tag whose edit type is deletion, The first insertion display decoration tag converted from the first update instruction tag whose edit type is insertion and the second deletion display decoration converted from the second update instruction tag whose edit type is deletion The tag and a second insertion display decoration tag converted from a second update instruction tag whose edit type is insertion are different decoration tags that can be distinguished from each other on display. Structured document update management device described in 1. 文書出力部は、構造化文書を表示するためのブラウザを備えた装置へ送信することを特徴とする請求項1記載の構造化文書更新管理装置。  2. The structured document update management apparatus according to claim 1, wherein the document output unit transmits to a device having a browser for displaying the structured document. 文書の構造を特定する文書構造タグを用いて記述された元構造化文書と、元構造化文書に対する更新指示であって、文書構造タグと、元構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第一の更新指示と、前記第一の更新指示を元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入した構造化文書に対する更新指示であって、文書構造タグと、第一の更新指示を挿入した構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第二の更新指示とを対応付けて記憶する為の文書データベースにアクセス可能な構造化文書更新管理装置による構造化文書更新管理方法であって、以下の要素を有することを特徴とする構造化文書更新管理方法
(1)構造化文書更新管理装置が備える編集文書生成部が、文書データベースから、元構造化文書と、元構造化文書に対応する第一の更新指示と第二の更新指示を取得し、取得した第一の更新指示を、取得した元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入し、
更に、取得した第二の更新指示を、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書を生成する工程
(2)構造化文書更新管理装置が備える表示用文書生成部が、編集文書中の第一の更新指示タグを第一の表示装飾タグに変換し、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換することによって、表示用文書を生成する工程
(3)構造化文書更新管理装置が備える文書出力部が、生成した表示用文書を出力する工程。
An original structured document described using a document structure tag that specifies the structure of the document, and an update instruction for the original structured document, the document structure tag and a position-specified character string extracted from the original structured document The first update instruction including the edit position designated by the above and the update instruction for the structured document in which the first update instruction is inserted at the edit position in the original structured document using the first update instruction tag The document structure tag and the second update instruction including the editing position designated by the position designation character string extracted from the structured document in which the first update instruction is inserted are stored in association with each other. Structured document update management method using a structured document update management apparatus capable of accessing a document database for the purpose, comprising the following elements: (1) Structured document update management apparatus Prepare for Collecting document generation unit, from the document database, and the original structured document, to obtain a first update instruction and a second update instruction corresponding to the original structured document, the first update instruction obtained, and acquisition source Insert the first update instruction tag at the editing position in the structured document,
Further, a step (2) of generating an edited document by inserting the acquired second update instruction into an edit position in the structured document in which the first update instruction is inserted using the second update instruction tag. ) The display document generation unit provided in the structured document update management device converts the first update instruction tag in the edited document into the first display decoration tag, and converts the second update instruction tag in the edited document to the second (3) A step in which the document output unit provided in the structured document update management device outputs the generated display document.
文書の構造を特定する文書構造タグを用いて記述された元構造化文書と、元構造化文書に対する更新指示であって、文書構造タグと、元構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第一の更新指示と、前記第一の更新指示を元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入した構造化文書に対する更新指示であって、文書構造タグと、第一の更新指示を挿入した構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第二の更新指示とを対応付けて記憶する為の文書データベースにアクセス可能な構造化文書更新管理装置となるコンピュータに、以下の処理を実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体
(1)構造化文書更新管理装置が備える編集文書生成部が、文書データベースから、元構造化文書と、元構造化文書に対応する第一の更新指示と第二の更新指示を取得し、取得した第一の更新指示を、取得した元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入し、
更に、取得した第二の更新指示を、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書を生成する処理
(2)構造化文書更新管理装置が備える表示用文書生成部が、編集文書中の第一の更新指示タグを第一の表示装飾タグに変換し、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換することによって、表示用文書を生成する処理
(3)構造化文書更新管理装置が備える文書出力部が、生成した表示用文書を出力する処理。
An original structured document described using a document structure tag that specifies the structure of the document, and an update instruction for the original structured document, the document structure tag and a position-specified character string extracted from the original structured document The first update instruction including the edit position designated by the above and the update instruction for the structured document in which the first update instruction is inserted at the edit position in the original structured document using the first update instruction tag The document structure tag and the second update instruction including the editing position designated by the position designation character string extracted from the structured document in which the first update instruction is inserted are stored in association with each other. the document database to the computer to be accessible structured document updating management device for the following processes a computer-readable recording medium storing a program for executing the (1) structured document updating management instrumentation Editing document generator that comprises, from the document database, and the original structured document, to obtain a first update instruction and a second update instruction corresponding to the original structured document, the first update instruction obtained, obtains Inserted at the editing position in the original structured document using the first update instruction tag,
Further, a process of generating an edited document by inserting the acquired second update instruction into the editing position in the structured document in which the first update instruction is inserted using the second update instruction tag (2 ) The display document generation unit provided in the structured document update management device converts the first update instruction tag in the edited document into the first display decoration tag, and converts the second update instruction tag in the edited document to the second (3) A process in which the document output unit included in the structured document update management device outputs the generated display document.
文書の構造を特定する文書構造タグを用いて記述された元構造化文書と、元構造化文書に対する更新指示であって、文書構造タグと、元構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第一の更新指示と、前記第一の更新指示を元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入した構造化文書に対する更新指示であって、文書構造タグと、第一の更新指示を挿入した構造化文書から抜き出された位置指定文字列とにより指定された編集位置を含む第二の更新指示とを対応付けて記憶する為の文書データベースにアクセス可能な構造化文書更新管理装置となるコンピュータに、以下の手順を実行させるためのプログラム
(1)構造化文書更新管理装置が備える編集文書生成部が、文書データベースから、元構造化文書と、元構造化文書に対応する第一の更新指示と第二の更新指示を取得し、取得した第一の更新指示を、取得した元構造化文書中の編集位置に、第一の更新指示タグを用いて挿入し、
更に、取得した第二の更新指示を、第一の更新指示を挿入した構造化文書中の編集位置に、第二の更新指示タグを用いて挿入することによって、編集文書を生成する手順
(2)構造化文書更新管理装置が備える表示用文書生成部が、編集文書中の第一の更新指示タグを第一の表示装飾タグに変換し、編集文書中の第二の更新指示タグを第二の表示装飾タグに変換することによって、表示用文書を生成する手順
(3)構造化文書更新管理装置が備える文書出力部が、生成した表示用文書を出力する手順。
An original structured document described using a document structure tag that specifies the structure of the document, and an update instruction for the original structured document, the document structure tag and a position-specified character string extracted from the original structured document The first update instruction including the edit position designated by the above and the update instruction for the structured document in which the first update instruction is inserted at the edit position in the original structured document using the first update instruction tag The document structure tag and the second update instruction including the editing position designated by the position designation character string extracted from the structured document in which the first update instruction is inserted are stored in association with each other. the document database to the computer to be accessible structured document updating management apparatus for, edit document generation unit included in the program (1) structured document updating management apparatus for executing the following steps, the document database The original structured document, the first update instruction and the second update instruction corresponding to the original structured document are acquired, and the acquired first update instruction is set to the editing position in the acquired original structured document. , Insert using the first update instruction tag,
Further, a procedure (2) for generating an edited document by inserting the acquired second update instruction into the edit position in the structured document in which the first update instruction has been inserted, using the second update instruction tag. ) The display document generation unit provided in the structured document update management device converts the first update instruction tag in the edited document into the first display decoration tag, and converts the second update instruction tag in the edited document to the second (3) A procedure in which the document output unit provided in the structured document update management device outputs the generated display document.
JP2002304168A 2001-10-12 2002-10-18 Structured document update management device, structured document update management method, computer-readable recording medium storing program, and program Expired - Fee Related JP3772142B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2002304168A JP3772142B2 (en) 2002-10-18 2002-10-18 Structured document update management device, structured document update management method, computer-readable recording medium storing program, and program
US11/141,392 US20050217112A1 (en) 2001-10-12 2005-06-01 Steering wheel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002304168A JP3772142B2 (en) 2002-10-18 2002-10-18 Structured document update management device, structured document update management method, computer-readable recording medium storing program, and program

Publications (2)

Publication Number Publication Date
JP2004139395A JP2004139395A (en) 2004-05-13
JP3772142B2 true JP3772142B2 (en) 2006-05-10

Family

ID=32451672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002304168A Expired - Fee Related JP3772142B2 (en) 2001-10-12 2002-10-18 Structured document update management device, structured document update management method, computer-readable recording medium storing program, and program

Country Status (1)

Country Link
JP (1) JP3772142B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100733054B1 (en) 2005-07-27 2007-06-27 주식회사 유텍 Document Conversion System Using Synchronization of Structured Documents, And It's Method
JP5391738B2 (en) * 2009-03-02 2014-01-15 富士通株式会社 Annotation program, annotation apparatus, and annotation method

Also Published As

Publication number Publication date
JP2004139395A (en) 2004-05-13

Similar Documents

Publication Publication Date Title
US10528650B2 (en) User interface for presentation of a document
US6212537B1 (en) Document searching system for multilingual documents
US6247029B1 (en) Web browser form enhancements
US7069501B2 (en) Structured document processing system and structured document processing method
US7769775B2 (en) Search engine for video and graphics with access authorization
US7401079B2 (en) System and method for transcoding digital content
US20100269035A1 (en) Method for Dynamically Generating a &#34;Table of Contents&#34; View of the HTML-Based Information System
US20120323895A1 (en) Expanded text excerpts
EP0596247A2 (en) A full-text index creation, search, retrieval and display method
US20050138554A1 (en) Method and system for copying, moving, replacing and deleting content in group-editable electronic documents
US6289121B1 (en) Method and system for automatically inputting text image
WO2005004007A1 (en) Method for referencing image data
CN100422966C (en) System, method, and program for content creation, readable medium for recording the program, and graphical user interface system and display control method
JP2008083856A (en) Information processor, information processing method and information processing program
EP2035950A1 (en) A method of managing web services using integrated document
US7685229B1 (en) System and method for displaying server side code results in an application program
CA2987985A1 (en) Search engine for video and graphics
EP0921480A2 (en) Apparatus and method for retrieving data from a network site
JP3772142B2 (en) Structured document update management device, structured document update management method, computer-readable recording medium storing program, and program
JP3772141B2 (en) Structured document update management device, structured document update management method, computer-readable recording medium storing program, and program
AU2008360993B2 (en) Method and apparatus for generating standard document identifiers from content references
EP1049027A2 (en) Web data acquisition apparatus and method, and storage medium storing program for this method
JP2005173999A (en) Device, system and method for searching electronic file, program, and recording media
EP1260915A1 (en) A method and system for viewing a folder structure of removable storage media
JP2000099387A (en) Document data registering system and registering method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050607

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051129

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060118

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060207

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060213

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090217

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120217

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120217

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130217

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees