JP3391103B2 - Text synthesis device - Google Patents

Text synthesis device

Info

Publication number
JP3391103B2
JP3391103B2 JP17770894A JP17770894A JP3391103B2 JP 3391103 B2 JP3391103 B2 JP 3391103B2 JP 17770894 A JP17770894 A JP 17770894A JP 17770894 A JP17770894 A JP 17770894A JP 3391103 B2 JP3391103 B2 JP 3391103B2
Authority
JP
Japan
Prior art keywords
default
attribute value
text
area
character
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
JP17770894A
Other languages
Japanese (ja)
Other versions
JPH0822466A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP17770894A priority Critical patent/JP3391103B2/en
Publication of JPH0822466A publication Critical patent/JPH0822466A/en
Application granted granted Critical
Publication of JP3391103B2 publication Critical patent/JP3391103B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、テキスト合成装置に関
し、特に、ワードプロセッサ、あるいは文書処理機能を
もつワークステーションの文書処理装置において電子文
書に対する処理を行う際、その電子文書のテキスト中の
各領域に設定されている属性値を整合して複数のテキス
トを合成するテキスト合成装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a text synthesizing apparatus, and more particularly, when processing an electronic document in a word processor or a document processing apparatus of a workstation having a document processing function, each area in the text of the electronic document. The present invention relates to a text synthesizing device for synthesizing a plurality of texts by matching the attribute values set in.

【0002】[0002]

【従来の技術】従来、文書処理装置においては、キーボ
ード装置から入力された一連の文字列の一まとまりをテ
キストとして処理し、所望の文書を作成して、印刷など
の出力処理を行い、最終的な文書を得る。この場合、文
書としての形式を整えるため、書式等の設定を行い、ま
た、テキストの文字列に対しては、その文字列の各々の
文字に対し、その大きさ(ポイント),書体(明朝体,
ゴシック体),表示位置(上つき,下つき)などの表示
形式を様々に変化させ、様々な表示形態の文書が作成可
能なように、各々のテキスト中の文字列(領域)対して
は、文字属性が付加される。
2. Description of the Related Art Conventionally, in a document processing apparatus, a series of character strings input from a keyboard apparatus is processed as text, a desired document is created, output processing such as printing is performed, and the final processing is performed. Get a good document. In this case, in order to adjust the format of the document, settings such as the format are made, and for the character string of the text, the size (point), typeface (Mincho) for each character of the character string. body,
Gothic type), display positions (superscript, subscript, etc.) are changed in various ways, so that documents with various display forms can be created, for each character string (area) in each text, Character attributes are added.

【0003】なお、このような文字属性は、文字の表示
様式を示すために、テキスト中の文字列(領域)の文字
に付加する属性情報であり、例えば、文字形式に関する
属性としては、「フォント」,「ポイント」,「ボール
ド体」、「イタリック体」、「上つき(肩文字)」、
「下つき(足文字)」、「下線」、「ストライクアウト
(中線;削除を示す線)」などがある。また、更に、フ
ォントの種類、文字の大きさも含めて文字属性と称する
ものとする。ここでの文字属性の値とは、文書属性の特
徴量を表すものであり、一例としては「フォントの種類
(名前)」,「ポイント数」などがある。
Note that such a character attribute is attribute information added to a character of a character string (area) in a text in order to indicate a display style of the character. , “Point”, “Bold”, “Italic”, “Superscript (shoulder)”,
"Subscript (foot print)", "underline", "strike out (middle line; line indicating deletion)", etc. Furthermore, the font type and the character size are also referred to as character attributes. The value of the character attribute here represents the feature amount of the document attribute, and examples thereof include “font type (name)” and “point number”.

【0004】また、近年においては、電子文書の増大に
ともない、電子文書をデータベースで管理するデータベ
ースシステムの開発が行われている。このようなデータ
ベースは、文書データベースと呼ばれる。文書データベ
ースを用いることにより、過去に作成した文書を取り出
して、当該文書の再利用を行うことが可能となる。つま
り、文書データベースに登録されている既存の文書また
はその文書の一部(文書部品と呼ぶことにする)を、新
たに作成する文書に取り込んだり、既存の文書と適当な
文書部品を組み合せて新たな文書を作成することが容易
に可能となる。
In recent years, along with the increase in electronic documents, database systems for managing electronic documents in a database have been developed. Such a database is called a document database. By using the document database, it is possible to take out a document created in the past and reuse the document. That is, an existing document registered in the document database or a part of the document (referred to as a document part) is incorporated into a newly created document, or an existing document and an appropriate document part are combined to create a new document. It is possible to easily create various documents.

【0005】このため、このような状況において、複数
の文書および文書部品のいくつかを1つにまとめて1つ
の文書にする(これを合成と呼ぶ)場合、最終的な文書
の体裁をいかにして整えるかが問題となる。すなわち、
この場合の文書作成においては、様々な体裁で記述され
た文書および文書部品のいつかを合成し、統一された体
裁により読み易い文書を生成するという作業を行うこと
になる。
Therefore, in such a situation, when a plurality of documents and some of document parts are combined into one document (this is called composition), how the final document should be formatted. The problem is how to prepare it. That is,
In the document creation in this case, the documents described in various formats and the document parts are combined at some time, and an easy-to-read document is generated by the unified format.

