JPH08184952A - Plate composing processor - Google Patents
Plate composing processorInfo
- Publication number
- JPH08184952A JPH08184952A JP33908794A JP33908794A JPH08184952A JP H08184952 A JPH08184952 A JP H08184952A JP 33908794 A JP33908794 A JP 33908794A JP 33908794 A JP33908794 A JP 33908794A JP H08184952 A JPH08184952 A JP H08184952A
- Authority
- JP
- Japan
- Prior art keywords
- point
- character
- font data
- arrangement
- color density
- 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
- Preparing Plates And Mask In Photomechanical Process (AREA)
- Processing Or Creating Images (AREA)
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、デスク・トップ・パブ
リッシング(DTP)等で構成される組版処理装置に係
り、特に、テキストデータを構成する各文字を遠近感を
持たせて配置して、組版処理を行なう組版処理装置に関
する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a typesetting device such as desk top publishing (DTP), and in particular, arranging characters forming text data with a sense of perspective. The present invention relates to a typesetting processing device that performs typesetting processing.
【0002】[0002]
【従来の技術】この種の組版処理装置は、与えられた文
字列(基本的に各文字に対応する文字コードで構成され
るテキストデータのファイルとして一般的に扱われる)
に対して指定された組版指示に従って、各文字に対応し
たフォントデータを求めた配置位置に配置されるように
出力(例えば、表示や印刷、フィルム焼き付け等)す
る。2. Description of the Related Art A typesetting device of this type is given a character string (generally treated as a file of text data composed of a character code corresponding to each character).
The font data corresponding to each character is output so as to be arranged at the obtained arrangement position (for example, display, printing, film printing, etc.) in accordance with the specified typesetting instruction.
【0003】なお、フォントとは、同一書体を基にして
作られた、一連の文字(かな、漢字等の文字種以外の英
数字・記号等を含み、以下、「文字」というときには、
特に断らない限り同じ意味に使用する)のセットであっ
て、文字部分をドットで表したドットフォントの他、今
日ではベクトルデータ(アウトラインフォントなど)で
構成されることが多い。A font includes a series of characters (alphanumeric characters / symbols other than character types such as kana and kanji) created based on the same typeface.
Unless otherwise noted, they have the same meaning) and are a set of dot fonts that represent characters, and today they are often composed of vector data (outline fonts, etc.).
【0004】また、書体とは、一連の文字の1セットに
対し、印刷や表示のために、美観等のコンセプトに基づ
いて統一的に施された意匠デザインをいい、例えば、明
朝体やイタリック体、ゴチック体等が知られており、フ
ォントデータとはそのように表示・出力される文字その
もののデータである。A typeface means a design design in which a set of a series of characters is uniformly applied for printing or display based on a concept such as aesthetics. For example, Mincho typeface or italic typeface. The body, the Gothic body, etc. are known, and the font data is the data of the characters themselves that are displayed and output as such.
【0005】ここで、そのフォントデータの構成を図5
9に示す模式図を参照して定義する。図59では、文字
の「大」の構成要素を示している。文字の字体形状は、
文字の寸法を示す矩形状の枠である『仮想ボディ』IB
に収められ、この仮想ボディIBの横方向の長さXを
『文字幅』とし、縦方向の長さYを『文字高さ』とす
る。一般的には、図59(a)に示すように、文字幅X
と文字高さYとは同じ値、すなわち、仮想ボディIBは
正方形に構成されている。Here, the structure of the font data is shown in FIG.
It is defined with reference to the schematic diagram shown in FIG. In FIG. 59, the character “large” component is shown. The font shape of the character is
"Virtual body" IB, which is a rectangular frame that shows the size of characters
The length X in the horizontal direction of the virtual body IB is defined as "character width", and the length Y in the vertical direction is defined as "character height". Generally, as shown in FIG. 59 (a), the character width X
And the character height Y have the same value, that is, the virtual body IB has a square shape.
【0006】仮想ボディIBの内側には、適宜の位置に
文字自体の字体形状を示す『字面』Fが配置され、この
字面Fは、点の集まりからなるドットデータや数学的に
形状を示すベクトルデータにより構成されている。Inside the virtual body IB, a "character surface" F indicating the character shape of the character itself is arranged at an appropriate position. This character surface F is dot data consisting of a collection of points or a vector mathematically indicating the shape. It is composed of data.
【0007】また、仮想ボディIBが正方形であるフォ
ントデータに対して、図59(b)に示すように、文字
高さYを「100%」とした平体率hp(%)が指定さ
れると、仮想ボディIBの文字高さYが(100−h
p)%に圧縮された横長の字面Fが形成され、同様に、
図59(c)に示すように、文字幅Xを「100%」と
した長体率lp(%)が指定されると、仮想ボディIB
の文字幅Xが(100−lp)%に圧縮された縦長の字
面Fが形成される。Also, for font data whose virtual body IB is a square, as shown in FIG. 59 (b), the flatness rate hp (%) with the character height Y set to "100%" is designated. And the character height Y of the virtual body IB is (100-h
p)% compressed laterally long face F is formed, likewise
As shown in FIG. 59 (c), when the long body ratio lp (%) with the character width X set to "100%" is specified, the virtual body IB is specified.
The vertically long character face F in which the character width X of is compressed to (100-lp)% is formed.
【0008】ここに、上記のように定義した構成を有す
る1文字の文字データを、この明細書では、特に断らな
い限りフォントデータと定義する。そして、本明細書に
おいては、文字ないしは変形文字を所要に配置すること
が基本であり、説明を分かり易くするために「文字を配
置する」として記述するが、これは即ちデータ処理とし
ては「フォントデータを配置する」ことであり、必要に
応じて表現を変えて記述する。In this specification, character data of one character having the above-defined structure is defined as font data unless otherwise specified. In this specification, basically, it is described that characters or modified characters are arranged as required, and it is described as "arrange characters" for the sake of easy understanding of the description. This is to "allocate data", and the description is changed as necessary.
【0009】さて、上記の文字列を配置する際の基準に
なるものが必要であり、ここでは、仮想ボディIBの左
下をその基準点Pとする。What is needed as a reference when arranging the above character string is required. Here, the lower left of the virtual body IB is set as the reference point P.
【0010】すなわち、組版処理装置では、各文字のフ
ォントデータをその基準点Pを基準にして、求めた配置
位置になるように出力している。That is, in the typesetting device, the font data of each character is output so as to be at the determined arrangement position with reference to the reference point P.
【0011】ところで、近年、例えば、流通業者が頒布
するチラシなどに見られるように、見る者の注意を引き
付けるために、出力時の文字をデザイン的に変形配置し
たいという要望が増えつつあり、そのための機能を組版
処理装置に備えることが望まれている。By the way, in recent years, for example, as seen in leaflets distributed by distributors, there is an increasing demand for transforming and arranging characters at the time of output in order to attract the viewer's attention. It is desired that the typesetting processing device be provided with the above function.
【0012】従来、例えば、文字を円弧上に配置する
等、平面的に配置する機能を備えた組版装置は徐々に提
供されつつあるが、文字が視覚的な奥行きを持つように
変形配置する(以下、単に「遠近配置」と記す)機能を
備えたものは少ない。Conventionally, a typesetting device having a function of arranging a character in a plane such as arranging the character on an arc is gradually provided, but the character is deformed and arranged so as to have a visual depth ( In the following, there are few equipped with a function (simply referred to as “perspective arrangement”).
【0013】従って、従来の装置で、文字を前述のよう
に遠近配置しようとする場合、操作者が、変形処理のた
めのデータ処理を各フォントデータ毎に行い、その配置
位置を決めながら編集しなければならず、非常な手間を
要している。Therefore, in the conventional apparatus, when characters are to be arranged in the perspective as described above, the operator performs data processing for transformation processing for each font data, and edits while determining the arrangement position. It has to be done and it takes a lot of work.
【0014】また、そのような遠近配置処理の機能を備
えた従来の組版装置では、図60に示すように、指定さ
れた収束点Qに収束するように、各フォントデータを図
形として台形に変形させている。Further, in the conventional typesetting device having the function of such a perspective arrangement processing, as shown in FIG. 60, each font data is transformed into a trapezoid as a figure so as to converge at a designated convergence point Q. I am letting you.
【0015】[0015]
【発明が解決しようとする課題】しかしながら、このよ
うな構成を有する従来例の場合には、次のような問題が
ある。すなわち、従来装置による文字の遠近配置処理で
は、各文字の字面に関係なく前述のように変形させてい
るので、遠近感がうまく表示されないという問題があ
る。However, the prior art having such a structure has the following problems. That is, in the character perspective processing performed by the conventional apparatus, the perspective is not displayed well because the characters are deformed as described above regardless of the character surface.
【0016】さらに、従来装置では、各フォントデータ
を図形化し、指定の遠近配置になるように一体的に処理
しているので、文字の修正や挿入、削除等に対して柔軟
に対応できないという問題もある。Further, in the conventional apparatus, since each font data is made into a graphic and integrally processed so as to have a designated perspective arrangement, it is not possible to flexibly deal with correction, insertion, deletion, etc. of characters. There is also.
【0017】例えば、図60における”イ”を”い”に
修正する場合、図61(a)に示すように、”い”に対
応するフォントデータFd2’を、変形処理された”
イ”と同じ寸法、形状で作成し、図61(b)に示すよ
うに、そのフォントデータFd2’をフォントデータF
d2と入れ換える必要があるが、修正したい文字に対応
する新たなフォントデータを単独で図形として作成する
必要があり煩雑である。For example, when "a" in FIG. 60 is corrected to "i", the font data Fd2 'corresponding to "i" is transformed as shown in FIG.
61 ", the font data Fd2 'is created with the same size and shape as shown in FIG. 61B.
Although it needs to be replaced with d2, new font data corresponding to the character to be corrected has to be created as a figure, which is complicated.
【0018】また、図60における”イ”と”え”の間
に”う”の文字を挿入する場合、図62(a)に示すよ
うに、”う”のフォントデータFd3を、フォントデー
タFd4と同じ寸法、形状で作成し、図62(b)に示
すように、”イ”と”え”の間に挿入することになる
が、この場合、”え”や”お”の寸法や形状がずれてし
まうので、それぞれ図62(c)のフォントデータFd
5、Fd6と同じ寸法、形状に修正しなければならず、
処理は一層煩雑になる。When the character "U" is inserted between "A" and "E" in FIG. 60, the font data Fd3 of "U" is replaced with the font data Fd4 as shown in FIG. 62 (a). It will be created with the same size and shape as, and will be inserted between "a" and "e" as shown in Fig. 62 (b). In this case, the size and shape of "e" and "o" The font data Fd in FIG.
5, it must be modified to the same size and shape as Fd6,
The processing becomes more complicated.
【0019】さらに、図60における”イ”を削除した
場合、図63に示すように、”お”及び”え”の寸法や
形状がずれてしまうので、これらのフォントデータFd
4、Fd5の寸法や形状を修正しなければならず処理は
煩雑である。Further, when "a" is deleted in FIG. 60, the sizes and shapes of "o" and "e" are displaced as shown in FIG.
4, the size and shape of Fd5 must be corrected, and the process is complicated.
【0020】一方、文字を変形し遠近配置した後、文字
の修正や挿入、削除等を行なう場合には、元の文字列を
所望の文字列に修正し、処理を最初からやり直すことも
できるが、処理を最初からやり直すのはやはり処理効率
が悪い。On the other hand, when the characters are modified and inserted or deleted after the characters are deformed and placed in perspective, the original character string can be corrected to a desired character string and the process can be restarted from the beginning. However, it is still inefficient to restart the process from the beginning.
【0021】本発明は、このような事情に鑑みてなされ
たものであって、字面に基づいた自然な遠近配置を行
い、配置後のフォントデータの修正や挿入、削除等に柔
軟に対応することができる組版処理装置を提供すること
を目的とする。The present invention has been made in view of the above circumstances, and it is possible to flexibly deal with correction, insertion, deletion, etc. of font data after the placement by performing natural perspective placement based on the character plane. An object of the present invention is to provide a typesetting processing device capable of performing the above.
【0022】[0022]
【課題を解決するための手段】本発明は、このような目
的を達成するために、次のような構成をとる。すなわ
ち、請求項1に記載の発明は、与えられたテキストデー
タを構成する各文字に対応する各フォントデータを遠近
配置する文字配置処理を含む組版処理を行ない、組版処
理後の各文字に対応するフォントデータを、予め登録さ
れているフォントから、各文字の文字コードを用いて読
み出し、組版処理後の結果を出力する組版処理装置にお
いて、テキストデータと、前記テキストデータ内の最初
の文字に対応するフォントデータの、出力領域における
配置開始点PS1、PS2と、前記テキストデータを構成す
る各文字に対応する各フォントデータを、前記出力領域
内に遠近配置するときの前記出力領域における収束点P
eとを設定する設定手段と、前記テキストデータ内の所
定の文字に対応するフォントデータの配置開始点Paと
Pbとを結ぶ線分を仮想ボディの一辺とした矩形のフォ
ントデータの寸法を求める寸法特定手段と、前記寸法特
定手段で特定された寸法のフォントデータの仮想ボディ
の一辺を、そのフォントデータの寸法を特定した際の配
置開始点PaとPbとを結ぶ線分に一致させ、かつ、前
記配置開始点PaとPbとを結ぶ線分を挟んで前記収束
点Pe側に、前記フォントデータを仮想的に配置したと
きの、前記点PS1と前記点Peとを結ぶ線分、および前
記点PS2と前記点Peとを結ぶ線分と、前記フォントデ
ータの仮想ボディとの交点をそれぞれ求め、求めた交点
を通過する、前記点PS1と前記点PS2とを結ぶ線分に平
行な線と、前記点PS1と点Peとを結ぶ線分、および前
記点PS2と点Peとを結ぶ線分との各交点(前記仮想的
に配置したフォントデータに対応する所定の文字の次の
文字に対応するフォントデータの配置開始点Pa、P
b)を求める配置開始点特定手段と、前記設定手段で設
定された配置開始点PS1、PS2を最初の文字に対応する
フォントデータの配置開始点Pa、Pbとして前記寸法
特定手段に与えて、前記テキストデータ内の最初の文字
に対応するフォントデータの寸法を求め、求めた最初の
文字の寸法と前記配置開始点PS1、PS2とに基づき、前
記最初の文字に対応するフォントデータの配置位置を求
め、前記配置開始点PS1、PS2と前記最初の文字の寸法
に関するデータを前記配置開始点特定手段に与えて、前
記テキストデータ内の2番目の文字の配置開始点Pa、
Pbを求め、次に、前記求めた2番目の文字の配置開始
点Pa、Pbを前記寸法特定手段に与えて、前記2番目
の文字に対応するフォントデータの寸法を求め、求めた
2番目の文字の寸法と、前記2番目の文字の寸法を求め
た際の配置開始点Pa、Pbとに基づき、前記2番目の
文字に対応するフォントデータの配置位置を求め、前記
2番目の文字の寸法を求めた際の配置開始点Pa、Pb
と前記2番目の文字の寸法に関するデータを前記配置開
始点特定手段に与えて、前記テキストデータ内の3番目
の文字の配置開始点Pa、Pbを求める処理を繰り返
し、前記テキストデータ内の各文字に対応する各フォン
トデータの寸法と、その配置位置を求めるよう制御する
文字配置処理制御手段と、前記テキストデータ内の各文
字に対応する各フォントデータを、各文字の文字コード
を用いて前記フォントから読み出し、読み出した各フォ
ントデータを、前記文字配置処理制御手段で得られた各
フォントデータの寸法と配置位置とに基づき出力する出
力手段と、を備えたものである。The present invention has the following constitution in order to achieve such an object. That is, the invention according to claim 1 performs the typesetting process including the character placement process of placing the font data corresponding to each character forming the given text data in the perspective, and corresponds to each character after the typesetting process. In a typesetting device that reads font data from a font registered in advance using the character code of each character and outputs the result after the typesetting process, it corresponds to the text data and the first character in the text data. Arrangement start points P S1 and P S2 of the font data in the output area and the converging point P in the output area when the font data corresponding to the respective characters forming the text data are arranged in perspective in the output area.
and a setting means for setting e and a dimension for obtaining the size of rectangular font data with a line segment connecting the placement start points Pa and Pb of the font data corresponding to a predetermined character in the text data as one side of the virtual body. The specifying means and one side of the virtual body of the font data of the size specified by the size specifying means are made to coincide with a line segment connecting the arrangement start points Pa and Pb when the size of the font data is specified, and A line segment connecting the point P S1 and the point Pe when the font data is virtually arranged on the side of the convergence point Pe with a line segment connecting the arrangement start points Pa and Pb interposed therebetween, and An intersection between a line segment connecting the point P S2 and the point Pe and an imaginary body of the font data is obtained, and the line segment passing through the obtained intersection is parallel to the line segment connecting the point P S1 and the point P S2. Line and the point Line connecting the S1 and the point Pe, and the intersection of the line segment connecting the the point Pe said point P S2 (font corresponding to the next character in the predetermined character corresponding to the font data placed the virtually Data placement start points Pa and P
The arrangement start point specifying means for obtaining b) and the arrangement start points P S1 , P S2 set by the setting means are given to the dimension specifying means as the arrangement start points Pa, Pb of the font data corresponding to the first character. , The size of the font data corresponding to the first character in the text data is calculated, and the size of the font data corresponding to the first character is calculated based on the calculated size of the first character and the arrangement start points P S1 and P S2 . An arrangement position is obtained, and data regarding the arrangement start points P S1 and P S2 and the size of the first character is given to the arrangement start point specifying means, so that the arrangement start point Pa of the second character in the text data,
Pb is obtained, and then the obtained arrangement starting points Pa and Pb of the second character are given to the dimension specifying means to obtain the dimension of the font data corresponding to the second character. The layout position of the font data corresponding to the second character is calculated based on the size of the character and the layout start points Pa and Pb when the size of the second character is calculated, and the size of the second character is calculated. The placement start points Pa and Pb for obtaining
And the data concerning the dimension of the second character are given to the arrangement start point specifying means, and the arrangement start points Pa and Pb of the third character in the text data are repeated to repeat each character in the text data. The character arrangement processing control means for controlling the size of each font data corresponding to the above and the arrangement position thereof, and each font data corresponding to each character in the text data, using the character code of each character, And output means for outputting each read font data based on the size and arrangement position of each font data obtained by the character arrangement processing control means.
【0023】また、請求項2に記載の発明は、上記請求
項1に記載の組版処理装置において、前記設定手段から
設定された配置開始点PS1とPS2とを結ぶ線分を、前記
出力領域内の座標軸に平行あるいは一致させるように、
前記点PS1(または前記点PS2)を中心として、前記収
束点Peと前記点PS2(または前記点PS1)とを所定角
度回転させた点Pe’と点PS2’(または点PS1’)と
の座標を求める回転処理手段を備えるとともに、前記寸
法特定手段、前記配置開始点特定手段、前記文字配置処
理制御手段では、前記収束点Peと前記点PS2(または
前記点PS1)を、回転処理手段で求めた点Pe’と点P
S2’(または点PS1’)として、前記テキストデータ内
の各文字に対応する各フォントデータの寸法と、前記点
PS1(または前記点PS2)と前記点Pe’と前記点
PS2’(または前記点PS1’)とに対する、各フォント
データの配置位置を求め、また、前記求めた点PS1(ま
たは点PS2)と点Pe’と点PS2’(または点PS1’)
とに対する、各フォントデータの配置位置を、前記所定
角度分、逆回転させて前記配置開始点PS1、PS2と前記
収束点Peに対する、各フォントデータの配置位置を求
める逆回転手段を備え、前記出力手段では、前記フォン
トから読み出した各フォントデータを、前記求めた寸法
と、前記配置開始点PS1、PS2と前記収束点Peに対す
る、各フォントデータの配置位置に基づき出力するよう
に構成したものである。The invention according to claim 2 is the typesetting apparatus according to claim 1, wherein the line segment connecting the arrangement start points P S1 and P S2 set by the setting means is output as the output. So that it is parallel or coincident with the coordinate axes in the area,
A point Pe ′ and a point P S2 ′ (or a point P S2 ′ (or a point P S2 ′) obtained by rotating the convergence point Pe and the point P S2 (or the point P S1 ) by a predetermined angle around the point P S1 (or the point P S2 ). S1 ') is provided with rotation processing means, and in the dimension specifying means, the arrangement start point specifying means, and the character arrangement processing control means, the convergence point Pe and the point P S2 (or the point P S1 ) Is the point Pe ′ and the point P determined by the rotation processing means.
As S2 '(or point P S1 '), the size of each font data corresponding to each character in the text data, the point P S1 (or the point P S2 ), the point Pe ', and the point P S2 ' (Or the above-mentioned point P S1 '), the arrangement position of each font data is obtained, and the obtained point P S1 (or the point P S2 ), the point Pe', and the point P S2 '(or the point P S1 ')
And a reverse rotation unit that reversely rotates the arrangement position of each font data by the predetermined angle and obtains the arrangement position of each font data with respect to the arrangement start points P S1 , P S2 and the convergence point Pe, The output means outputs each font data read from the font based on the obtained size and the arrangement position of each font data with respect to the arrangement start points P S1 , P S2 and the convergence point Pe. It was done.
【0024】また、請求項3に記載の発明は、上記請求
項1または請求項2のいずれかに記載の組版処理装置に
おいて、前記テキストデータの最初の文字に対応するフ
ォントデータの色濃度(開始色濃度)と前記テキストデ
ータの最後の文字に対応するフォントデータの色濃度
(終了色濃度)とを設定する色濃度設定手段と、前記開
始色濃度と前記終了色濃度との変化量と、前記テキスト
データの全文字数とに基づき、前記テキストデータの各
文字に対応する各フォントデータに対する色濃度の変化
率を求め、前記テキストデータ内における各文字の順番
と、前記求めた色濃度の変化率とに基づき、前記テキス
トデータの各文字に対応するフォントデータに対する、
前記開始色濃度からの色濃度の変化量を求め、前記求め
た開始色濃度からの色濃度の各変化量を前記開始色濃度
に加算して、前記テキストデータの各文字に対応するフ
ォントデータの色濃度を求める色濃度特定手段と、を備
え、前記出力手段では、前記テキストデータ内の各文字
に対応する各フォントデータを、前記色濃度特定手段で
特定した各色濃度で出力するように構成したものであ
る。According to a third aspect of the present invention, in the typesetting device according to the first or second aspect, the color density of the font data corresponding to the first character of the text data (start Color density) and a color density (end color density) of the font data corresponding to the last character of the text data, a change amount between the start color density and the end color density, and Based on the total number of characters in the text data, the rate of change of color density for each font data corresponding to each character of the text data is obtained, the order of each character in the text data, and the obtained rate of change of color density. Based on the font data corresponding to each character of the text data,
The amount of change in color density from the starting color density is obtained, and each amount of change in color density from the obtained starting color density is added to the starting color density to obtain the font data corresponding to each character of the text data. And a color density specifying unit for obtaining a color density, wherein the output unit outputs each font data corresponding to each character in the text data with each color density specified by the color density specifying unit. It is a thing.
【0025】[0025]
【作用】請求項1に記載の発明の作用は次のとおりであ
る。まず、設定手段から、テキストデータと、テキスト
データ内の最初の文字に対応するフォントデータの、出
力領域における配置開始点PS1、PS2と、テキストデー
タを構成する各文字に対応する各フォントデータを、出
力領域内に遠近配置するときの、出力領域における収束
点Peとが設定される。The operation of the invention described in claim 1 is as follows. First, from the setting means, the arrangement start points P S1 and P S2 of the text data and the font data corresponding to the first character in the text data in the output area, and the font data corresponding to each character forming the text data are set. Is set to a perspective point in the output area, a convergence point Pe in the output area is set.
【0026】次に、文字配置処理制御手段は、まず、設
定手段から設定された配置開始点PS1、PS2を、テキス
トデータ内の最初の文字に対応するフォントデータの配
置開始点Pa、Pbとして寸法特定手段に与えて、テキ
ストデータ内の最初の文字に対応するフォントデータの
寸法を求め、求めた最初の文字の寸法と配置開始点
PS1、PS2とに基づき、最初の文字に対応するフォント
データの配置位置を求め、配置開始点PS1、PS2と最初
の文字の寸法に関するデータを配置開始点特定手段に与
えて、テキストデータ内の2番目の文字の配置開始点P
a、Pbを求める。Next, the character arrangement processing control means first sets the arrangement start points P S1 and P S2 set by the setting means to the arrangement start points Pa and Pb of the font data corresponding to the first character in the text data. To the dimension specifying means to obtain the dimension of the font data corresponding to the first character in the text data, and to correspond to the first character based on the obtained dimension of the first character and the placement start points P S1 and P S2. The arrangement start point P S1 , P S2 and the data regarding the size of the first character are given to the arrangement start point specifying means, and the arrangement start point P of the second character in the text data is obtained.
Find a and Pb.
【0027】寸法特定手段では、与えられた配置開始点
PaとPbとを結ぶ線分を仮想ボディの一辺とした矩形
のフォントデータの寸法を求める。The dimension specifying means obtains the dimension of rectangular font data in which a line segment connecting the given placement start points Pa and Pb is one side of the virtual body.
【0028】また、配置開始点特定手段では、出力する
フォントデータを、PS1とPeとを結ぶ線分と、PS2と
Peとを結ぶ線分に沿って配置するように、寸法特定手
段で寸法が特定されたフォントデータの次に配置するフ
ォントデータの配置開始点Pa、Pbを求める。Further, the arrangement start point specifying means is arranged so that the font data to be output is arranged along the line segment connecting P S1 and Pe and the line segment connecting P S2 and Pe. Arrangement start points Pa and Pb of the font data to be arranged next to the font data having the specified dimensions are obtained.
【0029】文字配置処理制御手段は、次に、上記で求
めた2番目の文字の配置開始点Pa、Pbを寸法特定手
段に与えて、2番目の文字に対応するフォントデータの
寸法を求め、求めた2番目の文字の寸法と、2番目の文
字の寸法を求めた際の配置開始点Pa、Pbとに基づ
き、2番目の文字に対応するフォントデータの配置位置
を求め、2番目の文字の寸法を求めた際の配置開始点P
a、Pbと2番目の文字の寸法に関するデータを配置開
始点特定手段に与えて、テキストデータ内の3番目の文
字の配置開始点Pa、Pbを求める処理を繰り返し、テ
キストデータ内の各文字に対応する各フォントデータの
寸法と、その配置位置を順次求める。The character arrangement processing control means then gives the arrangement start points Pa and Pb of the second character obtained above to the dimension specifying means to obtain the size of the font data corresponding to the second character, The layout position of the font data corresponding to the second character is calculated based on the calculated second character size and the layout start points Pa and Pb when the second character size is calculated. Placement start point P when the dimension of
a, Pb and data concerning the dimensions of the second character are given to the arrangement start point specifying means, and the processing for obtaining the arrangement start points Pa, Pb of the third character in the text data is repeated, and for each character in the text data. The size of each corresponding font data and its layout position are sequentially obtained.
【0030】そして、出力手段は、テキストデータ内の
各文字に対応する各フォントデータを、各文字の文字コ
ードを用いて、予め登録されているフォントから読み出
し、読み出した各フォントデータを、文字配置処理制御
手段で得られた各フォントデータの寸法と配置位置とに
基づき出力する。Then, the output means reads each font data corresponding to each character in the text data from the font registered in advance using the character code of each character, and arranges each read font data in the character arrangement. It is output based on the size and the arrangement position of each font data obtained by the processing control means.
【0031】出力された結果は、PS1とPeとを結ぶ線
分と、PS2とPeとを結ぶ線分に沿って、矩形のフォン
トデータが徐々に小さくなるように、すなわち、テキス
トデータを構成する各文字に対応する各フォントデータ
が視覚的な奥行きを持つように遠近配置されたものとな
る。The output result is such that the rectangular font data is gradually reduced along the line segment connecting P S1 and Pe and the line segment connecting P S2 and Pe, that is, the text data is converted. The font data corresponding to each of the constituent characters are arranged in perspective so as to have a visual depth.
【0032】つまり、本発明では、各フォントデータを
図形化することなく、また、出力される各フォントデー
タは矩形であるので、字面に基づいた自然な遠近配置が
可能となる。In other words, according to the present invention, since each font data to be output is a rectangle without converting each font data into a graphic, natural perspective arrangement based on the character surface is possible.
【0033】さらに、各フォントデータは、遠近配置す
るように、それぞれの寸法と配置位置が求められてお
り、文字コードを用いてフォントデータを出力してい
る。従って、フォントデータの修正を行なうときには、
修正するフォントデータに対応する文字の文字コードを
修正して、そのフォントデータを出力してやることによ
り、修正前の寸法、配置位置に修正後の文字に対応する
フォントデータが出力される。また、フォントデータの
挿入や削除についても、フォントデータに対応する文字
の文字コードをシフトさせてフォントデータを再出力す
ることで対応することができる。従って、出力結果に対
するフォトデータの修正や挿入、削除等に柔軟に対応す
ることができる。Furthermore, each font data is required to have its respective dimensions and layout positions so that it can be arranged in a perspective view, and the font data is output using a character code. Therefore, when modifying the font data,
By correcting the character code of the character corresponding to the font data to be corrected and outputting the font data, the font data corresponding to the corrected character is output in the dimension and arrangement position before the correction. Also, insertion and deletion of font data can be handled by shifting the character code of the character corresponding to the font data and re-outputting the font data. Therefore, it is possible to flexibly deal with correction, insertion, deletion, etc. of the photo data with respect to the output result.
【0034】また、請求項2に記載の発明の作用は次の
とおりである。回転処理手段は、設定された配置開始点
PS1とPS2とを結ぶ線分を、出力領域(x−y座標系)
の座標軸(x軸またはy軸)に平行あるいは一致させる
ように、点PS1(または点PS2)を中心として、収束点
Peと点PS2(または点PS1)とを所定角度回転させた
点Pe’と点PS2’(または点PS1’)との座標を求め
る。The operation of the invention described in claim 2 is as follows. The rotation processing means outputs a line segment connecting the set placement start points P S1 and P S2 to the output area (xy coordinate system).
The converging point Pe and the point P S2 (or the point P S1 ) are rotated by a predetermined angle about the point P S1 (or the point P S2 ) so as to be parallel or coincident with the coordinate axis (x-axis or y-axis) of. The coordinates of the point Pe 'and the point P S2 ' (or the point P S1 ') are obtained.
【0035】寸法特定手段、配置開始点特定手段、文字
配置処理制御手段では、設定された収束点Peと点PS2
(または点PS1)を、回転処理手段で求めた点Pe’と
点PS2’(または点PS1’)として、テキストデータ内
の各文字に対応する各フォントデータの寸法と、その配
置位置を求める。このとき、点PS1(または点PS2)と
点PS2’(または点PS1’)とは、x−y直交座標系の
x軸またはy軸に平行あるいは一致しているので、各フ
ォントデータの寸法や配置位置の算出が容易になる。し
かし、求められた各フォントデータの配置位置は、点P
S1(または点PS2)と点Pe’と点PS2’(または点P
S1’)とに対するものである。In the dimension specifying means, the arrangement start point specifying means, and the character arrangement processing control means, the set convergence point Pe and point P S2 are set.
(Or point P S1 ) as the point Pe ′ and the point P S2 ′ (or point P S1 ′) obtained by the rotation processing means, the size of each font data corresponding to each character in the text data, and the arrangement position thereof. Ask for. At this time, since the point P S1 (or the point P S2 ) and the point P S2 '(or the point P S1 ') are parallel or coincident with the x-axis or the y-axis of the xy Cartesian coordinate system, each font It becomes easy to calculate the data size and layout position. However, the obtained arrangement position of each font data is the point P.
S1 (or point P S2 ) and point Pe 'and point P S2 ' (or point P
S1 ') and against.
【0036】従って、逆回転処理手段は、求めた点PS1
(または点PS2)と点Pe’と点PS2’(または点
PS1’)とに対する、各フォントデータの配置位置を、
回転処理手段で点Pe’と点PS2’(または点PS1’)
を得た際の回転角度分、逆回転させて、設定された配置
開始点PS1、PS2と収束点Peに対する、各フォントデ
ータの配置位置を求め、出力手段で、フォントから読み
出した各フォントデータを、設定された配置開始点
PS1、PS2と収束点Peに対する、各フォントデータの
配置位置と求めた寸法とに基づき出力する。これによ
り、設定された配置開始位置PS1、PS2から収束点Pe
に収束するように各フォントデータが遠近配置されて出
力される。Therefore, the reverse rotation processing means determines the obtained point P S1.
(Or point P S2 ), point Pe ′, and point P S2 ′ (or point P S1 ′)
Point Pe 'and point P S2 ' (or point P S1 ') by the rotation processing means
The font position read out from the font is read out by the output means by finding the placement position of each font data with respect to the set placement start points P S1 , P S2 and the convergence point Pe by performing the reverse rotation by the rotation angle when The data is output based on the arrangement position of each font data and the obtained size with respect to the set arrangement start points P S1 and P S2 and the convergence point Pe. As a result, from the set placement start positions P S1 and P S2 to the convergence point Pe
Each font data is output in a perspective arrangement so as to converge to.
【0037】また、請求項3に記載の発明の作用は次の
とおりである。色濃度設定手段からは、与えられたテキ
ストデータの最初の文字に対応するフォントデータの色
濃度(開始色濃度)とテキストデータの最後の文字に対
応するフォントデータの色濃度(終了色濃度)とが設定
される。The operation of the invention described in claim 3 is as follows. From the color density setting means, the color density (start color density) of the font data corresponding to the first character of the given text data and the color density (end color density) of the font data corresponding to the last character of the text data are given. Is set.
【0038】色濃度特定手段では、開始色濃度から終了
色濃度へ、徐々に(直線的に)各文字に対応する各フォ
ントデータの色濃度が変化するように、各フォントデー
タの色濃度を求める。The color density specifying means calculates the color density of each font data so that the color density of each font data corresponding to each character gradually (linearly) changes from the start color density to the end color density. .
【0039】出力手段は、テキストデータ内の各文字に
対応する各フォントデータを、各文字の文字コードを用
いて予め登録されているフォントから読み出し、読み出
した各フォントデータを、求めた寸法と配置位置と、色
濃度特定手段で特定した各色濃度とに基づき出力する。The output means reads each font data corresponding to each character in the text data from the font registered in advance using the character code of each character, and the read font data is obtained with the obtained size and arrangement. Output is performed based on the position and each color density specified by the color density specifying means.
【0040】[0040]
【実施例】以下、図面を参照して本発明の一実施例を説
明する。図1は、本発明の第一実施例に係る組版処理装
置の内部構成を示すブロック図である。この第一実施例
は、主に、請求項1と、請求項1に従属する請求項3と
に記載された発明に対応した実施例である。An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the internal configuration of a typesetting processing apparatus according to the first embodiment of the present invention. The first embodiment is an embodiment mainly corresponding to the invention described in claim 1 and claim 3 subordinate to claim 1.
【0041】図中、符号1は組版された文字列の最終デ
ータを演算作成する文字配置処理部を示す。In the figure, reference numeral 1 indicates a character arrangement processing unit for arithmetically creating final data of a typeset character string.
【0042】テキストデータバッファ2には、組版処理
対象のテキストデータを構成する各文字の文字コード
が、文字列の順に記憶される。テキストデータは、入力
部9からI/Oインターフェース10を介して入力制御
部11に取り込まれ、それぞれ文字コードとして順次テ
キストデータバッファ2に記憶される。The text data buffer 2 stores the character codes of the respective characters forming the text data to be formatted, in the order of the character strings. The text data is fetched from the input unit 9 into the input control unit 11 via the I / O interface 10 and sequentially stored in the text data buffer 2 as a character code.
【0043】また、組版に関する指示も入力部9から入
力され、I/Oインターフェース10、入力制御部11
を介して組版指示バッファ3に記憶される。なお、本実
施例では、この組版指示の各要素は、組方向と、各フォ
ントデータの長平体率と、文字列の配置開始位置と、遠
近配置するときの収束点(後述する)位置と、最初の文
字の色濃度(開始色濃度)と、最後の文字の色濃度(終
了色濃度)のそれぞれを少なくとも含むものである。Further, an instruction regarding the typesetting is also inputted from the input section 9, and the I / O interface 10 and the input control section 11 are inputted.
It is stored in the typesetting instruction buffer 3 via. In the present embodiment, each element of the typesetting instruction includes a typesetting direction, a long flat rate of each font data, a character string arrangement start position, a convergence point (described later) position when arranging in perspective, and It includes at least the color density of the first character (start color density) and the color density of the last character (end color density).
【0044】入力部9は、例えば、マウス等のポインテ
ィングデバイスやキーボード(K/B)など直接操作す
るものや、既に作成された文字列ファイル(文章ファイ
ル)や組版指示データファイルからデータを得る場合の
フレキシブルディスクドライバ(FDD)や通信ドライ
バ等の各種の機器が選択的に組み合わされて構成され
る。The input section 9 is for directly operating a pointing device such as a mouse or a keyboard (K / B), or for obtaining data from a character string file (text file) or a typesetting instruction data file that has already been created. Flexible disk driver (FDD), communication driver, and other various devices are selectively combined and configured.
【0045】寸法特定部4は、各文字の配置開始位置デ
ータに基づき、その文字の矩形の仮想ボディの寸法を求
め、文字配置処理部1に与える。The dimension specifying unit 4 obtains the dimensions of the rectangular virtual body of the character based on the layout start position data of each character, and supplies it to the character placement processing unit 1.
【0046】配置開始点特定部5は、遠近配置のための
特定点(図9を用いて後述する点PS1、PS2、Pe)
と、各文字(矩形)のフォントデータの寸法データと、
先の文字の配置位置データとに基づき、次の文字の配置
位置データを求め、文字配置処理部1に与える。The arrangement start point specifying unit 5 specifies points for perspective arrangement (points P S1 , P S2 , Pe described later with reference to FIG. 9).
And the dimension data of the font data of each character (rectangle),
The arrangement position data of the next character is obtained based on the arrangement position data of the preceding character and is given to the character arrangement processing unit 1.
【0047】色濃度特定部6は、開始色濃度と終了色濃
度と、文字列の全文字数とに基づき、各文字に対する色
濃度の変化率を求め、各文字に対応するフォントデータ
の色濃度を演算し、そのデータを文字配置処理部1に与
える。The color density specifying unit 6 obtains the rate of change in color density for each character based on the start color density, the end color density, and the total number of characters in the character string, and determines the color density of the font data corresponding to each character. The data is calculated and the data is given to the character arrangement processing unit 1.
【0048】組版データテーブル7には、文字配置処理
部1により得られた組版された文字列の出力用データが
記憶され、また、組版補助データテーブル8には、既に
遠近配置された文字列に新たな文字を挿入する際の処理
に必要なデータ(補助データ)が記憶されると共に両デ
ータは、磁気ディスク装置等の外部記憶装置18にも記
憶される。これは、それらのデータに基づいて、以後そ
の組版された文字列を随時出力できるように、メモリす
るためである。The typesetting data table 7 stores the output data of the typeset character string obtained by the character placement processing unit 1. The typesetting auxiliary data table 8 stores the character strings that have already been placed in perspective. The data (auxiliary data) necessary for the process of inserting a new character is stored, and both data are also stored in the external storage device 18 such as a magnetic disk device. This is because the formatted character string is stored in the memory so that it can be output as needed based on the data.
【0049】出力制御部12は、組版データテーブル7
に作成されたデータに基づき、フォント格納部13に予
め登録されたフォントデータを読み出し、表示装置14
に表示し、あるいはプリンタ15で印刷や図示しない出
力スキャナによりフィルムへの焼付けを行なう。The output control unit 12 uses the formatted data table 7
The font data registered in advance in the font storage unit 13 is read out based on the data created by the display device 14
Or printed by the printer 15 or printed on the film by an output scanner (not shown).
【0050】図中の制御部16は、装置全体の制御等を
行なう。例えば、制御部16が入力制御部11を制御し
て、テキストデータや組版指示が各バッファ2、3に記
憶されると、文字配置処理部1に文字配置の演算処理を
開始させる指示を与え、組版データテーブル7、組版補
助データテーブル8に所定のデータが作成されたこと
を、文字配置処理部1から通知されると、出力制御部1
2を制御して、組版結果の出力を行う。A control unit 16 in the figure controls the entire apparatus. For example, when the control unit 16 controls the input control unit 11 to store the text data and the typesetting instruction in the buffers 2 and 3, the character arrangement processing unit 1 is instructed to start the character arrangement calculation process. When the character arrangement processing unit 1 notifies that the predetermined data has been created in the typesetting data table 7 and the typesetting auxiliary data table 8, the output control unit 1
2 is controlled to output the formatted result.
【0051】メモリ17は、外部記憶装置18に予め記
憶された処理に必要なデータや、文字配置処理部1、寸
法特定部4、配置開始点特定部5、色濃度特定部6、入
力制御部11、出力制御部12、制御部16が実行する
処理手順(プログラム)を、外部記憶装置18から読み
出して記憶するとともに、処理中のデータの一時記憶等
に使用される。The memory 17 includes data necessary for processing stored in advance in the external storage device 18, the character arrangement processing section 1, the dimension specifying section 4, the arrangement start point specifying section 5, the color density specifying section 6, and the input control section. The processing procedure (program) executed by the output control unit 12, the output control unit 12, and the control unit 16 is read from the external storage device 18 and stored, and is also used for temporary storage of data being processed.
【0052】なお、テキストデータバッファ2、組版指
示バッファ3、組版データテーブル7、組版補助データ
テーブル8、メモリ17は、RAM(ランダム・アクセ
ス・メモリ)で構成されている。The text data buffer 2, the typesetting instruction buffer 3, the typesetting data table 7, the typesetting auxiliary data table 8 and the memory 17 are composed of a RAM (random access memory).
【0053】また、入力部9と入力制御部11は、本発
明における設定手段と色濃度設定手段に相当する。さら
に、寸法特定部4は、本発明における寸法特定手段に相
当し、配置開始点特定部5は、本発明における配置開始
点特定手段に相当する。また、文字配置処理部1は、本
発明における文字配置処理制御手段に相当し、文字配置
処理部1と色濃度特定部7は、本発明における色濃度特
定手段に相当する。さらに、出力制御部12と表示装置
14とプリンタ15は、本発明における出力手段に相当
する。The input section 9 and the input control section 11 correspond to the setting means and the color density setting means in the present invention. Further, the dimension specifying unit 4 corresponds to the dimension specifying unit in the present invention, and the arrangement start point specifying unit 5 corresponds to the arrangement start point specifying unit in the present invention. The character arrangement processing unit 1 corresponds to the character arrangement processing control unit in the present invention, and the character arrangement processing unit 1 and the color density specifying unit 7 correspond to the color density specifying unit in the present invention. Further, the output control unit 12, the display device 14, and the printer 15 correspond to the output means in the present invention.
【0054】次に、本実施例装置の文字列の遠近配置組
版における処理手順を図2ないし図5のフローチャート
を参照して説明する。図2は、その処理手順を示すメイ
ンフローチャートである。Next, the processing procedure in the perspective arrangement typesetting of character strings of the apparatus of this embodiment will be described with reference to the flowcharts of FIGS. FIG. 2 is a main flowchart showing the processing procedure.
【0055】図2において、まず、テキストデータの取
込みを行なう(ステップS1)。すなわち、オペレータ
が処理対象の文字列のデータファイルを入力部9で指定
すると入力制御部11は、各文字の文字コードを順次テ
キストデータバッファ2に記憶していく。In FIG. 2, first, text data is taken in (step S1). That is, when the operator specifies the data file of the character string to be processed by the input unit 9, the input control unit 11 sequentially stores the character code of each character in the text data buffer 2.
【0056】図6では、文字列”大バーゲン”を例にし
てテキストデータバッファ2に記憶されたテキストデー
タの内容・構成を示している。以下、文字列として”大
バーゲン”を例に以後の説明を行なう。FIG. 6 shows the content / structure of the text data stored in the text data buffer 2 by taking the character string "large bargain" as an example. In the following, the following description will be given by taking "large bargain" as an example of the character string.
【0057】図2に戻って、次に、組版指示の取込み
(ステップS2)の処理手順を図3を参照して説明す
る。Returning to FIG. 2, the processing procedure for fetching the typesetting instruction (step S2) will be described with reference to FIG.
【0058】ここで、遠近配置の基本的な指示要素につ
いて図9を用いて説明する。図9(a)〜(d)は”大
バーゲン”の文字列の”大”が最も近くに、”ン”を最
も遠くに見えるように各文字を変形して配置する様子
を、それぞれ文字の向きを変えて示したもので、図から
分かるように遠近配置のためには最も近い文字配置と最
も遠い文字配置を指定ないし確定する必要がある。以下
では、それぞれの文字を単に「最近文字」、「最遠文
字」と記す。本発明では、最近文字の配置に対してはそ
の文字のフォントデータの手前の2点(PS1、PS2)
と、最遠文字の配置に対しては遠近法的に見た収束点P
eを指定し、この3点を結ぶ三角形に沿って文字列を変
形配置することを基本としている。Here, basic instruction elements for the perspective arrangement will be described with reference to FIG. 9 (a) to 9 (d) show how the characters are transformed and arranged so that "large" in the character string "large bargain" is closest and "n" is farthest away. As shown in the figure, it is necessary to specify or confirm the closest character arrangement and the farthest character arrangement for perspective arrangement. In the following, each character is simply referred to as "most recent character" or "farthest character". In the present invention, for the most recent character arrangement, the two points (P S1 , P S2 ) in front of the font data of that character are used.
And for the arrangement of the farthest character, the convergence point P seen from perspective.
Basically, the character string is deformed and arranged along a triangle connecting these three points by designating e.
【0059】まず、テキストデータの最初の文字に対応
するフォントデータを出力する際の配置開始点PS1、P
S2のユーザー空間(プレーンメモリなどのコンピュータ
処理領域上の座標(x−y座標)で実際に組版する出力
領域に相当する。)における各座標と、テキストデータ
を構成する各文字を遠近配置するときの収束点Peの座
標の取込みを行なう(ステップS11)。First, the arrangement start points P S1 and P S when outputting the font data corresponding to the first character of the text data
When arranging each coordinate in the user space of S2 (corresponding to the output area that is actually typeset in the coordinates (xy coordinates) on the computer processing area such as plain memory) and each character that constitutes the text data in the perspective position The coordinates of the convergence point Pe of are captured (step S11).
【0060】すなわち、図7(a)に示すように、点P
S1、点PS2、点Peの各(x,y)座標を指定する。な
お、x−y直交座標系の原点(0,0)は、表示装置1
4の表示空間の予め決められた点、プリント、あるい
は、フィルムの焼付け等による組版出力する領域の予め
決められた点にそれぞれ対応する。That is, as shown in FIG. 7A, the point P
Each (x, y) coordinate of S1 , point P S2 , and point Pe is designated. The origin (0, 0) of the xy Cartesian coordinate system is the display device 1.
4 corresponds to a predetermined point in the display space, and a predetermined point in a region for typesetting output by printing or film printing.
【0061】ユーザーにより、各点の座標が入力部9か
ら設定されると、入力制御部11は、それら各座標を、
組版指示バッファ3の所定エリアに記憶する。When the user sets the coordinates of each point from the input unit 9, the input control unit 11 changes the coordinates to
It is stored in a predetermined area of the typesetting instruction buffer 3.
【0062】ここで、組版指示バッファ3の構成を図8
に示す。図8に示すように、組版指示バッファ3には、
指定点PS1、PS2、Peの各(x,y)座標の他、後述
する組方向指示、長平体率、開始色濃度、終了色濃度を
記憶するためのエリアが設けられている。Here, the structure of the typesetting instruction buffer 3 is shown in FIG.
Shown in As shown in FIG. 8, in the typesetting instruction buffer 3,
In addition to the (x, y) coordinates of the designated points P S1 , P S2 , and Pe, an area is provided for storing a set direction instruction, a long flat body ratio, a start color density, and an end color density, which will be described later.
【0063】ところで、処理対象の文字列を変形配置す
るためには、点PS1、点PS2から点Peに収束するよう
に、換言すると点PS1、点PS2、点Peは三角形を形成
するように設定されなければならない。これら3点の位
置関係は、例えば図7(a)、(b)、(c)、
(d)、(e)の種々の形態があるが、基本的には点P
S1とPS2を結ぶ線(直線PS1−PS2)を含む線(1次関
数)上に点Peが位置しないことで上記の条件を調べる
ことができる。By the way, in order to transform and arrange the character string to be processed, the points P S1 and P S2 converge to the point Pe, in other words, the points P S1 , Ps2 and Pe form a triangle. Must be set to The positional relationship between these three points is, for example, as shown in FIGS.
There are various forms (d) and (e), but basically the point P
Since the point Pe is not located on the line (linear function) including the line connecting the S1 and P S2 (the straight line P S1 −P S2 ), the above condition can be examined.
【0064】なお、図7(a)に示すように、各点の座
標を点PS1(xs1,ys1)、点PS2(xs2,ys2=
ys1)、点Pe(xe ,ye )とし、ここでは、点PS1
と点PS2とを結ぶ線分SLが、x軸に平行に設定された
もの(点PS1と点PS2のy座標が同じである)として以
下の説明を行なう。As shown in FIG. 7 (a), the coordinates of each point are point P S1 (x s1 , y s1 ), point P S2 (x s2 , y s2 =
y s1 ), and point Pe (x e , y e ), where point P S1
The following description will be made assuming that the line segment SL connecting the point P S2 and the point P S2 is set parallel to the x-axis (the y coordinates of the point P S1 and the point P S2 are the same).
【0065】この場合の遠近配置のための各文字の配置
位置を求める処理方法を以下では『処理パターン1』と
する。In the following, the processing method for obtaining the arrangement position of each character for the perspective arrangement will be referred to as "processing pattern 1" below.
【0066】図3に戻って、次に、組方向指示の取込み
を行なう(ステップS12)。組方向指示とは、横組み
で組版するか縦組みで組版するかを指定するための指示
である。横組みを指示すると、点PS1、点PS2、点Pe
との位置関係に応じて、図9(a)、(b)に示すよう
に組版され、同様に縦組みを指示すると、図9(c)、
(d)に示すように組版される。Returning to FIG. 3, next, a set direction instruction is fetched (step S12). The typesetting instruction is an instruction for designating horizontal typesetting or vertical typesetting. If horizontal writing is specified, points P S1 , Ps2 , and Pe
9 (a) and 9 (b) according to the positional relationship with
Typesetting is performed as shown in (d).
【0067】ユーザーにより、入力部9から組方向指示
を意味するコード(例えば、「0」が横組み、「1」が
縦組みを意味するとする)が指定されると、入力制御部
11により指定コードが組版指示バッファ3(図8参
照)の<組方向>のエリアに記憶される。When the user specifies a code indicating a set direction instruction from the input section 9 (for example, "0" means horizontal setting and "1" means vertical setting), the input control section 11 specifies it. The code is stored in the <typesetting direction> area of the typesetting instruction buffer 3 (see FIG. 8).
【0068】図3に戻って、次に、長平体率の取込みを
行なう(ステップS13)。ユーザーは、組版文字の形
状に応じて、長体率または平体率の設定を入力部9から
行なう。長体率を指定するときには、図59(c)にお
けるlp(%)を指定し、平体率を指定するときには、
図59(b)におけるhp(%)を指定し、それぞれ組
版指示バッファ3の<長体率>、<平体率>のエリアに
記憶される。なお、指定できるのは、長体率、平体率の
内いずれか一方のみであり、双方とも指定しないときに
は、長体率、平体率ともに「0」となる。Returning to FIG. 3, next, the long flat rate is taken in (step S13). The user sets the long body ratio or the flat body ratio from the input unit 9 according to the shape of the typeset characters. When specifying the long body ratio, lp (%) in FIG. 59 (c) is specified, and when specifying the flat body ratio,
The hp (%) in FIG. 59B is designated and stored in the areas of <long body ratio> and <flat body ratio> of the typesetting instruction buffer 3, respectively. Note that only one of the long body ratio and the flat body ratio can be specified. If neither is specified, both the long body ratio and the flat body ratio are “0”.
【0069】図3に戻って、次に、対象文字列の最初の
文字の色濃度(開始色濃度)と、最後の文字の色濃度
(終了色濃度)を取り込む(ステップS14)。ユーザ
ーにより入力部9から設定された開始色濃度と終了色濃
度とは、組版指示バッファ3の<開始色濃度>、<終了
色濃度>のエリアにそれぞれ記憶される。Returning to FIG. 3, next, the color density (start color density) of the first character and the color density (end color density) of the last character of the target character string are fetched (step S14). The start color density and the end color density set by the user from the input unit 9 are stored in the <start color density> and <end color density> areas of the typesetting instruction buffer 3, respectively.
【0070】ところで、この開始色濃度と終了色濃度デ
ータは、カラー表示装置やプリンタ等の組版結果の出力
装置に応じてR(赤),G(緑),B(青)の色濃度
(例えば、最高濃度100に対する%)あるいは、Y
(黄),M(マゼンダ),C(シアン),K(墨)の色
濃度(網%等)で指定され、組版指示バッファ3には、
図10の開始色濃度で示すように、それぞれの色濃度を
記憶するエリアが確保されている。The start color density and the end color density data are R (red), G (green), and B (blue) color densities (for example, the color densities depending on the output device of the typesetting result, such as a color display device and a printer). ,% To the maximum concentration of 100) or Y
(Yellow), M (magenta), C (cyan), and K (black) are designated by the color densities (halftone dots, etc.)
As shown by the starting color density in FIG. 10, an area for storing each color density is secured.
【0071】また、RGBとYMCKの各色濃度は相互
に変換(周知技術なので詳述しない)できるので、一方
のみを指定し、他方を演算で求めてもよい。Further, since the RGB and YMCK color densities can be converted (not described in detail because they are known techniques), only one may be designated and the other may be calculated.
【0072】図2に戻って、次に、各フォントデータの
寸法、配置位置、色濃度を求めて組版データテーブル7
を編集するための前処理を行なう(ステップS3)。Returning to FIG. 2, next, the size, arrangement position, and color density of each font data are obtained, and the formatted data table 7
Pre-processing for editing is performed (step S3).
【0073】ここで、組版データテーブル7の構成と本
文字列での例を図11に示す。この組版データテーブル
7はヘッダ部HAとテキストデータを構成する各文字に
対応する各フォントデータの文字処理データ部FAn
(nは対象文字列の文字数)とで構成されている。ヘッ
ダ部HAは、<組方向>、<長体率>、<平体率>、<
回転角度θ>、<文字数>、<処理済文字数>のデータ
エリアで構成され、文字処理データ部FAnは、各文字
毎に<文字コード>、<配置位置x>、<配置位置y
>、<寸法>、<色濃度>のデータエリアで構成されて
いる。Here, FIG. 11 shows an example of the structure of the formatted data table 7 and this character string. The typesetting data table 7 includes a header part HA and a character processing data part FAn of each font data corresponding to each character forming the text data.
(N is the number of characters in the target character string). The header portion HA includes <assembly direction>, <long body ratio>, <flat body ratio>, <
The rotation angle θ>, <number of characters>, and <number of processed characters> are included in the data area. The character processing data unit FAn includes a <character code>, a <arrangement position x>, and a <arrangement position y for each character.
>, <Dimension>, <color density> data area.
【0074】この前処理では、まず、文字配置処理部1
が、テキストデータバッファ2からは各文字の文字コー
ドを、組版指示バッファ3から組方向、長体率、平体
率、開始色濃度、終了色濃度の各データを、組版データ
テーブル7に記憶する。In this preprocessing, first, the character arrangement processing unit 1
However, the character code of each character is stored from the text data buffer 2, and each data of the setting direction, length ratio, flatness ratio, start color density, and end color density is stored in the typesetting data table 7 from the typesetting instruction buffer 3. .
【0075】なお、開始色濃度と終了色濃度は、それぞ
れ最初と最後の文字に対応する文字処理データ部(本例
ではFA1とFA5の色濃度データエリア)に記憶す
る。また、文字処理データ部FAnの<色濃度>は、組
版指示バッファ3と同様に、Y,M,C,K及びR,
G,Bの各色濃度を記憶する。The start color density and the end color density are stored in the character processing data section (the color density data areas FA1 and FA5 in this example) corresponding to the first and last characters, respectively. Further, the <color density> of the character processing data portion FAn is similar to that of the typesetting instruction buffer 3, and Y, M, C, K and R,
The color densities of G and B are stored.
【0076】そして、組版データテーブル7の文字処理
データ部FAnの各<文字コード>のエリアには”大バ
ーゲン”の文字コードを記憶していく。なお、このと
き、テキストデータの文字数のカウント値(本実施例で
は「5」)を<文字数>のエリアに、また、<回転角度
θ>のエリアには、出力時のフォントデータの回転角度
を記憶するが、これにより図12に示すように、フォン
トデータをx−y直交座標系のx軸に対して仮想ボディ
IBの基準点Pを中心として、θ回転させて出力するこ
とになる。Then, the "large bargain" character code is stored in each <character code> area of the character processing data portion FAn of the typesetting data table 7. At this time, the count value of the number of characters of the text data (“5” in this embodiment) is set in the <character number> area, and the rotation angle of the font data at the time of output is set in the <rotation angle θ> area. As a result, as shown in FIG. 12, the font data is output after being rotated by θ about the reference point P of the virtual body IB with respect to the x axis of the xy orthogonal coordinate system.
【0077】図9は先に一部説明したが、それぞれ特定
点Pe、PS1、PS2と、”大バーン”の文字列を
(c)、(d)では縦組み、(a)、(b)では横組み
に指示した場合の組版例で、図から明らかなように回転
角度は、図9(a)では、θ=+90、図9(b)で
は、θ=−90(あるいは、+270)、図9(c)、
(d)では、θ=0となる。Although part of FIG. 9 has been described above, the specific points Pe, P S1 , P S2 and the character string of "Large Burn" are vertically assembled in (c) and (d), respectively (a), ( In FIG. 9B, a rotation angle is θ = + 90 in FIG. 9A, and θ = −90 (or +270 in FIG. 9B). ), FIG. 9 (c),
In (d), θ = 0.
【0078】さらに、文字配置処理部1は、図13に示
す組版補助データテーブル8と、メモリ17内に設けた
図14に示すワークエリア21とにそれぞれ組版指示バ
ッファ3に記憶されたPS1、PS2、Peの各(x,y)
座標を図のように対応する各エリアに記憶する。また、
ワークエリア21の<Paのx座標、y座標>、<Pb
のx座標、y座標>のエリアには、初期値として点
PS1、PS2の各(x、y)座標を記憶する。組版補助デ
ータテーブル8は、別文字の挿入処理を行なう際に使用
するテーブルで、この実処理において寸法や配置位置、
色濃度等を求める際の作業用エリアとしてワークエリア
21も使用される。挿入処理については後述する。Further, the character arrangement processing unit 1 stores P S1 stored in the typesetting instruction buffer 3 in the typesetting auxiliary data table 8 shown in FIG. 13 and the work area 21 shown in FIG. 14 provided in the memory 17, respectively. Each of P S2 and Pe (x, y)
The coordinates are stored in the corresponding areas as shown. Also,
<Pax x and y coordinates>, <Pb of work area 21
In the area of x-coordinate, y-coordinate>, the (x, y) coordinates of the points P S1 and P S2 are stored as initial values. The typesetting auxiliary data table 8 is a table used when inserting another character.
The work area 21 is also used as a work area for obtaining the color density and the like. The insertion process will be described later.
【0079】次に、開始色濃度(網%でYS 、MS 、C
S 、KS とする)と終了色濃度(網%でYE 、ME 、C
E 、KE とする)の各データに基づき、各文字の色濃度
を決めるための色濃度の変化率(αY 、αM 、αC 、α
K )を求める。変化率は、(開始色濃度−終了色濃度)
/(文字数−1)で求められる。本実施例の場合、文字
数が「5」であるから、以下のようになる。 αY =(ME −MS )/4 αM =(ME −MS )/4 αC =(CE −CS )/4 αK =(KE −KS )/4 αR =(RE −RS )/4 αG =(GE −GS )/4 αB =(BE −BS )/4 なお、αR 、αG 、αB はRGBの色濃度での変化率で
あり、先述のYMCKとRGBの相互変換によりいづれ
でも選択採用される。これらを、図15の各グラフで示
す。得られた各変化率データは、組版補助データテーブ
ル8に記憶される。Next, the start color density (Y S , M S , C in halftone%)
S , K S ) and end color density (halftone% Y E , M E , C
E , K E ) based on each data, the rate of change of color density (α Y , α M , α C , α) for determining the color density of each character
K ). The change rate is (start color density-end color density)
/ (Number of characters-1) In the case of the present embodiment, since the number of characters is "5", it is as follows. α Y = (M E −M S ) / 4 α M = (M E −M S ) / 4 α C = (C E −C S ) / 4 α K = (K E −K S ) / 4 α R = (R E −R S ) / 4 α G = (G E −G S ) / 4 α B = (B E −B S ) / 4 where α R , α G , and α B are RGB color densities. Of the YMCK and RGB, and can be selected and adopted by any of them. These are shown in each graph of FIG. Each obtained change rate data is stored in the typesetting auxiliary data table 8.
【0080】図2に戻って、前処理が終わると、次に、
テキストデータを構成する各文字に対応する各フォント
データの寸法、配置位置、色濃度を求める(ステップS
4)。具体的な処理手順を図4に示すフローチャートを
参照して説明する。Returning to FIG. 2, when the preprocessing is completed, next,
The size, arrangement position, and color density of each font data corresponding to each character forming the text data are obtained (step S
4). A specific processing procedure will be described with reference to the flowchart shown in FIG.
【0081】まず、処理変数iに「1」をセットする
(ステップS21)。次に、i番目の文字(ここi=1
では最初の文字”大”)の出力寸法を求める(ステップ
S22)。First, the processing variable i is set to "1" (step S21). Next, the i-th character (here i = 1
Then, the output dimension of the first character "large" is obtained (step S22).
【0082】これを、図16、図17を参照して説明す
る。なお、図16は、図9(c)、(a)の場合、図1
7は、図9(d)、(b)の場合をそれぞれ示す。ま
た、Pa、Pb、Pc、Pdは、各文字毎にそのフォン
トデータを変形配置する都度使用される点で、各点を図
16、図17のように各角に対応させている。なお、点
Pa、Pbの座標は、ワークエリア21のPa、Pbの
(x、y)座標のエリアに記憶された値を使用し、最初
の文字は、Pa=PS1、Pb=PS2(前処理で初期値と
してセットした)であり、2番目以降の文字のPa、P
bは、前の文字におけるステップS31(後述する)で
特定され、ワークエリア21のPa、Pbの(x、y)
座標のエリアの記憶内容が更新される。This will be described with reference to FIGS. 16 and 17. Note that FIG. 16 is similar to FIG. 1 in the case of FIGS.
7 shows the cases of FIGS. 9 (d) and 9 (b), respectively. Further, Pa, Pb, Pc, and Pd are points used each time the font data is transformed and arranged for each character, and each point is associated with each corner as shown in FIGS. 16 and 17. For the coordinates of the points Pa and Pb, the values stored in the area of (x, y) coordinates of Pa and Pb of the work area 21 are used, and the first character is Pa = P S1 and Pb = P S2 ( It was set as an initial value in the preprocessing), and Pa and P of the second and subsequent characters
b is specified in step S31 (described later) in the previous character, and Pa of the work area 21 and (x, y) of Pb.
The stored contents of the coordinate area are updated.
【0083】図16、図17の(a)、(b)は、長体
率、平体率がともに指定されていない正方形の仮想ボデ
ィIBのフォントデータをそれぞれ縦組み、横組みで配
置する。この場合のフォントデータの寸法はPa、Pb
間の長さである。Pa、Pb間の長さLは、Paの座標
を(xa ,ya )、Pbの座標を(xb ,ya )とする
と、文字底辺がx軸に平行であるので、以下の式で算出
することができる。 L=X=|xb −xa | ……… (22-1)16 (a) and 16 (b), font data of a square virtual body IB in which neither the long body ratio nor the flat body ratio is specified are arranged vertically and horizontally, respectively. In this case, the font data dimensions are Pa and Pb.
The length is between. Pa, the length L between Pb, the coordinates of Pa (x a, y a) , the coordinates of Pb (x b, y a) When, because character base is parallel to the x-axis, the following formula Can be calculated by L = X = | x b -x a | ......... (22-1)
【0084】図16、図17の(c)は、平体率(hp
%)が指定されたフォントデータを縦組みで配置する場
合で、文字高さをY’(=Y×(100−hp)/10
0)に圧縮したフォントデータを所定の配置位置に配置
する。この場合のフォントデータの寸法は前式(22-1)
と同じ値のLである。16 (c) and 17 (c) show the flatness ratio (hp
When the font data for which%) is specified is arranged vertically, the character height is Y '(= Y × (100-hp) / 10
The font data compressed in 0) is arranged at a predetermined arrangement position. The size of the font data in this case is as shown in the previous formula (22-1).
Is the same value as L.
【0085】図16、図17の(d)は、長体率(lp
%)が指定されたフォントデータを横組みで配置する場
合で、文字幅がX’(=X×(100−lp)/10
0)に圧縮されたフォントデータを所定の配置位置に配
置する。この場合のフォントデータの寸法も前式(22-
1)と同じLである。16 (d) and 17 (d) show the long body ratio (lp
When the font data for which%) is specified is arranged horizontally, and the character width is X '(= X × (100-lp) / 10
The font data compressed in 0) is arranged at a predetermined arrangement position. The size of the font data in this case can also be calculated using the formula (22-
It is the same L as in 1).
【0086】図16、図17の(e)は、長体率(lp
%)が指定されたフォントデータを縦組みで配置する場
合で、文字幅がX’(X’は、Pa、PbのX座標より
求められる)に圧縮されたフォントデータを所定の配置
位置に配置する。従って、元のフォントデータの寸法に
相当するXは以下の式で求めることができる。 X=(100・X’)/(100−lp) ……… (22-2) 16 (e) and 17 (e) show the long body ratio (lp
%) When arranging the font data specified by vertical composition in vertical composition, the font data compressed to a character width of X '(X' is obtained from the X coordinate of Pa and Pb) is arranged at a predetermined arrangement position. To do. Therefore, X corresponding to the size of the original font data can be obtained by the following formula. X = (100 ・ X ') / (100-lp) ……… (22-2)
【0087】図16、図17の(f)は、平体率(hp
%)が指定されたフォントデータを横組みで配置する場
合で、文字高さがY’(Y’は、Pa、PbのX座標よ
り求められる)に圧縮されたフォントデータを所定の配
置位置に配置する。従って、元のフォントデータの寸法
に相当するYは以下の式で求めることができる。 Y=(100・Y’)/(100−hp) ……… (22-3) FIGS. 16 and 17 (f) show the flatness ratio (hp
%) When arranging the font data specified by horizontal writing mode, the font data compressed to a character height of Y '(Y' is obtained from the X coordinate of Pa and Pb) is placed at a predetermined position. Deploy. Therefore, Y corresponding to the size of the original font data can be obtained by the following formula. Y = (100 · Y ') / (100-hp) ……… (22-3)
【0088】こうして求められた各指定組版でのフォン
トデータの寸法は組版データテーブル7(図11参照)
のi番目の文字に対応する文字処理データ部FAiの<
寸法>のエリアに記憶する。The size of the font data in each specified composition thus obtained is the composition data table 7 (see FIG. 11).
Of the character processing data section FAi corresponding to the i-th character of
Store in the dimension> area.
【0089】図4に戻って、次に、求められたフォント
データの寸法が1mm未満か否かを判定し(ステップS2
3)、1mm未満であればステップS24のエラー処理に
進み、一方、1mm以上であればステップS25に進む。
これは、出力するフォントデータの寸法が1mm未満であ
ると字面が見づらくなることに対処するためである。Returning to FIG. 4, next, it is judged whether or not the obtained size of the font data is less than 1 mm (step S2).
3) If it is less than 1 mm, proceed to the error processing of step S24, while if it is 1 mm or more, proceed to step S25.
This is because it is difficult to see the character surface when the size of the output font data is less than 1 mm.
【0090】ステップS24のエラー処理では、まず、
例えば、エラーメッセージを表示装置14に表示して、
エラー終了したことをユーザーに知らせると共に、組版
補助データテーブル8(図13参照)の<エラー有無>
のエリアに、寸法が1mm未満でエラー終了したことを示
すコード(例えば、「1」)を記憶して、図4の処理を
終了する。In the error processing of step S24, first,
For example, by displaying an error message on the display device 14,
Notify the user that the error has ended, and check whether there is an error in the typesetting auxiliary data table 8 (see FIG. 13)
A code (for example, "1") indicating that the dimension is less than 1 mm and ended in error is stored in the area of, and the processing of FIG. 4 is ended.
【0091】なお、このような不都合が起きる原因とし
て、例えば、テキストデータの文字数に対して、指定さ
れた3点PS1、PS2、Peの位置関係が不適切(例え
ば、図18に示すように、点PS1、PS2間の長さが、点
PS1、Pe間の長さ、点PS2、Pe間の長さに比べて長
い等)の場合で、点PS1、PS2、Peを設定し直すよう
に施すメッセージを上記エラーメッセージに追加しても
よい。次に、(i−1)を組版データテーブル7(図1
1参照)の<処理済文字数>のエリアに記憶する。この
<処理済文字数>は、寸法、配置位置、色濃度の全てが
編集されたフォントデータに対応する文字の数で現在の
i番目の処理においては、処理済の文字数は(i−1)
である。As a cause of such an inconvenience, for example, the positional relationship between the designated three points P S1 , P S2 , and Pe with respect to the number of characters of the text data is inappropriate (for example, as shown in FIG. 18). And the length between the points P S1 and P S2 is longer than the length between the points P S1 and Pe, the length between the points P S2 and Pe, etc.), the points P S1 , P S2 , A message for resetting Pe may be added to the error message. Next, (i-1) is converted into the formatted data table 7 (see FIG.
1)) in the <number of processed characters> area. This <number of processed characters> is the number of characters corresponding to the font data in which all the dimensions, arrangement positions, and color densities are edited, and in the current i-th processing, the number of processed characters is (i-1).
Is.
【0092】図4に戻って、ステップS25では、ステ
ップS24で文字配置したときの残りの2点Pc、Pd
の座標を求める。このとき、図16、図17に示すよう
に、点PS1、PS2、Peの位置関係により、出力時のフ
ォントデータの配置状態が異なる。Returning to FIG. 4, in step S25, the remaining two points Pc and Pd when the characters are arranged in step S24.
Find the coordinates of. At this time, as shown in FIGS. 16 and 17, the arrangement state of the font data at the time of output differs depending on the positional relationship between the points P S1 , P S2 , and Pe.
【0093】まず、図16は収束点Peの位置が配置開
始点PS1、PS2よりも上に指定された場合を示してい
る。この場合、図16(a)〜(f)における点Pc、
Pdの各x座標xc 、xdは、図からも明らかなように
それぞれ xc =xa xd =xb ……… (25-1) である。First, FIG. 16 shows a case where the position of the convergence point Pe is designated above the placement start points P S1 and P S2 . In this case, the points Pc in FIGS.
The x-coordinates x c and x d of Pd are respectively x c = x a x d = x b (25-1), as is clear from the figure.
【0094】また、点Pc、Pdの各y座標yc 、yd
は、図16(a)、(e)、(b)、(f)と図16
(c)と図16(d)の場合で異なる。Also, the y-coordinates y c and y d of the points Pc and Pd, respectively.
16A, 16E, 16B and 16F, and
16C and FIG. 16D are different.
【0095】図16(a)、(e)の場合、点Pc、P
dのy座標は、それぞれ配置開始点Pa、Pbのy座標
に文字高さY(=L)を加算したものである。従って、 yc =yd =ya +L ……… (25-2) となる。In the case of FIGS. 16A and 16E, points Pc and P
The y-coordinate of d is obtained by adding the character height Y (= L) to the y-coordinates of the arrangement start points Pa and Pb, respectively. Therefore, y c = y d = y a + L ......... (25-2).
【0096】図16(b)、(f)の場合、点Pc、P
dのy座標は、それぞれ配置開始点Pa、Pbのy座標
に文字幅X(=L)を加算したものである。従って、こ
の場合の、点Pc、Pdの各y座標yc 、yd は、結果
的に上式(25-2)で求められる。In the case of FIGS. 16B and 16F, points Pc and P
The y coordinate of d is obtained by adding the character width X (= L) to the y coordinates of the arrangement start points Pa and Pb, respectively. Therefore, in this case, the y-coordinates y c and y d of the points Pc and Pd are finally obtained by the above equation (25-2).
【0097】図16(c)の場合、点Pc、Pdのy座
標は、それぞれ配置開始点Pa、Pbのy座標に、平体
率hp分圧縮した文字高さY’を加算したものである。
従って、この場合は、 yc =yd =ya +(L×(100−hp)/100)) ……… (25-3) である。In the case of FIG. 16C, the y-coordinates of the points Pc and Pd are the y-coordinates of the arrangement start points Pa and Pb, respectively, plus the character height Y ′ compressed by the flatness rate hp. .
Therefore, this case is the + y c = y d = y a (L × (100-hp) / 100)) ......... (25-3).
【0098】図16(d)の場合、点Pc、Pdのy座
標は、それぞれ配置開始点Pa、Pbのy座標に、長体
率lp分圧縮した文字幅X’を加算したものである。従
って、この場合は、 yc =yd =ya +(L×(100−lp)/100) ……… (25-4) である。In the case of FIG. 16D, the y-coordinates of the points Pc and Pd are the y-coordinates of the arrangement start points Pa and Pb, respectively, plus the character width X'compressed by the length ratio lp. Therefore, in this case, y c = y d = y a + (L × (100-lp) / 100) is ......... (25-4).
【0099】次に、図17は図16の場合とは逆に収束
点Peの位置が配置開始点PS1、PS2より下に指定され
た場合を示している。Next, FIG. 17 shows a case where the position of the convergence point Pe is specified below the arrangement start points P S1 and P S2 , contrary to the case of FIG.
【0100】従って、図17は図16のy軸の正方向を
逆にしたものであり、図17(a)〜(f)における点
Pc、Pdの各x座標xc 、xd は、上式(25-1)により
求められる。また、図17(a)、(b)、(e)、
(f)と図17(c)と図17(d)における点Pc、
Pdの各y座標yc 、yd は、上式(25-2)と上式(25-3)
と上式(25-4)の式内の「+」を「−」に代えた各式で求
めることができる。Therefore, FIG. 17 is obtained by reversing the positive direction of the y-axis of FIG. 16, and the x-coordinates x c and x d of the points Pc and Pd in FIGS. It is calculated by the equation (25-1). 17 (a), (b), (e),
Point Pc in (f), FIG. 17 (c), and FIG. 17 (d),
The y-coordinates y c and y d of Pd are expressed by the above equation (25-2) and the above equation (25-3).
And in the above equation (25-4), "+" can be replaced with "-".
【0101】以上で、i番目の文字のサイズがPa、P
b、Pc、Pdで規定される矩形内に配置され、次文字
はこの矩形と収束点Peとによって次文字のために新た
に求められるPa、Pb、Pc、Pdにより同様にして
配置されるがこれらの点は後述する。さて、組版出力時
の配置位置に関しては基準点Pの位置によって決まるも
のであり、この基準点Pは指定のPS1、PS2、Peと組
み方向により求める(ステップS26)。As described above, the size of the i-th character is Pa, P
It is arranged in a rectangle defined by b, Pc, Pd, and the next character is similarly arranged by Pa, Pb, Pc, Pd newly obtained for the next character by this rectangle and the convergence point Pe. These points will be described later. The layout position at the time of typesetting output is determined by the position of the reference point P, and the reference point P is determined by the designated P S1 , P S2 , Pe and the assembly direction (step S26).
【0102】すなわち、yS1及びyS2<ye で縦組みの
図16(a)、(c)、(e)では、フォントデータの
基準点Pは点Paとなり、配置位置は点Paの座標とな
る。That is, in FIGS. 16 (a), 16 (c), and 16 (e), which are vertically assembled with y S1 and y S2 <y e , the reference point P of the font data is the point Pa, and the arrangement position is the coordinates of the point Pa. Becomes
【0103】また、yS1及びyS2<ye で横組みの図1
6(b)、(c)、(f)では、フォントデータの基準
点Pは点Pbとなり、配置位置は点Pbの座標となる。In addition, FIG. 1 in the horizontal composition with y S1 and y S2 <y e
In 6 (b), (c), and (f), the reference point P of the font data is the point Pb, and the arrangement position is the coordinates of the point Pb.
【0104】さらに、yS1及びyS2>ye で縦組みの図
17(a)、(c)、(e)では、フォントデータの基
準点Pは点Pcとなり、配置位置は点Pcの座標とな
る。Furthermore, in y S1 and y S2 > y e vertically assembled in FIGS. 17A, 17C, and 17E, the reference point P of the font data is the point Pc, and the arrangement position is the coordinates of the point Pc. Becomes
【0105】また、yS1及びyS2>ye で横組みの図1
7(b)、(c)、(f)では、フォントデータの基準
点Pは点Paとなり、配置位置は点Paの座標となる。In addition, FIG. 1 in horizontal writing mode with y S1 and y S2 > y e
7 (b), (c), and (f), the reference point P of the font data is the point Pa, and the arrangement position is the coordinates of the point Pa.
【0106】文字配置処理部1は、前記で求められた基
準点Pの(x,y)座標を組版データテーブル7のi番
目の文字処理データ部FAiの<配置位置x>、<配置
位置y>のエリアに記憶する。The character arrangement processing unit 1 uses the (x, y) coordinates of the reference point P obtained as described above in the <arrangement position x> and <arrangement position y of the i-th character processing data portion FAi of the typesetting data table 7. > area.
【0107】図4に戻って、次に、現在の処理対象文字
に対応するフォントデータの色濃度を求める(ステップ
S27)。文字配置処理部1は、処理変数iを色濃度特
定部6に与えることにより、色濃度特定部6が、与えら
れた文字の順番と、前処理で求めておいた色濃度の変化
率とに基づき、各文字の色濃度を求める。Returning to FIG. 4, next, the color density of the font data corresponding to the current character to be processed is obtained (step S27). The character arrangement processing unit 1 supplies the processing variable i to the color density specifying unit 6 so that the color density specifying unit 6 determines the order of the given characters and the change rate of the color density obtained in the preprocessing. Based on this, the color density of each character is obtained.
【0108】図19から明らかなようにi番目の文字の
色濃度をYNiとすると、予め求た色濃度の変化率α
Y と、開始色濃度YS から以下の式で求める。 YNi=YX +YS =αY ×(i−1)+YS As is apparent from FIG. 19, when the color density of the i-th character is Y Ni , the change rate α of the color density obtained in advance is
It is calculated from Y and the starting color density Y S by the following formula. Y Ni = Y X + Y S = α Y × (i-1) + Y S
【0109】なお、図中のYX3は、3番目の文字(i=
3)”ー”の開始色濃度YS からの色濃度の変化量を示
し、YN3は、その文字の色濃度を示す。Note that Y X3 in the figure is the third character (i =
3) "-" indicates the amount of change in color density from the starting color density Y S , and Y N3 indicates the color density of the character.
【0110】また、i=1(最初の文字)またはi=テ
キストデータの文字数(最後の文字)であるときには、
各文字の色濃度はそれぞれ開始色濃度および終了色濃度
そのものであるから前記演算は不要である。When i = 1 (first character) or i = the number of characters in the text data (last character),
Since the color density of each character is the start color density and the end color density itself, the above calculation is unnecessary.
【0111】図中、( )内の数値はYS =40、YE
=60としたときの各文字の色濃度を示し、色濃度は、
開始色濃度から終了色濃度へ徐々に変化しているのがわ
かる。なお、このときの色濃度の変化率αY は(60−
40)/4=5である。In the figure, the values in parentheses are Y S = 40, Y E
= 60, the color density of each character is shown.
It can be seen that the starting color density gradually changes to the ending color density. The change rate α Y of the color density at this time is (60−
40) / 4 = 5.
【0112】なお、その他のM,C,Kの網%、R,
G,Bの色濃度についても上記Yの網%の場合と同様に
して、現在の処理対象文字の色濃度を求めることができ
る。Incidentally, other M, C, K net%, R,
Regarding the color densities of G and B, the color densities of the current character to be processed can be calculated in the same manner as in the case of the Y dot%.
【0113】色濃度特定部6は、求めた色濃度を文字配
置処理部1に返し、文字配置処理部1は、受け取った色
濃度を組版データテーブル7のi番目の文字処理データ
部FAiの<色濃度>のエリアに記憶する。The color density specifying unit 6 returns the obtained color density to the character arrangement processing unit 1, and the character arrangement processing unit 1 sets the received color density in the i-th character processing data unit FAi of the typesetting data table 7 < Color density> area is stored.
【0114】図4に戻って、次に、配置開始点特定部5
が、点PS1と点Peとを結ぶ線分および点PS2と点Pe
とを結ぶ線分と、現在の処理対象文字の仮想配置状態に
おける仮想ボディとの交点を求める(ステップS2
8)。Returning to FIG. 4, next, the arrangement start point specifying unit 5
Is a line segment connecting point P S1 and point Pe and point P S2 and point Pe
The intersection of the line segment connecting the and the virtual body in the virtual arrangement state of the current character to be processed is obtained (step S2).
8).
【0115】この交点が存在するパターンは、図20、
図21の各々に示す場合である。具体的には、 (1) 点PS1と点Peとを結ぶ線分と、点Pcと点Pdと
を結ぶ線分との交点 (2) 点PS1と点Peとを結ぶ線分と、点Pbと点Pdと
を結ぶ線分との交点 (3) 点PS2と点Peとを結ぶ線分と、点Paと点Pcと
を結ぶ線分との交点 (4) 点PS2と点Peとを結ぶ線分と、点Pcと点Pdと
を結ぶ線分との交点 があるか否かを調べていく。The pattern in which this intersection exists is shown in FIG.
This is the case shown in each of FIG. Specifically, (1) an intersection of a line segment connecting the point P S1 and the point Pe and a line segment connecting the point Pc and the point Pd (2) a line segment connecting the point P S1 and the point Pe, Intersection point with line segment connecting point Pb and point Pd (3) Intersection point with line segment connecting point P S2 and point Pe and line segment connecting point Pa and point Pc (4) point P S2 and point It is investigated whether or not there is an intersection between the line segment connecting Pe and the line segment connecting the points Pc and Pd.
【0116】点PS1(座標(xS1,yS1))と点Pe
(座標(xe ,ye ))とを結ぶ線分CL1を含む1次
関数を〔y=a1 ・x+b1 〕、点PS2(座標(xS2,
yS2))と点Peとを結ぶ線分CL2を含む1次関数を
〔y=a2 ・x+b2 〕とする。図22に示すように、
a1 、a2 は各関数の傾斜、b1 、b2 は各関数のy軸
との交点位置を表す。各々の求め方は数学的に容易であ
るので省略する。Point P S1 (coordinates (x S1 , y S1 )) and point Pe
A linear function including a line segment CL1 connecting (coordinates (x e , y e )) is [y = a 1 · x + b 1 ], point P S2 (coordinates (x S2 ,
The linear function including the line segment CL2 connecting y s2 )) and the point Pe is defined as [y = a 2 · x + b 2 ]. As shown in FIG. 22,
a 1 and a 2 represent the slope of each function, and b 1 and b 2 represent the position of the intersection of each function with the y axis. Since each method of calculation is mathematically easy, it is omitted.
【0117】従って、上記点PS1と点Peとを結ぶ線分
CL1を含む1次関数と、点PS2と点Peとを結ぶ線分
CL2を含む1次関数と、点Pa、点Pb、点Pc、点
Pdの位置関係を用いて、上記(1) 〜(4) を調べること
ができる。ただし、点PS1と点Peとのx座標が同じ
(xS1=xe )である場合は、x=xS1となり、この場
合は、図20(f)、図21(f)に示すように、点P
S1と点Peとを結ぶ線分CL1が、点Paと点Pcとを
結ぶ線分に一致し、フォントデータの仮想ボディとの交
点は点Pcとなり、また、点PS2と点Peとのx座標が
同じ(xS2=xe )である場合は、x=xS2となり、こ
の場合は、図20(d)、図21(d)に示すように、
点PS2と点Peとを結ぶ線分CL2が、点Pbと点Pd
とを結ぶ線分に一致し、フォントデータの仮想ボディと
の交点は点Pdとなる。従って、点PS1と点Peとのx
座標が同じである場合には、交点を点Pcとして上記
(1) 、(2) を省略し、点PS2と点Peとのx座標が同じ
である場合には、交点を点Pdとして上記(3) 、(4) を
省略する。Therefore, a linear function including the line segment CL1 connecting the point P S1 and the point Pe and a linear function including the line segment CL2 connecting the point P S2 and the point Pe, the point Pa and the point Pb, By using the positional relationship between the points Pc and Pd, the above (1) to (4) can be examined. However, when the x-coordinates of the point P S1 and the point Pe are the same (x S1 = x e ), x = x S1 , and in this case, as shown in FIGS. 20 (f) and 21 (f). And point P
The line segment CL1 connecting S1 and the point Pe coincides with the line segment connecting the point Pa and the point Pc, the intersection with the virtual body of the font data is the point Pc, and the point P S2 and the point Pe are x. When the coordinates are the same (x S2 = x e ), x = x S2 , and in this case, as shown in FIGS. 20 (d) and 21 (d),
The line segment CL2 connecting the point P S2 and the point Pe is the point Pb and the point Pd.
The point Pd coincides with the line segment connecting the and, and the intersection with the virtual body of the font data is the point Pd. Therefore, x between the point P S1 and the point Pe
When the coordinates are the same, the intersection is set as the point Pc
If (1) and (2) are omitted and the x coordinate of the point P S2 and the point Pe are the same, the intersection point is taken as the point Pd and the above (3) and (4) are omitted.
【0118】まず、(1) では図23(a)、(b)に示
すように、点PS1と点Peとを結ぶ線分CL1を含む1
次関数〔y=a1 ・x+b1 〕に、点Pc、点Pdのy
座標(yc )を代入したときのx座標(x=(yc −b
1 )/a1 )が、点Pcのx座標(xa )と点Pdのx
座標(xb )の間の範囲内に収まっていれば、これらの
交点が存在することになる。First, in (1), as shown in FIGS. 23 (a) and 23 (b), 1 including the line segment CL1 connecting the point P S1 and the point Pe.
In the next function [y = a 1 · x + b 1 ], y of points Pc and Pd
The x coordinate (x = (y c −b) when the coordinate (y c ) is substituted.
1 ) / a 1 ) is the x coordinate (x a ) of the point Pc and the x of the point Pd.
If they are within the range between the coordinates (x b ), these intersections exist.
【0119】この(1) で交点CP1 が見つかるのは、図
20、図21の(b)〜(e)の場合である。また、こ
の(1) で交点CP1 が存在する場合の交点CP1 のx座
標は上記x(=(yc −b1 )/a1 )であり、交点C
P1 のy座標は点Pc、点Pdのy座標(yc )であ
る。The point of intersection CP 1 is found in this case (1) in the cases of (b) to (e) of FIGS. 20 and 21. Further, a the (1) at the intersection of the intersection CP 1 when CP 1 is present x-coordinate is the x (= (y c -b 1 ) / a 1), the intersection point C
The y coordinate of P 1 is the y coordinate (y c ) of the point Pc and the point Pd.
【0120】次に、(2) では図23(c)、(d)に示
すように、点PS1と点Peとを結ぶ線分CL1を含む1
次関数〔y=a1 ・x+b1 〕に、点Pb、点Pdのx
座標(xb )を代入したときのy座標(y=a1 ・xb
+b1 )が、点Pbのy座標(ya )と点Pdのy座標
(yc )の間の範囲内に収まっていれば、これらの交点
が存在することになる。Next, in (2), as shown in FIGS. 23 (c) and 23 (d), 1 including the line segment CL1 connecting the point P S1 and the point Pe.
In the next function [y = a 1 · x + b 1 ], x of point Pb and point Pd
Y coordinate (y = a 1 · x b ) when the coordinate (x b ) is substituted
+ B 1) is, if within the range between the y-coordinate (y a) and the y coordinate of the point Pd of the point Pb (y c), so that these intersections are present.
【0121】この(2) で交点が見つかるのは、図20、
図21の(a)、(b)の場合である。また、この(2)
で交点CP1 が存在する場合の交点CP1 のx座標は点
Pb、点Pdのx座標(xb )であり、交点CP1 のy
座標は上記y(=a1 ・xb+b1 )である。The intersection can be found in this (2) as shown in FIG.
This is the case of (a) and (b) of FIG. Also, this (2)
In the case where the intersection point CP 1 exists, the x coordinate of the intersection point CP 1 is the x coordinate (x b ) of the points Pb and Pd, and y of the intersection point CP 1
The coordinates are y (= a 1 · x b + b 1 ) described above.
【0122】次に、(3) は図23(e)、(f)に示す
ように、上記(2) の場合と同じ方法で、点PS2と点Pe
とを結ぶ線分CL2を含む1次関数〔y=a2 ・x+b
2 〕に、点Pa、点Pcのx座標(xa )を代入したと
きのy座標(y=a2 ・xa+b2 )が、点Paのy座
標(ya )と点Pcのy座標(yc )の間の範囲内に収
まっているか否かで交点の有無を調べる。Next, in (3), as shown in FIGS. 23 (e) and (f), the point P S2 and the point Pe are processed by the same method as in the case of (2).
A linear function [y = a 2 · x + b including a line segment CL2 connecting
2 ], the y coordinate (y = a 2 · x a + b 2 ) when the x coordinate (x a ) of the point Pa and the point Pc is substituted is the y coordinate of the point Pa (y a ) and the y coordinate of the point Pc. Whether or not there is an intersection is checked depending on whether or not it is within the range between the coordinates (y c ).
【0123】この(3) で交点が見つかるのは、図20、
図21の(h)、(i)の場合である。また、この(3)
で交点CP2 が存在する場合の交点CP2 のx座標は点
Pa、点Pcのx座標(xa )であり、交点CP2 のy
座標は上記y(=a2 ・xa+b2 )である。The intersection can be found in (3) in FIG.
This is the case of (h) and (i) of FIG. Also, this (3)
In the case where the intersection point CP 2 exists, the x coordinate of the intersection point CP 2 is the x coordinate (x a ) of the points Pa and Pc, and the y point of the intersection point CP 2 is y.
The coordinates are the above y (= a 2 · x a + b 2 ).
【0124】次に、(4) は図23(g)、(h)に示す
ように、上記(1) の場合と同じ方法で、点PS2と点Pe
とを結ぶ線分CL2を含む1次関数〔y=a2 ・x+b
2 〕に、点Pc、点Pdのy座標(yc )を代入したと
きのx座標(x=(yc −b2 )/a2 )が、点Pcの
x座標(xa )と点Pdのx座標(xb )の間の範囲内
に収まっているか否かで交点の有無を調べる。Next, in (4), as shown in FIGS. 23 (g) and (h), the point P S2 and the point Pe are processed in the same manner as in the case of the above (1).
A linear function [y = a 2 · x + b including a line segment CL2 connecting
2], the point Pc, x coordinate when substituting the y coordinate of the point Pd (y c) (x = (y c -b 2) / a 2) is, x-coordinate of the point Pc (x a) and a point Whether or not there is an intersection is checked depending on whether or not it is within the range between the x coordinate (x b ) of Pd.
【0125】この(4) で交点が見つかるのは、図20、
図21の(e)〜(h)の場合であり、この(4) で交点
CP2 が存在する場合の交点CP2 のx座標は上記x
(=(yc −b2 )/a2 )、交点CP2 のy座標は点
Pc、点Pdのy座標(yc )である。The intersection can be found in (4) as shown in FIG.
The case of FIG. 21 (e) ~ (h), x-coordinate of the intersection point CP 2 in the case where there are intersections CP 2 in the (4) of the x
(= (Y c −b 2 ) / a 2 ), and the y coordinate of the intersection point CP 2 is the y coordinate (y c ) of the point Pc and the point Pd.
【0126】図4に戻って、次に、交点CP1 または/
およびCP2 があったか否かを判定する(ステップS2
9)。少なくとも交点CP1 、CP2 のいずれか一方が
あればステップS31に進む。一方、交点が全くなけれ
ば、配置開始点特定部5は、交点がなかったことを文字
配置処理部1に通知して処理を終了する。このとき、文
字配置処理部1はステップS30のエラー処理を実行す
る。Returning to FIG. 4, next, the intersection point CP 1 or /
And whether there is CP 2 (step S2)
9). If there is at least one of the intersection points CP 1 and CP 2 , the process proceeds to step S31. On the other hand, if there is no intersection, the arrangement start point specifying unit 5 notifies the character arrangement processing unit 1 that there is no intersection and ends the process. At this time, the character arrangement processing unit 1 executes the error processing of step S30.
【0127】ステップS30のエラー処理では、エラー
メッセージを表示装置14に表示する等してエラー終了
したことをユーザーに知らせる。なお、このような不都
合が起きる原因として、例えば、図24に示すような場
合でこのときは点PS1、PS2、Peを設定し直すように
施すメッセージを上記エラーメッセージに追加してもよ
い。また、ステップS28以降の処理は、現在の処理対
象の文字の次の文字に対応するフォントデータの配置開
始点Pa、Pbを求めるための処理である。従って、現
在の処理対象文字がテキストデータの最後の文字のとき
は、挿入処理が不可能であることを知らせるメッセージ
を表示するようにしてもよい。次に、iを組版データテ
ーブル7の<処理済文字数>のエリアに記憶する。これ
は、i番目の文字に対応するフォントデータの寸法、配
置位置、色濃度の全てが編集されているからである。さ
らに、組版補助データテーブル8の<エラー有無>のエ
リアに、交点無しでエラー終了したことを示すコード
(例えば、「2」)を記憶する。In the error processing of step S30, an error message is displayed on the display device 14 to inform the user of the error end. Incidentally, as a cause of such an inconvenience, for example, in the case as shown in FIG. 24, at this time, a message for resetting the points P S1 , P S2 , and Pe may be added to the error message. . Further, the processing from step S28 is a processing for obtaining the arrangement start points Pa and Pb of the font data corresponding to the character next to the character currently being processed. Therefore, when the current processing target character is the last character of the text data, a message notifying that the insertion processing is impossible may be displayed. Next, i is stored in the <number of processed characters> area of the formatted data table 7. This is because the font data size, arrangement position, and color density corresponding to the i-th character are all edited. Further, a code (for example, "2") indicating that the process ends in error without an intersection is stored in the area of <presence of error> of the typesetting auxiliary data table 8.
【0128】図4に戻って、次に、上記ステップS28
で求めた交点に基づき、(i+1)番目の文字に対応す
るフォントデータの配置開始点Pa、Pbを求める(ス
テップS31)。この処理は、配置開始点特定部5が、
上記ステップS28、S29に引続き行なう。Returning to FIG. 4, next, the above step S28.
Based on the intersections obtained in step S1, the placement start points Pa and Pb of the font data corresponding to the (i + 1) th character are determined (step S31). This processing is performed by the placement start point specifying unit 5,
The steps S28 and S29 are subsequently performed.
【0129】具体的には、求めた交点CP1 または/お
よびCP2 を通過し、点PS1と点PS2とを結ぶ線分に平
行な線を求め、その線と、点PS1と点Peとを結ぶ線
分、および点PS2と点Peとを結ぶ線分との各交点を求
める。求めた交点が、現在の処理対象の文字の次の文字
((i+1)番目の文字)に対応するフォントデータの
配置開始点Pa、Pbである。Specifically, a line parallel to the line segment connecting the obtained intersection points CP 1 and / or CP 2 and connecting the points P S1 and P S2 is obtained, and the line and the point P S1 and the points are obtained. The intersection of the line segment connecting Pe and the line segment connecting the point P S2 and the point Pe is determined. The obtained intersections are the placement start points Pa and Pb of the font data corresponding to the character ((i + 1) th character) next to the character currently being processed.
【0130】ここでは、点PS1と点PS2とを結ぶ線分は
x軸に平行(あるいはx軸上)であるので、求めた交点
CP1 または/およびCP2 を通過し、点PS1と点PS2
とを結ぶ線分に平行な線と、点PS1と点Peとを結ぶ線
分、および点PS2と点Peとを結ぶ線分との各交点は、
交点CP1 、CP2 のy座標と同じである。Here, since the line segment connecting the points P S1 and P S2 is parallel to the x axis (or on the x axis), it passes through the obtained intersection points CP 1 and / or CP 2 and the point P S1 And point P S2
The respective points of intersection of the line parallel to the line segment connecting the line P, the line segment connecting the point P S1 and the point Pe, and the line segment connecting the point P S2 and the point Pe are
It is the same as the y coordinate of the intersection points CP 1 and CP 2 .
【0131】図20に示した交点ができるパターンに応
じて、求められたPa、Pbの位置関係を図25に示
す。なお、図25では、2番目の文字に対応するフォン
トデータの配置開始点P、Pbを示している。また、図
21に示した交点ができるパターンについても、図20
に示した交点ができるパターンの場合と同様である。FIG. 25 shows the positional relationship between Pa and Pb obtained according to the pattern having the intersections shown in FIG. Note that FIG. 25 shows the arrangement start points P and Pb of the font data corresponding to the second character. In addition, regarding the pattern having the intersections shown in FIG.
This is similar to the case of the pattern shown in FIG.
【0132】配置開始点特定部5は求めた新たな配置開
始点Pa、Pbを、文字配置処理部1に返す。文字配置
処理部1は、受け取った新たな配置開始点Pa、Pbの
各(x,y)座標を、ワークエリア21に記憶し、配置
開始点Pa、Pbの座標を(i+1)番目の文字に対応
するフォントデータ用のものに更新する。The layout start point specifying unit 5 returns the new layout start points Pa and Pb thus obtained to the character layout processing unit 1. The character placement processing unit 1 stores the received (x, y) coordinates of the new placement start points Pa and Pb in the work area 21, and sets the coordinates of the placement start points Pa and Pb to the (i + 1) th character. Update to the one for the corresponding font data.
【0133】図4に戻って、次に、テキストデータを構
成する全文字について寸法、配置位置、色濃度を求めた
か否かを判定する(ステップS32)。全文字について
処理が終了していれば、ステップS34の終了処理に進
み、一方、全文字について処理が終了していなければ、
ステップS33の処理に進む。なお、ステップS34の
終了処理については後述する。Returning to FIG. 4, next, it is determined whether or not the dimensions, arrangement positions, and color densities have been obtained for all the characters that make up the text data (step S32). If the process has been completed for all characters, the process proceeds to the end process of step S34, while if the process has not been completed for all characters,
The process proceeds to step S33. The ending process of step S34 will be described later.
【0134】ステップS33では、処理変数iをインク
リメント(i=i+1)し処理対象の文字を次の文字に
してステップS22に戻り、新たに得られた配置開始点
Pa、Pbに基づき、その文字に対応するフォントデー
タの寸法、配置位置、色濃度を前述と同様にして求め
る。In step S33, the process variable i is incremented (i = i + 1) to set the character to be processed as the next character, and the process returns to step S22. Based on the newly obtained placement start points Pa and Pb, that character is selected. The size, arrangement position and color density of the corresponding font data are obtained in the same manner as described above.
【0135】例えば、2番目(i=2)の文字”バ”を
例に採ると、まず、ステップS22で、例えば図25に
示した2番目の文字に対応するフォントデータの配置開
始点Pa、Pbに基づき、2番目の文字に対応するフォ
ントデータの寸法を、図16(、図17)に示すように
組方向や長平体率等に応じて求める。For example, taking the second (i = 2) character "ba" as an example, first, at step S22, the arrangement start point Pa of the font data corresponding to the second character shown in FIG. 25, Based on Pb, the size of the font data corresponding to the second character is obtained according to the assembling direction, the long flat body ratio, etc. as shown in FIG. 16 (and FIG. 17).
【0136】次に、ステップS25で2番目の文字に対
応するフォントデータの仮想ボディの残りの2点Pc、
Pdを求め、ステップS26で2番目の文字に対応する
フォントデータの配置位置をPa、Pb、Pc、Pdか
ら決め、ステップS27で2番目の文字に対応するフォ
ントデータの色濃度を求める。Next, in step S25, the remaining two points Pc of the virtual body of the font data corresponding to the second character,
Pd is obtained, the arrangement position of the font data corresponding to the second character is determined from Pa, Pb, Pc, and Pd in step S26, and the color density of the font data corresponding to the second character is obtained in step S27.
【0137】そして、ステップS28〜S31で、例え
ば、図26(図26は、図20、図25に対応するもの
で、図21のように(点PS1、PS2のy座標)>(点P
eのy座標)の場合も同様である。)に示すように、次
の文字(3番目の文字)に対応するフォントデータの配
置開始点Pa、Pbを求め、同様に3番目の文字に対応
するフォントデータの寸法、配置位置、色濃度を求め
る。以後同様にして、全ての文字について処理が終わる
と、ステップS34の終了処理に進む。Then, in steps S28 to S31, for example, as shown in FIG. 26 (FIG. 26 corresponds to FIGS. 20 and 25, (y coordinate of points P S1 , P S2 )> (point P
The same applies to the case of the y coordinate of e). ), The placement start points Pa and Pb of the font data corresponding to the next character (third character) are obtained, and the size, placement position, and color density of the font data corresponding to the third character are similarly determined. Ask. After that, in the same manner, when the processing is completed for all the characters, the process proceeds to the ending processing of step S34.
【0138】ステップS34では、テキストデータの全
文字に対応する各フォントデータの寸法、配置位置、色
濃度が求められているので、組版データテーブル7の<
処理済文字数>のエリアに、テキストデータの文字数
(最後の文字を指しているi)を記憶する。次に、組版
補助データテーブル8の<エラー有無>のエリアに、正
常終了したこと示すコード(例えば、「0」)を記憶
し、<挿入処理時のPaのx座標>、<挿入処理時のP
aのy座標>、<挿入処理時のPbのx座標>、<挿入
処理時のPbのy座標>のエリアに、最後に求めたテキ
ストデータの最後の文字の次の文字(現在のテキストデ
ータには存在しない)の配置開始点Pa、Pbの各x座
標、各y座標をそれぞれ記憶する。すなわち、正常終了
したときには、組版補助データテーブル8には、点
PS1、点PS2、点Peの座標と、現在のテキストデータ
の最後の文字の次の文字の配置開始点Pa、Pbと、色
濃度の変化率αY 、αM 、αC 、αK 、αR 、αG 、α
B が記憶されることになり、これらデータを用いること
により、後で、現在のテキストデータに文字が挿入され
たときに、挿入された文字に対応するフォントデータの
寸法、配置位置、色濃度を求めることができる。In step S34, the size, arrangement position, and color density of each font data corresponding to all the characters of the text data are obtained.
The number of characters of the text data (i indicating the last character) is stored in the area of processed character number>. Next, a code indicating normal completion (for example, "0") is stored in the <presence / absence of error> area of the typesetting auxiliary data table 8, <x coordinate of Pa at the time of insertion processing>, <the time of insertion processing> P
In the area of y coordinate of a>, <x coordinate of Pb during insertion processing>, <y coordinate of Pb during insertion processing>, the character next to the last character of the last obtained text data (current text data X) and y coordinates of the arrangement start points Pa and Pb (which do not exist in the above) are stored respectively. That is, at the normal end, in the typesetting auxiliary data table 8, the coordinates of the point P S1 , the point P S2 , and the point Pe, and the arrangement start points Pa and Pb of the character next to the last character of the current text data, Change rate of color density α Y , α M , α C , α K , α R , α G , α
B will be stored, and by using these data, when a character is inserted in the current text data, the size, arrangement position, and color density of the font data corresponding to the inserted character will be displayed later. You can ask.
【0139】図2に戻って、テキストデータの各文字の
寸法、配置位置、色濃度を求める処理が終了すると、次
に、組版データテーブル7と組版補助データーテーブル
8に記憶されたデータを外部記憶装置18に記憶してお
く(ステップS5)。これは、今回編集したデータに基
づいて、以後いつでも出力等を行なえるようにするため
である。Returning to FIG. 2, when the processing for obtaining the size, arrangement position, and color density of each character of the text data is completed, the data stored in the typesetting data table 7 and the typesetting auxiliary data table 8 are externally stored. It is stored in the device 18 (step S5). This is so that the output etc. can be performed anytime thereafter based on the data edited this time.
【0140】次に、組版データテーブル7の内容に基づ
き、出力制御部12が、処理結果を表示装置14または
/およびプリンタ15に出力する(ステップ6)。な
お、表示装置14に表示するか、プリンタ15で印刷、
フィルムへの焼付けをするか、あるいは、その両方を行
なうかは、ユーザーにより任意に選択される。この出力
制御部12による出力処理の詳細を図5を参照して説明
する。Next, based on the contents of the formatted data table 7, the output control unit 12 outputs the processing result to the display device 14 and / or the printer 15 (step 6). In addition, it is displayed on the display device 14 or printed by the printer 15,
Whether the film is printed or both are arbitrarily selected by the user. Details of the output processing by the output control unit 12 will be described with reference to FIG.
【0141】まず、組版データテーブル7の<処理済文
字数>のエリアに記憶された処理済、すなわち、出力可
能な文字数が「0」である(出力可能なフォントデータ
が無い)か否かを判定し(ステップS41)、「0」で
なければ、出力可能なフォントデータがあるのでステッ
プS42に進み、一方、「0」であれば、出力可能なフ
ォントデータが無いので処理を終了する。なお、出力を
行なわずに処理を終了するとき、その旨をユーザーに知
らせるメッセージを表示装置14に表示してもよい。First, it is determined whether or not the processed characters stored in the <number of processed characters> area of the formatted data table 7, that is, the number of characters that can be output is “0” (there is no font data that can be output). If it is not "0" (step S41), there is font data that can be output, so the process proceeds to step S42. On the other hand, if it is "0", there is no font data that can be output, and the process ends. It should be noted that when the processing is ended without outputting, a message notifying the user may be displayed on the display device 14.
【0142】ステップS42では、処理変数iに「1」
をセットする。iは、現在の処理対象が何文字目かを示
すためのものである。In step S42, the processing variable i is "1".
Set. i is for indicating what character the current processing target is.
【0143】次に、組版データテーブル7の現在の処理
対象の文字処理データ部FAiから、現在の処理対象の
文字コードを読み出し、フォント格納部13からそのフ
ォントデータを読み出す(ステップS43)。Next, the character code of the current processing target is read from the character processing data section FAi of the current processing target of the typesetting data table 7, and the font data is read from the font storing section 13 (step S43).
【0144】次に、その文字処理データ部FAiから、
そのフォントデータの出力時の寸法を読み出し、ステッ
プS42で読み出したフォントデータを出力時の寸法に
縮小等して調整し、さらに、組版データテーブル7の<
長体率>、<平体率>のエリアから、設定された長体
率、平体率を読み出し、寸法が調整されたフォントデー
タを設定された長平体率に応じて文字幅または文字高さ
を圧縮する(ステップS44)。Next, from the character processing data portion FAi,
The size of the font data at the time of output is read, the font data read at step S42 is reduced to the size at the time of output, and the size is adjusted.
The set long body ratio and flat body ratio are read from the areas of long body ratio> and <flat body ratio>, and the font data whose size has been adjusted is adjusted according to the set long flat body ratio. Is compressed (step S44).
【0145】次に、文字処理データ部FAiの<配置位
置x>、<配置位置y>、<色濃度>のエリアから、そ
のフォントデータの出力時の配置位置(フォントデータ
の基準点)の座標と色濃度を読み出すとともに、組版デ
ータテーブル7の<回転角度θ>から回転角度θを読み
出し、ステップS43で寸法等が調整されたフォントデ
ータを配置位置に配置した状態から、配置位置(基準
点)を中心にして回転角度θ分回転させた状態で、読み
出した色濃度で出力する(ステップS45)。Next, from the areas of <arrangement position x>, <arrangement position y>, and <color density> of the character processing data portion FAi, the coordinates of the arrangement position (reference point of font data) at the time of outputting the font data. And the color density are read, the rotation angle θ is read from the <rotation angle θ> of the typesetting data table 7, and the font data whose dimensions and the like have been adjusted in step S43 is arranged at the layout position (reference point). The image is output with the read color density while being rotated by the rotation angle θ around (step S45).
【0146】例えば、図9(c)のように組版するので
あれば、回転角度θは「0°」であるので、寸法等が調
整された各フォントデータが、図27に示すように配置
される。なお、図27(a)は長体率、平体率がともに
設定されていない場合を示し、また、図27(b)は平
体率が設定されている場合の各フォントデータの配置状
態を示し、図27(c)は長体率が設定されている場合
の各フォントデータの配置状態を示す。図27(b)、
(c)では、”大”に対応するフォントデータのみ字面
を示しているが、”バーゲン”の各文字に対応する各フ
ォトデータの字面も、”大”と同様に、平体率、長体率
に応じて字面が圧縮されている。For example, in the case of typesetting as shown in FIG. 9C, the rotation angle θ is “0 °”, so that the font data of which the dimensions and the like have been adjusted are arranged as shown in FIG. It Note that FIG. 27A shows the case where neither the long body ratio nor the flat body ratio is set, and FIG. 27B shows the arrangement state of each font data when the flat body ratio is set. FIG. 27C shows the arrangement state of each font data when the length ratio is set. FIG. 27 (b),
In (c), only the font data corresponding to "Large" is shown, but the character faces of each photo data corresponding to each character of "Bargain" are the same as "Large". Characters are compressed according to the rate.
【0147】また、図9(a)に示すように組版するの
であれば、回転角度θは、「90°」であるので、最初
のフォントデータは、図28(a)の二点鎖線で示すよ
うに、フォントデータを配置位置P1 に配置した状態か
ら、配置位置P1 を中心として回転角度θ(「90
°」)分、所定方向(この場合、回転角度の符号が正で
あるので反時計回り)に回転した状態で配置されて出力
される。次に、2番目のフォントデータは、図28
(b)の二点鎖線で示すように、フォントデータを配置
位置P2 に配置した状態から、配置位置P2 を中心とし
て「90°」分、反時計回りに回転した状態で配置され
て出力される。なお、2番目のフォントデータの配置位
置は、最初のフォントデータの出力時の配置状態に応じ
て決めているので、図のような配置位置となっている。
残りのフォントデータも同様にして順次配置して出力さ
れる。全フォントデータの配置後の状態を図28(c)
に示す。なお、図28(a)〜(c)は長体率、平体率
がともに設定されていない場合である。また、平体率が
設定されている場合の最初のフォントデータの配置状態
と2番目のフォントデータの配置状態を図29(a)、
(b)に、長体率が設定されている場合の最初のフォン
トデータの配置状態と2番目のフォントデータの配置状
態を図29(c)、(d)に示す。Further, if the typesetting is performed as shown in FIG. 9A, the rotation angle θ is "90 °", so the first font data is shown by the chain double-dashed line in FIG. 28A. as such, from a state of arranging the font data on the position P 1, the rotation around the position P 1 angle theta ( "90
.Degree. ") And is output while being rotated in a predetermined direction (counterclockwise because the sign of the rotation angle is positive in this case). Next, the second font data is as shown in FIG.
As indicated by the chain double-dashed line in (b), from the state where the font data is arranged at the arrangement position P 2 , the font data is arranged counterclockwise by “90 °” about the arrangement position P 2 and outputted. To be done. The arrangement position of the second font data is determined according to the arrangement state at the time of outputting the first font data, and thus the arrangement position is as shown in the figure.
The remaining font data is sequentially arranged and output in the same manner. FIG. 28 (c) shows the state after arrangement of all font data.
Shown in Note that FIGS. 28A to 28C show a case where neither the long body ratio nor the flat body ratio is set. FIG. 29A shows the arrangement state of the first font data and the arrangement state of the second font data when the flatness rate is set.
FIG. 29C and FIG. 29D show the arrangement state of the first font data and the arrangement state of the second font data when the length ratio is set in FIG.
【0148】なお、図27、図28は、各点PS1、
PS2、Peの位置関係が、図20(e)の場合を示して
いるが、図20(a)〜(d)、(f)〜(i)、図2
1の各場合についても同様に、各フォントデータが点P
S1、PS2から点Peに収束するように配置される。27 and 28, the points P S1 and
The positional relationship between P S2, Pe is, the case of FIG. 20 (e), FIG. 20 (a) ~ (d) , (f) ~ (i), 2
Similarly, in each case of 1, each font data is point P.
It is arranged so as to converge from S1 , P S2 to the point Pe.
【0149】図9(b)、(d)の場合も、図9(a)
の場合と同様に、各フォントデータは、それぞれの配置
位置に配置した状態から、配置位置を中心として回転角
度θ(図9(b)の場合「−90°」、図9(d)の場
合「0°」)分、所定方向(図9(b)の場合、回転角
度の符号が負であるので時計回り)に回転した状態で配
置されて出力される。Also in the case of FIGS. 9B and 9D, FIG.
As in the case of, each font data is rotated from the state in which it is placed at each placement position to the rotation angle θ (“−90 °” in the case of FIG. 9B, and in the case of FIG. 9D). The output is arranged and rotated in a predetermined direction (clockwise because the sign of the rotation angle is negative in the case of FIG. 9B) by "0 °").
【0150】図5に戻って、出力可能なフォントデータ
の全ての出力が終了したか否かを判定する(ステップS
46)。全ての出力が終了したのであれば本実施例装置
の処理を終了し、一方、出力可能なフォントデータが残
っていれば処理変数iをインクリメント(i=i+1)
して(ステップS47)、ステップS43に戻って、次
のフォントデータの出力を行なう。Returning to FIG. 5, it is judged whether or not all the outputable font data has been output (step S
46). If all the outputs have been completed, the processing of the apparatus of this embodiment is ended, while if there is font data that can be output, the processing variable i is incremented (i = i + 1).
Then (step S47), the process returns to step S43 to output the next font data.
【0151】本実施例装置の処理が終了したとき、テキ
ストデータを構成する各文字に対応する各フォントデー
タが、点PS1、PS2から点Peに収束するように遠近配
置された状態で表示装置14に表示され、または/およ
び、プリンタ15で印刷、フィルムへの焼付けが行なわ
れる。When the processing of the apparatus of this embodiment is completed, each font data corresponding to each character forming the text data is displayed in a perspective arrangement so as to converge from the points P S1 and P S2 to the point Pe. Displayed on the device 14 and / or printed by the printer 15 and printed on film.
【0152】このように、出力される各フォントデータ
の仮想ボディは矩形であるので、出力されるフォントデ
ータの字面がことがなく、字面の基づいて自然な遠近配
置で組版される。また、本実施例では、各フォントデー
タを図形化するものではないので、図形化するための処
理は不要となる。As described above, since the virtual body of each font data to be output is a rectangle, there is no character face of the font data to be output, and the natural font arrangement is used for typesetting based on the character face. Further, in the present embodiment, since each font data is not made into a figure, the process for making it into a figure is unnecessary.
【0153】次に、上述の組版結果に対して、例えば、
最初の文字”大”に対応するフォントデータを、”超”
の文字に対応するフォントデータに修正する場合につい
て説明する。このとき、修正する”超”に対応するフォ
ントデータの寸法、配置位置、色濃度は、”大”に対応
するフォントデータの寸法、配置位置、色濃度のままで
よいので、組版データテーブル7の最初のフォントデー
タの文字処理データ部FA1の<文字コード>のエリア
に記憶されている”大”の文字コードを”超”の文字コ
ードに替えてやるだけでよい。このように再編集した組
版データテーブル7に基づき、上記図5の処理手順に従
って再度出力すれば、上述の組版結果の”大”に対応す
るフォントデータが、”超”に対応するフォントデータ
に修正されて出力される。Next, with respect to the above typesetting result, for example,
Set the font data corresponding to the first character "Large" to "Super"
A case where the font data corresponding to the character is corrected will be described. At this time, the size, arrangement position, and color density of the font data corresponding to “super” to be corrected may be the same as the size, arrangement position, and color density of the font data corresponding to “large”. It is only necessary to replace the "large" character code stored in the <character code> area of the character processing data portion FA1 of the first font data with the "super" character code. Based on the formatted data table 7 that has been re-edited in this way, if the data is output again in accordance with the processing procedure of FIG. 5, the font data corresponding to "Large" in the formatted result is corrected to font data corresponding to "super". Is output.
【0154】次に、”大バーゲン”に対する組版結果に
対して、例えば、3番目の文字”−”に対応するフォン
トデータを削除する場合について説明する。このとき、
現在の4番目と5番目の文字”ゲ”と”ン”に対応する
フォントデータを、3番目と4番目の文字”−”と”
ゲ”に対応するフォントデータの寸法、配置位置、色濃
度で配置、出力し、現在の5番目の文字”ン”に対応す
るフォントデータの配置位置に配置されるフォントデー
タを出力しないようにすればよい。Next, a case will be described in which, for example, the font data corresponding to the third character "-" is deleted from the typesetting result for "large bargain". At this time,
The font data corresponding to the current 4th and 5th characters "ge" and "n" are set to the 3rd and 4th characters "-" and "
The font data corresponding to the character "" is arranged and output with the size, arrangement position, and color density, and the font data arranged at the arrangement position of the font data corresponding to the fifth character "N" is not output. Good.
【0155】従って、まず、組版データテーブル7の3
番目の文字に対応するフォントデータの文字処理データ
部FA3の<文字コード>のエリアに、4番目の文字に
対応するフォントデータの文字処理データ部FA4の<
文字コード>のエリアに記憶された文字コード(”ゲ”
の文字コード)をセットし、4番目の文字に対応するフ
ォントデータの文字処理データ部FA4の<文字コード
>のエリアに、5番目の文字に対応するフォントデータ
の文字処理データ部FA5の<文字コード>のエリアに
記憶された文字コード(”ン”の文字コード)をセット
する。Therefore, first, 3 of the formatted data table 7
In the <character code> area of the character processing data portion FA3 of the font data corresponding to the fourth character, the <character code> area of the character processing data portion FA4 of the font data corresponding to the fourth character is displayed.
Character code stored in the character code> area ("ge")
Character code) of the font data corresponding to the fourth character and the <character code> of the character processing data part FA5 of the font data corresponding to the fifth character is set in the <character code> area of the character processing data part FA4 of the font data. Set the character code (character code of "n") stored in the code> area.
【0156】次に、組版データテーブル7のヘッダ部H
Aの<文字数>のエリアに記憶された文字数から削除す
る文字数(この場合「1」)を減算する。そして、減算
した結果の文字数MMと、組版データテーブル7のヘッ
ダ部HAの<処理済文字数>のエリアに記憶された処理
済の文字数SMとを比較し、SM>MMであれば、<処
理済文字数>のエリアに記憶された処理済の文字数をM
Mに置き換える。これは、出力可能なフォントデータの
数が、削除後のテキストデータの文字数よりも多くなら
ないよう調整したものである。なお、MM=SMのと
き、削除後の文字列に対応する全フォントデータは遠近
配置されて出力され、また、MM>SMのときには、
(MM−SM)の文字数分、削除後の文字列の後方の文
字に対応するフォントデータは依然出力されない。この
ように再編集した組版データテーブル7に基づき、上記
図5の処理手順に従って再度出力すれば、所定の文字の
対応するフォントデータが削除された状態で出力され
る。Next, the header portion H of the formatted data table 7
The number of characters to be deleted (“1” in this case) is subtracted from the number of characters stored in the <character number> area of A. Then, the number of characters MM obtained as a result of the subtraction is compared with the number of processed characters SM stored in the <number of processed characters> area of the header portion HA of the formatted data table 7. The number of processed characters stored in the number of characters> area is M
Replace with M. This is adjusted so that the number of font data that can be output does not exceed the number of characters of the text data after deletion. Note that when MM = SM, all font data corresponding to the deleted character string is output in a perspective arrangement, and when MM> SM,
The font data corresponding to the characters after the deleted character string by the number of (MM-SM) characters are still not output. If the data is output again in accordance with the processing procedure of FIG. 5 based on the typesetting data table 7 thus edited again, the font data corresponding to a predetermined character is output in a deleted state.
【0157】なお、上述の方法で出力したとき、出力さ
れる色濃度は、例えば、Yの網%を例に採ると、図30
(a)に示すように、各フォントデータの色濃度は、開
始色濃度から、削除後の最後の文字に対応するフォント
データの色濃度まで、上記処理で求めた色濃度の変化率
αY で徐々に変化するものである。これを、図30
(b)に示すように、削除後の文字列の最後の文字の色
濃度を、設定された終了色濃度にして、削除後の文字列
に対応する各フォントデータに対して、開始色濃度から
終了色濃度まで徐々に変化するように、各フォントデー
タの色濃度の変化率αY ’を、図2のステップS3の処
理で説明した方法で新たに求めた後、各フォントデータ
の色濃度を求め直すようにしてもよい。なお、このと
き、開始色濃度と終了色濃度とは、例えば、組版補助デ
ータテーブル8に記憶しておけばよい。It should be noted that when the output is performed by the above method, the output color density is, for example, Y halftone%, as shown in FIG.
As shown in (a), the color density of each font data is from the start color density to the color density of the font data corresponding to the last character after deletion, with the change rate α Y of the color density obtained by the above process. It changes gradually. This is shown in FIG.
As shown in (b), the color density of the last character of the deleted character string is set to the set end color density, and for each font data corresponding to the deleted character string, from the start color density After the color density change rate α Y 'of each font data is newly obtained by the method described in the process of step S3 of FIG. 2 so that the color density gradually changes to the end color density, the color density of each font data is calculated. You may ask again. At this time, the start color density and the end color density may be stored in the typesetting auxiliary data table 8, for example.
【0158】次に、”大バーゲン”に対する組版結果に
対して、例えば、最初の文字”大”に対応するフォント
データと2番目の文字”バ”に対応するフォントデータ
との間に、”!”に対応するフォントデータを挿入する
場合について説明する。このとき、現在の最後のフォン
トデータの後に、挿入する文字数(この場合「1」)分
のフォントデータを出力するための、寸法、配置位置、
色濃度を新たに求め、現在の2番目の文字”バ”に対応
するフォントデータの寸法、配置位置、色濃度で、挿入
する”!”に対応するフォントデータを出力し、現在の
2番目〜5番目の文字”バ”、”ー”、”ゲ”、”ン”
に対応するフォントデータを、現在の3番目〜5番目の
文字”−”、”ゲ”、”ン”に対応するフォントデータ
の寸法、配置位置、色濃度、および新たに求めた寸法、
配置位置、色濃度で配置、出力し、新たに求められた寸
法、配置位置、色濃度で出力するフォントデータまで出
力できるようにすればよい。Next, for the typesetting result for "large bargain", for example, between the font data corresponding to the first character "large" and the font data corresponding to the second character "ba", "! A case of inserting font data corresponding to "" will be described. At this time, after the current last font data, the size, the layout position, and the like for outputting the font data for the number of characters to be inserted (in this case, "1"),
The color density is newly obtained, and the font data corresponding to the "!" To be inserted is output according to the size, arrangement position, and color density of the font data corresponding to the current second character "B". Fifth character "ba", "-", "ge", "n"
The font data corresponding to the current third to fifth characters "-", "ge", "n", the font data size, arrangement position, color density, and the newly obtained size,
It suffices to arrange and output the arrangement position and the color density, and output the font data to be output with the newly obtained dimension, arrangement position, and color density.
【0159】まず、組版補助データテーブル8(図13
参照)の<エラー有無>に記憶されているコードを調
べ、先の組版処理時にエラー終了していれば(コードが
「0」以外であれば)、挿入する文字数分のフォントデ
ータを出力するための、寸法、配置位置、色濃度を新た
に求めることができないので、その旨をユーザーに知ら
せるメッセージを表示装置14に表示し、文字コードの
シフトを行なう。すなわち、新たにフォントデータを挿
入する位置に現在出力されているフォントデータ(この
場合2番目)に対する組版データテーブル7のフォント
データの文字処理データ部FAi(FA2)〜処理済の
文字数(<処理済文字数>のエリアに記憶されている)
番目の文字に対応するフォントデータの文字処理データ
部FAjの各<文字コード>のエリアに記憶されている
文字コードを、挿入する文字数分後ろにシフトしてい
く。そして、新たにフォントデータを挿入する位置に現
在出力されているフォントデータに対する組版データテ
ーブル7のフォントデータの文字処理データ部FAiの
<文字コード>のエリアに、挿入するフォントデータに
対応する文字コードをセットする。このように再編集し
た組版データテーブル7に基づき、上記図5の処理手順
に従って再度出力すれば、フォントデータが挿入された
状態で、出力可能なフォントデータの組版結果が出力さ
れる。なお、挿入するフォントデータの位置が、出力可
能なフォントデータよりも後ろであれば、挿入された結
果は反映されないので、上述のような文字のシフトは特
に行なわなくともよい。First, the typesetting auxiliary data table 8 (see FIG. 13).
Check the code stored in <Presence / absence of error> in (Refer to), and if there is an error in the previous typesetting process (if the code is other than “0”), to output the font data for the number of characters to be inserted. Since it is not possible to newly obtain the size, arrangement position and color density, a message notifying the user of that fact is displayed on the display device 14 and the character code is shifted. That is, the character processing data portion FAi (FA2) of the font data of the typesetting data table 7 for the font data (the second in this case) currently output at the position where the new font data is to be inserted-the number of processed characters (<processed (It is stored in the area of the number of characters>)
The character code stored in each <character code> area of the character processing data portion FAj of the font data corresponding to the th character is shifted backward by the number of characters to be inserted. Then, in the <character code> area of the character processing data portion FAi of the font data of the formatted data table 7 for the font data currently output at the position where the new font data is to be inserted, the character code corresponding to the font data to be inserted. Set. Based on the typesetting data table 7 that has been re-edited in this way, if the data is output again according to the processing procedure of FIG. 5, the typesetting result of the font data that can be output is output with the font data inserted. If the position of the font data to be inserted is after the font data that can be output, the result of the insertion will not be reflected, and therefore the above character shift need not be performed.
【0160】また、組版補助データテーブル8の<エラ
ー有無>に記憶されているコードが「0」であれば、現
在の最後の文字のフォントデータの後に、フォントデー
タを出力するための、寸法、配置位置、色濃度を新たに
求める。すなわち、組版補助データテーブル8に記憶さ
れている点PS1、点PS2、点Peの座標と、現在の最後
の文字のフォントデータの次のフォントデータの配置開
始点Pa、Pbの座標と、各フォントデータの色濃度の
変化率とを用い、図4と同様の手順に従って、現在の最
後の文字のフォントデータの後に、挿入する文字数分の
フォントデータを出力するための、寸法、配置位置、色
濃度を求める。なお、挿入するフォントデータの数が多
く、挿入する文字数分のフォントデータの寸法等が求め
られなかったときには、出力可能なフォントデータまで
について以下の処理を行なう。If the code stored in <presence / absence of error> of the typesetting auxiliary data table 8 is “0”, the size for outputting the font data after the font data of the current last character, Arrangement position and color density are newly obtained. That is, the coordinates of the points P S1 , P S2 , and Pe stored in the typesetting auxiliary data table 8 and the coordinates of the placement start points Pa and Pb of the font data next to the font data of the last character at the present, By using the change rate of the color density of each font data and following the same procedure as in FIG. 4, the size, the layout position, and the like for outputting the font data for the number of characters to be inserted after the font data of the current last character, Calculate the color density. If the number of font data to be inserted is large and the size of the font data for the number of characters to be inserted cannot be obtained, the following processing is performed up to the font data that can be output.
【0161】次に、組版データテーブル7の<文字数>
のエリアに記憶されている挿入前のテキストデータの文
字数に、挿入する文字数を加算した結果を、組版データ
テーブル7の<文字数>のエリアに記憶するとともに、
組版データテーブル7の<処理済文字数>のエリアに記
憶されている挿入前のテキストデータの処理済の文字数
に、新たに出力可能となったフォントデータの数を加算
した結果を、組版データテーブル7の<処理済文字数>
のエリアに記憶する。そして、組版データテーブル7の
各フォントデータの文字処理データ部FAnの<文字コ
ード>に記憶されている文字コードに対して、上述と同
様の文字コードのシフトを行なうとともに、挿入する文
字の文字コードを所定のフォントデータの文字処理デー
タ部FAnの<文字コード>にセットする。このように
再編集した組版データテーブル7に基づき、上記図5の
処理手順に従って再度出力すれば、所定の文字が挿入さ
れた文字列に対応する各フォントデータが、点PS1、点
PS2から点Peに収束するように遠近配置されて出力さ
れる。Next, <number of characters> in the formatted data table 7
The result of adding the number of characters to be inserted to the number of characters of the text data before insertion stored in the area is stored in the <number of characters> area of the formatted data table 7, and
The result of adding the number of newly outputable font data to the number of processed characters of the text data before insertion stored in the <number of processed characters> area of the formatted data table 7 is the formatted data table 7 <Number of processed characters>
Store in the area. Then, with respect to the character code stored in <character code> of the character processing data portion FAn of each font data of the typesetting data table 7, the same character code shift as described above is performed and the character code of the character to be inserted. Is set in the <character code> of the character processing data portion FAn of the predetermined font data. Based on the typesetting data table 7 re-edited in this way, if it is output again in accordance with the processing procedure of FIG. 5, each font data corresponding to the character string in which a predetermined character is inserted is obtained from the points P S1 and P S2. The data is output in a perspective arrangement so as to converge to the point Pe.
【0162】なお、このフォントデータの挿入の処理に
おいても、上述のフォントデータの削除の処理と同様
に、挿入後の文字列に対応する各フォントデータに対し
て、開始色濃度から終了色濃度まで徐々に変化するよう
に構成してもよい。このとき、組版補助データテーブル
8に記憶されている各フォントデータの色濃度の変化率
に替えて開始色濃度と終了色濃度とを記憶するようにす
ればよい。In the process of inserting the font data, similarly to the process of deleting the font data, from the start color density to the end color density for each font data corresponding to the inserted character string. You may comprise so that it may change gradually. At this time, the start color density and the end color density may be stored instead of the change rate of the color density of each font data stored in the typesetting auxiliary data table 8.
【0163】このように、組版結果に対してフォントデ
ータの修正や削除、挿入の処理は、主に文字コードの変
更やシフト等で対応することができるので、従来例に比
べて、これら修正や削除、挿入に柔軟に対応することが
できる。As described above, the correction, deletion, and insertion of the font data with respect to the typesetting result can be dealt with mainly by changing the character code, shifting, and the like. It is possible to flexibly deal with deletion and insertion.
【0164】なお、この組版結果に対するフォントデー
タの修正、削除、挿入の処理は、後述する処理(処理パ
ターン2、3)や以下の実施例に対しても同様に行なう
ことができるので、後述する処理や以下の実施例では、
この説明は省略する。The correction, deletion, and insertion processing of font data for this typesetting result can be performed in the same manner for the processing (processing patterns 2 and 3) described later and the following embodiments, and will be described later. In the process and in the examples below,
This description is omitted.
【0165】次に、上述した第一実施例装置において、
例えば、図31に示すように、最初の文字に対応するフ
ォントデータの配置開始点PS1とPS2とを結ぶ線分SL
が、出力領域のy軸に平行(あるいはy軸上に)設定さ
れた場合の、各フォントデータの寸法、配置位置等の求
め方等について説明する。なお、この処理を『処理パタ
ーン2』という。Next, in the above-mentioned first embodiment apparatus,
For example, as shown in FIG. 31, a line segment SL connecting the arrangement start points P S1 and P S2 of the font data corresponding to the first character
Will be described, when the size of each font data, the arrangement position, etc., are set in parallel with the y axis of the output area (or on the y axis). Note that this processing is called "processing pattern 2".
【0166】まず、図2のステップS1でテキストデー
タ(”大バーゲン”が入力されたとする)と、ステップ
S2(図3のフローチャート)で最初の文字に対応する
フォントデータの配置開始点PS1とPS2、収束点Pe、
組方向指示、長平体率、開始色濃度、終了色濃度が設定
される。設定された点PS1、点PS2、点Peの各座標を
(xS1,yS1)、(xS2,yS2)、(xe ,ye )(図
31参照)とする。ただし、xS1=xS2である。この場
合の点PS1、点PS2、点Peの設定の仕方と組方向指示
に応じた出力時の各フォントデータの配列のパターンを
図32に示す。図32(a)、(c)は、(点PS1、点
PS2のx座標)<(点Peのx座標)の場合の横組み、
縦組みのフォントデータの配列状態を示し、図32
(b)、(d)は、(点PS1、点PS2のx座標)>(点
Peのx座標)の場合の横組み、縦組みのフォントデー
タの配列状態を示す。また、図中の符号P1 〜P5 は、
各フォントデータの出力時の配置位置(フォントデータ
の仮想ボディの左下の基準点)を示す。First, in step S1 of FIG. 2, text data (assuming that "large bargain" is input) and in step S2 (flowchart of FIG. 3) the font data arrangement start point P S1 corresponding to the first character P S2 , convergence point Pe,
A set direction instruction, a long flat body ratio, a start color density, and an end color density are set. The coordinates of the set point P S1 , point P S2 , and point Pe are (x S1 , y S1 ), (x S2 , y S2 ), and (x e , y e ) (see FIG. 31). However, x S1 = x S2 . FIG. 32 shows a pattern of arrangement of each font data at the time of output according to the setting method of the points P S1 , P S2 and the point Pe and the set direction instruction in this case. 32A and 32C are horizontal composition in the case of (x coordinate of point P S1 , point P S2 ) <(x coordinate of point Pe),
FIG. 32 shows the arrangement state of vertically set font data.
(B) and (d) show the arrangement state of horizontal and vertical font data in the case of (x coordinate of point P S1 , point P S2 )> (x coordinate of point Pe). The symbols P 1 to P 5 in the figure are
The layout position (the lower left reference point of the virtual body of the font data) at the time of outputting each font data is shown.
【0167】次に、図2のステップS3の前処理を行な
う。この前処理で、上記処理パターン1と異なるのは、
出力時のフォントデータの回転角度θである。図32か
らも明らかなように、この処理パターン2の場合、(点
PS1、点PS2のx座標)<(点Peのx座標)で横組み
のとき(図32(a)のとき)、出力時のフォントデー
タの回転角度θが「0°」となり、(点PS1、点PS2の
x座標)>(点Peのx座標)で横組みの場とき(図3
2(b)のとき)、出力時のフォントデータの回転角度
θが「180°」(または「−180°」)となり、
(点PS1、点PS2のx座標)<(点Peのx座標)また
は(点PS1、点PS2のx座標)>(点Peのx座標)で
縦組みのとき(図32(c)、(d)のとき)、出力時
のフォントデータの回転角度θが「−90°」(または
「270°」)となる。Next, the preprocessing of step S3 in FIG. 2 is performed. This pre-processing differs from the above processing pattern 1 in that
It is the rotation angle θ of the font data at the time of output. As is clear from FIG. 32, in the case of this processing pattern 2, (x coordinate of point P S1 , point P S2 ) <(x coordinate of point Pe) and horizontal writing (in FIG. 32 (a)) When the rotation angle θ of the font data at the time of output becomes “0 °” and (x coordinate of point P S1 , point P S2 )> (x coordinate of point Pe) is in horizontal writing mode (FIG. 3).
2 (b)), the rotation angle θ of the font data at the time of output becomes “180 °” (or “−180 °”),
When (x coordinate of point P S1 , point P S2 ) <(x coordinate of point Pe) or (x coordinate of point P S1 , point P S2 )> (x coordinate of point Pe) is set vertically (FIG. 32 ( (c) and (d)), the rotation angle θ of the font data at the time of output becomes “−90 °” (or “270 °”).
【0168】次に、図2のステップS4の各フォントデ
ータの寸法、配置位置、色濃度を求める処理を実行す
る。ここで、上述の処理パターン1と異なるのは、ステ
ップS22、S25、S26、S28、S31(図4参
照)である。以下に、これらの処理について説明する。Next, the processing for obtaining the size, arrangement position and color density of each font data in step S4 of FIG. 2 is executed. Here, steps S22, S25, S26, S28, and S31 (see FIG. 4) are different from the processing pattern 1 described above. These processes will be described below.
【0169】まず、ステップS22のフォントデータの
寸法の算出は、寸法特定部4が、文字配置処理部1から
受け取った、現在の処理対象の文字に対応するフォント
データの配置開始点Pa、Pbに基づき、以下のように
そのフォントデータの寸法を求める。なお、この処理パ
ターン2のように点PS1と点PS2とを結ぶ線分が、出力
領域のy軸に平行(あるいはy軸上に)設定された場合
には、与えられる配置開始点Pa、Pbのx座標は同じ
になる。従って、ここでは、与えられる配置開始点P
a、Pbの座標を(xa ,ya )、(xa ,yb )とし
て、図33、図34を参照して、寸法の求め方を説明す
る。First, in the calculation of the size of the font data in step S22, the size specifying unit 4 receives the arrangement start points Pa and Pb of the font data received from the character arrangement processing unit 1 and corresponding to the current character to be processed. Based on this, the size of the font data is obtained as follows. When the line segment connecting the point P S1 and the point P S2 is set in parallel (or on the y axis) of the output area as in this processing pattern 2, the given arrangement start point Pa , Pb have the same x coordinate. Therefore, here, the given placement start point P
a, coordinates of Pb as (x a, y a), (x a, y b), FIG. 33, with reference to FIG. 34, illustrating how to obtain dimensions.
【0170】図33(a)、(c)、(e)は、図32
(a)に対応する場合であって、長平体率が設定されて
いない場合、平体率が設定されている場合、長体率が設
定されている場合を示し、図33(b)、(d)、
(f)は、図32(c)に対応する場合であって、長平
体率が設定されていない場合、長体率が設定されている
場合、平体率が設定されている場合を示す。また、図3
4(a)、(c)、(e)は、図32(b)に対応する
場合であって、長平体率が設定されていない場合、平体
率が設定されている場合、長体率が設定されている場合
を示し、図34(b)、(d)、(f)は、図32
(d)に対応する場合であって、長平体率が設定されて
いない場合、長体率が設定されている場合、平体率が設
定されている場合を示す。FIGS. 33 (a), 33 (c) and 33 (e) are shown in FIG.
33 (b) and (b) correspond to the case (a), where the long flat body ratio is not set, the flat body ratio is set, and the long body ratio is set. d),
32F shows a case corresponding to FIG. 32C, showing a case where the long flat body ratio is not set, a case where the long body ratio is set, and a case where the flat body ratio is set. Also, FIG.
4 (a), (c), and (e) correspond to FIG. 32 (b), where the long flat body ratio is not set, the flat body ratio is set, and the long body ratio is set. Is set, and FIGS. 34 (b), (d), and (f) show FIG.
In the case corresponding to (d), the case where the long flat body ratio is not set, the case where the long body ratio is set, and the case where the flat body ratio is set are shown.
【0171】図33、図34中の文字高さYと文字幅X
とは同じである。従って、図33、図34の(a)、
(b)、(e)、(f)の場合のフォントデータの寸法
は、図からも明らかなように、与えられたPa、Pb間
の長さとなる。このPa、Pb間の長さLは以下の式で
算出することができる。 L=|yb −ya | ……… (22-11)Character height Y and character width X in FIGS. 33 and 34.
Is the same as. Therefore, in FIGS. 33 and 34 (a),
In the cases of (b), (e), and (f), the size of the font data is the length between given Pa and Pb, as is clear from the figure. The length L between Pa and Pb can be calculated by the following formula. L = | y b -y a | ......... (22-11)
【0172】従って、寸法特定部4は、図33、図34
の(a)、(b)、(e)、(f)の場合には、式 (22
-11)で求めたLをフォントデータの寸法として文字配置
処理部1に返す。Therefore, the dimension specifying unit 4 is provided with the configuration shown in FIGS.
In the case of (a), (b), (e), and (f) of
-11) L is returned to the character arrangement processing unit 1 as the size of the font data.
【0173】図33、図34の(c)は、平体率(hp
%)で文字高さYが圧縮された長さY’が、Pa、Pb
間の長さである。従って、文字高さが圧縮される前の文
字高さYは以下の式で求めることができる。 100:(100−hp)=Y:Y’ Y=(100・Y’)/(100−hp) =(100・L)/(100−hp) ……… (22-12) ここで、Lは、上記式 (22-11)で求められるPa、Pb
間の長さである。33 (c) shows the flatness ratio (hp
%), The length Y'compressed with the character height Y is Pa, Pb
The length is between. Therefore, the character height Y before the character height is compressed can be obtained by the following formula. 100: (100-hp) = Y: Y 'Y = (100.Y') / (100-hp) = (100.L) / (100-hp) ... (22-12) Here, L Is Pa, Pb calculated by the above equation (22-11).
The length is between.
【0174】この場合のフォントデータの寸法は、文字
高さY×文字幅X(=Y)のフォントデータの寸法であ
るので、寸法特定部4は、図33、図34の(c)の場
合には、式 (22-12)で求めたYをフォントデータの寸法
として文字配置処理部1に返す。Since the size of the font data in this case is the size of the font data of character height Y × character width X (= Y), the size specifying unit 4 determines the case of FIG. 33 and FIG. 34 (c). , The Y obtained by equation (22-12) is returned to the character arrangement processing unit 1 as the size of the font data.
【0175】図33、図34の(d)は、長体率(lp
%)で文字幅Xが圧縮された長さX’が、Pa、Pb間
の長さである。従って、文字幅が圧縮される前の文字幅
Xは以下の式で求めることができる。 X=(100・X’)/(100−lp) =(100・L)/(100−lp) ……… (22-13) ここで、Lは、上記式 (22-11)で求められるPa、Pb
間の長さである。33 (d) and FIG. 34 (d) show the length ratio (lp
%), The length X ′ obtained by compressing the character width X is the length between Pa and Pb. Therefore, the character width X before the character width is compressed can be obtained by the following formula. X = (100 * X ') / (100-lp) = (100 * L) / (100-lp) ... (22-13) Here, L is calculated | required by said Formula (22-11). Pa, Pb
The length is between.
【0176】この場合のフォントデータの寸法は、文字
幅X×文字高さY(=X)のフォントデータの寸法であ
るので、寸法特定部4は、図33、図34の(d)の場
合には、式 (22-13)で求めたXをフォントデータの寸法
として文字配置処理部1に返す。Since the size of the font data in this case is the size of the font data of character width X × character height Y (= X), the size specifying unit 4 determines the case of FIG. 33 and FIG. 34 (d). , The X obtained by equation (22-13) is returned to the character arrangement processing unit 1 as the size of the font data.
【0177】次に、ステップS25の処理では、文字配
置処理部1が、フォントデータの仮想ボディIBの四隅
の点の、点Pa、Pb以外の2点Pc、Pdの座標を求
める。この求め方を図33、図34を参照して以下に説
明する。Next, in the processing of step S25, the character arrangement processing unit 1 obtains the coordinates of the two points Pc and Pd other than the points Pa and Pb at the four corner points of the virtual body IB of the font data. How to obtain this will be described below with reference to FIGS. 33 and 34.
【0178】図33、図34から明らかなように、図3
3、図34の各場合における点Pc、Pdの各y座標は
それぞれ配置開始点Pa、Pbのy座標と同じである。
すなわち、点Pc、Pdの各y座標yc 、yd は以下の
式で求められる。 yc =ya yd =yb ……… (25-11) ただし、ya 、yb は、上記したように点Pa、Pbの
各y座標である。As is apparent from FIGS. 33 and 34, FIG.
3, the y-coordinates of the points Pc and Pd in each case of FIG. 34 are the same as the y-coordinates of the arrangement start points Pa and Pb, respectively.
That is, the y-coordinates y c and y d of the points Pc and Pd are obtained by the following equations. y c = y a y d = y b (25-11) where y a and y b are the y coordinates of the points Pa and Pb as described above.
【0179】次に、点Pc、Pdの各x座標xc 、xd
の求め方について、図33、図34の各場合に分けて説
明する。Next, the respective x-coordinates x c , x d of the points Pc, Pd
The method of obtaining is described separately for each case of FIGS. 33 and 34.
【0180】まず、図33(a)、(b)、(c)、
(d)では、点Pc、Pdのx座標は、それぞれ配置開
始点Pa、Pbのx座標に文字幅Xまたは文字高さY
(X=Y)を加算したものである。従って、この場合の
点Pc、Pdの各x座標xc 、xd は、以下の式で求め
られる。 xc =xd =xa +L ……… (25-12) ただし、xa は、上記したように点PaとPbのx座標
であり、Lは、ステップS22で求めたフォントデータ
の寸法である。First, FIGS. 33 (a), (b), (c),
In (d), the x-coordinates of the points Pc and Pd have the character width X or the character height Y at the x-coordinates of the arrangement start points Pa and Pb, respectively.
(X = Y) is added. Therefore, the x-coordinates x c and x d of the points Pc and Pd in this case are calculated by the following formulas. x c = x d = x a + L (25-12) where x a is the x coordinate of the points Pa and Pb as described above, and L is the size of the font data obtained in step S22. is there.
【0181】また、図34(a)、(b)、(c)、
(d)では、点Pc、Pdのx座標は、それぞれ配置開
始点Pa、Pbのx座標から文字幅Xまたは文字高さY
(X=Y)を減算したものである。従って、この場合の
点Pc、Pdの各x座標xc 、xd は、上式(25-12) の
式内の「+」を「−」に代えた式で求めることができ
る。Further, FIGS. 34 (a), (b), (c),
In (d), the x-coordinates of the points Pc and Pd are the character width X or the character height Y from the x-coordinates of the arrangement start points Pa and Pb, respectively.
(X = Y) is subtracted. Therefore, the x-coordinates x c and x d of the points Pc and Pd in this case can be obtained by an equation in which “+” in the equation (25-12) is replaced with “−”.
【0182】次に、図33(e)の場合、点Pc、Pd
のx座標は、それぞれ配置開始点Pa、Pbのx座標
に、長体率lp分圧縮した文字幅X’を加算したもので
ある。従って、この場合、点Pc、Pdの各x座標
xc 、xd は、以下の式で求められる。 xc =xd =xa +(L×(100−lp)/100)) ……… (25-13)Next, in the case of FIG. 33 (e), points Pc and Pd
The x-coordinate of is the sum of the x-coordinates of the placement start points Pa and Pb and the character width X ′ compressed by the length ratio lp. Therefore, in this case, the x-coordinates x c and x d of the points Pc and Pd are obtained by the following equations. x c = x d = x a + (L × (100-lp) / 100)) ……… (25-13)
【0183】また、図34(e)では、点Pc、Pdの
x座標は、それぞれ配置開始点Pa、Pbのx座標か
ら、長体率lp分圧縮した文字幅X’を減算したもので
ある。従って、この場合の点Pc、Pdの各x座標
xc 、xd は、上式(25-13) の式内の「+」を「−」に
代えた式で求めることができる。Further, in FIG. 34E, the x-coordinates of the points Pc and Pd are obtained by subtracting the character width X'compressed by the length ratio lp from the x-coordinates of the arrangement start points Pa and Pb, respectively. . Therefore, the x-coordinates x c and x d of the points Pc and Pd in this case can be obtained by an equation in which “+” in the equation (25-13) is replaced with “−”.
【0184】次に、図33(f)の場合、点Pc、Pd
のx座標は、それぞれ配置開始点Pa、Pbのx座標
に、平体率hp分圧縮した文字高さY’を加算したもの
である。従って、この場合、点Pc、Pdの各x座標x
c 、xd は、以下の式で求められる。 xc =xd =xa +(L×(100−hp)/100)) ……… (25-14)Next, in the case of FIG. 33 (f), points Pc and Pd
The x-coordinate of is the sum of the x-coordinates of the placement start points Pa and Pb and the character height Y ′ compressed by the flatness rate hp. Therefore, in this case, each x coordinate x of the points Pc and Pd
c and xd are calculated by the following equations. x c = x d = x a + (L × (100−hp) / 100)) ……… (25-14)
【0185】また、図34(f)では、点Pc、Pdの
x座標は、それぞれ配置開始点Pa、Pbのx座標か
ら、平体率hp分圧縮した文字高さY’を減算したもの
である。従って、この場合の点Pc、Pdの各x座標x
c 、xd は、上式(25-14) の式内の「+」を「−」に代
えた式で求めることができる。Further, in FIG. 34 (f), the x-coordinates of the points Pc and Pd are obtained by subtracting the character height Y ′ compressed by the flatness rate hp from the x-coordinates of the arrangement start points Pa and Pb, respectively. is there. Therefore, in this case, each x coordinate x of the points Pc and Pd
c and xd can be obtained by an equation in which "+" is replaced with "-" in the equation (25-14).
【0186】次に、ステップS26では、文字配置処理
部1が、点PS1、PS2、Peの位置関係や組方向に基づ
き、点Pa、Pb、Pc、Pdの中から、フォントデー
タの配置位置(仮想ボディの基準点)を決める。Next, in step S26, the character arrangement processing unit 1 arranges the font data from the points Pa, Pb, Pc, Pd based on the positional relationship of the points P S1 , P S2 , Pe and the set direction. Determine the position (reference point of virtual body).
【0187】これは、図33、34から明らかなよう
に、図33(a)、(c)、(e)では、点Pbが仮想
ボディIBの左下となり、図33(b)、(d)、
(f)、図34(a)、(c)、(e)では、点Paが
仮想ボディIBの左下となり、図34(b)、(d)、
(f)では、点Pcが仮想ボディIBの左下となる。As is apparent from FIGS. 33 and 34, the point Pb is located at the lower left of the virtual body IB in FIGS. 33 (a), 33 (c) and 33 (e), and FIGS. 33 (b) and 33 (d). ,
In (f), FIGS. 34 (a), (c), and (e), the point Pa is at the lower left of the virtual body IB, and FIGS. 34 (b), (d),
In (f), the point Pc is at the lower left of the virtual body IB.
【0188】従って、(PS1、PS2のx座標)<(Pe
のx座標)で横組みのときには、配置位置は点Pbの座
標となり、また、(PS1、PS2のx座標)<(Peのx
座標)で縦組みのときと(PS1、PS2のx座標)>(P
eのx座標)で横組みのときには、配置位置は点Paの
座標となり、さらに、(PS1、PS2のx座標)>(Pe
のx座標)で縦組みのときには、配置位置は点Pcの座
標となる。Therefore, (x coordinate of P S1 , P S2 ) <(Pe
In horizontal writing mode, the arrangement position becomes the coordinate of the point Pb, and (x coordinate of P S1 , P S2 ) <(x of Pe)
(Vertical coordinates) and (x coordinate of P S1 , P S2 )> (P
In the horizontal writing mode (x coordinate of e), the arrangement position becomes the coordinate of the point Pa, and further, (x coordinate of P S1 , P S2 )> (Pe
(X coordinate) of the vertical position, the arrangement position is the coordinate of the point Pc.
【0189】次に、ステップS28では、配置開始点特
定部5が、点PS1、点PS2、点Pe、点Pa、点Pb、
点Pc、点Pdに基づき、現在の処理対象の文字に対応
するフォントデータを出力時の状態に仮想的に配置した
ときの、点PS1と点Peとを結ぶ線分および点PS2と点
Peとを結ぶ線分と、現在の処理対象文字に対応するフ
ォントデータの仮想ボディとの交点を求めるが、この処
理パターン2の場合の交点の求め方を以下に説明する。[0189] Next, in step S28, the arrangement start point specifying unit 5, a point P S1, the point P S2, the point Pe, the point Pa, the point Pb,
A line segment connecting the point P S1 and the point Pe and the point P S2 and the point when the font data corresponding to the current character to be processed is virtually arranged in the output state based on the points Pc and Pd. The intersection of the line segment connecting Pe and the virtual body of the font data corresponding to the current character to be processed is obtained. The method of obtaining the intersection in the case of this processing pattern 2 will be described below.
【0190】この場合も、点PS1と点Peとを結ぶ線分
および点PS2と点Peとを結ぶ線分と、現在の処理対象
文字に対応するフォントデータの仮想ボディIBとの交
点が存在するのは、上記処理パターン1と同様に、以下
の(1) 〜(4) の場合のみである。Also in this case, the intersection of the line segment connecting the point P S1 and the point Pe and the line segment connecting the point P S2 and the point Pe with the virtual body IB of the font data corresponding to the current character to be processed is determined. As in the case of the processing pattern 1, only the following cases (1) to (4) exist.
【0191】(1) 点PS1と点Peとを結ぶ線分と、点P
cと点Pdとを結ぶ線分との交点 (2) 点PS1と点Peとを結ぶ線分と、点Pbと点Pdと
を結ぶ線分との交点 (3) 点PS2と点Peとを結ぶ線分と、点Paと点Pcと
を結ぶ線分との交点 (4) 点PS2と点Peとを結ぶ線分と、点Pcと点Pdと
を結ぶ線分との交点(1) A line segment connecting the point P S1 and the point Pe and the point P
Intersection point of line segment connecting c and point Pd (2) Intersection point of line segment connecting point P S1 and point Pe and line segment connecting point Pb and point Pd (3) Point P S2 and point Pe An intersection of the line segment connecting the point P and the line segment connecting the point Pa and the point Pc (4) The intersection of the line segment connecting the point P S2 and the point Pe and the line segment connecting the point Pc and the point Pd
【0192】また、点PS1と点Peとを結ぶ線分を含む
1次関数を〔y=a11・x+b11〕とすると、a11、b
11は、点PS1と点Peの座標(xS1,yS1)、(xe ,
ye)より特定され、点PS2と点Peとを結ぶ線分を含
む1次関数を〔y=a12・x+b12〕とすると、a12、
b12は、点PS2と点Peの座標(xS2,yS2)、
(x e ,ye )より特定される。Also, the point PS1Includes the line segment connecting the point Pe with
The linear function is [y = a11・ X + b11], A11, B
11Is the point PS1And the coordinates of the point Pe (xS1, YS1), (Xe,
ye), Point PS2And a line segment connecting the point Pe and
The linear function [y = a12・ X + b12], A12,
b12Is the point PS2And the coordinates of the point Pe (xS2, YS2),
(X e, Ye) Is more specific.
【0193】また、点Pa(xa ,ya )、点Pb(x
a ,yb )、点Pc(xc ,ya )、点Pd(xc ,y
b )については、この処理パターン2の場合、点Paと
点Pcのy座標、点Pbと点Pdのy座標はそれぞれ同
じであり、点Paと点Pbのx座標、点Pcと点Pdの
x座標はそれぞれ同じである。Further, the points Pa (x a , y a ) and the points Pb (x
a, y b), the point Pc (x c, y a) , the point Pd (x c, y
Regarding b ), in the case of this processing pattern 2, the y-coordinates of the points Pa and Pc, the y-coordinates of the points Pb and Pd are the same, and the x-coordinates of the points Pa and Pb and the points Pc and Pd of the points Pc and Pd are the same. The x coordinates are the same.
【0194】従って、上記点PS1と点Peとを結ぶ線分
を含む1次関数と、点PS2と点Peとを結ぶ線分を含む
1次関数と、点Pa、点Pb、点Pc、点Pdの関係を
用いて、上記(1) 〜(4) を調べることができる。ただ
し、点PS1と点Peとのy座標が同じ(yS1=ye )で
ある場合は、y=yS1となり、この場合は、点PS1と点
Peとを結ぶ線分が、点Paと点Pcとを結ぶ線分に一
致し、フォントデータの仮想ボディとの交点は点Pcと
なり、また、点PS2と点Peとのy座標が同じ(yS2=
ye )である場合は、y=yS2となり、この場合は、点
PS2と点Peとを結ぶ線分が、点Pbと点Pdとを結ぶ
線分に一致し、フォントデータの仮想ボディとの交点は
点Pdとなる。従って、点PS1と点Peとのy座標が同
じである場合には、交点を点Pcとして上記(1) 、(2)
を省略し、点PS2と点Peとのy座標が同じである場合
には、交点を点Pdとして上記(3) 、(4) を省略する。Therefore, a linear function including the line segment connecting the point P S1 and the point Pe, a linear function including the line segment connecting the point P S2 and the point Pe, and the points Pa, Pb, and Pc. , (1) to (4) can be examined by using the relationship between the points Pd. However, if the y coordinate of the point P S1 and the point Pe is the same (y S1 = y e), next to y = y S1, in this case, line segment connecting the point P S1 and the point Pe, the point It coincides with the line segment connecting Pa and the point Pc, the point of intersection with the virtual body of the font data is the point Pc, and the y coordinates of the point P S2 and the point Pe are the same (y S2 =
If it is y e) is next to y = y S2, in this case, the line segment connecting the point P S2 and the point Pe is consistent with the line connecting the point Pb and a point Pd, the font data virtual body The intersection with and becomes the point Pd. Therefore, when the y coordinates of the point P S1 and the point Pe are the same, the intersection point is set as the point Pc and the above (1) and (2) are set.
When the y coordinate of the point P S2 is the same as that of the point Pe, the intersection point is defined as the point Pd, and the above (3) and (4) are omitted.
【0195】まず、(1) では、点PS1と点Peとを結ぶ
線分CL1を含む1次関数〔y=a11・x+b11〕に、
点Pc、点Pdのx座標(xc )を代入したときのy座
標(y=a11・xc +b11)が、図35(a)、(b)
に示すように、点Pcのy座標(ya )と点Pdのy座
標(yb )の間の範囲内に収まっていれば、すなわち、
yb ≦y(=a11・xc +b11)<ya のとき、点PS1
と点Peとを結ぶ線分CL1と、点Pcと点Pdを結ぶ
線分との交点CP1 が存在することになる。なお、y
(=a11・xc +b11)=ya は、点PS1と点Peとの
x座標が同じである場合であり、このときはこの(1) は
省略しているので判定条件から外している。また、この
(1) で交点CP1 が存在する場合の交点CP1 の座標は
(xc ,y(=a11・xc +b11))である。First, in (1), a linear function [y = a 11 · x + b 11 ] including a line segment CL1 connecting the point P S1 and the point Pe is
The y-coordinates (y = a 11 · x c + b 11 ) when the x-coordinates (x c ) of the points Pc and Pd are substituted are shown in FIGS. 35 (a) and 35 (b).
As shown in, if within the range between the y-coordinate (y a) and the y coordinate of the point Pd of the point Pc (y b), i.e.,
When y b ≦ y (= a 11 · x c + b 11) <y a, the point P S1
A line segment CL1 connecting the preparative point Pe, so that the intersection point CP 1 of a line segment connecting the point Pc and the point Pd are present. Note that y
(= A 11 · x c + b 11) = y a is the case the x coordinate of a point P S1 and the point Pe is the same, this is the case (1) is removed from the determination condition so is omitted ing. Also this
When the intersection point CP 1 exists in (1), the coordinates of the intersection point CP 1 are (x c , y (= a 11 · x c + b 11 )).
【0196】次に、(2) では、点PS1と点Peとを結ぶ
線分CL1を含む1次関数〔y=a11・x+b11〕に、
点Pb、点Pdのy座標(yb )を代入したときのx座
標(x=(yb −b11)/a11)が、点Pbのx座標
(xa )と点Pdのx座標(xc )の間の範囲内に収ま
っていれば、すなわち、(点PS1、点PS2のx座標)<
(点Peのx座標)の場合、図35(a)に示すよう
に、xa <x(=(yb −b11)/a11)≦xc のと
き、また、(点PS1、点PS2のx座標)>(点Peのx
座標)の場合、図35(b)に示すように、xc ≦x
(=(yb −b11)/a11)<ya のとき、点PS1と点
Peとを結ぶ線分CL1と、点Pbと点Pdを結ぶ線分
との交点CP1 が存在することになる。なお、点PS1、
点PS2、Peのx座標が同じ場合はない(図3のステッ
プS11参照)ので、x(=(yb −b11)/a11)=
xa の場合はない。また、この(2) で交点CP1 が存在
する場合の交点CP1 の座標は(x(=(yb −b11)
/a11),yb )である。Next, in (2), the linear function [y = a 11 · x + b 11 ] including the line segment CL1 connecting the point P S1 and the point Pe is
The x coordinate (x = (y b −b 11 ) / a 11 ) obtained by substituting the y coordinates (y b ) of the points Pb and Pd is the x coordinate of the point Pb (x a ) and the x coordinate of the point Pd. If it is within the range between (x c ), that is, (x coordinate of point P S1 , point P S2 ) <
In the case of (x coordinate of point Pe), as shown in FIG. 35 (a), when x a <x (= (y b −b 11 ) / a 11 ) ≦ x c , and (point P S1 , X coordinate of point P S2 )> (x of point Pe
Coordinate), as shown in FIG. 35 (b), x c ≤x
(= (Y b -b 11) / a 11) when <y a, the line segment CL1 linking the point P S1 and the point Pe, there are intersections CP 1 and a line segment connecting the point Pb and a point Pd It will be. Note that the point P S1 ,
X-coordinate of the point P S2, Pe is not if the same so (see step S11 in FIG. 3), x (= (y b -b 11) / a 11) =
Not the case for x a . Moreover, this coordinate intersections CP 1 when intersections CP 1 (2) is present (x (= (y b -b 11)
/ A 11 ), y b ).
【0197】次に、(3) は、点PS2と点Peとを結ぶ線
分CL2を含む1次関数〔y=a12・x+b12〕に、点
Pa、点Pcのy座標(ya )を代入したときのx座標
(x=(ya −b12)/a12)が、点Paのx座標(x
a )と点Pcのx座標(xc)の間の範囲内に収まって
いれば、すなわち、(点PS1、点PS2のy座標)<(点
Peのy座標)の場合、図35(c)に示すように、x
a <x(=(ya −b12)/a12)≦yc のとき、ま
た、(点PS1、点PS2のy座標)>(点Peのy座標)
の場合、図35(d)に示すように、xc ≦x(=(y
a −b12)/a12)<xa のとき、点PS2と点Peとを
結ぶ線分CL2と、点Pbと点Pdを結ぶ線分との交点
CP2 が存在することになる。なお、この(3) で交点C
P2 が存在する場合の交点CP2 の座標は(x(=(y
a −b12)/a12),ya )である。Next, (3) is a linear function [y = a 12 · x + b 12 ] including a line segment CL2 connecting the point P S2 and the point Pe, and the y coordinate (y a of the point Pa and the point Pc). ) x coordinate when substituting (x = (y a -b 12 ) / a 12) is, x-coordinate of the point Pa (x
If it is within the range between a ) and the x coordinate (x c ) of the point Pc, that is, if (y coordinate of the point P S1 , point P S2 ) <(y coordinate of the point Pe), then FIG. As shown in (c), x
a <x (= (y a -b 12) / a 12) When ≦ y c, also (point P S1, y coordinates of the point P S2)> (y-coordinate of the point Pe)
In the case of, as shown in FIG. 35 (d), x c ≤x (= (y
When a− b 12 ) / a 12 ) <x a , there exists an intersection point CP 2 between the line segment CL2 connecting the point P S2 and the point Pe and the line segment connecting the point Pb and the point Pd. In addition, at this (3), the intersection C
The coordinates of the intersection point CP 2 when P 2 exists are (x (= (y
a− b 12 ) / a 12 ), ya a ).
【0198】次に、(4) は、点PS2と点Peとを結ぶ線
分を含む1次関数〔y=a12・x+b12〕に、点Pc、
点Pdのx座標(xc )を代入したときのy座標(y=
a12・xc +b12)が、点Pcのy座標(ya )と点P
dのx座標(yb )の間の範囲内に収まっていれば、す
なわち、図35(c)、(d)に示すように、yb <y
(=a12・xc +b12)≦ya のとき、点PS2と点Pe
とを結ぶ線分CL2と、点Pcと点Pdを結ぶ線分との
交点CP2 が存在することになる。なお、この(4) で交
点CP2 が存在する場合の交点CP2 の座標は(xc ,
y(=a12・xc +b12))である。Next, (4) is a linear function [y = a 12 · x + b 12 ] including a line segment connecting the point P S2 and the point Pe to the point Pc,
When the x coordinate (x c ) of the point Pd is substituted, the y coordinate (y =
a 12 · x c + b 12 ) is, y coordinates of the point Pc (y a) and the point P
If it is within the range between x coordinates (y b ) of d, that is, y b <y as shown in FIGS. 35 (c) and 35 (d).
When (= a 12 · x c + b 12) ≦ y a, the point P S2 and the point Pe
There will be an intersection point CP 2 between the line segment CL2 connecting the line P and the line segment connecting the point Pc and the point Pd. Note that the coordinates of the intersection point CP 2 in the case where there are intersections CP 2 in the (4) (x c,
y (= a 12 · x c + b 12 )).
【0199】次に、ステップS31では、配置開始点特
定部5が、上記ステップS28で求めた交点に基づき、
現在の処理対象の次の文字に対応するフォントデータの
配置開始点Pa、Pbを求めるが、この処理パターン2
では、点PS1と点PS1とを結ぶ線分がy軸に平行(ある
いはy軸上)であるので、求めた交点CP1 または/お
よびCP2 を通過し、点PS1と点PS2とを結ぶ線分に平
行な線と、点PS1と点Peとを結ぶ線分、および点PS2
と点Peとを結ぶ線分との各交点は、交点CP1 、CP
2 のx座標と同じである。Next, in step S31, the placement start point specifying unit 5 determines, based on the intersection obtained in step S28,
Arrangement start points Pa and Pb of the font data corresponding to the next character to be currently processed are calculated.
So since the line segment connecting the point P S1 and the point P S1 is parallel to the y-axis (or the y-axis), passes through the intersection CP 1 or / and CP 2 obtained, the point P S1 and the point P S2 A line parallel to the line segment connecting to and the line segment connecting the point P S1 and the point Pe, and the point P S2
Each intersection of a line connecting the preparative point Pe is the intersection CP 1, CP
It is the same as the x coordinate of 2 .
【0200】従って、例えば、交点CP1 を得ている場
合には、交点CP1 を通過する点PS1と点PS2とを結ぶ
線分に平行な線と、点PS2と点Peとを結ぶ線分との交
点のy座標は、交点CP1 のx座標(xcp1 とする)
を、点PS2と点Peとを結ぶ線分を含む1次関数〔y=
a12・x+b12〕に代入してy座標(y=a12・xcp1
+b12)を算出すれば求められる。従って、この場合、
Paの座標はCP1 の座標であり、Pbの座標は、(x
cp1 ,a12・xcp1 +b12)である。また、交点CP2
を得ている場合には、Pbの座標がCP2 の座標であ
り、また、Paのx座標はCP2 のx座標と同じであ
り、さらに、Paのy座標は、交点CP2 のx座標を、
点PS1と点Peとを結ぶ線分を含む1次関数に代入して
求めることができる。さらに、交点CP1 とCP2 とが
得られている場合には、交点CP1 とCP2 の各座標が
そのままPa、Pbの各座標となる。Therefore, for example, when the intersection point CP 1 is obtained, the line parallel to the line segment connecting the points P S1 and P S2 passing through the intersection point CP 1 and the points P S2 and Pe are connected. The y coordinate of the intersection with the connecting line segment is the x coordinate of the intersection CP 1 (x x cp1 )
Is a linear function including a line segment connecting the point P S2 and the point Pe [y =
a 12 · x + b 12 ], and the y coordinate (y = a 12 · x cp1
It can be obtained by calculating + b 12 ). So in this case,
The coordinates of Pa are the coordinates of CP 1, and the coordinates of Pb are (x
cp1, it is a 12 · x cp1 + b 12 ). Also, the intersection point CP 2
, The coordinate of Pb is the coordinate of CP 2 , the x coordinate of Pa is the same as the x coordinate of CP 2 , and the y coordinate of Pa is the x coordinate of the intersection point CP 2 . To
It can be obtained by substituting it into a linear function including a line segment connecting the point P S1 and the point Pe. Furthermore, when the intersection points CP 1 and CP 2 are obtained, the coordinates of the intersection points CP 1 and CP 2 become the coordinates of Pa and Pb as they are.
【0201】上述のようにして、この処理パターン2の
場合の各フォントデータの寸法、配置位置、色濃度(処
理パターン1の求め方と同じ)と、回転角度θ、長平体
率等に基づき、出力制御部12が各フォントデータを出
力することにより、各フォントデータは、図32に示す
ように、点PS1、PS2から点Peに収束するように遠近
配置される。As described above, based on the size, arrangement position, color density (the same as the method of obtaining the processing pattern 1) of each font data in the case of this processing pattern 2, the rotation angle θ, the long flat body ratio, etc. As the output control unit 12 outputs each font data, each font data is arranged far and near so as to converge from the points P S1 and P S2 to the point Pe, as shown in FIG.
【0202】次に、上述した第一実施例装置において、
例えば、図36に示すように、最初の文字に対応するフ
ォントデータの配置開始点PS1とPS2とを結ぶ線分が、
出力領域のx軸(y軸)に対して傾けて設定された場合
の、各フォントデータの寸法、配置位置等の求め方等に
ついて説明する。なお、この処理を『処理パターン3』
という。Next, in the above-mentioned first embodiment apparatus,
For example, as shown in FIG. 36, the line segment connecting the arrangement start points P S1 and P S2 of the font data corresponding to the first character is
A method of obtaining the size of each font data, the arrangement position, etc. when the output area is set to be inclined with respect to the x axis (y axis) will be described. In addition, this processing is referred to as “processing pattern 3”.
Say.
【0203】まず、図2のステップS1でテキストデー
タ(”大バーゲン”)と、ステップS2(図3のフロー
チャート)で各組版指示が設定される。設定された点P
S1、点PS2、点Peの各座標を(xS1,yS1)、
(xS2,yS2)、(xe ,ye )(図36参照)とす
る。この場合の点PS1、点PS2、点Peの設定の仕方と
組方向指示に応じた出力時の各フォントデータの配列の
パターンを図37、図38に示す。図37は、縦組み時
のフォントデータの配列状態を示し、図38は、横組み
時のフォントデータの配列状態を示す。図中の符号P1
〜P5 は、各フォントデータの出力時の配置位置(フォ
ントデータの仮想ボディの左下の基準点)を示す。First, text data ("large bargain") is set in step S1 of FIG. 2 and each typesetting instruction is set in step S2 (flow chart of FIG. 3). Set point P
The coordinates of S1 , the point P S2 , and the point Pe are (x S1 , y S1 ),
(X S2 , y S2 ) and (x e , y e ) (see FIG. 36). 37 and 38 show the arrangement pattern of each font data at the time of output in accordance with the setting method of the points P S1 , P S2 and the point Pe and the set direction instruction in this case. FIG. 37 shows the arrangement state of font data in vertical writing mode, and FIG. 38 shows the arrangement state of font data in horizontal writing mode. Reference symbol P 1 in the figure
To P 5 shows the arrangement position at the output of each font data (bottom left of the reference point of the virtual body of the font data).
【0204】また、図37、図38の(a)〜(d)の
各配列パターンは、点PS1、点PS2、点Peの設定の仕
方によるフォントデータの配列状態の違いを示してい
る。Further, the arrangement patterns of FIGS. 37 and 38 (a) to (d) show the difference in the arrangement state of the font data depending on the setting method of the points P S1 , P S2 , and Pe. .
【0205】図37(a)は、点PS1、点PS2を通る直
線を挟んで、点Peが図の左上方向にある場合である。
例えば、点PaS1、点PS2を通る直線(1次関数)の傾
きが正で、その1次関数に、点Peのy座標を代入した
場合のx座標が、点Peのx座標よりも大きい場合であ
る。なお、点PS1、点PS2を通る1次関数は、点PS1、
点PS2の座標より特定することができる。この図37
(a)のような配列パターンを以下では、『配列パター
ンTa』という。FIG. 37 (a) shows a case where the point Pe is located in the upper left direction of the figure with a straight line passing through the points P S1 and P S2 sandwiched therebetween.
For example, the slope of a straight line (linear function) passing through the points Pa S1 and P S2 is positive, and the x coordinate when the y coordinate of the point Pe is substituted into the linear function is more than the x coordinate of the point Pe. It is a big case. Incidentally, the point P S1, is a linear function passing through the point P S2, the point P S1,
It can be specified from the coordinates of the point P S2 . This FIG.
Hereinafter, the array pattern such as (a) is referred to as “array pattern Ta”.
【0206】図37(b)は、点PS1、点PS2を通る直
線を挟んで、点Peが図の右上方向にある場合、例え
ば、点PS1、点PS2を通る1次関数の傾きが負で、その
1次関数に、点Peのy座標を代入した場合のx座標
が、点Peのx座標よりも小さい場合である。なお、図
37(a)における点PS1、点PS2を通る1次関数と、
この図37(b)における点PS1、点PS2を通る1次関
数とは、傾きの符号が逆になる。この図37(b)のよ
うな配列パターンを以下では、『配列パターンTb』と
いう。[0206] Figure 37 (b) is the point P S1, across the straight line passing through the point P S2, if the point Pe is in the upper right direction in the figure, for example, the point P S1, the linear function passing through the point P S2 This is a case where the gradient is negative and the x coordinate when the y coordinate of the point Pe is substituted into the linear function is smaller than the x coordinate of the point Pe. A linear function passing through the points P S1 and P S2 in FIG.
The sign of the slope is opposite to that of the linear function passing through the points P S1 and P S2 in FIG. 37 (b). The array pattern as shown in FIG. 37 (b) is hereinafter referred to as "array pattern Tb".
【0207】図37(c)は、図37(b)において求
まる点PS1、点PS2を通る1次関数(傾きが負)に、点
Peのy座標を代入した場合のx座標が、点Peのx座
標よりも大きい場合である。この図37(c)のような
配列パターンを以下では、『配列パターンTc』とい
う。In FIG. 37 (c), the x coordinate when the y coordinate of the point Pe is substituted into the linear function (having a negative slope) passing through the points P S1 and P S2 found in FIG. 37 (b) is This is the case where it is larger than the x coordinate of the point Pe. The array pattern as shown in FIG. 37 (c) is hereinafter referred to as "array pattern Tc".
【0208】図37(d)は、図37(a)において求
まる点PS1、点PS2を通る1次関数(傾きが正)に、点
Peのy座標を代入した場合のx座標が、点Peのx座
標よりも小さい場合である。この図37(d)のような
配列パターンを以下では、『配列パターンTd』とい
う。In FIG. 37 (d), the x coordinate when the y coordinate of the point Pe is substituted into the linear function (having a positive slope) passing through the points P S1 and P S2 found in FIG. 37 (a), This is the case where it is smaller than the x coordinate of the point Pe. The array pattern as shown in FIG. 37 (d) is hereinafter referred to as "array pattern Td".
【0209】図38(a)〜(d)は、図37(a)〜
(d)にそれぞれ対応するもので、ある。図37(a)
〜(d)のような配列パターンを以下では、それぞれ
『配列パターンYa』、『配列パターンYb』、『配列
パターンYc』、『配列パターンYd』という。38 (a)-(d) are shown in FIG. 37 (a)-(d).
They correspond to (d) respectively. Figure 37 (a)
The array patterns like (d) to (d) are hereinafter referred to as "array pattern Ya", "array pattern Yb", "array pattern Yc", and "array pattern Yd", respectively.
【0210】次に、図2のステップS3の前処理で、上
記処理パターン1と異なるのは、出力時のフォントデー
タの回転角度θである。この回転角度θを上記各配列パ
ターンに従って以下に説明する。Next, in the preprocessing of step S3 in FIG. 2, the difference from the processing pattern 1 is the rotation angle θ of the font data at the time of output. The rotation angle θ will be described below in accordance with the above array patterns.
【0211】配列パターンTa(図37(a))の場合
の回転角度θは、図39(a)に示すように、点PS1を
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に相当する。この角度θ1 は、図
39(a)の点PS1、点PS2、点Pipを頂点とする直角
三角形に基づき、tanθ1 =(|yS2−yS1|)/
(|xS2−xS1|)から得られる。なお、この場合の回
転方向は、反時計回りであるので、回転角度θは上記求
めたθ1 に「+」を付けたものとなる。The rotation angle θ in the case of the array pattern Ta (FIG. 37 (a)) is, as shown in FIG. 39 (a), a straight line passing through the point P S1 and parallel to the x-axis, and the point P S1. , And the angle θ 1 formed by a straight line passing through the point P S2 . This angle θ 1 is tan θ 1 = (| y S2 −y S1 |) / based on the right triangle having the points P S1 , P S2 , and P ip as vertices in FIG.
(| X S2 −x S1 |). Since the rotation direction in this case is counterclockwise, the rotation angle θ is obtained by adding “+” to θ 1 obtained above.
【0212】配列パターンTb(図37(b))の場合
の回転角度θは、図39(b)に示すように、点PS1を
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に相当する。この角度θ1 、及び
以下の各場合のθ1 は上記配列パターンTaと同様の方
法で求められる。なお、この場合の回転方向は、時計回
りであるので、回転角度θは上記求めたθ1 に「−」を
付けたものとなる。The rotation angle θ in the case of the array pattern Tb (FIG. 37 (b)) is, as shown in FIG. 39 (b), a straight line passing through the point P S1 and parallel to the x-axis, and the point P S1. , And the angle θ 1 formed by a straight line passing through the point P S2 . The angle theta 1, and theta 1 of the following cases is determined by the arrangement pattern Ta the same way. Since the rotation direction in this case is clockwise, the rotation angle θ is obtained by adding “−” to θ 1 obtained above.
【0213】配列パターンTc(図37(c))の場合
の回転角度θは、図39(c)に示すように、点PS1を
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に相当する。なお、この場合の回
転方向は、時計回りであるので、回転角度θは上記求め
たθ1 に「−」を付けたものとなる。The rotation angle θ in the case of the array pattern Tc (FIG. 37 (c)) is, as shown in FIG. 39 (c), a straight line passing through the point P S1 and parallel to the x-axis, and the point P S1. , And the angle θ 1 formed by a straight line passing through the point P S2 . Since the rotation direction in this case is clockwise, the rotation angle θ is obtained by adding “−” to θ 1 obtained above.
【0214】配列パターンTd(図37(d))の場合
の回転角度θは、図39(d)に示すように、点PS2を
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に相当する。なお、この場合の回
転方向は、反時計回りであるので、回転角度θは上記求
めたθ1 に「+」を付けたものとなる。The rotation angle θ in the case of the array pattern Td (FIG. 37 (d)) is, as shown in FIG. 39 (d), a straight line passing through the point P S2 and parallel to the x-axis, and the point P S1. , And the angle θ 1 formed by a straight line passing through the point P S2 . Since the rotation direction in this case is counterclockwise, the rotation angle θ is obtained by adding “+” to θ 1 obtained above.
【0215】配列パターンYa(図38(a))の場合
の回転角度θは、図39(e)に示すように、点PS2を
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に90°を加算したものである。
なお、この場合の回転方向は、反時計回りであるので、
回転角度θは上記求めた(90+θ1 )に「+」を付け
たものとなる。The rotation angle θ in the case of the array pattern Ya (FIG. 38 (a)) is, as shown in FIG. 39 (e), a straight line passing through the point P S2 and parallel to the x-axis, and the point P S1. , 90 ° is added to the angle θ 1 formed by the straight line passing through the point P S2 .
In addition, since the rotation direction in this case is counterclockwise,
The rotation angle θ is obtained by adding “+” to (90 + θ 1 ) obtained above.
【0216】配列パターンYb(図38(b))の場合
の回転角度θは、図39(f)に示すように、点PS2を
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 を90°から減算したものであ
る。なお、この場合の回転方向は、反時計回りであるの
で、回転角度θは上記求めた(90−θ1 )に「+」を
付けたものとなる。The rotation angle θ in the case of the array pattern Yb (FIG. 38 (b)) is, as shown in FIG. 39 (f), a straight line passing through the point P S2 and parallel to the x-axis, and the point P S1. , The angle θ 1 formed by a straight line passing through the point P S2 is subtracted from 90 °. Since the rotation direction in this case is counterclockwise, the rotation angle θ is obtained by adding (+) to (90−θ 1 ) obtained above.
【0217】配列パターンYc(図38(c))の場合
の回転角度θは、図39(g)に示すように、点PS1を
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に90°を加算したものである。
なお、この場合の回転方向は、時計回りであるので、回
転角度θは上記求めた(90+θ1 )に「−」を付けた
ものとなる。The rotation angle θ in the case of the array pattern Yc (FIG. 38 (c)) is, as shown in FIG. 39 (g), a straight line passing through the point P S1 and parallel to the x-axis, and the point P S1. , 90 ° is added to the angle θ 1 formed by the straight line passing through the point P S2 .
Since the rotation direction in this case is clockwise, the rotation angle θ is obtained by adding “−” to (90 + θ 1 ) obtained above.
【0218】配列パターンYd(図38(d))の場合
の回転角度θは、図39(h)に示すように、点PS1を
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 を90°から減算したものであ
る。なお、この場合の回転方向は、時計回りであるの
で、回転角度θは上記求めた(90−θ1 )に「−」を
付けたものとなる。The rotation angle θ in the case of the array pattern Yd (FIG. 38 (d)) is, as shown in FIG. 39 (h), a straight line passing through the point P S1 and parallel to the x-axis, and the point P S1. , The angle θ 1 formed by a straight line passing through the point P S2 is subtracted from 90 °. Since the rotation direction in this case is clockwise, the rotation angle θ is obtained by adding (−) to (90−θ 1 ) obtained above.
【0219】次に、図2のステップS4の各フォントデ
ータの寸法、配置位置、色濃度を求める処理を実行す
る。ここで、上述の処理パターン1と異なるのは、ステ
ップS22、S25、S26、S28、S31(図4参
照)である。以下に、これらの処理について説明する。Next, in step S4 of FIG. 2, the processing for obtaining the size, arrangement position and color density of each font data is executed. Here, steps S22, S25, S26, S28, and S31 (see FIG. 4) are different from the processing pattern 1 described above. These processes will be described below.
【0220】まず、ステップS22のフォントデータの
寸法の求め方について説明する。なお、この処理パター
ン3では、与えられる配置開始点Pa、Pbのx座標、
y座標はともに異なるので、ここでは、与えられる配置
開始点Pa、Pbの座標を(xa ,ya )、(xb ,y
b )として寸法の求め方を説明する。First, the method of obtaining the size of the font data in step S22 will be described. In this processing pattern 3, the x-coordinates of the given placement start points Pa and Pb,
Since y coordinates are both different, here, the arrangement start point given Pa, the coordinates of Pb (x a, y a) , (x b, y
The method of obtaining the dimensions is explained as b ).
【0221】ここで、各配列パターンTa、Tb、T
c、Td、Ya、Yb、Yc、Ydについて、長平体率
が設定されていない場合、平体率が設定されている場
合、長体率が設定されている場合の点Pa、点Pb等の
位置を図40ないし図47に示す。図40は配列パター
ンTaの、図41は配列パターンTbの、図42は配列
パターンTcの、図43は配列パターンTdの長平体率
の設定状態に応じた点Pa、点Pb等の位置をそれぞれ
示す。また、図44は配列パターンYaの、図45は配
列パターンYb、図46は配列パターンYcの、図47
は配列パターンYbの長平体率の設定状態に応じた点P
a、点Pb等の位置をそれぞれ示す。Here, each array pattern Ta, Tb, T
For c, Td, Ya, Yb, Yc, and Yd, if the long flat body ratio is not set, if the flat body ratio is set, or if the long body ratio is set, the points Pa, Pb, etc. The position is shown in FIGS. FIG. 40 shows the arrangement pattern Ta, FIG. 41 shows the arrangement pattern Tb, FIG. 42 shows the arrangement pattern Tc, and FIG. 43 shows the positions of points Pa, Pb, etc. according to the long flat body ratio setting state of the arrangement pattern Td. Show. Further, FIG. 44 shows the arrangement pattern Ya, FIG. 45 shows the arrangement pattern Yb, and FIG. 46 shows the arrangement pattern Yc.
Is a point P corresponding to the setting state of the long flat rate of the array pattern Yb
The positions of a, point Pb, etc. are shown respectively.
【0222】図40〜図43の(a)、(b)の場合
(縦組み時の長体率、平体率がともに設定されていない
場合と平体率が設定されている場合)、および図44〜
図47の(a)、(c)の場合(横組み時の長体率、平
体率がともに設定されていない場合と長体率が設定され
ている場合)では、図からも明らかなように、フォント
データの寸法は、Pa、Pb間の長さに相当する。この
Pa、Pb間の長さLは以下の式で求めることができ
る。 L=√((xb −xa )2 +(yb −ya )2 ) ……… (22-21) In the case of (a) and (b) of FIGS. 40 to 43 (when both the long body ratio and the flat body ratio in vertical assembly are not set and the flat body ratio is set), and Figure 44-
In the cases of (a) and (c) of FIG. 47 (when both the long body ratio and the flat body ratio in horizontal writing are not set and when the long body ratio is set), it is apparent from the figure. In addition, the size of the font data corresponds to the length between Pa and Pb. The length L between Pa and Pb can be calculated by the following formula. L = √ ((x b -x a) 2 + (y b -y a) 2) ......... (22-21)
【0223】従って、寸法特定部4は、上述の場合に
は、式 (22-21)で求めたLをフォントデータの寸法とし
て文字配置処理部1に返す。Therefore, in the above case, the dimension specifying unit 4 returns the L obtained by the equation (22-21) to the character arrangement processing unit 1 as the dimension of the font data.
【0224】また、図40〜図43の(c)の場合(縦
組み時の長体率が設定されている場合)では、長体率
(lp%)で文字幅Xが圧縮された長さX’が、Pa、
Pb間の長さである。従って、文字幅が圧縮される前の
文字幅Xは以下の式で求めることができる。 X=(100・X’)/(100−lp) =(100・L)/(100−lp) ……… (22-22) ここで、Lは、上記式 (22-21)で求められるPa、Pb
間の長さである。Further, in the case of (c) of FIGS. 40 to 43 (when the length ratio in vertical assembly is set), the character width X is compressed by the length ratio (lp%). X'is Pa,
It is the length between Pb. Therefore, the character width X before the character width is compressed can be obtained by the following formula. X = (100 * X ') / (100-lp) = (100 * L) / (100-lp) ... (22-22) Here, L is calculated | required by said Formula (22-21). Pa, Pb
The length is between.
【0225】この場合のフォントデータの寸法は、文字
幅X×文字高さY(X=Y)のフォントデータの寸法で
あるので、寸法特定部4は、上述の場合には、式 (22-2
2)で求めたXをフォントデータの寸法として文字配置処
理部1に返す。Since the size of the font data in this case is the size of the font data of character width X × character height Y (X = Y), the size specifying unit 4 uses the formula (22- 2
The X obtained in 2) is returned to the character arrangement processing unit 1 as the size of the font data.
【0226】また、図44〜図47の(b)の場合(横
組み時の平体率が設定されている場合)では、平体率
(hp%)で文字高さYが圧縮された長さY’が、P
a、Pb間の長さである。従って、文字高さが圧縮され
る前の文字高さYは以下の式で求めることができる。 Y=(100・Y’)/(100−hp) =(100・L)/(100−hp) ……… (22-23) ここで、Lは、上記式 (22-21)で求められるPa、Pb
間の長さである。In the case of (b) of FIGS. 44 to 47 (when the flatness rate in horizontal writing is set), the character height Y is compressed by the flatness rate (hp%). Y'is P
It is the length between a and Pb. Therefore, the character height Y before the character height is compressed can be obtained by the following formula. Y = (100.Y ') / (100-hp) = (100.L) / (100-hp) (22-23) where L is calculated by the above formula (22-21). Pa, Pb
The length is between.
【0227】この場合のフォントデータの寸法は、文字
高さY×文字幅X((X=Y)のフォントデータの寸法
であるので、寸法特定部4は、上述の場合には、式 (22
-23)で求めたYをフォントデータの寸法として文字配置
処理部1に返す。Since the size of the font data in this case is the size of the font data of character height Y × character width X ((X = Y), the size specifying unit 4 uses the expression (22
-23) Return Y obtained as a font data size to the character arrangement processing unit 1.
【0228】次に、ステップS25の処理では、文字配
置処理部1が、フォントデータの仮想ボディIBの四隅
の点の、点Pa、Pb以外の2点Pc、Pdの座標を求
める。この求め方を図40ないし図47を参照して以下
に説明する。Next, in the processing of step S25, the character arrangement processing unit 1 obtains the coordinates of the two points Pc and Pd other than the points Pa and Pb at the four corner points of the virtual body IB of the font data. How to obtain this will be described below with reference to FIGS.
【0229】例えば、図40(a)の場合、Pcの座標
(xc ,yc )、Pdの座標(xd,yd )は、以下の
式で求めることができる。 xc =xa −xR1 yc =ya +yR1 xd =xb −xR1 yd =yb +yR1 ここで、xR1、yR1は、図中のh、tに相当し、hは|
yb −ya |、tは|xb −xa |である。なお、以下
の説明におけるxR1、yR1は各図におけるh、tに相当
し、各図においてもh、tは上記と同様に求められる。For example, in the case of FIG. 40A, the coordinates (x c , y c ) of Pc and the coordinates (x d , y d ) of Pd can be obtained by the following equations. Here x c = x a -x R1 y c = y a + y R1 x d = x b -x R1 y d = y b + y R1, x R1, y R1 corresponds to the h, t in the drawing, h is |
y b -y a |, t is | a | x b -x a. Note that x R1 and y R1 in the following description correspond to h and t in each figure, and h and t are also obtained in each figure in the same manner as above.
【0230】また、図40(b)の場合、Pcの座標
(xc ,yc )、Pdの座標(xd ,yd )は、以下の
式で求めることができる。 xc =xa −xR2 yc =ya +yR2 xd =xb −xR2 yd =yb +yR2 Further, in the case of FIG. 40B, the coordinates (x c , y c ) of Pc and the coordinates (x d , y d ) of Pd can be obtained by the following formulas. x c = x a -x R2 y c = y a + y R2 x d = x b -x R2 y d = y b + y R2
【0231】ここで、xR2、yR2は、以下の式で求めら
れる。 xR2=(xR1×(100−hp)/100)) yR2=(yR1×(100−hp)/100))Here, x R2 and y R2 are obtained by the following equations. x R2 = (x R1 × (100-hp) / 100)) y R2 = (y R1 × (100-hp) / 100))
【0232】さらに、図40(c)の場合、Pcの座標
(xc ,yc )、Pdの座標(xd,yd )は、以下の
式で求めることができる。 xc =xa −xR3 yc =ya +yR3 xd =xb −xR3 yd =yb +yR3 Further, in the case of FIG. 40 (c), the coordinates (x c , y c ) of Pc and the coordinates (x d , y d ) of Pd can be obtained by the following equations. x c = x a -x R3 y c = y a + y R3 x d = x b -x R3 y d = y b + y R3
【0233】ここで、xR3、yR3は、図中のh’、t’
に相当し、h’、t’は、以下の式で求められる。 h’=(h×(100−hp)/100)) t’=(t×(100−hp)/100))Here, x R3 and y R3 are h'and t'in the figure.
And h ′ and t ′ are obtained by the following equations. h '= (hx (100-hp) / 100)) t' = (tx (100-hp) / 100))
【0234】図41〜図47の各図においては、出力領
域内における、Pa、Pb、Pc、Pdの位置関係が異
なることから、xa 、xb にxR1、xR2、xR3を加算す
るか減算するか、および、ya 、yb にyR1、yR2、y
R3を加算するか減算するかが異なってくるが、基本的に
は、Pc、Pdの座標は、上記図40の各場合と同様の
方法で求めることができる。各図にPc、Pdの座標を
示す。In each of FIGS. 41 to 47, since the positional relationship of Pa, Pb, Pc, and Pd in the output area is different, x R1 , x R2 , and x R3 are added to x a and x b. Do or subtract, and y a , y b have y R1 , y R2 , y
Basically, the coordinates of Pc and Pd can be obtained by the same method as in each case of FIG. 40, although R3 is added or subtracted. The coordinates of Pc and Pd are shown in each figure.
【0235】次に、ステップS26では、文字配置処理
部1が、点PS1、PS2、Peの位置関係や組方向に基づ
き、点Pa、Pb、Pc、Pdの中から、フォントデー
タの配置位置(仮想ボディの基準点)を決める。Next, in step S26, the character arrangement processing unit 1 arranges the font data from the points Pa, Pb, Pc, Pd based on the positional relationship of the points P S1 , P S2 , Pe and the set direction. Determine the position (reference point of virtual body).
【0236】これは、図40ないし図47から明らかな
ように、図40、図41、図46、図47の各場合、す
なわち、配列パターンTa、Tb、Yc、Ydの場合で
は、点Paが仮想ボディIBの左下となり、図44、図
45の各場合、ずなわち、配列パターンYa、Ybの場
合では、点Pbが仮想ボディIBの左下となり、図4
2、図43の各場合、すなわち、配列パターンTc、T
dの場合では、点Pcが仮想ボディIBの左下となる。As can be seen from FIGS. 40 to 47, this is the case in each of FIGS. 40, 41, 46 and 47, that is, in the case of the array patterns Ta, Tb, Yc and Yd, the point Pa is It becomes the lower left of the virtual body IB, that is, in each case of FIGS. 44 and 45, that is, in the case of the array patterns Ya and Yb, the point Pb becomes the lower left of the virtual body IB.
2, each case of FIG. 43, that is, the array patterns Tc, T
In the case of d, the point Pc is the lower left of the virtual body IB.
【0237】従って、配列パターンTa、Tb、Yc、
Ydの場合では、配置位置は点Paの座標となり、配列
パターンYa、Ybの場合では、配置位置は点Pbの座
標となり、配列パターンTc、Tdの場合では、配置位
置は点Pcの座標となる。Therefore, the array patterns Ta, Tb, Yc,
In the case of Yd, the arrangement position becomes the coordinates of the point Pa, in the case of the arrangement patterns Ya and Yb, the arrangement position becomes the coordinates of the point Pb, and in the case of the arrangement patterns Tc and Td, the arrangement position becomes the coordinates of the point Pc. .
【0238】次に、ステップS28では、配置開始点特
定部5が、点PS1、点PS2、点Pe、点Pa、点Pb、
点Pc、点Pdに基づき、現在の処理対象の文字に対応
するフォントデータを出力時の状態に仮想的に配置した
ときの、点PS1と点Peとを結ぶ線分および点PS2と点
Peとを結ぶ線分と、現在の処理対象文字に対応するフ
ォントデータの仮想ボディとの交点を求めるが、この処
理パターン3の場合の交点の求め方を以下に説明する。Next, in step S28, the arrangement start point specifying unit 5 causes the point P S1 , the point P S2 , the point Pe, the point Pa, the point Pb,
A line segment connecting the point P S1 and the point Pe and the point P S2 and the point when the font data corresponding to the current character to be processed is virtually arranged in the output state based on the points Pc and Pd. The intersection of the line segment connecting Pe and the virtual body of the font data corresponding to the current character to be processed is obtained. The method of obtaining the intersection in the case of this processing pattern 3 will be described below.
【0239】この場合も、点PS1と点Peとを結ぶ線分
および点PS2と点Peとを結ぶ線分と、現在の処理対象
文字に対応するフォントデータの仮想ボディIBとの交
点が存在するのは、上記処理パターン1と同様に、以下
の(1) 〜(4) の場合のみである。Also in this case, the intersection point of the line segment connecting the point P S1 and the point Pe and the line segment connecting the point P S2 and the point Pe with the virtual body IB of the font data corresponding to the current character to be processed is determined. As in the case of the processing pattern 1, only the following cases (1) to (4) exist.
【0240】(1) 点PS1と点Peとを結ぶ線分と、点P
cと点Pdとを結ぶ線分との交点 (2) 点PS1と点Peとを結ぶ線分と、点Pbと点Pdと
を結ぶ線分との交点 (3) 点PS2と点Peとを結ぶ線分と、点Paと点Pcと
を結ぶ線分との交点 (4) 点PS2と点Peとを結ぶ線分と、点Pcと点Pdと
を結ぶ線分との交点(1) A line segment connecting the point P S1 and the point Pe and the point P
Intersection point of line segment connecting c and point Pd (2) Intersection point of line segment connecting point P S1 and point Pe and line segment connecting point Pb and point Pd (3) Point P S2 and point Pe An intersection of the line segment connecting the point P and the line segment connecting the point Pa and the point Pc (4) The intersection of the line segment connecting the point P S2 and the point Pe and the line segment connecting the point Pc and the point Pd
【0241】また、点PS1と点Peとを結ぶ線分を含む
1次関数を〔y=a21・x+b21〕とすると、a21、b
21は、点PS1と点Peの座標(xS1,yS1)、(xe ,
ye)より特定される。ただし、点PS1と点Peとのy
座標が同じ(yS1=ye )である場合は、点PS1と点P
eとを結ぶ線分を含む1次関数は、〔y=yS1〕とな
り、点PS1と点Peとのx座標が同じ(xS1=xe )で
ある場合は、点PS1と点Peとを結ぶ線分を含む1次関
数は、〔x=xS1〕となる。If a linear function including a line segment connecting the point P S1 and the point Pe is [y = a 21 · x + b 21 ], then a 21 , b
21 is the coordinates (x S1 , y S1 ) of the points P S1 and Pe, (x e ,
y e ). However, y between the point P S1 and the point Pe
If the coordinates are the same (y S1 = y e ), the points P S1 and P P
The linear function including the line segment connecting with e becomes [y = y S1 ], and when the x coordinate of the point P S1 and the point Pe are the same (x S1 = x e ), the point P S1 and the point The linear function including the line segment connecting with Pe is [x = x S1 ].
【0242】また、点PS2と点Peとを結ぶ線分を含む
1次関数を〔y=a22・x+b22〕とすると、a22、b
22は、点PS2と点Peの座標(xS2,yS2)、(xe ,
ye)より特定される。ただし、点PS2と点Peとのy
座標が同じ(yS2=ye )である場合は、点PS2と点P
eとを結ぶ線分を含む1次関数は、〔y=yS2〕とな
り、点PS2と点Peとのx座標が同じ(xS2=xe )で
ある場合は、点PS2と点Peとを結ぶ線分を含む1次関
数は、〔x=xS2〕となる。If a linear function including a line segment connecting the point P S2 and the point Pe is [y = a 22 · x + b 22 ], then a 22 and b
22 is the coordinates (x S2 , y S2 ) of the point P S2 and the point Pe, (x e ,
y e ). However, y between the point P S2 and the point Pe
If the coordinates are the same (y S2 = y e ), the point P S2 and the point P S2
A linear function including a line segment connecting with e becomes [y = y S2 ], and if the point P S2 and the point Pe have the same x coordinate (x S2 = x e ), the point P S2 and the point The linear function including the line segment connecting with Pe is [x = x S2 ].
【0243】また、点Pcと点Pdとを結ぶ線分を含む
1次関数を〔y=acd・x+bcd〕とすると、acd、b
cdは、点Pcと点Pdの座標(xc ,yc )、(xd ,
yd)より特定され、また、点Pbと点Pdとを結ぶ線
分を含む1次関数を〔y=abd・x+bbd〕とすると、
abd、bbdは、点Pbと点Pdの座標(xb ,yb )、
(xd ,yd )より特定され、さらに、点Paと点Pc
とを結ぶ線分を含む1次関数を〔y=aac・x+bac〕
とすると、aac、bacは、点Paと点Pcの座標
(xa ,ya )、(xc ,yc )より特定される。If a linear function including a line segment connecting the points Pc and Pd is [y = a cd · x + b cd ], then a cd , b
cd is the coordinates (x c , y c ) of the points Pc and Pd, (x d ,
y d ), and if a linear function including a line segment connecting the points Pb and Pd is [y = a bd · x + b bd ],
a bd and b bd are the coordinates (x b , y b ) of the point Pb and the point Pd,
It is specified by (x d , y d ), and the points Pa and Pc are further specified.
A linear function including the line segment connecting and [y = a ac · x + b ac ]
When, a ac, b ac is the coordinates of the point Pa and the point Pc (x a, y a) , is specified from (x c, y c).
【0244】まず、(1) では、点PS1と点Peとを結ぶ
線分CL1を含む1次関数〔y=a21・x+b21〕と、
点Pcと点Pdとを結ぶ線分CLcdを含む1次関数
〔y=acd・x+bcd〕の交点のx座標を以下の式によ
り求める。 a21・x+b21=acd・x+bcd そして、上式により求めた各1次関数の交点のx座標
(xCP1 とする)が、図48(a)〜(d)に示すよう
に、点Pcのx座標(xc )と点Pdのx座標(xd )
の間の範囲内に収まっていれば、すなわち、xc ≦x
cp1 ≦xd のとき、点PS1と点Peとを結ぶ線分CL1
と、点Pcと点Pdを結ぶ線分との交点CP1 が存在す
ることになる。この(1) で交点CP1 が存在する場合の
交点CP1 のx座標は上記xCP1 であり、交点CP1 の
y座標は、そのx座標(xCP1 )を点Pcと点Pdとを
結ぶ線分CLcdを含む1次関数〔y=acd・x+
bcd〕に代入すれば得られる。First, in (1), a linear function [y = a 21 · x + b 21 ] including a line segment CL1 connecting the point P S1 and the point Pe,
The x coordinate of the intersection of the linear function [y = a cd · x + b cd ] including the line segment CLcd connecting the point Pc and the point Pd is obtained by the following formula. a 21 · x + b 21 = a cd · x + b cd Then, the x-coordinate (assumed to be x CP1 ) of the intersection point of each linear function obtained by the above equation is as shown in FIGS. 48 (a) to (d). X-coordinate of Pc (x c ) and x-coordinate of point Pd (x d )
Within the range between, that is, x c ≦ x
When cp1 ≤ x d, a line segment CL1 connecting the point P S1 and the point Pe
Then, there exists an intersection point CP 1 of the line segment connecting the points Pc and Pd. X-coordinate of the intersection point CP 1 when there is an intersection CP 1 in this (1) is the x CP1, y coordinates of the intersection point CP 1 is connecting the point Pc and the point Pd that x-coordinate (x CP1) Linear function including line segment CLcd [y = a cd · x +
b cd ].
【0245】なお、点PS1と点Peとを結ぶ線分CL1
を含む1次関数が〔y=yS1〕のときには、各1次関数
の交点のx座標は以下の式で求め、後は上記と同様の方
法で交点CP1 があるか否かを調べ、また、交点CP1
のy座標を得ることができる。 yS1=acd・x+bcd A line segment CL1 connecting the point P S1 and the point Pe
When the linear function including is [y = y S1 ], the x-coordinate of the intersection of each linear function is obtained by the following formula, and then it is checked by the same method as above whether or not there is an intersection CP 1 . Also, the intersection point CP 1
Can be obtained. y S1 = a cd · x + b cd
【0246】また、点PS1と点Peとを結ぶ線分CL1
を含む1次関数が〔x=xS1〕のときには、点Pcと点
Pdとを結ぶ線分CLcdを含む1次関数〔y=acd・
x+bcd〕にx=xS1を代入して、各1次関数の交点の
y座標(ycp1 )を求め、それが、図48に示すよう
に、点Pcのy座標(yc )と点Pdのy座標(yd )
の間の範囲内に収まっていれば、すなわち、yc ≦y
cp1 ≦yd (図48(a)、(c)の場合)、または、
yd ≦ycp1 ≦yc (図48(b)、(d)の場合)の
とき、点PS1と点Peとを結ぶ線分CL1と、点Pcと
点Pdを結ぶ線分との交点CP1 が存在することにな
る。この場合の交点CP1 の座標は(xS1,yCP1 )で
ある。Further, a line segment CL1 connecting the point P S1 and the point Pe
If the linear function including x is [x = x S1 ], the linear function including the line segment CLcd connecting the point Pc and the point Pd [y = a cd ·
x + b cd ] is substituted for x = x S1 to obtain the y-coordinate (y cp1 ) of the intersection of each linear function, which is the y-coordinate (y c ) of the point Pc and the point as shown in FIG. Pd of the y-coordinate (y d)
Within the range between, ie, y c ≦ y
cp1 ≤ y d (in the case of FIGS. 48 (a) and 48 (c)), or
When y d ≦ y cp1 ≦ y c (in the case of (d) of FIG. 48), the intersection of the line segment CL1 connecting the point P S1 and the point Pe and the line segment connecting the point Pc and the point Pd CP 1 will exist. The coordinates of the intersection point CP 1 in this case are (x S1 , y CP1 ).
【0247】次に、(2) でも、(1) と同様に、点PS1と
点Peとを結ぶ線分CL1を含む1次関数〔y=a21・
x+b21〕(または〔y=yS1〕)と、点Pbと点Pd
とを結ぶ線分CLbdを含む1次関数〔y=abd・x+
bbd〕の交点のx座標(xcp 1 )を以下の式により求め
る。 a21・x+b21=abd・x+bbd (または、yS1=abd・x+bbd) そして、そのx座標(xcp1 )が、図49に示すよう
に、点Pbのx座標(xb )と点Pdのx座標(xd )
の間の範囲内に収まっていれば、すなわち、xb<x
cp1 ≦xd (図49(b)、(d)の場合)、または、
xd ≦xcp1 <xb(図49(a)、(c)の場合)の
とき、点PS1と点Peとを結ぶ線分CL1と、点Pbと
点Pdを結ぶ線分との交点CP1 が存在することにな
る。なお、点PS1、点PS2、点Peが一直線上に位置す
ることがないので、xb =xcp1 を判定条件から外して
いる。この(2) で交点CP1 が存在する場合の交点CP
1 のx座標は上記xCP1 であり、交点CP1 のy座標
は、そのx座標(xCP1 )を点Pbと点Pdとを結ぶ線
分CLcdを含む1次関数〔y=abd・x+bbd〕に代
入すれば得られる。Next, also in (2), as in (1), a linear function [y = a 21 .multidot.y] including a line segment CL1 connecting the point P S1 and the point Pe.
x + b 21 ] (or [y = y S1 ]), point Pb and point Pd
A linear function [y = a bd x +
The x coordinate (x cp 1 ) of the intersection of [b bd ] is calculated by the following formula. a 21 · x + b 21 = a bd · x + b bd (or y S1 = a bd · x + b bd ) and the x coordinate (x cp1 ) thereof is the x coordinate (x b ) of the point Pb, as shown in FIG. 49. And the x coordinate of point Pd (x d ).
Within the range between, that is, x b <x
cp1 ≤ x d (in the case of Fig. 49 (b) and (d)), or
When x d ≤x cp1 <x b (in the case of FIGS. 49A and 49C), the intersection point of the line segment CL1 connecting the point P S1 and the point Pe and the line segment connecting the point Pb and the point Pd CP 1 will exist. Since the points P S1 , Ps2 , and Pe are not located on a straight line, x b = x cp1 is excluded from the determination conditions. Intersection CP when intersection CP 1 exists in this (2)
The x coordinate of 1 is the above x CP1 , and the y coordinate of the intersection point CP 1 is a linear function [y = a bd · x + b] including a line segment CLcd connecting the x coordinate (x CP1 ) between the point Pb and the point Pd. bd ] to obtain.
【0248】また、点PS1と点Peとを結ぶ線分CL1
を含む1次関数が〔x=xS1〕のときにも、上記(1) と
同様に、各1次関数の交点のy座標(ycp1 )を求め、
それが、図49に示すように、点Pbのy座標(yb )
と点Pdのy座標(yd )の間の範囲内に収まっていれ
ば、すなわち、yb <ycp1 ≦yd (図49(a)、
(b)の場合)、または、yd ≦ycp1 <yb (図49
(c)、(d)の場合)のとき、点PS1と点Peとを結
ぶ線分CL1と、点Pbと点Pdを結ぶ線分との交点C
P1 が存在することになる。なお、点PS1、点PS2、点
Peが一直線上に位置することがないので、yb =y
cp1 を判定条件から外している。なお、この場合の交点
CP1 の座標は、(xS1,yCP1 )である。Also, a line segment CL1 connecting the point P S1 and the point Pe
Even when the linear function including is also [x = x S1 ], the y coordinate (y cp1 ) of the intersection point of each linear function is obtained in the same manner as (1) above.
That is, as shown in FIG. 49, the y coordinate (y b ) of the point Pb.
And y is within the range between the y coordinate (y d ) of the point Pd, that is, y b <y cp1 ≦ y d (FIG. 49 (a),
(In the case of (b)), or y d ≤ y cp1 <y b (Fig. 49)
In the case of (c) and (d)), an intersection C of a line segment CL1 connecting the point P S1 and the point Pe and a line segment connecting the point Pb and the point Pd
P 1 will exist. Since the points P S1 , Ps2 , and Pe are not located on a straight line, y b = y
cp1 is excluded from the judgment conditions. The coordinates of the intersection point CP 1 in this case are (x S1 , y CP1 ).
【0249】次に、(3) では、上記(1) と同様に、点P
S2と点Peとを結ぶ線分CL2を含む1次関数と、点P
aと点Pcとを結ぶ線分CLacを含む1次関数との交
点のx座標(またはy座標)を求め、そのx座標(また
はy座標)が、図50に示すように、点Paのx座標
(またはy座標)と点Pcのx座標(またはy座標)の
間の範囲内に収まっていれば、交点CP2 が存在するこ
とになる。なお、交点CP2 が存在する場合の交点CP
2 の座標は、上記(1) と同様の方法で得られる。Next, in (3), as in (1) above, the point P
A linear function including a line segment CL2 connecting S2 and the point Pe, and a point P
The x-coordinate (or y-coordinate) of the intersection point with the linear function including the line segment CLac connecting a and the point Pc is obtained, and the x-coordinate (or y-coordinate) is the x-axis of the point Pa as shown in FIG. If it falls within the range between the coordinate (or y coordinate) and the x coordinate (or y coordinate) of the point Pc, the intersection point CP 2 exists. In addition, the intersection point CP when the intersection point CP 2 exists
The coordinates of 2 are obtained by the same method as (1) above.
【0250】次に、(4) では、上記(1) と同様に、点P
S2と点Peとを結ぶ線分CL2を含む1次関数と、点P
cと点Pdとを結ぶ線分CLcdを含む1次関数との交
点のx座標(またはy座標)を求め、そのx座標(また
はy座標)が、図51に示すように、点Pcのx座標
(またはy座標)と点Pdのx座標(またはy座標)の
間の範囲内に収まっていれば、交点CP2 が存在するこ
とになる。なお、交点CP2 が存在する場合の交点CP
2 の座標は、上記(1) と同様の方法で得られる。Next, in (4), as in (1) above, the point P
A linear function including a line segment CL2 connecting S2 and the point Pe, and a point P
The x-coordinate (or y-coordinate) of the intersection point with the linear function including the line segment CLcd connecting c and the point Pd is obtained, and the x-coordinate (or y-coordinate) is the x-axis of the point Pc as shown in FIG. If it is within the range between the coordinate (or y coordinate) and the x coordinate (or y coordinate) of the point Pd, the intersection point CP 2 is present. In addition, the intersection point CP when the intersection point CP 2 exists
The coordinates of 2 are obtained by the same method as (1) above.
【0251】次に、ステップS31では、配置開始点特
定部5が、上記ステップS28で求めた交点に基づき、
現在の処理対象の次の文字に対応するフォントデータの
配置開始点Pa、Pbを求める。Next, in step S31, the placement start point specifying unit 5 determines, based on the intersection obtained in step S28,
Arrangement start points Pa and Pb of the font data corresponding to the next character to be currently processed are obtained.
【0252】例えば、図52(d)〜(f)のように、
交点CP1 とCP2 とが求まっている場合、これら交点
CP1 、CP2 が、現在の処理対象の文字の次の文字に
対応するフォントデータの配置開始点Pa、Pbとな
る。For example, as shown in FIGS. 52 (d) to 52 (f),
When the intersection points CP 1 and CP 2 are obtained, the intersection points CP 1 and CP 2 become the placement start points Pa and Pb of the font data corresponding to the character next to the character to be currently processed.
【0253】また、図52(a)〜(c)、(g)〜
(i)のように、交点CP1 またはCP2 のいずれか一
方が求まっている場合、まず、交点CP1 またはCP2
を通過し、点PS1と点PS2とを結ぶ線分に平行な線(1
次関数)ILを求める。これを、〔y=aab・x+
bcp〕とすると、この傾きaabは、点PS1と点PS2とを
結ぶ線分に平行であるので、点PS1と点PS2とを結ぶ線
分を含む1次関数の傾きと同じになる。また、点PS1と
点PS2とを結ぶ線分を含む1次関数の傾きは、点PS1と
点PS2の座標(xS1,yS1)、(xS2,yS2)から求め
ることができる。従って、上記aabは特定することがで
きる。また、上記1次関数〔y=aab・x+bcp〕に、
求まっている交点CP1 またはCP2 のx座標、y座標
を代入することによりbcpが特定される。従って、交点
CP1 またはCP2 を通過し、点PS1と点PS2とを結ぶ
線分に平行な線ILを表す1次関数式が特定できる。Further, FIGS. 52 (a) to 52 (c) and (g) to
When either one of the intersection points CP 1 or CP 2 is obtained as in (i), first, the intersection points CP 1 or CP 2
Line parallel to the line segment that passes through the point P S1 and the point P S2 (1
Next function) IL is calculated. This is [y = a ab · x +
When b cp], the inclination a ab are the parallel to the line segment connecting the point P S1 and the point P S2, the slope of the linear function including a line segment connecting the point P S1 and the point P S2 Will be the same. The slope of the linear function including a line segment connecting the point P S1 and the point P S2 are the coordinates (x S1, y S1) of the point P S1 and the point P S2, be determined from (x S2, y S2) You can Therefore, the a ab can be specified. In addition, the above linear function [y = a ab · x + b cp ]
B cp is specified by substituting the x-coordinate and y-coordinate of the obtained intersection point CP 1 or CP 2 . Therefore, it is possible to specify a linear function expression that represents the line IL that passes through the intersection point CP 1 or CP 2 and is parallel to the line segment that connects the point P S1 and the point P S2 .
【0254】次に、その1次関数〔y=aab・x+
bcp〕と、点PS1と点Peとを結ぶ線分(交点CP2 が
求まっている場合)、または、点PS2と点Peとを結ぶ
線分(交点CP1 が求まっている場合)との交点を求め
る。Next, the linear function [y = a ab.x +
b cp ], and a line segment connecting the point P S1 and the point Pe (when the intersection point CP 2 is obtained), or a line segment connecting the point P S2 and the point Pe (when the intersection point CP 1 is obtained) Find the intersection with.
【0255】また、点PS1と点Peとを結ぶ線分を含む
1次関数、点PS2と点Peとを結ぶ線分を含む1次関数
は、上述ステップS28で説明したように、それぞれ
〔y=a21・x+b21〕、〔y=a22・x+b22〕であ
る。Further, the linear function including the line segment connecting the point P S1 and the point Pe and the linear function including the line segment connecting the point P S2 and the point Pe are, respectively, as described in step S28 above. [Y = a 21 · x + b 21 ], [y = a 22 · x + b 22 ].
【0256】従って、例えば、交点CP1 が求まってい
る場合(図52(a)〜(c)の場合)には、その交点
CP1 がPaとなり、Pbのx座標は以下の式で求める
ことができる。 a22・x+b22=aab・x+bcp そして、求めたPbのx座標を、〔y=aab・x+
bcp〕または〔y=a22・x+b22〕に代入すれば、P
bのy座標が得られる。Therefore, for example, when the intersection point CP 1 is obtained (in the case of FIGS. 52A to 52C), the intersection point CP 1 becomes Pa, and the x coordinate of Pb is obtained by the following formula. You can a 22 · x + b 22 = a ab · x + b cp Then, the obtained x coordinate of Pb is [y = a ab · x +
b cp ] or [y = a 22 · x + b 22 ], P
The y coordinate of b is obtained.
【0257】また、交点CP2 が求まっている場合(図
52(g)〜(i)の場合)には、その交点CP2 がP
bとなり、Paのx座標は以下の式で求めることができ
る。 a21・x+b21=aab・x+bcp そして、求めたPaのx座標を、〔y=aab・x+
bcp〕または〔y=a21・x+b21〕に代入すれば、P
aのy座標が得られる。If the intersection point CP 2 is determined (in the case of FIGS. 52 (g) to (i)), the intersection point CP 2 is set to P.
It becomes b, and the x coordinate of Pa can be calculated by the following formula. a 21 · x + b 21 = a ab · x + b cp Then, the calculated x coordinate of Pa is [y = a ab · x +
b cp ] or [y = a 21 · x + b 21 ], P
The y coordinate of a is obtained.
【0258】上述のようにして、この処理パターン3の
場合の各フォントデータの寸法、配置位置、色濃度(処
理パターン1の求め方と同じ)と、回転角度θ、長平体
率等に基づき、出力制御部12が各フォントデータを出
力することにより、各フォントデータは、図37、図3
8に示すように、点PS1、PS2から点Peに収束するよ
うに遠近配置される。As described above, based on the size, arrangement position, color density (same as the method of obtaining the processing pattern 1) of each font data in the case of this processing pattern 3, the rotation angle θ, the long flat body ratio and the like, The output control unit 12 outputs the respective font data, so that the respective font data can be obtained as shown in FIGS.
As shown in FIG. 8, the perspective arrangement is performed so that the points P S1 and P S2 converge to the point Pe.
【0259】なお、上述の実施例では、図2のステップ
S3の前処理で、各フォントデータの色濃度の変化率を
予め求めておき、図4のステップS27で、その変化率
と、現在の処理対象の文字の順番(i)とに基づき、各
フォントデータの色濃度を求めるように構成したが、図
4のステップS27で、文字配置処理部1から開始色濃
度、終了色濃度、全文字数、現在の処理対象の文字の順
番が与えられ、これらデータに基づき、以下の式により
フォントデータの色濃度を求めるように構成してもよ
い。 現在の処理対象のフォントデータの色濃度={((終了
色濃度−開始色濃度)×(i−1))/(全文字数−
1)}+開始色濃度 なお、この変形例および以下の変形例は、後述する実施
例においても同様に適用することができる。In the above-described embodiment, the change rate of the color density of each font data is obtained in advance in the preprocessing of step S3 of FIG. 2, and the change rate and the current change rate are calculated in step S27 of FIG. Although the color density of each font data is calculated based on the order (i) of the characters to be processed, in step S27 of FIG. 4, the start color density, the end color density, and the total number of characters from the character arrangement processing unit 1 are calculated. The present invention may be configured such that the current order of characters to be processed is given and the color density of the font data is obtained by the following formula based on these data. Color density of the current font data to be processed = {((end color density-start color density) x (i-1)) / (total number of characters-
1)} + starting color density Note that this modification and the following modifications can be similarly applied to the embodiments described later.
【0260】また、上述の実施例では、設定された開始
色濃度と終了色濃度に基づき、出力される各フォントデ
ータの色濃度を開始色濃度から終了色濃度へと徐々に変
化するように構成したが、各フォントデータを同じ色濃
度で出力するように構成してもよい。このとき、出力時
の色濃度を特に指定して、各フォントデータを全てその
色濃度で出力するのであれば、組版データテーブル7
(図11参照)の色濃度を記憶するためのエリアは、各
フォントデータの文字処理データ部FAiごとに持って
いてもよいが、例えば、ヘッダ部HAに<色濃度>のエ
リアを設け、出力処理では、出力制御部12は、そのヘ
ッダ部HAの<色濃度>のエリアに記憶された色濃度
で、各フォントデータを出力するように構成してもよ
い。また、出力時の色濃度を指定せず、各フォントデー
タを全て、例えば、出力装置が予め持っているデフォル
トの色濃度で出力するのであれば、組版データテーブル
7に色濃度を記憶するためのエリアを特に設ける必要は
ない。In the above embodiment, the color density of each font data to be output is gradually changed from the start color density to the end color density based on the set start color density and end color density. However, the font data may be output with the same color density. At this time, if the color density at the time of output is specified and all the font data is output at that color density, the formatted data table 7
Although the area for storing the color density (see FIG. 11) may be provided for each character processing data portion FAi of each font data, for example, the header portion HA is provided with an area of <color density> and output. In the processing, the output control unit 12 may be configured to output each font data with the color density stored in the <color density> area of the header portion HA. Further, if the font density is not specified at the time of output and all font data is output with the default color density that the output device has in advance, the color density is stored in the typesetting data table 7. There is no need to provide an area.
【0261】また、上述の実施例では、組方向を指定す
るように構成したが、組方向の指定を行なわず、予め決
められた組方向のみで組版するように装置を構成しても
よい。Further, in the above-mentioned embodiment, the composition direction is designated, but the apparatus may be structured such that the composition direction is not designated and the composition is performed only in a predetermined composition direction.
【0262】さらに、上述の実施例では、長平体率を指
定するように構成したが、長平体率の指定を行なわず、
正方形の仮想ボディのフォントデータのみで組版するよ
うに装置を構成してもよい。Further, in the above-mentioned embodiment, the long flat body ratio is designated, but the long flat body ratio is not designated,
The apparatus may be configured so that only the font data of the square virtual body is used for typesetting.
【0263】次に、本発明の第二実施例装置の構成を図
53を参照して説明する。図53は、第二実施例装置の
構成を示すブロック図である。なお、図1と同一符号で
示す部分は、図1の構成と同じであるので、ここでの詳
述は省略する。この第二実施例装置は、主に、請求項2
と、請求項2に従属する請求項3とに記載された発明に
対応した実施例である。Next, the configuration of the second embodiment device of the present invention will be described with reference to FIG. FIG. 53 is a block diagram showing the configuration of the second embodiment device. Note that the portions denoted by the same reference numerals as those in FIG. 1 are the same as those in the configuration of FIG. 1, so detailed description thereof will be omitted here. This second embodiment device is mainly described in claim 2.
And an embodiment corresponding to the invention described in claim 3 subordinate to claim 2.
【0264】この第二実施例装置の特徴は、回転処理部
31を設け、設定された最初の文字に対応するフォント
データの配置開始点PS1とPS2とを結ぶ線分を出力領域
のx軸またはy軸に平行(あるいは一致)させるよう
に、点PS1(または点PS2)を中心として、点PS2(ま
たは点PS1)と設定された収束点Peとを所定角度回転
させた点PS2’(または点PS1’)、点Pe’を求め、
文字配置処理部1、寸法特定部4、配置開始点特定部5
では、点PS1(または点PS2)、点PS2’(または点P
S1’)、点Pe’に対する、各フォントデータの寸法と
配置位置とを特定し、文字配置処理部1は、得られた点
PS1(または点PS2)、点PS2’(または点PS1’)、
点Pe’に対する、各フォントデータの配置位置を前記
所定角度分、点PS1(または点PS2)を中心として逆方
向に回転させて、点PS1、点PS2、点Peに対する各フ
ォントデータの配置位置を求めるように構成したことに
ある。このように構成することにより、最初の文字に対
応するフォントデータの配置開始点PS1とPS2とを結ぶ
線分が、出力領域のx軸(y軸)に対して傾けて設定さ
れた場合に、各フォントデータの寸法、配置位置を求め
る計算が容易になる。The feature of the second embodiment device is that the rotation processing unit 31 is provided, and the line segment connecting the arrangement start points P S1 and P S2 of the font data corresponding to the set first character is defined as x in the output area. The point P S2 (or the point P S1 ) and the set convergence point Pe are rotated by a predetermined angle about the point P S1 (or the point P S2 ) so as to be parallel (or coincident) with the axis or the y-axis. Find point P S2 '(or point P S1 '), point Pe ',
Character arrangement processing unit 1, dimension specifying unit 4, arrangement start point specifying unit 5
Then, the point P S1 (or the point P S2 ) and the point P S2 '(or the point P S2
S1 ') and the point Pe', the size and the arrangement position of each font data are specified, and the character arrangement processing unit 1 obtains the obtained point P S1 (or point P S2 ) and point P S2 '(or point P S2 ). S1 '),
The arrangement position of each font data with respect to the point Pe 'is rotated in the opposite direction about the point P S1 (or the point P S2 ) by the above-mentioned predetermined angle, and each font data for the point P S1 , the point P S2 , and the point Pe is rotated. It is configured so as to obtain the arrangement position of. With this configuration, when the line segment connecting the arrangement start points P S1 and P S2 of the font data corresponding to the first character is set to be inclined with respect to the x axis (y axis) of the output area. Moreover, it becomes easy to calculate the size and arrangement position of each font data.
【0265】なお、この回転処理部31は、本発明にお
ける回転処理手段に相当し、この実施例の場合の文字配
置処理部1は、本発明における逆回転処理手段に相当す
る。The rotation processing section 31 corresponds to the rotation processing means in the present invention, and the character arrangement processing section 1 in this embodiment corresponds to the reverse rotation processing means in the present invention.
【0266】具体的な処理手順を図54のフローチャー
トを参照して説明する。図54のフローチャートは、図
2のフローチャートにステップS2−1とS4−1を加
えたものである。A specific processing procedure will be described with reference to the flowchart in FIG. The flowchart of FIG. 54 is obtained by adding steps S2-1 and S4-1 to the flowchart of FIG.
【0267】ステップS1、ステップS2は、第一実施
例装置と同じ処理であり、テキストデータ、最初の文字
に対応するフォントデータの配置開始点PS1、PS2、収
束点Pe、組方向指示、長平体率、開始色濃度、終了色
濃度が取り込まれる。取り込まれた点PS1、点PS2、点
Peの座標を(xS1,yS1)、(xS2,yS2)、
(xe ,ye )とする。Steps S1 and S2 are the same processes as those of the apparatus of the first embodiment, and the arrangement start points P S1 , P S2 of the text data, the font data corresponding to the first character, the convergence point Pe, the set direction instruction, The long flatness ratio, the start color density, and the end color density are captured. The coordinates of the captured points P S1 , P S2 , and Pe are (x S1 , y S1 ), (x S2 , y S2 ),
Let (x e , y e ).
【0268】次に、回転処理部31は、文字配置処理部
1から与えられた点PS1、点PS2、点Peの回転処理を
行なう(ステップS2−1)。ここでは、点PS1と点P
S2とを結ぶ線分を出力領域のx軸に平行(あるいは一
致)させるように、点PS1を中心として、点PS2と点P
eとを所定角度回転させた点PS2’、点Pe’を求める
ものとする。なお、点PS1と点PS2とを結ぶ線分をx軸
に一致する場合とは、点PS1のy座標が「0」の場合で
ある。[0268] Next, the rotation processing unit 31, P S1 given point from the character arrangement processing unit 1, the point P S2, performs rotation processing of the point Pe (step S2-1). Here, points P S1 and P
The point P S2 and the point P S2 are centered on the point P S1 so that the line segment connecting the line S2 is parallel (or coincident) with the x-axis of the output region.
It is assumed that a point P S2 'and a point Pe' obtained by rotating e with a predetermined angle are obtained. The case where the line segment connecting the points P S1 and P S2 coincides with the x axis is the case where the y coordinate of the point P S1 is “0”.
【0269】これを図55を参照して説明する。例え
ば、図55(a)のように、点PS1、点PS2、点Peが
設定された場合、点PS1と点PS2とを結ぶ線分を出力領
域のx軸に平行(あるいは一致)させるように、点PS1
を中心として、点PS2と点Peとを回転させるときの回
転角度δは、図55(b)からも明らかなように、ta
nδ=|ys2−ys1|/|xs2−xs1|より求めること
ができる。なお、この回転方向は、反時計回りを正方
向、時計回りを負とする。従って、図56(a)〜
(d)に示すように、(点PS1のy座標(yS1))>
(点PS2のy座標(yS2))のときδは正となり、(y
S1)<(yS2)のときδは負となる。なお、(yS1)=
(yS2)のとき回転角度δは「0°」となる。また、図
57(a)、(b)に示すように、点PS1と点PS2とを
結ぶ線分が出力領域のy軸に平行(あるいは一致)する
とき(点PS1のx座標(xS1)=点PS2のx座標
(xS2)のとき)には、回転角度δは「90°」とな
る。This will be described with reference to FIG. For example, when points P S1 , P S2 , and Pe are set as shown in FIG. 55A , a line segment connecting the points P S1 and P S2 is parallel to (or coincides with) the x-axis of the output area. ), Let point P S1
As can be seen from FIG. 55 (b), the rotation angle δ when the point P S2 and the point Pe are rotated about
It can be obtained from nδ = | y s2 −y s1 | / | x s2 −x s1 |. As for the rotation direction, counterclockwise rotation is positive and clockwise rotation is negative. Therefore, from FIG.
As shown in (d), (y coordinate of point P S1 (y S1 ))>
When (y coordinate of point P S2 (y S2 )), δ becomes positive, and (y
When S1 ) <(y S2 ), δ becomes negative. Note that (y S1 ) =
When (y S2 ), the rotation angle δ becomes “0 °”. Further, as shown in FIGS. 57A and 57B , when a line segment connecting the points P S1 and P S2 is parallel (or coincides) with the y axis of the output region (the x coordinate of the point P S1 ( x S1 ) = the x coordinate (x S2 ) of the point P S2 ), the rotation angle δ becomes “90 °”.
【0270】次に、点PS1を中心として、点PS2をδ回
転させた点PS2’のy座標y4 は、点PS1のy座標(y
S1)と同じとなり、また、点PS2’のx座標x4 は、点
PS1のx座標(xS1)に、点PS1、点PS2間の長さ(√
((yS2−yS1)2 +(xS2−xS1)2 ))を加算する
ことにより得られる。[0270] Next, about the point P S1, y coordinate y 4 of the point P S2 [delta] point is rotated P S2 'is, y coordinates of the point P S1 (y
Becomes the same as S1), also, the x-coordinate x 4 of the point P S2 'is the x-coordinate of the point P S1 (x S1), the point P S1, the length between the points P S2 (√
Obtained by adding the ((y S2 -y S1) 2 + (x S2 -x S1) 2)).
【0271】また、点PS1を中心として、点PS2をδ回
転させた点Pe’の座標(x5 ,y5 )は、以下のアフ
ィン変換式により求めることができる。 x5 =(xe −xS1)・cosδ−(ye −ys1)・s
inδ y5 =(xe −xS1)・sinδ+(ye −yS1)・c
osδThe coordinates (x 5 , y 5 ) of the point Pe ′ obtained by rotating the point P S2 by δ about the point P S1 can be obtained by the following affine transformation formula. x 5 = (x e −x S1 ) · cos δ− (y e −y s1 ) · s
inδ y 5 = (x e -x S1) · sinδ + (y e -y S1) · c
osδ
【0272】回転処理部31は、上記処理で得られた回
転角度δと、点PS2’、Pe’の座標(x4 ,y4 )、
(x5 ,y5 )を文字配置処理部1に与える。The rotation processing unit 31 calculates the rotation angle δ obtained by the above processing and the coordinates (x 4 , y 4 ) of the points P S2 'and Pe'.
(X 5 , y 5 ) is given to the character arrangement processing unit 1.
【0273】図54に戻って、次に、ステップ3の前処
理では、組版データテーブル7、組版補助データテーブ
ル8、ワークエリア21の所定エリアに、設定データ等
を設定していくが、ここで、この第二実施例装置では、
ワークエリア21の<PS2のx座標>、<PS2のy座標
>、<Peのx座標>、<Peのy座標>に、上記ステ
ップS2−1の回転処理で得られた点PS2’、Pe’の
各座標をセットし、また、<Pbのx座標>、<Pbの
y座標>に点PS2’の座標をセットする。これにより、
以下のステップS4の処理では、点PS1、点PS2’(最
初の文字に対応するフォントデータの配置開始点を点P
S1、点PS2’)、収束点をPe’として各フォントデー
タの寸法や配置位置を求めることになる。Returning to FIG. 54, next, in the preprocessing of step 3, setting data and the like are set in predetermined areas of the typesetting data table 7, the typesetting auxiliary data table 8, and the work area 21. , In this second embodiment device,
In the <x coordinate of P S2 >, <y coordinate of P S2 >, <x coordinate of Pe>, and <y coordinate of Pe> of the work area 21, the point P S2 obtained by the rotation processing of the above step S2-1. The coordinates of ', Pe' are set, and the coordinates of the point P S2 'is set in <x coordinate of Pb>, <y coordinate of Pb>. This allows
In the processing of step S4 below, the point P S1 and the point P S2 '(the placement start point of the font data corresponding to the first character is set to the point P S1) .
S1 , the point P S2 '), and the convergence point Pe' are used to obtain the size and arrangement position of each font data.
【0274】組版データテーブル7の<回転角度θ>の
エリアに記憶する回転角度θは、設定された点PS1、点
PS2、点Peと組方向に基づき、上記第一実施例の処理
パターン1〜3で説明した方法により求めることができ
る。The rotation angle θ stored in the <rotation angle θ> area of the typesetting data table 7 is based on the set points P S1 , Ps2 , Pe and the set direction, and is the processing pattern of the first embodiment. It can be determined by the method described in 1 to 3.
【0275】なお、回転角度θは、設定された点PS1、
点PS2、点Peと組方向と、上記ステップS2−1の回
転処理で得られた回転角度δとに基づき求めることもで
きる。例えば、図37(a)に対して、回転処理した結
果は、図9(c)のようになる。図9(c)の回転角度
θは「0°」である。従って、図37(a)の場合の回
転角度θは、図9(c)の回転角度θ(「0°」)から
上記回転処理時の回転角度(−|δ|)分逆回転すれば
よいので、(0°−(−|δ|))=(|δ|)とな
り、図37(b)の場合の回転角度θは、同様に(−|
δ|)となる。The rotation angle θ is determined by the set point P S1 ,
It can also be obtained based on the points P S2 and Pe, the set direction, and the rotation angle δ obtained by the rotation process of step S2-1. For example, the rotation processing result of FIG. 37A is as shown in FIG. 9C. The rotation angle θ in FIG. 9C is “0 °”. Therefore, the rotation angle θ in the case of FIG. 37A may be reversely rotated from the rotation angle θ (“0 °”) of FIG. 9C by the rotation angle (− | δ |) during the rotation processing. Therefore, (0 ° − (− | δ |)) = (| δ |), and the rotation angle θ in the case of FIG.
δ |).
【0276】また、図37(c)に対して、回転処理し
た結果は、図9(d)のようになる。図9(d)の回転
角度θも「0°」であるので、図37(c)の場合の回
転角度θは(0°−|δ|)=(−|δ|)となり、図
37(d)の場合には、同様に(|δ|)となる。Further, the rotation processing result of FIG. 37 (c) is as shown in FIG. 9 (d). Since the rotation angle θ in FIG. 9D is also “0 °”, the rotation angle θ in the case of FIG. 37C is (0 ° − | δ |) = (− | δ |), and FIG. In the case of d), it also becomes (| δ |).
【0277】また、図38(a)に対して、回転処理し
た結果は、図9(a)のようになる。図9(a)の回転
角度θは「90°」である。但し、このときのフォント
データの回転の中心はPS2であることを考慮すると、
(90°+|δ|)となり、図38(b)の場合には、
同様に(90°−|δ|)となる。The rotation processing result of FIG. 38 (a) is as shown in FIG. 9 (a). The rotation angle θ in FIG. 9A is “90 °”. However, considering that the center of rotation of the font data at this time is P S2 ,
(90 ° + | δ |), and in the case of FIG. 38 (b),
Similarly, it becomes (90 ° − | δ |).
【0278】また、図38(c)に対して、回転処理し
た結果は、図9(b)のようになる。図9(b)の回転
角度θは「−90°」であるので、図38(c)の場合
の回転角度θは(−90°−|δ|)となり、図38
(d)の場合の回転角度θは、同様に(−90°−(−
|δ|))=(−90°+|δ|)となる。The rotation processing result of FIG. 38 (c) is as shown in FIG. 9 (b). Since the rotation angle θ in FIG. 9B is “−90 °”, the rotation angle θ in the case of FIG. 38C is (−90 ° − | δ |), and FIG.
Similarly, the rotation angle θ in the case of (d) is (−90 ° − (−
| Δ |)) = (− 90 ° + | δ |).
【0279】また、図32(a)に対して、回転処理し
た結果は、図9(a)のようになる。図9(a)の回転
角度θは「90°」であり、この場合の回転角度δは
「90°」であるので、図32(a)の場合の回転角度
θは(90°−90°)=「0°」となり、図32
(b)の場合の回転角度θは、同様に(−90°−(−
90°))=「−180°」(または、「180°」)
となる。The rotation processing result of FIG. 32 (a) is as shown in FIG. 9 (a). Since the rotation angle θ in FIG. 9A is “90 °” and the rotation angle δ in this case is “90 °”, the rotation angle θ in the case of FIG. 32A is (90 ° −90 °). ) = “0 °”, and FIG.
Similarly, the rotation angle θ in the case of (b) is (−90 ° − (−
90 °)) = “− 180 °” (or “180 °”)
Becomes
【0280】また、図32(a)に対して、回転処理し
た結果は、図9(a)のようになる。図9(a)の回転
角度θは「90°」であり、この場合の回転角度δは
「90°」であるので、図32(a)の場合の回転角度
θは(90°−90°)=「0°」となる。Further, the rotation processing result of FIG. 32 (a) is as shown in FIG. 9 (a). Since the rotation angle θ in FIG. 9A is “90 °” and the rotation angle δ in this case is “90 °”, the rotation angle θ in the case of FIG. 32A is (90 ° −90 °). ) = “0 °”.
【0281】また、図32(b)に対して、回転処理し
た結果は、図9(b)のようになる。図9(b)の回転
角度θは「−90°」であり、この場合の回転角度δは
「90°」であるので、図32(b)の場合の回転角度
θは(−90°−90°)=「−180°」(または、
「180°」)となる。Further, the rotation processing result of FIG. 32 (b) is as shown in FIG. 9 (b). Since the rotation angle θ in FIG. 9B is “−90 °” and the rotation angle δ in this case is “90 °”, the rotation angle θ in the case of FIG. 32B is (−90 ° −). 90 °) = “− 180 °” (or
“180 °”).
【0282】また、図32(c)に対して、回転処理し
た結果は、図9(c)のようになる。図9(c)の回転
角度θは「0°」であり、この場合の回転角度δは「9
0°」であるので、図32(c)の場合の回転角度θは
(0°−90°)=「−90°」となる。Further, the rotation processing result of FIG. 32 (c) is as shown in FIG. 9 (c). The rotation angle θ in FIG. 9C is “0 °”, and the rotation angle δ in this case is “9”.
Since it is “0 °”, the rotation angle θ in the case of FIG. 32C is (0 ° −90 °) = “− 90 °”.
【0283】また、図32(d)に対して、回転処理し
た結果は、図9(d)のようになる。図9(d)の回転
角度θは「0°」であり、この場合の回転角度δは「9
0°」であるので、図32(d)の場合の回転角度θは
(0°−90°)=「−90°」となる。Further, the rotation processing result of FIG. 32 (d) is as shown in FIG. 9 (d). The rotation angle θ in FIG. 9D is “0 °”, and the rotation angle δ in this case is “9”.
Since it is “0 °”, the rotation angle θ in the case of FIG. 32D is (0 ° −90 °) = “− 90 °”.
【0284】なお、図9(a)〜(d)に対しては、回
転処理の回転角度δは「0°」であるので、それぞれの
回転角度θは、「90°−0°」(=「90°」)、
「−90°−0°」(=「−90°」)、「0°−0
°」(=「0°」)、「0°−0°」(=「0°」)で
ある。Since the rotation angle δ of the rotation processing is “0 °” in FIGS. 9A to 9D, each rotation angle θ is “90 ° -0 °” (= "90 °"),
"-90 ° -0 °" (= "-90 °"), "0 ° -0
“” (= “0 °”) and “0 ° -0 °” (= “0 °”).
【0285】図54に戻って、次に、ステップS4(図
4参照)により、テキストデータを構成する各文字に対
応する各フォントデータの寸法、配置位置、色濃度をそ
れぞれ求める。但し、ここでは、上記したように、点P
S1、点PS2’、点Pe’に基づき、寸法や配置位置を求
めるので、文字配置処理部1、寸法特定部4、配置開始
点特定部5は、処理パターン1に係る処理手順で寸法や
配置位置を求めることになる。Returning to FIG. 54, next, in step S4 (see FIG. 4), the size, arrangement position, and color density of each font data corresponding to each character forming the text data are obtained. However, here, as described above, the point P
Since the size and the arrangement position are obtained based on S1 , the point P S2 ', and the point Pe', the character arrangement processing unit 1, the size specifying unit 4, and the arrangement start point specifying unit 5 perform the size and arrangement according to the processing procedure related to the processing pattern 1. The placement position will be obtained.
【0286】例えば、点PS1、点PS2、点Peが図55
(a)のように設定され、縦組みで組版する場合(図3
7(a)の場合)、ステップS4で得られた寸法、配置
位置P1 ’〜P5 ’は図58(a)のようになる。な
お、図58では、得られた寸法に応じた仮想ボディIB
で示している。しかし、実際に設定された最初の文字に
対応するフォントデータの配置開始点と収束点は、点P
S1、点PS2’、点Pe’ではなく、点PS1、点PS2、点
Peである。従って、出力結果は図58(b)に示すよ
うにならなければならない。ここで、図58(a)と図
58(b)とを見比べてわかるように、点PS1、点
PS2’、点Pe’の位置関係と、点PS1、点PS2、点P
eの位置関係とは相対的に同じ(点PS1、点PS2’、点
Pe’を頂点とする三角形と、点PS1、点PS2、点Pe
を頂点とする三角形とは合同)であるので、得られる寸
法は、回転処理の影響を受けない。また、色濃度は、開
始色濃度と終了色濃度と文字数と文字の順番で決まるの
で回転処理の影響は受けない。しかし、配置位置は、点
PS1、点PS2’、点Pe’に基づいて求めているので、
点PS1、点PS2、点Peに対する本来の配置位置と異な
る。従って、得られた配置位置P1 ’〜P5 ’を点
PS1、点PS2、点Peに対する本来の配置位置P1 〜P
5 に修正する必要がある。これを行なうのが図54のス
テップS4−1の処理である。For example, the points P S1 , P S2 , and Pe are shown in FIG.
When set as shown in (a) and when typesetting vertically (see Fig. 3)
7 (a)), the dimensions and arrangement positions P 1 ′ to P 5 ′ obtained in step S4 are as shown in FIG. 58 (a). In FIG. 58, the virtual body IB corresponding to the obtained dimensions is
It shows with. However, the placement start point and the convergence point of the font data corresponding to the actually set first character are point P.
S1, the point P S2 ', the point Pe' instead, the point P S1, the point P S2, a point Pe. Therefore, the output result must be as shown in FIG. 58 (b). Here, as can be seen by comparing the Figure 58 (b) Fig. 58 and (a), the point P S1, the point P S2 ', the point Pe' and the positional relationship, the point P S1, the point P S2, the point P
a triangle relative to the positional relationship of e same (point P S1, the point P S2 ', the point Pe' of the vertex, the point P S1, the point P S2, the point Pe
(It is congruent with the triangle with the vertex as), so the obtained dimensions are not affected by the rotation process. Further, since the color density is determined by the start color density, the end color density, the number of characters, and the order of characters, it is not affected by the rotation processing. However, arrangement positions, a point P S1, the point P S2 ', the point Pe' since determined based on,
It is different from the original arrangement position for the points P S1 , P S2 , and Pe. Therefore, the obtained arrangement positions P 1 ′ to P 5 ′ are the original arrangement positions P 1 to P with respect to the points P S1 , Ps2 , and Pe.
Needs to be modified to 5 . This is performed by the process of step S4-1 in FIG.
【0287】具体的には、図58(c)に示すように、
得られた配置位置P1 ’〜P5 ’を、点PS1を中心とし
て、回転角度δ分、ステップS2−1の回転処理時と逆
方向に回転させてやる。この逆方向への回転後の配置位
置P1 〜P5 は、以下に示すアフィン変換式により得る
ことができる。 xPi=(xPi’−xS1)・cos(−δ)−(yPi’−
yS1)・sin(−δ) yPi=(xPi’−xS1)・sin(−δ)+(yPi’−
yS1)・cos(−δ) ここで、(xPi’,yPi’)は、得られた配置位置
P1 ’〜P5 ’の座標であり、(xPi,yPi)は、求め
るべき本来の配置位置P1 〜P5 の座標である。この場
合、i=1、2、3、4、5である。しかし、回転処理
の中心(この場合点PS1)と、最初の文字に対応するフ
ォントデータの配置位置P1 とが同じである場合(図3
7(a)、(b)、図38(c)、(d)等)、配置位
置P1 ’の座標と、P1 の座標は同じになるので、上記
iは2〜5、すなわち、最初の文字に対応するフォント
データの配置位置の逆回転処理は不要である。Specifically, as shown in FIG. 58 (c),
The obtained arrangement positions P 1 ′ to P 5 ′ are rotated about the point P S1 by the rotation angle δ in the direction opposite to the rotation processing of step S2-1. The arrangement positions P 1 to P 5 after the rotation in the opposite direction can be obtained by the following affine transformation formula. x Pi = (x Pi '-x S1) · cos (-δ) - (y Pi' -
y S1 ) · sin (−δ) y Pi = (x Pi ′ −x S1 ) · sin (−δ) + (y Pi ′ −
y S1 ) · cos (−δ) where (x Pi ′, y Pi ′) are the coordinates of the obtained arrangement positions P 1 ′ to P 5 ′, and (x Pi , y Pi ) is obtained. These are the coordinates of the original arrangement positions P 1 to P 5 that should be used. In this case, i = 1, 2, 3, 4, 5. However, when the center of the rotation process (in this case, the point P S1 ) is the same as the layout position P 1 of the font data corresponding to the first character (FIG. 3).
7 (a), (b), FIG. 38 (c), (d), etc.), since the coordinates of the arrangement position P 1 'and the coordinates of P 1 are the same, the above i is 2 to 5, that is, the first. The reverse rotation processing of the arrangement position of the font data corresponding to the character is unnecessary.
【0288】このようにして得られた配置位置P1 〜P
5 に、ステップS4で得られた寸法のフォントデータを
出力することにより、設定された組版指示に応じた組版
結果が出力されることになる。Arrangement positions P 1 to P thus obtained
By outputting the font data of the size obtained in step S4 to 5 , the typesetting result corresponding to the set typesetting instruction is output.
【0289】上述したように、この実施例では、文字配
置処理部1、寸法特定部4、配置開始点特定部5は、設
定された点PS1と点PS2の位置関係にかかわらず、常
に、処理パターン1の算出手順に従って各寸法、配置位
置などを求めることができるので計算が簡単になる。ま
た、上述した第一実施例では、処理パターン1〜3に係
るプログラムを用意しておき、設定された点PS1と点P
S2の位置関係の応じて、処理パターン1〜3のプログラ
ムを適宜選択して、寸法や配置位置などを求める必要が
あるが、この第二実施例では、処理パターン1に係るプ
ログラムのみを容易しておけばよいので、装置の構成
(プログラムを記憶するメモリ容量や処理手順の制御
等)が簡単になる。As described above, in this embodiment, the character arrangement processing section 1, the dimension specifying section 4, and the arrangement start point specifying section 5 always operate regardless of the positional relationship between the set points P S1 and P S2. Since the respective dimensions, arrangement positions and the like can be obtained according to the calculation procedure of the processing pattern 1, the calculation is simplified. Further, in the above-described first embodiment, the programs related to the processing patterns 1 to 3 are prepared, and the set points P S1 and P
It is necessary to appropriately select the programs of the processing patterns 1 to 3 according to the positional relationship of S2 to obtain the dimensions and the arrangement position, but in the second embodiment, only the program related to the processing pattern 1 is facilitated. Since this is sufficient, the configuration of the apparatus (memory capacity for storing programs, control of processing procedure, etc.) becomes simple.
【0290】なお、上述では、点PS1と点PS2とを結ぶ
線分を出力領域のx軸に平行(あるいは一致)させるよ
うに、点PS1を中心として、点PS2と点Peとを所定角
度回転させて点PS2’、点Pe’を求めたが、点PS2を
中心として、点PS1と点Peとを所定角度回転させて点
PS1’、点Pe’を求めるように構成してもよい。但
し、このときの回転処理時の回転方向は、点PS1を中心
とする場合と逆、すなわち、(点PS1のy座標
(yS1))>(点PS2のy座標(yS2))のときδは負
となり、(yS1)<(yS2)のときδは正となる。[0290] In the above description, as to parallel the line segment connecting the point P S1 and the point P S2 in the x-axis of the output area (or match), around the point P S1, the point P S2 and the point Pe the predetermined angle is allowed by the point P S2 ', the point Pe' has been sought, around the point P S2, the point P S1 and the point P S1 and the point Pe rotated by a predetermined angle ', the point Pe' to seek You may comprise. However, the rotation direction at the time of the rotation processing at this time is opposite to the case where the point P S1 is the center, that is, (y coordinate of point P S1 (y S1 ))> (y coordinate of point P S2 (y S2 ). ), Δ becomes negative, and when (y S1 ) <(y S2 ), δ becomes positive.
【0291】また、点PS1と点PS2とを結ぶ線分を出力
領域のy軸に平行(あるいは一致)させるように、点P
S1(または点PS2)を中心として、点PS2(または点P
S1)と点Peとを所定角度回転させた点PS2’(または
点PS1’)、点Pe’を求め、この点PS1、点PS2’、
点Pe’(または点PS1’、点PS2、点Pe’)に基づ
き、各フォントデータの寸法、配置位置を求め、求めた
配置位置を点PS1(または点PS2)を中心として、上記
所定角度分、逆方向に回転させて本来の配置位置を求め
るように構成してもよい。但し、このときには、文字配
置処理部1等は、点PS1、点PS2’、点Pe’(または
点PS1’、点PS2、点Pe’)に対する寸法や配置位置
を 処理パターン2に係る処理手順で求める構成とな
る。Also, the point P is arranged so that the line segment connecting the points P S1 and P S2 is parallel (or coincident) with the y axis of the output area.
With S1 (or point P S2 ) as the center, point P S2 (or point P S2 )
S1 ) and the point Pe are rotated by a predetermined angle to obtain a point P S2 '(or a point P S1 ') and a point Pe ', and the points P S1 and P S2 ',
Based on the point Pe '(or the point P S1 ', the point P S2 , the point Pe '), the size and the arrangement position of each font data are obtained, and the obtained arrangement position is centered on the point P S1 (or the point P S2 ). The original arrangement position may be obtained by rotating in the opposite direction by the predetermined angle. However, at this time, the character arrangement processing unit 1 or the like sets the size and the arrangement position for the point P S1 , the point P S2 ′, and the point Pe ′ (or the point P S1 ′, the point P S2 , and the point Pe ′) to the processing pattern 2. The configuration is obtained by the processing procedure.
【0292】[0292]
【発明の効果】以上の説明から明らかなように、請求項
1に記載の発明によれば、設定された最初の文字に対応
するフォントデータの配置開始点PS1、PS2から、設定
された収束点Peに収束するように、設定されたテキス
トデータを構成する各文字に対応する矩形のフォントデ
ータの寸法、配置位置を求め、各フォントデータを遠近
配置するように構成したので、出力されたフォントデー
タの字面が歪むことがなく、字面に基づいた視覚的に自
然な遠近配置で各文字が配列された組版結果を得ること
ができる。As is apparent from the above description, according to the first aspect of the invention, the font data is set from the placement start points P S1 and P S2 of the font data corresponding to the set first character. The size and the arrangement position of the rectangular font data corresponding to the respective characters forming the set text data are calculated so as to converge to the convergence point Pe, and the font data are arranged in the perspective and are output. It is possible to obtain the typesetting result in which the characters of the font data are not distorted, and the characters are arranged in a visually natural perspective arrangement based on the characters.
【0293】また、求めた寸法、配置位置に基づき出力
されるフォントデータに対応する文字は、フォントから
文字コードで読み出すように構成しているので、組版結
果に対する文字(に対応するフォントデータ)の修正や
挿入、削除等は、主に文字コードの変更やシフト等で対
応できるので、従来装置に比べて、組版結果に対する文
字(に対応するフォントデータ)の修正や挿入、削除等
に柔軟に対応することができる。Since the character corresponding to the font data output based on the obtained size and arrangement position is read from the font by the character code, the character (the font data corresponding to) the character corresponding to the formatted result Corrections, insertions, deletions, etc. can be handled mainly by changing the character code and shifting, etc., so it is possible to flexibly respond to corrections, insertions, deletions, etc. of characters (font data corresponding to) in the typesetting result, compared to conventional devices. can do.
【0294】また、請求項2に記載の発明によれば、文
字配置処理制御手段や寸法特定手段、配置開始点特定手
段による、各フォントデータの寸法や配置位置の算出
を、設定された点PS1と点PS2とを結ぶ線分が出力領域
の座標軸に平行(あるいは一致)するように、点P
S1(または点PS2)を中心として、点PS2(または点P
S1)、点Peを所定角度回転し、得られた点PS2’、点
Pe’と点PS1(または、点PS1’、点Pe’と点
PS2)に基づき、行なうように構成したので、この算出
処理が簡単になる。According to the second aspect of the invention, the calculation of the size and the arrangement position of each font data by the character arrangement processing control means, the dimension specifying means, and the arrangement start point specifying means is performed at the set point P. Point P so that the line segment connecting S1 and point P S2 is parallel (or coincident) with the coordinate axis of the output area.
With S1 (or point P S2 ) as the center, point P S2 (or point P S2 )
S1 ), the point Pe is rotated by a predetermined angle, and the operation is performed based on the obtained points P S2 ′, Pe ′ and P s1 (or P s1 ′, Pe ′ and P s2 ). Therefore, this calculation process is simplified.
【0295】さらに、請求項3に記載の発明によれば、
設定された配置色濃度から終了色濃度へ徐々に変化する
ように各フォントデータに色を付けて出力するので、見
栄えがよく、見る者の注意を引くようなチラシ等を作成
することができる。Further, according to the invention of claim 3,
Since each font data is colored so as to gradually change from the set arrangement color density to the end color density, it is possible to create a leaflet or the like that looks good and attracts the viewer's attention.
【図1】本発明の第一実施例に係る組版処理装置の内部
構成を示すブロック図である。FIG. 1 is a block diagram showing an internal configuration of a typesetting processing apparatus according to a first exemplary embodiment of the present invention.
【図2】第一実施例の文字列の遠近配置組版の処理手順
を示すメインフローチャートである。FIG. 2 is a main flowchart showing a processing procedure of a perspective arrangement typesetting of a character string according to the first embodiment.
【図3】組版指示の取込みの処理手順を示すフローチャ
ートである。FIG. 3 is a flowchart showing a processing procedure for fetching a typesetting instruction.
【図4】各フォントデータの寸法、配置位置、色濃度を
求める処理手順を示すフローチャートである。FIG. 4 is a flowchart showing a processing procedure for obtaining the size, arrangement position, and color density of each font data.
【図5】組版結果の出力の処理手順を示すフローチャー
トである。FIG. 5 is a flowchart showing a processing procedure for outputting a formatted result.
【図6】テキストデータバッファの構成を示す図であ
る。FIG. 6 is a diagram showing a configuration of a text data buffer.
【図7】配置開始点PS1、PS2と収束点Peの設定を説
明するための図である。FIG. 7 is a diagram for explaining setting of arrangement start points P S1 and P S2 and a convergence point Pe.
【図8】組版指示バッファの構成を示す図である。FIG. 8 is a diagram showing a structure of a typesetting instruction buffer.
【図9】処理パターン1の場合の組方向に応じたフォン
トデータの配列状態を示す図である。9 is a diagram showing an arrangement state of font data according to a set direction in the case of processing pattern 1. FIG.
【図10】組版指示バッファの開始色濃度等の記憶エリ
アの構成を示す図である。FIG. 10 is a diagram showing a configuration of a storage area for a starting color density of the typesetting instruction buffer.
【図11】組版データテーブルの構成を示す図である。FIG. 11 is a diagram showing a structure of a typesetting data table.
【図12】回転角度θを説明するための図である。FIG. 12 is a diagram for explaining a rotation angle θ.
【図13】組版補助データテーブルの構成を示す図であ
る。FIG. 13 is a diagram showing the structure of a typesetting auxiliary data table.
【図14】作業用に設けたワークエリアの構成を示す図
である。FIG. 14 is a diagram showing a configuration of a work area provided for work.
【図15】各フォントデータの色濃度の変化率の算出を
説明するための図である。FIG. 15 is a diagram for explaining calculation of a change rate of color density of each font data.
【図16】図9(c)、(a)の組版に対して寸法の算
出、配置位置の特定等を説明するための図である。FIG. 16 is a diagram for explaining calculation of dimensions, identification of arrangement positions, etc. for the typesettings of FIGS. 9 (c) and 9 (a).
【図17】図9(d)、(b)の組版に対して寸法の算
出、配置位置の特定等を説明するための図である。FIG. 17 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like for the typesettings of FIGS. 9D and 9B.
【図18】エラーの発生原因の一例を示す図である。FIG. 18 is a diagram showing an example of the cause of an error.
【図19】各フォントデータの色濃度の算出の手順を説
明するための図である。FIG. 19 is a diagram for explaining a procedure for calculating the color density of each font data.
【図20】図16の場合の、点PS1と点Peとを結ぶ線
分および点PS2と点Peとを結ぶ線分と、フォントデー
タの仮想ボディとの交点ができるパターンを示す図であ
る。FIG. 20 is a diagram showing a pattern in which intersections are formed between the line segment connecting the point P S1 and the point Pe and the line segment connecting the point P S2 and the point Pe in the case of FIG. 16 and the virtual body of the font data. is there.
【図21】図17の場合の、点PS1と点Peとを結ぶ線
分および点PS2と点Peとを結ぶ線分と、フォントデー
タの仮想ボディとの交点ができるパターンを示す図であ
る。FIG. 21 is a diagram showing patterns in which intersections are formed between the line segment connecting the point P S1 and the point Pe and the line segment connecting the point P S2 and the point Pe in the case of FIG. 17 and the virtual body of the font data. is there.
【図22】点PS1と点Peとを結ぶ線分、点PS2と点P
eとを結ぶ線分の1次関数式の特定方法を説明するため
の図である。FIG. 22 is a line segment connecting a point P S1 and a point Pe, a point P S2 and a point P
It is a figure for demonstrating the identification method of the linear functional expression of the line segment which connects with e.
【図23】交点を調べる方法を説明するための図であ
る。FIG. 23 is a diagram for explaining a method of checking an intersection.
【図24】エラーの発生原因の一例を示す図である。FIG. 24 is a diagram showing an example of the cause of an error.
【図25】2番目の文字に対応するフォントデータの配
置開始点を示す図である。FIG. 25 is a diagram showing an arrangement start point of font data corresponding to a second character.
【図26】3番目の文字に対応するフォントデータの配
置開始点を示す図である。FIG. 26 is a diagram showing an arrangement start point of font data corresponding to a third character.
【図27】組版結果の出力処理を説明するための図であ
る。FIG. 27 is a diagram for explaining an output process of a formatted result.
【図28】組版結果の出力処理を説明するための図であ
る。FIG. 28 is a diagram for explaining an output process of a typesetting result.
【図29】組版結果の出力処理を説明するための図であ
る。FIG. 29 is a diagram for explaining an output process of a typesetting result.
【図30】フォントデータの削除、挿入処理の色濃度の
調整を説明するための図である。[Fig. 30] Fig. 30 is a diagram for explaining the adjustment of the color density in the deletion / insertion processing of font data.
【図31】処理パターン2に対する指示点PS1、PS2、
Peの設定を示す図である。FIG. 31 is a schematic diagram of processing points in which designated points P S1 , P S2
It is a figure which shows the setting of Pe.
【図32】処理パターン2の場合の組方向に応じたフォ
ントデータの配列状態を示す図である。FIG. 32 is a diagram showing an arrangement state of font data according to a set direction in the case of processing pattern 2;
【図33】寸法の算出、配置位置の特定等を説明するた
めの図である。FIG. 33 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like.
【図34】寸法の算出、配置位置の特定等を説明するた
めの図である。FIG. 34 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like.
【図35】交点を調べる方法を説明するための図であ
る。FIG. 35 is a diagram for explaining a method of examining an intersection.
【図36】処理パターン3に対する指示点PS1、PS2、
Peの設定を示す図である。[FIG. 36] Designation points P S1 , P S2 for the processing pattern 3,
It is a figure which shows the setting of Pe.
【図37】処理パターン3の場合の縦組みのフォントデ
ータの配列状態を示す図である。FIG. 37 is a diagram showing an arrangement state of vertically set font data in the case of processing pattern 3;
【図38】処理パターン3の場合の横組みのフォントデ
ータの配列状態を示す図である。FIG. 38 is a diagram showing an arrangement state of horizontal font data in the case of processing pattern 3;
【図39】処理パターン3の場合の回転角度θを説明す
るための図である。FIG. 39 is a diagram for explaining a rotation angle θ in the case of processing pattern 3;
【図40】図37(a)の寸法の算出、配置位置の特定
等を説明するための図である。FIG. 40 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like in FIG. 37 (a).
【図41】図37(b)の寸法の算出、配置位置の特定
等を説明するための図である。41 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like in FIG. 37 (b).
【図42】図37(c)の寸法の算出、配置位置の特定
等を説明するための図である。FIG. 42 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like in FIG. 37 (c).
【図43】図37(d)の寸法の算出、配置位置の特定
等を説明するための図である。FIG. 43 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like in FIG. 37 (d).
【図44】図38(a)の寸法の算出、配置位置の特定
等を説明するための図である。FIG. 44 is a diagram for explaining calculation of dimensions and identification of arrangement positions in FIG.
【図45】図38(b)の寸法の算出、配置位置の特定
等を説明するための図である。FIG. 45 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like in FIG. 38 (b).
【図46】図38(c)の寸法の算出、配置位置の特定
等を説明するための図である。FIG. 46 is a diagram for explaining calculation of dimensions and identification of arrangement positions in FIG. 38 (c).
【図47】図38(d)の寸法の算出、配置位置の特定
等を説明するための図である。FIG. 47 is a diagram for explaining calculation of dimensions, identification of arrangement positions, and the like in FIG. 38 (d).
【図48】点PS1と点Peとを結ぶ線分と点Pcと点P
dとを結ぶ線分との交点を調べる方法を説明するための
図である。FIG. 48 is a line segment connecting point P S1 and point Pe and point Pc and point P
It is a figure for demonstrating the method of checking the intersection with the line segment which connects with d.
【図49】点PS1と点Peとを結ぶ線分と点Pbと点P
dとを結ぶ線分との交点を調べる方法を説明するための
図である。FIG. 49 is a line segment connecting point P S1 and point Pe, and point Pb and point P
It is a figure for demonstrating the method of checking the intersection with the line segment which connects with d.
【図50】点PS2と点Peとを結ぶ線分と点Paと点P
cとを結ぶ線分との交点を調べる方法を説明するための
図である。FIG. 50 is a line segment connecting point P S2 and point Pe, point Pa and point P
It is a figure for demonstrating the method of checking the intersection with the line segment which connects with c.
【図51】点PS2と点Peとを結ぶ線分と点Pcと点P
dとを結ぶ線分との交点を調べる方法を説明するための
図である。FIG. 51 is a line segment connecting point P S2 and point Pe, and point Pc and point P
It is a figure for demonstrating the method of checking the intersection with the line segment which connects with d.
【図52】点PS1と点Peとを結ぶ線分および点PS2と
点Peとを結ぶ線分と、フォントデータの仮想ボディと
の交点ができるパターンを示す図である。FIG. 52 is a diagram showing a pattern in which a line segment connecting the point P S1 and the point Pe and a line segment connecting the point P S2 and the point Pe and an imaginary body of the font data are intersected.
【図53】第二実施例装置の内部構成を示すブロック図
である。FIG. 53 is a block diagram showing an internal configuration of a second embodiment device.
【図54】第二実施例の文字配置処理時の処理手順を示
すフローチャートである。FIG. 54 is a flowchart showing a processing procedure for character arrangement processing according to the second embodiment.
【図55】回転処理を説明するための図である。FIG. 55 is a diagram for explaining rotation processing.
【図56】回転処理を説明するための図である。FIG. 56 is a diagram for explaining rotation processing.
【図57】回転処理を説明するための図である。FIG. 57 is a diagram for explaining rotation processing.
【図58】設定された指示点PS1、PS2、Peに対する
配置位置の特定方法を説明するための図である。[Fig. 58] Fig. 58 is a diagram for describing a method of identifying the arrangement position with respect to the set designated points P S1 , P S2 , and Pe.
【図59】フォントを構成する1文字のフォントデータ
の構成を示す模式図である。[Fig. 59] Fig. 59 is a schematic diagram showing the structure of font data of one character that constitutes a font.
【図60】従来装置で出力された組版結果を示す図であ
る。FIG. 60 is a diagram showing a typesetting result output by the conventional apparatus.
【図61】従来装置の問題点を説明するための図であ
る。FIG. 61 is a diagram for explaining a problem of the conventional device.
【図62】従来装置の問題点を説明するための図であ
る。FIG. 62 is a diagram for explaining a problem of the conventional device.
【図63】従来装置の問題点を説明するための図であ
る。FIG. 63 is a diagram for explaining a problem of the conventional device.
1 … 文字配置処理部 4 … 寸法特定部 5 … 配置開始点特定部 6 … 色濃度特定部 9 … 入力部 11 … 入力制御部 12 … 出力制御部 13 … フォント格納部 14 … 表示装置 15 … プリンタ 1 ... Character arrangement processing unit 4 ... Dimension specifying unit 5 ... Arrangement start point specifying unit 6 ... Color density specifying unit 9 ... Input unit 11 ... Input control unit 12 ... Output control unit 13 ... Font storage unit 14 ... Display device 15 ... Printer
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/24 630 Z 9377−5H ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/24 630 Z 9377-5H
Claims (3)
文字に対応する各フォントデータを遠近配置する文字配
置処理を含む組版処理を行ない、組版処理後の各文字に
対応するフォントデータを、予め登録されているフォン
トから、各文字の文字コードを用いて読み出し、組版処
理後の結果を出力する組版処理装置において、 テキストデータと、前記テキストデータ内の最初の文字
に対応するフォントデータの、出力領域における配置開
始点PS1、PS2と、前記テキストデータを構成する各文
字に対応する各フォントデータを、前記出力領域内に遠
近配置するときの前記出力領域における収束点Peとを
設定する設定手段と、 前記テキストデータ内の所定の文字に対応するフォント
データの配置開始点PaとPbとを結ぶ線分を仮想ボデ
ィの一辺とした矩形のフォントデータの寸法を求める寸
法特定手段と、 前記寸法特定手段で特定された寸法のフォントデータの
仮想ボディの一辺を、そのフォントデータの寸法を特定
した際の配置開始点PaとPbとを結ぶ線分に一致さ
せ、かつ、前記配置開始点PaとPbとを結ぶ線分を挟
んで前記収束点Pe側に、前記フォントデータを仮想的
に配置したときの、前記点PS1と前記点Peとを結ぶ線
分、および前記点PS2と前記点Peとを結ぶ線分と、前
記フォントデータの仮想ボディとの交点をそれぞれ求
め、求めた交点を通過する、前記点PS1と前記点PS2と
を結ぶ線分に平行な線と、前記点PS1と点Peとを結ぶ
線分、および前記点PS2と点Peとを結ぶ線分との各交
点(前記仮想的に配置したフォントデータに対応する所
定の文字の次の文字に対応するフォントデータの配置開
始点Pa、Pb)を求める配置開始点特定手段と、 前記設定手段で設定された配置開始点PS1、PS2を最初
の文字に対応するフォントデータの配置開始点Pa、P
bとして前記寸法特定手段に与えて、前記テキストデー
タ内の最初の文字に対応するフォントデータの寸法を求
め、求めた最初の文字の寸法と前記配置開始点PS1、P
S2とに基づき、前記最初の文字に対応するフォントデー
タの配置位置を求め、前記配置開始点PS1、PS2と前記
最初の文字の寸法に関するデータを前記配置開始点特定
手段に与えて、前記テキストデータ内の2番目の文字の
配置開始点Pa、Pbを求め、次に、前記求めた2番目
の文字の配置開始点Pa、Pbを前記寸法特定手段に与
えて、前記2番目の文字に対応するフォントデータの寸
法を求め、求めた2番目の文字の寸法と、前記2番目の
文字の寸法を求めた際の配置開始点Pa、Pbとに基づ
き、前記2番目の文字に対応するフォントデータの配置
位置を求め、前記2番目の文字の寸法を求めた際の配置
開始点Pa、Pbと前記2番目の文字の寸法に関するデ
ータを前記配置開始点特定手段に与えて、前記テキスト
データ内の3番目の文字の配置開始点Pa、Pbを求め
る処理を繰り返し、前記テキストデータ内の各文字に対
応する各フォントデータの寸法と、その配置位置を求め
るよう制御する文字配置処理制御手段と、 前記テキストデータ内の各文字に対応する各フォントデ
ータを、各文字の文字コードを用いて前記フォントから
読み出し、読み出した各フォントデータを、前記文字配
置処理制御手段で得られた各フォントデータの寸法と配
置位置とに基づき出力する出力手段と、 を備えたことを特徴とする組版処理装置。1. A typesetting process including a character arrangement process for arranging each font data corresponding to each character forming a given text data in a perspective manner is performed, and font data corresponding to each character after the typesetting process is registered in advance. In a typesetting processing device that reads out the character code of each character from the existing font and outputs the result after the typesetting process, the output area of the text data and the font data corresponding to the first character in the text data Setting means for setting the arrangement start points P S1 and P S2 in ( 1) and the converging point Pe in the output area when the font data corresponding to each character forming the text data is arranged in perspective in the output area. And a line segment connecting the arrangement start points Pa and Pb of the font data corresponding to a predetermined character in the text data of the virtual body. Dimension specifying means for obtaining the size of the rectangular font data having one side, and one side of the virtual body of the font data having the size specified by the size specifying means, as a placement start point Pa when the size of the font data is specified. The point P S1 when the font data is virtually arranged on the side of the convergence point Pe with the line segment connecting the arrangement start points Pa and Pb sandwiched between the line segment connecting Pb and Pb And the point Pe, and the line segment connecting the point P S2 and the point Pe and the intersection of the virtual body of the font data are respectively obtained, and the point P S1 is passed through the obtained intersection. And a point parallel to a line segment connecting the point P S2 , a line segment connecting the point P S1 and the point Pe, and a line segment connecting the point P S2 and the point Pe (the virtual Of the specified character corresponding to the font data placed in Arrangement start point specifying means for obtaining the arrangement start points Pa, Pb) of the font data corresponding to the next character, and arrangement start points P S1 , P S2 set by the setting means for the font data corresponding to the first character. Placement start point Pa, P
The size of the font data corresponding to the first character in the text data is obtained as b, and the size of the obtained first character and the placement start points P S1 , P
Based on S2 , the arrangement position of the font data corresponding to the first character is obtained, and the arrangement start points P S1 , P S2 and the data regarding the size of the first character are given to the arrangement start point specifying means, Arrangement start points Pa and Pb of the second character in the text data are obtained, and then the obtained arrangement start points Pa and Pb of the second character are given to the dimension specifying means to make the second character A font corresponding to the second character based on the size of the second character obtained and the placement start points Pa and Pb when the size of the second character is obtained. In the text data, the placement position of the data is obtained, the placement start points Pa and Pb when the dimension of the second character is obtained and the data relating to the dimension of the second character are given to the placement start point specifying means. The third Character arrangement processing control means for controlling to obtain the size of each font data corresponding to each character in the text data and the arrangement position by repeating the processing for obtaining the character arrangement start points Pa and Pb; Each font data corresponding to each character of is read from the font by using the character code of each character, the read font data, the size and arrangement position of each font data obtained by the character arrangement processing control means A typesetting processing device comprising: an output unit that outputs based on
て、 前記設定手段から設定された配置開始点PS1とPS2とを
結ぶ線分を、前記出力領域内の座標軸に平行あるいは一
致させるように、前記点PS1(または前記点PS2)を中
心として、前記収束点Peと前記点PS2(または前記点
PS1)とを所定角度回転させた点Pe’と点PS2’(ま
たは点PS1’)との座標を求める回転処理手段を備える
とともに、 前記寸法特定手段、前記配置開始点特定手段、前記文字
配置処理制御手段では、前記収束点Peと前記点P
S2(または前記点PS1)を、回転処理手段で求めた点P
e’と点PS2’(または点PS1’)として、前記テキス
トデータ内の各文字に対応する各フォントデータの寸法
と、前記点PS1(または前記点PS2)と前記点Pe’と
前記点PS2’(または前記点PS1’)とに対する、各フ
ォントデータの配置位置を求め、 また、前記求めた点PS1(または点PS2)と点Pe’と
点PS2’(または点PS1’)とに対する、各フォントデ
ータの配置位置を、前記所定角度分、逆回転させて前記
配置開始点PS1、PS2と前記収束点Peに対する、各フ
ォントデータの配置位置を求める逆回転手段を備え、 前記出力手段では、前記フォントから読み出した各フォ
ントデータを、前記求めた寸法と、前記配置開始点
PS1、PS2と前記収束点Peに対する、各フォントデー
タの配置位置に基づき出力するように構成したことを特
徴とする組版処理装置。2. The typesetting device according to claim 1, wherein a line segment connecting the placement start points P S1 and P S2 set by the setting means is parallel or coincident with a coordinate axis in the output area. to, about said point P S1 (or the point P S2), the convergence point Pe to the point P S2 (or the point P S1) and a predetermined angle point obtained by rotating Pe 'and the point P S2' (or Rotation processing means for obtaining the coordinates with respect to the point P S1 ') is provided, and in the dimension specifying means, the arrangement start point specifying means, and the character arrangement processing control means, the convergence point Pe and the point P
S2 (or the point P S1 ) is the point P obtained by the rotation processing means.
As e ′ and point P S2 ′ (or point P S1 ′), the size of each font data corresponding to each character in the text data, the point P S1 (or the point P S2 ) and the point Pe ′, Arrangement position of each font data with respect to the point P S2 '(or the point P S1 ') is obtained, and the obtained point P S1 (or point P S2 ), point Pe ', and point P S2 ' (or The arrangement position of each font data with respect to the point P S1 ') is reversely rotated by the predetermined angle to obtain the arrangement position of each font data with respect to the arrangement start points P S1 and P S2 and the convergence point Pe. Rotation means is provided, and in the output means, each font data read from the font is based on the obtained size and the arrangement position of each font data with respect to the arrangement start points P S1 , P S2 and the convergence point Pe. Configured to output Typesetting processing apparatus according to claim.
載の組版処理装置において、 前記テキストデータの最初の文字に対応するフォントデ
ータの色濃度(開始色濃度)と前記テキストデータの最
後の文字に対応するフォントデータの色濃度(終了色濃
度)とを設定する色濃度設定手段と、 前記開始色濃度と前記終了色濃度との変化量と、前記テ
キストデータの全文字数とに基づき、前記テキストデー
タの各文字に対応する各フォントデータに対する色濃度
の変化率を求め、前記テキストデータ内における各文字
の順番と、前記求めた色濃度の変化率とに基づき、前記
テキストデータの各文字に対応するフォントデータに対
する、前記開始色濃度からの色濃度の変化量を求め、前
記求めた開始色濃度からの色濃度の各変化量を前記開始
色濃度に加算して、前記テキストデータの各文字に対応
するフォントデータの色濃度を求める色濃度特定手段
と、 を備え、 前記出力手段では、前記テキストデータ内の各文字に対
応する各フォントデータを、前記色濃度特定手段で特定
した各色濃度で出力するように構成したことを特徴とす
る組版処理装置。3. The typesetting device according to claim 1, wherein the color density (start color density) of the font data corresponding to the first character of the text data and the last color density of the text data A color density setting unit that sets a color density (end color density) of font data corresponding to a character; a change amount between the start color density and the end color density; and a total number of characters of the text data, The change rate of the color density for each font data corresponding to each character of the text data is obtained, and based on the order of each character in the text data and the obtained change rate of the color density, The change amount of the color density from the start color density for the corresponding font data is calculated, and each change amount of the color density from the calculated start color density is calculated as the start color density. And a color density specifying unit that obtains the color density of the font data corresponding to each character of the text data by adding the font data corresponding to each character in the text data, A typesetting device characterized by being configured to output at each color density specified by the color density specifying means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP33908794A JP3065223B2 (en) | 1994-12-29 | 1994-12-29 | Typesetting equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP33908794A JP3065223B2 (en) | 1994-12-29 | 1994-12-29 | Typesetting equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH08184952A true JPH08184952A (en) | 1996-07-16 |
JP3065223B2 JP3065223B2 (en) | 2000-07-17 |
Family
ID=18324140
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP33908794A Expired - Fee Related JP3065223B2 (en) | 1994-12-29 | 1994-12-29 | Typesetting equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3065223B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011076637A (en) * | 1998-02-02 | 2011-04-14 | Randall C Walker | Text processor |
JP2017032990A (en) * | 2015-07-31 | 2017-02-09 | キヤノンマーケティングジャパン株式会社 | Information processing apparatus, control method therefor, and program |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5817325A (en) | 1996-10-28 | 1998-10-06 | Biopolymerix, Inc. | Contact-killing antimicrobial devices |
US5849311A (en) | 1996-10-28 | 1998-12-15 | Biopolymerix, Inc. | Contact-killing non-leaching antimicrobial materials |
CA2320134C (en) | 1998-02-12 | 2012-04-10 | Samuel P. Sawan | Compositions for the production of antimicrobial films |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5653074A (en) * | 1979-10-09 | 1981-05-12 | Toppan Printing Co Ltd | Drawing method of formative letters |
JPS59229560A (en) * | 1983-06-11 | 1984-12-24 | Yasufumi Miyake | Pattern forming method |
JPH06202605A (en) * | 1993-01-07 | 1994-07-22 | Mitsubishi Electric Corp | Display controller |
JPH06274650A (en) * | 1993-03-23 | 1994-09-30 | Dainippon Printing Co Ltd | Image synthesizer |
JPH06274649A (en) * | 1993-03-23 | 1994-09-30 | Dainippon Printing Co Ltd | Image synthesizer |
-
1994
- 1994-12-29 JP JP33908794A patent/JP3065223B2/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5653074A (en) * | 1979-10-09 | 1981-05-12 | Toppan Printing Co Ltd | Drawing method of formative letters |
JPS59229560A (en) * | 1983-06-11 | 1984-12-24 | Yasufumi Miyake | Pattern forming method |
JPH06202605A (en) * | 1993-01-07 | 1994-07-22 | Mitsubishi Electric Corp | Display controller |
JPH06274650A (en) * | 1993-03-23 | 1994-09-30 | Dainippon Printing Co Ltd | Image synthesizer |
JPH06274649A (en) * | 1993-03-23 | 1994-09-30 | Dainippon Printing Co Ltd | Image synthesizer |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011076637A (en) * | 1998-02-02 | 2011-04-14 | Randall C Walker | Text processor |
JP2017032990A (en) * | 2015-07-31 | 2017-02-09 | キヤノンマーケティングジャパン株式会社 | Information processing apparatus, control method therefor, and program |
Also Published As
Publication number | Publication date |
---|---|
JP3065223B2 (en) | 2000-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3333297B2 (en) | How to change the thickness of raster output characters | |
US5404436A (en) | Computer method and apparatus for converting compressed characters for display in full size | |
US5831632A (en) | Automatic graphical pattern placement | |
US5943680A (en) | Output apparatus in which a plurality of images having a plurality of accuracy of colors are output to output devices having different accuracy of colors | |
US7453474B2 (en) | Flexibly resizeable vector graphics | |
JPH08184952A (en) | Plate composing processor | |
JP2868666B2 (en) | Electronic typesetting device for typesetting along any line | |
JPH10283492A (en) | Layout typesetting method | |
JP3150316B2 (en) | Document editing device | |
JP4100779B2 (en) | Information processing apparatus and method, and storage medium | |
JP3761923B2 (en) | Image processing apparatus and method | |
JP3101402B2 (en) | Document editing method and document editing device | |
JP3658493B2 (en) | Electronic typesetting method and recording medium on which program for executing the method is recorded | |
JPS62168275A (en) | Processing system for picture editing | |
JPS62157462A (en) | Planning edition system | |
JP2889760B2 (en) | An electronic typesetting device that combines characters and figures | |
JPH07105212A (en) | Layout design device | |
JP2000235651A (en) | Compiling method/device for raster data | |
JPH02243343A (en) | Method for forming character face data for kerning and kerning processing | |
JP2677442B2 (en) | Method of capturing illustrations in editing machine and editing machine | |
JPH05346920A (en) | Method and device for processing document | |
JPH06110442A (en) | Character and figure processor and method for deforming character of figure | |
JP2002175537A (en) | Method and device for image generation | |
JPS6073568A (en) | How to create a dot character pattern | |
JPH0560598B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |