JPH0756898A - Word processor - Google Patents

Word processor

Info

Publication number
JPH0756898A
JPH0756898A JP5216830A JP21683093A JPH0756898A JP H0756898 A JPH0756898 A JP H0756898A JP 5216830 A JP5216830 A JP 5216830A JP 21683093 A JP21683093 A JP 21683093A JP H0756898 A JPH0756898 A JP H0756898A
Authority
JP
Japan
Prior art keywords
color
relative
attribute
document
component
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.)
Granted
Application number
JP5216830A
Other languages
Japanese (ja)
Other versions
JP3178492B2 (en
Inventor
Kazuo Saito
和雄 齊藤
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
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 filed Critical Fuji Xerox Co Ltd
Priority to JP21683093A priority Critical patent/JP3178492B2/en
Publication of JPH0756898A publication Critical patent/JPH0756898A/en
Application granted granted Critical
Publication of JP3178492B2 publication Critical patent/JP3178492B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To easily change the attribute of a document composition elements at the time of editing by the word processor. CONSTITUTION:The device is provided with a document input means 11 which inputs documents, attribute holding means 122 which holds the attribute for the document composition elements inputted by the document input means based on the attribute for the other composition element, and document composition element processing means 13 which changes the corresponding document composition element based on the attribute which is held by the attribute holding means. The attribute of the composition element held by the attribute holding means includes the relative value for the values of the specific attributes R, G, and B of the reference component being the other component to be referred and the type of relation (complementary color and gradation.

Description

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

【0001】[0001]

【産業上利用分野】本発明は色や文字フォントなどの文
書の構成要素に対する属性の変更を含む編集を行うこと
のできるワードプロセッサなどの文書処理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus such as a word processor capable of performing editing including changing attributes of document elements such as colors and character fonts.

【0002】[0002]

【従来の技術】近年の技術の進歩によりワードプロセッ
サやワークステーション上の文書編集エディタなどにお
いて手軽に文書を作成できるようになっている。最近で
はさらにその機能が高まり、カラー文書が作成できるよ
うになった。それをカラープリンタに出力することによ
り、手軽にカラー文書が作成できるようになったのであ
る。
2. Description of the Related Art Recent technological advances have made it possible to easily create a document in a word processor or a document editing editor on a workstation. Recently, its functions have been further enhanced and it has become possible to create color documents. By outputting it to a color printer, a color document can be easily created.

【0003】このとき、ワードプロセッサなどの文書編
集装置において色の指定を行う際には、文書におけるあ
る構成要素に対して絶対的な色を指定するのが通常であ
り、一般的に用いられている方法である(ここでいう
「絶対的な色を指定する」とはある色を直接に指定する
という意味である)。例えば、ある文書において「表
題」の色は「青」に「著者名」は「赤」にというような
指定は、「表題」あるいは「著者名」を示す文字の属性
として「赤」、「青」などの色を直接に指定する。例え
ば、富士ゼロックス社の文書処理装置J−Starにお
いて文書の文字列の一部に色を付けようとする時は、色
付けを行おうとする文字列を選択し、そのプロパティシ
ートを開き、そこでその文字列に指定したい色の指定を
行うという手法を用いる(富士ゼロックス株式会社発
行、「GlobalViewカラーワークステーション
追加説明書」)。この例の場合は文字であるが、図形の
場合もまったく同様で色を付けたい図形要素を選択して
そのプロパティシートを開き、直接その色を指定する。
他の文書処理装置においてもプロパティシートという手
法を用いて指定するかどうかの違いはあるが、文字列、
図形要素などが絶対的な色の値を属性として持っている
ことには変わりはない。
At this time, when a color is specified in a document editing apparatus such as a word processor, it is usual to specify an absolute color for a certain component in a document, and it is generally used. Method ("designating an absolute color" here means directly designating a certain color). For example, in a certain document, "title" color is "blue" and "author name" is "red". For example, "red" and "blue" are attributes of the characters indicating "title" or "author name". Directly specify a color such as ". For example, when you want to color a part of a character string of a document in the document processing device J-Star of Fuji Xerox Co., Ltd., select the character string to be colored, open the property sheet, and then there. A method of designating a color to be designated in a column is used (Fuji Xerox Co., Ltd., "Global View Color Workstation Addition Manual"). In the case of this example, it is a character, but in the case of a figure, it is exactly the same. Select the figure element to be colored, open its property sheet, and directly specify the color.
In other document processing devices, there is a difference whether or not it is specified using the method called the property sheet.
There is no change that graphic elements have absolute color values as attributes.

【0004】一方、一般に文書の色づけには同系色を用
いて色付けする場合が良くある。例えば、図12に示す
ようなビジネス文書の場合の棒グラフでは、関連のある
一まとまりの棒グラフの各棒は「青」などの濃淡の違い
で色付けで表現されることが多い。また、章のタイトル
を青に統一し、節さらに項というように、章だての細か
い部分を表すタイトルは順次濃度の薄い青で表現してい
く、などの色の付け方もある。つまり、論理的に関係の
あるものを色の濃淡で表現しているのである。
On the other hand, in general, similar colors are often used for coloring documents. For example, in a bar graph in the case of a business document as shown in FIG. 12, each bar of a related group of bar graphs is often represented by coloring with a shade such as “blue”. In addition, the chapter titles are unified into blue, and the titles that represent the finer parts of the chapters, such as clauses and paragraphs, are expressed in light blue in order of density. In other words, what is logically related is represented by the shade of color.

【0005】[0005]

【発明が解決しようとする課題】このような文書の作成
の際には、例えば青の濃淡で表現していた要素を緑の濃
淡にしたいなど、色のイメージを変えるような編集を行
うことは、頻繁に行うと考えられる。ところが、このよ
うな編集作業を従来のワードプロセッサ等で行おうとす
ると、濃淡についての情報は変更しなくてもよいにもか
かわらず、色の情報の変更と共に濃淡の情報が失われて
しまうため、個々の要素の色をすべて手で濃淡の情報を
も入力しなおさなければならないという問題があった。
同様の問題は、色以外の属性、例えばフォントの種類や
大きさ等の属性についても現れることであった。そこ
で、本発明はその問題点を解決することを課題とするも
のである。すなわち、本発明は、文書処理装置編集時に
文書構成要素の属性の変更を容易に行うことができるよ
うにすることを課題とする。
When creating such a document, it is not possible to perform editing that changes the color image, for example, to make elements that were expressed in shades of blue shades of green. , It seems to be done frequently. However, if such an editing operation is attempted by a conventional word processor or the like, the light and shade information is lost as the color information is changed although the light and shade information does not have to be changed. There was a problem that you had to manually re-enter the shade information for all the element colors.
A similar problem was that attributes other than color, such as attributes such as font type and size, also appeared. Then, this invention makes it a subject to solve the problem. That is, an object of the present invention is to make it possible to easily change the attribute of a document constituent element when editing a document processing apparatus.

【0006】[0006]

【課題を解決するための手段】本発明(請求項1)は、
文書を入力する文書入力手段(図1の11,図9の9
1)と、前記文書入力手段により入力された文書の構成
要素に対する属性をその他の構成要素に対する属性との
関係として保持する属性保持手段(図1の122、図9
の922)と、前記属性保持手段により保持されている
属性に基づいて該当する文書の構成要素を変更する文書
構成要素処理手段(図1の13、図9の93)とを備え
た文書処理装置である。
The present invention (Claim 1) includes:
Document input means for inputting a document (11 in FIG. 1, 9 in FIG. 9)
1) and attribute holding means (122 in FIG. 1, FIG. 9 in FIG. 1) for holding the attributes for the constituent elements of the document input by the document input means as a relationship with the attributes for the other constituent elements.
922) and document constituent element processing means (13 in FIG. 1, 93 in FIG. 9) for changing the constituent elements of the corresponding document based on the attribute held by the attribute holding means. Is.