【0006】このような作業は煩雑な工程の作業となる
が、これを解決する1つの手段として、文書の論理構造
と体裁情報を分離し、論理構造を文書データベースで管
理しておき、その論理構造を用いて、文書および文書部
品の合成を行う試みがある。例えば、文書の中の要素
(文書部品)に対する特性として「強調」という論理要
素を用意し、分離された体裁情報により、その「強調」
部分に対しては、その体裁をボールドにすることが指定
できるようにする。なお、文書および文書部品の合成を
行う場合は、合成後に「強調」部分の体裁を新たに指定
する。
[0006] Such work is a complicated process work, but as one means for solving this, the logical structure of a document and format information are separated, and the logical structure is managed in a document database, and the logical structure is managed. There are attempts to synthesize documents and document parts using structures. For example, a logical element "emphasis" is prepared as a characteristic for an element (document part) in a document, and the "emphasis" is given by the separated format information.
For parts, specify that the appearance should be bold. When synthesizing a document and document parts, the appearance of the "emphasized" portion is newly designated after synthesizing.

【0007】このような文書内容の論理構造を念頭にお
いた構造化文書アーキテクチャとしては、例えば、SG
ML(ISO8879, Standard Gene
ralized Markup Language)の
提案がある。
As a structured document architecture in consideration of such a logical structure of document contents, for example, SG
ML (ISO8879, Standard Gene)
There is a proposal of a Raised Markup Language).

【0008】[0008]

【発明が解決しようとする課題】しかしながら、従来か
ら存在する多くの文書アーキテクチャは、例えば、RT
F(Microsoft. Rich Text Fo
rmat)のように、文書内容に対する論理構造は持た
ず、体裁の指示は文書データに埋めこまれた形式となっ
ている。つまり、個々の文書に対して、文書属性,頁属
性,文字属性などの属性により個別に体裁を指定する形
式となっている。このため、現在の多くの一般の文書ア
ーキテクチャによる文書および文書部品を合成する場合
には、構造化文書アーキテクチャの手法を用いることは
できない。
However, many existing document architectures, for example, RT
F (Microsoft. Rich Text Fo)
rmat) does not have a logical structure for the document contents, and the format instruction is embedded in the document data. In other words, the format is specified individually for each document by attributes such as document attributes, page attributes, and character attributes. For this reason, the structured document architecture method cannot be used when synthesizing documents and document parts according to many current general document architectures.

【0009】このように、従来から存在する多くの文書
アーキテクチャによる文書作成システムでは、複数の文
書および文書部品を合成する場合、合成後の文書の体裁
を整えるための何らかのツールが提供されているものは
なく、すべて手操作で行わなければならなかった。この
ため、その作業が煩雑なものとなり、能率が悪いという
問題があった。
As described above, in many existing document creating systems based on the document architecture, when synthesizing a plurality of documents and document parts, some kind of tool for adjusting the appearance of the synthesized document is provided. Instead, everything had to be done manually. For this reason, there is a problem that the work becomes complicated and inefficient.

【0010】本発明は、このような問題を解決するため
になされたものであり、本発明の目的は、複数の文書お
よび文書部品を合成して1つの文書にする場合に、煩雑
な作業を行うことなく、その文書のテキストの体裁を、
例えば文字属性を、合成後の文書で統一されたテキスト
の体裁にすることができるテキスト合成装置を提供する
ことにある。
The present invention has been made to solve such a problem, and an object of the present invention is to perform a complicated work when a plurality of documents and document parts are combined into one document. Without doing the appearance of the text of the document,
An object of the present invention is to provide a text synthesizing device that can make a character attribute the appearance of a unified text in a synthesized document.

【0011】[0011]

【課題を解決するための手段】上記のような目的を達成
するため、本発明によるテキスト合成装置は、入力され
た複数のテキスト中の各領域に設定された属性から、各
力テキスト全体の共通の属性を示すデフォルト属性値
を抽出するデフォルト抽出手段と、前記各入力テキスト
中のデフォルト属性値と異なる値の属性が設定されてい
る領域を抽出する領域抽出手段と、前記デフォルト抽出
手段で抽出されたデフォルト属性値と、前記領域抽出手
段で抽出されたデフォルト属性値と異なる値の属性が設
定された領域の属性値との差分を求める差分抽出手段
と、前記領域抽出手段抽出された領域について、所定
のデフォルト属性値に前記差分抽出手段により求められ
た差分を加え、前記複数のテキストを合成するテキスト
合成手段とを備えたことを特徴とする。
In order to achieve the above-mentioned object, the text synthesizing apparatus according to the present invention is input.
And default extracting means for extracting the default attribute value indicating the attributes set for each area in a plurality of text, a common attribute of each whole <br/> input Chikarate text was said default attributes in each input text Area extraction means for extracting an area in which an attribute having a value different from the value is set, and the default extraction
The default attribute value extracted by the means and the area extracting hand
An attribute with a value different from the default attribute value extracted in the
Difference extracting means for obtaining a difference from the attribute value of the defined area
If, for the extracted area in the region extracting means, a predetermined
To the default attribute value of
And a text synthesizing means for synthesizing the plurality of texts.

【0012】また、本発明によるテキスト合成方法にお
いては、入力された複数のテキスト中の各領域に設定さ
れた属性から、各入力テキスト全体の共通の属性を示す
デフォルト属性値を抽出する第1ステップと、前記各入
力テキスト中のデフォルト属性値と異なる値の属性が設
定されている領域を抽出する第2ステップと、前記デフ
ォルト抽出手段で抽出されたデフォルト属性値と、前記
領域抽出手段で抽出されたデフォルト属性値と異なる値
の属性が設定された領域の属性値との差分を求める第3
ステップと、前記領域抽出手段で抽出された領域につい
て、所定のデフォルト属性値に前記差分抽出手段により
求められた差分を加え、前記複数のテキストを合成する
第4ステップとを備えたことを特徴とする。
Further, in the text synthesizing method according to the present invention, it is set in each area in a plurality of input texts.
The common attributes of each input text
The first step of extracting default attribute values and the
Attribute with a value different from the default attribute value in the
A second step of extracting a defined region, and the differential
Default attribute value extracted by the default extraction means, and
A value different from the default attribute value extracted by the area extraction means
The difference with the attribute value of the area in which the attribute of
Steps and the area extracted by the area extracting means.
To the predetermined default attribute value by the difference extracting means.
The calculated differences are added and the plurality of texts are combined.
And a fourth step .

