JPH0423081A - Character string inserting system - Google Patents
Character string inserting systemInfo
- Publication number
- JPH0423081A JPH0423081A JP2127770A JP12777090A JPH0423081A JP H0423081 A JPH0423081 A JP H0423081A JP 2127770 A JP2127770 A JP 2127770A JP 12777090 A JP12777090 A JP 12777090A JP H0423081 A JPH0423081 A JP H0423081A
- Authority
- JP
- Japan
- Prior art keywords
- character
- frame
- character string
- data
- house
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
- Document Processing Apparatus (AREA)
- Instructional Devices (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は、コンピュータ等で取り扱われる図形データ
の座標上において、不定形な囲枠データ]〕に文字列デ
ータを挿入する方式に関するものである。[Detailed Description of the Invention] [Industrial Application Field] This invention relates to a method for inserting character string data into irregularly shaped frame data on the coordinates of graphic data handled by a computer, etc. .
[従来の技術]
従来、コンピュータ等では、地図などの図形を数値デー
タ化して取り扱っており、すなわち、予め定めた基準と
なる座押上に図形を当て嵌めることで数値データ化し、
そうした座標上において図形データとして取り扱ってい
る。[Prior Art] Conventionally, computers and the like have handled figures such as maps by converting them into numerical data, that is, converting them into numerical data by fitting the figure to a predetermined reference point.
It is handled as graphic data on such coordinates.
例えば、電力会社等においては、契約により各戸に電力
を送配電することから、その把握および管理等のため、
コンピュータ上において配電状況の地図化が行われてい
る。つまり、第23図は。For example, at electric power companies, etc., electricity is transmitted and distributed to each household based on a contract, so in order to understand and manage it,
The power distribution situation is mapped on a computer. In other words, Figure 23.
コンピュータ上における。そうした図形表示例を示す斜
視図であるが、同図に示すようにコンピュータ上におい
ては、航空写真などによる地図情報から室枠等の輪郭だ
けを残して図形データを作成するとともに、それら室枠
各々の中に、契約名義人などの文字列データを挿入し、
いわゆる配電マツプとしており、文字列データを適宜更
新して顧客サービスの用に供している。on a computer. This is a perspective view showing an example of such a graphic display.As shown in the figure, graphic data is created on a computer from map information such as an aerial photograph, leaving only the outlines of room frames, etc. Insert string data such as contract holder into
This is a so-called power distribution map, and the character string data is updated as appropriate and used for customer service.
[発明が解決しようとする課題]
しかしながら、従来においては、文字列データの挿入(
更新)は、その文字列データを室枠内に最適に合致させ
るために、コンピュータの操作者が表示画像J二で家枠
の座標位置、大きさ、形状など諸元を検査し、それらに
適宜対応して、文字列データの座標位置、大きさなどの
諸元を逐一指示しなければならず、指示操作が煩わしく
手間がかかるという問題があった。[Problem to be solved by the invention] However, in the past, insertion of character string data (
update), in order to optimally match the character string data within the room frame, the computer operator inspects the specifications such as the coordinate position, size, and shape of the house frame in the displayed image J2, and updates the data as appropriate. Correspondingly, specifications such as the coordinate position and size of the character string data must be specified one by one, which poses a problem in that the instruction operation is cumbersome and time-consuming.
この発明は上記のような課題を解決するためになされた
ものであり、指示操作を簡単化しうるよう文字列データ
挿入の自動化に好ましく適用でき、利便性の向上を図れ
る文字列挿入方式を提供することをその目的とする。This invention has been made to solve the above-mentioned problems, and provides a character string insertion method that can be preferably applied to automation of character string data insertion to simplify instruction operations and improve convenience. Its purpose is to
[課題を解決するための手段]
上記目的を達成するため、この発明の請求項1記載の文
字列挿入方式は、囲枠内で最も広い部分を判断し、その
中心点を求める囲枠内広さ判断処理と、この中心点を通
る直線のうち囲枠との交点間の距離が最も長い直線と平
行及び垂直に新たな座標軸を設定する座標変換処理と、
囲枠に外接して各辺がに−13E新たな各座標軸に平行
な最小の長方形を求め、この外接長方形の各辺に接する
所定幅部分のうち囲枠との重なりが少ない部分を削除し
、これを各辺が囲枠内に含まれるようになるまで繰り返
すことにより文字列を作図する文字枠を生成する文字枠
作成処理と、文字列の作図方向を上記文字枠が縦長のと
きは縦とし、横長のときは横とする作図方向決定処理と
、文字列データに含まれる分割可能情報と上記文字枠の
縦横比に基づき文字列の最適な並びを作成する文字列作
成処理と、作成された文字列が上記文字枠に入るように
文字サイズを決定する文字サイズ決定処理と、文字枠を
上記作成された文字列の行数に等しく分割して、各分割
部分の中心に各行の中心の文字がくるように作図する作
図処理とを有するものである。[Means for Solving the Problems] In order to achieve the above object, the character string insertion method according to claim 1 of the present invention determines the widest part within the surrounding frame and calculates the center point of the widest part within the surrounding frame. a coordinate conversion process that sets new coordinate axes parallel and perpendicular to the straight line that passes through this center point and has the longest distance between the intersections with the surrounding frame;
Find the smallest rectangle that is circumscribed to the enclosing frame and whose sides are parallel to each new coordinate axis, and delete the part that overlaps less with the enclosing frame among the predetermined width parts that touch each side of this circumscribed rectangle, By repeating this until each side is included in the surrounding frame, the character frame creation process generates a character frame for drawing a character string, and the character string drawing direction is set vertically if the character frame is vertical. , a drawing direction determination process that sets the drawing direction horizontally when the text is horizontally long, a character string creation process that creates an optimal arrangement of character strings based on the divisibility information included in the character string data and the aspect ratio of the character frame, and the created A character size determination process that determines the character size so that the character string fits into the character frame above, and a character size determination process that divides the character frame equally to the number of lines of the character string created above, and places the character at the center of each line in the center of each divided part. This includes a drawing process for drawing the image so that it appears.
また、この発明の請求項2記載の文字列挿入方式は5上
記請求項1の囲枠内広さ判断処理の代わりに、囲枠デー
タを構成するベクトルの向きを所定回りに書換えるベク
トル書換え処理と、書換えられた各ベクトルの関係を調
べることにより囲枠の凹凸を調べて凹みを除去する凹み
除去処理と、この凹み除去処理を所定の条件が満たされ
たときに停止して残った部分を仮囲枠とする仮囲枠決定
処理とを有するものである。Further, the character string insertion method according to claim 2 of the present invention is a vector rewriting process that rewrites the direction of the vector constituting the surrounding frame data in a predetermined direction instead of the process of determining the inner width of the surrounding frame according to claim 1. , a dent removal process that examines the unevenness of the surrounding frame and removes the dents by examining the relationship between each rewritten vector, and a dent removal process that stops when a predetermined condition is met and removes the remaining portion. This includes a process for determining a temporary surrounding frame to be used as a temporary surrounding frame.
[作用コ
この発明の請求項1又は2記載の方式においては、囲枠
の大きさに応じて文字サイズが適宜決定され、また、囲
枠の形状に応じて最適な方向に作図方向が決定され、は
ぼ囲枠の中に文字列データが挿入される。このため、こ
の方式をソフトプログラム化することにより文字列デー
タの挿入が自動化される。[Function] In the system according to claim 1 or 2 of the present invention, the font size is appropriately determined according to the size of the surrounding frame, and the drawing direction is determined to be an optimal direction according to the shape of the surrounding frame. , the string data is inserted into the box. Therefore, by converting this method into a software program, the insertion of character string data can be automated.
[実施例] 以下、この発明の実施例を図について説明する。[Example] Embodiments of the present invention will be described below with reference to the drawings.
第1図はこの発明の第1の実施例を示すフローチャート
である。ここで、実施例の説明に入る前に、その前提と
なるものについて説明する。FIG. 1 is a flowchart showing a first embodiment of the invention. Here, before going into the description of the embodiment, the premise will be explained.
第2図に示すように、図面データとして、家屋の位置、
形状を示す家屋図データ(囲枠データ)とそれに対応し
た家名を示す家名データ(文字列データ)があり、それ
らを基に適切な図面を作成するものとする。上記家屋図
データは、第3図falに示すように家屋−つ一つの形
状を形成するベクトルの記録データで1図の例でいえば
6本のベクトルの始点と終点の記録データである。また
、家名データは、第3図fblに示すように家屋図デー
タの家屋に対応する家名の記録データで、どの家屋図の
家名か、文字数、文字列(分割可能の情報′*′も含む
)から成る。更に、本願は、家屋図データと家名データ
の対応関係が一枚の図面の上で容易に確認できることを
目標とし、以下の仕様を設定した(第4図参照)。As shown in Figure 2, the drawing data includes the location of the house,
There is house map data (frame data) indicating the shape and house name data (character string data) indicating the corresponding house name, and an appropriate drawing is created based on them. The above-mentioned house map data is recorded data of vectors forming the shape of each house as shown in FIG. 3 fal, and in the example of FIG. In addition, the house name data is record data of the house name corresponding to the house in the house map data, as shown in Fig. ). Furthermore, this application aims to make it possible to easily confirm the correspondence between house plan data and house name data on a single drawing, and has set the following specifications (see FIG. 4).
仕様:
・家名データの文字は自由な方向に作図する(第4図(
a)、(bl)。Specifications: - Draw the characters of the family name data in any direction (see Figure 4).
a), (bl).
・家名データの文字は家屋図データの家屋の図からなる
べくはみ出さないようにする(第4図(C))。- Make sure that the characters of the house name data do not protrude from the house diagram of the house diagram data as much as possible (Figure 4 (C)).
・複数行に分割できる家名データは複数行に分けて作図
することができる(第4図(d)。- Family name data that can be divided into multiple lines can be plotted in multiple lines (Figure 4 (d)).
(e))。(e)).
以上の仕様を満たすため、本実施例では、基枠の中で一
番広い空間を見つけ、その付近に文字枠を設定して作図
する。なお、縦にY′軸、横にX′軸をとるものとし、
Y′軸は上方向に X を軸は右方向に増加するものと
する。In order to satisfy the above specifications, in this embodiment, the widest space in the base frame is found, and a character frame is set in the vicinity of that space for drawing. Note that the Y' axis is vertical and the X' axis is horizontal.
It is assumed that the Y' axis increases in the upward direction and the X axis increases in the right direction.
さて、第1図のフローチャートを用いて第1の実施例に
ついて説明する。Now, the first embodiment will be explained using the flowchart shown in FIG.
a、室枠の中の広さの判断(ステップSl)室枠に外接
し、X′軸とY′軸に平行な最小の長方形を求める。そ
の長方形をX′軸 Y j軸に平行な直線でそれぞれ1
等分2g等分する。f。a. Determining the size within the room frame (Step Sl) Find the smallest rectangle that circumscribes the room frame and is parallel to the X' and Y' axes. The rectangle is divided into straight lines parallel to the X' axis, Y axis, and j axis.
Divide into 2g portions. f.
gの値は任意の正の整数であるが、大きいほうが良い。The value of g can be any positive integer, but the larger the value, the better.
上記X″軸とY′軸に平行なf−1本とg−i本の直線
の交点の中で、次の条件を満たす点を選ぶ。Among the intersection points of f-1 and g-i straight lines parallel to the X'' axis and Y' axis, select a point that satisfies the following condition.
条件: ・室枠の内部にある点である。conditions: ・It is a point inside the room frame.
・この点を中心として基枠を構成するベクトルと接しな
い最大の円を作ったとき、その半径が他の点を中心とし
た同じような円の半径より短くない。・If you create the largest circle that does not touch the vectors that make up the base frame with this point as its center, its radius will not be shorter than the radius of a similar circle centered on any other point.
選ばれた点をC6とする(第5図参照)。Let the selected point be C6 (see Figure 5).
b、座標変換(ステップS2) 上記で選ばれたC8について次の処理を行う。b. Coordinate transformation (step S2) The following process is performed for C8 selected above.
まず、室枠を構成するベクトルV1yV21・・・gV
nについて、任意のvIと平行でかっC8を通る直線を
引く。直線とベクトルの交点は複数あるが、Coに一番
近い交点と、その反対方向でCoに一番近い交点との距
離をd、とする。このd、が一番大きくなるVi を求
める(第6図参照)。First, vectors V1yV21...gV constituting the room frame
For n, draw a straight line parallel to any vI and passing through the bracket C8. There are multiple intersections between the straight line and the vector, and let d be the distance between the intersection closest to Co and the intersection closest to Co in the opposite direction. Find Vi for which this d is the largest (see Figure 6).
次に、■、とX′軸とのなす角を求める。X′軸に対し
■1がなす角度を反時計方向にθ(rad)であるとす
る。Next, find the angle between ■ and the X' axis. Assume that the angle made by ■1 with respect to the X' axis is θ (rad) in the counterclockwise direction.
一π/4≦θ≦π/4のとき、X″−Y′の双軸をθ(
rad)だけ反時計回りに回転させた座標軸x−yを設
定する(第7図(a))。When 1π/4≦θ≦π/4, the dual axis of X″-Y′ is θ(
The coordinate axes x-y are set by rotating them counterclockwise by rad) (FIG. 7(a)).
同様に、π/4〈θ〈3π/4のとき−x’Y′の双軸
をO−π/ 2 (rad)だけ反時計回りに回転させ
た座標軸X−Yを設定する(第7図(bl)。Similarly, when π/4〈θ〈3π/4, set the coordinate axis X-Y by rotating the -x'Y' twin axis counterclockwise by O-π/2 (rad) (see Fig. (bl).
3π/4≦θ≦5π/4のとき、x’ −y’ の双軸
をO−π(rad)だけ反時計回りに回転させた座標軸
X−Yを設定する(第7図(C))。When 3π/4≦θ≦5π/4, set the coordinate axis X-Y by rotating the x'-y' dual axis counterclockwise by O-π (rad) (Figure 7 (C)) .
5π/4くθ〈7π/4のとき、X’−Y’の双軸を0
−3π/ 2 (rad)だけ反時計回りに回転させた
座標軸X−Yを設定する(第7図(d))。When 5π/4 x θ〈7π/4, set the dual axis of X'-Y' to 0
Set the coordinate axis X-Y rotated counterclockwise by -3π/2 (rad) (FIG. 7(d)).
C1文字枠の作成(ステップS3)
文字列を作図する文字枠を作成する処理で、以下の処理
から成る。Creation of C1 character frame (step S3) This is the process of creating a character frame for drawing a character string, which consists of the following processes.
■領域作成(第8図参照)
家屋図データの室枠に外接し、各辺がY軸、Y軸に平行
な最小の長方形を求める。この外接長方形をY軸に平行
な直線でf等分し、Y軸に平行な直線でg等分する。こ
れにより、外接長方形はfXg個の長方形に分割され、
この長方形を領域と呼ぶことにする。f、gの値は任意
の整数であるが、十分大きくとる。領域を囲む長方形を
B1とする。■Region creation (see Figure 8) Find the smallest rectangle that circumscribes the room frame of the house plan data and has each side parallel to the Y axis. This circumscribed rectangle is divided into f equal parts by a straight line parallel to the Y axis, and divided into g equal parts by a straight line parallel to the Y axis. As a result, the circumscribed rectangle is divided into fXg rectangles,
This rectangle will be called a region. The values of f and g are arbitrary integers, but are set to be sufficiently large. Let B1 be a rectangle surrounding the area.
■領域の削除(第9図参照)
ある外接長方形B、の4辺に接する一列の領域の並びを
考える。それぞれの領域の並びについて、家屋図データ
の室枠の中に完全に入るものの数をm8個とし、そうで
ないものをmoとする。■Region deletion (see Figure 9) Consider a row of regions that touch the four sides of a certain circumscribed rectangle B. Regarding the arrangement of each area, the number of areas that completely fit within the room frame of the house plan data is set as m8, and the number of areas that do not fit completely is set as mo.
m。/ (m 0+ m l)の値を計算し、この値が
一番大きい領域の並びを削除する。m、/ (mo +
mi)の値の一番大きい並びが複数あった場合は、並び
に含まれる領域の数が一番少ない並びを削除する。m。m. / (m 0 + m l) is calculated, and the sequence of regions with the largest value is deleted. m, / (mo +
If there are multiple sequences with the largest value of mi), the sequence containing the least number of areas is deleted. m.
/ (m0+m+ )の値の一番大きい並びが複数あり
、その中で並びに含まれる領域の数が一番少ない並びが
複数ある場合は、その中から無作為に一つの並びを選択
し削除する。/ If there are multiple sequences with the largest value of (m0+m+) and there are multiple sequences with the smallest number of areas included in the sequence, one sequence is selected at random from among them and deleted.
■文字枠の決定(第10図参照)
上述した■の領域の削除を何回か繰り返し1次の条件を
満たした場合に■の処理を中止して。■ Determining the character frame (see Figure 10) Repeat the deletion of the region (■) described above several times, and stop the process (■) when the first condition is satisfied.
残った領域によって決まる長方形B、を文字枠とする。A rectangle B determined by the remaining area is used as a character frame.
このとき、文字枠の左下の頂点の座標を(XM I N
、 YM I N)とし、右上の頂点の座標を(XMA
X、YMAX)とする。At this time, the coordinates of the lower left vertex of the character frame are (XM I N
, YM I N), and the coordinates of the top right vertex are (XMA
X, YMAX).
条件:
・B4の4辺に接する領域の全てが家屋図データの室枠
内に含まれる。Conditions: - All areas touching the four sides of B4 are included within the room frame of the house plan data.
これによって、室枠の形状に重なる文字枠が設定できる
。This allows setting a character frame that overlaps the shape of the room frame.
d0作図方向の決定(ステップS4)
次に、文字列を作図する方向を決める。ここでは、上記
において作成された文字枠の(X、MAX−X、MIN
)と(YMAX−YMI N)を比較して、(XMAX
−XMIN)の方が大きい場合(横長)は第11図ta
+に示すように横書き、(YMAX−YMIN)の方が
大きい場合(縦長)は第11図(biに示すように縦書
きに家名データを書くものとする。d0 Determination of Drawing Direction (Step S4) Next, the direction in which the character string is drawn is determined. Here, the character frame created above (X, MAX-X, MIN
) and (YMAX-YMIN), (XMAX
-XMIN) is larger (horizontal), see Figure 11 ta
When (YMAX-YMIN) is larger (vertical), the family name data is written vertically as shown in FIG. 11 (bi).
e0文字列の作成(ステップS5)
文字列をどのように並べて作図するかという文字列の書
式を設定する処理で、以下の処理から成る。Creation of e0 character string (step S5) This process sets the format of the character string, which is how the character strings are arranged and drawn, and consists of the following processes.
■板書式の設定(第1−2図参照)
1文字の縦横比が1:1であると仮定し1文字の大きさ
を自由に変えられると仮定する。このとき分割可能情報
′木′も一つの文字と考え、任意の文字間で文字列デー
タを任意側の部分に分割できると考えて、最も空白がな
いように文字を文字枠の中に並べることを考える。分割
可能情報も含む総文字数をMとして、1行中の文字数を
k、1列中の文字数を!1作図方向が縦のとき(YMA
XYMIN):(XMAX−XMIN)=P:(1、作
図方向が横のとき(XMAX−XMIN) : (YM
AX−YMIN)=p:qとおけばk −12:M
p:q=に:ff
となり、故に
を得る。ここで、k以上の最小の整数をKとし、p以上
の最小の整数をLとする。■ Setting the board format (see Figures 1-2) Assume that the aspect ratio of each character is 1:1, and that the size of each character can be changed freely. At this time, consider that the divisible information 'tree' is also one character, and consider that the character string data can be divided into arbitrary parts between arbitrary characters, and arrange the characters in the character frame so that there are as few blank spaces as possible. think of. The total number of characters including divisible information is M, the number of characters in one line is k, and the number of characters in one column is! 1 When the drawing direction is vertical (YMA
XYMIN): (XMAX-XMIN) = P: (1, When the drawing direction is horizontal (XMAX-XMIN): (YM
If we set AX-YMIN)=p:q, we get k-12:M p:q=:ff, so we get. Here, K is the smallest integer greater than or equal to k, and L is the smallest integer greater than or equal to p.
これによって、文字列を任意に分割して5行に列に並べ
たときに、はぼ文字枠と相似形の文字列になるような整
数り、Kが得られる。As a result, when a character string is arbitrarily divided and arranged in five rows and columns, an integer number K can be obtained that will result in a character string similar to the character frame.
■行数の補正
作図方向が縦のときは(XMAX−XMIN)、横のと
きは(YMAX−YMIN)の値を調べ、この値をJと
する。また、作図することができる最小の文字の大きさ
を幅W、高さhとする。作図方向が縦で、前記板書式で
求めた文字列データのとる最小の幅(wXL)>Jの場
合、または、作図方向が横で、板書式で求めた文字列デ
ータのとる最小の高さ(hXL)>Jの場合は1文字枠
の中にL行の文字列が作図できない。従って、このとき
に限り、作図方向が縦の場合はLをwXL<Jを満たす
最大の整数値とし、横の場合はLを)IXL<Jを満た
す最大の整数値とする。また、作図方向の縦横に関係な
く、Lの値が変化した場合は、にもM/L以上の最小の
整数値とする。但し2作図方向が縦でJ < wのとき
は文字枠の幅をWにしてL=1とする。つまり、XMA
Xの値に(J−w)/2を加え、XMINの値から(J
−w)/2を減する。同様に1作図方向が横でJ<hの
ときは文字枠の高さをhにしてL=1とする。つまり、
YMAXの値に(J−h)/2を加え、YMINの値か
ら(J−h)/2を減する。(2) Correcting the number of lines Check the value of (XMAX-XMIN) when the drawing direction is vertical, and (YMAX-YMIN) when it is horizontal, and set this value as J. Furthermore, the minimum character size that can be drawn is defined as width W and height h. If the drawing direction is vertical and the minimum width (wXL) of the character string data obtained using the board format is greater than J, or when the drawing direction is horizontal and the minimum height of the character string data obtained using the board format If (hXL)>J, L lines of character strings cannot be drawn in one character frame. Therefore, only in this case, when the drawing direction is vertical, L is the maximum integer value that satisfies wXL<J, and when the drawing direction is horizontal, L is the maximum integer value that satisfies )IXL<J. In addition, if the value of L changes regardless of the vertical or horizontal direction of drawing, it shall be the minimum integer value that is greater than or equal to M/L. However, when the drawing direction is vertical and J < w, the width of the character frame is set to W and L=1. In other words, XMA
Add (J-w)/2 to the value of X, and from the value of XMIN (J
−w)/2. Similarly, when the first drawing direction is horizontal and J<h, the height of the character frame is set to h and L=1. In other words,
Add (J-h)/2 to the value of YMAX, and subtract (J-h)/2 from the value of YMIN.
■書式の決定(第13図参照)
第13図(alに示すように1文字列データを分割可能
情報がでてくるたびに区切り、先頭から文字列19文字
列2.・・・と番号を付ける。文字列iの文字数をm
(i)とする。■Determining the format (see Figure 13) As shown in Figure 13 (al), separate one character string data each time divisible information appears, and number it from the beginning as character string 19 character string 2... Add m to the number of characters in string i
(i).
L≠1のときi < Lである行iに含まれる文字列は
次のように決定する。When L≠1, the character string included in row i where i < L is determined as follows.
i−i行目までに行の中に含まれた文字列を除いた残り
の文字列の先頭が文字列Sであったとする。i=1であ
ったならばs=1になる。第13図(′b)に示すよう
に、m(s)+m(s+1)+m(s+2)+ −”l
l(t)+(t−1)<Kとなる最大の整数tを求める
。なお、Kは前記板書式で決めた一行の文字列の目安で
ある。Assume that the character string S is at the beginning of the remaining character strings excluding the character strings included in the lines up to the ii-th line. If i=1, then s=1. As shown in Figure 13('b), m(s)+m(s+1)+m(s+2)+-"l
Find the largest integer t such that l(t)+(t-1)<K. Note that K is a guideline for one line of character strings determined in the board format.
ト(履(s)+m(s+1)十 ・・・十、ll (t
) +(t、−5) )+に−(m(s)+m(s+1
)+ −+m(t+1)+(t+l−5))<0であ
れば、文字列Sから文字列tまでを合わせた文字列の文
字数の値の方が、文字列Sから文字列t+1までを合わ
せた文字数の値よりもKに近いと判断して、i行目の行
に含まれる文字列を文字列Sから文字列tまでとそれら
の間に含まれる分割可能情報全部とする。それ以外の場
合は、j行目の行に含まれる文字列を文字列Sから文字
列t+1までとそれらの間に含まれる分割可能情報全部
とする。すなわち、第13図参照lに示すように1文字
列Sからに文字目に一番近い分割可能情報の手前までを
その行に作図する文字列とする。t (s) + m (s + 1) ten ... ten, ll
) +(t, -5) )+ to -(m(s)+m(s+1
)+ -+m(t+1)+(t+l-5))<0, the total number of characters from string S to string t is greater than the total number of characters from string S to string t+1. It is determined that the character string is closer to K than the value of the combined number of characters, and the character string included in the i-th line is set as the character string S to character string t and all of the divisible information contained between them. In other cases, the character string included in the j-th line is the character string S to character string t+1 and all of the divisible information contained between them. That is, as shown in FIG. 13, the character string from one character string S to the part before the divisible information closest to the character is the character string to be drawn in that line.
図示の例では、文字列Sから文字列しになる。また、
m (s)≧にのときはi行目の文字列を文字列Sとす
る。In the illustrated example, the character string starts from the character string S. Also,
When m (s)≧, the character string in the i-th row is set as the character string S.
1==Lのときは、i行目の行に含まれる文字列をi−
i行目までに行の中に含まれた文字列を除いた残りの文
字列全部と、その部分に含まれる分割可能情報全部とす
る。L”=1のときは、これに従いi行目の行は文字列
データ全部となる61行目より前述のような方法でL行
目までを決定するか、途中のj行目において全ての文字
列データを含んでしまった場合は、書式の設定を終了す
る。Lに満たない値iによって示されるi行目の行で全
ての文字列データを含んでしまった場合、Lの値を新し
くiとする。When 1==L, the character string included in the i-th line is
It is assumed that all the remaining character strings excluding the character strings included in the line up to the i-th line and all the divisible information included in that part are included. When L"=1, the i-th row contains all the character string data. Either the 61st row to the L-th row is determined using the method described above, or all the characters are determined in the j-th row in the middle. If column data is included, finish formatting.If all character string data is included in the i-th row indicated by a value i that is less than L, change the value of L to a new i shall be.
これによって、i行目からL行目までに作図するそれぞ
れの行に含まれる文字列の範囲が決定される。As a result, the range of character strings included in each line to be plotted from the i-th line to the L-th line is determined.
f0文字サイズの決定(ステップS6)文字サイズを決
定する。全ての行の文字列の中で一番文字数の多い行の
文字数をm (MAX)とする。このとき、1文字の文
字サイズを幅W、高さHとして次のように決める(第1
4図(at、 ()))参照)。Determination of f0 character size (step S6) The character size is determined. Let m (MAX) be the number of characters in the line with the largest number of characters among the character strings in all lines. At this time, the character size of one character is determined as width W and height H as follows (first
(See Figure 4 (at, ()))).
作図方向が横のとき
W:(XMAX−XMIN)/m(MAX) X aH
=(YMAX−YMIN)ル ×β作図方向が縦のと
き
W=(XMAX−XMIN)/L X 13t(=
(YMAX−YMIN)/m(MAX) X aこのよ
うに、文字枠をL等分、m(MAX)等分し、その辺を
α倍、β倍したものを1文字のサイズとする。但し、縦
横双方向の場合で、HとWの値が予め設定した文字の最
大サイズHMAX。When the drawing direction is horizontal W: (XMAX-XMIN)/m(MAX) X aH
= (YMAX-YMIN) Le × β When the drawing direction is vertical, W = (XMAX-XMIN)/L x 13t (=
(YMAX-YMIN)/m(MAX) However, in the case of both vertical and horizontal directions, the values of H and W are the preset maximum character size HMAX.
WM、AXより大きい場合は、H=HMAX、W=WM
AXとする。また、α、βは0より大きく1以下の実数
で任意に設定できる。α、βの値が1に近ければ文字枠
内に大きく文字が作図され、0に近ければ小さく作図さ
れる。また、βによって作図のときの行間隔が決まる。If larger than WM, AX, H=HMAX, W=WM
Let it be AX. Further, α and β can be arbitrarily set as real numbers greater than 0 and less than or equal to 1. If the values of α and β are close to 1, the characters will be drawn large within the character frame, and if the values are close to 0, the characters will be drawn small. Furthermore, the line spacing during plotting is determined by β.
作図可能な最小の文字の幅W、高さhに対して、仮にW
<wであるならばWの値をWとする。For the width W and height h of the smallest character that can be drawn, suppose W
If <w, the value of W is set to W.
同様に、H<hであるならばHの値をhとする。Similarly, if H<h, the value of H is set to h.
これにより、作図可能な文字サイズが得られる。This provides a font size that allows drawing.
g9作図(ステップS5)
実際に作図を行う処理で、以下の処理から成る(第15
図参照)。g9 Plotting (Step S5) This is the process of actually plotting, which consists of the following processes (15th
(see figure).
■文字枠の分割
文字枠を文字列の行数りに等しい部分に分割する。縦書
きの場合、Y軸に平行な直線で文字枠をL個の部分に分
割し、右側の部分から順に枠1゜枠2.・・・、枠りと
する。横書きの場合、X軸に平行な直線で文字枠をL個
の部分に分割し、上側の部分から順に枠1.枠2.・・
・、枠りとする。■Dividing the character frame Divide the character frame into parts equal to the number of lines in the character string. In the case of vertical writing, the character frame is divided into L parts by a straight line parallel to the Y axis, and from the right part, frame 1, frame 2, etc. ..., as a frame. In the case of horizontal writing, the character frame is divided into L parts by a straight line parallel to the X axis, and the character frame is divided into L parts in order from the upper part. Frame 2.・・・
・As a frame.
■作図
枠1に文字列データの1行目が対応し、枠2゜枠3も同
様に2行目、3行目に対応し、枠りはL行目に対応する
。基本的には、枠iを目安にi行目の文字列を作図する
ことになる。この方法を以下に述べる。(2) The first line of the character string data corresponds to the drawing frame 1, the frame 2 and the frame 3 similarly correspond to the second and third lines, and the frame corresponds to the Lth line. Basically, the character string in the i-th line is drawn using the frame i as a guide. This method will be described below.
i行目の文字列の文字数がm (i)であったとき、m
(i)/2番目の文字をmeとする。但し、m (i)
が奇数であるときは(m (i) +1)72番目の文
字をmcとする。枠iの4頂点から2本の対角線を引き
その交点をPoとして、文字mcの中心がP。にくるよ
うにi行目の文字列を枠i上に作図する。作図方向が縦
の場合はY軸に平行に上から下へ文字列を作図し、横の
場合はX軸に平行に左から右へ文字列を作図する。それ
ぞれの文字の向きは文字の上部がY軸子方向に向くよう
にする。また、−文字の端から隣の文字の端までの距離
を設定値だけ離す。あるいは1文字の中心同志の間隔を
、縦方向のとき(YMAX−YMIN)/m (MAX
)、横方向のとき(XMAX−XMIN)/m (MA
X)だけあける。When the number of characters in the i-th string is m (i), m
(i)/Let the second character be me. However, m (i)
When is an odd number, the 72nd character (m (i) + 1) is set to mc. Draw two diagonal lines from the four vertices of frame i, set their intersection as Po, and the center of letter mc is P. Draw the character string of the i-th line on the frame i so that it appears in the frame i. When the drawing direction is vertical, the character string is drawn from top to bottom parallel to the Y axis, and when the drawing direction is horizontal, the character string is drawn parallel to the X axis from left to right. The orientation of each character is such that the top of the character faces toward the Y-axis. Also, increase the distance from the edge of the - character to the edge of the adjacent character by a set value. Or the distance between the centers of one character in the vertical direction (YMAX-YMIN)/m (MAX
), in the horizontal direction (XMAX-XMIN)/m (MA
Open only X).
これにより、文字枠の中心に任意の文字間隔で文字列デ
ータを作図できる。This allows character string data to be drawn at arbitrary character intervals at the center of the character frame.
以上のようにして作図された本実施例の作図結果を第1
6図(a)、ら)に示す。The drawing results of this example drawn as described above are shown in the first
It is shown in Figure 6(a), et al.
以上のように本実施例では、家枠の大きさに応じて文字
サイズが適宜決定され、また、室枠の形状に応じて最適
な方向に文字列の作図方向が決定され、はぼ室枠の中に
文字列データが挿入される。そして1本実施例では、上
述した手法がソフトプログラム化されてコンピュータ上
で動作するので、文字列データの挿入が自動化されるこ
ととなる。As described above, in this embodiment, the character size is appropriately determined according to the size of the house frame, and the drawing direction of the character string is determined in the optimal direction according to the shape of the house frame. String data is inserted into. In this embodiment, the above-described method is converted into a software program and operates on a computer, so that the insertion of character string data is automated.
第17図はこの発明の第2の実施例を示すフローチャー
トである。本実施例では、前述した仕様を満たすため、
室枠の周りの凹凸を調べ、なるべく凹凸がなくなるよう
に削り、残った部分に文字枠を設定する。なお、上記第
1の実施例同様、縦にY′軸、横にX′軸をとるものと
し、Y′軸は上方向に X l軸は右方向に増加するも
のとする。FIG. 17 is a flowchart showing a second embodiment of the invention. In this example, in order to satisfy the specifications mentioned above,
Examine the irregularities around the room frame, remove the irregularities as much as possible, and set the character frame in the remaining area. As in the first embodiment, the vertical axis is the Y' axis and the horizontal axis is the X' axis, with the Y' axis increasing upward and the X1 axis increasing rightward.
以下、第17図のフローチャートを用いて第2の実施例
について説明する。The second embodiment will be described below using the flowchart shown in FIG.
a、ベクトルの書換え(ステップ11)家屋図データの
ベクトルの書換えを行う。第18図に示すように、家屋
図データのベクトルの向きは一定ではないので、これを
書換えて反時計回りにベクトルの向きを変える。a. Rewriting the vector (step 11) Rewriting the vector of the house map data. As shown in FIG. 18, the direction of the vector of the house plan data is not constant, so this is rewritten to change the direction of the vector counterclockwise.
b、凹みの除去 ここでは、以下の処理を行う。b. Removal of dents Here, the following processing is performed.
■凹凸を調べる(第19図参照)
家枠の頂点は1つのベクトルの終点であり、他のベクト
ルの始点である。ある頂点において終点で接するベクト
ルに対して、始点で接するベクトルのなす角を求める。■ Examine the unevenness (see Figure 19) The vertex of the house frame is the end point of one vector and the start point of another vector. Find the angle between the vector that touches at the starting point and the vector that touches at the end point at a certain vertex.
ある頂点に終点で接するべクトルを延長した直線を考え
、そのベクトルの始点から終点の方向を′+′ とする
。このとき、その頂点に始点で接するベクトルが、この
直線をマイナスからプラス方向に見たときに右側にあれ
ば凹みとして、それ以外のときは凸及び平とする。Consider a straight line that is an extension of a vector that touches a certain vertex at its end point, and let the direction from the start point to the end point of that vector be ``+''. At this time, if the vector that touches the vertex at the starting point is on the right side when the straight line is viewed from the negative to the positive direction, it is considered to be a concave, and otherwise it is considered to be convex and flat.
■凹みを除く
■で凹みであると判断した頂点をP、、P2゜・・・、
Pkとする。P、において終点で接するベクトルをVe
i として、Piにおいて始点で接するベクトルをVS
i とする。■Remove the dent The vertex determined to be a dent in ■ is P,, P2゜...
Let it be Pk. The vector that touches P at the end point is Ve
As i, the vector that touches Pi at the starting point is VS
Let it be i.
PI*P2y・・・、Pk全てについて次の計算をする
。PI*P2y..., perform the following calculation for all Pk.
PiからVeiの始点から終点方向に延長した線を引い
たときに、その線が室枠を構成するベクトルと交わる点
のうち、P、に一番近いものをPeiとする。室枠は直
線Pei P’tによって2つの部分に分けられるが、
2つに分けられた家枠のうち面積の小さい方の部分の面
積をSlとする。When a line extending from the starting point of Vei toward the ending point is drawn from Pi, the point closest to P among the points where the line intersects with the vector forming the room frame is set as Pei. The chamber frame is divided into two parts by the straight line Pei P't,
Let the area of the smaller part of the two divided house frames be Sl.
同様にP、からV5iの終点から始点方向に延長した線
を引いたときに、その線が室枠を構成するベクトルと交
わる点のうち、P、に一番近いものをPs、とする。室
枠は直線Ps□P、によって2つの部分に分けられるが
、2つに分けられた家枠のうち面積の小さい方の部分の
面積が先に求めたSiより小さい場合、この面積をSI
とする。Similarly, when a line extending from the end point of V5i toward the starting point is drawn from P, the point closest to P is defined as Ps, among the points where the line intersects with the vector forming the room frame. The room frame is divided into two parts by the straight line Ps□P, but if the area of the smaller part of the two divided house frames is smaller than the previously calculated Si, this area is calculated as SI.
shall be.
■凸部分の削除(第20図参照)
SlyS2y・・・、Skが求まったとき、この中で最
小のものがS、であったとする。最小のものが複数あっ
た場合は任意に選ぶ。このとき面積S1を構成するベク
トルを考え、その中に直線PelPtが含まれていれば
室枠を示すベクトルにV「丁71を追加して、面積S、
を構成する家枠の一部を取り除く。もし、Siを構成す
るベクトルが直線Ps、P、を含んでいれば、室枠を示
すベクトルにr丁J、を追加して、面積S、を構成する
家枠の一部を取り除く。■Deleting convex portions (see Fig. 20) When SlyS2y..., Sk are found, it is assumed that the smallest one among them is S. If there are multiple minimums, choose one arbitrarily. At this time, consider the vector that constitutes the area S1, and if it includes the straight line PelPt, add V'71 to the vector indicating the room frame, and the area S,
Remove part of the frame that makes up the house. If the vectors constituting Si include the straight lines Ps, P, then add r J to the vector indicating the room frame and remove part of the house frame constituting the area S.
C3仮家枠の決定(ステップ513)
上記「b、凹みの除去」を繰り返して白部分を削り、凹
みをなくすわけであるが、その■を繰り返すと極端に面
積が減ってしまい、残った部分に文字枠を設定すると文
字が小さくなってしまう。C3 Determination of temporary house frame (step 513) Repeat the above "b. Removal of dents" to remove the white part and eliminate the dents, but if you repeat step ①, the area will be drastically reduced, and the remaining part will be removed. If you set a text frame to , the text becomes smaller.
故に、上記「b、凹みの除去」については停止条件が必
要であり、それを以下に記す。Therefore, the above-mentioned "b. Removal of dents" requires stopping conditions, which are described below.
条件
・室枠の面積が一番始めの面積の1/SL以下になると
き。但し、 SLは任意の実数で2≦SL≦3程度の値
が考えられる。Conditions: When the area of the room frame is less than 1/SL of the initial area. However, SL is an arbitrary real number, and a value of about 2≦SL≦3 can be considered.
・凹みである点が全くなくなってしまったとき以上の条
件を満たしたときは前記「b、凹みの除去」を停止し、
このときに残った室枠を新しい室枠と考える(第21図
(al、(bl)。・When the point that is a dent has completely disappeared When the above conditions are met, stop the above-mentioned "b. Removal of dents",
The remaining chamber frame at this time is considered a new chamber frame (Fig. 21 (al, (bl)).
d、座標変換(ステップ514)
上記「c、仮室枠の決定」で求まった家枠のうち一番長
いベクトルをviとする。d. Coordinate transformation (step 514) The longest vector of the house frames found in "c. Determination of temporary room frame" above is set as vi.
以降は、前記第1の実施例のrb、座標変換」と同様で
ある。すなわち、■、とX′軸とのなす角を求める。X
′軸に対しV、がなす角度を反時計方向にθ(rad)
であるとする。The subsequent steps are the same as those described in "RB and coordinate transformation" in the first embodiment. That is, find the angle between ■ and the X' axis. X
The angle made by V with respect to the 'axis in the counterclockwise direction is θ (rad)
Suppose that
−π/4≦θ≦π/4のとき、x’−y’の双軸をθ(
rad)だけ反時計回りに回転させた座標軸x−yを設
定する(第7図(a))。-π/4≦θ≦π/4, the dual axis of x'-y' is θ(
The coordinate axes x-y are set by rotating them counterclockwise by rad) (FIG. 7(a)).
同様に、π/4〈θ〈3π/4のとき、X′Y′の双軸
をθ−π/ 2 (rad)だけ反時計回りに回転させ
た座標軸X−Yを設定する(第7図の))。Similarly, when π/4〈θ〈3π/4, set the coordinate axis X-Y by rotating the dual axis of X'Y' counterclockwise by θ-π/2 (rad) (Fig. of)).
3π/4≦θ≦5π/4のとき、X’−Y’の双軸をθ
−π(rad)だけ反時計回りに回転させた座標軸X−
Yを設定する(第7図(C))。When 3π/4≦θ≦5π/4, the dual axis of X'-Y' is θ
Coordinate axis X- rotated counterclockwise by -π (rad)
Set Y (Fig. 7(C)).
5π/4〈θ〈7π/4のとき、x’−y’の双軸をθ
−3π/ 2 (rad)だけ反時計回りに回転させた
座標軸X−Yを設定する(第7図(d))。When 5π/4〈θ〈7π/4, the biaxes of x'-y' are θ
Set the coordinate axis X-Y rotated counterclockwise by -3π/2 (rad) (FIG. 7(d)).
e0文字枠の作成(ステップ515)
前記第1の実施例の「c0文字枠の作成」と同じ処理を
行う。Creation of e0 character frame (step 515) The same process as "creation of c0 character frame" in the first embodiment is performed.
f1作図方向の決定(ステップ816)前記第1の実施
例の「d0作図方向の決定」と同じ処理を行う。Determination of f1 drawing direction (step 816) The same process as "determination of d0 drawing direction" in the first embodiment is performed.
g6文字列の作成(ステップ517)
前記第1の実施例の「e1文字列の作成」と同じ処理を
行う。Creation of g6 character string (step 517) The same process as "creation of e1 character string" in the first embodiment is performed.
h0文字サイズの決定(ステップ818)前記第]の実
施例のrf、文字サイズの決定。Determination of h0 character size (step 818) Determination of the rf and character size of the above embodiment.
と同じ処理を行う。Perform the same processing as .
i0作図(ステップ519) 耐記第1の実施例の「g0作作図と同じ処理(行う。i0 drawing (step 519) The same process as ``g0 drawing'' in the first embodiment is carried out.
このようにして作図された本実施例の作図結tを第22
図fan、 i’b)に示す。The drawing conclusion t of this example drawn in this way is the 22nd
Figure fan, i'b).
以上のように、本実施例においても前記第1Q実施例と
同様の効果が得られる。As described above, the same effects as in the first Q embodiment can be obtained in this embodiment as well.
[発明の効果]
以上のように、この発明の請求項1又は2記歳の方式に
よれば、囲枠の大きさに応じて文字サイズが適宜決定さ
れ、また、囲枠の形状に応じて充適な方向に作図方向が
決定され、はぼ囲枠の中に文字列データが挿入される。[Effect of the invention] As described above, according to the method of claim 1 or 2 of the present invention, the font size is appropriately determined according to the size of the surrounding frame, and the font size is determined appropriately according to the shape of the surrounding frame. The drawing direction is determined to be an appropriate direction, and the character string data is inserted into the box.
従って、このような方式をソフトプログラム化すること
により文字列データの挿入が自動化される。すなわち、
文字列データ挿入の自動化に好ましく適用でき、これに
より、その指示操作を簡単化でき、利便性を向上できる
。Therefore, by converting such a method into a software program, the insertion of character string data can be automated. That is,
It can be preferably applied to automation of character string data insertion, thereby simplifying the instruction operation and improving convenience.
第1図はこの発明の第1の実施例を示すフローチャート
、第2図〜第4図はこの発明の前提となるもの示す概略
図、第5図〜第16図は第1の実施例の作用、効果を示
す概略図、第17図はこの発明の第2の実施例を示すフ
ローチャート、第18図〜第22図は第2の実施例の作
用、効果を示す概略図、第23図はコンピュータの図形
表示例を示す斜視図である。
Slは室枠の中の広さの判断(囲枠内広さ判断処理)、
S2. S14は座標変換(座標変換処理)、S3.
S15は文字枠の作成(文字枠作成処理)、S4. S
16は作図方向の決定(作図方向決定処理)、S5.S
17は文字列の作成(文字列作成処理)、S6. S1
8は文字サイズの決定(文字サイズ決定処理)、S7.
S19は作図(作図処理)、Sllはベクトルの書換
え(ベクトル書換え処理)、512は凹の除去(凹み除
去処理)
3は仮室枠の決定
(仮囲枠決定処
理)Fig. 1 is a flowchart showing the first embodiment of this invention, Figs. 2 to 4 are schematic diagrams showing the premise of this invention, and Figs. 5 to 16 are operation of the first embodiment. , a schematic diagram showing the effects, FIG. 17 is a flowchart showing the second embodiment of the invention, FIGS. 18 to 22 are schematic diagrams showing the action and effects of the second embodiment, and FIG. 23 is a computer FIG. 3 is a perspective view showing an example of graphical display. Sl is the judgment of the size inside the room frame (processing to judge the size within the surrounding frame);
S2. S14 is coordinate transformation (coordinate transformation processing), S3.
S15 creates a character frame (character frame creation process), S4. S
16 is the determination of the drawing direction (drawing direction determination process), S5. S
17 is character string creation (character string creation process), S6. S1
8 is character size determination (character size determination processing), S7.
S19 is drawing (drawing processing), Sll is vector rewriting (vector rewriting processing), 512 is recess removal (dent removal processing), and 3 is temporary room frame determination (temporary surrounding frame determination processing).
Claims (2)
上において、不定形な囲枠データ上に文字列データを挿
入する方式であって、 囲枠内で最も広い部分を判断し、その中心点を求める囲
枠内広さ判断処理と、この中心点を通る直線のうち囲枠
との交点間の距離が最も長い直線と平行及び垂直に新た
な座標軸を設定する座標変換処理と、囲枠に外接して各
辺が上記新たな各座標軸に平行な最小の長方形を求め、
この外接長方形の各辺に接する所定幅部分のうち囲枠と
の重なりが少ない部分を削除し、これを各辺が囲枠内に
含まれるようになるまで繰り返すことにより文字列を作
図する文字枠を生成する文字枠作成処理と、文字列の作
図方向を上記文字枠が縦長のときは縦とし、横長のとき
は横とする作図方向決定処理と、文字列データに含まれ
る分割可能情報と上記文字枠の縦横比に基づき文字列の
最適な並びを作成する文字列作成処理と、作成された文
字列が上記文字枠に入るように文字サイズを決定する文
字サイズ決定処理と、文字枠を上記作成された文字列の
行数に等しく分割して、各分割部分の中心に各行の中心
の文字がくるように作図する作図処理とを有することを
特徴とする文字列挿入方式。(1) A method of inserting character string data into irregularly shaped frame data on the coordinates of graphic data handled by computers, etc., which determines the widest part of the frame and finds its center point. A process to determine the area within the enclosure, a coordinate transformation process to set new coordinate axes parallel and perpendicular to the line with the longest distance between the intersections with the enclosure out of the straight lines passing through this center point, and Find the smallest rectangle whose sides are parallel to each new coordinate axis,
A character frame in which a character string is constructed by deleting parts of a predetermined width that touch each side of this circumscribed rectangle that have little overlap with the surrounding frame, and repeating this process until each side is included within the surrounding frame. A character frame creation process that generates a character frame, a drawing direction determination process that sets the character string's drawing direction vertically when the character frame is vertically long, and horizontally when the character frame is horizontally long, and the splittable information included in the character string data and the above. A character string creation process that creates an optimal arrangement of character strings based on the aspect ratio of the character frame, a character size determination process that determines the character size so that the created character string fits in the character frame, and A character string insertion method comprising: dividing a created character string into equal numbers of lines, and drawing the character string so that the center character of each line is placed in the center of each divided portion.
上において、不定形な囲枠データ上に文字列データを挿
入する方式であつて、 囲枠データを構成するベクトルの向きを所定回りに書換
えるベクトル書換え処理と、書換えられた各ベクトルの
関係を調べることにより囲枠の凹凸を調べて凹みを除去
する凹み除去処理と、この凹み除去処理を所定の条件が
満たされたときに停止して残った部分を仮囲枠とする仮
囲枠決定処理と、この仮囲枠を構成するベクトルのうち
一番長いものと平行及び垂直に新たな座標軸を設定する
座標変換処理と、仮囲枠に外接して各辺が上記新たな各
座標軸に平行な最小の長方形を求め、この外接長方形の
各辺に接する所定幅部分のうち仮囲枠との重なりが少な
い部分を削除し、これを各辺が仮囲枠内に含まれるよう
になるまで繰り返すことにより文字列を作図する文字枠
を生成する文字枠作成処理と、文字列の作図方向を上記
文字枠が縦長のときは縦とし、横長のときは横とする作
図方向決定処理と、文字列データに含まれる分割可能情
報と上記文字枠の縦横比に基づき文字列の最適な並びを
作成する文字列作成処理と、作成された文字列が上記文
字枠に入るように文字サイズを決定する文字サイズ決定
処理と、文字枠を上記作成された文字列の行数に等しく
分割して、各分割部分の中心に各行の中心の文字がくる
ように作図する作図処理とを有することを特徴とする文
字列挿入方式。(2) A method of inserting character string data into irregularly shaped frame data on the coordinates of graphic data handled by a computer, etc., which rewrites the direction of the vectors making up the frame data in a predetermined direction. The rewriting process, the dent removal process that examines the unevenness of the surrounding frame and removes the dents by examining the relationship between each rewritten vector, and the dent removal process that stops when a predetermined condition is met and removes the remaining dents. A temporary enclosing frame determination process that makes the part a temporary enclosing frame, a coordinate conversion process that sets new coordinate axes parallel and perpendicular to the longest vector of the vectors that make up this temporary enclosing frame, and Find the smallest rectangle whose sides are parallel to each of the new coordinate axes, delete the part of the predetermined width that touches each side of this circumscribed rectangle that has little overlap with the temporary enclosing frame, and A character frame creation process that generates a character frame for drawing a character string by repeating it until it is included in the surrounding frame, and a character string drawing direction that is vertical if the character frame is vertically long, and vertically if it is horizontally long. A process to determine the drawing direction to be horizontal, a process to create a character string to create an optimal arrangement of character strings based on the divisibility information included in the character string data and the aspect ratio of the character frame, and a process in which the created character string is A character size determination process that determines the character size so that it fits in the frame, and a character frame that is divided into equal numbers of lines of the character string created above, and drawn so that the center character of each line is in the center of each divided part. A character string insertion method characterized by having a drawing process.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2127770A JP2558925B2 (en) | 1990-05-17 | 1990-05-17 | Character string insertion method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2127770A JP2558925B2 (en) | 1990-05-17 | 1990-05-17 | Character string insertion method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0423081A true JPH0423081A (en) | 1992-01-27 |
| JP2558925B2 JP2558925B2 (en) | 1996-11-27 |
Family
ID=14968265
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2127770A Expired - Fee Related JP2558925B2 (en) | 1990-05-17 | 1990-05-17 | Character string insertion method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2558925B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003263101A (en) * | 2002-03-08 | 2003-09-19 | Hitachi Information Systems Ltd | How to place lot number strings |
-
1990
- 1990-05-17 JP JP2127770A patent/JP2558925B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003263101A (en) * | 2002-03-08 | 2003-09-19 | Hitachi Information Systems Ltd | How to place lot number strings |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2558925B2 (en) | 1996-11-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3110837B2 (en) | Map figure data management method | |
| US4967376A (en) | Method for displaying characters and/or figures in a computer graphics and apparatus thereof | |
| US6973642B2 (en) | Multi-dimensional programming device and multi-dimensional programming method | |
| JPH0423081A (en) | Character string inserting system | |
| JPH06176122A (en) | Graphic editing device | |
| JPH0423080A (en) | Character string inserting system | |
| US4829292A (en) | Method for displaying box cursors | |
| JPS61131171A (en) | Graphic element selecting device | |
| JPS63155260A (en) | How to edit tables using a computer | |
| JP3006988B2 (en) | Spreadsheet apparatus and data management method for spreadsheet apparatus | |
| JPS5850039A (en) | List output method | |
| JPH0439712B2 (en) | ||
| JPS6095490A (en) | Drawing pattern filling circuit | |
| JPH04247587A (en) | Graphic display device | |
| JPH0658690B2 (en) | Drawing method | |
| JPS63240682A (en) | Clipping processing system for graphic display | |
| JPH08249481A (en) | Drawing processing equipment | |
| JPH01155481A (en) | Three-dimensional shape display device | |
| JPH028960A (en) | Method for extracting and processing common part in two polygons | |
| JPH02298989A (en) | Multiwindow controller for crt screen | |
| JPS6368985A (en) | Face painting system | |
| JPS58146982A (en) | Device for editing document | |
| JPH10254421A (en) | Color selection method | |
| JPH06231225A (en) | Three-dimensional graphic plotting device | |
| JPH04277863A (en) | Method for displaying table for graphic display device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080905 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080905 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090905 Year of fee payment: 13 |
|
| LAPS | Cancellation because of no payment of annual fees |