【0007】本発明の一態様(請求項2)では、前記文
書処理装置において、前記属性保持手段に保持される構
成要素の属性(例えば、図2(a)中の識別子がBであ
る構成要素の色)が、参照する他の構成要素(例えば、
図2(a)の構成要素A)を指し示す属性(例えば、図
2(a)の相対(a))、参照される前記他の構成要素
である参照構成要素の特定の属性の値(例えば、図2
(a)の構成要素Aの色の絶対値[0,5,10])に
対する相対値(例えば、図2(b)の相対値[0,0,
−1])、および関係の種類(補色、濃淡など)を含む
ことを特徴とする。
In one aspect of the present invention (claim 2), in the document processing apparatus, an attribute of a component held by the attribute holding means (for example, a component whose identifier in FIG. 2A is B) Other components (for example,
An attribute (for example, relative (a) in FIG. 2A) indicating the constituent element A in FIG. 2A, a value of a specific attribute of the reference constituent element that is the other constituent element to be referred (for example, Figure 2
The relative value [0,5,10] of the color of component A in (a) (for example, the relative value [0,0,
−1]), and the type of relationship (complementary color, shading, etc.).

【0008】また、本発明の他の態様(請求項3)で
は、前記参照構成要素を指し示す属性が、関係を表す
式、例えば、図7に示すような、1つ前の構成要素、2
つ前の構成要素、あるいは木構造の文書の場合は、親、
弟などの関係を示す式、によって指定されることを特徴
とする。
In another aspect of the present invention (claim 3), the attribute indicating the reference constituent element is an expression representing a relation, for example, the immediately preceding constituent element as shown in FIG.
The previous component, or the parent for a tree-structured document,
It is characterized by being specified by an expression indicating the relationship of the younger brother.

【0009】[0009]

【作用】本発明は、構成要素の色やフォントサイズなど
の属性を指定する際に他の構成要素との相対的な値で属
性の指定を行うことができるようにし、前述の問題点を
解決しようとするものである。すなわち、本発明(請求
項1)において、文書の構成要素に対する属性は、絶対
値による従来の指定に加え、他の構成要素に対する属性
の関係として指定されるものであり、属性保持手段に保
持される。文書構成要素処理手段は属性保持手段により
保持されている属性に基づいて文書構成要素の属性を決
定処理する。構成要素の属性としては、本発明の一態様
(請求項2)では、その構成要素が参照する構成要素は
どれか、参照構成要素の属性値に対する相対値、参照構
成要素の属性とどのような関係にあるかなどの情報が含
まれる。例えば、ある構成要素の色の値を指定する際
に、従来の絶対値による指定に加えさらに、どの構成要
素を参照するか、その構成要素の色との相対値、その色
との関係(補色、濃淡など)を指定するようにする。
According to the present invention, when the attributes such as the color and the font size of the constituent element are designated, the attribute can be designated by the relative value to other constituent elements, and the above-mentioned problems are solved. Is what you are trying to do. That is, in the present invention (Claim 1), the attribute for the constituent element of the document is designated as the relationship of the attribute for other constituent elements in addition to the conventional designation by the absolute value, and is held by the attribute holding means. It The document component processing means determines the attribute of the document component based on the attribute held by the attribute holding means. As an attribute of a constituent element, in one aspect (claim 2) of the present invention, which constituent element is referred to by the constituent element, a relative value with respect to an attribute value of the reference constituent element, and an attribute of the reference constituent element Information such as whether there is a relationship is included. For example, when specifying the color value of a component, in addition to the conventional absolute value specification, which component is referred to, the relative value with the color of the component, and the relationship with that color (complementary color , Shade, etc.) should be specified.

【0010】このようにすることで、ある構成要素を基
準としてその構成要素との相対的な色関係(あるいはフ
ォントサイズの関係)にあるような構成要素に関して
は、文書全体のイメージを変更する際に、個々の色やフ
ォントサイズなどの属性を変更する必要はなく、基本と
なっている色やフォントサイズなどの属性が指定されて
いる構成要素の属性値を変更するだけで、全体の色やフ
ォントサイズなどの属性を変更することが可能となり、
ユーザの色の編集作業能率を向上することができる。な
お、近年Open Document Architec
tureなどの構造化文書が注目されているが、構造化
文書にこの手法を適用すると、その効果は顕著である。
つまり、構造化文書においては論理構造と言う形式で文
書の論理的関係が記述される。それを使用して、論理構
造に従って多彩な指定を行うことが可能になるのであ
る。
By doing so, when a component having a relative color relationship (or font size relationship) with a certain component as a reference is changed when the image of the entire document is changed. It is not necessary to change the attributes such as individual color and font size, and you can change the overall color and font by changing the attribute value of the component for which the basic color and font size attributes are specified. It becomes possible to change attributes such as font size,
The efficiency of the user's color editing work can be improved. In addition, in recent years Open Document Architec
Structured documents such as true are drawing attention, but when this method is applied to structured documents, the effect is remarkable.
That is, in the structured document, the logical relationship between the documents is described in a format called a logical structure. It can be used to make various designations according to the logical structure.

【0011】[0011]

【実施例】【Example】

(実施例1)本実施例は絶対的な色指定をする従来の文
書処理装置に新たに相対色による色の指定機能を付加し
たものである。図1に本実施例における構成図を示す。
(Embodiment 1) In this embodiment, a conventional document processing apparatus for absolute color designation is newly provided with a color designation function based on relative colors. FIG. 1 shows a block diagram of this embodiment.

【0012】<実施例1の構成>本実施例では文書を入
力するための入力部11に相対色指定部112、文書の
構成要素の内容・属性を保持するための文書データ保持
部12に相対色保持部122を追加し、さらにプリンタ
あるいはディスプレイなどの可視化部19に表示する際
に、相対色から色を計算するための色計算部13を設け
ている。
<Structure of Embodiment 1> In this embodiment, an input unit 11 for inputting a document is relative to a relative color designation unit 112, and a document data holding unit 12 for holding contents / attributes of constituent elements of the document. A color holding unit 122 is added, and a color calculation unit 13 for calculating a color from a relative color when displaying on a visualization unit 19 such as a printer or a display is provided.

【0013】相対色保持部122は、構成要素保持部1
21に保持される文書における他の属性(たとえば、文
字の大きさやフォント種など)、と同様の手法で相対色
を保持することが可能であり、一般にはそれらの属性を
あわせて文書データ保持部12とされることになる。相
対色指定部112も同様で、内容・属性指定部111に
よる他の文書属性と同様に指定される。
The relative color holding unit 122 is a component holding unit 1.
The relative color can be held by the same method as other attributes (for example, character size and font type) in the document held in 21. Generally, these attributes are also combined to store the relative color. It will be 12. The relative color designation section 112 is also designated in the same manner as other document attributes designated by the content / attribute designation section 111.

【0014】色計算部13は文書の割り付け結果を可視
化部19に出力する際に、個々の構成要素に指定された
絶対的指定と相対的な指定の色値を参照して、構成要素
の色を計算する役割を持つ。また、相対色保持部122
には参照先の構成要素(参照構成要素と呼ぶ)が指定さ
れるが、それが式を用いて指定される場合は、色計算部
13は参照構成要素決定部14を呼び出しながら、その
決定を行う。
When outputting the layout result of the document to the visualization unit 19, the color calculation unit 13 refers to the absolute and relative designated color values designated for each component, and refers to the color of the component. Has the role of calculating In addition, the relative color holding unit 122
The component to be referred to (referred to as a reference component) is specified in, but if it is specified using an expression, the color calculation unit 13 calls the reference component determination unit 14 to make the determination. To do.

【0015】また、相対色指定部112は相対関係が指
定できるが、これはシステムが予め保持している関係の
他にもユーザが定義することも可能である。相対関係保
持部18、相対関係指定部17はそのために使用され
る。すなわち、相対関係指定部17によってユーザが相
対関係を定義し、定義された相対関係は相対関係保持部
18に保持される。相対関係保持部18に保持された相
対関係は、相対色指定部112で相対関係を指定する
際、および色計算部13によって色を計算しなければな
らないときに参照される。
Further, the relative color designation section 112 can designate a relative relation, but this can be defined by the user in addition to the relation held in advance by the system. The relative relationship holding unit 18 and the relative relationship designating unit 17 are used for that purpose. That is, the user defines the relative relationship by the relative relationship designating unit 17, and the defined relative relationship is held in the relative relationship holding unit 18. The relative relation held in the relative relation holding unit 18 is referred to when the relative color designation unit 112 designates the relative relation and when the color calculation unit 13 has to calculate the color.

【0016】その他の割り付け部15、可視化部19は
従来の技術で構成できる。つまり、従来の色を扱える文
書処理装置において、色を表示させる場合に従来は個々
の構成要素に絶対色のみが指定されていたところを相対
色も指定可能にし、その値を用いて個々の色を決定して
いるところのみが異なるわけであるから、その周辺の構
成部は従来技術を変更することなく構成可能である。
The other allocating unit 15 and the visualizing unit 19 can be constructed by conventional techniques. In other words, in a document processing device that can handle conventional colors, when displaying colors, it is now possible to specify relative colors where only absolute colors were specified for individual components, and that value can be used to specify individual colors. Since the only difference is that the determination is made, the peripheral components can be configured without changing the prior art.

【0017】<相対色保持部122>図2に構成要素保
持部121と相対色保持部122に保持されるデータの
例を、図3(a)(b)に、図2(a)(b)の保持部
の内容が表現している文書のイメージを示す。この例の
場合、各構成要素は構成要素保持部121の各項目に示
すような属性を持つものとする。ここであげている例で
は構成要素単位に色を付けることができるようにしてい
るため、例えば文字列の一部にのみ色を付けることはで
きないが、これは説明の簡単のためであり、本質的な問
題ではない。
<Relative Color Holding Unit 122> FIGS. 2A and 2B show examples of data held in the component holding unit 121 and the relative color holding unit 122 in FIGS. ) Shows an image of the document represented by the contents of the holding unit. In the case of this example, each component has attributes as shown in each item of the component holding unit 121. In the example given here, it is possible to color each component, so it is not possible to color only a part of the character string, but this is for the sake of simplicity of explanation. Problem is not a problem.

【0018】構成要素保持部121は各構成要素に対し
て、その構成要素の識別子と内容の種別、内容、色を保
持する。色の指定には絶対あるいは相対の値が指定可能
である。色の値が「絶対」の場合は、その構成要素が指
定された色そのもので表現されていることを意味する。
例えば、構成要素Aは「第2章 システム」という内容
を持ったテキストであり、RGB=[0,5,10]
(青味の強い青緑)という色が絶対的に指定されている
ということを表している。一方、相対の場合は相対色保
持部122に指定された相対色を参照することを意味
し、例えば構成要素Bの色は相対色保持部122のaと
言うデータを参照していることを意味している。従来の
技術では、ここで言う絶対の値のみを表現可能であっ
た。本発明はこれを相対的にも指定可能にしたことが本
質的な特徴である。
The component holding unit 121 holds, for each component, the identifier of the component, the type of the content, the content, and the color. Absolute or relative values can be specified for the color specification. When the color value is "absolute", it means that the constituent element is represented by the specified color itself.
For example, the constituent element A is a text having a content of “Chapter 2 system”, and RGB = [0, 5, 10]
It means that the color (blue-green with a strong blue tint) is absolutely specified. On the other hand, in the case of relative, it means that the relative color designated in the relative color holding unit 122 is referred to, and for example, the color of the component B refers to the data of a in the relative color holding unit 122. is doing. In the conventional technique, only the absolute value mentioned here can be expressed. The essential feature of the present invention is that it can be designated relatively.

【0019】この例における色属性はRGB形式で表現
され、それぞれの値は0から10までの値を取り、値が
大きいほどその色の輝度が強い(RGB方式はワークス
テーション等でディスプレイ表示に一般的に用いられて
いる方式であり、Rは赤、Gは緑、Bは青を意味す
る)。このような色の属性を内部で保持するための、色
の表現方法にはYMC(K)、LAB、XYZ、色相・
彩度・明度などの種々の方法があり、それらは相互に変
換可能であるので、色の表現方法自体は本発明の本質を
示すものではないことは言うまでもない。
The color attribute in this example is expressed in RGB format, and each value takes a value from 0 to 10, and the larger the value is, the stronger the brightness of the color is (the RGB method is generally used for display on a workstation or the like for display). R is red, G is green, and B is blue.) In order to hold such color attributes inside, YMC (K), LAB, XYZ, hue
It goes without saying that there are various methods such as saturation and lightness, and they can be mutually converted, so that the color expression method itself does not represent the essence of the present invention.

【0020】相対色保持部122では、一つの相対色デ
ータごとにその識別子、参照先の構成要素、相対関係、
相対値を保持する。参照構成要素はどの構成要素の色を
基準として相対値が指定されているかを表している。相
対関係は参照構成要素の色と相対色が指定しようとして
いる色の関係を指定するものである。この例の場合は
「差」と「補色」が定義されている。「差」は相対値に
指定された値との単純な差を表し、「補色」は参照構成
要素の色の各RGB値を[10,10,10]から引い
た値である(ここで言う「補色」は色彩工学で言う厳密
な意味での補色を意味するものではない)。この例では
上記二つの関係しか表現していないが、定義することで
他の関係を用いることもできる(後述する相対関係保持
部18を用いる)。
In the relative color holding unit 122, for each relative color data, its identifier, reference component, relative relationship,
Holds a relative value. The reference constituent element represents which constituent element the relative value is specified based on the color of the constituent element. The relative relationship specifies the relationship between the color of the reference component and the color that the relative color is about to specify. In the case of this example, "difference" and "complementary color" are defined. The "difference" represents a simple difference from the value designated as the relative value, and the "complementary color" is a value obtained by subtracting each RGB value of the color of the reference constituent element from [10, 10, 10] (here "Complementary color" does not mean a complementary color in the strict sense of color engineering). In this example, only the above two relationships are expressed, but other relationships can also be used by defining (using the relative relationship holding unit 18 described later).

【0021】<相対色指定部112>相対色指定部11
2のインタフェースの例を図4に示す。これはテキスト
の属性を指定するためのプロパティシートである。この
例の場合、相対的な色を指定するだけでなく、文字のフ
ォントや大きさ、絶対的な色を同時に指定できる形態で
実現されている。つまり、相対色指定部112を従来か
らある内容・属性指定部111に組み込んだ形で実現し
ている。図の枠で囲まれた部分がユーザによって選択さ
れる部分である。以下、色の指定部分についてのみ説明
する。
<Relative Color Designating Section 112> Relative Color Designating Section 11
An example of the interface No. 2 is shown in FIG. This is a property sheet for specifying text attributes. In the case of this example, not only the relative color can be specified, but also the font and size of the character and the absolute color can be specified at the same time. That is, the relative color designating section 112 is realized by incorporating it into the conventional content / attribute designating section 111. A portion surrounded by a frame in the figure is a portion selected by the user. Only the color designation portion will be described below.

【0022】色は絶対で指定するか、相対で指定するか
を選択する。図4の上部で示すのが属性を絶対で指定し
た場合、下部は相対を選択した場合である。絶対/相対
の選択によって指定できる属性は変化し、それによって
プロパティシートの表示も変化する。
The color is selected as either absolute or relative. The upper part of FIG. 4 shows the case where the attribute is designated absolutely, and the lower part shows the case where the relative is selected. The attributes that can be specified change depending on the absolute / relative selection, and the display on the property sheet also changes accordingly.

【0023】絶対指定の場合は色の指定を名前で指定す
るか、パラメータで指定するかを選択する。この例の場
合は色の名前で指定する方法を選択し、色として「青
緑」という色を指定している。
In the case of absolute designation, the designation of color is designated by name or by parameter. In the case of this example, the method of designating by the color name is selected, and the color "blue-green" is designated.

【0024】相対の場合は、参照構成要素の識別子、相
対関係、相対値を指定する。この例の場合はそれぞれ
A、差、[0,0,−1]という値を指定している。相
対関係で選択できる項目はシステムが予め持っている関
係に加えて、後述する相対関係保持部18にユーザが定
義した関係も指定可能である。この例の場合、「差、補
色」がシステムの持っている関係で、「合成1」がユー
ザが定義した相対関係である。
In the case of relative, the identifier of the reference component, the relative relationship, and the relative value are designated. In the case of this example, values of A, difference, and [0, 0, -1] are designated. The items that can be selected by the relative relationship can specify not only the relationship that the system has in advance but also the relationship defined by the user in the relative relationship holding unit 18 described later. In the case of this example, "difference, complementary color" is a relationship that the system has, and "composite 1" is a relative relationship defined by the user.

【0025】また、色を相対で指定する場合、相対値を
直接指定するのではなく、絶対色を指定し、相対値は参
照構成要素と指定された絶対色の値と相対関係から逆に
計算するようにしてもよい。これは相対的に色を指定し
たいが、その構成要素の色は直接、指定したい場合など
に有効である。例えば、RGB=[0,5,10]とい
う色をも持つ構成要素Zを参照しているXという構成要
素があるとする。その構成要素の色属性はZに対して相
対的に保持したいが、Xにはある色RGB=[0,8,
10]を指定したいとする。その場合、相対関係を差で
あるとすれば、相対色計算部16を呼び出し、その差で
ある[0,3,0]を相対値として計算し、相対色保持
部122へ格納すればよい。相対色計算部16に関して
は、処理は簡単なので、これ以上の記述はしない。
When the color is designated by relative, the relative value is not designated directly but the absolute color is designated, and the relative value is calculated in reverse from the relative relationship between the reference component and the designated absolute color value. You may do it. This is effective when it is desired to specify the color relatively, but the color of the component is directly specified. For example, assume that there is a component X that refers to a component Z that also has the color RGB = [0,5,10]. I want to keep the color attribute of that component relative to Z, but there is a certain color RGB in X = [0,8,
10]. In that case, if the relative relationship is a difference, the relative color calculation unit 16 may be called, [0,3,0], which is the difference, may be calculated as a relative value, and stored in the relative color holding unit 122. With respect to the relative color calculation unit 16, since the processing is simple, no further description will be given.

【0026】<相対関係保持部18>相対関係保持部1
8はユーザが定義する相対関係を保持する。システムが
予め持っている関係(本実施例の場合は「差」と「補
色」)以外にユーザが良く使う関係を定義するための機
構である。相対関係とは、相対色を構成要素に指定する
際に、参照する構成要素とどういう関係にあるのかを意
味する。
<Relative Relationship Holding Unit 18> Relative Relationship Holding Unit 1
8 holds the relative relationship defined by the user. It is a mechanism for defining a relationship that the user often uses in addition to the relationship that the system has in advance (“difference” and “complementary color” in this embodiment). The relative relationship means what kind of relationship it has with the component to which it refers when designating a relative color to the component.

【0027】図5に相対関係保持部18に保持されるデ
ータの例を示す。相対関係保持部18は相対関係識別子
とその定義とを保持する。この例では「赤化、暗化、合
成1」という三つの関係が定義されている。定義部はプ
ログラミング言語様の計算式によって定義する。
FIG. 5 shows an example of data held in the relative relationship holding section 18. The relative relationship holding unit 18 holds the relative relationship identifier and its definition. In this example, three relations of "reddish, darkened, composite 1" are defined. The definition part is defined by a programming language-like calculation formula.

【0028】定義部における=は代入を意味する記号
で、左辺のR,G,Bという変数が最終的に変換後のR
GB値として用いられる。右辺のR,G,Bは参照構成
要素のRGB値がそれぞれ代入されており、r,g,b
には相対値によって指定されている値が代入されてい
る。従って、ユーザは構成要素のRGB値と相対値に指
定したRGB値を用いて、関係を定義することが可能で
ある。
= In the definition part is a symbol meaning substitution, and variables R, G and B on the left side are finally converted to R.
Used as a GB value. The RGB values of the reference constituent elements are respectively substituted into R, G, B on the right side, and r, g, b
The value specified by the relative value is assigned to. Therefore, the user can define the relationship using the RGB value of the constituent element and the RGB value designated as the relative value.

【0029】例えば、図5の「赤化」はG,Bに関して
は参照構成要素の値をそのまま参照し、Rだけを+1
し、赤みを増すことを意味している。「暗化」はR,
G,Bそれぞれの値を半分にし、色を暗くすることを意
味している。「合成1」は参照構成要素の値から相対値
に指定されたパラメータをそれぞれ引くことを意味して
いる。因みにシステムには「差」と「補色」が定義され
ているが、これをこの定義式によって表現すると、 差: R=R+r; G= G + g; B = B +
b; 補色: R = 10 − R; G= 10 − G; B =
10 − B; となる。
For example, "reddish" in FIG. 5 refers to the values of the reference constituent elements as they are for G and B, and only R is +1.
However, it means increasing redness. "Darkening" is R,
This means that the values of G and B are halved to darken the color. “Composite 1” means subtracting the parameter designated as the relative value from the value of the reference component. By the way, "difference" and "complementary color" are defined in the system, and when expressed by this definition formula, the difference: R = R + r; G = G + g; B = B +
b; Complementary colors: R = 10-R; G = 10-G; B =
10-B;

【0030】<相対関係指定部17>相対関係指定部1
7は相対関係をユーザが指定するために用いられる。図
6に例を示す。図のようにこれから定義する関係名、定
義式をそれぞれ入力する部分と、相対関係保持部18で
保持している関係の一覧リストとからなっている。
<Relative Relationship Designating Section 17> Relative Relationship Designating Section 1
7 is used for the user to specify the relative relationship. An example is shown in FIG. As shown in the figure, it comprises a portion for inputting a relation name and a definition formula to be defined, and a list of relations held by the relative relation holding unit 18.

【0031】<色計算部13>色計算部13は構成要素
の色が相対で指定されている場合、その値から絶対色を
計算する際に用いられる。計算方法は以下の通りであ
る。
<Color Calculation Unit 13> The color calculation unit 13 is used to calculate an absolute color from the value when the color of the constituent element is designated by relative. The calculation method is as follows.

【0032】(ステップ0) 構成要素の色が絶対で指
定されていればそれを絶対色とする。そうでなければ、
ステップ1以下の処理を行う。
(Step 0) If the color of the constituent element is absolutely specified, it is set as the absolute color. Otherwise,
The processing from step 1 onward is performed.

【0033】(ステップ1) 相対色保持部122に保
持されている指定された識別子のデータを参照し、参照
構成要素、相対関係、相対値の値を取ってくる。
(Step 1) The data of the specified identifier held in the relative color holding unit 122 is referred to, and the reference component, the relative relationship, and the value of the relative value are fetched.

【0034】(ステップ2) 参照構成要素に指定され
ている色の値を取ってくる。このとき、もし参照構成要
素が相対色で指定されていたら相対色計算部16を再帰
的に呼び出し、その構成要素の絶対色を求める。求まっ
た参照構成要素の色の値をSR,SG,SBとする。
(Step 2) The color value specified in the reference component is fetched. At this time, if the reference component is designated by the relative color, the relative color calculation unit 16 is recursively called to obtain the absolute color of the component. The obtained color values of the reference constituent elements are SR, SG, and SB.

【0035】(ステップ3) 相対関係が「差」である
なら、以下の処理を行う。そうでないならステップ4へ
行く。相対値に指定されている各RGB値とステップ2
で求めた参照構成要素のRGB値をそれぞれ足し、それ
を構成構成要素の絶対色とする。つまり、相対値に指定
されている値を、r,g,bとすると、R=SR +
r, G=SG + g,B=SB + b、を計算し、求
まったRGBが構成構成要素の絶対色である。ステップ
6へ行く。
(Step 3) If the relative relationship is "difference", the following processing is performed. If not, go to step 4. Each RGB value specified as a relative value and step 2
The RGB values of the reference constituent elements obtained in step 1 are added together, and this is taken as the absolute color of the constituent elements. That is, if the values specified as the relative values are r, g, and b, then R = SR +
RGB obtained by calculating r, G = SG + g, and B = SB + b is the absolute color of the constituent element. Go to step 6.

【0036】(ステップ4) 相対関係が「補色」な
ら、以下の処理を行う。そうでないならステップ5へ行
く。この場合は相対値に指定されている値は無視し、以
下の計算を行い、求まったRGB値を構成要素の絶対値
とし、ステップ6へ行く。 R=10 − SR, G=10 − SG, B=10 −
SB
(Step 4) If the relative relationship is "complementary color", the following processing is performed. If not, go to step 5. In this case, the value specified as the relative value is ignored, the following calculation is performed, the obtained RGB values are set as the absolute values of the constituent elements, and the process proceeds to step 6. R = 10 − SR, G = 10 − SG, B = 10 −
SB

【0037】(ステップ5) これまでに処理されなか
った相対関係はユーザに定義された相対関係であるはず
なので、相対関係保持部18を参照し、指定されている
相対関係の定義を取ってくる。その定義に従って、絶対
色を計算し、それを構成要素の絶対色とする。
(Step 5) Since the relative relationship that has not been processed so far is supposed to be the relative relationship defined by the user, the relative relationship holding unit 18 is referred to and the definition of the specified relative relationship is fetched. . According to that definition, the absolute color is calculated and used as the absolute color of the component.

【0038】(ステップ6) 求めた絶対色のRGB値
が定義された範囲に収まっているかどうかを調べ(各値
が0から10の範囲にあるかどうか)、逸脱している値
があれば補正する。具体的には負の値になった場合は0
に、10を超えた場合は10に補正される。
(Step 6) It is checked whether the obtained RGB values of the absolute color are within the defined range (whether each value is within the range of 0 to 10), and if there is a deviating value, correction is made. To do. Specifically, it becomes 0 when it becomes a negative value.
When it exceeds 10, it is corrected to 10.

【0039】図2,3の例を用いて説明する。 例1) 構成要素Bの色を求める 構成要素Bの色のデータ部を参照すると相対色aが指定
されている。そこで、相対色保持部122のaを参照す
る。参照構成要素にはAが指定されているので、Aの色
を参照し、絶対色の[0,5,10]を取ってくる。a
の相対関係は差であるので、相対値の[0,0,−1]
と[0,5,10]を足し算し、[0,5,9]が求ま
り、これが構成要素Bの絶対色となる。
Description will be made with reference to the examples of FIGS. Example 1) Obtaining the color of the component B Referring to the data part of the color of the component B, the relative color a is specified. Therefore, a of the relative color holding unit 122 is referred to. Since A is designated as the reference component, the color of A is referenced and the absolute color [0, 5, 10] is fetched. a
Is a difference, the relative value of [0,0, -1]
And [0,5,10] are added to obtain [0,5,9], which is the absolute color of the constituent element B.

【0040】例2) 構成要素Rの色を求める 構成要素Rの色のデータ部を参照すると相対色dが指定
されている。そこで、相対色保持部122のdを参照す
る。参照構成要素にはPが指定されているので、Pの色
を参照し、絶対色の[0,7,0]を取ってくる。aの
相対関係は合成1が指定されているが、これはユーザ定
義の相対関係であるので、相対関係保持部18を参照す
る。図5の相対関係であるとすると、合成1は”R=
R − r; G= G− g; B = B − b;”と定義
されている。この定義式を評価すると、相対値は[0,
4,0]であるから、R= 0 − 0; G = 7 −
4;B = 0 − 0;となり、[0,3,0]となり、
これが構成要素Bの絶対色となる。なお、システムが持
っている相対関係が「差」のみであり、かつユーザ定義
も行わない場合には、相対関係は「差」だけとなり、相
対色保持部122では相対関係を保持する必要がなくな
る。
Example 2) Obtaining the Color of Component R Referring to the data section of the color of component R, the relative color d is specified. Therefore, reference is made to d of the relative color holding unit 122. Since P is specified as the reference component, the color of P is referenced and the absolute color [0, 7, 0] is fetched. Although the composite 1 is specified as the relative relationship of a, this is a user-defined relative relationship, so the relative relationship holding unit 18 is referred to. Assuming the relative relationship of FIG.
R−r; G = G−g; B = B−b; ”. When this definition formula is evaluated, the relative value is [0,
4,0], and thus R = 0-0; G = 7-
4; B = 0-0; and [0, 3, 0],
This is the absolute color of component B. In addition, when the relative relationship that the system has is only "difference" and no user definition is performed, the relative relationship is only "difference", and the relative color holding unit 122 does not need to hold the relative relationship. .

【0041】(実施例2) 式により参照構成要素を指定する実施例 実施例1において、相対色保持部122には参照構成要
素を保持することは前に述べた。その内容はある構成要
素の識別子であった。ある構成要素の識別子を直接参照
すると、文書を編集した場合に参照構成要素が無くなっ
たり、あるいは相対色が指定された構成要素を他の文書
にコピーした時などに、参照先が無くなることが頻繁に
発生する。その場合は、色を決定することができない旨
のメッセージをユーザに対して出力し、知らせると言っ
た特別な処理を行わなければならなくなる。
(Second Embodiment) An embodiment in which a reference constituent element is designated by a formula In the first embodiment, the relative color holding unit 122 holds the reference constituent element as described above. Its content was an identifier for a component. When directly referring to the identifier of a certain component, the reference component often disappears when the document is edited, or when the component with the specified relative color is copied to another document, the reference destination often disappears. Occurs in. In that case, a special process such as outputting a message to the user indicating that the color cannot be determined and notifying the user must be performed.

【0042】そこで、参照先の指定を構成要素を直接指
定するのではなく、式を用いて間接的に指定するように
したのがこの実施例2である。すなわち、実施例2では
「直前の構成要素」あるいは「直後の構成要素」などの
ように指定するのである。このようにすることで、参照
先が存在しないと言う現象を極力減らせることができる
と共に、ある文書の要素を他の文書に用いると言った再
利用性を高めることが可能になる。
Therefore, in the second embodiment, the reference destination is not designated directly by the component but indirectly designated by using an expression. That is, in the second embodiment, designation is made as "immediately preceding component" or "immediately following component". By doing so, the phenomenon that there is no reference destination can be reduced as much as possible, and the reusability that an element of one document is used for another document can be improved.

【0043】具体的には、相対色保持部122の参照構
成要素を式を用いて指定すれば良い。図7にその例を示
す。図7の(a)は図2の相対色保持部122の参照構
成要素を式を用いて書き換えたものである。式の意味は
図7の(b)に示す通りである。この図7の相対色保持
部122に保持される情報は、図2の例の場合には図2
の相対色保持部122のそれと入れ替えてもまったく意
味は同じとなる。例えば、図7のbは図2のCから参照
されているが、bの参照構成要素の式のprev(pr
ev(self))は「自分の一つ前の一つ前」を意味
するので、結局構成要素Aを指すことになる。他も同様
である。
Specifically, the reference constituent element of the relative color holding unit 122 may be designated by using an expression. FIG. 7 shows an example thereof. In FIG. 7A, the reference constituent elements of the relative color holding unit 122 of FIG. 2 are rewritten by using equations. The meaning of the formula is as shown in FIG. The information held in the relative color holding unit 122 of FIG. 7 is the same as that of the information shown in FIG.
Even if it is replaced with that of the relative color holding unit 122, the meaning is completely the same. For example, although b in FIG. 7 is referred to from C in FIG. 2, prev (pr
Since ev (self) means "one before one before oneself", it means the constituent element A after all. Others are the same.

【0044】<参照構成要素決定部14>参照構成要素
決定部14は相対色を決定する際に参照構成要素が式で
指定されていたときに、その式を評価して参照構成要素
を決定するための機構であり、色計算部13から呼び出
される。
<Reference Component Determining Unit 14> The reference component determining unit 14 evaluates the formula and determines the reference component when the reference component is specified by the formula when determining the relative color. And is called from the color calculation unit 13.

【0045】その他の各構成は、実施例1の構成と同じ
である。
Other configurations are the same as those of the first embodiment.

【0046】(実施例3) 本発明を構造化文書に適用した実施例 Open Document Architecture
などのいわゆる構造化文書では、一般のワードプロセッ
サなどにおいては構成要素が一方向に順序付けられてい
るだけであるのとは異なり、木構造のようにさらに複雑
に構造化されている。その場合には参照先の指定により
高度な指定が行えることが期待できる。
(Example 3) Example in which the present invention is applied to a structured document Open Document Architecture
In a so-called structured document such as, unlike a general word processor, in which constituent elements are only ordered in one direction, they are more complicatedly structured like a tree structure. In that case, it is expected that advanced designation can be performed by designating the reference destination.

【0047】その例を図8に示す。図8は図3の1ペー
ジ目、図2の構成要素保持部の前半のみを構造化文書で
表現した例である。図8の(b)が論理構造と呼ばれ、
内容が構造化されたもので、木構造で表現されている。
これは2章は2章のタイトルと2.1節からなり、2.
1節はそのタイトルと2.1.1節からなると言う事を
表現している。この木構造図の点線枠で示される部分が
図2の構成要素保持部の構成要素に相当する。
An example thereof is shown in FIG. FIG. 8 shows an example in which only the first page of FIG. 3 and the first half of the component holding unit of FIG. 2 are represented by a structured document. 8B is called a logical structure,
The content is structured and is represented by a tree structure.
This consists of the title of Chapter 2 and Section 2.1.
Section 1 expresses that it consists of the title and section 2.1.1. The portion indicated by the dotted line frame in this tree structure diagram corresponds to the constituent element of the constituent element holding unit in FIG.

【0048】構成要素が木構造で構造化されると、式に
よる参照構成要素の指定の仕方を多彩にすることができ
る。例えば、構造化されていない場合では、ある構成要
素の幾つか前、あるいは後ろの構成要素という形式で参
照するしかなかったが、木構造の場合は、「兄弟の構成
要素で最も兄のもの」とか、「親の親の子供(伯父に当
たる)で最も弟である構成要素」という指定の仕方をす
ることが可能である。
When the constituent elements are structured in a tree structure, it is possible to diversify the way of specifying the reference constituent elements by the expression. For example, in the case of unstructured, there was no choice but to refer in the form of a component before or after a certain component, but in the case of a tree structure, "the sibling component of the most elder brother" Or, it can be designated as "a component of a parent's parent's child (corresponding to his uncle) who is the youngest brother".

【0049】図8の(c)の相対色保持部ではそのよう
な式によって参照構成要素を指定している。相対色保持
部のaの”child(child(superior
(superior(superior(sel
f)))))”つまり「自分の親の親の親の子供の子
供」を意味し、これは構成要素BにおいてはAを意味
し、CにおいてはBを意味する。式の意味を図8の
(d)に示す。
In the relative color holding unit of FIG. 8C, the reference component is designated by such an expression. In the relative color holding unit, a “child (child (superior
(Superior (superior (sel
f))))) "means" children of the parent's parent's parents' children ", which means A in component B and B in C. The meaning of the equation is shown in FIG.

【0050】その他の各構成は、実施例1の構成と同じ
である。
The other configurations are the same as those of the first embodiment.

【0051】(実施例4)本実施例4は従来の文書処理
装置において、フォント属性に対して値を相対的に指定
可能にしたものである。これは基本的には前述した実施
例1において、色情報をフォントの大きさの情報に置き
換えたものである。
(Fourth Embodiment) In the fourth embodiment, a value can be designated relative to a font attribute in a conventional document processing apparatus. This is basically obtained by replacing the color information with the font size information in the above-described first embodiment.

【0052】フォントの大きさは文書のタイトルと本文
とでは変えることが一般的である。その場合、タイトル
は大きさサイズのフォントを用い、本文は小さめのフォ
ントを用いる。その比率は大抵の場合、一定の規則があ
り、あまりにもかけ離れたサイズが用いられることは少
ない。例えば、本文が10ポイントであれば、節のタイ
トルには12ポイント、章のタイトルには14ポイント
程度が用いられるのが普通であって、タイトルに18ポ
イントや20ポイントと言う大きなサイズを用いること
は稀である。従って、本文の文字サイズを変更した場
合、それに伴ってタイトルのサイズも小さくすることに
なる。従来の文書処理装置ではこのような場合、本文の
サイズと共に、タイトル部分のフォントサイズも変更し
なければならなかった。
Generally, the font size is changed between the title and the body of a document. In that case, the title uses a large size font and the body uses a smaller font. The ratios are usually fixed, and sizes that are too far apart are rarely used. For example, if the body text is 10 points, it is usual to use 12 points for section titles and 14 points for chapter titles, and use a large size of 18 points or 20 points for titles. Is rare. Therefore, when the character size of the text is changed, the size of the title is reduced accordingly. In such a case, the conventional document processing apparatus has to change the font size of the title part together with the size of the body.

【0053】この実施例4ではこのような問題を解決す
ることが可能である。つまり、本文のフォントサイズを
参照してそれとの相対で他のタイトルの値を指定するよ
うにしておけば、本文のフォントサイズを変更するだけ
で、それに連動してタイトルの文字も大きくなるのであ
る。逆に本文のフォントサイズがタイトルを参照するよ
うにしてもよい。なお、この実施例ではフォントサイズ
を属性の対象として取り上げるが、他の段落のマージン
など数値で指定あるいは内部的に保持される属性一般に
対して適用可能である。
The fourth embodiment can solve such a problem. In other words, if you refer to the font size of the text and specify the value of another title relative to it, simply changing the font size of the text will increase the font size of the title. . Conversely, the font size of the text may refer to the title. In this embodiment, the font size is taken as the target of the attribute, but it is applicable to general attributes such as margins of other paragraphs that are specified numerically or internally held.

【0054】図9は実施例4の構成を示す図である。こ
の実施例4では実施例1と同様に、文書を入力するため
の入力部91に相対値指定部912、文書の構成要素の
内容・属性を保持するための文書データ保持部92に相
対値保持部922を追加し、さらにプリンタあるいはデ
ィスプレイなどの可視か部95に表示する際に、相対値
から絶対値を計算するための絶対値計算部93を設けて
いる。
FIG. 9 is a diagram showing the structure of the fourth embodiment. In the fourth embodiment, as in the first embodiment, a relative value designation unit 912 is provided in the input unit 91 for inputting a document, and a relative value storage unit 92 is provided in the document data holding unit 92 for holding the contents / attributes of the components of the document. In addition to the unit 922, an absolute value calculation unit 93 for calculating the absolute value from the relative value when the visible image such as a printer or a display is displayed on the unit 95 is provided.

【0055】<相対値保持部922>図10に構成要素
保持部と相対値保持部の例を、図11(a)に図10の
保持部の内容が表現している文書のイメージを示す。こ
の例の場合、各構成要素は構成要素保持部921の各項
目に示すような属性を持つものとする。
<Relative Value Holding Unit 922> FIG. 10 shows an example of the component holding unit and the relative value holding unit, and FIG. 11A shows an image of the document represented by the contents of the holding unit of FIG. In the case of this example, each component is assumed to have an attribute as shown in each item of the component holding unit 921.

【0056】構成要素保持部921は各構成要素に対し
て、その構成要素の識別子と内容の種別、内容、スタイ
ルを保持する。スタイルも構成要素保持部921に記憶
され、スタイルには、フォントサイズ、フォント種別、
フェースが指定可能である。そして、スタイルは複数の
構成要素から参照される。例えば、図10の(b)のス
タイルS4は本文のためのスタイルであり、これは本文
に相当する複数のテキストから共有される。
The component holding unit 921 holds, for each component, the identifier of the component, the type of the content, the content, and the style. The style is also stored in the component holding unit 921, and the style includes the font size, font type,
The face can be specified. Then, the style is referenced by a plurality of components. For example, the style S4 in FIG. 10B is a style for the text, which is shared by a plurality of texts corresponding to the text.

【0057】図10(b)は従来の文書処理装置におけ
るスタイルの内容である。各スタイルS1からS4のフ
ォントサイズには個々に14,12,10,10という
フォントのサイズがポイントで入っている。
FIG. 10B shows the contents of the style in the conventional document processing apparatus. The font sizes of the styles S1 to S4 respectively include font sizes of 14, 12, 10, and 10 in points.

【0058】本実施例によって、フォントサイズを相対
指定可能にしたスタイルが図10の(b’)である。こ
のフォントサイズの値は相対指定の場合は「相対」とい
う指定が相対値保持部922の識別子とともに指定され
る。例えばスタイルS1のフォントサイズの値は「相対
(a)]となっており、これは相対値保持部(図10
(c))のaというデータを参照していることを意味し
ている。従来の技術では、ここで言う絶対の値のみを表
現可能であった。本実施例はこれを相対的にも指定可能
にしたことが本質的な特徴である。
FIG. 10B shows a style in which the font size can be designated relative to each other according to this embodiment. In the case of the relative designation of the font size value, the designation "relative" is designated together with the identifier of the relative value holding unit 922. For example, the font size value of the style S1 is “relative (a)”, which is the relative value holding unit (see FIG. 10).
This means that the data a in (c)) is referenced. In the conventional technique, only the absolute value mentioned here can be expressed. The essential feature of this embodiment is that it can be designated relatively.

【0059】相対値保持部922では、図10(c)に
示すように、一つの相対値データごとにその識別子、参
照先の要素(スタイル)、相対値を保持する。参照要素
はどの構成要素の値を基準として相対値が指定されてい
るかを表している。参照要素を指定する際は参照要素を
指定する。例えば、図10(c)の属性aでは参照要素
として「S4」が指定されているが、これはスタイルS
4のフォントサイズの値を参照すると言う意味を表して
いる。
As shown in FIG. 10C, the relative value holding unit 922 holds the identifier, the referenced element (style), and the relative value for each piece of relative value data. The reference element represents which component value the relative value is specified as. When specifying the reference element, specify the reference element. For example, in attribute a of FIG. 10C, “S4” is designated as the reference element, but this is style S.
This means that the font size value of 4 is referred to.

【0060】ここでは相対指定可能な属性はフォントサ
イズしかないので、参照要素として要素の識別子のみを
指定すれば良いが、複数の属性が相対指定可能な場合
は、ここで参照要素の識別子と共に参照する属性名を指
定するようにすればよい。例えば、フォントサイズと色
が共に相対指定可能な場合は区別するために「S4(フ
ォントサイズ)」、「S4(色)」のように指定するこ
とになる。
Since only the font size is the attribute that can be designated relative to each other, only the element identifier needs to be designated as a reference element. However, when a plurality of attributes can be designated relative to each other, reference is made here together with the reference element identifier. The attribute name to be specified can be specified. For example, when both the font size and the color can be designated relative to each other, the designations such as "S4 (font size)" and "S4 (color)" are made to distinguish them.

【0061】相対値はその相対要素で指定されている値
との差である。従って、図10の(b’)のスタイルで
はS1の参照要素はS4なのでS4のフォントサイズで
ある10が参照され、その相対値である4と足された1
4がスタイルS1のフォントサイズに指定されているこ
とと等価になる。
The relative value is the difference from the value specified by the relative element. Therefore, in the style of (b ') of FIG. 10, since the reference element of S1 is S4, 10 which is the font size of S4 is referred to and the relative value of 4 is added.
4 is equivalent to the font size of style S1 being designated.

【0062】<相対値指定部912>相対値指定部91
2のインタフェース部の例を図11(b)に示す。これ
はテキストの属性を指定するためのプロパティシートで
ある。この例の場合、文字のフォントやサイズ、フェー
スを指定可能である。この例ではフォントサイズのみが
相対で指定可能になっている。以下ではフォントサイズ
の指定に関して説明する。フォントサイズは相対で指定
するかを選択する。図11(b)の上部で示すのが属性
を絶対で指定した場合、下部は相対を選択した場合であ
る。絶対/相対の選択によって指定できる属性は変化
し、それによってプロパティシートの表示も変化する。
絶対指定の場合はフォントサイズの指定を数字で指定す
る。この例の場合は10ポイントを選んでいる。相対の
場合は、参照構成要素の識別子、相対値を指定する。こ
の例の場合はそれぞれS4、2という値を指定してい
る。
<Relative Value Designating Unit 912> Relative Value Designating Unit 91
An example of the interface unit 2 is shown in FIG. This is a property sheet for specifying text attributes. In this example, the font, size, and face of the character can be specified. In this example, only the font size can be specified relative. The font size designation will be described below. Select whether to specify the font size relative. The upper part of FIG. 11B shows the case where the attribute is designated by absolute, and the lower part shows the case where relative is selected. The attributes that can be specified change depending on the absolute / relative selection, and the display on the property sheet also changes accordingly.
For absolute specification, specify the font size with a number. In the case of this example, 10 points are selected. If relative, specify the identifier of the reference component and the relative value. In the case of this example, the values S4 and 2 are designated.

【0063】<絶対値計算部93>絶対値計算部93は
構成要素のフォントサイズが相対で指定されている場
合、その値から絶対値を計算する際に用いられる。計算
方法は単純で、参照要素の識別子に指定されているフォ
ントサイズを参照し、それに相対値で指定された値を足
したものが、絶対値となる。
<Absolute Value Calculation Unit 93> The absolute value calculation unit 93 is used when calculating the absolute value from the value when the font size of the component is designated by relative. The calculation method is simple, and the absolute value is obtained by referring to the font size specified in the identifier of the reference element and adding the value specified by the relative value.

【0064】以下にもう少し詳細に計算方法を記す。 (ステップ0) スタイルに指定されたフォントサイズ
が絶対で指定されていればそれを絶対値とする。そうで
なければ、ステップ1以下の処理を行う。
The calculation method will be described in more detail below. (Step 0) If the font size specified in the style is absolutely specified, it is set to the absolute value. If not, the processes from step 1 onward are performed.

【0065】(ステップ1) 相対値保持部に保持され
ている指定された識別子のデータを参照し、参照要素、
相対値の値を取ってくる。
(Step 1) Referring to the data of the specified identifier held in the relative value holding unit,
Get the relative value.

【0066】(ステップ2) 参照要素に指定されてい
るフォントサイズの値を取ってくる。このとき、もし参
照構成要素が相対値で指定されていたら絶対値計算部を
再帰的に呼び出し、その要素のフォントサイズの絶対値
を求める。求まった参照構要素のフォントサイズをFと
する。
(Step 2) The font size value specified in the reference element is fetched. At this time, if the reference component is designated by a relative value, the absolute value calculation unit is recursively called to obtain the absolute value of the font size of the element. Let F be the font size of the reference structuring element obtained.

【0067】(ステップ3) 相対値保持部に指定され
た相対値の値をRFとすると、フォントサイズの絶対値
をF+RFとし、その値をフォントサイズの絶対値とす
る。
(Step 3) When the value of the relative value designated in the relative value holding unit is RF, the absolute value of the font size is F + RF, and that value is the absolute value of the font size.

【0068】図10のデータにおいて、スタイルS2の
フォントサイズを求める例について説明すると、S2の
フォントサイズのデータ部を参照すると相対(b)が指
定されている。そこで、相対値保持部のbを参照する。
参照要素にはS4が指定されているので、S4のフォン
トサイズを参照し、絶対値の10を取ってくる。bの相
対値の2と10を足し算し、12が求まり、これがスタ
イルS2のフォントサイズとなる。
An example of obtaining the font size of the style S2 in the data of FIG. 10 will be described. Referring to the data section of the font size of S2, relative (b) is designated. Therefore, reference is made to b of the relative value holding unit.
Since S4 is specified as the reference element, the font size of S4 is referenced and the absolute value of 10 is fetched. The relative value of b is added to 2 and 10, and 12 is obtained, which is the font size of the style S2.

【0069】[0069]

【発明の効果】以上、本発明によれば、文書の構成要素
の色やフォントサイズなどの属性の指定を他の構成要素
との関係に基づいてもできるようにしたので、参照され
ている構成要素の色やフォントサイズなどの属性を変更
するだけで、その構成要素に対して相対的に指定されて
いる構成要素の色やフォントサイズなどの属性もそれに
追従させることができ、簡単な操作で異なったイメージ
の文書を得ることができる。
As described above, according to the present invention, since the attributes such as the color and the font size of the constituent elements of the document can be designated based on the relationship with other constituent elements, the referenced structure By simply changing the attributes such as the color and font size of an element, the attributes such as the color and font size of the element that are specified relative to that element can be made to follow it, and with simple operations. You can get documents with different images.

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

【図1】 実施例1の構成を示すブロック図FIG. 1 is a block diagram showing a configuration of a first embodiment.

【図2】 (a)は構成要素保持部に、(b)は相対色
保持部に、それぞれ保持されるデータ例を示す図
FIG. 2A is a diagram showing an example of data held in a component holding unit, and FIG. 2B is a relative color holding unit.

【図3】 (a)および(b)は保持部のデータ例の文
書イメージを示す図
3A and 3B are diagrams showing a document image of a data example of a holding unit.

【図4】 相対色指定部のインタフェースの例を示す図FIG. 4 is a diagram showing an example of an interface of a relative color designation unit.

【図5】 相対関係保持部に保持されるデータ例を示す
FIG. 5 is a diagram showing an example of data held in a relative relationship holding unit.

【図6】 相対関係指定部のインタフェースの例を示す
FIG. 6 is a diagram showing an example of an interface of a relative relationship specifying unit.

【図7】 (a)は式を用いた相対色保持部に保持され
るデータ例を示す図、(b)は式の種類とその意味を示
す図
7A is a diagram showing an example of data held in a relative color holding unit using an expression, and FIG. 7B is a diagram showing types of expressions and their meanings.

【図8】 構造化文書に置ける相対色指定を説明するた
めの図で、(a)は文書のページイメージ、(b)はそ
の論理構造、(c)は相対色保持部に保持されるデータ
の例、(d)は式の種類と意味、をそれぞれ示す図
FIG. 8 is a diagram for explaining relative color designation in a structured document, where (a) is a page image of the document, (b) is its logical structure, and (c) is data held in a relative color holding unit. , And (d) shows the types and meanings of expressions, respectively.

【図9】 実施例4の構成を示すブロック図FIG. 9 is a block diagram showing the configuration of the fourth embodiment.

【図10】 構成要素保持部および相対値保持部に保持
されるデータ例を示すもので、(a)は構成要素保持部
の構成要素の内容、(b)は従来の文書処理装置におけ
る構成要素保持部のスタイルの内容、(b’)は本発明
における構成要素保持部のスタイルの内容、(c)は相
対値保持部に保持されるデータの内容、をそれぞれ示す
10A and 10B show an example of data held in a component holding unit and a relative value holding unit. FIG. 10A is a content of a component in the component holding unit, and FIG. 10B is a component in a conventional document processing apparatus. The figure which shows the content of the style of a holding part, (b '), the content of the style of the component holding part in this invention, and (c) the content of the data hold | maintained at a relative value holding part, respectively.

【図11】 (a)は構成要素保持部の例の文書イメー
ジ、(b)は相対値指定部のインタフェースの例、をそ
れぞれ示す図
11A is a diagram showing a document image of an example of a component holding unit, and FIG. 11B is an example of an interface of a relative value designation unit.

【図12】 濃淡で表すグラフの例を示す図FIG. 12 is a diagram showing an example of a graph represented by shading.

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

11…入力部、111…内容・属性指定部、112…相
対色指定部、12…文書データ保持部、121…構成要
素保持部、122…相対色保持部、13…色計算部、1
4…参照構成要素決定部、15…割付け部、16…相対
色計算部、17…相対関係指定部、18…相対関係保持
部、19…可視化部、91…入力部、911…内容・属
性指定部、912…相対値指定部、92…文書データ保
持部、921…構成要素保持部、922…相対値保持
部、93…絶対値計算部、94…割付け部、95…可視
化部。
11 ... Input part, 111 ... Content / attribute designation part, 112 ... Relative color designation part, 12 ... Document data holding part, 121 ... Component holding part, 122 ... Relative color holding part, 13 ... Color calculation part, 1
4 ... Reference component determination unit, 15 ... Allocation unit, 16 ... Relative color calculation unit, 17 ... Relative relationship designation unit, 18 ... Relative relationship holding unit, 19 ... Visualization unit, 91 ... Input unit, 911 ... Content / attribute designation Part, 912 ... Relative value designation part, 92 ... Document data holding part, 921 ... Component holding part, 922 ... Relative value holding part, 93 ... Absolute value calculating part, 94 ... Allocation part, 95 ... Visualizing part.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 文書を入力する文書入力手段と、 前記文書入力手段により入力された文書の構成要素に対
する属性をその他の構成要素に対する属性との関係とし
て保持する属性保持手段と、 前記属性保持手段により保持されている属性に基づいて
該当する文書の構成要素を変更する文書構成要素処理手
段と、を備えたことを特徴とする文書処理装置。
1. A document input means for inputting a document, an attribute holding means for holding an attribute for a constituent element of a document input by the document input means as a relationship with an attribute for another constituent element, and the attribute holding means. And a document constituent element processing unit that changes the constituent elements of the corresponding document based on the attribute held by the document processing apparatus.
【請求項2】 前記属性保持手段に保持される構成要素
の属性が、参照する他の構成要素を指し示す属性、参照
される前記他の構成要素(参照構成要素という)の特定
の属性に対する相対値、および関係の種類とを含むこと
を特徴とする請求項1記載の文書処理装置。
2. The attribute of the constituent element held by the attribute holding means is an attribute indicating another constituent element to be referred to, and a relative value of the other referenced constituent element (referred to as a reference constituent element) with respect to a specific attribute. 2. The document processing apparatus according to claim 1, further comprising:
【請求項3】 前記参照構成要素を指し示す属性が、関
係を表す式によって指定されることを特徴とする請求項
2記載の文書処理装置。
3. The document processing apparatus according to claim 2, wherein the attribute indicating the reference constituent element is designated by an expression representing a relationship.
JP21683093A 1993-08-10 1993-08-10 Document processing device Expired - Fee Related JP3178492B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21683093A JP3178492B2 (en) 1993-08-10 1993-08-10 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21683093A JP3178492B2 (en) 1993-08-10 1993-08-10 Document processing device

Publications (2)

Publication Number Publication Date
JPH0756898A true JPH0756898A (en) 1995-03-03
JP3178492B2 JP3178492B2 (en) 2001-06-18

Family

ID=16694568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21683093A Expired - Fee Related JP3178492B2 (en) 1993-08-10 1993-08-10 Document processing device

Country Status (1)

Country Link
JP (1) JP3178492B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009116696A (en) * 2007-11-07 2009-05-28 Kathenas Co Ltd Structured document drawing system, structured document drawing method and program
JP2009176068A (en) * 2008-01-24 2009-08-06 Canon Inc Document processor, document processing method and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009116696A (en) * 2007-11-07 2009-05-28 Kathenas Co Ltd Structured document drawing system, structured document drawing method and program
US8347209B2 (en) 2007-11-07 2013-01-01 Kathenas Co., Ltd. Structured document drawing system, and method and program therefor
JP2009176068A (en) * 2008-01-24 2009-08-06 Canon Inc Document processor, document processing method and program

Also Published As

Publication number Publication date
JP3178492B2 (en) 2001-06-18

Similar Documents

Publication Publication Date Title
EP0680018B1 (en) Computer-aided color selection and colorizing system
US7934154B2 (en) Document processing apparatus, document processing method, and document processing program
EP0684584B1 (en) Objective-based color selection system
AU2007210250B2 (en) Semi-transparent highlighting of selected objects in electronic documents
US6873344B2 (en) Media production system using flowgraph representation of operations
US5218350A (en) Image processing method for dodging with softened edge transitions
JPH0756898A (en) Word processor
US8154561B1 (en) Dynamic display of a harmony rule list
JP4197313B2 (en) Text editing method, program for executing text editing method, and text editing system
CN108292319B (en) Determining an appearance for an element displayed on a user interface
US20020199204A1 (en) Generation of a description in a markup language of a structure of a multimedia content
US20050078325A1 (en) Image regulation apparatus and image regulation method
US20190080488A1 (en) Intelligent systems and methods for dynamic color hierarchy &amp; aesthetic design computation
JPH05143588A (en) Document editing device
JP2004094803A (en) Document creation support method and recording medium to record document creation support program
Harder et al. Adjusting Colors and Saving Artwork
Hunter A Second Look at the ODS Destination for PowerPoint
Harder Creating Envelope Distorts
JP2006081104A (en) Coloration apparatus
JPH06332886A (en) Color document preparing device
CN114090141A (en) Interface display method and device, electronic equipment and readable storage medium
Mori et al. Making figures: are you taking the best approach to maximize visibility?
Tapp Photoshop Workflow Setups: Eddie Tapp on Digital Photography
JPH03100699A (en) Information output device
JP2000020519A (en) Document editing device and recording medium

Legal Events

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

Free format text: PAYMENT UNTIL: 20080413

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090413

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100413

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110413

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120413

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130413

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees