JP3022113B2 - Text data editing processing method - Google Patents

Text data editing processing method

Info

Publication number
JP3022113B2
JP3022113B2 JP5325551A JP32555193A JP3022113B2 JP 3022113 B2 JP3022113 B2 JP 3022113B2 JP 5325551 A JP5325551 A JP 5325551A JP 32555193 A JP32555193 A JP 32555193A JP 3022113 B2 JP3022113 B2 JP 3022113B2
Authority
JP
Japan
Prior art keywords
data
format
editing
edited
replacement
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
JP5325551A
Other languages
Japanese (ja)
Other versions
JPH07182315A (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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP5325551A priority Critical patent/JP3022113B2/en
Publication of JPH07182315A publication Critical patent/JPH07182315A/en
Application granted granted Critical
Publication of JP3022113B2 publication Critical patent/JP3022113B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、テキストデータを予め
定義された書式に従ってコンピュータ処理し、帳票や画
面等に出力するテキストデータの編集処理方法に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for editing text data to be processed by a computer according to a predefined format and output to a form or a screen.

【0002】[0002]

【従来の技術】コンピュータで作成したデータを表形式
に編集し、帳票等に出力する場合の編集処理方法とし
て、出力する表の書式と編集処理を行う編集プログラム
とを分離し、編集プログラムの作成工数を削減し、生産
性の向上を狙ったマッピング技術は広く知られている。
2. Description of the Related Art As an editing method for editing data created by a computer into a table format and outputting it to a form or the like, an editing program for separating an output table format and an editing program for performing an editing process is prepared. Mapping techniques that reduce man-hours and improve productivity are widely known.

【0003】このマッピング技術においては、レイアウ
トシートを用い、見出し、罫線、埋め込むべきデータの
各々について位置や桁数等のデータを定義している。
In this mapping technique, a layout sheet is used to define data such as a position and the number of digits for each of a heading, a ruled line, and data to be embedded.

【0004】また、使用するマシン、OS、プリンタに
より罫線の指示が異なるため、各々について専門的な知
識を有する技術者が書式を定義している。
[0004] Further, since the designation of the ruled line differs depending on the machine, the OS, and the printer used, a technician having specialized knowledge for each of them defines a format.

【0005】さらに、書式の定義は、1ページ毎にパラ
メータによって指定するパラメータ指定方式を採用して
いる。
[0005] Further, the format definition uses a parameter designating method in which the format is designated by a parameter for each page.

【0006】[0006]

【発明が解決しようとする課題】しかし、レイアウトシ
ートを用い、見出し、罫線、埋め込むべきデータの各々
について位置や桁数等のデータを定義しているため、書
式が変更された場合には、レイアウトシートを用いて書
式を再度定義しなければならず、書式の変更に対して融
通性がなく、かつ作業工数も増加するという問題があ
る。
However, since the layout sheet is used to define data such as the position and the number of digits for each of the headline, ruled line, and data to be embedded, when the format is changed, the layout is changed. There is a problem that the format must be defined again using a sheet, and there is a lack of flexibility in changing the format and an increase in the number of work steps.

【0007】また、使用するマシン、OS、プリンタに
より定義の仕方が異なり、しかもパラメータ指定方式を
採用してるため、専門的な知識を持たないユーザにおい
ては、書式の定義および変更を容易に行うことができな
いばかりか、一度作成した書式をそのまま他のデータの
編集処理に流用できず、経済的に無駄が多いという問題
がある。
[0007] In addition, since the definition method differs depending on the machine, OS, and printer to be used, and a parameter designation method is adopted, it is easy for a user without specialized knowledge to define and change the format. In addition to this, there is a problem that a format created once cannot be used as it is for editing other data, and there is a lot of waste economically.

【0008】また、1ページ内の行数を固定しているた
め、1ページ内に複数の書式を自由に配置することがで
きないという問題がある。
Further, since the number of lines in one page is fixed, there is a problem that a plurality of formats cannot be freely arranged in one page.

【0009】さらに、各項目の桁数を予め設定し、これ
を超えるデータは前記設定された桁数分のみを編集する
ためデータの一部を出力することができないという問題
がある。この場合、設定可能な最大桁数を設定すればよ
いが、その場合には1行に出力する項目数が少なくなる
うえ、ページ数が増えるという問題がある。
Further, there is a problem in that the number of digits of each item is set in advance, and data exceeding the number is edited only for the set number of digits, so that part of the data cannot be output. In this case, the maximum number of digits that can be set may be set, but in this case, the number of items to be output on one line is reduced, and the number of pages is increased.

【0010】本発明の目的は、専門的な知識を持たない
者でも容易に書式を定義したり、変更することができ、
さらに他のデータの編集処理にも容易に流用することが
できる融通性のあるテキストデータの編集処理方法を提
供することである。
[0010] The object of the present invention is that even a person having no specialized knowledge can easily define or change the format,
It is another object of the present invention to provide a flexible text data editing method which can be easily applied to other data editing processing.

【0011】本発明の他の目的は、各項目データの桁数
の増加に対して書式定義を変更することなく対処するこ
とができるテキストデータの編集処理方法を提供するこ
とである。
It is another object of the present invention to provide a text data editing method capable of coping with an increase in the number of digits of each item data without changing the format definition.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、書式識別子,書式イメージおよび編集対
象データを埋め込む位置にその種別を指示する記号を行
単位で定義した書式イメージデータ,この書式イメージ
データに対する編集形式を行単位で定義した制御データ
とから構成される書式データを格納した書式データファ
イルと、編集対象テキストデータの編集書式を示す書式
識別子と種別を示す識別子とが行単位で付加された編集
対象テキストデータを格納した編集対象データファイル
とを備え、編集対象テキストデータを前記書式データフ
ァイル中に予め定義された書式データに従って編集して
出力するテキストデータ編集処理方法であって、 編集対
象テキストデータを前記編集対象データファイルから読
出し、該編集対象テキストデータに付加された書式識別
子を検出し、その書式識別子に対応する書式識別子を有
する書式データを前記書式データファイルから検索し、
その書式データの中の制御データに従い、前記書式イメ
ージデータ中に定義された書式イメージを生成し、かつ
編集対象テキストデータの種別を示す記号に対応した編
集対象テキストデータを当該記号が定義された位置に埋
め込む処理を繰り返すことにより、編集対象テキスト
ータを書式データに従って編集して出力するようにした
ものである。
To achieve the above object of the Invention The present invention form image data defining write equation identifier, the symbol for indicating the type in position for embedding the form image and the edited data row by row , format data file that contains the formatted data constituting the edited format for this format image data and a control data defined in row
Format that indicates the edit format of the text data to be edited
Editing with an identifier and an identifier indicating the type added in line units
Edit target data file that stores target text data
The text data to be edited is stored in the format data file.
Edit according to the format data predefined in the file
A text data editing processing method of output, edit pair
Read elephant text data from the data file to be edited.
Out to detect the added format identifier to the edited text data, it retrieves the format data having a format identifier corresponding to the format identifier from the format data files,
In accordance with the control data in the form data, the form image data to generate a defined form image in, and the edited text data corresponding to a symbol indicating the type of edit text data No. those該記defined By repeating the process of embedding at the position, the text data to be edited is edited according to the format data and output.

【0013】また、他の目的を達成するために、書式イ
メージデータに従って生成される書式イメージの中に編
集対象テキストデータが埋込可能か否かを判定し、埋込
可能でなければ、書式イメージの一部を拡張して埋め込
むようにしたものである。
In order to achieve another object, it is determined whether or not the text data to be edited can be embedded in a format image generated in accordance with the format image data. Is expanded and embedded.

【0014】[0014]

【作用】上記手段によれば、編集対象データの前記書式
データに従う編集処理に際し、編集対象データに付加さ
れた書式識別子を検出し、その書式識別子に対応する書
式識別子を有する書式データを書式データファイルから
検索し、その書式データの中の制御データに従い、書式
イメージデータ中に定義された書式イメージを生成す
る。そして、編集対象データの種別を示す記号に対応し
た編集対象データを編集対象データファイルから検索
し、その編集対象データを当該記号が定義された位置に
埋め込む処理を繰り返す。
According to the above means, at the time of editing processing of the data to be edited in accordance with the format data, a format identifier added to the data to be edited is detected, and the format data having a format identifier corresponding to the format identifier is converted into a format data file. And generates a format image defined in the format image data according to the control data in the format data. Then, the process of retrieving the edit target data corresponding to the symbol indicating the type of the edit target data from the edit target data file and embedding the edit target data at the position where the symbol is defined is repeated.

【0015】これにより、編集対象データは書式データ
に従って編集して出力される。
Thus, the data to be edited is edited according to the format data and output.

【0016】また、書式イメージデータに従って生成さ
れる書式イメージの中に編集対象データが埋込可能か否
かを判定し、埋込可能でなければ、書式イメージの一部
を拡張して埋め込む。
Further, it is determined whether or not the data to be edited can be embedded in the format image generated in accordance with the format image data. If the data cannot be embedded, a part of the format image is expanded and embedded.

【0017】従って、書式データを出力イメージのまま
テキスト形式で表現可能になるため、定義自体が簡単
で、ワープロ等でユーザーにも極めて容易に作成するこ
とができ、一度作成した書式を流用することもできる。
Therefore, since the format data can be expressed in the text format as it is in the output image, the definition itself is simple, and it can be created very easily by the user with a word processor or the like. Can also.

【0018】また、項目の桁数が変更になっても書式を
変更する必要がなく、1ページ内に複数のレイアウトを
もつ場合も比較的簡単に編集することができる。
Further, even if the number of digits of an item is changed, it is not necessary to change the format, and editing can be performed relatively easily even when there are a plurality of layouts in one page.

【0019】[0019]

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

【0020】図1は、本発明の一実施例に係わるシステ
ムの概略構成を示すブロック図であり、編集処理を行う
処理装置1、書式に埋め込む編集対象データ(以下、実
施例中においては置換データという)を入力するキーボ
ード等の入力装置2、書式を定義した書式データを格納
する書式データファイル3、書式に埋め込む置換データ
を格納する置換データファイル4、編集結果を出力する
出力装置5、入力した書式データ等を確認するための表
示装置6、書式格納エリア7および編集エリア8を備え
た主メモリ9とから構成されている。
FIG. 1 is a block diagram showing a schematic configuration of a system according to an embodiment of the present invention. The processing apparatus 1 performs an editing process, data to be edited embedded in a format (hereinafter, replacement data in the embodiment). Input device 2 such as a keyboard, a format data file 3 for storing format data defining a format, a replacement data file 4 for storing replacement data to be embedded in the format, an output device 5 for outputting an edited result, It comprises a display device 6 for checking format data and the like, a main memory 9 having a format storage area 7 and an editing area 8.

【0021】図2は、置換データおよび書式データの構
成を表すフォーマット図であり、置換データ21は書式
ID210と置換指示データ211により構成される。
FIG. 2 is a format diagram showing the structure of replacement data and format data. The replacement data 21 is composed of a format ID 210 and replacement instruction data 211.

【0022】書式ID210は予め定義された書式デー
タから対象の書式を取り出すために使用するものであ
り、また置換指示データ211は置換すべきデータその
ものを指示するものである。この置換指示データ211
は明細編集の論理的な1行分の編集を指示する複数個の
置換行情報212から構成され、更に、置換行情報21
2は明細編集の論理的な1項目の編集を指示する複数個
の置換項目情報213から構成される。
The format ID 210 is used to extract the target format from the predefined format data, and the replacement instruction data 211 indicates the data to be replaced. This replacement instruction data 211
Is composed of a plurality of pieces of replacement line information 212 instructing editing of one logical line of detail editing.
Numeral 2 is composed of a plurality of pieces of replacement item information 213 that instructs editing of one logical item of specification editing.

【0023】この置換項目情報213が置換指示データ
211の最小単位であり、後述の図6で示すような置換
識別子と置換文字列とにより構成される。この場合、置
換識別子と置換文字列との間には、これらを区切るため
区切文字(本実施例では'#'を使用)が挿入され、置換
識別子と置換文字列とを分離できるようになっている。
The replacement item information 213 is the minimum unit of the replacement instruction data 211, and includes a replacement identifier and a replacement character string as shown in FIG. In this case, a delimiter ("#" is used in this embodiment) is inserted between the replacement identifier and the replacement character string to separate them, so that the replacement identifier and the replacement character string can be separated. I have.

【0024】一方、書式データ22は、制御部220と
書式部221により構成され、制御部220は書式ID
2201と各行の種別を表す行識別子2202を組み合
わせ(本実施例では'−'で連結)た形態で指示し、置換
データ21に指示された書式ID210に対応する書式
データ22を取り出し、行の種別編集方法を指示するた
めに使用する。この実施例では、行識別子2202を見
出しの編集を表すヘッター('H')、明細の見出し編集
を表すボディーヘッター('BH')、明細の編集時に枠
を拡張する部位を表すボディーボディー('BB')、フ
ッターの編集を表すフッター('F')の4種類で定義す
る。また、書式部221はテキストとして書式イメージ
そのものを定義する。
On the other hand, the format data 22 includes a control unit 220 and a format unit 221.
2201 and a row identifier 2202 indicating the type of each row are combined (in this embodiment, linked by “-”), and the format data 22 corresponding to the format ID 210 specified in the replacement data 21 is extracted. Used to indicate how to edit. In this embodiment, the line identifier 2202 is a header (“H”) indicating editing of a heading, a body header (“BH”) indicating editing of a heading of a specification, and a body body (“′” indicating a portion where a frame is expanded when editing a specification. BB ') and footer (' F ') indicating editing of the footer. The format unit 221 defines a format image itself as text.

【0025】図3は、テキストデータ編集処理方法の処
理手順を示すフローチャートである。
FIG. 3 is a flowchart showing a processing procedure of the text data editing processing method.

【0026】まず、置換データ取得処理により置換すべ
き置換データを置換データファイル4から取得し(ステ
ップ31)、編集対象となる置換データ21の書式ID
210を求める。
First, the replacement data to be replaced is obtained from the replacement data file 4 by the replacement data obtaining process (step 31), and the format ID of the replacement data 21 to be edited is obtained.
Find 210.

【0027】次に、書式データ取得処理において書式デ
ータファイル3を書式ID210により検索し、書式I
D210と対応する書式ID2201を持つ書式データ
22を抽出し、書式格納エリア7に各行識別子2202
毎に格納する(ステップ32)。
Next, in the format data acquisition process, the format data file 3 is searched by the format ID 210, and the format I
The format data 22 having the format ID 2201 corresponding to D210 is extracted, and each row identifier 2202 is stored in the format storage area 7.
Each time is stored (step 32).

【0028】次に、ヘッター編集処理において、各行識
別子2202毎に格納された書式データ22に基づき見
出しの部分を編集し、主メモリ9の出力エリアに出力す
る(ステップ33)。
Next, in the header editing process, the heading portion is edited based on the format data 22 stored for each line identifier 2202 and output to the output area of the main memory 9 (step 33).

【0029】ヘッター編集の後、置換データ21の置換
指示211から論理的な1行分のデータである置換行情
報212を切り出し、対象の置換行情報212が存在す
れば、明細編集処理で明細部の編集を行ない、次の置換
行情報212を取り出し、明細編集処理を行う(ステッ
プ34,36)。そして、対象の置換行情報がなくなれ
ば、明細編集完了判定処理(ステップ35)を経てフッ
ター編集処理へ進み、書式データ22のフッターの部分
を編集し、出力エリアに出力する。
After the editing of the header, the replacement line information 212, which is data of one logical line, is cut out from the replacement instruction 211 of the replacement data 21. If the target replacement line information 212 exists, the specification editing process is performed. Is edited, the next replacement line information 212 is extracted, and the detail editing process is performed (steps 34 and 36). Then, if there is no more replacement line information to be processed, the process proceeds to the footer editing process via the detail editing completion determination process (step 35), edits the footer portion of the format data 22, and outputs it to the output area.

【0030】図4は、明細編集処理36の詳細を示すフ
ローチャートであり、書式ボディー展開処理において書
式格納エリア7から明細の部分を編集エリア8に展開し
た後(ステップ41)、置換項目情報切出処理で論理的
な1行分のデータとして切り出された置換行情報212
から論理的な1項目として置換項目情報213を切り出
す(ステップ42)。次に、行編集完了判定処理を行い
(ステップ43)、対象の置換項目情報213が存在す
れば、置換項目分離処理で、置換識別子214と置換文
字列215とを区切り文字で分離する(ステップ4
4)。
FIG. 4 is a flowchart showing the details of the detail editing process 36. After the detail portion is developed from the format storage area 7 into the editing area 8 in the format body developing process (step 41), the replacement item information is extracted. Replacement line information 212 extracted as logical one-line data in the process
, The replacement item information 213 is cut out as a logical one item (step 42). Next, a line editing completion determination process is performed (step 43). If the target replacement item information 213 exists, the replacement identifier 214 and the replacement character string 215 are separated by a delimiter in the replacement item separation process (step 4).
4).

【0031】この後、置換識別子検索処理において、前
記分離された置換識別子214にて編集エリア8を検索
し、置換対象の項目が残っているかどうかをしらべ、残
っていれば、置換制御処理にて文字列の置き換えを行
い、次の項目を取得するため置換項目情報切出処理へ戻
る(ステップ45,46,47)。
Thereafter, in the replacement identifier search process, the editing area 8 is searched with the separated replacement identifier 214, and it is checked whether or not the item to be replaced remains. The character string is replaced, and the process returns to the replacement item information extracting process to obtain the next item (steps 45, 46, 47).

【0032】しかし、置換対象の項目に対する処理が終
了していれば、その行の明細編集処理が終了したことに
なるので、図3の処理に戻る。
However, if the processing for the item to be replaced has been completed, this means that the detail editing processing for that line has been completed, and the process returns to the processing in FIG.

【0033】図5は、置換制御処理の詳細を示すフロー
チャートであり、置換可能桁数計算処理により編集エリ
ア8の置換識別子214の先頭から枠識別子(文字罫線
等のコード)までの置換可能桁数を求める(ステップ5
1)。
FIG. 5 is a flowchart showing the details of the replacement control process. The number of replaceable digits from the beginning of the replacement identifier 214 in the editing area 8 to the frame identifier (code such as a character ruled line) by the replaceable digit number calculation process. (Step 5
1).

【0034】すなわち、書式部221に定義された書式
イメージ中の項目欄に埋込可能な文字列の桁数を求め
る。
That is, the number of digits of a character string that can be embedded in the item column in the format image defined in the format unit 221 is obtained.

【0035】次に、その桁数と置換文字列の桁数とを比
較し(ステップ52)、置換対象の文字列の桁数が大き
くて書式部221に定義された書式イメージ中の項目欄
に埋め込むことが出来ない場合は、置換文字列計算処理
(ステップ52)にて置換文字列の先頭から先に求めた
置換可能桁数分の文字列を切り出し、その切り出した文
字列を置換処理(1)で埋め込み(ステップ54)、こ
の後に、枠拡張処理により項目枠を拡張する。そして、
書式格納エリア7の行識別子が'BB'(ボディーボディ
ー)のもののみ編集エリア9に展開し、残りの置換文字
列を埋め込むためにステップ52の置換可能判定処理に
戻る。
Next, the number of digits is compared with the number of digits of the replacement character string (step 52), and the number of digits of the character string to be replaced is large, and is entered in the item field in the format image defined in the format unit 221. If the character string cannot be embedded, the replacement character string calculation processing (step 52) cuts out the character string of the number of replaceable digits previously obtained from the beginning of the replacement character string, and replaces the cut-out character string with the replacement processing (1). ) To embed (step 54), and thereafter, the item frame is expanded by frame expansion processing. And
Only the line identifier of the format storage area 7 whose line identifier is “BB” (body body) is developed in the editing area 9, and the process returns to the replaceability determination processing of step 52 to embed the remaining replacement character strings.

【0036】このような処理を繰り返し、最終的には置
換処理(2)で全ての置換データの置換を行う(ステッ
プ56)。
Such processing is repeated, and finally, all the replacement data is replaced in the replacement processing (2) (step 56).

【0037】ここで、置換処理(1)はステップ53の
置換文字列桁調整処理によって求めた桁数を基に、置換
文字列の一部を埋め込み、残りの未置換文字そのものを
置換文字列とする。一方、置換処理(2)は単純に文字
列を置き換える。
In the replacement process (1), a part of the replacement character string is embedded based on the number of digits obtained by the replacement character string digit adjustment process in step 53, and the remaining unreplaced character itself is replaced with the replacement character string. I do. On the other hand, the replacement process (2) simply replaces a character string.

【0038】図6は、行識別子2202を利用して表編
集を行う例を示す説明図であり、置換データ21には2
行分のデータが示されている。すなわち、第1行目に
は、「?1#01 ?#赤」というデータ、第2行目に
は「?1#02 ?#青」というデータが示されてい
る。
FIG. 6 is an explanatory diagram showing an example in which a table is edited using the row identifier 2202 .
The data for the row is shown. That is, the first line shows data "? 1 # 01? #Red" and the second line shows data "? 1 # 02? #Blue".

【0039】このうち、「?1」,「?」は置換識別子
であり、「01」、「02」、「赤」「青」は置換文字
列、「#」は区切り文字である。
Of these, "? 1" and "?" Are replacement identifiers, "01", "02", "red" and "blue" are replacement character strings, and "#" is a delimiter.

【0040】一方、書式データ22には、「ID]と
「色」の項目欄を持った書式イメージと、置換対象デー
タを埋め込む位置に記述され、埋め込む置換対象データ
を認識するための置換識別子とから成る書式部221が
定義されている。また、書式イメージに対する編集形式
を指示するために、「XXX」という書式IDを持つ5
行分の制御データ220が定義されている。
On the other hand, the format data 22 includes a format image having item fields of “ID” and “color”, a replacement identifier described at a position where the replacement target data is embedded, and a replacement identifier for recognizing the replacement target data to be embedded. Is defined. Also, in order to indicate the editing format for the format image, a format ID “XXX”
The control data 220 for a row is defined.

【0041】このような置換データ21および書式デー
タ22の場合、「?1」,「?」という置換識別子が2
行にわたって記述されているので、書式データ22のボ
ディー部は2回編集される。これにより、図6(c)の
ような編集結果23が得られる。
In the case of such replacement data 21 and format data 22, replacement identifiers "? 1" and "?"
Since the description is made over the lines, the body part of the format data 22 is edited twice. Thereby, the editing result 23 as shown in FIG. 6C is obtained.

【0042】図7は、枠を拡張して編集する例を示す説
明図であり、書式イメージの「ID」の項目は2桁、色
の項目は4桁で定義されている。また、置換データ21
の1行目の「ID」に対応する項目は最大で3桁、2行
目の「色」に対応する項目は最大で6桁になっている。
FIG. 7 is an explanatory diagram showing an example in which a frame is extended and edited. In the format image, the item of "ID" is defined by two digits, and the item of color is defined by four digits. Also, the replacement data 21
The item corresponding to “ID” on the first line has a maximum of three digits, and the item corresponding to “color” on the second line has a maximum of six digits.

【0043】このような例にあっては、1行目の「ライ
トブルー」は枠の大きさが2桁分不足し、また2行目の
「101」は枠の大きさが1桁不足するので、図5のス
テップ53,54,55の処理により、予め定義された
書式イメージの枠が図7(c)の編集結果23に示すよ
うに拡張され、その拡張された枠の中に対象の文字列が
埋め込まれる。
In such an example, "light blue" on the first line has a frame size of two digits short, and "101" on the second line has a frame size of one digit short. Therefore, by the processing of steps 53, 54, and 55 in FIG. 5, the frame of the previously defined format image is expanded as shown in the editing result 23 of FIG. 7C, and the target frame is included in the expanded frame. The character string is embedded.

【0044】すなわち、「ライトブルー」の場合につい
て説明すると、「ライトブルー」が6桁で、置換可能桁
数が2桁であるので、ステップ52からステップ53,
54へ進み、ステップ54において「ライ」を埋め込
み、「トブルー」を未置換文字列とする。次にステップ
55において枠を拡張し、ステップ52に戻る。
More specifically, the case of “light blue” will be described. Since “light blue” has six digits and the number of replaceable digits is two, steps 52 to 53
Proceeding to step 54, "rai" is embedded in step 54, and "toe blue" is set as an unsubstituted character string. Next, in step 55, the frame is expanded, and the process returns to step 52.

【0045】この場合は、「トブルー」が4桁であるの
で、再びステップ53,54に進み、「トブルー」のう
ち「トブ」を埋め込み、「ルー」を未置換文字列とす
る。次にステップ55において枠を拡張し、ステップ5
2に戻るが、今度は「ルー」が2桁であるのでステップ
56に進み、ここで「ルー」を埋め込む。
In this case, since "toe blue" has four digits, the process proceeds to steps 53 and 54 again, where "toe" of "toe blue" is embedded, and "ru" is an unreplaced character string. Next, in step 55, the frame is expanded, and in step 5
Returning to step 2, this time, since "ru" has two digits, the process proceeds to step 56, where "ru" is embedded.

【0046】図8および図9は、1ページ中に複数の書
式を編集する場合の例を示す説明図であり、書式データ
22として、複数の書式イメージ221a,221b,
221c,221dが定義され、書式イメージ221
a,221bに対しては「HED」,221cに対して
は「FILE」,221dに対しては「INF」という
書式IDを持つ制御部220が定義されている。
FIGS. 8 and 9 are explanatory diagrams showing an example of editing a plurality of formats in one page. As format data 22, a plurality of format images 221a, 221b,
221c and 221d are defined, and the format image 221
A control unit 220 having a format ID of “HED” for a and 221b, “FILE” for 221c, and “INF” for 221d is defined.

【0047】一方、置換データ21として、「HE
D」,「FILE」,「INF」という書式ID210
別に置換対象の文字列が行単位に定義されている。
On the other hand, as the replacement data 21, "HE
D, "FILE", "INF" format ID 210
Separately, the character string to be replaced is defined for each line.

【0048】このような例においても、前記の例と同様
の編集処理によって置換データ21が書式データに従っ
て編集され、図9に示すような編集結果23が得られ
る。
Also in such an example, the replacement data 21 is edited according to the format data by the same editing processing as in the above example, and an editing result 23 as shown in FIG. 9 is obtained.

【0049】すなわち、1ページ内の部分的な書式を部
品のように定義することにより、複数の書式を1ページ
内に配置することができる。従って、表の一部を変更す
る場合に極めて便利なものとなる。
That is, by defining a partial format in one page as a part, a plurality of formats can be arranged in one page. Therefore, it becomes very convenient when a part of the table is changed.

【0050】[0050]

【発明の効果】以上のように本発明においては、書式を
定める書式データを、書式識別子,書式イメージおよび
編集対象データを埋め込む位置にその種別を指示する記
号を行単位で定義した書式イメージデータ,この書式イ
メージデータに対する編集形式を行単位で定義した制御
データとから構成し、書式データファイルに格納してお
き、編集対象データには編集書式を示す書式識別子を付
し、かつ編集対象データの種別を示す識別子を行単位で
付して編集対象データファイルに格納しておき、編集対
象データの前記書式データに従う編集処理に際し、編集
対象データに付加された書式識別子を検出し、その書式
識別子に対応する書式識別子を有する書式データを前記
書式データファイルから検索し、その書式データの中の
制御データに従い、前記書式イメージデータ中に定義さ
れた書式イメージを生成し、かつ編集対象データの種別
を示す記号に対応した編集対象データを編集対象データ
ファイルから検索し、その編集対象データを当該記号が
定義された位置に埋め込む処理を繰り返すことにより、
編集対象データを書式データに従って編集して出力する
ようにしたので、書式データを出力イメージのままテキ
スト形式で表現可能になる。これにより、書式の定義自
体が簡単で、ワープロ等でユーザにも極めて容易に作成
することができ、専門的な知識を持たない者でも容易に
書式を定義したり、変更することができ、さらに他のデ
ータの編集処理にも容易に流用することができる融通性
のあるテキストデータの編集処理を行うことができる。
As described above, according to the present invention, format data for defining a format is converted into format image data in which a format designator, a format image, and a symbol designating the type of the data to be edited are defined in units of lines. An edit format for the format image data is composed of control data defined on a line-by-line basis, stored in a format data file, a format identifier indicating the edit format is attached to the edit target data, and a type of the edit target data is provided. Is stored in the data file to be edited by attaching the identifier indicating the format of the data to be edited, and in the editing process of the data to be edited according to the format data, the format identifier added to the data to be edited is detected and corresponding to the format identifier Search for format data having a format identifier to be performed from the format data file, and according to the control data in the format data. A format image defined in the format image data is generated, and edit target data corresponding to a symbol indicating the type of the edit target data is searched from the edit target data file, and the edit target data is defined by the symbol. By repeating the process of embedding at the position,
Since the data to be edited is edited and output according to the format data, the format data can be expressed in a text format as an output image. As a result, the definition of the format itself is simple, and it can be created very easily by a user using a word processor or the like, and even a person without specialized knowledge can easily define and change the format. It is possible to perform flexible text data editing processing that can be easily applied to other data editing processing.

【0051】また、1ページ内に複数のレイアウトをも
つ場合も比較的簡単に編集することができる。
Also, when a plurality of layouts are provided in one page, editing can be performed relatively easily.

【0052】さらに、書式イメージデータに従って生成
される書式イメージの中に編集対象データが埋込可能か
否かを判定し、埋込可能でなければ、書式イメージの一
部を拡張して埋め込むようにしたので、各項目データの
桁数の増加に対して書式定義を変更することなく対処す
ることができる。
Further, it is determined whether or not the data to be edited can be embedded in the format image generated in accordance with the format image data. If the data cannot be embedded, a part of the format image is expanded and embedded. Therefore, it is possible to cope with the increase in the number of digits of each item data without changing the format definition.

【0053】この結果、編集用のプログラムを書式別に
作成する必要がなくなり、作業工数の削減など、ユーザ
の経済的負担を軽減できる。
As a result, it is not necessary to create an editing program for each format, and it is possible to reduce a user's economic burden such as a reduction in work steps.

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

【図1】この発明の一実施例の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】実施例における置換データおよび書式データの
構成を示すフォーマット図である。
FIG. 2 is a format diagram showing a configuration of replacement data and format data in the embodiment.

【図3】実施例におけるテキストデータ処理方法の処理
手順を示すフローチャートである。
FIG. 3 is a flowchart illustrating a processing procedure of a text data processing method according to the embodiment.

【図4】図3における明細編集処理の詳細を示すフロー
チャートである。
FIG. 4 is a flowchart showing details of a detail editing process in FIG. 3;

【図5】図4における置換制御処理の詳細を示すフロー
チャートである。
FIG. 5 is a flowchart illustrating details of a replacement control process in FIG. 4;

【図6】置換データと書式データの例と、その編集結果
の例を示す説明図である。
FIG. 6 is an explanatory diagram showing an example of replacement data and format data, and an example of an editing result thereof.

【図7】置換データと書式データの他の例と、その編集
結果の例を示す説明図である。
FIG. 7 is an explanatory diagram showing another example of replacement data and format data and an example of an editing result thereof.

【図8】置換データと書式データのさらに他の例を示す
説明図である。
FIG. 8 is an explanatory diagram showing still another example of replacement data and format data.

【図9】図8の置換データと書式データに対する編集結
果の例を示す説明図である。
FIG. 9 is an explanatory diagram showing an example of an editing result for the replacement data and format data in FIG. 8;

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

1…処理装置、2…入力装置、3…書式データファイ
ル、4…置換データファイル、5…出力装置、21…置
換データ、22…書式データ、210…書式ID,21
1…書式指示データ、212…置換行情報、213…置
換項目情報、214…置換識別子、220…制御部、2
21…書式部。
DESCRIPTION OF SYMBOLS 1 ... Processing device, 2 ... Input device, 3 ... Format data file, 4 ... Replacement data file, 5 ... Output device, 21 ... Replacement data, 22 ... Format data, 210 ... Format ID, 21
1 ... format instruction data, 212 ... replacement line information, 213 ... replacement item information, 214 ... replacement identifier, 220 ... control unit, 2
21. Form part.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】式識別子,書式イメージおよび編集対
象データを埋め込む位置にその種別を指示する記号を行
単位で定義した書式イメージデータ,この書式イメージ
データに対する編集形式を行単位で定義した制御データ
とから構成される書式データを格納した書式データファ
イルと、編集対象テキストデータの編集書式を示す書式
識別子と種別を示す識別子とが行単位で付加された編集
対象テキストデータを格納した編集対象データファイル
とを備え、編集対象テキストデータを前記書式データフ
ァイル中に予め定義された書式データに従って編集して
出力するテキストデータ編集処理方法であって、 編集対象テキストデータを前記編集対象データファイル
から読出し、該 編集対象テキストデータに付加された書
式識別子を検出し、その書式識別子に対応する書式識別
子を有する書式データを前記書式データファイルから検
索し、その書式データの中の制御データに従い、前記書
式イメージデータ中に定義された書式イメージを生成
し、かつ編集対象テキストデータの種別を示す記号に対
応した編集対象テキストデータを当該記号が定義された
位置に埋め込む処理を繰り返すことにより、編集対象
キストデータを書式データに従って編集して出力するこ
とを特徴とするテキストデータの編集処理方法。
1. A document type identifier, form image and form image data defining the symbols in a row unit for instructing that type in position for embedding edited data, control data defining the edit format for this format image data line by line format data storing format data composed of a file
Format that indicates the edit format of the text data to be edited
Editing with an identifier and an identifier indicating the type added in line units
Edit target data file that stores target text data
The text data to be edited is stored in the format data file.
Edit according to the format data predefined in the file
What is claimed is: 1. A text data editing processing method for outputting, comprising:
Detecting read, the added format identifier to the edited text data from, retrieves the format data having a format identifier corresponding to the format identifier from the format data file, in accordance with the control data in the form data, the by repeating the process of generating a form image defined in the format image data, and embeds the edited text data corresponding to a symbol indicating the type of edit text data at a position No. skilled該記it is defined, edited Te
Editing method of processing text data, characterized in that the editing and outputting the text data according to the format data.
【請求項2】 書式イメージデータに従って生成される
書式イメージの中に編集対象テキストデータが埋込可能
か否かを判定し、埋込可能でなければ、書式イメージの
一部を拡張して埋め込むことを特徴とする請求項1記載
のテキストデータの編集処理方法。
2. A method according to claim 1, wherein it is determined whether or not the text data to be edited can be embedded in the format image generated in accordance with the format image data. 2. The method for editing text data according to claim 1, wherein:
JP5325551A 1993-12-24 1993-12-24 Text data editing processing method Expired - Fee Related JP3022113B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5325551A JP3022113B2 (en) 1993-12-24 1993-12-24 Text data editing processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5325551A JP3022113B2 (en) 1993-12-24 1993-12-24 Text data editing processing method

Publications (2)

Publication Number Publication Date
JPH07182315A JPH07182315A (en) 1995-07-21
JP3022113B2 true JP3022113B2 (en) 2000-03-15

Family

ID=18178161

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5325551A Expired - Fee Related JP3022113B2 (en) 1993-12-24 1993-12-24 Text data editing processing method

Country Status (1)

Country Link
JP (1) JP3022113B2 (en)

Also Published As

Publication number Publication date
JPH07182315A (en) 1995-07-21

Similar Documents

Publication Publication Date Title
WO1989002118A1 (en) Data processing apparatus and editing apparatus using the same
JP2002091944A (en) Device and method for processing image and computer readable recording medium
JPH09106428A (en) Finding preparing device
JPH05101054A (en) Document preparation supporting system by synthesizing component
JP3022113B2 (en) Text data editing processing method
CN116682118A (en) Ancient character recognition method, system, terminal and medium
WO1989002116A1 (en) Data processing system and editing apparatus using the same
JP2006146627A (en) Document information retrieval system
JP2000168294A (en) Electronic white board system
JPH07296099A (en) Two-dimensional bar code and paper media device using the same
JPH08153110A (en) Device and method for filing document
JP3122900B2 (en) Electronic image album device
JPH11312231A (en) Recording medium with data processing program recorded therein, data processor and its method
JPH0991371A (en) Character display device
JPH11272708A (en) Documentation support system
JP2614339B2 (en) Form output editing device
JP2000280435A (en) Delivered data checking system
JPH06162107A (en) Electronic filing system
JPH08161350A (en) Method and device for electronic filing
JP3237709B2 (en) Document processing apparatus and document processing method
JPH03185559A (en) Document shaping device
JPH0822466A (en) Text composition device
JP3306969B2 (en) Document editing device
JPH08202859A (en) Electronic filing device and its method
JP3083435B2 (en) Slip file forming device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees