JPH0830666A - Method and device for arranging character string - Google Patents

Method and device for arranging character string

Info

Publication number
JPH0830666A
JPH0830666A JP6164227A JP16422794A JPH0830666A JP H0830666 A JPH0830666 A JP H0830666A JP 6164227 A JP6164227 A JP 6164227A JP 16422794 A JP16422794 A JP 16422794A JP H0830666 A JPH0830666 A JP H0830666A
Authority
JP
Japan
Prior art keywords
line
character string
character
arranging
characters
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.)
Pending
Application number
JP6164227A
Other languages
Japanese (ja)
Inventor
Yoshinori Hatayama
佳紀 畑山
Yoshinao Hiranuma
義直 平沼
Masuo Kondo
益生 近藤
Fumihiro Nakagaki
文浩 中垣
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP6164227A priority Critical patent/JPH0830666A/en
Publication of JPH0830666A publication Critical patent/JPH0830666A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To automatically arrange a character string corresponding to an optional curve by calculating the length of the line of a line graphic or the line of a closed graphic outline and arranging the characters of the character string in specific relation according to the line length. CONSTITUTION:In a uniting process for a closed graphic and characters, it is checked whether or not a line drawing selected in S0501 is curve data and when so, curve data are converted into straight line group data in S0502. When the graphic is straight line data on a straight line, polygon, etc., the line length of the line is calculated in S0503. In S504, the positions of the respective characters are calculated from the number of characters of the character string and the character size of each character obtained from a character string data management data and the calculated line length. In S0505, the angle of rotation of each character is determined according to the gradient of the straight line of the straight line group corresponding to the calculated character position. In S0506, a character pattern read out of a font memory is moved and rotated according to the obtained character position and the angle of rotation and written in a buffer memory.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字列配置方法に関す
る。特に、デスクトップパブリッシング表示機能(DTP表
示機能)を備えたワードプロセッサにおいて、プレゼン
テーション用文書やチラシ用文書の作成のために、線に
沿って文字列を並べる際に用いられる技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string arranging method. In particular, the present invention relates to a technique used for arranging character strings along a line in a word processor having a desktop publishing display function (DTP display function) to create a presentation document or a leaflet document.

【0002】[0002]

【従来の技術】プレゼンテーション用文書やチラシ用文
書のために、図形と文字を関連づけて配置することは、
従来より、提案されている。従来の文字、図形、画像等
を含む文書を作成する文書作成装置においては、図8の
ように、文字列0802を、マウス操作により図形08
01上に移動配置することにより一体化していた。
2. Description of the Related Art For a presentation document or a leaflet document, it is necessary to arrange a figure and a character in association with each other.
It has been proposed in the past. In a conventional document creating apparatus for creating a document including characters, figures, images, etc., a character string 0802 is converted into a figure 08 by a mouse operation as shown in FIG.
It was integrated by moving and arranging it on 01.

【0003】つまり、文字列0802を移動させて、図
形0801と表示位置を重ねて配置した後、この2つを
1体化して、1つの物として処理することは、良く知ら
れている。尚、図8内の四角の黒点は、各図形・文字を
の有る領域の存在を分かり易くするために表示されたも
のである。
That is, it is well known that the character string 0802 is moved so that the graphic 0801 and the display position are overlapped with each other, and then the two are integrated into one and processed as one object. Note that the square black dots in FIG. 8 are displayed in order to make it easier to understand the existence of the area with each figure / character.

【0004】しかし、この一体化は2つのデータを見か
け上、1つのデータとして扱うだけであり、図9(a)の
ようなデータを作成したい場合は、ユーザ自身が文字列
を1文字ずつそれぞれの大きさを決めた後に、これを適
当な位置に配置する必要があった。また、図9(b)のよ
うな表示をしたい場合、図9(c)に示すように、まず図
形0901を作成し、次に文字0902〜0906を作
成した後各々の文字に回転等の加工を行い、適当な位置
に配置しなければならなかった。
However, this integration apparently handles only two data as one data, and when the user wants to create the data as shown in FIG. 9 (a), the user himself / herself writes the character string one by one. After determining the size of the, it was necessary to place it in the appropriate position. Further, when it is desired to display as shown in FIG. 9 (b), as shown in FIG. 9 (c), first, a graphic 0901 is created, then characters 0902 to 0906 are created, and then each character is processed by rotation or the like. Had to be done and placed in the proper position.

【0005】このように、プレゼンテーション用文書や
チラシ用文書でよく使われる線上に文字列を配置する作
成効率は非常に悪かった。また、任意の曲線に沿って均
等に文字列を配置するには、この任意の曲線を作成した
後、配置したい文字を入力し、キーボードやマウスを使
用して1文字ずつこの曲線上に移動させ、画面を見なが
ら文字列が、均等になる様に操作しなけらばならなかっ
た。
As described above, the efficiency of creating a character string on a line often used in a presentation document or a leaflet document is very poor. To evenly arrange a character string along an arbitrary curve, create this arbitrary curve, enter the character you want to arrange, and use the keyboard or mouse to move it character by character on this curve. , I had to operate while looking at the screen so that the character strings were even.

【0006】従って、任意の曲線に沿わせて文字列を正
確に均等となるように配置するのは困難であり、文字列
を更新したり、文字列を沿わせたい曲線の形状を更新し
た場合、文字列の配置を全てやり直す必要があり、処理
効率が非常に悪い。尚、線や多角形等の図形と、文字と
を関連づけて配置することに関しては、以下の資料にも
示されている。
Therefore, it is difficult to arrange the character strings along the arbitrary curve so as to be exactly equal, and when the character string is updated or the shape of the curve along which the character string is desired to be updated is updated. , It is necessary to redo all the arrangement of character strings, and the processing efficiency is very poor. It should be noted that regarding the arrangement of a character such as a line or a polygon and a character in association with each other, it is also shown in the following materials.

【0007】特開平4−347779号公報(G06F15/6
2)には、図形の大きさに合わせて、図形内に書き込まれ
る文字の大きさと位置を設定する技術が示されている。
また、特開平1−194076号公報(G06F15/60)に
は、図形の重心から、この図形内に書き込まれる文字の
枠を配置する技術が示されている。また、実開平1−3
5448号公報には、図形のパタ−ンに応じて、絵文字
を配置する技術が示されている。
Japanese Laid-Open Patent Publication No. 4-347779 (G06F15 / 6
2) shows a technique for setting the size and position of a character written in a graphic according to the size of the graphic.
Further, Japanese Patent Application Laid-Open No. 1-194076 (G06F15 / 60) discloses a technique of arranging a frame of a character to be written in a figure from the center of gravity of the figure. Also, the actual Kaihei 1-3
Japanese Patent No. 5448 discloses a technique of arranging pictograms according to the pattern of a figure.

【0008】また、特開昭61−282974号公報(G
06F15/66)には、線図形に対して一旦文字を配置する
と、この両者の関係を記憶し、線図形が変形されると、
これに応じて、文字を再配置する技術が示されている。
Further, Japanese Patent Application Laid-Open No. 61-282974 (G
06F15 / 66), once the characters are placed on the line figure, the relationship between them is memorized, and when the line figure is deformed,
In response, techniques for rearranging characters have been shown.

【0009】[0009]

【発明が解決しようとする課題】本発明は、線に対応し
て文字列の配置を自動的に行う文字列配置方法を提供す
ることを目的とする。又、本発明は、曲線に対応して文
字列の配置を自動的に行う文字列配置方法を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a character string arranging method for automatically arranging a character string corresponding to a line. Another object of the present invention is to provide a character string arranging method for automatically arranging a character string corresponding to a curve.

【0010】また、本発明は、任意の曲線に沿って自動
的に文字列の均等配置を行う文字列配置方法を提供する
ことを目的とする。本発明は、線に対応して文字列の配
置を自動的に行う文字列配置装置を提供することを目的
とする。又、本発明は、曲線に対応して文字列の配置を
自動的に行う文字列配置装置を提供することを目的とす
る。
Another object of the present invention is to provide a character string arranging method for automatically arranging character strings evenly along an arbitrary curve. An object of the present invention is to provide a character string arranging device that automatically arranges a character string corresponding to a line. Another object of the present invention is to provide a character string arranging device that automatically arranges a character string corresponding to a curve.

【0011】また、本発明は、任意の曲線に沿って自動
的に文字列の均等配置を行う文字列配置装置を提供する
ことを目的とする。
Another object of the present invention is to provide a character string arranging device for automatically arranging character strings evenly along an arbitrary curve.

【0012】[0012]

【課題を解決するための手段】本発明は、線図形の線又
は閉図形の輪郭の線に関連して、文字列を配置する文字
列配置方法において、この線の線長を算出し、この線長
に基づいて、前記文字列の文字を所定の関係で配置する
ことを特徴とする。又、本発明は、線図形の線又は閉図
形の輪郭の線に関連して、文字列を配置する文字列配置
方法において、この線の曲線成分を直線成分に変更して
から、この線の線長を算出し、この線長に基づいて、前
記文字列の文字を所定の関係で配置することを特徴とす
る。
According to the present invention, in a character string arranging method for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, the line length of this line is calculated, Characters of the character string are arranged in a predetermined relationship based on the line length. Further, according to the present invention, in a character string arranging method for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, after changing the curve component of this line to a straight line component, It is characterized in that the line length is calculated, and the characters of the character string are arranged in a predetermined relationship based on the line length.

【0013】又、本発明は、線図形の線又は閉図形の輪
郭の線に関連して、文字列を配置する文字列配置方法に
おいて、この線の曲線成分を直線成分に変更してから、
この線の線長を算出し、この線長に基づいて、前記文字
列の文字を前記線上に均等に配置することを特徴とす
る。又、本発明は、線図形の線又は閉図形の輪郭の線に
関連して、文字列を配置する文字列配置方法において、
この線の曲線成分を直線成分に変更してから、この線の
線長を算出し、この線長と前記文字列の文字数及び文字
幅に基づいて、前記文字列の文字を前記線上に均等に配
置することを特徴とする。
According to the present invention, in a character string arranging method for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, after changing the curve component of this line into a straight line component,
The line length of this line is calculated, and the characters of the character string are evenly arranged on the line based on this line length. The present invention also provides a character string arranging method for arranging a character string in relation to a line of a line figure or a contour line of a closed figure,
After changing the curve component of this line to a straight line component, calculate the line length of this line, and based on this line length and the number of characters and the character width of the character string, evenly distribute the characters of the character string on the line. It is characterized by arranging.

【0014】又、本発明は、線図形の線又は閉図形の輪
郭の線に関連して、文字列を配置する文字列配置方法に
おいて、この線の線長を算出し、この線長と前記文字列
の文字数に基づいて、前記文字列の文字を所定の関係で
配置することを特徴とする。又、本発明は、線図形の線
又は閉図形の輪郭の線に関連して、文字列を配置する文
字列配置方法において、この線の曲線成分を直線成分に
変更してから、この線の線長を算出し、この線長と前記
文字列の文字数に基づいて、前記文字列の文字を前記線
上に均等に配置することを特徴とする。
Further, according to the present invention, in a character string arranging method for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, the line length of this line is calculated, and this line length and the above-mentioned line length are calculated. The characters of the character string are arranged in a predetermined relationship based on the number of characters in the character string. Further, according to the present invention, in a character string arranging method for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, after changing the curve component of this line to a straight line component, It is characterized in that the line length is calculated, and the characters of the character string are evenly arranged on the line based on the line length and the number of characters of the character string.

【0015】又、本発明は、線図形の線又は閉図形の輪
郭の線に関連して、文字列を配置する文字列配置装置に
おいて、この線の線長を算出し、この線長に基づいて、
前記文字列の文字を所定の関係で配置する配置手段(010
6)を備えることを特徴とする。又、本発明は、線図形の
線又は閉図形の輪郭の線に関連して、文字列を配置する
文字列配置装置において、前記線の曲線成分を直線成分
に変更してから、前記線長を算出し、この線長に基づい
て、前記文字列の文字を所定の関係で配置する配置手段
(0106)を備えることを特徴とする。
Further, according to the present invention, in a character string arranging device for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, the line length of this line is calculated and based on this line length. hand,
Arrangement means for arranging the characters of the character string in a predetermined relationship (010
6) is provided. Also, in the present invention, in a character string arranging device for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, after changing the curve component of the line to a straight line component, the line length is changed. And arranging means for arranging the characters of the character string in a predetermined relationship based on the line length.
(0106) is provided.

【0016】又、本発明は、線図形の線又は閉図形の輪
郭の線に関連して、文字列を配置する文字列配置装置に
おいて、前記線の曲線成分を直線成分に変更してから、
前記線長を算出し、この線長に基づいて、前記文字列の
文字を前記線上に均等に配置する配置手段(0106)を備え
ることを特徴とする。又、本発明は、線図形の線又は閉
図形の輪郭の線に関連して、文字列を配置する文字列配
置装置において、前記線の曲線成分を直線成分に変更し
てから、前記線長を算出し、この線長と前記文字列の文
字幅及び文字数に基づいて、前記文字列の文字を前記線
上に均等に配置する配置手段(0106)を備えることを特徴
とする。
According to the present invention, in a character string arranging device for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, after changing the curve component of the line into a straight line component,
The apparatus is characterized by comprising an arrangement means (0106) for calculating the line length and arranging the characters of the character string evenly on the line based on the line length. Also, in the present invention, in a character string arranging device for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, after changing the curve component of the line to a straight line component, the line length is changed. And arranging means (0106) for evenly arranging the characters of the character string on the line based on the line length and the character width and the number of characters of the character string.

【0017】又、本発明は、線図形の線又は閉図形の輪
郭の線に関連して、文字列を配置する文字列配置装置に
おいて、この線の線長を算出し、この線長と前記文字列
の文字数に基づいて、前記文字列の文字を所定の関係で
配置する配置手段(0106)を備えることを特徴とする。
又、本発明は、線図形の線又は閉図形の輪郭の線に関連
して、文字列を配置する文字列配置装置において、前記
線の曲線成分を直線成分に変更してから、前記線長を算
出し、この線長と前記文字列の文字数に基づいて、前記
文字列の文字を前記線上に均等に配置する配置手段(010
6)を備えることを特徴とする。
Further, according to the present invention, in a character string arranging device for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, the line length of this line is calculated, and this line length and the above-mentioned line length are calculated. It is characterized in that it comprises an arrangement means (0106) for arranging the characters of the character string in a predetermined relationship based on the number of characters in the character string.
Also, in the present invention, in a character string arranging device for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, after changing the curve component of the line to a straight line component, the line length is changed. And the arrangement means (010) for evenly arranging the characters of the character string on the line based on the line length and the number of characters of the character string.
6) is provided.

【0018】又、本発明は、線図形の線又は閉図形の輪
郭の線に関連して、文字列を配置する文字列配置方法に
おいて、任意の曲線の曲線長を算出する曲線長算出ステ
ップ(S503)と、該曲線長算出ステップにより算出された
曲線長と該曲線に沿わせる文字列の文字数と各文字幅と
から各文字の配置位置を算出する文字位置算出ステップ
(S504)とを備えることを特徴とする。
Further, according to the present invention, in a character string arranging method for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, a curve length calculating step for calculating a curve length of an arbitrary curve ( S503), and a character position calculation step of calculating the arrangement position of each character from the curve length calculated by the curve length calculation step, the number of characters in the character string along the curve, and each character width
And (S504).

【0019】[0019]

【作用】本発明では、線の線長に基づいて、文字列の文
字を配置する。
In the present invention, the characters of the character string are arranged based on the line length.

【0020】[0020]

【実施例】図1〜図7,図10を参照しつつ、本発明の
1実施例を説明する。説明を簡単にするために、まず、
表示内容を示す図10(a)(b)を参照して、動作を説明
する。図10(a)に示す様に、閉図形1001と文字列
1002を各々選択して、一体化の指示を行うと、文字
一体化図形1003の如く、文字列が加工、再配置され
閉図形内に表示される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. 1 to 7 and 10. To simplify the explanation, first,
The operation will be described with reference to FIGS. 10A and 10B showing the display contents. As shown in FIG. 10A, when the closed figure 1001 and the character string 1002 are respectively selected and an instruction for integration is given, the character string is processed and rearranged as shown in the character integrated figure 1003. Is displayed in.

【0021】ここでは、閉図形と文字との一体化処理を
説明したが、線図形の場合は、図10(b)の如くなる。
つまり、この図10(b)に示す様に、線図形1001と
文字列1002を各々選択して、一体化の指示を行う
と、文字一体化図形1003の如く、文字列が線図形に
沿って、配置されて表示される。
Here, the integrated processing of the closed figure and the character has been described, but in the case of the line figure, it becomes as shown in FIG. 10 (b).
That is, as shown in FIG. 10B, when the line figure 1001 and the character string 1002 are respectively selected and an instruction for integration is given, the character string is arranged along the line figure like the character integrated figure 1003. , Is placed and displayed.

【0022】図1〜図7を参照しつつ、この実施例を説
明する。図1はこの発明の一実施例を示す文書処理装置
のブロック図である。0101は、メイン制御部であ
る。0102は、キーボード等の入力装置およびマウス
等のポインティング装置を備える入力部である。
This embodiment will be described with reference to FIGS. FIG. 1 is a block diagram of a document processing apparatus showing an embodiment of the present invention. Reference numeral 0101 is a main control unit. An input unit 0102 includes an input device such as a keyboard and a pointing device such as a mouse.

【0023】0103は、図形データの作成・編集を行
う図形処理部である。0104は、文字データの作成・
編集を行う文字処理部である。0105は、図形および
文字列等のデータを記憶する記憶部である。0106
は、一体化時に図形データに応じて文字列を加工する一
体化処理部である。
Reference numeral 0103 is a graphic processing unit for creating / editing graphic data. 0104 is for creating character data
This is a character processing unit for editing. A storage unit 0105 stores data such as figures and character strings. 0106
Is an integration processing unit that processes a character string in accordance with graphic data at the time of integration.

【0024】0107は、CRT/LCD等の表示装置
を備え、記憶部0105の内容を表示装置に表示する表
示部である。図2は、図形・文字・文字一体化図形のデ
ータを記憶するテーブルを説明するための図である。各
テーブルは、記憶部0105に存在する。
Reference numeral 0107 denotes a display unit that includes a display device such as a CRT / LCD and displays the contents of the storage unit 0105 on the display device. FIG. 2 is a diagram for explaining a table for storing data of figures / characters / character integrated figures. Each table exists in the storage unit 0105.

【0025】図2(a)は要素情報管理テーブルである。
ここで言う要素とは、表示上のデータ単位であり、一体
化されたデータも1つの要素となる。0201は要素の
番号である。0202は要素のタイプである。0203
は要素の位置(X、Y)座標であり、要素の外接矩形の始
点、終点座標である。
FIG. 2A is an element information management table.
The element referred to here is a data unit on display, and integrated data is also one element. 0201 is the element number. 0202 is the element type. 0203
Is the position (X, Y) coordinates of the element, and is the start point and end point coordinates of the circumscribed rectangle of the element.

【0026】0204はデータ番号であり、各データテ
ーブルへの参照番号である。図2(b)は図形データ管理
テーブルである。この図形データ管理テーブル内のデー
タは、直線、ベジュ曲線、多角形、円等の図形の種類0
205、図形の各頂点(X、Y)座標0206、一体化の
有無を示すフラグ情報0207等から構成される。
Reference numeral 0204 is a data number, which is a reference number to each data table. FIG. 2B is a graphic data management table. The data in this figure data management table is the type 0 of figures such as straight lines, Bezier curves, polygons and circles.
205, each vertex (X, Y) coordinate 0206 of the figure, flag information 0207 indicating the presence or absence of integration, and the like.

【0027】但し、図形の種類により構成情報は変化す
る。例えば、図形が円の場合は、円の中心座標や半径等
の情報を持つ。図2(c)は文字列データ管理テーブルで
ある。この文字列データ管理テーブル内のデータは、文
字列の各文字コード0208、文字サイズ0209、文
字数0210等の属性情報、一体化の有無を示すフラグ
情報0211等から構成される。
However, the configuration information changes depending on the type of figure. For example, when the figure is a circle, it has information such as the center coordinates and radius of the circle. FIG. 2C is a character string data management table. The data in the character string data management table is composed of each character code 0208 of the character string, attribute information such as character size 0209, the number of characters 0210, and flag information 0211 indicating the presence or absence of integration.

【0028】図2(d)は一体化情報管理テーブルであ
り、一体化要素の種類0212、図形データ番号021
3、文字列データ番号0214、文字列の総文字数02
15、各文字の変形率0216、各文字の回転角度02
17等の情報から構成される。変形率0216は、多角
形内に文字を埋め込む場合の文字変形率であり、縦80
%、横120%といった縦横の拡大/縮小比が格納され
ている。
FIG. 2 (d) is an integrated information management table, in which integrated element type 0212 and graphic data number 021 are shown.
3, character string data number 0214, total number of characters in character string 02
15, transformation rate 0216 of each character, rotation angle 02 of each character
It is composed of information such as 17. The transformation ratio 0216 is a character transformation ratio when embedding a character in a polygon, and is 80
The vertical / horizontal enlargement / reduction ratios such as% and horizontal 120% are stored.

【0029】また、回転角度0217は、線上に文字を
配置する場合の文字回転角度であり、水平線上からの斜
度が格納されている。尚、この図2中の矢印は参照先を
示している。次に、この実施例の動作の概略を図3およ
び図4も参照して説明する。図3(a)は、一体化操作を
行う前の画面を表している。
The rotation angle 0217 is a character rotation angle when a character is arranged on a line, and the inclination from the horizontal line is stored. The arrow in FIG. 2 indicates the reference destination. Next, the outline of the operation of this embodiment will be described with reference to FIGS. FIG. 3A shows a screen before performing the integration operation.

【0030】0304は図形要素であり、0305は文
字列要素である。両要素は既に選択状態にあり、要素番
号は分かっているものとする。この時、メニュー030
2をマウスによりクリック操作をすることにより一体化
を指示すると一体化処理が開始される。つまり、図4の
S0401でまず、選択状態にある要素が図形と文字列
かどうかを判定する。
Reference numeral 0304 is a graphic element, and reference numeral 0305 is a character string element. Both elements are already in the selected state, and the element numbers are known. At this time, menu 030
When 2 is instructed to be integrated by clicking the mouse with the mouse, the integration process is started. That is, in S0401 of FIG. 4, it is first determined whether the selected element is a figure or a character string.

【0031】この条件に合致しない場合、本処理は終了
する。条件に合致する場合、図2(d)の一体化情報管理
テーブルに一体化要素データを新規に作成し、選択され
ている各要素番号を0213、0214にそれぞれ格納
する。また、S0402で要素情報管理テーブルに新規
格納領域を作成し、要素のタイプ、一体化要素データの
番号を格納する。
If this condition is not met, this process ends. If the conditions are met, new integrated element data is created in the integrated information management table of FIG. 2D, and the selected element numbers are stored in 0213 and 0214, respectively. In step S0402, a new storage area is created in the element information management table, and the element type and the integrated element data number are stored.

【0032】そして、図2(a)の要素情報管理テーブル
から選択されている各要素の位置情報及びデータテーブ
ル(b)(c)への参照番号を取得し、次いで各データテー
ブルから要素の詳細情報を取得する。この時、S040
3で、図形の種類に応じ、一体化処理部で各文字の配置
位置、変形率、回転角度等の必要情報を算出する。
Then, the positional information of each element selected from the element information management table of FIG. 2A and the reference numbers to the data tables (b) and (c) are obtained, and then the details of the elements are obtained from each data table. Get information. At this time, S040
In 3, the necessary information such as the arrangement position of each character, the deformation rate, and the rotation angle is calculated by the integration processing unit according to the type of figure.

【0033】次に、S0404でこの算出結果を図2
(d)一体化情報管理テーブルに格納する。S0405で
文字列要素0305を画面上から消す。ここで、処理対
象となった両要素は一体化要素となるため、S0406
で、図2(b)図形データ管理テーブルおよび図2(c)文
字列データ管理テーブルの一体化有/無フラグをONに
する。
Next, in S0404, the calculation result is shown in FIG.
(d) Store in the integrated information management table. In step S0405, the character string element 0305 is erased from the screen. Here, since both elements to be processed are integrated elements, S0406
Then, the integrated presence / absence flag of the graphic data management table of FIG. 2B and the character string data management table of FIG. 2C is turned ON.

【0034】このフラグは、一体化前の各要素の画面上
への表示を無効にするために使用する。最後にS040
7で、一体化情報にしたがって、文字列を画面上に表示
する。この処理結果、画面は図3(b)の如く表示され
る。この一体化処理は、図1の一体化処理部0106に
よって行われる。
This flag is used to invalidate the display of each element on the screen before integration. Finally S040
At 7, the character string is displayed on the screen according to the integrated information. As a result of this processing, the screen is displayed as shown in FIG. This integration processing is performed by the integration processing unit 0106 in FIG.

【0035】次に、この一体化処理部0106の詳細、
つまり、S0403、S0404の詳細を、図5〜図7
を参照して説明する。まず、S0501で選択されてい
る線図形がスプラインやベジェ等の曲線データであるか
調べ、曲線データであるときはS0502へ進み、直線
や多角形等の直線(群)データのときはS0503へ進
む。
Next, details of the integrated processing unit 0106,
That is, the details of S0403 and S0404 will be described with reference to FIGS.
Will be described with reference to. First, it is checked whether the line figure selected in S0501 is curve data such as a spline or Bezier. If it is curve data, the process proceeds to S0502, and if it is straight line (polygon) straight line (group) data, the process proceeds to S0503. .

【0036】S0502で曲線データを公知の方法によ
り直線群データに変換する。S0503で該線の線長を
算出する。曲線の場合は、S0502で求めた直線群デ
ータにより全ての線に対し直線長を算出して求める。S
0504で文字列データ管理テーブル(図2c)から得ら
れる文字列の文字数0210と各文字の文字サイズ(幅)
0209と、S0503で算出した線長から、文字列が
線曲線上に均等に配置されるように各文字の位置を算出
する(算出方法は後述)。
In step S0502, the curve data is converted into straight line group data by a known method. In S0503, the line length of the line is calculated. In the case of a curve, the straight line lengths are calculated for all the lines using the straight line group data obtained in S0502. S
The number of characters 0210 and the character size (width) of each character obtained from the character string data management table (Fig. 2c) in 0504.
The position of each character is calculated from 0209 and the line length calculated in S0503 so that the character string is evenly arranged on the line curve (a calculation method will be described later).

【0037】S0505でS0504で算出した文字位
置に対応する直線群中の一直線の傾きから、各文字の回
転角度を決定する。この時、図示しない文字並び指定手
段によって、指定された情報に基づいて回転角度を決定
する。例えば、文字の並びの指定が線曲線に対して法線
方向である場合、図7(a)のような配置となるように文
字が回転される。文字の並びの指定が線曲線に対して接
線方向である場合、図7(b)のような配置となるように
文字が回転される。文字の並びの指定が特に指定されて
いない場合、回転処理は行わず図7(c)のような配置と
なる。
In step S0505, the rotation angle of each character is determined from the inclination of the straight line in the line group corresponding to the character position calculated in step S0504. At this time, the rotation angle is determined based on the designated information by the character arrangement designating means (not shown). For example, when the arrangement of characters is designated in the direction normal to the line curve, the characters are rotated so that the arrangement is as shown in FIG. When the arrangement of characters is specified in the tangential direction with respect to the line curve, the characters are rotated so that the arrangement is as shown in FIG. When the character arrangement is not specified, the rotation processing is not performed and the arrangement is as shown in FIG. 7C.

【0038】S0506で、S0504とS0505で
得られた文字位置と回転角度情報から、図示しないフォ
ントメモリより読み出した文字パターンを移動、回転さ
せイメージバッファに書き込む。次に、図6のフローチ
ャートを用いて、図5のS0504の各文字の均等配置
位置の算出方法を説明する。
In step S0506, the character pattern read from the font memory (not shown) is moved and rotated based on the character position and rotation angle information obtained in steps S0504 and S0505 and written in the image buffer. Next, the method of calculating the uniformly arranged position of each character in S0504 of FIG. 5 will be described with reference to the flowchart of FIG.

【0039】図6では、例として各文字の左中央の座標
を算出している。S0601で文字列の文字数を調べ、
1文字のみの場合はS0602に進み、この1文字が線
曲線の中央に位置するような座標を得る。文字数が2以
上の場合はS0603に進む。S0603で文字列の第
1番目の文字位置として線曲線の始点の座標を得る。
In FIG. 6, the coordinates of the left center of each character are calculated as an example. Check the number of characters in the character string in S0601
If there is only one character, the process proceeds to S0602, and the coordinates are obtained such that this one character is located at the center of the line curve. If the number of characters is 2 or more, the process proceeds to S0603. In S0603, the coordinates of the starting point of the line curve are obtained as the first character position of the character string.

【0040】S0604で文字間隔sを算出する。図5
のS0503で算出した線曲線長をL、文字列の文字数
をN、文字列中の全文字の幅の総和をWとすると、s=
(L−W)/(N−1)となる。S0606で第1番目の文
字から位置を求めたい文字までの距離を算出し、S06
07で線曲線の始点からその距離だけ離れた線曲線上の
座標を算出し、その文字の座標とする。
In step S0604, the character spacing s is calculated. Figure 5
If the line curve length calculated in S0503 is L, the number of characters in the character string is N, and the total width of all characters in the character string is W, then s =
(L-W) / (N-1). In S0606, the distance from the first character to the character whose position is to be calculated is calculated, and S06
At 07, the coordinates on the line curve distant from the start point of the line curve by the distance are calculated and used as the coordinates of the character.

【0041】例えば、いま第1番目の文字から第n番目
の文字までの距離をl(n)、第n番目の文字幅をw(n)
とすると、l(n)=l(n−1)+w(n−1)+sとな
る。つまり、線曲線の始点からl(n)だけ離れた線曲線
上の座標を第n番目の文字の座標とする。本実施例で
は、一度曲線に沿って文字列を均等配置させた後、文字
列を更新したり、曲線の形状を更新しても、文字列の均
等配置位置を自動的に算出して最配置する。このため、
文字列を正確に均等配置できるとともに、処理時間を短
縮することが可能である。特に、図形が線図形の場合、
該図形の線の軌跡に沿って文字列データを加工、再配置
する。
For example, the distance from the first character to the nth character is l (n), and the nth character width is w (n).
Then, l (n) = 1 (n-1) + w (n-1) + s. That is, the coordinates on the line curve distant by l (n) from the starting point of the line curve are the coordinates of the nth character. In this embodiment, even if the character strings are evenly arranged once along the curved line and then the character strings are updated or the shape of the curved line is updated, the evenly arranged positions of the character strings are automatically calculated and repositioned. To do. For this reason,
It is possible to accurately and evenly arrange the character strings and reduce the processing time. Especially when the figure is a line figure,
The character string data is processed and rearranged along the trajectory of the line of the figure.

【0042】尚、本実施例では、閉図形の場合は、その
内部に文字列を配置したが、本願はこれに限定されるも
のではなく、例えば、閉図形の場合は、その輪郭線の線
長に基づいて、配置位置を算出して文字列を配置しても
よい。又、本実施例では、線上に文字列を配置したが、
本願はこれに限定されるものではなく、例えば、線に沿
って離れた位置に文字列を配置してもよい。
In this embodiment, in the case of the closed figure, the character string is arranged inside the closed figure. However, the present invention is not limited to this. For example, in the case of the closed figure, the contour line of the closed figure is used. The character string may be arranged by calculating the arrangement position based on the length. Further, in this embodiment, the character string is arranged on the line,
The present application is not limited to this, and for example, character strings may be arranged at positions separated along a line.

【0043】又、本実施例では、図形と文字列とを表示
しているが、この一体化処理の後に図形の表示を消去し
て、文字列のみを表示するようにしてもよい。尚、この
図形の表示を消去は、図形部分の属性を透明と設定変更
することによって、行われる。又、本実施例では、文字
列を均等に配置しているが、本願はこれに限定されるも
のではなく、例えば、徐々に間隔が狭くなるように文字
列を配置してもよい。
Further, in the present embodiment, the graphic and the character string are displayed, but the display of the graphic may be erased after this integration processing so that only the character string is displayed. The display of the graphic is erased by changing the attribute of the graphic to transparent. Further, in the present embodiment, the character strings are evenly arranged, but the present application is not limited to this, and for example, the character strings may be arranged so that the intervals are gradually narrowed.

【0044】又、本実施例では、文字列の文字幅を変更
しないが、本願はこれに限定されるものではなく、例え
ば、文字列の文字と文字の間隔を徐々に狭くなるように
且つ文字列の文字のポイント数が徐々に小さくるよう配
置してもよい。
Further, although the character width of the character string is not changed in the present embodiment, the present invention is not limited to this. For example, the character width of the character string may be gradually narrowed and the character width of the character string may be decreased. You may arrange so that the point number of the character of a row may become small gradually.

【0045】[0045]

【発明の効果】本発明によれば、線長に応じて、文字列
の文字の配置位置を決定できるので、ユーザ自身が文字
列の配置位置を設定しなくても良く、作成効率が向上す
る。
According to the present invention, the arrangement position of the character of the character string can be determined according to the line length, so that the user does not have to set the arrangement position of the character string, and the creation efficiency is improved. .

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】この実施例の記憶部に格納される文字・図形・
文字一体化図形のデータ用のテーブルを示す図である。
FIG. 2 is a diagram illustrating characters / graphics / storing stored in a storage unit of this embodiment.
It is a figure which shows the table for the data of a character integrated figure.

【図3】この実施例の表示画面を示す図である。FIG. 3 is a diagram showing a display screen of this embodiment.

【図4】この実施例の動作の概略を表すフローチャート
図である。
FIG. 4 is a flowchart showing the outline of the operation of this embodiment.

【図5】この実施例の一体化動作を表すフローチャート
図である。
FIG. 5 is a flow chart showing an integrated operation of this embodiment.

【図6】この実施例の文字配置動作を表すフローチャー
ト図である。
FIG. 6 is a flowchart showing a character arrangement operation of this embodiment.

【図7】この実施例の線図形に対する文字の配置方向の
例を示す図である。
FIG. 7 is a diagram showing an example of a character arrangement direction with respect to a line figure of this embodiment.

【図8】従来の一体化操作を示す図である。FIG. 8 is a diagram showing a conventional integration operation.

【図9】従来の一体化操作を示す図である。FIG. 9 is a diagram showing a conventional unifying operation.

【図10】この実施例の一体化動作を説明するための図
である。
FIG. 10 is a diagram for explaining an integrated operation of this embodiment.

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

(103) 図形処理部。 (104) 文字処理部。 (105) 記憶部。 (106) 一体化処理部(配置手段)。 (107) 表示部。 (103) Graphic processing unit. (104) Character processing unit. (105) Storage unit. (106) Integrated processing unit (arrangement means). (107) Display section.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06T 11/20 G09G 5/24 9377−5H 5/32 F 9377−5H 9365−5H G06F 15/62 320 Z 9365−5H 15/72 355 U (72)発明者 中垣 文浩 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06T 11/20 G09G 5/24 9377-5H 5/32 F 9377-5H 9365-5H G06F 15/62 320 Z 9365-5H 15/72 355 U (72) Inventor Fumihiro Nakagaki 2-5-5 Keihan Hondori, Moriguchi City, Osaka Sanyo Electric Co., Ltd.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 線図形の線又は閉図形の輪郭の線に関連
して、文字列を配置する文字列配置方法において、 この線の線長を算出し、この線長に基づいて、前記文字
列の文字を所定の関係で配置することを特徴とする文字
列配置方法。
1. A character string arranging method for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, the line length of this line is calculated, and the character is calculated based on this line length. A character string arranging method, wherein characters in a column are arranged in a predetermined relationship.
【請求項2】 前記線の曲線成分を直線成分に変更して
から、前記線長を算出する請求項1の文字列配置方法。
2. The character string arrangement method according to claim 1, wherein the line length is calculated after changing the curve component of the line into a straight line component.
【請求項3】 前記所定の関係とは、この文字列の文字
を前記線上に均等に配置することを特徴とする請求項1
又は請求項2の文字列配置方法。
3. The predetermined relationship is that the characters of the character string are evenly arranged on the line.
Alternatively, the character string arrangement method according to claim 2.
【請求項4】 前記線の線長に加えて、前記文字列の文
字幅に基づき、この文字列の文字を前記線上に均等に配
置することを特徴とする請求項3の文字列配置方法。
4. The character string arranging method according to claim 3, wherein the characters of the character string are evenly arranged on the line based on the character width of the character string in addition to the line length of the line.
【請求項5】 線図形の線又は閉図形の輪郭の線に関連
して、文字列を配置する文字列配置装置において、 この線の線長を算出し、この線長に基づいて、前記文字
列の文字を所定の関係で配置する配置手段(0106)を備え
ることを特徴とする文字列配置装置。
5. A character string arranging device for arranging a character string in relation to a line of a line figure or a contour line of a closed figure, calculates the line length of this line, and based on this line length, the character A character string arranging device comprising an arranging means (0106) for arranging characters in a column in a predetermined relationship.
【請求項6】 前記配置手段(0106)は、前記線の曲線成
分を直線成分に変更してから、前記線長を算出すること
を特徴とする請求項5の文字列配置装置。
6. The character string arranging device according to claim 5, wherein the arranging means (0106) calculates the line length after changing the curved line component of the line into a straight line component.
【請求項7】 前記配置手段(0106)は、この文字列の文
字を前記線上に均等に配置することを特徴とする請求項
5又は請求項6の文字列配置装置。
7. The character string arranging device according to claim 5, wherein the arranging means (0106) uniformly arranges the characters of the character string on the line.
【請求項8】 前記配置手段(0106)は、前記線の線長に
加えて、前記文字列の文字幅に基づき、この文字列の文
字を前記線上に均等に配置することを特徴とする請求項
7の文字列配置装置。
8. The arrangement means (0106) arranges the characters of the character string evenly on the line based on the character width of the character string in addition to the line length of the line. Item 7 character string arrangement device.
JP6164227A 1994-07-15 1994-07-15 Method and device for arranging character string Pending JPH0830666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6164227A JPH0830666A (en) 1994-07-15 1994-07-15 Method and device for arranging character string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6164227A JPH0830666A (en) 1994-07-15 1994-07-15 Method and device for arranging character string

Publications (1)

Publication Number Publication Date
JPH0830666A true JPH0830666A (en) 1996-02-02

Family

ID=15789092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6164227A Pending JPH0830666A (en) 1994-07-15 1994-07-15 Method and device for arranging character string

Country Status (1)

Country Link
JP (1) JPH0830666A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003337809A (en) * 2002-05-21 2003-11-28 Fujitsu Ltd Character inputting device equipped with character attaching means with high degree of freedom
JP2005209154A (en) * 2003-12-24 2005-08-04 Seiko Epson Corp Layout element arranging device, layout element arranging method, layout element arranging program, computer readable recording medium and electronic equipment
JP2006023736A (en) * 2005-06-24 2006-01-26 Ricoh Co Ltd Device and method for information processing and computer readable recording medium which records program to have computer execute its method
JP2009291993A (en) * 2008-06-03 2009-12-17 Kyocera Mita Corp Image forming apparatus and image forming program
JP2013211052A (en) * 2013-06-14 2013-10-10 Casio Comput Co Ltd Picturesque image display control device, picturesque image display control program, and picturesque image display control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003337809A (en) * 2002-05-21 2003-11-28 Fujitsu Ltd Character inputting device equipped with character attaching means with high degree of freedom
JP2005209154A (en) * 2003-12-24 2005-08-04 Seiko Epson Corp Layout element arranging device, layout element arranging method, layout element arranging program, computer readable recording medium and electronic equipment
JP2006023736A (en) * 2005-06-24 2006-01-26 Ricoh Co Ltd Device and method for information processing and computer readable recording medium which records program to have computer execute its method
JP2009291993A (en) * 2008-06-03 2009-12-17 Kyocera Mita Corp Image forming apparatus and image forming program
JP2013211052A (en) * 2013-06-14 2013-10-10 Casio Comput Co Ltd Picturesque image display control device, picturesque image display control program, and picturesque image display control method

Similar Documents

Publication Publication Date Title
JPH0527880B2 (en)
US5642475A (en) Apparatus and method for editing graphics or group graphics displayed on a screen and correlated to each other
JPH0830666A (en) Method and device for arranging character string
JP3054545B2 (en) Character / graphic editing method and apparatus
JPS6215670A (en) Editing system for intra-graphic character string
JPH06295322A (en) Device and method for displaying segment
JPS63187288A (en) Display system
JPH0855214A (en) Map display control system
JP3351939B2 (en) Character string transformation arrangement method
JP3113105B2 (en) Graph creation apparatus and graph creation method
JPH0492974A (en) Automatic dimension display device
JPS6346472B2 (en)
JPS63289630A (en) Storage system
JP2676733B2 (en) Design support system
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JP2896544B2 (en) Character generation method and apparatus
JP2921975B2 (en) Handwritten document creation device
JPH04191972A (en) Editing system for character attribute
JPH07282285A (en) Graphic editing device
JPH07234868A (en) Document preparing device
JPH06933A (en) Electronic composing method
JPH05333847A (en) System for processing image data display
JPH0728999A (en) Picture processing method
JPH04317121A (en) Screen display device
JPH08161513A (en) Graphic processor