【0013】[0013]

【作用】本発明によるテキスト合成装置においては、デ
フォルト抽出手段が、入力された複数のテキスト中の各
領域に設定された属性から、各入力テキスト全体の共通
の属性を示すデフォルト属性値を抽出すると、領域抽出
手段が、前記各入力テキスト中のデフォルト属性値と異
なる値の属性が設定されている領域を抽出する。その場
合に、差分抽出手段が、前記デフォルト抽出手段で抽出
されたデフォルト属性値と、前記領域抽出手段で抽出さ
れたデフォルト属性値と異なる値の属性が設定された領
域の属性値との差分を求めるので、テキスト合成手段
が、前記領域抽出手段で抽出された領域について所定
のデフォルト属性値に前記差分抽出手段により求められ
た差分を加え、前記複数のテキストを合成する。つま
り、各々の入力テキストにおけるデフォルト属性値と異
なる領域の属性はそのまま残し、各入力テキストのデフ
ォルト属性値を所定のデフォルト属性値(共通のデフォ
ルト属性値)に統一する変換を行い、複数のテキストを
合成する。これにより、煩雑な作業を行うことなく、複
数のテキストを合成でき、合成された複数のテキスト
は、その属性の値が統一されたものとなり、体裁が整え
られたものとなる。
In text synthesizer apparatus according to the present invention, the default extraction means, from the attribute set for each region of the plurality of the text input, the default attribute value indicating a common attribute of each entire input Chikarate text Upon extraction, the area extracting means extracts an area in which an attribute having a value different from the default attribute value in each input text is set. Place of their
In this case, the difference extraction means extracts by the default extraction means.
And the default attribute values extracted by the area extraction means.
If an attribute with a value different from the default attribute value is set
Since obtaining the difference between the attribute values of the range, a text combining means, with the realm extracted by the area extracting means, determined by said difference extracting means to a predetermined default attribute values
The difference is added to synthesize the plurality of texts. In other words, the attributes in the area different from the default attribute value in each input text are left as they are, and the conversion is performed to unify the default attribute value of each input text to the predetermined default attribute value (common default attribute value), To synthesize. As a result, a plurality of texts can be combined without performing complicated work, and the plurality of combined texts have unified attribute values and are well-formatted.

【0014】すなわち、本発明によると、複数のテキス
トの中から合成対象となるテキストの文字に対するデフ
ォルト属性値を求め、そのデフォルト属性値と異なる値
の属性を有する領域の属性値とデフォルト属性値に対す
る差分を抽出しておき、テキストの合成を行う際に設定
する合成後の文字のデフォルト属性値に対して、予め抽
出しておいた差分に応じた変更を行い、文書の合成後も
合成前の文書の作成者の意図に近い形で表現できるよう
にする。このように、複数のテキストを合成する場合に
も、属性値の差分を加えるのみで、その属性の値が統一
されたものとなり、体裁が整えられたものとなる。
That is, according to the present invention, a plurality of texts
Def for the text characters to be combined from the
Default attribute value, which is different from the default attribute value
The attribute value and default attribute value of the area that has the attribute of
Extract the difference and set when synthesizing text
For the default attribute value of the combined character,
Make changes according to the differences you have made, and even after combining the documents
To be able to express in a form close to the intention of the creator of the document before composition
To As described above, even when a plurality of texts are combined, the attribute values are unified and the appearance is adjusted only by adding the difference between the attribute values.

【0015】[0015]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。図1は、本発明の一実施例にかかるテキスト合
成装置の要部の構成を示すブロック図である。なお、こ
の実施例のテキスト合成装置における処理要素の各ブロ
ックは、文書処理機能をもつワークステーションで実施
される場合、ハードウェア装置は中央処理装置およびメ
モリ等が利用され、ソフトウェアとしては文書エディタ
などを利用して文書処理を行われる。その場合、その文
書編集処理の中の一部の処理要素として実現される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a main part of a text synthesizing apparatus according to an embodiment of the present invention. When each block of the processing elements in the text synthesizing device of this embodiment is implemented by a workstation having a document processing function, a central processing unit and a memory are used as hardware devices, and a software such as a document editor is used as software. Is used for document processing. In that case, it is realized as a part of the processing elements in the document editing process.

【0016】図1において、複数のテキストを1つに合
成する場合、対象の第1の入力テキスト100と第2の
テキスト101とをデフォルト抽出部102に入力す
る。デフォルト抽出部102は、第1の入力テキスト1
00と第2の入力テキスト101をそれぞれ読み込み、
テキストの各々の領域に設定された文字列の文字属性の
設定を見つけると、文字属性が設定されている対象とな
っている文字列の文字数を文字属性ごとに数える。そし
て、対象の文字数が最も多い文字属性の値をデフォルト
文字属性値として抽出する。
In FIG. 1, when combining a plurality of texts into one, the target first input text 100 and second text 101 are input to the default extraction unit 102. The default extraction unit 102 uses the first input text 1
00 and the second input text 101, respectively,
When the setting of the character attribute of the character string set in each area of the text is found, the number of characters of the character string for which the character attribute is set is counted for each character attribute. Then, the value of the character attribute having the largest number of target characters is extracted as the default character attribute value.

【0017】領域抽出部103は、デフォルト抽出部1
02により抽出されたデフォルト文字属性値を受け付
け、更に、第1の入力テキスト100および第2の入力
テキスト101を入力して、第1の入力テキスト100
および第2の入力テキスト101のそれぞれのテキスト
において、デフォルト文字属性値以外の値の文字属性が
設定されている領域と、必要であれば、それらの文字属
性値とデフォルト文字属性値との差分を抽出する。
The area extraction unit 103 is a default extraction unit 1
The default character attribute value extracted by 02 is accepted, and further, the first input text 100 and the second input text 101 are input, and the first input text 100 is input.
In each text of the second input text 101 and the second input text 101, the area in which the character attribute of the value other than the default character attribute value is set, and if necessary, the difference between the character attribute value and the default character attribute value is calculated. Extract.

【0018】テキスト合成部104は、領域抽出部10
3により抽出された領域に対して、当該領域以外の部分
の文字属性値を、デフォルト設定部105により与えら
れた出力テキストのデフォルト文字属性値とし、上記領
域の部分の文字属性値をそのままの値で合成し、出力テ
キスト106を出力する。また、領域抽出部103によ
り抽出された領域に対して、出力テキストのデフォルト
文字属性値を設定する場合、当該領域の部分の文字属性
値を、デフォルト設定部105により与えられた出力テ
キストのデフォルト文字属性値に、抽出した文字属性値
の差分を加えた値に設定して、出力テキスト106に合
成して出力する。
The text synthesizing unit 104 includes an area extracting unit 10
With respect to the area extracted by 3, the character attribute value of the portion other than the area is set as the default character attribute value of the output text given by the default setting unit 105, and the character attribute value of the portion of the area is a value as it is. And output text 106 is output. When setting the default character attribute value of the output text for the area extracted by the area extraction unit 103, the character attribute value of the portion of the area is set to the default character of the output text given by the default setting unit 105. The attribute value is set to a value obtained by adding the difference between the extracted character attribute values, and the combined value is output to the output text 106.

【0019】次に、異なる文字属性値が設定されいる
2つのテキストを合成する場合の具体例について説明す
る。図2は、テキスト中のいくつかの領域に文字属性が
設定されている2つのテキストを合成する場合の第1の
具体例を説明する図である。図2において、200は第
1の入力テキスト、201は第2の入力テキスト、20
2は合成された出力テキストである。第1の入力テキス
ト200には、文字列「OSF」の領域以外の部分の文
字属性値(デフォルト文字属性値)が「明朝,12ポイ
ント」となっており、文字列「OSF」の領域の文字属
性値は、「明朝,12ポイント,ボールド」に設定され
ている。また、第2の入力テキスト201は、文字列
「OSF」の領域以外の部分の文字属性値が「ゴシッ
ク,12ポイント」となっており、文字列「OSF」の
領域の文字属性値は、「ゴシック,12ポイント,ボー
ルド」に設定されている。
[0019] Next, a specific example of the case of synthesizing two different text character attribute value is set. FIG. 2 is a diagram illustrating a first specific example in the case of combining two texts in which character attributes are set in some areas of the text. In FIG. 2, 200 is the first input text, 201 is the second input text, 20
2 is the synthesized output text. In the first input text 200, the character attribute value (default character attribute value) of the portion other than the area of the character string “OSF” is “Mincho, 12 points”, and the character attribute value of the area of the character string “OSF” is The character attribute value is set to "Mincho, 12 points, bold". In the second input text 201, the character attribute value of the portion other than the area of the character string “OSF” is “Gothic, 12 points”, and the character attribute value of the area of the character string “OSF” is “ Gothic, 12 points, bold ”.

【0020】なお、ここでのテキストとテキスト中の領
域に設定された文字属性値を表現するデータ構造は周知
の技術を用いればよいので、そのデータ構造の説明は省
略するが、例えば、特開平4−229364号公報の中
で説明されているような各種のデータ構造を用いれば良
い。
Since the data structure for expressing the text and the character attribute value set in the area in the text may be a well-known technique, the description of the data structure will be omitted. Various data structures as described in JP-A-4-229364 may be used.

【0021】図2に示すような第1の入力テキスト20
0と第2の入力テキスト201とを合成する場合、デフ
ォルト抽出部102は、第1の入力テキスト200を読
み込むと、最初の文字に設定された文字属性から、その
文字属性値が「明朝,12ポイント」であることを識別
し、この文字属性値と同じ文字属性値が設定されている
文字につていては、順次にその文字数を数える。つま
り、文字列「The」の領域の3つの文字数をカウント
する。
A first input text 20 as shown in FIG.
When synthesizing 0 and the second input text 201, the default extraction unit 102 reads the first input text 200 and the character attribute value set to the first character is “Mincho, "12 points" is identified, and the number of characters is sequentially counted for the characters for which the same character attribute value as this character attribute value is set. That is, the number of three characters in the area of the character string "The" is counted.

【0022】更に、読み進んでいくと、次の文字列「O
SF」の領域の部分で、設定されている文字属性値が
「明朝,12ポイント,ボールド」と変化するので、そ
の文字属性値についての文字数を“3”と数える。この
ようにして、テキストの文字列の領域の最後まで来る
と、文字属性値が「明朝,12ポイント」となっている
文字数が“61”とカウントされ、また、文字属性値が
「明朝,12ポイント,ボールド」となっている文字数
が“3”とカウントされる。この結果、第1の入力テキ
スト200におけるデフォルト文字属性値として、設定
された文字数の多い文字属性値「明朝,12ポイント」
が抽出される。
Further reading, the next character string "O"
In the area of "SF", the set character attribute value changes to "Mincho, 12 points, bold", so the number of characters for that character attribute value is counted as "3". In this way, when the end of the text character string area is reached, the number of characters whose character attribute value is "Mincho, 12 points" is counted as "61", and the character attribute value is "Mincho". , 12 points, bold ”is counted as“ 3 ”. As a result, as the default character attribute value in the first input text 200, the character attribute value "Mincho, 12 points" with a large number of set characters is set.
Is extracted.

【0023】ここで抽出されたデフォルト文字属性値
「明朝,12ポイント」が、領域抽出部103に供給さ
れると、領域抽出部103は、第1の入力テキスト20
0を読み込み、文字属性が設定されたテキストの各々の
領域から、デフォルト文字属性値以外の文字属値が設定
されている文字列「OSF」の領域を抽出する。更に、
デフォルト文字属性値「明朝,12ポイント」と、抽出
した領域における文字属性値「明朝,12ポイント,ボ
ールド」との差分「ボールド」を得る。
When the default character attribute value “Mincho, 12 points” extracted here is supplied to the area extraction unit 103, the area extraction unit 103 causes the first input text 20 to be displayed.
0 is read, and the area of the character string “OSF” in which the character belonging value other than the default character attribute value is set is extracted from each area of the text in which the character attribute is set. Furthermore,
The difference "bold" between the default character attribute value "Mincho, 12 points" and the character attribute value "Mincho, 12 points, bold" in the extracted area is obtained.

【0024】これらのデフォルト抽出部102および領
域抽出部103は、第2の入力テキスト201に対して
も、同様に処理を行い、デフォルト文字属性値の抽出
と、デフォルト文字属性値と異なる文字属性値が設定さ
れている領域の抽出と行う。この結果、第2の入力テキ
スト201に対しては、デフォルト文字属性値「ゴシッ
ク,12ポイント」が抽出され、デフォルト文字属性値
以外の文字列「OSF」の領域が抽出される。また、デ
フォルト文字属性値「ゴシック,12ポイント」と抽出
した領域における文字属性値「ゴシック,12ポイン
ト,ボールド」との差分「ボールド」が得られる。
The default extraction unit 102 and the area extraction unit 103 perform the same processing on the second input text 201, and extract the default character attribute value and the character attribute value different from the default character attribute value. The area in which is set is extracted. As a result, the default character attribute value “Gothic, 12 points” is extracted for the second input text 201, and the area of the character string “OSF” other than the default character attribute value is extracted. Further, the difference "bold" between the default character attribute value "Gothic, 12 points" and the character attribute value "Gothic, 12 points, bold" in the extracted area is obtained.

【0025】デフォルト設定部105では、出力テキス
トとする合成後のテキストのデフォルト文字属性値を指
定する。ここでは、デフォルト設定部105により出力
テキストのデフォルト文字属性値として「明朝,12ポ
イント」を指定したとする。
The default setting section 105 specifies the default character attribute value of the combined text as the output text. Here, it is assumed that "Mincho, 12 points" is specified as the default character attribute value of the output text by the default setting unit 105.

【0026】デフォルト設定部105により出力テキス
トとするデフォルト文字属性値を設定すると、テキスト
合成部104は、第1の入力テキスト200および第2
の入力テキスト201に対して、元のデフォルト文字属
性値が設定されていた領域の文字属性値を、デフォルト
設定部105により与えられたデフォルト文字属性値
「明朝,12ポイント」に設定する。つまり、第1の入
力テキスト200のデフォルト文字属性値「明朝,12
ポイント」を、デフォルト設定部105により与えられ
たデフォルト文字属性値「明朝,12ポイント」に設定
し(ここでは同じ文字属性値なので変わらない)、第2
の入力テキスト201のデフォルト文字属性値「ゴシッ
ク,12ポイント」を、デフォルト設定部105により
与えられたデフォルト文字属性値「明朝,12ポイン
ト」に設定する(ここではフォントがゴシックから明朝
に変わる)。
When the default setting unit 105 sets a default character attribute value to be an output text, the text synthesizing unit 104 causes the first input text 200 and the second input text to be output.
For the input text 201, the character attribute value of the area where the original default character attribute value was set is set to the default character attribute value “Mincho, 12 points” given by the default setting unit 105. That is, the default character attribute value “Mincho, 12” of the first input text 200
"Point" is set to the default character attribute value "Mincho, 12 points" given by the default setting unit 105 (the same character attribute value does not change here), and the second
The default character attribute value "Gothic, 12 points" of the input text 201 of is set to the default character attribute value "Mincho, 12 points" given by the default setting unit 105 (the font is changed from Gothic to Mincho here). ).

【0027】第1の入力テキスト200のデフォルト文
字属性値「明朝,12ポイント」以外の文字属性値の設
定されている文字列「OSF」の領域は、デフォルト設
定部105により与えられたデフォルト文字属性値「明
朝,12ポイント」に、抽出した差分「ボールド」を加
えた文字属性値「明朝,12ポイント,ボールド」に設
定する。
The area of the character string “OSF” in which the character attribute value other than the default character attribute value “Mincho, 12 points” of the first input text 200 is set is the default character given by the default setting unit 105. The character attribute value “Mincho, 12 points, bold” is set by adding the extracted difference “bold” to the attribute value “Mincho, 12 points”.

【0028】同様にして、第2の入力テキスト201の
デフォルト文字属性値「ゴシック,12ポイント」以外
の文字列「OSF」の領域は、デフォルト設定部105
により与えられた「明朝,12ポイント」に、更に抽出
した差分「ボールド」を加えて「明朝,12ポイント,
ボールド」に設定する。そして、これらの新たな文字属
性値が設定された2つのテキストを合成し、出力テキス
ト202として出力する。この結果、出力テキスト20
2では、第1の入力テキスト200と第2の入力テキス
ト201では異なる文字属性値が、統一された文字属性
値となって、2つのテキストの体裁が整えられて合成さ
れる。
Similarly, in the area of the character string "OSF" other than the default character attribute value "Gothic, 12 points" of the second input text 201, the default setting unit 105
To the "Mincho, 12 points" added by "Mincho, 12 points,"
Set to "bold". Then, the two texts in which these new character attribute values are set are combined and output as the output text 202. As a result, the output text 20
In No. 2, different character attribute values in the first input text 200 and the second input text 201 become unified character attribute values, and the appearances of the two texts are adjusted and combined.

【0029】図3は、テキスト中のいくつかの領域に文
字属性が設定されている2つのテキストを合成する場合
の第2の具体例を説明する図である。図3において、3
00は第1の入力テキスト、301は第2の入力テキス
ト、302は合成された出力テキストである。第1の入
力テキスト300は、テキスト全体の文字属性値(デフ
ォルト文字属性値)として「明朝,10ポイント」が定
義され、文字列「OSF」の領域の文字属性値が更に
「明朝,12ポイント」と再定義されている。また、第
2の入力テキスト301は、テキスト全体の文字属性値
として「明朝,12ポイント」が定義され、文字列「O
SF」の領域の文字属性値は「明細,14ポイント」に
再定義されている。
FIG. 3 is a diagram for explaining a second specific example in the case of combining two texts having character attributes set in some areas of the text. In FIG. 3, 3
00 is the first input text, 301 is the second input text, and 302 is the synthesized output text. In the first input text 300, “Mincho, 10 points” is defined as the character attribute value (default character attribute value) of the entire text, and the character attribute value in the area of the character string “OSF” is further “Mincho, 12 points”. It is redefined as "point". In the second input text 301, "Mincho, 12 points" is defined as the character attribute value of the entire text, and the character string "O"
The character attribute value of the area of "SF" is redefined to "details, 14 points".

【0030】この場合においても、まず、デフォルト抽
出部102は、第1の入力テキスト300を読み込み、
デフォルト文字属性値を抽出する。つまり、デフォルト
抽出部102は、テキスト全体の文字属性値が「明朝,
10ポイント」と定義されていることを識別し、更に読
み進み、文字列「OSF」の領域の部分で文字属性値が
「明朝,12ポイント」と再定義されていることを識別
する。したがって、この場合、デフォルト文字属性値と
しては、テキスト全体の文字属性値の「明朝,10ポイ
ント」が抽出される。
Also in this case, the default extraction unit 102 first reads the first input text 300,
Extract the default character attribute value. That is, the default extraction unit 102 determines that the character attribute value of the entire text is “Mincho,
It is identified that the character attribute value is defined as "10 points", the reading is further performed, and it is identified that the character attribute value is redefined as "Mincho, 12 points" in the area of the character string "OSF". Therefore, in this case, "Mincho, 10 points" of the character attribute value of the entire text is extracted as the default character attribute value.

【0031】デフォルト文字属性値が抽出されると、領
域抽出部103は、前述の場合と同様にして、入力テキ
スト300を読み込み、デフォルト文字属性値以外の文
字列「OSF」の領域を抽出すると共に、当該領域の文
字属性値「明朝,12ポイント」とデフォルト文字属性
値「明朝,10ポイント」との差分「+2ポイント」を
得る。
When the default character attribute value is extracted, the area extraction unit 103 reads the input text 300 and extracts the area of the character string "OSF" other than the default character attribute value in the same manner as the above case. A difference "+2 points" between the character attribute value "Mincho, 12 points" and the default character attribute value "Mincho, 10 points" in the area is obtained.

【0032】同様にして、デフォルト抽出部102およ
び領域抽出部103は、第2の入力テキスト301に対
しても、デフォルト文字属性値「明朝,12ポイント」
と、デフォルト文字属性値以外の文字列「OSF」の領
域と、当該領域の文字属性値「明朝,14ポイント」と
デフォルト文字属性値「明朝,12ポイント」との差分
「+2ポイント」を得る。
Similarly, the default extraction unit 102 and the region extraction unit 103 also apply the default character attribute value "Mincho, 12 points" to the second input text 301.
And the area of the character string "OSF" other than the default character attribute value, and the difference "+2 points" between the character attribute value "Mincho, 14 points" and the default character attribute value "Mincho, 12 points" of the area. obtain.

【0033】次に、デフォルト設定部105で、出力テ
キストに合成する場合の出力テキストのデフォルト文字
属性値を指定する。ここでは、例えば、このデフォルト
文字属性値として「明朝,12ポイント」を指定したと
する。
Next, the default setting unit 105 specifies the default character attribute value of the output text when combining with the output text. Here, for example, it is assumed that "Mincho, 12 points" is specified as the default character attribute value.

【0034】テキスト合成部104では、第1の入力テ
キスト300と第2の入力テキスト301に対して、元
のデフォルト文字属性値が設定されていた領域の文字属
性値を、デフォルト設定部105で与えられた文字属性
値「明朝,12ポイント」に設定する。つまり、第1の
入力テキスト300のデフォルト文字属性値「明朝,1
0ポイント」を、デフォルト設定部105により与えら
れたデフォルト文字属性値「明朝,12ポイント」に設
定し直し、第2の入力テキスト301のデフォルト文字
属性値「明朝,12ポイント」を、デフォルト設定部1
05により与えられたデフォルト文字属性値「明朝,1
2ポイント」に設定し直す。
In the text synthesizing unit 104, the default setting unit 105 gives the character attribute value of the area where the original default character attribute value was set to the first input text 300 and the second input text 301. The specified character attribute value "Mincho, 12 points" is set. That is, the default character attribute value of the first input text 300 is "Mincho, 1
0 point "is reset to the default character attribute value" Mincho, 12 points "given by the default setting unit 105, and the default character attribute value" Mincho, 12 points "of the second input text 301 is set to the default. Setting section 1
Default character attribute value "Mincho, 1
Reset to "2 points".

【0035】次に、入力テキスト300のデフォルト文
字属性値以外の文字列「OSF」の領域は、デフォルト
設定部105により与えられた文字属性値「明朝,12
ポイント」に差分「+2ポイント」を加えて「明朝,1
4ポイント」に設定する。同様に、第2の入力テキスト
301のデフォルト文字属性値以外の文字列の「OS
F」の領域にも、デフォルト設定部105により与えら
れた文字属性値「明朝,12ポイント」に差分「+2ポ
イント」を加えて「明朝,14ポイント」に設定し、新
たな文字属性値が設定されたテキストを合成して、出力
テキスト303として出力する。これにより、合成され
た出力テキストは文字属性値が統一され、その体裁が整
えられたものとして出力される。
Next, in the area of the character string "OSF" other than the default character attribute value of the input text 300, the character attribute value "Mincho, 12" given by the default setting unit 105 is set.
Add "+2 points" to "Points" and add "Mincho, 1
4 points ". Similarly, a character string other than the default character attribute value of the second input text 301 "OS
In the area “F”, the difference “+2 points” is added to the character attribute value “Mincho, 12 points” given by the default setting unit 105 to set it to “Mincho, 14 points”, and a new character attribute value is set. The text in which is set is combined and output as the output text 303. As a result, the combined output texts are output with the character attribute values unified and the appearance adjusted.

【0036】以上に説明したように、本実施例のテキス
ト合成装置においては、各入力テキストから、テキスト
全体に関する文字属性の省略値を示すデフォルト文字属
性値を抽出し、更に、入力テキスト中のデフォルト文字
属性値と異なる値の文字属性の設定されている領域を抽
出し、抽出された領域についてのみ上記領域の文字属性
値を有するような出力テキストを生成する。また、異な
る値の文字属性値とデフォルト文字属性値との差分を求
め、設定した合成後のデフォルト文字属性値にその差分
を加えて、得られた新たな文字属性値を抽出された領域
の文字属性値とするような出力テキストに合成する。こ
れにより、合成された出力テキストの文字属性値は統一
され、体裁が整なったものとなる。
As described above, in the text synthesizing device of this embodiment, the default character attribute value indicating the default value of the character attribute for the entire text is extracted from each input text, and the default value in the input text is further extracted. An area in which a character attribute having a value different from the character attribute value is set is extracted, and output text having the character attribute value in the area is generated only for the extracted area. In addition, the difference between the character attribute value of a different value and the default character attribute value is obtained, and the difference is added to the set default character attribute value after combining, and the obtained new character attribute value is added to the characters in the extracted area. Synthesize to output text as attribute value. As a result, the character attribute values of the combined output text are unified and the appearance is adjusted.

【0037】このように、本実施例においては、デフォ
ルト文字属性値を抽出し、それと異なる部分にのみ、そ
の文字属性を設定するので、合成語のデフォルトの文字
属性値は統一することができ、また、デフォルト文字属
性値との差分を求めておくので、合成後の文書のデフォ
ルト文字属性値にその差分を加えることにより、文字属
性値を補正することができる。
As described above, in this embodiment, since the default character attribute value is extracted and the character attribute is set only in the different portion, the default character attribute value of the compound word can be unified, Further, since the difference from the default character attribute value is obtained, the character attribute value can be corrected by adding the difference to the default character attribute value of the combined document.

【0038】[0038]

【発明の効果】以上、説明したように、本発明のテキス
ト合成装置によれば、複数の文書および文書部品を合成
する場合に、合成後の文書でデフォルト文字属性値が適
切に設定されて体裁が整う。また、差分による補正を行
うことにより、合成前の文書および文書部品の作成者の
意図に近い属性値で表現できるという効果を奏する。
As described above, according to the text synthesizing apparatus of the present invention, when synthesizing a plurality of documents and document parts, the default character attribute value is appropriately set in the synthesized document and the appearance is adjusted. Is set. Further, by performing the correction based on the difference, there is an effect that it can be expressed by the attribute value close to the intention of the creator of the document and the document part before the composition.

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

【図1】 図1は本発明の一実施例にかかるテキスト合
成装置の要部の構成を示すブロック図、
FIG. 1 is a block diagram showing a configuration of a main part of a text synthesizing apparatus according to an embodiment of the present invention,

【図2】 図2はテキスト中のいくつかの領域に文字属
性が設定されている2つのテキストを合成する場合の第
1の具体例を説明する図、
FIG. 2 is a diagram illustrating a first specific example in the case of combining two texts in which character attributes are set in some areas of the text,

【図3】 図3はテキスト中のいくつかの領域に文字属
性が設定されている2つのテキストを合成する場合の第
2の具体例を説明する図である。
FIG. 3 is a diagram illustrating a second specific example in the case of combining two texts in which character attributes are set in some areas of the text.

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

100…第1の入力テキスト、101…第2の入力テキ
スト、102…デフォルト抽出部、103…領域抽出
部、104…テキスト合成部、105…デフォルト設定
部、106…出力テキスト、200…第1の入力テキス
ト、201…第2の入力テキスト、202…出力テキス
ト、300…第1の入力テキスト、301…第2の入力
テキスト、302…出力テキスト。
100 ... 1st input text, 101 ... 2nd input text, 102 ... Default extraction part, 103 ... Area extraction part, 104 ... Text composition part, 105 ... Default setting part, 106 ... Output text, 200 ... First Input text, 201 ... Second input text, 202 ... Output text, 300 ... First input text, 301 ... Second input text, 302 ... Output text.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−177901(JP,A) 特開 平4−247561(JP,A) 特開 昭60−110031(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 17/21 - 17/24 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-5-177901 (JP, A) JP-A-4-247561 (JP, A) JP-A-60-110031 (JP, A) (58) Field (Int.Cl. 7 , DB name) G06F 17/21-17/24

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力された複数のテキスト中の各領域に
定された属性から、各入力テキスト全体の共通の属性を
示すデフォルト属性値を抽出するデフォルト抽出手段
と、前記各 入力テキスト中のデフォルト属性値と異なる値の
属性が設定されている領域を抽出する領域抽出手段と、前記デフォルト抽出手段で抽出されたデフォルト属性値
と、前記領域抽出手段で抽出されたデフォルト属性値と
異なる値の属性が設定された領域の属性値との差分を求
める差分抽出手段と、 前記領域抽出手段で抽出された領域について所定のデ
フォルト属性値に前記差分抽出手段により求められた差
分を加え、前記複数のテキストを合成するテキスト合成
手段とを備えたことを特徴とするテキスト合成装置。
1. Setting in each area in a plurality of input texts
From the constant attributes, and default extracting means for extracting the default attribute value indicating a common attribute of each entire input Chikarate text, the region where the attribute default attribute values different from the values in the input text is set Area extracting means to be extracted and default attribute values extracted by the default extracting means
And the default attribute value extracted by the area extracting means
Find the difference with the attribute value of the area where the attribute with different value is set
And Mel difference extracting means, the realm extracted by the area extracting means, the difference obtained by the difference extracting means to a predetermined default attribute values
A text synthesizing device comprising: a text synthesizing unit for synthesizing the plurality of texts by adding minutes .
【請求項2】入力された複数のテキスト中の各領域に設
定された属性から、各入力テキスト全体の共通の属性を
示すデフォルト属性値を抽出する第1ステップと、 前記各入力テキスト中のデフォルト属性値と異なる値の
属性が設定されている領域を抽出する第2ステップと、 前記デフォルト抽出手段で抽出されたデフォルト属性値
と、前記領域抽出手段で抽出されたデフォルト属性値と
異なる値の属性が設定された領域の属性値との差分を求
める第3ステップと、 前記領域抽出手段で抽出された領域について、所定のデ
フォルト属性値に前記差分抽出手段により求められた差
分を加え、前記複数のテキストを合成する第4ステップ
とを備えたことを特徴とするテキスト合成方法。
2. Setting in each area in a plurality of input texts
From the specified attributes, the common attributes of the entire input text are
The first step of extracting the default attribute value shown, and the value of the default attribute value different from the default attribute value in each input text.
The second step of extracting the area in which the attribute is set, and the default attribute value extracted by the default extracting means.
And the default attribute value extracted by the area extracting means
Find the difference with the attribute value of the area where the attribute with different value is set
The third step of setting the area and the area extracted by the area extracting means,
The difference obtained by the difference extracting means in the fault attribute value
Fourth step of adding minutes and combining the plurality of texts
A text synthesizing method comprising:
JP17770894A 1994-07-07 1994-07-07 Text synthesis device Expired - Fee Related JP3391103B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17770894A JP3391103B2 (en) 1994-07-07 1994-07-07 Text synthesis device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17770894A JP3391103B2 (en) 1994-07-07 1994-07-07 Text synthesis device

Publications (2)

Publication Number Publication Date
JPH0822466A JPH0822466A (en) 1996-01-23
JP3391103B2 true JP3391103B2 (en) 2003-03-31

Family

ID=16035724

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17770894A Expired - Fee Related JP3391103B2 (en) 1994-07-07 1994-07-07 Text synthesis device

Country Status (1)

Country Link
JP (1) JP3391103B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4770285B2 (en) * 2005-06-20 2011-09-14 富士ゼロックス株式会社 Image processing apparatus and control program therefor
JP2016115234A (en) * 2014-12-17 2016-06-23 コニカミノルタ株式会社 Property control program and property control method, as well as common file creation system

Also Published As

Publication number Publication date
JPH0822466A (en) 1996-01-23

Similar Documents

Publication Publication Date Title
US20050235202A1 (en) Automatic graphical layout printing system utilizing parsing and merging of data
JP3391103B2 (en) Text synthesis device
JP3471854B2 (en) Character processing apparatus and method
JPH0728817A (en) Structure converting method of document information
CN115329782A (en) Language translation method, device, electronic equipment and storage medium
JP3076348B2 (en) Document shaping apparatus and document shaping method
KR100426010B1 (en) Method for Converting DeskTop Publishing Documents to XML documents
JPH08190558A (en) Device and method therefor inter-character insertion
JP2763227B2 (en) Format determination method
WO2007089434A1 (en) Improving text rendering contrast
JP2696961B2 (en) Document formatting method
JP2002259362A (en) Document conversion definition generating program
JP3497263B2 (en) Method and apparatus for generating fixed format document from marked document
JPH10116279A (en) Document processor
JP3528620B2 (en) Character drawing apparatus and character drawing method
JP2000339307A (en) Typesetting device
CN118227099A (en) Method and system for outputting document based on JAVA code
JPH01162975A (en) Document editing system for each paragraph
JP2003281123A (en) Electronic application form preparing tool, method and program for preparing electronic application form
JPH11272673A (en) Method and processor for document processing and record medium where computer program for document processing is recorded
CN115859933A (en) Digital certificate service development system and method
JP3138571B2 (en) String replacement device
JPH09282356A (en) Logic circuit correction system
JP2001043214A (en) Automatic tabulating method
JPS6321171A (en) Document processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080124

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090124

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100124

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110124

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120124

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees